/* =====================================================================================
   FLEET COMMAND — Cockpit design system
   Tokens → base → shell → components → screens → motion/accessibility.
   Fonts are bundled (Barlow Condensed + Inter, SIL OFL) so the app works offline.
   ===================================================================================== */

@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  /* palette (spec §3) */
  --fc-bg: #071426;
  --fc-navy: #0B1F35;
  --fc-surface: #112B46;
  --fc-glass: rgba(22, 48, 76, 0.65);
  --fc-glass-strong: rgba(17, 43, 70, 0.88);
  --fc-blue: #27A8FF;
  --fc-cyan: #4EDBFF;
  --fc-white: #F5F9FF;
  --fc-muted: #91A9C1;
  --fc-ok: #2DD4A7;
  --fc-warn: #FFC15E;
  --fc-crit: #FF6577;

  /* derived */
  --fc-line: rgba(78, 219, 255, 0.22);
  --fc-line-strong: rgba(78, 219, 255, 0.5);
  --fc-line-soft: rgba(145, 169, 193, 0.16);
  --fc-text: var(--fc-white);
  --fc-text-2: #C6D6E6;
  --fc-glow: 0 0 0 1px rgba(78, 219, 255, 0.35), 0 0 24px rgba(39, 168, 255, 0.28);
  --fc-shadow: 0 18px 40px rgba(0, 6, 16, 0.55);
  --fc-radius: 18px;
  --fc-radius-sm: 12px;
  --fc-radius-lg: 26px;

  --fc-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fc-display: "Barlow Condensed", "Inter", system-ui, sans-serif;

  --fc-tap: 52px;
  --fc-nav-h: 76px;
  --fc-safe-b: env(safe-area-inset-bottom, 0px);
  --fc-safe-t: env(safe-area-inset-top, 0px);
  --fc-ease: cubic-bezier(.2, .8, .2, 1);
  --fc-dur: 220ms;
  color-scheme: dark;
}

/* Sunlight mode: higher-contrast surfaces and heavier text for outdoor readability */
.fc-app[data-sunlight="on"] {
  --fc-glass: rgba(14, 34, 56, 0.96);
  --fc-glass-strong: rgba(10, 26, 44, 0.98);
  --fc-muted: #C3D4E5;
  --fc-text-2: #E9F1FA;
  --fc-line: rgba(78, 219, 255, 0.55);
  --fc-line-soft: rgba(190, 215, 240, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--fc-bg);
  color: var(--fc-text);
  font-family: var(--fc-font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
.fc-app[data-sunlight="on"] { font-weight: 500; }
a { color: var(--fc-cyan); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
svg.ic { width: 20px; height: 20px; flex: none; }
h1:focus, h1:focus-visible { outline: none; }
:focus-visible { outline: 3px solid var(--fc-cyan); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.fc-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ------------------------------------------------------------------------- backdrop */
.fc-app {
  min-height: 100dvh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(39, 168, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(78, 219, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #081A30 0%, var(--fc-bg) 55%);
}
.fc-app::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(78, 219, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(78, 219, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}

/* ------------------------------------------------------------------------- shell */
/* no z-index here: it would trap page sheets/overlays beneath the fixed bottom nav */
.fc-shell { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100dvh; }
.fc-main { min-width: 0; padding: calc(var(--fc-safe-t) + 8px) 16px calc(var(--fc-nav-h) + var(--fc-safe-b) + 28px); max-width: 1180px; width: 100%; margin: 0 auto; }

.fc-topbar { display: flex; align-items: center; gap: 12px; padding: 10px 0 14px; }
.fc-brand { display: flex; align-items: center; gap: 10px; font-family: var(--fc-display); font-weight: 700; letter-spacing: .18em; font-size: 15px; color: var(--fc-white); }
.fc-brand-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(145deg, var(--fc-blue), #0d5fa3); box-shadow: var(--fc-glow); }
.fc-brand-mark svg { width: 18px; height: 18px; }
.fc-topbar .spacer { flex: 1; }
.fc-iconbtn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--fc-line-soft); background: var(--fc-glass); color: var(--fc-text); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: border-color var(--fc-dur), box-shadow var(--fc-dur); }
.fc-iconbtn:hover { border-color: var(--fc-line-strong); box-shadow: var(--fc-glow); }
.fc-iconbtn svg { width: 22px; height: 22px; }
.fc-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--fc-crit); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--fc-bg); }
.fc-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; background: linear-gradient(145deg, #1d4b77, #0f2c49); border: 1px solid var(--fc-line); color: var(--fc-cyan); }

/* bottom navigation (phones) */
.fc-bottomnav {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--fc-safe-b)); z-index: 40;
  height: var(--fc-nav-h); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  border-radius: 26px; border: 1px solid var(--fc-line); background: rgba(9, 26, 45, .86);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 -2px 0 rgba(78, 219, 255, .05) inset, var(--fc-shadow);
}
.fc-navlink { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; color: var(--fc-muted); font-size: 11px; font-weight: 600; letter-spacing: .02em; border-radius: 20px; transition: color var(--fc-dur); }
.fc-navlink svg { width: 24px; height: 24px; }
.fc-navlink.active { color: var(--fc-cyan); }
.fc-navlink.active svg { filter: drop-shadow(0 0 8px rgba(78, 219, 255, .7)); }
.fc-navlink .dot { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.fc-navlink.active .dot { background: var(--fc-cyan); box-shadow: 0 0 8px var(--fc-cyan); }
.fc-fab { position: fixed; z-index: 41; right: 18px; bottom: calc(var(--fc-nav-h) + var(--fc-safe-b) + 22px); width: 64px; height: 64px; border-radius: 22px; border: 0; color: #031322; background: linear-gradient(150deg, var(--fc-cyan), var(--fc-blue)); box-shadow: 0 10px 30px rgba(39, 168, 255, .45), 0 0 0 5px rgba(7, 20, 38, .85); display: grid; place-items: center; transition: transform var(--fc-dur) var(--fc-ease); }
.fc-fab svg { width: 30px; height: 30px; stroke-width: 2.5; }
.fc-fab:active { transform: scale(.94); }
.fc-fab.open { transform: rotate(45deg); }
.fc-navrail { display: none; }

/* iPad / desktop: navigation rail */
@media (min-width: 900px) {
  .fc-shell { grid-template-columns: 232px minmax(0, 1fr); }
  .fc-bottomnav, .fc-fab { display: none; }
  .fc-main { padding: 22px 32px 48px; }
  .fc-navrail { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100dvh; padding: 22px 16px; border-right: 1px solid var(--fc-line-soft); background: rgba(8, 24, 42, .7); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .fc-navrail .fc-brand { padding: 4px 8px 22px; }
  .fc-raillink { display: flex; align-items: center; gap: 14px; height: 50px; padding: 0 14px; border-radius: 14px; color: var(--fc-text-2); font-weight: 600; font-size: 15px; transition: background var(--fc-dur), color var(--fc-dur); }
  .fc-raillink svg { width: 22px; height: 22px; }
  .fc-raillink:hover { background: rgba(39, 168, 255, .08); }
  .fc-raillink.active { color: var(--fc-white); background: linear-gradient(90deg, rgba(39, 168, 255, .22), rgba(39, 168, 255, .04)); box-shadow: inset 3px 0 0 var(--fc-cyan); }
  .fc-raillink.active svg { color: var(--fc-cyan); }
  .fc-rail-new { margin: 10px 0 16px; height: 54px; border-radius: 16px; border: 0; font-weight: 700; font-size: 15px; color: #031322; background: linear-gradient(150deg, var(--fc-cyan), var(--fc-blue)); box-shadow: 0 10px 26px rgba(39, 168, 255, .35); display: flex; align-items: center; justify-content: center; gap: 8px; }
  .fc-rail-new svg { width: 20px; height: 20px; }
  .fc-rail-sep { flex: 1; }
  .fc-rail-foot { font-size: 12px; color: var(--fc-muted); padding: 8px; }
}

/* ------------------------------------------------------------------------- surfaces */
.glass { position: relative; border-radius: var(--fc-radius); border: 1px solid var(--fc-line); background: var(--fc-glass); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); box-shadow: var(--fc-shadow); }
.glass.soft { border-color: var(--fc-line-soft); box-shadow: none; }
.glass.pad { padding: 18px; }
.panel { padding: 18px; }
.tech-corners::before, .tech-corners::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--fc-cyan); opacity: .7; pointer-events: none; }
.tech-corners::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--fc-radius); }
.tech-corners::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--fc-radius); }

