:root {
  --bg: #101112;
  --panel: #1a1b1d;
  --panel-low: #151618;
  --cyan: #a7dedb;
  --blue: #a7dedb;
  --text: #f3f3f1;
  --muted: #98999f;
  --line: #2d2e32;
  --line-hi: #687c7d;
  --success: #a7d5bd;
  --danger: #f2aaa5;
  --body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "Avenir Next", "PingFang SC", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; scrollbar-color: #414246 var(--bg); }
body { margin: 0; background: #101112; color: var(--text); font: 14px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; color: inherit; touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .46; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); }
h1 { font-size: 34px; font-weight: 600; letter-spacing: -.6px; line-height: 1.4; }
h2 { font-size: 17px; font-weight: 550; }
.hidden { display: none !important; }
.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; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
#particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .5; }
.app-shell { position: relative; z-index: 1; }
.skip-link { position: fixed; left: 225px; top: -100px; padding: 10px 20px; background: var(--cyan); color: var(--bg); z-index: 200; }
.skip-link:focus { top: 10px; }

/* A centered creation surface, with content directions kept directly below it. */
.sidebar { width: 210px; position: fixed; inset: 0 auto 0 0; height: 100dvh; padding: 30px 16px 22px; background: #171819; border-right: 1px solid #242527; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; gap: 11px; align-items: center; padding: 0 10px; font-size: 26px; font-weight: 650; letter-spacing: 2px; }
.brand small { display: block; font-size: 10px; color: #88898e; font-weight: 400; letter-spacing: .5px; margin-top: 2px; white-space: nowrap; }
.brand-mark { position: relative; width: 32px; height: 34px; border: 1.7px solid #dddeda; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.brand-mark:before, .brand-mark:after { content: ""; position: absolute; width: 9px; height: 5px; background: #171819; }
.brand-mark:before { top: -3px; left: 7px; }
.brand-mark:after { bottom: -3px; right: 7px; }
.brand-mark span { width: 11px; height: 14px; background: var(--cyan); clip-path: polygon(0 0,100% 50%,0 100%); margin-left: 2px; }
.main-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 44px; }
.nav-item { display: flex; align-items: center; gap: 11px; background: none; padding: 12px 14px; color: #b0b1b7; border-radius: 10px; text-align: left; transition: background 180ms, color 180ms; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item.active { color: #fff; background: #303134; }
.nav-item.active i { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); margin-left: auto; }
.nav-item:hover { background: #202123; color: var(--text); }
.sidebar-bottom { margin-top: auto; padding-top: 40px; }
.points-card { padding: 17px 14px 12px; border: 1px solid #393b40; border-radius: 12px; background: linear-gradient(125deg,#27272b,#202529); }
.points-card>div { font-size: 12px; color: #b9bac0; }
.point-symbol { color: var(--cyan); margin-right: 5px; font-size: 16px; }
.points-card>strong { display: block; font: 500 29px var(--display); margin: 14px 0 7px; }
.points-card strong small { font: 400 11px var(--body); color: var(--muted); }
.points-card p { font-size: 11px; color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }
.points-card .text-button { margin-top: 12px; padding: 9px 0 0; border-top: 1px solid var(--line); display: flex; width: 100%; justify-content: space-between; font-size: 12px; color: #d0d2d2; }
.sidebar-foot { display: flex; align-items: center; gap: 7px; color: #77787e; font-size: 10px; white-space: nowrap; margin: 21px 4px 0; }
.sidebar-foot small { margin-left: auto; color: #696a70; }
.live-dot { width: 4px; height: 4px; border-radius: 50%; background: #9dbab3; }
.main-shell { margin-left: 210px; position: relative; isolation: isolate; }
.topbar { height: 66px; padding: 0 36px; display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.breadcrumb { display: none; }
.breadcrumb span { margin: 0 12px; color: #55565d; }
.breadcrumb b { font-weight: 400; color: #d2d3d5; }
.account-controls { display: flex; align-items: center; gap: 17px; font-size: 12px; }
.balance-pill { color: #aaaeb0; font-size: 11px; border: 1px solid var(--line); padding: 5px 10px; border-radius: 6px; }
.account-button { display: flex; align-items: center; gap: 9px; background: none; font-size: 12px; padding: 5px 0; }
.avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #303234; border: 1px solid #494b4f; color: #dedfdc; font-size: 11px; }
#accountLabel { max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#workspace { max-width: 1240px; margin: auto; padding: 14px 42px 22px; }
.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0; margin: 12px auto 28px; }
.hero p { font-size: 13px; color: #a3a6af; margin-top: 12px; }
.workspace-badge { display: inline-flex; align-items: center; gap: 7px; color: #898b92; font-size: 11px; white-space: nowrap; }
.workspace-badge svg { width: 15px; height: 15px; }
.create-panel { position: relative; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 35px 0 16px; }
.section-heading h2 { font-size: 16px; font-weight: 500; color: #ececee; }
.subtle { font-size: 12px; color: #9a9ca6; }

.main-shell:before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 510px; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 54% -22%, #27374b 0, #1b26313d 40%, transparent 72%); }
.hero:before { content: ""; position: absolute; z-index: -1; top: 28px; left: 24%; right: 15%; height: 270px; background-image: radial-gradient(#a2bcc61c 1px,transparent 1px); background-size: 18px 18px; mask-image: radial-gradient(ellipse at 50% 25%,#000,transparent 70%); pointer-events: none; }
#taskForm { padding: 16px 18px; border: 1px solid #40454f; border-radius: 20px; background: linear-gradient(115deg,#25252b,#242a2e); box-shadow: 0 10px 40px #00000014,inset 0 1px 0 #ffffff04; }
.mode-tab.selected:hover { color: #24292d; }
.submit-context { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.selected-category { display: inline-flex; align-items: center; gap: 7px; color: #b8dbea; font-size: 12px; padding: 8px 0; border-radius: 6px; }
.selected-category svg { width: 15px; height: 15px; }
.category-chevron { margin-left: 4px; font-size: 17px; line-height: 1; }

.category-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.category-card { padding: 0; text-align: left; aspect-ratio: 89 / 50; border: 1px solid #ffffff15; border-radius: 12px; background: #101112; overflow: hidden; position: relative; isolation: isolate; transition: border-color 200ms, box-shadow 200ms; }
.category-art { position: absolute; inset: 0; overflow: hidden; }
.category-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.category-check { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #ffffff80; background: #17181880; display: grid; place-items: center; }
.category-check svg { width: 13px; height: 13px; opacity: 0; stroke-width: 2.4; }
.category-card.selected { border-color: #c9ebec; box-shadow: 0 0 0 1px #c9ebec; }
.category-card.selected .category-check { background: #e3f4f2; border-color: #e3f4f2; color: #172728; }
.category-card.selected .category-check svg { opacity: 1; }

.input-workbench { max-width: 940px; margin: 0 auto; position: relative; }
.mode-tabs { display: flex; align-items: center; gap: 4px; padding: 4px; width: fit-content; margin: 0 auto 22px; background: #292a2e; border: 1px solid #ffffff08; border-radius: 28px; }
.mode-tab { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 24px; background: transparent; border: 1px solid transparent; border-radius: 23px; font-size: 13px; color: #c4c5ca; transition: background 180ms, color 180ms; }
.mode-tab svg { width: 15px; height: 15px; }
.mode-tab.selected { color: #24292d; background: radial-gradient(ellipse at 18% 75%,#f8ded0,transparent 65%),radial-gradient(ellipse at 88% 75%,#bde7f2,transparent 68%),#f4f4f1; border-color: #ffffffa6; }
.mode-tab:hover { color: #fff; background-color: #3d3e42; }
.mode-content { overflow: hidden; border-radius: 6px; background: transparent; }
.mode-content:focus-within { box-shadow: inset 0 0 0 1px #737c7c; }
textarea, input { display: block; width: 100%; background: #141517; border: 1px solid #414247; border-radius: 8px; color: #e8e8e7; padding: 12px 14px; outline: none; transition: border-color 180ms, box-shadow 180ms; }
textarea { resize: vertical; min-height: 90px; line-height: 1.9; }
input:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px #a7dedb12; }
textarea::placeholder, input::placeholder { color: #8e8f95; opacity: 1; }
.mode-content textarea { border: 0; background: none; border-radius: 0; box-shadow: none; padding: 12px 8px 4px; min-height: 91px; resize: vertical; font-size: 14px; }
.input-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 8px 6px; font-size: 11px; color: #9e9fa9; }
.input-bottom>span { display: flex; gap: 6px; align-items: center; }
.input-bottom svg { width: 12px; height: 12px; }
.text-button { padding: 5px 0; background: none; color: #afb0b5; font-size: 12px; }
.text-button:hover { color: var(--text); }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 4px; padding-left: 6px; }
.cost-note { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #9a9ba1; }
.cost-note strong { color: #dddedd; font-size: 12px; }
.cost-divider { width: 1px; height: 11px; background: #44454a; margin: 0 8px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; border-radius: 8px; padding: 12px 21px; line-height: 1.4; font-size: 12px; font-weight: 550; transition: background 180ms, border-color 180ms; }
.primary-button { color: #242a2c; background: radial-gradient(ellipse at 5% 100%,#f6decd,transparent 62%),radial-gradient(ellipse at 100% 80%,#b1e6f1,transparent 75%),#eef0ed; }
.primary-button svg { width: 16px; height: 16px; stroke-width: 1.8; }
.primary-button .button-arrow { margin-left: 12px; }
.primary-button:hover:not(:disabled) { background-color: #fff; }
.secondary-button { color: #d4d5d6; background: #262729; border: 1px solid #424348; }
.secondary-button:hover:not(:disabled) { background: #353639; border-color: #6b6e73; }
.compact { padding: 8px 13px; min-height: 36px; font-size: 12px; }
.compact svg, .secondary-button svg { width: 15px; height: 15px; }
.full-width { width: 100%; }
.upload-zone { display: flex; align-items: center; justify-content: center; flex-direction: column; width: 100%; padding: 18px; min-height: 143px; background: none; gap: 6px; border: 1px dashed transparent; border-radius: 8px; }
.upload-symbol { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #323436; color: #d1dbd9; margin-bottom: 2px; }
.upload-zone strong { font-size: 13px; font-weight: 500; overflow-wrap: anywhere; max-width: 100%; }
.upload-zone>span:last-child { font-size: 11px; color: #96979e; }
.upload-zone.drag { border-color: var(--cyan); background: #a7dedb08; }
#clearFile { margin: 0 18px 10px; }
.error { background: #e6787010; border: 1px solid #e6787038; border-radius: 8px; color: var(--danger); padding: 10px 12px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; margin-top: 14px; }

.progress-panel { margin-top: 23px; padding: 20px 24px 23px; border: 1px solid #32343b; border-radius: 15px; background: #1b1c20; position: relative; overflow: hidden; }
.progress-top { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.progress-title { display: flex; align-items: center; gap: 12px; }
.progress-title h2 { font-size: 14px; font-weight: 500; }
.progress-title p { font-size: 11px; color: #92949b; margin-top: 5px; }
.status-orbit { display: grid; place-items: center; width: 34px; height: 34px; position: relative; border: 1px solid #4a4d52; border-radius: 50%; flex-shrink: 0; }
.status-orbit:after { content: ""; position: absolute; inset: 5px; border: 1px dashed #6b7176; border-radius: 50%; }
.status-orbit span { width: 5px; height: 5px; background: #999e9f; border-radius: 50%; }
.elapsed { text-align: right; white-space: nowrap; }
.elapsed>span { display: block; font-size: 10px; color: #8c8e95; margin-bottom: 1px; }
.elapsed strong { font: 500 23px var(--display); letter-spacing: .7px; font-variant-numeric: tabular-nums; color: #b8babe; }
.pipeline { position: relative; margin-top: 23px; padding: 0 2px; }
.pipeline-track { position: absolute; height: 1px; background: #393b40; left: 18px; right: 18px; top: 13px; }
.pipeline-track>div { height: 100%; width: 0; background: var(--cyan); transition: width 300ms ease; }
.pipeline-steps { display: flex; justify-content: space-between; position: relative; z-index: 1; }
.pipeline-steps>div { display: flex; align-items: center; gap: 8px; font-size: 12px; background: #1b1c20; padding: 0 6px; color: #a5a7b0; }
.step-dot { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #4e5260; border-radius: 50%; background: #1b1c20; font: 500 11px var(--display); flex-shrink: 0; }
.pipeline-steps b { font-weight: 400; white-space: nowrap; }
.pipeline-steps .active { color: #dcf0ed; }
.pipeline-steps .active .step-dot { background: #2d4746; border-color: #a7dedbb3; color: #d3f2ed; box-shadow: 0 0 0 4px #a7dedb08; }
.pipeline-steps .complete { color: #b4c9c3; }
.pipeline-steps .complete .step-dot { color: #bdddc9; border-color: #688879; background: #25392f; }
.running .status-orbit { border-top-color: var(--cyan); }
.running .status-orbit:after { animation: spin 900ms linear infinite; }
.running .status-orbit span { background: var(--cyan); animation: breathe 2.5s ease-in-out infinite; }
.running .elapsed strong { color: #dcf0ed; }
.runner { position: absolute; z-index: 4; top: -21px; left: 0; transition: left 300ms ease; transform: translateX(-50%); padding: 0 6px; background: #1b1c20; }
.runner svg { width: 20px; height: 25px; color: #b8e2db; fill: currentColor; animation: runner 700ms linear infinite; overflow: visible; }
.runner svg path { fill: none; stroke-width: 2.3; }
.running .pipeline-track:after { content: ""; height: 1px; position: absolute; top: 0; width: 60px; background: linear-gradient(90deg,transparent,#c2ece8,transparent); animation: trackFlow 1800ms linear infinite; }
.progress-panel.failed { border-color: #dd86844f; }
.progress-panel.failed .status-orbit span { background: #edaaa6; }
.progress-panel.done .status-orbit { border-color: #7caa8c; }
.progress-panel.done .status-orbit span { background: var(--success); }
.queue-list { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 10px; }
.queue-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: transparent; border-bottom: 1px solid var(--line); padding: 12px 2px; font-size: 12px; }
.queue-item:last-child { border: 0; }
.queue-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #c5c8ce; }
.queue-status { color: #9b9ea5; flex-shrink: 0; }
.queue-item.done .queue-status { color: var(--success); }
.queue-item.failed .queue-status { color: var(--danger); }

.script-banner { display: flex; align-items: center; gap: 18px; margin-top: 23px; padding: 22px 24px; border: 1px solid #31333a; border-radius: 14px; background: linear-gradient(110deg,#23232b,#1a2125); }
.script-illustration { display: grid; place-items: center; width: 43px; height: 48px; border: 1px solid #424348; border-radius: 7px; background: #202123; flex-shrink: 0; }
.script-illustration svg { width: 20px; height: 20px; color: #d2d3d3; }
.script-illustration i { display: none; }
.script-banner-copy { flex: 1; }
.inline-heading { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.script-banner h2 { font-size: 15px; font-weight: 500; }
.small-tag { display: none; }
.script-banner p { font-size: 12px; color: #94969c; margin-top: 7px; }
.script-price { font-size: 11px; color: #8d9095; display: block; margin-top: 8px; }
.script-banner>.secondary-button { font-size: 12px; padding: 10px 15px; }
.workspace-footer { display: flex; justify-content: space-between; color: #898c96; font-size: 11px; padding: 23px 1px 4px; }

.report { margin-top: 38px; }
.report-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 23px; }
.section-kicker { font-size: 12px; color: #a5bbb9; }
.report-heading h2 { font-size: 25px; margin-top: 5px; }
.report-actions { display: flex; gap: 10px; }
.report-warning { font-size: 12px; color: #d9bc87; background: #b8892910; border: 1px solid #a880374a; border-radius: 8px; padding: 12px 15px; margin-bottom: 17px; }
.report-layout { display: grid; grid-template-columns: 171px minmax(0,1fr); gap: 23px; align-items: start; }
.report-outline { position: sticky; top: 20px; max-height: calc(100dvh - 50px); overflow: auto; scrollbar-width: thin; padding: 6px 0; }
.report-outline a { display: flex; align-items: baseline; gap: 8px; padding: 8px 10px; border-left: 1px solid #37393d; font-size: 11px; color: #a4a6ad; }
.report-outline a span { font: 500 11px var(--display); color: #838f91; flex-shrink: 0; }
.report-outline a:hover { background: #a7dedb08; color: #d5e7e3; border-color: var(--cyan); }
.report-section { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 15px; padding: 23px; scroll-margin-top: 24px; min-width: 0; }
.report-section h3 { font-size: 17px; font-weight: 550; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #35373b; padding-bottom: 14px; margin-bottom: 16px; }
.section-number { font: 600 13px var(--display); color: #b9d8d2; padding-right: 12px; border-right: 1px solid #4a5556; }
.prose { font-size: 14px; line-height: 1.95; color: #c1c3c9; overflow-wrap: anywhere; }
.prose p { margin: 10px 0; }
.prose p:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 20px; margin: 10px 0; }
.prose li { padding: 3px 0; }
.prose li::marker { color: #a6b2b1; }
.prose strong { color: #eeefed; font-weight: 550; }
.prose h4 { font-size: 14px; color: #e3e6e3; margin: 20px 0 9px; }
.prose blockquote { border-left: 2px solid #819c98; margin: 14px 0; padding: 4px 14px; background: #a7dedb06; }
.prose code { padding: 2px 5px; background: #101112; color: #c2dfd9; border-radius: 3px; }
.shot-card { border: 1px solid #383b40; border-radius: 10px; overflow: hidden; margin: 16px 0; background: #141517; }
.shot-card:last-child { margin-bottom: 0; }
.shot-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #34363b; padding: 12px 15px; }
.shot-head h4 { margin: 0; font-size: 13px; font-weight: 500; }
.shot-time { font: 500 12px var(--display); color: #bdd2cd; background: #a7dedb08; border: 1px solid #a7dedb20; border-radius: 5px; padding: 3px 7px; white-space: nowrap; }
.shot-body { display: grid; grid-template-columns: minmax(138px,30%) minmax(0,1fr); gap: 18px; padding: 16px; align-items: start; }
.shot-frame { position: relative; padding: 0; cursor: zoom-in; width: 100%; background: #0c0d0e; border-radius: 7px; overflow: hidden; align-self: start; }
.shot-frame img { display: block; width: 100%; height: auto; max-height: 310px; object-fit: contain; }
.frame-caption { display: block; position: absolute; bottom: 0; left: 0; right: 0; padding: 15px 7px 7px; background: linear-gradient(transparent,#000b); font-size: 11px; color: #e7ece8; text-align: center; }
.frame-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 170px; padding: 15px; background: #202224; border: 1px dashed #565960; border-radius: 7px; font-size: 12px; color: #a2a6ae; gap: 9px; text-align: center; }
.shot-body .prose { font-size: 13px; line-height: 1.85; }
.shot-body .prose ul { padding-left: 16px; margin: 0; }
.diagnostics { margin-top: 22px; padding: 16px 19px; border: 1px dashed #3d4046; border-radius: 9px; font-size: 12px; color: #9da2aa; }
.diagnostics summary { cursor: pointer; }
.diagnostics dl { display: grid; grid-template-columns: 100px 1fr; gap: 9px; padding-top: 8px; line-height: 1.7; }
.diagnostics dt { color: #a3a8af; }
.diagnostics dd { margin: 0; overflow-wrap: anywhere; }
.view-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 17px 0 30px; }
.view-heading h1 { font-size: 29px; }
.view-heading p { font-size: 13px; color: var(--muted); margin-top: 9px; }
.history-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel-low); }
.history-item { width: 100%; display: flex; text-align: left; align-items: center; gap: 15px; padding: 20px 24px; border-bottom: 1px solid var(--line); background: transparent; }
.history-item:last-child { border-bottom: 0; }
.history-item:hover { background: #272a2c; }
.history-thumb { width: 54px; height: 58px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: #323539; padding: 0; }
.history-thumb.icon { padding: 16px; color: #c0cdca; }
.history-info { flex: 1; min-width: 0; }
.history-info strong { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-info p { color: #9c9fa7; font-size: 12px; margin-top: 6px; }
.history-status { color: #c0dacb; font-size: 12px; }
.history-status.failed { color: #e8a2a0; }
.history-status.running { color: #c1e0db; }
.empty-state { padding: 75px 30px; text-align: center; color: #a6abb3; font-size: 13px; line-height: 1.9; }
.empty-state svg { width: 34px; height: 34px; margin-bottom: 13px; color: #9db0ad; }
.empty-state p { margin-bottom: 18px; }

.modal { background: #1c1e20; border: 1px solid #494d52; color: var(--text); border-radius: 16px; padding: 27px; max-height: 90dvh; overflow: auto; width: calc(100% - 32px); box-shadow: 0 30px 130px #000b; }
.modal::backdrop, .lightbox::backdrop { background: #060707c9; backdrop-filter: blur(8px); }
dialog[open] { animation: modalEnter 240ms ease both; }
.auth-modal { max-width: 420px; }
.script-modal { max-width: 730px; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.modal-header h2 { font-size: 21px; }
.modal-header p { font-size: 12px; color: var(--muted); margin-top: 7px; }
.icon-button { display: grid; place-items: center; background: transparent; color: #b4bbc3; padding: 4px; width: 32px; height: 32px; flex-shrink: 0; }
.icon-button:hover { color: var(--text); background: #404548; border-radius: 6px; }
.auth-tabs { display: flex; gap: 7px; border-bottom: 1px solid var(--line); margin-bottom: 20px; padding-bottom: 12px; }
.auth-tabs button { padding: 8px 21px; background: none; border-radius: 6px; font-size: 13px; color: #a4adb5; }
.auth-tabs button.selected { background: #343b3c; color: #e1eae6; }
.modal label { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; margin-top: 17px; color: #d0d7d9; }
.modal label span { font-size: 11px; color: #a2adb2; border: 1px solid #515b5d; padding: 0 5px; border-radius: 3px; }
.modal input, .modal textarea { font-size: 14px; }
.modal form>.primary-button { margin-top: 22px; }
.auth-bonus { font-size: 12px; color: #a7d5c2; margin-top: 14px; }
.script-source { display: flex; gap: 8px; align-items: center; padding: 12px; border-radius: 8px; border: 1px solid #3d4b4b; background: #a7dedb06; color: #c0d5d0; font-size: 12px; flex-wrap: wrap; }
.script-source>span:last-child { margin-left: auto; color: #a1acae; }
.script-source svg { width: 16px; height: 16px; }
.script-mode { margin-top: 18px; }
.script-mode-label { font-size: 13px; color: #d0d7d9; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.script-mode-label span { font-size: 11px; color: #a2adb2; border: 1px solid #515b5d; padding: 0 5px; border-radius: 3px; }
.script-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.script-mode-card { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 14px 15px; border-radius: 10px; border: 1px solid #3d4b4b; background: #a7dedb06; color: #c0d5d0; cursor: pointer; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.script-mode-card:hover { border-color: #58706e; background: #a7dedb0d; }
.script-mode-card.selected { border-color: var(--cyan); background: #a7dedb14; box-shadow: 0 0 0 1px var(--cyan) inset; }
.script-mode-card strong { font-size: 14px; color: #e1eae6; font-weight: 600; }
.script-mode-card span { font-size: 12px; line-height: 1.5; color: #a4b2b3; }
.script-mode-card.selected strong { color: var(--cyan); }
.script-mode-card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.script-loading { display: flex; gap: 16px; align-items: center; padding: 20px; background: #a7dedb09; border-radius: 9px; margin-top: 20px; color: #d0e2dc; }
.script-loading strong { font-size: 13px; font-weight: 500; }
.script-loading p { font-size: 12px; color: #a4b2b3; margin-top: 5px; }
.typing-dots { display: flex; gap: 4px; }
.typing-dots i { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); animation: typing 1.4s ease-in-out infinite; }
.typing-dots i:nth-child(2) { animation-delay: 150ms; }
.typing-dots i:nth-child(3) { animation-delay: 300ms; }
.script-result { border-top: 1px solid var(--line); padding-top: 23px; margin-top: 25px; }
.script-result-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 20px; }
.script-result-head h3 { font-size: 15px; }
.script-result-head>div { display: flex; gap: 14px; align-items: center; }
.script-result .prose { background: #131517; border: 1px solid #41484b; padding: 20px; border-radius: 9px; }
.lightbox { background: transparent; border: 0; padding: 36px 0 0; color: #dfe6e2; overflow: visible; max-width: 94vw; max-height: 94vh; box-shadow: none; }
.lightbox .icon-button { position: absolute; right: 0; top: 0; color: white; }
.lightbox img { display: block; max-width: 90vw; max-height: 80dvh; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px #0008; }
.lightbox p { font-size: 12px; text-align: center; margin-top: 12px; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 999; max-width: calc(100% - 40px); background: #343f3f; color: #e2eee7; border: 1px solid #6f8b8980; box-shadow: 0 12px 40px #0005; border-radius: 9px; padding: 12px 20px; font-size: 13px; animation: toastEnter 200ms ease; }

@media (hover:hover) {
  .category-card:hover { border-color: #b4c9c6; }
}
@keyframes bounceTap { 0% { transform: scale(1); } 38% { transform: scale(.975); } 70% { transform: scale(1.012); } 100% { transform: scale(1); } }
.spring.bouncing { animation: bounceTap 420ms cubic-bezier(.2,.7,.3,1) both; }
button:not(:disabled):active { transform: scale(.98); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .55; } }
@keyframes runner { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-3px) rotate(3deg); } }
@keyframes trackFlow { from { left: 0; opacity: 0; } 15%,85% { opacity: 1; } to { left: calc(100% - 60px); opacity: 0; } }
@keyframes typing { 0%,100% { transform: scale(.75); opacity: .5; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes modalEnter { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes toastEnter { from { opacity: 0; bottom: 20px; } to { opacity: 1; bottom: 26px; } }

@media (min-width:1550px) {
  #workspace { padding-top: 25px; }
  .hero { margin-bottom: 28px; }
  .hero h1 { font-size: 34px; }
}
@media (max-width:1180px) {
  .sidebar { width: 184px; padding: 30px 14px 22px; }
  .brand { font-size: 24px; padding: 0 6px; }
  .brand small { font-size: 9px; }
  .main-shell { margin-left: 184px; }
  .topbar { padding: 0 28px; }
  #workspace { padding: 18px 28px 18px; }
  .hero h1 { font-size: 29px; }
  .workspace-badge { display: none; }
  .category-grid { gap: 12px; }
  .report-layout { grid-template-columns: 144px minmax(0,1fr); gap: 16px; }
  .shot-body { grid-template-columns: minmax(100px,30%) minmax(0,1fr); }
}
@media (max-width:950px) {
  .sidebar { width: 76px; padding: 30px 12px; }
  .brand { padding: 0; justify-content: center; }
  .brand>span:last-child { display: none; }
  .main-nav { margin-top: 43px; }
  .nav-item { padding: 13px; justify-content: center; }
  .nav-item span, .nav-item i, .points-card, .sidebar-foot { display: none; }
  .nav-item svg { width: 21px; height: 21px; }
  .main-shell { margin-left: 76px; }
  .report-outline, .balance-pill { display: none; }
  .report-layout { display: block; }
}
@media (max-width:700px) {
  .sidebar { position: relative; width: 100%; height: auto; padding: 16px 20px; flex-direction: row; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--line); align-items: center; }
  .brand { gap: 9px; }
  .brand>span:last-child { display: block; font-size: 22px; letter-spacing: 2px; }
  .brand small { display: none; }
  .brand-mark { width: 27px; height: 30px; border-radius: 8px; }
  .brand-mark span { width: 9px; height: 12px; }
  .main-nav { flex-direction: row; margin: 0; gap: 3px; }
  .nav-item { padding: 12px 10px; }
  .nav-item svg { width: 18px; height: 18px; }
  .nav-item.active span { display: inline; font-size: 12px; }
  .sidebar-bottom { display: none; }
  .main-shell { margin-left: 0; }
  .topbar { height: 56px; padding: 0 20px; border-bottom: 0; }
  .breadcrumb { font-size: 12px; }
  .breadcrumb span { margin: 0 7px; }
  .account-controls { gap: 10px; }
  .account-button { font-size: 12px; gap: 6px; }
  .avatar { width: 24px; height: 24px; font-size: 12px; }
  #accountLabel { max-width: 110px; }
  #workspace { padding: 19px 20px 12px; }
  .hero { margin: 8px auto 23px; gap: 0; }
  .hero h1 { font-size: clamp(24px,5.5vw,30px); letter-spacing: -.6px; }
  .hero p { font-size: 12px; line-height: 1.8; max-width: 26em; margin-top: 10px; }
  .section-heading { align-items: flex-start; margin: 28px 0 13px; }
  .section-heading h2 { font-size: 13px; }
  .section-heading .subtle { display: none; }
  .category-grid { grid-template-columns: 1fr; gap: 12px; }
  .category-card { border-radius: 11px; }
  .category-check { width: 22px; height: 22px; }
  .category-check svg { width: 11px; height: 11px; }
  .input-workbench { margin: 0; padding: 0; }
  #taskForm { padding: 11px; border-radius: 17px; }
  .submit-context { gap: 3px; flex-direction: column; align-items: flex-start; }
  .selected-category { padding: 2px 0; min-height: 30px; }
  .hero:before { left: 0; right: 0; height: 210px; }
  .mode-tabs { gap: 3px; padding: 4px; width: 100%; margin-bottom: 20px; }
  .mode-tab { font-size: 12px; gap: 6px; flex: 1; padding: 9px 5px; min-height: 42px; white-space: nowrap; }
  .mode-tab svg { width: 14px; height: 14px; }
  .mode-content textarea { padding: 10px 5px 4px; height: 106px; min-height: 106px; font-size: 16px; }
  .mode-content textarea::placeholder { font-size: 13px; }
  .input-bottom { padding: 3px 8px 9px; font-size: 12px; gap: 8px; }
  .input-bottom>span { line-height: 1.7; min-width: 0; }
  .input-bottom svg { display: none; }
  .submit-row { gap: 9px; margin-top: 8px; padding-left: 4px; }
  .cost-note { font-size: 12px; gap: 3px; flex-wrap: wrap; }
  .cost-note .point-symbol { font-size: 13px; margin: 0; }
  .cost-note strong { font-size: 12px; }
  .cost-divider { margin: 0 3px; }
  .primary-button { padding: 12px 13px; font-size: 12px; gap: 6px; }
  .primary-button .button-arrow { display: none; }
  .primary-button svg { width: 14px; height: 14px; }
  .primary-button, .secondary-button, .icon-button, .account-button, .text-button { min-height: 44px; }
  .progress-panel { padding: 19px 15px 23px; margin-top: 16px; }
  .progress-title { gap: 10px; }
  .progress-title h2 { font-size: 13px; }
  .progress-title p { font-size: 12px; max-width: 21em; line-height: 1.7; }
  .status-orbit { display: none; }
  .elapsed strong { font-size: 20px; }
  .elapsed>span { font-size: 12px; }
  .pipeline { margin-top: 27px; }
  .pipeline-track { top: 11px; left: 24px; right: 24px; }
  .pipeline-steps>div { gap: 8px; padding: 0; flex-direction: column; font-size: 12px; background: transparent; }
  .pipeline-steps b { background: #1b1c20; padding: 0 3px; font-weight: 400; }
  .step-dot { width: 23px; height: 23px; font-size: 12px; }
  .runner { top: -19px; padding: 0 3px; }
  .runner svg { width: 16px; height: 21px; }
  .script-banner { padding: 21px 17px; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
  .script-illustration { display: none; }
  .script-banner h2 { font-size: 15px; }
  .script-banner p { font-size: 12px; line-height: 1.8; }
  .script-banner-copy { flex-basis: 100%; }
  .script-banner>.secondary-button { margin-left: auto; font-size: 12px; padding: 8px 12px; }
  .script-price { font-size: 12px; }
  .workspace-footer { font-size: 12px; padding-top: 22px; gap: 16px; flex-wrap: wrap; }
  .upload-zone { padding: 16px 10px; }
  .upload-zone strong, .upload-zone>span:last-child { font-size: 12px; }
  .report-heading { align-items: flex-start; flex-direction: column; margin-bottom: 17px; gap: 14px; }
  .report-heading h2 { font-size: 23px; }
  .report-actions { width: 100%; justify-content: flex-end; }
  .report-actions .secondary-button, .report-actions .primary-button { font-size: 12px; padding: 8px 12px; }
  .report-section { padding: 17px 15px; }
  .report-section h3 { font-size: 15px; gap: 9px; line-height: 1.6; }
  .section-number { padding-right: 9px; }
  .prose, .shot-body .prose { font-size: 14px; line-height: 1.9; }
  .shot-head { padding: 11px; gap: 7px; }
  .shot-head h4, .shot-time { font-size: 12px; }
  .shot-body { display: block; padding: 12px; }
  .shot-frame { max-width: 230px; margin: 0 auto 15px; display: block; }
  .shot-frame img { max-height: 270px; }
  .frame-placeholder { min-height: 130px; margin-bottom: 15px; }
  .diagnostics dl { grid-template-columns: 73px 1fr; }
  .view-heading h1 { font-size: 26px; }
  .view-heading .secondary-button { font-size: 12px; padding: 8px 11px; }
  .history-item { padding: 17px 13px; gap: 10px; }
  .history-info strong, .history-status { font-size: 12px; }
  .history-thumb { width: 44px; height: 49px; }
  .history-item>svg { display: none; }
  .modal { padding: 22px 20px; border-radius: 14px; max-height: 92dvh; }
  .modal-header h2 { font-size: 20px; }
  .modal input, .modal textarea { font-size: 16px; }
  .form-columns { grid-template-columns: 1fr; gap: 0; }
  .script-result-head { flex-wrap: wrap; }
  .script-source>span:last-child { margin-left: 24px; }
  .script-result .prose { padding: 15px; }
  .script-loading { padding: 15px; gap: 12px; }
  .script-loading p { line-height: 1.8; }
}
@media (max-width:380px) {
  #workspace { padding-left: 15px; padding-right: 15px; }
  .topbar, .sidebar { padding-left: 15px; padding-right: 15px; }
  .hero h1 { font-size: 24px; }
  .cost-note .cost-divider { display: none; }
  .cost-note>span:last-child { flex-basis: 100%; font-size: 11px; }
  .progress-title p { max-width: 17em; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .runner, #particles { display: none !important; }
}
body.page-hidden *, body.page-hidden *:before, body.page-hidden *:after { animation-play-state: paused !important; }

/* ---- 管理后台 ---- */
.points-actions { display: flex; gap: 8px; margin-top: 4px; }
.points-card .points-actions .text-button { margin-top: 12px; padding: 9px 0 0; border-top: 1px solid var(--line); display: flex; flex: 1; justify-content: space-between; font-size: 12px; color: #d0d2d2; }
.admin-tabs { display: flex; gap: 7px; border-bottom: 1px solid var(--line); margin-bottom: 20px; padding-bottom: 12px; }
.admin-tabs button { padding: 8px 21px; background: none; border-radius: 6px; font-size: 13px; color: #a4adb5; }
.admin-tabs button.selected { background: #343b3c; color: #e1eae6; }
.admin-panel { border: 1px solid var(--line); border-radius: 12px; overflow: auto; background: var(--panel-low); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table th { color: var(--muted); font-weight: 500; background: #1b1d1f; position: sticky; top: 0; }
.admin-table td { color: #c7cbd0; }
.admin-table tr:last-child td { border-bottom: none; }
.ledger-plus { color: #7ecba1; }
.ledger-minus { color: #e0a08a; }

/* ---- 充值弹窗 ---- */
.recharge-modal { width: min(430px, calc(100% - 32px)); }
.recharge-rate { font-size: 13px; color: #a4adb5; margin-bottom: 16px; }
.recharge-rate b { color: #e1eae6; }
.recharge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 6px; }
.recharge-option { padding: 12px 6px; border: 1px solid #3a3d42; border-radius: 10px; background: #202225; color: #d0d7d9; text-align: center; }
.recharge-option strong { display: block; font-size: 14px; }
.recharge-option span { display: block; font-size: 11px; color: #8fa2a4; margin-top: 4px; }
.recharge-option.selected { border-color: #7ecba1; background: #23332c; color: #e1eae6; }
.recharge-preview { font-size: 12px; color: #a4adb5; margin-top: 10px; }
.recharge-preview b { color: #7ecba1; font-size: 15px; }
.recharge-result { margin-top: 18px; border: 1px dashed #3f4a48; border-radius: 12px; padding: 16px; background: #181b1c; }
.recharge-paybox { display: flex; align-items: center; gap: 16px; }
.recharge-paybox img { width: 148px; height: 148px; border-radius: 8px; background: #fff; padding: 6px; object-fit: contain; }
.recharge-paybox p { font-size: 12px; color: #9aa5a8; word-break: break-all; margin-bottom: 12px; }
.recharge-tip { font-size: 11px; color: #8a9298; margin-top: 14px; line-height: 1.7; }
.recharge-result .text-button { margin-top: 10px; color: #7ecba1; }
@media (max-width: 560px) {
  .recharge-grid { grid-template-columns: repeat(2, 1fr); }
  .recharge-paybox { flex-direction: column; text-align: center; }
}
