:root{--ink:#263740;--muted:#64747b;--bg:#e8ece8;--panel:#fffdf9;--stroke:#d7d9d0;--green:#4d9b7d;--blue:#83a5ce;--amber:#dfb16f;--orange:#ce7465;--planned:#c7c3d0;--purple:#9777bb}
*{box-sizing:border-box} body{margin:0;font:13px/1.5 ui-sans-serif,system-ui,Arial,sans-serif;background:var(--bg);color:var(--ink)}
.shell{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:100vh}
header{background:var(--panel);border-bottom:1px solid var(--stroke);padding:13px 17px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.brand .eyebrow,.eyebrow{font-size:10px;letter-spacing:1.4px;text-transform:uppercase;color:#79868b;font-weight:750}
.brand h1{font:700 26px/1.2 Georgia,serif;margin:2px 0 2px}.brand p{font-size:11px;color:var(--muted);margin:0}
.controls{display:flex;gap:6px;align-items:center;flex-wrap:wrap} button,input,select{font:inherit}
button{background:#fff;border:1px solid #cbd2cf;color:var(--ink);border-radius:7px;padding:7px 10px;cursor:pointer}
button:hover{background:#edf2ee} button:disabled{opacity:.38;cursor:default} button.active{background:#2e5862;color:#fff;border-color:#2e5862}
input[type=search]{padding:8px 11px;border-radius:7px;border:1px solid #bac5c4;width:225px;max-width:70vw;background:#fff}
.main{height:calc(100vh - 92px);min-height:630px;display:grid;grid-template-columns:minmax(0,1fr) 338px}
.stage{position:relative;overflow:hidden;min-height:590px;background:#f0f3ef;cursor:grab}
.stage.panning{cursor:grabbing} #cv{width:100%;height:100%;display:block;touch-action:none}
#tip{position:absolute;z-index:5;pointer-events:none;background:#243b45;color:#fff;padding:10px 12px;font-size:12px;line-height:1.48;border-radius:9px;max-width:min(450px,calc(100% - 18px));display:none;box-shadow:0 5px 18px #0004}
#tip strong{display:block;font-size:11px;color:#e3e3d3;letter-spacing:.04em;margin-bottom:5px}
#tip .where{display:block;color:#b7d2dc;font-size:10px;margin-top:6px}
.exact-claim{border-left:4px solid #4d9b7d}.exact-claim p{font-size:12px;line-height:1.62;white-space:pre-wrap}.exact-claim small{font-size:10px;color:#66747c}.edge-explanation{border-left:4px solid #ab7445;background:#f5f3ed;padding:10px;margin-top:12px;border-radius:4px;font-size:12px;line-height:1.55}
.edge-explanation.proof{border-left-color:#936db5}
.why{flex:none;padding:3px 7px;font-size:10px;line-height:1.25;color:#215f75;background:#fff;border:1px solid #b8cbd0;margin-left:auto;border-radius:5px}
.why.active{background:#295967;color:#fff;border-color:#295967}
#inspector .thread-list li{align-items:center;gap:7px}
#inspector .thread-list .count{margin-left:0;flex:none}
#crumb{position:absolute;top:16px;left:16px;padding:6px 10px;background:#fffdf9e9;border:1px solid var(--stroke);border-radius:8px;font-size:11px;color:#51626b;max-width:calc(100% - 30px)}
#key{position:absolute;bottom:12px;left:12px;max-width:calc(100% - 24px);display:flex;flex-wrap:wrap;gap:8px 11px;border:1px solid var(--stroke);background:#fffef9ed;border-radius:9px;padding:10px 12px;font-size:10px;color:#5e6d72;pointer-events:none}
#key i{display:inline-block;width:10px;height:10px;border:1px solid #879096;border-radius:2px;vertical-align:-1px;margin-right:4px} #key span{white-space:nowrap}
.inspector{background:var(--panel);border-left:1px solid var(--stroke);padding:16px;overflow-y:auto}
.inspector h2{font:700 20px/1.25 Georgia,serif;margin:8px 0 9px;overflow-wrap:anywhere}.inspector p{margin:7px 0 12px;font-size:12px;color:#4a5b65;line-height:1.58}
.statgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.metric{background:#f5f6f0;border:1px solid #e0e3da;border-radius:8px;padding:9px}.metric strong{display:block;font-size:19px}.metric span{font-size:10px;color:#64727b}
.card{border:1px solid #e0e2db;background:#f9f8f2;border-radius:8px;padding:11px;margin:10px 0}.card h3{font-size:11px;margin:0 0 6px;text-transform:uppercase;letter-spacing:.7px}.card ul{list-style:none;margin:0;padding:0;max-height:270px;overflow-y:auto}.card li{display:flex;align-items:start;gap:6px;margin:3px 0;font-size:11px}
.jump{background:transparent;border:0;padding:3px 1px;text-align:left;line-height:1.25;font-size:11px;color:#215f75;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.count{margin-left:auto;white-space:nowrap;color:#768489;font-size:10px} .card a{color:#215f75;overflow-wrap:anywhere}
.note{font-size:11px;color:#69777e;line-height:1.55;margin-top:14px;border-top:1px solid var(--stroke);padding-top:10px}
@media(max-width:920px){.main{height:auto;grid-template-columns:1fr}.stage{height:65vh;min-height:520px}.inspector{border-left:0;border-top:1px solid var(--stroke);max-height:42vh}header{padding:11px 13px}}

/* Focus controls never alter verification relationships: they arrange display coordinates only. */
#focusTools{position:absolute;right:14px;top:14px;z-index:4;display:flex;align-items:center;gap:7px;flex-wrap:wrap;max-width:min(620px,calc(100% - 20px));background:#fffdf9ed;border:1px solid #cfd6d1;border-radius:9px;padding:6px 8px;box-shadow:0 2px 9px #30453611}
#focusTools[hidden]{display:none}
#focusTools button{font-size:11px;padding:5px 8px}
#focusTools label{font-size:11px;color:#4c6067;display:inline-flex;align-items:center;gap:5px}
#focusTools input[type=range]{width:86px;accent-color:#2e5862;cursor:pointer}
#focusLayoutName{font-size:11px;color:#415b66;min-width:58px}
#focusLayoutSelect{font-size:12px;font-weight:650;min-width:132px;padding:5px 22px 5px 7px;border:1px solid #aebfb9;border-radius:6px;background:white;color:#233f48}
.stage.dragging-node{cursor:move}
@media(max-width:760px){#focusTools{top:50px;left:12px;right:auto;max-width:calc(100% - 24px)}#focusTools input[type=range]{width:70px}}
