:root {
  color-scheme: dark;
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  color: #edf0eb;
  background: #101414;
  --bg: #101414;
  --sidebar: #141919;
  --panel: #181d1d;
  --soft: #1d2423;
  --line: #2d3632;
  --muted: #a0ada4;
  --text: #edf0eb;
  --green: #c8f770;
  --green-ink: #18200e;
  --radius: 18px;
  --nav-width: 226px;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, label.upload-control { -webkit-tap-highlight-color: transparent; }
button, a { color: inherit; }
a { text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .50; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, label.upload-control:focus-within { outline: 2px solid var(--green); outline-offset: 3px; }
button, a, input, select, textarea { touch-action: manipulation; }
h1, h2, h3, p { margin: 0; }
svg { flex: 0 0 auto; vertical-align: middle; }
[hidden] { display: none !important; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 20; left: 12px; top: 12px; padding: 10px 14px; color: var(--green-ink); background: var(--green); border-radius: 8px; }

.shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--nav-width); border-right: 1px solid #26302b; background: var(--sidebar); display: flex; flex-direction: column; z-index: 6; overflow-y: auto; }
.brand { display: flex; gap: 11px; align-items: center; padding: 24px 18px 25px; font-size: 16px; font-weight: 750; letter-spacing: .02em; }
.brand-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--green); color: #20331a; }
.brand-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.7; stroke-linecap: round; }
.brand small { display: block; color: #8b9a8e; letter-spacing: .17em; font-weight: 700; font-size: 8px; margin-top: 4px; }
#navigation { padding: 0 11px 12px; flex: 1; }
.nav-group + .nav-group { margin-top: 25px; }
.nav-caption { padding: 0 10px 7px; color: #819086; font-size: 11px; letter-spacing: .08em; }
.nav-link { display: flex; align-items: center; min-height: 41px; gap: 10px; color: #bbc6be; border: 1px solid transparent; border-radius: 9px; padding: 8px 10px; font-size: 13px; }
.nav-link:hover { background: #222a26; color: #f2f8ec; }
.nav-link.active { color: #ddfaab; background: #28351f; border-color: #35452a; }
.nav-link.active svg { color: var(--green); }
.nav-out { margin-left: auto; color: #818f85; }
.sidebar-footer { display: flex; gap: 8px; align-items: center; color: #a8b4a9; margin: 12px; padding: 13px 9px; border-top: 1px solid #29322d; font-size: 11px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #aee275; box-shadow: 0 0 10px #aee27570; }
.surface { display: flex; flex-direction: column; min-height: 100vh; margin-left: var(--nav-width); }
.topbar { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 clamp(15px, 3.2vw, 45px); border-bottom: 1px solid #252c29; background: #111616; position: sticky; top: 0; z-index: 4; }
.topbar-left, .topbar-right, #breadcrumb, .heading-actions { display: flex; align-items: center; gap: 12px; }
.topbar-left, #breadcrumb { min-width: 0; }
#breadcrumb { font-size: 14px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb-mark { color: #819086; font-size: 17px; }
.topbar-right { flex-shrink: 0; }
.top-badge { color: #f5cc78; background: #30291b; border: 1px solid #4b3d24; border-radius: 999px; padding: 5px 9px; font-size: 11px; white-space: nowrap; }
.balance-pill { display: flex; align-items: center; gap: 6px; border-radius: 999px; color: #e1e7da; padding: 6px 9px; background: #202824; border: 1px solid #344038; font-size: 12px; white-space: nowrap; }
.balance-pill svg { color: var(--green); }
.balance-pill span { color: #a8b4a9; }
.account-button { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--text); padding: 0; }
.account-button > span, .account-summary > span { display: grid; place-items: center; background: #374832; border: 1px solid #55674b; color: #d6f6bc; width: 35px; height: 35px; font-size: 13px; font-weight: 750; border-radius: 50%; }
.account-button b { font-size: 12px; font-weight: 650; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.menu-toggle, .drawer-backdrop { display: none !important; }
#main { flex: 1; width: 100%; max-width: 1630px; margin-inline: auto; padding: clamp(18px, 3.5vw, 46px); }
#main:focus { outline: none; }
.page-footer { display: flex; justify-content: space-between; gap: 12px; color: #89978c; padding: 20px clamp(18px, 3.5vw, 46px) 24px; border-top: 1px solid #252d28; margin-top: 16px; font-size: 12px; }
.initial-loading { padding: 45px; color: var(--muted); }

.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; border: 1px solid transparent; text-align: center; font-weight: 650; }
.button { min-height: 42px; padding: 9px 15px; font-size: 13px; white-space: nowrap; }
.button.compact { min-height: 34px; font-size: 12px; padding: 6px 10px; }
.button.primary { background: var(--green); border-color: #d2f88e; color: var(--green-ink); }
.button.primary:hover:not(:disabled) { background: #ddff9e; }
.button.secondary, .icon-button { background: #222a26; color: #e4ebe1; border-color: #38453c; }
.button.secondary:hover:not(:disabled), .icon-button:hover:not(:disabled) { background: #303b33; border-color: #536458; }
.button.danger { background: #522823; color: #ffd4cd; border-color: #81453a; }
.icon-button { padding: 0; width: 34px; height: 34px; }
.compact-icon { width: 27px; height: 25px; }
.plain-button, .subtle-link { border: 0; background: transparent; color: #b7c7b9; padding: 5px 2px; font-size: 13px; }
.plain-button:hover, .subtle-link:hover { color: var(--green); }
.subtle-link { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; }
.badge { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 8px; border-radius: 999px; border: 1px solid transparent; font-size: 11px; font-weight: 650; white-space: nowrap; }
.badge.neutral { background: #252e2a; color: #b5c0b5; border-color: #39443c; }
.badge.test, .badge.status-queued { background: #392e1c; border-color: #614c2b; color: #f4ce87; }
.badge.live, .badge.status-succeeded { background: #283b27; border-color: #3f5a3d; color: #b8e5a4; }
.badge.status-running { background: #203649; border-color: #34546b; color: #b5d9f8; }
.badge.status-failed { background: #3e2927; border-color: #61403b; color: #ffb5a8; }
.eyebrow { display: block; font-size: 10px; font-weight: 800; letter-spacing: .17em; color: #a2ba97; }
.tone-lime { --tone: #c8f770; --tone-bg: #2e3c23; --tone-line: #47603a; }
.tone-violet { --tone: #d3b5ff; --tone-bg: #382b48; --tone-line: #594675; }
.tone-blue { --tone: #9cd5fc; --tone-bg: #243744; --tone-line: #3b536a; }
.tone-pink { --tone: #ffb6d6; --tone-bg: #442c3b; --tone-line: #624055; }
.tone-gold { --tone: #f5cc80; --tone-bg: #473724; --tone-line: #694f31; }
.tool-icon { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; flex-shrink: 0; color: var(--tone, var(--green)); background: var(--tone-bg, #2e3c23); border: 1px solid var(--tone-line, #47603a); }

.hero { min-height: 380px; display: grid; grid-template-columns: minmax(280px, .95fr) 1fr; border: 1px solid #394638; border-radius: 23px; overflow: hidden; position: relative; isolation: isolate; background: radial-gradient(ellipse at 81% 45%, #364830 0, #202d23 39%, #1b251e 61%, #18201a 100%); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, #19221a 19%, transparent 70%); }
.hero-content { align-self: center; padding: clamp(25px, 5vw, 68px); position: relative; z-index: 2; }
.hero-label { display: inline-flex; align-items: center; gap: 8px; color: #d7efba; padding: 6px 10px; border: 1px solid #4e6045; border-radius: 999px; background: #2a3827; font-size: 12px; letter-spacing: .04em; }
.hero-label span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: clamp(44px, 6.5vw, 91px); font-weight: 800; line-height: 1.01; letter-spacing: -.08em; margin: 17px 0; white-space: nowrap; }
.hero h1 span { color: var(--green); }
.hero p { max-width: 340px; line-height: 1.8; color: #bac9b9; font-size: 14px; }
.hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 23px; }
.hero-art { align-self: stretch; position: relative; isolation: isolate; pointer-events: none; }
.art-grid { position: absolute; z-index: -1; inset: 7% 1% 1% -14%; opacity: .4; transform: perspective(670px) rotateY(-14deg) skewY(-7deg); background: repeating-linear-gradient(0deg, #829b6936 0 1px, transparent 1px 34px), repeating-linear-gradient(90deg, #829b6936 0 1px, transparent 1px 34px); mask-image: radial-gradient(ellipse, black 20%, transparent 74%); }
.art-ball { position: absolute; width: clamp(190px, 25vw, 350px); aspect-ratio: 1; border-radius: 44% 56% 55% 45% / 52% 52% 48% 48%; top: 48%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg); background: radial-gradient(ellipse at 67% 28%, #f7ffbc 1%, #d9fa83 15%, #9bd857 31%, #537d38 52%, #25422b 71%, #172a20 86%); box-shadow: inset -12px -14px 40px #12281b, 0 0 50px #a9ed6045, 0 24px 66px #0c150ec0; }
.art-ball::after { content: ''; position: absolute; inset: 9%; border-radius: 50%; background: repeating-radial-gradient(ellipse at 37% 39%, transparent 0 9px, #efffba30 10px 11px, transparent 12px 17px); opacity: .62; transform: scaleX(.99) scaleY(.74) rotate(33deg); }
.art-orbit { position: absolute; z-index: 1; top: 48%; left: 50%; width: min(91%, 480px); aspect-ratio: 2.7; border: 1px solid #c6ec8c80; border-radius: 50%; }
.orbit-one { transform: translate(-50%, -50%) rotate(-29deg); }
.orbit-two { transform: translate(-50%, -50%) rotate(25deg); opacity: .68; }
.orbit-three { transform: translate(-50%, -50%) rotate(-46deg); width: min(86%, 450px); opacity: .35; }
.art-pill { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 11px; color: #e0f7c2; background: #263b2bd9; border: 1px solid #74956b8f; box-shadow: 0 11px 25px #101e1770; font-size: 12px; white-space: nowrap; }
.art-pill svg { color: #d5fc96; }
.art-pill-one { right: 11%; top: 21%; transform: rotate(5deg); }
.art-pill-two { left: 10%; bottom: 23%; transform: rotate(-7deg); }
.art-meta { position: absolute; right: 8%; bottom: 6%; color: #9db68e; font-size: 9px; font-weight: 800; letter-spacing: .19em; }

.section { margin-top: 36px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.section-title h2 { margin-top: 5px; font-size: clamp(21px, 2.1vw, 28px); letter-spacing: -.025em; }
.section-title p { color: var(--muted); font-size: 12px; }
.tool-grid, .asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.tool-card { display: block; background: linear-gradient(150deg, color-mix(in srgb, var(--tone-bg), #181d1d 70%), #181d1d 55%); border: 1px solid #2f3933; border-radius: 15px; padding: 16px; transition: transform .18s ease, border-color .18s ease, background .18s ease; min-width: 0; }
.tool-card:hover { transform: translateY(-3px); border-color: var(--tone-line); background: linear-gradient(150deg, color-mix(in srgb, var(--tone-bg), #181d1d 53%), #1b211e 70%); }
.card-top { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.tool-card h3 { margin: 13px 0 6px; font-size: 16px; }
.tool-card p { min-height: 40px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 13px; color: var(--tone); font-size: 12px; font-weight: 700; }
.discovery-card:hover { transform: none; }
.discovery-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.discovery-actions .marked { color: #e2fdb9; border-color: #557244; background: #30412a; }
.example-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.example-card { color: var(--text); text-align: left; background: var(--panel); border: 1px solid #313b35; border-radius: 14px; padding: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; }
.example-card:hover { border-color: var(--tone-line); }
.example-art { display: flex; justify-content: space-between; align-items: flex-end; grid-column: 1/-1; color: var(--tone); background: radial-gradient(ellipse at 14% 100%, var(--tone-bg), transparent 65%), repeating-linear-gradient(123deg, transparent 0 13px, #ffffff0c 14px 15px, transparent 16px 24px), #202624; padding: 15px 13px 12px; min-height: 75px; }
.example-art small { font-size: 9px; opacity: .85; }
.example-caption { padding: 12px 11px; }
.example-caption strong, .example-caption small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.example-caption strong { font-size: 12px; }
.example-caption small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.example-card > svg { margin-right: 10px; color: var(--tone); }

.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.page-heading h1 { font-size: clamp(28px, 4vw, 47px); letter-spacing: -.055em; margin: 7px 0 8px; }
.page-heading p { color: var(--muted); line-height: 1.7; font-size: 14px; }
.heading-actions { flex-shrink: 0; flex-wrap: wrap; }
.filters { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 0 0 16px; }
.filter { background: #1b221f; border: 1px solid #313c35; border-radius: 999px; color: #bdc9be; padding: 7px 12px; font-size: 12px; }
.filter:hover, .filter.selected { background: #2b3a26; border-color: #516645; color: #def5c9; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 16px; align-items: start; }
.form-panel, .result-panel { padding: clamp(13px, 2vw, 25px); }
.result-panel { min-height: 330px; }
.panel-title { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px solid #303933; margin-bottom: 16px; }
.panel-title h2 { font-size: 17px; }
.panel-title p { margin-top: 4px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.panel-title .badge { margin-left: auto; }
.field, .asset-field { display: grid; gap: 6px; min-width: 0; }
.field > span, .field > label, .check, .module-field legend { font-size: 13px; color: #e1e8df; font-weight: 630; }
.field em { font-style: normal; font-size: 10px; color: #cadf9f; margin-left: 7px; }
.field small, .hint, .selected-order small { color: var(--muted); font-size: 11px; line-height: 1.65; }
.field-note.is-error { color: #ffc4b6; }
.hint { margin: 12px 0 2px; }
form { display: grid; gap: 13px; }
input:not([type=checkbox]):not([type=file]), textarea, select { display: block; width: 100%; padding: 9px 10px; color: #eff5eb; background: #111717; border: 1px solid #3c4940; border-radius: 8px; min-width: 0; font-size: 13px; min-height: 38px; }
input::placeholder, textarea::placeholder { color: #819087; }
textarea { resize: vertical; min-height: 102px; line-height: 1.6; }
input[type=checkbox] { accent-color: var(--green); }
select[multiple] { min-height: 92px; padding: 5px; }
select[multiple] option { padding: 4px 5px; }
select[multiple] option:checked { background: #3c5833; color: #f5ffed; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 9px; }
.check { display: flex; align-items: center; gap: 6px; line-height: 1.5; }
.asset-picker { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 7px; }
.upload-control { cursor: pointer; position: relative; }
.upload-control input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.selected-order ol { margin: 0; padding: 0; list-style: none; }
.selected-order li { display: flex; align-items: center; gap: 5px; margin-top: 3px; padding: 3px 4px 3px 8px; background: #242e27; border-radius: 7px; font-size: 11px; }
.selected-order li span { flex: 1; overflow-wrap: anywhere; }
.module-field { padding: 9px; border: 1px solid #3c4940; border-radius: 8px; margin: 0; min-width: 0; }
.module-field legend { padding-inline: 5px; }
.module-field legend span { font-size: 10px; color: var(--muted); margin-left: 5px; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.module-grid .field > span { font-size: 11px; }
.submit-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #303933; padding-top: 14px; }
.submit-bar small, .submit-bar strong { display: block; }
.submit-bar small { color: var(--muted); font-size: 10px; }
.submit-bar strong { margin-top: 3px; color: #e0f4ca; font-size: 16px; }
.callout { display: flex; align-items: baseline; gap: 9px; border-radius: 9px; padding: 9px 11px; color: #c8d7cb; background: #222d27; border: 1px solid #39493e; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.callout strong { white-space: nowrap; }
.workspace-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -2px 0 14px; }
.workspace-shortcuts small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.drama-history { display: grid; gap: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.drama-history strong { font-size: 12px; color: #d5e7d1; }
.drama-history > div { display: flex; flex-wrap: wrap; gap: 6px; }
.test-callout { color: #ead5a5; background: #292419; border-color: #51432a; margin-bottom: 13px; }
.error-callout, .form-error { color: #ffc4b6; background: #352520; border: 1px solid #583d35; }
.form-error { border-radius: 8px; padding: 8px; font-size: 12px; }

.empty { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; text-align: center; padding: 20px 14px; }
.empty-icon { width: 51px; height: 51px; display: grid; place-items: center; color: #c3eaaa; background: #283729; border: 1px solid #435743; border-radius: 15px; margin-bottom: 4px; }
.empty strong { font-size: 16px; }
.empty p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.empty .button { margin-top: 3px; }
.job-detail { display: grid; gap: 10px; }
.job-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.job-head strong { font-size: 14px; }
progress { width: 100%; height: 8px; border: 0; overflow: hidden; border-radius: 999px; appearance: none; background: #29342b; }
progress::-webkit-progress-bar { background: #29342b; }
progress::-webkit-progress-value { background: var(--green); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--green); }
.job-caption { color: var(--muted); font-size: 11px; }
.result-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.result-meta span { background: #28352c; border-radius: 7px; color: #d2e5cc; padding: 4px 6px; font-size: 11px; }
.shot-list { max-height: 230px; overflow-y: auto; border-radius: 8px; border: 1px solid #38453b; }
.shot-list > div { display: flex; justify-content: space-between; padding: 8px; gap: 8px; font-size: 12px; }
.shot-list > div + div { border-top: 1px solid #38453b; }
.shot-list strong { color: #d6efbb; }
.result-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.68; font-size: 13px; max-height: 480px; overflow: auto; padding: 12px; border-radius: 8px; border: 1px solid #39463d; background: #111816; }
.output-list { display: grid; gap: 7px; }
.output-list article { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 7px; background: #222b25; border: 1px solid #37453a; border-radius: 9px; }
.output-list article > div, .asset-actions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.output-list strong, .output-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.output-list strong { font-size: 12px; }
.output-list small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.asset-icon { width: 32px; height: 32px; background: #303f31; color: #c4e9b5; display: grid; place-items: center; border-radius: 7px; }
.project-strip { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 7px; }
.project-strip .button { min-height: 38px; }
.conversation { display: grid; max-height: 320px; overflow: auto; gap: 8px; }
.bubble { padding: 8px 10px; border-radius: 10px; background: #222a26; border: 1px solid #344237; }
.bubble.user { margin-left: 12%; background: #2a372a; border-color: #3b503c; }
.bubble small { color: #aed49e; font-size: 10px; }
.bubble p { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; margin-top: 2px; }

.asset-card { padding: 12px; }
.asset-card-visual { display: flex; justify-content: space-between; align-items: start; gap: 8px; background: linear-gradient(130deg, var(--tone-bg), #1a211f); padding: 12px; border: 1px solid var(--tone-line); border-radius: 10px; min-height: 83px; }
.asset-card h3 { font-size: 15px; margin-top: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-card p { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 4px 0 9px; overflow-wrap: anywhere; }
.asset-actions .plain-button { font-size: 11px; margin-left: auto; }
.asset-search { display: grid; grid-template-columns: minmax(140px, 2fr) repeat(2, minmax(92px, 1fr)) auto; align-items: end; gap: 8px; margin-bottom: 13px; }
.asset-search .button { min-height: 38px; }
.task-list { padding: 2px 14px; }
.task-list article { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 9px; padding: 12px 2px; }
.task-list article + article { border-top: 1px solid var(--line); }
.task-list strong, .task-list small, .ledger-list strong, .ledger-list small { display: block; }
.task-list strong, .ledger-list strong { font-size: 13px; }
.task-list small, .ledger-list small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.wallet-metrics, .plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.wallet-metrics article, .plan-card, .ledger-panel { padding: clamp(12px, 2vw, 23px); }
.wallet-metrics small, .wallet-metrics strong, .wallet-metrics article > span { display: block; }
.wallet-metrics small, .wallet-metrics span { color: var(--muted); font-size: 12px; }
.wallet-metrics strong { margin: 6px 0 2px; font-size: clamp(18px, 3vw, 31px); color: #e4f8d5; }
.plan-card h3 { margin-top: 9px; font-size: 17px; }
.plan-card > strong { display: block; margin: 7px 0; color: #d9f7aa; font-size: 23px; }
.plan-card p { color: var(--muted); font-size: 12px; margin: 0 0 12px; }
.ledger-panel h2 { font-size: 17px; margin-bottom: 10px; }
.ledger-list article { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 12px; }
.ledger-list article + article { border-top: 1px solid var(--line); }
.ledger-list article > div { flex: 1; }
.inline-form { display: flex; gap: 7px; align-items: center; }
.inline-form input { flex: 1; }

dialog { border: 1px solid #415046; color: var(--text); background: #1b221f; border-radius: 16px; padding: 0; width: min(540px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); box-shadow: 0 20px 90px #000a; }
dialog::backdrop { background: #070a08bd; backdrop-filter: blur(3px); }
#dialog-content { padding: 18px; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dialog-header h2 { font-size: 19px; overflow-wrap: anywhere; }
.dialog-header .icon-button { flex-shrink: 0; }
.dialog-intro { margin-bottom: 12px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.dialog-actions { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.account-summary, .checkout-summary { display: flex; align-items: center; gap: 9px; padding: 12px; background: #232e26; border-radius: 9px; }
.account-summary strong, .account-summary small, .checkout-summary strong, .checkout-summary small { display: block; }
.account-summary small, .checkout-summary small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.account-password-form { margin-top: 14px; }
.account-password-form .dialog-intro { margin-bottom: 0; }
.checkout-summary { justify-content: space-between; margin-bottom: 11px; }
.asset-preview { min-height: 84px; display: grid; place-items: center; background: #0e1411; border-radius: 9px; overflow: hidden; }
.asset-preview img, .asset-preview video { display: block; max-width: 100%; max-height: 65dvh; }
.asset-preview audio { width: min(95%, 440px); }
#notices { position: fixed; z-index: 15; right: 14px; bottom: 14px; display: grid; gap: 6px; pointer-events: none; }
.notice { color: #e5f4df; background: #2c3d2f; border: 1px solid #4d6550; padding: 9px 12px; box-shadow: 0 10px 25px #0007; border-radius: 9px; font-size: 12px; max-width: min(385px, calc(100vw - 28px)); }
.notice.error { color: #ffd4c9; border-color: #795447; background: #432f28; }

@media (max-width: 1120px) {
  :root { --nav-width: 191px; }
  .hero-content { padding: clamp(22px, 4vw, 45px); }
  .hero { min-height: 335px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .workspace-grid { grid-template-columns: minmax(0,1fr); }
  .result-panel { min-height: 270px; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .art-ball { width: min(230px, 33vw); }
  .hero-art .art-pill { font-size: 10px; padding: 6px 7px; }
}
@media (max-width: 690px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; width: min(255px, 88vw); }
  .menu-open .sidebar { transform: translateX(0); }
  .drawer-backdrop { position: fixed; inset: 0; z-index: 5; border: 0; background: #060a07b8; }
  .menu-open .drawer-backdrop { display: block !important; }
  .menu-toggle { display: inline-grid !important; place-items: center; flex: 0 0 auto; }
  .surface { margin: 0; }
  .topbar { min-height: 58px; padding-inline: 12px; }
  .topbar-left, .topbar-right, #breadcrumb { gap: 6px; }
  .topbar-right { max-width: 56%; }
  .breadcrumb-mark, .account-button b, .balance-pill span { display: none; }
  .account-button > span { width: 31px; height: 31px; }
  .top-badge { font-size: 9px; padding-inline: 6px; }
  #main { padding: 14px; }
  .hero { min-height: 285px; grid-template-columns: 1fr; }
  .hero-content { padding: 22px 18px; }
  .hero h1 { font-size: clamp(40px, 11vw, 65px); }
  .hero p { max-width: min(75%, 320px); font-size: 12px; }
  .hero-art { position: absolute; inset: 0 -8% 0 42%; opacity: .75; }
  .art-ball { width: clamp(120px, 43vw, 235px); }
  .art-pill-one, .art-pill-two, .art-meta { display: none; }
  .section { margin-top: 23px; }
  .section-title p { display: none; }
  .page-footer { margin-top: 10px; padding: 14px; }
  .wallet-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .plan-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .asset-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-search .button { justify-self: start; }
}
@media (max-width: 380px) {
  .tool-grid, .asset-grid, .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions { gap: 6px; }
  .hero-actions .button { padding-inline: 8px; font-size: 11px; }
  .topbar .button.compact { padding-inline: 5px; font-size: 10px; }
  .task-list article { grid-template-columns: auto minmax(0,1fr) auto; }
  .task-list article > button { grid-column: 2/-1; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* 我的音色：克隆音色改名管理 */
.voice-manager { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.voice-manager header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.voice-manager header strong { font-size: 14px; }
.voice-manager header span { color: var(--muted); font-size: 12px; }
.voice-manager-list { display: flex; flex-direction: column; gap: 10px; }
.voice-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; }
.voice-row input { width: 100%; min-width: 0; padding: 8px 10px; color: var(--text); background: var(--soft); border: 1px solid var(--line); border-radius: 10px; }
.voice-row input:focus { border-color: var(--green); outline: none; }
.voice-row small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.voice-manager .hint { margin-top: 10px; }

/* 我的音色：闲置状态与保留/删除操作 */
.voice-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.voice-actions .button.compact { padding: 4px 10px; font-size: 12px; }
.voice-state { margin-right: auto; color: var(--muted); font-size: 11px; }
.voice-state.warning { color: #e8c46a; }
.voice-state.due { color: #f08a7a; font-weight: 600; }

/* 账号有效期：未开通 / 已到期提示 */
.access-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; border-color: #6b4a1f; background: #241a0f; }
.access-banner div { display: grid; gap: 4px; min-width: 0; }
.access-banner strong { color: #ffcf87; font-size: 14px; }
.access-banner span { color: #d9c3a4; font-size: 13px; }
.access-banner .button { flex: none; }