.section { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.eyebrow { font-family: var(--fc-display); font-weight: 600; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--fc-cyan); }
.h1 { font-family: var(--fc-display); font-weight: 700; font-size: clamp(30px, 6vw, 44px); line-height: 1.02; letter-spacing: .01em; margin: 4px 0 0; }
.h2 { font-family: var(--fc-display); font-weight: 700; font-size: 26px; line-height: 1.05; margin: 0; letter-spacing: .01em; }
.h3 { font-family: var(--fc-display); font-weight: 700; font-size: 20px; margin: 0; letter-spacing: .02em; }
.muted { color: var(--fc-muted); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.mono { font-family: var(--fc-display); letter-spacing: .06em; }
.num { font-family: var(--fc-display); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.right { margin-left: auto; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.divider { height: 1px; background: var(--fc-line-soft); margin: 14px 0; border: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------------------- buttons */
.btn { min-height: var(--fc-tap); padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 16px; border: 1px solid var(--fc-line); background: rgba(17, 43, 70, .7); color: var(--fc-white); font-weight: 600; font-size: 16px; transition: transform 120ms, box-shadow var(--fc-dur), border-color var(--fc-dur), background var(--fc-dur); text-align: center; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { border-color: var(--fc-line-strong); box-shadow: var(--fc-glow); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.primary { border: 0; color: #031322; background: linear-gradient(150deg, var(--fc-cyan), var(--fc-blue)); box-shadow: 0 10px 26px rgba(39, 168, 255, .32); }
.btn.primary:hover { box-shadow: 0 12px 34px rgba(39, 168, 255, .5); }
.btn.danger { border-color: rgba(255, 101, 119, .5); color: #ffd6db; background: rgba(255, 101, 119, .12); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(39, 168, 255, .08); box-shadow: none; }
.btn.block { width: 100%; }
.btn.lg { min-height: 60px; font-size: 17px; border-radius: 18px; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.linkbtn { background: none; border: 0; color: var(--fc-cyan); font-weight: 600; padding: 6px 0; display: inline-flex; align-items: center; gap: 4px; }
.linkbtn svg { width: 16px; height: 16px; }

/* chips / pills */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; border: 1px solid currentColor; background: color-mix(in srgb, currentColor 12%, transparent); }
.pill .led { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pill.ok { color: var(--fc-ok); } .pill.warn { color: var(--fc-warn); } .pill.crit { color: var(--fc-crit); } .pill.info { color: var(--fc-cyan); } .pill.done { color: var(--fc-muted); } .pill.blue { color: var(--fc-blue); }
.pill.solid.crit { background: var(--fc-crit); color: #2b0006; border-color: var(--fc-crit); }
.chip { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--fc-line-soft); background: rgba(17, 43, 70, .55); color: var(--fc-text-2); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: all var(--fc-dur); }
.chip svg { width: 18px; height: 18px; }
.chip.on { color: #031322; border-color: transparent; background: linear-gradient(150deg, var(--fc-cyan), var(--fc-blue)); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }

/* sync / submission badges */
.state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 10px; }
.state svg { width: 14px; height: 14px; }
.state.draft { color: var(--fc-muted); background: rgba(145, 169, 193, .12); border: 1px dashed rgba(145, 169, 193, .5); }
.state.pending { color: var(--fc-warn); background: rgba(255, 193, 94, .12); border: 1px solid rgba(255, 193, 94, .45); }
.state.review { color: var(--fc-crit); background: rgba(255, 101, 119, .12); border: 1px solid rgba(255, 101, 119, .45); }
.state.sent { color: var(--fc-ok); background: rgba(45, 212, 167, .1); border: 1px solid rgba(45, 212, 167, .4); }

/* ------------------------------------------------------------------------- home hero */
.hero { position: relative; overflow: hidden; border-radius: var(--fc-radius-lg); border: 1px solid var(--fc-line); background:
  radial-gradient(700px 260px at 70% 100%, rgba(39, 168, 255, .25), transparent 70%),
  linear-gradient(180deg, rgba(17, 43, 70, .9), rgba(7, 20, 38, .95)); box-shadow: var(--fc-shadow); }
.hero-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 20px 0; }
.hero-title { flex: 1; min-width: 0; }
.hero-unit { font-family: var(--fc-display); font-weight: 700; font-size: clamp(34px, 8vw, 56px); line-height: .95; letter-spacing: .02em; }
.hero-unit small { font-size: .42em; color: var(--fc-muted); letter-spacing: .2em; display: block; margin-bottom: 4px; }
.hero-stage { position: relative; height: clamp(200px, 46vw, 340px); margin-top: 4px; }
.hero-stage .floor { position: absolute; left: 6%; right: 6%; bottom: 18px; height: 60px; border-radius: 50%; background: radial-gradient(closest-side, rgba(78, 219, 255, .35), transparent); filter: blur(6px); }
.hero-stage .grid-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background-image: linear-gradient(rgba(78, 219, 255, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(78, 219, 255, .18) 1px, transparent 1px); background-size: 40px 22px; transform: perspective(300px) rotateX(58deg); transform-origin: bottom; mask-image: linear-gradient(to top, #000, transparent); }
.hero-stage .fc-art { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(96%, 760px); height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55)); animation: fc-rise 700ms var(--fc-ease) both; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scan { position: absolute; top: 0; bottom: 0; width: 120px; background: linear-gradient(90deg, transparent, rgba(78, 219, 255, .16), transparent); animation: fc-scan 5.5s linear infinite; pointer-events: none; }
.hero-switch { display: inline-flex; padding: 4px; border-radius: 16px; border: 1px solid var(--fc-line-soft); background: rgba(7, 20, 38, .6); }
.hero-switch button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: transparent; color: var(--fc-muted); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.hero-switch button svg { width: 16px; height: 16px; }
.hero-switch button.on { background: rgba(39, 168, 255, .2); color: var(--fc-white); box-shadow: inset 0 0 0 1px var(--fc-line-strong); }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--fc-line-soft); border-top: 1px solid var(--fc-line-soft); }
@media (min-width: 640px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.hero-stat { padding: 14px 18px; background: rgba(7, 20, 38, .72); }
.hero-stat .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fc-muted); font-weight: 600; }
.hero-stat .v { font-family: var(--fc-display); font-weight: 700; font-size: 21px; margin-top: 2px; display: flex; align-items: center; gap: 8px; }

.status-orb { width: 12px; height: 12px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent), 0 0 18px currentColor; animation: fc-pulse 2.4s ease-in-out infinite; }

/* primary quick actions */
.actions-primary { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.action-hero { position: relative; overflow: hidden; min-height: 150px; padding: 18px; border-radius: var(--fc-radius-lg); border: 1px solid var(--fc-line); text-align: left; color: var(--fc-white); display: flex; flex-direction: column; justify-content: space-between; transition: transform var(--fc-dur) var(--fc-ease), box-shadow var(--fc-dur); }
.action-hero:hover { box-shadow: var(--fc-glow); transform: translateY(-2px); }
.action-hero:active { transform: scale(.98); }
.action-hero.maint { background: radial-gradient(320px 180px at 100% 0%, rgba(255, 101, 119, .35), transparent 70%), linear-gradient(160deg, #1a2f4a, #0c1e33); }
.action-hero.rent { background: radial-gradient(320px 180px at 100% 0%, rgba(78, 219, 255, .35), transparent 70%), linear-gradient(160deg, #13365a, #0a2038); }
.action-hero .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(7, 20, 38, .6); border: 1px solid var(--fc-line); }
.action-hero .ico svg { width: 28px; height: 28px; }
.action-hero.maint .ico { color: #ffb3bc; }
.action-hero.rent .ico { color: var(--fc-cyan); }
.action-hero .label { font-family: var(--fc-display); font-weight: 700; font-size: clamp(20px, 5vw, 26px); letter-spacing: .06em; line-height: 1; margin-top: 18px; }
.action-hero .sub { font-size: 13px; color: var(--fc-text-2); margin-top: 6px; }
.action-hero .arrow { position: absolute; right: 16px; bottom: 16px; width: 22px; height: 22px; color: var(--fc-cyan); }
.actions-secondary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.action-mini { min-height: 92px; padding: 12px 6px; border-radius: 18px; border: 1px solid var(--fc-line-soft); background: var(--fc-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--fc-text-2); font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.15; transition: border-color var(--fc-dur), color var(--fc-dur); }
.action-mini svg { width: 26px; height: 26px; color: var(--fc-cyan); }
.action-mini:hover { border-color: var(--fc-line-strong); color: var(--fc-white); }

/* ------------------------------------------------------------------------- gauges */
.gauges { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gauge { padding: 14px 12px 12px; text-align: center; }
.gauge svg { width: 100%; max-width: 150px; margin: 0 auto; }
.gauge .g-track { stroke: rgba(145, 169, 193, .16); }
.gauge .g-ticks { stroke: rgba(145, 169, 193, .35); }
.gauge .g-value { transition: stroke-dashoffset 900ms var(--fc-ease); filter: drop-shadow(0 0 6px currentColor); }
.gauge .g-num { font-family: var(--fc-display); font-weight: 700; font-size: 30px; fill: var(--fc-white); }
.gauge .g-unit { font-size: 11px; fill: var(--fc-muted); letter-spacing: .14em; }
.gauge .g-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fc-text-2); margin-top: 2px; }
.gauge .g-note { font-size: 11.5px; color: var(--fc-muted); margin-top: 4px; min-height: 2.6em; }
.gauge.nr .g-num { fill: var(--fc-muted); font-size: 18px; }
.basis { display: inline-block; margin-top: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 8px; border: 1px solid currentColor; }
.basis.Rated { color: var(--fc-blue); } .basis.Verified { color: var(--fc-ok); } .basis.Entered { color: var(--fc-cyan); } .basis.Calculated { color: var(--fc-warn); } .basis.NotRecorded { color: var(--fc-muted); }
.bar { height: 10px; border-radius: 5px; background: rgba(145, 169, 193, .16); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--fc-blue), var(--fc-cyan)); box-shadow: 0 0 12px rgba(78, 219, 255, .6); transition: width 900ms var(--fc-ease); }
.bar.warn > span { background: linear-gradient(90deg, #d9932a, var(--fc-warn)); }
.bar.crit > span { background: linear-gradient(90deg, #d03a4b, var(--fc-crit)); }
.disclaimer { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255, 193, 94, .4); background: rgba(255, 193, 94, .08); color: #ffe2b3; font-size: 13px; }
.disclaimer svg { width: 20px; height: 20px; flex: none; color: var(--fc-warn); margin-top: 1px; }

/* interactive diagram */
.diagram { position: relative; padding: 10px 6px 0; }
.diagram svg.fc-diagram { width: 100%; height: auto; }
.hotspot { cursor: pointer; }
.hotspot .hs-ring { fill: rgba(7, 20, 38, .7); stroke: var(--fc-cyan); stroke-width: 2; transition: all var(--fc-dur); }
.hotspot .hs-core { fill: var(--fc-cyan); }
.hotspot .hs-pulse { fill: none; stroke: var(--fc-cyan); stroke-width: 2; opacity: .6; transform-box: fill-box; transform-origin: center; animation: fc-ping 2.2s ease-out infinite; }
.hotspot.on .hs-ring { fill: var(--fc-cyan); }
.hotspot.on .hs-core { fill: #031322; }
.hotspot:focus-visible .hs-ring { stroke-width: 4; }
.zone { fill: rgba(78, 219, 255, .0); stroke: transparent; transition: all var(--fc-dur); cursor: pointer; }
.zone.on { fill: rgba(78, 219, 255, .12); stroke: var(--fc-cyan); stroke-dasharray: 6 5; }
.spec-pop { margin-top: 12px; padding: 16px; animation: fc-fade 240ms var(--fc-ease); }
.spec-pop dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; margin: 10px 0 0; }
.spec-pop dt { color: var(--fc-muted); font-size: 14px; }
.spec-pop dd { margin: 0; font-family: var(--fc-display); font-weight: 700; font-size: 18px; text-align: right; }

/* ------------------------------------------------------------------------- equipment cards */
.asset-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--fc-radius); border: 1px solid var(--fc-line-soft); background: var(--fc-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: transform var(--fc-dur) var(--fc-ease), border-color var(--fc-dur), box-shadow var(--fc-dur); color: var(--fc-text); text-align: left; padding: 0; width: 100%; }
.asset-card:hover { transform: translateY(-2px); border-color: var(--fc-line-strong); box-shadow: var(--fc-glow); }
.asset-card .art { position: relative; height: 140px; background: radial-gradient(260px 90px at 50% 100%, rgba(39, 168, 255, .22), transparent 70%), linear-gradient(180deg, rgba(17, 43, 70, .5), rgba(7, 20, 38, .4)); display: grid; place-items: end center; padding: 6px 12px 10px; }
.asset-card .art .fc-art { width: 92%; height: 118px; }
.asset-card .art .pill { position: absolute; top: 10px; left: 10px; }
.asset-card .art .unit-tag { position: absolute; top: 10px; right: 12px; font-family: var(--fc-display); font-weight: 700; font-size: 18px; letter-spacing: .05em; }
.asset-card .body { padding: 12px 14px 14px; }
.asset-card .title { font-weight: 700; font-size: 15.5px; }
.asset-card .meta { color: var(--fc-muted); font-size: 13px; margin-top: 2px; }
.asset-card .facts { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--fc-text-2); flex-wrap: wrap; }
.asset-card .facts b { font-family: var(--fc-display); font-size: 15px; color: var(--fc-white); display: block; }
.asset-card.mine { border-color: var(--fc-line); }

/* list rows */
.list { display: grid; gap: 10px; }
.lrow { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--fc-radius); border: 1px solid var(--fc-line-soft); background: var(--fc-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--fc-text); text-align: left; width: 100%; transition: border-color var(--fc-dur), box-shadow var(--fc-dur); }
.lrow:hover { border-color: var(--fc-line-strong); }
.lrow .lico { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(7, 20, 38, .6); border: 1px solid var(--fc-line-soft); color: var(--fc-cyan); }
.lrow .lico svg { width: 24px; height: 24px; }
.lrow .lico.crit { color: var(--fc-crit); } .lrow .lico.warn { color: var(--fc-warn); } .lrow .lico.ok { color: var(--fc-ok); }
.lrow .lmain { flex: 1; min-width: 0; }
.lrow .ltitle { font-weight: 700; font-size: 15.5px; }
.lrow .lsub { font-size: 13px; color: var(--fc-muted); margin-top: 2px; }
.lrow .lside { text-align: right; display: grid; gap: 6px; justify-items: end; }
.lrow .chev { width: 20px; height: 20px; color: var(--fc-muted); flex: none; }
.unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--fc-cyan); box-shadow: 0 0 10px var(--fc-cyan); flex: none; }

/* tabs */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 16px; border: 1px solid var(--fc-line-soft); background: rgba(7, 20, 38, .55); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: transparent; color: var(--fc-muted); font-weight: 700; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.tab .count.hot { background: var(--fc-warn); color: #1b1300; }
.tab .count { font-size: 11px; padding: 1px 7px; border-radius: 8px; background: rgba(145, 169, 193, .18); }
.tab.on { color: var(--fc-white); background: rgba(39, 168, 255, .2); box-shadow: inset 0 0 0 1px var(--fc-line-strong); }

/* key/value grid */
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; border-radius: 14px; overflow: hidden; border: 1px solid var(--fc-line-soft); background: var(--fc-line-soft); }
.kv > div { padding: 12px 14px; background: rgba(9, 26, 45, .82); }
.kv .k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fc-muted); font-weight: 600; }
.kv .v { font-family: var(--fc-display); font-weight: 700; font-size: 18px; margin-top: 2px; word-break: break-word; }
.kv .v.na { color: var(--fc-muted); font-size: 15px; }
.kv .src { font-size: 10.5px; color: var(--fc-muted); margin-top: 2px; }

/* ------------------------------------------------------------------------- timeline */
.timeline { display: grid; gap: 0; position: relative; }
.tl-step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; min-height: 58px; position: relative; }
.tl-step::before { content: ""; position: absolute; left: 16px; top: 30px; bottom: -4px; width: 2px; background: rgba(145, 169, 193, .2); }
.tl-step:last-child::before { display: none; }
.tl-step.Done::before { background: linear-gradient(var(--fc-cyan), rgba(78, 219, 255, .4)); }
.tl-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(145, 169, 193, .35); background: var(--fc-navy); color: var(--fc-muted); z-index: 1; }
.tl-dot svg { width: 16px; height: 16px; }
.tl-step.Done .tl-dot { border-color: var(--fc-cyan); background: var(--fc-cyan); color: #031322; }
.tl-step.Current .tl-dot { border-color: var(--fc-cyan); color: var(--fc-cyan); box-shadow: 0 0 0 6px rgba(78, 219, 255, .12), 0 0 18px rgba(78, 219, 255, .5); animation: fc-pulse 2.4s ease-in-out infinite; }
.tl-step.Stopped .tl-dot { border-color: var(--fc-crit); background: var(--fc-crit); color: #2b0006; }
.tl-label { font-weight: 700; padding-top: 6px; }
.tl-step.Upcoming .tl-label { color: var(--fc-muted); font-weight: 600; }
.tl-detail { font-size: 12.5px; color: var(--fc-muted); }
/* compact horizontal progress */
.progress-line { display: flex; gap: 4px; margin-top: 10px; }
.progress-line span { flex: 1; height: 5px; border-radius: 3px; background: rgba(145, 169, 193, .2); }
.progress-line span.Done { background: var(--fc-cyan); box-shadow: 0 0 8px rgba(78, 219, 255, .6); }
.progress-line span.Current { background: linear-gradient(90deg, var(--fc-cyan), rgba(78, 219, 255, .25)); }
.progress-line span.Stopped { background: var(--fc-crit); }

/* activity feed */
.feed { display: grid; gap: 12px; }
.feed-item { display: grid; grid-template-columns: 36px 1fr; gap: 10px; }
.feed-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: #173a5d; color: var(--fc-cyan); border: 1px solid var(--fc-line-soft); }
.feed-av.fleet { background: #12405a; color: var(--fc-ok); }
.feed-av.vendor { background: #3a2e14; color: var(--fc-warn); }
.feed-bubble { padding: 10px 14px; border-radius: 14px; background: rgba(9, 26, 45, .75); border: 1px solid var(--fc-line-soft); }
.feed-meta { font-size: 12px; color: var(--fc-muted); }
.feed-body { margin-top: 2px; font-size: 14.5px; }

/* ------------------------------------------------------------------------- wizard */
.wizard-head { position: sticky; top: 0; z-index: 20; margin: 0 -16px; padding: calc(var(--fc-safe-t) + 8px) 16px 12px; background: linear-gradient(180deg, rgba(7, 20, 38, .96) 70%, rgba(7, 20, 38, 0)); }
@media (min-width: 900px) { .wizard-head { margin: 0 -32px; padding: 16px 32px 14px; } }
.steps { display: flex; gap: 6px; margin-top: 12px; }
.steps span { flex: 1; height: 5px; border-radius: 3px; background: rgba(145, 169, 193, .2); transition: background var(--fc-dur); }
.steps span.done { background: var(--fc-cyan); }
.steps span.on { background: linear-gradient(90deg, var(--fc-cyan), var(--fc-blue)); box-shadow: 0 0 10px rgba(78, 219, 255, .7); }
.step-title { font-family: var(--fc-display); font-weight: 700; font-size: clamp(26px, 6vw, 34px); line-height: 1.05; margin: 18px 0 6px; }
.step-sub { color: var(--fc-muted); margin: 0 0 18px; }
.wizard-foot { position: sticky; bottom: calc(var(--fc-nav-h) + var(--fc-safe-b) + 14px); z-index: 20; margin-top: 22px; display: flex; gap: 10px; padding: 12px; border-radius: 22px; border: 1px solid var(--fc-line); background: rgba(9, 26, 45, .92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--fc-shadow); }
@media (min-width: 900px) { .wizard-foot { bottom: 16px; } }
.wizard-foot .btn { flex: 1; }
.wizard-foot .btn.ghost { flex: 0 0 auto; }

.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tile { position: relative; min-height: 118px; padding: 16px; border-radius: 20px; border: 1px solid var(--fc-line-soft); background: var(--fc-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--fc-text); text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; transition: all var(--fc-dur) var(--fc-ease); }
.tile svg.ti { width: 32px; height: 32px; color: var(--fc-cyan); }
.tile .tl { font-weight: 700; font-size: 16px; line-height: 1.2; }
.tile .ts { font-size: 12.5px; color: var(--fc-muted); }
.tile:hover { border-color: var(--fc-line-strong); }
.tile.on { border-color: var(--fc-cyan); background: linear-gradient(160deg, rgba(39, 168, 255, .3), rgba(17, 43, 70, .8)); box-shadow: var(--fc-glow); }
.tile.on::after { content: ""; position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--fc-cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23031322' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.tile.tone-ok svg.ti { color: var(--fc-ok); } .tile.tone-warn svg.ti { color: var(--fc-warn); } .tile.tone-crit svg.ti { color: var(--fc-crit); }
.tile.tone-crit.on { border-color: var(--fc-crit); background: linear-gradient(160deg, rgba(255, 101, 119, .32), rgba(17, 43, 70, .8)); box-shadow: 0 0 0 1px rgba(255, 101, 119, .5), 0 0 24px rgba(255, 101, 119, .3); }
.tile.tone-warn.on { border-color: var(--fc-warn); background: linear-gradient(160deg, rgba(255, 193, 94, .28), rgba(17, 43, 70, .8)); }
.tile.tone-ok.on { border-color: var(--fc-ok); background: linear-gradient(160deg, rgba(45, 212, 167, .26), rgba(17, 43, 70, .8)); }
.tile.big { min-height: 150px; }
.tile.wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; }

.equip-pick { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.equip-pick .asset-card.on { border-color: var(--fc-cyan); box-shadow: var(--fc-glow); }

/* forms */
.field { display: grid; gap: 6px; }
.field > label, .flabel { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--fc-text-2); }
.field .hint { font-size: 12px; color: var(--fc-muted); }
.field .err { font-size: 13px; color: var(--fc-crit); font-weight: 600; }
.input, select.input, textarea.input { width: 100%; min-height: var(--fc-tap); padding: 12px 16px; border-radius: 14px; border: 1px solid var(--fc-line-soft); background: rgba(5, 16, 30, .7); color: var(--fc-white); font-size: 16px; outline: none; transition: border-color var(--fc-dur), box-shadow var(--fc-dur); }
textarea.input { min-height: 130px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--fc-cyan); box-shadow: 0 0 0 4px rgba(78, 219, 255, .14); }
.input.bad { border-color: var(--fc-crit); }
.input::placeholder { color: rgba(145, 169, 193, .7); }
.input-group { position: relative; }
.input-group .input { padding-right: 60px; }
.input-group .suffix { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .wide { grid-column: 1 / -1; } }
.toggle { display: flex; align-items: center; gap: 14px; min-height: var(--fc-tap); padding: 10px 14px; border-radius: 14px; border: 1px solid var(--fc-line-soft); background: rgba(5, 16, 30, .5); cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .sw { width: 46px; height: 28px; flex: none; border-radius: 14px; background: rgba(145, 169, 193, .3); position: relative; transition: background var(--fc-dur); }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform var(--fc-dur) var(--fc-ease); }
.toggle input:checked + .sw { background: var(--fc-blue); }
.toggle input:checked + .sw::after { transform: translateX(18px); }
.toggle input:focus-visible + .sw { outline: 3px solid var(--fc-cyan); outline-offset: 2px; }
.toggle .tt { flex: 1; font-weight: 600; }
.toggle .tt small { display: block; font-weight: 400; color: var(--fc-muted); font-size: 12.5px; }
.prefill { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--fc-line); background: rgba(39, 168, 255, .06); }
.prefill svg { width: 20px; height: 20px; color: var(--fc-cyan); flex: none; }
.prefill .grow b { display: block; }
.date-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.stepper { display: flex; align-items: center; gap: 0; border-radius: 14px; border: 1px solid var(--fc-line-soft); overflow: hidden; }
.stepper button { width: 52px; min-height: var(--fc-tap); border: 0; background: rgba(17, 43, 70, .8); color: var(--fc-cyan); font-size: 22px; font-weight: 700; }
.stepper input { flex: 1; min-width: 0; text-align: center; border: 0; background: rgba(5, 16, 30, .7); min-height: var(--fc-tap); font-family: var(--fc-display); font-size: 22px; font-weight: 700; color: var(--fc-white); }
input[type=range].slider { width: 100%; accent-color: var(--fc-cyan); height: 40px; }

/* safety */
.stop-use { margin-top: 16px; padding: 18px; border-radius: 20px; border: 2px solid var(--fc-crit); background: linear-gradient(160deg, rgba(255, 101, 119, .22), rgba(60, 10, 20, .6)); animation: fc-fade 260ms var(--fc-ease); }
.stop-use h3 { margin: 0 0 8px; font-family: var(--fc-display); font-size: 24px; letter-spacing: .06em; color: #ffd6db; display: flex; align-items: center; gap: 10px; }
.stop-use h3 svg { width: 28px; height: 28px; color: var(--fc-crit); }
.stop-use ol { margin: 8px 0 14px; padding-left: 22px; display: grid; gap: 6px; color: #ffe8eb; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--fc-line); background: rgba(39, 168, 255, .08); font-size: 14px; color: var(--fc-text-2); }
.callout svg { width: 20px; height: 20px; color: var(--fc-cyan); flex: none; margin-top: 1px; }
.callout.warn { border-color: rgba(255, 193, 94, .45); background: rgba(255, 193, 94, .08); }
.callout.warn svg { color: var(--fc-warn); }
.callout.crit { border-color: rgba(255, 101, 119, .45); background: rgba(255, 101, 119, .08); }
.callout.crit svg { color: var(--fc-crit); }
.callout.ok { border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .08); }
.callout.ok svg { color: var(--fc-ok); }

/* review summary */
.summary { display: grid; gap: 0; }
.sum-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--fc-line-soft); }
.sum-row:last-child { border-bottom: 0; }
.sum-row svg.si { width: 22px; height: 22px; color: var(--fc-cyan); flex: none; margin-top: 2px; }
.sum-row .sk { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--fc-muted); font-weight: 600; }
.sum-row .sv { font-weight: 600; margin-top: 2px; }
.sum-row .edit { margin-left: auto; align-self: center; }

/* confirmation */
.confirm { text-align: center; padding: 30px 20px; }
.confirm .ring { width: 116px; height: 116px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(45, 212, 167, .25), transparent 70%); border: 2px solid var(--fc-ok); box-shadow: 0 0 40px rgba(45, 212, 167, .35); animation: fc-pop 500ms var(--fc-ease) both; }
.confirm .ring svg { width: 56px; height: 56px; color: var(--fc-ok); }
.confirm .ring.pending { border-color: var(--fc-warn); background: radial-gradient(circle, rgba(255, 193, 94, .22), transparent 70%); box-shadow: 0 0 40px rgba(255, 193, 94, .3); }
.confirm .ring.pending svg { color: var(--fc-warn); }
.confirm .key { font-family: var(--fc-display); font-weight: 700; font-size: 46px; letter-spacing: .04em; margin: 4px 0; }
.next-step { text-align: left; margin-top: 18px; }

/* ------------------------------------------------------------------------- inspection studio */
.studio { position: relative; border-radius: var(--fc-radius-lg); overflow: hidden; border: 1px solid var(--fc-line); background: #000; aspect-ratio: 4 / 3; max-height: 62vh; width: 100%; margin: 0 auto; }
.studio video, .studio .fc-scene, .studio img.cap { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.studio .reticle { position: absolute; inset: 10% 8%; border: 1.5px solid rgba(78, 219, 255, .55); border-radius: 16px; pointer-events: none; }
.studio .reticle::before, .studio .reticle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 1.5px solid rgba(78, 219, 255, .8); border-radius: 50%; }
.studio .grid3 { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(90deg, transparent 33.1%, rgba(255, 255, 255, .14) 33.3%, transparent 33.5%, transparent 66.5%, rgba(255, 255, 255, .14) 66.7%, transparent 66.9%), linear-gradient(transparent 33.1%, rgba(255, 255, 255, .14) 33.3%, transparent 33.5%, transparent 66.5%, rgba(255, 255, 255, .14) 66.7%, transparent 66.9%); }
.studio .hud { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; gap: 8px; align-items: flex-start; }
.studio .hud .pill { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: rgba(7, 20, 38, .6); }
.studio .guide { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(7, 20, 38, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--fc-line); font-weight: 600; display: flex; gap: 10px; align-items: center; }
.studio .guide svg { width: 20px; height: 20px; color: var(--fc-cyan); flex: none; }
.studio .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.studio .flash.go { animation: fc-flash 380ms ease-out; }
.capture-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 16px; }
.shutter { width: 84px; height: 84px; border-radius: 50%; border: 4px solid rgba(245, 249, 255, .9); background: radial-gradient(circle, #fff 0 58%, transparent 60%); box-shadow: 0 0 0 6px rgba(78, 219, 255, .18), 0 0 30px rgba(78, 219, 255, .35); transition: transform 120ms; }
.shutter:active { transform: scale(.92); }
.shutter[disabled] { opacity: .4; }
.angle-ring { width: 100%; max-width: 230px; margin: 0 auto; }
.angle-ring .seg { fill: none; stroke: rgba(145, 169, 193, .25); stroke-width: 14; cursor: pointer; transition: stroke var(--fc-dur); }
.angle-ring .seg.done { stroke: var(--fc-ok); }
.angle-ring .seg.cur { stroke: var(--fc-cyan); filter: drop-shadow(0 0 6px var(--fc-cyan)); }
.angle-ring .lbl { font-size: 10px; fill: var(--fc-muted); font-weight: 700; letter-spacing: .06em; }
.angle-ring .center-num { font-family: var(--fc-display); font-weight: 700; font-size: 34px; fill: var(--fc-white); }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { position: relative; flex: none; width: 92px; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: #000; padding: 0; }
.thumb.on { border-color: var(--fc-cyan); box-shadow: var(--fc-glow); }
.thumb .fc-scene, .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .tlabel { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; font-weight: 700; padding: 2px 4px; background: rgba(7, 20, 38, .75); color: var(--fc-white); text-align: center; }
.thumb .tcount { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--fc-crit); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }

/* viewer */
.viewer { position: relative; border-radius: var(--fc-radius-lg); overflow: hidden; border: 1px solid var(--fc-line); background: #000; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.viewer .frame { position: relative; width: 100%; aspect-ratio: 4 / 3; }
.viewer .frame > .fc-scene, .viewer .frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.viewer .frame.annotating { cursor: crosshair; }
.viewer .vhud { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.viewer .vhud .pill { background: rgba(7, 20, 38, .65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.viewer .vfoot { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; pointer-events: none; }
.viewer .vfoot .stamp { font-family: var(--fc-display); font-size: 13px; letter-spacing: .08em; padding: 4px 10px; border-radius: 8px; background: rgba(7, 20, 38, .65); }
.viewer .navbtn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--fc-line); background: rgba(7, 20, 38, .6); color: var(--fc-white); display: grid; place-items: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.viewer .navbtn svg { width: 24px; height: 24px; }
.viewer .navbtn.prev { left: 10px; } .viewer .navbtn.next { right: 10px; }
.scrub { margin-top: 12px; }
.scrub-track { position: relative; height: 44px; border-radius: 22px; border: 1px solid var(--fc-line-soft); background: rgba(7, 20, 38, .6); display: flex; align-items: center; padding: 0 10px; gap: 4px; touch-action: none; cursor: grab; }
.scrub-track .tick { flex: 1; height: 16px; border-radius: 4px; background: rgba(145, 169, 193, .2); position: relative; }
.scrub-track .tick.on { background: var(--fc-cyan); box-shadow: 0 0 10px var(--fc-cyan); }
.scrub-track .tick.has-issue::after { content: ""; position: absolute; top: -9px; left: 50%; margin-left: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--fc-crit); }
.scrub-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--fc-muted); margin-top: 6px; padding: 0 6px; }

.marker { position: absolute; transform: translate(-50%, -50%); z-index: 3; border: 0; padding: 0; background: none; display: flex; align-items: center; gap: 6px; pointer-events: auto; }
.marker .mdot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--fc-display); font-weight: 700; font-size: 15px; color: #fff; background: var(--fc-crit); border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(255, 101, 119, .35), 0 6px 16px rgba(0, 0, 0, .5); }
.marker.warn .mdot { background: #e09a1f; box-shadow: 0 0 0 4px rgba(255, 193, 94, .35), 0 6px 16px rgba(0, 0, 0, .5); }
.marker.info .mdot { background: var(--fc-blue); box-shadow: 0 0 0 4px rgba(39, 168, 255, .35), 0 6px 16px rgba(0, 0, 0, .5); }
.marker .mlabel { padding: 5px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 700; background: rgba(7, 20, 38, .82); border: 1px solid var(--fc-line); white-space: nowrap; color: var(--fc-white); }
.marker .mpulse { position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--fc-crit); animation: fc-ping 2s ease-out infinite; pointer-events: none; }
.marker.sel .mdot { transform: scale(1.15); }
.marker.ghost .mdot { background: rgba(78, 219, 255, .3); border-style: dashed; }
@media (max-width: 520px) { .marker .mlabel { display: none; } .marker.sel .mlabel { display: block; } }

/* sheets & overlays */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(2, 8, 16, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fc-fade 200ms ease both; }
.sheet { position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 88dvh; overflow-y: auto; padding: 10px 18px calc(20px + var(--fc-safe-b)); border-radius: 28px 28px 0 0; border: 1px solid var(--fc-line); border-bottom: 0; background: linear-gradient(180deg, rgba(17, 43, 70, .98), rgba(9, 26, 45, .99)); box-shadow: 0 -20px 60px rgba(0, 0, 0, .5); animation: fc-sheet 300ms var(--fc-ease) both; }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; margin: 0 auto 12px; background: rgba(145, 169, 193, .4); }
.sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
@media (min-width: 900px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(620px, 92vw); transform: translate(-50%, -50%); border-radius: 26px; border-bottom: 1px solid var(--fc-line); animation: fc-pop 260ms var(--fc-ease) both; }
}
.sheet.full { max-height: 96dvh; }
.new-options { display: grid; gap: 10px; }
.doc-viewer { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-rows: auto 1fr; background: rgba(3, 10, 20, .97); animation: fc-fade 200ms ease both; }
.doc-viewer header { display: flex; align-items: center; gap: 12px; padding: calc(var(--fc-safe-t) + 10px) 16px 10px; border-bottom: 1px solid var(--fc-line-soft); }
.doc-viewer iframe, .doc-viewer object { width: 100%; height: 100%; border: 0; background: #2a2f36; }

/* toasts */
.toasts { position: fixed; z-index: 80; left: 12px; right: 12px; top: calc(var(--fc-safe-t) + 12px); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; width: min(460px, 100%); display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--fc-line); background: rgba(12, 32, 54, .96); box-shadow: var(--fc-shadow); animation: fc-drop 300ms var(--fc-ease) both; }
.toast svg { width: 22px; height: 22px; flex: none; }
.toast.Success svg { color: var(--fc-ok); } .toast.Warning svg { color: var(--fc-warn); } .toast.Error svg { color: var(--fc-crit); } .toast.Info svg { color: var(--fc-cyan); }
.toast b { display: block; }
.toast span { font-size: 13px; color: var(--fc-text-2); }

