:root {
  --juniper: #182e29;
  --juniper-2: #213e37;
  --juniper-active: #274a41;
  --juniper-line: #2d4c44;
  --ink: #182420;
  --ink-2: #2c3b36;
  --muted: #586761;
  --subtle: #78857f;
  --celadon: #177a65;
  --celadon-deep: #115e4e;
  --celadon-soft: #e7f4ef;
  --celadon-line: #bddfd4;
  --terracotta: #c25231;
  --terracotta-soft: #fdf0eb;
  --terracotta-line: #ecc3b5;
  --teal: #177a65;
  --green: #147a56;
  --green-soft: #e6f5ee;
  --red: #bf3628;
  --red-soft: #fcece9;
  --orange: #b86f0e;
  --orange-soft: #fcf4e4;
  --plum: #6c4f7a;
  --plum-soft: #f3eef6;
  --canvas: #eaf0ed;
  --surface: #fcfdfb;
  --surface-alt: #f2f6f4;
  --surface-hover: #ebf4f0;
  --line: #d4dfd9;
  --line-soft: #e6ede9;
  --line-strong: #bacac2;
  --sidebar: 164px;
  --header: 72px;
  --footer: 42px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  font-synthesis: none;
  scrollbar-color: #c8c6ba transparent;
  scrollbar-width: thin;
}

* { box-sizing: border-box; }
::selection { background: #cfeae1; color: #122822; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cac8bc; border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #9da8a3; border: 2px solid transparent; background-clip: content-box; }

body { margin: 0; background: var(--canvas); font-size: 13px; color: var(--ink); }
button, input, select { font: inherit; }
input, textarea, select { caret-color: var(--celadon); }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; border: 0; background: none; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--celadon);
  outline-offset: 2px;
}

.icon { vertical-align: middle; flex-shrink: 0; }
.nowrap { white-space: nowrap; }
.green-text { color: var(--green) !important; }
.blue-text { color: var(--terracotta) !important; }
.teal-text { color: var(--celadon) !important; }
.red-text { color: var(--red) !important; }
.orange-text { color: var(--orange) !important; }
.muted { color: var(--muted) !important; }
[hidden] { display: none !important; }
.boot-loading { padding: 48px; text-align: center; color: var(--muted); font-size: 14px; }

