/* Layout: app shell. Left rail on desktop, bottom tab bar on phones; one working column of content. */
:root{
  --bg:#f2f4f6; --surface:#ffffff; --surface-2:#e8ecf0; --ink:#17212b; --muted:#5a6774; --line:#d4dbe2;
  --accent:#d9590b; --accent-ink:#a94304; --on-accent:#ffffff; --accent-btn:#c04f0a; --accent-btn-hover:#ad4709; --accent-btn-down:#9a3f08;   /* 0.67 r4 (Colby 2026-11-09 23:21 "Darken buttons a little"): white text on it 4.8:1 */
  --ok:#1d7a4c; --ok-ink:#17693f; --warn:#9a6300; --bad:#b42318; --chip-warn:#7a4e00; --chip-ok:#17693f; --on-ok:#ffffff;   /* 0.70 r2 (FR L2): chip text 4.5:1 or more */
  --shadow:0 1px 2px rgba(23,33,43,.06),0 10px 28px rgba(23,33,43,.10);
  --f-display:"Barlow Condensed","Arial Narrow",sans-serif;
  --f-body:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-mono:"IBM Plex Mono",ui-monospace,"SFMono-Regular",Menlo,monospace;
  --r:8px;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0e141a; --surface:#161f28; --surface-2:#1e2934; --ink:#e5eaef; --muted:#93a1ae; --line:#283542;
  --accent:#d9590b; --accent-ink:#ff9b57; --on-accent:#ffffff; --ok:#4cc38a; --ok-ink:#4cc38a; --warn:#e2a93b; --bad:#f2786b; --chip-warn:#e2a93b; --chip-ok:#4cc38a; --on-ok:#0e141a;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 10px 28px rgba(0,0,0,.4); color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0e141a; --surface:#161f28; --surface-2:#1e2934; --ink:#e5eaef; --muted:#93a1ae; --line:#283542;
  --accent:#d9590b; --accent-ink:#ff9b57; --on-accent:#ffffff; --ok:#4cc38a; --ok-ink:#4cc38a; --warn:#e2a93b; --bad:#f2786b; --chip-warn:#e2a93b; --chip-ok:#4cc38a; --on-ok:#0e141a;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 10px 28px rgba(0,0,0,.4); color-scheme:dark}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
[hidden]{display:none!important}
img{max-width:100%}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 var(--f-body);-webkit-font-smoothing:antialiased}
body.locked{overflow:hidden}
h1,h2,h3{margin:0;text-wrap:balance}
h1{font:600 30px/1.1 var(--f-display);letter-spacing:.01em}
h2{font:600 21px/1.2 var(--f-display);letter-spacing:.02em}
h3{font:600 15px/1.3 var(--f-body)}
p{margin:0}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.mono,.num{font-family:var(--f-mono);font-variant-numeric:tabular-nums}
.muted{color:var(--muted)}
.small{font-size:13px}
.label{font-size:11.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}

/* shell */
.shell{display:grid;grid-template-columns:minmax(0,1fr);min-height:100%}
.rail{display:none}
.topbar{position:sticky;top:0;z-index:5;background:var(--surface);border-bottom:1px solid var(--line);
  padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));padding-top:calc(10px + env(safe-area-inset-top,0px));padding-bottom:10px;
  display:flex;align-items:center;gap:12px}
.brand{display:flex;align-items:baseline;gap:8px;min-width:0}
.brand-mark{font:700 22px/1 var(--f-display);letter-spacing:.02em;text-transform:uppercase}
.brand-mark span{color:var(--accent)}
.brand-co{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.me-chip{margin-left:auto;display:flex;align-items:center;gap:8px;min-width:0}
.me-chip img{width:30px;height:30px;border-radius:50%;flex:none}
.me-chip .who{font-size:13px;line-height:1.2;text-align:right;min-width:0}
.me-chip .who b{display:block;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:160px}
main{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));padding-block:20px 104px;
  width:100%;max-width:1120px;margin:0 auto;min-width:0;display:flex;flex-direction:column;gap:20px}
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:6;background:var(--surface);border-top:1px solid var(--line);display:flex;
  padding-bottom:env(safe-area-inset-bottom,0px);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
.tabbar button{flex:1;min-width:0;background:none;border:0;padding:8px 2px 7px;display:flex;flex-direction:column;align-items:center;gap:2px;
  font-size:12px;font-weight:500;color:var(--muted);cursor:pointer}
.tabbar button svg{width:22px;height:22px}
.tabbar button[aria-current="page"]{color:var(--accent-ink)}
.tabbar button[aria-current="page"] svg{color:var(--accent)}
svg.i{width:1.1em;height:1.1em;vertical-align:-.18em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media (min-width:900px){
  .shell{grid-template-columns:276px minmax(0,1fr)}
  .topbar,.tabbar{display:none}
  .rail{display:flex;flex-direction:column;gap:22px;position:sticky;top:0;height:100vh;height:100dvh;background:var(--surface);
    border-right:1px solid var(--line);padding-top:calc(22px + env(safe-area-inset-top,0px));padding-bottom:18px;padding-left:max(18px,env(safe-area-inset-left,0px));padding-right:18px}
  .rail nav{display:flex;flex-direction:column;gap:2px}
  .rail nav button{display:flex;align-items:center;gap:10px;background:none;border:0;border-radius:6px;padding:9px 10px;cursor:pointer;
    font-weight:500;color:var(--muted);text-align:left}
  .rail nav button svg{width:19px;height:19px}
  .rail nav button:hover{background:var(--surface-2);color:var(--ink)}
  .rail nav button[aria-current="page"]{background:var(--surface-2);color:var(--ink)}
  .rail nav button[aria-current="page"] svg{color:var(--accent)}
  .rail .me-chip{margin-left:0;margin-top:auto;padding-top:14px;border-top:1px solid var(--line)}
  .rail .me-chip .who{text-align:left}
  main{padding-block:30px 56px}
}

/* page header */
.page-head{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 16px}
.page-head .titles{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 220px}
.page-head .actions{display:flex;flex-wrap:wrap;gap:8px}

/* controls */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:6px;border:1px solid var(--line);background:var(--surface);
  padding:8px 14px;font-weight:500;cursor:pointer;white-space:nowrap;min-height:38px}
.btn:hover{border-color:var(--muted)}
.btn.primary{background:var(--accent-btn);border-color:var(--accent-btn);color:var(--on-accent);font-weight:600}
.btn.primary:hover{background:var(--accent-btn-hover);border-color:var(--accent-btn-hover)}
.btn.primary:active{background:var(--accent-btn-down);border-color:var(--accent-btn-down)}
.btn.ghost{border-color:transparent;background:none}
.btn.danger{color:var(--bad)}
.btn.big{min-height:48px;padding:10px 20px;font-size:16px}
.btn:disabled{opacity:.55;cursor:not-allowed}
.btn svg{width:17px;height:17px}
.icon-btn{border:1px solid var(--line);background:var(--surface);border-radius:6px;width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.icon-btn svg{width:18px;height:18px}
.field{display:flex;flex-direction:column;gap:5px;min-width:0}
.field>span{font-size:13px;font-weight:500}
.field small{color:var(--muted);font-size:12.5px}
/* 0.67 (Krug 3): fieldErr, a mistake message that stays under the field */
.field.has-err textarea,.field.has-err input,.field.has-err select{border-color:var(--bad);border-width:2px;box-shadow:0 0 0 3px color-mix(in srgb,var(--bad) 18%,transparent)}
.ferr{display:flex;gap:6px;align-items:flex-start;color:var(--bad);font-weight:600;font-size:14px;margin:6px 0 0}
.ferr svg{width:16px;height:16px;flex:none;margin-top:2px}
.du-need{margin:0 0 -4px}
input[type=text],input[type=number],input[type=date],input[type=tel],input[type=password],select,textarea{background:var(--surface);border:1px solid var(--line);border-radius:6px;
  padding:8px 10px;min-height:38px;width:100%;min-width:0}
textarea{resize:vertical;min-height:120px;line-height:1.45}
@media (max-width:700px){input[type=text],input[type=number],input[type=date],input[type=tel],input[type=password],select,textarea{font-size:16px}}
input:focus,select:focus,textarea:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.seg{display:inline-flex;flex-wrap:wrap;border:1px solid var(--line);border-radius:7px;padding:2px;background:var(--surface);gap:2px}
.seg button{border:0;background:none;padding:6px 11px;border-radius:5px;cursor:pointer;font-size:13.5px;font-weight:500;color:var(--muted)}
.seg button[aria-pressed="true"]{background:var(--surface-2);color:var(--ink)}

/* panels */
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:18px;display:flex;flex-direction:column;gap:14px;min-width:0}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;align-items:start}
.notice{border:1px solid color-mix(in srgb,var(--accent) 45%,var(--line));background:color-mix(in srgb,var(--accent) 8%,var(--surface));
  border-radius:var(--r);padding:14px 16px;display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center}
.notice p{flex:1 1 260px}
.empty{border:1px dashed var(--line);border-radius:var(--r);padding:28px 18px;text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center;color:var(--muted)}
.empty b{color:var(--ink);font-weight:600}

/* pills + chips */
.pill{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:2px 9px;font-size:12px;font-weight:600;border:1px solid var(--line);white-space:nowrap}
.pill.active{color:var(--ok);border-color:color-mix(in srgb,var(--ok) 40%,var(--line))}
.pill.hold{color:var(--warn);border-color:color-mix(in srgb,var(--warn) 40%,var(--line))}
.pill.done{color:var(--muted)}
.pill.warn{color:var(--warn);border-color:color-mix(in srgb,var(--warn) 40%,var(--line))}
.dot{width:9px;height:9px;border-radius:50%;background:var(--c,var(--muted));flex:none;display:inline-block}
.chip{--c:var(--muted);display:flex;align-items:flex-start;gap:6px;border-radius:5px;padding:5px 7px;font-size:12.5px;line-height:1.3;text-align:left;
  background:color-mix(in srgb,var(--c) 16%,var(--surface));border:1px solid color-mix(in srgb,var(--c) 35%,transparent);color:var(--ink);width:100%;min-width:0}
.chip .dot{margin-top:4px}
.chip b{font-weight:600;display:block;overflow-wrap:anywhere}
.chip span{color:var(--muted);display:block;overflow-wrap:anywhere}
button.chip{cursor:pointer;font:inherit;font-size:12.5px}

/* tables */
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}
table{border-collapse:collapse;width:100%;font-size:14px}
th,td{padding:9px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
th{font-size:11.5px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);background:var(--surface-2);white-space:nowrap}
tr:last-child td{border-bottom:0}
td.r,th.r{text-align:right}
tfoot td{font-weight:600;background:var(--surface-2)}
tr.sub td{padding-top:3px;padding-bottom:3px;font-size:13px;color:var(--muted);border-bottom:0}
tr.sub td:first-child{padding-left:28px}

/* today */
.clock{display:flex;flex-direction:column;gap:12px}
.clock .live{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.clock .elapsed{font:600 44px/1 var(--f-display);font-variant-numeric:tabular-nums;color:var(--accent-ink)}
.weekbars{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;align-items:end;height:110px}
.weekbars .b{display:flex;flex-direction:column;align-items:center;gap:4px;height:100%;justify-content:flex-end}
.weekbars .bar{width:100%;max-width:34px;border-radius:4px 4px 0 0;background:var(--surface-2);min-height:3px}
.weekbars .b.has .bar{background:color-mix(in srgb,var(--accent) 70%,var(--surface))}
.weekbars .b.today .bar{background:var(--accent)}
.weekbars .d{font-size:11.5px;color:var(--muted)}
.weekbars .h{font-size:11.5px;font-family:var(--f-mono)}
.bignum{font:600 34px/1 var(--f-display);font-variant-numeric:tabular-nums}
.list{display:flex;flex-direction:column}
.list .row{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line);min-width:0}
.list .row:last-child{border-bottom:0}
.list .row .grow{flex:1;min-width:0}

/* schedule */
.weeknav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.weeknav .wk{font-weight:600}
.wk-box{display:inline-flex;align-items:baseline;gap:6px;min-width:0}   /* 0.67 E1: one label, week number after it */
.wk-n::before{content:"· "}
@media (max-width:480px){.wk-box{flex-direction:column;align-items:flex-start;gap:0}.wk-n::before{content:none}}
.sched-table td{min-width:120px;padding:6px}
.sched-table td.person{min-width:170px;font-weight:500;padding:10px 12px;position:sticky;left:0;background:var(--surface);z-index:1}
.sched-table th.person{position:sticky;left:0;z-index:2}
.sched-table th.today{color:var(--accent-ink)}
.sched-table th.day-free{text-transform:uppercase;font-size:12px;letter-spacing:.04em}   /* 0.67 E3: nobody booked that day */
.sched-table td.day-free,.sched-table th.day-free{min-width:64px;width:64px}
.sched-table tr.mine td.person{color:var(--accent-ink)}
.cell{display:flex;flex-direction:column;gap:4px;min-height:34px}
.add-slot{border:1px dashed var(--line);background:none;border-radius:5px;color:var(--muted);cursor:pointer;min-height:30px;font-size:13px;opacity:.6}
.add-slot:hover{opacity:1;border-color:var(--accent);color:var(--accent-ink)}
.sched-day{display:flex;flex-direction:column;gap:6px}
.sched-day .dh{display:flex;justify-content:space-between;align-items:baseline;border-bottom:1px solid var(--line);padding-bottom:4px}
.sched-day .dh b{font:600 18px/1.2 var(--f-display);letter-spacing:.02em}
.sched-day.today .dh b{color:var(--accent-ink)}
.only-wide{display:none}
@media (min-width:760px){.only-wide{display:block}.only-narrow{display:none}}

/* time */
.days{display:flex;flex-direction:column}
.day{display:grid;grid-template-columns:96px minmax(0,1fr) auto;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);align-items:start}
.day:last-child{border-bottom:0}
.day .dl{display:flex;flex-direction:column;line-height:1.2}
.day .dl b{font:600 18px/1.1 var(--f-display)}
.day.today .dl b{color:var(--accent-ink)}
.day .entries{display:flex;flex-direction:column;gap:6px;min-width:0}
.entry{display:flex;align-items:flex-start;gap:8px;background:none;border:0;padding:4px 6px;margin:-4px -6px;border-radius:5px;text-align:left;cursor:pointer;min-width:0;width:calc(100% + 12px)}
.entry:hover{background:var(--surface-2)}
.entry .t{flex:1;min-width:0}
.entry .t b{font-weight:500;display:block;overflow-wrap:anywhere}
.entry .t span{font-size:13px;color:var(--muted);display:block;overflow-wrap:anywhere}
.entry .h{font-family:var(--f-mono);font-variant-numeric:tabular-nums;font-weight:500}
.day .tot{font-family:var(--f-mono);font-variant-numeric:tabular-nums;font-weight:600;text-align:right;min-width:52px}
.day .add{font-size:13px;color:var(--accent-ink);background:none;border:0;padding:2px 0;cursor:pointer;text-align:left;font-weight:500}
@media (max-width:480px){.day{grid-template-columns:64px minmax(0,1fr) auto;gap:8px}}

/* stats */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:14px 16px;display:flex;flex-direction:column;gap:6px}
.stat .v{font:600 30px/1 var(--f-display);font-variant-numeric:tabular-nums}
.stat.warn .v{color:var(--warn)}

/* projects */
.proj-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.proj{--c:var(--muted);background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px;display:flex;flex-direction:column;gap:8px;
  text-align:left;cursor:pointer;min-width:0;font:inherit;color:inherit}
.proj:hover{border-color:color-mix(in srgb,var(--c) 60%,var(--line))}
.proj .top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:center;min-width:0}
.proj .proj-tags{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;align-items:center;min-width:0;max-width:100%;margin-left:auto}
.proj .proj-tags .co-badge{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.proj .top .mono{font-size:12.5px;color:var(--muted);display:flex;align-items:center;gap:7px}
.proj .nm{font:600 22px/1.15 var(--f-display);letter-spacing:.01em;overflow-wrap:anywhere}
.proj .meta{font-size:13.5px;color:var(--muted);overflow-wrap:anywhere}
.proj .figs{display:flex;gap:16px;border-top:1px solid var(--line);padding-top:8px;margin-top:2px;font-size:13.5px}
.proj .figs b{font-family:var(--f-mono);font-variant-numeric:tabular-nums;font-weight:500}

/* sheet */
.sheet-wrap{position:fixed;inset:0;z-index:20;background:rgba(10,15,20,.48);display:flex;align-items:flex-end;justify-content:center}
.sheet{background:var(--surface);width:100%;max-height:92%;overflow:auto;border-radius:14px 14px 0 0;box-shadow:var(--shadow);display:flex;flex-direction:column;
  padding-bottom:env(safe-area-inset-bottom,0px)}
.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 18px 10px;position:sticky;top:0;background:var(--surface);z-index:1;border-bottom:1px solid var(--line)}
.sheet-body{padding:16px 18px 20px;padding-left:max(18px,env(safe-area-inset-left,0px));padding-right:max(18px,env(safe-area-inset-right,0px));display:flex;flex-direction:column;gap:14px}
.sheet-foot{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;padding-top:4px}
.sheet-foot .spacer{flex:1}
@media (min-width:700px){.sheet-wrap{align-items:center;padding:24px}.sheet{max-width:560px;border-radius:12px;max-height:88vh}.sheet.wide{max-width:960px}}
.swatches{display:flex;gap:8px;flex-wrap:wrap}
.swatches label{position:relative;cursor:pointer}
.swatches input{position:absolute;opacity:0}
.swatches span{display:block;width:28px;height:28px;border-radius:50%;background:var(--c);border:2px solid var(--surface);box-shadow:0 0 0 1px var(--line)}
.swatches input:checked+span{box-shadow:0 0 0 2px var(--ink)}
.swatches input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.imp-table td{padding:6px;min-width:120px}
.imp-table td.x{min-width:0;width:40px}
.imp-table tr.bad td{background:color-mix(in srgb,var(--warn) 9%,var(--surface))}
.imp-table tr.check td{background:color-mix(in srgb,var(--accent) 6%,var(--surface))}
.imp-why{color:var(--warn);margin-top:4px;line-height:1.3}
.status{font-size:13.5px;color:var(--muted);display:flex;align-items:center;gap:8px}
.spin{width:14px;height:14px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--accent);animation:sp 0.8s linear infinite;flex:none}
@keyframes sp{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spin{animation-duration:3s}}
.check{display:flex;gap:8px;align-items:center;font-size:14px}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:30;background:var(--ink);color:var(--bg);
  padding:10px 16px;border-radius:8px;font-size:14px;box-shadow:var(--shadow);max-width:calc(100% - 32px)}
@media (min-width:900px){.toast{bottom:24px}}
.loading{display:flex;align-items:center;gap:10px;color:var(--muted);padding:40px 0}
.kv{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;font-size:14px}
.kv dt{color:var(--muted)}
.kv dd{margin:0;overflow-wrap:anywhere}
a{color:var(--accent-ink)}

/* ---- standalone additions ---- */
.col{min-width:0;display:flex;flex-direction:column}
.me-chip{background:none;border:0;padding:0;cursor:pointer;font:inherit;color:inherit}
.me-chip:hover b{text-decoration:underline}

/* auth */
.auth{min-height:100%;display:flex;align-items:center;justify-content:center;padding:max(24px,env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) 24px max(16px,env(safe-area-inset-left,0px))}
.auth-card{width:100%;max-width:400px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:28px 24px;display:flex;flex-direction:column;gap:16px;box-shadow:var(--shadow)}
.auth-card .brand-mark{font-size:34px}
.auth-card form{display:flex;flex-direction:column;gap:12px}
.auth-card input[type=email],.auth-card input[type=password]{background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:10px 12px;min-height:44px;width:100%;font-size:16px}
.auth-card input:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}
.auth-links{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:14px}
.linkbtn{background:none;border:0;padding:0;color:var(--accent-ink);font:inherit;font-weight:500;cursor:pointer}
.linkbtn:hover{text-decoration:underline}
.form-msg{font-size:14px;border-radius:6px;padding:9px 12px;background:var(--surface-2)}
.form-msg.err{color:var(--bad);background:color-mix(in srgb,var(--bad) 10%,var(--surface))}
.form-msg.ok{color:var(--ok);background:color-mix(in srgb,var(--ok) 10%,var(--surface))}

