:root{--red:#1687ee;--action-blue:#2685ff;--panel-radius:18px;--sidebar-width:190px;--header-height:72px}
:root { --workspace-bg: #eaf3fd; }
body{background:var(--workspace-bg);color:#17283f}
.layout > main { background: var(--workspace-bg); }
header{background:var(--workspace-bg);border:0}.brand{color:#064bb8;font-size:19px}.avatar{background:linear-gradient(#59c8ff,#0083dc)}
aside{background:var(--sidebar-bg, #eef6ff) url(assets/sidebar-waves.svg) no-repeat left bottom/100% auto;border-color:#dceaff;padding-top:22px}
nav button{height:44px}nav button:not(.current):hover{background:#dfedff}.red,.current{background:linear-gradient(115deg,#38b3ff,#0069ca)}
main{padding:20px 24px}.hero{background:transparent;min-height:130px;margin-bottom:20px;padding:20px 8px}.hero img{opacity:.12;filter:grayscale(1) sepia(1) saturate(3) hue-rotate(170deg)}.hero h1{color:#112c4d;font-size:32px}.hero p{color:#62788d}.hero button{background:#e0efff;color:#1675cf}
.dashboard-grid{gap:20px;grid-template-columns:minmax(0,1.8fr) minmax(320px,1fr)}
.panel{padding:16px;border-color:#f4f8ff;box-shadow:0 5px 18px #4682c413}.heading{height:40px;padding-bottom:12px}h2{font-size:22px}.mark{color:#1687ee}
.top>.panel:first-child{background:linear-gradient(120deg,#0094d8,#006fba 65%,#008fce);color:white;border-color:#65ccff}
.stats{gap:0;margin-top:20px}.stat{background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}.stat+.stat{border-left:1px solid #ffffff38}.stat-top,.stat:nth-child(2) .stat-top,.stat:nth-child(3) .stat-top{background:transparent;height:86px;padding:0 20px}.stat strong{font-size:34px;color:white}.stat:last-child strong,.stat small,.metrics,.metrics b{color:white}.stat .tile{width:52px;height:52px;filter:hue-rotate(180deg)}.metrics{border-top:1px solid #ffffff30;margin-top:16px;padding:15px 18px;line-height:1.9}.metrics div{flex-wrap:nowrap}.metrics dd{white-space:nowrap}
.quick{gap:16px;margin-top:18px}.shortcut{border-radius:12px;padding:15px;background:linear-gradient(120deg,#eaf3ff,#cfe5ff);border:1px solid #d7e9ff;min-height:94px;gap:16px}.shortcut:hover{background:#c5e1ff}.shortcut .tile{width:50px;height:50px;filter:hue-rotate(180deg)}.shortcut b{font-size:18px}.shortcut small{font-size:12px}
.toolbar{height:auto;min-height:44px;flex-wrap:wrap;margin-bottom:12px}.toolbar h2{color:#087dde}.pill{background:#f1f7ff;border-color:#dceaff}.pill.red{background:#1687ee}.task-table th{background:#eef3ff;height:44px}.task-table td{height:48px}.news-tab.selected{color:#2685ff}.news-tab.selected:after{background:#2685ff}.news-list button{height:43px}.news-head{gap:16px}.dept:hover{background:#e8f3ff}
@media(min-width:1600px){.top>.panel{min-height:310px}.stat-top{height:100px}.shortcut{min-height:110px}.task-table td{height:56px}}
@media(max-width:1100px){main{padding:14px}.dashboard-grid{grid-template-columns:1fr}.hero h1{font-size:26px}}
@media(max-width:600px){.stats{grid-template-columns:1fr}.stat+.stat{border-left:0;border-top:1px solid #ffffff38}.hero h1{font-size:22px}.quick{gap:8px}.shortcut{padding:8px;gap:8px}.shortcut b{font-size:14px}}

/* Workbench proportions follow the reference at a 1440px viewport. */
body { background: linear-gradient(125deg, #f3f7fd, #e4efff); }
button:focus-visible { outline-color: #1687ee; }
.hero { aspect-ratio: auto; margin: 0; min-height: 78px; padding-block: 6px; overflow: visible; }
.hero img { display: none; }
.hero::before {
  content: ""; position: absolute; inset: -12px -10px 0 30%; pointer-events: none;
  background: url(assets/workbench-civic-banner-reference.svg) right bottom / contain no-repeat;


}
.hero-copy { transform: none; }
.hero h1 { color: #0d2444; font-weight: 800; }
.hero button { align-self: end; background: #fff; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
.dashboard-grid > .top, .dashboard-grid > .bottom {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px;
}
.dashboard-grid .panel { border-radius: 16px; background-color: #fff; }
.dashboard-grid .heading { padding-inline: 4px; }
.top > .panel:first-child { padding: 19px clamp(15px, 2.1vw, 40px) 12px; }
.top > .panel:first-child .mark img { filter: brightness(0) invert(1); }
.stats { margin-top: 10px; }
.stat-top, .stat:first-child .stat-top, .stat:nth-child(n+2) .stat-top {
  height: 66px; padding: 0 clamp(5px, 1vw, 18px); gap: 10px;
}
.stat strong { font-size: clamp(24px, 2.6vw, 45px); line-height: 1.08; }
.stat .tile { filter: grayscale(1) brightness(0) invert(.9) sepia(.3) saturate(2) hue-rotate(163deg); }
.metrics { margin-top: 10px; padding: 9px clamp(5px, 1vw, 18px) 0; font-size: clamp(12px, 1.02vw, 19px); line-height: 1.75; }
.quick-panel { padding: 16px; }
.quick { margin-top: 13px; gap: 13px; }
.shortcut { min-height: 82px; padding: 9px 12px; justify-content: center; color: #111b2b; }
.shortcut .tile { filter: none; width: clamp(34px, 4vw, 74px); height: auto; }
.shortcut small { display: none; }
.shortcut b { font-size: clamp(13px, 1.2vw, 24px); }
.dashboard-grid .toolbar { border-bottom: 1px solid #e2eafa; padding: 0 0 5px; gap: 4px; }
.dashboard-grid .toolbar h2 { border-bottom: 3px solid #1687ee; padding: 8px 2px; font-size: clamp(16px,1.4vw,26px); }
.toolbar .mark { display: none; }
.dashboard-grid .toolbar [data-filter] { background: transparent; border-color: transparent; font-weight: 500; padding: 0 5px; }
.dashboard-grid .toolbar [data-filter].red { color: #0867c0; background: #edf5ff; }
.dashboard-grid .bottom > .panel { padding: 10px 13px 6px; }
.task-table td { height: clamp(36px, 2.9vw, 65px); }
.task-table th { height: clamp(35px, 2.7vw, 61px); }
.news-list button { height: clamp(34px, 2.5vw, 58px); }
.news-head { height: clamp(35px, 2.55vw, 60px); }
.news-tab { font-size: inherit; }
.badge { background: #df4844; box-shadow: none; }
@media (min-width: 761px) {
  :root { --sidebar-width: 200px; --header-height: 60px; }
  .brand { position: absolute; inset: 0 auto 0 0; width: var(--sidebar-width); display: grid; place-content: center; justify-items: center; gap: 4px; background: #eaf2fc; font-size: clamp(14px, 1.16vw, 20px); }
  .brand-logo { display: block; width: clamp(23px, 1.5vw, 30px); height: auto; }
  .sidebar-collapsed .brand span { display: none; }
  .sidebar-collapsed .brand-logo { width: 22px; }
  header .menu-toggle { margin-left: calc(var(--sidebar-width) - 13px); }
  header:has(#breadcrumb-current[aria-current="page"]) .breadcrumb { flex: 1; }
  .tools { gap: clamp(12px,1.6vw,33px); font-size: clamp(14px,1.12vw,25px); }
  .tools .avatar { width: clamp(32px,2.8vw,65px); height: auto; }
  .tools .bell { display: flex; align-items: center; gap: 7px; }
  .tools .bell::before { content: "通知"; order: 1; font-size: .9em; }
  aside { padding: 5px 6px 70px; }
  nav { gap: 3px; }
  nav button { height: clamp(37px,2.76vw,72px); padding-inline: clamp(8px,1.1vw,25px); font-size: clamp(13px,.9vw,23px); }
  .hero { min-height: clamp(76px, 4.6vw, 98px); }
  .hero h1 { font-size: clamp(23px, 1.65vw, 28px); }
  .hero p { font-size: clamp(13px,1.13vw,28px); }
}
@media (min-width: 1120px) {
  main { padding: 0 clamp(16px,1.45vw,38px) 12px; }
  .dashboard-grid > .top { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .dashboard-grid > .bottom { grid-template-columns: minmax(0, 2.27fr) minmax(0, 1fr); }
  .top > .panel { min-height: clamp(245px,20vw,530px); }
  .quick-panel { align-self: start; min-height: clamp(236px,19.4vw,512px) !important; }
  .shortcut { min-height: clamp(72px,5.8vw,156px); }
  .stats { margin-top: clamp(12px,1.3vw,35px); }
  .stat-top, .stat:first-child .stat-top, .stat:nth-child(n+2) .stat-top { height: clamp(63px,5.5vw,138px); }
  .stat .tile { width: clamp(38px,4.25vw,108px); height: auto; }

}

/* Interactive text and selected states use the workbench accent. */
:root { --accent: #247FFF; --primary-gradient: linear-gradient(115deg, #3295ff, #146de4); --action-blue: var(--accent); --red: var(--accent); }
button, .act, .act:is(:hover,:focus-visible), .more-link,
.shortcut, .hero button, .dashboard-grid .toolbar [data-filter].red {
  color: var(--accent);
}
button:focus-visible { outline-color: var(--accent); }
.red, .current, .dashboard-grid .toolbar [data-filter].red {
  background: var(--accent); color: #fff;
}
.dashboard-grid .toolbar [data-filter].red { background: #eaf3ff; color: var(--accent); }
#nav button:not(.current), .news-tab:not(.selected),
.dashboard-grid .toolbar [data-filter]:not(.red),
.monitor-tab:not([aria-selected="true"]), #run-tabs button:not(.red) { color: #171a20; }
#nav button { position: relative; width: 100%; }
#nav button:not(.current) .nav-icon { color: #586b80; }
#nav .nav-group-arrow { margin-inline-start: auto; }
.news-tab.selected, .dashboard-grid .toolbar h2 { color: var(--accent); }
.news-tab.selected::after { background: var(--accent); }
.dashboard-grid .toolbar h2 { border-color: var(--accent); }
.count, .bell::after { background: #df4844; }
.bell::after { right: auto; left: 13px; }
.bell img { flex: none; }
@media (min-width: 761px) {
  .sidebar-collapsed #nav :is(div,li):has([aria-current="page"]) > button { background: var(--accent); color: #fff; }
}
.monitor-tabs .pill[aria-pressed="false"] { background: linear-gradient(#fff, #f3f5f9); color: #171a20; }
.monitor-tabs .pill[aria-pressed="false"]:hover { background: #e8f3ff; }
.monitor-filter button[aria-pressed="false"] { color: #16181b; }
.monitor-filter button[aria-pressed="false"]:is(:hover, :focus-visible) { color: var(--action-blue); }
.stat .tile { filter: saturate(.65) brightness(1.6); }
@media (max-width: 760px) {
  .bell::after { left: auto; right: 2px; }
}

/* Keep navigation within its column and give dashboard sections room to breathe. */
#sidebar { overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable both-edges; }
#nav { min-width: 0; }
#nav button { min-width: 0; gap: clamp(5px, .5vw, 10px); padding-inline: clamp(6px, .65vw, 16px); }
#nav .nav-icon { width: clamp(18px, 1.35vw, 28px); height: auto; }
#nav .nav-label { min-width: 0; white-space: normal; line-height: 1.25; }
#nav .nav-group-arrow { margin-inline-start: auto; }
#nav .nav-submenu button, .nav-submenu-label { padding-inline-start: clamp(25px, 2vw, 44px); white-space: normal; }
.sidebar-collapsed #nav button { padding-inline: 0; }
.hero { background: var(--workspace-bg); --banner-gap: clamp(8px, .7vw, 14px); margin-bottom: var(--banner-gap); isolation: isolate; }
.hero::before {
  inset: 0 0 calc(-1 * var(--banner-gap)) auto;
  aspect-ratio: 1400 / 236;
  max-width: 66%;
  opacity: 1;

  mask-image: linear-gradient(90deg, transparent, #000 35%), linear-gradient(transparent, #000 9%, #000 92%, transparent);
  mask-composite: intersect;
}
.dashboard-grid { gap: clamp(16px, 1.3vw, 28px); }
.dashboard-grid > .top, .dashboard-grid > .bottom { gap: clamp(12px, 1vw, 22px); }
.dashboard-grid > .top > .panel { min-height: 0; }
.dashboard-grid > .top > .quick-panel { min-height: 0 !important; align-self: stretch; }
.dashboard-grid .quick-panel { --quick-spacing: clamp(9px, .85vw, 16px); padding: 9px var(--quick-spacing) var(--quick-spacing); }
.dashboard-grid .heading { height: auto; min-height: 26px; padding-bottom: 0; gap: 8px; }
.dashboard-grid .heading .mark img { width: 20px; height: auto; }
.dashboard-grid .shortcut {
  min-height: clamp(66px, 5.2vw, 123px);
  gap: clamp(8px, 1vw, 21px);
  background: linear-gradient(135deg, #f1f7ff, #deecff);
}
.dashboard-grid .shortcut:hover { background: #d4e7ff; }
.shortcut .tile, .stat .tile { width: clamp(32px, 3.6vw, 76px); height: auto; }
.stat .tile { filter: brightness(1.32) saturate(.72); }
.dashboard-grid .bottom > .panel { padding: clamp(10px, .95vw, 20px); }
.dashboard-grid .toolbar { column-gap: clamp(4px, .45vw, 10px); }
.dashboard-grid .task-table th { background: #edf3ff; }
@media (min-width: 1120px) {
  main { padding-inline: clamp(18px, 1.2vw, 38px); }
  .hero { padding-inline: 4px; min-height: clamp(76px, 4.6vw, 98px); }
}

/* Workbench tasks and notices follow the blue skin. */
.dashboard-grid > .bottom > .panel {
  padding: 8px 16px 16px;
  background: linear-gradient(145deg, #ffffffdf, #f8fbffef);
  border-color: #f0f5fd;
}
.dashboard-grid .bottom .toolbar { min-height: 39px; margin-bottom: 6px; border-bottom: 0; }
.dashboard-grid .bottom .toolbar h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border-bottom: 0;
}
.bottom .toolbar h2 em { color: inherit; }
.dashboard-grid .bottom .toolbar [data-filter] {
  min-height: 28px;
  padding-inline: 11px;
  border: 1px solid #d7e3f3;
  border-radius: 5px;
  background: linear-gradient(#fbfdff, #eef4fc);
  color: #16181b;
}
.dashboard-grid .bottom .toolbar [data-filter][aria-pressed="false"]:hover {
  border-color: #aacbf0;
  background: #e4efff;
}
.dashboard-grid .bottom .toolbar [data-filter][aria-pressed="true"] {
  border-color: transparent;
  background: var(--primary-gradient);
  color: #fff;
}
.dashboard-grid .bottom .task-table th { height: 39px; background: #edf2fe; }
.bottom .task-table td { height: clamp(38px, 2.9vw, 60px); background: #fff; }
.bottom .task-table tbody tr:hover td:not(.empty) { background: #e7f1fe; }
.bottom button.task-name { color: #16181b; }
.bottom .task-table tbody tr:hover .task-name,
.bottom button.task-name:is(:hover, :focus-visible) {
  color: var(--action-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bottom .news-head { min-height: 39px; }
.bottom .news-tab:is(:hover, :focus-visible) { color: var(--action-blue); }
.bottom .news-list button { height: clamp(35px, 2.8vw, 55px); }
.bottom .speaker { background: #247fff; }
.bottom .speaker img { width: 20px; height: 20px; filter: brightness(0) invert(1); }

@media (min-width: 761px) {
  body.sidebar-collapsed { --header-height: 54px; }
  .sidebar-collapsed .brand { gap: 0; width: var(--sidebar-width); }
  .sidebar-collapsed #sidebar { padding-top: 4px; scrollbar-width: none; }
  .sidebar-collapsed .tools .avatar { width: 36px; }
}

@media (max-width: 760px) { .brand { display: flex; align-items: center; gap: 5px; } .brand-logo { width: 20px; height: 20px; flex: none; } }

/* Header and workbench refinements. */
.tools .dept, .tools .account { color: #16181b; }
.tools .bell::before { content: none; }
.dashboard-grid .top .heading h2 { font-size: 18px; }
.dashboard-grid .bottom .toolbar h2 { font-size: 18px; color: #16181b; }
.bottom .news-list .label { color: #16181b; }
.bottom .news-list button:is(:hover, :focus-visible) .label {
  color: var(--action-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (min-width: 761px) {
  .brand { background: var(--sidebar-bg); }
  .brand-logo { width: clamp(32px, 1.9vw, 46px); }
  .sidebar-collapsed .brand-logo { width: 26px; }
}

.dashboard-grid .top > .panel:first-child {
  background: linear-gradient(145deg, #fff, #f5f9ff);
  border-color: #e1ecfa;
  color: #17283f;
  padding: 9px clamp(14px, 1.25vw, 24px) clamp(14px, 1.25vw, 24px);
}
.top > .panel:first-child .mark img { filter: none; }
.stats { gap: clamp(8px, .8vw, 16px); margin-top: 10px; }
.stats .stat {
  min-width: 0;
  border: 1px solid #dce9fa;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.stats .stat-top, .stats .stat:first-child .stat-top, .stats .stat:nth-child(n+2) .stat-top {
  height: auto;
  min-height: clamp(62px, 5vw, 96px);
  padding: 10px clamp(6px, .85vw, 16px);
  gap: clamp(5px, .7vw, 14px);
  background: linear-gradient(135deg, #f1f7ff, #e5efff);
}
.stats .stat .tile { width: clamp(28px, 2.7vw, 52px); filter: none; }
.stats .stat strong { color: var(--accent); font-size: clamp(19px, 1.65vw, 28px); }
.stats .stat small, .stats .metrics b { color: #153664; }
.stats .metrics {
  margin: 0;
  padding: 8px clamp(7px, .8vw, 15px);
  border: 0;
  color: #445872;
  font-size: clamp(11px, .94vw, 16px);
}
.stats .metrics div { padding: 2px 0; }
.stats .metrics div + div { border-top: 1px solid #edf2fa; }
.dashboard-grid .quick-panel { background: linear-gradient(145deg, #ffffffdf, #f8fbffef); border-color: #f0f5fd; }
.quick-panel .quick { gap: var(--quick-spacing); margin-top: 10px; }
.dashboard-grid .quick-panel .shortcut {
  justify-content: flex-start;
  text-align: left;
  min-height: clamp(71px, 5.7vw, 110px);
  gap: 6px;
  padding-inline: clamp(5px, 1.1vw, 18px);
  border-color: #d1e6fc;
  background: linear-gradient(135deg, #e9f3ff, #d3e7fc);
}
.dashboard-grid .quick-panel .shortcut:hover { background: #c9e3ff; }
.quick-panel .shortcut .tile { width: clamp(28px, 2.9vw, 58px); }
.quick-panel .shortcut b { color: #16181b; font-size: clamp(12px, 1.2vw, 18px); white-space: nowrap; }

:root { --sidebar-bg: #eef6ff; }
@media (min-width: 761px) {
  .brand { border-inline-end: 1px solid #dceaff; padding-block: 7px; gap: 3px; }
  .brand-logo { width: 26px; }
  header .tools { gap: clamp(9px, 1.1vw, 20px); font-size: 14px; }
  .tools .dept { padding: 5px 8px; }
  .tools .pin { width: 16px; height: 16px; }
  .tools .bell img { width: 22px; height: 22px; }
  .tools .bell::after { left: auto; right: 0; }
  .tools .avatar, .sidebar-collapsed .tools .avatar { width: 30px; height: 30px; }
  .tools .chevron-down { width: 11px; height: 11px; }
}
#nav button.current, .sidebar-collapsed #nav :is(div,li):has([aria-current="page"]) > button { background: var(--primary-gradient); }
/* Match the department control surface without changing button dimensions. */
#run-detail [data-run-tab] { font-size: 16px; }
#run-remaining { color: #d92d35; }
#run-detail #run-status .pill[aria-pressed="false"],
:is(#run-detail, #monitor) .pill[type="reset"] {
  background: linear-gradient(#fff, #f3f5f9);
  border-color: var(--line);
  border-radius: 6px;
  color: #16181b;
}
#run-detail #run-status .pill[aria-pressed="false"]:hover,
:is(#run-detail, #monitor) .pill[type="reset"]:hover { background: #e8f3ff; }

:is(#monitor, #run-detail) .pill.red { background: var(--primary-gradient); }

.dashboard-grid .bottom .toolbar [data-filter],
#run-detail #run-status .pill { font-weight: 700; }

@media (max-width: 340px) {
  .quick-panel .quick { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1120px) and (max-width: 1300px) {
  .dashboard-grid .quick-panel .shortcut { padding-inline: 5px; }
}
header .account { text-decoration: none; }

