/* =========================================================================
   FRESH CUTS — Owner Control Room   ·   design system
   Deep forest-slate "mission control" (lifted, never black), fresh-green
   accents, a light cartographic map tile sitting inside the dark room.
   ========================================================================= */
:root {
  --bg:        #122A20;
  --bg-2:      #153024;
  --panel:     #1A3A2B;
  --panel-2:   #1F4332;
  --panel-3:   #244C39;
  --raised:    #2B5942;
  --line:      rgba(180, 240, 200, 0.12);
  --line-soft: rgba(180, 240, 200, 0.07);
  --line-hard: rgba(180, 240, 200, 0.18);

  --green:        #57E08A;
  --green-bright: #7CF2A6;
  --green-deep:   #16A34A;
  --green-glow:   rgba(87, 224, 138, 0.16);
  --green-soft:   rgba(87, 224, 138, 0.10);

  --gold:      #F2C24E;  --gold-soft: rgba(242, 194, 78, 0.13);
  --sky:       #5BCBE6;  --sky-soft:  rgba(91, 203, 230, 0.13);
  --rose:      #FF8A73;  --rose-soft: rgba(255, 138, 115, 0.13);
  --violet:    #C79BF2;

  --text:    #ECF6EE;
  --muted:   #A6BCAE;
  --subtle:  #7C9686;
  --faint:   #5C7565;

  /* the mechanical kit — machined display type, engineered UI, mono telemetry.
     (--serif keeps its name but now carries the display face.) */
  --serif: "Chakra Petch", "Saira", system-ui, sans-serif;
  --sans:  "IBM Plex Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 7px; --r: 10px; --r-lg: 14px; --r-xl: 18px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 14px 40px rgba(0,0,0,.4);
  --shadow-3: 0 30px 80px rgba(0,0,0,.5);
  --ease: cubic-bezier(.22,.61,.36,1);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans); background: var(--bg); color: var(--text);
  line-height: 1.55; min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(180,240,200,.022) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(180,240,200,.022) 0 1px, transparent 1px 72px),
    radial-gradient(1100px 700px at 16% -8%, rgba(87,224,138,.10), transparent 60%),
    radial-gradient(900px 600px at 94% 2%, rgba(91,203,230,.06), transparent 55%),
    radial-gradient(1200px 900px at 50% 122%, rgba(22,163,74,.08), transparent 60%);
}
::selection { background: var(--green-glow); color: #fff; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; }
input { font-family: inherit; }

/* ---- atoms ------------------------------------------------------------ */
.eyebrow { font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--subtle); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(87,224,138,.5);} 70%{box-shadow:0 0 0 10px rgba(87,224,138,0);} 100%{box-shadow:0 0 0 0 rgba(87,224,138,0);} }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 650; font-size: .92rem; padding: .72rem 1.25rem; border-radius: var(--r); cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { color: #052b14; background: linear-gradient(180deg, var(--green-bright), var(--green)); box-shadow: 0 8px 22px rgba(87,224,138,.28), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(87,224,138,.4); transform: translateY(-2px); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--line-hard); }
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: var(--green-soft); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: .5rem .9rem; font-size: .82rem; }
.btn.is-disabled { opacity: .45; pointer-events: none; }

.chip { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; padding: .3rem .55rem; border-radius: 6px; border: 1px solid var(--line-hard); color: var(--muted); }
.chip svg { width: 13px; height: 13px; }
.chip--green { color: var(--green); border-color: var(--green-soft); background: var(--green-soft); }
.chip--gold  { color: var(--gold);  border-color: var(--gold-soft);  background: var(--gold-soft); }
.chip--sky   { color: var(--sky);   border-color: var(--sky-soft);   background: var(--sky-soft); }
.chip--rose  { color: var(--rose);  border-color: var(--rose-soft);  background: var(--rose-soft); cursor: pointer; }

.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 750; font-size: .76rem; color: #06210f; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.avatar.tiny { width: 18px; height: 18px; font-size: .54rem; }

/* =========================================================================
   SIGN IN
   ========================================================================= */
