/* 292 Engineering job desk preview. Light, theme locked (an internal tool). Tokens mirrored in DESIGN.md. */
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/is-latin.woff2') format('woff2'); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/is-latin-ext.woff2') format('woff2'); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --bg: #F1F2F1;
  --surface: #FFFFFF;
  --surface-2: #F6F7F6;
  --line: #E2E4E2;
  --line-2: #C6CAC6;
  --ink: #1C1D1E;
  --ink-2: #454545;
  --ink-3: #5E6266;
  --steel: #2F7690;
  --steel-hi: #275F74;
  --steel-logo: #3E93AF;
  --steel-wash: rgba(62, 147, 175, 0.10);
  --steel-wash-2: rgba(62, 147, 175, 0.18);
  --amber: #FFBF00;
  --ok: #1D6B3A; --ok-bg: #E2F1E7;
  --warn: #8A4B00; --warn-bg: #FBEFD9;
  --bad: #B3261E; --bad-bg: #FCE7E5;
  --r-s: 4px;
  --r: 8px;
  --r-l: 12px;
  --shadow: 0 1px 2px rgba(28, 40, 46, 0.05), 0 12px 28px -22px rgba(28, 60, 72, 0.45);
  --side: 236px;
  --z-top: 20; --z-tabs: 25; --z-badge: 45; --z-scrim: 50; --z-drawer: 51; --z-modal: 60; --z-toast: 70;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 'Instrument Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
