/* ==========================================================================
   Plotit design system
   Tokens, app shell, and shared components. Fleet-specific styles (map, side
   panel, playback dock) live in fleet.css.
   Theme: <html data-theme="dark"> switches every token below.
   ========================================================================== */

@font-face {
  font-family: 'Geist';
  src: url('../lib/geist/dist/fonts/geist-sans/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../lib/geist/dist/fonts/geist-mono/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --signal: #C8F031;
  --signal-hover: #BDE41F;
  --bg: #E9EBE6;
  --panel: #FFFFFF;
  --panel2: #F4F5F2;
  --panel3: #E8EAE5;
  --line: rgba(17, 20, 24, .10);
  --line2: rgba(17, 20, 24, .18);
  --fg: #14171B;
  --fg2: #4B535D;
  --fg3: #646C76;
  --nav: #121519;
  --nav2: #1C2025;
  --nav3: #272C33;
  --navfg: #ECEFF2;
  --navfg2: #9BA4AE;
  --navline: rgba(255, 255, 255, .08);
  --moving: #22A35A;
  --idling: #E99A0B;
  --stopped: #8A929C;
  --alert: #DD4444;
  --moving-ink: #12703D;
  --idling-ink: #875300;
  --stopped-ink: #50585F;
  --alert-ink: #B02222;
  --shadow: 0 12px 32px rgba(18, 22, 28, .14), 0 2px 6px rgba(18, 22, 28, .06);
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --focus: #8DB000;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #08090B;
  --panel: #13161A;
  --panel2: #191C21;
  --panel3: #22262C;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .16);
  --fg: #ECEFF2;
  --fg2: #AAB2BB;
  --fg3: #8A939D;
  --nav: #0E1013;
  --nav2: #191C21;
  --nav3: #242830;
  --moving-ink: #4CC67F;
  --idling-ink: #F2B640;
  --stopped-ink: #A6AEB7;
  --alert-ink: #F27373;
  --shadow: 0 16px 40px rgba(0, 0, 0, .55);
  --focus: var(--signal);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--fg2); }
input, button, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, h4, p { margin: 0; }
code, kbd, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.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; }
.hidden, [hidden] { display: none !important; }

@keyframes pv-pulse { 0% { transform: scale(.6); opacity: .55; } 100% { transform: scale(2.3); opacity: 0; } }
@keyframes pv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pv-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pv-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes pv-spin { to { transform: rotate(360deg); } }
@keyframes pv-dash { to { stroke-dashoffset: -240; } }
@keyframes pv-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pv-icon { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pv-icon--sm { width: 15px; height: 15px; stroke-width: 1.7; }
.pv-icon--xs { width: 13px; height: 13px; stroke-width: 1.8; }
.pv-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--stopped); }
.pv-dot--moving { background: var(--moving); }
.pv-dot--idling { background: var(--idling); }
.pv-dot--stopped { background: var(--stopped); }
.pv-dot--offline, .pv-dot--alert { background: var(--alert); }
.pv-dot--signal { background: var(--signal); }
.pv-dot--live { background: var(--moving); animation: pv-blink 1.6s ease-in-out infinite; }

/* ── App shell ─────────────────────────────────────────────────────────── */