/* offline banner */
.netbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border-radius: 14px; font-size: 13.5px; font-weight: 600; border: 1px solid rgba(255, 193, 94, .45); background: rgba(255, 193, 94, .1); color: #ffe2b3; }
.netbar svg { width: 18px; height: 18px; color: var(--fc-warn); flex: none; }
.netbar.ok { border-color: rgba(45, 212, 167, .4); background: rgba(45, 212, 167, .08); color: #c9f6e9; }
.netbar.ok svg { color: var(--fc-ok); }

/* empty / skeleton */
.empty { text-align: center; padding: 34px 20px; color: var(--fc-muted); }
.empty svg { width: 44px; height: 44px; margin: 0 auto 10px; color: var(--fc-cyan); opacity: .7; }
.skel { border-radius: 14px; background: linear-gradient(90deg, rgba(145, 169, 193, .08), rgba(145, 169, 193, .18), rgba(145, 169, 193, .08)); background-size: 200% 100%; animation: fc-shimmer 1.4s linear infinite; }

/* documents */
.doc-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; }
.doc-ico { width: 52px; height: 62px; flex: none; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(160deg, #183c62, #0b2038); border: 1px solid var(--fc-line); position: relative; }
.doc-ico svg { width: 24px; height: 24px; color: var(--fc-cyan); }
.doc-ico::after { content: "PDF"; position: absolute; bottom: 4px; font-size: 9px; font-weight: 800; letter-spacing: .1em; color: var(--fc-muted); }

/* catalog */
.catalog-card .art { height: 150px; }
.spec-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.spec-row div { padding: 8px; border-radius: 10px; background: rgba(7, 20, 38, .55); border: 1px solid var(--fc-line-soft); }
.spec-row .k { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--fc-muted); }
.spec-row .v { font-family: var(--fc-display); font-weight: 700; font-size: 16px; }

/* admin review */
.review-layout { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 1100px) { .review-layout { grid-template-columns: 1.6fr 1fr; } }
.issue-card { padding: 14px; border-radius: 16px; border: 1px solid var(--fc-line-soft); background: rgba(9, 26, 45, .7); text-align: left; color: var(--fc-text); width: 100%; display: grid; gap: 8px; transition: border-color var(--fc-dur), box-shadow var(--fc-dur); }
.issue-card.sel { border-color: var(--fc-cyan); box-shadow: var(--fc-glow); }
.issue-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--fc-crit); font-family: var(--fc-display); font-weight: 700; color: #fff; flex: none; }
.closeups { display: flex; gap: 8px; flex-wrap: wrap; }
.closeups .thumb { width: 110px; }

