/* Elecden — phone first. Brand: blue #5577E6 → cyan #38EDE4, wordmark #3DD2E3, navy #0B1430. */
:root {
  --navy: #0B1430; --navy-2: #13204A; --blue: #5577E6; --cyan: #38D6E4; --cyan-ink: #0A8FA3;
  --grad: linear-gradient(120deg, #5577E6 0%, #45A6EA 55%, #38E0E4 100%);
  --bg: #F3F6FB; --card: #FFFFFF; --ink: #0E1630; --ink-2: #4A5677; --ink-3: #7C88A6; --line: #E2E8F2; --line-2: #EEF2F8;
  --ok: #12A363; --ok-bg: #E3F7EE; --warn: #C27803; --warn-bg: #FFF4DB; --bad: #D93A3A; --bad-bg: #FDE8E8; --info-bg: #E8F0FF;
  --com: #5577E6; --dom: #19B5C9;
  --r: 14px; --r-sm: 10px; --shadow: 0 1px 2px rgba(14, 22, 48, .06), 0 4px 16px rgba(14, 22, 48, .06);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --nav-h: 64px; --head-h: 56px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070D20; --card: #0F1A38; --ink: #EEF3FF; --ink-2: #AEB9D6; --ink-3: #7F8BAD; --line: #1F2C52; --line-2: #18244A;
    --ok-bg: #0E3326; --warn-bg: #3A2C0B; --bad-bg: #3B1515; --info-bg: #15244F; --cyan-ink: #5FE3F0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 1.35rem; font-weight: 750; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; font-weight: 700; }
h3 { font-size: .95rem; font-weight: 650; }
.muted { color: var(--ink-3); } .small { font-size: .85rem; } .tiny { font-size: .75rem; }
.num { font-variant-numeric: tabular-nums; }
.boot { min-height: 100vh; display: grid; place-items: center; background: var(--navy); }
.boot img { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.94); } }

