:root {
  --bg: #11151c;
  --panel: #1a202b;
  --panel-2: #232c39;
  --ink: #e7edf5;
  --muted: #93a1b5;
  --line: #2e3949;
  --accent: #4aa3ff;
  --ok: #2ecc71;
  --warn: #f1c40f;
  --err: #e74c3c;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
.sr-only, .sr-only-focusable:not(:focus) {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important; border: 0 !important;
}
body {
  font: 14px/1.45 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
}

#app { display: grid; grid-template-columns: 248px minmax(0, 1fr) 320px; height: 100vh; height: 100dvh; min-width: 0; }

/* Mobile chrome is hidden on desktop. */
#mtopbar, #backdrop, .m-close { display: none; }

.panel { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.panel.right { border-right: none; border-left: 1px solid var(--line); }
.panel h1 { font-size: 14px; margin: 0; padding: 14px 16px; letter-spacing: .3px; }
.panel h1 small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; margin-top: 2px; }
.scroll { overflow-y: auto; overflow-x: hidden; min-height: 0; flex: 1; }
.section-label { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); padding: 12px 16px 6px; }

.experience-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 0 12px 8px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #111720; }
.experience-switch button { min-height: 34px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 700; }
.experience-switch button.active { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(139,196,255,.22); }
.experience-switch button:focus-visible, .glossary summary:focus-visible, .cto-dropzone:focus-within { outline: 2px solid #8bc4ff; outline-offset: 2px; }
.guided-path { margin: 0 12px 10px; padding: 13px; border: 1px solid rgba(74,163,255,.42); border-radius: 11px; background: linear-gradient(145deg, rgba(74,163,255,.12), rgba(74,163,255,.035)); }
.guided-eyebrow { color: #9ecfff; font-size: 9.5px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; }
.guided-path h2, .first-run-card h2 { margin: 4px 0 9px; font-size: 15px; line-height: 1.25; }
.guided-path ol { display: grid; gap: 7px; margin: 0 0 11px; padding: 0; list-style: none; }
.guided-path li { display: grid; grid-template-columns: 24px 1fr; gap: 0 8px; align-items: center; color: var(--muted); }
.guided-path li > span { grid-row: 1 / span 2; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; font: 700 10px/1 ui-monospace, monospace; }
.guided-path li b { color: var(--ink); font-size: 11.5px; }
.guided-path li small { font-size: 10px; line-height: 1.3; }
.guided-path li.active > span { border-color: var(--accent); background: rgba(74,163,255,.2); color: #bfe0ff; }
.guided-path li.complete { opacity: .72; }
.guided-path li.complete > span { border-color: var(--ok); color: #8ee7b4; }
.guided-path li.complete > span::before { content: '✓'; }
.guided-path li.complete > span { font-size: 0; }
.guided-path li.complete > span::before { font-size: 11px; }
.guided-primary { width: 100%; min-height: 40px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: #06223f; font-family: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.guided-mode .assemble, .guided-mode .detail-switch { display: none; }
.guided-mode .palette-item .sub { display: none; }
.guided-mode .palette-tip { position: static; display: block; margin-top: 3px; padding: 0; border: 0; background: transparent; box-shadow: none; }

.glossary { margin: 0 12px 8px; border: 1px solid var(--line); border-radius: 9px; background: rgba(35,44,57,.58); }
.glossary summary { padding: 9px 10px; cursor: pointer; color: #c9d7e7; font-size: 11.5px; font-weight: 700; }
.glossary dl { display: grid; gap: 6px; margin: 0; padding: 0 10px 10px; }
.glossary dl div { display: grid; grid-template-columns: 34px 1fr; gap: 6px; }
.glossary dt { color: #9ecfff; font: 800 10px/1.4 ui-monospace, monospace; }
.glossary dd { margin: 0; color: var(--muted); font-size: 10.5px; }
.glossary a { display: block; margin: 0 10px 10px; color: #9ecfff; font-size: 10.5px; }

.cto-import { border-block: 1px solid var(--line); padding-bottom: 10px; }
.cto-dropzone { position: relative; display: grid; grid-template-columns: 28px 1fr; align-items: center; margin: 0 12px; padding: 10px; border: 1px dashed #53647c; border-radius: 9px; color: var(--ink); cursor: pointer; background: rgba(139,196,255,.035); }
.cto-dropzone.dragging { border-color: var(--accent); background: rgba(74,163,255,.14); }
.cto-dropzone .drop-icon { grid-row: 1 / span 2; font-size: 22px; color: #9ecfff; }
.cto-dropzone strong { font-size: 11.5px; }
.cto-dropzone small { color: var(--muted); font-size: 9.8px; line-height: 1.35; }
.cto-dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cto-import-status { margin: 7px 12px 0; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.cto-import-status strong, .cto-import-status span { display: block; }
.cto-import-status.valid strong { color: #89e5af; }
.cto-import-status.invalid strong { color: #ff9f96; }
.cto-import-status ul { max-height: 110px; overflow: auto; margin: 5px 0 0; padding-left: 16px; }
.cto-import-status li.error { color: #ffaaa2; }
.cto-import-status li.warning { color: #f8dc6a; }

/* Palette */
.palette-group { padding: 3px 0 5px; }
.palette-group h2 { margin: 0; padding: 8px 16px 3px; color: #aab7c8; font-size: 10px; line-height: 1.2; letter-spacing: .9px; text-transform: uppercase; }
.palette-item {
  display: flex; gap: 10px; align-items: center;
  margin: 4px 10px; padding: 9px 11px; border-radius: 9px;
  background: var(--panel-2); border: 1px solid var(--line); cursor: grab; user-select: none;
  transition: border-color .12s, transform .05s;
}
.palette-item:hover { border-color: var(--accent); }
.palette-item:active { transform: scale(.98); }
.swatch { width: 16px; height: 16px; border-radius: 4px; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.palette-item .meta { min-width: 0; }
.palette-item .nm { font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-item .sub { color: var(--muted); font-size: 11px; }
.palette-item .price { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 11px; }
.palette-tip { display: none; position: absolute; left: 10px; right: 10px; z-index: 10; margin-top: 6px; padding: 8px 9px; border: 1px solid #52637b; border-radius: 8px; background: #0d131c; box-shadow: var(--shadow); color: #c1ccda; font-size: 10.5px; white-space: normal; }
.palette-item:hover .palette-tip, .palette-item:focus-visible .palette-tip { display: block; }

/* Canvas */
#stage { position: relative; min-width: 0; overflow: hidden; background: radial-gradient(120% 120% at 50% 0%, #1b2330 0%, #0d1117 70%); }
/* Keep the DPR-scaled drawing buffer separate from the canvas display size. */
#stage canvas { display: block; width: 100%; height: 100%; }
#stage canvas:focus-visible { outline: 3px solid #8bc4ff; outline-offset: -4px; }
.hint {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  background: rgba(20,26,35,.85); border: 1px solid var(--line); color: var(--muted);
  padding: 7px 13px; border-radius: 20px; font-size: 12px; pointer-events: none; white-space: nowrap;
}
.hint-touch { display: none; }
.toolbar { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar button, .controls button {
  background: var(--panel-2); color: var(--ink); border: 1px solid var(--line);
  padding: 7px 12px; border-radius: 8px; cursor: pointer; font-size: 12.5px;
}
.toolbar button:hover, .controls button:hover { border-color: var(--accent); }
.toolbar button:focus-visible, .controls button:focus-visible, .palette-item:focus-visible,
.project-row input:focus-visible, .project-row select:focus-visible {
  outline: 2px solid #8bc4ff; outline-offset: 2px;
}
.detail-switch { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: rgba(20,26,35,.82); }
.detail-switch button { border: 0; background: transparent; padding: 5px 9px; border-radius: 6px; color: var(--muted); }
.detail-switch button:hover { color: var(--ink); border-color: transparent; }
.detail-switch button.active { background: #d7eaff; color: #10263d; font-weight: 700; }
.visual-source {
  position: absolute; left: 12px; bottom: 54px; max-width: min(520px, calc(100% - 24px));
  padding: 7px 10px; border: 1px solid rgba(147,161,181,.28); border-radius: 8px;
  background: rgba(12,16,22,.82); color: var(--muted); font-size: 11px; pointer-events: none;
}
.visual-source b { color: var(--ink); margin-right: 4px; }
.badge { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 8px;
  background: rgba(20,26,35,.85); border: 1px solid var(--line); padding: 7px 13px; border-radius: 20px; font-size: 12.5px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.err { background: var(--err); }

.app-notice { position: absolute; top: 62px; left: 50%; z-index: 18; display: flex; align-items: flex-start; gap: 10px; width: min(620px, calc(100% - 32px)); transform: translateX(-50%); padding: 10px 12px; border: 1px solid #53647c; border-radius: 10px; background: rgba(13,19,28,.96); box-shadow: var(--shadow); color: #d7e2ee; font-size: 12px; }
.app-notice[hidden] { display: none; }
.app-notice.error { border-color: rgba(231,76,60,.72); }
.app-notice.ok { border-color: rgba(46,204,113,.55); }
.app-notice button { flex: none; margin-left: auto; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel-2); color: var(--ink); cursor: pointer; }
.first-run-card { position: absolute; z-index: 12; top: 50%; left: 50%; width: min(430px, calc(100% - 32px)); transform: translate(-50%, -50%); padding: 18px; border: 1px solid rgba(139,196,255,.45); border-radius: 15px; background: linear-gradient(145deg, rgba(28,39,54,.98), rgba(13,18,26,.98)); box-shadow: 0 24px 70px rgba(0,0,0,.5); }
.first-run-card[hidden] { display: none; }
.first-run-card h2 { font-size: 20px; }
.first-run-card p { margin: 0 0 15px; color: #b7c2d0; font-size: 13px; line-height: 1.5; }
.first-run-card > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
.first-run-card button { min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--ink); cursor: pointer; font-weight: 700; }
.first-run-card button.primary { border-color: var(--accent); background: var(--accent); color: #06223f; }

/* Right panel */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 14px; }
.kpi { background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; }
.kpi .k { color: var(--muted); font-size: 11px; }
.kpi .v { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
.project-box { padding: 2px 14px 12px; border-bottom: 1px solid var(--line); }
.project-name-label { display: block; margin: 4px 0 6px; color: var(--ink); font-size: 12px; font-weight: 600; }
#project-name {
  display: block; width: 100%; min-width: 0; min-height: 38px; padding: 8px 9px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--ink);
  font: inherit; font-size: 12.5px;
}
#project-name:focus-visible { outline: 2px solid #8bc4ff; outline-offset: 2px; border-color: #8bc4ff; }
.project-row { display: flex; gap: 7px; margin-top: 7px; }
.project-row input, .project-row select {
  min-width: 0; flex: 1; background: var(--panel-2); color: var(--ink); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 9px; font-size: 12.5px;
}
.project-row button {
  background: var(--panel-2); color: var(--ink); border: 1px solid var(--line);
  padding: 8px 11px; border-radius: 8px; cursor: pointer; font-size: 12.5px; flex: none;
}
.project-row button.primary { background: var(--accent); border-color: var(--accent); color: #06223f; font-weight: 700; }
.project-row button:disabled { opacity: .5; cursor: not-allowed; }
.project-status { min-height: 18px; color: var(--muted); font-size: 11.5px; margin-top: 7px; overflow-wrap: anywhere; }
.findings { padding: 4px 12px 12px; }
.finding { display: flex; width: 100%; gap: 8px; padding: 8px 10px; border-radius: 8px; margin-top: 6px; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); font: inherit; font-size: 12px; text-align: left; }
button.finding { cursor: pointer; }
button.finding:hover { border-color: #8bc4ff; }
button.finding:focus-visible { outline: 2px solid #8bc4ff; outline-offset: 2px; }
.finding.err { border-color: rgba(231,76,60,.5); }
.finding.warn { border-color: rgba(241,196,15,.45); }
.finding.ok { border-color: rgba(46,204,113,.35); }
.finding .ic { flex: none; font-weight: 700; }
.finding.err .ic { color: var(--err); } .finding.warn .ic { color: var(--warn); } .finding.ok .ic { color: var(--ok); }
.finding .msg { display: grid; gap: 3px; color: var(--ink); min-width: 0; }
.finding .msg b { color: var(--ink); font-weight: 700; }
.finding .msg span { color: var(--muted); line-height: 1.4; }
.finding .msg code { width: max-content; max-width: 100%; color: #a9cbed; font-size: 9.5px; white-space: normal; }
.finding-action { align-self: center; flex: none; color: #9ecfff; font-size: 9.5px; font-weight: 700; }

table.bom { width: 100%; border-collapse: collapse; font-size: 12px; }
table.bom th, table.bom td { text-align: left; padding: 5px 14px; border-bottom: 1px solid var(--line); }
table.bom th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
table.bom td.qty { text-align: right; font-variant-numeric: tabular-nums; }

.controls { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.export-controls { display: grid; grid-template-columns: 1fr 1fr; }
.export-controls button { min-height: 38px; }
.export-controls button:disabled { opacity: .48; cursor: not-allowed; }
.controls button.primary { background: var(--accent); border-color: var(--accent); color: #06223f; font-weight: 700; flex: 1; }

/* Selected-instance editor */
.editor { padding: 6px 14px 12px; border-top: 1px solid var(--line); }
.editor .row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.editor label { color: var(--muted); font-size: 12px; flex: 1; }
.editor .glb-row { align-items: flex-start; }
.editor .glb-row input[type=file] { min-width: 0; max-width: 176px; color: var(--muted); font-size: 10px; }
.editor input[type=checkbox] { accent-color: var(--accent); }
.empty { color: var(--muted); font-size: 12px; padding: 14px; text-align: center; }
.empty b, .empty span { display: block; }
.empty b { color: var(--ink); margin-bottom: 4px; }
kbd { background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 1px 5px; font-size: 11px; }

.json-dialog { width: min(860px, calc(100vw - 32px)); height: min(720px, calc(100dvh - 32px)); padding: 0; border: 1px solid #53647c; border-radius: 14px; background: #111720; color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.68); }
.json-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(3px); }
.json-dialog-head, .json-dialog-actions { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.json-dialog-head span { color: #9ecfff; font-size: 9.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.json-dialog-head h2 { margin: 2px 0 0; font-size: 16px; }
.json-dialog-head button { margin-left: auto; width: 36px; height: 36px; }
.json-dialog button { border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--ink); cursor: pointer; }
.json-dialog pre { height: calc(100% - 122px); margin: 0; padding: 16px; overflow: auto; color: #d8e3ee; background: #0c1118; font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.json-dialog-actions { justify-content: flex-end; border-top: 1px solid var(--line); border-bottom: 0; }
.json-dialog-actions button { min-height: 36px; padding: 7px 11px; }

/* ============================================================
   Responsive / mobile
   ============================================================ */
@media (max-width: 860px) {
  body { overflow: hidden; }

  /* Mobile top bar */
  #mtopbar {
    display: flex; align-items: center; gap: 8px;
    position: fixed; top: 0; left: 0; right: 0; height: 52px; z-index: 40;
    padding: 0 10px; background: rgba(17,21,28,.92); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(6px);
  }
  .m-btn {
    background: var(--panel-2); color: var(--ink); border: 1px solid var(--line);
    min-height: 44px; padding: 9px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .m-status { margin: 0 auto; display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }

  /* Stage fills the screen below the bar */
  #app { display: block; height: 100dvh; }
  #stage { position: fixed; inset: 52px 0 0 0; }

  /* Panels become slide-in drawers */
  .panel {
    position: fixed; top: 52px; bottom: 0; width: min(86vw, 360px); z-index: 50;
    transition: transform .22s ease; box-shadow: var(--shadow);
  }
  #panel-left  { left: 0;  transform: translateX(-104%); border-right: 1px solid var(--line); }
  #panel-right { right: 0; transform: translateX(104%);  border-left: 1px solid var(--line); }
  #panel-left.open, #panel-right.open { transform: translateX(0); }

  #backdrop {
    display: block; position: fixed; inset: 52px 0 0 0; z-index: 45;
    background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  #backdrop.open { opacity: 1; pointer-events: auto; }

  /* Close buttons inside panel headers */
  .panel h1 { position: relative; padding-right: 44px; }
  .m-close {
    display: block; position: absolute;
    width: 44px; height: 44px; top: 4px; right: 8px; border-radius: 10px; cursor: pointer;
    background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); font-size: 14px; line-height: 1;
  }

  /* Bigger touch targets */
  .palette-item { padding: 12px 12px; margin: 6px 10px; }
  .toolbar { top: 10px; left: 10px; gap: 6px; flex-wrap: wrap; max-width: 60vw; }
  .toolbar button { min-height: 44px; padding: 9px 12px; font-size: 13px; }
  .detail-switch { order: 2; }
  .detail-switch button { padding: 8px 10px; }
  .badge { display: none; }                 /* status shown in the mobile bar instead */
  .hint { font-size: 11px; padding: 6px 10px; bottom: 10px; max-width: 92vw; white-space: normal; text-align: center; }
  .visual-source { bottom: 82px; max-width: calc(100% - 20px); left: 10px; }
  .controls button { padding: 11px 12px; }
  .palette-tip { position: static; display: block; margin-top: 4px; padding: 0; border: 0; background: transparent; box-shadow: none; color: #93a1b5; }
  .app-notice { top: 64px; width: calc(100% - 20px); }
  .first-run-card { top: calc(50% + 20px); }
}

@media (max-width: 420px) {
  .m-btn { padding: 8px 10px; font-size: 12px; }
  .panel { width: 90vw; }
  .toolbar { max-width: calc(100vw - 20px); }
  #btn-clear, #btn-sample, #btn-rotate, #btn-delete {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  }
  #btn-clear, #btn-delete { min-width: 68px; }
  #btn-sample { min-width: 100px; }
  #btn-rotate { min-width: 76px; }
  .hint-pointer { display: none; }
  .hint-touch { display: block; }
  .toolbar .detail-switch { flex-basis: 100%; width: max-content; }
  .visual-source { font-size: 10px; }
  .first-run-card { padding: 15px; }
  .first-run-card h2 { font-size: 18px; }
  .first-run-card > div:last-child { display: grid; }
  body.guided-mode .guided-path li b,
  body.guided-mode .palette-item .nm,
  body.guided-mode .finding { font-size: 14px; }
  body.guided-mode .guided-path li small,
  body.guided-mode .palette-tip,
  body.guided-mode .finding .msg span,
  body.guided-mode .project-status { font-size: 12.5px; line-height: 1.45; }
}

@media (hover: none), (pointer: coarse) {
  .hint-pointer { display: none; }
  .hint-touch { display: block; }
  .palette-tip { position: static; display: block; margin-top: 4px; padding: 0; border: 0; background: transparent; box-shadow: none; }
}

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

/* ============================================================
   Agentic assembly + framing + facade UI
   ============================================================ */
.assemble { padding: 10px 12px 4px; border-bottom: 1px solid var(--line); }
.assemble-h { font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); margin-bottom: 7px; }
#goal-select, select[data-facade] {
  width: 100%; background: var(--panel-2); color: var(--ink); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 9px; font-size: 12.5px; margin-bottom: 7px;
}
select[data-facade] { width: auto; flex: 1; margin-bottom: 0; }
#btn-assemble {
  width: 100%; background: linear-gradient(180deg, #5b8cff, #4a6fff); border: 1px solid #5b8cff;
  color: #fff; font-weight: 700; padding: 9px 12px; border-radius: 9px; cursor: pointer; font-size: 13px;
}
#btn-assemble:hover { filter: brightness(1.07); }
#btn-assemble:disabled { opacity: .65; cursor: default; }

.toolbar button.active { background: var(--accent); border-color: var(--accent); color: #06223f; font-weight: 700; }

.plan { background: rgba(74,111,255,.09); border: 1px solid rgba(91,140,255,.4); border-radius: 9px; padding: 9px 11px; margin: 4px 12px 8px; }
.plan-h { font-size: 12px; font-weight: 700; color: #9cc0ff; margin-bottom: 5px; }
.plan-step { font-size: 11.5px; color: var(--ink); padding: 2px 0 2px 12px; position: relative; }
.plan-step::before { content: '→'; position: absolute; left: 0; color: var(--muted); }

.spec { font-size: 11.5px; color: var(--muted); padding: 2px 0 8px; }
.spec b { color: var(--ink); }
.model-status { display: flex; gap: 7px; align-items: flex-start; padding: 8px 9px; margin: 0 0 9px; border-radius: 8px; border: 1px solid rgba(139,196,255,.25); background: rgba(74,163,255,.07); color: var(--muted); font-size: 10.5px; line-height: 1.35; }
.model-status b { flex: none; color: #a9d3ff; text-transform: uppercase; letter-spacing: .45px; font-size: 9.5px; }
.wall-readout { display: grid; gap: 1px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--line); }
.wall-readout > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px; padding: 6px 8px; background: var(--panel-2); }
.wall-readout dt { color: var(--muted); font-size: 10px; }
.wall-readout dd { margin: 0; color: var(--ink); font-size: 10.5px; overflow-wrap: anywhere; }