.signin { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 2rem 1.25rem; }
.signin-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(900px 620px at 50% 28%, rgba(40,180,100,.22), transparent 62%), linear-gradient(180deg, #0F241B 0%, #122A20 50%, #16331F 100%); }
.signin-bg::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background: repeating-linear-gradient(105deg, rgba(87,224,138,.025) 0 60px, rgba(87,224,138,.06) 60px 120px);
  -webkit-mask-image: linear-gradient(180deg, transparent 40%, #000 100%); mask-image: linear-gradient(180deg, transparent 40%, #000 100%); }
.signin-card { position: relative; z-index: 1; width: min(440px, 100%); text-align: center; animation: rise .7s var(--ease) both; }
.signin-logo { display: inline-flex; flex-direction: column; align-items: center; gap: .65rem; margin-bottom: 1.6rem; }
.signin-kicker { font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--subtle); }
.signin h1 { font-family: var(--serif); font-weight: 700; font-size: 2.2rem; line-height: 1.06; letter-spacing: .02em; text-transform: uppercase; }
.signin h1 .accent { color: var(--green); }
.signin-sub { color: var(--muted); margin: .7rem auto 0; max-width: 30ch; font-size: .98rem; }
.signin-form { margin-top: 1.7rem; text-align: left; background: linear-gradient(180deg, rgba(43,89,66,.5), rgba(26,58,43,.7)); border: 1px solid var(--line-hard); border-radius: var(--r-lg); padding: 1.5rem 1.4rem 1.6rem; box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255,255,255,.05); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-family: var(--mono); font-size: .64rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--subtle); margin-bottom: .5rem; }
.field input { width: 100%; padding: .8rem .95rem; border-radius: 9px; background: rgba(0,0,0,.22); color: var(--text); border: 1px solid var(--line-hard); font-size: .95rem; transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.signin-form .btn-primary { width: 100%; margin-top: .35rem; }
.forgot { display: block; text-align: center; margin-top: .9rem; font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
.forgot:hover { color: var(--green); }
.signin-demo { margin-top: 1.1rem; padding: 1rem; border: 1px dashed var(--line-hard); border-radius: var(--r); background: rgba(255,255,255,.02); }
.signin-demo .btn { width: 100%; }
.signin-trial { display: block; text-align: center; margin-top: 1rem; font-size: .72rem; font-weight: 600; color: var(--subtle); }
.signin-trial a { color: var(--green); font-weight: 700; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   APP SHELL + TOP BAR
   ========================================================================= */
.app { position: relative; z-index: 1; min-height: 100vh; display: none; }
.app.is-on { display: block; }

.topbar { position: sticky; top: 0; z-index: 40; padding-top: env(safe-area-inset-top, 0px); background: linear-gradient(180deg, rgba(18,42,32,.94), rgba(18,42,32,.78)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: .8rem 1.4rem; display: flex; align-items: center; gap: 1.2rem; }
.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .co { font-family: var(--mono); font-size: .58rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--subtle); }
.brand-text .room { font-family: var(--serif); font-weight: 600; font-size: .98rem; text-transform: uppercase; letter-spacing: .03em; }

.nav { display: flex; align-items: center; gap: .2rem; margin: 0 auto; }
.nav a { position: relative; font-family: var(--mono); font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--subtle); padding: .5rem .8rem; border-radius: 8px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); }
.nav a.active { color: #052b14; background: linear-gradient(180deg, var(--green-bright), var(--green)); box-shadow: 0 6px 16px rgba(87,224,138,.28); }
.nav a .badge { position: absolute; top: 1px; right: 2px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; background: var(--rose); color: #2a0c06; font-size: .58rem; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.nav a.active .badge { background: #052b14; color: var(--green-bright); }

.topbar-right { display: flex; align-items: center; gap: .7rem; flex: none; }
.crew-stack { display: flex; }
.crew-stack .avatar { width: 30px; height: 30px; margin-left: -8px; border: 2px solid var(--bg-2); }
.crew-stack .avatar:first-child { margin-left: 0; }

.account { position: relative; }
.account-btn { display: flex; align-items: center; gap: .45rem; padding: .35rem .6rem .35rem .4rem; border: 1px solid var(--line-hard); border-radius: 9px; color: var(--muted); font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transition: border-color .2s, color .2s; }
.account-btn:hover { color: var(--text); border-color: var(--green-soft); }
.account-btn .avatar { width: 26px; height: 26px; }
.account-btn svg { width: 14px; height: 14px; }
.account-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 250px; background: var(--panel-2); border: 1px solid var(--line-hard); border-radius: var(--r); box-shadow: var(--shadow-3); padding: .5rem; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.account-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.am-head { display: flex; align-items: center; gap: .6rem; padding: .6rem .6rem .8rem; border-bottom: 1px solid var(--line); margin-bottom: .4rem; }
.am-name { font-weight: 700; font-size: .9rem; }
.am-co { font-size: .74rem; color: var(--subtle); }
.am-item { display: flex; align-items: center; gap: .65rem; width: 100%; text-align: left; padding: .6rem .65rem; border-radius: 10px; font-size: .86rem; font-weight: 550; color: var(--muted); transition: background .15s, color .15s; }
.am-item svg { width: 17px; height: 17px; flex: none; }
.am-item:hover { background: rgba(255,255,255,.05); color: var(--text); }
#signOut:hover { color: var(--rose); }
.am-div { height: 1px; background: var(--line); margin: .4rem 0; }

.nav-toggle { display: none; }

.view { max-width: var(--maxw); margin: 0 auto; padding: 2.2rem 1.4rem 6rem; animation: fade .45s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.view-head { margin-bottom: 1.6rem; }
.view-date { font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--subtle); margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.synced { display: inline-flex; align-items: center; gap: .35rem; color: var(--green); letter-spacing: .08em; }
.view-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.9rem, 4.4vw, 2.7rem); line-height: 1.04; letter-spacing: .015em; text-transform: uppercase; }
.view-title .accent { color: var(--green); }
.view-sub { color: var(--muted); margin-top: .5rem; font-size: 1.02rem; }
.view-sub b { color: var(--text); font-weight: 700; }

.section-label { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 2.2rem 0 1rem; }
.section-label .meta { font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }

/* ---- stat cards ------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
/* gauge-style: left-rule accent, machined numeral, tick ruler along the base */
.stat { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.4rem 1.5rem; text-align: left; transition: transform .3s var(--ease), border-color .3s; }
.stat:hover { transform: translateY(-3px); border-color: var(--line-hard); }
.stat::after { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 2px 2px 0; }
.stat--done::after { background: var(--green); box-shadow: 0 0 12px rgba(87,224,138,.5); }
.stat--left::after { background: var(--gold); box-shadow: 0 0 12px rgba(242,194,78,.5); }
.stat--crew::after { background: var(--sky); box-shadow: 0 0 12px rgba(91,203,230,.5); }
.stat::before { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; bottom: 0; height: 7px;
  background: repeating-linear-gradient(90deg, var(--line-hard) 0 1px, transparent 1px 9px); opacity: .9; }
.stat .num { font-family: var(--serif); font-weight: 700; font-size: 2.9rem; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.stat--done .num { color: var(--green); } .stat--left .num { color: var(--gold); } .stat--crew .num { color: var(--sky); }
.stat .lbl { margin-top: .5rem; font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--subtle); }
.stat .delta { margin-top: .25rem; font-size: .76rem; color: var(--faint); }

/* ---- dashboard grid: map + crew panel --------------------------------- */
.dash-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 1.4rem; align-items: start; }
@media (max-width: 940px) { .dash-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   LIVE MAP  (light cartographic tile inside the dark room)
   ========================================================================= */
.map-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-hard); box-shadow: var(--shadow-2); background: #EDE7DA; }
.map-svg { display: block; width: 100%; height: auto; }
/* real Leaflet basemap (primary); the stylized SVG is the fallback below it */
.leaflet-map { width: 100%; height: clamp(330px, 44vh, 480px); background: #aadbef; }
.leaflet-map .leaflet-tile-pane { filter: saturate(1.02); }
.map-fallback { position: relative; }
/* keep the brand overlays above Leaflet's panes/controls */
.map-wrap .map-hud, .map-wrap .map-gps, .map-wrap .map-legend, .map-wrap .map-fit { z-index: 1001; }
.map-fit { position: absolute; right: 14px; top: 52px; padding: .4rem .7rem; border-radius: 8px; border: 1px solid var(--line-hard); background: rgba(12,22,15,.84); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, transform .15s; }
.map-fit:hover { border-color: var(--green-soft); transform: translateY(-1px); }
.map-fit:active { transform: translateY(0); }
/* crew marker on the Leaflet map */
.crewpin-wrap { background: none; border: 0; }
.crewpin { position: relative; display: flex; flex-direction: column; align-items: center; }
.crewpin-ring { position: absolute; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, rgba(87,224,138,.34), transparent 70%); animation: ring 2.2s ease-out infinite; }
.crewpin-dot { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4), 0 0 0 1px rgba(0,0,0,.18); }
.crewpin-tag { margin-top: 4px; background: #0c1912; border: 1px solid var(--line-hard); padding: .16rem .48rem; border-radius: 6px; font-family: var(--mono); font-size: .6rem; font-weight: 600; letter-spacing: .04em; color: #fff; white-space: nowrap; box-shadow: var(--shadow-1); }
.crewpin.off .crewpin-dot { border-color: #c9ccd1; opacity: .9; }
.crewpin.off .crewpin-tag { color: #cfd3d8; border-color: rgba(255,138,115,.5); }
/* a crew parked AT a stop, servicing it — cyan "on site" ring + tag, calmer
   pulse than driving so the dwell reads as intentional, not a stall */
.crewpin.onsite .crewpin-dot { border-color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4), 0 0 0 4px rgba(91,203,230,.28); }
.crewpin-ring.onsite { background: radial-gradient(circle, rgba(91,203,230,.42), transparent 70%); animation: ring 2.8s ease-out infinite; }
.crewpin-tag.onsite { color: #062430; background: #5BCBE6; border-color: #5BCBE6; }
.m-water { fill: #5D92AB; font: 600 10.5px var(--mono); letter-spacing: .3em; opacity: .8; }
.m-water.sm { font-size: 8px; }
.m-park { fill: #8AA468; font: 600 8.5px var(--mono); letter-spacing: .22em; }
.m-st { fill: #A39477; font: 600 9px var(--mono); letter-spacing: .18em; paint-order: stroke; stroke: #EDE7DA; stroke-width: 3px; }
.map-hud { position: absolute; left: 14px; top: 14px; z-index: 3; display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border-radius: 8px; background: rgba(12,22,15,.84); border: 1px solid var(--line-hard); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #fff; }
.map-gps { position: absolute; right: 14px; top: 14px; z-index: 3; font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #06210f; background: var(--green-bright); padding: .4rem .65rem; border-radius: 8px; }
.map-legend { position: absolute; left: 14px; bottom: 14px; z-index: 3; display: flex; gap: .8rem; padding: .45rem .75rem; border-radius: 8px; background: rgba(12,22,15,.84); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.map-legend span { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--mono); font-size: .6rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: #e6f1e9; }
.lg-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.pin { animation: pin-drop .5s var(--ease) both; }
@keyframes pin-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; } }

/* compact glowing crew marker — a precise locator dot, not a roaming truck */
.veh { position: absolute; z-index: 4; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 5px; will-change: left, top; }
.veh-ring { position: absolute; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, rgba(87,224,138,.34), transparent 70%); animation: ring 2.2s ease-out infinite; }
@keyframes ring { 0%{transform:scale(.5);opacity:.9;} 100%{transform:scale(1.7);opacity:0;} }
.veh-dot { width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.2); }
.veh-tag { background: #0c1912; border: 1px solid var(--line-hard); padding: .18rem .5rem; border-radius: 6px; font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .04em; color: #fff; white-space: nowrap; box-shadow: var(--shadow-1); }
.veh-focus .veh-dot { animation: veh-bounce .6s ease 2; }
@keyframes veh-bounce { 0%,100%{transform:scale(1);} 50%{transform:scale(1.5);} }

/* ---- today's crew panel ----------------------------------------------- */
.crew-panel { display: flex; flex-direction: column; gap: .5rem; }
.crew-row { display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem .9rem; transition: transform .2s var(--ease), border-color .2s; }
.cr-main { min-width: 0; flex: 1; }
.cr-name { font-weight: 650; font-size: .92rem; }
.cr-note { font-size: .76rem; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px rgba(91,203,230,.14); }
.cr-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; flex: none; font-family: var(--mono); font-size: .62rem; line-height: 1.2; }
.cr-stop { color: var(--subtle); letter-spacing: .03em; }
.cr-batt { color: var(--subtle); letter-spacing: .03em; }
.cr-batt.low { color: #FFB27A; font-weight: 600; }
/* a crew that's gone dark — the missing-truck beat: muted card, amber hairline */
.crew-off { border-color: rgba(255,138,115,.4); background: linear-gradient(180deg, rgba(40,30,28,.5), var(--panel)); }
.crew-off .cr-name { color: var(--subtle); }
.crew-off .cr-note { color: #FF8A73; }
.crew-off .cr-dot { box-shadow: none; }
/* a frozen, off-the-grid vehicle on the map — no live pulse ring, muted tag */
.veh-off .veh-dot { border-color: #c9ccd1; opacity: .85; }
.veh-off .veh-tag { color: #cfd3d8; border-color: rgba(255,138,115,.45); }
/* SVG-fallback truck parked on site — cyan dot/ring + tag, matching the Leaflet
   on-site state so dwell reads identically in both renderers */
.veh-onsite .veh-dot { background: #5BCBE6 !important; box-shadow: 0 2px 6px rgba(0,0,0,.45), 0 0 0 4px rgba(91,203,230,.3); }
.veh-onsite .veh-ring { background: radial-gradient(circle, rgba(91,203,230,.42), transparent 70%); animation-duration: 2.8s; }
.veh-onsite .veh-tag { color: #062430; background: #5BCBE6; border-color: #5BCBE6; }

/* =========================================================================
   SERVICE LOG  (today, on the record)
   ========================================================================= */
.service-log { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .8rem; }
.log-empty { grid-column: 1/-1; text-align: center; color: var(--subtle); padding: 2rem 1.5rem; border: 1px dashed var(--line-hard); border-radius: var(--r-lg); background: rgba(255,255,255,.015); }
.log-card { display: flex; gap: .85rem; text-align: left; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: .7rem; transition: transform .2s var(--ease), border-color .2s; }
.log-card.fresh { animation: fresh-in .7s var(--ease) both; border-color: var(--green); }
@keyframes fresh-in { 0%{ opacity:0; transform: scale(.94); box-shadow: 0 0 0 3px var(--green-soft); } 100%{ opacity:1; transform: none; } }
.log-thumb { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; flex: none; border: 1px solid var(--line-hard); }
.log-gps { position: absolute; right: 5px; bottom: 5px; color: #06210f; background: var(--green-bright); border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; }
.log-body { min-width: 0; flex: 1; }
.log-top { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.log-who { font-weight: 700; font-size: .95rem; }
.log-time { font-family: var(--mono); font-size: .72rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.log-sub { font-size: .8rem; color: var(--subtle); margin-top: .1rem; }
.log-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; }
.ltag { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--mono); font-size: .63rem; font-weight: 600; color: var(--muted); background: rgba(0,0,0,.2); border: 1px solid var(--line); padding: .2rem .45rem; border-radius: 6px; }
.ltag.ok { color: var(--green); border-color: var(--green-soft); }

/* ---- route list ------------------------------------------------------- */
.route-list { display: flex; flex-direction: column; gap: .55rem; }
.stop { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: .85rem 1.1rem; cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.stop-main { min-width: 0; }
.stop-main .who { font-weight: 650; font-size: 1rem; }
.stop-n { color: var(--faint); font-weight: 500; font-size: .82rem; }
.stop-main .addr { font-size: .82rem; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stop-right { display: flex; align-items: center; gap: .7rem; }
.stop-time { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .8rem; font-weight: 600; color: var(--muted); width: 52px; }
.stop-status { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .65rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.s-done { color: var(--green); } .s-active { color: var(--sky); } .s-left { color: var(--faint); } .s-issue { color: var(--rose); }
.dotmark { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.stop .arrow { color: var(--faint); transition: transform .2s, color .2s; }
.stop .arrow svg, .cust .arrow svg { width: 20px; height: 20px; }
/* =========================================================================
   SCHEDULE
   ========================================================================= */
.sched-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.sched-col { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.2rem; }
.sched-head { display: flex; align-items: center; gap: .7rem; padding-bottom: 1rem; margin-bottom: .4rem; border-bottom: 1px solid var(--line); }
.sch-name { font-weight: 700; font-size: 1.05rem; }
.sch-role { font-size: .76rem; color: var(--subtle); }
.timeline { position: relative; }
.tl-stop { display: grid; grid-template-columns: 24px 1fr; gap: .6rem; cursor: pointer; padding: .2rem 0; }
.tl-rail { display: flex; justify-content: center; position: relative; }
.tl-rail::before { content: ""; position: absolute; top: 0; bottom: -100%; width: 2px; background: var(--line); }
.tl-stop:last-child .tl-rail::before { display: none; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 7px; z-index: 1; box-shadow: 0 0 0 4px var(--panel); }
.tl-body { padding: .5rem 0 1rem; }
.tl-top { display: flex; align-items: center; gap: .6rem; }
.tl-time { font-family: var(--mono); font-weight: 600; font-size: .8rem; font-variant-numeric: tabular-nums; }
.tl-who { font-weight: 600; margin-top: .2rem; }
.tl-addr { font-size: .78rem; color: var(--subtle); }
/* =========================================================================
   ROSTER
   ========================================================================= */
.roster-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.1rem; }
.search { position: relative; margin-bottom: 1.1rem; }
.search input { width: 100%; padding: .9rem 1rem .9rem 2.9rem; border-radius: 14px; background: rgba(0,0,0,.2); border: 1px solid var(--line-hard); color: var(--text); font-size: .95rem; transition: border-color .2s, box-shadow .2s; }
.search input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--subtle); width: 18px; height: 18px; }
.roster { display: flex; flex-direction: column; gap: .5rem; }
.no-match { color: var(--subtle); padding: 1.5rem; text-align: center; }
.cust { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 1rem; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1.1rem; cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.cust .who { font-weight: 650; } .cust .addr { font-size: .82rem; color: var(--subtle); }
.cust .arrow { color: var(--faint); }
.day-badge { font-family: var(--mono); font-size: .6rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .32rem .65rem; border-radius: 6px; border: 1px solid var(--line-hard); color: var(--muted); }

/* =========================================================================
   ISSUES
   ========================================================================= */
.issues { display: flex; flex-direction: column; gap: .8rem; }
.issue { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: start; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-left: 3px solid var(--rose); border-radius: var(--r); padding: 1.1rem 1.2rem; transition: transform .2s var(--ease); }
.issue:hover { transform: translateY(-2px); }
.issue.resolved { border-left-color: var(--green); opacity: .72; }
.issue-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--rose-soft); color: var(--rose); flex: none; }
.issue-ico svg { width: 20px; height: 20px; }
.issue.resolved .issue-ico { background: var(--green-soft); color: var(--green); }
.issue h4 { font-size: 1rem; font-weight: 650; }
.issue p { font-size: .86rem; color: var(--muted); margin-top: .2rem; }
.issue .when { font-size: .72rem; color: var(--faint); margin-top: .5rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.issue-act { display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; }

/* =========================================================================
   TEAM
   ========================================================================= */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.tech { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; transition: transform .3s var(--ease), border-color .3s; }
.tech:hover { transform: translateY(-4px); border-color: var(--green-soft); }
.tech-top { display: flex; align-items: center; gap: .8rem; }
.tech .avatar { width: 46px; height: 46px; font-size: 1rem; }
.tech .name { font-weight: 700; font-size: 1.05rem; }
.tech .role { font-size: .76rem; color: var(--subtle); }
.tech-stats { display: flex; gap: 1.4rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.tech-stat .n { font-family: var(--serif); font-size: 1.5rem; color: var(--text); }
.tech-stat .l { font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
.tech-bar { margin-top: 1rem; height: 7px; border-radius: 999px; background: rgba(0,0,0,.28); overflow: hidden; }
.tech-bar > span { display: block; height: 100%; border-radius: 999px; }
.tech-foot { margin-top: .7rem; font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }

/* =========================================================================
   CUSTOMER DETAIL
   ========================================================================= */
.back-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .62rem 1.05rem; margin-top: .4rem; margin-bottom: 1.2rem; scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 76px); font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); background: var(--green-soft); border: 1px solid var(--line-hard); border-radius: 999px; box-shadow: 0 2px 12px rgba(0,0,0,.24); transition: background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease; }
.back-link svg { width: 18px; height: 18px; }
.back-link:hover { color: var(--green-bright); background: var(--green-glow); border-color: var(--green); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .back-link { transition: none; } .back-link:hover { transform: none; } }
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.4rem; align-items: start; }
.panel { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; }
.panel h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin-bottom: 1rem; }

.proof-photo { position: relative; aspect-ratio: 16/10; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-hard); }
.turf { position: absolute; inset: 0; background: #2f7d3e url("../assets/lawn-land.svg") center / cover no-repeat; }
.turf::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.05), transparent 30%); }
.turf::after { content: none; }
.proof-photo .stamp { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; font-size: .68rem; font-weight: 700; color: #fff; background: rgba(7,18,11,.6); padding: .3rem .6rem; border-radius: 999px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.proof-photo .gps-pill { position: absolute; right: 12px; top: 12px; z-index: 2; font-size: .62rem; font-weight: 700; color: #06210f; background: var(--green-bright); padding: .25rem .55rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .3rem; }
.cut-card { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; margin-top: 1.2rem; }
.cut-item { background: rgba(0,0,0,.2); border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; }
.cut-item .k { font-family: var(--mono); font-size: .6rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.cut-item .v { font-weight: 650; margin-top: .25rem; display: flex; align-items: center; gap: .4rem; }
.cut-item .v .ok { color: var(--green); }
.history { display: flex; flex-direction: column; }
.hist-row { display: flex; align-items: center; gap: .9rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.hist-row:last-child { border-bottom: none; }
.hist-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 4px var(--green-soft); }
.hist-row .d { font-weight: 650; font-size: .9rem; } .hist-row .s { font-size: .78rem; color: var(--subtle); }
.hist-row .thumb { width: 46px; height: 34px; border-radius: 7px; overflow: hidden; flex: none; margin-left: auto; border: 1px solid var(--line-hard); position: relative; }
.hist-row .thumb .turf { position: absolute; }
.kv { display: flex; flex-direction: column; gap: .75rem; }
.kv-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.kv-row:last-child { border-bottom: none; padding-bottom: 0; }
.kv-row .k { font-size: .8rem; color: var(--subtle); }
.kv-row .v { font-weight: 650; font-size: .9rem; text-align: right; }

/* =========================================================================
   FAB STACK  (Helper + Crew phone)
   ========================================================================= */
.fab-stack { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: flex; flex-direction: column; gap: .7rem; align-items: flex-end; }
.fab { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.2rem; border-radius: 14px; font-weight: 700; font-size: .85rem; box-shadow: var(--shadow-2); transition: transform .25s var(--ease); }
.fab svg { width: 18px; height: 18px; }
.fab:hover { transform: translateY(-3px) scale(1.03); }
.fab-crew { color: #052b14; background: linear-gradient(180deg, var(--green-bright), var(--green)); box-shadow: 0 14px 34px rgba(87,224,138,.4); }
.fab-helper { color: var(--text); background: linear-gradient(180deg, var(--panel-3), var(--panel-2)); border: 1px solid var(--line-hard); }
.fab-helper svg { color: var(--green); }

/* =========================================================================
   THE HELPER  (slide-over)
   ========================================================================= */
.helper-scrim { position: fixed; inset: 0; z-index: 65; display: none; justify-content: flex-end; background: rgba(5,12,8,.55); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.helper-scrim.is-on { display: flex; animation: fade .3s ease both; }
.helper-panel { width: min(440px, 100%); height: 100%; background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-left: 1px solid var(--line-hard); box-shadow: var(--shadow-3); display: flex; flex-direction: column; animation: slide-in .4s var(--ease) both; }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
.helper-head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--line); }
.hh-title { display: flex; align-items: center; gap: .7rem; }
.hh-title > svg { width: 28px; height: 28px; color: var(--green); }
.hh-name { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.hh-sub { font-size: .76rem; color: var(--subtle); }
.helper-body { flex: 1; overflow-y: auto; padding: 1.4rem; }
.h-eyebrow { font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--subtle); margin: 1.4rem 0 .7rem; display: flex; align-items: center; gap: .5rem; }
.h-eyebrow:first-child { margin-top: 0; }
.h-count { background: var(--green-soft); color: var(--green); border-radius: 999px; padding: 0 .45rem; font-size: .64rem; }
.h-summary { background: linear-gradient(180deg, var(--green-soft), transparent); border: 1px solid var(--green-soft); border-radius: var(--r); padding: 1.1rem; }
.h-summary .h-eyebrow { margin-top: 0; color: var(--green); }
.h-summary p { font-size: .92rem; color: var(--text); } .h-summary b { color: var(--green); }
.h-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; margin-bottom: .7rem; }
.h-from { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.h-q { color: var(--text); font-weight: 600; }
.h-draft { margin-top: .7rem; padding: .75rem .85rem; background: rgba(0,0,0,.22); border-left: 2px solid var(--green); border-radius: 8px; font-size: .86rem; color: var(--text); line-height: 1.5; }
.h-route p, .h-flag p { font-size: .9rem; color: var(--text); } .h-route b { color: var(--green); }
.h-actions { display: flex; gap: .5rem; margin-top: .8rem; }
.h-done { display: flex; align-items: center; gap: .5rem; color: var(--green); font-weight: 650; font-size: .88rem; }

/* =========================================================================
   CREW PHONE
   ========================================================================= */
.modal-scrim { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(5,12,8,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-scrim.is-on { display: flex; animation: fade .3s ease both; }
.phone { position: relative; width: min(370px, 100%); height: min(760px, 90vh); background: var(--bg); border: 10px solid #08130c; border-radius: 44px; box-shadow: var(--shadow-3), inset 0 0 0 1px rgba(180,240,200,.08); overflow: hidden; display: flex; flex-direction: column; animation: rise .45s var(--ease) both; }
.phone-bar { display: flex; align-items: center; justify-content: space-between; padding: .6rem 3rem .2rem 1.6rem; font-size: .72rem; font-weight: 700; color: var(--muted); z-index: 5; }
.pb-dots { display: flex; align-items: center; gap: 4px; }
.pb-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.pb-bat { width: 18px; height: 9px; border: 1.5px solid var(--muted); border-radius: 2px; position: relative; }
.pb-bat::after { content: ""; position: absolute; inset: 1px; right: 5px; background: var(--green); border-radius: 1px; }
.phone-close { position: absolute; right: 14px; top: 12px; z-index: 6; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--text); display: grid; place-items: center; }
.phone-close svg { width: 16px; height: 16px; }
.phone-close:hover { background: rgba(255,255,255,.16); }
.phone-screen { flex: 1; overflow-y: auto; padding: .6rem 1.3rem 1.3rem; display: flex; flex-direction: column; }
.phone-screen::-webkit-scrollbar { width: 0; }
.ci-step { display: flex; flex-direction: column; flex: 1; animation: fade .35s ease both; }
.ph-head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.ph-ht { line-height: 1.1; flex: 1; } .ph-name { font-weight: 700; } .ph-role { font-size: .74rem; color: var(--subtle); }
.ci-kicker { font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--subtle); }
.ci-h { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; line-height: 1.1; margin-top: .35rem; }
.ci-h.sm { font-size: 1.45rem; }
.ci-sub { color: var(--muted); font-size: .9rem; margin-top: .4rem; } .ci-sub b { color: var(--text); }
.ph-progress { height: 6px; border-radius: 999px; background: rgba(0,0,0,.28); margin: 1rem 0 1.2rem; overflow: hidden; }
.ph-progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green-deep), var(--green)); transition: width .5s var(--ease); }
.ph-jobs { display: flex; flex-direction: column; gap: .55rem; }
.ph-job { display: flex; align-items: center; gap: .7rem; text-align: left; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem .9rem; transition: border-color .2s, transform .2s; }
.ph-job:hover { transform: translateX(3px); }
.ph-job.next { border-color: var(--green-soft); box-shadow: 0 0 0 1px var(--green-soft); }
.pj-n { width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.25); display: grid; place-items: center; font-size: .76rem; font-weight: 700; color: var(--muted); flex: none; }
.ph-job.next .pj-n { background: var(--green); color: #06210f; }
.pj-main { flex: 1; min-width: 0; } .pj-who { font-weight: 650; font-size: .94rem; } .pj-addr { font-size: .78rem; color: var(--subtle); }
.ph-map { position: relative; height: 130px; border-radius: var(--r); overflow: hidden; margin-top: 1.1rem; border: 1px solid var(--line-hard); }
.ph-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%,-100%); color: var(--rose); filter: drop-shadow(0 4px 5px rgba(0,0,0,.3)); }
.ci-jobcard { margin-top: 1.1rem; background: var(--panel-2); border: 1px solid var(--line-hard); border-radius: var(--r); padding: 1rem; }
.pj-chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.pj-note { margin-top: .8rem; font-size: .84rem; color: var(--muted); } .pj-note b { color: var(--text); }
.ci-spacer { flex: 1; min-height: 1rem; }
.ci-foot { margin-top: 1rem; }
/* Feature 9 — the cut-log gate hint, shown above the finish button while the
   photo is in but the cut isn't logged. */
.ci-foot-hint { display: flex; align-items: center; gap: .4rem; margin-bottom: .7rem; font-size: .78rem; font-weight: 600; color: var(--gold); }
.ci-foot-hint svg { width: 13px; height: 13px; flex: none; }
/* the "nothing to note" affirmation reads affirmative once on */
.ci-affirm.is-on .lbl { color: var(--green); }
.ci-parked { align-items: center; text-align: center; }
.parked-gps { position: relative; width: 110px; height: 110px; margin: 1.5rem auto 1.2rem; display: grid; place-items: center; color: var(--green); }
.parked-gps .gps-rings { position: absolute; inset: 0; }
.gps-rings span { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border: 2px solid var(--green); border-radius: 50%; animation: gpsr 2.4s ease-out infinite; opacity: 0; }
.gps-rings span:nth-child(2) { animation-delay: .8s; } .gps-rings span:nth-child(3) { animation-delay: 1.6s; }
@keyframes gpsr { 0%{transform:scale(.5);opacity:.8;} 100%{transform:scale(1.8);opacity:0;} }
.ci-progress { display: flex; gap: 6px; margin-bottom: 1.3rem; }
.ci-progress > span { flex: 1; height: 4px; border-radius: 999px; background: rgba(255,255,255,.1); }
.ci-progress > span.on { background: var(--green); }
.ci-photo { margin-top: 1.1rem; position: relative; aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-hard); display: grid; place-items: center; cursor: pointer; background: #0e1c14; }
.cam-hint { position: relative; z-index: 2; text-align: center; color: var(--muted); }
.cam-hint svg { width: 44px; height: 44px; margin: 0 auto .5rem; color: var(--green); }
.ch-t { font-weight: 700; } .ch-s { font-size: .76rem; margin-top: .2rem; }
.ci-photo.shot { cursor: default; }
.ci-photo .shutter { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.ci-photo.flash .shutter { animation: flash .5s ease; }
@keyframes flash { 0%{opacity:.9;} 100%{opacity:0;} }
.cut-controls { margin-top: 1rem; }
.ci-toggle { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; border-bottom: 1px solid var(--line); gap: 1rem; }
.ci-toggle .lbl { font-weight: 600; font-size: .92rem; } .ci-toggle .lbl small { display: block; color: var(--subtle); font-weight: 400; font-size: .76rem; }
.step-ctl { display: flex; align-items: center; gap: .6rem; } .step-ctl b { min-width: 46px; text-align: center; font-variant-numeric: tabular-nums; }
.step-btn { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: var(--text); }
.step-btn:hover { background: rgba(255,255,255,.14); }
.tgl { width: 46px; height: 27px; border-radius: 999px; background: rgba(255,255,255,.12); position: relative; transition: background .2s; flex: none; }
.tgl::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.tgl.on { background: var(--green); } .tgl.on::after { transform: translateX(19px); }
.ci-success { text-align: center; justify-content: center; align-items: center; }
.ci-success .check { width: 92px; height: 92px; margin: 0 auto 1.2rem; }
.ci-success h2 { font-family: var(--serif); font-weight: 600; font-size: 2rem; }
.ci-success p { color: var(--muted); margin-top: .5rem; }
.ci-receipt { width: 100%; margin-top: 1.4rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; text-align: left; }

/* ---- toasts + ribbon -------------------------------------------------- */
.toast-wrap { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: .6rem; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: .6rem; padding: .8rem 1.1rem; border-radius: 12px; background: #0e1c14; border: 1px solid var(--green-soft); color: var(--text); font-size: .86rem; font-weight: 600; box-shadow: var(--shadow-2); animation: toastin .4s var(--ease) both; }
.toast svg { width: 18px; height: 18px; color: var(--green); flex: none; }
@keyframes toastin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.demo-ribbon { position: relative; z-index: 1; text-align: center; padding: 1.4rem; font-size: .78rem; color: var(--subtle); border-top: 1px solid var(--line); }
.demo-ribbon b { color: var(--muted); } .demo-ribbon a { color: var(--green); font-weight: 700; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 860px) {
  .nav { position: fixed; inset: 56px 0 auto 0; z-index: 39; flex-direction: column; gap: .2rem; background: rgba(15,32,22,.98); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding: 1rem; border-bottom: 1px solid var(--line); margin: 0; transform: translateY(-130%); transition: transform .3s var(--ease); }
  .nav.is-open { transform: none; } .nav a { width: 100%; padding: .8rem 1rem; }
  .nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-hard); color: var(--text); }
  .crew-stack, .acc-name { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .stats { gap: .6rem; } .stat { padding: 1.1rem .7rem; } .stat .num { font-size: 2.3rem; }
  .brand-text .co { display: none; }
}
@media (max-width: 560px) {
  .view { padding: 1.5rem 1rem 5rem; }
  .cut-card { grid-template-columns: 1fr; }
  .stop { grid-template-columns: auto 1fr; } .stop-right { grid-column: 2; justify-content: flex-start; }
  .cust { grid-template-columns: auto 1fr auto; } .cust .day-badge:nth-of-type(2) { display: none; }
  .fab span { display: none; } .fab { padding: .85rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .05ms !important; } }

/* =========================================================================
   GLISTEN-PORTED FEATURE KIT — proof share, invites, lifecycle, need-to-know,
   threads, alerts, archive, work orders. Same machined room, new instruments.
   ========================================================================= */

/* ---- notification bell ------------------------------------------------- */
.bell { position: relative; }
.bell-btn { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-hard); color: var(--muted); transition: color .2s, border-color .2s; }
.bell-btn:hover { color: var(--text); border-color: var(--green-soft); }
.bell-btn svg { width: 19px; height: 19px; }
.bell-dot { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--gold); color: #2a1c04; font-size: .6rem; font-weight: 800; display: grid; place-items: center; line-height: 1; border: 2px solid var(--bg-2); }
.bell-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 330px; background: var(--panel-2); border: 1px solid var(--line-hard); border-radius: var(--r-lg); box-shadow: var(--shadow-3); padding: .6rem; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.bell-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.bm-head { display: flex; align-items: center; justify-content: space-between; padding: .35rem .5rem .6rem; border-bottom: 1px solid var(--line); margin-bottom: .35rem; }
.bm-clear { font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--subtle); }
.bm-clear:hover { color: var(--green); }
.bm-item { display: flex; gap: .65rem; width: 100%; text-align: left; padding: .6rem .5rem; border-radius: 10px; transition: background .15s; align-items: flex-start; }
.bm-item:hover { background: rgba(255,255,255,.05); }
.bm-item.unread { background: var(--green-soft); }
.bm-item.unread:hover { background: rgba(87,224,138,.16); }
.bm-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(0,0,0,.22); color: var(--green); flex: none; }
.bm-ico svg { width: 16px; height: 16px; }
.bm-body { min-width: 0; }
.bm-text { display: block; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.bm-text b { color: var(--text); }
.bm-when { display: block; margin-top: .15rem; font-family: var(--mono); font-size: .62rem; color: var(--faint); }
.bm-empty { padding: 1.2rem .8rem; text-align: center; color: var(--subtle); font-size: .82rem; }
.bm-foot { display: flex; align-items: center; justify-content: space-between; padding: .6rem .5rem .3rem; border-top: 1px solid var(--line); margin-top: .35rem; }
.bm-status { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--subtle); }
.nav a .badge--gold { background: var(--gold); color: #2a1c04; }

/* ---- pre-arrival chips + deadline badges -------------------------------- */
.flag-chip { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--gold-soft); border: 1px solid rgba(242,194,78,.45); font-size: .72rem; line-height: 1; vertical-align: -4px; margin-left: .15rem; }
.flag-chip.big { width: 26px; height: 26px; font-size: .85rem; }
.chip-pulse { animation: chip-halo 2.6s ease-out infinite; }
@keyframes chip-halo { 0%{box-shadow:0 0 0 0 rgba(242,194,78,.45);} 60%{box-shadow:0 0 0 7px rgba(242,194,78,0);} 100%{box-shadow:0 0 0 0 rgba(242,194,78,0);} }
.due-badge { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(242,194,78,.35); padding: .2rem .5rem; border-radius: 999px; margin-left: .3rem; vertical-align: 1px; }

/* ---- issues: severity tiles, segmented filter, lifecycle ---------------- */
.sev-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: .9rem; }
.sev-tile { position: relative; text-align: left; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: .95rem 1.1rem; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.sev-tile:hover { transform: translateY(-2px); }
.sev-tile .sev-num { font-family: var(--serif); font-weight: 700; font-size: 1.9rem; line-height: 1; display: block; font-variant-numeric: tabular-nums; }
.sev-tile .sev-lbl { font-family: var(--mono); font-size: .64rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--subtle); margin-top: .3rem; display: block; }
.sev-tile.sev-now .sev-num { color: var(--rose); } .sev-tile.sev-soon .sev-num { color: var(--gold); } .sev-tile.sev-watch .sev-num { color: var(--green); }
.sev-tile.on { border-color: currentColor; }
.sev-tile.sev-now.on { border-color: rgba(255,138,115,.6); box-shadow: 0 0 0 1px rgba(255,138,115,.4), 0 10px 26px rgba(255,138,115,.12); }
.sev-tile.sev-soon.on { border-color: rgba(242,194,78,.6); box-shadow: 0 0 0 1px rgba(242,194,78,.4), 0 10px 26px rgba(242,194,78,.12); }
.sev-tile.sev-watch.on { border-color: rgba(87,224,138,.6); box-shadow: 0 0 0 1px rgba(87,224,138,.4), 0 10px 26px rgba(87,224,138,.12); }
.seg { display: inline-flex; gap: 3px; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 11px; padding: 3px; margin-bottom: 1.2rem; flex-wrap: wrap; }
.seg-btn { font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--subtle); padding: .45rem .85rem; border-radius: 8px; transition: color .15s, background .15s; }
.seg-btn:hover { color: var(--text); }
.seg-btn.on { background: linear-gradient(180deg, var(--panel-3), var(--panel-2)); color: var(--text); box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.06); }
.sev-pill { display: inline-block; font-family: var(--mono); font-size: .56rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; padding: .14rem .5rem; border-radius: 999px; vertical-align: 2px; margin-left: .35rem; }
.sev-pill.sev-now { color: var(--rose); background: var(--rose-soft); border: 1px solid rgba(255,138,115,.3); }
.sev-pill.sev-soon { color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(242,194,78,.3); }
.sev-pill.sev-watch { color: var(--green); background: var(--green-soft); border: 1px solid rgba(87,224,138,.3); }
.issue.sev-soon { border-left-color: var(--gold); }
.issue.sev-watch { border-left-color: var(--green); }
.chip--dim { color: var(--subtle); cursor: pointer; }
.chip--dim:hover, .chip[data-view]:hover, .chip[data-reopen]:hover { color: var(--text); border-color: var(--line-hard); }
button.chip { cursor: pointer; transition: transform .15s var(--ease), border-color .15s, color .15s; }
button.chip:active { transform: scale(.96); }
button.chip--green { cursor: pointer; } button.chip--green:hover { background: rgba(87,224,138,.18); }
button.chip--sky:hover { background: rgba(91,203,230,.2); }
.lc-expand { display: inline-flex; gap: .4rem; align-items: center; }
.lc-input { background: rgba(0,0,0,.25); border: 1px solid var(--line-hard); border-radius: 8px; color: var(--text); font-family: var(--mono); font-size: .72rem; padding: .35rem .5rem; width: 138px; color-scheme: dark; }
.lc-input:focus { outline: none; border-color: var(--green); }
.mini-issues { display: flex; flex-direction: column; gap: .6rem; }
.mini-issue { background: rgba(0,0,0,.18); border: 1px solid var(--line); border-radius: 12px; padding: .75rem .85rem; }
.mini-issue .mi-top { font-size: .86rem; display: flex; align-items: center; gap: .2rem; flex-wrap: wrap; }
.mini-issue .mi-top .sev-pill { margin-left: 0; margin-right: .35rem; }
.mini-issue .mi-act { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .55rem; }