.pv-shell {
  height: 100vh;
  display: flex;
  gap: 10px;
  padding: 10px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

.pv-navslot { position: relative; flex: none; width: 68px; transition: width .26s cubic-bezier(.32, .72, 0, 1); z-index: 50; }
.pv-shell.nav-pinned .pv-navslot { width: 240px; }

.pv-nav {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 68px;
  display: flex; flex-direction: column;
  background: var(--nav); color: var(--navfg);
  border-radius: 16px; overflow: hidden;
  transition: width .26s cubic-bezier(.32, .72, 0, 1), box-shadow .2s ease;
}
.pv-shell.nav-pinned .pv-nav, .pv-nav.is-hover { width: 240px; }
.pv-nav.is-hover { box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.pv-shell.nav-pinned .pv-nav.is-hover { box-shadow: none; }

.pv-nav .pv-fade { opacity: 0; transition: opacity .18s ease; white-space: nowrap; }
.pv-shell.nav-pinned .pv-nav .pv-fade, .pv-nav.is-hover .pv-fade { opacity: 1; }

.pv-brand { flex: none; height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 16px; color: inherit; text-decoration: none; }
.pv-brand:hover { color: inherit; }
.pv-logo { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--signal); display: grid; place-items: center; }
.pv-logo svg { width: 20px; height: 20px; fill: none; stroke: #121519; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-brand-text { display: flex; flex-direction: column; gap: 1px; }
.pv-brand-name { font-size: 15px; font-weight: 650; letter-spacing: -.2px; }
.pv-brand-sub { font-family: var(--mono); font-size: 10px; color: var(--navfg2); }
/* Plotit logo: the mark in the nav rail, the lettering beside it (light versions: the rail is always dark). */
.pv-logo-mark { width: 36px; height: 36px; flex: none; display: block; }
.pv-brand-word { display: block; height: 19px; width: auto; }
.pv-auth-wordmark { display: block; height: 40px; width: auto; }
.pv-public-wordmark { display: block; height: 30px; width: auto; }
/* Logo versions for light and dark backgrounds, where the page follows the theme. */
.pv-on-dark { display: none !important; }
html[data-theme="dark"] .pv-on-light { display: none !important; }
html[data-theme="dark"] .pv-on-dark { display: block !important; }

.pv-switcher-wrap { flex: none; padding: 4px 10px 10px; }
.pv-switcher {
  width: 100%; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 6px;
  border: 1px solid var(--navline); background: var(--nav2); color: var(--navfg);
  border-radius: 11px; text-align: left;
}
.pv-switcher:hover { background: var(--nav3); }
.pv-switcher-badge { width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--nav3); display: grid; place-items: center; font-family: var(--mono); font-size: 9.5px; font-weight: 600; }
.pv-switcher-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pv-switcher-label { font-size: 10px; color: var(--navfg2); }
.pv-nav .pv-switcher-notice.pv-fade { white-space: normal; display: none; }
.pv-shell.nav-pinned .pv-nav .pv-switcher-notice.pv-fade, .pv-nav.is-hover .pv-switcher-notice.pv-fade { display: block; }
.pv-switcher-notice { margin: 2px 0 6px; padding: 6px 8px; border-radius: 8px; font-size: 11px; line-height: 1.35; color: var(--navfg2); background: var(--nav2); border: 1px solid var(--navline); }
.pv-switcher-name { font-size: 12.5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; }

/* The scrollbar is hidden so it never takes width: a classic (Windows) scrollbar appearing — e.g. when
   the footer notice shows on hover and the list gets shorter — would narrow the items and knock the
   icons out of line with the footer. Wheel/touch/keyboard scrolling still work; the edge shadows
   (local covers over scroll-attached shadows) appear only when there is more to scroll that way. */
.pv-navgroups {
  scrollbar-width: none; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column; gap: 6px; padding: 4px 10px;
  background:
    linear-gradient(var(--nav) 30%, transparent) top / 100% 24px no-repeat local,
    linear-gradient(transparent, var(--nav) 70%) bottom / 100% 24px no-repeat local,
    radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, .45), transparent) top / 100% 10px no-repeat scroll,
    radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, .45), transparent) bottom / 100% 10px no-repeat scroll;
}
.pv-navgroups::-webkit-scrollbar { display: none; }
.pv-navgroup { display: flex; flex-direction: column; gap: 2px; }
.pv-navgroup-title { position: relative; height: 26px; display: flex; align-items: center; padding: 0 10px; }
.pv-navgroup-title span { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navfg2); }
.pv-navgroup-title::after { content: ''; position: absolute; left: 14px; width: 16px; top: 13px; height: 1px; background: var(--navline); transition: opacity .18s ease; }
.pv-shell.nav-pinned .pv-navgroup-title::after, .pv-nav.is-hover .pv-navgroup-title::after { opacity: 0; }

