/* Rendition 2 components. Flat by default; gradients only in .bloom (heat), .aurora / .orb (NAZR), .wash (focus). */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); font-size: var(--t-body); line-height: 1.45; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: var(--w-reg); letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
::selection { background: rgba(120, 140, 255, 0.25); }

/* ── Type ────────────────────────────────────────────────────────────────── */
.mega { font-size: var(--t-mega); font-weight: var(--w-light); letter-spacing: -0.055em; line-height: 0.9; }
.hero-num { font-size: var(--t-hero); font-weight: var(--w-light); letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.disp { font-size: var(--t-display); font-weight: var(--w-light); letter-spacing: -0.045em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.lg { font-size: var(--t-num); font-weight: var(--w-light); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.u { color: var(--dim); font-weight: var(--w-light); }               /* Vexto: 78.3 with a dim .3, 87 with a dim % */
.u-s { font-size: 0.42em; letter-spacing: 0; margin-left: 2px; }
.t-2 { color: var(--text-2); }
.t-3 { color: var(--text-3); }
.t-small { font-size: var(--t-small); }
.t-micro { font-size: var(--t-micro); }
.t-med { font-weight: var(--w-med); }
.mono { font-family: var(--mono); font-size: 0.9em; letter-spacing: 0.02em; }
.eyebrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.crit { color: var(--crit-text); } .warn { color: var(--warn-text); } .ok { color: var(--ok-text); }
.ic { width: 20px; height: 20px; flex: none; } .ic-sm { width: 16px; height: 16px; flex: none; } .ic-lg { width: 24px; height: 24px; flex: none; }
.row { display: flex; align-items: center; gap: 8px; }
.spacer { flex: 1; }
.grow { flex: 1; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Surfaces ────────────────────────────────────────────────────────────── */
.glass {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: inset 0 0 0 1px var(--glass-line), inset 0 1px 0 var(--glass-hi);
}
.glass-strong { background: var(--glass-strong); backdrop-filter: blur(30px) saturate(150%); -webkit-backdrop-filter: blur(30px) saturate(150%); box-shadow: inset 0 0 0 1px var(--glass-line); }
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); }
.dotgrid-bg { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='8' cy='8' r='0.9' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E"); }
[data-theme="light"] .dotgrid-bg { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='8' cy='8' r='0.9' fill='rgba(18,19,20,0.11)'/%3E%3C/svg%3E"); }

/* ── Buttons and pills: always flat ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: var(--r-pill); font-size: 14px; font-weight: var(--w-med); white-space: nowrap;
  transition: transform var(--d-fast) ease, background var(--d-fast) ease, opacity var(--d-fast) ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-glass { background: var(--glass); color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.btn-glass:hover { background: var(--glass-strong); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--text); }
.btn-line { box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-line:hover { background: var(--surface-2); }
.btn-danger { color: var(--crit-text); box-shadow: inset 0 0 0 1px var(--crit-soft); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn-icon.btn-sm { width: 34px; }

.pills { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: var(--r-pill); }
.pill {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: var(--r-pill);
  font-size: 13.5px; color: var(--text-2); white-space: nowrap; transition: background var(--d) var(--ease), color var(--d-fast) ease;
}
.pill:hover { color: var(--text); }
.pill.is-active { background: var(--primary); color: var(--on-primary); }
.pill .n { font-size: 11.5px; opacity: 0.6; font-variant-numeric: tabular-nums; }
.pill svg { width: 16px; height: 16px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: var(--w-med); white-space: nowrap; color: var(--text-2); background: var(--surface-2);
}
.chip svg { width: 13px; height: 13px; }
.chip.glass { color: var(--text); background: var(--glass); }
.chip-ok { background: var(--ok-soft); color: var(--ok-text); }
.chip-warn { background: var(--warn-soft); color: var(--warn-text); }
.chip-crit { background: var(--crit-soft); color: var(--crit-text); }
.chip-plate { font-family: var(--mono); letter-spacing: 0.1em; background: #F6F6F3; color: #121314; height: 26px; border-radius: 7px; }
.sev { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--text-3); }
.sev-crit { background: var(--critical); } .sev-warn { background: var(--attention); } .sev-ok { background: var(--operational); }

.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--r-pill); }
.seg-item { height: 32px; padding: 0 14px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: var(--w-med); color: var(--text-2); transition: background var(--d) var(--ease), color var(--d-fast); }
.seg-item.is-active { background: var(--primary); color: var(--on-primary); }

/* ── WASH: the focused object, tinted by its condition ───────────────────── */
.wash { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
.wash::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 85% at 0% 100%, var(--w, transparent), transparent 64%),
    radial-gradient(70% 60% at 100% 0%, var(--w2, transparent), transparent 70%);
  transition: opacity var(--d-slow) ease;
}
.wash-ok { --w: var(--wash-ok); --w2: rgba(150, 236, 200, 0.12); }
.wash-warn { --w: var(--wash-warn); --w2: rgba(255, 210, 160, 0.12); }
.wash-crit { --w: var(--wash-crit); --w2: rgba(255, 150, 160, 0.12); }
.wash-scan { --w: rgba(120, 140, 255, 0.24); --w2: rgba(200, 160, 255, 0.12); }

/* ── AURORA: NAZR's voice ────────────────────────────────────────────────── */
.aurora { position: relative; isolation: isolate; overflow: hidden; overflow: clip; background: var(--aur-base); color: var(--aur-text); }
.aurora::before {
  content: ""; position: absolute; inset: -45%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 46% at 22% 28%, var(--aur-1), transparent 70%),
    radial-gradient(42% 50% at 78% 26%, var(--aur-2), transparent 70%),
    radial-gradient(46% 46% at 72% 82%, var(--aur-3), transparent 70%),
    radial-gradient(40% 44% at 24% 80%, var(--aur-4), transparent 70%);
  filter: blur(14px) saturate(115%);
  animation: aurora-drift 16s ease-in-out infinite alternate;
}
.aurora::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.16); pointer-events: none; }
.aurora .t-2 { color: color-mix(in srgb, var(--aur-text) 76%, transparent); }
.aurora .t-3, .aurora .eyebrow { color: color-mix(in srgb, var(--aur-text) 58%, transparent); }
@keyframes aurora-drift { 0% { transform: translate3d(-5%, -3%, 0) rotate(0deg) scale(1); } 100% { transform: translate3d(5%, 4%, 0) rotate(10deg) scale(1.06); } }