/* ---- archive ------------------------------------------------------------ */
.arch-wrap { margin-top: 1.6rem; }
.arch-head { display: flex; align-items: center; justify-content: space-between; width: 100%; background: rgba(255,255,255,.025); border: 1px dashed var(--line-hard); border-radius: var(--r); padding: .85rem 1.1rem; transition: border-color .2s; }
.arch-head:hover { border-color: var(--green-soft); }
.arch-title { display: inline-flex; align-items: center; gap: .55rem; font-weight: 650; font-size: .92rem; color: var(--muted); }
.arch-count { font-family: var(--mono); font-size: .66rem; font-weight: 700; background: rgba(255,255,255,.08); border-radius: 999px; padding: .1rem .5rem; color: var(--subtle); }
.arch-chev { color: var(--faint); transition: transform .25s var(--ease); }
.arch-chev.open { transform: rotate(180deg); }
.arch-list { display: none; flex-direction: column; gap: .45rem; margin-top: .6rem; }
.arch-list.open { display: flex; animation: fade .3s ease both; }
.arch-row { display: flex; align-items: center; gap: .8rem; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: .75rem 1rem; opacity: .8; }
.arch-main { flex: 1; min-width: 0; text-align: left; display: flex; flex-direction: column; gap: .1rem; }
.arch-main .who { font-weight: 650; color: var(--muted); }
.arch-main .addr { font-size: .76rem; color: var(--faint); }
.arch-restore { cursor: pointer; } .arch-restore:hover { color: var(--green); border-color: var(--green-soft); }
.arch-note { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin-top: .9rem; font-size: .84rem; color: var(--subtle); background: rgba(255,255,255,.03); border: 1px dashed var(--line-hard); border-radius: var(--r); padding: .7rem .9rem; }
.danger-row { display: flex; align-items: center; gap: .9rem; margin-top: 1.8rem; flex-wrap: wrap; }
.danger-row .dr-hint { font-size: .76rem; color: var(--faint); }
#archBtn:hover { color: var(--rose); border-color: rgba(255,138,115,.4); }