.pv-navitem {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 42px; flex: none;
  border: 0; border-radius: 10px; padding: 0 13px; text-align: left; text-decoration: none;
  background: transparent; color: var(--navfg2);
  transition: background .15s ease, color .15s ease;
}
.pv-navitem:hover { background: var(--nav2); color: var(--navfg); }
.pv-navitem[aria-current="page"] { background: var(--nav3); color: var(--navfg); }
.pv-navitem[aria-current="page"] .pv-navitem-icon { color: var(--signal); }
.pv-navitem-icon { position: relative; width: 20px; height: 20px; flex: none; display: grid; place-items: center; }
.pv-navitem-dot { position: absolute; top: -3px; right: -4px; width: 7px; height: 7px; border-radius: 50%; border: 2px solid var(--nav); box-sizing: content-box; }
.pv-navitem-label { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.pv-navitem-badge { flex: none; font-family: var(--mono); font-size: 10.5px; font-weight: 500; padding: 2px 7px; border-radius: 20px; background: var(--nav3); color: var(--navfg); }
.pv-navitem-badge--alert { background: rgba(221, 68, 68, .2); color: #FF9A9A; }
.pv-navitem-badge--moving { background: rgba(34, 163, 90, .2); color: #7DDCA4; }

.pv-navfoot { flex: none; border-top: 1px solid var(--navline); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.pv-navfoot .pv-navitem { height: 40px; }
.pv-me { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.pv-me-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; height: 48px; padding: 0 8px; border-radius: 10px; color: var(--navfg); text-decoration: none; }
.pv-me-link:hover { background: var(--nav2); color: var(--navfg); }
.pv-me-link[aria-current="page"] { background: var(--nav3); }
.pv-me-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pv-me-name { font-size: 12.5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; }
.pv-me-role { font-size: 10.5px; color: var(--navfg2); overflow: hidden; text-overflow: ellipsis; }
.pv-signout { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 9px; border: 0; background: transparent; color: var(--navfg2); }
.pv-signout:hover { background: var(--nav2); color: var(--navfg); }

.pv-menu {
  position: absolute; top: 64px; left: 76px; width: 300px; z-index: 80;
  background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; gap: 2px;
  animation: pv-fade .14s ease;
  /* The shell clips overflow, so a long company list must scroll inside the menu rather than run off-screen. */
  max-height: calc(100vh - 64px - 12px); max-height: calc(100dvh - 64px - 12px);
  overflow-y: auto; overscroll-behavior: contain;
}
.pv-menu > * { flex-shrink: 0; }
.pv-shell.nav-pinned .pv-menu, .pv-nav.is-hover ~ .pv-menu { left: 248px; }
.pv-menu-title { padding: 8px 10px 6px; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fg3); }
.pv-menu-item { display: flex; align-items: center; gap: 10px; height: 40px; border: 0; border-radius: 9px; padding: 0 9px; text-align: left; background: transparent; color: var(--fg); text-decoration: none; }
.pv-menu-item:hover { background: var(--panel2); color: var(--fg); }
.pv-menu-item[aria-checked="true"] { background: var(--panel2); }
.pv-menu-item .pv-tick { opacity: 0; }
.pv-menu-item[aria-checked="true"] .pv-tick { opacity: 1; }
.pv-menu-badge { width: 28px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--panel3); font-family: var(--mono); font-size: 9.5px; font-weight: 600; color: var(--fg2); }
.pv-menu-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-menu-item:has(.pv-home-pill) .pv-menu-name { flex: 0 1 auto; min-width: 3.5em; }
.pv-home-pill { flex: none; margin-right: auto; padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 600; background: color-mix(in oklab, var(--moving) 15%, transparent); color: var(--moving-ink); }
.pv-menu-count { flex: none; font-family: var(--mono); font-size: 10.5px; color: var(--fg3); }
.pv-menu-sep { height: 1px; background: var(--line); margin: 4px 6px; }

.pv-main {
  flex: 1; min-width: 0; position: relative;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.pv-page { position: absolute; inset: 0; overflow-y: auto; background: var(--panel); animation: pv-fade .2s ease; }
.pv-page-inner { margin: 0; padding: 28px 28px 56px; display: flex; flex-direction: column; gap: 22px; }
.pv-page-inner--narrow { gap: 18px; }

/* "You're editing <company>" bar on settings pages that act on one company. */
.pv-context { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); }
.pv-context--other { border-color: color-mix(in srgb, var(--idling) 50%, var(--line)); background: color-mix(in srgb, var(--idling) 9%, var(--panel)); box-shadow: inset 4px 0 0 var(--idling); }
.pv-context--other .pv-context-label { color: var(--idling-ink); }
.pv-context-badge { width: 36px; height: 30px; border-radius: 8px; font-size: 10.5px; }
.pv-context-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 200px; }
.pv-context-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--fg3); }
.pv-context-name { font-size: 15px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-context-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pv-context-select { max-width: 420px; height: 36px; font-size: 14px; font-weight: 600; }

.pv-pagehead { display: flex; flex-direction: column; gap: 14px; }
.pv-pagehead-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.pv-h1 { font-size: 24px; font-weight: 650; letter-spacing: -.4px; }
.pv-h2 { font-size: 17px; font-weight: 650; }
.pv-h2--lg { font-size: 22px; letter-spacing: -.3px; }
.pv-h2--md { font-size: 19px; letter-spacing: -.2px; }
.pv-h3 { font-size: 14px; font-weight: 650; }
.pv-sub { font-size: 13px; color: var(--fg3); }
.pv-sub--sm { font-size: 12.5px; }
.pv-muted { color: var(--fg3); }
.pv-muted2 { color: var(--fg2); }
.pv-stack { display: flex; flex-direction: column; gap: 14px; }
.pv-stack--sm { gap: 8px; }
.pv-stack--lg { gap: 18px; }
.pv-stack--xs { gap: 2px; }
.pv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.pv-grow { flex: 1; min-width: 0; }
.pv-livetag { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--fg3); }

.pv-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.pv-tab {
  height: 42px; display: inline-flex; align-items: center; padding: 0 2px; margin: 0 22px -1px 0;
  border: 0; border-bottom: 2px solid transparent; background: transparent;
  color: var(--fg2); font-size: 13.5px; font-weight: 550; text-decoration: none;
}
.pv-tab:hover { color: var(--fg); }
.pv-tab[aria-current="page"], .pv-tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--fg); }

/* ── Buttons ───────────────────────────────────────────────────────────── */

