:root {
  --ink:#142a32; --muted:#50646b; --line:#d5e0df; --surface:#fff; --bg:#e9efee;
  --nav:#102b32; --accent:#066654; --good:#106148; --warn:#86511a; --radius:15px;
}
body { background:#edf2f1; font-family:"Inter","Microsoft YaHei UI","Microsoft YaHei",system-ui,sans-serif }
:focus-visible { outline:3px solid #178d79; outline-offset:3px }
input:focus,textarea:focus,select:focus { border-color:var(--accent) }
h1 { letter-spacing:-.045em }
.btn { border-color:#c8d6d5; border-radius:8px }
.btn:hover { background:#f0f6f4; border-color:#92b2aa }
.btn.primary { background:#075e51; border-color:#075e51; color:#fff }
.btn.primary:hover { background:#064c43; border-color:#064c43 }
.logo { background:#9aebd1; color:#0a3835; border-radius:9px; width:37px; height:37px }
.logo::before { width:13px; height:15px; border:2px solid; border-radius:5px 5px 3px 3px; transform:none;
  background:linear-gradient(currentColor,currentColor) center 3px / 9px 5px no-repeat,
    radial-gradient(circle,currentColor 1px,transparent 1.6px) 0 8px / 7px 6px repeat-x }
.login { grid-template-columns:1.23fr 1fr; background:#fff; border-color:#cddbd7; border-radius:22px; box-shadow:0 24px 80px #1e40371b }
.hero { padding:38px clamp(24px,4vw,60px); justify-content:flex-start; gap:0;
  background:linear-gradient(180deg,#092329dd 0%,#09232996 30%,#09232912 65%,#0923298c),
    url("/assembly-hall.webp") 62% center / cover no-repeat,#102b32 }
.hero .brand { font-size:15px; letter-spacing:.055em }
.hero-copy { margin:clamp(48px,7vh,92px) 0 auto }
.hero h1 { color:#fff; font-size:clamp(40px,4.7vw,70px); font-weight:720; letter-spacing:.015em }
.hero p { font-size:15px; line-height:1.7; color:#e2f2ef; margin-top:13px }
.hero>small,.sidebar-footer { color:#daeee9; font-size:12px }
.hero>small::before,.sidebar-footer::before { content:""; display:inline-block; width:7px; height:7px; border-radius:50%; background:#88e6c3; margin-right:8px }
.signin { background:#fcfdfc; padding:34px }
.signin h2 { font-size:32px }
.signin input { min-height:45px }
.signin form>.primary { min-height:44px }
.demo .btn { background:#f3f7f5 }
.layout { gap:0; padding:0; grid-template-columns:195px minmax(0,1fr); background:#f4f7f6 }
.sidebar { top:0; min-height:100svh; padding:27px 13px; border-radius:0; box-shadow:none;
  background:linear-gradient(160deg,#153941 0%,#102a31 55%,#0b2027 100%) }
.sidebar .brand { margin:0 4px 38px }
.brand-name { font-size:17px; letter-spacing:.035em }
.brand-name small { color:#acc7c6; font-size:11px; margin-top:3px }
.sidebar nav { gap:7px }
.nav { color:#d1e3df; border-radius:7px; gap:10px; padding-left:12px }
.nav:hover { background:#23444a }
.nav.active { color:#effff9; border-color:#3f6867; background:#264c4e; box-shadow:inset 3px 0 #83e3bf }
.nav.active .nav-icon { color:#9ce9cd }
.nav-icon { color:#a3c2bd; width:20px }
#managementNav { margin-top:12px }
#unread:not(:empty) { background:#a3dfc9; color:#143b34 }
.app-surface { border:0; border-radius:0; background:#f4f7f6; box-shadow:none; min-height:100svh }
.top { background:#fcfdfc; border-color:#dce5e3 }
.main { max-width:1480px; margin:auto }
.heading:not(.station-banner) h1 { font-size:clamp(28px,3.35vw,46px) }
.station-banner { position:relative; isolation:isolate; overflow:hidden; padding:clamp(20px,3vw,38px);
  min-height:clamp(142px,16vw,215px); align-items:flex-end; color:#fff; border-radius:var(--radius);
  background:linear-gradient(90deg,#0c282e 3%,#102e32ee 26%,#102b3199 46%,#0b252d14 77%),
    url("/assembly-hall.webp") right 49% / cover no-repeat,#102b32 }
.station-banner h1 { font-size:clamp(34px,4.2vw,58px) }
.station-banner p { color:#c4ded7; font-size:14px }
.station-banner time { align-self:flex-start; font:600 12px/1.4 "Inter","Microsoft YaHei",sans-serif; color:#fff;
  background:#10282ec9; border:1px solid #d2e7dc5c; padding:6px 11px; border-radius:20px }
.summary,.focus-panel { border-radius:var(--radius) }
.summary { background:#fff }
.summary-stats { gap:16px; margin:24px 0 }
.summary-stats>div+div { padding-left:14px; border-left:1px solid #dfebe7 }
.summary-stats strong { font-family:"Inter","Segoe UI",sans-serif; font-weight:620; color:#193a41 }
progress,progress::-webkit-progress-bar { background:#e2ece8 }
progress::-webkit-progress-value { background:#218674 }
progress::-moz-progress-bar { background:#218674 }
.focus-panel { background:#18393e }
.focus-panel .quiet,.focus-panel .notice-row small { color:#c6e3db }
.focus-panel .notice-kind { color:#b8efdb; background:#2c514e }
.workspace-card { --route:#23866f; --station:#e4f5ee; position:relative; padding:18px; overflow:hidden }
.workspace-card[data-page=bom] { --route:#346c9b; --station:#ecf3fa }
.workspace-card[data-page=discipline] { --route:#976221; --station:#f9f1e1 }
.workspace-card::after { content:""; position:absolute; right:20px; top:24px; width:34%; height:7px;
  background:radial-gradient(circle closest-side,#fff 45%,var(--route) 52% 93%,transparent) right center / 7px 7px no-repeat,
    linear-gradient(90deg,transparent,var(--route)) center / 100% 2px no-repeat }
.workspace-card:hover { background:var(--station); border-color:var(--route) }
.module-icon { background:var(--station); color:var(--route); border-radius:8px }
.stat { border-top:3px solid #68a999 }
.stat:nth-child(2) { border-top-color:#6898b8 }
.stat:nth-child(3) { border-top-color:#bc8a43 }
.stat:nth-child(4) { border-top-color:#2a806b }
.chip[data-status="已闭环"] { background:#d7f0e4; color:#14573f }
.chip[data-status="待确认闭环"],.chip[data-status="已完成 · 待确认闭环"] { color:#784611; background:#fbebc9 }
th,.filters { background:#edf3f1 }
th { color:#405a5e }
tbody tr:hover td,.notice-row:hover { background:#f0f7f4 }
.closure-box { margin:16px 0; padding:14px 16px; display:flex; align-items:center; justify-content:space-between; gap:12px;
  background:#eef7f3; border:1px solid #c1dbd0; border-left:4px solid #20765f; border-radius:9px }
.closure-box p { font-size:13px; margin-top:3px }
.manage-tabs { padding:13px 15px; border-bottom:1px solid var(--line) }
.manage-tabs button[aria-pressed=true] { background:#e2f1ea; color:#145443; border-color:#a7cbbd }
#management .filters { align-items:flex-end }
#management .filters label { display:grid; gap:3px; font-size:12px }
#management .manage-search { flex:1; min-width:min(210px,100%) }
#management .pager { align-items:center }
#adminCount { margin-right:auto }
#adminMessage:not(:empty) { margin:10px 14px }
.document-title { min-width:150px }
.document-title small { display:block; overflow-wrap:anywhere; font-size:12px; margin-top:4px; max-width:34em }
#adminRows td:nth-child(2),#adminRows td:nth-child(3) { white-space:nowrap }
#adminRows td:nth-child(4) { min-width:150px; max-width:360px }
#adminRows td:last-child { font-size:13px; color:var(--muted) }
#closureDialog { max-width:440px }
@media(max-width:850px) {
  .layout { grid-template-columns:minmax(0,1fr) }
  .sidebar { position:relative; min-height:0; min-width:0; padding:12px 15px; flex-flow:column nowrap; align-items:stretch }
  .sidebar .brand { margin:0 }
  .sidebar nav { width:100%; min-width:0; max-width:100%; gap:4px; flex-wrap:nowrap; overflow-x:auto; padding-bottom:3px }
  .nav { flex:none; width:auto; min-height:35px; padding:5px 9px }
  #managementNav { margin-top:0 }
  .login { grid-template-columns:1fr }
  .hero { min-height:220px; background-position:center,center 51% }
  .hero-copy { margin:32px 0 0 }
  .hero>small { display:none }
}
@media(max-width:580px) {
  .workspace-card::after { width:15%; top:50% }
  .station-banner { padding:18px; min-height:138px }
  .station-banner time { font-size:11px }
  .signin { padding:24px 20px }
  .hero { min-height:178px; padding:21px }
  .hero-copy { margin-top:23px }
  .hero h1 { font-size:34px }
  .hero p { margin-top:6px; font-size:13px }
  .closure-box { align-items:flex-start; flex-direction:column }
  .closure-box .btn { align-self:stretch }
  .summary-stats { gap:8px }
  .summary-stats>div+div { padding-left:9px }
  .workspace-card { padding:14px }
}