/* status chips for hours */
.st{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:1px 8px;font-size:12px;font-weight:600;white-space:nowrap;border:1px solid var(--line);color:var(--muted)}
.st.approved{color:var(--ok);border-color:color-mix(in srgb,var(--ok) 40%,var(--line))}
.st.final{color:var(--on-accent);background:var(--ok);border-color:var(--ok)}
.st.logged{color:var(--warn);border-color:color-mix(in srgb,var(--warn) 40%,var(--line))}
.entry .meta{display:flex;flex-direction:column;align-items:flex-end;gap:3px}
.st.approved.plain{border:0;background:none;padding-inline:0;color:var(--ok)}
.st.approved.plain svg{width:13px;height:13px}
.btn.sm{min-height:30px;padding:4px 10px;font-size:13px}

/* project page */
.back{display:inline-flex;align-items:center;gap:4px;background:none;border:0;padding:0;color:var(--muted);cursor:pointer;font:inherit;font-size:14px}
.back:hover{color:var(--ink)}
.back svg{width:16px;height:16px}
.proj-head{display:flex;flex-direction:column;gap:6px}
.proj-head .jobline{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);overflow-x:auto}
.tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:10px 12px;font:inherit;font-weight:500;color:var(--muted);cursor:pointer;white-space:nowrap}
.tabs button[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--accent)}
.series{display:flex;flex-direction:column;gap:8px}
.series+.series{margin-top:8px}
.series-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding-bottom:6px}
.series-head .grow{flex:1;min-width:0}
.series-more{width:44px;height:44px;flex:none;font-size:16px;letter-spacing:1px;color:var(--ink)}
.series-done{width:100%;justify-content:center}
.done-line{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;background:color-mix(in srgb,var(--ok) 8%,var(--surface));border:1px solid color-mix(in srgb,var(--ok) 30%,var(--line));border-radius:6px;padding:10px 12px;font-size:14px;color:var(--ok)}
.done-line>span{display:flex;gap:6px;align-items:flex-start;min-width:0;flex:1 1 200px}
.done-line svg{width:16px;height:16px;flex:none;margin-top:2px}
.done-line .linkbtn{min-height:40px}
.series-menu{display:flex;flex-direction:column;gap:8px}
.series-menu .menu-btn{width:100%;justify-content:center;min-height:46px}
.series-code{font-family:var(--f-mono);font-weight:500;font-size:14px}
.series-head h3{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.drawing{display:flex;gap:6px;align-items:center;border-bottom:1px solid var(--line)}
.dr-open{flex:1;min-width:0;display:flex;gap:12px;align-items:center;padding:8px 2px;background:none;border:0;color:inherit;font:inherit;text-align:left;cursor:pointer;min-height:56px}
.dr-open:hover .t b{color:var(--accent-ink)}
.dr-open .t{flex:1;min-width:0}
.dr-open .ic{flex:none}
.dr-open .go{width:18px;height:18px;flex:none;color:var(--muted)}
.dr-more{width:40px;height:40px;flex:none;font-size:18px;color:var(--ink)}
.drawing:last-child{border-bottom:0}
.drawing .ic{width:34px;height:40px;border:1px solid var(--line);border-radius:4px;display:flex;align-items:center;justify-content:center;font:600 10px var(--f-mono);color:var(--bad);background:var(--surface-2)}
.drawing .t b{display:block;font-weight:500;overflow-wrap:anywhere}
.drawing .t span{font-size:13px;color:var(--muted)}
.uploads{display:flex;flex-direction:column;gap:8px}
.upl{display:flex;flex-direction:column;gap:4px;font-size:13.5px}
.upl .row1{display:flex;justify-content:space-between;gap:10px}
.upl .row1 b{font-weight:500;overflow-wrap:anywhere;min-width:0}
.progress{height:6px;border-radius:3px;background:var(--surface-2);overflow:hidden}
.progress>i{display:block;height:100%;background:var(--accent);width:0}
.upl.err .progress>i{background:var(--bad)}
.upl.done .progress>i{background:var(--ok)}
.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
.ph{position:relative;aspect-ratio:4/3;max-width:100%;border-radius:6px;overflow:hidden;background:var(--surface-2);border:0;padding:0;cursor:pointer}
.ph img{width:100%;height:100%;object-fit:cover;display:block}
.ph span{position:absolute;left:0;right:0;bottom:0;padding:16px 6px 4px;font-size:11.5px;color:#fff;text-align:left;background:linear-gradient(transparent,rgba(0,0,0,.65))}
.lightbox img{width:100%;max-height:70vh;object-fit:contain;background:#000;border-radius:6px}

/* camera */
.overlay{position:fixed;inset:0;z-index:40;background:#000;color:#fff;display:flex;flex-direction:column}
.cam-top{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:calc(10px + env(safe-area-inset-top,0px)) max(14px,env(safe-area-inset-right,0px)) 10px max(14px,env(safe-area-inset-left,0px));font-size:14px}
.cam-top b{font-weight:600}
.cam-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.cam-stage video,.cam-stage img{max-width:100%;max-height:100%;object-fit:contain}
.cam-bar{display:flex;align-items:center;justify-content:space-around;gap:12px;padding:16px max(14px,env(safe-area-inset-right,0px)) calc(18px + env(safe-area-inset-bottom,0px)) max(14px,env(safe-area-inset-left,0px))}
.cam-btn{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.25);border-radius:999px;min-height:44px;padding:8px 18px;font:inherit;font-weight:500;cursor:pointer}
.shutter{width:74px;height:74px;border-radius:50%;border:4px solid #fff;background:rgba(255,255,255,.2);cursor:pointer;padding:0}
.shutter:active{background:#fff}
.cam-form{background:var(--surface);color:var(--ink);padding:14px max(16px,env(safe-area-inset-right,0px)) calc(16px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));display:flex;flex-direction:column;gap:10px}
.cam-msg{padding:24px;text-align:center;max-width:420px;line-height:1.5}

/* companies, map links */
.co-badge{display:inline-flex;align-items:center;border-radius:4px;padding:1px 7px;font-size:11.5px;font-weight:700;letter-spacing:.03em;background:var(--co);color:var(--co-ink);white-space:nowrap}
/* 0.67 (Krug 4): the address is a full-width 44 px row with Directions at the right */
a.addr{display:flex;align-items:center;gap:6px;min-height:44px;width:100%;box-sizing:border-box;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--accent-ink);font-weight:500;text-decoration:none;overflow-wrap:anywhere}
a.addr:hover span{text-decoration:underline}
a.addr svg{width:16px;height:16px;flex:none}
a.addr .addr-go{margin-left:auto;padding-left:10px;font-weight:600;white-space:nowrap}
a.addr{flex-wrap:wrap;row-gap:2px}a.addr>span{flex:1 1 170px;min-width:0}   /* 0.67 r2 (Impeccable): a narrow card puts Directions under the address instead of squeezing it */

/* drawings tab */
.dr-tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.dr-tools select{width:auto;min-width:170px}
.search{position:relative;flex:1 1 240px;display:flex;min-width:0}
.search svg{position:absolute;left:10px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:var(--muted);pointer-events:none}
.search input{padding-left:34px;width:100%;background:var(--surface);border:1px solid var(--line);border-radius:6px;min-height:38px}
.series-list{display:flex;flex-direction:column;gap:12px}
.series.panel{gap:8px}
.series.prio{border-color:color-mix(in srgb,var(--accent) 55%,var(--line));box-shadow:inset 3px 0 0 var(--accent)}
.prio-tag{display:inline-flex;align-items:center;gap:5px;align-self:flex-start;font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-ink)}
.prio-tag svg{width:14px;height:14px;fill:currentColor;stroke:none}
.series.done .series-code{color:var(--ok)}
.compl-shots{display:flex;gap:8px;flex-wrap:wrap}
.compl-shots img{width:96px;height:72px;object-fit:cover;border-radius:5px}
.up-names{display:flex;flex-direction:column;gap:10px}

/* series time tracking */
.clock-form{display:flex;flex-direction:column;gap:10px}
.clock-form .btn{align-self:stretch}
.entry .t span.ser{color:var(--ink);font-family:var(--f-mono);font-size:12.5px}
.hold-tag{display:inline-flex;align-items:center;gap:5px;align-self:flex-start;font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.hold-tag svg{width:14px;height:14px;stroke-width:3}
.series.held{background:var(--surface-2);border-style:dashed}
.series.held .series-head h3,.series.held .drawing{opacity:.7}

/* Crewbook Pro: brand, onboarding, templates, settings */
.brand-mark em{font-style:normal;font-size:.5em;letter-spacing:.12em;margin-left:5px;padding:2px 5px;border-radius:3px;background:var(--ink);color:var(--bg);vertical-align:.45em}
.join-banner{font-size:14px;background:color-mix(in srgb,var(--accent) 10%,var(--surface));border:1px solid color-mix(in srgb,var(--accent) 35%,var(--line));border-radius:6px;padding:8px 10px}
.auth-card.wide{max-width:880px}
.auth.onboard{align-items:flex-start}
.ob-form{display:flex;flex-direction:column;gap:14px}
.tpl-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}
.tpl-group{display:flex;flex-direction:column;gap:6px}
.tpl-card{display:flex;flex-direction:column;align-items:flex-start;gap:1px;text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:7px;padding:8px 10px;cursor:pointer;font:inherit;color:inherit}
.tpl-card b{font-weight:600;font-size:14.5px}
.tpl-card span{font-size:12.5px;color:var(--muted)}
.tpl-card:hover{border-color:var(--muted)}
.tpl-card[aria-checked="true"]{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 9%,var(--surface));box-shadow:inset 3px 0 0 var(--accent)}
.tpl-preview{border:1px solid var(--line);border-radius:8px;background:var(--surface-2);padding:14px;display:flex;flex-direction:column;gap:12px;scroll-margin-top:16px}
.tpl-words{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:14px}
.tpl-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.tpl-cols ul{list-style:none;margin:4px 0 10px;padding:0;display:flex;flex-direction:column;gap:2px;font-size:13.5px}
.tpl-cols li{display:flex;justify-content:space-between;gap:10px;border-bottom:1px dashed var(--line);padding:2px 0}
.invite-row{display:flex;gap:8px;flex-wrap:wrap}
.invite-row input{flex:1 1 240px;font-family:var(--f-mono);font-size:13px}
.checklist{display:flex;flex-direction:column;gap:6px;border:1px solid var(--line);border-radius:6px;padding:10px 12px}
.done-list{list-style:none;margin:4px 0;padding:0;display:flex;flex-direction:column;gap:2px;font-size:13.5px}
.done-list .ok{color:var(--ok)}
.done-list .no{color:var(--bad)}
.field.starter textarea{font-size:14px}
@media (min-width:900px){.shell.bare{grid-template-columns:minmax(0,1fr)}}
.shell.bare main{max-width:none}

/* crew, profile, tickets */
.me-chip.current b{color:var(--accent-ink)}
.avatar-wrap{position:relative;display:inline-flex;flex:none}
.dot-badge{position:absolute;top:-4px;right:-6px;min-width:18px;height:18px;box-sizing:border-box;border-radius:9px;background:var(--bad);color:#fff;font:600 11px/1 var(--f-body);display:inline-flex;align-items:center;justify-content:center;padding:0 4px;border:2px solid var(--surface)}   /* number centred in the circle (UI/UX, Colby 2026-10-27) */
.notice.alert{border-color:color-mix(in srgb,var(--bad) 45%,var(--line));background:color-mix(in srgb,var(--bad) 7%,var(--surface))}
.notice.alert p{display:flex;gap:8px;align-items:flex-start}
.notice.alert p svg{width:20px;height:20px;flex:none;color:var(--bad);margin-top:1px}
.st.bad{color:var(--bad);border-color:color-mix(in srgb,var(--bad) 45%,var(--line))}
.st.offline{color:var(--accent-ink);border-color:color-mix(in srgb,var(--accent) 45%,var(--line));border-style:dashed}
.me-head{display:flex;gap:12px;align-items:center}
.me-head img{width:48px;height:48px;border-radius:50%}
.me-head b{font:600 20px/1.2 var(--f-display);letter-spacing:.01em}
.tickets{display:flex;flex-direction:column;gap:8px}
.ticket{border:1px solid var(--line);border-radius:8px;padding:10px 12px;display:flex;flex-direction:column;gap:8px;background:var(--surface)}
.ticket-main{display:flex;gap:10px;align-items:center}
.ticket-main .grow{min-width:0;flex:1}
.ticket-main b{display:block;font-weight:600;overflow-wrap:anywhere}
.ticket-ic{width:34px;height:34px;border-radius:6px;background:var(--surface-2);display:flex;align-items:center;justify-content:center;flex:none;color:var(--accent-ink)}
.ticket-ic svg{width:19px;height:19px}
.ticket-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:2px}
.ticket-thumbs{display:flex;gap:6px;flex-wrap:wrap}
.ticket-thumb{border:0;padding:0;background:var(--surface-2);border-radius:5px;overflow:hidden;width:84px;height:62px;cursor:pointer}
.ticket-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.ticket-files{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.file-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:3px 10px;font:500 12.5px var(--f-body);background:var(--surface);color:var(--ink);cursor:pointer}
.file-chip button{border:0;background:none;color:var(--muted);cursor:pointer;padding:0 0 0 2px;font-size:12px}
.file-btn{position:relative;overflow:hidden;align-self:flex-start;margin-top:6px}
.file-btn input{position:absolute;inset:0;opacity:0;cursor:pointer}
.crew-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.crew-card{border:1px solid var(--line);border-radius:8px;padding:12px;background:var(--surface)}
.crew-top{display:flex;gap:10px;align-items:flex-start}
.crew-top img{width:40px;height:40px;border-radius:50%;flex:none}
.crew-top .grow{flex:1;min-width:0}
.crew-top b{font-weight:600}
.crew-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}
.crew-tags .pill{font-size:11.5px;padding:1px 8px}
.alert-panel{border-color:color-mix(in srgb,var(--warn) 40%,var(--line))}
.sheet-sub{font:600 13px/1.2 var(--f-body);letter-spacing:.08em;text-transform:uppercase;color:var(--muted);border-top:1px solid var(--line);padding-top:12px;margin-top:4px}
.seg-opt{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:5px;font-size:13.5px;cursor:pointer}
.seg-opt:has(input:checked){background:var(--surface-2);font-weight:600}
.none-sw span{width:auto!important;padding:0 8px;border-radius:14px!important;font-size:12px;line-height:24px;background:var(--surface)!important;color:var(--muted)}
.co-badge.plain{background:var(--surface-2);color:var(--ink);border:1px solid var(--line)}
.manage-link{font-size:13px;align-self:flex-start}
@media (max-width:420px){.tabbar button{font-size:10px}.tabbar button svg{width:20px;height:20px}}
@media (max-width:560px){.alert-panel .row{flex-wrap:wrap}.alert-panel .row .grow{flex-basis:100%}}
.rail nav button span{white-space:nowrap}