.pv-btn {
  height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2);
  background: var(--panel); color: var(--fg); font-size: 13px; font-weight: 550;
  text-decoration: none; white-space: nowrap; transition: background .12s ease, border-color .12s ease, filter .12s ease;
}
.pv-btn:hover { background: var(--panel2); color: var(--fg); }
.pv-btn:disabled, .pv-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.pv-btn--primary { background: var(--signal); border-color: var(--signal); color: #121519; font-weight: 650; }
.pv-btn--primary:hover { background: var(--signal-hover); border-color: var(--signal-hover); color: #121519; }
.pv-btn--dark { background: var(--fg); border-color: var(--fg); color: var(--panel); font-weight: 600; }
.pv-btn--dark:hover { background: var(--fg); color: var(--panel); filter: brightness(1.15); }
.pv-btn--danger { background: var(--alert); border-color: var(--alert); color: #FFFFFF; font-weight: 600; }
.pv-btn--danger:hover { background: var(--alert); color: #FFF; filter: brightness(.95); }
.pv-btn--danger-outline { color: var(--alert-ink); border-color: color-mix(in oklab, var(--alert) 40%, transparent); }
.pv-btn--danger-outline:hover { color: var(--alert-ink); }
.pv-btn--ghost { border-color: transparent; background: transparent; color: var(--fg2); }
.pv-btn--ghost:hover { background: var(--panel2); color: var(--fg); }
.pv-btn--sm { height: 30px; padding: 0 10px; border-radius: 8px; font-size: 12px; }
.pv-btn--md { height: 38px; padding: 0 13px; font-size: 12.5px; }
.pv-btn--lg { height: 42px; padding: 0 18px; font-size: 13.5px; }
.pv-btn--xl { height: 48px; padding: 0 18px; border-radius: 12px; font-size: 14.5px; width: 100%; }
.pv-btn--block { width: 100%; }
.pv-btn--icon { width: 36px; height: 36px; padding: 0; border-color: var(--line); color: var(--fg2); }
.pv-btn--icon:hover { color: var(--fg); }
.pv-btn--muted { background: var(--panel3); border-color: var(--panel3); color: var(--fg3); }
.pv-btn--muted:hover { background: var(--panel3); color: var(--fg3); }
.pv-btn .pv-spinner { display: none; }
.pv-btn.is-loading .pv-spinner { display: inline-block; }
.pv-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(18, 21, 25, .25); border-top-color: #121519; animation: pv-spin .8s linear infinite; }

.pv-link {
  border: 0; background: transparent; padding: 0; color: var(--fg); font-weight: 550;
  text-decoration: underline; text-underline-offset: 2px; font-size: inherit;
}
.pv-link:hover { color: var(--fg2); }
.pv-link--muted { color: var(--fg2); }
form.pv-inline { display: inline; margin: 0; }

.pv-back {
  align-self: flex-start; height: 32px; display: inline-flex; align-items: center; gap: 6px;
  padding: 0 10px 0 6px; margin-left: -6px; border: 0; border-radius: 9px;
  background: transparent; color: var(--fg2); font-size: 12.5px; font-weight: 550; text-decoration: none;
}
.pv-back:hover { background: var(--panel2); color: var(--fg); }

/* ── Forms ─────────────────────────────────────────────────────────────── */

.pv-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pv-field--full { grid-column: 1 / -1; }
.pv-label { font-size: 12.5px; font-weight: 550; }
.pv-req { color: var(--alert-ink); }
.pv-tag { font-weight: 400; color: var(--fg3); }
.pv-input, .pv-select, .pv-textarea {
  height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line2);
  background: var(--panel2); color: var(--fg); font-size: 13.5px; outline: none; width: 100%;
}
.pv-input:focus, .pv-select:focus, .pv-textarea:focus { border-color: var(--fg3); }
.pv-select { padding: 0 10px; }
.pv-textarea { height: auto; padding: 10px 12px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; resize: vertical; }
.pv-input--mono { font-family: var(--mono); font-size: 13px; }
.pv-input:disabled, .pv-input[readonly].is-locked { background: var(--panel3); color: var(--fg3); }
.pv-input.input-validation-error, .pv-select.input-validation-error, .pv-textarea.input-validation-error, .pv-input[aria-invalid="true"] { border-color: var(--alert); }
.pv-field-error, .field-validation-error { font-size: 11.5px; color: var(--alert-ink); }
.field-validation-valid { display: none; }
.pv-help { font-size: 11.5px; line-height: 1.45; color: var(--fg3); }
.pv-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 16px; }
.pv-fields--wide { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.pv-input-wrap { position: relative; display: flex; }
.pv-input-wrap .pv-input { padding-right: 46px; }
.pv-input-btn { position: absolute; right: 3px; top: 3px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--fg2); }
.pv-input-btn:hover { background: var(--panel3); color: var(--fg); }

.pv-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; line-height: 1.45; }
.pv-check input[type="checkbox"], .pv-check input[type="radio"] { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--fg); }
.pv-check-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pv-check-label { font-weight: 550; }
.pv-check-hint { font-size: 12px; color: var(--fg3); font-weight: 400; }
.pv-check--mono .pv-check-label { font-family: var(--mono); font-size: 12px; }
.pv-checks { display: flex; flex-direction: column; gap: 10px; }

