/* Fieldbook Mobile 2.
   A deep purple band says where you are; below it, quiet lists on paper. One loud thing per job: the walk's progress.
   Inter for text, Outfit 800 for headings and the big numbers. Serials and MACs: tabular figures with a slashed zero.
   Touch targets 44 px or more. Light and Dark. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format("woff2"); }
/* Inter Data: Inter cut down to plain letters and figures, keeping its slashed zero (the usual web Inter drops it) */
@font-face { font-family: "Inter Data"; font-weight: 400; font-display: swap; src: url(fonts/inter-data-400.woff2) format("woff2"); }
@font-face { font-family: "Inter Data"; font-weight: 600; font-display: swap; src: url(fonts/inter-data-600.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 800; font-display: swap; src: url(fonts/outfit-latin-800-normal.woff2) format("woff2"); }

:root, [data-theme="light"] {
  --paper: #F7F6FA; --surface: #FFFFFF; --ink: #17131F; --ink-2: #5B5568; --line: #E4E0EC; --line-2: #D3CDE0;
  --violet: #7C3AED; --violet-ink: #5B21B6; --violet-wash: #F1EBFE;
  --band: #2A0F63; --band-2: #3A1786; --band-ink: #FFFFFF; --band-soft: #CFC2F2;
  --go: #15803D; --go-wash: #E8F6EC; --warn: #9A4A06; --warn-wash: #FDF1E2; --bad: #B42318; --bad-wash: #FDECEA;
  --seg-off: #E3DDF0;
}
[data-theme="dark"] {
  --paper: #110E18; --surface: #1A1624; --ink: #F0EDF7; --ink-2: #ABA4BD; --line: #2C2639; --line-2: #3A3349;
  --violet: #8B5CF6; --violet-ink: #C4B5FD; --violet-wash: #261C3F;
  --band: #1C0A45; --band-2: #2A1263; --band-ink: #FFFFFF; --band-soft: #B9A8EC;
  --go: #4ADE80; --go-wash: #102A1A; --warn: #FBBF24; --warn-wash: #2D220F; --bad: #FCA5A5; --bad-wash: #34171A;
  --seg-off: #2E2742;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font: 400 16px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%;
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
h1, h2, .h, .num, .row-title, .detail-h { font-family: Outfit, Inter, sans-serif; font-weight: 800; letter-spacing: -0.01em; margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
[hidden] { display: none !important; }

/* one grid for every screen: a 16px gutter (24px on a tablet), one column at most 640px wide, centred */
.pad { padding: 16px; }
.page { max-width: 640px; margin: 0 auto; padding: 16px 16px 40px; }
.narrow { max-width: 460px; margin: 0 auto; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack0 { display: flex; flex-direction: column; gap: 1px; min-width: 0; text-align: left; flex: 1; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.center { text-align: center; }
.data { font-family: "Inter Data", "Roboto Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums slashed-zero; font-feature-settings: "tnum" 1, "zero" 1; letter-spacing: 0.01em; }

/* ---------------------------------------------------------------- the band */
.top { position: sticky; top: 0; z-index: 5; background: var(--band); color: var(--band-ink); padding-top: env(safe-area-inset-top); }
.bar { display: flex; align-items: center; gap: 6px; padding: 8px 8px 10px 12px; min-height: 64px; }
.ttl { flex: 1; min-width: 0; padding: 2px 4px; }
.ttl .h { font-size: 20px; line-height: 1.15; overflow-wrap: anywhere; }
.ttl .sub { font-size: 13.5px; color: var(--band-soft); margin-top: 3px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; }
.ttl .sub:empty { display: none; }
.iconbtn { min-width: 44px; min-height: 44px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 12px; cursor: pointer; color: inherit; flex: none; }
.iconbtn:hover { background: rgba(255, 255, 255, 0.1); }
.top :focus-visible { outline-color: #fff; }
.sig { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; white-space: nowrap; color: #fff; }
.sig::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; }
.sig.off::before { background: #FBBF24; }
.tabs { display: flex; gap: 2px; padding: 0 12px; overflow-x: auto; }
.tab { min-height: 46px; padding: 0 18px; border: 0; background: transparent; color: var(--band-soft); font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tab[aria-pressed="true"] { color: #fff; border-bottom-color: #C4B5FD; }

/* ---------------------------------------------------------------- welcome */
.welcome { min-height: 100vh; }
.band-hero { background: linear-gradient(160deg, var(--band) 0%, #2E1170 100%); color: #fff; padding: calc(40px + env(safe-area-inset-top)) 16px 24px; }
.band-hero > * { max-width: 428px; margin-left: auto; margin-right: auto; }   /* the same left edge as the form below (.pad.narrow) */
/* 2.2.3: one logo, the mark beside "Libra40 Fieldbook", left-aligned, in a slim band */
.lockup { display: flex; align-items: center; gap: 12px; }
.lockup .fbmark { flex: none; }
.lockup-w { display: flex; flex-direction: column; }
.lockup-c { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--band-soft); line-height: 1; }
.band-hero h1 { font-size: 30px; line-height: 1; margin-top: 4px; }
.band-hero p { color: var(--band-soft); font-size: 15px; margin-top: 14px; }
.welcome .pad { padding-top: 24px; }
.ssos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* 2.2.4 (Abby, 8 Nov): portrait, the whole screen purple with the logo above the form on a raised card, in the middle */
@media (orientation: portrait) {
  .welcome { display: flex; flex-direction: column; justify-content: center; background: linear-gradient(160deg, var(--band) 0%, #2E1170 100%);
    padding: calc(24px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); }
  .welcome .band-hero { background: none; padding: 0 0 22px; }
  .welcome .band-hero > * { max-width: 460px; }   /* the logo lines up with the card's edge, on phone and tablet */
  .welcome > .pad > :last-child { margin-bottom: 0; }   /* the same space above and below the card's contents */
  .welcome > .pad { background: var(--surface); border-radius: 20px; box-shadow: 0 18px 40px rgba(10, 4, 30, 0.45); padding: clamp(20px, 5vw, 28px); width: 100%; max-width: 460px; margin: 0 auto; }
}
/* landscape: the purple panel with the logo on the left, the form on the right */
@media (orientation: landscape) and (min-width: 640px) {
  .welcome { display: grid; grid-template-columns: minmax(260px, 42%) 1fr; }
  .welcome .band-hero { display: flex; flex-direction: column; justify-content: center; padding: 32px 40px; }
  .welcome .band-hero > * { margin-left: 0; margin-right: 0; max-width: 380px; }
  .welcome .band-hero h1 { font-size: 36px; }
  .welcome > .pad { align-self: center; width: 100%; padding: 24px 40px; }
}
@media (orientation: landscape) and (max-height: 480px) {
  .welcome .band-hero p { display: none; }
  .welcome > .pad { padding-top: 12px; padding-bottom: 12px; }
  .welcome .stack { gap: 10px; }
}
.ssos .btn.sso { gap: 10px; padding: 10px 12px; }
@media (max-width: 300px) { .ssos { grid-template-columns: 1fr; } }
.screen-h { font-size: 30px; line-height: 1.1; margin-top: 12px; }

/* ---------------------------------------------------------------- controls */
.btn { min-height: 50px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-align: center; position: relative; }
.btn.pri { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn.pri:active { background: #6D28D9; }
.btn.ghost { background: transparent; }
.btn.big { min-height: 58px; font-size: 17px; }
.btn.sso { display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.ssoi { flex: none; }
.or { display: flex; align-items: center; gap: 12px; margin: 2px 0; color: var(--ink-2); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.btn:disabled { opacity: 0.45; cursor: default; }
.linkbtn { border: 0; background: none; color: var(--violet-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 10px 2px; cursor: pointer; min-height: 44px; }
.linkbtn.danger { color: var(--bad); }
.linkbtn.small { font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 0; text-decoration: none; }
.fl { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; font-weight: 600; }
.fl input, .fl textarea { font-weight: 400; min-height: 50px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-size: 16px; }
.fl input:focus, .fl textarea:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px var(--violet-wash); }
.fl textarea { resize: vertical; }
.codein { letter-spacing: 0.5em; font-size: 26px !important; text-align: center; font-variant-numeric: tabular-nums; }
.hidden-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.dashed { border-style: dashed; color: var(--violet-ink); }
.chip:disabled { opacity: 0.45; cursor: default; }
/* a segmented switch: one choice of a few */
.seg { display: flex; padding: 4px; gap: 4px; background: var(--seg-off); border-radius: 14px; }
.seg .chip { flex: 1; border: 0; background: transparent; border-radius: 10px; min-height: 44px; justify-content: center; padding: 6px 8px; }
.seg .chip[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(23, 19, 31, 0.12); }
.seg.small .chip { font-size: 14.5px; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.row-btns .btn { flex: 1 1 200px; }
.chk { display: flex; gap: 12px; align-items: flex-start; min-height: 48px; padding: 12px 2px; cursor: pointer; }
.chk input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--violet); flex: none; }

/* ---------------------------------------------------------------- lists */
.group { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.group > .row + .row { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 14px 12px 16px; background: transparent; border: 0; text-align: left; cursor: pointer; }
.row:active { background: var(--violet-wash); }
.row.sel { background: var(--violet-wash); box-shadow: inset 4px 0 0 var(--violet); }
.row-title { font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.row .ico { color: var(--violet-ink); display: grid; place-items: center; width: 28px; flex: none; }
.chev { color: var(--ink-2); flex: none; display: grid; place-items: center; }
.go-word { color: var(--violet-ink); font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.state { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.state::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--warn); flex: none; }
.state.go { color: var(--go); }
.state.go::before { background: var(--go); border-color: var(--go); }
.sechead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 2px -4px; min-height: 36px; }
.sechead h2 { font-size: 17px; }
.row.static { cursor: default; }
.row.static:active { background: transparent; }
.row-title.danger { color: var(--bad); }
.empty { display: flex; flex-direction: column; gap: 4px; padding: 28px 18px; text-align: center; border: 1.5px dashed var(--line-2); border-radius: 16px; color: var(--ink-2); }
.empty b { color: var(--ink); font-size: 17px; }

/* ---------------------------------------------------------------- the walk: the loud part */
.walk { padding: 18px 16px; gap: 10px; }
.walk-label { margin: 0; font-weight: 600; color: var(--ink-2); }
.walk-count { margin: -6px 0 0; display: flex; align-items: baseline; gap: 10px; }
.walk-count .num { font-size: 64px; line-height: 1; color: var(--violet-ink); font-variant-numeric: tabular-nums; }
.walk-count .of { font-family: Outfit, Inter, sans-serif; font-weight: 800; font-size: 26px; color: var(--ink-2); }
.segs { display: flex; gap: 3px; height: 14px; }
.segs span { flex: 1; border-radius: 3px; background: var(--seg-off); min-width: 2px; }
.segs span.on { background: var(--violet); }
.meter { height: 10px; border-radius: 99px; background: var(--seg-off); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--violet); border-radius: 99px; }
.walk-left { margin: 0; font-weight: 600; }
.walk-left { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.walk-left .linkbtn { margin: 0; font-weight: 600; padding: 0; min-height: 0; }
.capbig { width: 100%; }
.line { margin: 0; padding: 4px 4px 0; font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.line::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.line.good { color: var(--go); }
.line.good::before { background: var(--go); }
.line.warn { color: var(--warn); }
.line.warn::before { background: var(--warn); }

/* ---------------------------------------------------------------- capture */
.for { font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.for .linkbtn { padding: 0; min-height: 32px; }
.capcard .btn.ghost { width: 100%; }
.viewfinder { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 16px 20px; border-radius: 14px; background: var(--band); color: #fff; text-align: center; }
.viewfinder .muted { color: var(--band-soft); max-width: 32ch; margin: 0; }
.shutter { width: 96px; height: 96px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--band); border: 6px solid rgba(255, 255, 255, 0.28); background-clip: padding-box; cursor: pointer; position: relative; }
.shutter:active { transform: scale(0.96); }
.shutter.rec { background: #EF4444; color: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0.25); } }
@media (prefers-reduced-motion: reduce) { .shutter.rec { animation: none; } .shutter:active { transform: none; } }
.result.okmsg { font-weight: 400; color: var(--ink); }
.result { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--go-wash); color: var(--ink); }
.result svg { color: var(--go); flex: none; margin-top: 2px; }

/* ---------------------------------------------------------------- detail */
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.detail-h { font-size: 26px; line-height: 1.15; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: max-content 1fr; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.facts dt, .facts dd { margin: 0; padding: 11px 16px; border-top: 1px solid var(--line); }
.facts dt { color: var(--ink-2); font-size: 14.5px; }
.facts dd { overflow-wrap: anywhere; }
.facts dt:first-of-type, .facts dd:first-of-type { border-top: 0; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-width: 480px; }
.thumb { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; background: var(--violet-wash); font-size: 13.5px; font-weight: 600; color: var(--violet-ink); }
.thumb.add { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; border: 2px dashed var(--line-2); background: transparent; cursor: pointer; padding: 8px; text-align: center; }
.inset { background: var(--violet-wash); border-radius: 14px; padding: 14px; }

/* ---------------------------------------------------------------- messages */
.err { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--bad-wash); color: var(--bad); font-weight: 600; }
.okmsg { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--go-wash); color: var(--go); font-weight: 600; }
.note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--violet-wash); font-size: 15px; }
.note svg { flex: none; margin-top: 2px; }
.note.good { background: var(--go-wash); color: var(--ink); }
.note.good svg { color: var(--go); }
.alert { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--warn-wash); border: 1px solid var(--warn); }
.alert b { color: var(--warn); }
.fine { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); }
.fine.center { justify-content: center; }
.fine svg { flex: none; margin-top: 2px; }
.who { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; }
.who .linkbtn { align-self: flex-start; padding: 6px 0; }

/* ---------------------------------------------------------------- rack */
.rackphoto { position: relative; border-radius: 14px; overflow: hidden; background: #000; cursor: crosshair; }
.rackphoto img { display: block; width: 100%; height: auto; }
.dot { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #22C55E; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); pointer-events: none; }
.dot span { position: absolute; left: 22px; top: -4px; white-space: nowrap; font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(20, 83, 45, 0.94); padding: 2px 8px; border-radius: 6px; }
.dot.pick { background: var(--violet); }

/* ---------------------------------------------------------------- visit and sign-off */
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.checks { border: 0; margin: 0; padding: 0 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 14px; }
.checks legend { font-weight: 600; font-size: 14.5px; padding: 0 4px; margin-left: -4px; }
.checks .chk + .chk { border-top: 1px solid var(--line); }
/* what the client signs: set apart like the paper they would have signed */
.paper { background: var(--surface); border: 1px solid var(--line-2); border-radius: 4px 4px 16px 16px; border-top: 4px solid var(--violet); padding: 14px 16px 16px; }
.paper-h { margin: 0 0 8px; font-weight: 600; color: var(--ink-2); font-size: 14.5px; }
.signed { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 15px; }
.padlabel { font-weight: 600; font-size: 14.5px; }
.sigpad { width: 100%; height: 190px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #FFFFFF; touch-action: none; }

/* ---------------------------------------------------------------- tablet: list and detail side by side */
/* the same on every tab: the list on the left, the work on the right, the whole thing at most 1240px wide */
.split { display: grid; grid-template-columns: minmax(320px, 400px) 1fr; max-width: 1240px; margin: 0 auto; min-height: calc(100vh - 112px); }
.split > .list { border-right: 1px solid var(--line); padding: 24px 24px 40px; }
.split > .pane { padding: 24px 32px 40px; min-width: 0; }
.split > .pane > * { max-width: 640px; }
.split .page { padding: 0; margin: 0; }
.split > .list .page { max-width: none; }
@media (min-width: 900px) {
  .bar { padding-left: 16px; max-width: 1240px; margin: 0 auto; }
  .tabs { max-width: 1240px; margin: 0 auto; }
  .page { padding: 24px 24px 48px; }
  .ttl .h { font-size: 22px; }
  .visit { max-width: 900px; }
  .walk { padding: 22px 20px; }
}
@media (max-width: 380px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
  .grid3 .fl:first-child { grid-column: 1 / -1; }
  .walk-count .num { font-size: 54px; }
}

/* ---------------------------------------------------------------- the statement: a band that carries the page's headline,
   with the cards lifted over its edge (the jobs screen and a job's own page) */
.hero { background: var(--band); color: #fff; padding: 6px 0 60px; }
.hero-in { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.hero-eb { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--band-soft); }
.hero-h { font-size: 34px; line-height: 1.05; margin: 8px 0 0; }
.hero-sub { margin: 8px 0 0; color: var(--band-soft); font-size: 17px; }
.lift { margin-top: -44px; position: relative; }
.jobcards { display: flex; flex-direction: column; gap: 14px; }
.jobcard { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 16px 18px 14px; cursor: pointer; box-shadow: 0 1px 2px rgba(23, 19, 31, 0.06), 0 10px 28px rgba(42, 15, 99, 0.12); }
.jobcard:active { transform: scale(0.99); }
.jc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.kchip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--violet-ink); background: var(--violet-wash); padding: 4px 10px 4px 8px; border-radius: 999px; }
.kchip.inst { color: var(--go); background: var(--go-wash); }
.jc-site { font-family: Outfit, Inter, sans-serif; font-weight: 800; font-size: 23px; line-height: 1.15; color: var(--ink); overflow-wrap: anywhere; margin-top: 8px; }
.jc-meta { color: var(--ink-2); font-size: 15px; }
.jc-go { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; color: var(--violet-ink); }
.btn.refresh { width: 100%; }
.card-empty { background: var(--surface); }
/* a job's page: the progress ring and the next step on the band */
.jh-row { display: flex; align-items: center; gap: 18px; padding-top: 6px; }
.ringbox { position: relative; width: 112px; height: 112px; flex: none; }
.ring { width: 100%; height: 100%; display: block; }
.rtrack { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 10; }
.rfill { fill: none; stroke: #C4B5FD; stroke-width: 10; stroke-linecap: round; }
.rnum { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.rnum b { font-family: Outfit, Inter, sans-serif; font-weight: 800; font-size: 36px; font-variant-numeric: tabular-nums; }
.rnum span { font-size: 13px; color: var(--band-soft); margin-top: 5px; }
.jh-txt { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.jh-left { margin: 0; font-weight: 600; font-size: 17px; line-height: 1.3; }
.linkbtn.onband { color: #fff; padding: 0; min-height: 32px; align-self: flex-start; }
.btn.onband { width: 100%; margin-top: 18px; background: #fff; color: #2A0F63; border-color: #fff; }
.btn.onband:active { background: #EDE6FF; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 16px; min-height: 136px; cursor: pointer; box-shadow: 0 1px 2px rgba(23, 19, 31, 0.05), 0 8px 22px rgba(42, 15, 99, 0.09); }
.tile:active { transform: scale(0.98); }
.tile .ti { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--violet-wash); color: var(--violet-ink); margin-bottom: auto; }
.tile .tt { font-family: Outfit, Inter, sans-serif; font-weight: 800; font-size: 18px; margin-top: 14px; }
.tile .ts { font-size: 13.5px; color: var(--ink-2); line-height: 1.3; }
.tile.pri { background: var(--violet); border-color: var(--violet); color: #fff; }
.tile.pri .ti { background: rgba(255, 255, 255, 0.18); color: #fff; }
.tile.pri .ts { color: #EDE6FF; }
.tile.done .ti { background: var(--go-wash); color: var(--go); }
@media (prefers-reduced-motion: reduce) { .tile:active, .jobcard:active { transform: none; } }
/* on a tablet the job's band sits in the left column as a card */
.split .hero { border-radius: 20px; padding: 20px 20px 22px; }
.split .hero-in { padding: 0; }
.split .lift { margin-top: 16px; }

/* the home screen's bar: the mark and the name, then the theme and who is signed in */
.top.home .bar { gap: 8px; padding-left: 16px; padding-right: 12px; }
.brand { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand .mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--violet); color: #fff; flex: none; }
.brand .wm { font-family: Outfit, Inter, sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); background: var(--band-2); color: #fff; font-family: Outfit, Inter, sans-serif; font-weight: 800; font-size: 16px; cursor: pointer; display: grid; place-items: center; flex: none; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hero-top .sig { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.hero-co { display: block; margin-top: 2px; font-size: 14.5px; opacity: 0.85; }
#thisdevice { scroll-margin-top: 80px; }

/* capture: what it is for, and the switch, on the band; the shutter on a card lifted over it */
.cap-for { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 6px; }
.cap-what { font-family: Outfit, Inter, sans-serif; font-weight: 800; font-size: 26px; line-height: 1.15; overflow-wrap: anywhere; }
.seg.onband { margin-top: 16px; background: rgba(255, 255, 255, 0.12); }
.seg.onband .chip { color: var(--band-soft); }
.seg.onband .chip[aria-pressed="true"] { background: #fff; color: #2A0F63; box-shadow: none; }
.caphero { padding-bottom: 64px; }
.capcard { box-shadow: 0 1px 2px rgba(23, 19, 31, 0.06), 0 10px 28px rgba(42, 15, 99, 0.12); border-radius: 20px; }
.capcard .viewfinder { background: var(--violet-wash); color: var(--ink); padding: 30px 16px 22px; }
.capcard .viewfinder .muted { color: var(--ink-2); }
.capcard .shutter { background: var(--violet); color: #fff; border-color: rgba(124, 58, 237, 0.22); width: 104px; height: 104px; }
.capcard .shutter.rec { background: #EF4444; }

/* tips: a short note on what each screen is for (This device switches them off) */
.tip { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--violet-wash); color: var(--ink); font-size: 14.5px; line-height: 1.45; }
.tip svg { color: var(--violet-ink); flex: none; margin-top: 1px; }
.how { gap: 10px; }
.how-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.how-h h2 { font-size: 17px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: flex; flex-direction: column; gap: 12px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; }
.steps li::before { content: counter(st); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center;
  font-family: Outfit, Inter, sans-serif; font-weight: 800; font-size: 15px; }
.steps b { font-weight: 600; }
.steps span { color: var(--ink-2); font-size: 14.5px; line-height: 1.4; }
.toggle { width: 46px; height: 28px; border-radius: 999px; background: var(--seg-off); position: relative; flex: none; transition: background 0.15s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: left 0.15s; }
.toggle.on { background: var(--violet); }
.toggle.on::after { left: 21px; }
/* Site info */
.ipcol { flex: none; min-width: 112px; font-weight: 600; font-size: 15px; color: var(--violet-ink); }
.vbadge { flex: none; min-width: 52px; height: 36px; padding: 0 10px; border-radius: 10px; background: var(--violet-wash); color: var(--violet-ink); display: grid; place-items: center; font-weight: 600; }
.row-title.sm { font-size: 16px; }
.row .line.warn { padding: 2px 0 0; font-size: 13.5px; }
.infopage { max-width: 760px; }
.state.na { color: var(--ink-2); }
.state.na::before { border-color: var(--line-2); background: var(--line-2); }
.infohead { margin: 10px 2px -4px; font-family: Outfit, Inter, sans-serif; font-weight: 800; font-size: 17px; }
.cap-note { color: var(--band-soft); font-size: 14.5px; flex-basis: 100%; }