/* ---- team: invite flow + customer contact -------------------------------- */
.invite-cta { margin-bottom: 1.6rem; padding: 1rem 1.4rem; font-size: 1rem; }
/* Feature 10 — owner-operator add-myself button + confirmation panel. Sits
   just under the invite CTA; pull it up so the two read as a pair. */
.owner-onfield-btn { margin-top: -.7rem; margin-bottom: 1.6rem; }
.owner-onfield { display: flex; align-items: center; gap: .85rem; margin-top: -.7rem; margin-bottom: 1.6rem; padding: .85rem 1.1rem; background: linear-gradient(180deg, var(--gold-soft), rgba(242,194,78,.05)); border: 1px solid rgba(242,194,78,.35); border-radius: var(--r); }
.owner-onfield .of-check { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--green-bright), var(--green)); color: #052b14; }
.owner-onfield p { font-size: .9rem; font-weight: 600; color: var(--text); }
.invite-list { display: flex; flex-direction: column; gap: .6rem; }
.invite-card { display: flex; align-items: center; gap: .9rem; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px dashed rgba(91,203,230,.4); border-radius: var(--r); padding: .9rem 1.1rem; }
.invite-card .avatar { opacity: .75; }
.iv-main { flex: 1; min-width: 0; }
.iv-name { font-weight: 700; }
.iv-sub { font-size: .78rem; color: var(--subtle); margin-top: .1rem; }
.iv-act { display: flex; flex-direction: column; gap: .4rem; align-items: flex-end; }
.contact-panel { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.4rem; }
.cp-sub { font-size: .88rem; color: var(--muted); max-width: 62ch; }
.cp-sub b { color: var(--text); }
.cp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
@media (max-width: 560px) { .cp-fields { grid-template-columns: 1fr; } }