.pv-rules { margin: 0; padding: 12px 14px; list-style: none; display: flex; flex-direction: column; gap: 7px; border-radius: 11px; background: var(--panel2); }
.pv-rule { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--fg2); }
.pv-rule-mark { width: 16px; height: 16px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #AEB4BA; color: #FFFFFF; }
.pv-rule-mark svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pv-rule .pv-ok { display: none; }
.pv-rule.is-ok { color: var(--moving-ink); }
.pv-rule.is-ok .pv-rule-mark { background: var(--moving); }
.pv-rule.is-ok .pv-ok { display: block; }
.pv-rule.is-ok .pv-bad { display: none; }
.pv-rules.is-tried .pv-rule:not(.is-ok) { color: var(--alert-ink); }
.pv-rules.is-tried .pv-rule:not(.is-ok) .pv-rule-mark { background: var(--alert); }

.pv-validation-summary ul { margin: 0; padding-left: 18px; }
.validation-summary-valid { display: none; }

/* ── Cards, sections, tables ───────────────────────────────────────────── */

.pv-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); }
.pv-card--soft { background: var(--panel2); border-color: transparent; }
.pv-card--pad { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.pv-card--danger { border-color: color-mix(in oklab, var(--alert) 40%, transparent); }
.pv-card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.pv-card-head--col { flex-direction: column; align-items: stretch; gap: 2px; }
.pv-card-body { padding: 16px 18px; }
.pv-card-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.pv-card-note { padding: 12px 18px; font-size: 12px; line-height: 1.5; color: var(--fg3); }

.pv-dl { display: flex; flex-direction: column; }
.pv-dl-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.pv-dl-row:last-child { border-bottom: 0; }
.pv-dl-row dt { font-size: 12px; color: var(--fg3); }
.pv-dl-row dd { margin: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-kv { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.pv-kv:last-child { border-bottom: 0; }
.pv-kv span:first-child { color: var(--fg3); }
.pv-kv span:last-child { font-family: var(--mono); text-align: right; }

.pv-table-wrap { border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
.pv-table { width: 100%; border-collapse: collapse; }
.pv-table th {
  padding: 10px 18px; background: var(--panel2); border-bottom: 1px solid var(--line);
  font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fg3);
  text-align: left; white-space: nowrap;
}
.pv-table td { padding: 11px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13px; }
.pv-table tbody tr:last-child td { border-bottom: 0; }
.pv-table tr.is-clickable { cursor: pointer; }
.pv-table tr.is-clickable:hover td, .pv-table tr.is-hover td { background: var(--panel2); }
.pv-table .t-right { text-align: right; }
.pv-table .t-mono { font-family: var(--mono); }
.pv-table .t-strong { font-weight: 600; }
.pv-table .t-nowrap { white-space: nowrap; }
.pv-table .t-sub { display: block; font-size: 11.5px; color: var(--fg3); margin-top: 2px; }
.pv-table .t-ellipsis { max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-table-empty { padding: 32px 18px; text-align: center; font-size: 13px; color: var(--fg3); }
.pv-table-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--fg3); }
.pv-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.pv-rowlink { color: inherit; text-decoration: none; }
.pv-rowlink:hover { color: inherit; text-decoration: underline; }

.pv-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pv-avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--panel3); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--fg2); text-transform: uppercase; }
.pv-avatar--nav { background: var(--nav3); color: var(--navfg); }
.pv-person-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pv-person-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.pv-chip { height: 18px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 20px; background: var(--panel3); font-size: 10.5px; font-weight: 550; color: var(--fg2); }
.pv-chip--lg { height: 24px; padding: 0 9px; font-size: 11.5px; }

.pv-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 20px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  background: color-mix(in oklab, var(--stopped) 15%, transparent); color: var(--fg2);
}
.pv-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--stopped); }
.pv-pill--nodot::before { display: none; }
.pv-pill--moving { background: color-mix(in oklab, var(--moving) 15%, transparent); color: var(--moving-ink); }
.pv-pill--moving::before { background: var(--moving); }
.pv-pill--idling { background: color-mix(in oklab, var(--idling) 15%, transparent); color: var(--idling-ink); }
.pv-pill--idling::before { background: var(--idling); }
.pv-pill--alert { background: color-mix(in oklab, var(--alert) 15%, transparent); color: var(--alert-ink); }
.pv-pill--alert::before { background: var(--alert); }
.pv-pill--neutral { color: var(--fg); }
.pv-pill-sub { display: block; font-size: 11px; color: var(--fg3); margin-top: 3px; }

.pv-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--stopped-ink); }
.pv-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--stopped); }
.pv-status--moving { color: var(--moving-ink); } .pv-status--moving::before { background: var(--moving); }
.pv-status--idling { color: var(--idling-ink); } .pv-status--idling::before { background: var(--idling); }
.pv-status--offline { color: var(--alert-ink); } .pv-status--offline::before { background: var(--alert); }

.pv-banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--panel2); font-size: 12.5px; line-height: 1.5; color: var(--fg2); }
.pv-banner svg { width: 16px; height: 16px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pv-banner--info svg { color: var(--fg); }
.pv-banner--warn { background: color-mix(in oklab, var(--idling) 16%, transparent); color: var(--idling-ink); }
.pv-banner--danger { background: color-mix(in oklab, var(--alert) 15%, transparent); color: var(--alert-ink); }
/* asp-validation-summary="All" always renders its div (empty, marked valid) for client-side validation — keep it hidden until it has errors. */
.pv-banner.validation-summary-valid { display: none; }
.pv-banner--success { background: color-mix(in oklab, var(--moving) 14%, transparent); color: var(--moving-ink); }
.pv-banner ul { margin: 0; padding-left: 16px; }

.pv-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 12px; border-radius: 12px; background: var(--panel2); margin: 0; }
.pv-filters .pv-field { flex: 1 1 160px; min-width: 140px; gap: 5px; }
.pv-filters .pv-field--wide { flex: 2 1 220px; }
.pv-filters .pv-label { font-size: 11px; color: var(--fg3); }
.pv-filters .pv-input, .pv-filters .pv-select { height: 38px; border-radius: 9px; background: var(--panel); font-size: 13px; }

.pv-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.pv-kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--fg); text-decoration: none; }
.pv-kpi:hover { background: var(--panel2); color: var(--fg); }
.pv-kpi-label { font-size: 12px; color: var(--fg3); }
.pv-kpi-value { font-family: var(--mono); font-size: 28px; font-weight: 500; line-height: 1; }
.pv-kpi-sub { font-size: 11.5px; color: var(--fg3); }
.c-moving { color: var(--moving-ink); }
.c-idling { color: var(--idling-ink); }
.c-alert { color: var(--alert-ink); }
.c-muted { color: var(--fg2); }