svg { fill: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-stretch: 88%; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.strong { font-weight: 650; }
.warn-t { color: var(--warn); font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* their arrow tag, from the section labels on 292engineering.com */
.ptag { display: inline-flex; align-items: center; margin: 0; padding: 7px 34px 7px 14px; background: var(--amber); color: var(--ink); font-size: 18px; font-weight: 650; font-stretch: 90%; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.2; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--r); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color .2s, box-shadow .2s, transform .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--steel); color: #fff; }
.btn--primary:hover { background: var(--steel-hi); }
.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--steel); }
.btn--wa { background: #1D7A44; color: #fff; }
.btn--wa:hover { background: #176538; }
.btn--sm { min-height: 32px; padding: 0 11px; font-size: 13px; gap: 6px; }
.btn--sm svg { width: 15px; height: 15px; }
.btn--lg { min-height: 50px; padding: 0 22px; font-size: 16px; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: var(--r); background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn svg { width: 19px; height: 19px; }
.link { color: var(--steel); font-weight: 600; font-size: 14px; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.link:hover { text-decoration: underline; }
.linkish { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font-weight: 600; color: var(--ink); }
.linkish:hover { color: var(--steel); text-decoration: underline; }

/* chips and service tags */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: var(--r-s); font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.chip--demo { background: var(--amber); color: var(--ink); box-shadow: none; }
.chip--ok { background: var(--ok-bg); color: var(--ok); box-shadow: none; }
.chip--warn { background: var(--warn-bg); color: var(--warn); box-shadow: none; }
.chip--bad { background: var(--bad-bg); color: var(--bad); box-shadow: none; }
.chip--brand { background: var(--steel-wash-2); color: var(--steel-hi); box-shadow: none; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: var(--r-s); font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.tag svg { width: 13px; height: 13px; color: var(--steel); }

/* ---------- intro ---------- */
.intro { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: var(--surface); }
.intro__copy { padding: clamp(28px, 5vw, 72px) clamp(20px, 5vw, 76px); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.intro__logo { width: min(100%, 300px); height: auto; }
.intro__title { margin: clamp(28px, 4vw, 48px) 0 0; font-size: clamp(34px, 4vw, 56px); line-height: 1.04; font-weight: 650; font-stretch: 82%; letter-spacing: -0.02em; max-width: 14ch; }
.intro__sub { margin: 16px 0 0; font-size: clamp(16px, 1.3vw, 18px); color: var(--ink-2); max-width: 46ch; }
.intro__services { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; max-width: 560px; }
.intro__services li { padding: 5px 24px 5px 10px; background: var(--amber); color: var(--ink); font-size: 12px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); }
.intro__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 30px; }
.intro__note { font-size: 14px; color: var(--ink-3); }
.intro__addr { margin: 34px 0 0; font-size: 14px; color: var(--ink-3); }
.intro__addr a { color: var(--ink-2); font-weight: 600; text-decoration: none; white-space: nowrap; }
.intro__media { position: relative; min-width: 0; overflow: hidden; background: var(--ink-2); }
.intro__photo--main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro__photo--inset { position: absolute; left: 32px; bottom: 32px; width: clamp(140px, 14vw, 210px); height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-l); box-shadow: 0 0 0 6px #fff, 0 30px 60px -20px rgba(0, 0, 0, 0.5); }
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; grid-template-rows: auto 260px; }
  .intro__copy { padding: 28px 20px 30px; justify-content: flex-start; }
  .intro__logo { width: 220px; }
  .intro__title { margin-top: 26px; }
  .intro__services li { font-size: 11px; }
  .intro__addr { margin-top: 24px; }
  .intro__photo--inset { left: 20px; bottom: 20px; width: 112px; box-shadow: 0 0 0 4px #fff, 0 20px 40px -16px rgba(0, 0, 0, 0.5); }
  .intro__media { margin-bottom: 64px; }
}

/* ---------- app shell ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: var(--z-top); display: flex; flex-direction: column; gap: 18px; padding: 22px 16px 18px; background: var(--surface); box-shadow: 1px 0 0 var(--line); overflow-y: auto; }
.side__brand img { width: 196px; height: auto; }
.side__new { width: 100%; }
.side__nav { display: grid; gap: 2px; }
.side__nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--r); text-decoration: none; font-weight: 550; color: var(--ink-2); }
.side__nav a svg { width: 19px; height: 19px; color: var(--ink-3); }
.side__nav a:hover { background: var(--surface-2); color: var(--ink); }
.side__nav a[aria-current="page"] { background: var(--steel-wash); color: var(--ink); font-weight: 650; }
.side__nav a[aria-current="page"] svg { color: var(--steel); }
.side__nav a[aria-current="page"]::before { content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 3px 3px 0; background: var(--amber); }
.count { margin-left: auto; min-width: 22px; padding: 0 6px; border-radius: var(--r-s); background: var(--steel-wash-2); color: var(--steel-hi); font-size: 12px; font-weight: 650; text-align: center; line-height: 21px; }
.count--warn { background: var(--warn-bg); color: var(--warn); }
.count:empty { display: none; }
.side__foot { margin-top: auto; display: grid; gap: 8px; justify-items: start; font-size: 12.5px; color: var(--ink-3); }
.side__foot p { margin: 0; }
.top { display: none; }
.main { margin-left: var(--side); min-width: 0; }
.pagehead { padding: 26px clamp(16px, 2.6vw, 32px) 2px; max-width: 1480px; }
.pagehead__sub { margin: 10px 0 0; color: var(--ink-3); font-size: 14px; max-width: 70ch; }
.view { padding: 18px clamp(16px, 2.6vw, 32px) 24px; outline: none; max-width: 1480px; }
.foot { padding: 8px clamp(16px, 2.6vw, 32px) 36px; font-size: 13px; color: var(--ink-3); max-width: 1480px; }
.foot p { margin: 2px 0; }
.foot b { color: var(--ink-2); font-weight: 600; }
.tabs { display: none; }
@media (max-width: 1023px) {
  .side { display: none; }
  .main { margin-left: 0; }
  .top { position: sticky; top: 0; z-index: var(--z-top); display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 16px; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
  .top__brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 650; font-stretch: 85%; font-size: 17px; }
  .top__brand img { width: 34px; height: 34px; }
  .top .chip--demo { margin-left: auto; }
  .pagehead { padding-top: 18px; }
  .ptag { font-size: 16px; }
  .foot { padding-bottom: 150px; }
  .tabs { position: fixed; inset: auto 0 0; z-index: var(--z-tabs); display: grid; grid-template-columns: repeat(6, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--line); }
  .tabs a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 0; text-decoration: none; color: var(--ink-3); font-size: 11px; font-weight: 600; border-radius: var(--r); }
  .tabs a svg { width: 22px; height: 22px; }
  .tabs a[aria-current="page"] { color: var(--steel-hi); background: var(--steel-wash); }
  .dot-count { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: var(--r-s); background: var(--steel); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; line-height: 17px; text-align: center; }
  .dot-count--warn { background: #A65A00; }
  .dot-count:empty { display: none; }
}
@media (max-width: 380px) { .top__new span { display: none; } .tabs a { font-size: 10.5px; } }

/* ---------- panels ---------- */
.panel { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); padding: 18px; min-width: 0; }
.panel--flush { padding: 6px; }
.panel__head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 10px; }
.panel__head h2 { margin: 0; font-size: 17px; font-weight: 650; }
.panel__head .link, .panel__head > .muted { margin-left: auto; }
.panel__head--pad { padding: 12px 12px 0; }
.sub-h { margin: 0 0 6px; font-size: 14px; font-weight: 650; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.sub-h svg { width: 17px; height: 17px; color: var(--steel); }

/* KPIs */
.kpis { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.kpi { display: grid; gap: 2px; height: 100%; padding: 14px 16px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.kpi:hover { box-shadow: var(--shadow), inset 0 0 0 1px var(--steel); transform: translateY(-1px); }
.kpi__l { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.kpi__n { font-size: 32px; font-weight: 650; font-stretch: 80%; letter-spacing: -0.02em; line-height: 1.1; }
.kpi__s { font-size: 12.5px; color: var(--ink-3); }
.kpi--lead { background: var(--ink-2); box-shadow: none; }
.kpi--lead .kpi__l, .kpi--lead .kpi__s { color: rgba(255, 255, 255, 0.78); }
.kpi--lead .kpi__n { color: #fff; }
.kpi--lead:hover { background: #3A3A3A; box-shadow: none; }
@media (max-width: 1320px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .kpi { padding: 12px; } .kpi__n { font-size: 28px; } }

/* dashboard */
.dash { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "today today chase" "money groups act"; gap: 16px; }
.dash__today { grid-area: today; } .dash__chase { grid-area: chase; } .dash__money { grid-area: money; } .dash__groups { grid-area: groups; } .dash__act { grid-area: act; }
.today { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.today > div { min-width: 0; }
@media (max-width: 1240px) { .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "today today" "chase money" "groups act"; } }
@media (max-width: 760px) { .dash { grid-template-columns: minmax(0, 1fr); grid-template-areas: "today" "chase" "money" "groups" "act"; } .today { grid-template-columns: minmax(0, 1fr); } }
.slot { flex: none; min-width: 52px; height: 36px; padding: 0 6px; border-radius: var(--r); display: grid; place-items: center; font-size: 13px; font-weight: 650; background: var(--steel-wash-2); color: var(--steel-hi); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bars a { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) 24px; align-items: center; gap: 10px; padding: 6px 4px; border-radius: var(--r); text-decoration: none; font-size: 14px; }
.bars a:hover { background: var(--surface-2); }
.bars__l { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars__l svg { width: 16px; height: 16px; color: var(--steel); flex: none; }
.bars__b { height: 8px; width: var(--w); border-radius: 2px; background: var(--steel-logo); }
.bars b { text-align: right; }

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); }
.list > li:first-child > .row, .list > li.row:first-child { border-top: 0; }
.list > li + li > .row--btn { border-top: 1px solid var(--line); }
.row--btn { width: 100%; background: none; border: 0; text-align: left; cursor: pointer; border-radius: var(--r); padding: 10px 8px; }
.row--btn:hover { background: var(--surface-2); }
.row__main { min-width: 0; flex: 1; display: grid; }
.row__title { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.row__meta { font-size: 13px; color: var(--ink-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ico { flex: none; width: 34px; height: 34px; border-radius: var(--r); display: grid; place-items: center; background: var(--steel-wash); color: var(--steel); }
.ico svg { width: 18px; height: 18px; }
.ico--warn { background: var(--warn-bg); color: var(--warn); }
.empty { padding: 24px 12px; text-align: center; color: var(--ink-3); display: grid; justify-items: center; gap: 10px; }
.empty svg { width: 30px; height: 30px; color: #9AA19D; }
.empty p { margin: 0; font-size: 14px; max-width: 38ch; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; }
.timeline li { display: flex; gap: 10px; }
.timeline li::before { content: ""; width: 3px; border-radius: 2px; background: var(--steel-wash-2); flex: none; }
.timeline small { color: var(--ink-3); display: block; }

/* toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; min-width: 0; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; max-width: 100%; scrollbar-width: thin; }
.seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 7px 11px; border-radius: 6px; font-weight: 600; font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button:hover { background: var(--surface-2); }
.seg button[aria-pressed="true"] { background: var(--ink-2); color: #fff; }
.seg__n { font-size: 11px; opacity: 0.75; font-variant-numeric: tabular-nums; }
.seg--full { display: flex; }
.seg--full button { flex: 1; justify-content: center; }
.search { position: relative; flex: 1 1 240px; min-width: 0; max-width: 340px; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-3); }
.search input { width: 100%; min-height: 40px; padding: 0 12px 0 38px; border: 0; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.search input::placeholder { color: #697074; }
.search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--steel); }
@media (max-width: 640px) { .search { max-width: none; flex-basis: 100%; } }

/* jobs board */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(238px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; scrollbar-width: thin; outline: none; }
.board:focus-visible { box-shadow: 0 0 0 2px var(--steel); border-radius: var(--r-l); }
.col { min-width: 0; scroll-snap-align: start; background: rgba(255, 255, 255, 0.5); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line); padding: 10px; }
.col__h { display: flex; align-items: center; gap: 8px; margin: 2px 2px 10px; font-size: 14px; font-weight: 650; }
.col__n { min-width: 22px; padding: 0 6px; border-radius: var(--r-s); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; text-align: center; line-height: 20px; }
.col__v { margin-left: auto; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.col__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.col__empty { padding: 18px 8px; text-align: center; font-size: 13px; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: var(--r); }
.col__more { margin: 10px 4px 0; }
.card { position: relative; display: grid; gap: 5px; padding: 12px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.card:hover { box-shadow: var(--shadow), inset 0 0 0 1px var(--steel); }
.card.is-flash { box-shadow: 0 0 0 3px var(--amber), var(--shadow); }
.card__open { position: absolute; inset: 0; z-index: 1; border: 0; background: transparent; border-radius: var(--r); cursor: pointer; }
.card__img { width: calc(100% + 24px); max-width: none; margin: -12px -12px 4px; height: 96px; object-fit: cover; border-radius: var(--r) var(--r) 0 0; }
.card__id { font-size: 12px; font-weight: 650; color: var(--steel-hi); }
.card__title { font-weight: 650; line-height: 1.3; }
.card__who { font-size: 13px; color: var(--ink-2); }
.card__meta { font-size: 12.5px; color: var(--ink-3); }
.card__foot .strong { white-space: nowrap; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.card__foot .btn { position: relative; z-index: 2; }
.col--done .card { opacity: 0.85; }

/* drawer */
.scrim { position: fixed; inset: 0; z-index: var(--z-scrim); background: rgba(20, 28, 32, 0.4); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-drawer); width: min(600px, 100%); background: var(--bg); box-shadow: -20px 0 60px -20px rgba(20, 40, 50, 0.45); display: flex; flex-direction: column; }
.drawer__head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; background: var(--surface); box-shadow: 0 1px 0 var(--line); border-top: 4px solid var(--amber); }
.drawer__titles { flex: 1; min-width: 0; }
.drawer__head h2 { margin: 0; font-size: 19px; font-weight: 650; outline: none; line-height: 1.25; }
.drawer__id { color: var(--steel-hi); margin-right: 4px; }
.drawer__head p { margin: 2px 0 0; color: var(--ink-3); font-size: 14px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 18px; display: grid; grid-auto-rows: max-content; gap: 14px; align-content: start; }
.drawer__foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: 0 -1px 0 var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.steps li { padding-top: 7px; font-size: 11px; font-weight: 600; color: var(--ink-3); border-top: 4px solid var(--line-2); line-height: 1.25; }
.steps li.is-done { border-color: var(--steel-logo); color: var(--ink-2); }
.steps li.is-now { border-color: var(--amber); color: var(--ink); }
.steps__now { display: none; margin: -6px 0 0; font-size: 13px; color: var(--ink-3); }
@media (max-width: 560px) { .steps li span { display: none; } .steps__now { display: block; } }
.strip { min-height: 110px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.strip--grid { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.strip__btn { padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: var(--line); }
.strip__btn img { width: 100%; height: 110px; object-fit: cover; transition: transform .4s; }
.strip__btn:hover img { transform: scale(1.04); }
.enq { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
.lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.lines th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.lines td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines .r { text-align: right; white-space: nowrap; padding-left: 12px; }
.lines td b { font-weight: 600; }
.lines small { color: var(--ink-3); display: block; font-size: 12px; }
@media (max-width: 420px) { .hide-xs { display: none; } }
.totals { display: grid; gap: 4px; font-size: 14px; margin-top: 10px; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; }
.totals .grand { font-size: 18px; font-weight: 650; padding-top: 6px; border-top: 2px solid var(--ink); margin-top: 4px; }
.totals__split { color: var(--ink-2); }
.totals__split:first-of-type { margin-top: 6px; }
.totals + .muted { margin: 8px 0 0; }
.note { padding: 10px 12px; border-radius: var(--r); background: var(--steel-wash); color: var(--steel-hi); font-size: 13.5px; font-weight: 500; display: flex; gap: 8px; align-items: flex-start; }
.note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.note--warn { background: var(--warn-bg); color: var(--warn); }
.note .link { font-size: 13.5px; }

/* site visits */
.visits { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.visits__main, .visits__side { display: grid; gap: 16px; min-width: 0; }
@media (max-width: 1100px) { .visits { grid-template-columns: minmax(0, 1fr); } }
.vday { display: grid; gap: 10px; }
.vday__h { margin: 0; font-size: 18px; font-weight: 650; display: flex; align-items: baseline; gap: 10px; }
.vday__h .muted { font-size: 14px; font-weight: 500; }
.vcard { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 0; border-radius: var(--r-l); overflow: hidden; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.vcard--late { box-shadow: var(--shadow), inset 0 0 0 1px var(--bad); }
.vcard__img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.vcard__img--none { display: grid; place-items: center; background: var(--steel-wash); color: var(--steel); }
.vcard__img--none svg { width: 40px; height: 40px; }
.vcard__body { padding: 14px 16px; display: grid; gap: 5px; align-content: start; min-width: 0; }
.vcard__time { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--steel-hi); }
.vcard__title { font-size: 16px; }
.vcard__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
@media (max-width: 560px) { .vcard { grid-template-columns: minmax(0, 1fr); } .vcard__img { height: 140px; min-height: 0; } .vcard__img--none { display: none; } }

/* quotes */
.sumline { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-bottom: 16px; padding: 14px 18px; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); border-left: 6px solid var(--amber); }
.sumline div { display: grid; }
.sumline span { font-size: 13px; }
.sumline b { font-size: 24px; font-weight: 650; font-stretch: 82%; letter-spacing: -0.01em; }
.qline { display: grid; grid-template-columns: minmax(0, 1fr) 170px 110px auto; align-items: center; gap: 12px; padding: 10px 12px; }
.list > li.qline + li.qline { border-top: 1px solid var(--line); }
.qline__main { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.qline__main:hover b { color: var(--steel); text-decoration: underline; }
.qline__id { font-size: 13px; font-weight: 650; color: var(--steel-hi); flex: none; }
.qline__t { display: grid; min-width: 0; }
.qline__t b { font-weight: 600; }
.qline__t .muted { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qline__v { text-align: right; }
.qline__acts { display: flex; gap: 6px; justify-content: flex-end; }
@media (max-width: 860px) {
  .qline { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .qline__main { grid-column: 1 / -1; }
  .qline__when { grid-column: 1; }
  .qline__v { grid-column: 2; grid-row: 2; }
  .qline__acts { grid-column: 1 / -1; justify-content: flex-start; }
}
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t .r { text-align: right; }
.t small { display: block; color: var(--ink-3); font-size: 12px; }
@media (max-width: 700px) { .hide-sm { display: none; } .t td, .t th { padding: 9px 6px; } }

/* crews by week */
.weekname { font-weight: 650; }
.week__note { margin-left: auto; }
.wgrid { display: grid; overflow-x: auto; }
.wgrid__row { display: grid; grid-template-columns: 210px repeat(6, minmax(96px, 1fr)); grid-auto-rows: minmax(52px, auto); gap: 4px 0; padding: 6px 0; align-items: stretch; min-width: 820px; border-top: 1px solid var(--line); }
.wgrid__row--head { border-top: 0; grid-auto-rows: auto; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.wgrid__row--head span { padding: 4px 8px; }
.wgrid__row--head em { font-style: normal; color: var(--steel-hi); }
.wgrid__row--head .is-today { background: var(--steel-wash); border-radius: var(--r) var(--r) 0 0; }
.wgrid__crew { grid-column: 1; display: flex; align-items: flex-start; gap: 8px; padding: 14px 10px; font-size: 13.5px; font-weight: 600; }
.wgrid__crew svg { width: 17px; height: 17px; color: var(--steel); flex: none; margin-top: 1px; }
.wgrid__cell { border-left: 1px solid var(--line); margin: -6px 0; }
.wgrid__cell.is-today { background: var(--steel-wash); }
.bar { position: relative; z-index: 1; margin: 2px 3px; display: grid; align-content: center; gap: 1px; min-width: 0; padding: 6px 10px; border: 0; border-radius: var(--r); background: var(--steel); color: #fff; text-align: left; cursor: pointer; font-size: 12px; box-shadow: inset 4px 0 0 var(--amber); }
.bar:hover { background: var(--steel-hi); }
.bar b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar span { opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar--booked { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--steel), inset 4px 0 0 var(--amber); }
.bar--booked:hover { background: var(--steel-wash); }
.bar--snagging, .bar--done { background: #5C6A70; }
.wlist { display: none; }
@media (max-width: 760px) {
  .wgrid { display: none; }
  .week__note { margin-left: 0; flex-basis: 100%; }
  .wlist { display: grid; gap: 10px; }
  .lday { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); padding: 12px; }
  .lday--today { box-shadow: inset 0 0 0 2px var(--steel); }
  .lday h3 { margin: 0 0 8px; font-size: 15px; }
  .lday p { margin: 0; }
  .lday__item { display: grid; width: 100%; gap: 1px; margin-top: 6px; padding: 9px 11px; border: 0; border-radius: var(--r); background: var(--surface-2); box-shadow: inset 4px 0 0 var(--steel); text-align: left; cursor: pointer; font-size: 13px; color: var(--ink-2); }
  .lday__item b { color: var(--ink); font-size: 14px; }
}

/* clients */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.clients__empty { grid-column: 1 / -1; }
.ccard { display: grid; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--r-l); overflow: hidden; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); text-align: left; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.ccard:hover { box-shadow: var(--shadow), inset 0 0 0 1px var(--steel); transform: translateY(-2px); }
.ccard__img { width: 100%; height: 130px; object-fit: cover; }
.ccard__img--none { display: grid; place-items: center; background: var(--steel-wash); color: var(--steel-hi); font-size: 44px; font-weight: 650; font-stretch: 78%; letter-spacing: 0.02em; }
.ccard__body { display: grid; gap: 4px; justify-items: start; padding: 12px 14px 14px; }
.ccard__body b { font-size: 16px; font-weight: 650; }
.ccard__meta { display: flex; gap: 12px; font-size: 13px; color: var(--ink-2); }

/* modal */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 20px; background: rgba(20, 28, 32, 0.45); }
.modal__box { width: min(600px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; background: var(--surface); border-radius: var(--r-l); box-shadow: 0 30px 80px -20px rgba(20, 40, 50, 0.55); border-top: 4px solid var(--amber); }
.modal__box--wide { width: min(860px, 100%); }
.modal__head { display: flex; align-items: center; gap: 10px; padding: 16px 20px 0; }
.modal__head h2 { margin: 0; font-size: 19px; font-weight: 650; flex: 1; min-width: 0; }
.modal__body { padding: 14px 20px; display: grid; gap: 14px; }
.modal__foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: 0 -1px 0 var(--line); }
@media (max-width: 640px) {
  .modal { place-items: end stretch; padding: 0; }
  .modal__box, .modal__box--wide { width: 100%; border-radius: var(--r-l) var(--r-l) 0 0; max-height: 94dvh; }
}
.lightbox { width: 100%; height: auto; max-height: 70dvh; object-fit: contain; border-radius: var(--r); background: var(--surface-2); }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field .label, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea, .qrow__w { width: 100%; min-height: 42px; padding: 9px 12px; border: 0; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.field textarea { resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder, .qrow__w::placeholder { color: #697074; }
.field input:focus, .field select:focus, .field textarea:focus, .qrow__w:focus { outline: none; box-shadow: inset 0 0 0 2px var(--steel); }
.field__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
.err { margin: 0; color: var(--bad); font-size: 13.5px; font-weight: 600; }
.err:empty { display: none; }
.checks { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.checks legend { margin-bottom: 6px; padding: 0; }
.check { display: block; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check span { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; font-weight: 500; }
.check span svg { width: 16px; height: 16px; color: var(--steel); }
.check input:checked + span { background: var(--steel-wash); box-shadow: inset 0 0 0 2px var(--steel); font-weight: 600; }
.check input:focus-visible + span { outline: 2px solid var(--steel); outline-offset: 2px; }
.check--line { position: relative; }
.check--line input { position: static; opacity: 1; pointer-events: auto; width: 18px; height: 18px; accent-color: var(--steel); flex: none; }
.check--line { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.check--line span { display: inline; padding: 0; box-shadow: none; }
.mrows, .qrows { display: grid; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.mrow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) 92px 112px 100px 36px; gap: 10px; align-items: end; padding: 12px; }
.mrow + .mrow, .qrow + .qrow { border-top: 1px solid var(--line); }
.mrow__q { display: grid; gap: 6px; padding-bottom: 10px; }
.mrow__q b { font-size: 15px; }
.mrow__x { margin-bottom: 3px; }
@media (max-width: 760px) {
  .mrow { grid-template-columns: 1fr 1fr; }
  .mrow__name, .mrow__t { grid-column: 1 / -1; }
  .mrow__b:empty { display: none; }
  .mrow__q { padding-bottom: 6px; }
  .mrow__x { justify-self: end; }
}
.qrow { display: grid; grid-template-columns: minmax(0, 1fr) 100px 92px 108px 36px; gap: 10px; align-items: start; padding: 12px; }
.qrow__t { gap: 6px; }
.qrow__w { min-height: 36px; padding: 6px 10px; font-size: 13.5px; }
.qrow__r, .qrow__l { display: grid; gap: 6px; text-align: right; }
.qrow__r .num, .qrow__l .num { line-height: 42px; }
.qrow .icon-btn { margin-top: 26px; }
@media (max-width: 760px) {
  .qrow { grid-template-columns: 1fr 1fr 36px; }
  .qrow__t { grid-column: 1 / -1; }
  .qrow__r { display: none; }
  .qrow__l { text-align: left; }
}
.dep { max-width: 320px; }
.attach { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.attach svg { width: 22px; height: 22px; color: var(--bad); flex: none; }
.attach span { display: grid; min-width: 0; overflow-wrap: anywhere; }
.attach small { color: var(--ink-3); font-size: 12px; }
.bubble { align-self: flex-start; max-width: 92%; padding: 10px 12px; border-radius: 4px 12px 12px 12px; background: #DCF5DF; font-size: 14px; white-space: pre-wrap; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); overflow-wrap: anywhere; }
.phone-prev { padding: 14px; border-radius: var(--r); background: #ECE5DA; display: flex; flex-direction: column; }

/* toasts */
.toasts { position: fixed; z-index: var(--z-toast); left: calc(var(--side) + 24px); bottom: 24px; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 16px 40px -12px rgba(10, 20, 25, 0.6); border-left: 4px solid var(--amber); }
.toast svg { width: 18px; height: 18px; color: var(--amber); flex: none; }
body:not(.in-app) .toasts { left: 24px; }
@media (max-width: 1023px) { .toasts { left: 16px; top: 66px; bottom: auto; } }

/* preview badge */
.badge { position: fixed; left: 16px; bottom: 16px; z-index: var(--z-badge); display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(28, 29, 30, 0.14), 0 14px 30px -14px rgba(20, 40, 50, 0.35); color: var(--ink-2); font-size: 12.5px; }
.badge a { text-decoration: none; }
.badge strong { color: var(--ink); font-weight: 600; }
.badge__close { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 999px; background: rgba(28, 29, 30, 0.07); cursor: pointer; }
.badge__close svg { width: 14px; height: 14px; }
.badge.is-hidden { display: none; }
body.in-app .badge { left: auto; right: 16px; }
body.is-layer .badge { display: none; }
@media (max-width: 1023px) { body.in-app .badge { bottom: 84px; } }
@media (prefers-reduced-transparency: reduce) { .badge, .tabs, .top { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* 404 */
.notfound { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 22px; padding: 24px; text-align: center; background: var(--surface); }
.notfound img { width: 240px; height: auto; }
.notfound p { margin: 0; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (max-width: 560px) {
  .ccard { grid-template-columns: 104px minmax(0, 1fr); }
  .ccard__img { height: 100%; min-height: 112px; }
  .ccard__img--none { font-size: 30px; }
}