/* ---- generic dialog ------------------------------------------------------ */
.dialog { position: relative; width: min(460px, 100%); max-height: 90vh; overflow-y: auto; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-hard); border-radius: var(--r-xl); box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255,255,255,.05); padding: 1.5rem 1.5rem 1.6rem; animation: rise .4s var(--ease) both; }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.dlg-head .phone-close { position: static; }
.dlg-title { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; margin-top: .3rem; text-transform: uppercase; letter-spacing: .02em; }
.dlg-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .dlg-2col { grid-template-columns: 1fr; } }
.dlg-hint { font-size: .82rem; color: var(--subtle); margin: .2rem 0 1.1rem; line-height: 1.5; }
.dlg-hint i { color: var(--muted); font-style: italic; }
.field .opt { font-weight: 400; opacity: .6; letter-spacing: .04em; }
.field textarea, .dlg-select { width: 100%; padding: .8rem .95rem; border-radius: 9px; background: rgba(0,0,0,.22); color: var(--text); border: 1px solid var(--line-hard); font-size: .92rem; font-family: inherit; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.field textarea:focus, .dlg-select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.dlg-select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--subtle) 50%), linear-gradient(135deg, var(--subtle) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.iv-channels { display: flex; flex-direction: column; gap: .6rem; }
.iv-link { margin-top: .9rem; font-family: var(--mono); font-size: .76rem; color: var(--muted); background: rgba(0,0,0,.25); border: 1px dashed var(--line-hard); border-radius: 10px; padding: .7rem .85rem; word-break: break-all; text-align: center; }
.dlg-textlink { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--subtle); transition: color .2s; cursor: pointer; }
.dlg-textlink:hover { color: var(--green); }
.dlg-success { text-align: center; padding: .6rem 0 .2rem; }
.dlg-success svg { margin: 0 auto 1rem; }
.dlg-success .dlg-hint { margin: .5rem auto 1.3rem; max-width: 34ch; }

