:root {
  --ink: #242225;
  --muted: #817a7a;
  --paper: #f5f1eb;
  --card: #fbf9f5;
  --line: #ded8d0;
  --coral: #f0674e;
  --coral-dark: #d8513a;
  --lavender: #c2b4d9;
  --shadow: 0 24px 70px rgba(61, 43, 37, .08);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Manrope, sans-serif; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 78% 8%, rgba(240,103,78,.13), transparent 28%), radial-gradient(circle at 4% 64%, rgba(194,180,217,.18), transparent 25%); }
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .065; z-index: 4; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); }
.shell { width: min(1180px, calc(100% - 48px)); margin: auto; position: relative; z-index: 1; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
.brand b { color: var(--coral); font-family: "Noto Serif SC", serif; }
.brand-mark { display: block; width: 31px; height: 31px; flex: 0 0 31px; }
.brand-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.brand-mark .ring { fill: rgba(251, 249, 245, .34); stroke: var(--ink); stroke-width: 1.45; }
.brand-mark .wave { fill: none; stroke: var(--coral); stroke-width: 2.05; stroke-linecap: round; }
.connection, .eyebrow, .section-label, .generate-meta, .secure-note, footer { font-family: "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; }
.connection { color: var(--muted); }.connection i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; background: #6ab783; border-radius: 50%; }.connection span { margin: 0 9px; color: #b6aea7; }
.hero { padding: 80px 0 70px; display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: end; gap: 40px; }
.hero-main { min-width: 0; }
.eyebrow { color: var(--coral); font-weight: 500; }.eyebrow span, .section-label span { margin-right: 12px; color: #b5ada5; }
h1 { margin: 18px 0 0; font-family: "Noto Serif SC", serif; font-size: clamp(58px, 9vw, 112px); line-height: .98; font-weight: 600; letter-spacing: -.1em; }.hero h1 em { color: var(--coral); font-style: normal; }
.hero-copy { margin: 0 0 6px; max-width: 260px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.workspace { display: grid; grid-template-columns: 1fr 390px; gap: 70px; padding-bottom: 64px; }.section-label { color: var(--muted); margin-bottom: 15px; }.text-card, .style-row { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.text-card { min-height: 290px; padding: 23px 24px 14px; display: flex; flex-direction: column; }.text-card textarea { resize: vertical; min-height: 220px; border: 0; outline: 0; color: var(--ink); background: transparent; font-family: "Noto Serif SC", serif; font-size: 20px; line-height: 1.8; }.text-card textarea::placeholder { color: #b7b0aa; }
.text-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; color: #a49c96; font: 10px "DM Mono", monospace; }.clear-btn { border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; }.clear-btn span { margin-left: 8px; color: var(--coral); }
.style-label { margin-top: 34px; }.style-label small { margin-left: 7px; color: #b5ada5; text-transform: lowercase; letter-spacing: 0; }.style-row { display: flex; align-items: center; padding: 3px 12px 3px 17px; box-shadow: none; }.style-row input { width: 100%; padding: 11px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 13px Manrope, sans-serif; }.style-spark { display: grid; place-items: center; width: 29px; height: 29px; color: var(--coral); background: #fae0d9; border-radius: 50%; }.suggestions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }.suggestions button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); background: transparent; cursor: pointer; font: 11px Manrope, sans-serif; transition: .2s; }.suggestions button:hover { border-color: var(--coral); color: var(--coral); }
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.voice-card { min-height: 92px; padding: 12px; position: relative; display: grid; grid-template-columns: 36px 1fr; grid-template-rows: 1fr 1fr; gap: 0 10px; text-align: left; border: 1px solid var(--line); background: transparent; cursor: pointer; transition: .2s; }.voice-card:hover, .voice-card.selected { border-color: var(--coral); background: var(--card); box-shadow: 0 9px 20px rgba(61,43,37,.06); }.voice-card b { display: none; position: absolute; top: 9px; right: 10px; color: var(--coral); font-size: 12px; }.voice-card.selected b { display: block; }.voice-orb { grid-row: 1 / 3; align-self: center; width: 32px; height: 32px; border-radius: 50%; position: relative; overflow: hidden; }.voice-orb::after { content:""; position: absolute; inset: 6px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; }.peach { background: #f29a83; }.lilac { background: #afa0ca; }.mint { background: #9fcabd; }.blue { background: #86b2c8; }.amber { background: #d6ad70; }.rose { background: #d78ea0; }.voice-name { align-self: end; font-family: "Noto Serif SC", serif; font-size: 14px; }.voice-card small { align-self: start; color: var(--muted); font: 9px "DM Mono", monospace; letter-spacing: -.02em; }
.generate-box { margin-top: 28px; padding: 18px; background: var(--ink); color: white; box-shadow: 0 22px 45px rgba(36,34,37,.16); }.generate-meta { display: flex; align-items: center; color: #afa9a5; font-size: 9px; }.dot-line { flex: 1; height: 1px; margin: 0 10px; background: #5b5759; }.generate-btn { width: 100%; display: flex; align-items: center; gap: 11px; margin-top: 17px; padding: 16px 14px; border: 0; background: var(--coral); color: white; cursor: pointer; font: 700 15px Manrope, sans-serif; transition: .2s; }.generate-btn:hover { background: var(--coral-dark); transform: translateY(-2px); }.generate-btn:disabled { opacity: .6; cursor: wait; transform: none; }.button-icon { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; font-size: 17px; }.generate-btn kbd { margin-left: auto; color: #ffd8cf; font: 10px "DM Mono", monospace; }.secure-note { margin: 14px 0 0; color: #898487; font-size: 8px; letter-spacing: .08em; }.secure-note span { color: #78bc91; font-size: 14px; vertical-align: -2px; margin-right: 5px; }
.result-panel { border-top: 1px solid var(--line); padding: 46px 0 66px; }.result-heading { display: flex; align-items: end; justify-content: space-between; }.result-heading h2 { margin: 6px 0 24px; font: 600 28px "Noto Serif SC", serif; letter-spacing: -.05em; }.wave { display: flex; gap: 3px; align-items: center; height: 45px; opacity: .35; }.wave i { display: block; width: 2px; height: var(--h); background: var(--coral); animation: pulse 1s ease-in-out infinite alternate; animation-delay: var(--d); }.wave i:nth-child(1){--h:12px;--d:.1s}.wave i:nth-child(2){--h:26px;--d:.2s}.wave i:nth-child(3){--h:18px;--d:.05s}.wave i:nth-child(4){--h:36px;--d:.3s}.wave i:nth-child(5){--h:22px;--d:.15s}.wave i:nth-child(6){--h:42px;--d:.4s}.wave i:nth-child(7){--h:16px;--d:.2s}.wave i:nth-child(8){--h:30px;--d:.1s}.wave i:nth-child(9){--h:12px;--d:.3s}.wave i:nth-child(10){--h:26px;--d:.05s}.wave i:nth-child(11){--h:18px;--d:.2s}.wave i:nth-child(12){--h:36px;--d:.1s}.wave i:nth-child(13){--h:13px;--d:.4s}.wave i:nth-child(14){--h:25px;--d:.3s}.wave i:nth-child(15){--h:19px;--d:.1s}.wave i:nth-child(16){--h:32px;--d:.2s}.wave i:nth-child(17){--h:14px;--d:.05s}.wave i:nth-child(18){--h:24px;--d:.3s}.wave i:nth-child(19){--h:11px;--d:.15s}.wave i:nth-child(20){--h:20px;--d:.25s}@keyframes pulse { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
.player-shell { min-height: 92px; padding: 17px 20px; border: 1px solid var(--line); background: var(--card); }.player-empty { display: flex; align-items: center; gap: 14px; color: #aaa29a; }.player-empty span { color: var(--coral); font-size: 28px; }.player-empty p { margin: 0; font-size: 13px; }.player-ready { display: flex; align-items: center; gap: 15px; }.play-btn { display: grid; place-items: center; width: 52px; height: 52px; padding-left: 4px; border: 0; border-radius: 50%; background: var(--coral); color: white; cursor: pointer; font-size: 17px; }.track { flex: 1; }.track-top { display: flex; justify-content: space-between; margin-bottom: 13px; color: var(--muted); font: 10px "DM Mono", monospace; text-transform: uppercase; }.progress { height: 4px; overflow: hidden; background: #e6dfd8; }.progress span { display: block; width: 0; height: 100%; background: var(--coral); transition: width .1s linear; }.download-btn { padding: 9px 12px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 11px; }.download-btn span { color: var(--coral); margin-left: 6px; }.hidden { display: none !important; } footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 21px 0 35px; color: #a49c96; font-size: 9px; }
@media (max-width: 800px) {
  .shell { width: calc(100% - 48px); max-width: 720px; }
  .topbar { height: 72px; }
  .connection { display: none; }
  .hero { display: block; padding: 58px 0 52px; }
  .hero-copy { margin-top: 22px; max-width: 560px; }
  .workspace { display: block; }
  .control-column { margin-top: 46px; }
  .result-panel { padding-top: 36px; }
  .result-heading h2 { font-size: 23px; }
  .player-ready { flex-wrap: wrap; }
  .track { min-width: calc(100% - 70px); }
  .download-btn { margin-left: 67px; }
}
