:root { --bg: #0e0e13; --card: #16161f; --card-2: #1d1d2a; --line: #2a2a3a; --text: #ece9f1; --muted: #9a97a8; --accent-a: #d85a9a; --accent-b: #e8805a; --pos: #5ac8a8; --neg: #e3718a; --info: #5a86d8; --radius: 14px; --font-serif: "DM Serif Display", Georgia, serif; --font-sans: "DM Sans", system-ui, -apple-system, sans-serif; } * { box-sizing: border-box; } body { margin: 0; background: radial-gradient(1200px 600px at 50% -10%, #1a1626, var(--bg)); color: var(--text); font-family: var(--font-sans); font-weight: 300; min-height: 100vh; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } .page { max-width: 760px; margin: 0 auto; padding: 48px 20px 32px; } .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); } /* Header */ .card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; } .icon-wrap { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent-a), var(--accent-b)); } .icon-wrap svg { width: 26px; height: 26px; } h1 { font-family: var(--font-serif); font-weight: 400; font-size: 1.7rem; margin: 0; } .subtitle { color: var(--muted); font-size: 0.85rem; margin: 2px 0 0; letter-spacing: 0.03em; } /* Composer */ .textarea-wrap { position: relative; } textarea { width: 100%; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-family: inherit; font-size: 1rem; line-height: 1.5; padding: 16px 16px 28px; resize: vertical; transition: border-color 0.15s; } textarea:focus { outline: none; border-color: var(--accent-a); } textarea:disabled { opacity: 0.6; } .char-count { position: absolute; right: 12px; bottom: 8px; font-size: 0.75rem; color: var(--muted); } .char-count.over { color: var(--neg); } .examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } .chip { background: var(--card-2); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 6px 14px; font-family: inherit; font-size: 0.82rem; cursor: pointer; transition: all 0.15s; } .chip:hover:not(:disabled) { color: var(--text); border-color: var(--accent-a); } .chip:disabled { opacity: 0.5; cursor: default; } /* Controls */ .controls { display: flex; align-items: flex-end; gap: 14px; margin-top: 18px; } .voice-picker { display: flex; flex-direction: column; gap: 6px; } .voice-picker label { font-size: 0.78rem; color: var(--muted); } select { background: var(--card-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font-family: inherit; font-size: 0.9rem; min-width: 190px; } select:focus { outline: none; border-color: var(--accent-a); } .generate-btn { flex: 1; border: none; border-radius: 10px; padding: 13px 20px; font-family: inherit; font-size: 0.98rem; font-weight: 500; color: #fff; cursor: pointer; background: linear-gradient(135deg, var(--accent-a), var(--accent-b)); transition: filter 0.15s, opacity 0.15s; } .generate-btn:hover:not(:disabled) { filter: brightness(1.08); } .generate-btn:disabled { opacity: 0.5; cursor: default; } /* States */ .empty-hint { color: var(--muted); font-size: 0.9rem; text-align: center; margin: 26px 0 6px; } /* Analysis */ .analysis { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; transition: opacity 0.2s; } .analysis.stale { opacity: 0.55; } .analysis-explain { color: var(--text); font-size: 0.92rem; line-height: 1.5; margin: 0 0 18px; } .analysis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; } .analysis-block h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 12px; font-weight: 500; } /* Meters */ .meter { margin-bottom: 10px; } .meter-head { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 4px; } .meter-label { color: var(--text); text-transform: capitalize; } .meter-value { color: var(--muted); font-variant-numeric: tabular-nums; } .meter-track { position: relative; height: 6px; background: var(--card-2); border-radius: 999px; overflow: hidden; } .meter-track.signed { background: linear-gradient(90deg, #241d28, #1d2428); } .meter-center { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); } .meter-fill { position: absolute; top: 0; bottom: 0; border-radius: 999px; } .meter-neutral { left: 0; background: linear-gradient(90deg, var(--accent-a), var(--accent-b)); } .meter-pos { background: var(--pos); } .meter-neg { background: var(--neg); } .from-center-right { left: 50%; } .from-center-left { right: 50%; } /* Player */ .player { margin-top: 22px; } .audio-el { width: 100%; } .player-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; } .download-btn { text-decoration: none; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 16px; font-size: 0.85rem; transition: border-color 0.15s; } .download-btn:hover { border-color: var(--accent-a); } .expiry-note { color: var(--muted); font-size: 0.78rem; } /* Banners */ .banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-radius: 10px; padding: 11px 14px; font-size: 0.86rem; margin-bottom: 16px; } .banner-error { background: rgba(227, 113, 138, 0.12); border: 1px solid rgba(227, 113, 138, 0.4); color: #f0b7c3; } .banner-info { background: rgba(90, 134, 216, 0.12); border: 1px solid rgba(90, 134, 216, 0.4); color: #bcd0f3; } .banner-close { background: none; border: none; color: inherit; font-size: 1.2rem; cursor: pointer; line-height: 1; } .page-footer { text-align: center; color: var(--muted); font-size: 0.76rem; margin-top: 20px; } /* Responsive */ @media (max-width: 620px) { .analysis-grid { grid-template-columns: 1fr; gap: 18px; } .controls { flex-direction: column; align-items: stretch; } .voice-picker select { width: 100%; } } @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }