@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/outfit-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/outfit-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/outfit-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/outfit-latin-700.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jbmono-latin-500.woff2") format("woff2"); }

@view-transition { navigation: auto; }

:root {
  color-scheme: dark;
  --bg: #05070f; --bg2: #080b14;
  --surface: #0b0f17; --surface2: #111722; --surface3: #172030;
  --text: #e8edf5; --text2: #8696aa; --text3: #4d5d72;
  --neon: #00d4ff; --neon2: #00b4dc; --neon-ink: #03141c;
  --neon-glow: rgba(0, 212, 255, .12); --neon-glow2: rgba(0, 212, 255, .05); --neon-line: rgba(0, 212, 255, .32);
  --green: #00e676; --green-bg: rgba(0, 230, 118, .08); --green-line: rgba(0, 230, 118, .24);
  --red: #ff4757; --red-bg: rgba(255, 71, 87, .08); --red-line: rgba(255, 71, 87, .24);
  --orange: #ffa502; --orange-bg: rgba(255, 165, 2, .08); --orange-line: rgba(255, 165, 2, .22);
  --purple: #a855f7; --accent: #ff6b35;
  --border: rgba(255, 255, 255, .075); --border2: rgba(255, 255, 255, .12); --border3: rgba(255, 255, 255, .2);

  --r-xs: 9px; --r-sm: 14px; --r: 18px; --r-lg: 22px; --r-xl: 28px;
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring-lg: cubic-bezier(.34, 1.56, .64, 1);
  --spring: cubic-bezier(.34, 1.36, .64, 1);
  --spring-b: cubic-bezier(.34, 1.7, .64, 1);
  --spring-s: cubic-bezier(.22, 1, .36, 1);
  --d-spring: .45s; --d-spring-b: .8s; --d-spring-s: .7s;

  --topbar-h: 60px;
  --wrap: 1200px;

  --card: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012) 40%), color-mix(in srgb, var(--surface) 72%, transparent);
  --card-sh: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 40px -28px rgba(0, 0, 0, .75);
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025) 55%, rgba(255, 255, 255, .04)), color-mix(in srgb, var(--surface2) 78%, transparent);
  --glass-thick: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)), color-mix(in srgb, var(--surface) 96%, transparent);
  --glass-brd: rgba(255, 255, 255, .1);
  --glass-sh: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(255, 255, 255, .05), inset 0 0 18px -6px rgba(255, 255, 255, .12), 0 18px 46px -18px rgba(0, 0, 0, .75);
  --glass-blur: blur(24px) saturate(170%) brightness(.96);
  --track: linear-gradient(180deg, rgba(0, 0, 0, .16), rgba(255, 255, 255, .03));
  --track-sh: inset 0 1px 2px rgba(0, 0, 0, .3), inset 0 -1px 0 rgba(255, 255, 255, .06);
  --drop: linear-gradient(180deg, color-mix(in srgb, var(--neon) 78%, #fff) 0%, var(--neon) 50%, color-mix(in srgb, var(--neon) 86%, #06303c) 100%);
  --drop-sh: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 1px rgba(0, 0, 0, .18), 0 1px 3px rgba(0, 0, 0, .3);
  --act-sh: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 1px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(255, 255, 255, .12), 0 1px 2px rgba(0, 0, 0, .35), 0 6px 16px -8px color-mix(in srgb, var(--neon) 55%, transparent);
  --ghost: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
  --ghost-h: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
  --ghost-sh: inset 0 1px 0 rgba(255, 255, 255, .12), 0 6px 18px -12px rgba(0, 0, 0, .7);
  --field: linear-gradient(180deg, rgba(0, 0, 0, .14), rgba(255, 255, 255, .02)), color-mix(in srgb, var(--surface) 72%, transparent);
  --field-sh: inset 0 1px 2px rgba(0, 0, 0, .28), inset 0 -1px 0 rgba(255, 255, 255, .05);
  --lens: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04) 50%, rgba(255, 255, 255, .1)), color-mix(in srgb, var(--surface3) 96%, #fff);
  --lens-sh: inset 0 1.5px 1px rgba(255, 255, 255, .55), inset 0 -2px 6px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .2), inset 0 0 12px rgba(0, 212, 255, .12), 0 10px 24px -8px rgba(0, 0, 0, .6), 0 0 0 .5px rgba(255, 255, 255, .12);
  --veil: rgba(3, 6, 12, .62);

  --sim-msfs2024: #36b6ff; --sim-msfs2020: #ffa502; --sim-both: #2dd4bf;
  --sim-xplane12: #ff6b9a; --sim-xplane11: #c084fc; --sim-xplane-both: #8b7bff;
}

html.light {
  color-scheme: light;
  --bg: #f2f5f9; --bg2: #eaeff5;
  --surface: #fff; --surface2: #f3f6fa; --surface3: #e8eef5;
  --text: #121a26; --text2: #536175; --text3: #9aa7b8;
  --neon: #0091d5; --neon2: #0079b3; --neon-ink: #fff;
  --neon-glow: rgba(0, 145, 213, .12); --neon-glow2: rgba(0, 145, 213, .05); --neon-line: rgba(0, 145, 213, .32);
  --green: #00a854; --green-bg: rgba(0, 168, 84, .08); --green-line: rgba(0, 168, 84, .24);
  --red: #e5364a; --red-bg: rgba(229, 54, 74, .08); --red-line: rgba(229, 54, 74, .24);
  --orange: #d98a00; --orange-bg: rgba(217, 138, 0, .09); --orange-line: rgba(217, 138, 0, .24);
  --border: rgba(20, 40, 70, .08); --border2: rgba(20, 40, 70, .13); --border3: rgba(20, 40, 70, .22);

  --card: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .72)), rgba(255, 255, 255, .7);
  --card-sh: inset 0 1px 0 #fff, 0 1px 2px rgba(16, 30, 54, .05), 0 18px 40px -28px rgba(16, 30, 54, .3);
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .58)), rgba(255, 255, 255, .5);
  --glass-thick: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .9)), #fff;
  --glass-brd: rgba(255, 255, 255, .9);
  --glass-sh: inset 0 1px 0 #fff, inset 0 0 18px -6px rgba(255, 255, 255, .9), 0 0 0 1px rgba(20, 40, 70, .06), 0 18px 46px -18px rgba(16, 30, 54, .28);
  --glass-blur: blur(24px) saturate(180%);
  --track: linear-gradient(180deg, rgba(20, 40, 70, .07), rgba(20, 40, 70, .03));
  --track-sh: inset 0 1px 2px rgba(20, 40, 70, .12), inset 0 -1px 0 rgba(255, 255, 255, .8);
  --drop: linear-gradient(180deg, #0f93d6 0%, #0082c2 50%, #0070a8 100%);
  --drop-sh: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 1px rgba(0, 0, 0, .14), 0 1px 3px rgba(16, 30, 54, .25);
  --act-sh: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 1px rgba(0, 0, 0, .14), 0 1px 2px rgba(16, 30, 54, .2), 0 6px 16px -8px color-mix(in srgb, var(--neon) 60%, transparent);
  --ghost: linear-gradient(180deg, #fff, rgba(255, 255, 255, .7));
  --ghost-h: linear-gradient(180deg, #fff, #fff);
  --ghost-sh: inset 0 1px 0 #fff, 0 1px 2px rgba(16, 30, 54, .06), 0 6px 18px -12px rgba(16, 30, 54, .3);
  --field: linear-gradient(180deg, rgba(20, 40, 70, .05), rgba(255, 255, 255, .6)), #fff;
  --field-sh: inset 0 1px 2px rgba(20, 40, 70, .1);
  --lens: linear-gradient(180deg, #fff, rgba(255, 255, 255, .86)), #fff;
  --lens-sh: inset 0 1.5px 1px #fff, inset 0 -2px 6px rgba(20, 40, 70, .1), inset 0 0 0 1px rgba(255, 255, 255, .9), 0 10px 24px -8px rgba(16, 30, 54, .35), 0 0 0 .5px rgba(20, 40, 70, .12);
  --veil: rgba(18, 26, 38, .34);

  --sim-msfs2024: #0a85d6; --sim-msfs2020: #d98a00; --sim-both: #0d9488;
  --sim-xplane12: #d6336c; --sim-xplane11: #9c36b5; --sim-xplane-both: #6741d9;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, .0455, .1514, .2915, .4374, .5804, .705, .8117, .8962, .9581, 1.0026, 1.0306, 1.0466, 1.053, 1.0528, 1.0483, 1.0416, 1.0337, 1.026, 1.0187, 1.0126, 1.0075, 1.0037, 1.0009, .999, .9978, .9973, .9971, .9973, .9976, 1);
    --spring-b: linear(0, .0297, .1069, .2166, .3455, .4822, .6172, .7435, .8559, .9513, 1.0282, 1.0863, 1.1267, 1.151, 1.1615, 1.1607, 1.1511, 1.1352, 1.1153, 1.0934, 1.0712, 1.05, 1.0307, 1.014, 1.0003, .9896, .9818, .9768, .9742, .9736, .9747, .9769, .9799, .9833, .9869, .9905, .9937, .9966, .9991, 1.001, 1);
    --spring-s: linear(0, .0513, .1619, .2889, .4162, .531, .6293, .7107, .7754, .8279, .8691, .901, .9255, .9438, .9581, .9688, .9768, .9828, .9873, .9906, .9931, .9949, .9963, .9973, 1);
  }
}

*, *::before, *::after { box-sizing: border-box; }
:where(html) {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  background: var(--bg); color: var(--text);
  font-family: var(--font);
  scroll-padding-top: calc(var(--topbar-h) + 32px);
}
:where(body) {
  margin: 0; min-height: 100dvh;
  background: var(--bg); color: var(--text);
  font-size: 15px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
:where(h1, h2, h3, h4) { margin: 0; font-weight: 700; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
:where(p) { margin: 0; text-wrap: pretty; }
:where(ul, ol) { margin: 0; padding: 0; }
:where(a) { color: inherit; text-decoration: none; }
:where(img) { display: block; max-width: 100%; height: auto; }
:where(svg) { flex: none; }
:where(button, input, select, textarea) { font: inherit; color: inherit; letter-spacing: inherit; }
:where(button) { cursor: pointer; background: none; border: 0; padding: 0; }
:where(code, kbd, pre) { font-family: var(--mono); font-size: .88em; }
:where(table) { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
:where(th) { font: 500 10.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text3); text-align: left; padding: 10px 12px; }
:where(td) { padding: 12px; border-top: 1px solid var(--border); }
@media (hover: hover) { :where(tbody tr:hover) { background: var(--neon-glow2); } }
::selection { background: color-mix(in srgb, var(--neon) 30%, transparent); }
:where(:focus-visible) { outline: 2px solid var(--neon); outline-offset: 2px; }
:where([hidden]) { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tnum { font-variant-numeric: tabular-nums; }

:where(.vd-label, .section-tag, .stat-label, .lbl) {
  font: 500 10.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text3);
}

:where(.card, .vd-card) { background: var(--card); box-shadow: var(--card-sh); border: 1px solid var(--border); border-radius: var(--r-lg); }

.glass {
  position: relative; isolation: isolate; border: 1px solid var(--glass-brd); background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-sh);
  transition: box-shadow .42s var(--ease), background-color .42s;
}
.glass::before, [data-vd-spot]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(28rem circle at var(--mx, 30%) var(--my, -40%), rgba(255, 255, 255, .1), transparent 55%);
}
[data-vd-spot] { position: relative; isolation: isolate; }
html.light .glass::before, html.light [data-vd-spot]::before { display: none; }
.glass[data-glow], body > .topbar[data-glow] { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(255, 255, 255, .07), inset 0 0 18px -6px rgba(255, 255, 255, .16), 0 18px 46px -18px rgba(0, 0, 0, .75); }
html.light .glass[data-glow], html.light body > .topbar[data-glow] { box-shadow: var(--glass-sh); }

:where(.btn-sm, .back-btn, .link-btn, .btn-ghost, .btn-cancel, .act-btn, .btn-neon, .btn-primary, .btn-danger) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; white-space: nowrap; line-height: 1; cursor: pointer;
  border: 1px solid var(--glass-brd); background: var(--ghost); box-shadow: var(--ghost-sh); color: var(--text);
  transition: background .25s var(--ease), border-color .25s var(--ease), filter .25s var(--ease), color .25s var(--ease);
  -webkit-user-select: none; user-select: none;
}
:where(.icon-btn) {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; flex: none;
  border: 1px solid var(--glass-brd); background: var(--ghost); box-shadow: var(--ghost-sh); color: var(--text);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
:where(.icon-btn svg) { transition: transform .5s var(--spring-lg); }
@media (hover: hover) {
  :where(.btn-sm, .back-btn, .link-btn, .btn-ghost, .btn-cancel, .act-btn, .icon-btn):hover { background: var(--ghost-h); border-color: var(--border3); }
  :where(.icon-btn):hover svg { transform: rotate(-24deg); }
}
:where(.btn-sm.primary, .btn-neon, .btn-primary) {
  border: 0; background: var(--drop); box-shadow: var(--act-sh); color: var(--neon-ink); font-weight: 600;
}
@media (hover: hover) { :where(.btn-sm.primary, .btn-neon, .btn-primary):hover { filter: brightness(1.06) saturate(1.05); background: var(--drop); } }
:where(.btn-danger, .btn-sm.danger) { background: var(--red-bg); border-color: var(--red-line); color: var(--red); box-shadow: none; }
@media (hover: hover) { :where(.btn-danger, .btn-sm.danger):hover { background: color-mix(in srgb, var(--red) 16%, transparent); border-color: var(--red-line); } }
:where(.act-btn.prim) { color: var(--neon); } :where(.act-btn.success) { color: var(--green); }
:where(.act-btn.warn) { color: var(--orange); } :where(.act-btn.danger) { color: var(--red); }
:where(button:disabled, .is-disabled) { opacity: .5; cursor: not-allowed; filter: none; }

:where(.field) { display: grid; gap: 7px; min-width: 0; }
:where(.field > label) { font-size: 13px; font-weight: 500; color: var(--text2); }
:where(.field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea, .vd-input) {
  width: 100%; min-height: 42px; padding: 10px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--border2); background: var(--field); box-shadow: var(--field-sh); color: var(--text);
  font-size: 14px; outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
:where(.field textarea) { resize: vertical; line-height: 1.5; }
:where(.field input, .field select, .field textarea, .vd-input):focus { border-color: var(--neon-line); box-shadow: var(--field-sh), 0 0 0 3px color-mix(in srgb, var(--neon) 14%, transparent); }
::placeholder { color: var(--text3); opacity: 1; }
:where(.search-input, .sbox input) { border-radius: 999px !important; }

:where(input[type=checkbox]:not(.vd-native)) {
  -webkit-appearance: none; appearance: none; margin: 0; flex: none; cursor: pointer;
  width: 20px; height: 20px; border-radius: 7px; position: relative; display: inline-grid; place-items: center;
  border: 1px solid var(--border3); background: var(--field); box-shadow: var(--field-sh);
  transition: background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
:where(input[type=checkbox]:not(.vd-native))::after {
  content: ""; width: 10px; height: 5.5px; margin-top: -2px;
  border: solid var(--neon-ink); border-width: 0 0 2.2px 2.2px; transform: rotate(-45deg) scale(0); opacity: 0;
  transition: transform .2s var(--ease), opacity .15s var(--ease);
}
:where(input[type=checkbox]:not(.vd-native)):checked { background: var(--drop); border-color: transparent; box-shadow: var(--drop-sh); }
:where(input[type=checkbox]:not(.vd-native)):checked::after { transform: rotate(-45deg) scale(1); opacity: 1; transition: transform var(--d-spring-b) var(--spring-b), opacity .12s var(--ease); }
:where(input[type=checkbox]:not(.vd-native)):focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }

:where(.pill, .badge, .status-badge) {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; border: 1px solid var(--border2); background: var(--ghost); color: var(--text2);
  white-space: nowrap;
}
:where(.status-badge.active) { color: var(--green); background: var(--green-bg); border-color: var(--green-line); }
:where(.status-badge.inactive) { color: var(--red); background: var(--red-bg); border-color: var(--red-line); }

:where(.msg) { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-sm); font-size: 13.5px; border: 1px solid; }
:where(.msg.err) { color: var(--red); background: var(--red-bg); border-color: var(--red-line); }
:where(.msg.ok) { color: var(--green); background: var(--green-bg); border-color: var(--green-line); }
:where(.msg.warn) { color: var(--orange); background: var(--orange-bg); border-color: var(--orange-line); }

:where(.skel) { position: relative; overflow: hidden; background: var(--surface2); border-radius: var(--r-xs); }
:where(.skel)::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); animation: vd-shimmer 1.4s var(--ease-io) infinite; }
:where(.spin) { width: 15px; height: 15px; border-radius: 999px; border: 2px solid currentColor; border-right-color: transparent; animation: vd-spin .7s linear infinite; flex: none; }
:where(.spinner) { width: 34px; height: 34px; border-radius: 999px; border: 3px solid var(--border2); border-top-color: var(--neon); animation: vd-spin .7s linear infinite; }

:where(.topbar) {
  position: sticky; top: 12px; z-index: 900;
  margin: 12px 12px 0; height: var(--topbar-h); border-radius: 30px;
  display: flex; align-items: center; gap: 14px; padding: 0 10px 0 14px;
  background: var(--glass-bg); border: 1px solid var(--glass-brd); box-shadow: var(--glass-sh);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
:where(.topbar .logo) { display: flex; align-items: center; gap: 10px; flex: none; }
:where(.topbar-right) { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.vd-edge {
  position: fixed; inset: 0 0 auto; height: calc(var(--topbar-h) + 30px); z-index: 800; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 45%, transparent);
}

:where(.vd-foot) { text-align: center; color: var(--text3); font-size: 12.5px; }

:where(.overlay) {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 24px; background-color: var(--veil);
}
:where(.modal) {
  position: relative; width: 100%; max-width: 440px; max-height: min(86vh, 860px); overflow: auto;
  padding: 26px; border-radius: var(--r-xl);
  background: var(--glass-thick); border: 1px solid var(--glass-brd); box-shadow: var(--glass-sh);
  overscroll-behavior: contain;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
:where(.modal-title) { font-size: 19px; font-weight: 700; letter-spacing: -.025em; margin-bottom: 8px; }
:where(.modal-text) { color: var(--text2); font-size: 14px; }
:where(.modal-actions) { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
:root .overlay, :root .overlay.vd-closing { opacity: 1; transition: background-color .3s var(--ease), visibility 0s linear .32s; }
:root .overlay.on, :root .overlay.open { visibility: visible; transition: background-color .3s var(--ease), visibility 0s; }
:root .overlay:not(.on):not(.open) { background-color: transparent !important; }
:root .overlay:not(.on):not(.open):not(.vd-closing) { visibility: hidden; pointer-events: none; }
:root .overlay:not(.on):not(.open) .modal { pointer-events: none; }
.modal.vd-morphing { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: transparent !important; border-color: transparent !important; box-shadow: none !important; overflow: hidden; }
.vd-ghost { position: fixed; left: 0; top: 0; transform-origin: 0 0; contain: strict; pointer-events: none; will-change: transform; }
.vd-grab { display: none; }
body.vd-locked { overflow: hidden; }

:where(.toasts) {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 1100;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none;
}
.toast {
  pointer-events: auto; max-width: min(380px, calc(100vw - 36px));
  padding: 11px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--text);
  border: 1px solid var(--glass-brd); background: var(--glass-bg); box-shadow: var(--glass-sh);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  animation: vd-toast var(--d-spring-b) var(--spring-b) both;
}

:root .vd-seg {
  position: relative; isolation: isolate; display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .08); background: var(--track); box-shadow: var(--track-sh);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: pan-x pan-y; max-width: 100%;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
}
.vd-seg::-webkit-scrollbar { display: none; }
html.light .vd-seg { border-color: var(--border); }
:root .vd-seg.vd-seg-grid { display: grid; border-radius: var(--r-lg); overflow: visible; }
.vd-seg > :where(button, a, div, label):not(.vd-drop):not(.vd-lens) {
  position: relative; z-index: 1; border-radius: 999px; border: 0 !important; background: none !important; box-shadow: none !important;
  color: var(--text2); -webkit-tap-highlight-color: transparent; transition: color .3s var(--ease); cursor: pointer; white-space: nowrap;
  -webkit-user-drag: none;
}
.vd-seg.vd-seg-grid > :where(button, a, div, label):not(.vd-drop):not(.vd-lens) { border-radius: calc(var(--r-lg) - 5px); white-space: normal; }
@media (hover: hover) { .vd-seg > :where(button, a, div, label):not(.vd-drop):not(.vd-lens):hover { color: var(--text); } }
.vd-seg:not(.vd-lensing) > :is(.on, .sel, .active, [aria-current]:not([aria-current="false"]), [aria-pressed="true"], [aria-selected="true"], :has(input:checked)),
.vd-seg:not(.vd-lensing) > :is(.on, .sel, .active, [aria-current]:not([aria-current="false"]), [aria-pressed="true"], [aria-selected="true"], :has(input:checked)) :where(.n, .p, .s, small, svg, span) { color: var(--neon-ink) !important; }
.vd-seg.vd-lensing > .vd-over { color: var(--text); }
.vd-drop { transition: opacity .2s var(--ease); position: absolute; left: 0; top: 0; z-index: 0; border-radius: 999px; pointer-events: none; background: var(--drop); box-shadow: var(--drop-sh); opacity: 0; transform-origin: 50% 50%; will-change: transform; }
.vd-seg-grid > .vd-drop { border-radius: calc(var(--r-lg) - 5px); }
.vd-lens { position: absolute; left: 0; top: 0; z-index: 2; overflow: hidden; border-radius: 999px; pointer-events: none; background: var(--lens); box-shadow: var(--lens-sh); opacity: 0; will-change: transform; }
.vd-seg-grid > .vd-lens { border-radius: calc(var(--r-lg) - 5px); }
.vd-lens::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 30% 0%, rgba(255, 255, 255, .32), transparent 45%), radial-gradient(90% 60% at 70% 110%, rgba(0, 212, 255, .18), transparent 60%);
}
.vd-lens-in { position: absolute; left: 0; top: 0; will-change: transform; }
.vd-lens-in > * { position: absolute; margin: 0; color: var(--text) !important; background: none !important; border-color: transparent !important; box-shadow: none !important; transition: none !important; pointer-events: none; }
.vd-lens-in > * :where(.n, .s, small) { color: var(--text2) !important; }
.vd-lens-in > * * { color: inherit !important; }
.vd-lens-in svg { flex-shrink: 0; }
:where(.tab-indicator, .tab-slide-indicator, .method-tab-indicator) { display: none !important; }