/* 深桧黑曜 × 荧光青瓷 HUD 指挥顶栏（区别于总经理驾驶舱深蓝风格） */
.topbar {
  height: var(--header);
  background:
    radial-gradient(ellipse 46% 125% at 50% 115%, rgba(46, 214, 168, 0.24) 0%, transparent 62%),
    repeating-linear-gradient(90deg, rgba(114, 240, 205, 0.035) 0 1px, transparent 1px 28px),
    linear-gradient(180deg, #0b1916 0%, #112622 65%, #0d1f1c 100%);
  color: #edf9f5;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  border-bottom: 1px solid rgba(72, 224, 178, 0.3);
  box-shadow: 0 4px 18px rgba(8, 22, 19, 0.34);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 12%; right: 12%; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(72, 224, 178, 0.85) 30%, #8effe0 50%, rgba(72, 224, 178, 0.85) 70%, transparent);
  pointer-events: none;
}
.brand { display: flex; gap: 10px; align-items: center; min-width: 0; flex-shrink: 0; justify-self: start; z-index: 1; }
.brand-flask { width: 38px; height: 38px; flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(75, 224, 184, 0.28)); }
.brand-copy { flex: 0 1 auto; min-width: 0; display: grid; gap: 4px; text-align: center; justify-items: center; }
.brand strong { display: block; text-align: center; font-size: 15.5px; font-weight: 650; letter-spacing: 0.4px; color: #eefaf6; text-shadow: 0 0 12px rgba(72, 224, 178, 0.22); word-break: keep-all; }
.brand small { display: block; width: 75%; justify-self: center; color: #87c4b3; font-size: 10.5px; letter-spacing: 1px; text-align: justify; text-align-last: justify; white-space: nowrap; }

.topbar-title {
  position: relative;
  height: var(--header);
  min-width: min(26vw, 390px);
  padding: 6px 34px 2px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 0;
}
.topbar-title::before {
  content: "";
  position: absolute;
  inset: 0 0 1px 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 24px 100%);
  background: linear-gradient(180deg, rgba(30, 82, 69, 0.42), rgba(14, 42, 36, 0.88));
  border-top: 1px solid rgba(110, 242, 203, 0.16);
  pointer-events: none;
}
.topbar-title::after {
  content: "";
  position: absolute;
  left: 24px; right: 24px; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #44e2b6 22%, #a8ffea 50%, #44e2b6 78%, transparent);
  box-shadow: 0 0 10px rgba(68, 226, 182, 0.65);
  pointer-events: none;
}
.topbar-title h1 {
  position: relative; z-index: 1;
  font-size: 22px;
  letter-spacing: 3.5px;
  line-height: 1.25;
  margin: 0;
  font-weight: 700;
  color: #f2fffb;
  text-shadow: 0 0 16px rgba(72, 232, 185, 0.42);
  white-space: nowrap;
}
.topbar-title p {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 10.5px;
  letter-spacing: 2.2px;
  color: #8adbc4;
  margin: 3px 0 0;
  white-space: nowrap;
}
.topbar-title p::before, .topbar-title p::after {
  content: ""; width: 12px; height: 1px; background: #44e2b6; opacity: 0.65;
}

.topbar-tools { display: flex; align-items: center; justify-self: end; gap: 8px; z-index: 1; }
.topbar-date {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 10px; border-radius: 5px;
  background: rgba(9, 25, 22, 0.72); border: 1px solid rgba(72, 224, 178, 0.28);
  font-size: 12px; letter-spacing: 0.4px; white-space: nowrap; color: #8ff2d5; font-variant-numeric: tabular-nums;
}
.topbar-date::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #46e5b8; box-shadow: 0 0 8px #46e5b8;
  animation: hudPulse 2.4s ease-in-out infinite;
}
@keyframes hudPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.42; } }
.top-action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 31px; padding: 0 12px; border-radius: 6px; font-size: 12px; font-weight: 500;
  background: rgba(20, 48, 42, 0.82); border: 1px solid rgba(86, 214, 178, 0.36); color: #ddf7ef; white-space: nowrap;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.top-action-btn:hover { background: rgba(31, 76, 65, 0.94); border-color: #65eec7; color: #fff; }
