/* Kelvin house style: dark frame, blue accent, light work area.
   Two thin strips on top of the canvas (tools, cell tabs), one command strip at the bottom. Loaded after app.css. */
:root{--acc:#2360c5;--acc-fg:#fff;--acc-soft:#e3ecfb;--sel:#d3e2fb;--hover:#e6edf7;--bg:#dfe5ec;--panel:#ffffff;--panel2:#f1f4f8;--line:#c3ccd8;--line2:#dde3ea;
  --frame:#131a23;--frame2:#1e2835;--frame-ln:#2a3545;--frame-fg:#e9eef4;--frame-dim:#9fb0c5}
/* frame: top bar */
#top{background:var(--frame);border-bottom:1px solid #000;color:var(--frame-fg);height:40px}
.brand{color:#fff}.brand svg{background:#d4670c;border-radius:5px;padding:3px;color:#fff;width:22px;height:22px}.brand span{color:#fff}
#menubar>button{color:#c9d4e2;font-size:13px}#menubar>button:hover,#menubar>button.open{background:var(--acc);color:#fff}
#ws-switch{background:#0d131b;border:1px solid var(--frame-ln);border-radius:7px;padding:2px}
#ws-switch button{border:0;background:none;color:var(--frame-dim)}#ws-switch button:hover{color:#fff}
#ws-switch button.on{background:var(--acc);color:#fff}
button.ghost{background:#0d131b;border-color:var(--frame-ln);color:var(--frame-dim)}button.ghost:hover{color:#fff}
/* the two thin strips */
#toolbar{background:#f4f6f9;border-bottom:1px solid var(--line);padding:2px 8px}
.tb{height:26px}.tb.on,.tb[aria-pressed="true"]{background:var(--acc-soft);border-color:var(--acc);color:var(--acc)}
#tabs{background:#d5dce5;min-height:30px;padding:4px 8px 0}
/* panels */
.pane-h{background:#e7ecf2;color:#3b4656;border-bottom:1px solid var(--line)}
#left{border-right:1px solid var(--line)}
/* menus: every level is framed, a sub-menu is tinted and carries the accent on its edge */
.pop{border:1px solid #6b7889;border-top:3px solid var(--acc);border-radius:6px;padding:4px;box-shadow:0 14px 34px rgba(15,23,42,.28)}
.pop~.pop{background:#f2f6fd;border-top-width:1px;border-left:3px solid var(--acc)}
.pop~.pop~.pop{background:#e9f0fb}
.mi{border-radius:4px}.mi.sub{font-weight:600}.mi.sub::after{color:var(--acc);font-weight:700}.mi:hover.sub::after,.mi.act.sub::after{color:#fff}
.mi.open,.mi.sub.act{background:var(--acc);color:#fff}
.msep{background:#aab5c4;margin:5px 2px}
.form{border:1px solid #6b7889;border-top:3px solid var(--acc);border-radius:8px}.form-h{background:#e7ecf2}
/* bottom: mouse hints, then one command strip (last message on the left, command line on the right) */
#bottom{background:var(--frame2);color:var(--frame-dim);border-top:1px solid #000;height:24px}
.mb{color:var(--frame-dim)}.mb b{border-color:#44536a;color:#fff}
#ciw{grid-template-rows:auto;grid-template-columns:minmax(0,1fr) minmax(280px,36%);background:var(--frame);border-top:1px solid #000}
#ciw-log{height:26px;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;padding:0 10px;color:var(--frame-dim);white-space:nowrap;line-height:26px}
#ciw-log>*{flex:none;overflow:hidden;text-overflow:ellipsis}
#ciw-log .k{color:#7ddba8}#ciw-log .w{color:#f3c56b}#ciw-log .e{color:#ff9a8f}
#ciw-in{border:0;border-left:1px solid var(--frame-ln);background:#0d131b;color:#8fbcff;height:26px;padding:0 10px}
#ciw-in:focus{background:#0d131b}#ciw-in::placeholder{color:#62738a}
@media (max-width:700px){#ciw{grid-template-columns:1fr}#ciw-log{display:none}}
/* start-up screen: covers the window until the first design is on the canvas */
#boot{position:fixed;inset:0;z-index:999;display:grid;place-items:center;background:#131a23;color:#e9eef4;transition:opacity .3s ease}
#boot.gone{opacity:0;pointer-events:none}
.boot-box{display:grid;justify-items:center;gap:12px}.boot-n{font:700 20px Inter,system-ui,sans-serif;letter-spacing:.02em}
.boot-bar{width:180px;height:3px;border-radius:2px;background:#2a3545;overflow:hidden}.boot-bar i{display:block;width:40%;height:100%;background:#2f7bf0;border-radius:2px;animation:bootrun 1.1s ease-in-out infinite}
.boot-t{font:12.5px Inter,system-ui,sans-serif;color:#9fb0c5}
@keyframes bootrun{0%{transform:translateX(-110%)}100%{transform:translateX(280%)}}
@media (prefers-reduced-motion:reduce){.boot-bar i{animation:none;width:100%}}
.wv-status,.lay-status,.sim-status{background:var(--frame2)!important;color:var(--frame-dim)!important;border-top:1px solid #000!important}
.wv-status *,.lay-status *,.sim-status *{color:inherit}
