/* Colors: light by default; dark follows the device ("Automatic") unless the ☰ menu picks Light or Dark.
   --accent-l / --accent-d come from the shop's branding (set once at setup, /brand.json). */
:root { --accent-l:#3A6B8C; --accent-d:#6FA3C7;
        --bg:#f5f3ef; --ink:#1d1b18; --muted:#6b655c; --card:#fcf6e8; --line:#ddd6cb; --chip:#e8e2d8;
        --accent:var(--accent-l); --on-accent:#fbf3dc;
        --go:#2f7d4f; --stop:#9b2c2c; --pause:#8a6d1f; --on-go:#fbf3dc; --on-stop:#fbf3dc; --on-pause:#fbf3dc;
        --warn-bg:#f6dcdc; --warn-ink:#8a2323; --banner-bg:#fff4d6; --banner-line:#e8d38c;
        --scrim:rgba(0,0,0,.25); --scrim-strong:rgba(0,0,0,.45); --shadow:0 10px 30px rgba(0,0,0,.25);
        --font:-apple-system, system-ui, sans-serif; --border-w:1px; --radius:14px; --radius-sm:10px;
        color-scheme:light; }
/* Every color, font and corner the pages use is a token above (2026-10-03, themes: the "Omarchy" look swaps them
   — web/vibe-omarchy.css + the theme's palette). Never write a color outside these blocks. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg:#161514; --ink:#f1ede6; --muted:#a59d90; --card:#211f1d; --line:#3a3632;
        --chip:#34302c; --accent:var(--accent-d); --on-accent:#161514; --banner-bg:#3b3220; --banner-line:#5b4b25;
        color-scheme:dark; }
}
:root[data-theme="dark"] { --bg:#161514; --ink:#f1ede6; --muted:#a59d90; --card:#211f1d; --line:#3a3632;
        --chip:#34302c; --accent:var(--accent-d); --on-accent:#161514; --banner-bg:#3b3220; --banner-line:#5b4b25;
        color-scheme:dark; }

* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--ink); font:18px/1.35 var(--font); }
main { max-width:1100px; margin:0 auto; padding:16px 16px 84px; }
.hidden { display:none !important; }
button { font:inherit; border:0; border-radius:var(--radius); padding:14px 18px; background:var(--chip); color:var(--ink);
         min-height:56px; cursor:pointer; }
button.go { background:var(--go); color:var(--on-go); } button.stop { background:var(--stop); color:var(--on-stop); }
button.pause { background:var(--pause); color:var(--on-pause); } button.brand { background:var(--accent); color:var(--on-accent); }
input:focus-visible, button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

/* one-line text that shrinks to fit (app.js fitText), then ends in "…" */
.fit { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }

/* the shop's logo: light-mode and dark-mode versions, only the right one shows */
.hlogo img, .llogo img { display:block; width:auto; }
.hlogo img { height:52px; }
img.logo-d { display:none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) img.logo-l { display:none; }
                                       :root:not([data-theme="light"]) img.logo-d { display:block; } }
:root[data-theme="dark"] img.logo-l { display:none; } :root[data-theme="dark"] img.logo-d { display:block; }
.llogo { display:flex; justify-content:center; margin:8px 0 18px; }
.llogo img { height:min(26vh, 200px); }
.wordmark { font-weight:800; color:var(--accent); letter-spacing:.02em; }
.hlogo.wordmark { font-size:18px; }
.llogo.wordmark { font-size:32px; }

/* header: logo · who's signed in · ☰ */
header { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; margin-bottom:14px; }
header .hlogo { justify-self:start; }
header h1 { margin:0; font-size:22px; text-align:center; max-width:60vw; }
.menu-btn { justify-self:end; min-height:48px; min-width:52px; padding:6px 12px; font-size:24px; line-height:1;
            background:transparent; color:var(--ink); }
.menu-wrap { position:fixed; inset:0; background:var(--scrim); z-index:20; }
.menu { position:absolute; top:12px; right:12px; width:min(300px, calc(100vw - 24px)); background:var(--card);
        border:1px solid var(--line); border-radius:var(--radius); padding:6px; display:grid; gap:4px;
        box-shadow:var(--shadow); }