/* ---------- shell ---------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; background: var(--navy); color: #fff; padding-top: var(--safe-t); }
.top-in { height: var(--head-h); display: flex; align-items: center; gap: 10px; padding: 0 14px; max-width: 1320px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; letter-spacing: .18em; font-size: .95rem; }
.brand img { width: 32px; height: 32px; }
.brand img.brand-logo { width: auto; height: 50px; display: block; margin: -4px 0; }
.brand span { color: #3DD2E3; }
.top .spacer { flex: 1; }
.iconbtn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 0; color: #fff; cursor: pointer; position: relative; }
.iconbtn svg { width: 22px; height: 22px; }
.badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 9px; background: #FF5A5A; color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--navy); }
.cotoggle { display: flex; background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 3px; gap: 2px; }
.cotoggle button { border: 0; background: transparent; color: #B9C6EA; padding: 7px 12px; border-radius: 9px; font-size: .82rem; font-weight: 650; cursor: pointer; white-space: nowrap; }
.cotoggle button.on { background: #fff; color: var(--navy); }
.cotoggle button.on[data-c="commercial"] { background: var(--com); color: #fff; }
.cotoggle button.on[data-c="domestic"] { background: var(--dom); color: #fff; }
.subbar { background: var(--navy); padding: 0 14px 10px; }
.subbar .cotoggle { max-width: 520px; margin: 0 auto; }
.subbar .cotoggle button { flex: 1; }

.body { flex: 1; display: flex; max-width: 1320px; width: 100%; margin: 0 auto; }
.side { display: none; }
main { flex: 1; min-width: 0; padding: 16px 14px calc(var(--nav-h) + var(--safe-b) + 24px); }

.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--card); border-top: 1px solid var(--line); display: flex; padding-bottom: var(--safe-b); box-shadow: 0 -4px 20px rgba(14, 22, 48, .06); }
.nav a { flex: 1; height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-3); font-size: .7rem; font-weight: 650; position: relative; }
.nav a svg { width: 24px; height: 24px; }
.nav a.on { color: var(--blue); }
.nav a.on::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad); }
.nav .badge { top: 8px; right: calc(50% - 22px); border-color: var(--card); }

@media (min-width: 960px) {
  .subbar { display: none; }
  .nav { display: none; }
  .side { display: flex; flex-direction: column; gap: 2px; width: 220px; flex: none; padding: 16px 10px; position: sticky; top: var(--head-h); height: calc(100vh - var(--head-h)); overflow: auto; }
  .side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; position: relative; }
  .side a svg { width: 20px; height: 20px; }
  .side a.on { background: var(--card); color: var(--blue); box-shadow: var(--shadow); }
  .side a .badge { position: static; margin-left: auto; border: 0; }
  .side hr { border: 0; border-top: 1px solid var(--line); margin: 10px 6px; width: auto; }
  main { padding: 22px 22px 40px; }
}
@media (max-width: 959px) { .top .cotoggle.wide { display: none; } }

/* ---------- building blocks ---------- */
.page-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.page-head .grow { flex: 1; min-width: 0; }
.page-head .sub { color: var(--ink-3); font-size: .85rem; margin-top: 2px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); font-weight: 600; font-size: .88rem; margin-bottom: 8px; cursor: pointer; background: none; border: 0; padding: 4px 0; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; }
.card + .card, .stack > * + * { margin-top: 12px; }
.card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.card-h .grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .md-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) { .g4, .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.section-title { font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 22px 2px 8px; display: flex; align-items: center; gap: 8px; }
.section-title .grow { flex: 1; }

.kpi { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 13px 14px; position: relative; overflow: hidden; }
.kpi .l { font-size: .76rem; color: var(--ink-3); font-weight: 650; }
.kpi .v { font-size: 1.28rem; font-weight: 780; margin-top: 3px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: .76rem; color: var(--ink-3); margin-top: 2px; }
.kpi.hero { background: var(--navy); color: #fff; }
.kpi.hero .l, .kpi.hero .s { color: #9FB0DA; }
.kpi.hero { padding-right: 64px; }
.kpi.hero .mark { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; pointer-events: none; }
@media (max-width: 699px) { .kpi.hero { padding-right: 48px; } .kpi.hero .mark { width: 36px; height: 36px; right: 8px; } }
.kpi.link { cursor: pointer; }

.bar { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; }
.bar .rec { background: var(--ok); } .bar .aw { background: #F5B731; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .76rem; color: var(--ink-3); margin-top: 6px; }
.legend b { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: 0; }

.list { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-top: 1px solid var(--line-2); min-height: 56px; }
.row:first-child { border-top: 0; }
a.row, .row.tap { color: inherit; cursor: pointer; }
a.row:active, .row.tap:active { background: var(--line-2); }
.row .main { flex: 1; min-width: 0; }
.row .t { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .d { color: var(--ink-3); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .r { text-align: right; flex: none; }
.row .r .t { font-variant-numeric: tabular-nums; }
.chev { color: var(--ink-3); flex: none; width: 18px; height: 18px; }
.empty { padding: 28px 16px; text-align: center; color: var(--ink-3); }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.info { background: var(--info-bg); color: var(--blue); }
.pill.com { background: rgba(85, 119, 230, .12); color: var(--com); } .pill.dom { background: rgba(25, 181, 201, .13); color: var(--cyan-ink); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 650; cursor: pointer; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 4px 14px rgba(69, 130, 234, .35); }
.btn.dark { background: var(--navy); color: #fff; border: 0; }
.btn.danger { color: var(--bad); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: .85rem; border-radius: 10px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.fab { position: fixed; right: 16px; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); z-index: 35; width: 58px; height: 58px; border-radius: 18px; border: 0; background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(69, 130, 234, .45); display: grid; place-items: center; cursor: pointer; }
.fab svg { width: 28px; height: 28px; }
@media (min-width: 960px) { .fab { bottom: 28px; right: 28px; } }

.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 12px; padding: 0 14px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); padding: 8px 14px; border-radius: 999px; font-weight: 650; font-size: .85rem; cursor: pointer; }
.tabs button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) { .tabs button.on { background: var(--blue); border-color: var(--blue); } }

.search { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); padding: 0 14px; margin-bottom: 12px; }

/* tables (desktop money views) */
.tbl-wrap { overflow-x: auto; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tbl th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--card); position: sticky; top: 0; }
.tbl td { padding: 10px 12px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.tbl td.n, .tbl th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.tap { cursor: pointer; } .tbl tr.tap:hover td { background: var(--line-2); }
.tbl tfoot td { font-weight: 750; border-top: 2px solid var(--line); }

/* ---------- forms / sheets ---------- */
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: .8rem; font-weight: 650; color: var(--ink-2); margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); padding: 10px 13px; font-size: 16px; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; background: var(--card); }
.field.check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.field.check input { width: 24px; height: 24px; min-height: 0; accent-color: var(--blue); }
.field.check > span { margin: 0; font-size: .95rem; color: var(--ink); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.fgrid .full { grid-column: 1 / -1; }

.scrim { position: fixed; inset: 0; background: rgba(5, 10, 28, .5); z-index: 80; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: var(--card); width: 100%; max-width: 560px; max-height: calc(100vh - 40px); border-radius: 20px 20px 0 0; display: flex; flex-direction: column; animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }
.sheet-h { display: flex; align-items: center; gap: 10px; padding: 16px 16px 10px; }
.sheet-h h2 { flex: 1; }
.sheet-h::before { content: ""; position: absolute; left: 50%; margin-left: -20px; margin-top: -10px; width: 40px; height: 4px; border-radius: 2px; background: var(--line); }
.sheet-b { padding: 4px 16px 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-f { padding: 12px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line-2); display: flex; gap: 8px; }
.sheet-f .btn { flex: 1; }
.x { background: var(--line-2); border: 0; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; color: var(--ink-2); font-size: 1.1rem; }
@media (min-width: 700px) { .scrim { align-items: center; } .sheet { border-radius: 20px; } .sheet-h::before { display: none; } }

#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 20px); transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 100; opacity: 0; pointer-events: none; transition: .2s; max-width: calc(100vw - 32px); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
#toast.on { opacity: 1; transform: translateX(-50%); }
#toast.err { background: var(--bad); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 20px calc(24px + var(--safe-b)); background: radial-gradient(1200px 600px at 50% -10%, #1C2E6B 0%, var(--navy) 60%); color: #fff; }
.login form { width: 100%; max-width: 360px; }
.login .logo { display: block; width: 240px; max-width: 80%; margin: 0 auto 8px; }
.login .tag { text-align: center; color: #93A3CF; margin: 0 0 26px; font-size: .92rem; }
.login input { width: 100%; height: 54px; border-radius: 14px; border: 1px solid #2A3A6E; background: rgba(255, 255, 255, .06); color: #fff; padding: 0 16px; font-size: 16px; margin-bottom: 10px; }
.login input::placeholder { color: #7D8DBA; }
.login input:focus { outline: 2px solid var(--cyan); }
.login .btn { width: 100%; min-height: 54px; border-radius: 14px; font-size: 1.02rem; margin-top: 4px; }
.login .err { min-height: 1.5em; color: #FF9A9A; text-align: center; margin: 12px 0 0; font-size: .92rem; }
.login .foot { margin-top: 28px; color: #5F6F9C; font-size: .78rem; text-align: center; }

/* ---------- staff home ---------- */
.hello { margin: 2px 2px 14px; }
.hello .d { color: var(--ink-3); font-weight: 600; font-size: .88rem; }
.today { border-radius: 20px; padding: 18px; background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.today::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: var(--grad); opacity: .28; }
.today .lbl { color: #9FB0DA; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.today .job { font-size: 1.45rem; font-weight: 780; margin-top: 4px; position: relative; z-index: 1; }
.today .addr { color: #C5D1F2; margin-top: 4px; position: relative; z-index: 1; }
.today .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; position: relative; z-index: 1; }
.today .meta a, .today .meta span { background: rgba(255, 255, 255, .1); color: #fff; padding: 8px 12px; border-radius: 10px; font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.today .meta svg { width: 16px; height: 16px; }
.clock { margin-top: 14px; width: 100%; min-height: 76px; border-radius: 20px; border: 0; font-size: 1.25rem; font-weight: 800; color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-shadow: 0 10px 28px rgba(18, 163, 99, .35); background: linear-gradient(120deg, #12A363, #2BC48A); transition: transform .1s; }
.clock:active { transform: scale(.98); }
.clock small { font-size: .8rem; font-weight: 600; opacity: .9; }
.clock.off { background: linear-gradient(120deg, #D93A3A, #F0645A); box-shadow: 0 10px 28px rgba(217, 58, 58, .32); }
.clock:disabled { opacity: .6; }
.timer { font-variant-numeric: tabular-nums; }
.weekrow { display: flex; gap: 12px; align-items: center; }
.weekrow .day { width: 46px; text-align: center; flex: none; }
.weekrow .day b { display: block; font-size: 1.15rem; }
.weekrow .day span { font-size: .72rem; color: var(--ink-3); font-weight: 700; text-transform: uppercase; }
.weekrow.is-today .day b { color: var(--blue); }

/* stage chips */
.stages { display: flex; gap: 6px; flex-wrap: wrap; }
.stage { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-weight: 650; font-size: .86rem; cursor: pointer; color: var(--ink-2); }
.stage .tk { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--line); display: grid; place-items: center; }
.stage.done { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.stage.done .tk { background: var(--ok); border-color: var(--ok); color: #fff; }
.stage.done .tk::after { content: "✓"; font-size: .7rem; font-weight: 900; }
.stage .dt { font-size: .72rem; font-weight: 600; opacity: .75; }
.stage.ro { cursor: default; }

/* stage board grid */
.sb { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .82rem; }
.sb th { position: sticky; top: 0; background: var(--card); z-index: 1; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.sb th:first-child, .sb td:first-child { text-align: left; position: sticky; left: 0; background: var(--card); z-index: 2; min-width: 150px; max-width: 200px; }
.sb td { padding: 6px; border-bottom: 1px solid var(--line-2); text-align: center; white-space: nowrap; }
.sb .cell { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; min-height: 38px; border-radius: 9px; background: var(--line-2); color: var(--ink-3); cursor: pointer; font-weight: 650; border: 0; padding: 2px 6px; }
.sb .cell.done { background: var(--ok-bg); color: var(--ok); }
.sb .cell.booked { background: var(--info-bg); color: var(--blue); }
.sb .cell small { font-size: .68rem; font-weight: 600; }

/* ---------- schedule ---------- */
.sched { display: flex; gap: 14px; align-items: flex-start; }
.pool { width: 230px; flex: none; position: sticky; top: calc(var(--head-h) + 14px); }
.pool .card { padding: 10px; max-height: calc(100vh - 150px); overflow: auto; }
.pool h3 { margin: 4px 4px 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 40px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px 6px 6px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); font-weight: 650; font-size: .84rem; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.chip .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .7rem; font-weight: 800; flex: none; }
.chip.sel { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(85, 119, 230, .25); }
.chip.dragging { opacity: .4; }
.chip.on-site::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.chip .rm { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 0 0 0 2px; font-size: 1rem; line-height: 1; }
.chip.abs { background: var(--warn-bg); border-color: transparent; }
.jobs-board { flex: 1; min-width: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.jcard { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px; border: 2px dashed transparent; transition: border-color .1s, background .1s; border-left: 4px solid var(--com); }
.jcard.dom { border-left-color: var(--dom); }
.jcard.dragover, .pool .card.dragover { border-color: var(--blue); background: var(--info-bg); }
.jcard.target { cursor: pointer; border-style: dashed; border-color: var(--blue); }
.jcard .jh { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.jcard .jh .grow { flex: 1; min-width: 0; }
.jcard .jh .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jcard .note { font-size: .8rem; color: var(--ink-2); background: var(--warn-bg); padding: 6px 9px; border-radius: 8px; margin-bottom: 8px; cursor: pointer; }
.jcard .hint { color: var(--ink-3); font-size: .8rem; padding: 6px 2px; }
.days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
.days::-webkit-scrollbar { display: none; }
.days button { flex: none; width: 54px; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 7px 0; cursor: pointer; color: var(--ink-2); }
.days button b { display: block; font-size: 1.1rem; color: var(--ink); }
.days button span { font-size: .68rem; font-weight: 750; text-transform: uppercase; }
.days button small { display: block; font-size: .66rem; color: var(--ink-3); }
.days button.on { background: var(--navy); border-color: var(--navy); color: #9FB0DA; }
.days button.on b { color: #fff; }
.days button.today:not(.on) { border-color: var(--blue); }
.actionbar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 12px); z-index: 45; background: var(--navy); color: #fff; border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.actionbar .grow { flex: 1; font-weight: 600; font-size: .9rem; }
.actionbar .btn { min-height: 38px; }
@media (min-width: 960px) { .actionbar { left: auto; right: 24px; bottom: 24px; width: 420px; } }
@media (max-width: 899px) {
  .sched { flex-direction: column; }
  .pool { width: 100%; position: static; }
  .pool .card { max-height: none; }
  .jobs-board { grid-template-columns: 1fr; width: 100%; }
}

/* photos */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--line-2); cursor: pointer; display: block; }
.viewer { position: fixed; inset: 0; background: rgba(0, 0, 0, .92); z-index: 90; display: grid; place-items: center; padding: 20px; }
.viewer img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* section (lot / PO) cards on job page */
.sec { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); margin-top: 10px; overflow: hidden; }
.sec-h { display: flex; align-items: center; gap: 10px; padding: 13px 14px; cursor: pointer; }
.sec-h .grow { flex: 1; min-width: 0; }
.sec-b { padding: 0 14px 14px; border-top: 1px solid var(--line-2); }
.line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); cursor: pointer; }
.line:first-child { border-top: 0; }
.line .grow { flex: 1; min-width: 0; }
.line .t { font-weight: 600; }
.line .d { font-size: .78rem; color: var(--ink-3); }
.mini { font-size: .78rem; color: var(--ink-3); display: flex; gap: 10px; flex-wrap: wrap; }
.mini b { color: var(--ink); font-variant-numeric: tabular-nums; }

.hold { display: flex; gap: 12px; padding: 14px; border-top: 1px solid var(--line-2); }
.hold:first-child { border-top: 0; }
.hold .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--info-bg); font-size: 1.1rem; flex: none; }
.hold .grow { flex: 1; min-width: 0; }
.hold .t { font-weight: 650; }
.hold pre { white-space: pre-wrap; font: inherit; font-size: .82rem; color: var(--ink-2); margin: 6px 0 0; }
.hold .btns { margin-top: 10px; }
.hide-sm { } @media (max-width: 699px) { .hide-sm { display: none !important; } }
.show-sm { display: none; } @media (max-width: 699px) { .show-sm { display: initial; } }

/* ===================== Quotes & estimating (desktop-first, still usable on a phone) ===================== */
.pre { white-space: pre-wrap; margin: 0; }
.wrap { white-space: normal !important; }
.nowrap { white-space: nowrap; }
.overdue { color: var(--bad); font-weight: 700; }
.ok-t { color: var(--ok); } .bad-t { color: var(--bad); }
.w60 { width: 60px; } .w90 { width: 90px; }
kbd { font: 600 .68rem/1 ui-monospace, monospace; border: 1px solid currentColor; border-radius: 4px; padding: 1px 4px; opacity: .6; margin-left: 4px; }
.lnk { background: none; border: 0; color: var(--blue); cursor: pointer; padding: 2px 4px; font-size: .8rem; font-weight: 600; }
.lnk:hover { text-decoration: underline; }
select.inline { border: 0; background: transparent; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.tabs .ghost { border-style: dashed; }
.tabs [data-del] { margin-left: 4px; opacity: .6; }
.tabs .tabl { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); padding: 8px 14px; border-radius: 999px; font-weight: 650; font-size: .85rem; }
.tabs .tabl.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.note-hist { background: var(--warn-bg); color: var(--ink-2); border-radius: var(--r-sm); padding: 9px 12px; font-size: .84rem; margin: 10px 0; }
details.how { margin-top: 8px; font-size: .84rem; color: var(--ink-2); }
details.how summary { cursor: pointer; color: var(--blue); font-weight: 650; }
details.how p { margin: 6px 0; }

.qfilters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; margin-bottom: 12px; }
.qfilters .grow { flex: 1 1 260px; }
.qfilters input, .qfilters select { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); padding: 0 10px; font-size: .88rem; max-width: 100%; }
.qfilters label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }

.qcards { display: grid; gap: 10px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 899px) { .qcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .qcards .tot { grid-column: 1 / -1; } }
.qcard { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 14px; color: inherit; border-top: 4px solid var(--line); display: block; }
.qcard:hover { box-shadow: 0 0 0 2px var(--blue); }
.qcard .l { font-size: .78rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.qcard .v { font-size: 1.7rem; font-weight: 800; line-height: 1.1; margin-top: 4px; }
.qcard .s { font-size: 1rem; font-weight: 700; color: var(--ink-2); }
.qcard .nv { font-size: .72rem; color: var(--ink-3); margin-top: 2px; }
.qcard.live { border-top-color: var(--blue); } .qcard.won { border-top-color: var(--ok); } .qcard.lost { border-top-color: var(--bad); } .qcard.unk { border-top-color: #F5B731; } .qcard.tot { border-top-color: var(--navy); }
.wr { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 6px; }
.wr .v { font-size: 1.6rem; font-weight: 800; } .wr .s { font-size: .78rem; color: var(--ink-3); }
.list.flat { box-shadow: none; border: 1px solid var(--line-2); }

.hbars { display: grid; gap: 6px; margin-top: 10px; }
.hb { display: grid; grid-template-columns: minmax(90px, 34%) 1fr 72px; gap: 8px; align-items: center; color: inherit; font-size: .84rem; }
a.hb:hover .k { color: var(--blue); }
.hb .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb .track { height: 12px; background: var(--line-2); border-radius: 6px; overflow: hidden; display: flex; }
.hb .track i { display: block; height: 100%; } .hb .track .b { background: var(--blue); border-radius: 6px; }
.hb .v { text-align: right; color: var(--ink-2); }
.cols { display: flex; align-items: flex-end; gap: 3px; height: 190px; padding-top: 6px; overflow-x: auto; }
.col { flex: 1 0 18px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; color: var(--ink-3); }
.col .stack { width: 100%; max-width: 34px; display: flex; flex-direction: column-reverse; border-radius: 4px 4px 0 0; overflow: hidden; min-height: 2px; }
.col .stack i { display: block; min-height: 0; }
.col:hover .stack { outline: 2px solid var(--blue); }
.col .lab { font-size: .62rem; margin-top: 4px; white-space: nowrap; writing-mode: vertical-rl; transform: rotate(180deg); height: 34px; }
.stack .Won { background: var(--ok); } .stack .Live { background: var(--blue); } .stack .Unknown { background: #F5B731; } .stack .Lost { background: var(--bad); }

.qtbl td { padding: 7px 10px; } .qtbl th { padding: 8px 10px; }
.qtbl th.sortable { cursor: pointer; user-select: none; } .qtbl th.sortable:hover, .qtbl th.sortable:focus { color: var(--blue); outline: none; }
.qtbl .nm a { font-weight: 650; color: var(--ink); } .qtbl .nm a:hover { color: var(--blue); }
.qtbl .sub, .tbl .sub { font-size: .74rem; color: var(--ink-3); max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl .ck, .qtbl .ck { width: 34px; }
.tbl input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); }
.tbl tr.cur td { background: var(--info-bg); }
.tbl-wrap.flat { box-shadow: none; border: 1px solid var(--line-2); }
.bulkbar { position: sticky; top: calc(var(--head-h) + 6px); z-index: 20; background: var(--navy); color: #fff; border-radius: 12px; padding: 8px 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.bulkbar[hidden] { display: none; }
.bulkbar select { height: 34px; border-radius: 8px; border: 0; padding: 0 8px; }
.bulkbar .btn { min-height: 34px; }

.opp-head { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: start; margin-bottom: 12px; }
.opp-head h1 { font-size: 1.5rem; margin: 2px 0; } .opp-head .sub { color: var(--ink-3); }
.opp-fig { text-align: right; } .opp-fig .v { font-size: 1.6rem; font-weight: 800; }
.opp-st { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.opp-head .full { grid-column: 1 / -1; }
.opp-head select.btn { padding: 0 10px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line-2); font-size: .9rem; }
.kv:first-of-type { border-top: 0; } .kv span { color: var(--ink-3); } .kv b { font-weight: 600; }
.flag, .finding { border-top: 1px solid var(--line-2); padding: 10px 0; font-size: .88rem; } .flag:first-of-type, .finding:first-of-type { border-top: 0; }
.flag .btns { margin-top: 6px; }
.mini-t { font-size: .8rem; margin-top: 6px; } .mini-t td { padding: 2px 8px 2px 0; }
.timeline .ev { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: .88rem; }
.timeline .ev:first-child { border-top: 0; } .timeline .when { color: var(--ink-2); font-size: .8rem; }
.timeline .old { text-decoration: line-through; color: var(--ink-3); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { cursor: pointer; } .seg input { position: absolute; opacity: 0; }
.seg b { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 2px solid var(--line); font-weight: 700; }
.seg input:checked + b { border-color: currentColor; box-shadow: 0 0 0 3px rgba(85, 119, 230, .15); }
.seg input:focus-visible + b { outline: 2px solid var(--blue); }
.seg b.ok { color: var(--ok); } .seg b.bad { color: var(--bad); } .seg b.info { color: var(--blue); } .seg b.warn { color: var(--warn); }
.seg.big b { min-height: 50px; font-size: 1.05rem; padding: 0 18px; }

.uq-nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.uq-nav select { margin-left: auto; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); padding: 0 8px; }
.uq-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 899px) { .uq-body { grid-template-columns: 1fr; } }
.uq-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.uq-facts div { background: var(--bg); border-radius: 10px; padding: 8px 10px; } .uq-facts span { display: block; font-size: .72rem; color: var(--ink-3); } .uq-facts b { font-size: .92rem; }
.gf { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; } @media (max-width: 799px) { .gf { grid-template-columns: 1fr; } }
.gf-r { border-left: 3px solid var(--blue); padding-left: 14px; }
.gf .btns input { height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); padding: 0 10px; }
pre.prompt { white-space: pre-wrap; background: var(--bg); border-radius: 10px; padding: 10px; font-size: .8rem; max-height: 260px; overflow: auto; }

.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; flex-wrap: wrap; counter-reset: s; }
.steps li { counter-increment: s; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .82rem; font-weight: 650; color: var(--ink-3); }
.steps li::before { content: counter(s) ". "; } .steps li.on { background: var(--navy); color: #fff; border-color: var(--navy); } .steps li.done { color: var(--ok); }

/* estimate workspace */
.est { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
@media (max-width: 1499px) { .est { grid-template-columns: 1fr; } }
.est-side { position: sticky; top: calc(var(--head-h) + 12px); display: grid; gap: 12px; max-height: calc(100vh - var(--head-h) - 24px); overflow: auto; }
@media (max-width: 1499px) { .est-side { position: static; max-height: none; order: -1; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; } .est-side #prec { max-height: 430px; overflow: auto; } }
.est-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px; margin-bottom: 10px; }
.est-tools label { margin-left: auto; }
.etbl { font-size: .82rem; } .etbl td { padding: 3px 3px; } .etbl th { padding: 8px 3px; font-size: .64rem; white-space: normal; line-height: 1.2; vertical-align: bottom; }
.etbl .cell { width: 100%; min-width: 50px; height: 32px; border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 0 6px; font-size: .84rem; }
.etbl .cell.n { text-align: right; font-variant-numeric: tabular-nums; }
.etbl .cell.d { min-width: 170px; }
.etbl td.n:not(:has(input)) { min-width: 84px; } .etbl .cell.s { min-width: 44px; width: 52px; }
.etbl .cell:hover { border-color: var(--line); } .etbl .cell:focus { border-color: var(--blue); background: var(--card); outline: none; }
.etbl .cell:disabled { color: var(--ink); }
.etbl .sec-row td { background: var(--line-2); padding: 7px 8px; }
.etbl tr.miss td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.etbl td.n { white-space: nowrap; }
table.totals { width: 100%; font-size: .86rem; border-collapse: collapse; }
.totals td { padding: 4px 0; } .totals td.n { text-align: right; font-variant-numeric: tabular-nums; }
.totals tr.b td { font-weight: 700; border-top: 1px solid var(--line); }
.totals tr.sell td { font-weight: 800; font-size: 1.05rem; border-top: 2px solid var(--ink); padding-top: 6px; }
.totals td[title] { text-decoration: underline dotted var(--ink-3); cursor: help; }
.miss-box { background: var(--bad-bg); color: var(--bad); border-radius: 10px; padding: 8px 12px; font-size: .82rem; margin-top: 8px; }
.miss-box ul { margin: 4px 0 0; padding-left: 18px; }
.calc { background: var(--bg); border-radius: 10px; padding: 10px; font-size: .82rem; }
.prec { border-top: 1px solid var(--line-2); padding: 8px 0; font-size: .86rem; } .prec.useful { background: var(--ok-bg); margin: 0 -8px; padding: 8px; border-radius: 8px; }
.prec .btns { gap: 2px; }
.review h3 { margin-top: 12px; }

/* customer quote document */
.quote-doc { background: #fff; color: #111; max-width: 820px; margin: 0 auto; padding: 40px 46px; border-radius: 6px; box-shadow: var(--shadow); font-size: 14px; line-height: 1.5; position: relative; }
.quote-doc.draft::before { content: "DRAFT"; position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) rotate(-24deg); font-size: 110px; font-weight: 900; color: rgba(217, 58, 58, .09); pointer-events: none; }
.quote-doc h1 { font-size: 26px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 8px; color: #0B1430; }
.quote-doc h2 { font-size: 15px; margin: 22px 0 6px; color: #0B1430; border-bottom: 1px solid #ddd; padding-bottom: 4px; }
.quote-doc h3 { font-size: 14px; margin: 12px 0 4px; }
.quote-doc .muted { color: #666; }
.qd-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 3px solid #0B1430; padding-bottom: 16px; }
.qd-logo { height: 54px; display: block; margin-bottom: 8px; background: #0B1430; padding: 8px 12px; border-radius: 6px; }
.qd-biz { font-size: 12px; color: #444; } .qd-biz b { font-size: 15px; color: #111; }
.qd-meta table td { padding: 1px 0 1px 12px; font-size: 13px; } .qd-meta table td:first-child { color: #666; padding-left: 0; }
.qd-to { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 18px 0; }
.qd-items { margin: 0; padding-left: 20px; }
.qd-price { width: 100%; max-width: 380px; margin-left: auto; border-collapse: collapse; }
.qd-price td { padding: 6px 0; border-bottom: 1px solid #eee; } .qd-price td.n { text-align: right; font-variant-numeric: tabular-nums; } .qd-price tr.b td { font-weight: 800; font-size: 16px; border-bottom: 2px solid #111; }
.qd-accept .sig { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; margin-top: 18px; }
.qd-accept .sig span { border-top: 1px solid #999; padding-top: 4px; font-size: 12px; color: #666; margin-top: 28px; }
@media (max-width: 699px) { .quote-doc { padding: 22px 18px; } .qd-head, .qd-to { display: block; } .qd-meta { margin-top: 12px; } }
@media print {
  .top, .side, .nav, .subbar, .noprint, .back, #toast { display: none !important; }
  body, main, .body { background: #fff !important; padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .quote-doc { box-shadow: none; padding: 0; max-width: none; }
  .quote-doc h2 { break-after: avoid; } .qd-accept { break-inside: avoid; }
}

#ftog { display: none; }
@media (max-width: 699px) {
  #ftog { display: inline-flex; }
  .qfilters:not(.open) > :not(#q):not(#ftog) { display: none; }
  .qfilters #q { flex: 1 1 60%; }
}

/* Practice copy (Vercel previews) */
.practice-banner { background: #F97316; color: #fff; font-weight: 750; font-size: .82rem; text-align: center; padding: 6px 12px; letter-spacing: .02em; }
.login .practice-banner { border-radius: 8px; margin-top: 14px; }
.practice-logins { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.practice-logins p { width: 100%; text-align: center; margin: 4px 0 0; }

/* Schedule: lot / stage tag under each booked person */
.crewrow { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.wtag { border: 0; background: var(--info-bg); color: var(--blue); font: inherit; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; cursor: pointer; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wtag.empty { background: var(--warn-bg); color: var(--warn); border: 1px dashed currentColor; }

/* Lot stages: cert / power pickers */
.sb-pick { font: inherit; font-size: .8rem; font-weight: 600; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); min-width: 150px; cursor: pointer; }
.sb-pick.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.sb-pick.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.sb-pick.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.sb-pick:disabled { opacity: .6; }

/* U/G inspection panel on a lot */
.insp { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; margin: 10px 0; background: var(--card); }
.insp-h { font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.insp-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.insp-slot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 110px; border: 2px dashed var(--line); border-radius: var(--r-sm); background: var(--bg); color: var(--ink-2); font-weight: 650; font-size: .86rem; cursor: pointer; padding: 8px; }
.insp-slot svg { width: 26px; height: 26px; }
.insp-slot:disabled { opacity: .5; cursor: default; }
.insp-slot.has { border-style: solid; border-color: var(--ok); background: var(--ok-bg); cursor: default; padding: 6px; }
.insp-slot.has img { width: 100%; height: 86px; object-fit: cover; border-radius: 6px; cursor: zoom-in; }
.insp-slot.has span { display: flex; align-items: center; gap: 4px; color: var(--ok); font-size: .8rem; }
.insp-slot.has span svg { width: 14px; height: 14px; }
.insp-slot .link { background: none; border: 0; padding: 0; color: var(--blue); font-size: .78rem; font-weight: 600; cursor: pointer; }
.insp-ok { display: flex; gap: 10px; align-items: center; background: var(--ok-bg); color: var(--ok); border-radius: var(--r-sm); padding: 10px 12px; }
.insp-ok > svg { width: 22px; height: 22px; flex: none; }
.insp-ok b { color: var(--ink); }
.insp-cert { margin-top: 8px; font-size: .88rem; }
.insp-cert .link { background: none; border: 0; color: var(--blue); cursor: pointer; font-weight: 600; }
.btn.block { width: 100%; justify-content: center; }

/* Stage photo checklist tabs */
.ck-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 10px; padding-bottom: 2px; }
.ck-tab { flex: none; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: inherit; font-size: .8rem; font-weight: 700; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.ck-tab small { color: var(--ink-3); font-weight: 600; }
.ck-tab svg { width: 14px; height: 14px; }
.ck-tab.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.ck-tab.on small { color: #9FB0DA; }
.ck-tab.done:not(.on) { color: var(--ok); border-color: var(--ok); background: var(--ok-bg); }
.ck-sub { font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 14px 0 8px; }
.insp-slots { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

/* Hours log */
.logcard { margin-top: 12px; }
.logform .fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hrs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hrs input { width: 72px; text-align: center; font-size: 1.15rem; font-weight: 750; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.hrs .step { width: 40px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 1.2rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.chip-btn { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: inherit; font-weight: 700; padding: 9px 12px; border-radius: 999px; cursor: pointer; }
.chip-btn.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.outcome { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.oc { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); font: inherit; font-weight: 750; color: var(--ink-2); cursor: pointer; }
.oc svg { width: 18px; height: 18px; }
.oc.on.ok { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.oc.on.warn { border-color: var(--warn); background: var(--warn-bg); color: var(--warn); }
.lotnotes { margin: 6px 0 10px; display: grid; gap: 4px; }

.sub-list { background: var(--bg); border-radius: 10px; margin: 0 0 8px 12px; }
.sub-list .row { background: transparent; }

.rdo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px 12px; font-size: .85rem; }
.rdo-grid div { display: flex; justify-content: space-between; gap: 6px; border-bottom: 1px solid var(--line-2); padding: 3px 0; }
.rdo-grid span { color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* Allocated vs used hours */
.card.hours { margin-bottom: 12px; }
.hsum { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hsum .v { font-size: 1.15rem; font-weight: 780; }
.hbar { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.hbar i { display: block; height: 100%; border-radius: 4px; background: var(--ok); }
.hbar.amber i { background: #F5B731; } .hbar.red i { background: var(--bad); } .hbar.none i { background: var(--ink-3); }
.hlist { display: grid; gap: 10px; margin-top: 12px; }
.hrow { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.hrow .hbar { grid-column: 1 / -1; height: 6px; }
.hrow .t { font-weight: 650; font-size: .88rem; } .hrow .n { font-size: .82rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hrow.tap { cursor: pointer; }
.sb-pick.hold { background: #EFEAFB; color: #6B4FC8; border-color: transparent; }
@media (prefers-color-scheme: dark) { .sb-pick.hold { background: #2A2350; color: #B9A6FF; } }
.viewas-banner { background: #6B4FC8; color: #fff; text-align: center; font-size: .85rem; padding: 7px 12px; position: sticky; top: 0; z-index: 60; }
.viewas-banner button { margin-left: 10px; background: #fff; color: #6B4FC8; border: 0; border-radius: 999px; padding: 3px 12px; font: inherit; font-weight: 700; cursor: pointer; }
.outbox-pill { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-b) + 12px); z-index: 70; border: 0; border-radius: 999px; padding: 9px 16px; background: var(--navy); color: #fff; font: inherit; font-weight: 700; font-size: .85rem; box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: pointer; }
.outbox-pill.bad { background: var(--bad); }
@media (min-width: 960px) { .outbox-pill { bottom: 20px; } }
.offline-bar { background: #F5B731; color: #3A2C0B; text-align: center; font-size: .82rem; font-weight: 650; padding: 7px 12px; position: sticky; top: 0; z-index: 61; }