/* ---- share proof: CTA + composer ----------------------------------------- */
.share-cta-row { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.share-cta-row .dlg-textlink { margin-top: 0; }
.btn-share { color: #052b14; background: linear-gradient(180deg, var(--green-bright), var(--green)); box-shadow: 0 10px 28px rgba(87,224,138,.32), inset 0 1px 0 rgba(255,255,255,.4); font-size: 1rem; padding: .95rem 1.6rem; }
.btn-share:hover { box-shadow: 0 14px 36px rgba(87,224,138,.44); transform: translateY(-2px); }
.composer { display: none; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--green-soft); border-radius: var(--r-lg); padding: 1.1rem 1.2rem; margin-bottom: 1.4rem; box-shadow: 0 0 0 1px var(--green-soft); }
.composer.open { display: block; animation: rise .35s var(--ease) both; }
.comp-label { display: flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--subtle); margin-bottom: .6rem; }
.composer textarea { width: 100%; padding: .85rem .95rem; border-radius: 10px; background: rgba(0,0,0,.22); color: var(--text); border: 1px solid var(--line-hard); font-size: .9rem; font-family: inherit; line-height: 1.55; resize: vertical; }
.composer textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.comp-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .7rem; }
.comp-reset { font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.comp-reset:hover { color: var(--text); text-decoration: underline; }
.comp-hint { margin-top: .65rem; font-size: .74rem; color: var(--faint); }

/* ---- note thread ---------------------------------------------------------- */
.thread { border-top: 1px solid var(--line); margin-top: 1.3rem; padding-top: 1.1rem; }
.th-note, .th-reply { border-radius: 12px; padding: .7rem .85rem; font-size: .86rem; color: var(--text); line-height: 1.5; margin-bottom: .55rem; }
.th-note { background: rgba(0,0,0,.22); border-left: 2px solid var(--gold); }
.th-reply { background: rgba(91,203,230,.08); border: 1px solid rgba(91,203,230,.22); }
.th-reply.mine { background: rgba(0,0,0,.18); border: 1px solid var(--line); }
.th-meta { font-family: var(--mono); font-size: .6rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--subtle); margin-bottom: .3rem; }
.th-input { display: flex; gap: .5rem; margin-top: .7rem; }
.th-input input { flex: 1; height: 42px; border-radius: 999px; background: rgba(0,0,0,.22); border: 1px solid var(--line-hard); color: var(--text); font-size: .88rem; padding: 0 1.1rem; transition: border-color .2s, box-shadow .2s; }
.th-input input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.th-send { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #052b14; background: linear-gradient(180deg, var(--green-bright), var(--green)); box-shadow: 0 6px 16px rgba(87,224,138,.3); transition: transform .2s var(--ease); }
.th-send:hover { transform: translateY(-2px); } .th-send:active { transform: scale(.94); }

/* ---- need-to-know editor (the owner's side of pre-arrival) ---------------- */
.nk-panel { margin-top: 1.4rem; background: linear-gradient(180deg, rgba(242,194,78,.09), rgba(242,194,78,.03)); border: 1px solid rgba(242,194,78,.35); border-radius: var(--r-lg); padding: 1.4rem; }
.nk-eyebrow { font-family: var(--mono); font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.nk-title { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin-top: .35rem; text-transform: uppercase; letter-spacing: .02em; }
.nk-sub { font-size: .84rem; color: var(--muted); margin-top: .3rem; max-width: 60ch; }
.nk-toggles { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.nk-toggle { font-size: .86rem; font-weight: 650; color: var(--muted); background: rgba(0,0,0,.18); border: 1px solid var(--line-hard); border-radius: 999px; padding: .55rem 1rem; transition: all .2s var(--ease); }
.nk-toggle:hover { border-color: rgba(242,194,78,.5); transform: translateY(-1px); }
.nk-toggle.on { color: #2a1c04; background: linear-gradient(180deg, #FBD476, var(--gold)); border-color: transparent; box-shadow: 0 8px 20px rgba(242,194,78,.3); }
.nk-toggle:active { transform: scale(.97); }
.nk-panel .field textarea { background: rgba(0,0,0,.18); }
.nk-panel .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }

/* ---- the crew phone: pre-arrival, office ping, PIN setup, work orders ----- */
.pre-arrival { margin-top: .9rem; background: linear-gradient(180deg, rgba(242,194,78,.16), rgba(242,194,78,.08)); border: 2px solid rgba(242,194,78,.55); border-radius: var(--r); padding: .85rem .95rem; }
.pa-eyebrow { font-family: var(--mono); font-size: .6rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--gold); margin-bottom: .45rem; }
.pa-line { font-size: .86rem; color: var(--text); line-height: 1.5; margin-top: .25rem; }
.pa-line b { color: #FBD476; }
.office-ping { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; background: linear-gradient(180deg, rgba(91,203,230,.16), rgba(91,203,230,.07)); border: 1px solid rgba(91,203,230,.45); border-radius: var(--r); padding: .75rem .9rem; margin-bottom: 1rem; font-size: .82rem; color: var(--text); animation: rise .4s var(--ease) both; transition: transform .2s var(--ease); }
.office-ping:hover { transform: translateY(-1px); }
.office-ping > svg { color: var(--sky); flex: none; }
.office-ping span { flex: 1; } .office-ping b { color: var(--sky); }
.ph-wos { border-top: 1px dashed var(--line-hard); margin-top: 1.1rem; }
.pj-wrench { color: var(--gold) !important; background: var(--gold-soft) !important; }
.ph-wo { border-color: rgba(242,194,78,.25); }
.pin-step { text-align: center; align-items: center; }
.pin-step .ci-kicker { margin-top: 1.4rem; color: var(--green); }
.pin-phase { display: flex; gap: 7px; justify-content: center; margin-top: 1.4rem; }
.pp-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.18); transition: all .25s var(--ease); }
.pp-dot.on { background: var(--green); transform: scale(1.25); box-shadow: 0 0 10px rgba(87,224,138,.6); }
.pp-dot.done { background: var(--green-deep); }
.pin-dots { display: flex; gap: .9rem; justify-content: center; margin-top: 1.6rem; }
.pin-dot { width: 17px; height: 17px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); transition: all .2s var(--ease); }
.pin-dot.filled { border-color: var(--green); background: var(--green); transform: scale(1.12); box-shadow: 0 0 14px rgba(87,224,138,.55); }
.pin-dots.shake { animation: pin-shake .45s ease; }
@keyframes pin-shake { 0%,100%{transform:none;} 20%{transform:translateX(-7px);} 40%{transform:translateX(6px);} 60%{transform:translateX(-4px);} 80%{transform:translateX(3px);} }
.pin-err { margin-top: 1rem; color: var(--rose); font-size: .84rem; font-weight: 650; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; width: 100%; max-width: 250px; margin: 1.2rem auto .4rem; }
.pin-key { height: 56px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--text); transition: background .15s, transform .12s; }
.pin-key:hover { background: rgba(255,255,255,.11); }
.pin-key:active { transform: scale(.94); background: var(--green-soft); }