.mitem { text-align:left; background:transparent; min-height:52px; padding:12px 14px; font-size:18px; }
.mitem:hover { background:var(--chip); }
.mitem.quiet { color:var(--muted); border-top:1px solid var(--line); border-radius:0 0 10px 10px; }

/* department tabs: an even grid that reflows to the screen */
.tabs { display:grid; grid-template-columns:repeat(auto-fit, minmax(104px, 1fr)); gap:8px; margin-bottom:14px; }
.tabs button { min-height:46px; padding:8px 6px; font-size:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tabs button.on { background:var(--accent); color:var(--on-accent); font-weight:600; }
.tabs button.htab { grid-column:1 / -1; }

/* job cards: title · what the piece is · (small, italic) artist and due date */
.list { display:grid; gap:10px; }
.row { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:14px 16px; text-align:left;
       display:grid; gap:4px; width:100%; min-height:68px; align-content:center; }
.row .rtitle { font-weight:700; font-size:20px; }
/* the piece's avatar photo on a job card and the brief (owner 6 Oct) */
.row.withpic { display:grid; grid-template-columns:64px 1fr; column-gap:14px; }
.row.withpic .ravatar { grid-row:1 / 4; width:64px; height:64px; object-fit:cover; border-radius:var(--radius-sm); border:1px solid var(--line); align-self:center; }
.row.withpic .rtitle, .row.withpic .desc, .row.withpic .rmeta { grid-column:2; }
.dossier .bhdr { display:flex; gap:14px; align-items:center; margin-bottom:6px; }
.dossier .bhdr > div { min-width:0; } .dossier .bhdr p { margin:0; }
.dossier .bavatar { width:110px; height:110px; object-fit:cover; border-radius:var(--radius-sm); border:1px solid var(--line); flex-shrink:0; cursor:pointer; }
.row .desc { font-size:16px; color:var(--ink); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
             overflow:hidden; }
.row .rmeta { display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:14px;
              font-style:italic; min-width:0; margin-top:2px; }
.row .rmeta span:first-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.row .rmeta span:last-child { flex-shrink:0; }
.row.brand { background:var(--accent); border-color:var(--accent); color:var(--on-accent); }
h2 { font-size:16px; color:var(--muted); margin:20px 0 8px; text-transform:uppercase; letter-spacing:.04em; }
input[type=search] { width:100%; font:inherit; padding:14px; border-radius:var(--radius); border:1px solid var(--line);
                     background:var(--card); color:var(--ink); }
.searchbar { margin-bottom:10px; }
.results:not(:empty) { margin-bottom:14px; }

/* in a job */
.job { text-align:center; padding-top:8px; }
.job .piece { font-size:34px; font-weight:700; } .job .who { color:var(--muted); font-size:20px; }
.timer { font-size:clamp(56px, 17vw, 88px); font-variant-numeric:tabular-nums; margin:16px 0 6px; letter-spacing:.02em; }
.sub { font-size:20px; color:var(--muted); margin:0 0 18px; font-variant-numeric:tabular-nums; }
.actions { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:12px; margin-top:12px; }
button.big { font-size:24px; min-height:84px; }
.actions.three { grid-template-columns:repeat(3, 1fr); }
.shiftbar { margin-bottom:16px; }
/* owner 7 Oct: planned jobs — three folding sections; a job planned for someone else is dimmed and marked */
button.sect { width:100%; text-align:left; display:flex; gap:10px; align-items:center; background:none; border:0; border-bottom:1px solid var(--line);
  padding:12px 4px; margin:14px 0 6px; font:inherit; font-weight:700; font-size:19px; color:var(--ink); }
button.sect .chev { color:var(--muted); width:18px; }
.row.dim { opacity:.55; }
.row .planned { display:block; font-size:14px; color:var(--muted); font-style:italic; }
.row.coming { opacity:.8; cursor:default; }
.thumbs img.pdfthumb { border:1px solid var(--line); background:var(--card); }           /* a drawing's first page */
.dossier.pages img.page { display:block; width:100%; margin:0 0 12px; border:1px solid var(--line); background:var(--card); }              /* owner 7 Oct: a little room before the search box */
@media (max-width:600px) { .actions.three.shiftbar { grid-template-columns:repeat(3, 1fr); } }
.actions.three button.big { font-size:20px; min-height:64px; padding:10px 6px; }
.actions.four { grid-template-columns:repeat(4, 1fr); }
.actions.four button.big { font-size:18px; min-height:64px; padding:10px 4px; }

/* the last Complete, undoable for 5 minutes */
.undo { display:flex; align-items:center; gap:10px; background:var(--card); border:1px solid var(--go);
        border-radius:var(--radius); padding:8px 8px 8px 14px; margin-bottom:10px; }
.undo span { flex:1; color:var(--go); font-weight:600; }
.undo button { min-height:44px; padding:8px 16px; font-size:16px; flex-shrink:0; }

/* sign in */
.pad { display:grid; grid-template-columns:repeat(3, minmax(80px, 110px)); gap:12px; justify-content:center; margin:24px 0; }
.pad button { font-size:32px; min-height:84px; }
.pad button.go { background:var(--accent); color:var(--on-accent); }
.pin { font-size:40px; letter-spacing:.4em; text-align:center; min-height:56px; }

.banner { background:var(--banner-bg); border-bottom:var(--border-w) solid var(--banner-line); padding:12px 16px; text-align:center; }
.toast { position:fixed; left:50%; bottom:72px; transform:translateX(-50%); background:var(--ink); color:var(--bg);
         padding:14px 20px; border-radius:var(--radius); max-width:90%; z-index:30; }
.modal { position:fixed; inset:0; background:var(--scrim-strong); display:flex; align-items:center; justify-content:center; z-index:20; }
.modal > div { background:var(--card); border-radius:var(--radius); padding:24px; width:min(520px, 92%); }
.hours div { display:flex; justify-content:space-between; font-size:22px; padding:8px 0; border-bottom:1px solid var(--line); }
.foot { position:fixed; left:0; right:0; bottom:0; display:flex; justify-content:center; gap:32px;
        padding:10px 16px calc(10px + env(safe-area-inset-bottom)); font-size:15px; color:var(--muted);
        background:var(--bg); border-top:1px solid var(--line); font-variant-numeric:tabular-nums; }
.foot b { color:var(--ink); font-weight:600; }

/* phones */
@media (max-width: 640px) {
  main { padding:12px 12px 84px; }
  header { gap:8px; }
  .hlogo img { height:44px; }
  header h1 { font-size:19px; }
  .tabs { grid-template-columns:repeat(3, 1fr); }
  .tabs button { font-size:15px; min-height:42px; }
  .row .rtitle { font-size:18px; }
  .row .desc { font-size:15px; }
  .row .rmeta { font-size:13px; }
  .job .piece { font-size:28px; } .job .who { font-size:17px; }
  .sub { font-size:17px; }
  .actions { grid-template-columns:repeat(2, 1fr); gap:10px; }
  button.big { font-size:20px; min-height:68px; }
  .actions.three button.big { font-size:17px; min-height:58px; }
}
/* PTO in "My hours & PTO" */
.hours .pto { border-top:2px solid var(--line); margin-top:6px; }
.hours .pto-note { color:var(--muted); font-size:16px; margin:6px 0 14px; }
/* request time off */
.timeoff-form label { display:flex; justify-content:space-between; align-items:center; gap:10px; margin:8px 0; font-size:18px; }
.timeoff-form input, .timeoff-form select { font:inherit; padding:10px; border-radius:var(--radius-sm); border:1px solid var(--line);
  background:var(--card); color:var(--ink); min-height:48px; }
.timeoff-form input[type=text] { width:100%; margin-top:6px; }
.req { display:flex; align-items:center; gap:10px; padding:8px 0; border-top:1px solid var(--line); font-size:16px; }
.req span { flex:1; }
.req-pending { color:var(--pause); } .req-approved { color:var(--go); } .req-declined, .req-cancelled { color:var(--muted); }
.small-btn { min-height:40px; padding:6px 12px; font-size:15px; }
.timeoff-form select { max-width:68%; }
/* job screen: Pick a job under the three buttons */
.pickjob { display:block; width:100%; margin-top:12px; background:transparent; color:var(--muted); border:1px dashed var(--line); }
/* photos, notes, dossier */
.thumbs { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.thumbs img { width:96px; height:96px; object-fit:cover; border-radius:var(--radius-sm); border:1px solid var(--line); cursor:pointer; }
.timeoff-form textarea { width:100%; font:inherit; padding:12px; border-radius:var(--radius-sm); border:1px solid var(--line);
  background:var(--card); color:var(--ink); }
.dossier { max-height:92vh; overflow:auto; text-align:left; }
.modal > div.dossier { width:min(980px, 96%); }        /* owner 6 Oct: the brief pane is bigger; its buttons sit side by side */
.modal-x { position:sticky; top:0; float:right; margin:0 0 6px 10px; box-sizing:border-box; width:36px; height:36px; min-height:0;
           padding:0; display:grid; place-items:center; border:1px solid var(--line); border-radius:var(--radius-sm);
           background:var(--card); color:var(--ink); font-size:18px; line-height:1; cursor:pointer; z-index:1; }   /* owner 6 Oct: smaller, centered */
.modal-x:active { background:var(--bg); }
.dossier .draft { color:var(--pause); font-size:15px; }
.dossier .dnotes { white-space:pre-wrap; background:var(--bg); border-radius:var(--radius-sm); padding:10px; font-size:16px; }
.dossier ul.must { list-style:none; padding:10px; margin:0 0 8px; border-left:4px solid var(--accent); }
.dossier ul.must li { margin:6px 0; } .dossier ul.must li.mine { font-weight:600; }
.big-photo { position:fixed; inset:0; width:100%; height:100%; object-fit:contain; background:rgba(0,0,0,.92); z-index:40; }

/* drawings / documents on the Brief (photos use .thumbs img) */
.dossier .thumbs a.fdoc { display:grid; place-items:center; align-content:center; gap:4px; width:110px; height:110px;
  border-radius:var(--radius-sm); border:1px solid var(--line); background:var(--bg); color:var(--ink); font-weight:700; text-decoration:none; }
.dossier .thumbs a.fdoc span { font-size:11px; font-weight:400; color:var(--muted); max-width:100px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* the Omarchy look's color picker (☰ → Colors): a swatch per OS theme */
.menu.colors { max-height:min(80vh, 640px); overflow:auto; }
.mitem.on { font-weight:700; background:var(--chip); }
.swatch { display:inline-flex; align-items:flex-end; justify-content:flex-end; width:28px; height:22px; margin-right:12px;
          vertical-align:middle; border:2px solid; border-radius:var(--radius-sm); overflow:hidden; }
.swatch i { display:block; width:10px; height:10px; }

/* D2b on the floor: a department's fixed headings */
.dossier .bsec { margin:12px 0; } .dossier .bsec > .piece { text-transform:capitalize; margin:8px 0; }
.dossier .bhead { border-left:3px solid var(--line); padding:2px 0 4px 12px; margin:6px 0; }
.dossier .bhead > .pto-note { margin:0 0 2px; text-transform:uppercase; letter-spacing:.05em; font-size:13px; }
.dossier .dline { margin:4px 0 8px; } .dossier .dline p { margin:0 0 4px; font-size:18px; }

/* D4 job steps on the floor brief */
.dossier label.step { display:flex; align-items:center; gap:12px; font-size:18px; padding:8px 0; }
.dossier label.step input { width:26px; height:26px; }

/* mark-off departments (production): a job and one button */
.row.markrow { display:grid; grid-template-columns:1fr auto; align-items:center; gap:8px 14px; cursor:default; }
.row.markrow .rsub { grid-column:1; color:var(--muted); font-size:15px; }
.row.markrow button { grid-column:2; grid-row:1 / span 2; min-height:64px; font-size:19px; }

/* the floor brief's bottom line (owner 6 Oct): modest buttons, one centered row */
.dossier .bbtns { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:10px; margin:18px 0 4px; }
.dossier button.bbtn { min-height:48px; padding:10px 18px; font-size:17px; }
.dossier .modal-x { margin-left:auto; }
.dossier p.fact { margin:4px 0; font-size:17px; }
.dossier p.bdesc { margin:2px 0 10px; font-size:14px; font-style:italic; color:var(--muted); } .dossier p.bdesc span { font-style:normal; }
.dossier h3.bh { margin:18px 0 6px; font-size:15px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--ink);
  border-bottom:2px solid var(--accent); padding-bottom:4px; }   /* brief headings read as headings (owner 6 Oct) */        /* a card fact under its department, one line (owner 6 Oct: no clutter) */
