:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-soft: #f8f9fb;
  --sidebar: rgba(249, 250, 252, .86);
  --text: #20242b;
  --muted: #8b919c;
  --line: #e8eaf0;
  --line-strong: #dfe2e9;
  --accent: #e86553;
  --accent-soft: #fff0ed;
  --blue: #5678dd;
  --shadow: 0 18px 45px rgba(32, 36, 43, .07);
  --radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 1120px; min-height: 720px; color: var(--text); background: var(--bg); font-size: 13px; letter-spacing: 0; }
button, textarea, input { font: inherit; }
button { border: 0; cursor: pointer; color: inherit; }
.app-shell { display: flex; height: 100vh; overflow: hidden; }

.sidebar { width: 244px; flex: 0 0 244px; display: flex; flex-direction: column; padding: 25px 14px 18px; background: var(--sidebar); border-right: 1px solid var(--line); backdrop-filter: blur(20px); }
.sidebar-top { display: flex; align-items: center; gap: 10px; padding: 0 11px 28px; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; color: white; background: #23272f; border-radius: 9px; font-weight: 700; font-size: 15px; box-shadow: 0 5px 12px rgba(35,39,47,.16); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }.brand-copy strong { font-size: 14px; }.brand-copy span { color: var(--muted); font-size: 11px; margin-top: 3px; }.brand-copy small { min-height: 9px; margin-top: 4px; color: #b0b5bd; font-size: 8px; font-weight: 600; letter-spacing: .02em; }
.new-project { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 38px; border-radius: 9px; background: var(--text); color: #fff; font-weight: 600; box-shadow: 0 6px 14px rgba(32,36,43,.12); }.button-icon { font-size: 18px; line-height: 1; font-weight: 400; }
.nav-group { display: grid; gap: 4px; margin-top: 23px; }.nav-item, .project-item { display: flex; align-items: center; gap: 11px; width: 100%; height: 35px; padding: 0 11px; background: transparent; border-radius: 8px; color: #636a75; text-align: left; }.nav-item:hover, .project-item:hover, .nav-item.active { background: #eceef2; color: var(--text); }.nav-item.active { font-weight: 600; }.nav-icon { width: 16px; text-align: center; color: #8c939e; font-size: 16px; }.nav-item.active .nav-icon { color: var(--accent); }.nav-count { margin-left: auto; color: #a3a8b0; font-size: 11px; }
.sidebar-label { margin: 28px 11px 8px; color: #a1a6ae; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }.project-list { display: grid; gap: 3px; min-height: 35px; }.project-item { font-size: 12px; white-space: nowrap; overflow: hidden; }.project-item span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }.project-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; }.coral { background: var(--accent); }.blue { background: #6d8de6; }.yellow { background: #dfb34b; }.project-more { display: none; margin-left: auto; color: #9ba0a9; }.project-item.selected .project-more { display: block; }.sidebar-empty { padding: 10px 11px; color: #a1a6ae; font-size: 11px; }.sidebar-bottom { margin-top: auto; }.usage-card { margin: 0 5px 15px; padding: 12px 12px 11px; background: #f0f1f4; border: 1px solid #e8e9ed; border-radius: 9px; }.usage-head { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 11px; color: #727985; }.usage-head strong { color: var(--text); font-size: 11px; }.usage-track { height: 4px; overflow: hidden; border-radius: 10px; background: #dfe2e7; }.usage-track span { display: block; width: 0; height: 100%; background: var(--accent); border-radius: inherit; transition: width .25s ease; }.usage-card small { display: block; margin-top: 8px; color: #a0a5ad; font-size: 10px; }.profile-wrap { position: relative; width: 100%; margin-top: 10px; }.profile-row { display: flex; align-items: center; gap: 9px; width: 100%; min-width: 0; height: 49px; padding: 10px; margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; outline: 0; background: transparent; appearance: none; text-align: left; }.profile-row:hover, .profile-row[aria-expanded="true"] { background: #eceef2; }.avatar { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; background: #f1d5ce; color: #a95b4c; border-radius: 50%; font-size: 12px; font-weight: 600; }.profile-copy { display: flex; flex-direction: column; min-width: 0; gap: 2px; }.profile-copy strong { overflow: hidden; color: var(--text); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.profile-copy span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.profile-chevron { margin-left: auto; flex: 0 0 auto; color: #a3a8af; font-size: 17px; }.account-menu { position: absolute; right: 7px; bottom: 54px; left: 7px; z-index: 8; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 10px 28px rgba(32,36,43,.14); }.account-menu button { display: block; width: 100%; padding: 8px 9px; border-radius: 5px; background: transparent; color: #737a85; font-size: 11px; text-align: left; }.account-menu button:hover { background: #f1f2f5; color: var(--text); }.account-menu #accountLogoutBtn:hover { color: #d45647; }.dark .profile-row:hover, .dark .profile-row[aria-expanded="true"] { background: #2d323a; }.dark .account-menu button:hover { background: #2d323a; }
.project-row { position: relative; display: flex; align-items: center; }.project-row .project-item { padding-right: 34px; }.project-row .project-more { position: absolute; right: 7px; display: none; width: 25px; height: 25px; padding: 0; border-radius: 5px; background: transparent; color: #999fa8; }.project-row:hover .project-more, .project-row:has(.project-item.selected) .project-more { display: block; }.project-row .project-more:hover { background: #e2e4e8; color: var(--text); }.project-menu { position: absolute; top: 31px; right: 4px; z-index: 12; width: 102px; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: 0 10px 24px rgba(32,36,43,.15); }.project-menu button { display: block; width: 100%; padding: 7px 8px; border-radius: 4px; background: transparent; color: #676e79; font-size: 10px; text-align: left; }.project-menu button:hover { background: #f0f1f4; }.project-menu button.danger { color: #d45647; }.usage-card { cursor: pointer; outline: 0; }.usage-card:hover, .usage-card:focus-visible { border-color: #d9b4ae; }.usage-modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(27,30,35,.38); backdrop-filter: blur(12px); }.usage-sheet { width: min(460px, 100%); padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 24px 70px rgba(32,36,43,.22); }.usage-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; }.usage-sheet h2 { margin: 7px 0 0; font-size: 20px; }.usage-close { width: 28px; height: 28px; border-radius: 6px; background: transparent; color: #9aa0aa; }.usage-close:hover { background: var(--surface-soft); color: var(--text); }.usage-summary { display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: baseline; gap: 5px 8px; margin-top: 24px; }.usage-summary strong { font-size: 22px; }.usage-summary span { color: var(--muted); font-size: 10px; }.usage-detail-track { height: 6px; margin-top: 18px; overflow: hidden; border-radius: 4px; background: var(--line); }.usage-detail-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .25s ease; }.usage-detail-copy { margin: 9px 0 0; color: var(--muted); font-size: 10px; }.usage-detail-section { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }.usage-project-list { display: grid; gap: 2px; margin-top: 10px; }.usage-project-list > div { display: flex; justify-content: space-between; padding: 8px 0; color: #666d78; font-size: 11px; }.usage-project-list strong { color: var(--text); font-size: 11px; }.usage-empty { padding: 10px 0; color: var(--muted); font-size: 11px; }.dark .project-row .project-more:hover, .dark .project-menu button:hover { background: #2d323a; }

.main-area { min-width: 0; flex: 1; display: flex; flex-direction: column; }.topbar { height: 71px; flex: 0 0 71px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; background: rgba(249,250,252,.75); border-bottom: 1px solid var(--line); }.breadcrumb { display: flex; align-items: center; gap: 11px; color: #a1a6ae; font-size: 12px; }.breadcrumb strong { color: #4d545f; font-weight: 600; }.slash { color: #c1c5cb; }.rename-btn { padding: 2px 4px; background: transparent; color: #b0b5bd; font-size: 13px; }.top-actions { display: flex; align-items: center; gap: 8px; }.icon-btn { display: grid; place-items: center; width: 31px; height: 31px; background: transparent; color: #8e949e; border-radius: 7px; font-size: 15px; }.icon-btn:hover { background: #eceef2; color: var(--text); }.top-divider { width: 1px; height: 19px; margin: 0 8px; background: var(--line-strong); }.export-btn { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: #535a65; font-size: 12px; font-weight: 600; box-shadow: 0 2px 5px rgba(32,36,43,.03); }.export-btn span { color: var(--accent); font-size: 16px; }
.workspace { min-height: 0; flex: 1; display: grid; grid-template-columns: minmax(560px, 1fr) 350px; gap: 30px; padding: 36px 36px 28px 40px; overflow: auto; }.editor-column { min-width: 0; max-width: 780px; width: 100%; justify-self: center; }.section-heading, .preview-heading, .inspector-heading, .section-row { display: flex; align-items: flex-end; justify-content: space-between; }.eyebrow { display: block; color: #a7adb6; font-size: 9px; line-height: 1; letter-spacing: .14em; font-weight: 700; }.section-heading h1, .preview-heading h2, .inspector-heading h2, .section-row h2 { margin: 7px 0 0; font-size: 19px; letter-spacing: -.02em; font-weight: 650; }.editor-tools { display: flex; align-items: center; gap: 12px; color: #a2a7af; font-size: 11px; }.small-btn { padding: 6px 9px; background: transparent; color: #777e89; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 11px; }.small-btn:hover { border-color: #c4c8d0; background: #fff; }.editor-card { margin-top: 17px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }.editor-toolbar { display: flex; align-items: center; gap: 4px; height: 42px; padding: 0 15px; border-bottom: 1px solid var(--line); background: #fcfcfd; }.format-btn { padding: 5px 9px; background: transparent; color: #9ba1ab; border-radius: 5px; font-size: 11px; }.format-btn.active { background: #f0f1f4; color: #626975; font-weight: 600; }.toolbar-spacer { flex: 1; }.toolbar-icon { width: 24px; height: 24px; color: #a8adb5; background: transparent; font-size: 14px; }.editor-card textarea { display: block; width: 100%; min-height: 299px; padding: 22px 24px; resize: vertical; border: 0; outline: 0; color: #424851; background: var(--surface); font-size: 14px; line-height: 1.95; }.editor-footer { display: flex; align-items: center; justify-content: space-between; padding: 10px 17px 11px; border-top: 1px solid #f0f1f4; color: #b0b5bd; font-size: 10px; }.shortcut { color: #afb4bc; }.preview-heading { margin-top: 38px; align-items: center; }.preview-heading h2 { font-size: 16px; }.preview-status { color: #b0b5bd; font-size: 11px; }.player-card { margin-top: 14px; padding: 18px 19px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 11px 30px rgba(32,36,43,.045); }.player-main { display: flex; align-items: center; gap: 12px; }.play-btn { display: grid; place-items: center; width: 37px; height: 37px; color: white; background: var(--accent); border-radius: 50%; font-size: 14px; box-shadow: 0 5px 12px rgba(232,101,83,.22); }.play-btn:hover { background: #d85a49; }.player-copy { display: flex; flex-direction: column; gap: 3px; }.player-copy strong { font-size: 12px; font-weight: 600; }.player-copy span { color: #a2a7af; font-size: 10px; }.player-time { margin-left: auto; color: #9da3ac; font-size: 10px; }.waveform { height: 48px; display: flex; align-items: center; gap: 3px; margin: 12px 0 8px 49px; opacity: .25; }.wave { width: 3px; min-height: 5px; background: var(--accent); border-radius: 4px; }.player-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 11px; border-top: 1px solid #f0f1f4; color: #b1b6be; font-size: 10px; }.download-link { padding: 0; background: transparent; color: #a1a6ae; font-size: 10px; }.download-link:disabled { opacity: .5; cursor: default; }

.inspector { padding: 1px 0 0; }.inspector-heading { align-items: center; }.inspector-heading h2 { font-size: 19px; }.reset-btn { padding: 4px 0; color: #a3a8b1; background: transparent; font-size: 11px; }.reset-btn:hover { color: var(--accent); }.model-select-wrap { position: relative; margin-top: 17px; }.model-select-wrap label { display: block; margin-bottom: 7px; color: #7d848f; font-size: 10px; font-weight: 600; }.model-select-wrap select { appearance: none; width: 100%; height: 34px; padding: 0 30px 0 11px; outline: 0; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: #565e69; font-size: 11px; cursor: pointer; }.model-select-wrap select:focus { border-color: #dfaaa1; box-shadow: 0 0 0 3px rgba(232,101,83,.08); }.select-chevron { position: absolute; right: 11px; bottom: 8px; color: #9da3ac; pointer-events: none; }.model-note { margin-top: 7px; color: #a6abb3; font-size: 10px; line-height: 1.55; }.voice-tabs { display: flex; gap: 22px; margin-top: 17px; border-bottom: 1px solid var(--line); }.voice-tab { position: relative; padding: 0 0 11px; background: transparent; color: #a3a8b0; font-size: 11px; }.voice-tab.active { color: #4c535e; font-weight: 650; }.voice-tab.active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--accent); border-radius: 2px; }.voice-tab.disabled-tab { color: #c4c8ce; }.voice-tab.disabled-tab::after { display: none; }.voice-tab span { margin-left: 4px; color: #b6bbc2; font-size: 10px; }.voice-list { display: grid; gap: 8px; margin-top: 14px; }
.voice-list-toggle { display: flex; align-items: center; justify-content: center; gap: 5px; height: 30px; margin-top: 2px; border-radius: 7px; background: transparent; color: #9298a1; font-size: 11px; font-weight: 600; }
.voice-list-toggle:hover { color: var(--accent); background: var(--accent-soft); }
.voice-list-toggle-chevron { font-size: 10px; }.voice-card { position: relative; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; min-height: 61px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.72); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }.voice-card:hover { border-color: #d9b4ae; transform: translateY(-1px); }.voice-card.selected { border-color: rgba(232,101,83,.7); box-shadow: 0 4px 13px rgba(232,101,83,.09); background: #fffdfd; }.voice-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #fff; font-size: 12px; font-weight: 650; }.voice-card:nth-child(1) .voice-avatar { background: #4f607d; }.voice-card:nth-child(2) .voice-avatar { background: #d79c93; }.voice-card:nth-child(3) .voice-avatar { background: #6c8dc8; }.voice-card:nth-child(4) .voice-avatar { background: #9a806f; }.voice-card:nth-child(5) .voice-avatar { background: #6e697d; }.voice-card:nth-child(6) .voice-avatar { background: #a99a65; }.voice-meta { min-width: 0; }.voice-name { display: block; color: #4a515b; font-size: 12px; font-weight: 600; }.voice-desc { display: block; margin-top: 4px; overflow: hidden; color: #a4a9b1; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }.voice-play { display: grid; place-items: center; width: 26px; height: 26px; background: transparent; color: #a3a8b0; border-radius: 50%; font-size: 12px; }.voice-card.selected .voice-play { color: var(--accent); background: var(--accent-soft); }.custom-panel { margin-top: 15px; }.custom-panel label { display: block; margin-bottom: 8px; color: #6e7580; font-size: 11px; font-weight: 600; }.custom-panel textarea, .direction-input { display: block; width: 100%; min-height: 121px; padding: 12px 13px; resize: vertical; outline: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: #59616c; font-size: 11px; line-height: 1.75; }.custom-panel textarea:focus, .direction-input:focus { border-color: #dfaaa1; box-shadow: 0 0 0 3px rgba(232,101,83,.08); }.prompt-hint { display: flex; gap: 5px; align-items: center; margin: 8px 0 11px; color: #adb2b9; font-size: 10px; }.prompt-hint span { color: var(--accent); font-size: 14px; }.outline-btn { width: 100%; height: 32px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: #656c77; font-size: 11px; font-weight: 600; }.outline-btn:hover { border-color: #d8a49b; color: var(--accent); }.hidden { display: none !important; }.inspector-section { margin-top: 29px; padding-top: 21px; border-top: 1px solid var(--line); }.section-row { align-items: center; }.section-row h2 { font-size: 15px; }.collapse-btn { width: 23px; height: 23px; background: transparent; color: #abb0b8; font-size: 14px; }.direction-input { min-height: 80px; margin-top: 15px; }.quick-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }.quick-tags button { padding: 5px 8px; background: #f5f6f8; border-radius: 5px; color: #9298a1; font-size: 10px; }.quick-tags button:hover { background: var(--accent-soft); color: var(--accent); }.output-section { margin-top: 22px; }.setting-row { display: flex; align-items: center; justify-content: space-between; min-height: 35px; border-bottom: 1px solid #f0f1f4; color: #858c97; font-size: 11px; }.segmented { display: flex; gap: 2px; padding: 2px; background: #f0f1f4; border-radius: 5px; }.segmented button { padding: 4px 8px; background: transparent; border-radius: 4px; color: #9da3ad; font-size: 10px; }.segmented button.active { background: #fff; color: #59616c; box-shadow: 0 1px 3px rgba(32,36,43,.08); font-weight: 600; }.range-wrap { display: flex; align-items: center; gap: 9px; width: 155px; }.range-wrap input { accent-color: var(--accent); flex: 1; height: 3px; }.range-wrap span { width: 28px; color: #a5aab2; font-size: 10px; text-align: right; }.generate-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 42px; margin-top: 24px; border-radius: 9px; background: var(--accent); color: white; font-size: 12px; font-weight: 650; box-shadow: 0 7px 16px rgba(232,101,83,.2); }.generate-btn:hover { background: #d85a49; }.generate-btn.loading { cursor: wait; opacity: .86; }.sparkle { font-size: 15px; }.generate-shortcut { margin-left: 9px; color: rgba(255,255,255,.65); font-size: 10px; font-weight: 400; }.api-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; color: #abb0b8; font-size: 10px; }.status-dot { width: 5px; height: 5px; background: #63b583; border-radius: 50%; }.api-note button { padding: 0; background: transparent; color: #969ca5; text-decoration: underline; text-underline-offset: 2px; font-size: 10px; }
.toast { position: fixed; bottom: 25px; left: 50%; z-index: 5; padding: 10px 15px; border-radius: 8px; background: #272c34; color: white; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity .2s, transform .2s; font-size: 11px; box-shadow: 0 8px 22px rgba(32,36,43,.18); }.toast.show { opacity: 1; transform: translate(-50%, 0); }
.editor-generate-btn { width: auto; min-width: 180px; margin: 16px 0 0 auto; padding: 0 20px; }
.generation-progress { min-height: 17px; margin-top: 7px; color: #a1a6ae; font-size: 10px; text-align: right; }
.quota-hint { min-height: 16px; margin-top: 2px; color: #a1a6ae; font-size: 10px; text-align: right; }.quota-hint.warning { color: #d45647; }
.cancel-generate { display: block; margin: 4px 0 0 auto; padding: 4px 0; background: transparent; color: #a3a8b0; font-size: 10px; }.cancel-generate:hover { color: #d45647; }
.save-status { color: #aab0b8; }.saved-voices { display: grid; gap: 6px; margin-top: 12px; }.saved-voice { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; color: #777e88; font-size: 10px; }.saved-voice > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.saved-voice-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }.saved-voice button { padding: 0; background: transparent; color: var(--accent); font-size: 10px; }.saved-voice .saved-voice-delete { color: #aeb3bb; }.saved-voice .saved-voice-delete:hover { color: #d45647; }
.audio-progress { display: block; width: calc(100% - 49px); height: 3px; margin: 0 0 12px 49px; accent-color: var(--accent); }.audio-progress:disabled { opacity: .35; }
.history-view { min-height: 0; flex: 1; padding: 36px 40px 28px; overflow: auto; }.history-heading { display: flex; align-items: flex-end; justify-content: space-between; max-width: 960px; margin: 0 auto; }.history-heading h1 { margin: 7px 0 0; font-size: 22px; font-weight: 650; }.history-list { display: grid; gap: 9px; max-width: 960px; margin: 20px auto 0; }.history-empty { padding: 56px 20px; border: 1px dashed var(--line-strong); border-radius: 10px; color: #a3a8b0; text-align: center; }.history-item { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 15px 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 6px 20px rgba(32,36,43,.035); }.history-main { min-width: 0; }.history-text { overflow: hidden; color: #4a515b; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }.history-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 6px; color: #a1a6ae; font-size: 10px; }.history-actions { display: flex; align-items: center; gap: 7px; }.history-actions button { padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: #737a85; font-size: 10px; }.history-actions button:hover { border-color: #d8a49b; color: var(--accent); }.history-actions .history-delete { border-color: transparent; background: transparent; color: #b0b5bd; }.history-actions .history-delete:hover { color: #d45647; }.dark .history-item { background: var(--surface); }.dark .history-text { color: #d9dde3; }
.history-tools, .voices-tools { display: flex; align-items: center; gap: 8px; }.history-tools select { height: 29px; padding: 0 28px 0 9px; border: 1px solid var(--line-strong); border-radius: 6px; outline: 0; background: var(--surface); color: #737a85; font-size: 10px; }.voices-view { min-height: 0; flex: 1; padding: 36px 40px 28px; overflow: auto; }.voices-heading { display: flex; align-items: flex-end; justify-content: space-between; max-width: 960px; margin: 0 auto; }.voices-heading h1 { margin: 7px 0 0; font-size: 22px; }.voices-heading p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }.voice-search { display: flex; align-items: center; gap: 7px; width: 210px; height: 30px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--muted); }.voice-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 11px; }.voices-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 960px; margin: 22px auto 0; }.my-voice-card { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 6px 20px rgba(32,36,43,.035); }.my-voice-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; color: #fff; font-weight: 650; }.voice-tone-0 { background: #4f607d; }.voice-tone-1 { background: #c78075; }.voice-tone-2 { background: #668d83; }.voice-tone-3 { background: #8b75a6; }.my-voice-copy { min-width: 0; }.my-voice-copy h2 { margin: 1px 0 5px; font-size: 13px; }.my-voice-copy p { display: -webkit-box; margin: 0; overflow: hidden; color: #8f96a0; font-size: 10px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.my-voice-date { grid-column: 2; color: #b0b5bd; font-size: 9px; }.my-voice-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 6px; padding-top: 11px; border-top: 1px solid var(--line); }.my-voice-actions button { padding: 6px 9px; border-radius: 6px; background: transparent; color: #858c96; font-size: 10px; }.my-voice-actions button:hover { background: var(--surface-soft); color: var(--text); }.my-voice-actions .voice-use-btn { margin-right: auto; background: var(--accent-soft); color: var(--accent); }.my-voice-actions .danger:hover { color: #d45647; }.voices-empty { grid-column: 1 / -1; display: grid; gap: 7px; place-items: center; min-height: 210px; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--muted); }.voices-empty strong { color: #686f7a; font-size: 13px; }.voices-empty span { font-size: 10px; }.voice-modal { position: fixed; inset: 0; z-index: 32; display: grid; place-items: center; padding: 20px; background: rgba(27,30,35,.38); backdrop-filter: blur(12px); }.voice-sheet { width: min(470px,100%); padding: 25px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 24px 70px rgba(32,36,43,.22); }.voice-sheet-head { display: flex; justify-content: space-between; }.voice-sheet h2 { margin: 7px 0 0; font-size: 20px; }.voice-close { width: 28px; height: 28px; border-radius: 6px; background: transparent; color: var(--muted); }.voice-form-field { display: grid; gap: 7px; margin-top: 17px; color: #737a85; font-size: 10px; font-weight: 600; }.voice-form-field input, .voice-form-field textarea { width: 100%; padding: 10px 11px; outline: 0; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--text); font-size: 11px; }.voice-form-field textarea { min-height: 126px; resize: vertical; line-height: 1.7; }.voice-form-field input:focus, .voice-form-field textarea:focus { border-color: #dfaaa1; box-shadow: 0 0 0 3px rgba(232,101,83,.08); }.voice-form-error { min-height: 15px; margin: 8px 0 0; color: #d45647; font-size: 10px; }.voice-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; }.voice-form-actions .generate-btn { width: 105px; height: 32px; margin: 0; box-shadow: none; }.voice-form-actions .small-btn { height: 32px; }.dark .voice-search input, .dark .voice-form-field input, .dark .voice-form-field textarea, .dark .history-tools select { background: var(--surface); }
.auth-modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(27,30,35,.32); backdrop-filter: blur(12px); }.auth-sheet { width: min(390px, 100%); padding: 30px; border: 1px solid rgba(255,255,255,.55); border-radius: 16px; background: var(--surface); box-shadow: 0 24px 70px rgba(32,36,43,.22); }.auth-mark { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px; border-radius: 10px; background: var(--text); color: var(--surface); font-weight: 700; }.auth-sheet h2 { margin: 8px 0 7px; font-size: 22px; }.auth-sheet > p { margin: 0 0 20px; color: #9298a2; font-size: 11px; line-height: 1.6; }.auth-field { display: grid; gap: 6px; margin-top: 12px; color: #737a85; font-size: 10px; font-weight: 600; }.auth-field input { width: 100%; height: 36px; padding: 0 11px; outline: 0; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--text); font-size: 12px; }.auth-field input:focus { border-color: #dfaaa1; box-shadow: 0 0 0 3px rgba(232,101,83,.08); }.auth-submit { width: 100%; height: 38px; margin-top: 17px; border-radius: 8px; background: var(--accent); color: white; font-size: 12px; font-weight: 650; }.auth-submit:disabled { opacity: .6; cursor: wait; }.auth-switch, .auth-close { display: block; width: 100%; margin-top: 13px; padding: 0; background: transparent; color: #8f96a1; font-size: 10px; }.auth-switch { color: var(--accent); }.auth-error { min-height: 16px; margin: 10px 0 -3px; color: #d45647; font-size: 10px; }.dark .auth-sheet { border-color: var(--line-strong); }.dark .auth-field input { background: #20242a; }
.polish-btn { padding: 3px 0; background: transparent; color: var(--accent); font-size: 10px; font-weight: 600; }.polish-btn:hover { color: #c64e3f; }.section-actions { display: flex; align-items: center; gap: 8px; }.custom-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.custom-actions .outline-btn { width: 100%; }

body.dark { --bg: #1b1e23; --surface: #24282f; --surface-soft: #20242a; --sidebar: rgba(29,32,38,.92); --text: #edf0f3; --muted: #8c939d; --line: #333841; --line-strong: #444a55; --accent-soft: #382523; --shadow: 0 18px 45px rgba(0,0,0,.18); }.dark .topbar { background: rgba(29,32,38,.84); }.dark .editor-toolbar, .dark .voice-card.selected { background: #292e36; }.dark .nav-item:hover, .dark .project-item:hover, .dark .nav-item.active, .dark .usage-card, .dark .quick-tags button, .dark .segmented { background: #2d323a; }.dark .editor-card textarea, .dark .custom-panel textarea, .dark .direction-input { color: #d6dae0; }.dark .editor-footer, .dark .player-bottom, .dark .setting-row { border-color: #333841; }.dark .player-card, .dark .editor-card, .dark .voice-card, .dark .outline-btn, .dark .export-btn { background: var(--surface); }.dark .voice-name, .dark .breadcrumb strong, .dark .format-btn.active, .dark .segmented button.active { color: #d9dde3; }.dark .format-btn.active, .dark .segmented button.active { background: #363b44; }.dark .brand-mark { background: #f1f3f5; color: #24282f; }

@media (max-width: 1200px) { .workspace { grid-template-columns: minmax(500px, 1fr) 320px; gap: 22px; padding-left: 28px; padding-right: 28px; }.sidebar { width: 220px; flex-basis: 220px; } }
@media (max-width: 900px) {
  body { min-width: 0; overflow: auto; }
  .app-shell { min-height: 100vh; height: auto; }
  .sidebar { display: none; }
  .main-area { width: 100%; }
  .topbar { position: sticky; top: 0; z-index: 4; height: 60px; flex-basis: 60px; padding: 0 18px; backdrop-filter: blur(18px); }
  .breadcrumb > span:first-child, .slash, .rename-btn, .top-actions .icon-btn, .top-divider { display: none; }
  .workspace { display: block; padding: 24px 18px 36px; overflow: visible; }
  .editor-column { max-width: none; }
  .editor-card textarea { min-height: 260px; }
  .inspector { margin-top: 34px; padding-top: 27px; border-top: 1px solid var(--line); }
  .waveform { margin-left: 0; overflow: hidden; }
  .history-view { padding: 24px 18px 36px; }.history-item { grid-template-columns: 1fr; gap: 12px; }.history-actions { justify-content: flex-end; }
}

/* Web Audio renders the complete waveform and live playback state on one canvas. */
.waveform { position: relative; width: calc(100% - 49px); min-height: 48px; gap: 2px; overflow: hidden; opacity: .92; }
.waveform-canvas { display: block; width: 100%; height: 100%; min-height: 48px; }
.waveform.playing { filter: saturate(1.08); }

@media (max-width: 900px) {
  .waveform { width: 100%; margin-left: 0; }
  .audio-progress { width: 100%; margin-left: 0; }
}

.player-bottom-left { display: flex; align-items: center; gap: 12px; }
.video-mode-btn { display: flex; align-items: center; gap: 5px; padding: 0; background: transparent; color: #a1a6ae; font-size: 10px; font-weight: 600; }
.video-mode-btn:hover { color: var(--accent); }
.video-mode-btn.active { color: var(--accent); }
.video-mode-btn:disabled { opacity: .5; cursor: default; }
.video-mode-btn:disabled:hover { color: #a1a6ae; }

.video-modal { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; padding: 20px; background: rgba(27,30,35,.5); backdrop-filter: blur(12px); }
.video-modal.hidden { display: none; }
.video-sheet { width: min(760px, 100%); max-height: calc(100vh - 40px); padding: 20px; border: 1px solid rgba(255,255,255,.55); border-radius: 18px; background: var(--surface); box-shadow: 0 24px 70px rgba(32,36,43,.28); overflow: auto; }
.video-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.video-close { display: grid; place-items: center; width: 26px; height: 26px; color: #9298a2; background: #f0f1f4; border-radius: 50%; font-size: 12px; }
.video-close:hover { color: var(--text); background: #e6e8ec; }

.video-sheet-body { display: flex; align-items: flex-start; gap: 22px; }
.video-frame { position: relative; flex: 0 0 280px; width: 280px; height: min(497px, calc(100vh - 130px)); margin: 0 auto; overflow: hidden; border-radius: 22px; background: #1b1e23; box-shadow: 0 10px 30px rgba(32,36,43,.25); }
.video-bg { position: absolute; inset: 0; background: linear-gradient(160deg, #3a3f4a, #1b1e23) center / cover no-repeat; }
.video-bg.has-image { background-image: var(--video-bg-image); }
.video-bg-upload { position: absolute; top: 16px; right: 16px; padding: 7px 11px; border-radius: 8px; background: rgba(20,22,26,.55); color: #f2f3f5; font-size: 10px; font-weight: 600; backdrop-filter: blur(6px); }
.video-bg-upload:hover { background: rgba(20,22,26,.72); }
.video-frame-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 16px 18px 22px; background: linear-gradient(to top, rgba(10,11,13,.72), rgba(10,11,13,0)); }
.video-play-btn { flex: 0 0 37px; }
.video-waveform { flex: 1; width: auto; margin: 0; opacity: .95; }
.video-waveform .waveform-canvas { filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }

.video-side { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 4px; }
.video-color-picker { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.video-color-label { color: #9298a2; font-size: 10.5px; font-weight: 600; }
.video-color-swatches { display: flex; align-items: center; gap: 8px; }
.video-color-swatch { width: 22px; height: 22px; padding: 0; border-radius: 50%; background: var(--swatch-color); box-shadow: 0 0 0 1px rgba(32,36,43,.12) inset; }
.video-color-swatch.active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--swatch-color); }
.video-color-custom { width: 22px; height: 22px; padding: 0; border: none; border-radius: 50%; overflow: hidden; background: transparent; cursor: pointer; }
.video-color-custom::-webkit-color-swatch-wrapper { padding: 0; }
.video-color-custom::-webkit-color-swatch { border: 1px solid rgba(32,36,43,.15); border-radius: 50%; }
.video-generate-btn { display: flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 9px; background: var(--accent); color: white; font-size: 12px; font-weight: 650; box-shadow: 0 6px 14px rgba(232,101,83,.22); }
.video-generate-btn:hover { background: #d85a49; }
.video-generate-btn:disabled { opacity: .55; cursor: wait; }
.video-generate-status { color: #a2a7af; font-size: 10.5px; }

.video-side-empty { margin-top: 6px; color: #b0b5bd; font-size: 11px; line-height: 1.6; }
.video-result { width: 100%; margin-top: 4px; }
.video-result.hidden { display: none; }
.video-result-player { display: block; width: 100%; max-height: min(420px, calc(100vh - 220px)); border-radius: 12px; background: #14161a; }
.video-result-download { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; padding: 0; background: transparent; color: var(--accent); font-size: 11px; font-weight: 600; text-decoration: none; }
.video-result-download:hover { color: #d85a49; }

@media (max-width: 900px) {
  .video-frame { width: min(280px, 82vw); height: min(497px, 60vh); }
  .video-sheet-body { flex-direction: column; align-items: center; }
  .video-frame { margin: 0 auto; }
  .video-side { width: 100%; align-items: stretch; }
}

body.dark .video-close { background: #2d323a; color: #c7cbd2; }
body.dark .video-close:hover { background: #363b44; }

.project-modal { position: fixed; inset: 0; z-index: 34; display: grid; place-items: center; padding: 20px; background: rgba(27,30,35,.38); backdrop-filter: blur(12px); }
.project-sheet { width: min(390px, 100%); padding: 24px 25px 22px; border: 1px solid var(--line); border-radius: 14px; outline: 0; background: var(--surface); box-shadow: 0 24px 70px rgba(32,36,43,.22); }
.project-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.project-sheet-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 17px; }
.project-close { width: 28px; height: 28px; border-radius: 6px; background: transparent; color: var(--muted); font-size: 13px; }
.project-close:hover { background: var(--surface-soft); color: var(--text); }
.project-sheet h2 { margin: 8px 0 6px; font-size: 21px; letter-spacing: -.02em; }
.project-sheet > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.project-form-field { display: grid; gap: 7px; margin-top: 20px; color: #737a85; font-size: 10px; font-weight: 600; }
.project-form-field input { width: 100%; height: 38px; padding: 0 11px; outline: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 12px; }
.project-form-field input:focus { border-color: #dfaaa1; box-shadow: 0 0 0 3px rgba(232,101,83,.08); }
.project-form-error { min-height: 15px; margin: 7px 0 0 !important; color: #d45647 !important; font-size: 10px !important; }
.project-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 7px; }
.project-form-actions .small-btn { height: 34px; }
.project-submit { height: 34px; padding: 0 15px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 650; box-shadow: 0 5px 12px rgba(232,101,83,.18); }
.project-submit:hover { background: #d85a49; }.project-submit:disabled { cursor: wait; opacity: .65; }.dark .project-form-field input { background: #20242a; }.dark .project-sheet { box-shadow: 0 24px 70px rgba(0,0,0,.4); }

.announcement-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(27,30,35,.42); backdrop-filter: blur(14px); }
.announcement-sheet { width: min(430px, 100%); padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 26px 80px rgba(32,36,43,.25); }
.announcement-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.announcement-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-size: 17px; }
.announcement-close { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; }
.announcement-close:hover { background: var(--surface-soft); color: var(--text); }
.announcement-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); font-size: 9px; font-weight: 700; }
.announcement-sheet h2 { margin: 12px 0 8px; font-size: 22px; line-height: 1.35; }
.announcement-sheet > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; white-space: pre-line; }
.announcement-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.announcement-actions .small-btn, .announcement-action { height: 35px; padding: 0 15px; border-radius: 8px; font-size: 11px; font-weight: 650; }
.announcement-action { background: var(--accent); color: #fff; box-shadow: 0 5px 12px rgba(232,101,83,.18); }
.announcement-action:hover { background: #d85a49; }
.dark .announcement-sheet { box-shadow: 0 26px 80px rgba(0,0,0,.42); }