:where(.vd-reveal, [data-reveal]) { opacity: 0; transform: translateY(22px); }
:where(.vd-reveal, [data-reveal]).is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease) var(--d, 0ms), transform .8s var(--spring-s) var(--d, 0ms); }
html:not(.vd-vt-in) .vd-in { animation: vd-in var(--d-spring-s) var(--spring-s) both; }

.vd-progress {
  position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 2000; pointer-events: none;
  background: linear-gradient(90deg, var(--neon2), var(--neon), #8ef0ff); transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 10px var(--neon);
}
.vd-progress.vd-run { animation: vd-progress 8s cubic-bezier(.1, .7, .2, 1) forwards; }

.vd-spec {
  position: fixed; z-index: 5000; pointer-events: none; opacity: 0; contain: strict;
  background: radial-gradient(6rem circle at var(--px, 50%) var(--py, 50%), rgba(255, 255, 255, .22), rgba(255, 255, 255, .05) 45%, transparent 70%);
  transition: opacity .6s var(--ease);
}
.vd-spec[data-on] { opacity: 1; transition-duration: .12s; }
html.light .vd-spec { background: radial-gradient(6rem circle at var(--px, 50%) var(--py, 50%), rgba(255, 255, 255, .55), rgba(255, 255, 255, .15) 45%, transparent 70%); }

.vd-ambient, html.light .vd-ambient {
  position: fixed; inset: -10vh -10vw; z-index: -1; pointer-events: none; contain: strict; transform: translateZ(0);
  background:
    radial-gradient(55vmax 45vmax at 12% 8%, rgba(0, 212, 255, .10), transparent 62%),
    radial-gradient(48vmax 40vmax at 92% 22%, rgba(98, 120, 255, .07), transparent 60%),
    radial-gradient(60vmax 50vmax at 40% 105%, rgba(0, 230, 118, .04), transparent 62%),
    radial-gradient(40vmax 30vmax at 80% 85%, rgba(255, 107, 53, .035), transparent 60%);
}
html.light .vd-ambient { opacity: .75; }
body[data-vd-noambient] .vd-ambient { display: none; }

:root:root :where(.btn-sm, .back-btn, .link-btn, .btn-ghost, .btn-cancel, .act-btn, .icon-btn) { border-color: var(--glass-brd); }
:root:root :where(.card, .vd-card) { border-color: var(--border); }
@media (pointer: coarse) {
  .glass { -webkit-backdrop-filter: blur(20px) saturate(170%) brightness(.96); backdrop-filter: blur(20px) saturate(170%) brightness(.96); }
  .glass::before, [data-vd-spot]::before { display: none; }
}

@media (max-width: 640px) {
  :root { --topbar-h: 54px; }
  :where(.topbar) { top: 8px; margin: 8px 8px 0; border-radius: 27px; padding: 0 8px 0 12px; gap: 10px; }
  :where(.field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .vd-input) { min-height: 46px; font-size: 16px; }
  :where(.field textarea) { font-size: 16px; }
  :where(.toasts) { right: 12px; left: 12px; align-items: center; bottom: calc(14px + env(safe-area-inset-bottom)); }

  :where(.overlay) { align-items: flex-end; padding: 0; }
  :where(.modal) {
    max-width: none; border-radius: 30px 30px 0 0; padding: 30px 20px calc(22px + env(safe-area-inset-bottom));
    max-height: 88dvh; border-bottom: 0;
  }
  .vd-grab { display: block; position: absolute; left: 50%; top: 9px; width: 38px; height: 5px; margin-left: -19px; border-radius: 999px; background: var(--border3); touch-action: none; cursor: grab; }
  .vd-grab::before { content: ""; position: absolute; inset: -14px -40px; }
  :where(.modal-actions) { flex-direction: column-reverse; }
  :where(.modal-actions > *) { width: 100%; height: 46px; }
}

@keyframes vd-spin { to { transform: rotate(360deg); } }
@keyframes vd-shimmer { to { transform: translateX(100%); } }
@keyframes vd-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes vd-pop { from { opacity: 0; transform: scale(.9); } }
@keyframes vd-pop-out { to { opacity: 0; transform: scale(.94) translateY(-6px); } }
@keyframes vd-toast { from { opacity: 0; transform: translateY(16px) scale(.9); } }
@keyframes vd-progress { 0% { transform: scaleX(0); } 100% { transform: scaleX(.92); } }

.topbar { view-transition-name: vd-topbar; }
.topbar .logo { view-transition-name: vd-logo; }
html.vd-vt .vd-page { view-transition-name: vd-page; }
::view-transition-group(vd-topbar), ::view-transition-group(vd-logo) { animation-duration: .5s; animation-timing-function: var(--spring); }
::view-transition-old(vd-topbar), ::view-transition-new(vd-topbar) { height: 100%; animation-duration: .3s; }
::view-transition-group(vd-topbar) { animation: none; }
::view-transition-old(vd-topbar) { animation: none; opacity: 0; }
::view-transition-new(vd-topbar) { animation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-group(vd-page) { animation: none; }
::view-transition-old(vd-page) { animation: vd-vt-out .13s var(--ease) both; }
::view-transition-new(vd-page) { animation: vd-vt-in .42s var(--spring-s) both; }
html[data-nav="back"]::view-transition-old(vd-page) { animation-name: vd-vt-out-back; }
html[data-nav="back"]::view-transition-new(vd-page) { animation-name: vd-vt-in-back; }
@keyframes vd-vt-out { to { opacity: 0; transform: translateX(-18px); } }
@keyframes vd-vt-in { from { opacity: 0; transform: translateX(32px); } }
@keyframes vd-vt-out-back { to { opacity: 0; transform: translateX(18px); } }
@keyframes vd-vt-in-back { from { opacity: 0; transform: translateX(-32px); } }
@media (max-width: 640px) {
  @keyframes vd-vt-in { from { opacity: 0; transform: translateX(46px); } }
  @keyframes vd-vt-in-back { from { opacity: 0; transform: translateX(-46px); } }
}
html.vd-theming::view-transition-old(root), html.vd-theming::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.vd-theming::view-transition-new(root) { z-index: 9999; }
html.vd-theming .topbar, html.vd-theming .topbar .logo, html.vd-theming .vd-page { view-transition-name: none; }

html.vd-boot *, html.vd-boot *::before, html.vd-boot *::after,
html.vd-notr *, html.vd-notr *::before, html.vd-notr *::after { transition: none !important; }

html.vd-enter .vd-page { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  :where(.vd-reveal, [data-reveal]) { opacity: 1; transform: none; }
  html.vd-enter .vd-page { opacity: 1; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, body > .topbar, .toast, :root .overlay .modal { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface2); }
  :root .overlay { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) { .glass, :root .card, .vd-seg, body > .topbar { border-color: var(--text2); background: var(--surface); } }