/* hours sign-off */
.so-create{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:4px 0 14px}
.so-create p{max-width:60ch;margin:0}
.so-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px}
.so-card{border:1px solid var(--line);border-radius:10px;background:var(--surface);display:flex;flex-direction:column;overflow:hidden}
.so-card.signed{border-color:color-mix(in srgb,var(--ok,#1d7a46) 40%,var(--line))}
.so-file{display:flex;gap:12px;align-items:flex-start;text-align:left;border:0;background:none;padding:14px 14px 8px;cursor:pointer;color:inherit;font:inherit;width:100%}
.so-ic{flex:none;width:42px;height:52px;border-radius:5px;background:#c62828;color:#fff;font:700 12px/52px var(--f-body);text-align:center;letter-spacing:.04em;position:relative}
.so-ic::after{content:"";position:absolute;top:0;right:0;border-width:0 10px 10px 0;border-style:solid;border-color:transparent var(--surface) rgba(0,0,0,.25) transparent}
.so-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.so-t b{font-weight:600;overflow-wrap:anywhere}
.so-status{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 14px 10px;flex-wrap:wrap}
.st.signed{color:var(--ok,#1d7a46);border-color:color-mix(in srgb,var(--ok,#1d7a46) 45%,var(--line));display:inline-flex;align-items:center;gap:4px}
.st.signed svg{width:12px;height:12px}
.so-btns{display:grid;grid-template-columns:1fr 1fr 1fr;border-top:1px solid var(--line)}
.so-btns .btn{border-radius:0;border:0;min-height:48px;justify-content:center;font-weight:600}
.so-btns .btn+.btn{border-left:1px solid var(--line)}
.so-btns .btn.primary{letter-spacing:.04em}
.so-btns .btn:disabled{opacity:.6}
.grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.notice-inline{font-size:13.5px;background:var(--surface-2);border-radius:6px;padding:8px 10px;margin:0}
.so-allnone{display:flex;gap:14px}
.so-people{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:6px}
.so-person{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:6px;padding:7px 10px;cursor:pointer}
.so-person.on{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 6%,var(--surface))}
.so-person span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column}
.so-person small{color:var(--muted);font-size:12px}
.so-preview table{font-size:13px}
.so-preview th,.so-preview td{white-space:nowrap}
.so-preview tfoot td{border-top:2px solid var(--line)}
.so-sum{border:1px solid var(--line);border-radius:8px;padding:12px;display:flex;flex-direction:column;gap:6px;background:var(--surface-2)}
.so-sum>span{color:var(--muted);font-size:13.5px}
.sigpad{position:relative;border:1.5px dashed var(--line);border-radius:8px;background:#fff;height:170px;touch-action:none}
.sigpad canvas{width:100%;height:100%;display:block;border-radius:8px;touch-action:none;cursor:crosshair}
.sig-line{position:absolute;left:14px;right:14px;bottom:36px;border-bottom:1px solid #b9b6af;color:#9a978f;font-size:14px;pointer-events:none;padding-bottom:2px}
.sig-tools{display:flex;justify-content:space-between;align-items:center}
@media (max-width:520px){.so-list{grid-template-columns:minmax(0,1fr)}}
.so-status .st{white-space:normal;line-height:1.35;padding-block:3px;height:auto}

/* company setup */
.panel-foot{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap}
.panel-foot .small{margin-right:auto}
.rail nav button svg{flex:none}

.warn-text{color:var(--bad)}
.fmt-opts{display:flex;flex-direction:column;gap:6px}
.access-opt{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:8px;padding:10px 12px;cursor:pointer}
.access-opt input{margin-top:3px}
.access-opt span{display:flex;flex-direction:column;gap:2px}
.access-opt small{color:var(--muted);font-size:13px;line-height:1.4}
.access-opt.on,.access-opt:has(input:checked){border-color:var(--accent);background:color-mix(in srgb,var(--accent) 6%,var(--surface))}
.rep-switch{margin-left:auto}
.page-head .rep-switch+.actions{margin-left:0}
.office-to{display:flex;gap:8px;align-items:flex-start;margin:0;font-size:14px;background:var(--surface-2);padding:10px 12px;border-radius:8px;overflow-wrap:anywhere}
.office-to svg,.handin-note svg{width:16px;height:16px;flex:none;margin-top:2px}
.office-crew{display:flex;gap:12px;align-items:center;border:1px solid var(--line);border-radius:8px;padding:10px 12px}
.office-crew b{flex:1}
.handin-note{display:flex;gap:6px;align-items:center;margin:0}
.btn.office svg{width:16px;height:16px}

/* phones: timesheet days stack so names never get squeezed into a narrow column */
@media (max-width:600px){
  .day{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"dl tot" "en en";row-gap:8px;column-gap:8px}
  .day .dl{grid-area:dl;flex-direction:row;align-items:baseline;gap:8px}
  .day .tot{grid-area:tot}
  .day .entries{grid-area:en}
  .entry{flex-wrap:wrap;row-gap:4px}
  .entry .t{flex:1 1 0}
  .entry .meta{flex:1 0 100%;flex-direction:row-reverse;justify-content:space-between;align-items:center;padding-left:16px}
  .entry .t b,.entry .t span{overflow-wrap:break-word;word-break:normal;hyphens:auto}
}
@media (max-width:600px){
  /* big numbers shrink instead of spilling out of their box */
  .stat .v{font-size:clamp(20px,7vw,30px);overflow-wrap:anywhere}
  /* top bar: just "My profile" and the photo, so the name never wraps into 3 lines */
  .topbar .me-chip .who span.muted{display:none}
}
.tabbar button>span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 1px}
@media (max-width:420px){.tabbar button{font-size:9.5px;letter-spacing:-.1px;padding-inline:1px}}
@media (max-width:600px){
  .topbar .me-chip .who{display:none}
  .topbar .avatar-wrap img{width:34px;height:34px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .stat{padding:12px}
}
@media (max-width:380px){.tabbar button{font-size:9px;letter-spacing:-.25px;padding-inline:0}.tabbar button>span{padding:0}}
.topbar .me-chip{padding-right:6px}

/* v0.11: admin permissions, crew structure, pay periods, automatic send-off */
.perm{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;padding:10px 0;border-top:1px solid var(--line)}
.perm:first-of-type{border-top:0}
.perm-name{font:600 18px/1.2 var(--f-display);letter-spacing:.01em}
.perm-desc{font-size:14px;line-height:1.45;display:flex;flex-direction:column;gap:6px}
.perm-who{font-size:13px;color:var(--muted)}
/* 0.61 role descriptions as grouped bullets */
.perm-lead{margin:0;font-weight:600}
.perm-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px 22px}
.perm-grp{min-width:0}
.perm-grp .label{margin:0 0 3px}
.perm-list{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:3px}
.perm-list li{overflow-wrap:anywhere}
.perm-cant .perm-list li::marker{content:"\2715  ";color:var(--muted);font-size:11px}
.perm-desc > .small{margin:0}
@media (max-width:600px){.perm{grid-template-columns:minmax(0,1fr);gap:4px}}
.role-list{display:flex;flex-direction:column;gap:8px}
.role-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center}
.role-row .btn:disabled{opacity:.45;cursor:not-allowed}
@media (max-width:420px){.role-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"in rm" "ct ct"}.role-row input{grid-area:in}.role-row .role-remove{grid-area:rm}.role-row span{grid-area:ct}}
.access-opt.off{opacity:.65}
.au-jobs{display:flex;flex-direction:column;gap:10px}
.au-group{border:1px solid var(--line);border-radius:8px;padding:10px 12px;display:flex;flex-direction:column;gap:6px}
.au-group-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.au-job{display:flex;flex-direction:column;gap:4px}
.au-job .check{overflow-wrap:anywhere}
.au-series{display:flex;flex-wrap:wrap;gap:4px 14px;padding-left:26px}
#auPeopleAll{margin-top:-4px}

/* v0.12: records, app lock, phone copy */
.notice.records-notice p,.notice.net p{display:flex;gap:8px;align-items:flex-start}
.notice.records-notice .i,.notice.net .i{flex:none;width:18px;height:18px;margin-top:2px}
.notice.net{border-style:dashed}
.rec-cat{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.rec-month{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);cursor:pointer;font:inherit}
.rec-month:hover{border-color:var(--accent)}
.rec-month span{font-size:12.5px;color:var(--muted);line-height:1.35}
.rec-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end}
.rec-actions .field{margin:0;flex:0 1 220px}
.rec-table td,.rec-table th{vertical-align:top}
.nowrap{white-space:nowrap}
.perm-note{display:flex;gap:6px;align-items:flex-start}
.perm-note .i{flex:none;width:14px;height:14px;margin-top:2px}
.lock-form{display:flex;flex-direction:column;gap:8px}
.setting-line{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.setting-line > div{flex:1 1 220px;display:flex;flex-direction:column;gap:2px}
.setting-line small{color:var(--muted);font-size:12.5px;line-height:1.4}
@media (max-width:600px){
  .rec-actions .field{flex:1 1 100%}
  .rec-actions .btn{flex:1 1 auto}
  .rec-table{font-size:13px}
}
@media (max-width:600px){ .panel-head{flex-wrap:wrap} .panel-head .btn{max-width:100%;white-space:normal;text-align:left;height:auto} }
/* records: rows become small cards on phones so text never squeezes */
@media (max-width:600px){
  .rec-table{min-width:0 !important;width:100%}
  .rec-table thead{display:none}
  .rec-table,.rec-table tbody,.rec-table td{display:block}
  .rec-table tr{display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:9px 2px;border-bottom:1px solid var(--line)}
  .rec-table td{padding:0;border:0;text-align:left}
  .rec-table td:nth-child(4){grid-column:2;grid-row:1;text-align:right;font-weight:600}
  .rec-table td:nth-child(2),.rec-table td:nth-child(3),.rec-table td:nth-child(5){grid-column:1 / -1}
  .rec-hist td{grid-column:1 / -1 !important;grid-row:auto !important;text-align:left !important;font-weight:400 !important}
}

/* ===== Beta V 0.20: phone bar, Today, Needs attention, announcements, safety forms, daily logs ===== */
.top-right{margin-left:auto;display:flex;align-items:center;gap:8px}
.bell-btn{position:relative}
.bell-btn .dot-badge{top:-6px;right:-6px}
.avatar-btn{border:0;background:none;padding:0;cursor:pointer;width:34px;height:34px;border-radius:50%;flex:none}
.avatar-btn img{width:34px;height:34px;border-radius:50%;display:block}
.tabbar{align-items:flex-end}
.tabbar button{position:relative}
.tabbar .tdot{position:absolute;top:5px;left:calc(50% + 7px);width:9px;height:9px;border-radius:50%;background:var(--bad);border:2px solid var(--surface)}
.tabbar .fab{align-self:flex-start;margin-top:-22px;padding:0}
.fab .disc{width:56px;height:56px;border-radius:50%;background:var(--accent-btn);color:var(--on-accent);display:flex;align-items:center;justify-content:center;border:4px solid var(--surface);box-shadow:0 4px 14px color-mix(in srgb,var(--accent) 45%,transparent)}
.tabbar .fab .disc svg{width:26px;height:26px;stroke-width:2.2}
.rail-brand{display:flex;align-items:flex-start;gap:8px;justify-content:space-between}

.menu-label{margin:2px 2px -10px}
.menu{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.menu button,.menu .menu-link{display:flex;align-items:center;gap:12px;width:100%;background:none;border:0;border-top:1px solid var(--line);padding:13px 14px;text-align:left;cursor:pointer;font:inherit;color:inherit}
.menu button:first-child,.menu .menu-link:first-child{border-top:0}
.menu button>svg,.menu .menu-link>svg{width:20px;height:20px;color:var(--accent);flex:none}
.menu button .grow,.menu .menu-link .grow{flex:1;min-width:0}
.menu button b,.menu .menu-link b{font-weight:600;display:block}
.menu button small,.menu .menu-link small{display:block;color:var(--muted);font-size:12.5px}
.menu button .go,.menu .menu-link .go{width:16px;height:16px;color:var(--muted)}
.qa{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.qa button{border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:14px 4px 11px;display:flex;flex-direction:column;align-items:center;gap:6px;font:500 13px/1.2 var(--f-body);color:var(--ink);cursor:pointer;text-align:center}
.qa button svg{width:24px;height:24px;color:var(--accent)}
.qa button.main{background:var(--accent-btn);border-color:var(--accent-btn);color:var(--on-accent);font-weight:600}
.qa button.main svg{color:var(--on-accent)}
.qa button:disabled{opacity:.5;cursor:not-allowed}
.today1{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;max-width:640px}
@media (min-width:1100px){.today1{display:block;max-width:none;columns:2;column-gap:20px}.today1>*{break-inside:avoid;margin-bottom:20px}}
.clock1{border-color:color-mix(in srgb,var(--accent) 50%,var(--line));gap:12px}
.clock1 .status{display:flex;align-items:center;gap:7px}
.live-dot{width:9px;height:9px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 3px color-mix(in srgb,var(--ok) 25%,transparent)}
.timer{font:700 54px/.95 var(--f-display);letter-spacing:.01em;color:var(--accent-ink);font-variant-numeric:tabular-nums}
.where{background:var(--surface-2);border-radius:6px;padding:9px 11px;display:flex;flex-direction:column;gap:2px}
.where b{font-weight:600}
.btn.huge{min-height:60px;font:600 22px/1 var(--f-display);letter-spacing:.03em;width:100%;border-radius:8px}
.btn.huge2{width:100%;min-height:52px;font-size:16px;margin-top:8px}   /* 0.67 (Krug 1): Finish and download PDF */
.ff-left p{display:flex;gap:8px;align-items:flex-start;margin:0}.ff-left p svg{flex:none;margin-top:3px}
.btn.huge svg{width:22px;height:22px}
.row-btns{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:8px}
.row-btns .btn{min-height:44px}
.attn{border-color:var(--line);background:var(--surface);gap:0;padding:0;overflow:hidden}
.attn-head{display:flex;align-items:center;gap:10px;padding:13px 16px;border:0;background:none;width:100%;text-align:left;cursor:pointer;color:inherit;font:inherit}
.attn-head h2{font-size:20px}
.attn.clear{border-color:var(--line);background:var(--surface)}
.attn.clear .attn-head{cursor:default}
.attn.clear .attn-head svg{width:20px;height:20px;color:var(--ok)}
.count{min-width:22px;height:22px;border-radius:11px;background:var(--accent-btn);color:var(--on-accent);font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;padding:0 6px}
.attn-head .chev{margin-left:auto;width:18px;height:18px;transition:transform .15s;color:var(--muted)}
.attn[data-open="true"] .chev{transform:rotate(90deg)}
.attn-list{display:flex;flex-direction:column}
.attn-item{display:flex;align-items:center;gap:10px;padding:11px 16px;border:0;border-top:1px solid var(--line);background:none;width:100%;text-align:left;cursor:pointer;color:inherit;font:inherit}
.attn-item .ic{width:30px;height:30px;border-radius:50%;flex:none;display:inline-flex;align-items:center;justify-content:center;background:var(--surface)}
.attn-item .ic svg{width:17px;height:17px}
.attn-item .ic.bad{color:var(--bad)} .attn-item .ic.warn{color:var(--warn)} .attn-item .ic.acc{color:var(--accent)}
.attn-item .txt{flex:1;min-width:0;font-size:14px;line-height:1.35}
.attn-item .txt b{font-weight:600}
.attn-item .txt small{display:block;color:var(--muted);font-size:12.5px}
.attn-item>svg{width:16px;height:16px;color:var(--muted);flex:none}
.attn-more{border:0;border-top:1px solid var(--line);background:none;width:100%;padding:10px 16px;text-align:left;color:var(--accent-ink);font:500 14px var(--f-body);cursor:pointer}
.news{display:flex;gap:11px;align-items:flex-start}
.ann-av{width:36px;height:36px;border-radius:50%;flex:none}
.news .body{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.ann-body{white-space:pre-wrap;font-weight:500}
.pin-tag{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-ink);display:inline-flex;align-items:center;gap:4px}
.pin-tag svg{width:13px;height:13px}
.ann-acts{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:4px}
.ann-acts .spacer{flex:1}
.ann-acts .small svg{width:14px;height:14px;vertical-align:-2px}
.ann-read{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted)}
.ann-read .bar,.fprogress .bar{flex:1;height:5px;border-radius:3px;background:var(--surface-2);overflow:hidden}
.ann-read .bar i{display:block;height:100%;background:var(--ok)}
/* The form's "N of M sections done" line has its own name: .progress is the upload bar (6 px high, clipped), which cut this text in half (Beta V 0.24). */
.fprogress{display:flex;align-items:center;gap:8px;font-size:12.5px;line-height:1.4;color:var(--muted)}
.fprogress .bar i{display:block;height:100%;background:var(--accent)}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chips button{border:1px solid var(--line);background:var(--surface);border-radius:16px;padding:6px 12px;font:13.5px var(--f-body);color:var(--ink);cursor:pointer}
.chips button[aria-pressed="true"]{background:var(--accent-btn);border-color:var(--accent-btn);color:var(--on-accent);font-weight:600}
.chips.multi button[aria-pressed="true"]{background:color-mix(in srgb,var(--accent) 14%,var(--surface));border-color:var(--accent);color:var(--accent-ink)}
.chips button:disabled{cursor:default}
.optrow{display:flex;align-items:center;gap:12px;font-size:14px}
.optrow>span{flex:1;min-width:0;display:flex;flex-direction:column}
.optrow b{font-weight:600}
.switch{width:42px;height:25px;border-radius:13px;border:0;background:var(--line);position:relative;cursor:pointer;flex:none;padding:0}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:19px;height:19px;border-radius:50%;background:var(--surface);transition:left .15s}
.switch[aria-checked="true"]{background:var(--ok)}
.switch[aria-checked="true"]::after{left:20px}
.bell-row{border:0;border-bottom:1px solid var(--line);background:none;width:100%;text-align:left;cursor:pointer;color:inherit;font:inherit}
.bell-row svg{width:18px;height:18px;color:var(--accent);flex:none}
.bell-row .bt{display:block;font-size:14px}
.bell-row.fresh .bt{font-weight:600}
.redot{width:8px;height:8px;border-radius:50%;background:var(--bad);flex:none}
.redot.off{background:transparent}
.rowbtn{border:0;border-bottom:1px solid var(--line);background:none;width:100%;text-align:left;cursor:pointer;color:inherit;font:inherit}
.rowbtn>svg{width:18px;height:18px;color:var(--accent);flex:none}
.search.fsearch{flex:none}
.search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:6px;background:var(--surface);padding:0 10px;max-width:640px}
.search svg{width:18px;height:18px;color:var(--muted);flex:none}
.search input{border:0;background:none;min-height:42px;width:100%;min-width:0;outline:none}
.stack{display:flex;flex-direction:column;gap:20px}
.formlist{gap:0;padding-block:6px}
.formrow{display:flex;align-items:center;gap:12px;width:100%;background:none;border:0;border-top:1px solid var(--line);padding:11px 0;text-align:left;cursor:pointer;color:inherit;font:inherit}
.formrow:first-child{border-top:0}
.formrow .fi{width:36px;height:36px;border-radius:8px;flex:none;display:inline-flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--accent) 12%,var(--surface));color:var(--accent)}
.formrow .fi svg{width:19px;height:19px}
.formrow .grow{flex:1;min-width:0}
.formrow b{display:block;font-weight:600;line-height:1.3}
.formrow small{display:block;color:var(--muted);font-size:12.5px;line-height:1.35}
.formrow>svg{width:16px;height:16px;color:var(--muted);flex:none}
.backrow{margin-bottom:-12px}
.back{border:0;background:none;color:var(--accent-ink);font:500 15px var(--f-body);padding:4px 0;cursor:pointer;display:inline-flex;align-items:center;gap:2px}
.back svg{width:18px;height:18px}
.title1{font:600 28px/1.05 var(--f-display);letter-spacing:.01em}
.ref{font-size:12.5px;color:var(--muted)}
.ref b{color:var(--accent-ink);font-weight:600}
.ref.center{text-align:center}
.formsec{gap:12px}
.sec-h{display:flex;align-items:center;gap:9px}
.sec-h .n{width:26px;height:26px;border-radius:50%;background:var(--surface-2);color:var(--muted);font:600 13px/26px var(--f-mono);text-align:center;flex:none}
.sec-h .n.done{background:var(--ok);color:#fff}
.sec-h h2{font-size:19px}
.check-q{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid var(--line)}
.check-q .q{flex:1;min-width:0;font-size:14px;line-height:1.35}
.yn{display:inline-flex;border:1px solid var(--line);border-radius:6px;overflow:hidden;flex:none}
.yn button{border:0;background:var(--surface);padding:7px 10px;font:600 13px var(--f-body);cursor:pointer;color:var(--muted);min-width:40px}
.yn button+button{border-left:1px solid var(--line-strong,var(--line))}
.yn button[aria-pressed="true"][data-v="yes"]{background:var(--ok);color:#fff}
.yn button[aria-pressed="true"][data-v="no"]{background:var(--bad);color:#fff}
.yn.bad button[aria-pressed="true"][data-v="yes"]{background:var(--bad)}
.yn.bad button[aria-pressed="true"][data-v="no"]{background:var(--ok)}
.yn.flag button[aria-pressed="true"][data-v="yes"]{background:var(--warn);color:#fff}
.yn.flag button[aria-pressed="true"][data-v="no"]{background:var(--surface-2);color:var(--ink)}
.yn button[aria-pressed="true"][data-v="na"]{background:var(--surface-2);color:var(--ink)}
.hazgroup{display:flex;flex-direction:column;gap:6px}
.steps{display:flex;flex-direction:column;gap:8px}
.step{border:1px solid var(--line);border-radius:6px;padding:9px 10px;display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:4px 8px;align-items:start}
.step .k{font:600 12px/22px var(--f-mono);color:var(--muted)}
.step b{font-weight:600;font-size:14px;line-height:1.35}
.step .h,.step .c{grid-column:2/4;font-size:13px;line-height:1.35}
.step .h{color:var(--bad)} .step .c{color:var(--ok)}
.stepbtns{display:flex;gap:4px;align-items:center}
.rm{border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:4px;width:26px;height:24px;line-height:1;font-size:16px;cursor:pointer;padding:0;flex:none}
.risk{border:0;border-radius:4px;font:600 11px/1 var(--f-body);padding:5px 8px;cursor:pointer;letter-spacing:.04em}
.risk.L{background:color-mix(in srgb,var(--ok) 16%,var(--surface));color:var(--ok)}
.risk.M{background:color-mix(in srgb,var(--warn) 18%,var(--surface));color:var(--warn)}
.risk.H{background:var(--bad);color:#fff}
.addstep{border:1px dashed var(--line);border-radius:6px;padding:11px;display:flex;flex-direction:column;gap:10px}
.addstep .field small{font-weight:400;color:var(--muted)}
.signrow{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
.signrow:first-child{border-top:0}
.signrow .who{flex:1;min-width:0;font-size:14px}
.signrow .who small{display:block;color:var(--muted);font-size:12px}
.sigshot{display:flex;flex-direction:column;align-items:flex-end}
.sigshot img{height:36px;width:auto;max-width:130px;background:#fff;border-radius:3px}
.sigshot small{font-size:11px}
.addperson{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px;margin-top:6px}
.addperson select,.addperson input{min-width:0}
@media (max-width:480px){.addperson{grid-template-columns:minmax(0,1fr) auto}.addperson select{grid-column:1/-1}}
.thumbs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;max-width:420px}
.thumb{position:relative;aspect-ratio:1;border-radius:6px;overflow:hidden;background:var(--surface-2)}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb .rm{position:absolute;top:4px;right:4px}
.addthumb{aspect-ratio:1;border:1px dashed var(--line);background:var(--surface);border-radius:6px;display:flex;align-items:center;justify-content:center;color:var(--muted);cursor:pointer}
.addthumb svg{width:22px;height:22px}
.onphone{display:flex;gap:9px;align-items:flex-start;font-size:13px;line-height:1.4;color:var(--muted);background:var(--surface-2);border-radius:6px;padding:10px 12px}
.onphone svg{width:17px;height:17px;color:var(--ink);margin-top:1px;flex:none}
.onphone b{color:var(--ink);font-weight:600}
.created{display:flex;align-items:center;gap:9px;border:1px solid color-mix(in srgb,var(--ok) 45%,var(--line));background:color-mix(in srgb,var(--ok) 10%,var(--surface));border-radius:8px;padding:12px 13px;font-size:14px}
.created svg{color:var(--ok);width:20px;height:20px;flex:none}
.created b{font-weight:600}
.row-btns.twin .btn{min-height:50px;font-size:15px}
.emailrow{display:flex;flex-direction:column;gap:6px;padding-top:12px;border-top:1px solid var(--line)}
.er-h{display:flex;align-items:center;gap:7px;font-weight:600!important}
.er-h svg{width:17px;height:17px;color:var(--accent)}
.chiprow{display:flex;flex-wrap:wrap;gap:5px}
.pill.ok{color:var(--ok);border-color:color-mix(in srgb,var(--ok) 40%,var(--line))}
.pill.bad{color:var(--bad);border-color:color-mix(in srgb,var(--bad) 40%,var(--line))}
.ok-text{color:var(--ok);font-weight:600} .bad-text{color:var(--bad);font-weight:600}
/* the read-only paper copy: white like the PDF in both themes */
.paperwrap{background:#2b3540;border-radius:8px;padding:12px;max-height:65vh;overflow:auto}
.paper{background:#fff;color:#17212b;border-radius:3px;padding:18px 16px;font-size:12px;line-height:1.4;display:flex;flex-direction:column;gap:9px}
/* phd, not ph: .ph is the site-photo tile (4:3 dark box), which turned this header into an empty block (Colby 2026-10-29) */
.paper .phd{display:flex;justify-content:space-between;align-items:flex-end;border-bottom:2px solid #17212b;padding-bottom:6px;gap:10px}
.paper .phd .brand-mark{font-size:17px;color:#17212b}
.paper .phd .brand-mark span{color:#d9590b}
.paper .phd .brand-mark em{background:#17212b;color:#fff}
.paper .pr{text-align:right}
.paper .ptitle{font:600 17px/1.1 var(--f-display);text-transform:uppercase;letter-spacing:.03em}
.paper h4{margin:0;font:600 13px/1.2 var(--f-display);letter-spacing:.03em;text-transform:uppercase;background:#e8ecf0;padding:3px 6px}
.paper table{width:100%;border-collapse:collapse}
.paper td,.paper th{border:1px solid #c9d1d9;padding:4px 6px;vertical-align:top;text-align:left}
.paper th{background:#f2f4f6;font-weight:600}
.paper .ptab td,.paper .ptab th{font-size:11px}
.paper .psig{height:30px;width:auto}
.paper .pphotos{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.paper .pphotos img{width:100%;border-radius:2px}
.paper .pfoot{border-top:1px solid #c9d1d9;padding-top:6px;color:#5a6774;font-size:10.5px}
.paper .ok-text{color:#1d7a4c} .paper .bad-text{color:#b42318} .paper .warn-text{color:#9a6300}
@media (min-width:900px){.today1 .attn,.today1 .clock1{scroll-margin-top:16px}}

.field input.ro{background:var(--bg);color:var(--ink);font-weight:600;cursor:default}
/* 0.67 (Krug 2): clock out. Crew and foremen see their hours big; admins get "Clocked in by mistake?" and a Throw away box */
.co-big{display:block;font-size:30px;line-height:1.15;font-weight:600;font-variant-numeric:tabular-nums;margin:2px 0}
.co-oops{margin:6px 0 0;text-align:center}.co-oops .linkbtn{min-height:44px;color:var(--muted);text-decoration:underline}
.co-throw{border:1.5px solid var(--bad);border-radius:10px;padding:12px;margin-top:8px}
.co-throw p{margin:0 0 4px}

/* Company Settings: the app manager's "Delete company" panel (Beta V 0.26) */
body.cover #view,body.cover #notices,body.cover #sheet,body.cover #overlay{visibility:hidden}
.remove-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:4px 0 6px}
.remove-row small{flex:1 1 180px}
.btn.danger-fill{background:var(--bad);border-color:var(--bad);color:#fff}
.panel.danger-zone{border-color:color-mix(in srgb,var(--bad) 45%,var(--line))}
.panel.danger-zone h2{color:var(--bad)}

/* Schedule: the week planner (Beta V 0.28) */
.plan{display:flex;flex-direction:column;gap:12px}
.plan-week{display:flex;align-items:center;justify-content:center;gap:12px}
.plan-step{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:4px}
.plan-step .num{width:22px;height:22px;border-radius:50%;background:var(--accent-btn);color:var(--on-accent);display:inline-grid;place-items:center;font-size:12.5px;font-weight:700}
.plan-step .spacer{flex:1}
.plan-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.plan-day{border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:8px 2px;display:flex;flex-direction:column;align-items:center;gap:2px;cursor:pointer;color:var(--ink);font:inherit;min-width:0}
.plan-day .dn{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.plan-day b{font-size:19px;line-height:1.1}
.plan-day .dc{font-size:11px;color:var(--muted);min-height:14px}
.plan-day.today{border-color:color-mix(in srgb,var(--accent) 55%,var(--line))}
.plan-day[aria-pressed="true"]{background:var(--accent-btn);border-color:var(--accent-btn);color:var(--on-accent)}
.plan-day[aria-pressed="true"] .dn,.plan-day[aria-pressed="true"] .dc{color:var(--on-accent)}
.plan-crew{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:6px}
.plan-person{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:9px 10px;cursor:pointer;color:var(--ink);font:inherit;min-width:0}
.plan-person .pn{display:flex;flex-direction:column;min-width:0}
.plan-person .pn b,.plan-person .pn span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.plan-person .tick{width:22px;height:22px;border-radius:6px;border:1.5px solid var(--line);display:grid;place-items:center;flex:none}
.plan-person .tick svg{width:15px;height:15px;opacity:0}
.plan-person[aria-pressed="true"]{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,var(--surface))}
.plan-person[aria-pressed="true"] .tick{background:var(--accent-btn);border-color:var(--accent-btn);color:var(--on-accent)}
.plan-person[aria-pressed="true"] .tick svg{opacity:1}
@media (max-width:420px){ .plan-days{gap:4px} .plan-day b{font-size:17px} }

/* ===== UI/UX pass 1 (2026-10-27, approved by Colby): bigger tap targets, readable tab words and status colours, clearer edges, Crew page fits small phones.
   One block so it is easy to review or take out. ===== */
:root{--on-status:#ffffff;--line:#c8d0d8;--line-strong:#8a95a1}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--on-status:#0e141a;--line:#3a4958;--line-strong:#5f6f7f}}
:root[data-theme="dark"]{--on-status:#0e141a;--line:#3a4958;--line-strong:#5f6f7f}
/* 1. phone tab words: never smaller than 11px */
@media (max-width:420px){.tabbar button{font-size:12px;letter-spacing:0}}   /* 0.67 (Krug 4): 12 px at every width */
@media (max-width:380px){.tabbar button{font-size:12px;letter-spacing:0}}
/* 2. safety form Yes / No / N/A: 44px tall, easy to read once picked */
.yn button{min-height:44px;min-width:52px;font-size:14px}
.yn button[aria-pressed="true"][data-v="yes"],.yn button[aria-pressed="true"][data-v="no"],.yn.flag button[aria-pressed="true"][data-v="yes"]{color:var(--on-status)}
/* 3. dark text on green/red/amber in dark mode (white was 2.1-2.7:1) */
.sec-h .n.done,.risk.H,.dot-badge{color:var(--on-status)}
/* 4. everything you tap is at least 44px (small buttons 36px) for gloved hands */
.btn{min-height:44px}
.btn.sm{min-height:36px;padding:6px 12px}
input[type=text],input[type=number],input[type=date],input[type=tel],input[type=password],select{min-height:44px}
.icon-btn{width:44px;height:44px}
.avatar-btn,.avatar-btn img{width:40px;height:40px}
.switch{width:52px;height:32px;border-radius:16px}
.switch::after{width:26px;height:26px}
.switch[aria-checked="true"]::after{left:23px}
.day .add{padding:10px 0;min-height:40px}
.linkbtn{position:relative}
.linkbtn::after{content:"";position:absolute;inset:-11px -8px}
.seg button,.chips button,.tabs button{min-height:40px}
.chip{min-height:40px;align-items:center}
.sched-table .chip{align-items:flex-start}.sched-table .chip .dot{margin-top:5px}   /* 0.67 E3: dot by the first line of a wrapped name */
.rm{width:36px;height:36px}
input[type=checkbox],input[type=radio]{width:22px;height:22px;accent-color:var(--accent);flex:none}
.check{min-height:44px}
.back{min-height:44px}
a.addr{position:relative}
/* 5. Crew page: cards fit on small phones (320px) */
.crew-grid{grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr))}
/* 6. clearer lines; input boxes and switches get a 3:1 edge so they show in sun and at night */
input[type=text],input[type=number],input[type=date],input[type=tel],input[type=password],select,textarea,.search,.yn{border-color:var(--line-strong)}
.switch{background:var(--line-strong)}
/* 7. on phones, outline-only buttons get a visible edge so they don't look like plain text */
@media (max-width:600px){.btn.ghost{border-color:var(--line-strong)}}
/* 8. no text under 12px; status tags 12.5px */
.label,.pin-tag,.prio-tag,.hold-tag,.plan-day .dc,.sigshot small{font-size:12px}
.st,.pill,.co-badge{font-size:12.5px}
.drawing .ic{font-size:11px}

/* Beta V 0.32: notices outside the screen (No signal, saved clock-outs, Update ready), over the bottom of the screen so
   the box being typed in never moves; the screen gets room below so nothing is hidden behind them (C16). */
.notices{position:fixed;left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px));bottom:calc(66px + env(safe-area-inset-bottom,0px));z-index:7;display:grid;gap:8px;max-width:640px;margin-inline:auto;pointer-events:none}
.notices[hidden]{display:none}
.notices .notice{pointer-events:auto;padding:10px 12px;box-shadow:0 6px 20px rgba(0,0,0,.18);background:var(--surface);background:color-mix(in srgb,var(--accent) 10%,var(--surface))}
.notices .notice p{font-size:14px}
.notices .actions{margin:0}
main{padding-bottom:calc(104px + var(--notices-h,0px))}
@media (min-width:900px){.notices{left:auto;right:24px;bottom:24px;width:420px}main{padding-bottom:calc(56px + var(--notices-h,0px))}}
.toast{bottom:calc(84px + env(safe-area-inset-bottom,0px) + var(--notices-h,0px))}
@media (min-width:900px){.toast{bottom:calc(24px + var(--notices-h,0px))}}
.panel.focus{outline:2px solid var(--accent);outline-offset:2px}
/* 0.31 recheck: the invisible tap areas around text links (.linkbtn, a.addr, set above) now stop at 5px so they never cover the link above or below */
/* W12: Yes/No/N/A answers big enough for gloves, with a gap so a near miss doesn't hit the other answer */
.yn{gap:6px;border:0;overflow:visible}
.yn button{min-width:52px;min-height:44px;padding:8px 12px;border:1px solid var(--line-strong,var(--line));border-radius:6px}
.yn button+button{border-left:1px solid var(--line-strong,var(--line))}
.pill.sm{font-size:12px;padding:1px 6px;vertical-align:1px}
ul.probs{margin:4px 0 0;padding-left:18px;display:grid;gap:6px}
.notices .notice .actions .btn{min-height:40px}
/* Beta V 0.33: Left the company (H12) */
.leaver{padding:10px 0;border-top:1px solid var(--line)}
.leaver:first-child{border-top:0}
.leaver .row{padding:0;border:0}
.leaver-tickets{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
.leaver-tickets li{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
/* Beta V 0.34: Company Settings menu and pages */
.setup-menu,.setup-page{display:flex;flex-direction:column;gap:16px;max-width:760px}
.setup-menu .menu button small{white-space:normal;overflow-wrap:anywhere}
.on-word{color:var(--ok);font-weight:600}
.danger-menu{margin-top:8px}
.danger-menu button>svg,.danger-menu button .go{color:var(--bad)}
.use-list{padding-top:4px;padding-bottom:4px}
.use-row{display:flex;align-items:flex-start;gap:14px;padding:12px 0;border-top:1px solid var(--line)}
.use-row:first-child{border-top:0}
.panel>.use-row:only-child{padding:0}
.use-row .grow{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.use-row b{font-weight:600}
.use-row small{color:var(--muted);font-size:13.5px}
.use-row .switch{margin-top:2px}
.use-link{margin-top:4px}
.ro-box{border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:var(--bg);overflow-wrap:anywhere}
.steps-list{margin:0;padding:0;list-style:none;counter-reset:st;display:grid;gap:12px}
.steps-list li{counter-increment:st;display:grid;grid-template-columns:30px 1fr;gap:10px;align-items:start}
.steps-list li::before{content:counter(st);width:28px;height:28px;border-radius:50%;border:2px solid var(--muted);display:grid;place-items:center;font-weight:600;font-size:13px}
.savebar{position:fixed;left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px));bottom:calc(76px + env(safe-area-inset-bottom,0px));z-index:7;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:10px 12px 10px 16px;display:flex;align-items:center;gap:12px;max-width:760px}
.savebar[hidden]{display:none}
.savebar span{flex:1;min-width:0;color:var(--muted)}
.setup-page:has(+ .savebar:not([hidden])){padding-bottom:72px}
@media (min-width:900px){.savebar{position:sticky;bottom:16px;left:auto;right:auto;margin-top:16px}}
/* first-time setup: full screen on a phone, a pop-up on a computer */
body.flow-open{overflow:hidden}
.flow{position:fixed;inset:0;top:var(--demo-h,0px);z-index:15;background:var(--bg);overflow:auto;-webkit-overflow-scrolling:touch}
.flow-box{min-height:100%;display:flex;flex-direction:column}
.flow-side{padding:16px max(16px,env(safe-area-inset-left,0px)) 0}
.flow-side .label,.flow-side .flow-steps,.flow-side .flow-note{display:none}
.flow-brand{margin-bottom:4px}
.flow-main{flex:1;display:flex;flex-direction:column;gap:14px;padding:12px max(16px,env(safe-area-inset-right,0px)) calc(20px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
.flow-main h2{font:700 26px/1.15 var(--f-display);margin:0}
.flow-body{display:flex;flex-direction:column;gap:12px;flex:1}
.flow-body .use-list{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:4px 16px}
.flow-body .list{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:0 14px}
.flow-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap;position:sticky;bottom:0;background:var(--bg);padding-top:10px}
.flow-foot .spacer{flex:1}
@media (min-width:900px){
  .flow{background:rgba(10,15,20,.48);display:flex;align-items:center;justify-content:center;padding:32px}
  .flow-box{min-height:0;flex-direction:row;width:min(1100px,100%);max-height:calc(100vh - 64px);background:var(--surface);border-radius:16px;box-shadow:var(--shadow);overflow:hidden}
  .flow-side{width:300px;flex:none;border-right:1px solid var(--line);padding:28px 24px;display:flex;flex-direction:column;gap:14px}
  .flow-side .label,.flow-side .flow-note{display:block}
  .flow-side .flow-steps{display:grid}
  .flow-note{margin-top:auto}
  .flow-main{background:var(--bg);padding:28px 32px;overflow:auto}
  .flow-foot{background:var(--bg)}
}
.flow-steps,.finish-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.flow-steps li,.finish-list li{display:flex;align-items:center;gap:10px}
.flow-steps .num,.finish-list .num{width:28px;height:28px;flex:none;border-radius:50%;border:2px solid var(--muted);display:grid;place-items:center;font-weight:600;font-size:13px}
.flow-steps .num svg,.finish-list .num svg{width:16px;height:16px}
.flow-steps li.on,.finish-list li.on{font-weight:600}
.flow-steps li.on .num,.finish-list li.on .num{border-color:var(--accent);color:var(--accent-ink)}
.flow-steps li.done,.finish-list li.done{color:var(--muted);text-decoration:line-through}
.flow-steps li.done .num,.finish-list li.done .num{background:var(--ok);border-color:var(--ok);color:#fff}
.finish-card{border-color:var(--line);display:flex;flex-direction:column;gap:12px}
.finish-card h2{margin:0}
.finish-bar{height:8px;border-radius:4px;background:var(--line);overflow:hidden}
.finish-bar i{display:block;height:100%;background:var(--accent)}
.finish-list .grow{flex:1;min-width:0}
.finish-card>.linkbtn{align-self:flex-start}
/* Access tokens (Beta V 0.35) */
.tok-code{font-size:15px;letter-spacing:.04em;user-select:all;word-break:break-all}
.tok-new .btn{flex:none}
.tok-old{margin-top:8px}
.tok-old summary{cursor:pointer;font-size:14px;color:var(--muted);padding:6px 0}
.token-ok{margin:10px 0}
/* Sites today (Beta V 0.36, phone pass item 2) */
.sites-today .site-block{padding:10px 0;border-top:1px solid var(--line)}
.sites-today .site-block:first-of-type{border-top:0;padding-top:2px}
.sites-today .site-head{display:flex;align-items:center;gap:8px;min-height:32px}
/* 0.67 H1/P1 (Colby 2026-11-09 04:15): "2 of 3 in" never breaks; on phones it goes under the name. Timers in the body font. */
.sites-today .site-head>.small{white-space:nowrap}
@media (max-width:420px){.sites-today .site-head{flex-wrap:wrap;align-items:flex-start;row-gap:0}.sites-today .site-head>.dot{margin-top:6px}.sites-today .site-head>.small{flex-basis:100%;padding-left:17px}}
.sites-today .mono{font-family:var(--f-body);font-variant-numeric:tabular-nums;font-weight:600;font-size:14px}
.sites-today .flha-line{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:4px 0 4px 18px}
.btn.sm.flha-go{min-height:44px;font-size:14px;font-weight:700}   /* 0.67 r3 (FR L6): white on orange needs large/bold text */
.dot.hollow{background:transparent;border:2px solid var(--warn);box-sizing:border-box}
/* Beta V 0.36 phone pass item 3: schedule one day at a time (admins, narrow screens) */
.sched-phone{display:flex;flex-direction:column;gap:12px}
@media (min-width:760px){.sched-phone.only-narrow{display:none}}
.sd-by{align-self:flex-start}
.sd-by button{min-height:40px;padding:6px 16px}
.day-strip{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;padding:2px;margin:0 -2px}
.day-strip::-webkit-scrollbar{display:none}
.day-strip button{flex:1 1 0;min-width:0;min-height:62px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit;cursor:pointer;padding:4px 2px}
.day-strip .dw{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.day-strip .dd{font:600 17px/1.1 var(--f-display)}
.day-strip .dn{font-size:11px;color:var(--muted)}
.day-strip button.today{border:2px solid var(--accent)}
.day-strip button[aria-pressed="true"]{background:var(--accent-btn);border-color:var(--accent-btn);color:#fff}
.day-strip button[aria-pressed="true"] .dw,.day-strip button[aria-pressed="true"] .dn{color:#fff}
.sd-label{font:600 18px/1.25 var(--f-display);margin:2px 0 0}
.sd-site{border-left:4px solid var(--c);gap:4px}
.sd-site-h{display:flex;align-items:center;gap:8px}
.sd-site-h b{flex:1;min-width:0;overflow-wrap:anywhere}
.sd-line{display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center}
.sd-person{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;text-align:left;background:none;border:0;border-top:1px solid var(--line);padding:10px 2px;font:inherit;color:inherit;cursor:pointer;min-height:44px}
.sd-site .sd-person:first-of-type,.sd-people .sd-person:first-child{border-top:0}
.sd-person b{font-weight:600;overflow-wrap:anywhere}
.sd-person>span{font-size:13.5px;color:var(--muted);overflow-wrap:anywhere}
.sd-person .sd-proj{display:flex;align-items:center;gap:6px;color:var(--ink)}
.sd-person.mine b{color:var(--accent-ink)}
.sd-person:hover b{text-decoration:underline}
/* Beta V 0.36 phone pass item 4: Crew page, tappable cards and ticket rows, crew search */
.crew-search{max-width:none;width:100%;flex:none}
.crew-search input{min-height:46px}
button.crew-card{display:block;width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer}
button.crew-card:hover{border-color:var(--line-strong)}
button.crew-card:hover b{text-decoration:underline}
.crew-sub{display:block}
.crew-open .crew-top{align-items:center}
.crew-open .crew-top img{align-self:flex-start}
.crew-top .go,.tk-row .go{width:18px;height:18px;flex:none;color:var(--muted)}
button.tk-row{flex-wrap:nowrap !important;width:100%;background:none;border:0;border-bottom:1px solid var(--line);text-align:left;font:inherit;color:inherit;cursor:pointer;min-height:56px}
.list button.tk-row:last-child{border-bottom:0}
.tk-row .grow{display:flex;flex-direction:column;align-items:flex-start;gap:5px;flex:1;min-width:0}
.tk-who{overflow-wrap:anywhere}
.tk-row:hover .tk-who b{text-decoration:underline}
/* Beta V 0.36 phone pass item 5: Timesheet, empty days are one line with +, tidy top buttons on phones */
.day.empty-day{display:flex;align-items:center;gap:12px;padding:8px 0;grid-template-areas:none}
.empty-day .ed-dow{font:600 18px/1.1 var(--f-display);min-width:44px}
.empty-day.today .ed-dow,.empty-day.today .ed-md{color:var(--accent-ink)}
.empty-day .ed-md{color:var(--muted);font-size:14px;min-width:52px}
.empty-day .ed-none{flex:1;min-width:0;color:var(--muted);font-size:14px}
.empty-day .ed-add{width:44px;height:44px;flex:none;color:var(--accent-ink)}
@media (max-width:600px){
  .time-acts{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .time-acts select{grid-column:1/-1;width:100% !important;min-width:0 !important}
  .time-acts .btn{justify-content:center;min-width:0}
  .time-acts .btn:only-of-type{grid-column:1/-1}
}
/* Beta V 0.36 phone pass item 6: Safety forms, favourites, All forms page, one-row filters */
.chips.one-row{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:2px 16px}
.chips.one-row::-webkit-scrollbar{display:none}
.chips.one-row button{flex:none;min-height:40px;padding:6px 16px}
.formrow-w{display:flex;align-items:center;border-top:1px solid var(--line)}
.formrow-w:first-child{border-top:0}
.formrow-w .formrow{border-top:0;flex:1;min-width:0;min-height:52px;padding:8px 0}
.formrow .grow b{font-weight:600;overflow-wrap:anywhere}
.fav{width:44px;height:44px;flex:none;background:none;border:0;font-size:24px;line-height:1;color:var(--muted);cursor:pointer;border-radius:6px}
.fav.on{color:#e0a100}
.fav-hint{margin:0}
.all-forms{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:var(--surface);border:1px solid var(--line-strong);border-radius:8px;padding:12px 14px;font:inherit;color:inherit;cursor:pointer;min-height:64px}
.all-forms:hover{border-color:var(--accent)}
.all-forms .af-ic{width:42px;height:42px;border-radius:8px;flex:none;display:inline-flex;align-items:center;justify-content:center;background:#d9590b;color:#fff}
.all-forms .af-ic svg{width:22px;height:22px}
.all-forms .grow{flex:1;min-width:0;display:flex;flex-direction:column}
.all-forms b{font-size:17px;font-weight:600}
.all-forms small{color:var(--muted);font-size:13px}
.all-forms .go{width:18px;height:18px;flex:none;color:var(--muted)}
.recent-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.recent-h .linkbtn{min-height:40px}
/* Beta V 0.37 phone pass items 7 and 8: Sign out at the bottom of My profile; no company name in the phone top bar */
.me-signout{margin-top:24px}
.me-signout .btn{width:100%;justify-content:center}
@media (max-width:600px){.topbar .brand-co{display:none}}
/* recheck 0.36 note: a timesheet entry no longer reaches 6 px past its day on phones */
@media (max-width:600px){.entry{margin:-4px 0;width:100%;padding:4px 0}}
/* Beta V 0.38: Contact support (More > Help, My profile); long page titles wrap */
.menu .menu-link{text-decoration:none;min-height:44px}
.menu .menu-link:hover b{text-decoration:underline}
.me-help{margin:20px 0 0;text-align:center}
.me-help+.me-signout{margin-top:12px}
.page-head h1{overflow-wrap:anywhere}
/* Beta V 0.38: Send email (platform admins) */
.am-tabs{margin-bottom:12px}
.am-tabs svg{width:15px;height:15px;vertical-align:-2px;margin-right:4px}
.am-today{margin:8px 0}
.am-compose{gap:12px}
.am-found{max-height:280px;overflow:auto;border:1px solid var(--line);border-radius:6px;padding:0 10px}
.am-found .row svg{width:18px;height:18px;flex:none;color:var(--muted)}
.am-found .row .grow{display:flex;flex-direction:column;min-width:0}
.am-found .row b,.am-found .row span{overflow-wrap:anywhere}
.am-picks{gap:6px}
.chip-x{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--line);background:var(--surface-2);border-radius:16px;padding:2px 4px 2px 10px;font-size:13.5px;max-width:100%;overflow-wrap:anywhere}
.chip-x button{border:0;background:none;width:32px;height:32px;border-radius:50%;font-size:18px;line-height:1;color:var(--muted);cursor:pointer;flex:none}
.am-foot{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:baseline;white-space:pre-wrap;overflow-wrap:anywhere}
.am-body{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--surface-2);border-radius:6px;padding:10px 12px}
.am-to{max-height:220px;overflow:auto}
.am-to-field .search input{border:0;background:none;box-shadow:none;padding-left:34px}
/* Beta V 0.39 crew pass item 1: crew see the day view read only, their own rows marked */
.sd-person.mine{background:color-mix(in srgb,var(--accent) 10%,var(--surface));border-radius:8px;padding-inline:10px}
.sd-person.mine+.sd-person,.sd-person+.sd-person.mine{border-top-color:transparent}
.sd-person.mine b{color:var(--ink)}
.sd-you{color:var(--accent-ink);font-weight:600}
.sd-person.ro{cursor:default}
.sd-person.ro:hover b{text-decoration:none}
/* recheck 0.38 lows: long unbroken subjects wrap in the Sent list and pop-up titles */
.rowbtn b,.rowbtn .grow span,#sheetTitle{overflow-wrap:anywhere;min-width:0}
/* 0.39 crew pass items 2-4: My schedule card, one compact ticket alert, short This phone */
.my-sched .ms-today{background:var(--surface-2);border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:6px}
.my-sched .ms-today .label{color:var(--accent-ink);font-size:12px}
.my-sched .ms-job b{font-size:18px;display:flex;align-items:center;gap:8px;overflow-wrap:anywhere}
.my-sched .ms-job .dot{width:12px;height:12px;flex:none}
.my-sched .ms-job + .ms-job{border-top:1px solid var(--line);padding-top:6px}
.my-sched .ms-week{margin-top:12px}
.my-sched .ms-row{display:flex;gap:12px;align-items:baseline;padding:10px 0;border-top:1px solid var(--line)}
.my-sched .ms-days{flex:0 0 76px;color:var(--muted);white-space:nowrap}
.my-sched .ms-row.none .grow{color:var(--muted)}
.my-sched .ms-site{display:inline-flex;align-items:center;gap:6px;margin-right:10px}
.my-sched .ms-site .dot{flex:none}
.tk-alert{display:flex;flex-direction:column;gap:4px;border:1px solid color-mix(in srgb,var(--bad) 45%,var(--line));background:color-mix(in srgb,var(--bad) 8%,var(--surface));border-radius:10px;padding:12px 14px;margin-bottom:16px}
.tk-alert b{color:var(--bad)}
.tk-alert span{color:color-mix(in srgb,var(--bad) 75%,var(--ink));overflow-wrap:anywhere}
.tk-alert-acts{display:flex;gap:18px;flex-wrap:wrap;margin-top:4px}
.tk-alert .linkbtn,.phone-more{color:var(--accent-ink);font-weight:600}
.phone-more{margin-top:10px;align-self:flex-start}
.phone-more-body p{margin:0 0 10px}
.setting-line.phone-lock{flex-wrap:nowrap}
.setting-line.phone-lock > div{flex:1 1 auto;min-width:0}
/* 0.39 computer pass (ui-ux/review-5-computer): side menu groups, Reports/Billing heads, Projects filters on one row */
.nav-group{font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:14px 10px 4px}
.proj-filters{display:flex;flex-direction:column;gap:20px}   /* phones: stacked as before */
@media (min-width:900px){
  .rep-switch{display:none}
  .proj-filters{flex-direction:row;flex-wrap:wrap;gap:10px 12px;align-items:center}
  .proj-filters .seg{width:auto;margin:0}
  .proj-filters .manage-link{margin-left:auto;align-self:center}
}
table.by-proj tbody tr:not(.sub) td{border-bottom:0;border-top:1px solid var(--line)}
table.by-proj tbody tr:first-child td{border-top:0}
table.by-proj tbody tr.sub:last-child td{padding-bottom:9px}
table.rates td{vertical-align:middle}
table.wages td{vertical-align:middle}
/* 0.39 reports + daily logs phone pass (ui-ux/review-6-reports-logs) */
.rep-switch,.rec-tabs{align-self:flex-start;margin-left:0}
.rep-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.rep-acts-phone,.rep-cards{display:none}
.log-gone{color:var(--bad)}
@media (max-width:600px){
  .rep-switch,.rec-tabs{display:flex;width:100%;align-self:stretch}
  .rep-switch button,.rec-tabs button{flex:1;padding-block:9px}
  .page-head .rep-acts{display:none}
  .rep-acts-phone{display:flex;gap:10px}
  .rep-acts-phone .btn.primary{flex:1;justify-content:center}
  .rep-acts-phone .icon-only{flex:none;width:48px;padding:0;justify-content:center}
  .rep-acts-phone .icon-only svg{margin:0}
  .range-seg{flex-wrap:nowrap;overflow-x:auto;border:0;background:none;border-radius:0;gap:8px;padding:2px 16px;margin-inline:-16px;width:calc(100% + 32px);scrollbar-width:none}
  .range-seg::-webkit-scrollbar{display:none}
  .range-seg button{flex:none;white-space:nowrap;border:1px solid var(--line);border-radius:999px;padding:8px 14px;background:var(--surface)}
  .range-seg button[aria-pressed="true"]{background:var(--accent-btn);border-color:var(--accent-btn);color:#fff}
  .rep-table{display:none}
  .rep-cards{display:block}
}
.rc{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:12px 14px;margin-bottom:12px}
.rc-top,.rc-row{display:flex;gap:12px;align-items:flex-start}
.rc-top .grow,.rc-row .grow{flex:1;min-width:0;overflow-wrap:anywhere}
.rc-top b .dot{display:inline-block;margin-right:7px;vertical-align:middle}
.rc-fig{display:flex;flex-direction:column;align-items:flex-end;text-align:right;white-space:nowrap;gap:2px}
.rc-sub{display:flex;justify-content:space-between;gap:12px;font-size:13px;padding-top:8px;margin-top:8px;border-top:1px solid var(--line)}
.rc-sub+.rc-sub{border-top:0;margin-top:0}
.rc-sub .num{white-space:nowrap}
.rc-total{display:flex;justify-content:space-between;gap:12px;padding:4px 2px 0}
.rc-list{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:0 14px}
.rc-row{padding:12px 0;border-top:1px solid var(--line)}
.rc-row:first-child{border-top:0}
.rc-row>b{white-space:nowrap}
/* 0.39 Final Review lows: long job names wrap in My schedule; Billing fits a phone */
.my-sched .ms-row .grow{min-width:0;overflow-wrap:anywhere}
@media (max-width:360px){.my-sched .ms-row{flex-wrap:wrap;row-gap:2px}.my-sched .ms-days{flex-basis:100%}}   /* 0.67 H2 */
.my-sched .ms-site{max-width:100%}
@media (max-width:600px){
  table.rates td{font-size:13px}
  table.rates td.num{white-space:nowrap}
  table.rates .btn{padding:6px 8px;font-size:13px;white-space:nowrap}
  table.rates th,table.rates td{padding-inline:6px}
  table.rates th{white-space:normal;letter-spacing:.03em}
  table.rates th:nth-child(3),table.rates td:nth-child(3){display:none}
}
/* 0.40: the side menu scrolls on short screens, so the last items (Company Settings, Beta requests) stay reachable */
@media (min-width:900px){.rail{overflow-y:auto;overscroll-behavior:contain}}

/* Beta V 0.41 light/dark switch (ui-ux/review-8): in the top bar while there is one (left of the bell), otherwise
   on a slim row at the top right of the content, above the page head. Sign-in screens: the top right corner. */
.theme-row{display:none}
@media (min-width:900px){
  .theme-row{display:flex;justify-content:flex-end;width:100%;max-width:1120px;margin:0 auto -26px;
    padding:10px max(16px,env(safe-area-inset-right,0px)) 0 max(16px,env(safe-area-inset-left,0px))}
}
.shell.bare .theme-row{display:flex;justify-content:flex-end;width:100%;max-width:none;margin:0 0 -26px;
  padding:calc(6px + env(safe-area-inset-top,0px)) max(8px,env(safe-area-inset-right,0px)) 0 8px}
.top-right .thm{margin-right:-6px}
@media (max-width:360px){.top-right{gap:2px}.top-right .thm{margin:0 -4px}}
.cb-login .cb-theme{position:absolute;top:calc(6px + env(safe-area-inset-top,0px));right:max(8px,env(safe-area-inset-right,0px));z-index:1}

/* Beta V 0.43: no crew yet boxes, Invite crew (ui-ux review-9 sections 6, 7) */
.ob-box{background:var(--surface-2);border-radius:8px;padding:12px 14px;font-size:14.5px;line-height:1.45}
.inv-form{display:flex;flex-direction:column;gap:10px}
.inv-seg{display:flex;width:100%}
.inv-seg button{flex:1}
.inv-list{display:flex;flex-direction:column}
.inv-row{padding:12px 0;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:3px}
.inv-acts{display:flex;gap:8px;margin-top:6px}
.warn-text{color:var(--warn)}

/* Install Crewbook (ui-ux review-9 sections 5 and 10) */
.inst-card{background:color-mix(in srgb,var(--accent) 7%,var(--surface));border-color:color-mix(in srgb,var(--accent) 40%,var(--line));display:flex;flex-direction:column;gap:12px}
.inst-head{display:flex;gap:14px;align-items:flex-start}
.inst-head p{margin:2px 0 0}
.inst-icon{width:52px;height:52px;border-radius:12px;flex:none;background:var(--surface-2);display:flex;align-items:center;justify-content:center;padding:8px}
.inst-icon svg{width:100%;height:100%}
.inst-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.inst-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.inst-steps li{display:flex;gap:10px;align-items:center;line-height:1.4}
.inst-steps .n{flex:none;width:26px;height:26px;border-radius:50%;background:var(--accent-btn);color:#fff;font-weight:700;font-size:13px;display:inline-flex;align-items:center;justify-content:center}
.inst-steps .ib{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid var(--line);border-radius:7px;vertical-align:middle;margin:0 2px;color:#1a73e8;background:var(--surface)}
.inst-steps .ib .i{width:17px;height:17px}
.inst-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:560px){.inst-two{grid-template-columns:1fr}}

/* Switch wheel (ui-ux review-9 section 1): plain list, CSS scroll-snap, 44 px rows, a centre band */
.wheel{position:relative;height:220px;overflow-y:auto;scroll-snap-type:y mandatory;border:1px solid var(--line);border-radius:10px;padding:88px 8px;background:var(--surface);
  -webkit-mask-image:linear-gradient(transparent,#000 30%,#000 70%,transparent);mask-image:linear-gradient(transparent,#000 30%,#000 70%,transparent);outline:none;overscroll-behavior:contain}
.wheel:focus-visible{box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 35%,transparent)}
.wh-item{height:44px;display:flex;align-items:center;justify-content:center;scroll-snap-align:center;font-size:18px;color:var(--muted);border-radius:8px;cursor:pointer;user-select:none}
.wh-item[aria-selected="true"]{background:color-mix(in srgb,var(--accent) 14%,var(--surface));border:1px solid color-mix(in srgb,var(--accent) 45%,var(--line));color:var(--ink);font-weight:700;font-size:20px}
.kv-line{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line);font-size:14.5px}
.kv-line > span{color:var(--muted)}
.kv-line .kv-num{width:90px;text-align:right}
.notice.late-note{background:color-mix(in srgb,var(--warn) 10%,var(--surface));border:1px solid color-mix(in srgb,var(--warn) 40%,var(--line))}
.notice.late-note .i{color:var(--warn);flex:none}
.pill .i{width:12px;height:12px}
.edit-bar{display:flex;gap:10px;align-items:flex-start;background:var(--surface-2);border-radius:8px;padding:12px 14px;font-size:14px;line-height:1.45;margin:4px 0 12px}
.edit-bar .i{flex:none;margin-top:3px}
.entry .pen .i{width:13px;height:13px;margin-left:5px;color:var(--muted);vertical-align:-1px}
/* 0.43 drawings: limit text, per-series upload, revisions, over-50-MB note */
.up-limit{font-size:12.5px;max-width:120px;line-height:1.3}
.up-files-limit{font-weight:400;font-size:12.5px}
.btn.up-series{width:100%;justify-content:center;border:1.5px dashed var(--line);background:transparent;color:var(--accent-ink);margin-top:10px}
.btn.up-series:hover{border-color:var(--accent)}
.dr-older{display:block;margin:6px auto 2px;color:var(--accent-ink);font-weight:600}
.dr-revs{border-left:3px solid var(--line);padding-left:10px;margin:4px 0 6px}
.locked-series{padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);font-weight:700}
.notice.warn-note{border-color:color-mix(in srgb,var(--warn) 45%,var(--line));background:color-mix(in srgb,var(--warn) 9%,var(--surface))}
.notice.warn-note p{display:flex;gap:8px;align-items:flex-start}
.notice.warn-note p svg{width:20px;height:20px;flex:none;color:var(--warn);margin-top:1px}
/* 0.43 FLHA drop-downs (HANDOFF-v043 section 3) */
.pick-other{display:flex;flex-direction:column;gap:4px;margin-top:8px}
.pick-other small{color:var(--muted);font-weight:400}
.pick-add{display:flex;gap:8px}.pick-add input{flex:1;min-width:0}
.hz-head{font-size:13px;font-weight:600;margin-top:4px}
.hz-list{border:1px solid var(--line);border-radius:10px;overflow:hidden}
.hz-row{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 4px 0 14px;border-top:1px solid var(--line)}
.hz-row:first-child{border-top:0}
.hz-row .n{flex:1;min-width:0}
.hz-row .g{font-size:12.5px;color:var(--muted);text-align:right}
.hz-x{width:44px;height:44px;flex:none;border:0;background:none;color:var(--muted);font-size:20px;cursor:pointer;border-radius:8px}
.hz-x:hover{color:var(--bad)}
.addstep .field>label{font-size:13px;font-weight:500}
@media (max-width:360px){
  .hz-row{display:grid;grid-template-columns:1fr 44px;grid-template-rows:auto auto;align-content:center;column-gap:6px;row-gap:1px;padding:6px 4px 6px 14px}
  .hz-row .n,.hz-row .g{line-height:1.3}
  .hz-row .n{grid-column:1;grid-row:1}
  .hz-row .g{grid-column:1;grid-row:2;text-align:left}
  .hz-row .hz-x{grid-column:2;grid-row:1/3;align-self:center}
}
/* 0.43 File storage (HANDOFF-v043 section 8) */
.st-used .st-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
.st-big{margin:6px 0 10px}.st-big b{font:600 34px/1.1 var(--f-display)}
.st-bar{height:10px;border-radius:99px;background:var(--surface-2);overflow:hidden}
.st-bar i{display:block;height:100%;border-radius:99px;background:var(--accent)}
.st-bar.ok i{background:var(--ok)}.st-bar.warn i{background:var(--warn)}.st-bar.bad i{background:var(--bad)}
.st-bar.accent{height:6px;margin-top:6px}
.st-list h2{margin-bottom:4px}
.st-row,.st-file{padding:12px 0;border-top:1px solid var(--line)}
.st-file{display:block;width:100%;background:none;border-left:0;border-right:0;border-bottom:0;color:inherit;font:inherit;text-align:left;cursor:pointer;min-height:44px}
.st-file:hover span>span:first-child{color:var(--accent-ink)}
.st-line{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.st-line>span{min-width:0;overflow-wrap:anywhere}
.st-line small{display:block;color:var(--muted);font-size:12.5px;margin-top:2px}
.st-line b.num{white-space:nowrap}
.st-old{color:var(--warn)}

/* 0.44: Download backup beside Delete company on the Company Settings menu (Colby 2026-10-30 04:08) */
.co-end{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.co-end .menu{margin:0}
.co-end .danger-menu{margin-top:0}
.co-end .menu button{height:100%}
.backup-menu button>svg{color:var(--accent)}
/* 0.44: maintenance and outage notices, light red, top of Notifications (contract-0.44 sections 1-2) */
.site-notice{margin:0 0 12px;padding:12px 14px;border-radius:10px;border:1px solid color-mix(in srgb,var(--bad) 30%,var(--surface));background:color-mix(in srgb,var(--bad) 9%,var(--surface));color:var(--bad);line-height:1.4}
/* 0.44 UI/UX check: Send To Office and the backup tiles on phones */
.so-day{margin:12px 0}
@media (max-width:600px){
  .so-filters{grid-template-columns:1fr}
  .co-end{grid-template-columns:1fr}
}
/* series completion form (0.45) */
.compl-head{margin:0 0 12px}
.compl-qs .check-q{border-top:1px solid var(--line)}
.compl-qdate{display:flex;align-items:center;gap:8px;justify-content:flex-end;padding:0 0 8px}
.compl-qdate input{max-width:170px}
.yn button[aria-pressed="true"][data-v="other"]{background:var(--surface-2);color:var(--ink)}
#complOtherText{margin-top:6px;min-height:60px}
@media (max-width:600px){.compl-other .check-q{flex-wrap:wrap}.compl-other .yn{flex-basis:100%}}

/* version at the bottom of every page (0.47) */
.app-ver{text-align:center;color:var(--muted);font-size:12px;letter-spacing:.02em;padding:28px 0 8px}
/* 0.47 Extra Work (ui-ux review-10) */
.seg.time-seg button{white-space:nowrap}
@media (max-width:600px){.seg.time-seg{display:grid;width:100%;grid-template-columns:repeat(3,1fr)}.seg.time-seg.n4{grid-template-columns:repeat(4,1fr)}.seg.time-seg button{padding-inline:4px}}
@media (max-width:340px){.seg.time-seg.n4{grid-template-columns:1fr 1fr}}
.so-ic.xw{background:#d9590b}
.so-btns.n2{grid-template-columns:1fr 1fr}.so-btns.n1{grid-template-columns:1fr}
.xw-meta{display:flex;flex-wrap:wrap;gap:4px 14px}.xw-meta span{display:inline-flex;align-items:center;gap:4px}.xw-meta svg{width:14px;height:14px}
.xw-help{margin:0;padding:0 14px 8px}.xw-links{display:inline-flex;gap:14px}
.xw-h{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0 0 10px;font-weight:700}
.req{color:var(--accent-ink)}
.xw-workers{border:1px solid var(--line);border-radius:8px;overflow:hidden;margin:8px 0}
.xw-w{display:flex;align-items:center;gap:8px;padding:8px 10px;border-top:1px solid var(--line)}.xw-w:first-child{border-top:0}
.xw-w .grow{flex:1;min-width:0;display:flex;flex-direction:column}.xw-w.total{background:var(--surface-2)}
.stepper{display:flex;align-items:center;gap:4px}.stepper input{width:56px;text-align:center;font-weight:600}
.xw-w .rm{border:0;background:none;font-size:20px;color:var(--muted);cursor:pointer;min-width:32px;min-height:40px}
.xw-typed{display:flex;gap:8px;margin-top:-4px;margin-bottom:8px}.xw-typed input{flex:1}
.xw-text{white-space:pre-wrap;margin:8px 0}
#xwRevPh{margin:8px 0}#xwRevPh .thumb{border:0;padding:0;cursor:pointer}
/* 0.47 photo folders (ui-ux review-12) */
.ph-intro{margin:0 0 10px}
.ph-dl{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 12px}
.ph-folders{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.ph-folder{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:0;overflow:hidden;cursor:pointer;text-align:left;color:inherit;font:inherit}
.ph-cover{aspect-ratio:4/3;display:grid;gap:2px;background:var(--surface-2);place-items:center;color:var(--muted)}
.ph-cover.n2,.ph-cover.n3,.ph-cover.n4{grid-template-columns:1fr 1fr}.ph-cover.n3 img:first-child{grid-row:span 2}
.ph-cover.n4{grid-template-rows:1fr 1fr}.ph-cover.n2{grid-template-rows:1fr}
.ph-cover img,.ph-cover span{width:100%;height:100%;object-fit:cover;display:block;min-height:0}
.ph-cover svg{width:28px;height:28px}
.ph-ft{display:flex;flex-direction:column;gap:1px;padding:8px 10px 10px;min-width:0}.ph-ft b{font-size:14px}.ph-ft span{font-size:13px;overflow-wrap:anywhere}
.ph-h{font-size:18px;margin:4px 0 10px}
.ph-tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:12px}.ph-tools .chips{margin-left:auto}
@media (max-width:600px){.ph-tools .chips{margin-left:0}}
@media (hover:none),(max-width:700px){.ph-drop{display:none}}
@media (max-width:340px){.so-btns.n3{grid-template-columns:1fr 1fr}.so-btns.n3 .btn:first-child{grid-column:1/-1}.so-btns.n3 .btn:nth-child(2){border-left:0}.so-btns.n3 .btn:nth-child(n+2){border-top:1px solid var(--line)}}
.ph span{top:0;bottom:auto;padding:4px 6px 16px;background:linear-gradient(rgba(0,0,0,.65),transparent)}

/* Reports › Forms (Beta V 0.48) */
.frep-filt{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px}
.frep-filt .field{margin:0}
.frep-job{gap:0;padding:10px 14px}
.frep-jh{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:15px;padding:2px 0 4px}
.frep-ser{font:600 12px var(--f-head,inherit);text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:10px 0 2px;overflow-wrap:anywhere}
.frep-row{display:flex;gap:10px;align-items:center;border-top:1px solid var(--line);padding:9px 0;font-size:14px}
.frep-row .grow{flex:1;min-width:0}.frep-row b{overflow-wrap:anywhere}
.frep-row small{display:block;color:var(--muted);font-size:12.5px}
.frep-tags{display:flex;gap:6px 8px;flex-wrap:wrap;align-items:center;margin-top:4px}
.frep-sent{display:inline-flex;align-items:center;gap:3px;font-size:12px}
.frep-sent svg{width:12px;height:12px}
.frep-sent.ok{color:var(--ok)}.frep-sent.bad{color:var(--bad);font-weight:600}.frep-sent.muted{color:var(--muted)}
.frep-cards{display:flex;flex-direction:column;gap:12px}
.frep-table{display:none}
@media (min-width:900px){
  .frep-filt{grid-template-columns:repeat(4,1fr)}
  .frep-cards{display:none}
  .frep-table{display:block;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
  .frep-table table{width:100%;border-collapse:collapse;font-size:14px}
  .frep-table th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:9px 12px;border-bottom:1px solid var(--line)}
  .frep-table td{padding:7px 12px;border-top:1px solid var(--line);vertical-align:middle}
  .frep-table td:last-child{text-align:right}
  .frep-jr td{font-weight:700;font-size:15px;background:var(--surface-2)}
  .frep-sr td{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding-top:12px}
}

/* Clocked in now + Not clocked in (Beta V 0.48) */
.cl-h{font-size:14px;font-weight:600;margin:6px 0 0}
.cl-out{display:flex;flex-wrap:wrap;gap:6px}
.cl-out span{border:1px solid var(--line);border-radius:999px;padding:4px 10px;font-size:13.5px;background:var(--surface-2);overflow-wrap:anywhere}
.cl-out small{font-size:11.5px}

/* Cleanup space (Beta V 0.48) */
.cl-open{width:100%;justify-content:center;margin-bottom:4px}
.cl-sum{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:14px}.cl-sum .linkbtn{margin-left:auto}
.cl-list{display:flex;flex-direction:column;gap:6px}
.cl-file{display:flex;gap:10px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:8px 10px;font-size:14px;cursor:pointer;min-height:44px}
.cl-file input{width:20px;height:20px;flex:none;margin:0}
.cl-file .grow{flex:1;min-width:0}.cl-file b{overflow-wrap:anywhere}.cl-file small{display:block;color:var(--muted);font-size:12.5px}
.cl-file .num{white-space:nowrap;font-family:var(--f-mono,monospace)}
.cl-ic{width:40px;height:40px;border-radius:6px;flex:none;display:grid;place-items:center;background:var(--surface-2);color:var(--muted);font:600 11px var(--f-mono,monospace)}
.cl-ic svg{width:18px;height:18px}
.cl-more{width:100%;justify-content:center}
.cl-bar{position:sticky;bottom:calc(var(--tabbar-h,0px) + 8px);display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:8px 10px;font-size:14px;box-shadow:0 4px 16px rgba(0,0,0,.12);z-index:5}
.cl-bar[hidden]{display:none}

/* Audit log (Beta V 0.48) */
.au-month{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}.au-month .field{margin:0}
@media (max-width:420px){.au-month{grid-template-columns:1fr}}
.au-filt{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px}.au-filt .field{margin:0}
.au-cards{display:flex;flex-direction:column;gap:8px}
.au-day{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:8px 0 0}
.au-row{display:flex;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:9px 11px;font-size:14px}
.au-row .t{font:500 12.5px var(--f-mono,monospace);color:var(--muted);min-width:62px;white-space:nowrap}
.au-row .grow{flex:1;min-width:0;overflow-wrap:anywhere}.au-row small{display:block;color:var(--muted);font-size:12.5px}
.au-k{display:inline-block;font-size:11px;font-weight:600;border-radius:10px;padding:1px 8px;margin-bottom:3px;border:1px solid var(--line);white-space:nowrap}
.au-k.h{color:var(--accent-ink);border-color:color-mix(in srgb,var(--accent) 45%,var(--line))}
.au-k.a{color:var(--ok);border-color:color-mix(in srgb,var(--ok) 45%,var(--line))}
.au-k.d{color:var(--bad);border-color:color-mix(in srgb,var(--bad) 45%,var(--line))}
.au-ch{display:inline-flex;gap:6px;align-items:center;font:500 12.5px var(--f-mono,monospace);margin-top:3px;flex-wrap:wrap}
.au-ch s{color:var(--bad)}.au-ch b{color:var(--ok)}
.au-table{display:none}.au-more{width:100%;justify-content:center}
@media (min-width:900px){
  .au-filt{grid-template-columns:repeat(4,1fr)}
  .au-cards{display:none}
  .au-table{display:block;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
  .au-table table{width:100%;border-collapse:collapse;font-size:13.5px}
  .au-table th{text-align:left;font-size:11.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:8px 10px;border-bottom:1px solid var(--line)}
  .au-table td{padding:7px 10px;border-top:1px solid var(--line);vertical-align:top}
  .au-table .nowrap{white-space:nowrap}
  .au-dr td{font-size:12px;font-weight:600;text-transform:uppercase;color:var(--muted);background:var(--surface-2)}
}
.em-pick{display:block;margin:-4px 0 6px}.em-pick select{width:100%;max-width:420px}
.ct-list .row .small{word-break:break-all}
/* 0.48 UI/UX check v048 (1): six range chips (Day added) wrap onto two rows on phones instead of running off the edge. */
@media (max-width:600px){.range-seg{flex-wrap:wrap;overflow-x:visible;margin-inline:0;width:auto;padding:2px 0}}
/* (2): job and series rows of the Forms table read from the left. */
@media (min-width:900px){.frep-table .frep-jr td,.frep-table .frep-sr td{text-align:left}}

/* Books (Beta V 0.49) */
.bk-entry{margin-top:10px}
.bk-ic{background:var(--accent)!important}
.bk-chips{margin:10px 0}
.bk-list,.bk-ups{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}
.bk-row{display:flex;gap:8px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:6px 8px 6px 6px;font-size:14px}
.bk-open{display:flex;gap:10px;align-items:center;flex:1;min-width:0;background:none;border:0;padding:4px;font:inherit;color:inherit;text-align:left;cursor:pointer;border-radius:6px;min-height:48px}
.bk-open .grow{flex:1;min-width:0}
.bk-row b{display:block;overflow-wrap:anywhere;font-weight:600}
.bk-row small{display:block;color:var(--muted);font-size:12.5px}
.bk-ty{width:42px;height:42px;border-radius:6px;flex:none;display:grid;place-items:center;font:600 10.5px var(--f-mono,monospace);letter-spacing:.02em;background:var(--surface-2);color:var(--muted);border:1px solid var(--line)}
.bk-ty.pdf{color:var(--bad)}
.bk-ty.doc{color:var(--accent-ink)}
.bk-ty.xls{color:var(--ok)}
.bk-star{border:0;background:none;font-size:22px;line-height:1;color:var(--muted);min-width:44px;min-height:44px;cursor:pointer;border-radius:6px}
.bk-star.on{color:var(--accent)}

/* Extra work signing in the form (Beta V 0.50) */
.so-status.xw-st{flex-wrap:wrap;gap:6px;justify-content:flex-start}
.so-status.xw-st .xw-links{margin-left:auto}
.xw-sigline{margin:6px 0 12px;padding:10px 12px;border-left:3px solid var(--accent);background:var(--surface-2);border-radius:4px}
.xw-sigwait{display:flex;gap:6px;align-items:flex-start;margin:0 0 12px;color:var(--warn);font-weight:600}
.xw-sigwait svg{flex:none;width:16px;height:16px;margin-top:2px}
.xw-signed{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.xw-signed p{margin:0;flex:1;min-width:0}
.xw-sigimg{width:150px;height:60px;border:1px solid var(--line);border-radius:6px;background:#fff;display:grid;place-items:center;flex:none}
.xw-sigimg img{max-width:140px;max-height:52px}
/* Beta V 0.51 (Colby 2026-11-02): side menu sub menus, computer only (the rail is hidden on phones) */
.rail nav .sub-head .chev{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;margin-left:auto;width:16px;height:16px;color:var(--muted);transition:transform .15s;flex:none}
.rail nav .sub-head[aria-expanded="true"]{color:var(--ink)}
.rail nav .sub-head[aria-expanded="true"] svg.i{color:var(--accent)}
.rail nav .sub-head[aria-expanded="true"] .chev{transform:rotate(90deg)}
.rail nav .sub-head .count{margin-left:6px;font-size:11px;background:var(--accent-btn);color:#fff;border-radius:9px;padding:0 6px;line-height:17px;font-weight:600}
.rail nav .sub-list{display:flex;flex-direction:column;gap:1px;margin:2px 0 6px 19px;padding-left:10px;border-left:1px solid var(--line)}
.rail nav .sub-list button{padding:6px 10px;font-size:13.5px;color:var(--ink);border-radius:6px;text-align:left;white-space:normal}
.rail nav .sub-list button:hover{background:var(--surface-2)}
.rail nav .sub-list button[aria-current="page"]{color:var(--ink);background:var(--surface-2);font-weight:600;box-shadow:inset 3px 0 0 var(--accent)}
/* 0.53 (Colby 2026-11-03 00:13, option C of preview 48F4uSXGx2zayGijEp7Kb6): headings are grey with a line after; the pages are darker */
.rail nav .sub-list .sub-sec{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding:12px 10px 4px;cursor:default;user-select:none}
.rail nav .sub-list .sub-sec::after{content:"";flex:1;border-top:1px solid var(--line)}
.rail nav .sub-list .sub-sec:first-child{padding-top:4px}
@media (prefers-reduced-motion:reduce){.rail nav .sub-head .chev{transition:none}}
/* Beta V 0.51: send to contact names (no addresses for anyone but the Company Manager) */
.pk-names{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.pk-chip{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--line);background:var(--surface-2);border-radius:999px;padding:3px 4px 3px 12px;font-size:14px;font-weight:600;max-width:100%}
.pk-names{min-width:0}.pk-chip{min-width:0}.pk-chip .pk-l{min-width:0;overflow-wrap:anywhere}.pk-chip .x{flex:none;border:0;background:none;color:var(--muted);font-size:18px;line-height:1;padding:2px 8px;cursor:pointer;min-height:32px}
.pk-sel{width:100%;margin-top:4px}
/* Beta V 0.51: Emails picker (Company Settings > Emails, Company Manager only) */
.emailrow .em-store{display:none}
.emchips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.emchip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--surface-2);border-radius:999px;padding:3px 4px 3px 12px;font-size:13.5px;max-width:100%;min-width:0}
.emchip b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.emchip small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.emchip.bad{border-color:var(--bad,#b3261e)}
.emchip.bad small{color:var(--bad,#b3261e)}
.emchip .x{border:0;background:none;color:var(--muted);font-size:17px;line-height:1;cursor:pointer;padding:2px 8px;min-height:30px}
.cbx{position:relative}
.cbx-box{display:flex;align-items:center;border:1px solid var(--line);border-radius:8px;background:var(--surface);min-height:44px;padding:0 4px 0 12px}
.cbx-box:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}
.cbx-box .em-type{flex:1;min-width:0;border:0;background:none;font:inherit;color:var(--ink);outline:none;padding:10px 0;box-shadow:none}
.cbx-arrow{border:0;background:none;color:var(--muted);padding:8px 10px;cursor:pointer;min-height:40px}
.cbx-menu{position:absolute;left:0;right:0;top:calc(100% + 4px);background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.18);z-index:20;padding:6px;max-height:280px;overflow-y:auto}
.cbx-menu .opt{display:flex;flex-direction:column;align-items:flex-start;width:100%;text-align:left;border:0;background:none;padding:8px 10px;border-radius:6px;cursor:pointer;color:var(--ink);font:inherit}
.cbx-menu .opt:hover,.cbx-menu .opt:focus{background:var(--surface-2);outline:none}
.cbx-menu .opt b{font-weight:600}
.cbx-menu .opt span{font-size:12.5px;color:var(--muted)}
.cbx-menu .opt.add{color:var(--accent-ink,var(--accent));font-weight:600}
.cbx-menu .sec{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:6px 10px 2px;font-weight:700}
.cbx-menu .none{padding:8px 10px;color:var(--muted);font-size:13px}
/* 0.52: FLHA "Hazards, actions and controls" (one card per hazard) */
.hz2-list{margin-bottom:12px}
.hz2-txt{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}   /* 0.53 (0.52 FR L3) */
.hz2-txt .a{font-size:13px;line-height:1.35;color:var(--muted)}
.hz2-txt .c{font-size:13px;line-height:1.35;color:var(--ok)}
.hz2-h{font-weight:600;margin:0 0 4px}

.step b,.step .h,.step .c{overflow-wrap:anywhere}   /* 0.53 (0.52 FR L3): a long word never pushes the page sideways */
/* 0.53: Add a Company Manager warning (Colby 2026-11-03 00:00-00:05, preview M3wt79Boz6QJRFJ3dp3c3x) */
.mw{border:1px solid color-mix(in srgb,var(--bad) 45%,var(--line));background:color-mix(in srgb,var(--bad) 7%,var(--surface));border-radius:10px;padding:14px 16px;margin:4px 0 12px}
.mw h3{margin:0 0 6px;font-size:16px;display:flex;gap:8px;align-items:center;color:var(--bad)}
.mw h3 svg.i{flex:none}
.mw ul{margin:6px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:4px}
.mw .keep{margin:10px 0 0;font-weight:600}
.mw-trust{font-size:18px;font-weight:700;text-align:center;margin:-8px 0 -6px;line-height:1.3}
.mck{display:flex;gap:10px;align-items:flex-start;margin:12px 0;font-weight:500}
.mck input{width:20px;height:20px;margin-top:2px;flex:none;accent-color:var(--accent)}
.btn.danger-solid{background:#b42318;color:#fff;border-color:#b42318}
.btn.danger-solid[disabled]{opacity:.45}
.others .xo-add{width:100%;margin-top:10px}
/* 0.53 Permissions page */
.perm-top .setting-line + .setting-line{border-top:1px solid var(--line)}
.perm-top .setting-line.dim > div{opacity:.6}
.tag-only{display:inline-block;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;border:1px solid var(--line);border-radius:999px;padding:0 7px;color:var(--muted);vertical-align:1px}
.tag-changed{display:inline-block;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;border:1px solid var(--accent);color:var(--accent-ink);border-radius:999px;padding:0 7px;vertical-align:1px}
.perm-tabs{margin-bottom:10px}
.perm-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:10px;margin-top:10px}
.perm-tbl{width:100%;border-collapse:collapse;font-size:14px}
.perm-tbl th,.perm-tbl td{padding:9px 12px;text-align:center;border-top:1px solid var(--line);vertical-align:middle}
.perm-tbl thead th{border-top:0;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);background:var(--surface-2);white-space:nowrap}
.perm-tbl th:first-child,.perm-tbl td:first-child{text-align:left}
.perm-tbl tr.pg th{background:var(--surface-2);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);text-align:left}
.perm-tbl .pl small{display:block;color:var(--muted);font-size:12px}
.perm-tbl .switch{vertical-align:middle}
.perm-tbl .switch[disabled]{opacity:.5;cursor:default}
.perm-lock{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;color:var(--muted);white-space:nowrap}
.perm-lock svg{width:13px;height:13px}
.perm-who-row{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}
.perm-who-row .field{flex:1;min-width:0;margin:0}
@media (max-width:560px){.perm-tbl th,.perm-tbl td{padding:8px 6px}.perm-tbl thead th{font-size:10px;letter-spacing:.04em;white-space:normal}.perm-tbl{font-size:13px}}
/* 0.53 FR: admin-only notes under a row; on phones, a role picker and one column (preview 1wFTD1THf1RwELpxS1UA8k) */
.perm-tbl .pl small.perm-ao{display:flex;gap:4px;align-items:flex-start;margin-top:2px}
.perm-tbl .pl small.perm-ao svg{width:12px;height:12px;flex:none;margin-top:2px}
.perm-mrole{display:none}
.drop-list{margin:8px 0 12px;padding-left:20px}
@media (max-width:600px){
  .perm-mrole{display:flex;flex-wrap:wrap;margin:0 0 10px}
  .perm-mrole button{flex:1 1 auto}
  .role-tbl thead tr th:not(:first-child),.role-tbl tbody td:not(:first-child){display:none}
  .role-tbl.show-crew .c-crew,.role-tbl.show-lead .c-lead,.role-tbl.show-foreman .c-foreman,.role-tbl.show-admin .c-admin,.role-tbl.show-manager .c-manager{display:table-cell!important}
  .role-tbl tr.pg th{display:table-cell}
}
/* Colby 2026-11-05: Everyone on the timesheet, laid out like the hours PDF (layout C). */
.ev-panel{display:grid;gap:10px}
.ev-wrap{border:0;background:none}
.ev-tbl{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;min-width:560px}
.ev-tbl th,.ev-tbl td{padding:7px 6px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}
.ev-tbl .num{text-align:center;width:46px}
.ev-tbl td.num:last-child,.ev-tbl th.num:last-child{text-align:right;width:56px}
.ev-tbl thead th{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);border-bottom:2px solid var(--ink)}
.ev-tbl thead th b{display:block;color:var(--ink)}.ev-tbl thead th small{display:block;font-size:11px;letter-spacing:0;text-transform:none}
.ev-tbl thead th.today b{color:var(--accent-ink)}
.ev-tbl tbody th,.ev-tbl tfoot th{position:sticky;left:0;background:var(--surface);z-index:1;min-width:150px;max-width:190px;white-space:normal}
.ev-p th .linkbtn{font-weight:700;text-align:left}.ev-p th small{display:block;color:var(--muted);font-size:12px}
.ev-p .ev-t{font-weight:700}
.ev-dot{color:var(--muted);opacity:.6}
.ev-l th,.ev-l td{border-bottom:0;padding-top:1px;padding-bottom:3px;font-size:12.5px;color:var(--muted)}
.ev-l th span{display:block;border-left:2px solid var(--accent);padding-left:7px;margin-left:4px}
.ev-tbl tbody tr.ev-p:not(:first-child) th,.ev-tbl tbody tr.ev-p:not(:first-child) td{border-top:1px solid var(--line)}
.ev-tbl tfoot th,.ev-tbl tfoot td{font-weight:700;border-top:2px solid var(--ink);border-bottom:0;text-transform:uppercase;font-size:12px;letter-spacing:.04em}
.ev-tbl tfoot .ev-t{font-size:15px;color:var(--accent-ink)}
.ev-tbl tbody th,.ev-tbl tfoot th{font:inherit;text-transform:none;letter-spacing:0;color:var(--ink)}
.ev-tbl tfoot th{font-weight:700;text-transform:uppercase;font-size:12px;letter-spacing:.04em}
.ev-p th small{text-transform:none;letter-spacing:0}
.ev-l th{color:var(--muted)!important;font-size:12.5px!important}
@media (max-width:600px){.ev-tbl tbody th,.ev-tbl tfoot th{min-width:118px;max-width:140px}.ev-tbl{min-width:520px}}

/* Colby 2026-11-05 23:41: the sign-off "what is this" box (signoff-clarity preview 2). */
.so-what{background:var(--surface-2);border-left:4px solid var(--accent);border-radius:6px;padding:12px 14px;margin:4px 0 14px;max-width:70ch}
.so-what>b{display:block;font-size:16px;margin-bottom:4px}
.so-what p{margin:0 0 8px;font-size:14px;line-height:1.45}
.so-what p:last-child{margin:0}
.so-what .so-not{border-top:1px solid var(--line);padding-top:8px}
.so-what .linkbtn{font-size:inherit;padding:0;min-height:0;text-decoration:underline}
/* Colby 23:47: a break between one person's series lines that doesn't look like the break between people:
   people get a solid line, series lines a short dotted one that starts under the orange bar. */
.ev-tbl tbody tr.ev-p:not(:first-child) th,.ev-tbl tbody tr.ev-p:not(:first-child) td{border-top:1.5px solid var(--ink)}
.ev-tbl tbody tr.ev-p th,.ev-tbl tbody tr.ev-p td{border-bottom:0}
.ev-tbl tr.ev-l th,.ev-tbl tr.ev-l td{padding-top:5px;padding-bottom:5px}
.ev-tbl tr.ev-l + tr.ev-l th span{position:relative}
.ev-tbl tr.ev-l + tr.ev-l th,.ev-tbl tr.ev-l + tr.ev-l td{background-image:linear-gradient(to right,var(--line) 50%,transparent 0);background-size:6px 1px;background-repeat:repeat-x;background-position:0 0}
.ev-tbl tr.ev-l + tr.ev-l th{background-position:14px 0;background-clip:padding-box}
.ev-tbl tbody tr.ev-l:last-of-type th,.ev-tbl tbody tr.ev-l:last-of-type td{padding-bottom:8px}
/* Colby 23:51 picked B: a thick dark line between people, plus a darker grey line between one person's series. */
.ev-tbl tbody tr.ev-p:not(:first-child) th,.ev-tbl tbody tr.ev-p:not(:first-child) td{border-top:3px solid var(--ink)}
.ev-tbl tr.ev-l + tr.ev-l th,.ev-tbl tr.ev-l + tr.ev-l td{background-image:none;border-top:1px solid var(--line-strong)}
.ev-tbl tr.ev-l + tr.ev-l th{background:var(--surface)}
/* Colby 23:55 (comment on the preview): a thin black line under each person's name row, B kept on phone and computer. */
.ev-tbl tbody tr.ev-p + tr.ev-l th,.ev-tbl tbody tr.ev-p + tr.ev-l td{border-top:1px solid var(--ink)}
/* Colby 23:56: the line between one person's series is dotted. */
.ev-tbl tr.ev-l + tr.ev-l th,.ev-tbl tr.ev-l + tr.ev-l td{border-top:1.5px dotted var(--line-strong)}
/* Colby 2026-11-05 (screenshot): an entry with many tags (Needs approval, Edited by, Extra work, Typed in) ran past the
   day card on phones. The tags now wrap onto more lines inside the card, with the hours and pencil kept at the right. */
@media (max-width:600px){
  .entry .meta{flex-direction:row;flex-wrap:wrap;justify-content:flex-start;gap:4px 6px;min-width:0}
  .entry .meta .h{order:99;margin-left:auto;padding-left:8px;white-space:nowrap}
  .entry .meta .st.logged,.entry .meta .st.approved,.entry .meta .st.final{order:-1}   /* the status stays first, as before */
  .entry .meta .st,.entry .meta .pill{max-width:100%;white-space:normal;height:auto;line-height:1.35;padding-block:2px}
}
/* Colby 2026-11-06 00:01: the person picker sits just above the week arrows. */
.time-who{max-width:340px;margin:10px 0 2px}
.time-who select{width:100%}
@media (max-width:600px){.time-who{max-width:none}}
/* Everyone, merged (Colby 2026-11-06 00:11): the grid is for computers; phones get the day strip and a plain list. */
.ev-panel.only-wide{display:none}
@media (min-width:760px){.ev-panel.only-wide{display:grid}}
@media (max-width:759px){.stats.only-wide-flex{display:none}}
.ev-by{padding:4px 0}
.ev-by .label{display:block;margin-bottom:6px}
.ev-by>div{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:14px}
.ev-by strong{font-weight:700;margin-left:4px}
.ev-none{margin:0}
.ev-strip button{flex:1 1 0;min-width:0}
.ev-strip .ev-wk{flex:1.3 1 0}
.ev-phone .sd-label{margin:14px 0 10px}
.evp-list{padding-block:4px}
.evp{display:flex;flex-direction:column;gap:0;width:100%;background:none;border:0;border-top:3px solid var(--ink);padding:10px 0 8px;text-align:left;color:var(--ink);font:inherit;cursor:pointer}
.evp:first-child{border-top:0}
.evp-h{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;padding-bottom:8px;border-bottom:1px solid var(--ink)}
.evp-h b{font-weight:700;font-size:16px;color:var(--accent-ink)}
.evp-h span{font-size:12px;color:var(--muted)}
.evp-h strong{margin-left:auto;font:700 17px/1 var(--f-mono);font-variant-numeric:tabular-nums}
.evp-l{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:var(--muted);padding:6px 0 6px 10px;border-left:2px solid var(--accent);margin-top:2px}
.evp .evp-l + .evp-l{border-top:1.5px dotted var(--line-strong)}
.evp-l>span:last-child{font-family:var(--f-mono);font-variant-numeric:tabular-nums;color:var(--ink);white-space:nowrap}
.evp-tot{display:flex;justify-content:space-between;align-items:baseline;border-top:3px solid var(--ink);margin-top:2px;padding:12px 0 6px;font-weight:700;text-transform:uppercase;font-size:13px;letter-spacing:.03em}
.evp-tot strong{font:700 18px/1 var(--f-mono);color:var(--accent-ink);text-transform:none}
.evp-by{display:flex;flex-direction:column;gap:2px;padding:8px 0}
.evp-by .label{margin-bottom:4px}
.evp-by .evp-l{border-left-color:var(--line-strong)}
/* Timesheet calendar picker */
.cal-btn{gap:8px}
.cal-btn .wk{font-weight:600}
.cal{display:flex;flex-direction:column;gap:4px}
.cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.cal-head b{font:600 20px/1 var(--f-display)}
.cal-row{display:grid;grid-template-columns:32px repeat(7,minmax(0,1fr));gap:4px;align-items:center;border-radius:8px;padding:2px}
.cal-row.sel{background:color-mix(in srgb,var(--accent) 12%,transparent)}
.cal-dows span{text-align:center;font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.cal-wn{font-size:11px;color:var(--muted);text-align:center}
.cal-d{min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:600 15px/1 var(--f-mono);cursor:pointer}
.cal-d.out{color:var(--muted);opacity:.6}
.cal-d.today{border:2px solid var(--accent)}
.cal-foot{display:flex;justify-content:flex-end;margin-top:8px}

.so-all-note{background:var(--surface-2);border-left:4px solid var(--accent);border-radius:6px;padding:10px 12px;margin:0 0 12px;font-size:14px;line-height:1.45}
.so-warn{background:color-mix(in srgb,var(--warn) 14%,transparent);border-left:4px solid var(--warn);border-radius:6px;padding:10px 12px;font-size:14px;line-height:1.45}
.so-when{margin:0 0 12px}
.so-sure{background:color-mix(in srgb,var(--accent) 10%,transparent);border-left:4px solid var(--accent);border-radius:6px;padding:10px 12px;margin-top:8px}
.so-sure p{margin:0 0 4px}
/* Beta V 0.57: Notebook */
.nb-tabs{margin:0 0 12px}
.nb-notice{display:flex;gap:10px;align-items:flex-start;background:color-mix(in srgb,var(--accent) 8%,var(--surface));border:1px solid color-mix(in srgb,var(--accent) 25%,var(--line));border-radius:8px;padding:10px 12px;margin:0 0 14px;font-size:14px;line-height:1.45}
.nb-notice svg{flex:none;width:18px;height:18px;margin-top:1px;color:var(--accent-ink)}
.nb-notice p{margin:0;min-width:0}
.nb-filter{max-width:420px}
.nb-list{display:grid;gap:12px}
.nb-card{display:grid;gap:6px;min-width:0}
.nb-job{margin:0;font:600 16px/1.3 var(--f-display);overflow-wrap:anywhere}
.nb-ser{justify-self:start;display:inline-block;max-width:100%;border:1px solid var(--line);border-radius:999px;padding:2px 9px;font-size:12px;font-weight:600;color:var(--muted);background:var(--surface-2);overflow-wrap:anywhere}
.nb-body{margin:2px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.nb-body:empty{display:none}
.nb-thumbs{margin:2px 0}
.nb-thumbs button.thumb{border:0;padding:0;cursor:pointer;display:grid;place-items:center;color:var(--muted)}
.nb-meta{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.nb-who{display:inline-flex;align-items:center;gap:5px;color:var(--ink);font-weight:500}
.av.xs{width:20px;height:20px;border-radius:50%;object-fit:cover}
.nb-acts,.nb-today-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.nb-posted svg{width:13px;height:13px}
.nb-today{display:grid;gap:6px}
.nb-today .panel-head h2{display:flex;align-items:center;gap:6px}
.nb-today .label{margin:6px 0 0}
.nb-lockline{display:flex;align-items:center;gap:6px;margin:4px 0 0}
.nb-lockline svg{flex:none;width:14px;height:14px}
.nb-postck{margin-top:10px}
.nb-add{margin-top:8px}
/* Beta V 0.59: Daily Update */
.du-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}
.du-head .title2{margin:0 0 6px;font-size:18px;overflow-wrap:anywhere;min-width:0}
.du-name{padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg);overflow-wrap:anywhere}
.du-type{display:flex;gap:8px}
.du-type input{flex:1;min-width:0}
.du-thumbs{max-width:520px;grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:420px){.du-thumbs{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* ---------- Beta V 0.62 design fixes (Colby approved 2026-11-08 02:41; impeccable/0.62-design-fixes-spec.md) ---------- */
/* 2. the search box shows the same orange focus edge as other fields */
.search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}
/* 3. no text under 12px. Kept on purpose: tab bar words (11px, UI pass 1), Company Settings menu headings (10px, 0.53
   option C), the sign-off paper copy (print size) and the x markers. */
.ev-tbl thead th,.ev-tbl thead th small,.nav-group,.rail nav .sub-head .count,.perm-tbl thead th,.perm-tbl tr.pg th,
.day-strip .dw,.day-strip .dn,.cal-wn,.au-k,.tag-only,.tag-changed,.cbx-menu .sec,.risk,.drawing .ic,.cl-ic,.bk-ty,
.cl-out small,.au-table th,.weekbars .d,.weekbars .h,.ph span,.crew-tags .pill,.pill.sm,th{font-size:12px}
.dot-badge{font-size:12px}
@media (max-width:600px){.perm-tbl thead th{font-size:12px}}
/* 0.62 round 3 (Final Review W2, L1-L4) */
@media (min-width:900px){.au-table{overflow-x:auto}}
.search input:focus{box-shadow:none}
.optrow small.muted{font-size:12px}
.linkbtn::after{inset:auto -8px;top:50%;height:max(44px,calc(100% + 22px));transform:translateY(-50%)}  /* always at least 44px tall, centred on the link */
.toast{pointer-events:none}  /* words only, no buttons: taps go through to what is under it */
/* ---------- Beta V 0.63: Arrange Today (critique 4b) ---------- */
.sites-out{border-top:1px solid var(--line);margin-top:10px;padding-top:6px;display:grid;gap:8px}
.arr-lead{margin:0 0 6px}
.arr-list{display:grid}
.arr-row{display:flex;align-items:center;gap:8px;padding:12px 0;border-top:1px solid var(--line)}
.arr-row:first-child{border-top:0}
.arr-row .grow{flex:1;min-width:0}.arr-row b{display:block}.arr-row small{display:block;font-size:13px}
.arr-mv{width:44px;height:44px;flex:none;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line-strong,var(--line));border-radius:6px;background:var(--surface);color:var(--ink);cursor:pointer}
.arr-mv:disabled{opacity:.35;cursor:default}
.arr-mv svg{width:18px;height:18px}
.arr-sw{width:52px;flex:none}
.arr-fixed{padding-right:10px}
.arr-foot{display:flex;justify-content:space-between;gap:10px;margin-top:12px}
@media (max-width:360px){.arr-row{gap:6px}.arr-mv{width:40px;height:44px}}
.btn.huge{font-weight:700}   /* 0.63 critique 6: big orange labels bold; 0.67 r4 the button orange (--accent-btn) passes 4.5:1 at any size */
/* 0.63 critique 3: the shift on the clock now, on Timesheet (display only) */
.live-shift{display:flex;gap:8px;align-items:flex-start;padding:6px 0;color:var(--ink)}
.live-shift .dot{margin-top:6px;flex:none}
.live-shift b{color:var(--ok)}
.live-shift small{display:block;font-size:12.5px}
/* 0.72: the job and Series a person is clocked into, on the Timesheet and on Everyone */
.live-shift small.live-where{font-size:14px;color:var(--ink);font-weight:500;overflow-wrap:anywhere}
.ev-now{padding-block:12px}
.ev-now-h{display:flex;align-items:center;gap:8px;margin:0 0 6px;font:600 15px/1.3 var(--f-body,inherit);color:var(--ok-ink,var(--ok))}
.ev-now-h .muted{font-weight:400}
.ev-now-l{list-style:none;margin:0;padding:0}
.ev-now-l li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:8px 0;border-top:1px solid var(--line)}
.ev-now-l li b{font-weight:600;overflow-wrap:anywhere}
.ev-now-s{font-size:13px;white-space:nowrap;text-align:right}
.ev-now-w{grid-column:1/-1;font-size:14px;overflow-wrap:anywhere}
@media (min-width:900px){.ev-now-l li{grid-template-columns:minmax(140px,220px) minmax(0,1fr) auto;align-items:baseline}.ev-now-w{grid-column:auto}}
.ed-live{flex:1;min-width:0}
/* 0.63 critique 5: Timesheet header. Me | Everyone switch, week arrows, no tabs on computers (the side menu has them) */
.time-who2{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:flex-end;margin:10px 0 2px}
.time-who2 .time-who{margin:0;flex:1 1 220px}
.who-seg{flex:none}.who-seg button{min-width:96px}
.tsnav .ts-step{flex:none}
.tsnav .cal-btn{min-width:0}
@media (max-width:360px){.tsnav .cal-btn .muted{display:none}.who-seg{width:100%;display:grid;grid-template-columns:1fr 1fr}}
@media (min-width:900px){.seg.time-seg{display:none}}
.ts-grp{display:flex;gap:8px;align-items:center;min-width:0;max-width:100%}
.ts-grp .cal-btn{min-width:0;flex:0 1 auto;overflow:hidden;white-space:nowrap}
.ts-grp .cal-btn .wk{overflow:hidden;text-overflow:ellipsis}
/* 0.63 critique 1: Approvals, days that need you first */
.appr-top{flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px 16px;border-color:color-mix(in srgb,var(--accent) 45%,var(--line));background:color-mix(in srgb,var(--accent) 6%,var(--surface))}
.appr-top .grow{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 200px}
.appr-top b{font-size:16px}
.appr-top .actions{display:flex;gap:8px;flex-wrap:wrap}
.appr-top.done{border-color:color-mix(in srgb,var(--ok) 40%,var(--line));background:color-mix(in srgb,var(--ok) 6%,var(--surface))}
.appr-top.done b{color:var(--ok);display:flex;gap:6px;align-items:center}
.appr-fold{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 0 2px}
.appr-fold .pill{display:inline-flex;gap:4px;align-items:center}
@media (max-width:600px){.appr-top .actions,.appr-top .actions .btn{width:100%}}
/* 0.63 critique 2: FLHA signing sheet names the signer and what they agree to */
.sign-who{display:flex;flex-direction:column;gap:4px;margin:0 0 12px}
.sign-who b{font-size:16px;line-height:1.35}
/* ---------- Beta V 0.64: smaller critique items (Colby 2026-11-08 04:58 and 05:23) ---------- */
.stat.ok .v{color:var(--ok)}   /* S3: approved hours are green on Everyone; waiting stays amber */
.dot[style*="--c:#"]{box-shadow:0 0 0 1px var(--surface),0 0 0 2px color-mix(in srgb,var(--c) 60%,var(--ink))}   /* S6: client/job colour dots read as a label, not a status */
.ev-strip button{flex:1 0 44px;min-width:44px}.ev-strip .ev-wk{flex:1.3 0 58px}   /* S8: 44px days; the strip scrolls inside itself */
.ev-strip{scroll-padding-inline:8px}
.weekbars .b.has .bar{background:color-mix(in srgb,var(--muted) 45%,var(--surface))}   /* S9: past days grey, today orange */
.weekbars .b.today .bar{background:var(--accent)}
.fav{color:var(--muted);-webkit-text-stroke:.6px currentColor}   /* S10: the empty star is easier to see */
.fav.on{-webkit-text-stroke:0}
.bk-star:not(.on){-webkit-text-stroke:.6px currentColor}   /* S10: the same for the Books star */
input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}   /* S11: hint text at least 4.5:1 in light and dark */
p,small,li,.nb-body,.ann-body,.muted,.hint,.notice p{text-wrap:pretty}   /* S12: no single word alone on the last line */
.sites-today .st-out{flex:none}
@media (max-width:420px){.sites-today .st-out{width:44px;min-height:44px;padding:0;justify-content:center}.sites-today .st-out .st-out-l{display:none}}   /* 0.63 r2: icon only on small phones; the label is in aria-label */

/* 0.64 round 2 (Final Review W1, L1-L3, L6) */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
@media (max-width:560px){.day.empty-day:has(.ed-live){flex-wrap:wrap;row-gap:0}.empty-day:has(.ed-live) .ed-add{margin-left:auto}.empty-day .ed-live{order:3;flex:1 0 100%}}
.cal-btn .wk-s{display:none}
@media (max-width:390px){.ts-grp .cal-btn .wk:not(.wk-s){display:none}.ts-grp .wk-s{display:inline}}   /* 0.65: was 360 (FR R2-L1, 375 px iPhones) */
.who-seg button{min-height:44px}

/* Beta V 0.66 motion A1-A3 (Colby 2026-11-09 02:07; impeccable/motion-A1-A3-spec.md). Under 0.45 s, nothing blocks taps. */
@keyframes cbFade{from{opacity:0}to{opacity:1}}
@keyframes cbUp{from{transform:translateY(100%)}to{transform:none}}
@keyframes cbPop{from{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:none}}
@keyframes cbToast{from{opacity:0;transform:translate(-50%,14px) scale(.96)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
@keyframes cbCheck{0%{opacity:0;transform:scale(.4)}60%{opacity:1;transform:scale(1.08)}100%{opacity:1;transform:scale(1)}}
@keyframes cbDone{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
/* A1 panels: plays when the panel opens (the wrapper goes from hidden to shown); new content inside doesn't replay it */
.sheet-wrap{animation:cbFade .26s cubic-bezier(.33,1,.68,1)}
.sheet{animation:cbUp .38s cubic-bezier(.22,1,.36,1)}
@media (min-width:700px){.sheet{animation:cbPop .3s cubic-bezier(.22,1,.36,1)}}
/* A2 toast + success check */
.toast:not([hidden]){animation:cbToast .34s cubic-bezier(.22,1,.36,1)}
.toast.ok{display:flex;align-items:center;gap:8px}
.toast.ok::before{content:"";flex:none;width:18px;height:18px;border-radius:50%;background:var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;animation:cbCheck .42s .1s cubic-bezier(.22,1,.36,1) both}
/* A3 week fully approved; .still = drawn again, no replay */
.appr-top.done{animation:cbDone .4s cubic-bezier(.22,1,.36,1)}
.appr-top.done svg{animation:cbCheck .45s .15s cubic-bezier(.22,1,.36,1) both}
.appr-top.done.still,.appr-top.done.still svg{animation:none}
@media (prefers-reduced-motion:reduce){.sheet,.toast:not([hidden]),.appr-top.done{animation:cbFade .15s ease-out}.appr-top.done svg,.toast.ok::before{animation:none}.sheet-wrap{animation:none}.appr-top.done.still{animation:none}}

/* Beta V 0.67 Today Q1 (Colby 2026-11-09 04:15): only the clock card keeps the orange edge on Today */
.today1>.notice:not(.alert){border-color:var(--line);background:var(--surface-2)}
.notice p>svg.i{margin-right:8px}

/* 0.67 (FR 0.66 L2): darker success circle in dark mode so the white tick reads */
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .toast.ok::before{background-color:#17693f}}
:root[data-theme="dark"] .toast.ok::before{background-color:#17693f}

/* Beta V 0.68 store apps (Store Compliance P1-P6, Colby approved 2026-11-10 00:08) */
.acct-del .btn.danger{margin-top:4px}
.acct-del-link{justify-content:center;margin-top:14px}
.push-on{color:var(--ok-ink);white-space:nowrap}
.file-acts{display:grid;gap:8px;margin:4px 0 10px}
.file-acts .btn{justify-content:flex-start;min-height:48px}
/* P4 View: the file inside the iPhone app, full screen, with Share and Done at the top */
.doc-view{position:fixed;inset:0;z-index:45;background:var(--bg);display:flex;flex-direction:column}
.doc-bar{display:flex;align-items:center;gap:8px;padding:calc(8px + env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) 8px max(12px,env(safe-area-inset-left,0px));background:var(--surface);border-bottom:1px solid var(--line)}
.doc-bar b{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.doc-body{flex:1 1 auto;width:100%;min-height:0;border:0;background:#fff;object-fit:contain}
img.doc-body{background:var(--bg)}
/* P6 Waiting for signal */
.cb-wait{text-align:center;display:flex;flex-direction:column;gap:12px}
.cb-wait .cb-brand{margin-bottom:4px}
/* 0.68 r3 (Final Review L2): password boxes (Delete my account, Delete company, unlock, Hours email) get the same field look,
   16px on phones so the iPhone doesn't zoom in. */

/* 0.69 Jobs grouped by Client */
.cl-group{display:flex;flex-direction:column;gap:10px;margin:18px 0 6px}.cl-head{display:flex;align-items:center;gap:4px 10px;flex-wrap:wrap}.cl-head .dot+.cl-name{flex:0 1 auto;max-width:calc(100% - 20px)}.cl-head .dot{width:10px;height:10px;border-radius:50%;background:var(--c);flex:none}.cl-name{font:inherit;font-weight:700;font-size:16px;color:var(--ink);background:none;border:0;padding:6px 0;cursor:pointer;min-height:44px;min-width:0;text-align:left;overflow-wrap:anywhere}button.cl-name:hover{text-decoration:underline}.cl-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.cl-row .cl-add{margin-left:auto;white-space:normal;text-align:left;max-width:100%;min-width:0;overflow-wrap:anywhere;height:auto}#sheet .field .co-badge{white-space:normal;overflow-wrap:anywhere;max-width:100%}.cl-row .manage-link{align-self:center}
@media (max-width:360px){.cl-row .cl-add{width:100%;margin-left:0;justify-content:center}}
@media (max-width:899px){.proj-filters .seg{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;max-width:100%}.proj-filters .seg::-webkit-scrollbar{display:none}.proj-filters .seg button{flex:none;white-space:nowrap}}

/* 0.70 Approvals (UI-UX review-19): one orange area (the top card), compact days, one status style */
.ap-list{display:flex;flex-direction:column;gap:0}
.ap-person{display:flex;flex-direction:column;gap:10px;padding:0}
.ap-person:first-child{padding-top:2px}.ap-person:last-child{padding-bottom:2px}
.ap-person+.ap-person{border-top:1px solid var(--line);margin-top:12px;padding-top:24px}
.ap-head{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:2px;align-items:baseline}
.ap-name{font:600 19px/1.2 var(--f-display);letter-spacing:.01em;min-width:0;overflow-wrap:anywhere}
.ap-tot{font:600 19px/1.2 var(--f-display);font-variant-numeric:tabular-nums;white-space:nowrap}
.ap-title{grid-column:1/-1;font-size:13.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ap-btns{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px}
.ap-next{min-height:44px;border-color:color-mix(in srgb,var(--ink) 30%,var(--line));font-weight:600}
.ap-next2{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-weight:600}
.ap-next svg,.ap-next2 svg{width:16px;height:16px}
.ap-days{display:flex;flex-direction:column}
.ap-row{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;row-gap:4px;padding:12px 0;border-bottom:1px solid color-mix(in srgb,var(--line) 70%,transparent);align-items:center}
.ap-row:last-child{border-bottom:0}
.ap-l1{grid-column:1;grid-row:1;display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;min-width:0}
.ap-day{font-size:15px;white-space:nowrap;line-height:24px}
.ap-h{font-weight:700;font-size:15px;line-height:24px;font-variant-numeric:tabular-nums;white-space:nowrap}
.ap-l2{grid-column:1/-1;grid-row:2;min-width:0;display:flex;flex-direction:column;gap:2px}
.ap-meta{font-size:13.5px;color:var(--muted);overflow-wrap:anywhere;margin:0}
.ap-warn{color:var(--warn);font-weight:600}
.ap-note{font-size:13.5px;color:var(--muted);font-style:italic;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0}
.ap-acts{grid-column:2;grid-row:1;display:flex;align-items:center;gap:4px;justify-content:flex-end}
.ap-go{min-height:44px;min-width:44px;font-weight:600}
.ap-go svg{width:14px;height:14px}
.ap-more{min-height:44px;width:44px;padding:0;justify-content:center}
.ap-chip{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 9px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap;border:0}
.ap-chip svg{width:12px;height:12px}
.ap-chip.wait{background:color-mix(in srgb,var(--warn) 16%,transparent);color:var(--chip-warn)}
.ap-chip.ok{background:color-mix(in srgb,var(--ok) 15%,transparent);color:var(--chip-ok)}
.ap-chip.final{background:var(--ok);color:var(--on-ok)}
.ap-chip.bad{background:color-mix(in srgb,var(--bad) 15%,transparent);color:var(--bad)}
.ap-chip.self{background:none;border:1px solid color-mix(in srgb,var(--warn) 55%,var(--line));color:var(--chip-warn)}
.ap-fold{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}
.ap-fold .ap-tot{font-size:16px;color:var(--muted)}
.ap-fold .linkbtn{margin-left:auto;min-height:44px}
.ap-foldlink .linkbtn{min-height:44px}
.ap-sheet-top{display:flex;flex-direction:column;gap:6px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.ap-sheet-acts{display:flex;flex-direction:column;gap:8px;padding-top:14px}
.ap-sheet-acts .btn{justify-content:flex-start;min-height:48px}
.ap-sheet-undo{padding-top:18px}
.ap-undo{color:var(--bad);min-height:44px}
@media (min-width:900px){
  .ap-row{grid-template-columns:130px minmax(0,1fr) 230px 80px 150px;align-items:center}
  .ap-row .ap-l1{display:contents}
  .ap-day{grid-column:1;grid-row:1}
  .ap-row .ap-chip{grid-column:3;grid-row:1;justify-self:start}
  .ap-row .ap-chip.self{grid-column:3;grid-row:1;justify-self:end}
  .ap-row .ap-h{grid-column:4;grid-row:1}
  .ap-l2{grid-column:2;grid-row:1}
  .ap-acts{grid-column:5;grid-row:1;justify-content:flex-end;min-width:150px}
}

/* 0.70 (Colby 2026-11-15): Mark complete is a checkmark beside the ••• on each Series card */
.series-btns{display:flex;gap:8px;flex:none}
.series-check{color:var(--ok)}
.series-check svg{width:22px;height:22px;stroke-width:2.4}
.ap-dh{display:inline-flex;gap:8px;white-space:nowrap}
@media (max-width:360px){.ap-day,.ap-h{font-size:14px}.ap-dh{gap:6px}.ap-go{padding-inline:10px}}
@media (min-width:900px){.ap-dh{display:contents}}

/* 0.70: a label's help text always sits on its own line under it */
.check>span small{display:block;margin-top:2px;font-weight:400;line-height:1.4}
.check:has(>span small){align-items:flex-start}
.check:has(>span small)>input{margin-top:2px;flex:none}
.nb-hint{display:block;margin-top:6px;line-height:1.4}
.nb-newrow{display:flex}
.nb-newrow{margin:0 0 14px}
/* 0.70: same fix where help text sat beside a button (Remove from company, Download all photos) */
.remove-row small,.ph-dl small{flex:1 1 100%;line-height:1.4}
/* 0.70 UI-UX: Self-approved chip only at computer width; phones show amber words in the meta line */
.ap-row .ap-chip.self{display:none}
@media (min-width:900px){.ap-row .ap-chip.self{display:inline-flex}.ap-selfw{display:none}}
/* 0.70 (FR 0.69 R2-L1): very long Client names with no spaces wrap; the dot stays on the first line */
.cl-group>p{overflow-wrap:anywhere;min-width:0}
.cl-head{align-items:flex-start}.cl-head .dot{margin-top:17px}.cl-head .muted.small{align-self:center}
@media (min-width:900px){.proj-filters .seg{max-width:100%}.seg button[data-action="co-filter"]{max-width:100%;min-width:0;overflow-wrap:anywhere;white-space:normal;text-align:left}}
@media (max-width:899px){.proj-filters .seg button[data-action="co-filter"]{max-width:70vw;overflow:hidden;text-overflow:ellipsis}}
/* 0.70 r2 (FR L1): row buttons keep the 44 px tap height */
.ap-row .btn.sm,.ap-row .ap-more{min-height:44px}

/* NOTES PREVIEW (Colby 2026-11-24) */
.mat-list{display:flex;flex-direction:column}
.mat-row{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid var(--line);min-width:0}
.mat-row:first-child{border-top:0}
.mat-row .grow{flex:1;min-width:0;display:flex;flex-direction:column}
.mat-row b{overflow-wrap:anywhere}
.mat-q{font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}
.mat-ph .i{width:16px;height:16px}
.mat-chips{max-height:132px;overflow:auto}
.mat-add{display:grid;grid-template-columns:1fr auto;gap:8px;margin:4px 0 6px}
.mat-co{border:1px solid var(--line);border-radius:8px;padding:10px 12px;gap:6px}
.mat-co .btn{align-self:flex-start}
.mat-panel{margin-top:14px}
.mat-tot{width:100%;border-collapse:collapse}
.mat-tot th,.mat-tot td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--line);font-size:14px}
.mat-tot th{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.mat-tot .q{text-align:right;white-space:nowrap}
.to-list{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr))}
.to-card,.hr-card{display:flex;flex-direction:column;gap:8px;min-width:0}
.to-top{display:flex;gap:10px;align-items:center}
.to-top .grow{display:flex;flex-direction:column;min-width:0}
.to-when{font-weight:600}
.to-note{margin:0}
.to-foot{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
.to-btns{display:flex;gap:8px;margin-left:auto}
.hr-top{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.hr-what{margin:0}
.hr-card p{margin:0}
.hr-card.k-good{border-left:4px solid var(--ok)}
.hr-card.k-coach{border-left:4px solid var(--muted)}
.hr-card.k-verbal,.hr-card.k-written{border-left:4px solid var(--warn)}
.hr-card.k-fired,.hr-card.k-susp{border-left:4px solid var(--bad)}
.hr-lead{margin:0 0 12px}
.hr-pick{max-width:340px;margin-bottom:12px}
.xw-link{display:flex;gap:8px;align-items:flex-start}
.xw-link .i{width:16px;height:16px;flex:none;margin-top:2px}
.xw-link>span{flex:1;min-width:0}
.xl-how{border:1px solid var(--line);border-radius:8px;padding:12px;display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
.xl-how p{margin:0}
.ow-pill{font-size:11px;vertical-align:middle;margin-left:4px}
.px-cards{display:none}
@media (max-width:700px){.px-table{display:none}.px-cards{display:block}}
.so-btns.n3 .btn{padding-inline:6px}
/* preview: materials required at clock-out */
.radio-list{display:flex;flex-direction:column}
.radio-row,.check-row{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-top:1px solid var(--line);cursor:pointer}
.radio-list>.radio-row:first-child{border-top:0}
.radio-row input,.check-row input{margin-top:3px;width:18px;height:18px;accent-color:var(--accent,#c04f0a);flex:none}
.radio-row .grow,.check-row .grow{flex:1;min-width:0;display:flex;flex-direction:column}
.radio-row small,.check-row small{color:var(--muted);font-size:12.5px}
.mr-sub{margin:0 0 10px 28px}
.mr-people .check-row:first-child{border-top:0}
.req-tag{display:inline-block;font-size:11px;letter-spacing:.04em;text-transform:uppercase;padding:1px 6px;border-radius:4px;background:#c04f0a;color:#fff;margin-left:4px;vertical-align:1px}
.mat-co-acts{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin-top:6px}
.mat-none{border:0;padding:0;align-items:center}
.mat-need{display:flex;gap:6px;align-items:flex-start;margin-top:8px;color:var(--muted)}
.mat-need.bad{color:var(--bad,#b3261e);font-weight:600}
.hr-top{flex-wrap:wrap}.hr-active{background:#fbe3d3;color:#8a3a07}.hr-clear{background:var(--line);color:var(--muted)}
.hr-who-sees{display:flex;gap:8px;align-items:flex-start}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .hr-active{background:#4a2a14;color:#f6c39f}}
:root[data-theme="dark"] .hr-active{background:#4a2a14;color:#f6c39f}
/* Beta V 0.75: safety form lists (hot work locations, hot work crew, fire watch) and named sign lines */
.ff-list .pick-add{margin-top:6px}.ff-list .pick-add:first-of-type{margin-top:0}.ff-list>div:last-child{margin-top:8px}
.ff-people{padding:4px 0 8px}.ff-people+.ff-people,.ff-people+.field{margin-top:8px}
.sign-nm{margin-top:6px}.filled-by{margin:0 0 4px}
/* 0.76: approved time off on the schedule */
.off-pill{font-size:11px;font-weight:700;letter-spacing:.03em;background:var(--line);color:var(--fg);margin:2px 4px 2px 0;vertical-align:middle}
.sd-person .off-pill{margin-left:6px}