/* ------------------------------------------------------------------------- motion */
@keyframes fc-rise { from { opacity: 0; transform: translate(-50%, 18px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fc-scan { from { left: -140px; } to { left: 110%; } }
@keyframes fc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes fc-ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes fc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fc-sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fc-pop { from { opacity: 0; transform: translate(-50%, -50%) scale(.95); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.confirm .ring { animation-name: fc-ring; }
@keyframes fc-ring { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
@keyframes fc-drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes fc-flash { 0% { opacity: .85; } 100% { opacity: 0; } }
@keyframes fc-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes fc-beam { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }
.fc-beam { animation: fc-beam 3s ease-in-out infinite; }
.page-enter { animation: fc-fade 260ms var(--fc-ease) backwards; } /* backwards: no lingering stacking context */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-scan, .hs-pulse, .mpulse { display: none; }
}
.fc-app[data-motion="reduced"] *, .fc-app[data-motion="reduced"] *::before, .fc-app[data-motion="reduced"] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
.fc-app[data-motion="reduced"] .hero-scan, .fc-app[data-motion="reduced"] .hs-pulse, .fc-app[data-motion="reduced"] .mpulse { display: none; }

/* Blazor error UI */
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; padding: 14px 18px; background: #3a0d16; color: #ffd6db; border-top: 1px solid var(--fc-crit); }
#blazor-error-ui .reload { color: var(--fc-cyan); margin-left: 8px; }
#blazor-error-ui .dismiss { float: right; cursor: pointer; }
.boot { min-height: 100dvh; display: grid; place-items: center; background: var(--fc-bg); color: var(--fc-muted); font-family: var(--fc-display); letter-spacing: .3em; }
.boot .boot-mark { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 16px; background: linear-gradient(145deg, #4EDBFF, #27A8FF); box-shadow: 0 0 40px rgba(39, 168, 255, .5); animation: fc-pulse 1.6s ease-in-out infinite; }

/* Guard against grid/flex min-content blowout on narrow phones */
.list, .stack, .grid-2, .feed, .summary, .timeline { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.lrow, .lmain, .page-enter, section, .glass { min-width: 0; }
@media (max-width: 560px) {
  .hero-head { flex-wrap: wrap; }
  .hero-head .hero-switch { order: -1; width: 100%; }
  .hero-head .hero-switch button { flex: 1; justify-content: center; }
  .actions-secondary { grid-template-columns: repeat(2, 1fr); }
  .action-mini { min-height: 64px; flex-direction: row; justify-content: flex-start; padding: 12px 14px; text-align: left; }
}

/* ------------------------------------------------------------------------- real equipment photography
   The <img> is never filtered, recolored, masked or stretched. Glow, shadow and frame are separate layers. */
.fleet-photo { position: relative; margin: 0; display: grid; place-items: end center; }
.fleet-photo img { position: relative; z-index: 2; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.fleet-photo .fp-glow { position: absolute; z-index: 0; left: 8%; right: 8%; bottom: 2%; height: 26%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(78, 219, 255, .42), rgba(39, 168, 255, .16) 55%, transparent); filter: blur(14px); pointer-events: none; }
.fleet-photo .fp-shadow { position: absolute; z-index: 1; left: 14%; right: 14%; bottom: 3%; height: 9%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); filter: blur(5px); pointer-events: none; }
/* Original photo with its own background: shown whole; only a frame overlay softens the outer edge. */
.fleet-photo.is-photo { border-radius: 18px; overflow: hidden; border: 1px solid var(--fc-line); box-shadow: 0 0 0 1px rgba(78, 219, 255, .08), 0 18px 40px rgba(0, 0, 0, .5), 0 0 40px rgba(39, 168, 255, .18); background: #0a1a2c; }
.fleet-photo.is-photo .fp-frame { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(78, 219, 255, .25), inset 0 0 36px 6px rgba(7, 20, 38, .55); }
.fleet-photo.is-missing { place-items: center; align-content: center; gap: 6px; text-align: center; padding: 18px; border-radius: 18px;
  border: 1.5px dashed var(--fc-line-strong); background: rgba(7, 20, 38, .55); color: var(--fc-muted); }
.fleet-photo.is-missing svg { width: 34px; height: 34px; color: var(--fc-cyan); }
.fp-missing-title { font-family: var(--fc-display); font-weight: 700; font-size: 18px; color: var(--fc-white); letter-spacing: .04em; }
.fp-missing-sub { font-size: 12px; }
.fp-missing-sub code { color: var(--fc-cyan); word-break: break-all; }

/* Home hero with a photo: stage height follows the photo's aspect, never clips the service body */
.hero-stage.has-photo { height: auto; aspect-ratio: 16 / 9; max-height: 420px; padding: 4px 14px 10px; display: grid; }
.hero-stage.has-photo .floor { bottom: 6px; }
.hero-stage .hero-truck { width: 100%; height: 100%; min-height: 0; justify-self: center; animation: fc-fade 600ms var(--fc-ease) both; }
.hero-stage .hero-truck.is-cutout { max-width: 820px; }
.hero-stage .hero-truck.is-photo, .hero-stage .hero-truck.is-missing { align-self: center; height: auto; max-height: 100%; max-width: 760px; }
.hero-stage .hero-truck.is-photo img { height: auto; max-height: 400px; }
/* overlays stay behind the photo: nothing is drawn over the truck */
.hero-stage.has-photo .hero-scan, .hero-stage.has-photo .grid-floor, .hero-stage.has-photo .floor { z-index: 0; }
.hero-stage.has-photo .hero-truck { position: relative; z-index: 1; }
@media (min-width: 900px) { .hero-stage.has-photo { aspect-ratio: 21 / 9; } }
@media (max-width: 560px) { .hero-stage.has-photo { aspect-ratio: 4 / 3; padding: 4px 8px 8px; } }

.asset-card .art .card-photo { width: 92%; height: 118px; }
.asset-card .art .card-photo.is-photo { border-radius: 10px; }
.asset-card .art .card-photo.is-missing { padding: 8px; }
.asset-card .art .card-photo.is-missing .fp-missing-sub { display: none; }

@media (min-width: 900px) { .fc-topbar .fc-brand { visibility: hidden; } }

/* Original photograph in the hero: the stage follows the photo's own aspect ratio (no letterboxing, no clipping). */
.hero-stage.has-photo:has(.is-photo) { aspect-ratio: auto; max-height: none; padding: 6px 14px 20px; }
.hero-stage .hero-truck.is-photo { width: 100%; max-width: 900px; height: auto; }
.hero-stage .hero-truck.is-photo img { width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; }
.hero-stage.has-photo:has(.is-photo) .floor { bottom: 2px; left: 2%; right: 2%; height: 46px; }
@media (max-width: 560px) { .hero-stage.has-photo:has(.is-photo) { padding: 4px 8px 16px; } .fleet-photo.is-photo { border-radius: 12px; } }
/* inline icons inside text */
.small > svg, .tiny > svg, p > svg, .muted > svg, .lsub > svg { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.22em; margin-right: 2px; }
.input-group .suffix svg { width: 20px; height: 20px; color: var(--fc-muted); }
.asset-card.on { border-color: var(--fc-cyan); box-shadow: var(--fc-glow); }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: " ▾"; color: var(--fc-cyan); }

.diagram-scroll { overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.diagram-scroll svg.fc-diagram { min-width: 760px; }
@media (min-width: 900px) { .diagram-scroll svg.fc-diagram { min-width: 0; } }

/* focused flows (wizards, camera) */
.focus-mode .fc-bottomnav, .focus-mode .fc-fab { display: none; }
.focus-mode .fc-main { padding-bottom: calc(var(--fc-safe-b) + 28px); }
.focus-mode .wizard-foot { bottom: calc(var(--fc-safe-b) + 12px); }

/* ------------------------------------------------------------------------- orange problem circles */
:root { --fc-mark: #FF8A1F; --fc-mark-glow: rgba(255, 138, 31, .45); }
.issue-circle { position: absolute; z-index: 3; width: 44px; height: 44px; transform: translate(-50%, -50%); padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; }
.issue-circle .ic-ring { position: absolute; inset: 0; border-radius: 50%; border: 4px solid var(--fc-mark); background: rgba(255, 138, 31, .12);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .35), 0 0 18px var(--fc-mark-glow), inset 0 0 12px rgba(255, 138, 31, .25); }
.issue-circle .ic-num { position: absolute; top: -6px; right: -10px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px;
  display: grid; place-items: center; background: var(--fc-mark); color: #1d0e00; font-family: var(--fc-display); font-weight: 700; font-size: 13px; box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(0, 0, 0, .45); }
.issue-circle .ic-label { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 8px); white-space: nowrap; padding: 4px 10px; border-radius: 10px;
  font-size: 12.5px; font-weight: 700; color: var(--fc-white); background: rgba(7, 20, 38, .85); border: 1px solid rgba(255, 138, 31, .6); }
.issue-circle.sel .ic-ring { border-width: 5px; box-shadow: 0 0 0 2px rgba(0, 0, 0, .35), 0 0 0 8px rgba(255, 138, 31, .22), 0 0 26px var(--fc-mark-glow); }
.issue-circle.draft { cursor: default; pointer-events: none; }
.issue-circle.draft .ic-ring { border-style: dashed; animation: fc-pulse 1.4s ease-in-out infinite; }
.issue-circle:focus-visible { outline: none; }
.issue-circle:focus-visible .ic-ring { outline: 3px solid var(--fc-cyan); outline-offset: 3px; }
@media (max-width: 520px) { .issue-circle .ic-label { display: none; } .issue-circle.sel .ic-label { display: block; } }
.viewer .frame.annotating { touch-action: none; }
.issue-num { background: var(--fc-mark); color: #1d0e00; }

/* Equipment cards with a real photo: photo fills the art area; badges sit on top of it */
.asset-card .art .pill, .asset-card .art .unit-tag { z-index: 4; }
.asset-card .art .unit-tag { text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.asset-card .art .card-photo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 0; border: 0; box-shadow: none; }
.asset-card .art .card-photo.is-photo img { width: 100%; height: 100%; object-fit: contain; background: #0a1a2c; }
.asset-card .art .card-photo.is-photo .fp-frame { box-shadow: inset 0 46px 30px -24px rgba(7, 20, 38, .75); border-radius: 0; }

/* Equipment profile with a photo: always show the full picture */
.hero-stage.has-photo .hero-truck.is-photo { max-width: 100%; }
.hero-stage.has-photo .hero-truck.is-photo img { max-height: 70vh; width: auto; max-width: 100%; margin: 0 auto; }

/* request rows: title and status never fight for the same line */
.lrow.req { align-items: flex-start; }
.lrow.req .ltitle { overflow-wrap: anywhere; }
.lrow.req .lside .pill { white-space: nowrap; }
@media (max-width: 640px) {
  .lrow.req { flex-wrap: wrap; row-gap: 10px; }
  .lrow.req .lmain { flex: 1 1 calc(100% - 60px); }
  .lrow.req .lside { flex: 1 1 100%; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px; padding-left: 60px; text-align: left; }
  .lrow.req .lsub.ellipsis { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* auger builder */
.auger-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: 10px; align-items: end; padding: 10px; border-radius: 14px; border: 1px solid var(--fc-line-soft); background: rgba(7, 20, 38, .45); }
.auger-line label { font-size: 12px; color: var(--fc-muted); }
.stepper { display: flex; align-items: center; gap: 8px; height: 48px; }
.stepper b { min-width: 24px; text-align: center; font-size: 18px; }
@media (max-width: 480px) { .auger-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* vendor locator */
.vl-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .vl-layout { grid-template-columns: minmax(0, 1fr); } }
.vl-map-wrap { position: relative; padding: 0; overflow: hidden; border-radius: var(--fc-radius); }
.vl-map { display: block; width: 100%; height: auto; background: radial-gradient(circle at 50% 50%, rgba(39, 168, 255, .10), rgba(7, 20, 38, .9) 70%); }
.vl-ring { fill: rgba(150, 200, 240, .8); font-size: 28px; font-weight: 700; }
.vl-pin { cursor: pointer; }
.vl-pin circle { fill: var(--fc-warn); stroke: #071426; stroke-width: 4; }
.vl-pin text { fill: #1b1300; font-size: 26px; font-weight: 800; pointer-events: none; }
.vl-pin.sel circle { fill: #fff; stroke: var(--fc-cyan); stroke-width: 4; }
.vl-legend { position: absolute; left: 12px; bottom: 10px; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 10px; background: rgba(7, 20, 38, .75); color: var(--fc-text-2); }
.vl-legend .dot.you { width: 10px; height: 10px; border-radius: 50%; background: var(--fc-cyan); }
.vl-num { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--fc-warn); color: #1b1300; font-weight: 800; font-size: 14px; }
.lrow.sel { border-color: var(--fc-cyan); box-shadow: 0 0 0 1px var(--fc-cyan) inset; }

/* rental categories: every option visible, no sideways scrolling */
.cat-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cat-tile { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--fc-line-soft); background: var(--fc-glass); color: var(--fc-text); font-weight: 700; font-size: 14px; text-align: left; line-height: 1.2; }
.cat-tile svg { width: 22px; height: 22px; flex: none; color: var(--fc-cyan); }
.cat-tile.on { border-color: var(--fc-cyan); background: rgba(39, 168, 255, .18); box-shadow: 0 0 0 1px var(--fc-cyan) inset; }
@media (max-width: 400px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.date-quick.wrap { flex-wrap: wrap; }
.auger-line { grid-template-columns: minmax(0, 1fr) auto auto; }

/* service intervals */
.svc-row { display: grid; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--fc-line-soft); background: rgba(7, 20, 38, .45); }
.svc-dates { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 14px; }
.svc-dates .k { display: block; color: var(--fc-muted); font-size: 12px; }

/* A blurred (backdrop-filter) or transformed ancestor turns position:fixed into "fixed to that box", which
   trapped bottom sheets inside approval cards. Any card that contains an open sheet drops its blur. */
.glass:has(> .sheet), .glass:has(.sheet), .lrow:has(.sheet), .section:has(.sheet), .page-enter:has(.sheet) { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; transform: none !important; filter: none !important; }

/* equipment profile photo */
.hero-stage .photo-edit { position: absolute; right: 10px; top: 10px; z-index: 3; background: rgba(7, 20, 38, .75); }
.photo-pick { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin-top: 8px; }
.photo-pick-item { padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid var(--fc-line-soft); background: #071426; text-align: left; color: var(--fc-text-2); }
.photo-pick-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-pick-item span { display: block; padding: 6px 8px; font-size: 12px; }
.photo-pick-item.on { border-color: var(--fc-cyan); }

/* maintenance extra options: always visible tap tiles */
.opt-tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.opt-tile { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--fc-line-soft); background: var(--fc-glass); color: var(--fc-text); text-align: left; }
.opt-tile > svg { width: 22px; height: 22px; color: var(--fc-cyan); flex: none; }
.opt-tile b { display: block; font-size: 15px; } .opt-tile small { display: block; color: var(--fc-muted); font-size: 12.5px; }
.opt-tile .opt-check { width: 24px; height: 24px; flex: none; border-radius: 7px; border: 2px solid var(--fc-line); display: grid; place-items: center; }
.opt-tile .opt-check svg { width: 16px; height: 16px; }
.opt-tile.on { border-color: var(--fc-cyan); background: rgba(39, 168, 255, .16); }
.opt-tile.on .opt-check { background: var(--fc-cyan); border-color: var(--fc-cyan); color: #04121f; }

/* PDF fallback where the browser has no inline PDF viewer (Android Chrome) */
.doc-fallback { flex: 1; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; }
.doc-fallback > svg { width: 48px; height: 48px; color: var(--fc-cyan); }