.pv-split { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.pv-split-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pv-split-aside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pv-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; }
.pv-grid2--sm { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.pv-feedrow { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.pv-feedrow:last-child { border-bottom: 0; }
.pv-feedrow-when { font-family: var(--mono); font-size: 11.5px; color: var(--fg3); }
.pv-feedrow-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pv-feedrow-main span:first-child { font-size: 13px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-feedrow-main span:last-child { font-size: 11.5px; color: var(--fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pv-diff { margin: 0 18px 12px; padding: 10px 14px; border-radius: 10px; background: var(--panel2); display: flex; flex-direction: column; gap: 6px; animation: pv-fade .15s ease; }
.pv-diff-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 16px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 12.5px; }
.pv-diff-field { font-family: var(--mono); color: var(--fg2); }
.pv-diff-old { font-family: var(--mono); color: var(--alert-ink); text-decoration: line-through; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-diff-new { font-family: var(--mono); color: var(--moving-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-diff-pii { font-size: 10.5px; font-weight: 600; color: var(--fg3); }
.pv-toggle { display: flex; align-items: center; gap: 8px; max-width: 100%; border: 0; background: transparent; padding: 0; color: var(--fg); text-align: left; }
.pv-toggle svg { flex: none; transition: transform .15s ease; color: var(--fg3); }
.pv-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }

.pv-pager { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.pv-pager a, .pv-pager span { min-width: 30px; height: 30px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--line2); font-family: var(--mono); font-size: 12px; text-decoration: none; color: var(--fg); }
.pv-pager a:hover { background: var(--panel2); }
.pv-pager .is-current { background: var(--fg); color: var(--panel); border-color: var(--fg); }

.pv-toast-host { position: fixed; left: 50%; top: 22px; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.pv-toast {
  display: flex; align-items: center; gap: 9px; padding: 10px 14px; background: var(--nav); color: #ECEFF2;
  border-radius: 12px; box-shadow: var(--shadow); font-size: 12.5px; animation: pv-fade .16s ease; max-width: min(560px, 92vw);
}
.pv-toast::before { content: ''; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--signal); }
.pv-toast--error::before { background: var(--alert); }

.pv-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pv-code { font-family: var(--mono); font-size: 13.5px; letter-spacing: .06em; padding: 7px 10px; border-radius: 8px; background: var(--panel2); text-align: center; }

.pv-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pv-step { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 550; color: var(--fg3); }
.pv-step-num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 600; background: var(--panel3); color: var(--fg2); }
.pv-step-line { width: 28px; height: 1px; background: var(--line2); }
.pv-step:last-child .pv-step-line { display: none; }
.pv-step[aria-current="step"] { color: var(--fg); }
.pv-step[aria-current="step"] .pv-step-num { background: var(--fg); color: var(--panel); }
.pv-step.is-done { color: var(--fg2); }
.pv-step.is-done .pv-step-num { background: var(--signal); color: #121519; }

.pv-numlist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pv-numlist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 12.5px; line-height: 1.45; color: var(--fg2); }
.pv-numlist li > span:first-child { width: 22px; height: 22px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; font-family: var(--mono); font-size: 10.5px; color: var(--fg); }

.pv-option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.pv-option-grid--sm { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.pv-option { position: relative; display: block; cursor: pointer; }
.pv-option input { position: absolute; opacity: 0; pointer-events: none; }
.pv-option-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--line2); background: var(--panel); color: var(--fg); height: 100%;
}
.pv-option-title { display: flex; align-items: center; gap: 8px; width: 100%; font-size: 13.5px; font-weight: 600; }
.pv-option-radio { margin-left: auto; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line2); flex: none; }
.pv-option-hint { font-size: 12px; color: var(--fg3); }
.pv-option input:checked + .pv-option-card { border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); background: var(--panel2); }
.pv-option input:checked + .pv-option-card .pv-option-radio { border: 5px solid var(--fg); }
.pv-option input:focus-visible + .pv-option-card { outline: 2px solid var(--focus); outline-offset: 2px; }

.pv-soon { position: absolute; inset: 0; display: grid; place-items: center; background: var(--panel); animation: pv-fade .2s ease; }
.pv-soon-inner { max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 24px; }
.pv-soon-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--panel2); display: grid; place-items: center; color: var(--fg2); }
.pv-soon-icon svg { width: 24px; height: 24px; }

/* ── Auth (sign-in) layout ─────────────────────────────────────────────── */