/* ---- work orders board ----------------------------------------------------- */
.wo-list { display: flex; flex-direction: column; gap: .7rem; }
.wo-card { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: start; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--r); padding: 1rem 1.1rem; transition: transform .2s var(--ease); }
.wo-card:hover { transform: translateY(-2px); }
.wo-card.settled { border-left-color: var(--green); opacity: .72; }
.wo-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); flex: none; }
.wo-ico svg { width: 20px; height: 20px; }
.wo-card.settled .wo-ico { background: var(--green-soft); color: var(--green); }
.wo-main { min-width: 0; }
.wo-who { font-weight: 700; font-size: .98rem; text-align: left; transition: color .15s; }
.wo-who:hover { color: var(--green); }
.wo-addr { color: var(--subtle); font-weight: 500; font-size: .8rem; }
.wo-desc { font-size: .86rem; color: var(--muted); margin-top: .25rem; }
.wo-meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; align-items: center; }
.wo-assign { background: rgba(0,0,0,.25); border: 1px solid var(--line-hard); border-radius: 7px; color: var(--muted); font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .5rem; cursor: pointer; }
.wo-assign:focus { outline: none; border-color: var(--green); }

/* =========================================================================
   THE PUBLIC PROOF PAGE — what the customer opens. Bright, warm, branded
   like the front door; the one screen in the control room that goes light.
   ========================================================================= */
