/* ============================================================
   arpninja — network whiteboard (/whiteboard/)
   Layout only; tokens and fonts come from /style.css.
   ============================================================ */

.wb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
.wb-ptab #fx-net { display: none; }

.wb { display: flex; flex-direction: column; height: calc(100vh - 58px); height: calc(100dvh - 58px); min-height: 520px; border-bottom: 1px solid var(--line); }

/* ---------- Top bar ---------- */
.wb-top { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: rgba(11, 17, 29, .85); flex-wrap: wrap; }
.wb-title-wrap { display: flex; align-items: center; gap: 10px; flex: 1 1 200px; min-width: 160px; }
.wb-title-wrap .hud-label { color: var(--dim); }
.wb-title { flex: 1; min-width: 0; background: transparent; border: 1px solid transparent; border-radius: var(--r); color: var(--text); font: 600 16px var(--font-head); padding: 6px 8px; }
.wb-title:hover { border-color: var(--line); }
.wb-title:focus { outline: none; border-color: var(--line-hi); background: var(--bg); }
.wb-title::placeholder { color: var(--dim); }
.wb-group { display: flex; align-items: center; gap: 4px; position: relative; }
.wb-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }

.wb-btn { white-space: nowrap; min-width: 32px; height: 32px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); color: var(--muted); font: 600 16px var(--mono); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.wb-btn:hover { color: var(--text); border-color: var(--line-hi); }
.wb-btn:disabled { opacity: .35; cursor: default; border-color: var(--line); color: var(--muted); }
.wb-btn.wb-txt, .wb-btn.wb-zoom { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; padding: 0 11px; }
.wb-btn.wb-zoom { min-width: 58px; }
.wb-btn[aria-pressed="true"] { color: var(--lime); border-color: rgba(var(--lime-rgb), .45); background: rgba(var(--lime-rgb), .07); }
.wb-btn.wb-primary { color: #04121a; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 18px rgba(var(--accent-rgb), .35); }
.wb-btn.wb-primary:hover { color: #04121a; filter: brightness(1.12); }

.wb-more { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 230px; padding: 6px; background: rgba(11, 17, 29, .98); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); display: flex; flex-direction: column; }
.wb-more button { text-align: left; background: none; border: 0; border-radius: var(--r); color: var(--text); font: 500 14px var(--font-body); padding: 9px 12px; cursor: pointer; }
.wb-more button:hover { background: rgba(var(--accent-rgb), .1); color: var(--accent); }
.wb-more button.wb-danger { color: var(--red); }
.wb-more button.wb-danger:hover { background: rgba(var(--red-rgb), .12); color: var(--red); }

/* ---------- Body: side rail + stage ---------- */
.wb-body { flex: 1; display: flex; min-height: 0; }
.wb-side { width: 116px; flex-shrink: 0; padding: 12px 10px; border-right: 1px solid var(--line); background: rgba(11, 17, 29, .7); overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.wb-side .hud-label { color: var(--dim); font-size: 10.5px; margin-top: 6px; }
.wb-side .hud-label:first-child { margin-top: 0; }
.wb-tools, .wb-devices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
.wb-tools { grid-template-columns: repeat(3, 1fr); }

.wb-tool, .wb-dev { aspect-ratio: 1; display: grid; place-items: center; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.wb-tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wb-tool:hover, .wb-dev:hover { color: var(--text); border-color: var(--line-hi); }
.wb-tool.on, .wb-dev.on { color: var(--accent); border-color: var(--accent); background: rgba(var(--accent-rgb), .1); box-shadow: inset 0 0 14px rgba(var(--accent-rgb), .12); }
.wb-dev { aspect-ratio: auto; padding: 5px 2px 4px; gap: 1px; }
.wb-dev canvas { width: 34px; height: 34px; display: block; }
.wb-dev span { font: 600 8.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }

.wb-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.wb-sw { aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--bg); padding: 0; cursor: pointer; box-shadow: 0 0 0 1px var(--line); }
.wb-sw.on { box-shadow: 0 0 0 2px var(--text); }
.c-cyan { background: #00e5ff; } .c-lime { background: #a3ff12; } .c-gold { background: #ffc83d; }
.c-red { background: #ff4d6d; } .c-violet { background: #b38bff; } .c-white { background: #e8f1ff; }

.wb-widths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.wb-w { height: 26px; display: grid; place-items: center; padding: 0 4px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.wb-w i { display: block; width: 100%; background: var(--muted); border-radius: 2px; }
.wb-w.w1 i { height: 1.5px; } .wb-w.w2 i { height: 3px; } .wb-w.w3 i { height: 5px; }
.wb-w.wd i { height: 0; background: none; border-top: 2px dashed var(--muted); border-radius: 0; }
.wb-w.on, .wb-w[aria-pressed="true"] { border-color: var(--accent); background: rgba(var(--accent-rgb), .1); }
.wb-w.on i { background: var(--accent); }
.wb-w[aria-pressed="true"] i { border-top-color: var(--accent); }

/* ---------- Stage ---------- */
.wb-stage { flex: 1; position: relative; min-width: 0; overflow: hidden; background: var(--bg); }
#wb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; cursor: default; }
#wb-canvas.t-draw { cursor: crosshair; }
#wb-canvas.t-pan { cursor: grab; }
#wb-canvas.t-panning { cursor: grabbing; }
#wb-canvas.t-text { cursor: text; }
#wb-canvas.t-move { cursor: move; }
#wb-canvas.t-erase { cursor: cell; }

.wb-editor { position: absolute; z-index: 20; min-width: 90px; max-width: 360px; resize: none; overflow: hidden; background: var(--panel); color: var(--text); border: 1px solid var(--accent); border-radius: 4px; box-shadow: var(--glow); font: 600 13px/1.35 var(--mono); padding: 4px 7px; }
.wb-editor:focus { outline: none; }
.wb-editor.center { text-align: center; transform: translateX(-50%); }

.wb-empty { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: min(420px, 86%); text-align: center; pointer-events: none; }
.wb-empty .hud-label { color: var(--dim); }
.wb-empty h2 { margin: 10px 0 8px; font-size: 30px; }
.wb-empty p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.wb-empty button { pointer-events: auto; }

.wb-help { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(5, 7, 13, .78); padding: 16px; }
.wb-help-card { width: min(520px, 100%); max-height: 100%; overflow: auto; padding: 22px 24px; background: var(--panel); border: 1px solid var(--line-hi); border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.wb-help-card .hud-label { color: var(--accent); }
.wb-help-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 14px 0 18px; font-size: 14px; }
.wb-help-card dt { font: 600 12px var(--mono); color: var(--lime); white-space: nowrap; padding-top: 2px; }
.wb-help-card dd { margin: 0; color: var(--muted); }

.wb-status { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 5px 12px; font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); background: rgba(5, 7, 13, .75); border-top: 1px solid var(--line); pointer-events: none; }
.wb-status span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wb-toast { position: absolute; left: 50%; bottom: 44px; transform: translate(-50%, 12px); z-index: 50; max-width: 86%; padding: 10px 16px; background: var(--panel-2); border: 1px solid var(--line-hi); border-radius: var(--r); box-shadow: var(--glow); color: var(--text); font: 500 14px var(--font-body); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.wb-toast.show { opacity: 1; transform: translate(-50%, 0); }

.wb-about { padding-top: 18px; padding-bottom: 18px; }
.wb-about p { margin: 0; color: var(--dim); font-size: 13.5px; text-align: center; }


/* ---------- Inspector (selection properties) ---------- */
.wb-side { width: 150px; }
.wb-inspector { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.wb-inspector .hud-label { color: var(--accent); margin-top: 0; }
.wb-f { display: flex; flex-direction: column; gap: 3px; }
.wb-f span { font: 600 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.wb-f input, .wb-f select, .wb-in { width: 100%; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; color: var(--text); font: 500 12px var(--mono); padding: 5px 6px; }
.wb-f input:focus, .wb-f select:focus, .wb-in:focus { outline: none; border-color: var(--line-hi); }
.wb-row { display: flex; flex-wrap: wrap; gap: 4px; }
.wb-row .wb-btn { flex: 1 1 auto; height: 28px; font-size: 10px; padding: 0 6px; }
.wb-btn.wb-danger { color: var(--red); }
.wb-btn.wb-danger:hover { border-color: rgba(var(--red-rgb), .5); }
.wb-align { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.wb-align .wb-btn { height: 28px; min-width: 0; padding: 0; }
.wb-align i { display: block; width: 14px; height: 14px; position: relative; }
.wb-align i::before, .wb-align i::after { content: ""; position: absolute; background: currentColor; }
.al-left::before, .al-right::before, .al-hcenter::before { width: 1.5px; height: 14px; top: 0; }
.al-left::before { left: 0; } .al-right::before { right: 0; } .al-hcenter::before { left: 6px; }
.al-left::after, .al-right::after, .al-hcenter::after { height: 5px; top: 4.5px; }
.al-left::after { left: 2px; width: 10px; } .al-right::after { right: 2px; width: 10px; } .al-hcenter::after { left: 2px; width: 10px; }
.al-top::before, .al-bottom::before, .al-vcenter::before { height: 1.5px; width: 14px; left: 0; }
.al-top::before { top: 0; } .al-bottom::before { bottom: 0; } .al-vcenter::before { top: 6px; }
.al-top::after, .al-bottom::after, .al-vcenter::after { width: 5px; left: 4.5px; }
.al-top::after { top: 2px; height: 10px; } .al-bottom::after { bottom: 2px; height: 10px; } .al-vcenter::after { top: 2px; height: 10px; }
.wb-btn.wb-tg[aria-pressed="true"] { color: var(--lime); }

/* ---------- Live badge ---------- */
.wb-livebtn { color: var(--gold); border-color: rgba(var(--gold-rgb), .4); }
.wb-livebtn.on { color: var(--lime); border-color: rgba(var(--lime-rgb), .5); background: rgba(var(--lime-rgb), .07); animation: wbPulse 2.4s infinite; }
@keyframes wbPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--lime-rgb), .35); } 60% { box-shadow: 0 0 0 7px rgba(var(--lime-rgb), 0); } }
.wb-more { min-width: 290px; }

/* ---------- Modal ---------- */
.wb-modal { position: absolute; inset: 0; z-index: 45; display: grid; place-items: center; background: rgba(5, 7, 13, .78); padding: 16px; }
.wb-modal-card { width: min(640px, 100%); max-height: 100%; overflow: auto; padding: 20px 22px; background: var(--panel); border: 1px solid var(--line-hi); border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 12px; }
.wb-modal-title { color: var(--accent); }
.wb-modal-body { display: flex; flex-direction: column; gap: 10px; }
.wb-modal-body .wb-f input, .wb-modal-body .wb-in { font-size: 13px; padding: 8px 10px; }
.wb-modal-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.wb-note { font-size: 12px !important; color: var(--dim) !important; }
.wb-imp { margin: 0; padding: 0 0 0 18px; display: grid; gap: 3px; color: var(--muted); font-size: 13px; line-height: 1.45; max-height: 200px; overflow: auto; }
.wb-imp b { color: var(--text); font-weight: 600; }
.wb-imp-bad, .wb-imp-warn { color: var(--gold); }
.wb-imp-text { min-height: 120px; resize: vertical; white-space: pre; }
.wb-modal-body input[type="file"] { padding: 8px; }
.wb-p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.wb-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.wb-tpl { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--text); cursor: pointer; font: 500 13px var(--font-body); transition: border-color .15s, box-shadow .2s; }
.wb-tpl:hover { border-color: var(--line-hi); box-shadow: var(--glow); }
.wb-tpl b { font-family: var(--font-head); font-size: 15px; }
.wb-tpl span { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.wb-cfgtabs { display: flex; flex-wrap: wrap; gap: 6px; }
.wb-cfgtabs .wb-btn { height: 30px; text-transform: none; letter-spacing: 0; font-size: 12px; }
.wb-cfgtabs .wb-btn small { color: var(--dim); margin-left: 6px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.wb-cfgtabs .wb-btn.on { color: var(--accent); border-color: var(--accent); }
.wb-cfg { margin: 0; max-height: 46vh; overflow: auto; padding: 14px 16px; background: #04060c; border: 1px solid var(--line); border-radius: var(--r); color: #d9ecff; font: 500 12.5px/1.55 var(--mono); white-space: pre; }

/* ---------- Small screens: rail becomes a strip ---------- */
@media (max-width: 760px) {
  .wb { height: calc(100dvh - 57px); }
  .wb-top { padding: 6px 10px; gap: 6px; }
  .wb-title-wrap { flex-basis: 100%; }
  .wb-title-wrap .hud-label, #wb-fit, #wb-snap, #wb-zoom-reset, #wb-ortho, #wb-svg, .wb-sep { display: none; }
  .wb-share { margin-left: auto; }
  .wb-body { flex-direction: column; }
  .wb-side { width: auto; flex-direction: row; align-items: center; gap: 6px; padding: 6px 8px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; }
  .wb-side .hud-label { display: none; }
  .wb-tools, .wb-devices, .wb-swatches, .wb-widths { display: flex; flex-shrink: 0; }
  .wb-inspector { position: absolute; left: 8px; right: 8px; bottom: 32px; z-index: 25; padding: 10px; background: rgba(11, 17, 29, .97); border: 1px solid var(--line-hi); border-radius: var(--r-lg); max-height: 46%; overflow: auto; }
  .wb-body { position: relative; }
  .wb-tool { width: 38px; height: 38px; flex-shrink: 0; }
  .wb-dev { width: 46px; flex-shrink: 0; }
  .wb-dev span { display: none; }
  .wb-sw { width: 24px; height: 24px; flex-shrink: 0; }
  .wb-w { width: 34px; height: 34px; flex-shrink: 0; }
  .wb-devices { padding: 0 6px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .wb-status #wb-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wb-toast, .wb-btn, .wb-tool, .wb-dev { transition: none; }
}

/* ---------- Layers panel ---------- */
.wb-layers { width: 320px; min-width: 0; max-width: calc(100vw - 24px); padding: 10px; gap: 4px; }
.wb-layers .hud-label { margin: 0 2px 4px; color: var(--accent); }
.wb-lay { display: grid; grid-template-columns: 26px 26px minmax(0, 1fr) auto 22px; align-items: center; gap: 4px; padding: 3px 4px; border: 1px solid transparent; border-radius: var(--r); }
.wb-lay.on { border-color: rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .07); }
.wb-layers .wb-lay button { padding: 0; }
.wb-layers .wb-lay-ic { width: 26px; height: 26px; display: grid; place-items: center; background: none; border: 0; border-radius: 4px; color: var(--lime); cursor: pointer; }
.wb-layers .wb-lay-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wb-layers .wb-lay-ic.off { color: var(--dim); opacity: .55; }
.wb-layers .wb-lay-ic[data-act="lock"]:not(.off) { color: var(--gold); }
.wb-layers .wb-lay-name { text-align: left; background: none; border: 0; color: var(--text); font: 500 14px var(--font-body); padding: 4px 6px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-lay.on .wb-lay-name { color: var(--accent); font-weight: 600; }
.wb-lay-n { font: 600 10.5px var(--mono); color: var(--dim); padding: 0 4px; }
.wb-layers .wb-lay-x { width: 22px; height: 22px; background: none; border: 0; color: var(--dim); font-size: 16px; line-height: 1; cursor: pointer; border-radius: 4px; }
.wb-layers button.wb-lay-x:hover { color: var(--red); background: rgba(var(--red-rgb), .12); }
.wb-lay-hint { margin: 6px 2px; color: var(--dim); font-size: 12px; line-height: 1.45; }
.wb-lay-hint b { color: var(--muted); }
.wb-lay-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.wb-layers .wb-lay-actions button { text-align: center; border: 1px solid var(--line); border-radius: var(--r); font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 7px 6px; }
.wb-layers .wb-lay-actions button[data-act="move"] { grid-column: 1 / -1; }
.wb-layers .wb-lay-actions button:disabled { opacity: .4; cursor: default; }
.wb-btn.has-hidden { color: var(--gold); border-color: rgba(var(--gold-rgb), .5); }

/* ---------- Design check panel ---------- */
.wb-lint { width: 360px; min-width: 0; max-width: calc(100vw - 24px); max-height: min(70vh, 620px); overflow-y: auto; padding: 10px; gap: 6px; }
.wb-lint .hud-label { margin: 0 2px 2px; color: var(--accent); }
.wb-lint .wb-lint-item { display: grid; gap: 3px; text-align: left; padding: 9px 11px; border: 1px solid var(--line); border-left: 3px solid var(--dim); border-radius: var(--r); background: rgba(255,255,255,.02); color: var(--muted); font: 400 12.5px/1.45 var(--font-body); cursor: pointer; }
.wb-lint .wb-lint-item:hover { background: rgba(var(--accent-rgb), .06); color: var(--muted); border-color: var(--line-hi); }
.wb-lint .wb-lint-item b { color: var(--text); font-weight: 600; font-size: 13.5px; }
.wb-lint-sev { font: 600 9.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.wb-lint-fix { color: var(--dim); }
.wb-lint .wb-lint-item.error { border-left-color: var(--red); } .wb-lint-item.error .wb-lint-sev { color: var(--red); }
.wb-lint .wb-lint-item.warn { border-left-color: var(--gold); } .wb-lint-item.warn .wb-lint-sev { color: var(--gold); }
.wb-lint-ok { margin: 4px 2px; color: var(--lime); font-weight: 600; font-size: 14px; }
.wb-btn.has-issues { color: var(--gold); border-color: rgba(var(--gold-rgb), .5); }
.wb-btn.has-errors { color: var(--red); border-color: rgba(var(--red-rgb), .55); }

/* ---------- Path trace / failure simulation panel ---------- */
.wb-sim .hud-label { margin-top: 8px; } .wb-sim .hud-label:first-child { margin-top: 0; }
.wb-sim-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; align-items: end; }
.wb-sim-pick select { padding: 7px 6px; }
.wb-sim .wb-sim-pick .wb-btn { text-align: center; padding: 0 8px; border: 1px solid var(--line); color: var(--muted); }
.wb-sim-hops { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 0; counter-reset: hop; }
.wb-sim-hops li { position: relative; padding: 4px 0 4px 26px; font-size: 13.5px; color: var(--text); display: grid; }
.wb-sim-hops li::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--lime); }
.wb-sim-hops li:first-child::before { top: 50%; } .wb-sim-hops li:last-child::before { bottom: 50%; }
.wb-sim-hops li::after { content: ""; position: absolute; left: 4px; bottom: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--panel); border: 2px solid var(--lime); }
.wb-sim-hops li.fw::after { border-color: var(--red); background: var(--red); }
.wb-sim-port { font: 500 10.5px var(--mono); color: var(--dim); letter-spacing: .04em; }
.wb-sim-tag { justify-self: start; font: 600 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.wb-sim-bad { margin: 4px 2px; color: var(--gold); font-size: 13px; line-height: 1.45; }
.wb-sim-bad b { color: var(--red); }
.wb-sim-chips { margin: 2px 0; display: flex; flex-wrap: wrap; gap: 4px; }
.wb-sim .wb-sim-chip { padding: 3px 9px; border: 1px solid rgba(var(--red-rgb), .55); border-radius: 999px; color: var(--red); font: 600 11px var(--mono); background: rgba(var(--red-rgb), .08); }
.wb-sim .wb-lay-actions { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 760px) { #wb-sim-btn, #wb-lint-btn { display: none; } }
.wb-more a { display: block; text-decoration: none; border-radius: var(--r); color: var(--text); font: 500 14px var(--font-body); padding: 9px 12px; }
.wb-more a:hover { background: rgba(var(--accent-rgb), .1); color: var(--accent); }

/* right-click menu */
.wb-ctx { right: auto; min-width: 220px; z-index: 40; }
.wb-ctx button { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 7px 12px; }
.wb-ctx kbd { font: 500 11px var(--mono); color: var(--dim); background: none; border: 0; }
.wb-ctx button.wb-off { color: var(--dim); cursor: default; }
.wb-ctx button.wb-off:hover { background: none; color: var(--dim); }
.wb-ctx-sep { height: 1px; margin: 5px 6px; background: var(--line); }
.wb-ctx-head { padding: 4px 12px 2px; font: 600 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.wb-ctx-devs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px 6px 6px; }
.wb-ctx-devs button { justify-content: center; padding: 7px 4px; font-size: 12.5px; border: 1px solid var(--line); }

/* cable schedule / IP plan tables */
.wb-modal.wb-wide .wb-modal-card { width: min(1080px, 100%); }
.wb-tblwrap { overflow: auto; max-height: 52vh; border: 1px solid var(--line); border-radius: var(--r); }
.wb-tbl { width: 100%; border-collapse: collapse; font: 500 12.5px var(--mono); }
.wb-tbl th { position: sticky; top: 0; background: #0b111d; color: var(--dim); text-align: left; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 10.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.wb-tbl td { padding: 6px 10px; border-bottom: 1px solid rgba(255, 255, 255, .05); color: var(--text); white-space: nowrap; }
.wb-tbl tr.wb-bad td { color: var(--red); }
.wb-p.wb-warn { color: var(--gold); }
.wb-p.wb-sub { margin-top: 16px; color: var(--lime); font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }

/* version history / my shapes lists */
.wb-vlist { display: flex; flex-direction: column; gap: 6px; max-height: 44vh; overflow: auto; }
.wb-vrow { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); }
.wb-vrow > div { flex: 1; min-width: 0; }
.wb-vrow b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-vrow span { display: block; font: 500 11.5px var(--mono); color: var(--dim); }
.wb-ctx-devs button { white-space: nowrap; }
.wb-more { max-height: calc(100vh - 150px); overflow-y: auto; }

/* page tabs, presentation mode, comment tooltip */
.wb-pages { position: absolute; left: 10px; bottom: 36px; z-index: 20; display: flex; gap: 4px; max-width: calc(100% - 20px); overflow-x: auto; padding: 4px; background: rgba(11, 17, 29, .9); border: 1px solid var(--line); border-radius: var(--r-lg); }
.wb-ptab { background: none; border: 1px solid transparent; border-radius: var(--r); color: var(--muted); font: 600 11.5px var(--mono); letter-spacing: .04em; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.wb-ptab:hover { color: var(--text); border-color: var(--line); }
.wb-ptab.on { color: var(--accent); border-color: var(--line-hi); background: rgba(var(--accent-rgb), .08); }
.wb-ptab-add { color: var(--dim); padding: 6px 9px; }
.wb-presenting .wb-stage { position: fixed; inset: 0; z-index: 1000; }
.wb-presenting .wb-empty, .wb-presenting .wb-ctx { display: none; }
.wb-presenting body { overflow: hidden; }
.wb-tip { position: absolute; z-index: 25; max-width: 260px; padding: 8px 10px; background: rgba(20, 16, 4, .96); border: 1px solid var(--gold); border-radius: var(--r); color: var(--text); font-size: 13px; line-height: 1.4; white-space: pre-wrap; pointer-events: none; }
.wb-note-txt { white-space: normal; font-family: var(--font-body); font-size: 12.5px; color: var(--muted); }
.wb-presenting .wb-status { display: none; }
.wb-presenting .wb-pages { bottom: 12px; }
#wb-canvas.t-link { cursor: crosshair; }

/* platform ("Config as") pickers */
.wb-cfgos { display: flex; align-items: center; gap: 10px; margin: 10px 0 8px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.wb-cfgos select { background: var(--bg); color: var(--text); border: 1px solid var(--line-hi); border-radius: var(--r); padding: 6px 8px; font: 500 13px var(--font-body); }
.wb-ctx-os { grid-template-columns: repeat(2, 1fr); }
.wb-ctx-os button.on { color: var(--lime); border-color: var(--lime); }

/* Live link: the one way to share an editable board */
.wb-golive { color: var(--lime); border-color: rgba(var(--lime-rgb), .5); }
.wb-golive:hover { background: rgba(var(--lime-rgb), .08); }
.wb-livelink { font-family: var(--mono); font-size: 13px; color: var(--lime); border-color: rgba(var(--lime-rgb), .5); }