.pv-auth { min-height: 100vh; padding: 10px; display: flex; flex-wrap: wrap; gap: 10px; background: #E9EBE6; color: #14171B; }
html[data-theme="dark"] .pv-auth { background: var(--bg); color: var(--fg); }
.pv-auth-brand {
  flex: 1 1 480px; min-height: 380px; position: relative; overflow: hidden; border-radius: 16px;
  background: #121519; color: #ECEFF2; display: flex; flex-direction: column; justify-content: space-between; padding: 36px 40px;
}
.pv-auth-brand > svg.pv-auth-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-auth-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 21, 25, 0) 40%, rgba(18, 21, 25, .85) 100%); }
.pv-auth-logo { position: relative; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.pv-auth-logo:hover { color: inherit; }
.pv-auth-logo .pv-logo { width: 40px; height: 40px; border-radius: 11px; }
.pv-auth-logo .pv-logo svg { width: 22px; height: 22px; }
.pv-auth-logo span:last-child { font-size: 18px; font-weight: 650; letter-spacing: -.3px; }
.pv-auth-tagline { position: relative; display: flex; flex-direction: column; gap: 20px; max-width: 460px; }
.pv-auth-tagline h1 { font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -.5px; }
.pv-auth-tagline p { font-size: 14.5px; line-height: 1.55; color: #9BA4AE; max-width: 380px; }

.pv-auth-main {
  flex: 1 1 460px; min-width: 0; border-radius: 16px; background: var(--panel); border: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 24px 32px;
}
.pv-auth-top { display: flex; justify-content: flex-end; align-items: center; gap: 6px; min-height: 34px; font-size: 13px; color: var(--fg2); }
.pv-auth-top a { font-weight: 600; padding: 6px 4px; }
.pv-auth-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 28px 0; }
.pv-auth-body { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 22px; }
.pv-auth-body--wide { max-width: 440px; }
.pv-auth-head { display: flex; flex-direction: column; gap: 8px; animation: pv-in .24s ease; }
.pv-auth-head h2 { font-size: 28px; font-weight: 650; letter-spacing: -.6px; text-wrap: balance; }
.pv-auth-head p { font-size: 14px; line-height: 1.55; color: var(--fg2); }
.pv-auth-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 12px; color: var(--fg3); }
.pv-auth-foot a { color: var(--fg2); }
.pv-auth-status { margin-left: auto; display: flex; align-items: center; gap: 7px; font-family: var(--mono); }
.pv-auth-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--panel2); color: var(--fg); animation: pv-in .24s ease; }
.pv-auth-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pv-auth-icon--danger { background: #FDECEC; color: #B02222; }
.pv-auth-icon--success { background: #E6F4EC; color: #12703D; }
.pv-auth-icon--warn { background: #FFF4DE; color: #875300; }
html[data-theme="dark"] .pv-auth-icon--danger { background: color-mix(in oklab, var(--alert) 18%, transparent); color: var(--alert-ink); }
html[data-theme="dark"] .pv-auth-icon--success { background: color-mix(in oklab, var(--moving) 18%, transparent); color: var(--moving-ink); }
html[data-theme="dark"] .pv-auth-icon--warn { background: color-mix(in oklab, var(--idling) 18%, transparent); color: var(--idling-ink); }
.pv-auth-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.pv-auth-form .pv-field { gap: 7px; }
.pv-auth-form .pv-label { font-size: 13px; }
.pv-auth-form .pv-input { height: 46px; padding: 0 14px; border-radius: 11px; font-size: 14px; border-color: rgba(17, 20, 24, .16); }
html[data-theme="dark"] .pv-auth-form .pv-input { border-color: var(--line2); }
.pv-auth-form .pv-input-wrap .pv-input { padding-right: 48px; }
.pv-auth-form .pv-input-btn { right: 4px; top: 4px; width: 38px; height: 38px; }
.pv-auth-form .pv-field-error { font-size: 12px; }
.pv-auth-form .pv-check { font-size: 13.5px; color: var(--fg2); align-items: center; min-height: 28px; }
.pv-input--code { height: 56px !important; font-family: var(--mono); font-size: 24px !important; letter-spacing: .5em; padding: 0 16px !important; border-radius: 12px !important; }
.pv-input--recovery { height: 50px !important; font-family: var(--mono); font-size: 18px !important; letter-spacing: .12em; text-transform: uppercase; border-radius: 12px !important; }
.pv-or { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--fg3); }
.pv-or::before, .pv-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pv-auth-note { text-align: center; font-size: 12.5px; color: var(--fg3); }
.pv-auth-back { margin: 0 0 -8px -6px; font-size: 13px; }
.pv-alert-box { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 10px; background: #FDECEC; color: #8F1C1C; font-size: 13px; line-height: 1.45; }
.pv-alert-box svg { width: 16px; height: 16px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pv-alert-box--info { background: var(--panel2); color: var(--fg2); }
.pv-alert-box--success { background: #E6F4EC; color: #12703D; }
html[data-theme="dark"] .pv-alert-box { background: color-mix(in oklab, var(--alert) 18%, transparent); color: var(--alert-ink); }
html[data-theme="dark"] .pv-alert-box--info { background: var(--panel2); color: var(--fg2); }
html[data-theme="dark"] .pv-alert-box--success { background: color-mix(in oklab, var(--moving) 18%, transparent); color: var(--moving-ink); }
.pv-alert-box ul { margin: 0; padding-left: 16px; }
.pv-alert-box.validation-summary-valid { display: none; }

.pv-enrol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.pv-enrol > li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.pv-enrol-num { width: 26px; height: 26px; border-radius: 50%; background: var(--fg); color: var(--panel); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; }
.pv-enrol-body { display: flex; flex-direction: column; gap: 6px; padding-top: 3px; }
.pv-enrol-title { font-size: 13.5px; font-weight: 600; }
.pv-enrol-text { font-size: 12.5px; line-height: 1.5; color: var(--fg2); }
.pv-qr { flex: none; width: 132px; height: 132px; padding: 8px; border-radius: 12px; background: #FFFFFF; border: 1px solid rgba(17, 20, 24, .12); }
.pv-qr svg { width: 100%; height: 100%; display: block; }
.pv-setup-key { font-family: var(--mono); font-size: 13px; line-height: 1.6; letter-spacing: .06em; padding: 8px 10px; border-radius: 8px; background: var(--panel2); word-break: break-all; }
.pv-codegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 14px; border-radius: 12px; background: var(--panel2); }
.pv-codegrid code { font-size: 14px; letter-spacing: .06em; padding: 6px 8px; border-radius: 7px; background: var(--panel); text-align: center; }

/* ── Not found (404) ───────────────────────────────────────────────────── */

.pv-404 {
  --road: rgba(17, 20, 24, .055); --trail: var(--fg); --ghost: var(--idling);
  position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column; background: var(--bg); color: var(--fg);
}
html[data-theme="dark"] .pv-404 { --road: rgba(255, 255, 255, .045); --trail: var(--signal); }
.pv-404-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pv-404-roads path { stroke: var(--road); }
.pv-404-trail { stroke: var(--trail); opacity: .55; }
.pv-404-trail--lost { opacity: .4; animation: pv-dash 9s linear infinite; }
.pv-404-start { stroke: var(--moving); }
.pv-404-lastfix { fill: var(--trail); opacity: .7; }
.pv-404-ghost { color: var(--ghost); }
.pv-404-ghost circle { stroke: currentColor; }
.pv-404-ghost-ring { fill: color-mix(in oklab, var(--ghost) 22%, transparent); stroke: none !important;
  transform-box: fill-box; transform-origin: center; animation: pv-pulse 2.8s ease-out infinite; }
.pv-404-shade { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, var(--bg) 25%, color-mix(in oklab, var(--bg) 40%, transparent) 70%, transparent 100%); }

.pv-404-top, .pv-404-main, .pv-404-foot { position: relative; }
.pv-404-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; }
.pv-404-logo { color: var(--fg); }
.pv-404-logo:hover { color: var(--fg); }
.pv-404-theme { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line); background: color-mix(in oklab, var(--panel) 70%, transparent); color: var(--fg2); backdrop-filter: blur(8px); }
.pv-404-theme:hover { color: var(--fg); background: var(--panel); }

.pv-404-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 12px 16px 32px; }
.pv-404-card {
  width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 14px;
  padding: 32px; border-radius: 22px; border: 1px solid var(--line);
  background: color-mix(in oklab, var(--panel) 82%, transparent); backdrop-filter: blur(14px);
  box-shadow: var(--shadow); animation: pv-in .32s ease;
}

.pv-404-code { display: flex; align-items: center; gap: 4px; margin-bottom: 6px;
  font: 600 76px/1 var(--mono); letter-spacing: -4px; color: var(--fg); }
.pv-404-pin { position: relative; width: 66px; height: 66px; margin: 0 4px; display: grid; place-items: center; color: var(--ghost); }
.pv-404-pin svg { position: relative; width: 100%; height: 100%; }
.pv-404-pin svg circle { stroke: currentColor; }
.pv-404-pin svg circle:last-child { fill: currentColor; stroke: none; }
.pv-404-pin-pulse { position: absolute; inset: 8px; border-radius: 50%; background: color-mix(in oklab, var(--ghost) 30%, transparent);
  animation: pv-pulse 2.4s ease-out infinite; }

.pv-404-kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 11px/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase; color: var(--idling-ink); }
.pv-404-blink { width: 7px; height: 7px; border-radius: 50%; background: var(--idling); animation: pv-blink 1.2s ease-in-out infinite; }
.pv-404-card h1 { font-size: 30px; line-height: 1.12; font-weight: 650; letter-spacing: -.7px; text-wrap: balance; }
.pv-404-lede { font-size: 14.5px; line-height: 1.55; color: var(--fg2); text-wrap: pretty; }