.top-action-btn.is-primary {
  background: linear-gradient(135deg, #158269, #1da384);
  border: 1px solid #6ef2cb; color: #f7fffd;
  box-shadow: 0 0 14px rgba(42, 212, 165, 0.28);
}
.top-action-btn.is-primary:hover {
  background: linear-gradient(135deg, #199478, #24b896);
  border-color: #9cffdf; color: #fff;
}
.top-action-btn.is-spinning .icon { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.user-menu { display: flex; gap: 7px; align-items: center; color: #d7f3ea; font-size: 12px; font-weight: 500; white-space: nowrap; }
.avatar {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; width: 32px; height: 32px;
  background: rgba(24, 68, 57, 0.85); color: #79f2cf; border: 1px solid rgba(94, 234, 194, 0.45);
}

/* 深桧绿左侧竖轨 */
.sidebar {
  position: fixed; left: 0; top: var(--header); bottom: var(--footer); width: var(--sidebar);
  background: var(--juniper);
  color: #dbe9e4;
  border-right: 1px solid var(--juniper-line);
  z-index: 15;
  padding: 14px 10px 10px;
  display: flex; flex-direction: column;
}
.sidebar nav { display: flex; flex-direction: column; gap: 4px; min-height: 0; overflow-y: auto; }
.nav-group-label {
  margin: 4px 10px 6px;
  font-size: 10.5px;
  letter-spacing: 0.9px;
  color: #93b5aa;
  font-weight: 500;
}
.nav-item {
  height: 40px;
  display: flex; align-items: center; gap: 11px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid transparent;
  position: relative;
  font-size: 13px;
  color: #d6e6e0;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.nav-item > .icon { color: #9fc1b5; width: 18px; height: 18px; }
.nav-item:hover { background: rgba(255, 255, 255, 0.07); color: #fcfcfa; }
.nav-item.is-active {
  background: var(--juniper-active);
  border-color: rgba(145, 214, 194, 0.28);
  color: #fcfcfa;
  font-weight: 600;
}
.nav-item.is-active > .icon { color: #7ae2c5; }
.active-marker {
  display: none; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 2px 2px 0; background: #7ae2c5;
}
.nav-item.is-active .active-marker { display: block; }
.collapse-button {
  margin-top: auto;
  display: flex; align-items: center; gap: 11px;
  color: #bdd6cd;
  padding: 11px 11px 4px;
  border-top: 1px solid var(--juniper-line);
  font-size: 12px;
  flex-shrink: 0;
}
.collapse-button:hover { color: #fcfcfa; }
.nav-collapsed { --sidebar: 64px; }
.is-collapsed .nav-item, .is-collapsed .collapse-button { justify-content: center; padding-left: 0; padding-right: 0; }
.is-collapsed .nav-item span, .is-collapsed .collapse-button span, .is-collapsed .nav-group-label { display: none; }

/* 主画布与底栏 */
.main-content {
  margin: var(--header) 0 var(--footer) var(--sidebar);
  padding: 14px 20px 28px;
  min-height: calc(100vh - var(--header) - var(--footer));
  background: var(--canvas);
}
.footer {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--footer); z-index: 21;
  background: #e3ebe7;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; font-size: 11px; letter-spacing: 0.4px; color: var(--ink-2); gap: 15px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.footer-brand .icon { color: var(--celadon); }
.source-button {
  font-size: 11px; letter-spacing: 0; display: flex; gap: 6px; align-items: center;
  color: var(--muted); margin-left: auto;
}
.source-button:hover { color: var(--celadon-deep); }
.demo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.footer-values { white-space: nowrap; letter-spacing: 0.8px; color: var(--muted); }

/* 首页全宽原色厂区全景横幅（无文字遮罩） */
.overview {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.hero-top {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
}
.factory-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  display: block;
}

/* 通用瓷白面板 / 徽章 / 按钮 */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
}
.panel-heading {
  min-height: 46px;
  padding: 10px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-heading h2, .panel-heading h3 { font-size: 15px; font-weight: 650; margin: 0; color: var(--ink); }
.panel-sub { margin: 3px 0 0; font-size: 11.5px; color: var(--muted); }
.text-button { display: inline-flex; align-items: center; color: var(--muted); font-size: 12px; gap: 2px; padding: 5px 0; white-space: nowrap; }
.text-button:hover { color: var(--celadon-deep); }
.primary-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 7px;
  background: var(--celadon); color: #fcfcfa; font-size: 12px; font-weight: 500;
}
.primary-btn:hover { background: var(--celadon-deep); color: #fff; }
.ghost-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 7px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-2); font-size: 12px;
}
.ghost-btn:hover { border-color: var(--celadon); background: var(--surface-hover); color: var(--celadon-deep); }
.mini-btn { padding: 4px 10px; border-radius: 6px; background: var(--surface); border: 1px solid #d5c195; color: #6c4710; font-size: 11px; }
.mini-btn:hover { border-color: var(--orange); }

.badge { display: inline-flex; align-items: center; justify-content: center; padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 550; line-height: 1.45; white-space: nowrap; }
.badge.red { background: var(--red-soft); color: #9c2419; }
.badge.orange { background: var(--orange-soft); color: #965706; }
.badge.blue { background: var(--celadon-soft); color: var(--celadon-deep); }
.badge.teal { background: #e8f3f7; color: #1a5d7a; border: 1px solid #bfd8e4; }
.badge.green { background: var(--green-soft); color: #0e6345; }
.badge.purple { background: var(--plum-soft); color: #583e66; }
.badge.muted { background: #efeee7; color: var(--muted); }

.notice-state {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border: 1px solid var(--celadon-line); background: var(--celadon-soft);
  border-radius: 8px; font-size: 12px; color: var(--celadon-deep); margin-bottom: 12px;
}
.notice-state.error { background: var(--red-soft); border-color: var(--red-line); color: #9c2419; }
.notice-state.stale { background: var(--orange-soft); border-color: var(--orange-line); color: #8c5206; }
.empty-box { padding: 24px 12px; text-align: center; color: var(--muted); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.page-head h2 { margin: 0 0 4px; font-size: 20px; color: var(--ink); }
.page-head p { margin: 0; font-size: 12px; color: var(--muted); }

/* 详情抽屉 & 照片 */
.drawer-overlay { position: fixed; inset: 0; z-index: 40; background: rgba(18, 32, 28, 0.42); backdrop-filter: blur(2px); display: flex; justify-content: flex-end; }
.drawer { width: min(580px, 100vw); height: 100%; background: var(--canvas); box-shadow: -12px 0 36px rgba(18, 36, 32, 0.18); display: flex; flex-direction: column; }
.drawer-header { background: var(--surface); padding: 20px 22px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.drawer-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.drawer-header h2 { margin: 0 0 6px; font-size: 17px; line-height: 1.45; color: var(--ink); }
.drawer-header p { margin: 0; font-size: 11px; color: var(--muted); }
.drawer-close { padding: 6px; border-radius: 6px; color: var(--muted); }
.drawer-close:hover { background: var(--celadon-soft); color: var(--celadon-deep); }
.drawer-content { padding: 16px 20px; overflow-y: auto; flex: 1; }
.drawer-section { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; }
.drawer-section h3 { margin: 0 0 12px; font-size: 14px; color: var(--ink); }
.drawer-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer-sec-head h3 { margin: 0; }
.detail-pairs { display: grid; grid-template-columns: 110px 1fr; gap: 9px 12px; font-size: 12px; margin: 0; }
.detail-pairs dt { color: var(--muted); }
.detail-pairs dd { margin: 0; word-break: break-word; color: var(--ink); }
.detail-block + .detail-block { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.detail-block strong { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 4px; }
.detail-block p, .detail-pre { margin: 0; font-size: 12px; line-height: 1.75; white-space: pre-wrap; color: var(--ink-2); }
.drawer-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.drawer-stage-head h3 { margin: 0; }
.drawer-stage-badges { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.drawer-section .detail-block + .detail-pairs { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.drawer-timeline { list-style: none; margin: 0; padding: 4px 0 0; display: flex; gap: 8px; }
.drawer-timeline li { position: relative; flex: 1; padding-top: 18px; min-width: 0; }
.drawer-timeline li::before { content: ''; position: absolute; top: 6px; left: 0; right: -8px; height: 2px; background: var(--line); }
.drawer-timeline li:first-child::before { left: 5px; }
.drawer-timeline li:last-child::before { right: calc(100% - 5px); }
.drawer-timeline li > i { position: absolute; top: 1px; left: 0; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); }
.drawer-timeline li.done > i { background: var(--green); border-color: var(--green); }
.drawer-timeline li.current > i { background: var(--surface); border-color: #1f6a8a; box-shadow: 0 0 0 3px rgba(31, 106, 138, 0.16); }
.drawer-timeline li.done::before { background: #a8d9c5; }
.drawer-timeline li strong { display: block; font-size: 12px; font-weight: 600; color: var(--ink); }
.drawer-timeline li.todo strong { color: var(--muted); font-weight: 400; }
.drawer-timeline li span { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.drawer-ai-review { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #fcf6ea; border: 1px solid #ead8b4; }
.drawer-ai-review > strong { display: block; font-size: 11px; color: #8c5206; margin-bottom: 4px; }
.drawer-ai-review > p { margin: 0; font-size: 12px; line-height: 1.65; color: #5c4218; white-space: pre-wrap; word-break: break-word; }
.drawer-raw-more { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 12px; }
.drawer-raw-more > summary { cursor: pointer; font-size: 12.5px; color: var(--ink-2); font-weight: 600; list-style: none; }
.drawer-raw-more > summary::-webkit-details-marker { display: none; }
.drawer-raw-more[open] > summary { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.photo-group + .photo-group { margin-top: 14px; }
.photo-group h4 { margin: 0 0 8px; font-size: 12px; color: var(--ink-2); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 9px; }
.photo-thumb { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface-alt); display: flex; flex-direction: column; text-align: left; padding: 0; }
.photo-thumb:hover { border-color: var(--celadon); }
.photo-thumb img { width: 100%; height: 88px; object-fit: cover; display: block; background: #e7e5dc; }
.photo-thumb span { padding: 5px 7px; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }

/* 归口说明页 */
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.scope-wide { grid-column: 1 / -1; }
.scope-body { padding: 14px 18px; }
.scope-lead { margin: 0 0 10px; color: var(--ink-2); line-height: 1.65; }
.unit-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.unit-chip {
  padding: 5px 12px; border-radius: 7px; font-weight: 600; font-size: 12px;
  background: var(--celadon-soft); color: var(--celadon-deep); border: 1px solid var(--celadon-line);
}
.scope-tip { margin: 8px 0 0; font-size: 11px; color: var(--muted); }
.excluded-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.excluded-group { background: var(--surface-alt); border: 1px solid var(--line-soft); border-radius: 8px; padding: 10px 12px; }
.excluded-group strong { display: block; font-size: 13px; margin-bottom: 4px; color: var(--ink); }
.excluded-group p { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.scope-rules { margin: 0; padding-left: 18px; line-height: 1.85; font-size: 12px; color: var(--ink-2); }
.simple-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.simple-table th { text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--surface-alt); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.simple-table td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }

/* 督办简报弹窗 */
.briefing-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(18, 32, 28, 0.48); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.briefing-modal { width: min(760px, 100%); max-height: 88vh; background: var(--surface); border-radius: 12px; border: 1px solid var(--line-strong); box-shadow: 0 18px 48px rgba(18, 36, 32, 0.24); display: flex; flex-direction: column; overflow: hidden; }
.briefing-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.briefing-head h2 { margin: 0 0 4px; font-size: 17px; color: var(--ink); }
.briefing-head p { margin: 0; font-size: 12px; color: var(--muted); }
.briefing-toolbar { padding: 10px 20px; background: var(--surface-alt); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.briefing-toolbar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.briefing-actions { display: flex; gap: 8px; }
.briefing-body { padding: 14px 20px; overflow-y: auto; flex: 1; background: var(--surface); }
.briefing-pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: "PingFang SC", "Microsoft YaHei", monospace; font-size: 12.5px; line-height: 1.75; color: var(--ink); }
.briefing-foot { padding: 10px 20px; border-top: 1px solid var(--line); font-size: 11px; background: var(--surface-alt); }

/* 响应式 */
@media (max-width: 1100px) {
  :root { --sidebar: 64px; --header: 66px; --footer: 38px; }
  .brand strong { font-size: 13.5px; }
  .brand small { display: none; }
  .topbar-title { min-width: 0; padding: 4px 24px 0; }
  .topbar-title h1 { font-size: 17px; letter-spacing: 2px; }
  .topbar-title p { display: none; }
  .topbar-date, .user-menu > span:last-child, .user-menu-btn > span:nth-of-type(2) { display: none; }
  .nav-item { justify-content: center; padding-left: 0; padding-right: 0; }
  .nav-item span, .collapse-button span, .nav-group-label { display: none; }
  .collapse-button { justify-content: center; padding-left: 0; padding-right: 0; }
  .footer-values { display: none; }
  .scope-grid, .excluded-list { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-top { height: 128px; }
}
@media (max-width: 640px) {
  :root { --sidebar: 0px; --header: 60px; --footer: 38px; }
  .topbar { grid-template-columns: 1fr auto; padding: 0 12px; }
  .topbar-title { display: none; }
  .sidebar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .topbar-date::before { animation: none; }
}

/* 独立访问登录页（深桧黑曜 × 青瓷玉釉） */
.login-stage {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 68% 58% at 50% 0%, rgba(23, 122, 101, 0.24) 0%, transparent 70%),
    repeating-linear-gradient(90deg, rgba(114, 240, 205, 0.03) 0 1px, transparent 1px 32px),
    linear-gradient(160deg, #0b1916 0%, #132823 55%, #0e1e1b 100%);
}
.login-card {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  background: var(--surface);
  border: 1px solid rgba(90, 220, 184, 0.28);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(4, 12, 10, 0.45);
}
.login-head {
  padding: 22px 24px 18px;
  background:
    radial-gradient(ellipse 70% 110% at 50% 115%, rgba(46, 214, 168, 0.2) 0%, transparent 70%),
    linear-gradient(180deg, #0c1c19 0%, #132924 100%);
  border-bottom: 2px solid #2ab592;
  color: #edf9f5;
}
.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(114, 240, 205, 0.16);
}
.login-brand > div {
  display: grid;
  gap: 3px;
  text-align: center;
  justify-items: center;
}
.login-brand strong {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #eefaf6;
}
.login-brand small {
  display: block;
  width: 75%;
  justify-self: center;
  margin-top: 2px;
  font-size: 10.5px;
  letter-spacing: 0.8px;
  text-align: justify;
  text-align-last: justify;
  white-space: nowrap;
  color: #87c4b3;
}
.login-title {
  margin-top: 14px;
  text-align: center;
}
.login-title h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #f3fffc;
  text-shadow: 0 0 14px rgba(72, 232, 185, 0.35);
}
.login-title p {
  margin: 5px 0 0;
  font-size: 11px;
  letter-spacing: 1.6px;
  color: #8adbc4;
}
.login-form {
  padding: 22px 24px 20px;
  display: grid;
  gap: 15px;
}
.login-field {
  display: grid;
  gap: 6px;
}
.login-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.login-field input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.login-field input::placeholder { color: #8c9993; }
.login-field input:focus {
  outline: none;
  border-color: var(--celadon);
  box-shadow: 0 0 0 3px rgba(23, 122, 101, 0.15);
}
.login-error {
  margin: 0;
  padding: 9px 12px;
  border-radius: 7px;
  background: var(--red-soft);
  border: 1px solid var(--red-line);
  color: #9c2419;
  font-size: 12px;
  line-height: 1.5;
}
.login-submit {
  height: 40px;
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(135deg, #157e67, #1a977b);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 150ms ease, opacity 150ms ease;
}
.login-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #116653, #158068);
}
.login-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}
.login-foot {
  padding: 11px 24px;
  background: var(--surface-alt);
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}

/* 顶栏账号下拉菜单 & 修改密码弹窗 */
.user-dropdown { position: relative; }
.user-menu-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 2px 8px 2px 3px; border-radius: 999px;
  border: 1px solid rgba(94, 234, 194, 0.25);
  background: rgba(18, 44, 38, 0.72);
  color: #e3f8f1; font-size: 12px; font-weight: 500; white-space: nowrap;
  transition: background 150ms ease, border-color 150ms ease;
}
.user-menu-btn:hover, .user-menu-btn[aria-expanded="true"] {
  background: rgba(28, 66, 56, 0.92);
  border-color: rgba(114, 242, 206, 0.62);
}
.user-caret { color: #8cdbc5; transition: transform 150ms ease; }
.user-menu-btn[aria-expanded="true"] .user-caret { transform: rotate(180deg); }
.user-dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 35;
  width: 178px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(10, 24, 20, 0.22);
  display: grid; gap: 3px;
}
.user-dd-head {
  padding: 7px 9px 8px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 3px;
}
.user-dd-head strong { display: block; font-size: 12.5px; color: var(--ink); }
.user-dd-head small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.user-dd-item {
  width: 100%; text-align: left; padding: 7px 9px; border-radius: 6px;
  font-size: 12.5px; color: var(--ink-2); font-weight: 500;
}
.user-dd-item:hover { background: var(--surface-hover); color: var(--celadon-deep); }
.user-dd-item.is-danger { color: #9c2419; }
.user-dd-item.is-danger:hover { background: var(--red-soft); color: #871c12; }

.password-modal {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(14, 30, 26, 0.28);
  overflow: hidden;
}
.pw-form { padding: 18px 20px 20px; display: grid; gap: 13px; }
.pw-field { display: grid; gap: 5px; }
.pw-field label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pw-field input {
  width: 100%; height: 38px; padding: 0 11px;
  border: 1px solid var(--line-strong); border-radius: 7px;
  background: #fff; color: var(--ink); font-size: 13px;
}
.pw-field input:focus {
  outline: none;
  border-color: var(--celadon);
  box-shadow: 0 0 0 3px rgba(23, 122, 101, 0.14);
}
.pw-hint { font-size: 11px; color: var(--muted); line-height: 1.5; }
.pw-msg { margin: 0; padding: 8px 11px; border-radius: 7px; font-size: 12px; line-height: 1.5; }
.pw-msg.is-error { background: var(--red-soft); border: 1px solid var(--red-line); color: #9c2419; }
.pw-msg.is-ok { background: var(--green-soft); border: 1px solid var(--celadon-line); color: #0e6345; font-weight: 550; }
.pw-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
