/* mac-window-chrome: shared app-window shell (traffic lights, titlebar, scrollbars).
   Used by chat.html and kanban.html — see COMP_REGISTRY.md before duplicating any of this. */
*{box-sizing:border-box}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:rgba(255,255,255,.15);border-radius:8px;border:2px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.25);background-clip:padding-box}
::-webkit-scrollbar-track{background:transparent}
html,body{height:100%}
body{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue",sans-serif;
  background:radial-gradient(ellipse at top,#2a2c38,#0d0e12 65%);
  color:#e8e8ea;margin:0;display:flex;align-items:center;justify-content:center;font-size:13px
}
/* embedded: app runs inside the shell's managed window — shell owns titlebar/chrome.
   Apps opt in with: <script>if(self!==top)document.body.classList.add("embedded")</script> */
body.embedded{display:block}
body.embedded .window{width:100%;height:100%;border-radius:0;border:0;box-shadow:none}
body.embedded .titlebar{display:none}
.window{width:min(1200px,96vw);height:min(760px,92vh);display:flex;flex-direction:column;
  background:#16171d;border-radius:12px;overflow:hidden;border:1px solid rgba(255,255,255,.08);
  box-shadow:0 30px 80px rgba(0,0,0,.55),0 2px 0 rgba(255,255,255,.04) inset}
.titlebar{background:linear-gradient(#232430,#1f2029);color:#c9c9cf;padding:10px 12px;font-weight:600;
  border-bottom:1px solid rgba(255,255,255,.06);display:flex;align-items:center;gap:8px;font-size:12.5px;
  -webkit-app-region:drag}
.traffic{display:flex;gap:8px;margin-right:6px}
.traffic span{width:12px;height:12px;border-radius:50%;display:inline-block;box-shadow:inset 0 0 0 .5px rgba(0,0,0,.15)}
.traffic .r{background:#ff5f57}.traffic .y{background:#febc2e}.traffic .g{background:#28c840}
.wtitle{flex:1;text-align:center;margin-right:60px;opacity:.85}
.menubar{display:flex;gap:2px;padding:4px 10px;background:#1a1b22;border-bottom:1px solid rgba(255,255,255,.06);
  font-size:12px;color:#b5b5bd}
.menubar span{padding:3px 8px;border-radius:5px;cursor:default}
.menubar span:hover{background:rgba(255,255,255,.08);color:#fff}
