:root {
  --nav: #102f3d;
  --nav-elevated: #183f4f;
  --nav-text: #d7e8ee;
  --nav-muted: #97b3bd;
  --accent: #087ea4;
  --accent-strong: #046383;
  --accent-soft: #e5f3f7;
  --ink: #172a33;
  --muted: #5c7079;
  --subtle: #667981;
  --surface: #ffffff;
  --canvas: #edf2f3;
  --surface-muted: #f5f8f8;
  --line: #d5dfe1;
  --line-strong: #aebfc4;
  --green: #14745b;
  --green-bg: #e4f2ed;
  --blue: #176b9b;
  --blue-bg: #e7f0f7;
  --purple: #6655a6;
  --purple-bg: #eeebf7;
  --amber: #8d5a08;
  --amber-bg: #fff1d5;
  --red: #a93430;
  --red-bg: #f9e8e7;
  --gray: #56676e;
  --gray-bg: #edf1f2;
  --shadow: 0 10px 28px rgba(18, 45, 56, .10);
  --focus: 0 0 0 3px rgba(8, 126, 164, .24);
  --sidebar-width: 236px;
  --topbar-height: 64px;
  font-synthesis: none;
}

/* P2 · 企业宣传 / 外部链接轮播配置 */
.presentation-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
.presentation-summary>div { display:grid; min-height:116px; align-content:center; padding:18px 20px; border:1px solid var(--line); border-radius:10px; background:#fff; box-shadow:var(--shadow); }
.presentation-summary span { color:var(--muted); font-size:12px; }
.presentation-summary strong { margin-top:8px; color:#0f4f70; font-size:25px; line-height:1; }
.presentation-summary strong em { margin:0 2px; color:#6f8793; font-size:12px; font-style:normal; font-weight:600; }
.presentation-summary small { margin-top:8px; color:#78909b; font-size:11px; }
.presentation-config-panel { margin-bottom:14px; }
.presentation-rule-form { display:grid; grid-template-columns:180px repeat(3,minmax(180px,1fr)) auto; align-items:end; gap:14px; padding:18px 20px; }
.presentation-rule-form .field { min-width:0; }
.presentation-rule-form .button { height:38px; margin-bottom:1px; white-space:nowrap; }
.presentation-config-panel>.notice { margin:0 20px 18px; }
.presentation-links-panel .panel-count { color:#637f8f; font-size:12px; }
.screen-link-list { display:grid; padding:0 20px 10px; }
.screen-link-row { display:grid; min-width:0; grid-template-columns:72px minmax(0,1fr) auto; align-items:center; gap:18px; padding:17px 0; border-bottom:1px solid var(--line); }
.screen-link-row:last-child { border-bottom:0; }
.screen-link-row.disabled { opacity:.6; }
.screen-link-order { display:grid; justify-items:center; padding-right:18px; border-right:1px solid var(--line); }
.screen-link-order span { color:#0a74b8; font-size:22px; font-weight:800; }
.screen-link-order small { color:#879aa3; font-size:9px; }
.screen-link-copy { min-width:0; }
.screen-link-copy>div { display:flex; min-width:0; align-items:center; gap:10px; }
.screen-link-copy h3 { margin:0; overflow:hidden; color:#173f55; font-size:15px; text-overflow:ellipsis; white-space:nowrap; }
.screen-link-copy a { display:block; margin-top:5px; overflow:hidden; color:#26779f; font-size:12px; text-decoration:none; text-overflow:ellipsis; white-space:nowrap; }
.screen-link-copy a:hover { text-decoration:underline; }
.screen-link-copy>small { display:block; margin-top:5px; color:#7a909b; font-size:10px; }
.screen-link-actions { display:flex; align-items:center; gap:7px; }
.screen-link-actions .button.danger { color:#b83a43; border-color:#edc2c6; background:#fff7f8; }

@media (max-width:1100px) {
  .presentation-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .presentation-rule-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .presentation-rule-form .button { justify-self:start; }
  .screen-link-row { grid-template-columns:58px minmax(0,1fr); }
  .screen-link-actions { grid-column:2; justify-content:flex-start; }
}

@media (max-width:700px) {
  .presentation-summary,.presentation-rule-form { grid-template-columns:1fr; }
  .screen-link-row { grid-template-columns:1fr; gap:10px; }
  .screen-link-order { justify-items:start; padding:0; border:0; }
  .screen-link-actions { grid-column:1; flex-wrap:wrap; }
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--canvas); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font: 14px/1.5 "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { color: #fff; background: var(--accent-strong); }

button,
input,
select,
textarea { font: inherit; }

select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 34px !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #31515d 50%),
    linear-gradient(135deg, #31515d 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 1px),
    calc(100% - 11px) calc(50% - 1px);
  background-repeat: no-repeat;
  background-size: 5px 5px;
}

select:hover:not(:disabled) { border-color: #75aebe; background-color: #f8fbfc; }
select:focus-visible { border-color: var(--accent); box-shadow: var(--focus); }
select:open { border-color: var(--accent); background-color: var(--surface); box-shadow: var(--focus); }
select:disabled { cursor: not-allowed; color: var(--muted); background-color: var(--surface-muted); opacity: 1; }
select option { color: var(--ink); background: var(--surface); font-weight: 500; }
select option:checked { color: #fff; background: var(--accent-strong); }

.custom-select {
  position: relative;
  min-width: 0;
  color: var(--ink);
}
.custom-select.open { z-index: 240; }

.native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.select-trigger {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  color: var(--ink);
  background: #fbfcfc;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-weight: 600;
  text-align: start;
}

.select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-arrow { flex: 0 0 8px; width: 8px; height: 8px; border-inline-end: 1.5px solid #3e5b66; border-block-end: 1.5px solid #3e5b66; transform: translateY(-2px) rotate(45deg); transition: transform .16s ease; }
.custom-select.open .select-arrow { transform: translateY(2px) rotate(225deg); }
.select-trigger:hover:not(:disabled) { color: var(--accent-strong); background: #f3f9fa; border-color: #75aebe; }
.select-trigger:focus-visible,
.custom-select.open .select-trigger { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); box-shadow: var(--focus); }
.select-trigger:disabled { cursor: not-allowed; color: var(--muted); background: var(--surface-muted); opacity: 1; }
.select-trigger[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 2px rgba(169, 52, 48, .12); }

.select-list {
  position: absolute;
  inset: calc(100% + 6px) 0 auto;
  z-index: 160;
  max-height: min(280px, 46vh);
  padding: 5px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid #9fb5bb;
  border-radius: 5px;
  box-shadow: 0 14px 30px rgba(18, 45, 56, .18);
  scrollbar-color: #829aa2 #edf2f3;
  scrollbar-width: thin;
}

.custom-select.opens-up .select-list { inset: auto 0 calc(100% + 6px); }
.select-list[hidden] { display: none; }
.select-option {
  position: relative;
  display: block;
  width: 100%;
  min-height: 36px;
  padding: 7px 30px 7px 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 3px;
  line-height: 1.35;
  text-align: start;
}

.select-option:hover,
.select-option.active { color: var(--accent-strong); background: var(--accent-soft); }
.select-option.selected { color: #fff; background: var(--accent-strong); font-weight: 700; }
.select-option.selected::after { position: absolute; inset: 50% 11px auto auto; width: 8px; height: 4px; content: ""; border-inline-start: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: translateY(-65%) rotate(-45deg); }
.select-option:disabled { cursor: not-allowed; color: var(--muted); opacity: .55; }
.select-list::-webkit-scrollbar { width: 10px; }
.select-list::-webkit-scrollbar-track { background: #edf2f3; }
.select-list::-webkit-scrollbar-thumb { background: #829aa2; border: 3px solid #edf2f3; border-radius: 8px; }

.custom-select.is-compact { width: 100%; height: 36px; }
.custom-select.is-compact .select-trigger { color: #203741; background: #f3f7f8; border-color: #c3d0d4; font-weight: 700; }
.custom-select.is-control { min-width: 148px; height: 34px; }
.custom-select.is-field { width: 100%; min-height: 40px; }
.custom-select.is-field .select-trigger { min-height: 40px; }

button { color: inherit; }

button,
select,
input[type="checkbox"],
input[type="radio"] { cursor: pointer; }

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a { color: var(--accent-strong); text-underline-offset: 3px; }

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.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;
}

.skip-link {
  position: fixed;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 500;
  padding: 9px 12px;
  color: #fff;
  background: var(--nav);
  border-radius: 4px;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  color: var(--nav-text);
  background: var(--nav);
  border-inline-end: 1px solid #274d5b;
  transition: transform .24s cubic-bezier(.22, 1, .36, 1);
}

.brand {
  display: flex;
  align-items: center;
  min-height: var(--topbar-height);
  gap: 10px;
  padding: 0 12px;
  border-block-end: 1px solid rgba(255, 255, 255, .12);
}

.brand-mark {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  color: #5fc1d9;
  stroke-width: 1.6;
}

.brand-copy { min-width: 0; }
.brand-copy strong { display: block; white-space: nowrap; font-size: 15px; letter-spacing: .02em; }
.brand-copy span { display: block; margin-block-start: 1px; color: var(--nav-muted); font-size: 10px; letter-spacing: .15em; }

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
}

.icon-button:hover { background: rgba(255, 255, 255, .08); }
.sidebar-toggle { flex: 0 0 36px; margin-inline-start: auto; color: var(--nav-muted); }
.mobile-menu { display: none; }

.nav-tree {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px 18px;
  scrollbar-width: thin;
  scrollbar-color: #436879 transparent;
}

.nav-group { margin-block-end: 14px; }

.nav-group-title {
  display: block;
  padding: 8px 10px 5px;
  color: #7fa0ac;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.nav-item {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: var(--nav-text);
  border: 0;
  border-radius: 4px;
  background: transparent;
  text-align: start;
}

.nav-item svg { flex: 0 0 18px; width: 18px; height: 18px; color: #90b1bd; }
.nav-item span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-item:hover { background: rgba(255, 255, 255, .07); }
.nav-item.active { color: #fff; background: var(--nav-elevated); box-shadow: inset 3px 0 0 #5cc0d6; }
.nav-item.active svg { color: #66cadf; }

.sidebar-foot {
  padding: 12px;
  border-block-start: 1px solid rgba(255, 255, 255, .12);
}

.save-state { display: flex; align-items: center; gap: 8px; color: var(--nav-muted); font-size: 12px; }
.save-dot { width: 7px; height: 7px; border-radius: 50%; background: #56c39b; }
.save-state.warning .save-dot { background: #f1b84b; }
.save-state.error { color: #ffd4d1; }
.save-state.error .save-dot { background: #ef7770; }
.text-button { margin-block-start: 7px; padding: 0; color: #b7d0d9; border: 0; background: transparent; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }

.main-column { min-width: 0; min-height: 100vh; margin-inline-start: var(--sidebar-width); }

.sidebar-collapsed .sidebar { width: 60px; }
.sidebar-collapsed .main-column { margin-inline-start: 60px; }
.sidebar-collapsed .brand { padding-inline: 12px; }
.sidebar-collapsed .brand-copy,
.sidebar-collapsed .nav-group-title,
.sidebar-collapsed .nav-item span,
.sidebar-collapsed .sidebar-foot { display: none; }
.sidebar-collapsed .sidebar-toggle { position: absolute; inset-block-start: 74px; inset-inline-start: 12px; transform: rotate(180deg); }
.sidebar-collapsed .nav-tree { padding-block-start: 58px; }
.sidebar-collapsed .nav-item { justify-content: center; padding-inline: 0; }

.topbar {
  position: sticky;
  inset-block-start: 0;
  z-index: 30;
  display: flex;
  min-width: 0;
  min-height: var(--topbar-height);
  align-items: center;
  gap: 16px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, .97);
  border-block-end: 1px solid var(--line);
}

.context-selectors,
.topbar-actions { display: flex; min-width: 0; align-items: center; gap: 8px; }
.topbar-actions { margin-inline-start: auto; }

.compact-field {
  display: grid;
  min-width: 330px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.compact-field select,
.compact-field input {
  height: 36px;
  min-width: 0;
  padding: 0 30px 0 10px;
  color: var(--ink);
  background-color: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-weight: 600;
}

.compact-field select {
  color: #203741;
  background-color: #f3f7f8;
  border-color: #c3d0d4;
  font-weight: 700;
}

.compact-field select:hover:not(:disabled) { background-color: #edf5f7; border-color: #6fa8b8; }
.compact-field select:focus-visible { background-color: var(--surface); }

.compact-field.period-field { min-width: 170px; }
.runtime-state { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.runtime-dot { width: 7px; height: 7px; border-radius: 50%; background: #b88b35; }
.runtime-state.ready .runtime-dot { background: var(--green); }
.runtime-state.error .runtime-dot { background: var(--red); }

.button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  color: #29444f;
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-weight: 650;
  white-space: nowrap;
}

.button svg { width: 17px; height: 17px; }
.button:hover { color: var(--accent-strong); border-color: #75aebe; background: #f6fbfc; }
.button.primary { color: #fff; border-color: var(--accent); background: var(--accent); }
.button.primary:hover { border-color: var(--accent-strong); background: var(--accent-strong); }
.button.ghost { border-color: transparent; background: transparent; }
.button.danger { color: var(--red); border-color: #d9afad; }
.button.small { min-height: 30px; padding: 4px 9px; font-size: 13px; }
.button:disabled { cursor: not-allowed; opacity: .46; }
.screen-button { color: #172d35; border-color: #d79b2e; background: #e9b246; }
.screen-button:hover { color: #14262d; border-color: #c68a1e; background: #dda335; }

.user-chip { display: flex; min-height: 40px; align-items: center; gap: 8px; padding: 3px 7px 3px 4px; border: 1px solid transparent; border-radius: 4px; background: transparent; }
.user-chip:hover { border-color: var(--line); background: var(--surface-muted); }
.avatar { display: grid; width: 32px; height: 32px; place-items: center; color: #fff; background: var(--nav-elevated); border-radius: 50%; font-weight: 700; }
.user-copy { display: grid; text-align: start; }
.user-copy strong { font-size: 13px; }
.user-copy small { color: var(--muted); font-size: 11px; }

#app { min-height: calc(100vh - var(--topbar-height)); padding: 18px 20px 34px; }
#app:has(.dashboard-command) { padding-block: 12px 8px; }
#app:has(.dashboard-command) .page-head { margin-block-end: 8px; }

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-block-end: 14px;
}

.page-title { min-width: 0; }
.page-title h1 { margin: 0; font-size: clamp(22px, 2vw, 28px); line-height: 1.25; letter-spacing: -.02em; }
.page-title p { max-width: 78ch; margin: 5px 0 0; color: var(--muted); }
.page-title-line { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.demo-project-head { border-left:4px solid #d6a233; padding-left:16px; }
.demo-project-badge { display:inline-flex; align-items:center; min-height:26px; padding:3px 10px; border:1px solid #e5bd5c; border-radius:999px; background:#fff7da; color:#805b00; font-size:12px; font-weight:800; letter-spacing:.02em; }
.demo-clock { display:flex; flex-direction:column; justify-content:center; min-height:38px; padding:4px 11px; border:1px solid #e5bd5c; border-radius:8px; background:#fffaf0; color:#6e520f; line-height:1.15; }
.demo-clock span { font-size:10px; font-weight:700; letter-spacing:.04em; }
.demo-clock strong { margin-top:3px; font-size:13px; font-variant-numeric:tabular-nums; }
.page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.ledger-title-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.ledger-page-context .scope-summary { margin: 0; white-space: nowrap; }
.ledger-view-switch { min-width: 88px; }

.scope-bar,
.toolbar {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.scope-bar { flex-wrap: wrap; border-radius: 5px 5px 0 0; }
.scope-summary { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: auto; color: var(--muted); font-size: 12px; }
.scope-summary strong { color: var(--ink); font-weight: 650; }
.section-help { margin: -2px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.55; }

.ledger-command-bar {
  display: flex;
  min-height: 48px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 7px 10px;
  margin-block-end: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.ledger-command-filters { display: flex; min-width: 0; flex: 1 1 370px; align-items: center; flex-wrap: wrap; gap: 8px; }
.ledger-command-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-inline-start: auto; }

.control {
  height: 34px;
  min-width: 130px;
  padding: 0 9px;
  color: var(--ink);
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

select.control { min-width: 148px; background-color: #fbfcfc; font-weight: 600; }
select.control:hover:not(:disabled) { background-color: #f3f9fa; }

.control.search { width: min(250px, 28vw); }
.control::placeholder { color: #708188; }
.inline-filter { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 650; white-space: nowrap; }
.inline-filter .control { min-width: 132px; }

.toolbar {
  min-height: 46px;
  border-block-start: 0;
  border-radius: 0;
}

.toolbar-group { display: flex; align-items: center; gap: 6px; }
.toolbar-spacer { flex: 1; }
.view-toggle { display: inline-flex; padding: 2px; background: var(--surface-muted); border: 1px solid var(--line); border-radius: 4px; }
.view-toggle button { min-height: 30px; padding: 4px 10px; color: var(--muted); border: 0; border-radius: 3px; background: transparent; }
.view-toggle button.active { color: #fff; background: var(--nav-elevated); }

.process-tabs {
  display: flex;
  margin-block-end: 14px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.process-tabs button {
  min-width: 128px;
  min-height: 44px;
  padding: 9px 18px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-inline-end: 1px solid var(--line);
  font-weight: 650;
  white-space: nowrap;
}

.process-tabs button:last-child { border-inline-end: 0; }
.process-tabs button:hover { color: var(--ink); background: var(--surface-muted); }
.process-tabs button.active { color: var(--accent-strong); background: var(--accent-soft); box-shadow: inset 0 -3px 0 var(--accent); }
.process-tab-panel { min-width: 0; }

.takt-cell-tags,
.takt-cell-picker { display: flex; min-width: 180px; flex-wrap: wrap; gap: 4px; }
.takt-cell-tags span,
.takt-cell-picker span { padding: 2px 6px; color: #315967; background: var(--accent-soft); border: 1px solid #c9e2e8; border-radius: 3px; font-size: 11px; line-height: 1.35; }
.takt-cell-tags em,
.takt-cell-picker em { color: var(--subtle); font-style: normal; }
.takt-cell-picker { width: 100%; min-height: 42px; align-content: flex-start; padding: 6px; text-align: start; background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; }
.takt-cell-picker:hover { border-color: var(--accent); background: #f8fcfd; }

.station-takt-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 16px; padding: 16px; margin-block-end: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
.station-takt-filters,.station-takt-toolbar-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; min-width: 0; }
.station-takt-filters label { display: grid; gap: 6px; min-width: 200px; max-width: 360px; flex: 1 1 220px; color: var(--muted); font-size: 12px; }
.station-takt-filters .control { width: 100%; min-height: 42px; }
.station-takt-filters .custom-select { width: 100%; }
.station-takt-toolbar-actions { justify-content: flex-end; gap: 8px; }
.station-takt-toolbar-note { flex-basis: 100%; color: var(--muted); font-size: 12px; text-align: end; }
.station-takt-meta-summary .panel-body { padding-block: 14px; }
.station-takt-meta-hint { margin-block-start: 10px; color: var(--muted); font-size: 12px; }
.station-takt-matrix-panel .panel-head { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: start; }
.station-takt-matrix-panel .panel-title { min-width: 0; }
.station-takt-matrix-panel .scope-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 360px; }
.takt-readonly-meta { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 0; }
.takt-readonly-meta div { min-width: 0; }
.takt-readonly-meta dt { color: var(--muted); font-size: 11px; }
.takt-readonly-meta dd { margin: 4px 0 0; color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }
.takt-matrix-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 14px; }
.takt-matrix-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.takt-legend-mark { display: inline-block; width: 10px; height: 10px; background: var(--accent-soft); border-inline-start: 3px solid var(--accent); }
.takt-legend-mark.activity { background: #fff8df; border-inline-start-color: var(--amber); }
.station-takt-matrix-wrap { max-height: none; }
.matrix-table.station-takt-matrix { width: 100%; min-width: var(--takt-min-width); table-layout: fixed; }
.station-takt-matrix th:not(.sticky-1),.station-takt-matrix td { min-width: 0; vertical-align: top; white-space: normal; }
.station-takt-matrix th,.station-takt-matrix td { height: auto; padding: 7px 8px; }
.station-takt-matrix .sticky-1 { width: 112px; min-width: 112px; max-width: 112px; }
.station-takt-matrix.is-editable .sticky-1 { width: 144px; min-width: 144px; max-width: 144px; }
.station-takt-matrix tbody .sticky-1 { background: #f0f5f6; font-weight: 650; }
.takt-slot-editor { display: grid; grid-template-columns: minmax(0,1fr); gap: 3px; }
.takt-slot-editor input { width: 100%; min-width: 0; min-height: 32px; padding-inline: 4px; border: 1px solid var(--line-strong); border-radius: 3px; }
.takt-slot-editor > span { color: var(--muted); font-size: 10px; line-height: 1; text-align: center; }
.takt-slot-editor .row-actions { justify-content: flex-start; }
.takt-slot-editor .row-actions button,.takt-cell-actions button,.day-copy { min-height: 28px; padding: 3px 7px; color: var(--accent-strong); background: #fff; border: 1px solid var(--line); border-radius: 3px; font-size: 11px; }
.day-copy { display: block; margin-block-start: 5px; }
.takt-cell-stack { display: grid; align-content: start; gap: 6px; }
.takt-cell-stack > em { color: var(--subtle); font-size: 12px; font-style: normal; }
.takt-assignment-list { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px; }
.takt-assignment { display: inline-flex; max-width: 100%; min-height: 25px; align-items: center; padding: 3px 6px; color: #315967; text-align: start; white-space: normal; overflow-wrap: anywhere; background: var(--accent-soft); border: 1px solid #c9e2e8; border-inline-start: 3px solid var(--accent); border-radius: 3px; font: inherit; font-size: 11px; line-height: 1.3; cursor: pointer; }
.takt-assignment.activity { color: #68572d; background: #fff8df; border-color: #ecddb6; border-inline-start-color: var(--amber); }
.takt-assignment:hover,.takt-assignment[aria-expanded="true"] { border-color: var(--accent); background: #f2fafb; }
.takt-assignment.activity:hover,.takt-assignment.activity[aria-expanded="true"] { border-color: var(--amber); background: #fff3cf; }
.takt-assignment:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.takt-assignment-detail { position: fixed; z-index: 80; display: grid; gap: 5px; width: min(320px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow-y: auto; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; box-shadow: 0 8px 24px rgba(25,55,64,.18); font-size: 12px; line-height: 1.45; pointer-events: none; }
.takt-assignment-detail[hidden] { display: none; }
.takt-assignment-detail.is-pinned { pointer-events: auto; }
.takt-assignment-detail strong { font-size: 13px; }
.takt-assignment-detail span { color: var(--muted); overflow-wrap: anywhere; }
.takt-cell-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.takt-library-toolbar { position: sticky; z-index: 2; inset-block-start: 0; display: flex; gap: 8px; padding-block-end: 10px; background: #fff; }
.takt-library-toolbar input { flex: 1; min-width: 0; }
.takt-library { display: grid; gap: 5px; margin: 0 0 12px; padding: 10px; border: 1px solid var(--line); }
.takt-library legend { padding-inline: 5px; color: var(--ink); font-weight: 700; }
.takt-library-row { display: grid; grid-template-columns: minmax(220px,1fr) 92px minmax(120px,.7fr); align-items: center; gap: 7px; padding: 6px; background: var(--surface-muted); }
.takt-library-row label { display: flex; align-items: flex-start; gap: 8px; }
.takt-library-row label span,.takt-library-row label small { display: block; }
.takt-library-row small { color: var(--muted); font-size: 10px; }
.takt-library-row select,.takt-library-row input[type="text"] { min-width: 0; width: 100%; }

@media (max-width: 1100px) {
  .station-takt-toolbar { grid-template-columns: 1fr; }
  .station-takt-toolbar-actions,.station-takt-toolbar-note { justify-content: flex-start; text-align: start; }
  .station-takt-matrix-panel .panel-head { grid-template-columns: 1fr; }
  .station-takt-matrix-panel .scope-actions { justify-content: flex-start; max-width: none; }
  .takt-readonly-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .station-takt-filters label { max-width: none; flex-basis: 100%; }
  .takt-library-row { grid-template-columns: 1fr; }
}

.source-strip {
  color: var(--muted);
  background: #f8faf9;
  border: 1px solid var(--line);
  border-block-start: 0;
  font-size: 12px;
}

.source-disclosure { margin-block-end: 12px; }
.source-disclosure summary { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 11px; cursor: pointer; list-style: none; }
.source-disclosure summary::-webkit-details-marker { display: none; }
.source-disclosure summary:hover { background: #f2f7f8; }
.source-disclosure summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.source-disclosure-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-disclosure strong { color: #344e58; }
.source-disclosure-action { flex: 0 0 auto; color: var(--accent-strong); font-weight: 650; white-space: nowrap; }
.source-disclosure-action::after { content: '⌄'; margin-inline-start: 5px; }
.source-disclosure[open] .source-disclosure-action::after { content: '⌃'; }
.source-disclosure-detail { padding: 0 11px 9px; line-height: 1.55; }
.source-disclosure .warning-text { color: var(--amber); font-weight: 650; }
.daily-date-navigator { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; color: #506b77; font-size: 12px; font-weight: 700; white-space: nowrap; }
.daily-date-navigator .control { width: 136px; min-width: 136px; height: 32px; padding-inline: 8px; font-size: 12px; }
.daily-date-step { display: inline-grid; width: 28px; height: 32px; place-items: center; padding: 0; color: #305866; background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; font: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.daily-date-step:hover { color: var(--accent-strong); border-color: #75aebe; background: #edf5f7; }
.daily-date-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.panel {
  min-width: 0;
  margin-block-end: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.panel.flush { border-block-start: 0; border-radius: 0 0 5px 5px; }
.panel-head { display: flex; min-height: 49px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border-block-end: 1px solid var(--line); }
.panel-title { min-width: 0; }
.panel-title h2 { margin: 0; font-size: 16px; line-height: 1.3; }
.panel-title p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.panel-body { padding: 13px; }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  color: #315967;
  background: var(--accent-soft);
  border: 1px solid #bddce4;
  border-radius: 4px;
}

.notice svg { flex: 0 0 18px; width: 18px; height: 18px; margin-block-start: 1px; }
.notice strong { color: #234650; }
.notice.warn { color: #6b4b16; background: var(--amber-bg); border-color: #e8cf9c; }
.notice.danger { color: #7d312e; background: var(--red-bg); border-color: #e6b6b3; }
.notice.compact { padding: 8px 10px; font-size: 12px; }

.metric-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(118px, 1fr));
  margin-block-end: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.metric {
  min-width: 0;
  padding: 13px 14px 12px;
  border-inline-end: 1px solid var(--line);
}

.metric:last-child { border-inline-end: 0; }
.metric-label { display: flex; min-height: 20px; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.metric strong { display: block; margin-block-start: 4px; font-size: 25px; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.metric small { display: block; margin-block-start: 4px; color: var(--subtle); font-size: 11px; }
.metric.alert strong { color: var(--red); }
.metric.warn strong { color: var(--amber); }
.metric.good strong { color: var(--green); }
.issue-overview { grid-template-columns: repeat(5, minmax(132px, 1fr)); margin-block: 12px; }
.issue-overview .metric { position: relative; padding-block: 11px 10px; }
.issue-overview .metric::before { position: absolute; inset: 0 auto 0 0; width: 3px; content: ''; background: #cbd8db; }
.issue-overview .metric.good::before { background: var(--green); }
.issue-overview .metric.warn::before { background: var(--amber); }
.issue-overview .metric.alert::before { background: var(--red); }

.efficiency-workspace { display: grid; gap: 14px; }
.efficiency-summary { grid-template-columns: repeat(5, minmax(138px, 1fr)); margin-block-end: 0; }
.efficiency-series-picker { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 0; }
.efficiency-series-toggle { display: inline-flex; align-items: baseline; gap: 4px; min-height: 30px; padding: 5px 8px; color: #5d747b; background: #f6f9f9; border: 1px solid #d4e0e2; border-radius: 3px; font-size: 11px; }
.efficiency-series-toggle:hover { color: #195f70; background: #eff8f9; border-color: #a9cbd2; }
.efficiency-series-toggle.active { color: #124d5c; background: #dff2f4; border-color: #82bfc9; }
.efficiency-series-toggle strong { font-size: 11px; }.efficiency-series-toggle span { color: inherit; opacity: .78; font-size: 10px; }
.efficiency-compare-chart { padding: 8px 14px 10px; }.efficiency-line-chart { display: block; width: 100%; min-height: 194px; overflow: visible; }
.efficiency-chart-grid line { stroke: #e3ecee; stroke-width: 1; }.efficiency-chart-grid text,.efficiency-chart-labels text { fill: #71838a; font-size: 10px; }
.efficiency-chart-goal { stroke: #849399; stroke-width: 1.2; stroke-dasharray: 4 4; }.efficiency-chart-goal-label { fill: #6c7c82; font-size: 10px; }
.efficiency-compare-line { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.efficiency-line-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 6px 12px 12px; overflow: hidden; background: #dce8ea; border: 1px solid #d3e0e2; border-radius: 3px; }.efficiency-line-summary span { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 8px; color: #165465; background: #f5fbfb; font-size: 12px; font-weight: 800; }.efficiency-line-summary b { color: #60757b; font-size: 10px; }.efficiency-line-summary small { grid-column: 1 / -1; padding: 6px 8px; color: #5f7278; background: #fff; font-size: 10px; }
.worktime-summary { grid-template-columns: repeat(5, minmax(138px, 1fr)); margin-block-end: 0; }
.worktime-demo-note { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; color: #60747c; background: #fffaf0; border: 1px solid #efd9a7; border-radius: 5px; font-size: 12px; line-height: 1.6; }
.worktime-demo-note p { margin: 0; }
.formula-source { display: inline-block; margin-inline-start: 8px; color: #47636d; font-weight: 700; white-space: nowrap; }
.efficiency-table-panel { overflow: hidden; }
.efficiency-table .status { margin-block-start: -2px; }
.efficiency-table .cell-note .status { min-height: 20px; padding-block: 1px; font-size: 10px; }
.efficiency-detail-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block-end: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; }
.efficiency-detail-summary > div { min-width: 0; padding: 12px; border-inline-end: 1px solid var(--line); }
.efficiency-detail-summary > div:last-child { border-inline-end: 0; }
.efficiency-detail-summary span,.efficiency-detail-summary small { display: block; color: var(--muted); font-size: 11px; }
.efficiency-detail-summary strong { display: block; margin-block: 4px 2px; color: var(--ink); font-size: 24px; line-height: 1.1; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.efficiency-hours { display: grid; gap: 10px; }
.efficiency-hour-row { display: grid; grid-template-columns: 100px minmax(100px, 1fr) 54px 42px; align-items: center; gap: 9px; color: #38535d; font-size: 12px; }
.efficiency-hour-row b,.efficiency-hour-row small { text-align: end; font-variant-numeric: tabular-nums; }
.efficiency-hour-row b { color: var(--ink); }.efficiency-hour-row small { color: var(--muted); }
.efficiency-hour-track { height: 9px; overflow: hidden; background: #e6edef; border-radius: 99px; }
.efficiency-hour-track i { display: block; height: 100%; min-width: 2px; background: var(--accent); border-radius: inherit; }
.efficiency-hour-track i.available { background: var(--green); }.efficiency-hour-track i.stop { background: var(--red); }.efficiency-hour-track i.rest { background: var(--purple); }.efficiency-hour-track i.rework { background: var(--amber); }
.muted-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.formula-box code + code { display: block; margin-block-start: 5px; }
.efficiency-trend { display: grid; grid-template-columns: 42px minmax(0, 1fr); min-height: 150px; gap: 10px; }
.worktime-analysis-grid { display: grid; grid-template-columns: minmax(320px, 1.15fr) minmax(290px, .85fr); gap: 14px; }
.worktime-trend-panel,.worktime-loss-panel { min-width: 0; padding: 0; overflow: hidden; }
.worktime-trend-panel .efficiency-trend { padding: 14px; }
.worktime-chart-wrap { padding: 12px 14px 8px; }
.worktime-chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-block-end: 8px; color: var(--muted); font-size: 11px; }
.worktime-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.worktime-chart-legend i { width: 18px; height: 3px; border-radius: 99px; background: var(--accent); }
.worktime-chart-legend i.base { background: var(--green); }.worktime-chart-legend i.utilization { background: var(--amber); }
.worktime-line-chart { display: block; width: 100%; min-height: 178px; overflow: visible; }
.worktime-chart-grid line { stroke: #e4edef; stroke-width: 1; }.worktime-chart-grid text,.worktime-chart-labels text { fill: #71838a; font-size: 10px; }
.worktime-line { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }.worktime-line.manufacture { stroke: var(--accent); }.worktime-line.base { stroke: var(--green); }.worktime-line.utilization { stroke: var(--amber); stroke-dasharray: 5 4; }
.worktime-loss-list { display: grid; gap: 10px; padding: 14px; }
.worktime-loss-row { display: grid; grid-template-columns: 82px minmax(80px, 1fr) 46px; align-items: center; gap: 9px; color: #38535d; font-size: 12px; }
.worktime-loss-row i { display: block; height: 8px; overflow: hidden; background: #e6edef; border-radius: 99px; }
.worktime-loss-row i b { display: block; height: 100%; background: var(--amber); border-radius: inherit; }
.worktime-loss-row strong { color: var(--ink); text-align: end; font-size: 12px; font-variant-numeric: tabular-nums; }
.worktime-week-table tr.is-current > * { background: #edf8fb; }.worktime-week-table tr.is-current .sticky-1 { box-shadow: 2px 0 0 #d6ebf1; }
.worktime-loss-matrix-panel { margin-block-start: 0; }.worktime-loss-matrix th,.worktime-loss-matrix td { min-width: 72px; }.worktime-loss-matrix .sticky-1 { min-width: 112px; }

.plan-visual-overview { display: grid; grid-template-columns: minmax(520px,1.4fr) minmax(270px,.6fr); gap: 14px; }
.plan-gantt-panel,.plan-risk-panel { min-width: 0; padding: 0; overflow: hidden; }.plan-gantt-panel .panel-head,.plan-risk-panel .panel-head { padding: 12px 14px; }
.plan-gantt-legend,.operation-heat-legend { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 10px; }.plan-gantt-legend span,.operation-heat-legend span { display: inline-flex; align-items: center; gap: 4px; }.plan-gantt-legend i { width: 14px; height: 4px; border-radius: 99px; background: #9aaab0; }.plan-gantt-legend i.rolling { background: var(--accent); }.plan-gantt-legend i.actual { background: var(--green); }
.plan-gantt { padding: 8px 14px 14px; overflow-x: auto; }.plan-gantt-scale { position: relative; min-width: 540px; height: 22px; margin-inline-start: 100px; border-block-end: 1px solid var(--line); }.plan-gantt-scale span { position: absolute; bottom: 3px; color: var(--muted); font-size: 10px; transform: translateX(-50%); white-space: nowrap; }.plan-gantt-scale span:first-child { transform: none; }.plan-gantt-scale span:last-child { transform: translateX(-100%); }
.plan-gantt-row { display: grid; min-width: 640px; grid-template-columns: 100px minmax(420px,1fr) 76px; align-items: center; gap: 10px; min-height: 38px; border-block-end: 1px solid #edf1f2; }.plan-gantt-row:last-child { border-block-end: 0; }.plan-gantt-row > button { min-width: 0; padding: 4px 0; color: var(--ink); text-align: left; background: transparent; border: 0; }.plan-gantt-row > button:hover strong { color: var(--accent-strong); text-decoration: underline; }.plan-gantt-row > button strong,.plan-gantt-row > button small { display: block; }.plan-gantt-row > button strong { font-size: 12px; }.plan-gantt-row > button small { color: var(--muted); font-size: 10px; }
.plan-gantt-track { position: relative; height: 28px; overflow: hidden; background: repeating-linear-gradient(to right, transparent 0, transparent calc(25% - 1px), #edf2f3 calc(25% - 1px), #edf2f3 25%); }.plan-gantt-bar { position: absolute; display: block; min-width: 5px; height: 5px; border-radius: 99px; }.plan-gantt-bar.delivery { top: 4px; background: #92a4aa; }.plan-gantt-bar.rolling { top: 12px; background: var(--accent); }.plan-gantt-bar.actual { top: 20px; background: var(--green); }
.plan-risk-summary { display: grid; grid-template-columns: repeat(3,1fr); border-block-end: 1px solid var(--line); }.plan-risk-summary span { padding: 10px 6px; color: var(--muted); text-align: center; font-size: 10px; }.plan-risk-summary b { display: block; color: var(--ink); font-size: 18px; }.plan-risk-list { display: grid; }.plan-risk-list > button { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 7px 12px; text-align: left; background: #fff; border: 0; border-block-end: 1px solid #edf1f2; }.plan-risk-list > button:hover { background: #f3f9fa; }.plan-risk-list strong,.plan-risk-list small { display: block; }.plan-risk-list strong { font-size: 12px; }.plan-risk-list small { margin-top: 2px; color: var(--muted); font-size: 10px; }

.plan-execution-overview { display: grid; grid-template-columns: minmax(480px,1.4fr) minmax(280px,.6fr); gap: 14px; }.plan-deviation-panel { min-width: 0; padding: 0; overflow: hidden; }.plan-deviation-panel .panel-head { padding: 12px 14px; }.plan-deviation-axis { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }.plan-deviation-axis i:last-child { text-align: end; }.plan-deviation-axis b { color: var(--ink); font-size: 10px; }.plan-deviation-list { display: grid; }.plan-deviation-row { display: grid; width: 100%; grid-template-columns: 88px minmax(160px,1fr) 74px; align-items: center; gap: 10px; min-height: 43px; padding: 6px 14px; color: var(--ink); text-align: left; background: #fff; border: 0; border-block-start: 1px solid #edf1f2; }.plan-deviation-row:hover { background: #f3f9fa; }.plan-deviation-row span { display: grid; min-width: 0; }.plan-deviation-row strong { font-size: 12px; }.plan-deviation-row small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.plan-deviation-track { position: relative; display: block; height: 16px; background: linear-gradient(to right, #eef4f3 0, #eef4f3 calc(50% - 1px), #b7c7ca calc(50% - 1px), #b7c7ca calc(50% + 1px), #f6efee calc(50% + 1px), #f6efee 100%); }.plan-deviation-track b { position: absolute; top: 4px; display: block; min-width: 4px; height: 8px; border-radius: 99px; }.plan-deviation-track b.early { background: var(--green); }.plan-deviation-track b.late { background: var(--red); }.plan-deviation-track b.on-time { background: var(--accent); }.plan-deviation-row em { font-size: 11px; font-style: normal; text-align: end; white-space: nowrap; }.plan-deviation-row em.early { color: var(--green); }.plan-deviation-row em.late { color: var(--red); }.plan-deviation-row em.on-time { color: var(--accent-strong); }.plan-risk-summary.secondary { border-block-end: 0; }.plan-focus-panel { padding: 0; overflow: hidden; }.plan-focus-panel .panel-head { padding: 12px 14px; }.plan-data-check { display: block; margin-top: 2px; color: var(--amber); font-size: 9px; }.plan-completed-details { padding: 0; overflow: hidden; }.plan-completed-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; cursor: pointer; list-style: none; }.plan-completed-details > summary::-webkit-details-marker { display: none; }.plan-completed-details > summary strong,.plan-completed-details > summary small { display: block; }.plan-completed-details > summary strong { font-size: 14px; }.plan-completed-details > summary small { margin-top: 3px; color: var(--muted); font-size: 11px; }.plan-completed-details[open] > summary { border-block-end: 1px solid var(--line); }.plan-completed-details[open] .source-disclosure-action { font-size: 0; }.plan-completed-details[open] .source-disclosure-action::after { color: var(--accent-strong); font-size: 11px; content: '收起'; }

.plan-node-panel { padding: 0; overflow: hidden; }.plan-node-panel .panel-head { padding: 12px 14px; }.plan-node-legend { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 10px; }.plan-node-legend span { display: inline-flex; align-items: center; gap: 4px; }.plan-node-legend i { display: grid; width: 15px; height: 15px; place-items: center; font-size: 9px; font-style: normal; font-weight: 800; border-radius: 50%; }.plan-node-legend i.completed { color: #fff; background: var(--green); }.plan-node-legend i.active { color: #0a6578; background: #d9eff2; border: 2px solid var(--accent); }.plan-node-legend i.waiting { color: #7d8b90; background: #edf1f2; }.plan-node-legend i.late { color: #fff; background: var(--red); }.plan-node-sequence { display: grid; grid-template-columns: 72px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 8px 14px; color: var(--muted); background: #f5f8f8; border-block: 1px solid var(--line); font-size: 10px; }.plan-node-sequence strong { color: var(--ink); }.plan-node-sequence span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.plan-node-list { overflow-x: auto; }.plan-node-row { display: grid; min-width: 830px; grid-template-columns: 90px minmax(440px,1fr) 204px; align-items: center; gap: 12px; min-height: 58px; padding: 6px 14px; border-block-end: 1px solid #edf1f2; }.plan-node-row:last-child { border-block-end: 0; }.plan-node-unit { display: grid; gap: 2px; padding: 4px 0; color: var(--ink); text-align: left; background: transparent; border: 0; }.plan-node-unit:hover strong { color: var(--accent-strong); text-decoration: underline; }.plan-node-unit strong { font-size: 13px; }.plan-node-unit small { color: var(--muted); font-size: 10px; }.plan-node-track { position: relative; height: 42px; }.plan-node-range { position: absolute; inset: 16px 0 auto; display: block; height: 10px; background: #e2eff1; border: 1px solid #b8d7dd; border-radius: 99px; }.plan-node-range::after { position: absolute; inset: 3px 5px; background: var(--accent); border-radius: inherit; content: ''; }.plan-node { position: absolute; z-index: 1; top: 6px; display: grid; width: 30px; height: 30px; place-items: center; padding: 0; color: #6f7e83; background: #edf1f2; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #c6d4d7; font-size: 9px; font-variant-numeric: tabular-nums; font-weight: 800; transform: translateX(-50%); }.plan-node.edge-start { transform: none; }.plan-node.edge-end { transform: translateX(-100%); }.plan-node:hover { z-index: 2; outline: 2px solid #4ca4b5; outline-offset: 2px; }.plan-node.completed { color: #fff; background: var(--green); box-shadow: 0 0 0 1px #17816a; font-size: 15px; }.plan-node.active { color: #0a6578; background: conic-gradient(var(--accent) var(--node-progress), #e3eef0 0); box-shadow: 0 0 0 1px #4d9cac; }.plan-node.active::before { position: absolute; inset: 4px; background: #fff; border-radius: 50%; content: ''; }.plan-node.active span { position: relative; z-index: 1; font-size: 8px; letter-spacing: -.04em; }.plan-node.late { color: #fff; background: var(--red); box-shadow: 0 0 0 1px #b74840; font-size: 14px; }.plan-node-summary { display: grid; grid-template-columns: minmax(72px,1fr) auto auto; align-items: center; gap: 7px; }.plan-node-summary > span { display: grid; gap: 1px; }.plan-node-summary small { color: var(--muted); font-size: 9px; }.plan-node-summary strong { font-size: 12px; font-variant-numeric: tabular-nums; }.plan-node-summary em { overflow: hidden; color: var(--accent-strong); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }.plan-node-summary .button { min-height: 28px; padding-inline: 7px; }

.plan-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.daily-visual-overview { display: grid; grid-template-columns: minmax(600px,1.68fr) minmax(340px,1fr); gap: 14px; }.daily-status-panel,.daily-hours-panel { min-width: 0; padding: 0; overflow: hidden; }.daily-status-panel .panel-head,.daily-hours-panel .panel-head { min-height: 62px; padding: 10px 14px; }.daily-status-panel .panel-title h2 small { margin-inline-start: 5px; color: #65808a; font-size: 12px; font-weight: 650; }.daily-status-panel .text-button,.daily-hours-panel .text-button { flex: 0 0 auto; white-space: nowrap; }
.daily-status-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; padding: 10px 12px 12px; }.daily-status-tile { display: grid; min-width: 0; min-height: 101px; align-content: start; gap: 5px; padding: 9px 10px; color: var(--ink); text-align: left; background: #fff; border: 1px solid #dce7ea; border-radius: 5px; cursor: pointer; }.daily-status-tile:not(:disabled):hover { background: #f5fafb; border-color: #b8d4da; }.daily-status-tile:not(:disabled):focus-visible { position: relative; z-index: 1; outline: 3px solid rgba(0,128,172,.34); outline-offset: 1px; }.daily-status-tile:disabled { color: var(--muted); background: #fafcfc; cursor: default; }.daily-status-tile > span:first-child { overflow: hidden; color: #385761; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }.daily-status-main { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 6px; }.daily-status-main strong { overflow: hidden; color: #183746; font-size: 18px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }.daily-status-tile small { color: var(--muted); font-size: 10px; }.daily-status-tile .status { flex: 0 0 auto; min-height: 21px; padding: 2px 7px; font-size: 9px; }.daily-status-tile .daily-status-output { font-size: 11px; }.daily-status-tile .daily-status-output b { color: #385761; font-variant-numeric: tabular-nums; }.daily-status-tile .daily-status-work { overflow:hidden; min-width:0; color:#607980; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
.daily-hours-body { display: grid; align-content: start; gap: 14px; padding: 16px 14px 14px; }.daily-hours-track { display: flex; height: 22px; overflow: hidden; background: #e7eef0; border-radius: 4px; }.daily-hours-track i { display: block; min-width: 2px; height: 100%; }.daily-hours-track i.effective,.daily-hours-legend i.effective { background: var(--accent); }.daily-hours-track i.rest,.daily-hours-legend i.rest { background: #8fa1a7; }.daily-hours-track i.loss,.daily-hours-legend i.loss { background: var(--red); }.daily-hours-legend { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; color: var(--muted); }.daily-hours-legend span { display: grid; min-width: 0; grid-template-columns: 9px minmax(0,1fr); gap: 2px 5px; align-items: center; }.daily-hours-legend i { grid-row: 1 / 3; width: 9px; height: 9px; border-radius: 2px; }.daily-hours-legend small { overflow: hidden; color: #5c747c; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.daily-hours-legend b { color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; }.daily-hours-legend em { grid-column: 2; color: #72878e; font-size: 10px; font-style: normal; font-variant-numeric: tabular-nums; }
.daily-output-highlight { display: grid; gap: 10px; padding: 13px 14px; background: linear-gradient(110deg,#f2f8f8,#f8fbfb); border: 1px solid #d5e5e7; border-radius: 5px; }.daily-output-primary { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; }.daily-output-primary span { color: #3f626d; font-size: 14px; font-weight: 750; }.daily-output-primary strong { color: #156574; font-size: 27px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; white-space: nowrap; }.daily-output-efficiency { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block-start: 10px; color: #617982; border-block-start: 1px solid #deeaec; font-size: 11px; }.daily-output-efficiency b { margin-inline-start: 5px; color: #244753; font-size: 16px; }.daily-output-compare b { color: #7d8f95; font-size: 10px; font-weight: 650; }

/* 日生产进度概览：沿用现有蓝绿语义与紧凑边框体系。 */
.daily-unit-situation { min-width: 0; padding: 0; overflow: hidden; }
.daily-unit-situation .panel-head { align-items: center; padding: 8px 14px 7px; }
.daily-unit-situation .panel-title h2 small { margin-inline-start: 5px; color: var(--muted); font-size: 12px; font-weight: 600; }
.daily-unit-counts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; color: #5b737c; font-size: 11px; }
.daily-unit-counts span { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.daily-unit-counts span::before { width: 7px; height: 7px; content: ""; border-radius: 50%; background: #aebdc3; }
.daily-unit-counts span:nth-child(2)::before { background: #2189d8; }
.daily-unit-counts span:nth-child(4)::before { background: #25a878; }
.daily-unit-counts .risk::before { background: #dc8429; }
.daily-unit-counts b { color: #183644; font-size: 13px; }
.daily-unit-counts small { color: #81939a; font-size: 9px; }
.daily-unit-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 7px; padding: 0 14px 10px; }
.daily-unit-card { display: grid; min-width: 0; min-height: 91px; align-content: start; gap: 4px; padding: 6px 9px; color: var(--ink); text-align: start; background: #fff; border: 1px solid #dce7ea; border-radius: 6px; cursor: pointer; }
.daily-unit-card:hover { background: #f6fafb; border-color: #b9d3da; }
.daily-unit-card:focus-visible { position: relative; z-index: 2; outline: 3px solid rgba(0,128,172,.4); outline-offset: 1px; }
.daily-unit-card.placeholder { color: var(--muted); background: #f8fafb; cursor: default; }
.daily-unit-card-head { display: grid; min-width: 0; gap: 2px; color: #45636e; font-size: 10px; font-weight: 700; line-height: 1.2; }
.daily-unit-card-head > span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.daily-unit-card-head > small { overflow: hidden; color: #285466; font-size: 10px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.daily-unit-card-body { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 6px; }
.daily-unit-card-body > strong { color: #153c4c; font-size: 17px; line-height: 1; }
.daily-unit-card-body .status { flex: 0 0 auto; min-height: 18px; padding: 0 6px; font-size: 9px; }
.daily-unit-progress { display: block; height: 5px; overflow: hidden; background: #dce6e9; border-radius: 3px; }
.daily-unit-progress i { display: block; height: 100%; background: #2189d8; }
.daily-unit-card-meta { display: flex; min-width: 0; align-items: baseline; gap: 7px; color: #81939a; font-size: 9px; line-height: 1.2; }
.daily-unit-card-meta b { overflow: hidden; color: #45636e; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.daily-unit-card.green .daily-unit-progress i { background: #25a878; }
.daily-unit-card.red .daily-unit-progress i { background: #d3514c; }
.daily-unit-card.amber .daily-unit-progress i { background: #dc8429; }
.daily-hours-kpis { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid #dce7ea; }
.daily-hours-kpis > span { display: grid; min-width: 0; gap: 2px; padding: 7px 8px; color: #71878f; font-size: 9px; border-inline-end: 1px solid #e4ecee; border-block-end: 1px solid #e4ecee; }
.daily-hours-kpis > span:nth-child(3n) { border-inline-end: 0; }
.daily-hours-kpis > span:nth-child(n+4) { border-block-end: 0; }
.daily-hours-kpis strong { overflow: hidden; color: #173c4b; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.daily-hours-kpis small { margin-inline-start: 2px; color: #71878f; font-size: 9px; }
.daily-hours-separate { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.daily-hours-separate span { display: grid; gap: 2px; padding: 7px 8px; color: #566f78; font-size: 10px; background: #f7f9fa; border: 1px solid #e1e8ea; }
.daily-hours-separate b { color: #263f49; }
.daily-hours-separate small { color: #81939a; font-size: 9px; line-height: 1.35; }
.daily-alert-panel { padding: 0; overflow: hidden; }
.daily-alert-panel .panel-head { padding: 12px 14px; }
.daily-alert-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); border-block-start: 1px solid var(--line); }
.daily-alert-card { display: grid; min-width: 0; min-height: 106px; align-content: start; gap: 3px; padding: 10px 11px; color: var(--ink); text-align: start; background: #fff; border: 0; border-inline-end: 1px solid var(--line); cursor: pointer; }
.daily-alert-card:last-child { border-inline-end: 0; }
.daily-alert-card:hover { background: #f5f9fa; }
.daily-alert-card:focus-visible { outline: 3px solid rgba(0,128,172,.4); outline-offset: -3px; }
.daily-alert-card > span { color: #58717b; font-size: 10px; font-weight: 700; }
.daily-alert-card > strong { color: #1a4656; font-size: 20px; line-height: 1.2; }
.daily-alert-card.red > strong { color: #b83b38; }
.daily-alert-card.amber > strong { color: #a96417; }
.daily-alert-card.green > strong { color: #187b60; font-size: 14px; }
.daily-alert-card strong small { margin-inline-start: 2px; font-size: 9px; }
.daily-alert-card p { display: -webkit-box; overflow: hidden; margin: 0; color: #70858d; font-size: 9px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.daily-alert-card em { margin-block-start: auto; color: var(--accent-strong); font-size: 9px; font-style: normal; font-weight: 700; }

.operation-visual-overview { display: grid; gap: 14px; }.operation-summary { grid-template-columns: repeat(4,minmax(140px,1fr)); margin: 0; }.operation-heatmap-panel { padding: 0; overflow: hidden; }.operation-heatmap-panel .panel-head { padding: 12px 14px; }.operation-heat-wrap { overflow-x: auto; overflow-y: visible; }.operation-heatmap th,.operation-heatmap td { min-width: 62px; }.operation-heatmap .sticky-1 { min-width: 92px; }.operation-heat-cell { padding: 3px !important; text-align: center; }.operation-heat-cell button { width: 100%; min-height: 30px; color: #6f7e83; background: #f3f6f6; border: 0; border-radius: 2px; font-size: 11px; font-variant-numeric: tabular-nums; }.operation-heat-cell button:hover { outline: 2px solid #5ba9b6; outline-offset: -2px; }.operation-heat-cell.active button { color: #0a6277; background: #d9eff2; }.operation-heat-cell.completed button { color: #17725f; background: #dff3e8; }.operation-heat-cell.stopped button { color: #a83d36; background: #fde5e3; }.operation-total-head,.operation-total-cell { position: sticky; inset-inline-end: 0; box-shadow: -2px 0 0 #d8e3e5; }.operation-total-head { z-index: 4; background: #eaf1f2; }.operation-total-cell { z-index: 2; min-width: 116px; background: #fff; }.operation-total-progress { display: flex; align-items: center; justify-content: space-between; gap: 6px; }.operation-progress-ring { position: relative; display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; overflow: hidden; color: #0b7188; background: conic-gradient(var(--accent) var(--progress), #e3ecee 0); border-radius: 50%; font-variant-numeric: tabular-nums; }.operation-progress-ring::before { position: absolute; inset: 4px; background: #fff; border-radius: 50%; content: ''; }.operation-progress-ring b { position: relative; z-index: 1; font-size: 9px; font-weight: 750; letter-spacing: -.04em; }.operation-progress-ring.unconfigured { color: var(--muted); background: #edf2f3; font-size: 15px; }.operation-progress-ring.unconfigured::before { display: none; }.operation-total-progress .button { min-height: 28px; padding-inline: 7px; white-space: nowrap; }.operation-heat-legend i { width: 9px; height: 9px; border-radius: 2px; background: #f3f6f6; }.operation-heat-legend i.active { background: #d9eff2; }.operation-heat-legend i.completed { background: #dff3e8; }.operation-heat-legend i.stopped { background: #fde5e3; }
.progress-order-details { padding: 0; overflow: hidden; }.progress-order-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; cursor: pointer; list-style: none; }.progress-order-details > summary::-webkit-details-marker { display: none; }.progress-order-details > summary strong,.progress-order-details > summary small { display: block; }.progress-order-details > summary strong { font-size: 14px; }.progress-order-details > summary small { margin-top: 3px; color: var(--muted); font-size: 11px; }.progress-order-details[open] > summary { border-block-end: 1px solid var(--line); }.progress-order-details[open] .source-disclosure-action { font-size: 0; }.progress-order-details[open] .source-disclosure-action::after { content: '收起'; font-size: 11px; }.progress-order-details .table-footer { border-block-start: 1px solid var(--line); }
.dashboard-command {
  overflow: hidden;
  background: #f4f8f9;
  border: 1px solid #bfd0d5;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(16, 47, 61, .07);
}
.dashboard-scope {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 13px;
  color: #34545f;
  background: #e7f0f2;
  border-block-end: 1px solid #c7d7db;
}
.dashboard-scope > span { display: flex; min-width: 0; align-items: baseline; gap: 10px; }
.dashboard-scope strong { color: var(--ink); }
.dashboard-scope small { color: var(--muted); }
.dashboard-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--surface); border-block-end: 1px solid var(--line); }
.dashboard-kpi {
  min-width: 0;
  min-height: 82px;
  padding: 10px 13px;
  text-align: start;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-inline-end: 1px solid var(--line);
  cursor: pointer;
}
.dashboard-kpi:last-child { border-inline-end: 0; }
.dashboard-kpi:hover { background: #f2f8fa; }
.dashboard-kpi:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--accent); outline-offset: -2px; }
.dashboard-kpi > span { display: block; color: var(--muted); font-size: 12px; }
.dashboard-kpi strong { display: block; margin-block: 3px 2px; font-size: clamp(22px, 2vw, 29px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.dashboard-kpi strong em,
.command-health-grid strong em { margin-inline-start: 3px; font-size: 12px; font-style: normal; font-weight: 600; letter-spacing: 0; }
.dashboard-kpi small { display: block; overflow: hidden; color: var(--subtle); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-kpi.good strong,
.command-health-grid strong.good { color: var(--green); }
.dashboard-kpi.alert strong,
.command-health-grid strong.alert { color: var(--red); }
.command-health-grid strong.warn { color: var(--amber); }
.dashboard-command-body { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, .85fr); gap: 12px; padding: 12px; }
.dashboard-primary-stack,
.dashboard-secondary-stack { display: grid; min-width: 0; align-content: start; gap: 12px; }
.command-panel { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
.command-panel-head { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 11px; border-block-end: 1px solid var(--line); }
.command-panel-head h2 { margin: 0; font-size: 15px; line-height: 1.2; }
.command-panel-head p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.command-total { display: flex; align-items: baseline; gap: 7px; color: var(--muted); }
.command-total small { font-size: 10px; }
.command-total strong { color: var(--accent); font-size: 22px; font-variant-numeric: tabular-nums; }
.command-unit-list { display: grid; }
.command-unit-row {
  display: grid;
  min-width: 0;
  min-height: 37px;
  grid-template-columns: minmax(150px, .9fr) minmax(110px, 1.25fr) 48px 76px;
  align-items: center;
  gap: 9px;
  padding: 3px 10px;
  text-align: start;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-block-end: 1px solid #e1e9eb;
  cursor: pointer;
}
.command-unit-row:last-child { border-block-end: 0; }
.command-unit-row:hover { background: #f1f8fa; }
.command-unit-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.command-unit-name { display: grid; min-width: 0; gap: 1px; }
.command-unit-name strong,
.command-unit-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command-unit-name strong { font-size: 12px; }
.command-unit-name small { color: var(--muted); font-size: 10px; }
.command-unit-row > b { text-align: end; font-size: 12px; font-variant-numeric: tabular-nums; }
.command-progress-track,
.team-mini-track { display: block; height: 7px; overflow: hidden; background: #dce7ea; border-radius: 999px; }
.command-progress-track i,
.team-mini-track i { display: block; height: 100%; background: linear-gradient(90deg, #12a0bd, var(--accent)); border-radius: inherit; }
.command-footer-teams { display: grid; grid-template-columns: 148px minmax(0, 1fr); margin: 0 12px 12px; }
.command-footer-teams .command-panel-head { min-height: 46px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; padding: 4px 10px; border-block-end: 0; border-inline-end: 1px solid var(--line); }
.command-footer-teams .command-panel-head p { display: none; }
.command-footer-teams .command-panel-head .text-button { min-height: 0; padding: 0; font-size: 9px; }
.command-footer-teams .command-team-grid { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
.command-footer-teams .command-team-row { min-height: 46px; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 5px; padding: 4px 6px; border-block-end: 0; }
.command-footer-teams .command-team-row > span:first-child small { display: none; }
.command-footer-teams .command-team-row .team-mini-track { grid-column: 1; grid-row: 2; height: 5px; }
.command-footer-teams .command-team-row > b { grid-column: 2; grid-row: 2; }
.command-footer-teams .command-team-row > em { grid-column: 2; grid-row: 1; overflow: hidden; max-width: 66px; text-align: end; text-overflow: ellipsis; white-space: nowrap; }
.command-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.command-team-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  padding: 8px 9px;
  text-align: start;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-inline-end: 1px solid #e1e9eb;
  border-block-end: 1px solid #e1e9eb;
  cursor: pointer;
}
.command-team-row:last-child { border-inline-end: 0; }
.command-team-row:hover { background: #f1f8fa; }
.command-team-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.command-team-row > span:first-child { display: grid; min-width: 0; }
.command-team-row > span:first-child strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.command-team-row > span:first-child small { color: var(--subtle); font-size: 9px; }
.command-team-row .team-mini-track { grid-column: 1 / -1; }
.command-team-row > b { font-size: 11px; font-variant-numeric: tabular-nums; }
.command-team-row > em { grid-column: 1 / -1; font-size: 9px; font-style: normal; }
.command-team-row > em.good { color: var(--green); }
.command-team-row > em.warn { color: var(--amber); }
.command-health-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.command-health-grid button { min-width: 0; padding: 9px 8px; text-align: center; color: var(--ink); background: transparent; border: 0; border-inline-end: 1px solid var(--line); cursor: pointer; }
.command-health-grid button:last-child { border-inline-end: 0; }
.command-health-grid button:hover { background: #f1f8fa; }
.command-health-grid span,
.command-health-grid small { display: block; color: var(--muted); font-size: 9px; }
.command-health-grid strong { display: block; margin: 3px 0; font-size: 17px; font-variant-numeric: tabular-nums; }
.command-alert-list { display: grid; }
.command-alert-list > button { display: flex; min-width: 0; min-height: 47px; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; text-align: start; color: var(--ink); background: transparent; border: 0; border-block-end: 1px solid #e1e9eb; cursor: pointer; }
.command-alert-list > button:last-child { border-block-end: 0; }
.command-alert-list > button:hover { background: #fff8f5; }
.command-alert-list > button > span:first-child { display: grid; min-width: 0; gap: 2px; }
.command-alert-list strong,
.command-alert-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command-alert-list strong { font-size: 11px; }
.command-alert-list small { color: var(--muted); font-size: 9px; }
.picking-distribution { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.picking-distribution button { display: grid; min-width: 0; grid-template-columns: 5px 1fr; gap: 2px 6px; padding: 8px 6px; text-align: start; color: var(--ink); background: transparent; border: 0; border-inline-end: 1px solid var(--line); cursor: pointer; }
.picking-distribution button:last-child { border-inline-end: 0; }
.picking-distribution button:hover { background: #f1f8fa; }
.picking-distribution i { grid-row: 1 / 3; width: 5px; height: 100%; min-height: 28px; border-radius: 3px; }
.picking-distribution .tone-red { background: var(--red); }
.picking-distribution .tone-amber { background: var(--amber); }
.picking-distribution .tone-blue { background: var(--blue); }
.picking-distribution .tone-purple { background: #7957c8; }
.picking-distribution .tone-green { background: var(--green); }
.picking-distribution span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.picking-distribution strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.dashboard-secondary-stack .command-panel-head { min-height: 38px; padding: 5px 9px; }
.dashboard-secondary-stack .command-health-grid button { padding-block: 6px; }
.dashboard-secondary-stack .command-health-grid strong { margin-block: 2px; font-size: 15px; }
.dashboard-secondary-stack .command-alert-list > button { min-height: 39px; padding-block: 4px; }
.dashboard-secondary-stack .picking-distribution button { padding-block: 5px; }
.dashboard-secondary-stack .picking-distribution i { min-height: 23px; }

/* 汇总看板：管理驾驶舱，只呈现态势与风险；记录和处置回到工作台与台账。 */
#app:has(.dashboard-summary) { padding-block: 12px 20px; }
#app:has(.dashboard-summary) .page-head { margin-block-end: 10px; }
.dashboard-summary { overflow: hidden; background: #f5f9fa; border: 1px solid #c8dade; border-radius: 6px; box-shadow: 0 8px 22px rgba(16, 47, 61, .05); }
.summary-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 10px; background: #eef5f6; border-block-end: 1px solid #d6e3e5; }
.summary-kpi { display: grid; min-width: 0; min-height: 94px; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px; color: var(--ink); text-align: left; background: #fff; border: 1px solid #d9e6e8; border-radius: 5px; cursor: pointer; }
.summary-kpi:hover { background: #f5fbfc; border-color: #a9cbd2; }.summary-kpi:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--accent); outline-offset: 1px; }
.summary-kpi-icon,.summary-health-icon,.summary-panel-icon { display: grid; flex: 0 0 auto; place-items: center; color: #167b9e; background: #e3f4fb; border-radius: 50%; }
.summary-kpi-icon { width: 48px; height: 48px; }.summary-kpi-icon svg { width: 25px; height: 25px; }.summary-kpi-icon.green,.summary-health-icon.green { color: #079a77; background: #e4f8f0; }.summary-kpi-icon.amber,.summary-health-icon.amber { color: #bd7a06; background: #fff5d9; }.summary-kpi-icon.red { color: #d04b46; background: #fde9e8; }
.summary-kpi small,.summary-kpi i { display: block; overflow: hidden; color: var(--muted); font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }.summary-kpi strong { display: block; margin-block: 2px; color: #143a4b; font-size: 27px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }.summary-kpi strong.green,.summary-health-grid strong.green,.summary-team-grid b.green { color: var(--green); }.summary-kpi strong.red { color: var(--red); }.summary-kpi strong em,.summary-health-grid strong em { margin-inline-start: 3px; font-size: 11px; font-style: normal; font-weight: 700; letter-spacing: 0; }
.summary-kpi-progress { grid-template-columns: 58px minmax(0,1fr); }.summary-total-ring,.summary-unit-ring { position: relative; display: grid; place-items: center; overflow: hidden; background: conic-gradient(#16abc1 var(--progress), #dce8ed 0); border-radius: 50%; }.summary-total-ring { width: 54px; height: 54px; }.summary-total-ring::after,.summary-unit-ring::after { position: absolute; content: ''; background: #fff; border-radius: inherit; }.summary-total-ring::after { inset: 8px; }.summary-total-ring b,.summary-unit-ring b { position: relative; z-index: 1; color: #113d52; font-size: 11px; font-variant-numeric: tabular-nums; }
.summary-main-grid { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(320px, .82fr); gap: 12px; padding: 12px; }
.summary-panel { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #d6e3e5; border-radius: 5px; }.summary-panel-head { display: flex; min-height: 53px; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 11px; border-block-end: 1px solid #dce7e9; }.summary-panel-head > div { display: flex; min-width: 0; align-items: center; gap: 8px; }.summary-panel-head h2 { margin: 0; color: #163f50; font-size: 15px; }.summary-panel-head p { margin: 2px 0 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.summary-panel-head .text-button { flex: 0 0 auto; min-height: 28px; margin: 0; color: var(--accent-strong); font-size: 10px; }.summary-panel-icon { width: 32px; height: 32px; }.summary-panel-icon svg { width: 18px; height: 18px; }.summary-panel-icon.danger { color: #cf4d48; background: #fde9e8; }.summary-panel-link { flex: 0 0 auto; color: #3c6a78; font-size: 11px; font-weight: 750; }
.summary-unit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; padding: 10px; }.summary-unit-card { display: grid; min-width: 0; min-height: 214px; grid-template-rows: auto auto 1fr auto; align-items: start; gap: 6px; padding: 9px; color: var(--ink); text-align: left; background: #fff; border: 1px solid #dce8ea; border-radius: 4px; cursor: pointer; }.summary-unit-card:hover { background: #f4fafb; border-color: #9fcbd3; }.summary-unit-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }.summary-unit-top { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 5px; }.summary-unit-top > strong { overflow: hidden; color: #173c4e; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.summary-unit-top .status { min-height: 20px; padding: 1px 5px; font-size: 9px; }.summary-unit-top .status::before { width: 5px; height: 5px; }.summary-unit-station { overflow: hidden; color: #628093; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.summary-unit-ring { align-self: center; justify-self: center; width: 82px; height: 82px; }.summary-unit-ring::after { inset: 10px; }.summary-unit-ring b { font-size: 15px; }.summary-unit-meta { display: grid; gap: 3px; color: #59758a; font-size: 10px; line-height: 1.35; }.summary-unit-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.summary-units-panel > footer,.summary-panel > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 37px; padding: 4px 10px; background: #f8fbfb; border-block-start: 1px solid #e0eaeb; }.summary-panel > footer .text-button { min-height: 28px; margin: 0; color: var(--accent-strong); font-size: 10px; }
.summary-side-stack { display: grid; align-content: start; gap: 12px; }.summary-health-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }.summary-health-grid button { display: grid; min-width: 0; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 6px; padding: 9px 7px; color: var(--ink); text-align: left; background: #fff; border: 0; border-inline-end: 1px solid #e1ebed; cursor: pointer; }.summary-health-grid button:last-child { border: 0; }.summary-health-grid button:hover { background: #f5fafb; }.summary-health-icon { width: 30px; height: 30px; }.summary-health-icon svg { width: 17px; height: 17px; }.summary-health-icon.blue { color: #147fbe; background: #e4f3fc; }.summary-health-grid small,.summary-health-grid i { display: block; overflow: hidden; color: var(--muted); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }.summary-health-grid strong { display: block; margin: 2px 0; color: #193e4e; font-size: 17px; line-height: 1; font-variant-numeric: tabular-nums; }.summary-health-grid strong.amber { color: var(--amber); }
.summary-alert-list { display: grid; }.summary-alert-list button { display: flex; min-width: 0; min-height: 49px; align-items: center; justify-content: space-between; gap: 7px; padding: 7px 10px; color: var(--ink); text-align: left; background: #fff; border: 0; border-block-end: 1px solid #e3ebed; cursor: pointer; }.summary-alert-list button:hover { background: #fff9f7; }.summary-alert-list button > span:first-child { display: grid; min-width: 0; gap: 2px; }.summary-alert-list strong,.summary-alert-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.summary-alert-list strong { font-size: 11px; }.summary-alert-list small { color: var(--muted); font-size: 9px; }.summary-alert-list .status { flex: 0 0 auto; min-height: 21px; padding: 1px 6px; font-size: 9px; }.summary-empty { margin: 0; padding: 18px 10px; color: var(--muted); font-size: 11px; }
.summary-picking-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); }.summary-picking-grid button { display: grid; min-width: 0; grid-template-columns: 4px minmax(0,1fr); gap: 2px 5px; padding: 8px 5px; color: var(--ink); text-align: left; background: #fff; border: 0; border-inline-end: 1px solid #e0eaeb; cursor: pointer; }.summary-picking-grid button:last-child { border: 0; }.summary-picking-grid button:hover { background: #f5fafb; }.summary-picking-grid i { grid-row: 1 / 3; min-height: 26px; border-radius: 99px; }.summary-picking-grid i.red { background: var(--red); }.summary-picking-grid i.amber { background: var(--amber); }.summary-picking-grid i.blue { background: var(--blue); }.summary-picking-grid i.purple { background: var(--purple); }.summary-picking-grid i.green { background: var(--green); }.summary-picking-grid span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.summary-picking-grid strong { font-size: 15px; line-height: 1; font-variant-numeric: tabular-nums; }
.summary-team-panel { margin: 0 12px 12px; }.summary-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); }.summary-team-grid button { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 7px; padding: 8px 9px; color: var(--ink); text-align: left; background: #fff; border: 0; border-inline-end: 1px solid #e0eaeb; cursor: pointer; }.summary-team-grid button:last-child { border: 0; }.summary-team-grid button:hover { background: #f4fafb; }.summary-team-grid button:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--accent); outline-offset: -2px; }.summary-team-grid span { display: grid; min-width: 0; }.summary-team-grid strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.summary-team-grid small { color: var(--muted); font-size: 9px; }.summary-team-grid b { font-size: 12px; font-variant-numeric: tabular-nums; }.summary-team-grid b.amber { color: var(--amber); }.summary-team-grid i { grid-column: 1 / -1; display: block; height: 6px; overflow: hidden; background: #dce8eb; border-radius: 99px; }.summary-team-grid i em { display: block; height: 100%; background: #1daec4; border-radius: inherit; }
.stack { display: grid; align-content: start; gap: 14px; }
.import-audit-stack { width: 100%; }
.structure-ledger-stack { width: 100%; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.data-table-wrap {
  position: relative;
  max-width: 100%;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #829aa2 #edf2f3;
}

.data-table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.data-table-wrap.tall { max-height: calc(100vh - 260px); }
.data-table-wrap.medium { max-height: 520px; }
.data-table-wrap::-webkit-scrollbar { width: 11px; height: 11px; }
.data-table-wrap::-webkit-scrollbar-track { background: #edf2f3; }
.data-table-wrap::-webkit-scrollbar-thumb { background: #829aa2; border: 3px solid #edf2f3; border-radius: 8px; }

.data-table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
  color: #233940;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.data-table caption { padding: 0; text-align: start; }
.data-table th,
.data-table td {
  min-width: 94px;
  height: 38px;
  padding: 7px 9px;
  background: var(--surface);
  border-inline-end: 1px solid #e0e7e8;
  border-block-end: 1px solid #e0e7e8;
  vertical-align: middle;
  text-align: start;
}

.data-table th {
  color: #304c56;
  background: #eaf0f1;
  border-block-end-color: #b9c7cb;
  font-weight: 700;
  white-space: nowrap;
}

.data-table thead th {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
}

.data-table thead tr:nth-child(2) th { inset-block-start: 38px; }
.data-table tbody tr:hover > td { background: #f5fafb; }
.data-table tbody tr.selected > td { background: #e9f5f8; }
.data-table tbody tr:last-child > td { border-block-end: 0; }
.data-table th:last-child,
.data-table td:last-child { border-inline-end: 0; }
.data-table .sticky-1 { position: sticky; inset-inline-start: 0; z-index: 4; box-shadow: 4px 0 8px rgba(29, 57, 67, .06); }
.data-table thead th.sticky-1 { z-index: 8; background: #dfeaec; }
.data-table .sticky-2 { position: sticky; inset-inline-start: var(--sticky-left, 104px); z-index: 4; box-shadow: 4px 0 8px rgba(29, 57, 67, .06); }
.data-table thead th.sticky-2 { z-index: 8; background: #e4edef; }
.data-table tbody .sticky-1,
.data-table tbody .sticky-2 { inset-block-start: auto; }
.data-table .group-cell { background: #f1f7f8; font-size: 15px; font-weight: 750; border-inline-end: 2px solid #9eb4ba; }
.data-table .group-end > td { border-block-end: 2px solid #9eb4ba; }
.data-table .section-row > td { height: 34px; color: #254d5b; background: #dfedef; font-weight: 750; }
.data-table .calculated { color: #275868; background: #f0f7f8; }
.data-table .muted-cell { color: #4c6068; }
.data-table .cell-note { display: block; margin-block-start: 2px; color: var(--amber); font-size: 10px; font-weight: 650; white-space: nowrap; }
.data-table .truncate { max-width: 250px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.data-table .center { text-align: center; }
.data-table .right { text-align: end; }
.data-table button.cell-action { min-width: 100%; min-height: 30px; padding: 4px 7px; text-align: start; border: 1px solid transparent; border-radius: 3px; background: transparent; }
.data-table button.cell-action:hover { border-color: #7eb3c2; background: #fff; }
.data-table .row-actions { display: flex; gap: 5px; white-space: nowrap; }

.status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.gray { color: var(--gray); background: var(--gray-bg); }
.status.blue { color: var(--blue); background: var(--blue-bg); }
.status.purple { color: var(--purple); background: var(--purple-bg); }
.status.green { color: var(--green); background: var(--green-bg); }
.status.amber { color: var(--amber); background: var(--amber-bg); }
.status.red { color: var(--red); background: var(--red-bg); }

.plan-type { display: inline-flex; min-width: 74px; justify-content: center; padding: 3px 7px; border-radius: 3px; font-size: 12px; font-weight: 700; }
.plan-type.delivery { color: #225c7e; background: #e6f0f7; }
.plan-type.rolling { color: #286249; background: #e5f1e9; }
.plan-type.actual { color: #765117; background: #f9edcf; }

.progress {
  display: grid;
  min-width: 130px;
  grid-template-columns: minmax(70px, 1fr) 44px;
  align-items: center;
  gap: 8px;
}

.progress-track { position: relative; height: 7px; overflow: hidden; background: #e2e9eb; border-radius: 999px; }
.progress-fill { display: block; height: 100%; max-width: 100%; background: var(--accent); border-radius: inherit; }
.progress b { color: #29454f; font-size: 12px; text-align: end; }
.progress.unconfigured { grid-template-columns: 1fr; color: var(--muted); }

.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font-size: 12px; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 9px; height: 9px; border-radius: 2px; background: currentColor; }

.matrix-table { min-width: max-content; }
.matrix-table thead th[scope="colgroup"] { text-align: center; }
.matrix-table th.unit-column { min-width: 112px; text-align: center; }
.matrix-table .order-number { display: block; margin-block-start: 2px; color: #4c6068; font-size: 10px; font-weight: 500; }
.matrix-table .state-button { display: block; width: 100%; min-height: 30px; padding: 2px; border: 1px solid transparent; border-radius: 3px; background: transparent; }
.matrix-table .state-button:hover { border-color: #78aebd; background: #fff; }
.matrix-table .state-button .status { justify-content: center; width: 100%; border-radius: 3px; }

.material-completeness-summary { grid-template-columns: repeat(4, minmax(150px, 1fr)); margin-block-end: 9px; }
.material-completeness-note { margin-block-end: 12px; }
.material-completeness-panel { overflow: hidden; }
.material-completeness-panel .panel-head { min-height: 58px; }
.material-completeness-matrix { table-layout: fixed; }
.material-completeness-matrix .material-workunit-head { width: 184px; min-width: 184px; max-width: 184px; white-space: normal; }
.material-completeness-matrix th.unit-column,
.material-completeness-matrix .material-rate-cell { width: 136px; min-width: 136px; max-width: 136px; }
.material-completeness-matrix tbody .material-workunit-head { color: #244a58; background: #f4f8f9; }
.material-completeness-matrix .material-rate-cell { height: 61px; padding: 7px 9px; vertical-align: middle; }
.material-completeness-matrix .material-rate-cell .progress { min-width: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.material-completeness-matrix .material-rate-cell .progress b { color: #14756e; font-size: 11px; }
.material-completeness-matrix .material-rate-cell .progress-fill { background: #15938a; }
.material-completeness-matrix .material-rate-cell .muted-cell { display: block; margin-block-start: 4px; font-size: 10px; }
.material-completeness-matrix .material-rate-cell.is-unconfigured { color: #7b898e; background: #fafcfc; }
.material-completeness-matrix .material-rate-cell.is-unconfigured span { display: block; font-size: 12px; font-weight: 700; }
.material-completeness-matrix .material-rate-cell.is-unconfigured small { display: block; margin-block-start: 3px; color: #9aa7ab; font-size: 10px; }
.material-completeness-matrix .material-group-row th,
.material-completeness-matrix .material-group-row td { color: #2b5b61; background: #e5f3f3; font-size: 12px; font-weight: 700; }
.material-completeness-matrix .material-group-row td { color: #678085; font-weight: 500; }

.picking-order-summary { grid-template-columns: repeat(4, minmax(150px, 1fr)); margin-block-end: 9px; }
.picking-order-note { margin-block-end: 12px; }
.picking-order-tabs { display: flex; align-items: end; gap: 4px; margin-block: 0 12px; padding-inline: 1px; border-block-end: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.picking-order-tab { flex: 0 0 auto; min-height: 36px; padding: 8px 12px; color: #5a7179; background: transparent; border: 1px solid transparent; border-block-end: 0; border-radius: 4px 4px 0 0; font-size: 13px; font-weight: 700; }
.picking-order-tab:hover { color: #165f72; background: #f0f8f9; }
.picking-order-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.picking-order-tab.active { position: relative; z-index: 1; color: #134d5c; background: var(--surface); border-color: var(--line); }
.picking-order-tab.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 1px; content: ''; background: var(--surface); }
.picking-order-overview .progress { min-width: 150px; }
.picking-order-matrix-panel .panel-head { min-height: 61px; }

.bigparts-summary,
.downtime-summary,
.master-data-summary,
.process-summary { grid-template-columns: repeat(4, minmax(150px, 1fr)); margin-block-end: 12px; }
.process-summary { margin-block: 0 12px; }

.bigparts-panel .matrix-head { min-height: 64px; }
.bigparts-panel .legend-dot.green { color: var(--green); }
.bigparts-panel .legend-dot.blue { color: var(--blue); }
.bigparts-panel .legend-dot.amber { color: var(--amber); }
.bigparts-panel .legend-dot.red { color: var(--red); }
.bigparts-matrix-wrap { scrollbar-color: #9eb6bd #eef3f4; scrollbar-width: thin; }
.bigparts-matrix { table-layout: fixed; }
.bigparts-matrix col.material-code-width,
.bigparts-matrix .bigpart-code-col { width: 140px; min-width: 140px; max-width: 140px; }
.bigparts-matrix col.part-name-width,
.bigparts-matrix .bigpart-name-col { width: 120px; min-width: 120px; max-width: 120px; }
.bigparts-matrix col.unit-status-width,
.bigparts-matrix th.unit-column,
.bigparts-matrix .bigpart-status-cell { width: 116px; min-width: 116px; max-width: 116px; }
.bigparts-matrix .bigpart-code-col { box-shadow: none; }
.bigparts-matrix .bigpart-name-col { inset-inline-start: 140px; border-inline-end: 2px solid var(--line-strong); box-shadow: 8px 0 12px rgba(29,57,67,.08); }
.bigparts-matrix tbody .bigpart-code-col { color: #244a58; background: #f6fafb; font-weight: 650; }
.bigparts-matrix tbody .bigpart-name-col { color: var(--ink); background: #fff; }
.bigparts-matrix tbody tr:hover .bigpart-code-col,
.bigparts-matrix tbody tr:hover .bigpart-name-col { background: #eef6f7; }
.bigparts-matrix .bigpart-code-col code { color: inherit; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.bigparts-matrix .unit-column strong { display: block; color: var(--ink); font-size: 13px; }
.bigparts-matrix .bigpart-status-cell { height: 58px; padding: 6px; }
.bigparts-matrix .state-button.bigpart-state { display: grid; min-height: 44px; place-items: center; align-content: center; gap: 2px; padding: 4px; }
.bigparts-matrix .state-button.bigpart-state .status { width: auto; min-height: 21px; padding: 1px 7px; border-radius: 999px; font-size: 11px; }
.bigparts-matrix .state-button.bigpart-state .status::before { width: 5px; height: 5px; }
.bigparts-matrix .quantity-line { color: var(--muted); font-size: 10px; white-space: nowrap; }
.bigparts-matrix .quantity-line b { color: #2d5967; font-size: 11px; }
.bigparts-matrix .bigpart-empty { color: var(--subtle); background: #fafcfc; }
.takt-slot-input,
.takt-cell-input { width: 100%; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 3px; }
.takt-slot-input { min-width: 116px; min-height: 34px; padding: 6px 8px; font-weight: 700; }
.takt-cell-input { min-width: 230px; min-height: 72px; padding: 7px 8px; resize: vertical; line-height: 1.5; }
.takt-slot-input:focus,
.takt-cell-input:focus { border-color: var(--accent); outline: 2px solid rgba(18, 151, 170, .16); outline-offset: 1px; }

.table-footer { display: flex; min-height: 42px; min-width: 0; flex-wrap: wrap; align-items: center; gap: 14px; padding: 8px 11px; color: var(--muted); background: #fafcfc; border-block-start: 1px solid var(--line); font-size: 12px; }
.table-footer .error-count { color: var(--red); font-weight: 700; }
.scroll-hint { min-width: 0; margin-inline-start: auto; white-space: normal; }

.list-rows { display: grid; }
.list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 58px; padding: 10px 12px; border-block-end: 1px solid var(--line); }
.list-row:last-child { border-block-end: 0; }
.list-row:hover { background: var(--surface-muted); }
.list-main { min-width: 0; }
.list-main strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.list-main p { margin: 3px 0 0; overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.list-meta { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

.bar-list { display: grid; gap: 11px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 150px) minmax(110px, 1fr) 52px; align-items: center; gap: 10px; }
.bar-row > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bar-row > b { text-align: end; font-variant-numeric: tabular-nums; }
.bar-axis { position: relative; height: 10px; background: #e7edef; }
.bar-value { display: block; height: 100%; min-width: 2px; background: var(--accent); }
.bar-axis .target { position: absolute; inset-block: -3px; left: 83.333%; width: 1px; background: #5b6b71; }

.directory-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block-start: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.directory-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 68px; padding: 11px 12px; border: 0; border-inline-end: 1px solid var(--line); border-block-end: 1px solid var(--line); background: #fff; text-align: start; }
.directory-item:hover { background: #f5fafb; }
.directory-icon { display: grid; width: 32px; height: 32px; place-items: center; color: var(--accent-strong); background: var(--accent-soft); border-radius: 4px; }
.directory-icon svg { width: 17px; height: 17px; }
.directory-copy { min-width: 0; }
.directory-copy strong { display: block; }
.directory-copy span { display: block; margin-block-start: 2px; overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.directory-count { color: var(--muted); font-size: 12px; }

.empty-state { display: grid; min-height: 190px; place-items: center; padding: 32px; color: var(--muted); text-align: center; }
.empty-state svg { width: 34px; height: 34px; margin-block-end: 8px; color: #8aa0a8; }
.empty-state strong { display: block; color: var(--ink); font-size: 15px; }
.empty-state p { max-width: 50ch; margin: 5px 0 12px; }

.sidebar-backdrop,
.drawer-backdrop { position: fixed; inset: 0; background: rgba(12, 31, 39, .48); }
.sidebar-backdrop { z-index: 35; }
.drawer-backdrop { z-index: 90; }
.sidebar-backdrop[hidden],
.drawer-backdrop[hidden] { display: none; }
.drawer {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 100;
  display: grid;
  width: min(860px, calc(100vw - 32px));
  max-height: 90vh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--surface);
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(10, 29, 37, .28);
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -48%) scale(.985);
  visibility: hidden;
  transition: opacity .18s ease, transform .18s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .18s;
}

.drawer.open { opacity: 1; transform: translate(-50%, -50%) scale(1); visibility: visible; transition-delay: 0s; }
.drawer-head,
.drawer-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #fff; }
.drawer-head { border-block-end: 1px solid var(--line); }
.drawer-foot { border-block-start: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 20px; }
.drawer-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.drawer-head .icon-button { color: var(--muted); }
.drawer-body { min-height: 0; overflow-y: auto; padding: 16px; }

.form-section { margin-block-end: 20px; }
.form-section:last-child { margin-block-end: 0; }
.form-section h3 { margin: 0 0 10px; padding-block-end: 7px; font-size: 14px; border-block-end: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; min-width: 0; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #38535d; font-size: 12px; font-weight: 700; }
.field label .required { margin-inline-start: 4px; color: var(--red); }
.field input,
.field select,
.field textarea { width: 100%; min-height: 40px; padding: 8px 10px; color: var(--ink); background-color: #fff; border: 1px solid var(--line-strong); border-radius: 4px; }
.field select { background-color: #fbfcfc; font-weight: 600; }
.field select:hover:not(:disabled) { background-color: #f5fafb; }
.field textarea { min-height: 88px; resize: vertical; }
.field input[readonly],
.field input:disabled { color: var(--muted); background: var(--surface-muted); }
.field small { color: var(--muted); font-size: 12px; }
.field-error { color: var(--red) !important; }
.field [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 2px rgba(169, 52, 48, .12); }
.field-validation-error { color: var(--red) !important; font-weight: 650; }
.formula-box { padding: 10px; color: #315967; background: var(--accent-soft); border: 1px solid #bddce4; border-radius: 4px; }
.formula-box strong { display: block; color: #244953; }
.formula-box code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }

/* ECO is a short record: keep every decision in one compact desktop dialog. */
.drawer:has(.eco-editor) { width: min(1120px, calc(100vw - 32px)); }
.eco-editor { display: grid; gap: 12px; }
.eco-editor-section { min-width: 0; padding-block-end: 12px; border-block-end: 1px solid var(--line); }
.eco-editor-section:last-child { padding-block-end: 0; border-block-end: 0; }
.eco-editor-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-block-end: 8px; }
.eco-editor-section-head h3 { margin: 0; color: #38535d; font-size: 13px; }
.eco-editor-section-head p { margin: 0; color: var(--muted); font-size: 11px; }
.eco-editor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; }
.eco-editor .field { gap: 4px; }
.eco-editor .field label { font-size: 12px; }
.eco-editor .field input,
.eco-editor .field select { min-height: 38px; padding-block: 7px; }
.eco-editor .field textarea { min-height: 54px; padding-block: 7px; line-height: 1.45; resize: vertical; }
.eco-editor-grid--execution .field:has(#field-effectiveAt),
.eco-editor-grid--execution .field:has(#field-implemented),
.eco-editor-grid--execution .field:has(#field-implementedAt) { grid-column: span 1; }
.eco-editor-grid--execution .field:has(#field-bomOrderChange),
.eco-editor-grid--execution .field:has(#field-pendingReason) { grid-column: span 2; }

/* Downtime entry is a short operational workflow, not a long data-entry sheet.
   Keep its three decisions visible on a standard desktop so users never need to
   hunt through a scrolling modal to learn whether a record needs review. */
.drawer:has(.downtime-editor) { width: min(1120px, calc(100vw - 32px)); max-height: min(90vh, 760px); }
.downtime-editor { display: grid; gap: 10px; }
.downtime-flow { display: grid; grid-template-columns: auto minmax(32px, 1fr) auto minmax(32px, 1fr) auto; align-items: center; gap: 8px; padding: 7px 10px; background: var(--surface-muted); border: 1px solid var(--line); border-radius: 4px; }
.downtime-flow-step { display: flex; min-width: 0; align-items: center; gap: 6px; color: var(--muted); }
.downtime-flow-step b { display: grid; flex: 0 0 auto; width: 20px; height: 20px; place-items: center; color: #587079; background: #e7eef0; border-radius: 50%; font-size: 11px; }
.downtime-flow-step.active { color: var(--ink); }
.downtime-flow-step.active b { color: #fff; background: var(--accent); }
.downtime-flow-step strong,
.downtime-flow-step small { display: block; white-space: nowrap; }
.downtime-flow-step strong { font-size: 12px; }
.downtime-flow-step small { display: inline; margin-inline-start: 6px; font-size: 11px; }
.downtime-flow-line { height: 1px; background: var(--line-strong); }
.downtime-linkage-note { align-items: center; margin: 0; padding-block: 7px; }
.downtime-linkage-note strong { color: #74500d; }
.downtime-linkage-note strong::after { content: ' · '; }
.downtime-linkage-note br { display: none; }
.downtime-editor form { min-width: 0; }
.downtime-editor fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.downtime-form-section { margin: 0; padding-block: 8px; border-block-end: 1px solid var(--line); }
.downtime-form-section:first-child { padding-block-start: 0; }
.downtime-form-section h3 { margin: 0 0 6px; padding: 0; border: 0; font-size: 13px; }
.downtime-form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px 12px; }
.downtime-editor .field { gap: 4px; }
.downtime-editor .field input,
.downtime-editor .field select { min-height: 36px; padding-block: 6px; }
.downtime-editor .custom-select.is-field,
.downtime-editor .custom-select.is-field .select-trigger { min-height: 36px; }
.downtime-editor .custom-select.is-field .select-trigger { padding-block: 6px; }
.downtime-form-grid .field textarea { min-height: 54px; padding-block: 6px; line-height: 1.45; }
.downtime-form-grid .field.full { grid-column: span 2; }
.downtime-form-section:has(#field-reason) .field.full,
.downtime-form-section:has(#field-remark) .field.full { grid-column: 1 / -1; }
.downtime-review-section { border-block-end: 0; }
.downtime-auto-result { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(130px, .8fr) minmax(0, 2fr); align-items: center; gap: 12px; padding: 7px 10px; color: #315967; background: var(--accent-soft); border: 1px solid #bddce4; border-radius: 4px; }
.downtime-auto-result div { display: grid; gap: 1px; }
.downtime-auto-result span { font-size: 11px; }
.downtime-auto-result strong { color: #244953; font-size: 14px; }
.downtime-auto-result p { margin: 0; font-size: 12px; }

/* A production issue is normally updated in one pass. Keep the editable
   decisions on a single desktop view; the audit trail is available on demand. */
.drawer:has(.issue-editor) { width: min(1160px, calc(100vw - 32px)); max-height: min(90vh, 760px); }
.issue-editor { display: grid; gap: 10px; }
.issue-editor-flow { display: grid; grid-template-columns: auto minmax(28px, 1fr) auto minmax(28px, 1fr) auto; align-items: center; gap: 8px; padding: 7px 10px; color: var(--muted); background: var(--surface-muted); border: 1px solid var(--line); border-radius: 4px; font-size: 12px; }
.issue-editor-flow span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.issue-editor-flow b { display: grid; width: 20px; height: 20px; place-items: center; color: #587079; background: #e3ecee; border-radius: 50%; font-size: 11px; }
.issue-editor-flow .active { color: var(--ink); font-weight: 700; }
.issue-editor-flow .active b { color: #fff; background: var(--accent); }
.issue-editor-flow i { height: 1px; background: var(--line-strong); }
.issue-editor-section { margin: 0; padding-block-end: 10px; border-block-end: 1px solid var(--line); }
.issue-editor-section h3 { margin: 0 0 7px; color: #38535d; font-size: 13px; }
.issue-editor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; }
.issue-editor .field { gap: 4px; }
.issue-editor .field input,
.issue-editor .field select { min-height: 36px; padding-block: 6px; }
.issue-editor .custom-select.is-field,
.issue-editor .custom-select.is-field .select-trigger { min-height: 36px; }
.issue-editor .custom-select.is-field .select-trigger { padding-block: 6px; }
.issue-editor .field textarea { min-height: 54px; padding-block: 6px; line-height: 1.45; resize: vertical; }
.issue-editor-grid .field.full { grid-column: 1 / -1; }
.issue-context-grid .field.full textarea { min-height: 54px; }
.issue-handling-grid .field:has(textarea) { grid-column: span 2; }
.issue-history { color: var(--muted); border-block-end: 1px solid var(--line); }
.issue-history summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 1px 9px; cursor: pointer; color: #38535d; font-size: 12px; font-weight: 700; }
.issue-history summary span { color: var(--muted); font-size: 11px; font-weight: 400; }
.issue-history[open] summary { padding-block-end: 8px; }
.issue-history .list-rows { max-height: 180px; margin-block-end: 10px; overflow-y: auto; border: 1px solid var(--line); border-radius: 4px; }
.issue-history .list-row { min-height: 42px; padding: 7px 9px; }
.issue-editor-notice { margin: 0; }
.review-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 14px 0 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.review-facts > div { min-width: 0; padding: 10px 12px; border-inline-end: 1px solid var(--line); border-block-end: 1px solid var(--line); }
.review-facts > div:nth-child(2n) { border-inline-end: 0; }
.review-facts > div:nth-last-child(-n + 2) { border-block-end: 0; }
.review-facts dt { color: var(--muted); font-size: 12px; }
.review-facts dd { margin: 4px 0 0; color: var(--ink); font-size: 13px; font-weight: 650; line-height: 1.5; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice-button { display: flex; min-height: 44px; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; text-align: start; }
.choice-button:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }

/* Picking state editor: its workflow is a single, bounded choice. Keep its
   reference data terse so every possible target state is available at once. */
.picking-editor { display: grid; gap: 14px; }
.picking-editor form { display: grid; gap: 16px; }
.picking-notice { align-items: center; margin: 0; }
.picking-notice > div { display: flex; min-width: 0; align-items: baseline; gap: 8px; }
.picking-notice span { color: #315967; }
.picking-context,
.picking-state-section { margin: 0; }
.picking-context h3,
.picking-section-heading h3 { margin: 0; color: #38535d; font-size: 12px; }
.picking-context-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 8px 0 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.picking-context-grid > div { min-width: 0; padding: 7px 10px; background: var(--surface-muted); border-inline-end: 1px solid var(--line); }
.picking-context-grid > div:last-child { border-inline-end: 0; }
.picking-context-grid dt { margin: 0; color: var(--muted); font-size: 11px; }
.picking-context-grid dd { margin: 1px 0 0; overflow: hidden; color: var(--ink); font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.picking-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-block-end: 8px; }
.picking-section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.picking-choice-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.picking-choice-grid .choice-button { min-width: 0; min-height: 42px; justify-content: center; padding: 7px 8px; cursor: pointer; }
.picking-choice-grid .choice-button:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.picking-history { color: var(--muted); border-block-start: 1px solid var(--line); }
.picking-history summary { padding-block-start: 10px; cursor: pointer; font-size: 12px; }
.picking-history[open] summary { padding-block-end: 4px; }
.picking-history .list-rows { margin-block-start: 4px; }
.picking-history .list-row { min-height: 48px; padding: 7px 8px; }

/* Big-part arrival and delivery is a compact update workflow. Identity lives
   in the persistent dialog header; the body contains only editable values. */
.bigpart-editor { display: grid; gap: 16px; }
.bigpart-editor-section { margin: 0; }
.bigpart-editor-section h3 { margin: 0 0 8px; padding-block-end: 7px; color: #38535d; border-block-end: 1px solid var(--line); font-size: 12px; }
.bigpart-quantity-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bigpart-state-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bigpart-validation-note { align-items: center; margin: 0; }
.bigpart-validation-note > div { display: flex; min-width: 0; align-items: baseline; gap: 8px; }
.bigpart-validation-note span { color: #315967; }

.modal { width: min(760px, calc(100vw - 28px)); max-height: min(86vh, 760px); padding: 0; overflow: visible; color: var(--ink); background: #fff; border: 0; border-radius: 6px; box-shadow: 0 24px 70px rgba(10, 29, 37, .28); }
.modal.modal-wide { width: min(1180px, calc(100vw - 32px)); max-height: 92vh; }
.modal.modal-wide .modal-body { max-height: calc(92vh - 132px); }
.modal::backdrop { background: rgba(12, 31, 39, .52); }
.modal-head,
.modal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.modal-head { border-block-end: 1px solid var(--line); }
.modal-foot { justify-content: flex-end; border-block-start: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 19px; }
.modal-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.modal-body { max-height: calc(86vh - 132px); overflow-y: auto; padding: 16px; }
.plan-create-form { display: grid; gap: 2px; }
.plan-create-form .form-section { padding-block-end: 18px; border-block-end: 1px solid var(--line); }
.plan-create-form .form-section:last-child { border-block-end: 0; }
.section-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-block-end: 10px; }
.section-title-row h3 { margin: 0; padding: 0; border: 0; font-size: 15px; }
.section-title-row p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.step-badge,
.mapping-badge { flex: 0 0 auto; padding: 3px 8px; color: var(--accent-strong); background: var(--accent-soft); border-radius: 999px; font-size: 11px; font-weight: 750; }
.plan-order-wrap { max-height: none; }
/* The custom option list is positioned inside this scroll container. Let it
   escape only while open; otherwise `.data-table-wrap` keeps its normal
   horizontal-scroll behaviour. */
.plan-order-wrap:has(.custom-select.open) { overflow: visible; z-index: 260; }
.plan-order-feedback { margin-block: 10px; }
.plan-order-feedback[hidden] { display: none; }
.plan-order-table { min-width: 720px; }
.plan-order-table td { vertical-align: middle; }
.plan-order-table td:has(.custom-select.open) { position: relative; z-index: 250; }
.plan-order-table td:nth-child(1) { width: 180px; }
.plan-order-table td:nth-child(2) { width: 280px; }
.plan-order-table input,
.plan-order-table select,
.plan-create-matrix input { width: 100%; min-height: 36px; padding: 6px 8px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; }
.plan-create-matrix-wrap { max-height: 470px; }
.plan-create-matrix { min-width: 1060px; }
.plan-create-matrix th,
.plan-create-matrix td { vertical-align: middle; }
.plan-create-matrix th.sticky-1 { min-width: 116px; }
.plan-create-matrix td:nth-child(2) { min-width: 98px; }
.plan-create-matrix td:nth-child(3),
.plan-create-matrix td:nth-child(4) { min-width: 150px; }
.plan-create-matrix td:nth-child(n+5) { min-width: 145px; }
.plan-create-matrix td strong,
.plan-create-matrix th strong { display: block; }
.plan-create-matrix td small,
.plan-create-matrix th small { display: block; margin-block-start: 2px; color: var(--muted); font-size: 10px; font-weight: 500; }
.plan-date-input:focus { border-color: var(--accent); outline: 2px solid rgba(18, 151, 170, .16); outline-offset: 1px; }
.plan-date-input.actual-date-auto { color: var(--muted); background: var(--surface-muted); cursor: not-allowed; }
.preview-list { display: grid; margin-block: 12px; border: 1px solid var(--line); }
.preview-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 90px; gap: 10px; padding: 9px 10px; border-block-end: 1px solid var(--line); }
.preview-row:last-child { border-block-end: 0; }
.preview-row.header { color: var(--muted); background: var(--surface-muted); font-size: 12px; font-weight: 700; }
.daily-area-cell { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); min-width: 0; height: 472px; color: #243f49; font-size: 12px; line-height: 1.45; }
.daily-area-cell--prep { gap: 0; }
.daily-prep-row,
.daily-detail-row,
.daily-area-slot { display: grid; min-height: 0; overflow: hidden; align-content: start; gap: 4px; padding: 12px; }
.daily-prep-row + .daily-prep-row,
.daily-detail-row + .daily-detail-row,
.daily-area-slot { border-block-start: 1px solid #d5e0e3; }
.daily-prep-row { grid-template-columns: auto 1fr; column-gap: 8px; }
.daily-prep-row strong { color: #173c4b; }
.daily-prep-row small { grid-column: 1 / -1; color: #58717b; }
.daily-detail-row strong { color: #173c4b; font-size: 13px; }
.daily-area-cell--empty { align-items: start; color: var(--muted); }
.daily-area-cell--empty .muted-cell { padding: 12px; }
.daily-area-edit { justify-self: start; margin-block-start: 2px; color: var(--accent-strong); font-size: 11px; font-weight: 700; }
.daily-output-breakdown { color: #2c6573; font-weight: 600; }
.daily-matrix-shell { display: grid; gap: 8px; }
.daily-table-wrap { max-height: none; overflow-x: auto; overflow-y: visible; }
.daily-report-tabs { display: flex; align-items: end; gap: 2px; border-block-end: 1px solid var(--line); }
.daily-report-tabs button { min-height: 34px; padding: 0 14px; border: 1px solid transparent; border-block-end: 0; border-radius: 6px 6px 0 0; background: transparent; color: #58717b; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.daily-report-tabs button:hover { background: #edf5f7; color: #17566b; }
.daily-report-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.daily-report-tabs button.active { position: relative; margin-block-end: -1px; border-color: var(--line); background: #fff; color: #123f50; }
.daily-matrix-table { --daily-head-line-height: 38px; --daily-head-station-height: 54px; min-width: 0; table-layout: fixed; }
.daily-matrix-table thead th { background-clip: padding-box; text-align: center; vertical-align: middle; }
.daily-matrix-table thead tr:nth-child(1) > th { inset-block-start: 0; z-index: 7; height: var(--daily-head-line-height); }
.daily-matrix-table thead tr:nth-child(2) > th { inset-block-start: var(--daily-head-line-height); z-index: 6; height: var(--daily-head-station-height); }
.daily-matrix-table thead tr:nth-child(3) > th { inset-block-start: calc(var(--daily-head-line-height) + var(--daily-head-station-height)); z-index: 5; min-height: 42px; }
.daily-matrix-table thead tr:nth-child(1) > th.sticky-1 { inset-block-start: 0; z-index: 10; }
.daily-matrix-table thead tr:nth-child(2) > th.sticky-1 { inset-block-start: var(--daily-head-line-height); z-index: 10; }
.daily-matrix-table thead tr:nth-child(3) > th.sticky-1 { inset-block-start: calc(var(--daily-head-line-height) + var(--daily-head-station-height)); z-index: 10; }
.daily-matrix-table thead tr:nth-child(1) > th:not([rowspan]),
.daily-matrix-table thead tr:nth-child(2) > th,
.daily-matrix-table thead tr:nth-child(3) > th { box-shadow: 0 2px 0 rgba(132, 159, 169, .35); }
.daily-matrix-table thead th[scope="colgroup"] { background: #e8f0f3; }
.daily-matrix-table .daily-field-head { color: #254a58; background: #dce8eb; }
.daily-matrix-table .daily-field-subhead { color: #42636f; background: #edf3f4; }
.daily-matrix-table .daily-line-head--cabin { color: #174c58; background: #d7edf0 !important; }
.daily-matrix-table .daily-line-head--drive { color: #38562b; background: #e2efd7 !important; }
.daily-matrix-table .daily-line-spacer { background: #f4f8f9 !important; }
.daily-matrix-table .daily-line-head--cabin2 { color: #78510d; background: #fff0bc !important; }
.daily-matrix-table .daily-line-head--hub { color: #514173; background: #ece5f6 !important; }
.daily-matrix-table .daily-line-head--assembly { color: #744230; background: #f7e4d8 !important; }
.daily-matrix-table .daily-station-head--cabin,
.daily-matrix-table .daily-area-head--cabin { background: #edf7f8 !important; }
.daily-matrix-table .daily-station-head--drive,
.daily-matrix-table .daily-area-head--drive { background: #f0f6ea !important; }
.daily-matrix-table .daily-station-head--cabin2,
.daily-matrix-table .daily-area-head--cabin2 { background: #fff8df !important; }
.daily-matrix-table .daily-station-head--hub,
.daily-matrix-table .daily-area-head--hub { background: #f4f0fa !important; }
.daily-matrix-table .daily-station-head--assembly,
.daily-matrix-table .daily-area-head--assembly { background: #fcf0e9 !important; }

/* 正式作业日报：同一工作单元的两台套保持各自 184px 列宽，
   第二台套右侧加分隔线，避免横向扩展后工作单元边界不清晰。 */
.daily-operation-table .daily-matrix-value--pair-end {
  border-inline-end: 2px solid #b7c8cd;
}
.daily-matrix-table .matrix-station-staff { display: block; margin-block-start: 4px; color: #5c747f; font-size: 10px; font-weight: 500; }
.daily-matrix-table .daily-area-head,
.daily-matrix-table .matrix-area-detail,
.daily-matrix-table .matrix-area-detail strong {
  min-width: 0;
  max-inline-size: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.daily-matrix-table .matrix-area-detail { display: block; color: #3d5e6a; font-size: 11px; font-weight: 500; line-height: 1.45; text-align: start; }
.daily-matrix-table .matrix-area-detail strong { color: #244a58; font-weight: 750; }
.daily-matrix-table tbody th { background: #f4f8f9; color: #385564; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.daily-matrix-table .daily-matrix-value { min-height: 40px; padding: 8px; color: #26424d; text-align: center; vertical-align: middle; overflow-wrap: anywhere; }
.daily-action-cell { position: relative; display: grid; min-height: 34px; align-content: center; }
.daily-action-cell-content { min-width: 0; padding-inline-end: 52px; }
.daily-inline-actions { position: absolute; inset-block-start: 0; inset-inline-end: 0; display: flex; gap: 2px; }
.daily-inline-action { display: inline-flex; min-width: 42px; min-height: 28px; align-items: center; justify-content: center; gap: 2px; padding: 2px 5px; border: 1px solid #a9c2c9; border-radius: var(--radius-sm); background: #fff; color: var(--accent-strong); font: inherit; font-size: 10px; font-weight: 750; line-height: 1; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .12s ease, border-color .12s ease, background .12s ease; }
.daily-inline-action > span[aria-hidden] { font-size: 13px; line-height: 1; }
.daily-matrix-table td:hover > .daily-action-cell .daily-inline-action,
.daily-inline-action:focus-visible { opacity: 1; pointer-events: auto; }
.daily-inline-action:hover { border-color: var(--accent); background: var(--accent-soft); }
.daily-inline-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.daily-entry-focus-target { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); background: var(--accent-soft); }
.daily-matrix-table .daily-matrix-work { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; text-align: start; line-height: 1.45; }
.daily-matrix-table .daily-matrix-issue { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color:#825714; text-align:start; line-height:1.45; }
.daily-matrix-table .daily-progress { width: 100%; }
.daily-matrix-table .daily-progress .progress { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.daily-matrix-table .daily-progress .progress b { color: #0b6d88; font-weight: 750; }
.daily-progress-button { display:block; width:100%; padding:2px; border:0; border-radius:var(--radius-sm); background:transparent; color:inherit; cursor:pointer; text-align:inherit; }
.daily-progress-button:hover { background:#edf7f8; }
.daily-progress-button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.daily-progress-button .progress { width:100%; min-width:0; grid-template-columns:minmax(0,1fr) auto; gap:7px; }
.daily-progress-button .progress b { color:#0b6d88; font-weight:750; }
.progress-summary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-block-end:12px; }
.progress-summary-card { display:grid; gap:8px; padding:12px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface-muted); }
.progress-summary-card.is-focused { border-color:var(--accent); box-shadow:inset 3px 0 0 var(--accent); background:var(--accent-soft); }
.progress-summary-card > span { color:var(--muted); font-size:12px; font-weight:700; }
.progress-summary-card small { color:var(--muted); font-size:11px; }
.progress-summary-card .progress { width:100%; min-width:0; }
.progress-readonly-row { cursor:default; }
.progress-readonly-row:hover { background:transparent; }
.progress-task-metrics { display:grid; justify-items:end; gap:5px; color:var(--muted); font-size:12px; }
.progress-task-metrics > strong { color:var(--text); white-space:nowrap; }
.daily-matrix-table .daily-matrix-efficiency { padding: 8px 10px; color: #345563; font-size: 11px; line-height: 1.5; vertical-align: top; }
.daily-matrix-table .daily-matrix-efficiency strong { color: #173c4b; }
.daily-prep-table .daily-special-value { padding: 0; text-align: start; vertical-align: top; }
.daily-special-entry { display: grid; align-content: center; gap: 4px; min-height: 48px; padding: 7px 9px; color: #26424d; font-size: 12px; line-height: 1.4; }
.daily-special-entry + .daily-special-entry { border-block-start: 1px solid var(--line); }
.daily-special-entry--primary { background: #f2fafb; box-shadow: inset 3px 0 0 #79bdca; }
.daily-special-entry--secondary { background: #fff9ee; box-shadow: inset 3px 0 0 #e5ae55; }
.daily-special-entry strong { color: #173c4b; font-size: 13px; }
.daily-special-entry .daily-progress { display: block; width: 100%; }
.daily-special-entry .text-button { justify-self: start; color: var(--accent-strong); font-size: 11px; font-weight: 700; }
.daily-special-entry--empty { color: var(--muted); text-align: center; }

@media (hover: none), (pointer: coarse) {
  .daily-action-cell-content { padding-inline-end: 48px; }
  .daily-inline-actions { inset-block-start: 50%; transform: translateY(-50%); }
  .daily-inline-action { min-width: 44px; width: 44px; min-height: 44px; height: 44px; padding: 8px; border: 0; background: transparent; opacity: 1; pointer-events: auto; }
  .daily-inline-action > span[aria-hidden] { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #a9c2c9; border-radius: var(--radius-sm); background: #fff; }
  .daily-inline-action-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
}
.daily-kpi-strip { display:grid; grid-template-columns:repeat(6,minmax(130px,1fr)); border:1px solid var(--line); border-block-end:0; background:#fff; overflow:auto; }
.daily-kpi-strip span { min-width:130px; padding:10px 12px; color:var(--muted); border-inline-end:1px solid var(--line); font-size:12px; }
.daily-kpi-strip strong { display:block; margin-block-start:3px; color:var(--text); font-size:15px; }
.people-check-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:8px; }
.people-check-grid label { display:flex; align-items:center; gap:9px; min-height:48px; padding:8px 10px; border:1px solid var(--line); border-radius:var(--radius-sm); background:#fff; cursor:pointer; }
.people-check-grid label[hidden] { display:none; }
.people-check-grid label:has(input:checked) { border-color:var(--accent); background:var(--accent-soft); }
.people-check-grid input { width:18px; height:18px; accent-color:var(--accent-strong); }
.people-check-grid span { display:grid; gap:2px; font-weight:700; }
.people-check-grid small { color:var(--muted); font-weight:400; }
.attendance-people-picker { display:grid; gap:10px; }
.attendance-people-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--ink); }
.attendance-people-heading [data-attendance-count] { color:var(--accent-strong); font-weight:700; white-space:nowrap; }
.attendance-support { padding:10px 12px; border:1px solid var(--line); border-radius:var(--radius-sm); background:#f8fbfc; }
.attendance-support summary { color:var(--accent-strong); font-weight:700; cursor:pointer; }
.attendance-support summary:focus-visible { outline:3px solid rgba(0,128,172,.34); outline-offset:3px; }
.attendance-search-label { display:grid; gap:5px; max-width:360px; margin:12px 0; color:var(--muted); font-size:12px; }
.attendance-search-label input { min-height:44px; padding:8px 11px; border:1px solid var(--line); border-radius:var(--radius-sm); background:#fff; color:var(--ink); font:inherit; }
.attendance-search-label input:focus-visible { outline:3px solid rgba(0,128,172,.34); outline-offset:1px; }
.daily-entry-scope .section-title-row { align-items:flex-start; }
.daily-entry-station { flex:0 0 auto; padding:6px 9px; color:#315866; background:var(--accent-soft); border-radius:999px; font-size:12px; font-weight:700; }
.daily-entry-scope-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); align-items:start; gap:12px; }
.daily-entry-resource-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); align-items:start; gap:12px; }
.daily-entry-scope-grid .field > label,
.daily-entry-resource-grid .field > label { min-height:20px; }
.daily-entry-resource-grid .field:first-child,
.daily-entry-resource-grid .field:nth-child(2),
.daily-entry-resource-grid .field:nth-last-child(-n + 2) { grid-column:span 2; }
.daily-entry-task.ratio-task { grid-template-columns:34px minmax(0,1fr) minmax(270px,auto); gap:12px; cursor:default; }
.daily-entry-task.ratio-task.is-complete { background:#f2faf6; }
.daily-entry-task.read-only-task { grid-template-columns:34px minmax(190px,1fr) minmax(220px,auto) auto; gap:12px; cursor:default; }
.daily-entry-task.read-only-task:hover { background:#fff; }
.daily-task-progress { display:grid; grid-template-columns:auto auto auto; align-items:center; justify-content:end; gap:0 7px; color:var(--muted); font-size:13px; white-space:nowrap; }
.daily-task-progress > strong { color:var(--ink); }
.daily-task-progress > i { color:var(--muted); font-style:normal; }
.daily-task-progress > small { grid-column:1 / -1; justify-self:end; margin-top:3px; color:var(--accent-strong); font-size:12px; }
.daily-work-readonly { display:grid; gap:5px; margin:12px 0; padding:13px 14px; border:1px solid var(--line); border-inline-start:3px solid var(--accent); border-radius:4px; background:var(--surface-muted); }
.daily-work-readonly strong { color:var(--ink); }
.daily-work-readonly small { color:var(--muted); }
.daily-actual-work-list { display:grid; gap:10px; margin-top:14px; }
.daily-actual-work-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,1fr); gap:12px; padding:12px; border:1px solid var(--line); border-radius:5px; background:var(--surface); }
.daily-actual-work-choice { display:flex; align-items:flex-start; gap:10px; cursor:pointer; }
.daily-actual-work-choice input { width:18px; height:18px; margin-top:3px; accent-color:var(--accent-strong); }
.daily-actual-work-choice span { min-width:0; }
.daily-actual-work-choice strong,.daily-actual-work-choice small { display:block; }
.daily-actual-work-choice small { margin-top:4px; color:var(--muted); line-height:1.4; }
.daily-actual-work-detail { display:grid; gap:5px; color:var(--muted); font-size:12px; }
.daily-actual-work-detail textarea { width:100%; min-height:58px; padding:8px 10px; color:var(--ink); border:1px solid var(--line); border-radius:4px; resize:vertical; font:inherit; font-size:13px; }
.daily-actual-work-row:has(input:checked) { border-color:var(--accent); background:var(--surface-muted); }
.daily-actual-work-row:focus-within { outline:2px solid var(--accent); outline-offset:1px; }
@media (max-width: 680px) { .daily-actual-work-row { grid-template-columns:1fr; } }
.daily-detail-options,.route-task-details [data-route-detail-options] { display:grid; gap:7px; margin-top:6px; }
.daily-detail-choice,.route-detail-choice { display:flex; align-items:flex-start; gap:8px; color:var(--ink); font-size:13px; line-height:1.4; cursor:pointer; }
.daily-detail-choice input,.route-detail-choice input { width:17px; height:17px; margin-top:1px; flex:none; accent-color:var(--accent-strong); }
.operation-detail-list,.route-task-list { display:grid; gap:10px; margin-top:12px; }
.operation-detail-row,.route-task-row { padding:12px; border:1px solid var(--line); border-radius:5px; background:var(--surface); }
.operation-detail-row { display:grid; grid-template-columns:minmax(0,1fr) 130px auto; align-items:end; gap:10px; }
.operation-detail-row label,.route-task-main label { display:grid; gap:5px; color:var(--muted); font-size:12px; }
.operation-detail-row input:not([type="hidden"]),.operation-detail-row select,.route-task-main input,.route-task-main select { width:100%; min-height:39px; padding:7px 9px; border:1px solid var(--line); border-radius:4px; background:#fff; color:var(--ink); font:inherit; font-size:13px; }
.operation-detail-actions,.route-task-actions { display:flex; gap:5px; }
.route-task-main { display:grid; grid-template-columns:minmax(0,1fr) 120px auto; align-items:end; gap:10px; }
.route-task-details { margin-top:12px; padding-top:10px; border-top:1px solid var(--line); }
.route-task-details > strong { font-size:12px; }
@media (max-width:680px) { .operation-detail-row,.route-task-main { grid-template-columns:1fr; } }
.daily-task-sequence { display:grid; width:28px; height:28px; place-items:center; color:#35616d; background:#edf4f5; border-radius:50%; font-size:13px; font-weight:800; }
.daily-entry-task.is-complete .daily-task-sequence { color:#17634d; background:#dcefe6; }
.daily-task-controls { display:grid; grid-template-columns:auto auto; align-items:end; justify-content:end; gap:5px 8px; }
.daily-ratio-field { display:grid; gap:4px; color:var(--muted); font-size:11px; font-weight:700; }
.daily-ratio-field > span:first-child { padding-inline-start:1px; }
.ratio-input { display:flex; align-items:center; gap:5px; }
.ratio-input input { position:static !important; width:84px !important; height:40px !important; opacity:1 !important; pointer-events:auto !important; padding:7px 9px; border:1px solid var(--line-strong); border-radius:var(--radius-sm); text-align:right; font:inherit; }
.ratio-input input:focus { outline:2px solid var(--accent); outline-offset:1px; border-color:var(--accent); }
.daily-complete-button { min-height:40px; white-space:nowrap; }
.daily-complete-button:disabled { color:#4b7160; background:#e5f2eb; border-color:#b6d8c7; opacity:1; }
.daily-task-state { grid-column:1 / -1; color:var(--muted); font-size:11px; text-align:end; }
.daily-entry-task.is-complete .daily-task-state { color:#207354; font-weight:700; }
.daily-entry-list { display: grid; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.daily-entry-task { display: grid; min-height: 62px; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border-block-end: 1px solid var(--line); cursor: pointer; }
.daily-entry-task:last-child { border-block-end: 0; }
.daily-entry-task:hover { background: var(--surface-muted); }
.daily-entry-task:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.daily-entry-task > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.daily-entry-check { display: grid; width: 22px; height: 22px; place-items: center; color: #fff; background: #fff; border: 1px solid var(--line-strong); border-radius: 3px; }
.daily-entry-task > input:checked + .daily-entry-check { background: var(--accent-strong); border-color: var(--accent-strong); }
.daily-entry-task > input:checked + .daily-entry-check::after { content: '✓'; font-size: 14px; font-weight: 800; }
.daily-entry-copy { min-width: 0; }
.daily-entry-copy strong,
.daily-entry-copy small { display: block; }
.daily-entry-copy small { margin-block-start: 3px; color: var(--muted); font-size: 11px; }

.mobile-bottom-nav { display: none; }
.mobile-workbench { max-width: 660px; margin: 0 auto; }
.mobile-daily-panel { margin-bottom: 16px; }
.mobile-daily-list { display: grid; gap: 12px; }
.mobile-daily-list .task-card { margin: 0; }
.mobile-daily-list .task-card h3 { margin: 0 0 4px; font-size: 17px; }
.mobile-daily-team-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mobile-view-toggle { width: 100%; margin-block-end: 12px; overflow-x: auto; }
.mobile-view-toggle button { min-width: max-content; flex: 1; }
.profile-summary { display: flex; align-items: center; gap: 12px; }
.profile-summary h2,
.profile-summary p { margin: 0; }
.profile-summary p { margin-block-start: 3px; color: var(--muted); }
.avatar.large { width: 46px; height: 46px; font-size: 18px; }
.mobile-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin-block-end: 12px; border: 1px solid var(--line); background: #fff; }
.mobile-summary div { padding: 11px; text-align: center; border-inline-end: 1px solid var(--line); }
.mobile-summary div:last-child { border-inline-end: 0; }
.mobile-summary strong { display: block; font-size: 22px; }
.mobile-summary span { color: var(--muted); font-size: 11px; }
.task-card { margin-block-end: 10px; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.task-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.task-card h2 { margin: 0; font-size: 16px; }
.task-card p { margin: 4px 0 0; color: var(--muted); }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-block: 10px; color: var(--muted); font-size: 12px; }
.task-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.task-actions .button { min-height: 44px; }

.toast {
  position: fixed;
  inset-inline-end: 20px;
  inset-block-end: 20px;
  z-index: 300;
  max-width: min(420px, calc(100vw - 32px));
  padding: 11px 13px;
  color: #fff;
  background: var(--nav);
  border: 1px solid #315363;
  border-radius: 4px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}

.toast.show { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.toast.error { background: #6d2522; border-color: #a95a56; }
.modal > .toast {
  position: absolute;
  inset-inline-end: 20px;
  inset-block-end: 76px;
  z-index: 1000;
}

.tag-cluster { display: flex; flex-wrap: wrap; gap: 4px; min-width: 240px; }
.tag-cluster span { padding: 3px 7px; color: var(--accent-strong); background: var(--accent-soft); border: 1px solid #b9d9df; border-radius: 3px; font-size: 12px; white-space: nowrap; }
.check-fieldset { margin: 18px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 4px; }
.check-fieldset legend { padding: 0 7px; color: var(--ink); font-weight: 700; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.check-grid label { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 10px; background: var(--surface-muted); border: 1px solid transparent; border-radius: 3px; cursor: pointer; }
.check-grid label:has(input:checked) { color: var(--accent-strong); background: var(--accent-soft); border-color: #acd4dc; }
.check-grid input { width: 17px; height: 17px; accent-color: var(--accent); }
.daily-operation-search-row { display: flex; align-items: center; gap: 12px; margin-block-end: 12px; }
.daily-operation-search { flex: 1; min-width: 0; }
.daily-operation-search-row .muted-cell { flex: 0 0 auto; }
.daily-operation-picker [data-daily-operation-choice][hidden] { display: none; }
.daily-operation-empty { margin: 12px 0 0; }
.daily-work-selection { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; min-height:82px; margin-block-start:14px; padding:12px; border:1px solid var(--line); border-radius:4px; background:var(--surface-muted); }
.daily-work-summary { min-width:0; }
.daily-work-tags { display:flex; flex-wrap:wrap; gap:8px; }
.daily-work-tags span { display:inline-flex; align-items:baseline; gap:6px; min-width:0; max-width:100%; padding:7px 9px; color:#235766; background:#fff; border:1px solid #b9d9df; border-radius:3px; }
.daily-work-tags strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.daily-work-tags small { flex:0 0 auto; color:var(--muted); font-size:11px; }
.daily-work-empty { margin:0; color:var(--muted); }
.daily-operation-modal .check-grid label { align-items:flex-start; }
.daily-operation-modal .check-grid label > span { display:grid; gap:2px; min-width:0; }
.daily-operation-modal .check-grid label small { color:var(--accent-strong); font-size:11px; font-weight:700; }
.content-copy { max-width: 80ch; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.media-summary { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-block-start: 16px; color: var(--subtle); font-size: 12px; }

.portal-shell { min-height: calc(100vh - var(--topbar-height) - 40px); margin: -20px -24px -28px; color: #17323d; background: #f4f7f6; }
.portal-nav { display: flex; align-items: center; gap: 28px; min-height: 66px; padding: 0 clamp(22px,5vw,72px); background: #fff; border-block-end: 1px solid #dce5e7; }
.portal-nav > strong { margin-inline-end: auto; color: #123846; font-size: 18px; letter-spacing: .02em; }
.portal-nav nav { display: flex; gap: 22px; }
.portal-nav a { color: #49636d; text-decoration: none; }
.portal-nav a:first-child { color: #0c798b; font-weight: 700; }
.portal-hero { min-height: 330px; padding: 74px clamp(24px,8vw,110px) 48px; color: #fff; background-color: #124859; background-image: radial-gradient(circle at 78% 24%, rgba(97,190,191,.26), transparent 34%), linear-gradient(110deg,#123846 0%,#17586a 64%,#217d83 100%); }
.portal-hero h1 { max-width: 760px; margin: 14px 0 12px; font-size: clamp(34px,5vw,58px); line-height: 1.12; letter-spacing: -.03em; }
.portal-hero p { max-width: 680px; color: #d9eaec; font-size: 17px; line-height: 1.7; }
.eyebrow { color: #42b7bc; font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.portal-hero .eyebrow { color: #9ddfe0; }
.portal-dots { display: flex; gap: 8px; margin-block-start: 38px; }
.portal-dots i { width: 24px; height: 3px; background: rgba(255,255,255,.35); }
.portal-dots i.active { width: 46px; background: #fff; }
.portal-section { padding: 54px clamp(22px,6vw,84px) 70px; }
.portal-section-head { display: grid; grid-template-columns: minmax(220px,.7fr) minmax(280px,1fr); align-items: end; gap: 40px; margin-block-end: 26px; }
.portal-section-head h2 { margin: 6px 0 0; font-size: 32px; }
.portal-section-head p { margin: 0; color: #657b83; line-height: 1.7; }
.portal-news-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.portal-news-card { width: 100%; max-width: 100%; min-width: 0; min-height: 230px; overflow: hidden; padding: 22px; text-align: start; color: inherit; background: #fff; border: 1px solid #dce5e7; border-radius: 4px; cursor: pointer; transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.portal-news-card:hover { transform: translateY(-2px); border-color: #8abfc6; box-shadow: 0 8px 20px rgba(19,58,70,.08); }
.portal-news-card.featured { color: #fff; background: #183e4b; border-color: #183e4b; }
.portal-news-card > span { color: #16899a; font-size: 12px; font-weight: 750; }
.portal-news-card.featured > span { color: #8ed6d9; }
.portal-news-card h3 { margin: 18px 0 10px; overflow-wrap: anywhere; word-break: break-word; white-space: normal; font-size: 20px; line-height: 1.35; }
.portal-news-card p,
.portal-section-head p { overflow-wrap: anywhere; word-break: break-word; }
.portal-news-card p { color: #687e86; line-height: 1.65; }
.portal-news-card.featured p { color: #cfe0e3; }
.portal-news-card time { display: block; margin-block-start: 22px; color: #789098; font-size: 12px; }
.portal-article { width: min(860px,calc(100% - 40px)); margin: 28px auto 70px; padding: clamp(28px,5vw,64px); background: #fff; border: 1px solid #dce5e7; }
.portal-shell > .button { margin: 24px 0 0 clamp(20px,5vw,70px); }
.portal-article h1 { margin: 14px 0; font-size: clamp(30px,4vw,46px); line-height: 1.2; }
.article-meta { color: #789098; }
.article-lead { margin: 28px 0; padding-inline-start: 18px; color: #36535e; border-inline-start: 3px solid #35a9b0; font-size: 18px; line-height: 1.7; }
.article-body { color: #304b55; font-size: 16px; line-height: 2; }

body.site-mode .sidebar,
body.site-mode .topbar,
body.site-mode .mobile-bottom-nav { display: none; }
body.site-mode .main-column,
body.site-mode.sidebar-collapsed .main-column { margin-inline-start: 0; }
body.site-mode #app { min-height: 100vh; padding: 0; }
body.site-mode .portal-shell { min-height: 100vh; margin: 0; }

/* Customer-review layouts: the same live ledgers, arranged as three MOM-oriented views. */
.showcase-tabs { display: flex; width: max-content; max-width: 100%; gap: 2px; margin: 0 0 10px; padding: 3px; overflow-x: auto; background: #dfeaec; border: 1px solid #c5d4d7; border-radius: 5px; }
.showcase-tabs button { display: grid; min-width: 128px; gap: 1px; padding: 7px 12px; color: #526b73; background: transparent; border: 0; border-radius: 3px; text-align: left; white-space: nowrap; }
.showcase-tabs button:hover { color: #0b647d; background: #f4f9fa; }
.showcase-tabs button.active { color: #fff; background: #135f72; box-shadow: 0 1px 2px rgba(10,46,56,.16); }
.showcase-tabs strong { font-size: 12px; }
.showcase-tabs small { font-size: 10px; opacity: .8; }
.board-kpis { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); background: #fff; border-block: 1px solid #d7e2e4; }
.board-kpis button { min-width: 0; padding: 11px 14px; text-align: left; color: var(--ink); background: #fff; border: 0; border-inline-end: 1px solid #d7e2e4; }
.board-kpis button:last-child { border-inline-end: 0; }
.board-kpis button:hover { background: #f4fafb; }
.board-kpis span,.board-kpis small { display: block; color: var(--muted); font-size: 11px; }
.board-kpis strong { display: block; margin: 3px 0; color: #123f4d; font-size: 25px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.board-kpis strong.good { color: var(--green); }.board-kpis strong.warn { color: var(--amber); }.board-kpis strong.alert { color: var(--red); }
.board-kpis em { margin-inline-start: 3px; font-size: 12px; font-style: normal; font-weight: 600; letter-spacing: 0; }
.workbench-brief,.mom-board { overflow: hidden; background: #f5f8f8; border: 1px solid #c3d3d7; border-radius: 6px; box-shadow: 0 10px 28px rgba(16,47,61,.07); }
.brief-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; color: #f4fafb; background: linear-gradient(105deg,#123c49,#176479); }
.brief-head > div > span,.mom-hero > div > span,.attention-hero > div > span { color: #8dd8d8; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.brief-head h2,.mom-hero h2,.attention-hero h2 { margin: 3px 0; font-size: 22px; line-height: 1.2; }.brief-head p,.mom-hero p,.attention-hero p { margin: 0; color: #cae1e4; font-size: 12px; }
.brief-progress { display: grid; min-width: 185px; grid-template-columns: 1fr auto; gap: 1px 10px; }.brief-progress small { color: #b7d5d9; }.brief-progress strong { font-size: 26px; font-variant-numeric: tabular-nums; }.brief-progress .text-button { grid-column: 1 / -1; justify-self: start; min-height: auto; padding: 1px 0; color: #d9f2f2; }
.daily-board-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(270px,.7fr); gap: 14px; padding: 14px; }
.daily-focus-card,.daily-entry-card,.team-pulse,.control-priorities,.control-units,.control-links,.delivery-units,.delivery-side section,.attention-flow > section,.attention-flow > aside { background: #fff; border: 1px solid #d5e0e2; }
.section-mini-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-block-end: 1px solid #dce6e8; }.section-mini-head h2 { margin: 0; font-size: 14px; }.section-mini-head p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.focus-unit-list { display: grid; }.focus-unit-list > button { display: grid; grid-template-columns: 8px minmax(0,1fr) 48px minmax(80px,.8fr) auto; align-items: center; gap: 9px; min-height: 55px; padding: 8px 12px; text-align: left; background: #fff; border: 0; border-block-end: 1px solid #e3eaeb; }.focus-unit-list > button:last-child { border: 0; }.focus-unit-list > button:hover,.delivery-units > button:hover,.attention-units > button:hover { background: #f1f9f9; }.focus-unit-list span:nth-child(2) { display: grid; min-width: 0; }.focus-unit-list strong,.focus-unit-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.focus-unit-list small { color: var(--muted); font-size: 11px; }.unit-dot { width: 8px; height: 8px; background: #1a9d9c; border-radius: 50%; box-shadow: 0 0 0 3px #d8f0ef; }.focus-unit-list b { font-size: 12px; }.focus-unit-list i,.delivery-progress i,.mom-hero-progress i,.delivery-side i { display: block; height: 7px; overflow: hidden; background: #dce9eb; border-radius: 99px; }.focus-unit-list i em,.delivery-progress i em,.mom-hero-progress i em,.delivery-side i em { display: block; height: 100%; background: #138898; border-radius: inherit; }.focus-arrow { color: var(--accent-strong); font-size: 11px; font-weight: 700; }
.daily-entry-card { display: grid; align-content: start; }.entry-link { display: grid; gap: 2px; padding: 12px; text-align: left; background: #fff; border: 0; border-block-end: 1px solid #dce6e8; }.entry-link:last-child { border: 0; }.entry-link:hover { background: #f2f9fa; }.entry-link.primary { background: #eaf6f6; }.entry-link span,.entry-link small { color: var(--muted); font-size: 10px; }.entry-link strong { font-size: 13px; }
.team-pulse { margin: 0 14px 14px; }.team-pulse > div:last-child { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); }.team-pulse button { display: grid; grid-template-columns: 1fr auto; gap: 5px 8px; padding: 9px 10px; text-align: left; background: #fff; border: 0; border-inline-end: 1px solid #e0e8e9; }.team-pulse button:hover { background: #f2f9fa; }.team-pulse button > span { grid-column: 1 / -1; height: 5px; overflow: hidden; background: #dce9eb; border-radius: 99px; }.team-pulse button > span i { display: block; height: 100%; background: #188b99; }.team-pulse small { color: var(--muted); font-size: 10px; }
.control-layout { display: grid; grid-template-columns: minmax(330px,1.25fr) minmax(290px,1fr) 180px; gap: 14px; padding: 14px; }.control-priorities > div:last-child { display: grid; }.control-priorities > div:last-child > button { display: grid; grid-template-columns: 24px minmax(0,1fr) auto auto; align-items: center; gap: 9px; min-height: 60px; padding: 8px 11px; text-align: left; background: #fff; border: 0; border-block-end: 1px solid #e3eaeb; }.control-priorities b { color: #af4a3f; font-size: 11px; }.control-priorities button span { display: grid; min-width: 0; }.control-priorities button strong,.control-priorities button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.control-priorities button small { color: var(--muted); font-size: 10px; }.control-priorities button em,.control-units > button > em { color: var(--accent-strong); font-size: 11px; font-style: normal; }.control-units { display: grid; align-content: start; }.control-units > button { display: grid; grid-template-columns: minmax(0,1fr) minmax(110px,.85fr) auto; align-items: center; gap: 8px; padding: 9px 11px; text-align: left; background: #fff; border: 0; border-block-end: 1px solid #e3eaeb; }.control-units > button > span { display: grid; }.control-units small { color: var(--muted); font-size: 10px; }.control-units .progress { min-width: 0; }.control-units .progress b { display: none; }.control-links { display: grid; align-content: start; }.control-links h2 { margin: 0; padding: 11px; border-block-end: 1px solid #dce6e8; font-size: 14px; }.control-links button { display: flex; justify-content: space-between; padding: 11px; color: #2d535d; text-align: left; background: #fff; border: 0; border-block-end: 1px solid #e3eaeb; }.control-links button:hover { color: #0b6c80; background: #f2f9fa; }
.mom-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 18px; color: #fff; background: #123e4b; }.mom-hero-progress { display: grid; min-width: 260px; grid-template-columns: 1fr auto; gap: 3px 12px; }.mom-hero-progress span { color: #b7d5d9; font-size: 11px; }.mom-hero-progress strong { font-size: 27px; line-height: 1; }.mom-hero-progress i { grid-column: 1 / -1; }.mom-hero-progress button { justify-self: start; padding: 2px 0; color: #d2eeee; background: transparent; border: 0; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.delivery-board-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.8fr); gap: 14px; padding: 14px; }.delivery-unit-head,.delivery-units > button { display: grid; grid-template-columns: minmax(130px,.85fr) minmax(145px,1.05fr) minmax(150px,.85fr) 92px 44px; align-items: center; gap: 9px; }.delivery-unit-head { padding: 8px 12px; color: var(--muted); background: #f4f8f8; border-block-end: 1px solid #dce6e8; font-size: 10px; }.delivery-units > button { width: 100%; min-height: 55px; padding: 7px 12px; text-align: left; background: #fff; border: 0; border-block-end: 1px solid #e3eaeb; }.delivery-units > button > span:first-child { display: flex; align-items: center; gap: 5px; }.station-state { color: #266977; font-size: 11px; }.station-state.next { color: #7a6b43; }.delivery-progress { display: flex; align-items: center; gap: 7px; }.delivery-progress i { flex: 1; }.delivery-progress b { font-size: 11px; }.delivery-units small { display: block; margin-top: 2px; color: var(--amber); font-size: 9px; }.delivery-units > button > em { color: var(--accent-strong); font-size: 11px; font-style: normal; }.delivery-side { display: grid; align-content: start; gap: 14px; }.delivery-side section > button:not(.side-footer) { display: grid; width: 100%; grid-template-columns: minmax(86px,.75fr) minmax(60px,1fr) 48px; align-items: center; gap: 7px; padding: 7px 10px; text-align: left; background: #fff; border: 0; border-block-end: 1px solid #e3eaeb; }.delivery-side section > button:hover { background: #f2f9fa; }.delivery-side section button span { display: grid; }.delivery-side section small { color: var(--muted); font-size: 9px; }.delivery-side b { font-size: 11px; text-align: right; }.delivery-side b.good { color: var(--green); }.delivery-side b.warn { color: var(--amber); }.side-footer { width: 100%; padding: 9px 10px; color: var(--accent-strong); text-align: left; background: #f5fbfb; border: 0; font-size: 11px; }.delivery-logistics > div:last-child { display: grid; grid-template-columns: repeat(5,1fr); }.delivery-logistics > div:last-child button { display: grid; grid-template-columns: 5px 1fr; gap: 3px 5px; padding: 8px 5px; text-align: left; background: #fff; border: 0; border-inline-end: 1px solid #e3eaeb; }.delivery-logistics i { grid-row: 1 / 3; min-height: 25px; border-radius: 99px; }.delivery-logistics .tone-red { background: var(--red); }.delivery-logistics .tone-amber { background: var(--amber); }.delivery-logistics .tone-blue { background: var(--blue); }.delivery-logistics .tone-purple { background: var(--purple); }.delivery-logistics .tone-green { background: var(--green); }.delivery-logistics span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.delivery-logistics strong { font-size: 14px; }
.attention-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 18px; color: #fff; background: linear-gradient(100deg,#183e4b,#205b64); }.attention-hero > div:last-child { display: flex; align-items: center; gap: 9px; }.attention-hero > div:last-child strong { color: #ffdbb4; font-size: 40px; line-height: 1; }.attention-hero > div:last-child span { color: #d5e8ea; font-size: 11px; }.attention-summary { display: grid; grid-template-columns: repeat(4,1fr); background: #fff; border-block-end: 1px solid #d7e2e4; }.attention-summary button { padding: 11px 14px; text-align: left; background: #fff; border: 0; border-inline-end: 1px solid #d7e2e4; }.attention-summary button:hover { background: #f4fafb; }.attention-summary span,.attention-summary small { display: block; color: var(--muted); font-size: 10px; }.attention-summary strong { display: block; margin: 2px 0; font-size: 23px; }.attention-summary em { margin-left: 3px; font-size: 11px; font-style: normal; }.attention-summary strong.good { color: var(--green); }.attention-summary strong.warn { color: var(--amber); }.attention-summary strong.alert { color: var(--red); }.attention-flow { display: grid; grid-template-columns: 1.1fr 1.1fr .7fr; gap: 14px; padding: 14px; }.attention-flow header { display: flex; gap: 9px; padding: 11px; border-block-end: 1px solid #dce6e8; }.attention-flow header > span { display: grid; width: 24px; height: 24px; place-items: center; color: #fff; background: #167486; border-radius: 50%; font-size: 10px; font-weight: 800; }.attention-flow h2 { margin: 0; font-size: 14px; }.attention-flow header p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }.attention-list,.attention-units { display: grid; }.attention-list > button { display: grid; grid-template-columns: 6px minmax(0,1fr) auto auto; align-items: center; gap: 7px; min-height: 55px; padding: 7px 10px; text-align: left; background: #fff; border: 0; border-block-end: 1px solid #e3eaeb; }.attention-list > button > i { width: 5px; height: 29px; background: #d06456; border-radius: 99px; }.attention-list > button span { display: grid; min-width: 0; }.attention-list strong,.attention-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.attention-list small { color: var(--muted); font-size: 10px; }.attention-list em,.attention-units em { color: var(--accent-strong); font-size: 10px; font-style: normal; }.attention-units > button { display: grid; grid-template-columns: minmax(0,1fr) minmax(100px,.85fr) auto; gap: 7px; align-items: center; padding: 9px 10px; text-align: left; background: #fff; border: 0; border-block-end: 1px solid #e3eaeb; }.attention-units > button span { display: grid; }.attention-units small { color: var(--muted); font-size: 10px; }.attention-units .progress b { display: none; }.attention-flow > aside { display: grid; align-content: start; }.attention-flow > aside button { display: flex; justify-content: space-between; padding: 10px; color: #315963; text-align: left; background: #fff; border: 0; border-block-end: 1px solid #e3eaeb; }.attention-flow > aside button:hover { color: #0b687d; background: #f2f9fa; }.empty-copy { margin: 18px; color: var(--muted); font-size: 12px; }

/* 工作台：以台账入口和待办处理为先；总体经营态势由汇总看板承载。 */
.workbench-ledger-center { overflow: hidden; margin-block-end: 14px; background: var(--surface); border: 1px solid #b9ced3; border-radius: 5px; }
.workbench-center-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; background: linear-gradient(100deg, #eff8f8, #f8fbfb); border-block-end: 1px solid #d4e3e5; }
.workbench-eyebrow { display: block; color: #39707d; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.workbench-center-head h2 { margin: 2px 0; color: #173f4b; font-size: 20px; line-height: 1.2; }
.workbench-center-head p { margin: 0; color: var(--muted); font-size: 12px; }
.workbench-quick-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.workbench-quick-actions > span { margin-inline-end: 2px; color: #4b6670; font-size: 11px; font-weight: 750; }
.workbench-quick-actions .button { min-height: 32px; }
.ledger-hub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ledger-hub-group { min-width: 0; background: #fff; border-inline-end: 1px solid #dce7e9; }
.ledger-hub-group:last-child { border-inline-end: 0; }
.ledger-hub-title { display: flex; min-height: 86px; align-items: flex-start; gap: 9px; padding: 13px 12px 10px; border-block-end: 1px solid #e2eaeb; }
.ledger-hub-title .directory-icon { flex: 0 0 auto; width: 30px; height: 30px; }
.ledger-hub-title h3 { margin: 0; color: #1c4653; font-size: 14px; line-height: 1.35; }
.ledger-hub-title p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.ledger-hub-links { display: grid; }
.ledger-hub-links button { display: flex; min-width: 0; min-height: 37px; align-items: center; justify-content: space-between; gap: 7px; padding: 6px 11px 6px 12px; color: #315760; text-align: left; background: #fff; border: 0; border-block-end: 1px solid #edf1f2; font-size: 12px; cursor: pointer; }
.ledger-hub-links button:last-child { border-block-end: 0; }
.ledger-hub-links button:hover { color: #0a6679; background: #f2f9fa; }
.ledger-hub-links button:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--accent); outline-offset: -2px; }
.ledger-hub-links span { overflow: hidden; max-width: 52%; color: var(--muted); font-size: 10px; text-align: end; text-overflow: ellipsis; white-space: nowrap; }
.workbench-action-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(350px, .95fr); gap: 14px; }
.workbench-action-panel { display: grid; min-width: 0; margin: 0; align-content: start; overflow: hidden; }
.workbench-action-panel .panel-head { min-height: 56px; }
.workbench-task-list,.workbench-stop-list { display: grid; }
.workbench-task-list > button { display: grid; min-width: 0; grid-template-columns: 5px minmax(0, 1fr) auto auto; align-items: center; gap: 9px; min-height: 58px; padding: 8px 12px; color: var(--ink); text-align: left; background: #fff; border: 0; border-block-end: 1px solid #e4ebed; cursor: pointer; }
.workbench-task-list > button:hover,.workbench-stop-list > button:hover { background: #f7fbfb; }
.workbench-task-list > button:focus-visible,.workbench-stop-list > button:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--accent); outline-offset: -2px; }
.workbench-task-marker { align-self: stretch; width: 5px; min-height: 28px; background: #8d9da2; border-radius: 99px; }
.workbench-task-marker.red { background: var(--red); }.workbench-task-marker.amber { background: var(--amber); }.workbench-task-marker.green { background: var(--green); }.workbench-task-marker.gray { background: var(--gray); }
.workbench-task-main { display: grid; min-width: 0; gap: 3px; }
.workbench-task-main strong,.workbench-task-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workbench-task-main strong { font-size: 12px; }.workbench-task-main small { color: var(--muted); font-size: 10px; }
.workbench-task-list em,.workbench-stop-list em { color: var(--accent-strong); font-size: 11px; font-style: normal; white-space: nowrap; }
.workbench-panel-foot { min-height: 40px; padding: 4px 10px; background: #f8fbfb; border-block-start: 1px solid #e0eaeb; }
.workbench-panel-foot .text-button { min-height: 30px; font-size: 11px; }
.workbench-stop-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block-end: 1px solid #e0eaeb; }
.workbench-stop-summary button { min-width: 0; padding: 10px; color: var(--ink); text-align: left; background: #fff; border: 0; border-inline-end: 1px solid #e0eaeb; cursor: pointer; }
.workbench-stop-summary button:last-child { border-inline-end: 0; }
.workbench-stop-summary button:hover { background: #f3f9fa; }
.workbench-stop-summary span,.workbench-stop-summary small { display: block; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.workbench-stop-summary strong { display: block; margin: 3px 0; color: #194f5d; font-size: 21px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.workbench-stop-summary strong.alert { color: var(--red); }
.workbench-stop-summary strong em { margin-inline-start: 3px; font-size: 10px; font-style: normal; font-weight: 650; letter-spacing: 0; }
.workbench-stop-list > button { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; min-height: 48px; padding: 7px 11px; color: var(--ink); text-align: left; background: #fff; border: 0; border-block-end: 1px solid #e4ebed; cursor: pointer; }
.workbench-stop-list > button > span { display: grid; min-width: 0; gap: 3px; }
.workbench-stop-list strong,.workbench-stop-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workbench-stop-list strong { font-size: 12px; }.workbench-stop-list small { color: var(--muted); font-size: 10px; }
.workbench-empty-inline { margin: 0; padding: 18px 12px; color: var(--muted); font-size: 12px; }
.workbench-review-strip { display: grid; grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(150px, .55fr)); align-items: stretch; margin-block-start: 14px; overflow: hidden; background: #f6fafb; border: 1px solid #cadce0; border-radius: 5px; }
.workbench-review-strip > div { padding: 12px 14px; }
.workbench-review-strip h2 { margin: 2px 0; color: #254c56; font-size: 14px; }.workbench-review-strip p { margin: 0; color: var(--muted); font-size: 11px; }
.workbench-review-strip > button { display: grid; min-width: 0; align-content: center; gap: 3px; padding: 9px 12px; color: var(--ink); text-align: left; background: #fff; border: 0; border-inline-start: 1px solid #dce7e9; cursor: pointer; }
.workbench-review-strip > button:hover { background: #eef7f8; }.workbench-review-strip > button:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--accent); outline-offset: -2px; }
.workbench-review-strip strong { color: #176477; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }.workbench-review-strip span { overflow: hidden; color: #58717a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1280px) {
  .summary-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary-main-grid { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .9fr); }
  .summary-unit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ledger-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-hub-group:nth-child(2) { border-inline-end: 0; }
  .ledger-hub-group:nth-child(-n + 2) { border-block-end: 1px solid #dce7e9; }
  .metric-strip { grid-template-columns: repeat(3, 1fr); }
  .material-completeness-summary { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
  .picking-order-summary { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
  .bigparts-summary,.downtime-summary,.master-data-summary,.process-summary { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
  .efficiency-summary { grid-template-columns: repeat(3, 1fr); }
  .worktime-summary { grid-template-columns: repeat(3, 1fr); }
  .plan-visual-overview,.daily-visual-overview { grid-template-columns: 1fr; }
  .plan-execution-overview { grid-template-columns: 1fr; }
  .operation-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(3) { border-inline-end: 0; }
  .metric:nth-child(-n + 3) { border-block-end: 1px solid var(--line); }
  .compact-field { min-width: 270px; }
  .runtime-state { display: none; }
  .dashboard-command-body { grid-template-columns: minmax(0, 1.45fr) minmax(290px, .9fr); }
}

/* 1280px 桌面仍可容纳参考稿的双栏结构；更窄视口再自然改为上下布局。 */
@media (min-width: 1101px) and (max-width: 1280px) {
  .daily-visual-overview { grid-template-columns: minmax(600px, 1.68fr) minmax(340px, 1fr); }
}

@media (max-width: 1024px) {
  :root { --sidebar-width: 208px; }
  .summary-main-grid { grid-template-columns: 1fr; }
  .summary-unit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .workbench-action-grid { grid-template-columns: 1fr; }
  .dashboard-command-body { grid-template-columns: 1fr; }
  .dashboard-kpis { grid-template-columns: repeat(3, 1fr); }
  .dashboard-kpi:nth-child(3) { border-inline-end: 0; }
  .dashboard-kpi:nth-child(-n + 3) { border-block-end: 1px solid var(--line); }
  .three-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-field { min-width: 230px; }
  .ledger-title-tools { max-width: 100%; flex-wrap: wrap; }
  .desktop-only,
  .user-copy { display: none; }
  .directory-list { grid-template-columns: 1fr; }
  .daily-board-grid,.delivery-board-grid { grid-template-columns: 1fr; }
  .control-layout { grid-template-columns: 1fr 1fr; }
  .control-links { grid-column: 1 / -1; grid-template-columns: repeat(5,1fr); }
  .control-links h2 { grid-column: 1 / -1; }
  .attention-flow { grid-template-columns: 1fr 1fr; }
  .attention-flow > aside { grid-column: 1 / -1; grid-template-columns: repeat(5,1fr); }
  .attention-flow > aside header { grid-column: 1 / -1; }
  .downtime-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .downtime-form-grid .field.full { grid-column: 1 / -1; }
  .issue-editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --topbar-height: 60px; }
  body { padding-block-end: calc(62px + env(safe-area-inset-bottom)); font-size: 14px; }
  .sidebar { width: min(290px, calc(100vw - 48px)); transform: translateX(-105%); visibility: hidden; pointer-events: none; box-shadow: var(--shadow); transition: transform .24s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .24s; }
  .sidebar.mobile-open { transform: translateX(0); visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .sidebar-collapsed .sidebar { width: min(290px, calc(100vw - 48px)); }
  .sidebar-collapsed .brand-copy,
  .sidebar-collapsed .nav-group-title,
  .sidebar-collapsed .nav-item span,
  .sidebar-collapsed .sidebar-foot { display: initial; }
  .sidebar-collapsed .sidebar-toggle { position: static; transform: none; }
  .sidebar-collapsed .nav-tree { padding-block-start: 10px; }
  .sidebar-collapsed .nav-item { justify-content: flex-start; padding-inline: 10px; }
  .main-column,
  .sidebar-collapsed .main-column { margin-inline-start: 0; }
  .topbar { gap: 8px; padding: 7px 10px; }
  .mobile-menu { display: inline-grid; flex: 0 0 44px; width: 44px; height: 44px; color: var(--ink); }
  .context-selectors { display: grid; flex: 1; min-width: 0; grid-template-columns: minmax(0, 1fr) minmax(112px, 132px); gap: 6px; }
  .compact-field { width: 100%; min-width: 0; grid-template-columns: 1fr; }
  .compact-field.period-field { min-width: 0; }
  .compact-field > span { display: none; }
  .compact-field select,
  .compact-field input { width: 100%; min-height: 44px; height: 44px; padding-inline: 8px; }
  .topbar-actions { margin: 0; }
  .downtime-flow { grid-template-columns: 1fr; gap: 6px; }
  .downtime-flow-line { display: none; }
  .downtime-flow-step:not(.active) { display: none; }
  .downtime-auto-result { grid-template-columns: 1fr 1fr; }
  .downtime-auto-result p { grid-column: 1 / -1; }
  .issue-editor-flow { grid-template-columns: 1fr; gap: 5px; }
  .issue-editor-flow i,
  .issue-editor-flow span:not(.active):last-child { display: none; }
  .issue-editor-grid { grid-template-columns: 1fr; }
  .issue-editor-grid .field.full { grid-column: auto; }
  .issue-editor-grid .field textarea { min-height: 72px; }
  .issue-history summary { align-items: flex-start; flex-direction: column; gap: 2px; }
  .topbar-actions .screen-button,
  .topbar-actions .user-chip { display: none; }
  #app { padding: 13px 10px 18px; }
  .page-head { align-items: stretch; flex-direction: column; }
  .page-actions { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: flex-start; }
  .page-actions .button { width: 100%; min-width: 0; padding-inline: 8px; font-size: 12px; }
  .summary-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding: 7px; }
  .summary-kpi { min-height: 82px; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding: 8px; }
  .summary-kpi-icon { width: 40px; height: 40px; }.summary-kpi-icon svg { width: 21px; height: 21px; }.summary-kpi strong { font-size: 23px; }
  .summary-kpi-progress { grid-template-columns: 40px minmax(0, 1fr); }.summary-total-ring { width: 40px; height: 40px; }.summary-total-ring::after { inset: 6px; }.summary-total-ring b { font-size: 9px; }
  .summary-main-grid { padding: 8px; }
  .summary-unit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 8px; }
  .summary-unit-card { min-height: 196px; padding: 8px; }.summary-unit-ring { width: 70px; height: 70px; }.summary-unit-ring::after { inset: 9px; }
  .summary-health-grid { grid-template-columns: 1fr; }.summary-health-grid button { grid-template-columns: 34px minmax(0, 1fr); min-height: 52px; padding: 8px 10px; border-inline-end: 0; border-block-end: 1px solid #e1ebed; }.summary-health-grid button:last-child { border-block-end: 0; }.summary-health-icon { width: 34px; height: 34px; }
  .summary-picking-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.summary-picking-grid button:nth-child(3) { border-inline-end: 0; }.summary-picking-grid button:nth-child(n + 4) { border-block-start: 1px solid #e0eaeb; }
  .summary-team-panel { margin: 0 8px 8px; }.summary-team-grid { grid-template-columns: 1fr; }.summary-team-grid button,.summary-team-grid button:last-child { border-inline-end: 0; border-block-end: 1px solid #e0eaeb; }.summary-team-grid button:last-child { border-block-end: 0; }
  .workbench-center-head { align-items: stretch; flex-direction: column; }
  .workbench-quick-actions { justify-content: flex-start; }
  .ledger-hub-grid { grid-template-columns: 1fr; }
  .ledger-hub-group,.ledger-hub-group:nth-child(2) { border-inline-end: 0; border-block-end: 1px solid #dce7e9; }
  .ledger-hub-group:last-child { border-block-end: 0; }
  .ledger-hub-links button { min-height: 44px; }
  .workbench-task-list > button { grid-template-columns: 5px minmax(0, 1fr) auto; min-height: 64px; }
  .workbench-task-list > button > em { display: none; }
  .workbench-stop-summary { grid-template-columns: 1fr 1fr; }
  .workbench-stop-summary button:last-child { grid-column: 1 / -1; border-block-start: 1px solid #e0eaeb; }
  .workbench-stop-summary button:nth-child(2) { border-inline-end: 0; }
  .workbench-stop-list > button { grid-template-columns: minmax(0, 1fr) auto; min-height: 58px; }
  .workbench-stop-list > button > em { display: none; }
  .workbench-review-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workbench-review-strip > div { grid-column: 1 / -1; }
  .workbench-review-strip > button { min-height: 64px; padding-inline: 9px; }
  .showcase-tabs { width: 100%; }
  .showcase-tabs button { min-width: 118px; }
  .brief-head,.mom-hero,.attention-hero { align-items: flex-start; flex-direction: column; }
  .board-kpis { grid-template-columns: repeat(2,1fr); }
  .board-kpis button:nth-child(2n) { border-inline-end: 0; }
  .board-kpis button:last-child { grid-column: 1 / -1; border-block-start: 1px solid #d7e2e4; }
  .control-layout,.attention-flow { grid-template-columns: 1fr; }
  .control-links,.attention-flow > aside { grid-column: auto; grid-template-columns: 1fr; }
  .control-links h2,.attention-flow > aside header { grid-column: auto; }
  .attention-summary { grid-template-columns: repeat(2,1fr); }
  .attention-summary button:nth-child(2n) { border-inline-end: 0; }
  .attention-summary button:nth-child(-n+2) { border-block-end: 1px solid #d7e2e4; }
  .delivery-unit-head { display: none; }
  .delivery-units > button { grid-template-columns: minmax(0,1fr) 72px auto; }
  .delivery-units > button > span:nth-child(2) { grid-column: 1 / -1; }
  .delivery-units > button > span:nth-child(3) { grid-column: 1 / 3; }
  .delivery-units > button > span:nth-child(4) { display: none; }
  .delivery-units > button > em { grid-column: 3; grid-row: 1; }
  .focus-unit-list > button { grid-template-columns: 8px minmax(0,1fr) 48px auto; }
  .focus-unit-list > button > i { grid-column: 2 / -1; grid-row: 2; }
  .focus-arrow { display: none; }
  .button { min-height: 44px; }
  .button.small,
  .data-table button.cell-action,
  .icon-button,
  .nav-item,
  .text-button,
  .view-toggle button,
  .takt-slot-input { min-height: 44px; }
  .icon-button { min-width: 44px; }
  .scope-bar { align-items: stretch; flex-direction: column; }
  .scope-summary { margin: 0; }
  .scope-bar .control { width: 100%; min-height: 44px; }
  .scope-bar .custom-select.is-control { width: 100%; min-height: 44px; height: 44px; }
  .custom-select.is-compact { height: 44px; }
  .custom-select.is-compact .select-trigger,
  .custom-select.is-control .select-trigger,
  .custom-select.is-field .select-trigger { min-height: 44px; font-size: 16px; }
  .select-option { min-height: 44px; padding-block: 10px; font-size: 16px; }
  .control,
  .field input,
  .field select,
  .field textarea,
  .compact-field select,
  .compact-field input { font-size: 16px; }
  .control { min-height: 44px; }
  .field input,
  .field select { min-height: 44px; }
  .toolbar { position: sticky; inset-block-start: var(--topbar-height); z-index: 20; overflow-x: auto; }
  .toolbar:has(.custom-select.open) { overflow: visible; }
  .toolbar-spacer { display: none; }
  .toolbar-group { flex: 0 0 auto; }
  .ledger-title-tools { width: 100%; justify-content: space-between; }
  .ledger-page-context { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .ledger-page-context .scope-summary { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .ledger-command-bar { align-items: stretch; }
  .ledger-command-actions { margin-inline-start: 0; }
  .ledger-command-filters { flex-basis: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-command-filters .control,
  .ledger-command-filters .inline-filter { width: 100%; min-width: 0; }
  .ledger-command-filters .inline-filter .control { flex: 1; }
  .ledger-command-filters .inline-filter[aria-label="日报日期切换"] { grid-column: 1 / -1; }
  .ledger-command-filters .search { grid-column: 1 / -1; }
  .source-disclosure summary { align-items: flex-start; }
  .source-disclosure-title { white-space: normal; }
  .dashboard-scope { align-items: flex-start; flex-direction: column; gap: 5px; }
  .dashboard-scope > span { align-items: flex-start; flex-direction: column; gap: 2px; }
  .command-footer-teams { display: block; }
  .command-footer-teams .command-panel-head { align-items: center; flex-direction: row; justify-content: space-between; border-block-end: 1px solid var(--line); border-inline-end: 0; }
  .dashboard-kpis { grid-template-columns: repeat(2, 1fr); }
  .dashboard-kpi { border-block-end: 1px solid var(--line); }
  .dashboard-kpi:nth-child(2n) { border-inline-end: 0; }
  .dashboard-kpi:nth-last-child(-n + 2) { border-block-end: 0; }
  .dashboard-kpi:nth-child(3) { border-inline-end: 1px solid var(--line); }
  .command-unit-row { grid-template-columns: minmax(122px, 1fr) 52px 72px; }
  .command-unit-row .command-progress-track { grid-column: 1 / -1; grid-row: 2; }
  .command-team-grid { grid-template-columns: 1fr; }
  .command-team-row,
  .command-team-row:nth-child(2n),
  .command-team-row:nth-child(4n),
  .command-team-row:nth-last-child(-n + 4) { border-inline-end: 0; border-block-end: 1px solid #e1e9eb; }
  .command-team-row:last-child { border-block-end: 0; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .material-completeness-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picking-order-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bigparts-summary,.downtime-summary,.master-data-summary,.process-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .efficiency-summary { grid-template-columns: repeat(2, 1fr); }
  .worktime-summary { grid-template-columns: repeat(2, 1fr); }
  .worktime-analysis-grid { grid-template-columns: 1fr; }
  .metric { border-block-end: 1px solid var(--line); }
  .metric:nth-child(2n) { border-inline-end: 0; }
  .metric:nth-last-child(-n + 2) { border-block-end: 0; }
  .metric:nth-child(3) { border-inline-end: 1px solid var(--line); }
  .two-col,
  .three-col { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .portal-shell { margin: -13px -10px -18px; }
  body.site-mode { padding-block-end: 0; }
  .portal-nav { padding-inline: 14px; }
  .portal-nav nav { display: none; }
  .portal-nav > .button { display: none; }
  .portal-hero { min-height: 280px; padding: 54px 22px 34px; }
  .portal-section { padding: 38px 16px 50px; }
  .portal-section-head { grid-template-columns: 1fr; gap: 12px; }
  .portal-news-grid { grid-template-columns: 1fr; }
  .data-table-wrap.tall { max-height: calc(100vh - 300px); }
  .table-footer { flex-wrap: wrap; }
  .scroll-hint { width: 100%; margin-inline-start: 0; white-space: normal; }
  .list-row { align-items: flex-start; grid-template-columns: 1fr; }
  .list-meta { justify-content: flex-start; }
  .progress-summary-grid { grid-template-columns:1fr; }
  .progress-task-metrics { justify-items:start; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .eco-editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eco-editor-grid--execution .field.full { grid-column: 1 / -1; }
  .choice-grid { grid-template-columns: 1fr; }
  .picking-context-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picking-context-grid > div:nth-child(2n) { border-inline-end: 0; }
  .picking-context-grid > div:nth-child(-n + 2) { border-block-end: 1px solid var(--line); }
  .picking-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bigpart-quantity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drawer { width: calc(100vw - 12px); max-height: 94vh; }
  .drawer-head { padding-block-start: max(14px, env(safe-area-inset-top)); }
  .drawer-foot { padding-block-end: max(14px, env(safe-area-inset-bottom)); }
  .modal { width: calc(100vw - 20px); max-height: 90vh; }
  .modal.modal-wide { width: calc(100vw - 12px); max-height: 94vh; }
  .modal.modal-wide .modal-body { max-height: calc(94vh - 142px); }
  .section-title-row { align-items: stretch; flex-direction: column; gap: 8px; }
  .section-title-row .button { align-self: flex-start; }
  .daily-entry-station { align-self:flex-start; }
  .daily-entry-scope-grid,
  .daily-entry-resource-grid { grid-template-columns:1fr; }
  .daily-entry-resource-grid .field:first-child,
  .daily-entry-resource-grid .field:nth-child(2),
  .daily-entry-resource-grid .field:nth-last-child(-n + 2) { grid-column:auto; }
  .daily-work-selection { grid-template-columns:1fr; }
  .daily-work-selection .button { width:100%; }
  .daily-entry-task.ratio-task { grid-template-columns:28px minmax(0,1fr); align-items:start; }
  .daily-entry-task.read-only-task { grid-template-columns:28px minmax(0,1fr); align-items:start; }
  .daily-entry-task.read-only-task .daily-task-progress { grid-column:2; justify-content:start; margin-top:2px; white-space:normal; }
  .daily-entry-task.read-only-task > .status { grid-column:2; justify-self:start; }
  .daily-task-controls { grid-column:2; grid-template-columns:minmax(0,1fr) auto; justify-content:stretch; width:100%; }
  .daily-ratio-field { min-width:0; }
  .daily-ratio-field .ratio-input input { width:100% !important; }
  .daily-entry-task .status { grid-column: 2; justify-self: start; }
  .preview-row { grid-template-columns: minmax(0, 1fr) 64px 78px; gap: 6px; }
  .mobile-bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: calc(58px + env(safe-area-inset-bottom));
    padding-block-end: env(safe-area-inset-bottom);
    background: #fff;
    border-block-start: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(19, 46, 57, .08);
  }
  .mobile-bottom-nav button { display: grid; min-height: 58px; place-items: center; align-content: center; gap: 2px; color: var(--muted); border: 0; background: transparent; font-size: 11px; }
  .mobile-bottom-nav button svg { width: 20px; height: 20px; }
  .mobile-bottom-nav button.active { color: var(--accent-strong); background: var(--accent-soft); }
  .mobile-view-toggle { display: none; }
  .task-actions { grid-template-columns: 1fr; }
  .task-actions.single { grid-template-columns: 1fr; margin-block-start: 10px; }
  .matrix-table .state-button { min-height: 44px; }
  .bigparts-panel .matrix-head { align-items: flex-start; flex-direction: column; }
  .bigparts-matrix col.material-code-width,
  .bigparts-matrix .bigpart-code-col { width: 116px; min-width: 116px; max-width: 116px; }
  .bigparts-matrix col.part-name-width,
  .bigparts-matrix .bigpart-name-col { width: 96px; min-width: 96px; max-width: 96px; }
  .bigparts-matrix .bigpart-name-col { inset-inline-start: 116px; }
  .bigparts-matrix col.unit-status-width,
  .bigparts-matrix th.unit-column,
  .bigparts-matrix .bigpart-status-cell { width: 104px; min-width: 104px; max-width: 104px; }
  .bigparts-matrix .bigpart-code-col code { font-size: 10px; }
  .toast { inset-inline: 10px; inset-block-end: calc(70px + env(safe-area-inset-bottom)); max-width: none; }
}

@media (max-width: 420px) {
  .page-title h1 { font-size: 22px; }
  .metric strong { font-size: 22px; }
  .button { min-height: 44px; }
  .mobile-summary { grid-template-columns: repeat(3, 1fr); }
  .modal-head,
  .modal-body,
  .modal-foot { padding-inline: 12px; }
  .modal-foot { display: grid; grid-template-columns: 1fr; }
  .modal-foot .button { width: 100%; }
  .drawer-foot .button { flex: 1 1 130px; }
  .picking-notice > div { display: block; }
  .picking-notice span { display: block; margin-block-start: 2px; }
  .picking-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picking-choice-grid .choice-button { justify-content: flex-start; }
  .daily-operation-search-row { align-items: stretch; flex-direction: column; gap: 6px; }
  .picking-section-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .bigpart-state-grid { grid-template-columns: 1fr; }
  .bigpart-validation-note > div { display: block; }
  .bigpart-validation-note span { display: block; margin-block-start: 2px; }
  .efficiency-detail-summary { grid-template-columns: 1fr; }
  .efficiency-detail-summary > div { border-inline-end: 0; border-block-end: 1px solid var(--line); }
  .efficiency-detail-summary > div:last-child { border-block-end: 0; }
  .efficiency-hour-row { grid-template-columns: 78px minmax(70px, 1fr) 46px 38px; gap: 7px; }
  .efficiency-series-picker { flex-wrap: nowrap; max-height: none; overflow-x: auto; }
  .efficiency-series-toggle { flex: 0 0 auto; }
  .efficiency-compare-chart { padding-inline: 10px; }
  .formula-source { display: block; margin: 4px 0 0; white-space: normal; }
  .worktime-demo-note { gap: 7px; padding: 9px 10px; }
  .worktime-chart-wrap { padding-inline: 10px; }
  .daily-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-status-tile:nth-child(5n) { border-inline-end: 1px solid var(--line); }
  .daily-status-tile:nth-child(2n) { border-inline-end: 0; }
  .plan-gantt { padding-inline: 10px; }
  .plan-deviation-row { grid-template-columns: 76px minmax(120px,1fr) 64px; gap: 7px; padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 560px) {
  .eco-editor-section-head { align-items: flex-start; flex-direction: column; gap: 2px; }
  .eco-editor-grid { grid-template-columns: 1fr; }
  .eco-editor-grid--execution .field:has(#field-bomOrderChange),
  .eco-editor-grid--execution .field:has(#field-pendingReason),
  .eco-editor-grid--execution .field.full { grid-column: auto; }
}

@media (forced-colors: active) {
  .status,
  .plan-type,
  .notice { border: 1px solid currentColor; }
  .status::before { forced-color-adjust: none; }
}

/* 项目准备中心：项目配置与实际生产计划使用不同的就绪关口。 */
.project-prep-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
}
.project-prep-summary > div { min-width: 0; }
.project-prep-summary span { color: var(--muted); font-size: 12px; }
.project-prep-summary strong { display: block; margin-top: 2px; color: var(--ink); font-size: 28px; line-height: 1; }
.project-prep-summary strong em { color: var(--muted); font-size: 15px; font-style: normal; font-weight: 600; }
.project-prep-summary p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.project-prep-list { display: grid; gap: 8px; margin-bottom: 14px; }
.project-prep-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.project-prep-state {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 14px;
  font-weight: 800;
}
.project-prep-item.pending .project-prep-state { color: #7a4a00; background: #f2bd53; }
.project-prep-item h3 { margin: 0; color: var(--ink); font-size: 13px; }
.project-prep-item p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.project-prep-action { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; align-items: center; }
@media (max-width: 620px) {
  .project-prep-summary { grid-template-columns: 1fr; }
  .project-prep-item { grid-template-columns: 26px minmax(0, 1fr); }
  .project-prep-action { grid-column: 2; justify-content: flex-start; }
}

@media (max-width: 1100px) {
  .daily-unit-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .daily-alert-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .daily-alert-card:nth-child(3n) { border-inline-end: 0; }
  .daily-alert-card:nth-child(n+4) { border-block-start: 1px solid var(--line); }
}

@media (max-width: 1024px) {
  .daily-unit-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .daily-unit-situation .panel-head { align-items: flex-start; flex-direction: column; }
  .daily-unit-counts { justify-content: flex-start; }
}

@media (max-width: 680px) {
  .daily-unit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .daily-alert-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .daily-alert-card:nth-child(3n) { border-inline-end: 1px solid var(--line); }
  .daily-alert-card:nth-child(2n) { border-inline-end: 0; }
  .daily-alert-card:nth-child(n+3) { border-block-start: 1px solid var(--line); }
  .daily-hours-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .daily-hours-kpis > span:nth-child(3n) { border-inline-end: 1px solid #e4ecee; }
  .daily-hours-kpis > span:nth-child(2n) { border-inline-end: 0; }
  .daily-hours-kpis > span:nth-child(n+4) { border-block-end: 1px solid #e4ecee; }
  .daily-hours-kpis > span:nth-last-child(-n+2) { border-block-end: 0; }
}

@media (max-width: 420px) {
  .daily-unit-grid { grid-template-columns: 1fr; }
  .daily-alert-grid { grid-template-columns: 1fr; }
  .daily-alert-card:nth-child(n) { border-inline-end: 0; border-block-start: 1px solid var(--line); }
  .daily-alert-card:first-child { border-block-start: 0; }
  .daily-hours-separate { grid-template-columns: 1fr; }
}

#storageState[role="button"] { cursor: pointer; }
#storageState:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.summary-unit-card > .status { justify-self: start; }
