/* V7 workstation: accepted identity and safety surfaces, tighter connected rhythm. */
:root { --mos-sidebar: 208px; --mos-content-max: 1280px; --mos-gutter: 20px; --ops-gap: 12px; }
.main { padding-top: 12px; padding-bottom: 24px; }
.view { width: 100%; max-width: var(--mos-content-max); }
.nav { gap: 18px; padding: 14px 10px; }
.nav__brand { min-height: 36px; gap: 8px; }
.nav__item, .nav__disclosure > summary { min-height: 34px; padding: 5px 10px; font-size: 13px; line-height: 20px; }
.nav__group-label { padding: 0 10px; font-size: 11px; line-height: 16px; margin-bottom: 4px; }
.nav__subitems { padding-left: 16px; }
.desktop-nav-toggle { display: inline-flex; flex: none; }
.desktop-nav-toggle .mos-icon { width: 18px; height: 18px; }
[data-nav-collapsed="true"] .desktop-nav-toggle .mos-icon { transform: scaleX(-1); }
.topbar { min-height: 48px; height: 48px; padding: 4px 16px; gap: 8px; }
.page-head { margin-bottom: 10px; gap: 8px; align-items: center; }
.page-head h1 { font-size: 22px; line-height: 28px; }
.page-head p { margin-top: 2px; font-size: 13px; line-height: 20px; }
.page-head .eyebrow { display: none; }
.confidence { margin-bottom: 0; padding: 8px 12px; border-radius: 7px 7px 0 0; }
.confidence__heading { gap: 10px; }
.confidence dl { margin-top: 6px; padding-top: 6px; gap: 6px 12px; }
.confidence dt { font-size: 11px; line-height: 16px; }
.confidence dd { line-height: 18px; }
.workstation-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; padding: 5px 12px; margin-bottom: 12px; background: var(--mos-surface-subtle); border-top: 1px solid var(--mos-border); border-radius: 0 0 7px 7px; font-size: 12px; }
.workstation-links > span { color: var(--mos-text-muted); }
.workstation-links a { display: inline-flex; gap: 5px; align-items: center; min-height: 28px; color: var(--mos-text-secondary); text-decoration: none; }
.workstation-links a:hover { color: var(--mos-text); text-decoration: underline; text-underline-offset: 3px; }
.workstation-links .mos-icon { width: 14px; height: 14px; }
.stack, .grid, .lite-page, .settings-page { gap: 12px; }
.section { padding: 8px 0; }
.section__title, .ops-card-title { margin-bottom: 6px; padding: 4px 0; font-size: 15px; line-height: 22px; }
.grid--kpi { background: var(--mos-surface-subtle); border-radius: 7px; }
.kpi, :root[data-density="compact"] .kpi { padding: 10px 12px; gap: 2px; }
.kpi__value { font-size: 25px; line-height: 30px; }
.kpi__value--long { font-size: 15px; line-height: 22px; }
.kpi__note { line-height: 16px; font-size: 11px; }
.kpi__value[href] { color: var(--mos-text); text-decoration: none; width: fit-content; }
.kpi__value[href]:hover { text-decoration: underline; text-underline-offset: 4px; }
.queue-scope { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; color: var(--mos-text-muted); font-size: 11px; }
.queue-scope a { color: var(--mos-text); }
.queue-authority { margin-bottom: 6px; font-size: 12px; color: var(--mos-text-secondary); }
.queue-material { display: inline-block; margin-left: 8px; color: var(--mos-text-muted); font-size: 11px; }
.queue-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; margin-top: 4px; color: var(--mos-text-muted); }
.queue-facts b { color: var(--mos-text-secondary); font-weight: 500; }
.shift-workspace { gap: 16px; padding: 4px 0; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); }
.shift-context { padding-left: 16px; }
.shift-workspace .evidence-item { padding: 8px 0; border-radius: 0; background: transparent; border-bottom: 1px solid var(--mos-border); }
.shift-links a { padding: 8px 0; }
.shift-workspace .stack { gap: 0; }
.shift-workspace > .section { gap: 4px; }
.shift-workspace .section__title { margin-bottom: 2px; }
.shift-workspace .queue-scope, .shift-workspace .queue-authority { line-height: 18px; margin-bottom: 2px; }
.card > .kv, .section > .kv { padding: 8px 12px; }
.kv { gap: 4px 12px; }
.ops-toolbar { padding-bottom: 0; gap: 8px; }
.table-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 8px; border-bottom: 1px solid var(--mos-border); background: var(--mos-surface-subtle); border-radius: 6px 6px 0 0; }
.table-tools label { display: flex; align-items: center; gap: 6px; min-width: 0; }
.table-tools .mos-icon { width: 14px; height: 14px; flex: none; color: var(--mos-text-muted); }
.table-tools input { width: 180px; max-width: 100%; min-width: 0; min-height: 28px; border: 0; border-radius: 4px; padding: 3px 4px; background: transparent; color: var(--mos-text); font-size: 12px; }
.table-tools output { flex: none; color: var(--mos-text-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.table-wrap { max-height: 440px; border-radius: 0 0 6px 6px; }
td, th, :root[data-density="compact"] td, :root[data-density="compact"] th { padding: 6px 10px; font-size: 13px; line-height: 19px; }
thead th { position: sticky; top: 0; background: var(--mos-surface-subtle); }
tbody tr[hidden] { display: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.signal-card { padding: 8px 0; }
.signal-card h2 { margin-top: 6px; font-size: 17px; line-height: 24px; }
.signal-card .table-wrap { margin-top: 0; }
.signal-card__lead { gap: 8px; }
.evidence-details { margin-block: 8px; }
.evidence-grid { margin-block: 8px; gap: 12px; }
.authority-boundary { margin-top: 10px; padding-top: 8px; }
.decision { padding: 12px; }
.decision__head { gap: 8px; }
.decision__actions { margin-top: 8px; gap: 8px; }
.facts { gap: 8px 16px; padding-block: 8px; }
.notice { padding: 10px 12px; }
.filter { padding: 8px 0; }
.timeline__body { padding: 8px 0; }
.settings-row { padding: 10px 0; }
.settings-panel--truth { padding-top: 8px; }
.login { padding-top: 8px; }
.login__panel { gap: 12px; }
@media (min-width: 1200px) {
  .shell[data-nav-collapsed="true"] { grid-template-columns: 0 minmax(0, 1fr); }
  .shell[data-nav-collapsed="true"] > .nav { visibility: hidden; width: 0; padding: 0; overflow: hidden; }
  /* Keep the unchanged 112px owl in an empty edge lane, never over tables. */
  body:not([data-xiaomo-open="true"]) .main { padding-right: 128px; }
}
@media (max-width: 1199px) {
  .desktop-nav-toggle { display: none; }
  .nav__item, .nav__disclosure > summary { min-height: 44px; }
}
@media (max-width: 900px) {
  :root { --mos-gutter: 16px; }
  .topbar { height: 56px; min-height: 56px; }
  .main { padding-top: 12px; }
  .page-head h1 { font-size: 21px; line-height: 28px; }
  .confidence { padding: 8px 10px; }
  .workstation-links { padding: 5px 10px; gap: 4px 12px; }
  .workstation-links a { min-height: 36px; }
  .shift-workspace { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .shift-context { padding-left: 0; }
  .table-tools input { width: 165px; min-height: 36px; }
  .table-wrap { max-height: 360px; }
  .page-head { margin-bottom: 10px; }
}
