/* =========================================================================
   VOLTLINE ELECTRIC — Owner Control Room   ·   design system
   Deep-navy "mission control" (lifted, never black), electric-amber
   accents, a light cartographic map tile sitting inside the dark room.
   ========================================================================= */
:root {
  /* Deep-navy surface stack — dark, lifted, never black (electrical = pro/inspected) */
  --bg:        #141B3D;
  --bg-2:      #18204A;
  --panel:     #1E2756;
  --panel-2:   #232D63;
  --panel-3:   #2B3675;
  --raised:    #344084;
  --line:      rgba(225, 232, 255, 0.10);
  --line-soft: rgba(225, 232, 255, 0.06);
  --line-hard: rgba(225, 232, 255, 0.16);

  /* Brand accent ramp — electric amber (var names kept as --green* per the system) */
  --green:        #F5A623;
  --green-bright: #FFB73D;
  --green-deep:   #D98C12;
  --green-glow:   rgba(245, 166, 35, 0.20);
  --green-soft:   rgba(245, 166, 35, 0.13);

  --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:    #F2F4F7;
  --muted:   #AEB7C2;
  --subtle:  #7E8896;
  --faint:   #5C6570;

  --serif: "Fraunces", "Playfair Display", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px; --r: 16px; --r-lg: 22px; --r-xl: 28px;
  --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:
    radial-gradient(1100px 700px at 16% -8%, rgba(245,166,35,.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(245,166,35,.08), transparent 60%);
}
::selection { background: var(--green-glow); color: #fff; }
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-size: .72rem; font-weight: 700; letter-spacing: .2em; 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(245,166,35,.5);} 70%{box-shadow:0 0 0 10px rgba(245,166,35,0);} 100%{box-shadow:0 0 0 0 rgba(245,166,35,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: 999px; 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: #11142e; background: linear-gradient(180deg, var(--green-bright), var(--green)); box-shadow: 0 8px 22px rgba(245,166,35,.28), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(245,166,35,.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-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px; 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: #11142e; 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(245,166,35,.22), transparent 62%), linear-gradient(180deg, #0D1330 0%, #141B3D 50%, #1A2350 100%); }
.signin-bg::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background: repeating-linear-gradient(105deg, rgba(245,166,35,.025) 0 60px, rgba(245,166,35,.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-size: .68rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--subtle); }
.signin h1 { font-family: var(--serif); font-weight: 600; font-size: 2.6rem; line-height: 1.04; letter-spacing: -.01em; }
.signin h1 .accent { color: var(--green); font-style: italic; }
.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(48,56,66,.5), rgba(30,36,44,.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-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--subtle); margin-bottom: .5rem; }
.field input { width: 100%; padding: .8rem .95rem; border-radius: 12px; 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-size: .72rem; font-weight: 700; letter-spacing: .12em; 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; background: linear-gradient(180deg, rgba(22,27,33,.94), rgba(22,27,33,.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-size: .6rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--subtle); }
.brand-text .room { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; }

.nav { display: flex; align-items: center; gap: .2rem; margin: 0 auto; }
.nav a { position: relative; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); padding: .5rem .8rem; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); }
.nav a.active { color: #11142e; background: linear-gradient(180deg, var(--green-bright), var(--green)); box-shadow: 0 6px 16px rgba(245,166,35,.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: #11142e; 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: 999px; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .1em; 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: viewin .5s var(--ease) both; }
/* frozen-safe entrance: transform only, opacity always 1 — so a view can never
   get stuck invisible if no frame is scheduled after its innerHTML swap. */
@keyframes viewin { from { transform: translateY(12px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .view, .proof-page { animation: none !important; } }
/* modals / scrims / toasts keep the opacity fade — user-triggered, frames flow. */
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.view-head { margin-bottom: 1.6rem; }
.view-date { font-size: .72rem; font-weight: 700; letter-spacing: .16em; 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: .1em; }
.view-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1.02; letter-spacing: -.015em; }
.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-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }

/* ---- stat cards ------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.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.5rem 1.4rem; text-align: center; 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; right: 0; top: 0; height: 2px; }
.stat--done::after { background: linear-gradient(90deg, transparent, var(--green), transparent); }
.stat--left::after { background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.stat--crew::after { background: linear-gradient(90deg, transparent, var(--sky), transparent); }
.stat .num { font-family: var(--serif); font-weight: 600; font-size: 3.1rem; line-height: 1; letter-spacing: -.02em; }
.stat--done .num { color: var(--green); } .stat--left .num { color: var(--gold); } .stat--crew .num { color: var(--sky); }
.stat .lbl { margin-top: .5rem; font-size: .68rem; font-weight: 700; letter-spacing: .16em; 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-xl); overflow: hidden; border: 1px solid var(--line-hard); box-shadow: var(--shadow-2); background: #E9E1CF; }
.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; }
.map-fallback { position: relative; }
.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(26,18,11,.84); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-family: 'JetBrains Mono', ui-monospace, monospace; 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: rgba(245,166,35,.55); transform: translateY(-1px); }
.map-fit:active { transform: translateY(0); }
.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(245,166,35,.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,.42), 0 0 0 1px rgba(0,0,0,.2); }
.crewpin-tag { margin-top: 4px; background: #1c140d; border: 1px solid var(--line-hard); padding: .16rem .48rem; border-radius: 6px; font-family: 'JetBrains Mono', ui-monospace, monospace; 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); }
/* "on site" dwell state — steady cyan ring + tag accent (truck has stopped, working) */
.crewpin.onsite .crewpin-ring { animation: onsite-pulse 1.6s ease-in-out infinite; background: radial-gradient(circle, rgba(91,203,230,.4), transparent 70%); }
.crewpin.onsite .crewpin-dot { border-color: #bfeefb; box-shadow: 0 0 0 3px rgba(91,203,230,.3), 0 2px 6px rgba(0,0,0,.42); }
.crewpin.onsite .crewpin-tag { color: #d6f4fc; border-color: rgba(91,203,230,.6); }
@keyframes onsite-pulse { 0%,100%{transform:scale(.85);opacity:.85;} 50%{transform:scale(1.05);opacity:.35;} }
/* crew roster meta + offline ("truck gone dark") */
.cr-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; flex: none; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .62rem; line-height: 1.2; }
.cr-stop, .cr-batt { color: var(--subtle); letter-spacing: .03em; }
.cr-batt.low { color: #FF8A73; font-weight: 600; }
.crew-off { border-color: rgba(255,138,115,.4); background: linear-gradient(180deg, rgba(40,28,22,.5), var(--panel)); }
.crew-off .cr-name { color: var(--subtle); }
.crew-off .cr-note { color: #FF8A73; }
.crew-off .cr-dot { box-shadow: none; }
.veh-off .veh-tag { color: #cfd3d8; border-color: rgba(255,138,115,.45); }
.m-water { fill: #4F8BA6; font: 700 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.m-water.sm { font-size: 10px; }
.m-park { fill: #7CA05A; font: 700 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.m-st { fill: #9c8e74; font: 700 11px var(--sans); letter-spacing: .14em; }
.map-hud { position: absolute; left: 14px; top: 14px; z-index: 3; display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border-radius: 999px; background: rgba(18,22,28,.82); border: 1px solid var(--line-hard); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.map-gps { position: absolute; right: 14px; top: 14px; z-index: 3; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #11142e; background: var(--green-bright); padding: .4rem .7rem; border-radius: 999px; }
.map-legend { position: absolute; left: 14px; bottom: 14px; z-index: 3; display: flex; gap: .8rem; padding: .45rem .75rem; border-radius: 12px; background: rgba(18,22,28,.82); 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-size: .62rem; font-weight: 700; letter-spacing: .04em; 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; } }

.veh { position: absolute; z-index: 4; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; will-change: left, top; }
.veh-ring { position: absolute; top: 11px; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle, rgba(245,166,35,.3), transparent 70%); animation: ring 2.2s ease-out infinite; }
@keyframes ring { 0%{transform:scale(.6);opacity:.9;} 100%{transform:scale(1.5);opacity:0;} }
.veh-tag { display: inline-flex; align-items: center; gap: .35rem; background: #1E2756; border: 1px solid var(--line-hard); padding: .2rem .55rem .2rem .25rem; border-radius: 999px; font-size: .66rem; font-weight: 700; color: #fff; white-space: nowrap; box-shadow: var(--shadow-1); }
.veh-tag .av { width: 17px; height: 17px; font-size: .55rem; border-radius: 50%; display: grid; place-items: center; color: #11142e; font-weight: 800; }
.veh-live { color: var(--green); }
/* SVG-fallback "on site" dwell — ring steadies to cyan, tag reads "on site" */
.veh-onsite .veh-ring { background: radial-gradient(circle, rgba(91,203,230,.36), transparent 70%); animation: onsite-pulse 1.6s ease-in-out infinite; }
.veh-onsite .veh-live { color: #5BCBE6; }
.veh-icon { width: 34px; height: 23px; filter: drop-shadow(0 5px 7px rgba(0,0,0,.45)); }
.veh-focus { animation: veh-bounce .6s ease 2; }
@keyframes veh-bounce { 0%,100%{transform:translate(-50%,-50%);} 50%{transform:translate(-50%,-66%);} }

/* ---- 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; }
.crew-row:hover { transform: translateX(3px); border-color: var(--green-soft); }
.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); }

/* =========================================================================
   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:hover { transform: translateY(-3px); border-color: var(--green-soft); }
.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: #11142e; 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-size: .74rem; 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-size: .66rem; font-weight: 650; color: var(--muted); background: rgba(0,0,0,.2); border: 1px solid var(--line); padding: .2rem .45rem; border-radius: 999px; }
.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:hover { transform: translateX(4px); border-color: var(--green-soft); }
.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-variant-numeric: tabular-nums; font-size: .82rem; font-weight: 700; color: var(--muted); width: 52px; }
.stop-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .68rem; font-weight: 700; letter-spacing: .06em; 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; }
.stop:hover .arrow { transform: translateX(3px); color: var(--green); }

/* =========================================================================
   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-weight: 700; font-size: .82rem; font-variant-numeric: tabular-nums; }
.tl-who { font-weight: 600; margin-top: .2rem; }
.tl-addr { font-size: .78rem; color: var(--subtle); }
.tl-stop:hover .tl-who { color: var(--green); }

/* =========================================================================
   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:hover { transform: translateX(4px); border-color: var(--green-soft); }
.cust .who { font-weight: 650; } .cust .addr { font-size: .82rem; color: var(--subtle); }
.cust .arrow { color: var(--faint); } .cust:hover .arrow { color: var(--green); }
.day-badge { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .32rem .7rem; border-radius: 999px; 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; }
/* Owner-operator "add me to the crew" row (ported from the flagship's Team page). */
.self-crew { display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left; margin-top: 1.1rem; padding: 1rem 1.2rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); color: var(--text); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.self-crew:not(.on):hover { transform: translateY(-3px); border-color: var(--green-soft); box-shadow: 0 12px 30px -18px var(--green-glow); }
.self-crew > svg { width: 22px; height: 22px; flex: none; color: var(--green); }
.self-crew .sc-copy { min-width: 0; } .self-crew .sc-t { font-weight: 700; font-size: .96rem; } .self-crew .sc-s { font-size: .78rem; color: var(--subtle); margin-top: .15rem; }
.self-crew.on { border-color: var(--green-soft); background: linear-gradient(180deg, var(--green-soft), var(--panel)); }
.self-crew.on .avatar { width: 42px; height: 42px; flex: none; }
.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-size: .78rem; font-weight: 700; letter-spacing: .1em; 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); }
/* electrical proof scene — a clean breaker panel: a brushed-steel enclosure,
   two neat columns of seated breakers on a dark bus, and the amber indicator
   glow of a live, labeled main. This is the "done right" panel — the photo a
   customer sees as proof the work passed. Rendered pure CSS (no images). */
.turf {
  position: absolute; inset: 0;
  /* enclosure: cool brushed steel with a soft top-down sheen */
  background:
    /* the dark center bus channel between the two breaker banks */
    linear-gradient(90deg, transparent 0 48%, #20253a 48% 49.5%, #0e1124 49.5% 50.5%, #20253a 50.5% 52%, transparent 52%),
    /* brushed-steel enclosure with a soft top-down sheen */
    linear-gradient(180deg, #c9d2e3 0%, #aab4cb 14%, #9aa6bf 100%);
}
/* the two breaker banks drawn as light slabs over the steel */
.turf::before {
  content: ""; position: absolute; top: 8%; bottom: 8%; left: 16%; right: 16%; z-index: 1; border-radius: 3px;
  background:
    /* neat rows of breaker handles, left + right banks */
    repeating-linear-gradient(180deg, #e7ecf6 0 5.2%, #cdd6e6 5.2% 6%, #e7ecf6 6% 11%, #bcc6da 11% 11.6%),
    linear-gradient(90deg, #dfe5f1 0 47%, #1b2030 47% 53%, #dfe5f1 53% 100%);
  box-shadow: inset 0 0 0 1px rgba(20,27,61,.18), inset 0 2px 6px rgba(0,0,0,.12);
}
/* the live amber indicator glow of the labeled main breaker (top center) */
.turf::after {
  content: ""; position: absolute; top: 10%; left: 50%; transform: translateX(-50%); width: 12%; height: 7%; z-index: 2; border-radius: 2px;
  background: linear-gradient(180deg, #FFC964, #F5A623);
  box-shadow: 0 0 10px 2px rgba(245,166,35,.6), 0 0 22px 6px rgba(245,166,35,.28), inset 0 1px 0 rgba(255,255,255,.5);
}
.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(13,19,48,.62); 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: #11142e; 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-size: .62rem; font-weight: 700; letter-spacing: .1em; 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: 999px; 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: #11142e; background: linear-gradient(180deg, var(--green-bright), var(--green)); box-shadow: 0 14px 34px rgba(245,166,35,.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(6,9,13,.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-size: .68rem; font-weight: 700; letter-spacing: .14em; 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(6,9,13,.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 #0E1115; 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 1.6rem .2rem; 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-size: .64rem; font-weight: 700; letter-spacing: .16em; 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: #11142e; }
.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-tile { position: absolute; inset: 0; background: #E9E1CF; background-image: repeating-linear-gradient(90deg, transparent 0 38px, #d8cdb6 38px 40px), repeating-linear-gradient(0deg, transparent 0 30px, #d8cdb6 30px 32px); }
.ph-map-tile::after { content:""; position:absolute; left:0; right:0; bottom:0; height:40%; background:#A9D6E5; }
.ph-pin { position: absolute; left: 50%; top: 42%; 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; }
.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); }
.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: #1E2756; }
.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); }
/* "Diagnostic only this visit" affirmation — the escape hatch on the mandatory
   work-log gate (ported from the flagship's verified screen). */
.ci-none { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; margin-top: .9rem; padding: .75rem .85rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); transition: border-color .2s, background .2s; }
.ci-none:hover { border-color: var(--line-hard); }
.ci-none .box { width: 22px; height: 22px; flex: none; border-radius: 7px; border: 1px solid var(--line-hard); display: grid; place-items: center; color: #0c1410; transition: background .2s, border-color .2s; }
.ci-none .nl { font-weight: 600; font-size: .9rem; line-height: 1.2; } .ci-none .nl small { display: block; color: var(--subtle); font-weight: 400; font-size: .74rem; margin-top: .15rem; }
.ci-none.on { border-color: var(--sky); background: var(--sky-soft); }
.ci-none.on .box { background: var(--sky); border-color: var(--sky); }
.ci-gatehint { display: flex; align-items: center; gap: .5rem; margin-top: .85rem; padding: .65rem .8rem; border-radius: 11px; border: 1px solid var(--gold-soft); background: var(--gold-soft); color: var(--gold); font-size: .82rem; font-weight: 600; }
.ci-gatehint svg { width: 15px; height: 15px; flex: none; }
.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: 999px; background: #1E2756; 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(20,25,31,.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, lifecycle, need-to-know,
   threads, alerts, archive, work orders. Same machined room, new instruments.
   Skinned to the Voltline Electric amber/navy theme.
   ========================================================================= */

/* ---- 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(245,166,35,.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(245,166,35,.6); box-shadow: 0 0 0 1px rgba(245,166,35,.4), 0 10px 26px rgba(245,166,35,.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(245,166,35,.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(245,166,35,.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); }

/* ---- 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; }
.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; }
.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: #11142e; background: linear-gradient(180deg, var(--green-bright), var(--green)); box-shadow: 0 10px 28px rgba(245,166,35,.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(245,166,35,.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: #11142e; background: linear-gradient(180deg, var(--green-bright), var(--green)); box-shadow: 0 6px 16px rgba(245,166,35,.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; }
.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, 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); }

/* ---- 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: #F2F6FD; }
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(245,166,35,.13), transparent 60%),
  radial-gradient(700px 420px at 88% 12%, rgba(242,194,78,.12), transparent 55%),
  #F2F6FD; color: #3D4663; animation: viewin .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(27,32,39,.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #b6ab9d; 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-bright); 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,27,61,.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: #141B3D; margin-top: .5rem; line-height: 1.05; }
.proof-hero h1 em { font-style: italic; color: #F5A623; }
.proof-sub { max-width: 44ch; margin: .8rem auto 0; font-size: .98rem; line-height: 1.6; color: #3D4663; }
.proof-sub b { color: #141B3D; }
.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: #8a755f; }
.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, #FFB73D, #F5A623); box-shadow: 0 10px 26px rgba(245,166,35,.32); }
.pc-mail { color: #141B3D; background: #fff; border: 1px solid #E2E8F5; box-shadow: 0 8px 24px rgba(20,27,61,.08); }
.pc-mail:hover { border-color: #F5A623; color: #F5A623; }
.proof-cards { margin-top: 2.4rem; display: flex; flex-direction: column; gap: 1.1rem; }
.proof-card { background: #fff; border: 1px solid #E2E8F5; border-radius: 22px; padding: 1.15rem; box-shadow: 0 14px 38px rgba(20,27,61,.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: #8a755f; }
.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: #146A4A; background: #E6F5EE; border: 1px solid rgba(20,106,74,.25); padding: .3rem .65rem; border-radius: 999px; }
.pcard-photo { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; border: 1px solid #E2E8F5; }
.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(20,10,2,.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: #3D4663; background: #F2F6FD; border: 1px solid #E2E8F5; padding: .28rem .6rem; border-radius: 999px; }
.pcard-tag b { color: #141B3D; }
.pcard-tag.ok { color: #146A4A; background: #E6F5EE; border-color: rgba(20,106,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: #8a755f; }
.proof-foot .pf-sub { letter-spacing: .06em; color: #a8927c; 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%; }
  .cp-fields { grid-template-columns: 1fr; }
}

/* ---- customer contact panel (rides on shared proof) --------------------- */
.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; }

/* =========================================================================
   NEWEST FLAGSHIP FEATURES — tech profiles · reference photo · office notes
   · urgent takeover · job estimate tool
   ========================================================================= */
.avatar.lg { width: 52px; height: 52px; font-size: 1.1rem; }
.view--narrow { max-width: 920px; }

/* ---- tech-profile suite (Team cards open an editable profile) ----------- */
.tech[data-tech] { cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
.tech[data-tech]:hover { transform: translateY(-3px); border-color: var(--green-soft); box-shadow: var(--shadow-2); }
.tech[data-tech]:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.tech-cred { display: flex; flex-wrap: wrap; gap: .4rem; margin: .85rem 0 .2rem; }
.tc-chip { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line-hard); padding: .26rem .55rem; border-radius: 999px; }
.tc-chip svg { width: 12px; height: 12px; }
.tc-lic { color: var(--green); border-color: var(--green-soft); background: var(--green-soft); }
.tc-anniv { color: var(--gold); border-color: var(--gold-soft); background: var(--gold-soft); }
.tech-open { margin-left: auto; display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 650; color: var(--green); opacity: 0; transition: opacity .2s; }
.tech[data-tech]:hover .tech-open { opacity: 1; }
.tp-head { display: flex; align-items: center; gap: .85rem; }
.tp-role { font-size: .8rem; color: var(--subtle); margin-top: .15rem; }
.tp-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.2rem; padding: .8rem 1rem; border-radius: var(--r); background: linear-gradient(180deg, rgba(245,166,35,.12), rgba(245,166,35,.05)); border: 1px solid var(--green-soft); }
.tp-tenure { display: flex; flex-direction: column; }
.tp-yrs { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--green-bright); line-height: 1; }
.tp-since { font-size: .72rem; color: var(--subtle); margin-top: .25rem; }
.tp-anniv-badge { font-size: .68rem; font-weight: 700; color: #11142e; background: linear-gradient(180deg, #FFE08A, var(--gold)); padding: .35rem .65rem; border-radius: 999px; box-shadow: 0 4px 12px rgba(242,194,78,.3); }
.tp-em-label { display: flex; align-items: center; gap: .4rem; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); margin: .4rem 0 .7rem; }
.tp-em-label svg { width: 14px; height: 14px; }

/* ---- reference photo + private office notes (customer detail) ----------- */
.ref-office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 1.4rem; }
@media (max-width: 760px) { .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.2rem 1.3rem; }
.ref-eyebrow, .office-eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.ref-eyebrow svg, .office-eyebrow svg { width: 14px; height: 14px; }
.office-eyebrow { color: var(--gold); }
.ref-title, .office-title { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin: .35rem 0 .35rem; }
.ref-sub, .office-sub { font-size: .82rem; color: var(--muted); line-height: 1.5; margin-bottom: .9rem; }
.office-sub b { color: var(--gold); }
.ref-photo { position: relative; aspect-ratio: 16/10; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-hard); }
.ref-photo .ref-cap { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: .35rem; font-size: .66rem; font-weight: 700; color: #fff; background: rgba(7,18,11,.62); padding: .3rem .6rem; border-radius: 999px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ref-photo .ref-cap svg { width: 12px; height: 12px; }
.ref-replace { position: absolute; right: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: .3rem; font-size: .64rem; font-weight: 700; color: #11142e; background: var(--green-bright); padding: .3rem .6rem; border-radius: 999px; box-shadow: var(--shadow-1); }
.ref-replace svg { width: 13px; height: 13px; }
.ref-replace:hover { transform: translateY(-1px); }
.ref-photo:not(.has) { border-style: dashed; background: rgba(0,0,0,.18); }
.ref-add { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; color: var(--subtle); transition: color .2s, background .2s; }
.ref-add svg { width: 22px; height: 22px; }
.ref-add:hover { color: var(--green); background: var(--green-soft); }
.ref-add .ra-t { font-weight: 650; font-size: .9rem; }
.ref-add .ra-s { font-size: .72rem; color: var(--faint); }
.office-panel { border-color: var(--gold-soft); }
.office-panel .field textarea { background: rgba(0,0,0,.2); }
.office-panel .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }

/* ---- reference photo on the tech's phone (job + work-order screens) ----- */
.ph-ref { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; padding: .65rem; border-radius: var(--r); background: var(--sky-soft); border: 1px solid rgba(91,203,230,.25); }
.ph-ref-thumb { position: relative; width: 64px; height: 48px; border-radius: 9px; overflow: hidden; flex: none; }
.ph-ref-tag { position: absolute; left: 4px; bottom: 4px; z-index: 2; display: inline-flex; align-items: center; gap: .2rem; font-size: .52rem; font-weight: 700; color: #fff; background: rgba(7,18,11,.6); padding: .15rem .35rem; border-radius: 999px; }
.ph-ref-tag svg { width: 11px; height: 11px; }
.ph-ref-t { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sky); }
.ph-ref-s { font-size: .82rem; color: var(--text); line-height: 1.4; }

/* ---- urgent takeover (owner composer + crew-phone full-screen) ---------- */
.urgent-cta { margin-top: 1.8rem; padding: 1.2rem 1.3rem; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255,138,115,.12), rgba(255,138,115,.04)); border: 1px solid rgba(255,138,115,.28); }
.uc-eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); }
.uc-eyebrow svg { width: 14px; height: 14px; }
.uc-title { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin: .35rem 0; }
.uc-sub { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.5; }
.uc-sub b { color: var(--text); }
.btn-urgent { color: #fff; background: linear-gradient(180deg, #FF9E89, var(--rose)); box-shadow: 0 8px 22px rgba(255,138,115,.3), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-urgent:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,138,115,.42); }
.urg-presets { display: flex; flex-direction: column; gap: .45rem; }
.urg-preset { text-align: left; font-size: .82rem; font-weight: 550; color: var(--muted); background: rgba(0,0,0,.2); border: 1px solid var(--line-hard); border-radius: 10px; padding: .55rem .7rem; transition: border-color .2s, color .2s, background .2s; }
.urg-preset:hover { color: var(--text); border-color: rgba(255,138,115,.4); background: rgba(255,138,115,.08); }
.urg-hint { font-size: .76rem; color: var(--subtle); margin-top: .8rem; text-align: center; }
.urg-hint b { color: var(--rose); }

.urgent-takeover { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 1.1rem; background: rgba(20,8,4,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: inherit; animation: fade .3s var(--ease) both; }
.ut-card { width: 100%; max-width: 320px; background: var(--panel); border: 1px solid rgba(255,138,115,.4); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-3); animation: rise .35s var(--ease) both; }
.ut-top { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem; padding: 1.6rem 1.2rem 1.3rem; background: linear-gradient(180deg, #FF9E89, var(--rose)); color: #fff; }
.ut-ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.2); }
.ut-ico svg { width: 32px; height: 32px; }
.ut-ring { position: absolute; top: 1.6rem; width: 58px; height: 58px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); animation: utPulse 1.6s ease-out infinite; }
@keyframes utPulse { 0%{transform:scale(1);opacity:.7;} 100%{transform:scale(1.9);opacity:0;} }
.ut-kicker { font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.9); }
.ut-title { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.ut-where { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 600; color: rgba(255,255,255,.92); }
.ut-where svg { width: 13px; height: 13px; }
.ut-body { padding: 1.1rem 1.2rem; }
.ut-body p { font-size: .9rem; font-weight: 500; color: var(--text); background: rgba(0,0,0,.22); border: 1px solid var(--line-hard); border-radius: var(--r); padding: .8rem .9rem; line-height: 1.5; }
.ut-foot { padding: 0 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; }
.ut-go { font-size: .82rem; font-weight: 650; color: var(--rose); display: inline-flex; align-items: center; justify-content: center; gap: .3rem; padding: .4rem; }
.ut-go svg { width: 14px; height: 14px; }
.ut-when { text-align: center; font-family: var(--mono); font-size: .6rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--subtle); }

/* ---- coverage / dosing calculator -------------------------------------- */
.calc-grid { display: grid; grid-template-columns: 360px 1fr; gap: 1.4rem; align-items: start; }
@media (max-width: 740px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-inputs { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.4rem; }
.calc-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: -.3rem 0 1.1rem; }
.calc-chip { font-family: var(--mono); font-size: .74rem; font-weight: 600; color: var(--muted); background: rgba(0,0,0,.2); border: 1px solid var(--line-hard); border-radius: 999px; padding: .4rem .7rem; transition: all .2s; }
.calc-chip:hover { color: var(--text); border-color: var(--green-soft); }
.calc-chip.on { color: #11142e; background: linear-gradient(180deg, var(--green-bright), var(--green)); border-color: transparent; }
.calc-product { display: flex; align-items: center; gap: .55rem; padding: .7rem .85rem; border-radius: var(--r); background: var(--green-soft); border: 1px solid var(--green-soft); color: var(--green); }
.calc-product svg { width: 15px; height: 15px; flex: none; }
.calc-product span { display: flex; flex-direction: column; }
.calc-product b { color: var(--green-bright); font-size: .88rem; }
.calc-product small { color: var(--subtle); font-size: .72rem; }
.calc-out { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem 1.5rem; min-height: 220px; }
.calc-empty { display: flex; align-items: center; gap: .55rem; color: var(--subtle); font-size: .9rem; }
.calc-empty svg { width: 18px; height: 18px; color: var(--gold); }
.cr-eyebrow { font-family: var(--mono); font-size: .64rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--subtle); }
.cr-big { display: flex; align-items: baseline; gap: .55rem; font-family: var(--serif); font-weight: 600; font-size: 3.4rem; line-height: 1; color: var(--green-bright); margin: .5rem 0 1.2rem; }
.cr-big span { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--muted); }
.cr-lines { display: flex; flex-direction: column; gap: .1rem; }
.cr-line { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; padding: .65rem 0; border-bottom: 1px solid var(--line-soft); }
.cr-line:last-child { border-bottom: none; }
.crl-k { font-size: .82rem; font-weight: 600; color: var(--muted); }
.crl-v { font-family: var(--mono); font-size: .95rem; font-weight: 700; color: var(--text); text-align: right; }
.crl-s { grid-column: 1 / -1; font-size: .74rem; color: var(--faint); line-height: 1.4; }
.cr-note { display: flex; gap: .45rem; margin-top: 1.1rem; padding: .7rem .85rem; border-radius: var(--r); background: var(--gold-soft); border: 1px solid var(--gold-soft); font-size: .76rem; color: var(--gold); line-height: 1.5; }
.cr-note svg { width: 13px; height: 13px; flex: none; margin-top: 2px; }


/* 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; }