.pv-404-readout { margin: 6px 0 4px; padding: 4px 14px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.pv-404-readout > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 9px 0; }
.pv-404-readout > div + div { border-top: 1px dashed var(--line2); }
.pv-404-readout dt { font: 500 10.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg3); }
.pv-404-readout dd { margin: 0; font: 400 12.5px/1.4 var(--mono); color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-404-status { display: inline-block; padding: 1px 6px; margin-right: 4px; border-radius: 5px; font-weight: 600;
  background: color-mix(in oklab, var(--idling) 18%, transparent); color: var(--idling-ink); }

.pv-404-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.pv-404-actions .pv-btn { flex: 1 1 180px; width: auto; gap: 8px; }

.pv-404-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px;
  padding: 18px 28px 22px; font-size: 12px; color: var(--fg3); }
.pv-404-links { display: flex; gap: 16px; }
.pv-404-links a { color: var(--fg2); }

@media (max-width: 560px) {
  .pv-404-top { padding: 16px; }
  .pv-404-foot { padding: 16px; }
  .pv-404-card { padding: 24px 20px; border-radius: 18px; }
  .pv-404-code { font-size: 60px; }
  .pv-404-pin { width: 52px; height: 52px; }
  .pv-404-card h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .pv-404 *, .pv-404 *::before { animation: none !important; }
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 820px) {
  .pv-shell { padding: 8px; gap: 8px; }
  .pv-page-inner { padding: 20px 16px 40px; }
  .pv-auth-main { padding: 20px 18px; }
  .pv-auth-brand { padding: 24px; min-height: 220px; flex-basis: 100%; }
  .pv-grid2, .pv-grid2--sm { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pv-shell.nav-pinned .pv-navslot { width: 68px; }
  .pv-shell.nav-pinned .pv-nav:not(.is-hover) { width: 68px; }
  .pv-shell.nav-pinned .pv-nav:not(.is-hover) .pv-fade { opacity: 0; }
  .pv-shell.nav-pinned .pv-nav:not(.is-hover) .pv-switcher-notice.pv-fade { display: none; }
}
.pv-pager .is-gap { border-color: transparent; color: var(--fg3); }
