/* ============================================================
   AMBER — the design system (2026-09-18)
   One file for every Amber page, and the source the suite apps copy
   (SUITE.md §3). Tesla-legible: dark surfaces, one sans (Inter) at
   generous sizes, a plain one-line menu (name + chevron), status in
   colour. PP Pangaia survives only in the "amber" wordmark.
   Load:  <link rel="stylesheet" href="/ui/amber.css">
          + Google Fonts Inter 400/500/600/700
   ============================================================ */
@font-face{font-family:"PP Pangaia";src:url("/fonts/PPPangaia-Ultralight.woff2") format("woff2");font-weight:100 500;font-style:normal;font-display:swap}
:root{
  /* surfaces */
  --bg:#111615;--rail:#0B0F0E;--surface:#1A201E;--surface-2:#232A28;--hover:#262E2B;
  --line:rgba(242,238,230,.08);--dash:rgba(242,238,230,.18);
  /* type */
  --text:#F2EEE6;--muted:#9AA39E;--faint:#68716C;
  /* status */
  --ok:#6FBF8B;--warn:#E2B263;--hot:#E57B4F;--sage:#91AA98;
  /* building markers (the old whiteboard pens), brightened for dark ground */
  --mk-green:#6FBF8B;--mk-blue:#7FA8DA;--mk-red:#E57B4F;
  --sans:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --wordmark:"PP Pangaia",Georgia,serif;
  --r:16px;--r-sm:12px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
html,body{background:var(--bg);overflow-x:hidden}
body{font-family:var(--sans);color:var(--text);font-size:16px;line-height:1.45;-webkit-font-smoothing:antialiased;font-feature-settings:"tnum" 1}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font-family:inherit;color:inherit}
button{cursor:pointer}
.hidden{display:none!important}
/* the stale-tab bar (/ui/fresh.js): gold across the top when a new build is
   waiting, so nobody has to guess at a refresh */
#amberUpd{position:fixed;top:0;left:0;right:0;z-index:200;background:var(--warn);color:#15110A;
  display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;
  padding:10px 16px calc(10px + env(safe-area-inset-top));font-size:14.5px;font-weight:600}
#amberUpd button{border:0;border-radius:999px;background:#15110A;color:var(--warn);
  font-family:inherit;font-size:13.5px;font-weight:700;padding:7px 14px;cursor:pointer}
#amberUpd button.later{background:transparent;color:#15110A;font-weight:600;padding:7px 4px;text-decoration:underline}
body.has-upd{padding-top:44px}

.wordmark{font-family:var(--wordmark);font-weight:300;line-height:1;color:var(--text)}
/* 2026-09-23 — the wordmark is the way home: in a suite app it leaves for
   Amber's dashboard, here it is the dashboard. */
a.wordmark.homelink{text-decoration:none;cursor:pointer;display:inline-block}
a.wordmark.homelink:hover{opacity:.72}

/* ---------- controls ---------- */
.a-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:var(--r-sm);padding:13px 18px;
  font-size:15px;font-weight:600;background:var(--surface-2);color:var(--text);white-space:nowrap}
.a-btn:hover{background:var(--hover)}
.a-btn.primary{background:var(--text);color:#111615}
.a-btn.primary:hover{opacity:.9;background:var(--text)}
.a-btn.danger{background:rgba(229,123,79,.16);color:var(--hot)}
.a-input,.a-select{width:100%;border:1px solid transparent;border-radius:var(--r-sm);background:var(--surface);padding:13px 16px;
  font-size:16px;color:var(--text);outline:0}
.a-input::placeholder{color:var(--faint)}
.a-input:focus,.a-select:focus{border-color:var(--sage)}
.a-label{display:block;font-size:13px;font-weight:600;color:var(--muted);margin-bottom:6px}
.a-card{background:var(--surface);border-radius:var(--r);padding:20px 22px}
.a-pill{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;border-radius:999px;padding:5px 12px;background:var(--surface-2);white-space:nowrap}
.a-pill.ok{background:rgba(111,191,139,.15);color:var(--ok)} .a-pill.warn{background:rgba(226,178,99,.16);color:var(--warn)} .a-pill.hot{background:rgba(229,123,79,.16);color:var(--hot)}

/* ============================================================
   The menu — list rows, Tesla-style (drawn by /ui/menu.js)
   ============================================================ */
.a-shell{display:grid;grid-template-columns:288px minmax(0,1fr);min-height:100vh}
.a-pane{min-width:0}
.a-side{background:var(--rail);padding:28px 14px 0;position:sticky;top:0;height:100vh;overflow-y:auto;display:flex;flex-direction:column;border-right:1px solid var(--line)}
.a-side .wmrow{display:flex;align-items:center;justify-content:space-between;padding:0 12px 20px}
.a-side .wmrow .wordmark{font-size:36px}
.a-side .close{display:none;background:var(--surface);border:0;border-radius:var(--r-sm);width:44px;height:44px;align-items:center;justify-content:center}
.a-side .close svg{width:20px;height:20px}
.a-side .grp{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);padding:18px 12px 6px}
/* 2026-09-22 — one line, just the name: no icon, no second line. */
.a-row{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:var(--r-sm);color:var(--text);min-height:44px}
.a-row .tx{flex:1;min-width:0;font-weight:600;font-size:16.5px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.a-row .chev{width:16px;height:16px;flex:0 0 16px;color:var(--faint)}
.a-row:hover{background:var(--hover)}
.a-row.active{background:var(--surface-2)}
.a-row.unmade{opacity:.38;pointer-events:none}
.a-row .badge{background:var(--warn);color:#15110a;font-size:12px;font-weight:700;border-radius:999px;padding:1px 8px}
.a-side .foot{margin-top:auto;padding:16px 12px calc(20px + env(safe-area-inset-bottom));border-top:1px solid var(--line);display:flex;align-items:center;gap:12px}
.a-side .foot .av{width:40px;height:40px;border-radius:50%;background:var(--surface-2);display:flex;align-items:center;justify-content:center;font-weight:600;font-size:14px;flex:0 0 40px}
.a-side .foot .who{display:flex;flex-direction:column;min-width:0;flex:1}
.a-side .foot b{font-weight:600;font-size:15px}
.a-side .foot span{font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.a-side .foot .out{background:none;border:0;font-size:13px;font-weight:600;color:var(--muted);padding:4px 0 0;text-align:left}
.a-side .foot .out:hover{color:var(--text)}
.a-scrim{display:none}
.a-mbar{display:none}

@media(max-width:900px){
  .a-shell{display:block}
  .a-mbar{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:30;
    background:rgba(17,22,21,.92);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
    padding:calc(10px + env(safe-area-inset-top)) 18px 10px;border-bottom:1px solid var(--line)}
  .a-mbar .wordmark{font-size:28px}
  .a-mbar button{background:var(--surface);border:0;border-radius:var(--r-sm);width:44px;height:44px;display:flex;align-items:center;justify-content:center}
  .a-mbar button svg{width:22px;height:22px}
  .a-side{position:fixed;top:0;left:0;bottom:0;width:min(88vw,360px);z-index:50;height:100dvh;
    padding:calc(16px + env(safe-area-inset-top)) 12px 0;transform:translateX(-102%);transition:transform .25s ease}
  .a-side .close{display:flex}
  .a-scrim{position:fixed;inset:0;z-index:45;background:rgba(0,0,0,.55);opacity:0;pointer-events:none;transition:opacity .25s ease;display:block}
  body.menu-open .a-side{transform:none}
  body.menu-open .a-scrim{opacity:1;pointer-events:auto}
  body.menu-open{overflow:hidden}
}
