/* Field Activity
   Cool paper, ink and one petrol accent. Verdict colours (green, amber, red) are reserved for
   location and status. The GPS lock panel is the single loud element; everything else stays quiet. */

@font-face { font-family: "Plus Jakarta Sans"; src: url(fonts/jakarta-latin.woff2) format("woff2"); font-weight: 200 800; font-style: normal; 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: "Plus Jakarta Sans"; src: url(fonts/jakarta-latin-ext.woff2) format("woff2"); font-weight: 200 800; font-style: normal; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Light design only: stops Chrome's "dark theme for sites" and phone-forced dark modes repainting it */
  color-scheme: only light;
  /* Space taken by the phone's status bar, navigation bar and camera cut-out.
     Inside the Android app, Capacitor writes --safe-area-inset-* (correct on every WebView version);
     in a browser those are absent and the standard env() values are used. */
  --sat: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --sab: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  --sal: var(--safe-area-inset-left, env(safe-area-inset-left, 0px));
  --sar: var(--safe-area-inset-right, env(safe-area-inset-right, 0px));

  --paper: #F6F5FB;
  --surface: #FFFFFF;
  --ink: #1B1638;
  --ink-2: #4A5F68;
  --line: #DCE5E8;
  --line-strong: #B4C4CA;

  --petrol: #5B3FD9;
  --petrol-deep: #3B22A8;
  --petrol-wash: #E3EFF2;

  --ok: #1B7F55;
  --ok-wash: #E3F3EB;
  --ok-line: #A9D9C1;
  --warn: #8F5600;
  --warn-wash: #FBF0DA;
  --warn-line: #EBCB8C;
  --bad: #B3341F;
  --bad-wash: #FBE8E4;
  --bad-line: #EDB5AB;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", "Noto Sans", "Noto Sans Devanagari", "Mukta", "Nirmala UI", "Kohinoor Devanagari", sans-serif;
  --r-sheet: 18px;
  --r-ctl: 12px;
  --r-input: 10px;
  --focus: 0 0 0 3px rgba(15, 92, 110, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; scroll-padding-bottom: 120px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin-top: 0; }
a { color: var(--petrol); text-underline-offset: 3px; }
a:hover { color: var(--petrol-deep); }
img { max-width: 100%; }
[hidden] { display: none !important; }
small { font-size: 13.5px; color: var(--ink-2); }
b, strong { font-weight: 800; }
:focus-visible { outline: 3px solid #A99BEA; outline-offset: 2px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.text-bad { color: var(--bad); }

/* ---------- app bar ---------- */
.appbar {
  position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line);
  padding-top: var(--sat); padding-left: var(--sal); padding-right: var(--sar);
}
.appbar__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; max-width: 1240px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.005em; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 28px; height: 28px; color: var(--petrol); }
.who { display: flex; align-items: center; gap: 14px; }
.who form { margin: 0; }
.who__name { font-weight: 600; color: var(--ink); text-decoration: none; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkbtn { background: none; border: 0; padding: 8px 0; font: inherit; font-weight: 600; color: var(--petrol); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.tabs { display: flex; gap: 4px; padding: 0 12px; max-width: 1240px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; padding: 10px 12px 11px; color: var(--ink-2); text-decoration: none; font-weight: 600;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--petrol); border-bottom-color: var(--petrol); }
.tabs .tabs__action {
  margin: 6px 0 7px auto; padding: 5px 14px; border: 1.5px solid var(--petrol); border-radius: 999px;
  color: var(--petrol); border-bottom-width: 1.5px;
}
.tabs .tabs__action:hover { background: var(--petrol-wash); }

/* ---------- page frame ---------- */
.wrap { margin: 0 auto; padding: 22px calc(16px + var(--sar)) calc(40px + var(--sab)) calc(16px + var(--sal)); }
.wrap--narrow { max-width: 640px; }
.wrap--wide { max-width: 1240px; }
.wrap--auth { max-width: 460px; padding-top: min(10vh, 84px); }

.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.012em; margin-bottom: 4px; overflow-wrap: anywhere; }
.page-head p { margin: 0; }
.page-head--split { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.backlink { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-weight: 600; text-decoration: none; }
.backlink::before { content: ""; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 2px; }

/* ---------- messages ---------- */
.flash { padding: 12px 16px; border-radius: var(--r-ctl); border: 1px solid; margin-bottom: 16px; font-weight: 600; }
.flash--ok { background: var(--ok-wash); border-color: var(--ok-line); color: #145F40; }
.flash--warn { background: var(--warn-wash); border-color: var(--warn-line); color: var(--warn); }
.flash--bad { background: var(--bad-wash); border-color: var(--bad-line); color: var(--bad); }
.empty { padding: 36px 20px; text-align: center; color: var(--ink-2); }
.empty h1, .empty h2 { color: var(--ink); font-size: 20px; margin-bottom: 6px; }
.empty--inline { padding: 22px 18px 26px; text-align: left; }
.empty p { margin-bottom: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: var(--r-ctl); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--paper); color: var(--ink); border-color: var(--ink-2); }
.btn--primary { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.btn--primary:hover { background: var(--petrol-deep); border-color: var(--petrol-deep); color: #fff; }
.btn--danger { color: var(--bad); border-color: var(--bad-line); }
.btn--danger:hover { background: var(--bad-wash); color: var(--bad); border-color: var(--bad); }
.btn--ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14.5px; }
.btn--lg { min-height: 60px; font-size: 18px; font-weight: 800; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
summary.btn { list-style: none; }
summary.btn::-webkit-details-marker { display: none; }

/* ---------- forms ---------- */
.stack > * + * { margin-top: 18px; }
.field { margin-bottom: 18px; min-width: 0; border: 0; padding: 0; }
.stack .field { margin-bottom: 0; }
.field__label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; padding: 0; }
.field__opt { font-weight: 400; font-size: 13.5px; color: var(--ink-2); margin-left: 4px; }
.field__hint { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.field__error { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--bad); }
.field__error[hidden] { display: none; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=time], input[type=search], input:not([type]), select, textarea {
  display: block; width: 100%; min-height: 52px; padding: 12px 14px; font: 400 16px/1.35 var(--font); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-input);
  -webkit-appearance: none; appearance: none;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5L7 7l5.5-5.5' fill='none' stroke='%234A5F68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
input::placeholder, textarea::placeholder { color: #7B8E96; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--petrol); box-shadow: var(--focus); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad); }
.has-error input:focus, .has-error select:focus, .has-error textarea:focus { box-shadow: 0 0 0 3px rgba(179, 52, 31, .22); }
input[type=date], input[type=time] { min-width: 0; }
.grid-2, .grid-3 { display: grid; gap: 0 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 520px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 > :first-child { grid-column: 1 / -1; }
@media (min-width: 560px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-3 > :first-child { grid-column: auto; } }

.group { border: 0; padding: 0; margin: 0 0 10px; min-width: 0; }
.group legend { padding: 0; margin-bottom: 12px; font-size: 17px; font-weight: 800; }
.codebox { width: 100%; padding: 12px; font: 13px/1.4 ui-monospace, Menlo, Consolas, monospace; border: 1.5px solid var(--line-strong); border-radius: var(--r-input); margin-bottom: 16px; }

.form-alert { margin: 18px 18px 0; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--bad-wash); border: 1px solid var(--bad-line); color: var(--bad); font-weight: 600; }
.form-alert[hidden] { display: none; }

/* sheet: one white surface holding every section of a form or detail */
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sheet); }
.sheet--pad { padding: 22px 18px; margin-bottom: 20px; }
.sheet__title { font-size: 18px; font-weight: 800; margin-bottom: 0; }
.section { padding: 24px 18px 8px; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { font-size: 19px; font-weight: 800; margin-bottom: 16px; letter-spacing: -.005em; }

/* outcome selector */
.segmented { margin: 0 0 18px; }
.segmented legend { float: none; }
.segmented__opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.segmented label { display: block; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 56px; padding: 6px 8px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-input); font-size: 15px; font-weight: 600; line-height: 1.2; background: var(--surface);
}
.segmented input:checked + span { background: var(--petrol-wash); border-color: var(--petrol); color: var(--petrol-deep); box-shadow: inset 0 0 0 1px var(--petrol); }
.segmented input:focus-visible + span { outline: 3px solid #A99BEA; outline-offset: 2px; }

/* evidence pickers */
.drops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 14px 10px; text-align: center; border: 1.5px dashed var(--line-strong); border-radius: var(--r-ctl); background: var(--paper); cursor: pointer; }
.drop:hover { border-color: var(--petrol); background: var(--petrol-wash); }
.drop__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--petrol-wash); color: var(--petrol-deep); }
.drop__icon .icon { width: 19px; height: 19px; }
.field:has(input[type=file]:focus-visible) .drop { outline: 3px solid #A99BEA; outline-offset: 2px; }
.drop__title { display: block; font-weight: 800; }
.drop__sub { display: block; font-size: 14px; color: var(--ink-2); }
.thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.thumbs:empty { display: none; }
.thumbs li { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs__file { display: grid; place-items: center; height: 100%; padding: 8px; text-align: center; font-size: 12.5px; line-height: 1.25; color: var(--ink-2); overflow-wrap: anywhere; }
.thumbs__file b { color: var(--ink); font-size: 18px; display: block; }
.thumbs button {
  position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: 0 1px 4px rgba(20, 38, 46, .3); display: grid; place-items: center;
}
.thumbs button svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; }

/* sticky submit bar */
.submitbar {
  position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding: 12px 18px calc(12px + var(--sab));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); border-radius: 0 0 var(--r-sheet) var(--r-sheet);
  box-shadow: 0 -10px 24px -16px rgba(20, 38, 46, .35);
}
.submitbar__loc { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 14.5px; font-weight: 600; color: var(--ink-2); line-height: 1.25; }
.submitbar__loc i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.submitbar__loc.is-searching i { background: var(--petrol); animation: blink 1.2s ease-in-out infinite; }
.submitbar__loc.is-locked { color: var(--ok); } .submitbar__loc.is-locked i { background: var(--ok); }
.submitbar__loc.is-weak { color: var(--warn); } .submitbar__loc.is-weak i { background: #D98E0B; }
.submitbar__loc.is-error { color: var(--bad); } .submitbar__loc.is-error i { background: var(--bad); }
.submitbar .btn { flex: none; min-width: 148px; min-height: 52px; font-weight: 800; }

/* ---------- GPS lock panel ---------- */
.lock {
  --tone: var(--petrol);
  display: flex; align-items: center; gap: 18px; padding: 16px 18px; margin-bottom: 16px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 22px; color: var(--tone);
  transition: background-color .35s, border-color .35s, color .35s;
}
.lock__ring { width: 88px; height: 88px; flex: none; overflow: visible; }
.lock__ring circle { fill: none; stroke: currentColor; stroke-width: 2.4; transform-box: fill-box; transform-origin: center; }
.lock__r3 { opacity: .22; } .lock__r2 { opacity: .42; } .lock__r1 { opacity: .7; }
.lock__ring .lock__dot { fill: currentColor; stroke: none; transition: transform .35s cubic-bezier(.2, .9, .3, 1.3); }
.lock__tick { fill: none; stroke: #fff; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .2s .15s; }
.lock__bang { fill: none; stroke: #fff; stroke-width: 3.8; stroke-linecap: round; opacity: 0; transition: opacity .2s .15s; }
.lock__text { min-width: 0; display: grid; gap: 2px; color: var(--ink); }
.lock__text strong { font-size: 19px; line-height: 1.2; font-weight: 800; }
.lock__text span { font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; }
.lock__link { font-size: 14.5px; font-weight: 600; }
.lock__retry { margin-left: auto; flex: none; }
.lock[data-state="searching"] .lock__r1 { animation: ripple 2.1s ease-in-out infinite; }
.lock[data-state="searching"] .lock__r2 { animation: ripple 2.1s ease-in-out .28s infinite; }
.lock[data-state="searching"] .lock__r3 { animation: ripple 2.1s ease-in-out .56s infinite; }
.lock[data-state="locked"] { --tone: var(--ok); background: var(--ok-wash); border-color: var(--ok-line); }
.lock[data-state="weak"] { --tone: #C57E06; background: var(--warn-wash); border-color: var(--warn-line); }
.lock[data-state="error"] { --tone: var(--bad); background: var(--bad-wash); border-color: var(--bad-line); }
.lock[data-state="locked"] .lock__dot, .lock[data-state="weak"] .lock__dot { transform: scale(1.75); }
.lock[data-state="locked"] .lock__tick, .lock[data-state="weak"] .lock__bang { opacity: 1; }
.lock[data-state="locked"] .lock__r1, .lock[data-state="locked"] .lock__r2, .lock[data-state="locked"] .lock__r3,
.lock[data-state="weak"] .lock__r1, .lock[data-state="weak"] .lock__r2, .lock[data-state="weak"] .lock__r3 { animation: settle .7s cubic-bezier(.2, .8, .2, 1) both; }
.lock[data-state="locked"] .lock__r2, .lock[data-state="weak"] .lock__r2 { animation-delay: .06s; }
.lock[data-state="locked"] .lock__r3, .lock[data-state="weak"] .lock__r3 { animation-delay: .12s; }
.lock[data-state="weak"] .lock__r3 { stroke-dasharray: 3 6; }
.lock[data-state="error"] .lock__ring circle { stroke-dasharray: 3 6; }
.lock[data-state="error"] .lock__dot { opacity: .5; }
.lock[data-state="error"] .lock__text strong { color: var(--bad); }
.lock[data-state="locked"] .lock__text strong { color: #145F40; }
@keyframes ripple { 0%, 100% { opacity: .12; } 45% { opacity: .85; } }
@keyframes settle { from { transform: scale(1.28); opacity: 0; } to { transform: scale(1); } }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- engineer lists ---------- */
.ledger { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ledger__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 15px 16px; color: var(--ink); text-decoration: none; }
.ledger__row + .ledger__row { border-top: 1px solid var(--line); }
.ledger__row:hover { background: var(--paper); color: var(--ink); }
.ledger__main b, .ledger__main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger__main b { font-weight: 600; font-size: 16px; }
.ledger__side { text-align: right; font-size: 14px; }
.ledger__side small { display: block; }
.ledger__side time { display: block; font-weight: 600; color: var(--ink); white-space: nowrap; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px 0 4px; color: var(--ink-2); font-size: 14.5px; }

/* ---------- status dots and pills ---------- */
.dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.dot--completed { background: var(--ok); }
.dot--follow_up { background: #D98E0B; }
.dot--pending { background: var(--petrol); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 9px; border-radius: 999px; font-size: 13.5px; font-weight: 600; line-height: 1.5; background: #E9EFF1; color: var(--ink-2); white-space: nowrap; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill--ok, .pill--status-completed { background: var(--ok-wash); color: #145F40; }
.pill--warn, .pill--status-follow_up { background: var(--warn-wash); color: var(--warn); }
.pill--bad { background: var(--bad-wash); color: var(--bad); }
.pill--status-pending { background: var(--petrol-wash); color: var(--petrol-deep); }

/* ---------- admin ---------- */
.strip { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0 0 20px; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.strip > div { padding: 16px 18px; border-top: 1px solid var(--line); }
.strip > div:nth-child(-n+2) { border-top: 0; }
.strip > div:nth-child(even) { border-left: 1px solid var(--line); }
.strip dt { font-size: 14px; color: var(--ink-2); }
.strip dd { margin: 0; font-size: 36px; line-height: 1.15; font-weight: 800; font-variant-numeric: tabular-nums; }
.strip dd small { font-size: 16px; font-weight: 400; }
.strip dd.ok { color: var(--ok); } .strip dd.warn { color: #B26B00; }
@media (min-width: 780px) {
  .strip { grid-template-columns: repeat(4, 1fr); }
  .strip > div { border-top: 0; border-left: 1px solid var(--line); }
  .strip > div:first-child { border-left: 0; }
}
.split { display: grid; gap: 20px; margin-bottom: 20px; }
.split > .panel { margin-bottom: 0; }
@media (min-width: 980px) { .split { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 20px; overflow: hidden; }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 18px 6px; }
.panel__head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.panel__head a { font-weight: 600; font-size: 14.5px; }

.people { list-style: none; margin: 0; padding: 4px 0 8px; }
.people li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 18px; }
.people__name { font-weight: 600; min-width: 0; }
.people__name small { display: block; font-weight: 400; }
.people__count { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }

.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; padding: 10px 18px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 18px; vertical-align: top; border-top: 1px solid var(--line); }
.table thead + tbody tr:first-child td { border-top: 0; }
.table tbody tr:hover { background: #F8FAFB; }
.table td small { display: block; margin-top: 2px; }
.table td a { color: var(--ink); text-decoration: none; }
.table td a:hover b { color: var(--petrol); text-decoration: underline; text-underline-offset: 3px; }
.table .is-off td { opacity: .55; }
tr.is-off { background: var(--paper); }
@media (max-width: 779px) {
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tr { padding: 12px 0; border-top: 1px solid var(--line); }
  .table--stack tbody tr:first-child { border-top: 0; }
  .table--stack td { display: flex; justify-content: space-between; gap: 16px; padding: 4px 16px; border: 0; text-align: right; }
  .table--stack td::before { content: attr(data-label); flex: none; color: var(--ink-2); font-weight: 600; font-size: 14px; text-align: left; }
  .table--stack td:first-child { display: block; text-align: left; padding-bottom: 6px; }
  .table--stack td:first-child::before { display: none; }
  .table--stack td small { text-align: right; }
  .table--stack td:first-child small { text-align: left; display: block; }
  .table--keepfirst td:first-child { display: flex; justify-content: space-between; text-align: right; padding-bottom: 4px; }
  .table--keepfirst td:first-child::before { display: block; }
}

.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding: 16px 16px 4px; margin-bottom: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.filters .field { margin-bottom: 14px; }
.filters input, .filters select { min-height: 46px; padding-top: 9px; padding-bottom: 9px; }
.filters .field--grow, .filters__go { grid-column: 1 / -1; }
.filters__go { display: flex; gap: 10px; margin-bottom: 14px; }
@media (min-width: 900px) {
  .filters { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .filters .field--grow { grid-column: span 4; }
  .filters__go { grid-column: span 2; align-items: flex-end; }
}

.addbox { overflow: visible; background: none; border: 0; }
.addbox__form { margin-top: 12px; padding: 20px 18px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.rowactions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.rowactions form { margin: 0; }
.rowactions__pw { display: flex; gap: 6px; }
.rowactions__pw input { min-height: 40px; padding: 6px 10px; width: 150px; font-size: 14.5px; }
.addzone { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.addzone .field { margin: 0; flex: 1 1 220px; }
.zonelist { list-style: none; margin: 0; padding: 0; }
.zonelist li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 16px; }
.zonelist li + li { border-top: 1px solid var(--line); }
.zonelist li.is-off { background: var(--paper); }
.zonelist li.is-off input { color: var(--ink-2); }
.zonelist form { margin: 0; }
.zonelist__rename { display: flex; gap: 8px; }
.zonelist__rename input { min-height: 42px; padding: 6px 12px; }
@media (max-width: 559px) { .zonelist li { grid-template-columns: 1fr auto; } .zonelist .muted { display: none; } }

/* ---------- visit detail ---------- */
.detail { display: grid; gap: 20px; align-items: start; }
@media (min-width: 980px) { .detail { grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr); } .detail__side { position: sticky; top: 118px; } }
.detail__main, .detail__side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sheet); overflow: hidden; }
.block { padding: 20px 18px; }
.block + .block { border-top: 1px solid var(--line); }
.block--quiet { background: var(--paper); }
.block h2 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.block h3 { font-size: 14.5px; font-weight: 800; color: var(--ink-2); margin: 18px 0 8px; }
.block__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.block__head h2 { margin: 0; }
.kv { margin: 0; }
.kv > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 9px 0; border-top: 1px solid var(--line); }
.kv > div:first-child { border-top: 0; padding-top: 0; }
.kv dt { font-size: 14px; color: var(--ink-2); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 560px) { .kv > div { grid-template-columns: 150px minmax(0, 1fr); gap: 16px; } }
.kv--tight > div { padding: 6px 0; }
@media (min-width: 560px) { .kv--tight > div { grid-template-columns: 110px minmax(0, 1fr); } }
.kv .clip { font-size: 13px; color: var(--ink-2); }
.mapframe { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 12px; background: var(--paper); }
.mapframe iframe { display: block; width: 100%; height: 230px; border: 0; }
.linkrow { margin: 10px 0 0; font-weight: 600; }
.checks { list-style: none; margin: 0; padding: 0; }
.check { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.check + .check { border-top: 1px solid var(--line); }
.check b { font-weight: 600; font-size: 15px; }
.check p { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-2); }
.check__icon svg { width: 24px; height: 24px; fill: var(--paper); stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.check--pass .check__icon { color: var(--ok); } .check--pass .check__icon svg { fill: var(--ok-wash); }
.check--warn .check__icon { color: #C57E06; } .check--warn .check__icon svg { fill: var(--warn-wash); }
.check--fail .check__icon { color: var(--bad); } .check--fail .check__icon svg { fill: var(--bad-wash); }
.check--info .check__icon { color: var(--ink-2); }
.inline-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.gallery { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); }
.gallery--schematic { grid-template-columns: minmax(0, 1fr); }
.gallery--schematic img { aspect-ratio: auto; max-height: 440px; object-fit: contain; }
.gallery__pdf { display: grid; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--paper); overflow-wrap: anywhere; }
.gallery__pdf b { color: var(--bad); font-size: 20px; }

/* ---------- sign in / set up ---------- */
.auth { padding-bottom: 24px; }
.auth--wide { max-width: 460px; }
.auth__mark { margin-bottom: 18px; }
.auth__svg { width: 76px; height: 76px; color: var(--petrol); overflow: visible; }
.auth__svg .m1, .auth__svg .m2, .auth__svg .m3 { transform-box: fill-box; transform-origin: center; }
.auth__svg .m3 { opacity: .35; animation: ring-in .8s .25s cubic-bezier(.2, .8, .2, 1) both; }
.auth__svg .m2 { opacity: .7; animation: ring-in .8s .15s cubic-bezier(.2, .8, .2, 1) both; }
.auth__svg .m1 { animation: pin-in .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ring-in { from { transform: scale(.4); opacity: 0; } }
@keyframes pin-in { from { transform: translateY(-22%) scale(.85); opacity: 0; } }
.auth__title { font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.015em; margin-bottom: 8px; }
.auth__sub { color: var(--ink-2); margin-bottom: 26px; }

@media (max-width: 420px) {
  .lock { gap: 14px; padding: 14px; }
  .lock__ring { width: 72px; height: 72px; }
  .submitbar .btn { min-width: 128px; }
  .page-head h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Version 2: app shell, icons, hero, maps and charts
   ===================================================================== */
:root {
  --tone-match: #1B7F55;
  --tone-review: #C57E06;
  --tone-none: #B3341F;
  --tone-unset: #66797F;
  --pale-ink: #B9D6DD;
}

/* icons, avatars, tiles */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.avatar {
  display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--petrol-wash); color: var(--petrol-deep); font-size: 13.5px; font-weight: 800; letter-spacing: .02em; line-height: 1;
}
.avatar--lg { width: 60px; height: 60px; font-size: 21px; }
.person { display: inline-flex; align-items: center; gap: 10px; min-width: 0; text-align: left; }
.person--top { align-items: flex-start; }
.person .avatar { width: 34px; height: 34px; font-size: 12.5px; }
.person small { display: block; }
.tile { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--petrol-wash); color: var(--petrol-deep); }
.tile--completed { background: var(--ok-wash); color: #145F40; }
.tile--follow_up { background: var(--warn-wash); color: var(--warn); }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.iconbtn:hover { background: var(--paper); color: var(--ink); }
.empty__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--petrol-wash); color: var(--petrol-deep); margin-bottom: 10px; }
.empty__icon .icon { width: 26px; height: 26px; }
.empty__icon--ok { background: var(--ok-wash); color: var(--ok); }
.empty.sheet { padding: 34px 22px 36px; }
.empty--inline .empty__icon { margin-bottom: 8px; }

/* ---------- shell: admin sidebar, engineer app bar and bottom navigation ---------- */
.appbar__me { display: inline-flex; border-radius: 50%; }
.appbar__me[aria-current="page"] .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--petrol); }
.appbar__nav { display: none; align-items: center; gap: 4px; }
.appbar__nav a:not(.btn) { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.appbar__nav a:not(.btn):hover { color: var(--ink); background: var(--paper); }
.appbar__nav a[aria-current="page"] { background: var(--petrol-wash); color: var(--petrol-deep); }
.appbar__nav .btn { margin-left: 8px; }

.sidebar { display: none; }
@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
  .sidebar {
    display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
    padding: 22px 14px 14px; background: var(--surface); border-right: 1px solid var(--line);
  }
  .appbar--mobile { display: none; }
  .shell__main { min-width: 0; }
  .shell__main .wrap { padding: 32px 36px 56px; }
}
.sidebar .brand { padding: 0 8px; }
.sidenav { display: grid; gap: 2px; }
.sidenav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.sidenav a:hover { background: var(--paper); color: var(--ink); }
.sidenav a[aria-current="page"] { background: var(--petrol-wash); color: var(--petrol-deep); }
.sidebar__user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 8px 0; border-top: 1px solid var(--line); }
.sidebar__who { min-width: 0; flex: 1; display: grid; line-height: 1.25; }
.sidebar__who a { color: var(--ink); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__user form { margin: 0; }

.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  background: var(--surface); border-top: 1px solid var(--line); padding: 4px calc(8px + var(--sar)) calc(4px + var(--sab)) calc(8px + var(--sal));
}
.bottomnav a { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 54px; padding: 6px 4px; color: var(--ink-2); text-decoration: none; font-size: 12.5px; font-weight: 600; -webkit-tap-highlight-color: transparent; }
.bottomnav a[aria-current="page"] { color: var(--petrol); }
.bottomnav .icon { width: 24px; height: 24px; }
.bottomnav__fab { color: var(--petrol-deep) !important; }
.bottomnav__plus { display: grid; place-items: center; width: 54px; height: 54px; margin-top: -30px; border-radius: 50%; background: var(--petrol); color: #fff; box-shadow: 0 0 0 5px var(--surface), 0 8px 16px -6px rgba(10, 68, 82, .6); }
.bottomnav__plus .icon { width: 26px; height: 26px; stroke-width: 2.2; }
.has-bottomnav .wrap { padding-bottom: calc(100px + var(--sab)); }
@media (min-width: 760px) {
  .appbar__nav { display: flex; }
  .bottomnav { display: none; }
  .has-bottomnav .wrap { padding-bottom: 48px; }
}

/* ---------- engineer home ---------- */
/* The hero is a living scene (assets/scenes.js). Its colours come from custom properties that the page
   and the script set from the person's own choices: --s0/--s1 (background), --acc/--acc-deep (accent). */
.scene { background: linear-gradient(160deg, var(--s0, #F8F7FE), var(--s1, #E2DCFB)); }
.scene__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.scene.is-live .scene__canvas, .scene .scene__canvas.is-live { opacity: 1; }

.hero {
  --fg: #1B1638; --fg-2: #3C535C; --edge: rgba(20, 38, 46, .14); --glass: rgba(255, 255, 255, .64); --bar: rgba(255, 255, 255, .56);
  --acc: #5B3FD9; --acc-deep: #3B22A8;
  position: relative; isolation: isolate; overflow: hidden; color: var(--fg); border-radius: 24px; padding: 16px 20px 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .7) inset, 0 22px 40px -30px rgba(10, 68, 82, .55);
}
.hero[data-tone="deep"] {
  --fg: #FFFFFF; --fg-2: #DCD5FA; --edge: rgba(255, 255, 255, .26); --glass: rgba(255, 255, 255, .13); --bar: rgba(2, 18, 24, .22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 22px 40px -28px rgba(4, 22, 28, .75);
}
.hero > :not(.scene__canvas) { position: relative; z-index: 1; }
.hero__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.hero__date { margin: 0; color: var(--fg-2); font-weight: 600; }
.hero__tools { display: inline-flex; gap: 8px; }
.roundbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--edge); background: var(--glass); color: var(--fg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, background .15s ease;
}
.roundbtn:hover { background: var(--glass); transform: translateY(-1px); }
.roundbtn:active { transform: scale(.94); }
.roundbtn .icon { width: 21px; height: 21px; }
.hero__clock { margin: 14px 0 2px; font-size: 68px; line-height: 1; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--fg); }
.hero__clock small, .saver__time small { margin-left: .12em; font-size: .27em; font-weight: 600; letter-spacing: 0; color: var(--fg-2); }
.hero h1 { font-size: 21px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; margin: 0; color: var(--fg); }
.hero[data-clock="0"] .hero__clock { display: none; }
.hero[data-clock="0"] h1 { font-size: 30px; margin-top: 18px; }
.hero__stage { height: clamp(136px, 40vw, 176px); margin: 8px 0 12px; }
.hero__actions { display: grid; gap: 10px; }
.hero .btn { width: 100%; }
.hero .btn--main { background: var(--acc); border-color: var(--acc); color: #fff; box-shadow: 0 10px 20px -12px var(--acc-deep); }
.hero .btn--main:hover { background: var(--acc-deep); border-color: var(--acc-deep); color: #fff; }
.hero[data-tone="deep"] .btn--main { background: #fff; border-color: #fff; color: var(--acc-deep); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .6); }
.hero[data-tone="deep"] .btn--main:hover { background: #F1EEFE; border-color: #F1EEFE; color: var(--acc-deep); }
.hero .btn--soft { background: var(--glass); border-color: var(--edge); color: var(--fg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero .btn--soft:hover { background: var(--glass); border-color: var(--fg-2); color: var(--fg); }
.hero .btn:active { transform: scale(.985); }
.hero__figures {
  display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px -20px 0; padding: 0; border-top: 1px solid var(--edge);
  background: var(--bar); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
}
.hero__figures > div { padding: 12px 20px 14px; }
.hero__figures > div + div { border-left: 1px solid var(--edge); }
.hero__figures dt { font-size: 13.5px; color: var(--fg-2); }
.hero__figures dd { margin: 0; font-size: 28px; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--fg); }
@media (min-width: 760px) {
  .hero { padding: 20px 28px 0; }
  .hero__clock { font-size: 88px; }
  .hero h1 { font-size: 24px; }
  .hero__stage { height: 200px; }
  .hero__actions { display: flex; }
  .hero .btn { width: auto; min-width: 240px; }
  .hero__figures { margin: 24px -28px 0; }
  .hero__figures > div { padding: 14px 28px 16px; }
}

.sectionhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 28px 2px 10px; }
.sectionhead h2 { margin: 0; font-size: 16px; font-weight: 800; }
.sectionhead a { font-weight: 600; font-size: 14.5px; }
.sectionhead small { font-size: 13.5px; }
.ledger__row .tile { width: 40px; height: 40px; border-radius: 11px; }
.searchbar { position: relative; margin-bottom: 4px; }
.searchbar .icon { position: absolute; left: 15px; top: 16px; color: var(--ink-2); pointer-events: none; }
.searchbar input { padding-left: 44px; padding-right: 16px; }
.searchbar:has(.searchbar__clear) input { padding-right: 74px; }
.searchbar__clear { position: absolute; right: 14px; top: 14px; font-weight: 600; font-size: 14.5px; }

.profile { display: flex; align-items: center; gap: 16px; padding: 20px 18px; margin-bottom: 18px; }
.profile h1 { font-size: 22px; line-height: 1.2; margin: 0 0 2px; }
.profile p { margin: 0; }
.signout { margin-top: 4px; }

/* ---------- sign in ---------- */
.page-login .wrap--auth { max-width: none; padding: 0; }
.authsplit { min-height: 100vh; display: grid; }
.authsplit .auth { width: 100%; max-width: 440px; margin: 0 auto; padding: calc(min(12vh, 96px) + var(--sat)) 20px calc(32px + var(--sab)); }
.authside { display: none; }
@media (min-width: 900px) {
  .authsplit { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .authsplit .auth { align-self: center; padding-top: calc(32px + var(--sat)); }
  .authside { display: flex; position: relative; overflow: hidden; flex-direction: column; justify-content: flex-end; padding: 56px; color: #fff; }
  .authside__rings { position: absolute; right: -150px; top: -130px; width: 640px; height: 640px; color: #fff; }
  .authside__rings circle { fill: none; stroke: currentColor; stroke-width: 1.5; }
  .authside__copy { position: relative; max-width: 440px; }
  .authside__lead { font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -.015em; margin-bottom: 14px; }
  .authside__copy p:last-child { margin: 0; color: var(--pale-ink); font-size: 17px; }
}

/* ---------- form polish ---------- */
.section h2 { display: flex; align-items: center; gap: 12px; }
.section__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--petrol-wash); color: var(--petrol-deep); }
.section__icon .icon { width: 19px; height: 19px; }

/* ---------- admin overview ---------- */
.rangeswitch { display: inline-flex; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.rangeswitch a { padding: 7px 14px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.rangeswitch a:hover { color: var(--ink); }
.rangeswitch a[aria-current="true"] { background: var(--petrol); color: #fff; }
.strip__note { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.grid-main { display: grid; gap: 20px; margin-bottom: 20px; }
.grid-main > * { min-width: 0; }
.grid-main > .panel, .stackcol > .panel { margin-bottom: 0; }
.stackcol { display: grid; gap: 20px; align-content: start; }
@media (min-width: 1280px) { .grid-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.panel__sub { font-size: 13.5px; color: var(--ink-2); }
.panel__body { padding: 8px 18px 20px; }
.qlist { list-style: none; margin: 0; padding: 4px 0 8px; }
.qrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 18px; color: var(--ink); text-decoration: none; }
.qrow:hover { background: var(--paper); color: var(--ink); }
.qrow__main b, .qrow__main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrow__main b { font-weight: 600; }
.people .avatar { width: 36px; height: 36px; }

/* ---------- maps ---------- */
.map { position: relative; isolation: isolate; background: var(--paper); }
.map--overview { height: 340px; border-top: 1px solid var(--line); }
.map--visit { height: 250px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
@media (min-width: 1280px) { .map--overview { height: 410px; } }
.leaflet-container { font-family: var(--font); font-size: 14px; }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { margin: 12px 14px; line-height: 1.35; }
.map-pop a { display: block; font-weight: 800; color: var(--petrol); text-decoration: none; }
.map-pop a:hover { text-decoration: underline; }
.map-pop small { display: block; margin-top: 2px; }
.maplegend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 12px 18px 14px; font-size: 14px; color: var(--ink-2); }
.maplegend--tight { padding: 8px 0 0; }
.swatch { display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 3px; vertical-align: -1px; background: var(--tone-unset); }
.swatch--match { background: var(--tone-match); }
.swatch--review { background: var(--tone-review); }
.swatch--none { background: var(--tone-none); }
.swatch--unset { background: var(--tone-unset); }
.swatch--ring { background: #fff; border: 2px solid var(--petrol); border-radius: 50%; width: 12px; height: 12px; vertical-align: -2px; }

/* ---------- charts ---------- */
.chart { margin: 0; }
.chart__body { display: flex; height: 200px; padding-top: 8px; }
.chart__y { position: relative; flex: none; width: 30px; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chart__y span { position: absolute; right: 8px; transform: translateY(50%); line-height: 1; }
.chart__plot { position: relative; flex: 1; min-width: 0; border-bottom: 1px solid var(--line-strong); }
.chart__grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line); }
.chart__grid:first-child { display: none; }
.chart__cols { position: absolute; inset: 0; display: flex; gap: 2px; }
.chart__col { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; justify-content: center; border-radius: 4px 4px 0 0; cursor: default; }
.chart__col i { display: block; width: 100%; max-width: 24px; min-height: 2px; background: var(--petrol); border-radius: 4px 4px 0 0; }
.chart__col:hover, .chart__col:focus-visible { background: var(--petrol-wash); outline: none; }
.chart__col:hover i, .chart__col:focus-visible i { background: var(--petrol-deep); }
.chart__col b { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12.5px; line-height: 1; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; pointer-events: none; }
.chart__x { display: flex; gap: 2px; padding: 6px 0 0 30px; font-size: 12.5px; color: var(--ink-2); }
.chart__x span { flex: 1 1 0; min-width: 0; display: grid; justify-items: center; line-height: 1.25; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart__x small { font-size: 11.5px; }
.chart__x .is-skip { visibility: hidden; }

.seg { margin: 0; }
.seg__bar { display: flex; gap: 2px; height: 48px; }
.seg__part { min-width: 0; display: flex; align-items: center; justify-content: center; background: var(--tone-unset); color: #fff; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.seg__part:first-child { border-radius: 6px 0 0 6px; }
.seg__part:last-child { border-radius: 0 6px 6px 0; }
.seg__part:only-child { border-radius: 6px; }
.seg__part--match { background: var(--tone-match); }
.seg__part--review { background: var(--tone-review); color: var(--ink); }
.seg__part--none { background: var(--tone-none); }
.seg__part--unset { background: var(--tone-unset); }
.seg__part:hover, .seg__part:focus-visible { filter: brightness(.92); outline: none; }
.seg__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 12px 0 0; padding: 0; font-size: 14px; }

.tableview { margin-top: 12px; font-size: 14px; }
.tableview summary { display: inline-block; cursor: pointer; color: var(--petrol); font-weight: 600; }
.tableview table { width: 100%; margin-top: 8px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tableview th, .tableview td { padding: 6px 0; text-align: left; border-top: 1px solid var(--line); font-weight: 400; }
.tableview td { text-align: right; padding-left: 12px; }
.tableview thead th { font-weight: 600; color: var(--ink-2); border-top: 0; }
.tableview thead th:not(:first-child) { text-align: right; }
.tableview tfoot th, .tableview tfoot td { font-weight: 800; }

.tip { position: fixed; z-index: 60; max-width: 240px; padding: 7px 11px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13.5px; line-height: 1.3; pointer-events: none; box-shadow: 0 8px 20px -8px rgba(20, 38, 46, .6); }
.tip b { display: block; font-size: 14.5px; }
.tip span { color: var(--pale-ink); }

/* ---------- visit detail ---------- */
.visithead { display: flex; align-items: center; gap: 14px; min-width: 0; }
.visithead h1 { margin-bottom: 2px; }
.visithead .tile { width: 56px; height: 56px; border-radius: 16px; }
.visithead .tile .icon { width: 26px; height: 26px; }
.detail__side { top: 88px; }
.is-admin .detail__side { top: 24px; }
@media (min-width: 980px) and (max-width: 1279px) {
  .is-admin .detail { grid-template-columns: minmax(0, 1fr); }
  .is-admin .detail__side { position: static; }
}

/* ---------- v2 fixes ---------- */
.appbar__me { text-decoration: none; }
.ledger__side time.text-bad { color: var(--bad); }
.qrow__main b, .qrow__main small { white-space: normal; overflow-wrap: anywhere; overflow: visible; text-overflow: clip; }
.grid-main > .panel { display: flex; flex-direction: column; }
.grid-main > .panel > .panel__body { flex: 1; display: flex; flex-direction: column; }
.grid-main .panel__body > .chart { flex: 1; display: flex; flex-direction: column; }
.grid-main .chart__body { flex: 1; height: auto; min-height: 200px; }
.appbar__end { display: inline-flex; align-items: center; gap: 10px; }
.iconbtn--accent { background: var(--petrol); color: #fff; border-radius: 50%; width: 38px; height: 38px; }
.iconbtn--accent:hover { background: var(--petrol-deep); color: #fff; }
.tabs { padding: 0 8px; }

/* ---------- customers and import ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0 0 22px; padding: 0; color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.steps li { display: inline-flex; align-items: center; gap: 9px; }
.steps__n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); font-size: 13px; font-weight: 800; }
.steps__n .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.steps .is-current { color: var(--ink); }
.steps .is-current .steps__n { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.steps .is-done .steps__n { background: var(--ok-wash); border-color: var(--ok-wash); color: var(--ok); }
.importbox { max-width: 720px; }
.importbox__or { display: flex; align-items: center; gap: 14px; margin: 2px 0; color: var(--ink-2); font-size: 14px; }
.importbox__or::before, .importbox__or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.importbox input[type=file] { width: 100%; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--surface); font: inherit; }
.panel__lead { margin: 0; padding: 14px 18px 4px; color: var(--ink-2); }
.maptable select { width: 100%; min-height: 46px; }
.maptable td:nth-child(2) { max-width: 360px; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions--center { justify-content: center; margin-top: 16px; }
.choice { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.choice legend { padding: 0; margin-bottom: 4px; }
.choice label, .tick { display: flex; gap: 12px; align-items: flex-start; line-height: 1.4; cursor: pointer; }
.choice input, .tick input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--petrol); }
.fieldgrid { display: grid; gap: 6px 14px; }
@media (min-width: 700px) { .fieldgrid { grid-template-columns: 1fr 1fr; } }
.filters--customers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .filters--customers { grid-template-columns: repeat(6, minmax(0, 1fr)); } .filters--customers .field--grow { grid-column: span 3; } .filters--customers .filters__go { grid-column: span 2; } }
.ledger--plain { border: 0; border-radius: 0; background: transparent; }
.page-head--split .actions { justify-content: flex-end; }

.bulkzone summary { cursor: pointer; color: var(--petrol); font-weight: 600; }
.bulkzone[open] summary { margin-bottom: 16px; }

/* ---------- customer page and list (engineer) ---------- */
.custhead { display: flex; gap: 14px; align-items: center; margin: 6px 0 18px; }
.custhead h1 { margin: 0; font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.custhead p { margin: 4px 0 0; }
.tile--lg { width: 56px; height: 56px; border-radius: 16px; }
.tile--lg .icon { width: 26px; height: 26px; }
.quick { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin: 12px 0 18px; }
.quick a { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 66px; padding: 10px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--petrol-deep); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.quick a:hover { background: var(--petrol-wash); color: var(--petrol-deep); }
.quick .icon { width: 24px; height: 24px; }
.quick a, .quick__off { min-width: 0; font-size: 13.5px; padding: 10px 2px; }
.quick__off { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 66px; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--ink-2); font-weight: 600; opacity: .55; cursor: not-allowed; }
.quick--row { margin: 0; padding: 0 14px 14px; gap: 8px; }
.quick--row a, .quick--row .quick__off { min-height: 54px; padding: 7px 2px; gap: 2px; font-size: 13px; border-radius: 12px; background: var(--paper); border-color: transparent; }
.quick--row .quick__off { background: transparent; border-color: var(--line); }
.quick--row a:hover { background: var(--petrol-wash); }
.quick--row .icon { width: 20px; height: 20px; }
.quick--inline a { font-size: 14px; }
.quick--inline { margin: 0 0 14px; }
.followcard { background: var(--warn-wash); border: 1px solid var(--warn-line); border-radius: 16px; padding: 16px; margin: 0 0 18px; }
.followcard--late { background: var(--bad-wash); border-color: var(--bad-line); }
.followcard__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.followcard p { margin: 0 0 8px; }
.scope { display: inline-flex; padding: 4px; margin: 12px 0 14px; background: #E6EDF0; border-radius: 999px; }
.scope a { padding: 8px 16px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.scope a[aria-current="true"] { background: var(--surface); color: var(--petrol-deep); box-shadow: 0 1px 2px rgba(10, 68, 82, .18); }
.listcount { margin: 4px 2px 8px; font-size: 14px; color: var(--ink-2); }
.nextsteps { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }

/* ---------- visit form: customer picker, details, chips ---------- */
.searchbar--field { margin-bottom: 10px; }
.pick { max-height: 380px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.pick__head { margin: 0; padding: 9px 14px 6px; background: var(--paper); border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pick__head:first-child { border-top: 0; }
.pick__empty { margin: 0; padding: 14px; color: var(--ink-2); }
.pickrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; min-height: 58px; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pick__head + .pickrow, .pick > .pickrow:first-child { border-top: 0; }
.pickrow:hover, .pickrow:focus-visible { background: var(--petrol-wash); outline: none; }
.pickrow__main b, .pickrow__main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pickrow__main b { font-weight: 600; }
.pickrow__main small { font-size: 14px; color: var(--ink-2); }
.pickrow__when { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.pickrow--new { grid-template-columns: auto minmax(0, 1fr); color: var(--petrol-deep); font-weight: 600; }
.pickrow--new .pickrow__main { white-space: normal; font-weight: 600; }
.pickrow__plus { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--petrol-wash); font-size: 20px; line-height: 1; }
.chosen { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--petrol-wash); border: 1px solid #C5DCE3; border-radius: 14px; }
.chosen .tile { background: var(--surface); }
.chosen__main { flex: 1; min-width: 0; }
.chosen__main b, .chosen__main small { display: block; }
.chosen__main b { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.chosen__main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chosen__main small { color: var(--ink-2); }
#custFields { margin-top: 14px; }
.details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 12px 14px; font-weight: 600; cursor: pointer; list-style: none; }
.details > summary::-webkit-details-marker { display: none; }
.details > summary small { flex: 1; min-width: 0; text-align: right; font-weight: 400; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.details > summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-left: 2px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.details[open] > summary::after { transform: rotate(225deg); }
.details__body { padding: 4px 14px 6px; border-top: 1px solid var(--line); padding-top: 16px; }
.draftbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 8px 8px 8px 14px; background: var(--petrol-wash); border-radius: 12px; font-size: 14.5px; }
.chips { margin: 0 0 18px; }
.chips legend { float: none; }
.chips__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: block; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 15px; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1.25; transition: background .12s, border-color .12s; }
.chips label:hover span { background: var(--paper); }
.chips input:checked + span { background: var(--petrol-wash); border-color: var(--petrol); color: var(--petrol-deep); box-shadow: inset 0 0 0 1px var(--petrol); }
.chips input:focus-visible + span { outline: 3px solid #A99BEA; outline-offset: 2px; }
.quickdates { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; }


/* ---------- customer rows with one-tap actions, customer map, site pin ---------- */
.custrow + .custrow { border-top: 1px solid var(--line); }
.custrow .ledger__row { padding-bottom: 12px; }
.custrow .ledger__row + .ledger__row { border-top: 0; }
.ledger__btn { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.ledger__btn[aria-pressed="true"] { background: var(--petrol-wash); }
.text-warn { color: var(--warn); }
.linkbtn { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--petrol); text-decoration: underline; cursor: pointer; }
.maphint { margin: 8px 2px 0; font-size: 14.5px; color: var(--ink-2); }
.block--map { padding: 12px; }
.map--site { height: 190px; border: 1px solid var(--line); border-radius: 12px; }

.mapfind { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.mapfind .searchbar { margin-bottom: 0; }
.mapfind .btn { min-height: 48px; }
.mapwrap { position: relative; margin-top: 4px; }
.map--customers { height: clamp(280px, 46vh, 560px); border: 1px solid var(--line); border-radius: 14px; }
.mapcard { position: absolute; z-index: 1000; left: 8px; right: 8px; bottom: 30px; max-width: 460px; padding: 12px 12px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 26px -12px rgba(10, 68, 82, .55); }
.mapcard--static { position: relative; z-index: auto; left: auto; right: auto; bottom: auto; max-width: none; margin: 10px 0; }
.mapcard[hidden] { display: none; }
.mapcard__head { display: grid; gap: 2px; padding-right: 40px; }
.mapcard__head b { font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.mapcard__head small { color: var(--ink-2); }
.mapcard__note { color: var(--warn) !important; }
.mapcard__close { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer; }
.mapcard__close:hover { background: var(--paper); }
.mapcard .quick--row { padding: 0; margin: 10px 0 2px; }
.mapcard__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0 4px; font-weight: 600; font-size: 14.5px; }
.mapkey { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 2px 14px; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-2); }
.dot { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-strong); }
.dot--cust { background: #5B3FD9; }
.dot--follow { background: #C57F0A; }
.dot--me { background: #1F6FEB; }
@media (min-width: 900px) {
  .map--customers { height: clamp(420px, 60vh, 640px); }
}

.placefind { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 10px; }
.placefind .btn { min-height: 48px; }
.map--picker { height: 340px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; cursor: crosshair; }
.actions--tight { gap: 8px; margin: 2px 0 6px; }
.field__label--sub { margin-top: 14px; }
.sitepin span { position: relative; display: block; width: 26px; height: 26px; border: 3px solid #fff; border-radius: 50% 50% 50% 0; background: #5B3FD9; box-shadow: 0 3px 8px rgba(10, 68, 82, .5); transform: rotate(-45deg); }
.sitepin span::after { content: ""; position: absolute; top: 6px; left: 6px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.page-head--split > div:first-child { flex: 1 1 230px; min-width: 0; }
.custrow .ledger__main b, .ledger__btn .ledger__main b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere; }
.custrow .ledger__main small, .ledger__btn .ledger__main small { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.mapfind .searchbar input { padding-right: 14px; }
.mapfind .searchbar input:not(:placeholder-shown) { padding-right: 76px; }

/* ---------- home screen customiser (a sheet on a phone, a dialog on a desktop) ---------- */
.cust {
  width: 100%; max-width: 520px; max-height: calc(100vh - 8px - var(--sat)); max-height: calc(100dvh - 8px - var(--sat)); margin: auto 0 0; margin-inline: auto; padding: 0; border: 0;
  background: transparent; color: var(--ink); overflow: hidden;
}
.cust[open] { display: flex; }
.cust::backdrop { background: rgba(8, 28, 35, .5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.cust__box {
  display: flex; flex-direction: column; width: 100%; min-height: 0; background: var(--surface); border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 50px -20px rgba(6, 30, 38, .5); animation: sheet-in .3s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes sheet-in { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.cust__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 6px 20px; }
.cust__head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.cust__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 8px; }
.cust__preview { position: relative; height: 112px; margin-bottom: 6px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, var(--s0, #F8F7FE), var(--s1, #E2DCFB)); }
.cust__preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cust__group { margin: 0; padding: 14px 0 4px; border: 0; min-width: 0; }
.cust__group legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-weight: 800; font-size: 15px; }
.cust__group legend + * { clear: both; }
.cust__note { margin: 8px 0 0; color: var(--ink-2); font-size: 13.5px; }
.cust__foot {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px calc(14px + var(--sab)); border-top: 1px solid var(--line); background: var(--surface);
}
.cust__status { flex: 1; min-width: 0; text-align: right; color: var(--ink-2); font-size: 14px; }
.cust__status.is-bad { color: var(--bad); font-weight: 600; }
.cust__foot .btn--primary { min-width: 104px; }
@media (min-width: 640px) {
  .cust { margin: auto; max-height: min(86dvh, 760px); }
  .cust__box { border-radius: 24px; box-shadow: 0 30px 70px -24px rgba(6, 30, 38, .55); }
}

.scenepick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.scenepick label, .swatches label, .pills label { cursor: pointer; }
.scenepick input, .swatches input, .pills input { position: absolute; opacity: 0; pointer-events: none; }
.scenepick span { display: grid; gap: 6px; }
.scenepick canvas { display: block; width: 100%; height: 62px; border-radius: 12px; border: 1.5px solid var(--line); transition: box-shadow .15s, border-color .15s; }
.scenepick b { font-size: 14px; font-weight: 600; text-align: center; color: var(--ink-2); }
.scenepick label:hover canvas { border-color: var(--line-strong); }
.scenepick input:checked + span canvas { border-color: var(--petrol); box-shadow: 0 0 0 2px var(--petrol); }
.scenepick input:checked + span b { color: var(--petrol-deep); font-weight: 800; }
.scenepick input:focus-visible + span canvas { outline: 3px solid #A99BEA; outline-offset: 3px; }

.swatches { display: flex; gap: 6px; }
.swatches label { flex: 1; display: grid; justify-items: center; gap: 6px; padding: 4px 0; }
.swatch { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(20, 38, 46, .16); transition: box-shadow .15s; }
.swatches small { font-size: 13px; }
.swatches input:checked + .swatch { box-shadow: 0 0 0 2.5px var(--surface), 0 0 0 4.5px var(--ink); }
.swatches input:checked ~ small { color: var(--ink); font-weight: 800; }
.swatches input:focus-visible + .swatch { outline: 3px solid #A99BEA; outline-offset: 4px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong);
  background: var(--surface); font-weight: 600; font-size: 15px; transition: background .15s, border-color .15s;
}
.pills label:hover span { border-color: var(--ink-2); }
.pills input:checked + span { background: var(--petrol-wash); border-color: var(--petrol); color: var(--petrol-deep); box-shadow: inset 0 0 0 1px var(--petrol); }
.pills input:focus-visible + span { outline: 3px solid #A99BEA; outline-offset: 2px; }

.cust__switchrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; }
.cust__switchrow label { font-weight: 800; font-size: 15px; }
.switch {
  appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 52px; height: 30px; margin: 0; border-radius: 999px;
  background: var(--line-strong); cursor: pointer; transition: background .2s; -webkit-tap-highlight-color: transparent;
}
.switch::before { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s cubic-bezier(.3, .8, .3, 1); }
.switch:checked { background: var(--petrol); }
.switch:checked::before { transform: translateX(22px); }
.switch:focus-visible { outline: 3px solid #A99BEA; outline-offset: 3px; }

/* ---------- full-screen display ---------- */
html.has-saver, html.has-saver body { overflow: hidden; }
.saver {
  --fg: #1B1638; --fg-2: #3C535C;
  position: fixed; inset: 0; z-index: 100; display: block; overflow: hidden; color: var(--fg); text-align: center; touch-action: none; cursor: pointer;
  background: linear-gradient(160deg, var(--s0, #F8F7FE), var(--s1, #E2DCFB)); outline: none;
}
.saver[data-tone="deep"] { --fg: #FFFFFF; --fg-2: #DCD5FA; }
.saver[hidden] { display: none; }
.saver__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.saver__body {
  position: absolute; left: 0; right: 0; top: calc(clamp(56px, 12vh, 140px) + var(--sat)); padding: 0 calc(20px + var(--sar)) 0 calc(20px + var(--sal));
  transform: translate(var(--dx, 0), var(--dy, 0)); transition: transform 4s ease-in-out;
}
.saver__date { margin: 0 0 6px; font-size: clamp(17px, 2.4vw, 26px); font-weight: 600; color: var(--fg-2); }
.saver__time { margin: 0; font-size: clamp(76px, 26vw, 230px); line-height: .95; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--fg); }
.saver__line { margin: 14px 0 0; font-size: clamp(16px, 2.2vw, 22px); color: var(--fg-2); }
.saver__hint {
  position: absolute; left: 0; right: 0; bottom: calc(26px + var(--sab)); margin: 0; font-size: 14.5px; font-weight: 600; color: var(--fg-2); opacity: 0;
}
.saver__hint.is-shown { animation: hint-fade 5.5s ease both; }
@keyframes hint-fade { 0% { opacity: 0; } 12% { opacity: .9; } 78% { opacity: .9; } 100% { opacity: 0; } }
@media (orientation: landscape) and (max-height: 520px) { .saver__body { top: calc(7vh + var(--sat)); } .saver__time { font-size: clamp(64px, 24vh, 200px); } }
@media (prefers-reduced-motion: reduce) {
  .saver__hint.is-shown { opacity: .9; }
  .cust__box { animation: none; }
}

/* ---------- sign-in scenes ---------- */
.authsplit { position: relative; }
.authscene { position: absolute; left: 0; right: 0; top: 0; height: 320px; pointer-events: none; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.authsplit .auth { position: relative; z-index: 1; }
@media (min-width: 900px) {
  .authscene { display: none; }
  .authside .scene__canvas { bottom: auto; height: 64%; }
  .authside__copy { z-index: 1; }
}

/* ---------- polish: soft elevation, frosted bars, press states, page transitions ---------- */
:root {
  --shadow-1: 0 1px 2px rgba(10, 50, 60, .05), 0 8px 18px -12px rgba(10, 50, 60, .22);
  --shadow-2: 0 2px 4px rgba(10, 50, 60, .06), 0 18px 34px -18px rgba(10, 50, 60, .3);
}
.sheet, .ledger, .panel { box-shadow: var(--shadow-1); }
.ledger--plain { box-shadow: none; }
.page-head h1 { letter-spacing: -.018em; }
.sectionhead h2 { letter-spacing: -.008em; }
.btn { transition: background .15s, border-color .15s, transform .12s, box-shadow .15s; }
.btn:active { transform: scale(.985); }
.btn--primary { box-shadow: 0 8px 16px -11px rgba(10, 68, 82, .75); }
.btn--primary:active { box-shadow: none; }
.ledger__row, .qrow, .pickrow { transition: background .12s; }
.ledger__row:active, .qrow:active, .pickrow:active { background: var(--petrol-wash); }
.appbar { background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.bottomnav { background: rgba(255, 255, 255, .84); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-top-color: rgba(180, 196, 202, .45); }
.bottomnav .icon { box-sizing: content-box; width: 24px; height: 24px; padding: 3px 14px; border-radius: 999px; transition: background .2s; }
.bottomnav a[aria-current="page"] .icon { background: var(--petrol-wash); }
.bottomnav a:active .icon { background: var(--petrol-wash); }
.bottomnav a .bottomnav__plus .icon { box-sizing: border-box; width: 26px; height: 26px; padding: 0; border-radius: 0; background: none; }
.bottomnav__plus { transition: transform .15s; }
.bottomnav__fab:active .bottomnav__plus { transform: scale(.94); }

/* ---------- inside the Android app (html.is-app, set from the app's user agent) ---------- */
/* Controls act like an app's: a long press does not start selecting their labels or open a link preview.
   Content people may copy (addresses, numbers, notes, visit details) stays selectable. */
.is-app .appbar, .is-app .bottomnav, .is-app .tabs, .is-app .sidenav, .is-app .btn, .is-app .roundbtn, .is-app .iconbtn,
.is-app .chips, .is-app .pills, .is-app .segmented, .is-app .scope, .is-app .quick, .is-app .quickdates, .is-app .rangeswitch,
.is-app .hero__clock, .is-app .hero__date, .is-app .hero__figures, .is-app .saver, .is-app .drop, .is-app .lock,
.is-app .pickrow, .is-app .ledger__btn, .is-app .linkbtn, .is-app .backlink, .is-app .cust__head, .is-app .cust__group legend,
.is-app .scenepick, .is-app .swatches, .is-app .switch, .is-app .sectionhead, .is-app .page-head .btn {
  -webkit-user-select: none; user-select: none;
}
.is-app a, .is-app button, .is-app label { -webkit-touch-callout: none; }


/* ---------- admin on a phone or tablet: bottom bar + More sheet ---------- */
.bottomnav--admin .bottomnav__more {
  display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 54px; padding: 6px 4px; border: 0; background: none;
  color: var(--ink-2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.bottomnav--admin .bottomnav__more[aria-current="page"], .bottomnav--admin .bottomnav__more[aria-expanded="true"] { color: var(--petrol); }
.bottomnav--admin .bottomnav__more .icon { box-sizing: content-box; width: 24px; height: 24px; padding: 3px 14px; border-radius: 999px; }
.bottomnav--admin .bottomnav__more[aria-current="page"] .icon, .bottomnav--admin .bottomnav__more[aria-expanded="true"] .icon { background: var(--petrol-wash); }
@media (min-width: 1024px) {
  .bottomnav--admin, .moresheet { display: none !important; }
  .is-admin.has-bottomnav .wrap { padding-bottom: 48px; }
}
@media (min-width: 760px) and (max-width: 1023px) {
  .bottomnav--admin { display: grid; }
  .is-admin.has-bottomnav .wrap { padding-bottom: calc(100px + var(--sab)); }
}
.moresheet { position: fixed; inset: 0; z-index: 29; }
.moresheet[hidden] { display: none; }
.moresheet__scrim { position: absolute; inset: 0; background: rgba(7, 62, 74, .38); }
.moresheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; max-width: 640px; margin: 0 auto;
  padding: 10px 10px calc(84px + var(--sab)); background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px -12px rgba(7, 62, 74, .45);
}
.moresheet__panel a, .moresheet__panel button {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0 14px; border: 0; border-radius: 14px; background: none;
  color: var(--ink); font: inherit; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer;
}
.moresheet__panel a:active, .moresheet__panel button:active, .moresheet__panel a[aria-current="page"] { background: var(--petrol-wash); color: var(--petrol-deep); }
.moresheet__panel .icon { width: 22px; height: 22px; color: var(--petrol); }
.moresheet__panel form { margin: 0; }
.appbar--mobile .tabs { display: none; }

/* ---------- miti (Nepali date) beside every date ---------- */
.hero__miti, .saver__miti { display: block; margin-top: 2px; font-size: .92em; font-weight: 600; opacity: .85; }
.saver__miti { font-size: clamp(15px, 2vw, 22px); }
.dd { display: inline-grid; line-height: 1.25; }
.dd__bs { color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.dualdate { display: grid; gap: 4px; margin-top: 6px; width: 100%; min-width: 0; container: dualdate / inline-size; }
.dualdate__echo { margin: 0; color: var(--ink-2); font-size: 14px; }
.dualdate__echo b { color: var(--petrol-deep); font-weight: 700; }
.dualdate__toggle { justify-self: start; min-height: 36px; padding: 0 2px; border: 0; background: none; color: var(--petrol); font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* Narrow places (filter boxes, small phones): month on its own line, day and year under it. Nothing overlaps. */
.dualdate__row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8px; min-width: 0; }
.dualdate__row select { min-width: 0; width: 100%; min-height: 48px; padding: 8px 22px 8px 10px; background-position: right 7px center; text-overflow: clip; }
.dualdate__row select:nth-child(2) { grid-column: 1 / -1; order: -1; }
/* Wide enough: day, month, year in one row. */
@container dualdate (min-width: 300px) {
  .dualdate__row { grid-template-columns: 76px minmax(0, 1fr) 96px; }
  .dualdate__row select:nth-child(2) { grid-column: auto; order: 0; }
}
.dualdate__hint { margin: 6px 0 0; color: var(--bad); font-size: 13.5px; font-weight: 600; }
.dualdate__pick[hidden], .dualdate__hint[hidden] { display: none; }
.filters .dualdate__toggle { min-height: 36px; }
.filters .dualdate__echo { font-size: 13px; }
/* Phones: From and To one under the other, so each date box (and its miti picker) has the full width. */
@media (max-width: 520px) { .filters .field--date { grid-column: 1 / -1; } }

/* ---------- companies: sidebar label and the owner's bottom bar ---------- */
.sidebar__co { margin: -10px 0 0; padding: 0 8px; color: var(--ink-2); font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bottomnav--owner { grid-template-columns: repeat(3, 1fr); }
.bottomnav--owner .bottomnav__more { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 54px; padding: 6px 4px; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.bottomnav--owner .icon { box-sizing: content-box; width: 24px; height: 24px; padding: 3px 14px; border-radius: 999px; }
.bottomnav--owner a[aria-current="page"] .icon { background: var(--petrol-wash); }
@media (min-width: 1024px) { .bottomnav--owner { display: none !important; } }

/* Padded panel: a card that holds a form or free content directly */
.panel--pad { padding: 18px; }
@media (min-width: 640px) { .panel--pad { padding: 22px 24px; } }

/* Company logo: menu, account, settings page */
.sidebar__co { display: flex; align-items: center; gap: 10px; white-space: normal; }
.sidebar__co img { height: 34px; width: auto; max-width: 104px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); padding: 3px 5px; flex: none; }
.sidebar__co span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.profile__co { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-weight: 700; color: var(--ink); font-size: 15px; }
.profile__co img { height: 24px; max-width: 72px; object-fit: contain; }
.logobox { display: grid; gap: 18px; }
@media (min-width: 640px) { .logobox { grid-template-columns: 200px 1fr; align-items: start; } }
.logobox__img { height: 140px; border: 1px dashed var(--line-strong, #c3ced3); border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; padding: 14px; }
.logobox__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logobox__img.is-empty { color: var(--ink-3, #6b7a82); align-content: center; justify-items: center; gap: 6px; font-size: 14px; }
.logobox__img.is-empty .icon { width: 32px; height: 32px; }
.btn--quiet { background: transparent; border-color: transparent; color: var(--ink-2); box-shadow: none; }

/* Help page */
.helpdoc details { border-top: 1px solid var(--line); padding: 14px 0; }
.helpdoc details:first-of-type { border-top: 0; }
.helpdoc summary { font-weight: 800; font-size: 16.5px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.helpdoc summary::-webkit-details-marker { display: none; }
.helpdoc summary::after { content: '+'; font-weight: 600; color: var(--ink-2); }
.helpdoc details[open] summary::after { content: '\2212'; }
.helpdoc details > :not(summary) { margin: 10px 0 0; color: var(--ink-2); line-height: 1.55; }
.helpdoc ol, .helpdoc ul { padding-left: 22px; }
.helpdoc li + li { margin-top: 6px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.checklist li + li { border-top: 1px solid var(--line); }
.checklist__dot { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; color: #fff; }
.checklist .is-done .checklist__dot { background: var(--ok); border-color: var(--ok); }
.checklist .is-done .checklist__dot .icon { width: 14px; height: 14px; stroke-width: 3; }
.checklist a { margin-left: auto; font-weight: 700; font-size: 14.5px; }
@media print { .helpdoc details { display: block; } .helpdoc details > * { display: block; } .appbar, .sidebar, .bottomnav, .noprint { display: none !important; } }

/* ---- password reset ---- */
.auth__alt { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.auth__alt a { font-weight: 600; }
.emailrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.emailrow input { flex: 1 1 180px; min-width: 0; }
.emailrow__cur { font-size: 12.5px; color: var(--ink-3); margin: 0; }

/* visits saved on the phone without signal */
.queuebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.queuebar__text { flex: 1 1 220px; }
.queuebar__bad { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex-basis: 100%; margin: 4px 0 0; }
.queued { background: var(--surface, #fff); border: 1px solid var(--line, #DCE5E8); border-radius: 18px; padding: 28px 22px; text-align: center; display: grid; gap: 10px; justify-items: center; max-width: 520px; margin: 24px auto; }
.queued[hidden] { display: none; }
.queued h2 { margin: 0; font-size: 22px; }
.queued p { margin: 0; color: var(--ink-2); max-width: 40ch; }
.queued__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--petrol-wash); color: var(--petrol, #5B3FD9); }
.queued .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.pill--offline { background: var(--warn-wash); color: var(--warn); }

/* language choice */
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.auth .langs { justify-content: center; }
.langs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line, #DCE5E8); border-radius: 12px; background: #fff; color: var(--ink, #15303A); font-weight: 600; text-decoration: none; }
.langs a:hover { border-color: var(--petrol, #5B3FD9); }
.langs a[aria-current="true"] { background: var(--petrol, #5B3FD9); border-color: var(--petrol, #5B3FD9); color: #fff; }
.langs a:focus-visible { outline: 3px solid var(--focus, #7FB8C6); outline-offset: 2px; }

/* Expenses */
.monthbar { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0 12px; }
.listrow__side { display: grid; gap: 8px; justify-items: end; }
.strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }

/* ---------- 2026-11 refresh: deeper petrol, marigold for the one main action, softer shapes ---------- */
:root {
  --paper: #F6F5FB;
  --ink: #1B1638;
  --ink-2: #44606A;
  --line: #D8E3E5;
  --petrol: #5B3FD9;
  --petrol-deep: #3B22A8;
  --petrol-wash: #E6F2F4;
  --gold: #FFB01F;
  --gold-ink: #2A1A00;
  --r-sheet: 22px;
  --r-ctl: 14px;
}
.btn { min-height: 50px; }
.btn--primary { box-shadow: 0 8px 18px -12px var(--petrol-deep); }
.ledger { border-radius: 20px; }
.ledger__row { padding: 14px 16px; min-height: 64px; }
.page-head h1 { font-size: 30px; letter-spacing: -.02em; }
.sectionhead h2 { font-weight: 800; }
.bottomnav { border-radius: 22px 22px 0 0; box-shadow: 0 -10px 28px -18px rgba(5, 47, 58, .5); }
.bottomnav__plus { width: 60px; height: 60px; margin-top: -34px; background: var(--petrol); box-shadow: 0 0 0 5px var(--gold), 0 10px 18px -8px rgba(5, 47, 58, .6); }
.hero { border-radius: 28px; }
.hero .btn--main { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); box-shadow: 0 10px 20px -12px rgba(5, 47, 58, .7); }
.hero .btn--main:hover { background: #F0A010; border-color: #F0A010; color: var(--gold-ink); }
.hero[data-tone="deep"] .btn--main { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.hero[data-tone="deep"] .btn--main:hover { background: #F0A010; border-color: #F0A010; color: var(--gold-ink); }

/* ---------- My visits: period filter and statement ---------- */
.period { margin: 0 0 14px; }
.period__chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.period__chip {
  flex: none; display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap;
}
.period__chip[aria-current="true"] { background: var(--petrol); border-color: var(--petrol); color: #fff; font-weight: 800; }
.period__dates { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin-top: 10px; }
.period__dates label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.period__dates input { width: 100%; min-height: 48px; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 0 10px; font: 400 16px var(--font); background: var(--surface); color: var(--ink); }
.period__dates small { display: block; margin-top: 3px; }
.period__sum { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 12px 0 4px; font-size: 15px; }
.statementbar { position: sticky; bottom: calc(86px + var(--sab)); z-index: 5; margin-top: 16px; }
.statementbar .btn { width: 100%; min-height: 54px; font-weight: 800; box-shadow: 0 10px 22px -12px rgba(5, 47, 58, .7); }
.statementopts { margin: 8px 0 0; font-size: 14.5px; }
.statementopts label { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }

/* ---------- sign-in on a phone: deep panel on top, white sheet below ---------- */
.authtop { display: none; }
@media (max-width: 899px) {
  .authscene { display: none; }
  .authtop { display: block; position: absolute; left: 0; right: 0; top: 0; height: 360px; background: var(--petrol-deep); overflow: hidden; }
  .authtop__rings { position: absolute; inset: 0; width: 100%; height: 100%; }
  .authtop__copy { position: relative; color: #fff; padding: calc(40px + var(--sat)) 28px 0; }
  .authtop__name { margin: 0; font-weight: 800; font-size: 19px; opacity: .92; }
  .authtop__lead { margin: 46px 0 0; font-size: 34px; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; max-width: 340px; }
  .authtop__sub { margin: 14px 0 0; font-size: 16px; line-height: 1.45; opacity: .88; max-width: 290px; }
  .authsplit .auth { max-width: none; margin-top: 330px; min-height: calc(100vh - 330px); background: var(--surface); border-radius: 28px 28px 0 0; padding: 28px max(24px, calc((100vw - 440px) / 2)) calc(28px + var(--sab)); box-shadow: 0 -12px 30px -22px rgba(5, 47, 58, .6); }
  .authsplit .auth .auth__mark, .authsplit .auth .auth__sub { display: none; }
  .authsplit .auth .auth__title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- GPS lock panel: the one loud element ---------- */
.lock[data-state="locked"] { --tone: #19D3E8; background: var(--petrol-deep); border-color: var(--petrol-deep); }
.lock[data-state="locked"] .lock__text strong { color: #fff; }
.lock[data-state="locked"] .lock__text span { color: #CFE3E7; }
.lock[data-state="locked"] .lock__link { color: #8FE3F0; }
.lock[data-state="locked"] .lock__tick { stroke: var(--petrol-deep); }

.period__sum small { white-space: nowrap; }

/* ---------- plain lists (expense claims) and three-up totals ---------- */
.list { list-style: none; margin: 0 0 20px; padding: 0; overflow: hidden; }
.listrow { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 16px; }
.listrow + .listrow { border-top: 1px solid var(--line); }
.listrow__main { min-width: 0; }
.listrow__main b { display: block; font-size: 16px; }
.listrow__main small { display: block; margin-top: 2px; }
.listrow__side { flex: none; }
.strip--3 { grid-template-columns: repeat(3, 1fr); }
.strip--3 > div, .strip--3 > div:nth-child(n+3) { border-top: 0; padding: 14px 12px; }
.strip--3 > div + div { border-left: 1px solid var(--line); }
.strip--3 dd { font-size: clamp(18px, 5.4vw, 26px); }
.strip--3 dt { font-size: 13.5px; }
.addbox > summary { list-style: none; box-shadow: none; }
.addbox > summary::-webkit-details-marker { display: none; }
.addbox, .addbox.panel { box-shadow: none; }

/* ---------- v3 skin: full-bleed home, card rows, floating bar, deep admin figures ---------- */
.has-bottomnav .wrap--narrow > .hero:first-child {
  margin: -22px calc(-16px - var(--sar)) 8px calc(-16px - var(--sal)); border-radius: 0 0 34px 34px; padding: 18px calc(22px + var(--sar)) 0 calc(22px + var(--sal)); box-shadow: none;
}
.hero .hero__clock { font-size: 76px; margin-top: 18px; }
.hero h1 { font-size: 26px; letter-spacing: -.02em; }
.hero .btn { min-height: 54px; border-radius: 16px; }
.hero .btn--lg { min-height: 58px; font-size: 18px; }
.hero__figures { margin-top: 18px; }
.sectionhead { margin-top: 26px; }
.sectionhead h2 { font-size: 20px; letter-spacing: -.01em; }

.ledger { background: none; border: 0; border-radius: 0; display: grid; gap: 10px; overflow: visible; }
.ledger__row { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; box-shadow: 0 10px 24px -20px rgba(5, 47, 58, .55); }
.ledger__row + .ledger__row { border-top: 1px solid var(--line); }
.list.sheet { border-radius: 20px; }

.bottomnav {
  left: 12px; right: 12px; bottom: 10px; border: 0; border-radius: 30px; padding: 4px 8px calc(4px + var(--sab));
  box-shadow: 0 16px 36px -14px rgba(5, 47, 58, .55), 0 0 0 1px rgba(5, 47, 58, .06);
}
.has-bottomnav .wrap { padding-bottom: 140px; }
.statementbar { bottom: 100px; }
.bottomnav a[aria-current="page"] { color: var(--petrol-deep); }
.bottomnav a[aria-current="page"] .icon { stroke-width: 2.4; }

.panel { border-radius: 22px; box-shadow: 0 12px 28px -24px rgba(5, 47, 58, .6); }
.page-head h1 { font-size: 34px; }
.appbar { box-shadow: none; }

/* ---------- structure: today's route and grouped admin menu ---------- */
.route { list-style: none; margin: 0 0 8px; padding: 0 0 0 4px; }
.route__stop { position: relative; padding: 0 0 14px 30px; }
.route__stop::before { content: ""; position: absolute; left: 8px; top: 22px; bottom: -4px; width: 2px; background: var(--line-strong); }
.route__stop:last-child::before { display: none; }
.route__stop::after { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--petrol); box-shadow: 0 0 0 4px var(--petrol-wash); }
.route__stop a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; color: var(--ink); text-decoration: none; box-shadow: 0 10px 24px -20px rgba(5, 47, 58, .55); }
.route__time { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.route__stop b { display: block; font-size: 17px; line-height: 1.25; margin-top: 1px; }
.route__stop small { display: block; }
.route__tag { display: inline-block; margin-top: 7px; padding: 2px 9px; border-radius: 8px; background: var(--ok-wash); color: #145F40; font-size: 13px; font-weight: 600; }
.route__tag--bad { background: var(--bad-wash); color: var(--bad); }
.sidenav__group { margin: 14px 12px 4px; font-size: 12.5px; font-weight: 600; color: #9A96B0; }
.sidenav__group:first-child { margin-top: 0; }
.period__dates { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.period__dates input { min-width: 0; }
.period__dates > div { min-width: 0; }
.statementbar, .period, .searchbar { max-width: 100%; }

/* =====================================================================
   v4 "Studio": light, airy, one typeface (Plus Jakarta Sans), soft depth.
   Structure: admin = light sidebar + top bar + cards; phone = hero + tiles.
   ===================================================================== */
:root {
  --paper: #F6F5FB; --surface: #FFFFFF; --ink: #1B1638; --ink-2: #5F5A78; --line: #E8E5F3; --line-strong: #CFCBE2;
  --petrol: #5B3FD9; --petrol-deep: #3B22A8; --petrol-wash: #EEEAFD;
  --sh-1: 0 1px 2px rgba(27, 22, 56, .04), 0 10px 28px -16px rgba(27, 22, 56, .14);
  --sh-2: 0 2px 4px rgba(27, 22, 56, .04), 0 22px 44px -22px rgba(27, 22, 56, .22);
  --shadow-1: var(--sh-1);
  --r-sheet: 20px; --r-ctl: 13px; --r-input: 13px;
}
body { background: var(--paper); color: var(--ink); font-size: 15.5px; letter-spacing: -.003em; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1, "lnum" 1; }
h1, h2, h3 { letter-spacing: -.022em; }
.muted, small { color: var(--ink-2); }

/* controls */
.btn { min-height: 46px; border-radius: 13px; font-weight: 700; font-size: 15px; border-color: var(--line-strong); box-shadow: 0 1px 1px rgba(27, 22, 56, .04); }
.btn:hover { border-color: #ADA8C8; background: #FBFAFE; }
.btn--primary { background: var(--petrol); border-color: var(--petrol); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 10px 20px -12px rgba(91, 63, 217, .9); }
.btn--primary:hover { background: #4A30C4; border-color: #4A30C4; }
.btn--sm { min-height: 38px; border-radius: 11px; font-size: 14px; padding: 0 14px; }
.btn--lg { min-height: 58px; border-radius: 17px; font-size: 17px; font-weight: 800; }
.btn--danger { background: #fff; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=time], input[type=search], input[type=number], input[type=month], input:not([type]), select, textarea {
  border-radius: 13px; border-color: var(--line-strong); background-color: #fff; font-size: 15.5px;
}
input:focus, select:focus, textarea:focus { border-color: var(--petrol); box-shadow: 0 0 0 4px rgba(91, 63, 217, .14); }
.field__label { font-size: 14px; font-weight: 700; color: #2B2550; }

/* surfaces */
.sheet, .panel, .filters, .list.sheet { border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-1); }
.panel__head h2, .sheet__title { font-size: 17px; font-weight: 800; }
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.page-head p { font-size: 15px; max-width: 62ch; }
.flash { border-radius: 14px; }

/* pills and badges: softer, tighter */
.pill, .badge { font-weight: 700; font-size: 12.5px; border-radius: 999px; }
.badge { display: inline-block; padding: 4px 10px; background: var(--paper); color: var(--ink-2); }
.badge--ok { background: var(--ok-wash); color: #145F40; }
.badge--warn { background: var(--warn-wash); color: var(--warn); }
.badge--bad { background: var(--bad-wash); color: var(--bad); }

/* figure cards (was one joined strip) */
.strip, .shell__main .strip { background: none; border: 0; border-radius: 0; overflow: visible; gap: 12px; box-shadow: none; }
.strip > div, .strip > div:nth-child(n), .strip--3 > div, .strip--3 > div:nth-child(n+3), .shell__main .strip > div {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--sh-1);
}
.strip dt { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.strip dd { font-size: 32px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; color: var(--ink); }
.strip dd.ok { color: var(--ok); } .strip dd.warn { color: #B26B00; }
.strip--3 { gap: 8px; }
.strip--3 > div, .strip--3 > div:nth-child(n+3) { padding: 12px 12px; border-radius: 16px; }
.strip--3 dd { font-size: clamp(17px, 5vw, 24px); }
@media (min-width: 1024px) { .shell__main .strip:not(.strip--3) { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* tables */
.table { font-size: 14.5px; }
.table th { padding: 12px 18px; font-size: 12.5px; font-weight: 700; color: #7A7693; background: #FBFAFE; border-bottom: 1px solid var(--line); }
.table td { padding: 15px 18px; border-top: 1px solid #EFEDF7; vertical-align: middle; }
.table tbody tr:hover { background: #FAF9FE; }
.table td b { font-weight: 700; }

/* ---- admin shell: light sidebar + top bar ---- */
.topbar { display: none; }
@media (min-width: 1024px) {
  .shell { grid-template-columns: 264px minmax(0, 1fr); }
  .sidebar { background: #fff; border-right: 1px solid var(--line); padding: 20px 14px 14px; gap: 14px; }
  .sidebar .brand { font-size: 16px; font-weight: 800; letter-spacing: -.02em; padding: 4px 8px 8px; }
  .sidenav { gap: 3px; }
  .sidenav a { position: relative; min-height: 42px; border-radius: 12px; color: #4B4668; font-weight: 600; font-size: 14.5px; }
  .sidenav a .icon { width: 19px; height: 19px; color: #8C88A3; }
  .sidenav a:hover { background: var(--paper); color: var(--ink); }
  .sidenav a[aria-current="page"] { background: var(--petrol-wash); color: var(--petrol-deep); font-weight: 800; }
  .sidenav a[aria-current="page"] .icon { color: var(--petrol); }
  .sidenav a[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--petrol); }
  .sidebar__user { border-top: 1px solid var(--line); }
  .topbar {
    display: flex; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 20; height: 68px; padding: 0 36px;
    background: rgba(246, 245, 251, .86); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line);
  }
  .topbar__search { flex: 1; max-width: 440px; position: relative; display: flex; align-items: center; margin: 0; }
  .topbar__search .icon { position: absolute; left: 14px; width: 18px; height: 18px; color: #8C88A3; pointer-events: none; }
  .topbar__search input { width: 100%; min-height: 42px; padding: 8px 14px 8px 42px; border-radius: 999px; border-color: var(--line); background: #fff; font-size: 14.5px; }
  .topbar__date { margin: 0 0 0 auto; text-align: right; font-size: 13.5px; font-weight: 700; line-height: 1.25; color: #2B2550; }
  .topbar__date small { display: block; font-weight: 500; font-size: 12.5px; }
  .topbar__me { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; line-height: 1.2; }
  .topbar__me:hover { border-color: var(--line-strong); }
  .topbar__me .avatar { width: 32px; height: 32px; font-size: 12px; }
  .topbar__me b { display: block; font-size: 13.5px; }
  .topbar__me small { font-size: 12px; }
  .shell__main .wrap { padding: 28px 36px 56px; }
  html { scroll-padding-top: 90px; }
}
.avatar { background: linear-gradient(140deg, #E4DEFC, #EAF4E6); color: var(--petrol-deep); font-weight: 800; }

/* ---- phone ---- */
.appbar { background: rgba(255, 255, 255, .92); border-bottom-color: transparent; }
.appbar .brand { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.hero h1 { font-weight: 800; letter-spacing: -.03em; }
.hero .hero__clock { font-weight: 800; letter-spacing: -.045em; }
.hero__actions { gap: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 6px; }
.tiles__item { display: grid; gap: 10px; align-content: start; padding: 14px 12px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-1); color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.tiles__item:active { transform: scale(.98); }
.tiles__item span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; }
.tiles__item b { font-size: 13.5px; line-height: 1.25; font-weight: 700; }
.tiles__item--a span { background: #EEEAFD; color: #5B3FD9; }
.tiles__item--b span { background: #FDF1D7; color: #8A5A00; }
.tiles__item--c span { background: #E7F4EC; color: #1B7F55; }
.sectionhead h2 { font-size: 19px; font-weight: 800; }
.ledger__row, .route__stop a { border-radius: 18px; box-shadow: var(--sh-1); }
.ledger__main b { font-weight: 700; }
.bottomnav { border-radius: 26px; box-shadow: 0 18px 40px -16px rgba(27, 22, 56, .4), 0 0 0 1px rgba(27, 22, 56, .05); }
.bottomnav a { font-size: 11.5px; font-weight: 700; color: #7A7693; }
.bottomnav a[aria-current="page"] { color: var(--petrol-deep); }
.period__chip { font-weight: 700; }
.sidebar__out span { display: none; }
@media (min-width: 1024px) {
  .sidebar__user { padding: 10px 0 0; }
  .sidebar__user .avatar, .sidebar__user .sidebar__who { display: none; }
  .sidebar__user form { width: 100%; }
  .sidebar__out { width: 100%; height: 42px; display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 0 12px; border-radius: 12px; font: inherit; font-weight: 600; font-size: 14.5px; color: #4B4668; }
  .sidebar__out span { display: inline; }
  .sidebar__out .icon { width: 19px; height: 19px; color: #8C88A3; }
}
.strip dd small { margin-left: 6px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.strip--3 dd { font-size: clamp(15px, 4.3vw, 22px); white-space: nowrap; }
.addbox, .addbox.panel, .addbox.sheet { border: 0; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.addbox[open] > .addbox__form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-1); }
.rowactions--wrap { display: grid; grid-template-columns: repeat(2, auto); justify-content: end; gap: 8px; min-width: 250px; }
.rowactions--wrap input[name=review_note] { grid-column: 1 / -1; order: 2; min-height: 38px; padding: 6px 12px; font-size: 14px; }
@media (max-width: 1023px) { .table td { vertical-align: top; } }

/* =====================================================================
   v5 structure: admin top menu, Live (inbox / map / team), split Visits,
   grouped Expenses; engineer Today, four-step visit form, month calendar.
   ===================================================================== */
.is-embed .topnav, .is-embed .appbar, .is-embed .bottomnav, .is-embed .moresheet, .is-embed .backlink, .is-embed .logfab { display: none !important; }
.is-embed .wrap, .is-embed .shell__main .wrap { padding: 22px 26px 40px; max-width: none; }
.is-embed { background: var(--paper); }

/* ---- admin: top menu ---- */
.topnav { display: none; }
@media (min-width: 1024px) {
  .shell.shell--top { display: block; min-height: 100vh; }
  .topnav { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 40; height: 64px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--line); }
  .topnav .brand { font-size: 16px; font-weight: 800; letter-spacing: -.02em; margin-right: 14px; white-space: nowrap; max-width: 260px; overflow: hidden; }
  .topnav .brand span { overflow: hidden; text-overflow: ellipsis; }
  .topnav__links { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
  .topnav__links > a, .topnav__menu > summary { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 11px; font-weight: 700; font-size: 14px; color: var(--ink-2); text-decoration: none; cursor: pointer; white-space: nowrap; list-style: none; }
  .topnav__menu > summary::-webkit-details-marker { display: none; }
  .topnav__links > a:hover, .topnav__menu > summary:hover { background: var(--paper); color: var(--ink); }
  .topnav__links > a[aria-current="page"], .topnav__menu[data-current] > summary { background: var(--petrol-wash); color: var(--petrol-deep); }
  .topnav__links em { font-style: normal; background: var(--gold); color: var(--gold-ink); border-radius: 99px; font-size: 11.5px; line-height: 1.5; padding: 0 7px; }
  .topnav__menu { position: relative; }
  .topnav__menu:not(.topnav__menu--me) > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }
  .topnav__drop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; min-width: 220px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-2); display: grid; gap: 2px; }
  .topnav__drop--right { left: auto; right: 0; }
  .topnav__drop a, .topnav__drop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; font: inherit; font-weight: 600; font-size: 14.5px; color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; }
  .topnav__drop a:hover, .topnav__drop button:hover { background: var(--paper); }
  .topnav__drop a[aria-current="page"] { background: var(--petrol-wash); color: var(--petrol-deep); }
  .topnav__drop .icon { width: 18px; height: 18px; color: #8C88A3; }
  .topnav__drop p { margin: 0; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); line-height: 1.3; }
  .topnav__drop p small { display: block; }
  .topnav__drop form { margin: 0; }
  .topnav__search { position: relative; display: flex; align-items: center; width: 230px; margin: 0; }
  .topnav__search .icon { position: absolute; left: 13px; width: 17px; height: 17px; color: #8C88A3; pointer-events: none; }
  .topnav__search input { width: 100%; min-height: 40px; padding: 7px 12px 7px 38px; border-radius: 999px; border-color: var(--line); background: var(--paper); font-size: 14px; }
  .topnav__menu--me > summary { padding: 3px; border-radius: 50%; }
  .topnav__menu--me .avatar { width: 36px; height: 36px; }
  .shell--top .appbar--mobile { display: none; }
  .shell--top .shell__main .wrap { padding: 28px 32px 56px; }
  html { scroll-padding-top: 84px; }
}

/* shared small parts */
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font-weight: 700; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: #ADA8C8; }
.chip[aria-current="true"] { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.chip b { font-weight: 800; opacity: .8; }
.gpschip { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 700; color: #8FE3F0; }
.gpschip i { width: 9px; height: 9px; border-radius: 50%; background: #7FA7B0; flex: none; }
.gpschip.is-ready i, .gpschip.is-locked i { background: #19D3E8; box-shadow: 0 0 0 4px rgba(25, 211, 232, .25); }
.gpschip--light { color: var(--ink-2); }
.gpschip--light.is-locked { color: var(--petrol); }
.gpschip--light.is-locked i { background: var(--petrol); box-shadow: 0 0 0 4px rgba(91, 63, 217, .18); }
.gpschip--light.is-searching i { background: #E0940B; animation: gpsblink 1s infinite alternate; }
.gpschip--light.is-denied, .gpschip--light.is-error, .gpschip--light.is-unsupported, .gpschip--light.is-insecure { color: var(--bad); }
.gpschip--light.is-denied i, .gpschip--light.is-error i, .gpschip--light.is-unsupported i, .gpschip--light.is-insecure i { background: var(--bad); }
@keyframes gpsblink { to { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .gpschip--light.is-searching i { animation: none; } }
.timeline { padding: 4px 16px; margin-bottom: 20px; }
.timeline__row { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 0; color: var(--ink); text-decoration: none; }
.timeline__row + .timeline__row { border-top: 1px solid #EFEDF7; }
.timeline__row time { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.timeline__row b { display: block; font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline__row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline__row .pill { font-size: 12px; }

/* ---- engineer: Today ---- */
.page-home .appbar { display: none; }
.page-home .wrap { padding-top: calc(18px + var(--sat)); }
.today { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.today__date { margin: 0 0 2px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.today h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.today__me { flex: none; text-decoration: none; }
.today__me .avatar { width: 42px; height: 42px; }
.hero.startcard, .has-bottomnav .wrap--narrow > .hero.startcard { margin: 0 0 14px; padding: 18px; border-radius: 24px; min-height: 0; display: block; box-shadow: var(--sh-2); }
.startcard__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: relative; z-index: 1; }
.startcard .roundbtn { width: 36px; height: 36px; }
.startcard__title { position: relative; z-index: 1; margin: 14px 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -.025em; color: inherit; }
.startcard__lead { position: relative; z-index: 1; margin: 0 0 14px; font-size: 14px; opacity: .85; }
.startcard .btn { position: relative; z-index: 1; min-height: 54px; }
.daycard { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; margin-bottom: 6px; }
.ring { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--petrol) calc(var(--p, 0) * 1%), var(--petrol-wash) 0); }
.ring > div { width: 72px; height: 72px; border-radius: 50%; background: #fff; display: grid; place-content: center; text-align: center; line-height: 1.05; }
.ring b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.ring small { font-size: 11.5px; }
.daycard__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 0; }
.daycard__nums dd { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.daycard__nums dt { font-size: 12.5px; color: var(--ink-2); }
.swipe { display: flex; gap: 10px; overflow-x: auto; margin: 0 calc(-16px - var(--sar)) 4px calc(-16px - var(--sal)); padding: 2px calc(16px + var(--sar)) 12px calc(16px + var(--sal)); scroll-snap-type: x proximity; scrollbar-width: none; }
.swipe::-webkit-scrollbar { display: none; }
.swipe__card { flex: none; width: 210px; scroll-snap-align: start; padding: 13px 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-1); color: var(--ink); text-decoration: none; }
.swipe__card b { display: block; margin-top: 8px; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swipe__card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- engineer: four tabs + log button ---- */
.bottomnav.bottomnav--tabs { left: 0; right: 0; bottom: 0; grid-template-columns: repeat(4, 1fr); border-radius: 0; border-top: 1px solid var(--line); box-shadow: none; padding: 8px calc(8px + var(--sar)) calc(8px + var(--sab)) calc(8px + var(--sal)); align-items: start; }
.bottomnav--tabs a { min-height: 52px; padding: 0 2px; gap: 3px; font-size: 11.5px; font-weight: 700; color: #7A7693; }
.bottomnav--tabs a i { display: grid; place-items: center; width: 56px; height: 30px; border-radius: 15px; font-style: normal; }
.bottomnav--tabs a[aria-current="page"] { color: var(--petrol-deep); }
.bottomnav--tabs a[aria-current="page"] i { background: var(--petrol-wash); }
.has-bottomnav .wrap { padding-bottom: 120px; }
.logfab { position: fixed; right: calc(16px + var(--sar)); bottom: 86px; z-index: 29; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border-radius: 26px; background: var(--gold); color: var(--gold-ink); font-weight: 800; font-size: 15px; text-decoration: none; box-shadow: 0 14px 26px -10px rgba(204, 140, 10, .75); margin-bottom: var(--sab); }
.logfab .icon { stroke-width: 2.4; }
.statementbar { bottom: 150px; }
@media (min-width: 900px) { .is-engineer .logfab { display: none; } }

/* ---- engineer: visit form in four steps ---- */
.wiz { margin-bottom: 16px; }
.wiz__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 24px; }
.wiz__step { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.wiz__bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 14px; }
.wiz__bar i { height: 5px; border-radius: 5px; background: #D5DEE2; transition: background .2s; }
.wiz__bar i.is-done { background: var(--petrol); }
.wiz__title { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; outline: none; }
.wiz__sub { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); min-height: 1px; }
form.is-wiz section.section > h2:first-child { display: none; }
form.is-wiz section.section { border-top: 0; padding-top: 0; margin-top: 0; }
form.is-wiz.sheet { background: none; border: 0; box-shadow: none; overflow: visible; border-radius: 0; }
form.is-wiz section.section { padding: 0 0 6px; border: 0; }
form.is-wiz .submitbar { margin: 0; border-radius: 18px; }
.wiz__confirm .kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px 12px; margin: 0 0 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-1); font-size: 14.5px; }
.wiz__confirm .kv span { color: var(--ink-2); }
.wiz__confirm .kv div { font-weight: 600; overflow-wrap: anywhere; white-space: pre-wrap; }
.wizfoot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 12px calc(16px + var(--sar)) calc(12px + var(--sab)) calc(16px + var(--sal)); background: #fff; border-top: 1px solid var(--line); }
.wizfoot .btn { min-height: 50px; }
.wizfoot #wizBack[hidden] + #wizNext { grid-column: 1 / -1; }
.wizfoot.is-last { grid-template-columns: 1fr; position: static; padding: 0; border: 0; background: none; margin: 4px 0 12px; }
form.is-wiz { padding-bottom: 90px; }
@media (min-width: 700px) { .wizfoot { position: static; padding: 0; border: 0; background: none; margin-top: 18px; max-width: 420px; } form.is-wiz { padding-bottom: 0; } }

/* ---- engineer: month calendar ---- */
.cal { padding: 14px 14px 12px; margin-bottom: 12px; }
.cal__head { display: flex; justify-content: space-between; align-items: center; text-align: center; margin-bottom: 8px; }
.cal__head h2 { margin: 0; font-size: 17px; font-weight: 800; }
.cal__head small { display: block; }
.cal__head a.iconbtn:first-child .icon { transform: scaleX(-1); }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.cal__wd { font-size: 11.5px; font-weight: 600; color: #8C88A3; padding: 4px 0; }
.cal__day { position: relative; display: grid; place-items: center; height: 44px; border-radius: 13px; font-weight: 700; font-size: 14.5px; color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
a.cal__day:hover { background: var(--paper); }
.cal__day.is-future { color: #B9C4C9; font-weight: 500; }
.cal__day.is-today { box-shadow: inset 0 0 0 1.5px var(--petrol); }
.cal__day.is-on { background: var(--petrol-deep); color: #fff; box-shadow: none; }
.cal__dots { position: absolute; bottom: 5px; left: 0; right: 0; display: flex; justify-content: center; gap: 3px; }
.cal__dots b { width: 5px; height: 5px; border-radius: 50%; background: var(--petrol); }
.cal__day.is-on .cal__dots b { background: var(--gold); }
.cal__alt { text-align: center; margin: 4px 0 0; }
.cal__alt a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.cal__alt .icon { width: 17px; height: 17px; }

/* ---- admin: Live ---- */
.live { display: grid; gap: 16px; }
.live__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.live__head h2 { margin: 0; font-size: 16px; font-weight: 800; }
.live__head a { font-size: 13.5px; font-weight: 700; }
.live__inbox, .live__team { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.inboxcard { padding: 13px 14px; margin-bottom: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-1); }
.inboxcard b { display: block; margin-top: 6px; font-size: 14.5px; }
.inboxcard small { display: block; }
.inboxcard__act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.inboxcard__act form { margin: 0; }
.inboxcard__act .btn { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.live__more { display: block; margin: 2px 0 14px; font-size: 13.5px; font-weight: 700; }
.live__map { position: relative; min-height: 420px; border-radius: 20px; overflow: hidden; background: #E3ECEA; border: 1px solid var(--line); }
.live__map .map--live { position: absolute; inset: 0; height: auto; min-height: 0; border-radius: 0; border: 0; z-index: 0; }
.live__kpis { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 5; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0; pointer-events: none; }
.live__kpis > div { padding: 10px 13px; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--sh-1); }
.live__kpis dt { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.live__kpis dd { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.live__kpis dd.ok { color: var(--ok); } .live__kpis dd.warn { color: #B26B00; }
.live__kpis dd small { margin-left: 5px; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.live__map .leaflet-top { top: 150px; }
.live__legend { position: absolute; left: 12px; bottom: 12px; z-index: 5; margin: 0; padding: 8px 12px; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 13px; font-size: 12.5px; }
.live__nomap { position: absolute; inset: 150px 12px 12px; display: grid; place-content: center; justify-items: center; text-align: center; }
.teamlist { list-style: none; margin: 0; padding: 0; }
.teamlist li + li { border-top: 1px solid #EFEDF7; }
.teamlist a { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; color: var(--ink); text-decoration: none; }
.teamlist b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teamlist small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teamlist em { font-style: normal; font-weight: 800; font-size: 16px; }
.teamlist .is-idle b, .teamlist .is-idle em { color: #9A96B0; }
.teamlist .is-idle .avatar { background: #EFEDF7; color: #9A96B0; }
@media (min-width: 1024px) {
  .page-live .shell__main .wrap { padding: 0; max-width: none; }
  .page-live .flash { margin: 12px 16px 0; }
  .live { grid-template-columns: 330px minmax(0, 1fr) 290px; gap: 0; height: calc(100vh - 64px); }
  .live__inbox, .live__team { border: 0; border-radius: 0; padding: 18px; overflow-y: auto; }
  .live__inbox { border-right: 1px solid var(--line); }
  .live__team { border-left: 1px solid var(--line); }
  .live__map { border: 0; border-radius: 0; min-height: 0; }
  .live__kpis { grid-template-columns: repeat(4, 1fr); left: 16px; right: 16px; top: 16px; gap: 10px; }
  .live__map .leaflet-top { top: 86px; }
  .live__nomap { inset: 90px 16px 16px; }
}

/* ---- admin: Visits, list beside the open visit ---- */
.split__head { padding: 0 0 12px; }
.split__title h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.split__title p { margin: 0 0 10px; font-size: 13.5px; }
.split__filters { margin-top: 10px; }
.split__filters > summary { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); cursor: pointer; list-style: none; }
.split__filters > summary::-webkit-details-marker { display: none; }
.split__filters > summary:hover { background: var(--paper); }
.split__filters > summary .icon { width: 17px; height: 17px; }
.split__filters > summary em { font-style: normal; background: var(--petrol-wash); color: var(--petrol-deep); border-radius: 99px; padding: 0 8px; font-size: 12px; }
.split__filters .filters { margin: 8px 0 10px; box-shadow: none; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 12px 0; border-radius: 16px; }
.split__export { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.vlist { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.vrow { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 13px 16px; color: var(--ink); text-decoration: none; border-bottom: 1px solid #EFEDF7; }
.vrow:last-child { border-bottom: 0; }
.vrow:hover { background: #FAF9FE; }
.vrow__dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; }
.vrow__main b { display: block; font-size: 14.5px; }
.vrow__main small { display: block; }
.vrow__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 5px 0 2px; font-size: 12.5px; }
.vrow__tags .pill { font-size: 11.5px; padding: 2px 8px; }
.vrow__when { text-align: right; white-space: nowrap; }
.vrow__when b { display: block; font-size: 13px; }
.vrow__when small { display: block; font-size: 12px; }
.split__detail { display: none; }
@media (min-width: 1024px) {
  .page-split .shell__main .wrap { padding: 0; max-width: none; }
  .page-split .flash { margin: 12px 16px 0; }
  .split { display: grid; grid-template-columns: 410px minmax(0, 1fr); height: calc(100vh - 64px); }
  .split__list { background: #fff; border-right: 1px solid var(--line); overflow-y: auto; }
  .split__head { padding: 18px 18px 12px; border-bottom: 1px solid #EFEDF7; }
  .vlist { border: 0; border-radius: 0; }
  .vrow { padding: 13px 18px; }
  .vrow[aria-current="true"] { background: var(--petrol-wash); box-shadow: inset 4px 0 0 var(--petrol); }
  .split .pager { padding: 12px 18px; }
  .split__detail { display: block; min-width: 0; }
  .split__detail iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--paper); }
  .split__detail .empty { height: 100%; display: grid; place-content: center; justify-items: center; }
}

/* ---- admin: Expenses grouped by engineer ---- */
.claimbar { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.claimbar__pick { display: flex; gap: 8px; align-items: center; margin: 0; flex-wrap: wrap; }
.claimbar__pick input, .claimbar__pick select { min-height: 38px; padding: 6px 12px; font-size: 14px; width: auto; }
.claimgrid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1100px) { .claimgrid { grid-template-columns: 1fr 1fr; } }
.claimcard { padding: 16px 18px 6px; margin: 0; overflow: visible; }
.claimcard__head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; }
.claimcard__head > div { flex: 1; min-width: 0; line-height: 1.3; }
.claimcard__head small { display: block; }
.claimcard__head form { margin: 0; }
.claim { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid #EFEDF7; flex-wrap: wrap; }
.claim__main { flex: 1 1 220px; min-width: 0; font-size: 14.5px; }
.claim__main small { display: block; margin-top: 2px; }
.claim__links a { margin-right: 12px; font-weight: 700; }
.claim__act { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.claim__act form { margin: 0; }
.claim__act .btn { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.claim__reject > summary { list-style: none; cursor: pointer; }
.claim__reject > summary::-webkit-details-marker { display: none; }
.claim__reject[open] { flex-basis: 100%; }
.claim__reject[open] > summary { display: none; }
.claim__reject form { display: flex; gap: 8px; }
.claim__reject input { flex: 1; min-height: 36px; padding: 6px 12px; font-size: 14px; }
input[type=month] { font: inherit; font-size: 14.5px; }
@media (min-width: 1024px) {
  .page-live .shell__main .wrap { display: flex; flex-direction: column; height: calc(100vh - 64px); }
  .page-live .live { flex: 1; min-height: 0; height: auto; }
}
.cal__head .iconbtn { color: var(--ink); border: 1px solid var(--line); border-radius: 12px; width: 38px; height: 38px; }
.cal__head span.iconbtn { border-color: transparent; }
.page-history .page-head--split { flex-wrap: nowrap; align-items: center; }
.page-history .page-head--split > div:first-child { flex: 1 1 auto; }
.page-history .page-head h1 { margin: 0; }
.logfab { width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 50%; }
.logfab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.logfab .icon { width: 26px; height: 26px; }
.live__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; right: auto; max-width: calc(100% - 24px); }
.live__legend li { display: inline-flex; align-items: center; }
.live__legend i.swatch { display: inline-block; flex: none; width: 10px; height: 10px; min-width: 0; border-radius: 50%; margin-right: 6px; padding: 0; }
.wizfoot.is-last { margin-bottom: 96px; }
@media (min-width: 700px) { .wizfoot.is-last { margin-bottom: 12px; } }
/* engineer on a tablet or computer: the top bar is the menu (no bottom tabs there) */
@media (min-width: 760px) {
  .page-home .appbar { display: flex; }
  .page-home .wrap { padding-top: 22px; }
  .is-engineer .logfab, .logfab { display: none; }
  .has-bottomnav:not(.is-admin) .wrap { padding-bottom: 48px; }
  .statementbar { bottom: 16px; }
}
@media (min-width: 760px) { .today__me { display: none; } }

/* ---- engineer Today: big map on top, white "start" sheet floating over its lower edge ---- */
.today { margin-bottom: 12px; }
.homecard { margin: 0 0 14px; }
.hero.startcard.startsheet, .has-bottomnav .wrap--narrow > .homecard .hero.startcard.startsheet {
  position: relative; z-index: 2; margin: 0; padding: 16px 16px 16px; min-height: 0; display: block; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 24px 48px -24px rgba(27, 22, 56, .35), 0 2px 6px rgba(27, 22, 56, .05);
}
.startsheet .scene__canvas { display: none; }
.startsheet .startcard__title { margin: 12px 0 2px; font-size: 25px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--ink); }
.startsheet .startcard__lead { margin: 0 0 14px; font-size: 14.5px; color: var(--ink-2); opacity: 1; }
.startsheet .roundbtn { width: 36px; height: 36px; background: var(--paper); border: 1px solid var(--line); color: #4B4668; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.startsheet .btn--main, .hero[data-tone="deep"].startsheet .btn--main { min-height: 56px; border-radius: 18px; background: var(--gold); border-color: var(--gold); color: var(--gold-ink); box-shadow: 0 14px 26px -14px rgba(204, 140, 10, .9); }
.gpschip--light.is-ready { color: var(--petrol); }
.gpschip--light.is-ready i { background: var(--petrol); box-shadow: 0 0 0 4px rgba(91, 63, 217, .16); }

.homemap { position: relative; height: clamp(250px, 40vh, 340px); background: #E3ECEA; overflow: hidden; }
.homemap[hidden] { display: none; }
.homemap__map { position: absolute; inset: 0; z-index: 0; background: #E3ECEA; }
.homemap::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 96px; z-index: 1; pointer-events: none; background: linear-gradient(rgba(246, 245, 251, .9), rgba(246, 245, 251, 0)); }
.homemap__bar { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.homemap__me { display: inline-flex; align-items: center; gap: 10px; min-width: 0; padding: 5px 16px 5px 5px; border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; line-height: 1.2; box-shadow: 0 8px 20px -8px rgba(27, 22, 56, .4); }
.homemap__me .avatar { width: 38px; height: 38px; flex: none; }
.homemap__me span { min-width: 0; }
.homemap__me b { display: block; font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.homemap__me small { display: block; font-size: 12px; white-space: nowrap; }
.homemap__near { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--petrol); box-shadow: 0 8px 20px -8px rgba(27, 22, 56, .4); }
.homemap__key { position: absolute; left: 12px; bottom: 76px; z-index: 2; display: flex; gap: 10px; margin: 0; padding: 5px 10px; border-radius: 12px; background: rgba(255, 255, 255, .94); font-size: 11.5px; font-weight: 700; color: #2B2550; box-shadow: 0 4px 12px -6px rgba(27, 22, 56, .4); }
.homemap__key span { display: inline-flex; align-items: center; gap: 5px; }
.homemap__key i { width: 10px; height: 10px; border-radius: 50%; box-sizing: border-box; }
.homemap__key .k-me { background: #1487E0; }
.homemap__key .k-visit { background: var(--petrol); }
.homemap__key .k-site { background: #fff; border: 2px solid var(--petrol); }
.homemap .leaflet-bottom { bottom: 66px; }
.homemap .leaflet-control-attribution { font-size: 9.5px; background: rgba(255, 255, 255, .75); border-radius: 6px 0 0 6px; }
/* with the map: it runs edge to edge under the status bar, and the sheet overlaps it */
.home-has-map .today { display: none; }
.home-has-map.page-home .wrap { padding-top: 0; }
.home-has-map .homemap { margin: 0 calc(-16px - var(--sar)) 0 calc(-16px - var(--sal)); }
.home-has-map .homemap__bar { top: calc(12px + var(--sat)); }
.home-has-map .homemap { height: calc(clamp(250px, 40vh, 340px) + var(--sat)); }
.home-has-map .startsheet { margin-top: -62px !important; }
@media (min-width: 760px) {
  .home-has-map.page-home .wrap { padding-top: 22px; }
  .home-has-map .homemap { margin: 0; border-radius: 26px; height: 340px; }
  .home-has-map .homemap__bar { top: 14px; }
  .home-has-map .homemap__me { display: none; }
  .home-has-map .homemap__bar { justify-content: flex-end; }
  .home-has-map .startsheet { margin: -62px 22px 0 !important; }
}

/* =====================================================================
   v7 "Violet": bold violet panels with round sky-blue shapes, amber
   action buttons, pill controls, solid violet bars. (Original design for
   Suprixx Field Activity; palette: violet / sky / amber on white.)
   ===================================================================== */
:root {
  --violet: #5B3FD9; --violet-deep: #3B22A8; --violet-night: #2C1785; --sky: #34BDF7; --sky-deep: #1E8FE0; --amber: #FFB01F; --amber-ink: #2A1A00;
  --petrol: var(--violet); --petrol-deep: var(--violet-deep); --petrol-wash: #EEEAFD; --gold: var(--amber); --gold-ink: var(--amber-ink);
  --paper: #F6F5FB; --ink: #1B1638; --ink-2: #5F5A78; --line: #E8E5F3; --line-strong: #CFCBE2; --accent: var(--violet);
}
body { background: var(--paper); color: var(--ink); }
a { color: var(--violet); }

/* pill controls */
.btn { border-radius: 999px; }
.btn--lg { border-radius: 999px; }
.btn--sm { border-radius: 999px; }
.btn--primary { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 12px 22px -12px rgba(91, 63, 217, .95); }
.btn--primary:hover { background: #4A30C4; border-color: #4A30C4; }
.btn--main, .startsheet .btn--main, .hero[data-tone="deep"].startsheet .btn--main, .hero[data-tone="deep"] .btn--main { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); border-radius: 999px; box-shadow: 0 14px 26px -14px rgba(224, 140, 0, .95); }
.btn--main:hover, .hero[data-tone="deep"] .btn--main:hover { background: #F5A40F; border-color: #F5A40F; color: var(--amber-ink); }
input:focus, select:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(91, 63, 217, .16); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=time], input[type=search], input[type=number], input[type=month], input:not([type]), select, textarea { border-radius: 16px; }
.chip[aria-current="true"], .period__chip[aria-current="true"], .chips .is-on { background: var(--violet); border-color: var(--violet); color: #fff; }
.avatar { background: linear-gradient(140deg, #E4DEFC, #D7F0FD); color: var(--violet-deep); }

/* ---- violet top bar with round shapes (engineer pages; admin on phones) ---- */
.appbar, .shell--top .appbar--mobile { position: sticky; background: linear-gradient(135deg, #6A4BE8 0%, var(--violet) 45%, var(--violet-deep) 100%); border: 0; border-radius: 0 0 26px 26px; overflow: hidden; color: #fff; box-shadow: 0 14px 30px -18px rgba(59, 34, 168, .8); }
.appbar::before { content: ""; position: absolute; right: -46px; top: -70px; width: 170px; height: 170px; border-radius: 50%; background: var(--sky); opacity: .9; pointer-events: none; }
.appbar::after { content: ""; position: absolute; left: 34%; top: -40px; width: 90px; height: 90px; border-radius: 50%; background: rgba(255, 255, 255, .09); pointer-events: none; }
.appbar__row { position: relative; z-index: 1; padding-top: 12px; padding-bottom: 14px; }
.appbar .brand, .appbar .brand span { color: #fff; }
.appbar .brand__mark { color: var(--amber); }
.appbar__nav a:not(.btn) { color: rgba(255, 255, 255, .82); font-weight: 700; }
.appbar__nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .14); }
.appbar__nav a[aria-current="page"] { background: #fff; color: var(--violet-deep); }
.appbar .btn--primary, .appbar .iconbtn--accent { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); box-shadow: none; }
.appbar .iconbtn { color: #fff; }
.appbar .avatar { background: #fff; color: var(--violet-deep); box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.appbar__me[aria-current="page"] .avatar { box-shadow: 0 0 0 3px var(--amber); }
.backlink { color: var(--violet); font-weight: 700; }

/* ---- violet bottom bar ---- */
.bottomnav, .bottomnav.bottomnav--tabs { background: linear-gradient(135deg, #6447E2, var(--violet-deep)); border: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -10px 30px -14px rgba(59, 34, 168, .7); }
.bottomnav a, .bottomnav--tabs a, .bottomnav button { color: rgba(255, 255, 255, .72); }
.bottomnav a[aria-current="page"], .bottomnav--tabs a[aria-current="page"] { color: #fff; }
.bottomnav--tabs a[aria-current="page"] i { background: rgba(255, 255, 255, .2); }
.bottomnav--tabs a[aria-current="page"] i::after { content: ""; position: absolute; }
.bottomnav.bottomnav--admin { left: 0; right: 0; bottom: 0; border-radius: 24px 24px 0 0; padding: 6px 8px calc(6px + var(--sab)); }
.bottomnav__plus, .bottomnav .bottomnav__plus { background: var(--amber); color: var(--amber-ink); box-shadow: 0 0 0 5px rgba(255, 255, 255, .16), 0 12px 22px -8px rgba(0, 0, 0, .45); }
.bottomnav a.bottomnav__log, .bottomnav a.bottomnav__log span { color: #fff; }
.logfab { background: var(--amber); color: var(--amber-ink); box-shadow: 0 14px 26px -10px rgba(224, 140, 0, .85); }

/* ---- admin top menu in violet ---- */
@media (min-width: 1024px) {
  .topnav { background: linear-gradient(100deg, #6447E2 0%, var(--violet) 40%, var(--violet-deep) 100%); border-bottom: 0; overflow: visible; box-shadow: 0 10px 26px -18px rgba(59, 34, 168, .9); }
  .topnav .brand, .topnav .brand span { color: #fff; }
  .topnav .brand__mark { color: var(--amber); }
  .topnav__links > a, .topnav__menu > summary { color: rgba(255, 255, 255, .84); }
  .topnav__links > a:hover, .topnav__menu > summary:hover { background: rgba(255, 255, 255, .14); color: #fff; }
  .topnav__links > a[aria-current="page"], .topnav__menu[data-current] > summary { background: #fff; color: var(--violet-deep); }
  .topnav__links em { background: var(--amber); color: var(--amber-ink); }
  .topnav__search input { background: rgba(255, 255, 255, .16); border-color: transparent; color: #fff; }
  .topnav__search input::placeholder { color: rgba(255, 255, 255, .75); }
  .topnav__search input:focus { background: #fff; color: var(--ink); }
  .topnav__search input:focus::placeholder { color: #8C88A3; }
  .topnav__search .icon { color: rgba(255, 255, 255, .8); }
  .topnav__search:focus-within .icon { color: #8C88A3; }
  .topnav__menu--me .avatar { background: #fff; color: var(--violet-deep); }
  .topnav__drop a[aria-current="page"] { background: var(--petrol-wash); color: var(--violet-deep); }
  .vrow[aria-current="true"] { background: #F1EEFE; box-shadow: inset 4px 0 0 var(--violet); }
}

/* ---- sign-in and password pages: violet screen, round shapes, white sheet ---- */
.page-login { background: var(--violet-deep); }
.authsplit { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(160deg, #6E50EC 0%, var(--violet) 42%, var(--violet-deep) 100%); grid-template-columns: none; }
.authsplit::before { content: ""; position: absolute; right: -90px; top: -110px; width: 300px; height: 300px; border-radius: 50%; background: var(--sky); pointer-events: none; }
.authsplit::after { content: ""; position: absolute; left: -70px; top: 150px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255, 255, 255, .1); box-shadow: 280px -40px 0 -30px rgba(255, 255, 255, .08), 40px 420px 0 40px rgba(30, 143, 224, .55); pointer-events: none; }
.authscene, .authside { display: none !important; }
.authtop { display: block; position: relative; z-index: 1; flex: 1 0 auto; padding: calc(56px + var(--sat)) 24px 30px; text-align: center; color: #fff; background: none; min-height: 0; }
.authtop__mark { width: 96px; height: 96px; color: var(--amber); overflow: visible; filter: drop-shadow(0 12px 18px rgba(20, 8, 80, .35)); }
.authtop__mark .m2, .authtop__mark .m3 { color: #fff; opacity: .55; }
.authtop__name { margin: 10px 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.12; color: #fff; max-width: none; }
.authtop__lead { margin: 0 auto; max-width: 300px; font-size: 15px; font-weight: 500; line-height: 1.45; color: rgba(255, 255, 255, .86); letter-spacing: 0; }
.authsplit .auth { position: relative; z-index: 1; width: 100%; max-width: none; margin: 0; padding: 28px 24px calc(26px + var(--sab)); background: #fff; border-radius: 34px 34px 0 0; box-shadow: 0 -18px 40px -20px rgba(20, 8, 80, .5); }
.authsplit .auth > * { max-width: 420px; margin-left: auto; margin-right: auto; }
.authtop ~ .auth .auth__mark { display: none; }
.authtop ~ .auth .auth__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.authtop ~ .auth .auth__sub { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin-bottom: 18px; }
.auth__svg { color: var(--violet); }
.auth .btn--primary.btn--lg { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); box-shadow: 0 14px 26px -14px rgba(224, 140, 0, .95); }
.auth .btn--primary.btn--lg:hover { background: #F5A40F; border-color: #F5A40F; }
.auth .langs a[aria-current="true"], .auth .langs .is-on { background: var(--violet); border-color: var(--violet); color: #fff; }
/* pages without the brand block (forgot / new password): the sheet is a centred card */
.authsplit > .auth:first-of-type:not(.authtop ~ .auth) { margin: auto 0 0; }
@media (min-width: 900px) {
  .authsplit { justify-content: center; align-items: center; padding: 40px 20px; }
  .authsplit::before { width: 520px; height: 520px; right: -160px; top: -200px; }
  .authsplit::after { left: 6%; top: 58%; width: 240px; height: 240px; box-shadow: 46vw -52vh 0 -60px rgba(255, 255, 255, .08), -120px 220px 0 60px rgba(30, 143, 224, .55); }
  .authtop { flex: 0 0 auto; padding: 0 24px 26px; }
  .authsplit .auth { max-width: 460px; border-radius: 30px; padding: 30px 32px 26px; box-shadow: 0 40px 80px -40px rgba(20, 8, 80, .7); }
}

/* ---- Today: shortcut tiles ---- */
.homemap__near { color: var(--violet); }
.homemap__key .k-visit { background: var(--violet); }
.homemap__key .k-site { border-color: var(--violet); }
.startsheet .startcard__title { color: var(--ink); }
.ring { background: conic-gradient(var(--violet) calc(var(--p, 0) * 1%), #E4DEFC 0); }
.cal__day.is-on { background: var(--violet); }
.cal__day.is-today { box-shadow: inset 0 0 0 1.5px var(--violet); }
.cal__day.is-on .cal__dots b { background: var(--amber); }
.wiz__bar i.is-done { background: var(--violet); }
.lock[data-state="locked"] { background: linear-gradient(135deg, var(--violet), var(--violet-night)); }
.bottomnav--tabs a[aria-current="page"] i { background: #fff; color: var(--violet-deep); }
.bottomnav a, .bottomnav button, .bottomnav a span, .bottomnav button span { color: rgba(255, 255, 255, .78); }
.bottomnav a[aria-current="page"], .bottomnav a[aria-current="page"] span, .bottomnav .bottomnav__log, .bottomnav .bottomnav__log span { color: #fff; }
.bottomnav--admin a[aria-current="page"] .icon { color: #fff; }
.topnav .btn--primary { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); box-shadow: none; }
.topnav .btn--primary:hover { background: #F5A40F; border-color: #F5A40F; }
.authtop ~ .auth .auth__sub { display: block; }

/* =====================================================================
   v8 "Suprixx Field Visit Management": royal purple + deep navy, white
   cards, green = completed, orange = pending, red = overdue.
   Engineer: dashboard home, 5-item bottom bar with a centre + button.
   ===================================================================== */
:root {
  --violet: #5B34E6; --violet-deep: #34209E; --violet-night: #151345; --navy: #1C1A6E;
  --petrol: var(--violet); --petrol-deep: var(--violet-deep); --petrol-wash: #EFEBFE;
  --grad-brand: linear-gradient(150deg, #6C40F2 0%, #4627C6 48%, #1C1A6E 100%);
  --grad-btn: linear-gradient(120deg, #6C40F2 0%, #3F24C0 100%);
  --orange: #F5860F; --gold: var(--violet); --gold-ink: #fff;
}
.btn--primary { background: var(--grad-btn); border-color: transparent; color: #fff; box-shadow: 0 14px 24px -14px rgba(70, 39, 198, .95); }
.btn--primary:hover { background: linear-gradient(120deg, #5F35E4, #351DA8); border-color: transparent; }
.btn--main, .startsheet .btn--main, .hero[data-tone="deep"].startsheet .btn--main, .hero[data-tone="deep"] .btn--main,
.auth .btn--primary.btn--lg { background: var(--grad-btn); border-color: transparent; color: #fff; box-shadow: 0 16px 28px -14px rgba(70, 39, 198, .95); }
.btn--main:hover, .hero[data-tone="deep"] .btn--main:hover, .auth .btn--primary.btn--lg:hover { background: linear-gradient(120deg, #5F35E4, #351DA8); border-color: transparent; color: #fff; }

/* top bars */
.appbar, .shell--top .appbar--mobile { background: var(--grad-brand); box-shadow: 0 14px 30px -18px rgba(28, 26, 110, .85); }
.appbar::before { background: rgba(255, 255, 255, .1); right: -50px; top: -84px; width: 190px; height: 190px; opacity: 1; }
.appbar::after { background: rgba(255, 255, 255, .07); }
.appbar .brand__mark, .topnav .brand__mark { color: #fff; }
.appbar .btn--primary, .appbar .iconbtn--accent, .topnav .btn--primary { background: #fff; border-color: #fff; color: var(--violet-deep); box-shadow: none; }
.topnav .btn--primary:hover { background: #F1EEFE; border-color: #F1EEFE; }
.appbar__me[aria-current="page"] .avatar { box-shadow: 0 0 0 3px rgba(255, 255, 255, .7); }
@media (min-width: 1024px) {
  .topnav { background: var(--grad-brand); }
  .topnav__links em { background: var(--orange); color: #fff; }
}

/* bottom bar: white, five places, purple + in the middle */
.bottomnav, .bottomnav.bottomnav--tabs, .bottomnav.bottomnav--admin { background: #fff; border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; box-shadow: 0 -12px 30px -18px rgba(28, 26, 110, .35); overflow: visible; }
.bottomnav.bottomnav--five { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; }
.bottomnav a, .bottomnav button, .bottomnav a span, .bottomnav button span, .bottomnav .bottomnav__log, .bottomnav .bottomnav__log span { color: #8C88A3; }
.bottomnav a[aria-current="page"], .bottomnav a[aria-current="page"] span, .bottomnav--admin a[aria-current="page"] .icon { color: var(--violet); }
.bottomnav--tabs a i, .bottomnav--tabs a[aria-current="page"] i { background: none; width: auto; height: 28px; color: inherit; }
.bottomnav--tabs a[aria-current="page"] .icon { stroke-width: 2.4; }
.bottomnav__add { display: grid; place-items: center; min-height: 52px; text-decoration: none; }
.bottomnav__add b { display: grid; place-items: center; width: 56px; height: 56px; margin-top: -30px; border-radius: 50%; background: var(--grad-btn); color: #fff; box-shadow: 0 0 0 6px #fff, 0 14px 22px -8px rgba(70, 39, 198, .8); }
.bottomnav__add .icon { width: 26px; height: 26px; color: #fff; stroke-width: 2.4; }
.bottomnav__plus, .bottomnav .bottomnav__plus { background: var(--grad-btn); color: #fff; box-shadow: 0 0 0 6px #fff, 0 14px 22px -8px rgba(70, 39, 198, .8); }
.bottomnav .bottomnav__plus .icon { color: #fff; }
.has-bottomnav .wrap { padding-bottom: 124px; }
.statementbar { bottom: 108px; }

/* ---- Home dashboard ---- */
.dash { margin: 0 calc(-16px - var(--sar)) 0 calc(-16px - var(--sal)); padding: calc(22px + var(--sat)) calc(20px + var(--sar)) 92px calc(20px + var(--sal)); background: var(--grad-brand); color: #fff; border-radius: 0 0 30px 30px; position: relative; overflow: hidden; }
.dash::before { content: ""; position: absolute; right: -70px; top: -90px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.dash::after { content: ""; position: absolute; left: -60px; bottom: -110px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.dash__row { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.dash__date { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.dash h1 { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: #fff; }
.dash__lead { margin: 4px 0 0; font-size: 14px; color: rgba(255, 255, 255, .84); }
.dash__me { flex: none; text-decoration: none; }
.dash__me .avatar { width: 54px; height: 54px; font-size: 17px; background: #fff; color: var(--violet-deep); box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.page-home .wrap { padding-top: 0; }
.hero.startcard.startsheet.statuscard, .has-bottomnav .wrap--narrow > .hero.startcard.startsheet.statuscard { margin: -66px 0 14px !important; padding: 16px; border-radius: 24px; border: 0; box-shadow: 0 22px 44px -22px rgba(28, 26, 110, .45), 0 2px 6px rgba(28, 26, 110, .06); }
.statuscard__row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.statuscard__tick { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--petrol-wash); color: var(--violet); }
.statuscard__tick.is-on { background: #E3F6EC; color: #159A62; }
.statuscard__main b { display: block; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.statuscard__tick.is-on + .statuscard__main b { color: #128556; }
.statuscard__main strong { display: block; font-size: 27px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--ink); }
.statuscard__main small { display: flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 13.5px; color: var(--ink-2); }
.statuscard__main small .icon { width: 15px; height: 15px; flex: none; }
.statuscard__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 12px 0 12px; }
.statuscard__more { display: inline-flex; align-items: center; gap: 2px; font-size: 13.5px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.statuscard__more .icon { width: 16px; height: 16px; }
.statuscard .btn--main { min-height: 54px; }
.stat4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.stat4__tile { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 14px; border-radius: 22px; color: #fff; text-decoration: none; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.stat4__tile::after { content: ""; position: absolute; right: -26px; bottom: -34px; width: 96px; height: 96px; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.stat4__tile i { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: rgba(255, 255, 255, .22); }
.stat4__tile i .icon { width: 22px; height: 22px; color: #fff; }
.stat4__tile b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.stat4__tile span { font-size: 12.5px; font-weight: 600; line-height: 1.2; opacity: .95; }
.stat4__tile:active { transform: scale(.98); }
.stat4__tile--blue { background: linear-gradient(135deg, #3F82FF, #2456E8); box-shadow: 0 14px 22px -16px #2456E8; }
.stat4__tile--green { background: linear-gradient(135deg, #25C88E, #0F9F6B); box-shadow: 0 14px 22px -16px #0F9F6B; }
.stat4__tile--violet { background: linear-gradient(135deg, #8E62F8, #5B34E6); box-shadow: 0 14px 22px -16px #5B34E6; }
.stat4__tile--orange { background: linear-gradient(135deg, #FFAB45, #F27F0C); box-shadow: 0 14px 22px -16px #F27F0C; }
.hmcard { padding: 0; margin-bottom: 18px; overflow: hidden; }
.hmcard[hidden] { display: none; }
.hmcard__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px 12px; }
.hmcard__head h2 { margin: 0; font-size: 16px; font-weight: 800; }
.hmcard__head a { font-size: 13.5px; font-weight: 700; }
.hmcard .homemap, .home-has-map .hmcard .homemap { height: 200px; margin: 0 12px 12px; border-radius: 16px; overflow: hidden; }
.hmcard .homemap::after { display: none; }
.hmcard .homemap__key { bottom: 10px; left: 10px; }
.hmcard .homemap .leaflet-bottom { bottom: 0; }
@media (min-width: 760px) {
  .page-home .wrap { padding-top: 22px; }
  .dash { margin: 0; border-radius: 28px; padding: 26px 26px 96px; }
  .dash__me { display: none; }
  .hero.startcard.startsheet.statuscard, .has-bottomnav .wrap--narrow > .hero.startcard.startsheet.statuscard { margin: -66px 20px 16px !important; }
  .stat4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat4__tile { grid-template-columns: 1fr; row-gap: 8px; }
  .stat4__tile i { grid-row: auto; }
  .hmcard .homemap { height: 280px; }
}

/* ---- Profile ---- */
.perf { padding: 16px; margin-bottom: 14px; }
.perf__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.perf__head h2 { margin: 0; font-size: 16px; font-weight: 800; }
.perf__head .pill { background: var(--petrol-wash); color: var(--violet-deep); padding: 4px 12px; }
.perf__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; text-align: center; }
.perf__grid > div { display: grid; justify-items: center; gap: 2px; padding: 12px 4px; border: 1px solid var(--line); border-radius: 16px; }
.perf__grid i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; margin-bottom: 4px; }
.perf__grid i .icon { width: 19px; height: 19px; }
.perf__grid .p-blue { background: #E7EFFF; color: #2456E8; } .perf__grid .p-green { background: #E3F6EC; color: #0F9F6B; }
.perf__grid .p-orange { background: #FFF0DC; color: #D96F06; } .perf__grid .p-violet { background: var(--petrol-wash); color: var(--violet); }
.perf__grid dd { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.perf__grid dt { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.menulist { padding: 4px 16px; margin-bottom: 14px; }
.menulist a { display: grid; grid-template-columns: 24px minmax(0, 1fr) 18px; gap: 14px; align-items: center; padding: 14px 0; color: var(--ink); font-weight: 600; text-decoration: none; }
.menulist a + a { border-top: 1px solid #EFEDF7; }
.menulist a > .icon:first-child { width: 21px; height: 21px; color: var(--violet); }
.menulist a > .icon:last-child { width: 17px; height: 17px; color: #ADA8C8; }
.chiprow--status { margin: 0 0 14px; }

/* ---- Sign-in ---- */
.page-login { background: var(--navy); }
.authsplit { background: var(--grad-brand); }
.authsplit::before { background: rgba(255, 255, 255, .09); }
.authsplit::after { background: rgba(255, 255, 255, .07); box-shadow: 280px -40px 0 -30px rgba(255, 255, 255, .06), 40px 420px 0 40px rgba(255, 255, 255, .05); }
.authtop__mark { width: 78px; height: 78px; color: #fff; }
.authtop__mark .m2, .authtop__mark .m3 { color: #B9A6FF; opacity: .9; }
.authtop__name { margin: 6px 0 0; font-size: 44px; font-weight: 800; letter-spacing: -.045em; }
.authtop__sub { margin: 2px 0 0; font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, .9); letter-spacing: .01em; max-width: none; }
.authtop ~ .auth .auth__sub { text-align: center; font-size: 23px; color: var(--violet-deep); margin-bottom: 2px; }
.auth__hint { text-align: center; margin: 0 0 20px; font-size: 14.5px; color: var(--ink-2); }
.auth__powered { margin-top: 18px; text-align: center; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--violet-deep); }
.auth .auth__alt { text-align: center; }
@media (min-width: 900px) { .authsplit::after { box-shadow: 46vw -52vh 0 -60px rgba(255, 255, 255, .06), -120px 220px 0 60px rgba(255, 255, 255, .05); } }
.logfab { display: none !important; }
.lock[data-state="locked"] { background: var(--grad-brand); }

/* Home quick actions (own class: .quick is the call / text / directions row on customer cards) */
.qa { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.qa__item { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 14px 4px 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-1); color: var(--ink); text-align: center; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.qa__item:active { transform: scale(.97); }
.qa__item i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--petrol-wash); color: var(--violet); font-style: normal; }
.qa__item i .icon { width: 22px; height: 22px; }
.qa__item span { font-size: 12px; font-weight: 700; line-height: 1.2; }
.bottomnav { z-index: 60; }
.statementbar { position: static; margin: 16px 0 0; }

/* ---- check-in at site ---- */
.statuscard__msg { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--bad-wash); color: var(--bad); font-size: 13.5px; font-weight: 600; }
.statuscard__msg[hidden] { display: none; }
.statuscard__alt { display: block; width: 100%; margin: 10px 0 0; padding: 6px; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--violet); text-align: center; text-decoration: none; cursor: pointer; }
.statuscard__alt[data-armed="1"] { color: var(--bad); }
#siteTimer { font-variant-numeric: tabular-nums; color: #128556; }
.statuscard button.btn--main:disabled { opacity: .75; }
.ckbanner { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.ckbanner .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.livedot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #17B86A; box-shadow: 0 0 0 3px rgba(23, 184, 106, .2); vertical-align: 1px; }
.teamlist .is-atsite small { color: #128556; font-weight: 700; }