body.proof-mode { background: #F7FBF3; }
body.proof-mode::before { content: none; }
.proof-mode .topbar, .proof-mode .fab-stack, .proof-mode .demo-ribbon { display: none; }
.proof-page { min-height: 100vh; background:
  radial-gradient(900px 500px at 50% -10%, rgba(63,210,124,.13), transparent 60%),
  radial-gradient(700px 420px at 88% 12%, rgba(233,169,60,.10), transparent 55%),
  #F7FBF3; color: #46594C; animation: fade .5s var(--ease) both; }
.proof-demo-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 1.2rem; background: rgba(18,42,32,.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #A6BCAE; font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.proof-demo-bar span { display: inline-flex; align-items: center; gap: .5rem; }
.proof-demo-bar a { display: inline-flex; align-items: center; gap: .35rem; color: var(--green); white-space: nowrap; }
.proof-demo-bar a svg { width: 14px; height: 14px; }
.proof-inner { max-width: 660px; margin: 0 auto; padding: 3rem 1.4rem 3.5rem; }
.proof-hero { text-align: center; }
.proof-mark { display: inline-block; filter: drop-shadow(0 10px 22px rgba(20,50,30,.18)); }
.proof-biz { font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #B97F23; margin-top: 1rem; }
.proof-hero h1 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(2.1rem, 6vw, 2.9rem); color: #15271B; margin-top: .5rem; line-height: 1.05; }
.proof-hero h1 em { font-style: italic; color: #16A34A; }
.proof-sub { max-width: 44ch; margin: .8rem auto 0; font-size: .98rem; line-height: 1.6; color: #46594C; }
.proof-sub b { color: #15271B; }
.proof-contact { margin-top: 1.6rem; display: flex; flex-direction: column; align-items: center; gap: .65rem; }
.pc-label { font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #6E8576; }
.pc-btns { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }
.pc-btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .92rem; padding: .7rem 1.4rem; border-radius: 999px; transition: transform .2s var(--ease), box-shadow .2s; }
.pc-btn:hover { transform: translateY(-2px); }
.pc-text { color: #fff; background: linear-gradient(180deg, #3FD27C, #16A34A); box-shadow: 0 10px 26px rgba(22,163,74,.32); }
.pc-mail { color: #15271B; background: #fff; border: 1px solid #E2EADD; box-shadow: 0 8px 24px rgba(20,50,30,.08); }
.pc-mail:hover { border-color: #16A34A; color: #16A34A; }
.proof-cards { margin-top: 2.4rem; display: flex; flex-direction: column; gap: 1.1rem; }
.proof-card { background: #fff; border: 1px solid #E2EADD; border-radius: 22px; padding: 1.15rem; box-shadow: 0 14px 38px rgba(20,50,30,.07); animation: rise .55s var(--ease) both; }
.pcard-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: .85rem; }
.pcard-when { font-family: var(--mono); font-size: .72rem; font-weight: 600; color: #6E8576; }
.pcard-gps { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #0F7A38; background: #E5F6EC; border: 1px solid rgba(22,163,74,.25); padding: .3rem .65rem; border-radius: 999px; }
.pcard-photo { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; border: 1px solid #E2EADD; }
.pcard-stamp { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; font-size: .66rem; font-weight: 700; color: #fff; background: rgba(7,18,11,.55); padding: .3rem .6rem; border-radius: 999px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pcard-tags { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .85rem; }
.pcard-tag { font-family: var(--mono); font-size: .66rem; font-weight: 600; color: #46594C; background: #F5FAF2; border: 1px solid #E2EADD; padding: .28rem .6rem; border-radius: 999px; }
.pcard-tag b { color: #15271B; }
.pcard-tag.ok { color: #0F7A38; background: #E5F6EC; border-color: rgba(22,163,74,.25); }
.proof-foot { margin-top: 2.6rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; }
.proof-foot > span { font-family: var(--mono); font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #6E8576; }
.proof-foot .pf-sub { letter-spacing: .06em; color: #9DB3A3; text-transform: none; font-family: var(--sans); font-size: .74rem; font-weight: 500; }
@media (max-width: 560px) {
  .sev-tiles { gap: .5rem; } .sev-tile { padding: .75rem .8rem; } .sev-tile .sev-num { font-size: 1.5rem; }
  .proof-demo-bar { font-size: .56rem; }
  .wo-card { grid-template-columns: auto 1fr; } .wo-card .issue-act { grid-column: 2; flex-direction: row; }
  .share-cta-row .btn-share { width: 100%; }
}

/* =========================================================================
   TOUCH HARDENING
   The crew rows, service-log cards and stop/customer rows are tappable. On a
   touchscreen a lingering :hover state swallows the first tap (iOS shows the
   hover, then needs a second tap to activate) — so the lift effects below run
   ONLY where a real hover pointer exists. Touch instead gets an instant press
   state, and touch-action:manipulation drops the tap delay.
   ========================================================================= */
.crew-row, .log-card, .stop, .cust, .tl-stop { touch-action: manipulation; }
@media (hover: hover) {
  .crew-row:hover { transform: translateX(3px); border-color: var(--green-soft); }
  .log-card:hover { transform: translateY(-3px); border-color: var(--green-soft); }
  .stop:hover { transform: translateX(4px); border-color: var(--green-soft); }
  .stop:hover .arrow { transform: translateX(3px); color: var(--green); }
  .cust:hover { transform: translateX(4px); border-color: var(--green-soft); }
  .cust:hover .arrow { color: var(--green); }
  .tl-stop:hover .tl-who { color: var(--green); }
}
.crew-row:active, .log-card:active, .stop:active, .cust:active, .tl-stop:active {
  transform: scale(.985); border-color: var(--green-soft);
}

/* =========================================================================
   FLAGSHIP FEATURE PORTS (June 2026)
   1 tech profiles + anniversaries · 2 reference photo · 3 office notes ·
   4 urgent takeover · 5 coverage calculator
   ========================================================================= */

/* ---- Feature 1: anniversary badge + clickable crew card ----------------- */
.avatar.lg { width: 50px; height: 50px; font-size: 1.05rem; }
.tech--clickable { cursor: pointer; }
@media (hover: hover) { .tech--clickable:hover .tech-edit { color: var(--green); opacity: 1; } }
.tech--clickable:active { transform: scale(.99); }
.tech-edit { margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; font-family: var(--mono); font-size: .6rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); opacity: .8; transition: color .2s, opacity .2s; }
.tech-edit svg { width: 13px; height: 13px; }
.anniv-badge { margin-top: .9rem; display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .64rem; font-weight: 600; letter-spacing: .05em; padding: .35rem .65rem; border-radius: 999px; border: 1px solid var(--line-hard); color: var(--muted); }
.anniv-badge.anniv-tenure { color: var(--subtle); }
.anniv-badge.anniv-soon { color: var(--gold); background: var(--gold-soft); border-color: var(--gold-soft); }
.anniv-badge.anniv-now { color: #06210f; background: linear-gradient(180deg, var(--green-bright), var(--green)); border-color: transparent; font-weight: 700; box-shadow: 0 6px 16px rgba(87,224,138,.28); }

/* tech profile modal */
.tp-id { display: flex; align-items: center; gap: .85rem; }
.tp-role { font-size: .76rem; color: var(--subtle); margin-top: .15rem; }
.tp-divider { margin: 1.3rem 0 .9rem; display: flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border-top: 1px solid var(--line); padding-top: 1.1rem; }
.tp-divider svg { width: 13px; height: 13px; }

/* ---- Feature 4: owner dispatch panel ------------------------------------ */
.dispatch-panel { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.4rem; }
.disp-urgent { display: flex; align-items: center; gap: .55rem; margin: .9rem 0 1.1rem; font-size: .86rem; color: var(--muted); cursor: pointer; }
.disp-urgent b { color: var(--gold); }
.disp-urgent svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
.disp-urgent input { width: 17px; height: 17px; accent-color: var(--gold); flex: none; }

/* ---- Feature 4: full-screen urgent takeover on the crew phone ----------- */
.phone--urgent { border-color: #7a1d1d; box-shadow: var(--shadow-3), 0 0 0 1px rgba(255,120,90,.4), 0 0 60px rgba(220,60,40,.35); }
.urgent-take { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem 1.6rem; background: radial-gradient(120% 80% at 50% 0%, #5a1414 0%, #3a0d0d 55%, #2a0909 100%); color: #fff; animation: rise .35s var(--ease) both; }
.urgent-pulse { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,180,160,.4); margin-bottom: 1.3rem; }
.urgent-pulse svg { width: 46px; height: 46px; }
@media (prefers-reduced-motion: no-preference) { .urgent-pulse { animation: urgentpulse 1.6s ease-out infinite; } }
@keyframes urgentpulse { 0% { box-shadow: 0 0 0 0 rgba(255,120,90,.45); } 70% { box-shadow: 0 0 0 22px rgba(255,120,90,0); } 100% { box-shadow: 0 0 0 0 rgba(255,120,90,0); } }
.urgent-eyebrow { font-family: var(--mono); font-size: .66rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #ffb4a4; }
.urgent-h { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; margin-top: .5rem; text-transform: uppercase; letter-spacing: .02em; }
.urgent-where { margin-top: .7rem; display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .72rem; font-weight: 600; color: #ffd2c8; }
.urgent-where svg { width: 14px; height: 14px; }
.urgent-body { margin-top: 1.1rem; font-size: 1.06rem; line-height: 1.5; color: #fff5f2; max-width: 30ch; font-weight: 500; }
.urgent-foot { position: absolute; left: 1.6rem; right: 1.6rem; bottom: 1.8rem; }
.btn-urgent-ack { color: #5a1414; background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.3); font-weight: 800; }
.btn-urgent-ack:hover { transform: translateY(-2px); }
.urgent-hint { margin-top: .8rem; font-size: .68rem; color: #ffc9bd; font-family: var(--mono); letter-spacing: .03em; }

/* ---- Feature 2 + 3: reference photo + office notes grid ----------------- */
.ref-office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.6rem 0 0; }
@media (max-width: 720px) { .ref-office-grid { grid-template-columns: 1fr; } }
.ref-panel, .office-panel { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.35rem; }
.office-panel { border-color: rgba(242,194,78,.22); }
.ref-eyebrow, .office-eyebrow { display: flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.ref-eyebrow svg, .office-eyebrow svg { width: 14px; height: 14px; }
.office-eyebrow { color: var(--gold); }
.office-private { margin-left: .3rem; font-size: .56rem; letter-spacing: .14em; color: #06210f; background: var(--gold); padding: .15rem .45rem; border-radius: 4px; font-weight: 800; }
.ref-title { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; margin: .55rem 0 .35rem; }
.ref-sub { font-size: .82rem; line-height: 1.5; color: var(--muted); }
.ref-shot { position: relative; aspect-ratio: 16/10; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-hard); margin: 1rem 0 .8rem; background: rgba(0,0,0,.2); }
.ref-shot.flash::after { content: ""; position: absolute; inset: 0; background: #fff; animation: flash .5s ease; pointer-events: none; }
.ref-shot .ref-tag, .ph-ref-shot .ref-tag { position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: .35rem; font-family: var(--mono); font-size: .58rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #06210f; background: var(--green-bright); padding: .28rem .55rem; border-radius: 999px; }
.ref-shot .ref-tag svg, .ph-ref-shot .ref-tag svg { width: 12px; height: 12px; }
.ref-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; color: var(--subtle); text-align: center; padding: 1rem; }
.ref-empty svg { width: 30px; height: 30px; color: var(--faint); margin-bottom: .2rem; }
.ref-empty span { font-weight: 700; font-size: .9rem; color: var(--muted); }
.ref-empty small { font-size: .72rem; color: var(--faint); }
.ref-cap { width: 100%; padding: .65rem .8rem; border-radius: 9px; background: rgba(0,0,0,.22); color: var(--text); border: 1px solid var(--line-hard); font-size: .85rem; font-family: inherit; margin-bottom: .8rem; transition: border-color .2s, box-shadow .2s; }
.ref-cap:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.ref-actions { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }

/* reference card on the crew's phone job screen */
.ph-ref { margin-top: 1rem; background: var(--green-soft); border: 1px solid var(--green-soft); border-radius: var(--r); padding: .85rem .9rem; }
.ph-ref-head { display: flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: .6rem; }
.ph-ref-head svg { width: 14px; height: 14px; }
.ph-ref-shot { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-hard); }
.ph-ref-cap { margin-top: .55rem; font-size: .82rem; line-height: 1.45; color: var(--text); font-weight: 500; }

/* ---- Feature 5: coverage calculator ------------------------------------- */
.tools-strip { margin-top: 2.2rem; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; background: linear-gradient(120deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.5rem; }
.tools-strip .ts-main { flex: 1 1 280px; }
.ts-eyebrow { display: flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.ts-eyebrow svg { width: 14px; height: 14px; }
.ts-title { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; margin: .45rem 0 .3rem; }
.ts-sub { font-size: .85rem; line-height: 1.5; color: var(--muted); max-width: 56ch; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.2rem 0 .4rem; }
@media (max-width: 480px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-out { margin-top: 1.1rem; }
.calc-empty { display: flex; align-items: center; gap: .5rem; padding: 1.2rem; border: 1px dashed var(--line-hard); border-radius: var(--r); color: var(--subtle); font-size: .88rem; }
.calc-empty svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
.calc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; }
.calc-card { background: rgba(0,0,0,.2); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; }
.calc-card.calc-time { border-color: rgba(91,203,230,.28); }
.calc-card.calc-fert { border-color: var(--green-soft); }
.calc-card.calc-seed { border-color: var(--gold-soft); }
.cc-eyebrow { display: flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .6rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.cc-eyebrow svg { width: 13px; height: 13px; }
.cc-big { font-family: var(--serif); font-weight: 700; font-size: 2.1rem; line-height: 1; margin: .5rem 0 .35rem; font-variant-numeric: tabular-nums; }
.cc-big span { font-size: .95rem; font-weight: 600; color: var(--subtle); margin-left: .25rem; }
.cc-sub { font-size: .72rem; line-height: 1.4; color: var(--muted); }
.calc-note { margin-top: .9rem; display: flex; align-items: flex-start; gap: .5rem; font-size: .8rem; line-height: 1.5; color: var(--muted); background: var(--green-soft); border: 1px solid var(--green-soft); border-radius: var(--r); padding: .75rem .85rem; }
.calc-note svg { width: 13px; height: 13px; color: var(--green); flex: none; margin-top: .2rem; }
.calc-note b { color: var(--text); }


/* real proof photo replaces the drawn scene */
img.turf { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Mobile overflow hardening — sign-in + shell (responsive QA pass) ──
   The sign-in card could not shrink below its heading on a narrow phone,
   pushing ~10px past the viewport. Let it shrink and scale the headline. */
@media (max-width: 480px) {
  .signin { padding-left: 1rem; padding-right: 1rem; }
  .signin-card { width: 100%; min-width: 0; }
  .signin h1 { font-size: clamp(1.9rem, 7.5vw, 2.4rem); }
}
html, body { overflow-x: hidden; overflow-x: clip; }

