:root {
  --ok: #2e9e5b; --bad: #d64545; --info: #d99a1e; --none: #9aa3ad;
  --ink: #1d2430; --muted: #5b6573; --line: #e1e5ea; --bg: #ffffff; --soft: #f3f5f8; --accent: #1f6feb;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 13px/1.45 system-ui, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); display: flex; flex-direction: column; }
button, select, input, textarea { font: inherit; color: inherit; }
button { padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
button:hover { border-color: #b9c1cc; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
button:disabled { opacity: .5; cursor: default; }
select, input, textarea { border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; background: #fff; }
h1 { font-size: 15px; margin: 0 0 2px; } h2 { font-size: 13px; margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.muted { color: var(--muted); font-size: 12px; }
code { font-size: 12px; background: var(--soft); padding: 0 3px; border-radius: 3px; }

.top { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.top label { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.top .grow { flex: 1; }
.brand { display: flex; align-items: baseline; gap: 8px; margin-right: 8px; }
.brand b { font-size: 16px; } .brand span { color: var(--muted); font-size: 12px; }
button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

main { flex: 1; min-height: 0; display: grid; grid-template-columns: 330px 1fr 420px; }
aside { overflow: auto; padding: 10px 14px 24px; }
#side { border-right: 1px solid var(--line); }
#detail { border-left: 1px solid var(--line); }
#view { position: relative; min-width: 0; overflow: hidden; }
#view canvas { display: block; }
.viewpane { position: absolute; inset: 0; }
.viewpane[hidden] { display: none; }
#fallbackView { overflow: auto; padding: 16px; background: var(--soft); }
#fallbackView .fb-head { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
#fallbackView figure { margin: 0 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
#fallbackView img { display: block; width: 100%; }
#fallbackView figcaption { padding: 6px 10px; font-size: 12px; color: var(--muted); }
.aps-status { position: absolute; left: 10px; top: 10px; z-index: 5; font-size: 11px; color: var(--muted); background: rgba(255,255,255,.9); padding: 3px 8px; border-radius: 6px; }
.prov.der { background: #eef1f5; color: #4a5563; }
.more { margin: 6px 0; width: 100%; }
.drafts { margin-top: 6px; font-size: 12px; }

.kv { width: 100%; border-collapse: collapse; font-size: 12px; }
.kv td { padding: 1px 0; vertical-align: top; }
.kv td:first-child { color: var(--muted); width: 42%; }
.prov { font-size: 10px; padding: 0 4px; border-radius: 3px; background: var(--soft); color: var(--muted); margin-left: 4px; white-space: nowrap; }
.prov.pub { background: #e6f0ff; color: #1f4f9a; } .prov.est { background: #fff4d6; color: #7a5600; }
.prov.plant { background: #fde8e8; color: #9b2c2c; } .prov.edit { background: #e8f5ec; color: #23673f; }

.scorebox { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-top: 10px; }
.scorebox.pass { border-color: #b7dfc5; background: #f2faf5; }
.scorebox.fail { border-color: #f1c1c1; background: #fdf3f3; }
.scorebox b { display: block; }
.pills { display: flex; gap: 6px; margin: 8px 0 2px; }
.pill { flex: 1; padding: 6px 4px; border-radius: 6px; color: #fff; text-align: center; font-weight: 600; line-height: 1.15; }
.pill small { display: block; font-weight: 400; font-size: 10px; opacity: .9; }
.st-compliant { background: var(--ok); } .st-non_compliant { background: var(--bad); }
.st-not_enough_info { background: var(--info); } .st-none, .st-null { background: var(--none); }

.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.chip { font-size: 11px; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters-row { display: flex; gap: 6px; margin-bottom: 6px; } .filters-row select { flex: 1; min-width: 0; }

.item { display: grid; grid-template-columns: 12px 1fr; gap: 2px 8px; align-items: start; padding: 5px 6px; border-radius: 6px; cursor: pointer; }
.item:hover { background: var(--soft); } .item.sel { background: #e7eefc; }
.item .dot { margin-top: 4px; }
.item .rules { grid-column: 2; display: flex; flex-wrap: wrap; gap: 3px; }
.rtag { font-size: 10px; padding: 0 5px; border-radius: 3px; color: #fff; }
.deckTag { color: var(--muted); font-size: 11px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.legend .dot { margin-right: 4px; vertical-align: -1px; }

.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; color: #fff; font-size: 12px; font-weight: 600; }
.res { border: 1px solid var(--line); border-left: 4px solid; border-radius: 6px; padding: 8px 10px; margin: 8px 0; }
.res.st-compliant { border-left-color: var(--ok); } .res.st-non_compliant { border-left-color: var(--bad); } .res.st-not_enough_info { border-left-color: var(--info); }
.res, .res.st-compliant, .res.st-non_compliant, .res.st-not_enough_info { background: #fff; }
.res .head { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.res .expl { margin-top: 4px; }
blockquote { margin: 6px 0 0; padding: 2px 0 2px 8px; border-left: 3px solid var(--line); color: #39424e; font-size: 12px; font-style: italic; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tag { font-size: 10.5px; padding: 1px 6px; border-radius: 4px; background: #fff4d6; color: #7a5600; }
.tag.grey { background: var(--soft); color: var(--muted); } .tag.blue { background: #e6f0ff; color: #1f4f9a; }
.inputs { margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.gov { background: #f6f8fb; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; margin: 6px 0; font-size: 12px; }
.gov.conflict { background: #fde8e8; border-color: #f3b4b4; color: #7f1d1d; }
.also { border: 1px dashed #b9c1cc; border-radius: 6px; padding: 6px 10px; margin: 6px 0; }
.also b { display: block; }
.na { font-size: 12px; color: var(--muted); margin: 3px 0; }
.coverage { margin-top: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fafbfc; font-size: 12px; }
.badge.manual { background: #fff4e0; color: #8a5300; }
.manual-item { border: 1px solid #f0d9a8; background: #fffaf0; border-radius: 6px; padding: 6px 10px; margin: 6px 0; }
.manual-item.done { border-color: #bfe3cc; background: #f3fbf6; }
.manual-item .head { display: flex; flex-direction: column; gap: 2px; }
.manual-ctl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; font-size: 12px; }
.manual-ctl input:not([type=checkbox]) { flex: 1 1 140px; min-width: 0; }
.note { background: #fffbea; border: 1px solid #f3e3a5; border-radius: 6px; padding: 5px 8px; margin: 6px 0; font-size: 12px; }

.editor { width: 100%; border-collapse: collapse; font-size: 12px; }
.editor td { padding: 3px 4px 3px 0; vertical-align: middle; border-top: 1px solid var(--soft); }
.editor td:first-child { color: var(--muted); }
.editor input[type=number], .editor input[type=text] { width: 100%; min-width: 70px; }
.editor .num { display: flex; gap: 4px; } .editor .num select { width: 56px; }
.editor tr.missing td:first-child { color: var(--info); font-weight: 600; }
.editor tr.changed td { background: #f2faf5; }
.flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: #d7f0df; } to { background: transparent; } }

.scene-label { position: absolute; transform: translate(-50%, -120%); padding: 2px 8px; border-radius: 10px; color: #fff; font-weight: 600; font-size: 12px; pointer-events: none; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.2); display: none; }
.scene-tip { position: absolute; padding: 2px 6px; background: rgba(29,36,48,.88); color: #fff; border-radius: 4px; font-size: 11px; pointer-events: none; display: none; white-space: nowrap; }
.viewbar { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.viewinfo { position: absolute; right: 10px; top: 10px; font-size: 11px; color: var(--muted); background: rgba(255,255,255,.85); padding: 3px 8px; border-radius: 6px; }


@media print { .top, #view, #side { display: none; } main { display: block; } }
@media (min-width: 761px) and (max-width: 1100px) {
  main {
    grid-template-columns: minmax(250px, .8fr) minmax(320px, 1.2fr);
    grid-template-rows: minmax(360px, 1fr) minmax(260px, 35vh);
    grid-template-areas: "side view" "detail detail";
    overflow: auto;
  }
  #side { grid-area: side; }
  #view { grid-area: view; min-height: 360px; }
  #detail { grid-area: detail; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(320px, 45vh) minmax(360px, auto) minmax(260px, auto);
    grid-template-areas: "view" "side" "detail";
    overflow: auto;
  }
  #view { grid-area: view; min-height: 320px; }
  #side { grid-area: side; border-right: 0; border-bottom: 1px solid var(--line); }
  #detail { grid-area: detail; border-left: 0; border-top: 1px solid var(--line); }
}
.accbadge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 12px; background: #e3f4ea; color: #1d6b3d; border: 1px solid #b7dfc5; white-space: nowrap; }
.accbadge.bad { background: #fde8e8; color: #9b2c2c; border-color: #f1c1c1; }

/* Evidence intake layer, styled to match the existing ShipCheck viewer. */
.evidence-layer { position: fixed; z-index: 20; inset: 49px 0 0; overflow: auto; background: #f7f8fa; }
.evidence-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 20px; }
.evidence-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.evidence-heading h1 { margin: 6px 0 4px; font-size: 24px; }
.evidence-heading p { margin: 0; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.evidence-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(290px, .9fr); gap: 16px; align-items: start; }
.evidence-grid aside { display: grid; gap: 14px; }
.evidence-drop { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed #b9c5d3; border-radius: 9px; background: #fff; cursor: pointer; }
.evidence-drop:hover, .evidence-drop.dragover, .evidence-drop:focus { outline: none; border-color: var(--accent); background: #f8fbff; }
.evidence-drop strong { font-size: 15px; }
.evidence-drop small, .upload-link { color: var(--accent); }
#evidenceFiles { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.evidence-card { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.evidence-grid aside .evidence-card { margin: 0; }
.evidence-card h2 { margin: 4px 0 8px; font-size: 14px; }
.evidence-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid var(--soft); }
.evidence-card-head h2 { margin: 0 0 3px; }
.evidence-empty { padding: 18px 8px; color: var(--muted); font-size: 12px; text-align: center; }
.evidence-file { display: flex; align-items: center; gap: 9px; padding: 10px 2px; border-bottom: 1px solid var(--soft); }
.evidence-file:last-child { border: 0; }
.evidence-file-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 6px; color: #1f4f9a; background: #eaf2ff; font-size: 9px; font-weight: 700; }
.evidence-file-icon.drawing { color: #80530a; background: #fff2d6; }
.evidence-file-icon.model { color: #24633f; background: #e8f5ec; }
.evidence-file-meta { min-width: 0; flex: 1; display: grid; gap: 3px; }
.evidence-file-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.evidence-file-meta small, .evidence-card small { color: var(--muted); font-size: 10px; }
.evidence-file button { padding: 2px 8px; }
.evidence-note { margin-top: 10px; padding: 9px; border-radius: 5px; background: #f3f7fd; color: #294465; font-size: 11px; }
.evidence-search { display: flex; gap: 6px; }
.evidence-search input { min-width: 0; flex: 1; padding: 7px; }
.evidence-search button { padding: 6px 10px; }
.evidence-source-result, .review-candidate { padding: 9px 2px; border-top: 1px solid var(--soft); }
.evidence-source-result b, .review-candidate b { color: var(--accent); font-size: 11px; }
.evidence-source-result p, .review-candidate p { margin: 5px 0; font-size: 11px; white-space: pre-wrap; }
.evidence-source-result small, .review-candidate small { color: var(--muted); font-size: 10px; }
.review-card { border-color: #cbdaf0; }
.review-summary { margin: 10px 0; padding: 9px; border-radius: 5px; background: #f3f7fd; color: #294465; font-size: 11px; }
.review-finding { padding: 10px 2px; border-top: 1px solid var(--soft); }
.review-finding h3 { margin: 0 0 5px; font-size: 12px; }
.review-evidence { padding-left: 18px; color: var(--muted); font-size: 11px; }
.review-candidate { margin: 6px 0; padding: 8px; border: 1px solid var(--line); border-radius: 5px; }
.review-candidate p { max-height: 190px; overflow: auto; }
.evidence-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.evidence-footer .muted { font-size: 11px; }
@media (max-width: 760px) { .evidence-grid { grid-template-columns: 1fr; } .evidence-shell { width: calc(100% - 28px); } }
@media (max-width: 520px) { .evidence-footer { align-items: stretch; flex-direction: column; } }

/* Standalone first step: evidence intake. */
.workflow-steps { display: flex; align-items: center; gap: 9px; margin: 0 auto 0 24px; }
.workflow-steps a, .workflow-steps b { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.workflow-steps b { color: var(--ink); font-weight: 650; }
.workflow-steps span { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 50%; font-size: 10px; }
.workflow-steps b span { border-color: var(--accent); background: var(--accent); color: white; }
.workflow-steps i { display: block; width: 24px; height: 1px; background: var(--line); }
.evidence-page { min-height: 100%; background: #f7f8fa; }
.evidence-top { min-height: 54px; padding: 8px max(20px, calc((100% - 1200px)/2)); background: #fff; }
.evidence-top .brand { color: var(--ink); text-decoration: none; }
.evidence-main { display: block; width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 24px; overflow: visible; }
.evidence-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.evidence-heading h1 { margin: 6px 0 5px; font-size: 26px; letter-spacing: -.025em; }
.evidence-heading p { margin: 0; }
.evidence-vessel-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 20px; background: white; font-size: 11px; white-space: nowrap; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--info); }
.evidence-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr); gap: 18px; align-items: start; }
.evidence-side { display: grid; gap: 14px; }
.evidence-drop { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; border: 1.5px dashed #b9c5d3; border-radius: 9px; background: #fff; cursor: pointer; transition: .15s; }
.evidence-drop:hover, .evidence-drop.dragover, .evidence-drop:focus { outline: none; border-color: var(--accent); background: #f8fbff; box-shadow: 0 0 0 3px rgba(31,111,235,.08); }
.evidence-drop strong { font-size: 15px; }
.evidence-drop small { margin-top: 6px; color: var(--muted); font-size: 11px; }
.evidence-upload-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #dce7f6; border-radius: 50%; color: var(--accent); background: #f3f7fd; font-size: 24px; }
.evidence-primary .evidence-card { margin-top: 14px; }
.evidence-card { padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 1px 2px rgba(29,36,48,.025); }
.evidence-card h2 { margin: 4px 0 8px; color: var(--ink); font-size: 14px; letter-spacing: 0; text-transform: none; }
.vessel-card > p { margin: 5px 0 12px; }
.vessel-fact { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--soft); font-size: 11px; }
.vessel-fact span { color: var(--muted); }
.vessel-fact b { text-align: right; font-weight: 600; }
.evidence-note { margin-top: 10px; padding: 9px; border-radius: 5px; background: #f3f7fd; color: #294465; font-size: 11px; line-height: 1.45; }
.source-provider { margin: 3px 0 9px; color: var(--muted); font-size: 10px; }
.evidence-source-results { max-height: 400px; overflow: auto; }
.evidence-footer { margin-top: 18px; }
.evidence-footer > div { display: flex; align-items: center; gap: 8px; }
.button-link { display: inline-block; padding: 7px 11px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: white; text-decoration: none; font-size: 12px; font-weight: 600; white-space: nowrap; }
.button-link:hover { filter: brightness(.95); }
.top .workflow-steps { margin-left: 10px; }
@media (max-width: 900px) { .evidence-top { gap: 10px; } .evidence-top .workflow-steps { order: 2; width: 100%; margin: 0; } .evidence-heading { align-items: flex-start; flex-direction: column; } }
@media (max-width: 700px) { .evidence-grid { grid-template-columns: 1fr; } .evidence-main { width: calc(100% - 28px); padding-top: 24px; } .evidence-footer { align-items: flex-start; flex-direction: column; } .evidence-footer > div { width: 100%; } .evidence-footer button, .evidence-footer .button-link { flex: 1; text-align: center; } }

/* demo run-through */
#caption { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); max-width: 86%; background: rgba(29,36,48,.92); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 16px; font-weight: 500; text-align: center; box-shadow: 0 4px 18px rgba(0,0,0,.25); z-index: 20; }
#caption small { display: block; font-size: 12px; opacity: .75; margin-top: 2px; }
.pulse { animation: pulse 1.4s ease-in-out 2; border-radius: 8px; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(31,111,235,0); } 50% { box-shadow: 0 0 0 4px rgba(31,111,235,.45); } }
.tag.review { background: #e8f5ec; color: #23673f; }
.tag.unconfirmed { background: #fff4d6; color: #7a5200; }
.note.scope { background: #eef4ff; border-color: #c9dbfb; }

/* APS component view overlays */
.aps-label { position: absolute; z-index: 6; transform: translate(-50%, calc(-100% - 14px)); pointer-events: none; padding: 4px 10px; border-radius: 8px; color: #fff; font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.aps-label small { display: block; font-weight: 400; opacity: .9; }
.aps-label::after { content: ''; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: inherit; }
.aps-label.st-non_compliant { background: var(--bad); border-color: var(--bad); } .aps-label.st-not_enough_info { background: var(--info); border-color: var(--info); }
.aps-label.st-compliant { background: var(--ok); border-color: var(--ok); } .aps-label.st-none { background: var(--ink); border-color: var(--ink); }

/* component and rule views */
.ruleRow { padding: 4px 6px; border-radius: 6px; cursor: pointer; display: flex; flex-direction: column; }
.ruleRow:hover { background: var(--soft); } .ruleRow.sel { background: #e7eefc; }
.ruleLink { color: inherit; text-decoration: none; border-bottom: 1px dashed #9aa3ad; } .ruleLink:hover { color: var(--accent); }
.rulecount { font-weight: 600; margin: 8px 0 2px; }
.tag.whatif { background: #e8f5ec; color: #23673f; }
.na.whatif { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
button.tiny { padding: 0 6px; font-size: 11px; }
.kv.comp td:first-child { width: 32%; }

/* traceability panel */
#tracePanel { z-index: 15; background: #fff; display: flex; flex-direction: column; }
#tracePanel[hidden] { display: none; }
.trace-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.trace-head .grow { flex: 1; }
.trace-wrap { overflow: auto; flex: 1; padding: 0 12px 12px; }
table.trace { border-collapse: collapse; font-size: 11.5px; }
table.trace th { position: sticky; top: 0; background: var(--soft); padding: 4px 6px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.trace td { padding: 2px 6px; border-bottom: 1px solid var(--soft); white-space: nowrap; }
table.trace td.part { cursor: pointer; max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
table.trace td.cell { cursor: pointer; color: #fff; text-align: center; font-weight: 600; }
table.trace td.cell.none { background: #fafbfc; cursor: default; }
table.trace td.cell:hover { outline: 2px solid var(--accent); }

/* Demo: no technical loading badge while the story runs; presenter keys under the caption */
.demo-running #localView .aps-status { display: none; }
#caption small.keys { margin-top: 6px; font-size: 11px; opacity: .55; letter-spacing: .02em; }
#caption small.chap { margin: 0 0 4px; font-size: 11px; opacity: .7; text-transform: uppercase; letter-spacing: .06em; }
#caption.top { top: 14px; bottom: auto; } /* demo: above a legend at the bottom of the view */

/* Demo pointer and report preview (only during the demo run-through) */
#demoPointer { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
#demoPointer.ready { transition: transform .72s cubic-bezier(.45,0,.2,1); }
#demoPointer svg { display: block; transform: translate(-3px, -2px); }
#demoPointer .ring { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; border: 3px solid #2563eb; opacity: 0; }
#demoPointer.click .ring { animation: demoClick .5s ease-out; }
@keyframes demoClick { from { transform: scale(.3); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
#reportPreview { position: absolute; inset: 24px 36px 112px; z-index: 15; display: flex; flex-direction: column; background: #fff; border-radius: 10px; box-shadow: 0 12px 40px rgba(16,24,40,.28); overflow: hidden; }
#reportPreview[hidden] { display: none; }
#reportPreview .rp-head { display: flex; gap: 10px; align-items: baseline; padding: 10px 16px; border-bottom: 1px solid #e3e7ee; }
#reportPreview iframe { flex: 1; border: 0; width: 100%; }

/* Loading screen: shown until the first part of the 3D model is on screen (or the view is ready). */
.loading-screen { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: linear-gradient(160deg, #0c2034 0%, #123a5a 100%); color: #e8eef3; transition: opacity .45s ease, visibility .45s ease; }
.loading-screen.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-card { display: grid; justify-items: center; gap: 18px; width: min(380px, 100%); text-align: center; }
.loading-brand { display: grid; gap: 4px; }
.loading-brand b { font-size: 26px; letter-spacing: .02em; color: #fff; }
.loading-brand span { color: #9fb4c6; font-size: 12px; }
.loading-spinner { width: 42px; height: 42px; border: 3px solid rgba(255, 255, 255, .18); border-top-color: #94d9d0; border-radius: 50%; animation: loading-spin .9s linear infinite; }
.loading-screen.is-error .loading-spinner { animation: none; border-color: #e58b50; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
.loading-steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; text-align: left; font-size: 13px; color: #7f97ab; }
.loading-steps li { display: flex; align-items: center; gap: 10px; }
.loading-steps li::before { content: ''; flex: none; width: 10px; height: 10px; border: 2px solid currentColor; border-radius: 50%; box-sizing: border-box; }
.loading-steps li.active { color: #fff; }
.loading-steps li.active::before { border-color: #94d9d0; background: radial-gradient(circle, #94d9d0 35%, transparent 40%); }
.loading-steps li.done { color: #b9cad7; }
.loading-steps li.done::before { border-color: #94d9d0; background: #94d9d0; }
.loading-detail { min-height: 1.4em; margin: 0; color: #9fb4c6; font-size: 12px; }
.loading-detail button { margin-left: 6px; }
@media (prefers-reduced-motion: reduce) { .loading-spinner { animation-duration: 2.4s; } .loading-screen { transition: none; } }
/* Wide screens: keep the top bar on one line (the ground-truth badge shortens instead of pushing buttons down). */
@media (min-width: 1400px) {
  .top { flex-wrap: nowrap; }
  .top .accbadge { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top select { max-width: 330px; }
}
@media (min-width: 1400px) {
  .top button, .top .brand, .top .brand span, .top label, .workflow-steps a, .workflow-steps b { white-space: nowrap; flex: none; }
  .top select { max-width: 300px; }
}

/* ---------- 3D view tools, room labels, escape plan ---------- */
.view-tools { position: absolute; top: 10px; left: 10px; z-index: 6; display: flex; align-items: center; gap: 2px; padding: 3px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 2px 8px rgba(29,36,48,.08); }
.view-tools[hidden] { display: none; }
.view-tools button { border: 0; padding: 4px 9px; border-radius: 5px; font-size: 12px; background: transparent; }
.view-tools button:hover { background: var(--soft); }
.view-tools button.on { background: var(--ink); color: #fff; }
.view-tools i { width: 1px; height: 18px; background: var(--line); margin: 0 3px; }
.view-hint { position: absolute; left: 10px; bottom: 8px; z-index: 5; font-size: 11px; color: var(--muted); background: rgba(255,255,255,.8); padding: 2px 8px; border-radius: 6px; pointer-events: none; }
#threeView[hidden] ~ .view-hint, body.demo-running .view-hint { display: none; }
.room-labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.room-label { position: absolute; transform: translate(-50%, -50%); font-size: 10.5px; line-height: 1.15; font-weight: 600; color: #1d2430; white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff; display: none; }
.room-label.muster { color: #fff; background: #0f9d58; padding: 2px 8px; border-radius: 4px; text-shadow: none; font-size: 11px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.scene-label, .scene-tip { z-index: 4; }
#escapeBox .len { float: right; color: var(--muted); font-variant-numeric: tabular-nums; }
#escList { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; margin-top: 6px; }
.esc-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.swatch { display: inline-block; width: 22px; height: 0; border-top: 4px solid #0f9d58; margin-right: 5px; vertical-align: middle; border-radius: 2px; }
.swatch.secondary { border-top: 3px dashed #1f6feb; }
.res.route.primary { border-left-color: #0f9d58; }
.res.route.secondary { border-left-color: #1f6feb; border-left-style: dashed; }
a.via { color: var(--accent); text-decoration: none; font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; }
a.via:hover { text-decoration: underline; }
a.via.bad { color: var(--bad); font-weight: 600; }
details.assume { margin-top: 8px; font-size: 12px; color: var(--muted); }
details.assume ul { margin: 4px 0 0; padding-left: 18px; }
.check-bad { color: var(--bad); font-size: 12px; margin-top: 4px; }

/* ---------- findings register ---------- */
#registerPanel { z-index: 15; background: #fff; display: flex; flex-direction: column; }
#registerPanel[hidden] { display: none; }
table.register { border-collapse: collapse; font-size: 12px; width: 100%; }
table.register th { position: sticky; top: 0; background: var(--soft); padding: 5px 8px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); z-index: 1; }
table.register td { padding: 5px 8px; border-bottom: 1px solid var(--soft); vertical-align: top; }
table.register td.part { cursor: pointer; } table.register td.part:hover { color: var(--accent); }
table.register tr.warn td { background: #fffaf0; }
.dispCell { min-width: 420px; }
.disp, .dispCell { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.disp { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.disp select, .dispCell select { flex: 1 1 190px; min-width: 0; }
.disp .dispWho, .dispCell .dispWho { flex: 0 1 120px; min-width: 0; }
.disp .dispNote, .dispCell .dispNote { flex: 2 1 200px; min-width: 0; }
.dispNote.missing { border-color: var(--info); background: #fffaf0; }
.disp-warn { flex-basis: 100%; font-size: 11.5px; color: #8a5a00; }
#registerBtn.attention:not(.on) { border-color: #e8c98a; background: #fffaf0; }
/* Inspection header: brand and workflow on the first row, model controls and actions on the second. */
.top:not(.evidence-top) { flex-wrap: wrap; row-gap: 6px; }
.top-break { flex-basis: 100%; height: 0; }
#scenario { max-width: 340px; }
.top #accBadge { display: none; } /* the same figure is in the sidebar; the header keeps to controls */

/* ---------- measuring, geometry line, revision comparison ---------- */
.measure-label { position: absolute; z-index: 5; transform: translate(-50%, -140%); background: #1d2430; color: #fff; padding: 4px 9px; border-radius: 6px; font-size: 12px; pointer-events: none; white-space: nowrap; display: none; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.measure-label b { font-size: 13px; margin-right: 8px; } .measure-label span { opacity: .78; font-size: 11px; }
.geom { font-size: 12px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.compare { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 10px 0; background: #fbfcfd; }
.cmp-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.cmp-group { margin-top: 8px; } .cmp-group > b { font-size: 12px; }
.item.cmp.gone { cursor: default; }

/* ---------- Revit conversion progress ---------- */
.convert h1 { font-size: 14px; word-break: break-all; }
.convert-bar { height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; margin: 10px 0 6px; }
.convert-bar i { display: block; height: 100%; background: var(--accent); transition: width .4s; }
.convert-bar.indeterminate i { width: 30%; animation: convert-slide 1.4s ease-in-out infinite; }
@keyframes convert-slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

/* ---------- AI assistance ---------- */
.ai-btn { border-color: #c7d2fe; background: #eef2ff; color: #3730a3; }
.ai-btn:hover:not(:disabled) { border-color: #818cf8; }
.ai-row { margin-top: 6px; }
.ai-box { margin-top: 6px; padding: 8px 10px; border: 1px solid #c7d2fe; border-radius: 6px; background: #f8f9ff; font-size: 12.5px; }
.ai-box p { margin: 0 0 6px; }
.ai-box ul, .ai-box ol { margin: 2px 0 6px; padding-left: 18px; }
.ai-more { margin-top: 6px; }
.ai-more > summary { cursor: pointer; font-size: 11.5px; color: #4f46e5; }
.ai-h { font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: #3730a3; margin-top: 6px; }
.ai-foot { margin-top: 6px; font-size: 11px; color: var(--muted); border-top: 1px dashed #c7d2fe; padding-top: 4px; }
.ai-wait { margin-top: 6px; font-size: 12px; color: #3730a3; display: flex; align-items: center; gap: 8px; }
.spin { width: 12px; height: 12px; border: 2px solid #c7d2fe; border-top-color: #4f46e5; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.esc-sug { padding: 6px 0; border-bottom: 1px solid #e0e7ff; }
.esc-sug:last-of-type { border-bottom: 0; }
.esc-sug.on { background: #ecfdf5; margin: 0 -10px; padding: 6px 10px; }
.esc-sug .ok-line { color: #15803d; font-size: 12px; margin-top: 3px; }
.esc-sug-actions { display: flex; gap: 6px; margin-top: 4px; }

/* ---------- where the AI works: header indicator, panel, tags ---------- */
.ai-pill { display: inline-flex; align-items: center; gap: 6px; border-color: #a5b4fc; background: linear-gradient(90deg, #eef2ff, #f5f3ff); color: #3730a3; font-weight: 600; white-space: nowrap; }
.ai-pill.off { border-color: var(--line); background: var(--soft); color: var(--muted); font-weight: 500; }
.ai-pill.busy { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, .18); animation: ai-pulse 1.4s ease-in-out infinite; }
.ai-pill.on { background: #3730a3; color: #fff; border-color: #3730a3; }
@keyframes ai-pulse { 50% { box-shadow: 0 0 0 6px rgba(99, 102, 241, .08); } }
#aiPanel { z-index: 15; background: #fff; display: flex; flex-direction: column; }
#aiPanel[hidden] { display: none; }
.ai-map { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.ai-map-col { border-radius: 8px; padding: 10px 12px; font-size: 12.5px; }
.ai-map-col ul { margin: 6px 0 0; padding-left: 18px; }
.ai-map-col.ai { background: #f5f3ff; border: 1px solid #c4b5fd; }
.ai-map-col.det { background: #f0fdf4; border: 1px solid #bbf7d0; }
.ai-tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: #4f46e5; border-radius: 4px; padding: 1px 7px; margin-bottom: 6px; }
.ai-box { border-left: 3px solid #6366f1; }
.ai-btn::first-letter { color: #6366f1; }
@media (max-width: 900px) { .ai-map { grid-template-columns: 1fr; } }

/* ---------- streamed AI answers ---------- */
.caret { display: inline-block; width: 7px; height: 13px; margin-left: 2px; vertical-align: -2px; background: #6366f1; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ai-foot.writing { color: #4f46e5; display: flex; align-items: center; gap: 6px; }
.esc-sug.writing { opacity: .85; }

/* class comments (register tab) */
.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.tabs .tab { border: 0; border-radius: 0; background: #fff; padding: 4px 10px; font-weight: 600; }
.tabs .tab.on { background: var(--ink, #1d2430); color: #fff; }
.cmt { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 8px 0; background: #fff; }
.cmt.warn { border-color: #f3b4b4; background: #fff8f8; }
.cmt-head, .cmt-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cmt-head .grow { flex: 1; }
.cmt-text { margin: 6px 0; white-space: pre-wrap; }
.cmt-links { font-size: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cmt-links input { flex: 1 1 200px; min-width: 0; font-size: 12px; }
.cmt-ev { margin: 6px 0; font-size: 12px; }
.cmt textarea, .cmt-import textarea { width: 100%; box-sizing: border-box; font: inherit; margin: 4px 0; }
.cmt-foot input { flex: 1 1 140px; min-width: 0; }
.cmt-import { border: 1px dashed #b9c1cc; border-radius: 8px; padding: 8px 10px; margin: 8px 0; background: #fafbfc; }
.cmt-draft { white-space: pre-wrap; }
.keel-whatif { margin-top: 3px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; }

/* submission readiness */
.ready { margin-top: 6px; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font-size: 12px; background: #fff; }
.ready.bad { border-color: #f3b4b4; background: #fff8f8; }
.ready.ok { border-color: #bfe3cc; background: #f3fbf6; }
.ready.part { border-color: #f0d49a; background: #fffaf0; }
.ready > summary { cursor: pointer; font-weight: 600; }
.ready ul { margin: 6px 0; padding-left: 16px; }
.ready li.blocker a { color: #9b2c2c; }
.ready li.warning a { color: #8a5300; }
.ready-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ship-more { margin-top: 4px; }
.ship-more > summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.ship-more[open] > summary { margin-bottom: 2px; }

/* ---------- Drawing → 3D: sheet preview over the 3D view, settings and report in the right-hand panel ---------- */
#drawingPanel { z-index: 16; background: #fff; display: flex; flex-direction: column; }
#drawingPanel[hidden], #drawingPanel [hidden] { display: none !important; }
.dw-head b { white-space: nowrap; }
.dw-head #dwInfo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: 40%; }
.dw-body { flex: 1; min-height: 0; display: flex; }
.dw-pages { flex: none; width: 152px; overflow-y: auto; padding: 8px; border-right: 1px solid var(--line); background: var(--soft); display: flex; flex-direction: column; gap: 8px; }
.dw-page { padding: 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; }
.dw-page canvas { width: 132px; height: 92px; border: 1px solid var(--line); }
.dw-page small { color: var(--muted); font-size: 10.5px; }
.dw-page.on { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(31,111,235,.25); color: inherit; background: #fff; }
.dw-stage { position: relative; flex: 1; min-width: 0; overflow: hidden; background: #e9edf2; }
.dw-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; outline: none; }
.dw-canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.dw-drop { position: absolute; inset: 24px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; border: 2px dashed #b9c1cc; border-radius: 12px; background: rgba(255,255,255,.92); color: var(--muted); }
.dw-drop b { color: var(--ink); font-size: 15px; } .dw-drop span { max-width: 460px; }
#drawingPanel.dw-dragging .dw-stage { box-shadow: inset 0 0 0 3px var(--accent); }
#drawingPanel.dw-dragging .dw-drop { border-color: var(--accent); }
.dw-status { position: absolute; z-index: 3; left: 50%; top: 40%; transform: translate(-50%, -50%); width: min(420px, 86%); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; box-shadow: 0 6px 24px rgba(16,24,40,.12); }
.dw-legend { position: absolute; z-index: 3; left: 10px; bottom: 10px; max-width: calc(100% - 20px); display: flex; flex-wrap: wrap; gap: 3px 10px; align-items: center; font-size: 11px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
.dw-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; opacity: .8; }
.dw-legend div { flex-basis: 100%; }
.dw-tip { position: absolute; z-index: 4; max-width: 340px; padding: 4px 8px; border-radius: 6px; background: rgba(29,36,48,.92); color: #fff; font-size: 11.5px; pointer-events: none; white-space: pre-line; }
.dw-globals input[type=number] { width: 90px; } .dw-globals input[type=text] { width: 100%; }
.dw-views-wrap { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
table.dw-views td { padding: 3px 6px; vertical-align: middle; }
table.dw-views td:first-child { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.dw-views select { max-width: 96px; padding: 2px 4px; }
table.dw-views input { width: 100%; min-width: 64px; padding: 2px 4px; }
table.dw-views tr.dw-ignored td { color: var(--muted); }
table.dw-views tr.dw-ignored input { opacity: .55; }
table.dw-views tr.dw-flash td { background: #e7eefc; transition: background .2s; }
.dw-swatch { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.dw-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.dw-steps { list-style: none; padding: 0; margin: 8px 0; font-size: 12.5px; }
.dw-steps li { display: flex; align-items: center; gap: 8px; padding: 3px 0; color: var(--muted); }
.dw-steps .dw-tick { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid var(--line); }
.dw-steps .dw-time { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 11.5px; }
.dw-steps li.active { color: var(--ink); font-weight: 600; }
.dw-steps li.active .dw-tick { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.dw-steps li.done { color: var(--ink); }
.dw-steps li.done .dw-tick { border-color: var(--ok); background: var(--ok); }
.dw-steps li.failed { color: var(--bad); font-weight: 600; }
.dw-steps li.failed .dw-tick { border-color: var(--bad); background: var(--bad); }
.dw-error { background: #fdf3f3; border: 1px solid #f1c1c1; border-radius: 6px; padding: 6px 10px; margin: 6px 0; font-size: 12px; color: #7f1d1d; }
.dw-error .muted { margin-top: 4px; }
/* OCR: the option in the settings and the words read, in the report */
.dw-inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.dw-ocr { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 8px; }
.dw-word { display: inline-block; padding: 1px 7px; border: 1px solid #c9d3df; border-radius: 10px; background: #f5f8fb; font-size: 12px; color: #1f2933; }
.dw-word.warn { border-color: #e6c27a; background: #fdf6e7; }
.dw-assumed { margin: 4px 0; padding: 6px 8px 6px 24px; background: #fff4d6; border: 1px solid #f0d49a; border-radius: 6px; font-size: 12px; color: #6b4a00; }
.dw-measured, .dw-unresolved { margin: 4px 0; padding-left: 18px; font-size: 12px; }
.dw-unresolved button { margin-left: 4px; }
table.dw-decks td, table.dw-decks th { padding: 3px 6px; }
.check-ok { color: var(--ok); font-size: 12px; margin-top: 4px; }
.dw-issues { list-style: none; margin: 4px 0; padding: 0; font-size: 12px; }
.dw-issue { border-left: 3px solid; padding: 3px 8px; margin: 3px 0; border-radius: 0 4px 4px 0; }
.dw-issue.err { border-color: var(--bad); background: #fdf3f3; } .dw-issue.err a { color: #9b2c2c; }
.dw-issue.warn { border-color: var(--info); background: #fffaf0; } .dw-issue.warn a { color: #8a5300; }
.dw-legend button { margin-left: 4px; }
/* Drawing panel open: the findings list folds away so the sheet gets the width (restored on close). */
body.dw-open #side { display: none; }
body.dw-open main { grid-template-columns: minmax(0, 1fr) 420px; }
@media (min-width: 761px) and (max-width: 1100px) {
  body.dw-open main { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(360px, 1fr) minmax(240px, 38vh); grid-template-areas: "view" "detail"; }
}
@media (max-width: 760px) {
  body.dw-open main { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(320px, 55vh) minmax(320px, auto); grid-template-areas: "view" "detail"; }
  .dw-head { gap: 6px; } .dw-head #dwInfo { display: none; }
}
body.dw-open #detail { overflow: auto; overscroll-behavior: contain; }
.dw-check { margin: 4px 0; padding: 6px 8px 6px 24px; background: #fffaf0; border: 1px solid #f0d9a8; border-radius: 6px; font-size: 12px; }
.dw-check li + li, .dw-assumed li + li { margin-top: 3px; }
.dw-src { font-size: 12px; margin: 1px 0; } .dw-src.off { color: var(--bad); }
.dw-sym { display: inline-block; width: 16px; height: 10px; margin-right: 4px; vertical-align: -1px; border-radius: 2px; }
.dw-sym.door { border: 2px solid #d64545; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; height: 10px; width: 10px; }
.dw-sym.opening { height: 0; border-top: 3px dashed #0f9d58; width: 14px; vertical-align: 3px; }
.dw-sym.stair { background: repeating-linear-gradient(90deg, #7c3aed 0 1px, rgba(124,58,237,.35) 1px 4px); }
.dw-sym.marker { width: 12px; height: 12px; border-radius: 50%; background: #b45309; }
.dw-legend span { white-space: nowrap; }
/* Views table: compact columns so deck names and elevations stay readable in the 420 px side panel. */
table.dw-views td:first-child { max-width: 92px; }
table.dw-views select { max-width: 78px; }
table.dw-views td:nth-child(4) input { width: 66px; min-width: 0; }
table.dw-views td:nth-child(3) input { min-width: 0; }
table.dw-views th, table.dw-views td { padding: 3px 4px; }
table.dw-views td:first-child { max-width: 84px; }
table.dw-views td:last-child { white-space: nowrap; }
/* Values from a drawing: confirm each one after checking it against the drawing (finding card) */
.ic { margin-top: 6px; padding: 6px 8px; border: 1px dashed #e0c36a; border-radius: 6px; background: #fffaf0; font-size: 12px; }
.ic-head { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #7a5200; margin-bottom: 4px; }
.ic-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 0; }
.ic-row button { white-space: nowrap; flex: none; }
.ic-row.ok { color: #1d6b3d; }
.ic-who input { width: 100%; margin-top: 4px; box-sizing: border-box; }
.ic-who input.need { outline: 2px solid #b42318; }
.rtag.pre { background: #fff4d6; color: #7a5200; }