.orb { position: relative; width: var(--s, 44px); height: var(--s, 44px); border-radius: 50%; display: grid; place-items: center; overflow: hidden; overflow: clip; isolation: isolate; flex: none; }
.orb-glow { position: absolute; inset: -35%; z-index: -1; background: conic-gradient(from 0deg, #7B8CFF, #B98BFF, #FF8DC0, #FFC38E, #8FE3FF, #7B8CFF); filter: blur(7px); animation: spin 7s linear infinite; }
.orb-mark { width: 60%; color: #fff; display: grid; place-items: center; }
.orb-mark svg { width: 100%; height: auto; }
.suggest { height: 32px; padding: 0 13px; border-radius: var(--r-pill); font-size: 12.5px; background: rgba(255, 255, 255, 0.14); color: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
[data-theme="light"] .suggest { background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1px rgba(26, 20, 36, 0.08); }
.suggest:hover { background: rgba(255, 255, 255, 0.24); }

/* ── HEAT on photos ──────────────────────────────────────────────────────── */
.ph { position: relative; overflow: hidden; overflow: clip; border-radius: var(--r-lg); background: var(--surface-2); }
.ph-in { position: absolute; inset: 0; transition: transform var(--d-slow) var(--ease); }
.ph img { width: 100%; height: 100%; object-fit: cover; user-select: none; }
.ph-heat { position: absolute; inset: 0; mix-blend-mode: var(--heat-blend); pointer-events: none; transition: opacity var(--d-slow) ease; }
.ph-heat.is-quiet { opacity: 0.35; }
.ph-heat .bloom {
  position: absolute; transform: translate(-50%, -50%); border-radius: 50%; opacity: var(--k);
  background: radial-gradient(closest-side, var(--heat-0), var(--heat-1) 20%, var(--heat-2) 40%, var(--heat-3) 60%, var(--heat-4) 80%, transparent);
  animation: heat-breathe 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * -1.1s);
}
.ph-marks { position: absolute; inset: 0; pointer-events: none; }
.pframe { position: absolute; border: calc(1.5px / var(--zs, 1)) dashed rgba(255, 255, 255, 0.92); border-radius: 6px; animation: pf-in var(--d-slow) var(--ease) both; }
.pframe b { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #0B0C0E; box-shadow: 0 0 0 1.5px #fff; transform: scale(calc(1 / var(--zs, 1))); }
.pframe .tl { left: -5px; top: -5px; } .pframe .tr { right: -5px; top: -5px; } .pframe .br { right: -5px; bottom: -5px; } .pframe .bl { left: -5px; bottom: -5px; }
.ptag, .pdot span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: var(--w-med); color: #fff; background: rgba(12, 12, 14, 0.62); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
/* Inside a zoomed photo (--zs) the marks stay their real size */
.ptag { position: absolute; left: calc(-11px / var(--zs, 1)); top: calc(-30px / var(--zs, 1)); transform: scale(calc(1 / var(--zs, 1))); transform-origin: 0 0; }
.pdot { position: absolute; transform: translate(-50%, -50%) scale(calc(1 / var(--zs, 1))); }
.pdot.crit span, .ptag.crit { box-shadow: inset 0 0 0 1.5px #fff, 0 0 0 3px rgba(255, 71, 71, 0.45); }
@keyframes pf-in { from { opacity: 0; transform: scale(1.08); } }
@keyframes heat-breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); filter: saturate(1); } 50% { transform: translate(-50%, -50%) scale(1.07); filter: saturate(1.25); } }

/* Heat swatch: a numbered square lit from its centre (defect lists) */
.hs { position: relative; width: 34px; height: 34px; border-radius: 11px; flex: none; overflow: hidden; overflow: clip; background: var(--surface-2); }
.hs::after { content: ""; position: absolute; inset: -30%; background: radial-gradient(closest-side, var(--heat-0), var(--heat-1) 22%, var(--heat-2) 42%, var(--heat-3) 62%, var(--heat-4) 82%, transparent); mix-blend-mode: var(--heat-blend); }
.hs.warn::after { inset: -10%; opacity: 0.85; }
.hs.minor::after { inset: 8%; opacity: 0.7; }
.hs b { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; font-size: 11px; font-weight: var(--w-med); color: #fff; text-shadow: 0 0 6px rgba(0, 0, 0, 0.45); }
[data-theme="light"] .hs b { color: #121314; text-shadow: none; }

/* ── The isometric twin ──────────────────────────────────────────────────── */
.iso { width: 100%; height: auto; overflow: visible; }
.iso .f { stroke: var(--iso-line); stroke-width: 1.1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.iso .f.top { fill: var(--iso-top); } .iso .f.fa { fill: var(--iso-a); } .iso .f.fb { fill: var(--iso-b); }
.iso .f.sm { stroke-width: 0.6; } .iso .f.sm.top { stroke: var(--iso-top); } .iso .f.sm.fa { stroke: var(--iso-a); } .iso .f.sm.fb { stroke: var(--iso-b); }
.iso .f.glass { fill: var(--iso-glass); }
.iso .sil { fill: none; stroke: var(--iso-line); stroke-width: 1.1; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.iso .dc { fill: none; stroke: var(--iso-line); stroke-width: 1; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.iso .dc.thin { stroke: var(--iso-line-2); }
.iso .dc.glass { fill: var(--iso-glass); }
.iso .dc.void { fill: var(--iso-void); stroke: var(--iso-line-2); }
.iso .dc.rim { stroke: var(--iso-line); }
.iso .dc.hi { stroke-width: 2.2; }
.iso .dc.lamp { stroke: #FF5A4E; stroke-width: 2; }
.iso .floor { fill: none; stroke: var(--iso-floor); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.iso .shadow { fill: var(--iso-shadow); }
.iso .heat { mix-blend-mode: var(--heat-blend); pointer-events: none; }
.iso .bloom { animation: iso-breathe 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * -0.9s); }
.iso .mark .m-core { fill: #FFFFFF; }
.iso .mark .m-ring { fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 1; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; }
.iso .mark.crit .m-ring { animation: ring 2.2s var(--ease-out) infinite; }
[data-theme="light"] .iso .mark .m-core { fill: #121314; }
[data-theme="light"] .iso .mark .m-ring { stroke: rgba(18, 19, 20, 0.7); }
.frame rect { fill: none; stroke: var(--text); stroke-width: 1.2; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; animation: march 1.2s linear infinite; }
.frame circle { fill: var(--bg); stroke: var(--text); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
@keyframes iso-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes ring { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes march { to { stroke-dashoffset: -20; } }

/* Twin entrance: lines draw, then the heat rises */
.twin-in .iso .model { animation: twin-fade 900ms var(--ease-out) both; }
.twin-in .iso .heat { animation: heat-rise 1400ms 500ms var(--ease-out) both; }
@keyframes twin-fade { from { opacity: 0; transform: translateY(8px); } }
@keyframes heat-rise { from { opacity: 0; } }

/* ── Thermal top view ────────────────────────────────────────────────────── */
.thermal-top { width: 100%; height: auto; overflow: visible; }
.thermal-top .tv-dots { fill: none; stroke: var(--heat-dot-off); stroke-width: 2.6; stroke-linecap: round; }
.thermal-top .tv-hot circle { transition: r var(--d) ease; }
.h0 { fill: var(--dot-0); } .h1 { fill: var(--dot-1); } .h2 { fill: var(--dot-2); } .h3 { fill: var(--dot-3); } .h4 { fill: var(--dot-4); }
.thermal-top .tv-body { fill: none; stroke: var(--iso-line); stroke-width: 1.3; }
.thermal-top .tv-detail { fill: none; stroke: var(--iso-line-2); stroke-width: 1; }
.thermal-top .tv-line { fill: none; stroke: var(--iso-line); stroke-width: 1.2; }
.thermal-top .tv-zone { fill: transparent; stroke: transparent; cursor: pointer; outline: none; transition: fill var(--d-fast) ease; }
.thermal-top .tv-zone:hover, .thermal-top .tv-zone:focus-visible { fill: rgba(255, 255, 255, 0.05); stroke: var(--iso-line-2); }
.thermal-top .tv-dim path { fill: none; stroke: var(--iso-line-2); }
.thermal-top .tv-dim text { fill: var(--text-3); font-family: var(--mono); font-size: 9px; }
.thermal-top .frame rect { stroke-width: 1.3; }
.thermal-top.is-scan .tv-hot { animation: heat-rise 1600ms 700ms var(--ease-out) both; }

/* ── Callouts with leader lines ──────────────────────────────────────────── */
.leader { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.leader line { stroke: var(--text); stroke-width: 1.3; stroke-dasharray: 3 3; opacity: 0.9; vector-effect: non-scaling-stroke; }
.leader-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px var(--text), 0 0 0 7px color-mix(in srgb, var(--text) 16%, transparent); pointer-events: none; }
.callout { position: absolute; transform: translate(0, -50%); padding: 11px 13px; border-radius: 16px; min-width: 150px; animation: co-in var(--d-slow) 300ms var(--ease) both; }
.callout.left { transform: translate(-100%, -50%); }
@keyframes co-in { from { opacity: 0; translate: 0 6px; } }
.anchor { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity var(--d) ease; }
.anchor.is-placed { opacity: 1; }
.anchor .callout { pointer-events: auto; transform: none; }

/* ── Flat charts ─────────────────────────────────────────────────────────── */
.ticks { display: flex; align-items: flex-end; gap: 2px; height: var(--h, 16px); }
.ticks i { flex: 1; max-width: 3px; height: 100%; border-radius: 1px; background: var(--line-2); }
.ticks i.on { background: var(--text); }
.ticks.ok i.on { background: var(--operational); } .ticks.warn i.on { background: var(--attention); } .ticks.crit i.on { background: var(--critical); }
.ticks i.tip { height: 145%; }
.spectrum { position: relative; padding-top: 26px; }
.spec-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--critical) 0%, var(--attention) 42%, #E9D45C 60%, var(--operational) 78%, #79E6B9 100%); }
.spec-mark { position: absolute; top: 0; transform: translateX(-50%); display: grid; justify-items: center; }
.spec-mark b { font-size: 11px; font-weight: var(--w-med); padding: 2px 7px; border-radius: 6px; background: var(--primary); color: var(--on-primary); }
.spec-mark::after { content: ""; width: 2px; height: 13px; margin-top: 2px; border-radius: 1px; background: var(--text); }
.spec-labels { position: relative; height: 16px; margin-top: 8px; font-size: 11px; color: var(--text-3); }
.spec-labels span { position: absolute; }
.tline { display: flex; align-items: flex-end; gap: 3px; height: var(--h, 56px); }
.tline i { flex: 1; min-width: 2px; border-radius: 2px; background: var(--line-2); }
.tline i.on { background: var(--text-2); }
.tline i.hot.crit { background: var(--critical); } .tline i.hot.warn { background: var(--attention); } .tline i.hot.minor { background: var(--heat-1); }
.tline i.today { box-shadow: 0 0 0 1.5px var(--text); }

/* ── Rendition 2 drawings (shared/viz.js): day strip, site map, fleet spectrum, activity ring, toggles ── */
.lg-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--text-2); }
.lg-dot.is-hot { margin-left: 6px; background: var(--dot-1); }
.daystrip { display: block; width: 100%; height: auto; overflow: visible; }
.daystrip .ds-dim { fill: none; stroke: var(--heat-dot-off); stroke-width: 3.4; stroke-linecap: round; }
.daystrip .ds-on { fill: var(--text-3); }
.daystrip .ds-top { fill: var(--text); }
.daystrip .ds-live { fill: var(--text); animation: ds-live 1.4s ease-in-out infinite; animation-delay: calc(var(--k) * -0.14s); }
.daystrip .ds-tick { stroke: var(--line-2); stroke-width: 1; }
.daystrip .ds-lab { fill: var(--text-3); font-family: var(--mono); font-size: 9px; }
.daystrip .ds-now { stroke: var(--text); stroke-width: 1.2; stroke-dasharray: 2 3; }
.daystrip .ds-now-lab { fill: var(--text); font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase; }
@keyframes ds-live { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.fspec { position: relative; height: 118px; margin-top: 12px; }
.fspec .spec-track { position: absolute; left: 0; right: 0; top: 56px; }
.fs-dot { position: absolute; top: calc(57.5px - var(--lv) * 15px); width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px var(--text); transition: transform var(--d-fast) ease; }
.fs-dot.ok { box-shadow: 0 0 0 2px var(--operational); }
.fs-dot.warn { box-shadow: 0 0 0 2px var(--attention); }
.fs-dot.crit { box-shadow: 0 0 0 2px var(--critical); }
.fs-dot:hover, .fs-dot:focus-visible { transform: scale(1.3); }
.fs-call { position: absolute; display: grid; gap: 2px; font-size: 10.5px; line-height: 1.2; white-space: nowrap; color: var(--text-2); transform: translateX(-6px); }
.fs-call b { font-size: 20px; font-weight: var(--w-light); letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.fs-call.to-left { justify-items: end; text-align: right; transform: translateX(calc(-100% + 6px)); }
.fs-call.hi { top: 0; }
.fs-call.lo { top: 78px; }
.fs-call::after { content: ""; position: absolute; left: 6px; width: 1px; height: 10px; background: var(--line-2); }
.fs-call.to-left::after { left: auto; right: 6px; }
.fs-call.hi::after { top: 38px; }
.fs-call.lo::after { top: -12px; }
.fspec-axis { display: flex; justify-content: space-between; margin-top: 2px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.sitemap { display: block; width: 100%; height: auto; overflow: hidden; border-radius: 18px; }
.sitemap .map-land { fill: none; stroke: var(--line-2); stroke-width: 2.4; stroke-linecap: round; }
.sitemap .map-water { fill: none; stroke: var(--heat-dot-off); stroke-width: 1.2; stroke-linecap: round; }
.sitemap .map-shore { fill: none; stroke: var(--text-3); stroke-width: 0.8; stroke-dasharray: 1.5 3; opacity: 0.7; }
.sitemap .map-lake { fill: var(--text-3); font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.32em; text-transform: uppercase; }
.sitemap .map-scale path, .sitemap .map-n-arrow { fill: none; stroke: var(--text-3); stroke-width: 1; }
.sitemap .map-scale text, .sitemap .map-n { fill: var(--text-3); font-family: var(--mono); font-size: 9px; }
.pin { cursor: pointer; outline: none; }
.pin-hit { fill: transparent; }
.pin-heat { fill: var(--hm); mix-blend-mode: var(--heat-blend); }
.pin-ring { fill: var(--surface); stroke: var(--text); stroke-width: 1.5; }
.pin-dot { fill: var(--text); }
.pin-arrow { fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pin-lab { fill: var(--text); font-size: 10.5px; font-weight: var(--w-med); paint-order: stroke; stroke: var(--surface); stroke-width: 3.5px; stroke-linejoin: round; }
.pin-sub { fill: var(--text-3); font-family: var(--mono); font-weight: var(--w-reg); }
.pin:focus-visible .pin-ring, .pin:hover .pin-ring { stroke-width: 2.2; }
.h-week { display: flex; align-items: flex-end; gap: 3px; width: 52px; height: 26px; flex: none; }
.h-week i { flex: 1; border-radius: 2px; background: var(--line-2); }
.h-week i.on { background: var(--text-3); }
.h-week i.on.today { background: var(--text); }
.weekring { position: absolute; inset: 0; }
.wr-dot { fill: var(--line-2); }
.wr-dot.on { fill: var(--text-3); }
.wr-dot.on.now, .wr-dot.now { fill: var(--text); }
.tgl { position: relative; width: 48px; height: 30px; flex: none; border-radius: 15px; background: var(--surface-3); transition: background var(--d) ease; }
.tgl i { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform var(--d) var(--ease), background var(--d) ease; }
.tgl.is-on { background: var(--primary); }
.tgl.is-on i { transform: translateX(18px); background: var(--on-primary); }

/* ── NAZR's room (shared/room.js): the full-screen Ask in the app, the Ask page in the portal ── */
.ask-room .pin-arrow { stroke: currentColor; }
.ask-room { background: var(--aur-base); color: var(--aur-text); }
.ask-sky { position: absolute; left: -30%; right: -30%; top: -12%; height: 82%; pointer-events: none;
  background:
    radial-gradient(34% 30% at 30% 30%, var(--aur-1), transparent 70%),
    radial-gradient(36% 30% at 70% 24%, var(--aur-2), transparent 70%),
    radial-gradient(40% 32% at 64% 58%, var(--aur-3), transparent 72%),
    radial-gradient(34% 30% at 32% 62%, var(--aur-4), transparent 72%);
  filter: blur(16px) saturate(115%); animation: aurora-drift 16s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(#000 34%, transparent 94%); mask-image: linear-gradient(#000 34%, transparent 94%); }
[data-theme="light"] .ask-room .rbtn, [data-theme="light"] .ask-sheet .rbtn { background: rgba(255, 255, 255, 0.58); box-shadow: inset 0 0 0 1px rgba(26, 20, 36, 0.08); }
.ask-room .eyebrow { color: inherit; opacity: 0.66; }
.ask-orb { box-shadow: 0 22px 60px -14px rgba(132, 112, 255, 0.55); }
.ask-room .seg.glass { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
[data-theme="light"] .ask-room .seg.glass { background: rgba(255, 255, 255, 0.58); box-shadow: inset 0 0 0 1px rgba(26, 20, 36, 0.06); }
.ask-room .seg-item { color: inherit; opacity: 0.74; }
.ask-room .seg-item.is-active { opacity: 1; background: var(--primary); color: var(--on-primary); }
.ask-pin { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 3px 0 12px; border-radius: var(--r-pill); font-size: 12px; font-weight: var(--w-med); background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
[data-theme="light"] .ask-pin { background: rgba(255, 255, 255, 0.62); box-shadow: inset 0 0 0 1px rgba(26, 20, 36, 0.06); }
.ask-pin button { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.ask-mod { position: relative; margin: 14px 12px 0; padding: 16px; border-radius: 26px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
[data-theme="light"] .ask-mod { background: rgba(255, 255, 255, 0.58); box-shadow: inset 0 0 0 1px rgba(26, 20, 36, 0.06); }
.am-lab { font-size: 11.5px; opacity: 0.62; }
.am-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.am-kpis > div { display: grid; gap: 4px; padding-left: 12px; box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.14); }
[data-theme="light"] .am-kpis > div { box-shadow: inset 1px 0 0 rgba(26, 20, 36, 0.1); }
.am-kpis > div:first-child { padding-left: 0; box-shadow: none; }
.am-kpis .disp { font-size: 40px; }
.ask-room .u { color: inherit; opacity: 0.4; }
.am-read { margin-top: 16px; font-size: 14.5px; line-height: 1.5; opacity: 0.92; }
.am-read b { font-weight: var(--w-med); }
.am-cap-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.am-big { display: flex; align-items: flex-end; gap: 10px; margin-top: 6px; }
.am-big .disp { font-size: 54px; }
.am-big-sub { padding-bottom: 6px; font-size: 11.5px; line-height: 1.35; opacity: 0.66; }
.am-ctrl { display: grid; justify-items: end; gap: 10px; }
.am-ctrl .seg-item { height: 28px; padding: 0 11px; font-size: 11.5px; }
.am-proj { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: var(--w-med); opacity: 0.86; }
.am-chart { margin-top: 18px; }
.am-chart.is-week .tline { justify-content: space-around; gap: 0; }
.am-chart.is-week .tline i { flex: 0 0 12px; border-radius: 3px; }
.ask-room .tline i { background: rgba(255, 255, 255, 0.16); }
.ask-room .tline i.on { background: rgba(255, 255, 255, 0.62); }
.ask-room .tline i.today { box-shadow: 0 0 0 1.5px currentColor; }
[data-theme="light"] .ask-room .tline i { background: rgba(26, 20, 36, 0.1); }
[data-theme="light"] .ask-room .tline i.on { background: rgba(26, 20, 36, 0.5); }
.ask-room .tline i.hot.crit { background: var(--critical); }
.ask-room .tline i.hot.warn { background: var(--attention); }
.ask-room .tline i.hot.minor { background: var(--heat-1); }
.am-dow, .am-axis { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 10px; opacity: 0.55; }
.am-dow span { flex: 1; text-align: center; }
.am-dow .is-today { opacity: 1; font-weight: 600; }
.am-recent { display: flex; gap: 10px; margin: 18px -16px -2px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.am-recent::-webkit-scrollbar { display: none; }
.am-cap { flex: none; display: grid; gap: 4px; width: 150px; text-align: left; }
.am-cap .t-med { font-size: 13px; }
.am-cap-art { position: relative; height: 96px; margin-bottom: 4px; display: grid; place-items: center; border-radius: 16px; overflow: hidden; overflow: clip; background: rgba(0, 0, 0, 0.22); }
[data-theme="light"] .am-cap-art { background: rgba(255, 255, 255, 0.7); }
.am-cap-art img { width: 100%; height: 100%; object-fit: cover; }
.am-cap-art .ph { position: absolute; top: 0; left: 50%; height: 100%; width: auto; border-radius: 0; }
.am-cap-art .iso { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
.am-map { margin: -6px -8px 0; }
.ask-room .pin-ring { fill: var(--aur-base); stroke: currentColor; }
.ask-room .pin-dot { fill: currentColor; }
.ask-room .pin-lab { fill: currentColor; stroke: var(--aur-base); }
.ask-room .map-land { stroke: rgba(255, 255, 255, 0.16); }
[data-theme="light"] .ask-room .map-land { stroke: rgba(26, 20, 36, 0.14); }
.ask-room .frame rect, .ask-room .frame circle { stroke: currentColor; }
.ask-room .frame circle { fill: var(--aur-base); }
.am-site-card { margin-top: 10px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); animation: co-in var(--d-slow) var(--ease) both; }
[data-theme="light"] .am-site-card { background: rgba(255, 255, 255, 0.72); box-shadow: inset 0 0 0 1px rgba(26, 20, 36, 0.06); }
.am-site-card h3 { margin-top: 4px; font-size: 24px; font-weight: var(--w-light); letter-spacing: -0.025em; }
.am-site-card p { margin-top: 4px; font-size: 12.5px; opacity: 0.72; }
.am-site-card .lg { font-size: 26px; }
.am-x { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; opacity: 0.7; }
.am-list { display: grid; margin-top: 12px; }
.ask-mod[data-mod="team"] .am-list { margin-top: 0; }
.am-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 2px; text-align: left; border-top: 1px solid rgba(255, 255, 255, 0.1); }
[data-theme="light"] .am-row { border-top-color: rgba(26, 20, 36, 0.07); }
.am-row:first-child { border-top: 0; }
.am-row.is-on .t-med { text-decoration: underline; text-underline-offset: 3px; }
.am-pin { position: relative; width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.am-pin i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.am-pin.crit::before, .am-pin.warn::before, .am-pin.minor::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; mix-blend-mode: var(--heat-blend); background: radial-gradient(closest-side, var(--heat-0), var(--heat-2) 45%, var(--heat-3) 70%, transparent); }
.am-pin.warn::before { inset: -6px; opacity: 0.85; }
.am-pin.minor::before { inset: -3px; opacity: 0.7; }
[data-theme="light"] .am-pin.crit::before { inset: -6px; opacity: 0.75; }
[data-theme="light"] .am-pin.warn::before { inset: -3px; opacity: 0.6; }
[data-theme="light"] .am-pin.minor::before { inset: -1px; opacity: 0.5; }
.am-n { display: grid; justify-items: end; gap: 2px; }
.am-n .lg { font-size: 24px; }
.am-av { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 12.5px; font-weight: var(--w-med); background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
[data-theme="light"] .am-av { background: rgba(255, 255, 255, 0.72); box-shadow: inset 0 0 0 1px rgba(26, 20, 36, 0.08); }
.am-av.me { font-size: 11px; background: var(--primary); color: var(--on-primary); box-shadow: none; }
.am-holds { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.am-holds span { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font-size: 11px; background: rgba(255, 255, 255, 0.1); }
[data-theme="light"] .am-holds span { background: rgba(26, 20, 36, 0.06); }
.am-holds svg { width: 12px; height: 12px; }
.am-mate .am-n { display: flex; align-items: flex-end; gap: 10px; }
.ask-room .h-week i { background: rgba(255, 255, 255, 0.16); }
.ask-room .h-week i.on { background: rgba(255, 255, 255, 0.6); }
.ask-room .h-week i.on.today { background: currentColor; }
[data-theme="light"] .ask-room .h-week i { background: rgba(26, 20, 36, 0.1); }
[data-theme="light"] .ask-room .h-week i.on { background: rgba(26, 20, 36, 0.45); }

/* ── Persona form, task cards, people, plans (both surfaces) ── */
.need { flex: none; display: flex; flex-direction: column; gap: 6px; width: 238px; min-height: 204px; padding: 16px; border-radius: 26px; scroll-snap-align: start; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.need-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.need h3 { font-size: 18px; font-weight: var(--w-reg); letter-spacing: -0.02em; line-height: 1.2; }
.need p { flex: 1; }
.need .btn { align-self: flex-start; gap: 6px; margin-top: 10px; }
.need .btn svg { width: 15px; height: 15px; }
.need-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); color: var(--text-2); }
.need-ic.crit { background: var(--crit-soft); color: var(--crit-text); }
.need-ic.warn { background: var(--warn-soft); color: var(--warn-text); }
.h-av { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 12.5px; font-weight: var(--w-med); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.h-av.me { font-size: 11px; background: var(--primary); color: var(--on-primary); box-shadow: none; }
.plan { display: grid; gap: 10px; padding: 16px; border-radius: 22px; background: var(--surface-2); }
.plan.is-cur { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--text); }
.plan-name { margin-right: 8px; font-size: 20px; font-weight: var(--w-med); }
.plan ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-2); }
.plan li { display: flex; align-items: center; gap: 8px; }
.plan li svg { color: var(--text-3); }
.plan .btn { justify-self: start; }
.chip-cur { background: var(--primary); color: var(--on-primary); }
.ps-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 8px 20px 0; }
.ps-steps button { height: 20px; display: grid; align-items: center; }
.ps-steps i { display: block; height: 4px; border-radius: 2px; background: var(--line-2); }
.ps-steps .done i { background: var(--text-3); }
.ps-steps .now i { background: var(--text); }
.ps-head { padding: 20px 20px 0; }
.ps-head h1 { margin-top: 10px; font-size: 38px; font-weight: var(--w-light); letter-spacing: -0.045em; line-height: 1.02; }
.ps-head p { margin-top: 8px; font-size: 14px; }
.ps-fields { display: grid; gap: 22px; padding: 26px 20px 0; }
.ps-field { display: grid; gap: 8px; }
.ps-lab { font-size: 12.5px; font-weight: var(--w-med); color: var(--text-2); }
.ps-in { width: 100%; padding: 14px 16px; border: 0; border-radius: 16px; outline: none; resize: none; font-family: inherit; font-size: 15px; color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ps-in:focus { box-shadow: inset 0 0 0 1.5px var(--text); }
.ps-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-chips .pill { height: 36px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ps-chips .pill.is-active { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.ps-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ps-tags:focus-within { box-shadow: inset 0 0 0 1.5px var(--text); }
.ps-tag { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 12px; border-radius: var(--r-pill); font-size: 13px; background: var(--surface-2); }
.ps-tag svg { width: 13px; height: 13px; opacity: 0.6; }
.ps-tag-in { flex: 1; min-width: 140px; height: 30px; padding: 0 6px; border: 0; outline: none; font-size: 14px; color: var(--text); background: transparent; }

/* ── Scan line (analysing, first reveal) ─────────────────────────────────── */
.scan { position: absolute; left: -10%; right: -10%; height: 2px; top: 0; background: linear-gradient(90deg, transparent, rgba(170, 186, 255, 0.95) 30%, #FFFFFF 50%, rgba(255, 170, 214, 0.9) 70%, transparent); box-shadow: 0 0 28px 8px rgba(130, 150, 255, 0.28); pointer-events: none; animation: scan 2.6s var(--ease) infinite; }
@keyframes scan { 0% { top: 0%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast-host { position: absolute; left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; z-index: 120; }
.toast { display: inline-flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 11px 16px; border-radius: var(--r-pill); background: var(--primary); color: var(--on-primary); font-size: var(--t-small); font-weight: var(--w-med); animation: toast-in var(--d-slow) var(--ease) both; }
.toast svg { width: 16px; height: 16px; flex: none; }
.toast.is-leaving { animation: toast-out var(--d) ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Logo */
.nz-mark--scan .nz-dot { animation: nz-scan 1.4s var(--ease-out) infinite; animation-delay: calc(var(--i) * 0.1s); opacity: 0.22; }
.nz-mark--scan .nz-dot:last-child { animation: nz-pupil 1.4s ease-in-out infinite; opacity: 1; transform-box: fill-box; transform-origin: center; }
@keyframes nz-scan { 0% { opacity: 1; } 55%, 100% { opacity: 0.18; } }
@keyframes nz-pupil { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.82); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* Liquid glass (shared/glass.js sets --lg to a lens sized for the element). Chromium bends; others stay frosted. */
:root .lglass.lg-pill {
  background: rgba(22, 24, 30, 0.34);
  backdrop-filter: var(--lg) blur(0.6px) saturate(165%) brightness(1.06);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.55), inset 0 -1px 0.5px rgba(255, 255, 255, 0.16), inset 0 0 0 0.5px rgba(255, 255, 255, 0.28), inset 0 0 18px rgba(255, 255, 255, 0.05), 0 14px 34px -14px rgba(0, 0, 0, 0.55);
}
[data-theme="light"] .lglass.lg-pill {
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.9), inset 0 -1px 0.5px rgba(255, 255, 255, 0.5), inset 0 0 0 0.5px rgba(18, 19, 20, 0.12), 0 14px 34px -16px rgba(30, 30, 40, 0.35);
}
