:root {
  --sidebar-width: 260px;
  --issue-width: 360px;
  --diagnosis-width: 390px;
  --bg: #f2f5fa;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #edf1f7;
  --ink: #111827;
  --text: #334155;
  --muted: #738198;
  --border: #d9e0eb;
  --primary: #6758e8;
  --primary-2: #8175ff;
  --primary-soft: #eeebff;
  --danger: #fa5d77;
  --danger-soft: #fff0f3;
  --success: #24b984;
  --warning: #f2a541;
  --shadow: 0 16px 42px rgba(39, 48, 82, 0.09);
  --radius: 18px;
}

html[data-theme="dark"] {
  --bg: #151922;
  --surface: #1d222c;
  --surface-2: #242a35;
  --surface-3: #2b3240;
  --ink: #f5f7fb;
  --text: #d6deea;
  --muted: #9ca9bd;
  --border: #36404f;
  --primary: #9286ff;
  --primary-2: #7569ef;
  --primary-soft: #302b54;
  --danger-soft: #43252f;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; }
html { min-width: 1180px; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
button { color: inherit; }
button, label, .project-card { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(103, 88, 232, .25); outline-offset: 2px; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar-width);
  min-width: 220px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  background: var(--surface);
  border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 7px 22px; color: var(--ink); }
.brand strong { display: block; font-size: 23px; line-height: 1.1; letter-spacing: .02em; }
.brand small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.brand-mark { width: 45px; height: 45px; border-radius: 13px; background: linear-gradient(145deg, #5b52bf, #17133b); position: relative; box-shadow: 0 8px 20px rgba(66, 55, 168, .25); }
.brand-mark span { position: absolute; left: 12px; width: 22px; height: 3px; border-radius: 4px; background: #aaa3ff; transform: rotate(-17deg); }
.brand-mark span:nth-child(1) { top: 13px; }.brand-mark span:nth-child(2) { top: 21px; left: 9px; }.brand-mark span:nth-child(3) { top: 29px; left: 14px; }
.workspace-card { display: flex; align-items: center; gap: 10px; padding: 14px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.workspace-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; color: var(--primary); background: var(--primary-soft); font-weight: 800; }
.workspace-card strong, .workspace-card small { display: block; }.workspace-card strong { color: var(--ink); font-size: 16px; }.workspace-card small { color: var(--muted); font-size: 13px; }.workspace-arrow { margin-left: auto; }
.nav-label { margin: 26px 10px 9px; color: var(--muted); font-weight: 700; font-size: 14px; }
.main-nav { display: grid; gap: 5px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 13px; min-height: 48px; width: 100%; padding: 0 13px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; }
.nav-item span { width: 20px; text-align: center; font-size: 20px; }.nav-item b { color: inherit; font-size: 16px; }.nav-item em { margin-left: auto; padding: 1px 8px; color: var(--primary); background: var(--primary-soft); border-radius: 8px; font-style: normal; font-size: 13px; }
.nav-item:hover { color: var(--ink); background: var(--surface-2); }.nav-item.active { color: var(--ink); background: linear-gradient(90deg, var(--primary-soft), rgba(103, 88, 232, .04)); }.nav-item.active::before { content:""; position:absolute; left:0; width:3px; height:24px; border-radius: 3px; background: var(--primary); }
.sidebar-foot { margin-top: auto; }.sidebar-foot .subtle { margin-bottom: 14px; }
.profile { display: flex; align-items: center; gap: 10px; padding: 13px 8px 0; border-top: 1px solid var(--border); }.profile > span { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; color:#fff; background:linear-gradient(135deg,var(--primary),#9e91ff); font-weight:800; }.profile div { min-width:0; }.profile strong,.profile small { display:block; }.profile strong { color:var(--ink); font-size:14px; }.profile small { color:var(--muted); font-size:12px; }.profile > b { margin-left:auto; color:var(--muted); }
.sidebar-resizer { position: absolute; z-index: 5; top: 0; right: -4px; width: 8px; height: 100%; border:0; background:transparent; cursor: col-resize; }.sidebar-resizer:hover::after { content:""; position:absolute; inset:0 3px; background:var(--primary); }

.page-column { margin-left: var(--sidebar-width); min-height:100vh; transition: margin-left .08s linear; }
.topbar { position: sticky; top: 0; z-index: 20; min-height: 82px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding: 10px 28px 10px 34px; background: color-mix(in srgb, var(--surface) 94%, transparent); border-bottom:1px solid var(--border); backdrop-filter: blur(14px); }
.breadcrumb { display:flex; align-items:center; gap:12px; white-space:nowrap; }.breadcrumb span { color:var(--muted); }.breadcrumb strong { color:var(--ink); font-size:16px; }.breadcrumb b { color:var(--muted); }
.top-actions { display:flex; align-items:center; gap:10px; }
.upload-quick { min-width: 210px; display:flex; align-items:center; gap:11px; padding:8px 14px; border:1px solid var(--border); border-radius:13px; background:var(--surface); cursor:pointer; text-align:left; }.upload-quick > span { display:grid; place-items:center; width:36px; height:36px; border-radius:10px; color:var(--primary); background:var(--primary-soft); font-size:22px; }.upload-quick b,.upload-quick small { display:block; }.upload-quick b { color:var(--ink); font-size:14px; }.upload-quick small { color:var(--muted); font-size:12px; }
.icon-button, .primary-button, .secondary-button, .soft-primary, .back-button { min-height:44px; border-radius:12px; border:1px solid var(--border); background:var(--surface); cursor:pointer; font-weight:700; }
.icon-button { min-width:44px; padding:0 12px; }.theme-toggle { min-width:128px; }.primary-button { padding:0 20px; color:white; border-color:transparent; background:linear-gradient(135deg,var(--primary),var(--primary-2)); box-shadow:0 10px 24px rgba(103,88,232,.22); }.secondary-button { padding:0 18px; }.soft-primary { padding:0 20px; color:var(--ink); border:0; background:var(--primary-soft); }
.view { display:none; min-height:calc(100vh - 82px); }.view.active { display:block; }

.overview-wrap { padding: 48px 38px 70px; max-width: 1510px; margin: 0 auto; }
.eyebrow { margin-bottom:10px; color:var(--primary); font-size:14px; font-weight:900; letter-spacing:.18em; }
.overview-wrap > h1, .simple-head h1 { margin-bottom:6px; color:var(--ink); font-size:clamp(38px,4vw,62px); line-height:1.18; letter-spacing:-.045em; }.lead { color:#50617a; font-size:20px; }
html[data-theme="dark"] .lead { color:var(--muted); }
.hero-project { position:relative; min-height:335px; margin-top:30px; overflow:hidden; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow); isolation:isolate; }
.hero-project::after { content:""; position:absolute; z-index:2; inset:0; pointer-events:none; background:linear-gradient(90deg,color-mix(in srgb,var(--surface) 97%,transparent) 0%,color-mix(in srgb,var(--surface) 91%,transparent) 35%,color-mix(in srgb,var(--surface) 58%,transparent) 62%,color-mix(in srgb,var(--surface) 18%,transparent) 100%); }
.hero-copy { position:relative; z-index:3; width:min(620px,58%); min-height:335px; padding:31px 42px; pointer-events:none; }
.hero-copy button { pointer-events:auto; }
.hero-copy::before,.hero-copy::after { content:none; }
.status-pill { display:inline-flex; padding:4px 13px; border-radius:999px; color:var(--primary); background:var(--primary-soft); font-size:14px; font-weight:800; }.hero-copy h2 { margin:17px 0 6px; color:var(--ink); font-size:34px; }.hero-copy > p { max-width:520px; margin-bottom:0; font-size:17px; line-height:1.65; }.project-meta { display:flex; gap:28px; margin:17px 0; color:var(--muted); font-size:14px; }.hero-buttons { display:flex; gap:12px; }
.hero-media { position:absolute; z-index:1; inset:0; min-height:335px; background:var(--surface-3); }.hero-media img,.hero-media video { width:100%; height:100%; min-height:335px; object-fit:cover; object-position:center 36%; opacity:.78; filter:saturate(.92) contrast(.98); }.media-badge { position:absolute; z-index:4; top:20px; right:20px; padding:7px 12px; border-radius:9px; color:#fff; background:rgba(10,15,25,.76); font-size:13px; font-weight:700; }.score-ring { position:absolute; z-index:4; right:38px; bottom:34px; width:112px; height:112px; display:grid; place-content:center; text-align:center; border:7px solid #6f5ff5; border-top-color:#f5f3ff; border-radius:50%; color:#111827; background:rgba(255,255,255,.9); box-shadow:0 10px 28px rgba(30,35,60,.2); pointer-events:none; }.score-ring strong { font-size:34px; font-weight:500; line-height:1; }.score-ring small { margin-top:7px; font-size:11px; }
.section-heading { margin:44px 0 18px; display:flex; align-items:end; justify-content:space-between; }.section-heading h2 { margin-bottom:2px; color:var(--ink); font-size:24px; }.section-heading p { margin:0; color:var(--muted); }.segmented { display:flex; padding:4px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }.segmented button { min-height:38px; padding:0 16px; border:0; border-radius:8px; color:var(--muted); background:transparent; cursor:pointer; }.segmented button.active { color:var(--ink); background:var(--surface-3); font-weight:700; }
.project-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }.project-card { overflow:hidden; border:1px solid var(--border); border-radius:16px; background:var(--surface); box-shadow:0 8px 24px rgba(40,50,75,.04); cursor:pointer; }.project-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); transition:.2s ease; }.project-cover { position:relative; height:190px; background-position:center; background-size:cover; }.project-cover::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 55%,rgba(12,16,26,.35)); }.project-cover span { position:absolute; z-index:1; top:14px; left:14px; padding:4px 9px; border-radius:6px; color:#fff; background:rgba(10,14,20,.7); font-size:12px; }.project-cover b { position:absolute; z-index:1; right:17px; bottom:7px; color:rgba(255,255,255,.28); font-size:54px; font-weight:400; }.project-body { padding:19px 20px; }.project-body h3 { margin:0; color:var(--ink); font-size:23px; }.project-body > p { color:var(--muted); }.project-body hr { border:0; border-top:1px solid var(--border); }.project-body dl { display:grid; grid-template-columns:repeat(3,1fr); margin:15px 0 0; }.project-body dt { color:var(--muted); font-size:13px; }.project-body dd { margin:4px 0 0; color:var(--ink); font-weight:800; }.danger { color:var(--danger)!important; }

.workbench-head { min-height:104px; display:flex; align-items:center; gap:18px; padding:12px 20px; border-bottom:1px solid var(--border); background:var(--surface); }.back-button { width:44px; font-size:28px; }.workbench-head > div:nth-child(2) { min-width:240px; }.workbench-head p { margin:0; color:var(--primary); font-size:13px; font-weight:700; }.workbench-head h1 { margin:0; color:var(--ink); font-size:26px; }.metrics { margin-left:auto; display:flex; align-items:center; }.metrics span { padding:0 20px; border-right:1px solid var(--border); color:var(--muted); }.metrics b { margin-left:6px; color:var(--ink); font-size:24px; }
.workbench-grid { position:relative; display:grid; grid-template-columns:var(--issue-width) 8px minmax(540px,1fr) 8px var(--diagnosis-width); height:calc(100vh - 186px); min-height:750px; overflow:hidden; background:var(--bg); }.panel-column { min-width:0; overflow:auto; scrollbar-width:thin; scrollbar-color:transparent transparent; }.panel-column:hover { scrollbar-color:var(--border) transparent; }.issues-panel,.diagnosis-panel { background:var(--surface); }.panel-title { display:flex; align-items:center; justify-content:space-between; padding:20px 18px 15px; }.panel-title h2 { margin:0; color:var(--ink); font-size:23px; }.panel-title p { margin:2px 0 0; color:var(--muted); font-size:13px; }
.category-tabs { display:flex; flex-wrap:wrap; gap:4px; padding:0 12px 14px; border-bottom:1px solid var(--border); }.category-tabs button,.stage-toolbar button { min-height:36px; padding:0 11px; border:0; border-radius:8px; color:var(--muted); background:transparent; cursor:pointer; font-weight:700; font-size:14px; }.category-tabs button.active,.stage-toolbar button.active { color:var(--ink); background:var(--surface-3); }.filter-row { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:14px 12px; }.filter-row button { min-height:43px; border:1px solid var(--border); border-radius:9px; background:var(--surface-2); }
.issue-list { display:grid; gap:12px; padding:0 12px 24px; }.issue-card { width:100%; padding:15px 14px; border:1px solid transparent; border-radius:12px; color:var(--text); background:transparent; cursor:pointer; text-align:left; }.issue-card:hover,.issue-card.active { border-color:color-mix(in srgb,var(--primary) 48%,var(--border)); background:color-mix(in srgb,var(--primary-soft) 55%,var(--surface)); }.issue-card > span,.issue-card footer { display:flex; align-items:center; justify-content:space-between; }.issue-card > span b { padding:3px 8px; border-radius:7px; color:var(--danger); background:var(--danger-soft); font-size:12px; }.issue-card.medium > span b { color:var(--warning); background:color-mix(in srgb,var(--warning) 15%,var(--surface)); }.issue-card time,.issue-card footer { color:var(--muted); font-size:12px; }.issue-card h3 { margin:12px 0 7px; color:var(--ink); font-size:16px; }.issue-card p { margin-bottom:11px; font-size:14px; line-height:1.7; }.issue-card footer em { font-style:normal; }
.column-resizer { width:8px; height:100%; padding:0; border:0; border-left:1px solid var(--border); border-right:1px solid var(--border); background:var(--surface-2); cursor:col-resize; }.column-resizer:hover { background:var(--primary); }
.stage-panel { padding:18px 20px 50px; }.stage-toolbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }.stage-toolbar span { color:var(--muted); font-size:13px; }
.video-shell { position:relative; overflow:hidden; min-height:360px; aspect-ratio:16/9; border:1px solid var(--border); border-radius:13px; background:#0b0d13; }.video-shell video { width:100%; height:100%; object-fit:contain; background:#090b10; }.video-empty { position:absolute; inset:0; display:grid; place-content:center; justify-items:center; gap:8px; color:#e6e9f0; text-align:center; background:linear-gradient(135deg,rgba(14,17,27,.84),rgba(30,25,60,.82)); }.video-empty b { font-size:20px; }.video-empty span { color:#adb6c6; font-size:14px; }.video-empty button { margin-top:10px; }.detect-label { position:absolute; top:18px; left:32%; padding:5px 10px; color:#fff; background:var(--danger); border-radius:5px; font-size:12px; font-weight:800; }
.evidence-card,.timeline-card { margin-top:14px; padding:15px; border:1px solid var(--border); border-radius:13px; background:var(--surface); }.subheading { display:flex; justify-content:space-between; align-items:center; gap:15px; }.subheading h3 { margin:0; color:var(--ink); font-size:18px; }.subheading p { margin:0; color:var(--muted); font-size:13px; }.evidence-grid { display:grid; grid-template-columns:repeat(3,1fr) 150px; gap:9px; margin-top:12px; }.evidence-grid figure { overflow:hidden; margin:0; border:1px solid var(--border); border-radius:9px; background:#11131b; }.evidence-grid figure.problem-frame { border:2px solid var(--danger); }.evidence-grid img { width:100%; height:105px; object-fit:cover; }.evidence-grid figcaption { padding:7px 8px; color:#eef0f5; background:#171b24; font-size:11px; }.match-score { display:flex; flex-direction:column; justify-content:center; padding:12px; border:1px solid var(--border); border-radius:9px; }.match-score span { color:var(--muted); font-size:12px; }.match-score strong { color:var(--warning); font-size:34px; }.match-score small { color:var(--danger); font-size:11px; }
.timeline-actions { display:flex; gap:8px; }.timeline-actions button { padding:7px 10px; border:1px solid var(--border); border-radius:8px; background:var(--surface-2); cursor:pointer; font-size:12px; }.timeline-ruler { position:relative; height:34px; margin:12px 0 0 68px; border-bottom:1px solid var(--border); }.timeline-ruler span { position:absolute; bottom:5px; color:var(--muted); font-size:10px; transform:translateX(-50%); }.timeline-ruler span::after { content:""; position:absolute; left:50%; top:18px; height:5px; border-left:1px solid var(--border); }
.tracks { position:relative; display:grid; gap:7px; margin-top:9px; }.track-row { display:grid; grid-template-columns:58px 1fr; gap:10px; align-items:center; }.track-row > b { color:var(--muted); font-size:12px; text-align:right; }.track-content { position:relative; height:54px; overflow:hidden; border:1px solid var(--border); border-radius:7px; background:var(--surface-2); cursor:pointer; }.video-track { display:flex; }.video-track img { min-width:100px; flex:1; height:100%; object-fit:cover; border-right:1px solid rgba(255,255,255,.5); }.audio-track { background:linear-gradient(90deg,color-mix(in srgb,var(--primary) 9%,var(--surface-2)),color-mix(in srgb,#23b6b2 8%,var(--surface-2))); }.audio-track canvas { width:100%; height:100%; }.subtitle-track { height:38px; display:flex; align-items:center; padding:0 12px; color:var(--muted); font-size:12px; }.track-placeholder { position:absolute; inset:0; display:grid; place-items:center; color:var(--muted); font-size:12px; }.playhead { position:absolute; z-index:4; left:68px; top:-4px; bottom:0; width:2px; pointer-events:none; background:var(--danger); transform:translateX(-1px); }.playhead i { position:absolute; top:-3px; left:-5px; width:12px; height:12px; border-radius:50%; background:var(--danger); box-shadow:0 0 0 4px rgba(250,93,119,.18); }.timeline-status { display:flex; justify-content:space-between; margin:7px 0 0 68px; color:var(--muted); font:12px ui-monospace,Consolas,monospace; }
.diagnosis-panel { border-left:0; }.diagnosis-head { padding:20px; border-bottom:1px solid var(--border); }.diagnosis-head p { margin:0; color:var(--primary); font-size:11px; font-weight:900; letter-spacing:.18em; }.diagnosis-head h2 { margin:2px 0 0; color:var(--ink); font-size:23px; }.diagnosis-panel section { padding:19px 20px; border-bottom:1px solid var(--border); }.diagnosis-panel section > h2 { margin:13px 0 3px; color:var(--ink); font-size:21px; }.diagnosis-panel section h3 { margin:0 0 12px; color:var(--ink); font-size:16px; }.diagnosis-panel section h3 button { float:right; border:0; color:var(--primary); background:transparent; cursor:pointer; font-size:12px; }.diagnosis-panel section p { margin-bottom:0; font-size:14px; line-height:1.8; }.risk-line { display:flex; gap:10px; align-items:center; }.risk-line b { padding:3px 8px; border-radius:6px; color:var(--danger); background:var(--danger-soft); font-size:12px; }.risk-line span { color:var(--muted); font-size:13px; }.mono { color:var(--muted); font:12px ui-monospace,Consolas,monospace!important; }.diagnosis-panel label { display:flex; justify-content:space-between; margin-top:16px; color:var(--muted); font-size:12px; }.confidence { height:4px; margin-top:7px; overflow:hidden; border-radius:4px; background:var(--surface-3); }.confidence i { display:block; height:100%; background:linear-gradient(90deg,var(--primary),#46c9c3); }.subject-card { display:flex; align-items:center; gap:11px; padding:10px; border:1px solid var(--border); border-radius:10px; background:var(--surface-2); }.subject-card > span { display:grid; place-items:center; width:42px; height:42px; border-radius:10px; color:#fff; background:#27234c; font-size:22px; }.subject-card b,.subject-card small { display:block; }.subject-card small { color:var(--muted); }.prompt-box { margin-top:12px; padding:12px; border:1px solid color-mix(in srgb,var(--primary) 30%,var(--border)); border-radius:9px; background:color-mix(in srgb,var(--primary-soft) 45%,var(--surface)); }.prompt-box span { color:var(--primary); font-size:12px; }.prompt-box button { float:right; border:0; color:var(--primary); background:transparent; cursor:pointer; }.prompt-box p { clear:both; }.diagnosis-panel > footer { position:sticky; bottom:0; display:grid; grid-template-columns:1fr 1fr 1.4fr; gap:7px; padding:12px; border-top:1px solid var(--border); background:var(--surface); }.diagnosis-panel > footer button { min-height:42px; border:1px solid var(--border); border-radius:9px; background:var(--surface-2); cursor:pointer; }.diagnosis-panel > footer .primary-button { border:0; background:linear-gradient(135deg,var(--primary),var(--primary-2)); }

.simple-view { max-width:1540px; margin:0 auto; padding:48px 40px 70px; }.simple-head { margin-bottom:28px; }.simple-head h1 { font-size:44px; }.simple-head > p:last-child { color:var(--muted); font-size:18px; }
.stat-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }.stat-grid article { min-height:180px; padding:25px; border:1px solid var(--border); border-radius:16px; background:var(--surface); }.stat-grid span,.stat-grid p { color:var(--muted); }.stat-grid strong { display:block; margin:12px 0 5px; color:var(--ink); font-size:40px; font-weight:500; }.table-card { margin-top:20px; overflow:hidden; border:1px solid var(--border); border-radius:16px; background:var(--surface); }.table-card table { width:100%; border-collapse:collapse; }.table-card th,.table-card td { padding:19px 18px; border-bottom:1px solid var(--border); text-align:left; }.table-card th { color:var(--muted); background:var(--surface-2); font-size:13px; }.table-card td { color:var(--text); }.table-card button { border:0; color:var(--primary); background:transparent; cursor:pointer; font-weight:700; }.table-card progress { width:120px; accent-color:var(--primary); }.tag { display:inline-flex; padding:4px 10px; border-radius:999px; font-size:12px; }.tag.purple { color:var(--primary); background:var(--primary-soft); }.tag.green { color:var(--success); background:color-mix(in srgb,var(--success) 12%,var(--surface)); }
.asset-tabs { display:flex; gap:8px; padding:8px; border:1px solid var(--border); border-radius:13px; background:var(--surface); }.asset-tabs button { padding:8px 15px; border:0; border-radius:9px; color:var(--muted); background:transparent; cursor:pointer; }.asset-tabs button.active { color:var(--ink); background:var(--surface-3); font-weight:700; }.character-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:20px; }.character-grid article { min-height:350px; padding:20px; border:1px solid var(--border); border-radius:16px; background:var(--surface); }.character-image { height:145px; display:grid; place-items:center; margin:-20px -20px 20px; border-radius:16px 16px 0 0; color:#fff; font-size:40px; }.character-image.violet { background:radial-gradient(circle,#2e285d,#201c38); }.character-image.teal { background:radial-gradient(circle,#164b51,#162b33); }.character-image.amber { background:radial-gradient(circle,#573d2c,#332622); }.character-grid article small { color:var(--primary); }.character-grid article h2 { margin:8px 0 4px; color:var(--ink); }.character-grid article p { color:var(--muted); }.character-grid article > span { display:inline-block; margin:12px 5px 0 0; padding:5px 8px; border-radius:7px; background:var(--surface-3); font-size:12px; }.character-grid .add-card { display:grid; place-content:center; justify-items:center; color:var(--muted); font-size:38px; }.character-grid .add-card b { color:var(--ink); font-size:16px; }.character-grid .add-card p { font-size:13px; }
.standards-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:20px; }.standard-card,.strategy-card { padding:26px; border:1px solid var(--border); border-radius:17px; background:var(--surface); }.standard-card > div:first-child { display:flex; justify-content:space-between; align-items:start; }.standard-card > div:first-child > strong { color:var(--ink); font-size:38px; font-weight:500; }.standard-card > div:first-child small { display:block; color:var(--muted); font-size:11px; }.standard-card h2 { margin:0; color:var(--ink); font-size:25px; }.standard-card > p { color:var(--muted); }.rule-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:20px; }.rule-grid button { min-height:64px; display:grid; grid-template-columns:36px 1fr auto; align-items:center; gap:8px; padding:0 14px; border:1px solid var(--border); border-radius:10px; background:var(--surface); text-align:left; }.rule-grid i { color:var(--primary); font-style:normal; font-size:11px; }.rule-grid b { color:var(--ink); }.rule-grid span { color:var(--muted); font-size:12px; }.strategy-card h3 { color:var(--ink); }.strategy-card label { position:relative; display:block; margin-bottom:12px; padding:14px 50px 14px 14px; border:1px solid var(--border); border-radius:10px; }.strategy-card label b,.strategy-card label span { display:block; }.strategy-card label b { color:var(--ink); }.strategy-card label span { color:var(--muted); font-size:12px; }.strategy-card input { position:absolute; top:22px; right:15px; width:20px; height:20px; accent-color:var(--success); }
.placeholder-view { display:none; place-content:center; max-width:none; text-align:center; }.placeholder-view.active { display:grid; }.placeholder-view h1 { color:var(--ink); font-size:48px; }.placeholder-view p { max-width:700px; color:var(--muted); font-size:18px; }

.upload-dialog { width:min(720px,calc(100vw - 40px)); padding:0; border:0; border-radius:20px; color:var(--text); background:var(--surface); box-shadow:0 30px 90px rgba(10,15,30,.3); }.upload-dialog::backdrop { background:rgba(13,18,29,.58); backdrop-filter:blur(5px); }.dialog-card { padding:0; }.dialog-head { display:flex; align-items:start; justify-content:space-between; padding:25px 26px 18px; border-bottom:1px solid var(--border); }.dialog-head span { color:var(--primary); font-size:11px; font-weight:900; letter-spacing:.18em; }.dialog-head h2 { margin:2px 0 3px; color:var(--ink); font-size:27px; }.dialog-head p { margin:0; color:var(--muted); font-size:13px; }.dialog-head > button { width:38px; height:38px; border:0; border-radius:10px; background:var(--surface-3); cursor:pointer; font-size:23px; }.drop-zone { min-height:210px; margin:22px 26px 14px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; border:2px dashed color-mix(in srgb,var(--primary) 40%,var(--border)); border-radius:15px; background:color-mix(in srgb,var(--primary-soft) 32%,var(--surface)); cursor:pointer; }.drop-zone.dragging { border-color:var(--primary); background:var(--primary-soft); }.drop-zone input { display:none; }.upload-icon { display:grid; place-items:center; width:52px; height:52px; margin-bottom:5px; border-radius:14px; color:#fff; background:linear-gradient(135deg,var(--primary),var(--primary-2)); font-size:28px; }.drop-zone b { color:var(--ink); font-size:17px; }.drop-zone small { color:var(--muted); }.selected-file { margin:0 26px 14px; display:flex; align-items:center; gap:12px; padding:12px; border:1px solid var(--border); border-radius:11px; background:var(--surface-2); }.selected-file > span { display:grid; place-items:center; width:38px; height:38px; border-radius:10px; color:var(--primary); background:var(--primary-soft); }.selected-file div { min-width:0; }.selected-file b,.selected-file small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.selected-file b { color:var(--ink); }.selected-file small { color:var(--muted); font-size:12px; }.selected-file i { margin-left:auto; color:var(--success); font-size:12px; font-style:normal; }.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:0 26px 14px; }.form-grid label,.cover-choice { color:var(--text); font-size:13px; font-weight:700; }.form-grid input { width:100%; min-height:45px; margin-top:5px; padding:0 12px; border:1px solid var(--border); border-radius:9px; color:var(--ink); background:var(--surface); }.cover-choice { display:grid; grid-template-columns:1fr auto; align-items:center; gap:3px 12px; margin:0 26px; padding:12px; border:1px solid var(--border); border-radius:10px; }.cover-choice input { display:none; }.cover-choice span { grid-row:1/3; grid-column:2; padding:8px 12px; border-radius:8px; color:var(--primary); background:var(--primary-soft); cursor:pointer; }.cover-choice small { color:var(--muted); font-weight:400; }.dialog-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:22px; padding:17px 26px; border-top:1px solid var(--border); }
.toast { position:fixed; z-index:100; left:50%; bottom:30px; transform:translate(-50%,20px); padding:10px 16px; border-radius:10px; color:#fff; background:#151925; opacity:0; pointer-events:none; transition:.2s ease; box-shadow:0 10px 30px rgba(0,0,0,.2); }.toast.show { opacity:1; transform:translate(-50%,0); }

@media (max-width: 1280px) {
  :root { --sidebar-width:230px; --issue-width:310px; --diagnosis-width:330px; }
  .theme-toggle span { display:none; }.theme-toggle { min-width:44px; }
  .upload-quick { min-width:48px; width:48px; padding:6px; }.upload-quick div { display:none; }
  .hero-copy { width:62%; padding:29px 32px; }.project-grid { gap:14px; }
}

@media print {
  .sidebar,.topbar,.workbench-head,.column-resizer,.dialog-card button { display:none!important; }
  .page-column { margin-left:0; }.view { display:none!important; }.view.active { display:block!important; }.workbench-grid { display:block; height:auto; }.panel-column { overflow:visible; }.issues-panel,.diagnosis-panel,.stage-panel { break-inside:avoid; }
}
