:root {
  color-scheme: light;
  --ink: #10282f;
  --muted: #587078;
  --surface: #ffffff;
  --mineral: #f7faf9;
  --line: #dce9e6;
  --teal: #087a70;
  --teal-soft: #e7f4f0;
  --blue: #2768c7;
  --amber: #b96a00;
  --red: #b83b44;
  --purple: #6d55b8;
  --shadow: 0 14px 34px rgba(16, 40, 47, .08);
  font-family: "Be Vietnam Pro", "Avenir Next", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  background: var(--mineral);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--mineral); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; left: 12px; top: -48px; z-index: 10; padding: 10px 14px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.console { min-height: 100vh; display: grid; grid-template-columns: 218px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--ink); color: #eff8f6; padding: 18px 12px; }
.brand { display: flex; gap: 10px; align-items: center; padding: 0 8px 26px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--teal); color: white; font-weight: 900; }
.brand strong { display: block; letter-spacing: .02em; }
.brand small { display: block; color: #a9bfbd; margin-top: 2px; }
.nav-label { color: #8ca6a3; text-transform: uppercase; letter-spacing: .11em; font-size: 11px; padding: 0 9px 8px; }
.nav { display: grid; gap: 3px; }
.nav button { border: 0; border-radius: 8px; color: #c5d9d6; background: transparent; text-align: left; padding: 10px 11px; display: flex; align-items: center; gap: 10px; }
.nav button:hover, .nav button:focus-visible { background: rgba(255,255,255,.09); color: white; outline: none; }
.nav button.active { background: #d8f2eb; color: var(--ink); font-weight: 750; }
.nav-icon { width: 20px; text-align: center; color: var(--teal); font-weight: 800; }
.advanced-nav { margin-top: 12px; border-top: 1px solid rgba(255,255,255,.15); padding: 10px 0 0; }
.advanced-nav summary { cursor: pointer; list-style: none; color: #a9bfbd; text-transform: uppercase; letter-spacing: .09em; font-size: 10px; padding: 5px 9px 8px; }
.advanced-nav summary::-webkit-details-marker { display: none; }
.advanced-nav summary::before { content: "＋"; display: inline-block; margin-right: 6px; color: #8acfc5; }
.advanced-nav[open] summary::before { content: "−"; }
.advanced-nav .nav button { padding: 8px 10px; font-size: 13px; }
.module-slots { margin-top: 20px; padding: 12px 8px 0; border-top: 1px solid rgba(255,255,255,.15); color: #a9bfbd; }
.module-slots small { display: block; text-transform: uppercase; letter-spacing: .09em; font-size: 10px; margin-bottom: 7px; }
.module-slots-list { display: flex; flex-wrap: wrap; gap: 5px; }
.module-slot { border: 1px solid rgba(255,255,255,.18); border-radius: 5px; padding: 3px 5px; font: 10px "IBM Plex Mono", ui-monospace, monospace; color: #d2e4e1; }
.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.15); padding: 14px 8px 0; color: #a9bfbd; font-size: 12px; }
.sidebar-settings { border: 0; background: transparent; color: #d2e4e1; padding: 12px 0 0; text-align: left; font-size: 12px; cursor: pointer; }
.main { min-width: 0; }
.topbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); padding: 12px clamp(18px, 3vw, 42px); position: sticky; top: 0; z-index: 4; backdrop-filter: blur(10px); }
.context { min-width: 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.context-item { min-width: 100px; }
.context-item small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.context-item strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.context-separator { color: #a5b8b5; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .avatar { border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 8px; min-width: 36px; min-height: 36px; }
.avatar { background: var(--teal); color: white; border-color: var(--teal); font-weight: 800; }
.content { padding: 28px clamp(18px, 3vw, 42px) 56px; max-width: 1600px; }
.page-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.page-heading h1 { margin: 0; font-size: clamp(24px, 2.2vw, 31px); line-height: 1.2; letter-spacing: -.025em; }
.page-heading p { margin: 8px 0 0; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.button { border: 1px solid transparent; border-radius: 8px; min-height: 38px; padding: 8px 13px; font-weight: 750; }
.button.primary { background: var(--teal); color: white; }
.button.primary:hover, .button.primary:focus-visible { background: #06675f; }
.button.secondary { background: var(--teal-soft); color: #075e57; border-color: #c8e8e0; }
.button.ghost { background: white; color: var(--ink); border-color: var(--line); }
.button.danger { background: #fff1f1; color: var(--red); border-color: #f2cacc; }
.button:disabled { cursor: not-allowed; opacity: .5; }
.button:focus-visible, input:focus-visible, select:focus-visible, .icon-button:focus-visible { outline: 3px solid #8acfc5; outline-offset: 2px; }
.status-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); margin-bottom: 18px; }
.rail-item { padding: 10px 12px; border-right: 1px solid var(--line); min-width: 0; }
.rail-item:last-child { border-right: 0; }
.rail-item small { display: block; color: var(--muted); font-size: 11px; }
.rail-item strong { display: flex; gap: 7px; align-items: center; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: 0 0 auto; }
.dot.warn { background: var(--amber); }
.dot.bad { background: var(--red); }
.dot.info { background: var(--blue); }
.surface { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.surface + .surface { margin-top: 16px; }
.surface-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding: 15px 18px; }
.surface-header h2 { margin: 0; font-size: 17px; }
.surface-header small { color: var(--muted); }
.surface-body { padding: 18px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric { border-top: 3px solid var(--teal); padding: 13px 14px; background: #fbfdfc; }
.metric strong { display: block; font-size: 23px; line-height: 1; }
.metric span { color: var(--muted); font-size: 12px; display: block; margin-top: 6px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.field { width: 100%; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); padding: 9px 11px; min-height: 38px; }
.filters .field { flex: 1 1 220px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #edf3f1; vertical-align: top; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 750; }
td strong { font-weight: 750; }
.mono { font: 12px/1.4 "IBM Plex Mono", ui-monospace, monospace; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 3px 8px; font-size: 11px; font-weight: 800; background: #eef4f2; color: var(--muted); }
.badge.ready { color: #087a70; background: #e7f4f0; }
.badge.warn { color: #8e5600; background: #fff4df; }
.badge.bad { color: var(--red); background: #fff0f1; }
.callout { border-left: 3px solid var(--blue); background: #edf5ff; color: #214d82; padding: 12px 14px; }
.callout.warn { border-color: var(--amber); background: #fff8e9; color: #774a00; }
.callout.error { border-color: var(--red); background: #fff1f1; color: #7d2730; }
.empty { color: var(--muted); padding: 30px 10px; text-align: center; }
.loading { min-height: 180px; display: grid; place-items: center; color: var(--muted); }
.twin-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr); gap: 14px; }
.twin-canvas { min-height: 330px; position: relative; overflow: hidden; border: 1px solid var(--line); background-color: #fbfdfc; background-image: linear-gradient(#e7efec 1px, transparent 1px), linear-gradient(90deg, #e7efec 1px, transparent 1px); background-size: 28px 28px; }
.twin-node { position: absolute; min-width: 130px; max-width: 190px; padding: 10px 11px; border: 1px solid #b8d9d2; border-left: 3px solid var(--teal); background: white; box-shadow: 0 5px 12px rgba(16,40,47,.08); }
.twin-node strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.twin-node small { display: block; color: var(--muted); margin-top: 3px; font: 10px "IBM Plex Mono", ui-monospace, monospace; }
.map-wrap { display: grid; gap: 12px; }
.map-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.digital-map { width: 100%; min-height: 360px; border: 1px solid var(--line); border-radius: 14px; background: #f8fbfa; overflow: hidden; }
.map-space { fill: #dff2ed; stroke: #2c8f82; stroke-width: .06; vector-effect: non-scaling-stroke; }
.map-zone { fill: #f9df9d; fill-opacity: .55; stroke: #c98b16; stroke-width: .04; vector-effect: non-scaling-stroke; }
.map-wall { fill: none; stroke: #284b55; stroke-width: .12; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.map-door { fill: #fff; stroke: #a44e29; stroke-width: .08; vector-effect: non-scaling-stroke; }
.map-label { font-size: .22px; fill: #174d48; text-anchor: middle; pointer-events: none; }
.map-camera circle { fill: #1e64c8; stroke: #fff; stroke-width: .06; vector-effect: non-scaling-stroke; }
.map-camera text { font-size: .18px; fill: #19467f; }
.map-legend { display: flex; gap: 16px; color: var(--muted); font-size: 12px; }
.map-legend span { display: flex; align-items: center; gap: 6px; }
.map-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; }
.legend-space { background: #dff2ed; border: 1px solid #2c8f82; }
.legend-zone { background: #f9df9d; border: 1px solid #c98b16; }
.legend-wall { background: #284b55; height: 3px !important; border-radius: 0 !important; }
.legend-door { background: #fff; border: 2px solid #a44e29; border-radius: 50% !important; }
.legend-camera { background: #1e64c8; border-radius: 50% !important; }
.map-empty { display: grid; gap: 12px; }
.map-proposals { display: grid; gap: 8px; }
.map-proposal { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.button.tiny { padding: 5px 9px; font-size: 11px; }
.map-proposal .button + .button { margin-left: 6px; }
.twin-side { border: 1px solid var(--line); padding: 14px; background: white; }
.twin-side h3 { margin: 0 0 10px; font-size: 15px; }
.twin-relation { padding: 8px 0; border-bottom: 1px solid #edf3f1; font-size: 12px; }
.twin-relation:last-child { border-bottom: 0; }
.twin-relation span { display: block; color: var(--muted); font-size: 11px; }
.ops-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ops-grid .surface { min-width: 0; }
.ops-list { list-style: none; margin: 0; padding: 0; }
.ops-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #edf3f1; }
.ops-list li:last-child { border-bottom: 0; }
.ops-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.ops-list span { color: var(--muted); font: 11px "IBM Plex Mono", ui-monospace, monospace; white-space: nowrap; }
.screen-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.screen-card { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 15px; display: flex; flex-direction: column; gap: 8px; min-height: 178px; }
.screen-card[hidden] { display: none; }
.screen-card-top, .screen-card-actions, .preview-toolbar, .mobile-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.screen-card h3 { font-size: 16px; margin: 2px 0 0; color: var(--ink); }
.screen-card p, .screen-card small { color: var(--muted); margin: 0; line-height: 1.45; }
.screen-card-actions { margin-top: auto; align-items: center; }
.screen-card-actions .button { padding: 7px 10px; font-size: 12px; }
.screen-detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .9fr); gap: 16px; }
.screen-meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.screen-meta-grid > div { border: 1px solid var(--line); border-radius: 10px; padding: 11px; background: var(--surface-subtle); }
.screen-meta-grid small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.screen-meta-grid strong { display: block; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.screen-state-tabs { display: flex; flex-wrap: wrap; gap: 7px; border-top: 1px solid var(--line); padding-top: 15px; margin-top: 6px; }
.screen-state-tabs .button { font-size: 12px; padding: 7px 10px; }
.screen-state-panel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--surface-subtle); margin-top: 16px; }
.screen-state-panel.error { border-color: #e5b8bb; background: #fff7f7; }
.screen-state-panel.warn { border-color: #e7c995; background: #fffbf2; }
.screen-state-panel.info { border-color: #b9d2e6; background: #f6fbff; }
.screen-state-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; }
.screen-state-panel strong { font-size: 15px; }
.screen-state-panel p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.screen-state-panel .mono { font-size: 11px; color: var(--muted); }
.screen-preview { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 16px; }
.preview-toolbar { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fake-field { display: inline-flex; align-items: center; min-width: 220px; color: var(--muted); background: var(--surface-subtle); }
.preview-list { display: grid; gap: 0; }
.preview-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.preview-row:last-child { border-bottom: 0; }
.preview-row > span:nth-child(2) { display: grid; gap: 3px; flex: 1; }
.preview-row small { color: var(--muted); }
.preview-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 13px; }
.preview-metrics .metric { padding: 12px; }
.stepper { display: grid; gap: 8px; }
.step { display: grid; grid-template-columns: 32px 1fr; column-gap: 10px; align-items: center; border: 1px solid var(--line); padding: 10px; border-radius: 9px; }
.step > span { grid-row: span 2; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-subtle); color: var(--muted); font-weight: 700; }
.step.active { border-color: var(--accent); }
.step.active > span { background: var(--accent); color: #fff; }
.step strong { font-size: 13px; }
.step small { color: var(--muted); }
.contract-list { display: grid; grid-template-columns: 100px 1fr; gap: 10px 12px; margin: 0; }
.contract-list dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.contract-list dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.contract-list + .callout { margin-top: 16px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.settings-grid .surface:last-child { grid-column: 1 / -1; }
.settings-list { display: grid; grid-template-columns: 120px 1fr; gap: 10px 14px; margin: 0 0 16px; }
.settings-list dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.settings-list dd { margin: 0; overflow-wrap: anywhere; }
.settings-copy { color: var(--muted); margin: 0 0 14px; }
.settings-links { display: flex; flex-wrap: wrap; gap: 8px; }
.hr-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 14px; align-items: start; }
.hr-side { display: grid; gap: 14px; }
.hr-side .surface + .surface { margin-top: 0; }
.role-list, .candidate-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.role-list li, .candidate-list li { display: grid; gap: 2px; padding-bottom: 9px; border-bottom: 1px solid #edf3f1; }
.role-list li:last-child, .candidate-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.role-list span, .candidate-list span { color: var(--muted); font-size: 12px; }
.compact-steps { margin: 0 0 16px; padding-left: 20px; color: var(--muted); }
.compact-steps li { margin: 6px 0; }
.full-width { width: 100%; }
.mobile-preview { max-width: 390px; margin: 16px auto 0; border-radius: 18px; background: #f8faf9; padding: 0; overflow: hidden; }
.mobile-preview-head { padding: 14px 16px; background: var(--ink); color: #fff; }
.mobile-preview-body { padding: 18px; }
.mobile-preview-body h3 { margin: 0 0 8px; }
.mobile-preview-body p { color: var(--muted); line-height: 1.5; }
.live-snapshot { margin-top: 16px; border: 1px solid #b8d9d2; border-radius: 12px; background: #f6fbf9; overflow: hidden; }
.live-snapshot-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid #d7ebe5; }
.live-snapshot-body { padding: 12px 14px; }.live-snapshot-body ul { margin: 9px 0 0; padding-left: 18px; color: var(--muted); }.live-snapshot-body li { margin: 4px 0; }
@media (max-width: 760px) { .twin-layout { grid-template-columns: 1fr; } .twin-canvas { min-height: 280px; } }
.skeleton { height: 12px; background: #e7efed; border-radius: 4px; animation: pulse 1.2s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .45; } }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(16,40,47,.28); z-index: 8; display: none; }
.drawer-backdrop.open { display: block; }
.drawer { position: fixed; top: 0; right: 0; width: min(470px, 100%); height: 100%; overflow: auto; background: white; z-index: 9; padding: 24px; box-shadow: -14px 0 32px rgba(16,40,47,.15); transform: translateX(100%); transition: transform .18s ease-out; }
.drawer.open { transform: translateX(0); }
.drawer h2 { margin: 0 0 18px; }
.form-grid { display: grid; gap: 13px; }
.form-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.drawer-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.image-upload { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #f8fbfa; }
.image-upload-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.image-upload-hint, .image-upload small { color: var(--muted); font-size: 12px; }
.file-picker { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 11px; border: 1px solid #b8d9d2; border-radius: 7px; background: white; color: #075e57; font-weight: 750; cursor: pointer; }
.file-picker:hover, .file-picker:focus-within { border-color: var(--teal); background: var(--teal-soft); }
.file-picker.compact { min-height: 30px; padding: 4px 8px; font-size: 11px; white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.image-preview { width: 84px; height: 84px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; background: #edf5f2; }
.photo-cell { display: grid; gap: 7px; min-width: 120px; }
.photo-preview-inline { width: 40px; height: 40px; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; background: #edf5f2; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); background: var(--ink); color: white; border-radius: 8px; padding: 10px 14px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 12; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1023px) {
  .console { grid-template-columns: 68px minmax(0, 1fr); }
  .sidebar { padding: 16px 10px; }
  .brand { justify-content: center; padding: 0 0 22px; }
  .brand > div:not(.brand-mark), .nav-label, .nav button span:not(.nav-icon), .module-slots, .sidebar-footer, .advanced-nav { display: none; }
  .nav button { justify-content: center; padding: 11px 7px; }
  .status-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail-item:nth-child(4), .rail-item:nth-child(5) { border-top: 1px solid var(--line); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screen-detail-grid { grid-template-columns: 1fr; }
  .screen-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-grid, .hr-layout { grid-template-columns: 1fr; }
  .settings-grid .surface:last-child { grid-column: auto; }
}
@media (max-width: 599px) {
  .console { display: block; padding-bottom: 65px; }
  .sidebar { position: fixed; inset: auto 0 0; height: 60px; z-index: 6; padding: 6px 8px; border-top: 1px solid rgba(255,255,255,.14); }
  .brand, .nav-label, .module-slots, .sidebar-footer, .advanced-nav { display: none; }
  .nav { display: flex; justify-content: space-around; gap: 2px; }
  .nav button { flex: 1; min-height: 48px; display: grid; gap: 1px; place-items: center; font-size: 10px; padding: 4px 2px; }
  .nav button span:not(.nav-icon) { display: block; white-space: nowrap; }
  .nav-icon { font-size: 17px; }
  .topbar { position: static; padding: 12px 16px; }
  .context { gap: 7px; }
  .context-item { min-width: 0; max-width: 150px; }
  .context-item strong { max-width: 150px; font-size: 13px; }
  .context-separator { display: none; }
  .content { padding: 20px 14px 28px; }
  .page-heading { display: block; }
  .page-heading .actions { margin-top: 14px; justify-content: flex-start; }
  .status-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail-item:nth-child(3) { border-top: 1px solid var(--line); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ops-grid { grid-template-columns: 1fr; }
  .screen-grid { grid-template-columns: 1fr; }
  .screen-meta-grid { grid-template-columns: 1fr; }
  .screen-state-panel { grid-template-columns: auto 1fr; }
  .screen-state-panel .mono { grid-column: 2; }
  .preview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fake-field { min-width: 0; flex: 1; }
  .metric { padding: 11px; }
  .metric strong { font-size: 20px; }
  .surface-header, .surface-body { padding: 14px; }
  th, td { padding: 10px 8px; }
  .top-actions .icon-button { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
