/* Update-server vendor panel. A port of the approved «آوا» mockups
   (ava.css + 09-update-dashboard) onto the shared kit tokens in
   ava-ui/css/tokens.css, which carry the Avang teal brand. */

/* ---------- aliases onto kit tokens ---------- */
:root,
[data-theme],
[data-panel] {
  --panel-brand: var(--ava-accent);
  --panel-brand-text: var(--ava-accent-ink);
  --panel-brand-soft: var(--ava-accent-soft);
  --accent: var(--ava-accent);
  --accent-ink: var(--ava-accent-ink);
  --accent-soft: var(--ava-accent-soft);
  --accent-soft-2: var(--ava-accent-soft-2);
  --accent-glow: var(--ava-accent-glow);
  --on-accent: var(--ava-on-aurora);
  --sub: var(--ava-sub);
  --sub-ink: var(--ava-sub-ink);
  --sub-soft: var(--ava-sub-soft);
  --aurora: var(--ava-aurora);
  --aurora-v: var(--ava-aurora-v);
  --aurora-soft: var(--ava-aurora-soft);
  --bg: var(--ava-bg);
  --ink: var(--ava-ink);
  --ink-2: var(--ava-ink-2);
  --ink-3: var(--ava-ink-3);
  --ink-4: var(--ava-ink-4);
  --surface: var(--ava-surface);
  --surface-strong: var(--ava-surface-strong);
  --surface-solid: var(--ava-surface-solid);
  --sunk: var(--ava-sunk);
  --sunk-2: var(--ava-sunk-2);
  --line: var(--ava-line);
  --line-2: var(--ava-line-2);
  --hl: var(--ava-hl);
  --tip-bg: var(--ava-tip-bg);
  --tip-ink: var(--ava-tip-ink);
  --ok: var(--ava-ok);
  --ok-soft: var(--ava-ok-soft);
  --ok-fill: var(--ava-ok-fill);
  --warn: var(--ava-warn);
  --warn-soft: var(--ava-warn-soft);
  --warn-fill: var(--ava-warn-fill);
  --bad: var(--ava-bad);
  --bad-soft: var(--ava-bad-soft);
  --bad-fill: var(--ava-bad-fill);
  --info: var(--ava-info);
  --info-soft: var(--ava-info-soft);
  --mute: var(--ava-mute);
  --mute-soft: var(--ava-mute-soft);
  --shadow-1: var(--ava-shadow-1);
  --shadow-2: var(--ava-shadow-2);
  --shadow-3: var(--ava-shadow-3);
  --blur: var(--ava-blur);
  --r-xs: var(--ava-r-xs);
  --r-sm: var(--ava-r-sm);
  --r: var(--ava-r);
  --r-lg: var(--ava-r-lg);
  --r-xl: var(--ava-r-xl);
  --ease: var(--ava-ease);
  --font: var(--ava-font-sans);
  /* Vazirmatn ss01 draws Latin digits as Persian glyphs; digits come from the
     locale formatter instead, so en, hashes and ids stay Latin. */
  --ava-font-feature-num: "tnum" on;
  --mono: var(--ava-font-mono);
  --hero-1: #0b8f8c;
  --hero-2: #065b5b;
  --hero-3: #043838;
}

/* The hero KPI is the aurora surface in light; in dark it is a glass tile with
   a brand glow, as in the approved dark mockup. */
:root {
  --hero-bg: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--ava-aurora-hi) 70%, transparent) 0%, transparent 55%),
             radial-gradient(120% 140% at 0% 100%, color-mix(in srgb, #2bb5b2 85%, transparent) 0%, transparent 55%),
             linear-gradient(135deg, var(--hero-1), var(--hero-3));
}
[data-theme="dark"] {
  --hero-bg: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--ava-accent) 26%, transparent) 0%, transparent 60%), var(--ava-glass-1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --hero-bg: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--ava-accent) 26%, transparent) 0%, transparent 60%), var(--ava-glass-1);
  }
}

html[dir="rtl"] { --x-dir: 1; }
html[dir="ltr"] { --x-dir: -1; }

@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--bg); }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  background: transparent;
  min-height: 100vh;
  padding: 16px 28px 14px;
  padding-inline-start: 104px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body[data-page="login"] { padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i.sm { width: 15px; height: 15px; }
.i.xs { width: 13px; height: 13px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.mono { font-family: var(--mono); font-size: .94em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.sp { flex: 1; }
.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; }
::selection { background: var(--accent-soft-2); }
:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); border-radius: 10px; }
.grad-text { background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; filter: var(--ava-grad-glow); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 10px; background: var(--surface-solid); box-shadow: var(--shadow-2); }
.skip:focus { top: 12px; }
.status-line { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

/* ---------- living canvas ---------- */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); pointer-events: none; }
.scene::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--ava-grid-dot) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(120% 75% at 50% 0%, #000 0%, transparent 72%);
          mask-image: radial-gradient(120% 75% at 50% 0%, #000 0%, transparent 72%);
}
.scene::after {
  content: ""; position: absolute; inset: 0; opacity: var(--ava-scene-glow-opacity);
  background: radial-gradient(1200px 500px at 70% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), var(--ava-scene-glow-sub);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--ava-blob-opacity); }
.b1 { width: 760px; height: 480px; top: -300px; inset-inline-start: 2%; background: var(--ava-blob-1); animation: drift1 26s ease-in-out infinite alternate; }
.b2 { width: 640px; height: 440px; top: -300px; inset-inline-end: 16%; background: var(--sub); animation: drift2 31s ease-in-out infinite alternate; }
.b3 { width: 620px; height: 620px; bottom: -460px; inset-inline-end: -160px; background: var(--ava-blob-3); opacity: calc(var(--ava-blob-opacity) * .55); animation: drift1 38s ease-in-out infinite alternate-reverse; }
.grain {
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("/vendor/static/grain.svg");
}
@keyframes drift1 { to { transform: translate3d(-80px, 40px, 0) scale(1.08); } }
@keyframes drift2 { to { transform: translate3d(90px, 30px, 0) scale(.94); } }

/* ---------- floating rail ---------- */
.rail {
  position: fixed; z-index: 50;
  inset-inline-start: 18px; top: 50%; transform: translateY(-50%);
  width: 60px; padding: 10px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  border-radius: 24px;
  background: var(--ava-rail-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2), inset 0 1px 0 var(--hl);
}
.rail-item {
  position: relative; width: 44px; height: 40px; border-radius: 13px;
  display: grid; place-items: center; color: var(--ink-3);
  background: transparent; border: 0; cursor: pointer; padding: 0;
  transition: background .25s var(--ease), color .25s, transform .25s var(--ease);
}
.rail-item .i { width: 19px; height: 19px; }
.rail-item:hover { background: var(--sunk-2); color: var(--ink); transform: scale(1.06); }
.rail-item.is-active {
  color: var(--on-accent); background: var(--aurora);
  box-shadow: 0 10px 22px -8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.rail-item.is-active::before {
  content: ""; position: absolute; inset-inline-start: -10px; top: 11px; bottom: 11px; width: 3px;
  border-radius: 3px; background: var(--aurora-v);
}
.rail-item[data-tip]::after {
  content: attr(data-tip); position: absolute; inset-inline-start: calc(100% + 14px); top: 50%;
  transform: translate(calc(6px * var(--x-dir)), -50%); white-space: nowrap; pointer-events: none;
  padding: 6px 11px; border-radius: 9px; font-size: 12.5px; font-weight: 600;
  background: var(--tip-bg); color: var(--tip-ink); box-shadow: var(--shadow-2);
  opacity: 0; transition: opacity .18s, transform .25s var(--ease);
}
.rail-item[data-tip]:hover::after, .rail-item[data-tip]:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.rail-badge {
  position: absolute; top: 3px; inset-inline-end: 3px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--bad-fill); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
  box-shadow: 0 0 0 2px var(--surface-solid);
}
.rail-sep { width: 26px; height: 1px; border: 0; margin: 6px 0; background: var(--line-2); }
.rail-toggle { color: var(--ink-4); }
.rail.is-mini { width: 52px; padding: 8px 6px; border-radius: 20px; opacity: .92; }
.rail.is-mini .rail-item { width: 40px; height: 38px; }

/* ---------- top bar & omnibar ---------- */
.topbar { height: 56px; display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(220px, 500px) minmax(max-content, 1fr); align-items: center; gap: 20px; position: relative; z-index: 30; }
.tb-start { justify-self: start; display: flex; align-items: center; gap: 14px; min-width: 0; }
.tb-end { justify-self: end; display: flex; align-items: center; gap: 6px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 9px; padding-inline-end: 4px; }
.brand-word { font-size: 24px; font-weight: 900; line-height: 1; background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 4px; }
.brand-glyph {
  width: 12px; height: 12px; border-radius: 50%; flex: none;
  background: conic-gradient(from 200deg, var(--ava-aurora-1), var(--ava-aurora-3), var(--ava-aurora-hi), var(--ava-aurora-1));
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 18px var(--accent-glow);
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe { 50% { box-shadow: 0 0 0 6px var(--accent-soft), 0 0 26px var(--accent-glow); } }

.switcher { display: flex; gap: 2px; padding: 4px; border-radius: 14px; background: var(--sunk); border: 1px solid var(--line); }
.switcher a {
  display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 10px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-3); transition: background .2s, color .2s; white-space: nowrap;
}
.switcher a .i { width: 15px; height: 15px; }
.switcher a:hover { color: var(--ink); }
.switcher a.is-on { background: var(--ava-raised); color: var(--ink); box-shadow: var(--shadow-1); }
.switcher a.is-on .i { color: var(--sub-ink); }

.omnibar {
  position: relative; display: flex; align-items: center; gap: 10px;
  width: 100%; height: 46px; padding-inline: 16px 7px; justify-self: center;
  border-radius: 999px; border: 0; cursor: text; text-align: start;
  background: var(--surface-strong);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--shadow-2), inset 0 1px 0 var(--hl);
  color: var(--ink-3); transition: transform .3s var(--ease), box-shadow .3s;
}
.omnibar::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; pointer-events: none;
  background: conic-gradient(from var(--ang), var(--line-2) 0deg, var(--line-2) 200deg, var(--accent) 260deg, var(--ava-aurora-hi) 310deg, var(--line-2) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 7s linear infinite;
}
.omnibar:hover { transform: translateY(-1px); box-shadow: var(--shadow-3); }
.omnibar > .i { color: var(--accent); width: 19px; height: 19px; }
.omni-text { flex: 1; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kbds { display: inline-flex; gap: 3px; direction: ltr; }
kbd, .kbd {
  font-family: var(--font); font-size: 11px; font-weight: 700; line-height: 1;
  min-width: 24px; height: 24px; padding: 0 6px; display: inline-grid; place-items: center;
  border-radius: 7px; color: var(--ink-2); background: var(--ava-kbd-bg); gap: 2px;
  border: 1px solid var(--line-2); box-shadow: 0 1.5px 0 var(--line-2);
}
@keyframes spin { to { --ang: 360deg; } }

.tb-icon, .tb-chip {
  position: relative; height: 38px; border-radius: 12px; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: transparent; color: var(--ink-2); cursor: pointer; transition: background .2s, border-color .2s;
}
.tb-icon { width: 38px; padding: 0; }
.tb-chip { padding: 0 11px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tb-date { cursor: default; }
.tb-icon:hover, .tb-chip:hover { background: var(--surface-strong); border-color: var(--line); }
.tb-date:hover { background: transparent; border-color: transparent; }
.tb-count {
  position: absolute; top: 4px; inset-inline-end: 4px; min-width: 16px; height: 16px; border-radius: 8px; padding: 0 3px;
  background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.only-dark { display: none; }
[data-theme="dark"] .only-dark { display: block; }
[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .only-dark { display: block; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .only-light { display: none; }
}
.me-wrap { position: relative; margin-inline-start: 4px; }
.me {
  display: flex; align-items: center; gap: 9px; padding: 4px 5px; padding-inline-end: 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer; text-align: start; max-width: 200px;
}
.me:hover { background: var(--surface-strong); }
.me-t { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; min-width: 0; }
.me-t b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.me-t small { font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }

/* pop menu */
.menu {
  position: absolute; z-index: 60; top: calc(100% + 8px); inset-inline-end: 0; min-width: 220px; padding: 6px;
  border-radius: 16px; background: var(--surface-strong); border: 1px solid var(--line);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow-3);
}
.menu-h { padding: 8px 10px 4px; font-size: 11px; font-weight: 800; color: var(--ink-3); }
.menu-item {
  display: flex; align-items: center; gap: 9px; width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: 10px;
  background: transparent; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; text-align: start;
}
.menu-item .i { width: 16px; height: 16px; color: var(--ink-3); }
.menu-item:hover { background: var(--sunk-2); color: var(--ink); }
.menu-item.is-active { color: var(--accent-ink); }
.menu-item.is-active .i { color: var(--accent-ink); }
.menu-item.is-danger { color: var(--bad); }
.menu-item.is-danger .i { color: var(--bad); }
.menu hr { border: 0; height: 1px; background: var(--line); margin: 6px 4px; }

/* ---------- avatars ---------- */
.av {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff;
  background: var(--g, linear-gradient(135deg, var(--ava-aurora-1), var(--ava-aurora-hi)));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.av.sm { width: 24px; height: 24px; font-size: 10.5px; }
.av.lg { width: 40px; height: 40px; font-size: 15px; }
.g-sub { --g: linear-gradient(135deg, #f0861a, #ffc04d); }

/* ---------- layout primitives ---------- */
.main { position: relative; z-index: 1; margin-top: 14px; }
.page-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.page-h > div:first-child { min-width: 0; margin-inline-end: auto; }
.crumb { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-3); }
.crumb .i { width: 13px; height: 13px; color: var(--ink-4); transform: scaleX(var(--x-dir)); }
.crumb a:hover { color: var(--ink); }
.crumb b { color: var(--ink-2); font-weight: 600; }
.h1 { font-size: 28px; font-weight: 800; line-height: 1.3; }
.h1 small { font-size: 15px; font-weight: 600; color: var(--ink-3); margin-inline-start: 8px; }
.sub-t { color: var(--ink-2); font-size: 13.5px; }
.lay { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 14px; }
.col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* ---------- surfaces ---------- */
.tile {
  position: relative; border-radius: var(--r-lg); padding: 18px 20px;
  background: var(--ava-glass-1);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--ava-glass-border);
  box-shadow: var(--shadow-1), inset 0 1px 0 var(--hl);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
  min-width: 0;
}
.tile::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--ava-glass-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.tile.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-2), inset 0 1px 0 var(--hl); border-color: var(--line-2); }
.tile.solid { background: var(--ava-glass-2); }
.tile-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-height: 30px; flex-wrap: wrap; }
.tile-h h2, .tile-h h3 { font-size: 14.5px; font-weight: 750; display: flex; align-items: center; gap: 8px; }
.tile-h h2 .i, .tile-h h3 .i { color: var(--ink-3); width: 16px; height: 16px; }
.tile-h .count { font-size: 11.5px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; }
.tile-link { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); background: none; border: 0; cursor: pointer; padding: 0; }
.tile-link .i { width: 14px; height: 14px; transform: scaleX(var(--x-dir)); }

/* aurora hero surface (teal) */
.aurora-card {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--r-lg);
  background: var(--hero-bg);
  box-shadow: 0 30px 60px -26px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.aurora-card::after {
  content: ""; position: absolute; inset: -40%; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 70%, rgba(255, 255, 255, .18) 80%, transparent 90%);
  animation: spin 14s linear infinite; mix-blend-mode: soft-light;
}

/* ---------- buttons ---------- */
.btn {
  position: relative; height: 38px; padding: 0 15px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
  font-size: 13px; font-weight: 650; cursor: pointer; text-decoration: none;
  border: 1px solid var(--line-2); background: var(--surface-strong); color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s, background .2s, border-color .2s;
}
.btn .i { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); border-color: var(--line-2); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary {
  border: 0; color: var(--on-accent); overflow: hidden; background: var(--aurora);
  box-shadow: 0 12px 26px -12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transition: transform .8s var(--ease);
}
.btn-primary:hover::after { transform: translateX(-120%); }
.btn-primary:hover { box-shadow: 0 16px 32px -12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--sunk-2); box-shadow: none; }
.btn-soft { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.btn-danger { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.btn-sm { height: 30px; padding: 0 11px; border-radius: 10px; font-size: 12px; gap: 5px; }
.btn-sm .i { width: 14px; height: 14px; }
.btn-xs { height: 26px; padding: 0 9px; border-radius: 8px; font-size: 11.5px; gap: 4px; }
.btn-xs .i { width: 13px; height: 13px; }
.btn-icon { width: 38px; padding: 0; }
.btn-sm.btn-icon { width: 30px; }
.btn-xs.btn-icon { width: 26px; }
.btn .flip, .flip-x { transform: scaleX(var(--x-dir)); }

/* ---------- chips, pills, badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 650; white-space: nowrap;
  background: var(--mute-soft); color: var(--mute);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.chip.plain::before { display: none; }
.chip .i { width: 13px; height: 13px; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip.accent { background: var(--accent-soft); color: var(--accent-ink); }
.chip.sub { background: var(--sub-soft); color: var(--sub-ink); }
.chip.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.chip.live::before { animation: pulse 1.8s ease-out infinite; box-shadow: 0 0 0 0 currentColor; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--sunk-2); white-space: nowrap; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line);
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.pill:hover { border-color: var(--line-2); transform: translateY(-1px); }
.pill .i { width: 15px; height: 15px; color: var(--ink-3); }
.pill b { color: var(--ink); font-weight: 700; }
.pill .n { font-size: 11px; font-weight: 700; color: var(--ink-3); background: var(--sunk-2); border-radius: 999px; padding: 0 7px; line-height: 18px; }
.pill.is-on { background: var(--ink); color: var(--bg); border-color: transparent; }
.pill.is-on .i, .pill.is-on b { color: inherit; }
.pill.is-on .n { background: rgba(255, 255, 255, .18); color: inherit; }
.pill.is-set { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.pill.is-set .i, .pill.is-set b { color: var(--accent-ink); }
.pill-select { position: relative; display: inline-flex; }
.pill-select select {
  appearance: none; -webkit-appearance: none; height: 32px; padding-inline: 13px 30px; border-radius: 999px;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
}
.pill-select.is-set select { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.pill-select .i { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--ink-3); pointer-events: none; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--sunk-2); }
.seg button, .seg a {
  height: 26px; padding: 0 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--ink-3); cursor: pointer; border: 0; background: transparent;
}
.seg .i { width: 14px; height: 14px; }
.seg .on, .seg [aria-pressed="true"] { background: var(--ava-raised); color: var(--ink); box-shadow: 0 1px 3px rgba(14, 16, 48, .1); }

.delta { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 0 7px; line-height: 20px; white-space: nowrap; }
.delta.up { color: var(--ok); background: var(--ok-soft); }
.delta.down { color: var(--bad); background: var(--bad-soft); }
.delta.flat { color: var(--mute); background: var(--mute-soft); }
.delta.up::before, .delta.down::before { content: ""; border-inline: 3.5px solid transparent; margin-inline-end: 2px; }
.delta.up::before { border-bottom: 5px solid currentColor; }
.delta.down::before { border-top: 5px solid currentColor; }
.delta.bad-up { color: var(--bad); background: var(--bad-soft); }
.delta.bad-up::before { content: ""; border-inline: 3.5px solid transparent; border-bottom: 5px solid currentColor; margin-inline-end: 2px; }

.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok-fill); display: inline-block; flex: none; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
.live-dot.warn { background: var(--warn-fill); }
.live-dot.bad { background: var(--bad-fill); }
.live-dot.mute { background: var(--ink-4); }
.live-dot.mute::after { display: none; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 5px transparent; } }

/* ---------- meters, rings, sparklines ---------- */
.progress { position: relative; height: 8px; border-radius: 99px; background: var(--sunk-2); overflow: hidden; }
.progress > span { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--v); border-radius: inherit; background: var(--c, var(--aurora)); }
@keyframes stripes { to { background-position: -17px 0; } }
.ring { position: relative; display: inline-grid; place-items: center; width: var(--s, 40px); height: var(--s, 40px); flex: none; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: var(--w, 3.4); }
.ring .rt { stroke: var(--sunk-2); }
.ring .rv { stroke: var(--c, var(--accent)); stroke-linecap: round; stroke-dasharray: var(--v) 100; }
.ring b { position: relative; font-size: calc(var(--s, 40px) * .28); font-weight: 800; line-height: 1; }
.ring.ok { --c: var(--ok-fill); } .ring.warn { --c: var(--warn-fill); } .ring.bad { --c: var(--bad-fill); }

.spark { display: block; width: 100%; height: 30px; overflow: visible; color: var(--accent); }
html[dir="rtl"] .spark, html[dir="rtl"] .plot-svg { transform: scaleX(-1); }
.spark .sa { fill: currentColor; opacity: .10; }
.spark .sl { fill: none; stroke: currentColor; stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.spark .sd { fill: currentColor; stroke: var(--surface-solid); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.spark.ok { color: var(--ok-fill); } .spark.bad { color: var(--bad-fill); } .spark.warn { color: var(--warn-fill); } .spark.sub { color: var(--sub); } .spark.mute { color: var(--ink-4); }

/* ---------- plot ---------- */
.plot { display: grid; grid-template-columns: 54px minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 10px; row-gap: 8px; height: 100%; }
.plot-y { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); }
.plot-y span { height: 0; display: flex; align-items: center; white-space: nowrap; }
.plot-area { position: relative; grid-column: 2; grid-row: 1; }
.plot-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.plot-grid i { height: 1px; background: var(--line); display: block; }
.plot-grid i:last-child { background: var(--line-2); }
.plot-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plot-svg .pl { fill: none; stroke-width: 2.6; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke: var(--accent); filter: var(--ava-plot-glow); }
.plot-svg .gs0 { stop-color: var(--accent); stop-opacity: .26; }
.plot-svg .gs1 { stop-color: var(--ava-aurora-hi); stop-opacity: 0; }
.plot-svg .pcur { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; opacity: .5; }
.plot-bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); align-items: end; }
.plot-bars span { justify-self: center; width: 34%; max-width: 22px; height: var(--h); border-radius: 6px 6px 2px 2px; background: var(--sub); opacity: var(--ava-bar-opacity); }
.plot-bars span.on { opacity: var(--ava-bar-on-opacity); box-shadow: 0 0 var(--ava-bar-glow) var(--sub); }
.plot-x { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); font-size: 10.5px; color: var(--ink-3); text-align: center; white-space: nowrap; }
.plot-x span.on { color: var(--ink); font-weight: 700; }
.plot-x span.skip { visibility: hidden; }
.plot-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; transform: translate(calc(50% * var(--x-dir)), -50%); background: var(--surface-solid); box-shadow: 0 0 0 3px var(--accent), 0 0 0 9px var(--accent-soft-2); }
.plot-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--accent); animation: ping 2.2s cubic-bezier(0, 0, .2, 1) infinite; }
.plot-tip {
  position: absolute; transform: translate(calc(-18px * var(--x-dir)), -50%); min-width: 168px;
  padding: 9px 12px; border-radius: 12px; font-size: 11.5px; line-height: 1.6;
  background: var(--tip-bg); color: var(--tip-ink); box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: 1px; white-space: nowrap; pointer-events: none; z-index: 2;
}
.plot-tip::after { content: ""; position: absolute; top: 50%; inset-inline-start: -4px; width: 10px; height: 10px; transform: translateY(-50%) rotate(45deg); background: var(--tip-bg); border-radius: 2px; }
.plot-tip.flip { transform: translate(calc((100% + 18px) * var(--x-dir)), -50%); }
.plot-tip.flip::after { inset-inline-start: auto; inset-inline-end: -4px; }
.plot-tip b { font-size: 12px; margin-bottom: 2px; }
.plot-tip span { display: flex; align-items: center; gap: 6px; opacity: .9; }
.plot-tip strong { margin-inline-start: auto; padding-inline-start: 14px; }
.lgd { width: 8px; height: 8px; border-radius: 3px; display: inline-block; flex: none; }
.lgd-a { background: var(--aurora); }
.lgd-b { background: var(--sub); }
.lgd-c { background: var(--bad-fill); }
.lgd-d { background: var(--ink-4); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 12px; font-weight: 650; color: var(--ink-2); }
.input, .select, .textarea {
  display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border-radius: 11px; width: 100%;
  background: var(--ava-field-bg); border: 1px solid var(--line-2); color: var(--ink); font: inherit; font-size: 13px;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { padding: 10px 12px; min-height: 96px; resize: vertical; line-height: 1.6; }
.select { appearance: auto; }
.input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: inherit; height: 36px; padding: 0; }
.input .i { width: 16px; height: 16px; color: var(--ink-3); }
input.input:focus, .select:focus, .textarea:focus, .input:focus-within { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea, .input[aria-invalid="true"] { border-color: var(--bad-fill); }
.hint { font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; }
.hint .i { width: 13px; height: 13px; }
.err { font-size: 11.5px; color: var(--bad); min-height: 0; }
.err:empty { display: none; }
.check-row { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px 14px; margin: 0; min-width: 0; }
legend { padding: 0 6px; font-size: 12px; font-weight: 750; color: var(--ink-2); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
input[type="range"] { accent-color: var(--accent); width: 100%; }
input[type="file"] { font: inherit; font-size: 12.5px; color: var(--ink-2); }

/* ---------- rows & feeds ---------- */
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 9px 8px; margin: 0 -8px; border-radius: 12px; transition: background .2s; }
.row:hover { background: var(--sunk); }
.row + .row { box-shadow: 0 -1px 0 var(--line); }
.row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row-t b { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-t small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--sunk-2); color: var(--ink-2); }
.feed-ic .i { width: 15px; height: 15px; }
.feed-ic.ok { background: var(--ok-soft); color: var(--ok); }
.feed-ic.accent { background: var(--accent-soft); color: var(--accent-ink); }
.feed-ic.warn { background: var(--warn-soft); color: var(--warn); }
.feed-ic.bad { background: var(--bad-soft); color: var(--bad); }
.feed-ic.sub { background: var(--sub-soft); color: var(--sub-ink); }
.day { font-size: 11px; font-weight: 800; color: var(--ink-3); display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; }
.day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ev { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 4px 0; }
.ev .feed-ic { width: 30px; height: 30px; }
.ev .feed-ic .i { width: 14px; height: 14px; }
.ev p { font-size: 12.3px; line-height: 1.7; color: var(--ink-2); overflow-wrap: anywhere; }
.ev p b { color: var(--ink); }
.ev small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.diff { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 3px 8px; border-radius: 8px; background: var(--sunk-2); font-family: var(--mono); font-size: 11px; direction: ltr; }
.diff s { color: var(--bad); text-decoration-thickness: 1.5px; }
.diff ins { color: var(--ok); text-decoration: none; }
.diff .i { width: 12px; height: 12px; color: var(--ink-3); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 12px; font-size: 12.5px; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; text-align: end; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; min-width: 0; }

/* ---------- inspector (drawer) ---------- */
.inspector {
  position: fixed; z-index: 70; top: 88px; bottom: 16px; inset-inline-end: 20px; inset-inline-start: auto; width: 380px; max-width: calc(100vw - 40px);
  height: auto; max-height: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; border-radius: var(--r-xl); color: var(--ink);
  background: var(--ava-glass-3);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--line); box-shadow: var(--shadow-3), inset 0 1px 0 var(--hl);
  overflow: hidden;
}
.inspector[open] { animation: slideIn .6s var(--ease) both; }
.inspector::backdrop { background: var(--ava-veil); }
@keyframes slideIn { from { transform: translateX(calc(24px * var(--x-dir) * -1)); opacity: 0; } }
.insp-h { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; }
.insp-h h2 { font-size: 14px; font-weight: 750; display: flex; align-items: center; gap: 6px; min-width: 0; }
.insp-b { flex: 1; overflow: auto; padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.insp-sec { display: flex; flex-direction: column; gap: 8px; }
.insp-sec + .insp-sec { padding-top: 14px; border-top: 1px solid var(--line); }
.insp-sec > .label { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }

/* ---------- command palette ---------- */
.palette {
  position: fixed; z-index: 90; top: 92px; margin: 0 auto; padding: 0;
  width: min(720px, calc(100vw - 32px)); border-radius: 26px; overflow: hidden; color: var(--ink);
  background: var(--surface-strong);
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--line); box-shadow: var(--shadow-3), 0 0 0 6px rgba(255, 255, 255, .12), inset 0 1px 0 var(--hl);
}
.palette::backdrop { background: var(--ava-veil); -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); }
.palette::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--aurora); }
.pal-in { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.pal-in > .i { width: 21px; height: 21px; color: var(--accent); }
.pal-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; font-weight: 600; color: var(--ink); }
.pal-in input::placeholder { color: var(--ink-4); font-weight: 500; }
.pal-list { list-style: none; margin: 0; padding: 8px 10px 10px; max-height: 420px; overflow: auto; }
.pal-g { padding: 8px 10px 4px; font-size: 11px; font-weight: 800; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.pal-g::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cmd { display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 10px; border-radius: 12px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.cmd > .ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--sunk-2); color: var(--ink-2); flex: none; }
.cmd > .ic .i { width: 15px; height: 15px; }
.cmd .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd .meta { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.cmd[aria-selected="true"] { background: var(--aurora-soft); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); }
.cmd[aria-selected="true"] > .ic { background: var(--aurora); color: var(--on-accent); box-shadow: 0 6px 14px -6px var(--accent-glow); }
.pal-hint { padding: 14px 12px; font-size: 12.5px; color: var(--ink-3); list-style: none; }
.pal-f { display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 18px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); background: var(--sunk); }
.pal-f span { display: inline-flex; align-items: center; gap: 5px; }
.pal-f kbd { height: 20px; min-width: 20px; font-size: 10px; }

/* ---------- misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.icon-tile { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; color: #fff; background: var(--g, var(--aurora)); box-shadow: 0 8px 18px -8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .3); }
.icon-tile .i { width: 19px; height: 19px; }
.g-stable { --g: linear-gradient(135deg, #067070, #2bb5b2); }
.g-beta { --g: linear-gradient(135deg, #0a7fa0, #5fd6d2); }
.g-staging { --g: linear-gradient(135deg, #f0861a, #ffc04d); }
.g-module { --g: linear-gradient(135deg, #1f3a3a, #4a7272); }
.copy-row { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; }
.copy-row .ltr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; font-family: var(--mono); font-size: 12px; }
.notice { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 13px; background: var(--info-soft); font-size: 12.5px; color: var(--ink-2); }
.notice > .i { color: var(--info); }
.notice.warn { background: var(--warn-soft); }
.notice.warn > .i { color: var(--warn); }
.notice.bad { background: var(--bad-soft); }
.notice.bad > .i { color: var(--bad); }
.notice b { color: var(--ink); }

/* empty, error and loading states */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 26px 16px; text-align: center; color: var(--ink-3); }
.empty .empty-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 4px; }
.empty .empty-ic .i { width: 21px; height: 21px; }
.empty h3 { font-size: 14px; font-weight: 750; color: var(--ink); }
.empty p { font-size: 12.5px; max-width: 360px; }
.empty .btn { margin-top: 6px; }
.empty.compact { padding: 10px 6px; flex-direction: row; text-align: start; gap: 10px; }
.empty.compact .empty-ic { width: 34px; height: 34px; border-radius: 11px; margin: 0; }
.empty.compact .empty-ic .i { width: 16px; height: 16px; }
.empty.compact h3 { font-size: 12.5px; }
.empty.compact p { font-size: 11.5px; }
.error-box { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--bad-soft); color: var(--ink-2); font-size: 13px; }
.error-box > .i { color: var(--bad); }
.error-box p { flex: 1; }
.skel { display: block; height: 12px; border-radius: 8px; background: linear-gradient(90deg, var(--sunk-2), var(--sunk), var(--sunk-2)); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skel-tile { height: 116px; }
.skel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

/* kit dialog/toast in the glass language */
.ava-dialog { color: var(--ink); background: var(--ava-glass-3); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-3); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.ava-dialog::backdrop { background: var(--ava-veil); }
.ava-dialog .ava-btn-primary { background: var(--aurora); color: var(--on-accent); border: 0; }

/* =========================================================
   Dashboard (09-update-dashboard)
   ========================================================= */
.kpis { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; gap: 14px; }
.k { height: 116px; padding: 14px 16px; display: flex; flex-direction: column; overflow: hidden; }
.k-l { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--ink-3); white-space: nowrap; min-width: 0; }
.k-l > span:not(.delta) { overflow: hidden; text-overflow: ellipsis; }
.k-l .i { width: 15px; height: 15px; }
.k-l .delta { margin-inline-start: auto; }
.k-v { font-size: 27px; font-weight: 900; line-height: 1.45; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-v small { font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin-inline-start: 4px; unicode-bidi: isolate; }
.k-v.is-empty { font-size: 15px; font-weight: 750; color: var(--ink-3); line-height: 2.2; }
.k-note { font-size: 11.5px; color: var(--ink-3); margin-top: auto; line-height: 1.5; }
.k .spark { height: 28px; margin-top: auto; }
.k.hero { color: #fff; border: 0; }
.k.hero::before { display: none; }
.k.hero .k-l { color: rgba(255, 255, 255, .82); }
.k.hero .k-v small, .k.hero .k-note { color: rgba(255, 255, 255, .78); }
.k.hero .spark { color: #fff; }
.k.hero .spark .sa { opacity: .2; }
.k.hero .spark .sd { stroke: var(--hero-2); }
.k.hero .delta { color: #fff; background: rgba(255, 255, 255, .2); }

.cockpit { height: 292px; padding-bottom: 10px; }
.lane { display: grid; grid-template-columns: 206px minmax(0, 1fr) 128px 108px; align-items: center; gap: 20px; height: 72px; padding: 0 10px; margin: 0 -10px; border-radius: 16px; transition: background .2s; }
.lane + .lane { box-shadow: 0 -1px 0 var(--line); }
.lane:hover { background: var(--sunk); }
.ch { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ch .icon-tile { width: 38px; height: 38px; border-radius: 12px; box-shadow: none; }
.ch .icon-tile .i { width: 18px; height: 18px; }
.ch > div { min-width: 0; }
.ch b { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.ch b a:hover { color: var(--accent-ink); }
.ver { font-size: 11.5px; font-weight: 800; color: var(--ink-2); background: var(--sunk-2); border-radius: 7px; padding: 0 7px; line-height: 20px; white-space: nowrap; }
.ch small { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.ch small .live-dot { width: 7px; height: 7px; }
.ch small .i { width: 13px; height: 13px; }
.ch small.warn { color: var(--warn); font-weight: 650; }
.ch small.ok { color: var(--ok); font-weight: 650; }
.ch small.bad { color: var(--bad); font-weight: 650; }

.stages { position: relative; height: 50px; margin-inline: 10px; --c: var(--aurora); }
.stages .tr { position: absolute; inset-inline: 0; top: 21px; height: 8px; border-radius: 99px; background: var(--sunk-2); overflow: hidden; }
.stages .tr > span { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--v); border-radius: inherit; background: var(--c); }
.stages.live .tr > span::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .3) 0 6px, transparent 6px 12px); background-size: 17px 17px; animation: stripes 1s linear infinite; }
.nd { position: absolute; top: 25px; inset-inline-start: var(--p); transform: translate(calc(50% * var(--x-dir)), -50%); width: 14px; height: 14px; border-radius: 50%; background: var(--surface-solid); border: 2px solid var(--line-2); display: grid; place-items: center; z-index: 1; color: var(--surface-solid); }
.nd::after { content: attr(data-l); position: absolute; top: 15px; font-size: 10.5px; font-weight: 650; color: var(--ink-3); white-space: nowrap; }
.nd.done { border: 0; background: var(--ink); }
.nd.done .i { width: 9px; height: 9px; stroke-width: 3; }
.nd.next { border-color: var(--sub); border-style: dashed; }
.hd { position: absolute; top: 0; inset-inline-start: var(--v); transform: translateX(calc(50% * var(--x-dir))); font-size: 11px; font-weight: 800; color: var(--bg); background: var(--ink); border-radius: 7px; padding: 0 7px; line-height: 18px; white-space: nowrap; z-index: 2; }
.hd::after { content: ""; position: absolute; top: 100%; inset-inline-start: 50%; margin-inline-start: -4px; border: 4px solid transparent; border-top-color: var(--ink); }
.stages.paused { --c: repeating-linear-gradient(-45deg, var(--warn-fill) 0 5px, color-mix(in srgb, var(--warn-fill) 65%, #fff) 5px 10px); }
.hd.at-start { transform: translateX(calc(12px * var(--x-dir))); }
.hd.at-start::after { inset-inline-start: 8px; margin-inline-start: 0; }
.hd.at-end { transform: translateX(calc((100% - 12px) * var(--x-dir))); }
.hd.at-end::after { inset-inline-start: auto; inset-inline-end: 8px; margin-inline-start: 0; }
.stages.paused .hd { background: var(--warn-fill); color: #1a1200; }
.stages.paused .hd::after { border-top-color: var(--warn-fill); }
.stages.complete { --c: var(--ok-fill); }
.stages.complete .nd.done { background: var(--ok-fill); }
.stages.failed { --c: repeating-linear-gradient(-45deg, var(--bad-fill) 0 5px, color-mix(in srgb, var(--bad-fill) 65%, #fff) 5px 10px); }
.stages.failed .hd { background: var(--bad-fill); color: #fff; }
.stages.failed .hd::after { border-top-color: var(--bad-fill); }
.stages.idle .tr > span { display: none; }

.st { min-width: 0; }
.st b { display: block; font-size: 15px; font-weight: 900; white-space: nowrap; }
.st b.unset { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.st b small { font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin-inline-start: 3px; }
.st span { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st span i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok-fill); flex: none; }
.st span.warn { color: var(--warn); font-weight: 700; } .st span.warn i { background: var(--warn-fill); }
.st span.bad { color: var(--bad); font-weight: 700; } .st span.bad i { background: var(--bad-fill); }
.st span.mute i { background: var(--ink-4); }
.acts { display: flex; justify-content: flex-end; gap: 6px; }

.chart { height: 292px; display: flex; flex-direction: column; }
.chart .plot-wrap { flex: 1; min-height: 0; padding: 18px 6px 0 10px; padding-inline: 10px 6px; }
.chart .empty { flex: 1; }

.vers { height: 300px; }
.waffle-w { display: flex; align-items: center; gap: 20px; }
.waffle { display: grid; grid-template-columns: repeat(10, 13px); gap: 3px; flex: none; }
.waffle i { width: 13px; height: 13px; border-radius: 4px; transition: transform .2s; }
.waffle i:hover { transform: scale(1.35); }
.w-a { background: var(--aurora); background-attachment: fixed; }
.w-b { background: var(--sub); }
.w-c { background: color-mix(in srgb, var(--sub) 45%, #fff); }
.w-d { background: var(--bad-fill); opacity: .75; }
.w-e { background: var(--sunk-2); }
.vl { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vl div { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 12.5px; }
.vl i { width: 10px; height: 10px; border-radius: 3px; }
.vl b { font-weight: 800; }
.vl small { grid-column: 2 / -1; margin-top: -9px; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eol { margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 8px; padding-inline: 12px 8px; border-radius: 13px; background: var(--bad-soft); font-size: 12px; color: var(--ink-2); }
.eol > .i { color: var(--bad); }
.eol b { color: var(--ink); }
.eol.ok { background: var(--ok-soft); }
.eol.ok > .i { color: var(--ok); }

.rel { height: 414px; overflow: hidden; }
.rl { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding: 9px 8px; margin: 0 -8px; border-radius: 14px; }
.rl + .rl { box-shadow: 0 -1px 0 var(--line); }
.rl:hover { background: var(--sunk); }
.rl.on { background: linear-gradient(135deg, var(--sub-soft), transparent 70%); box-shadow: inset 0 0 0 1px var(--line); }
.rl.on + .rl { box-shadow: none; }
.rv-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sunk-2); color: var(--ink-2); }
.rl.on .rv-ic { background: var(--sub); color: #fff; box-shadow: 0 8px 18px -8px var(--sub); }
.rl-t { min-width: 0; }
.rl-t b { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 900; white-space: nowrap; }
.rl-t b .chip { font-size: 10.5px; }
.rl-t p { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
.cl span { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 750; border-radius: 6px; padding: 0 6px; line-height: 19px; background: var(--sunk-2); color: var(--ink-2); }
.cl .new { background: var(--accent-soft); color: var(--accent-ink); }
.cl .imp { background: var(--sub-soft); color: var(--sub-ink); }
.cl .fix { background: var(--ok-soft); color: var(--ok); }
.cl .sec { background: var(--bad-soft); color: var(--bad); }
.cl .i { width: 11px; height: 11px; }
.rl-m { text-align: end; font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.rl-m b { display: block; font-size: 12.5px; color: var(--ink); font-weight: 800; }
.rl-m .sig { display: flex; align-items: center; gap: 3px; margin-top: 4px; color: var(--ok); font-weight: 650; justify-content: flex-end; }
.rl-m .sig .i { width: 12px; height: 12px; }

/* =========================================================
   Lists (02-cms-content-list language)
   ========================================================= */
.views { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.views .sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 4px; }
.filters { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 18px; margin-bottom: 12px; flex-wrap: wrap; }
.filters .search { width: 300px; max-width: 100%; height: 36px; min-height: 36px; border-radius: 12px; background: var(--ava-field-bg); }
.filters .search input { height: 34px; }
.cols, .item { display: grid; grid-template-columns: var(--cols); align-items: center; column-gap: 14px; }
.cols { padding: 0 18px 6px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.items { display: flex; flex-direction: column; gap: 6px; }
.item {
  position: relative; padding: 8px 18px; border-radius: 17px; min-height: 62px;
  background: var(--surface); border: 1px solid var(--line);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: 0 1px 2px rgba(6, 30, 30, .03), inset 0 1px 0 var(--hl);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.item.is-link { cursor: pointer; }
.item:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.item .thumb { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--sunk-2); color: var(--ink-2); }
.item .thumb .i { width: 20px; height: 20px; }
.item .thumb.is-core { background: var(--accent-soft); color: var(--accent-ink); }
.item .thumb.is-module { background: var(--sub-soft); color: var(--sub-ink); }
.ti { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ti b { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; }
.ti b > span { overflow: hidden; text-overflow: ellipsis; }
.ti b a:hover { color: var(--accent-ink); }
.ti small { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.slug { font-family: var(--mono); font-size: 11px; color: var(--ink-3); direction: ltr; unicode-bidi: isolate; overflow: hidden; text-overflow: ellipsis; }
.when { display: flex; flex-direction: column; font-size: 12.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.when small { font-size: 11px; color: var(--ink-3); font-weight: 500; }
.cell-s { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-s small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 500; }
.item .chip { justify-self: start; }
.list-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
.list-foot .btn .i { transform: scaleX(var(--x-dir)); }
.ch-cells { display: flex; gap: 8px; flex-wrap: wrap; }
.ch-cell { display: flex; flex-direction: column; gap: 2px; padding: 5px 9px; border-radius: 11px; background: var(--ava-raised-2); border: 1px solid var(--line); min-width: 110px; }
.ch-cell b { font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.ch-cell small { font-size: 10.5px; color: var(--ink-3); }
.ch-cell.none { border-style: dashed; color: var(--ink-4); background: transparent; justify-content: center; font-size: 11.5px; }
.comp { display: flex; gap: 5px; flex-wrap: wrap; min-width: 0; }

/* =========================================================
   Detail (08-license-detail language)
   ========================================================= */
.keycard { padding: 16px 20px 14px; border-radius: 24px; overflow: hidden; }
.keycard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(600px 200px at 100% 0%, var(--sub-soft), transparent 70%), radial-gradient(500px 200px at 0% 100%, var(--accent-soft), transparent 70%); opacity: .8; }
.kc-top { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1.2fr); gap: 22px; align-items: center; }
.kc-top .vr { align-self: stretch; background: var(--line-2); }
.key-l { font-size: 11.5px; font-weight: 700; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.key { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; min-width: 0; }
.key code { font-family: var(--mono); font-size: 22px; font-weight: 800; direction: ltr; unicode-bidi: isolate; padding: 6px 14px; border-radius: 12px; background: var(--ava-field-bg); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.fact { min-width: 0; }
.fact small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 600; }
.fact b { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 750; min-width: 0; }
.fact b .i { width: 14px; height: 14px; color: var(--sub-ink); }
.fact .ltr { font-family: var(--mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-foot { position: relative; z-index: 1; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-2); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.kc-foot .copy-row { flex: 1; }
.art-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 8px; margin: 0 -8px; border-radius: 13px; }
.art-row + .art-row { box-shadow: 0 -1px 0 var(--line); }
.art-row:hover { background: var(--sunk); }
.art-row .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--sub-soft); color: var(--sub-ink); }
.art-row .ic .i { width: 16px; height: 16px; }
.art-row .dom { display: flex; flex-direction: column; min-width: 0; }
.art-row .dom b { font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art-row .dom small { font-size: 11px; color: var(--ink-3); min-width: 0; }
.code { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--sunk-2); font-family: var(--mono); font-size: 12px; line-height: 1.6; max-height: 360px; overflow: auto; direction: ltr; text-align: start; white-space: pre; }
details.tile > summary { cursor: pointer; font-size: 14.5px; font-weight: 750; list-style: none; display: flex; align-items: center; gap: 8px; }
details.tile > summary::-webkit-details-marker { display: none; }
details.tile > summary .i { color: var(--ink-3); width: 16px; height: 16px; }
details.tile[open] > summary { margin-bottom: 12px; }

/* =========================================================
   Upload & sign
   ========================================================= */
.steps { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); margin-bottom: 14px; list-style: none; padding: 0; }
.steps li { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.steps li i { height: 4px; border-radius: 4px; background: var(--sunk-2); display: block; }
.steps li.done i, .steps li[aria-current="step"] i { background: var(--aurora); }
.steps li[aria-current="step"] { color: var(--ink); }
.drop { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px; border-radius: 20px; border: 1.5px dashed var(--line-2); background: var(--ava-raised-2); text-align: center; }
.drop .empty-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--aurora); color: var(--on-accent); box-shadow: 0 12px 26px -12px var(--accent-glow); }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop .field { align-items: center; }
.file-pick { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.file-pick label.btn { cursor: pointer; }
.file-pick:focus-within label.btn { outline: 2px solid var(--accent); outline-offset: 2px; }
.file-name { font-size: 12.5px; color: var(--ink-3); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name.on { color: var(--ink); font-weight: 700; }
.drop .empty-ic .i { width: 24px; height: 24px; }
.repeat-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; }

/* =========================================================
   Login (06-cms-login language)
   ========================================================= */
body[data-page="login"] { height: 100vh; overflow: hidden; }
.login-scene .blob { opacity: .5; }
.ribbon {
  position: fixed; z-index: -1; pointer-events: none; width: 1500px; height: 1500px; top: -300px; inset-inline-end: -340px; border-radius: 50%;
  background: conic-gradient(from var(--ang) at 50% 50%, transparent 0deg, color-mix(in srgb, var(--accent) 28%, transparent) 40deg, color-mix(in srgb, var(--ava-aurora-hi) 26%, transparent) 80deg, transparent 130deg, transparent 220deg, color-mix(in srgb, var(--sub) 18%, transparent) 260deg, transparent 310deg);
  filter: blur(70px); animation: spin 40s linear infinite;
}
.floor {
  position: fixed; z-index: -1; inset-inline: -10%; bottom: -10px; height: 380px; pointer-events: none;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: 64px 64px;
  transform: perspective(600px) rotateX(62deg); transform-origin: bottom; -webkit-mask-image: linear-gradient(transparent, #000 70%); mask-image: linear-gradient(transparent, #000 70%); opacity: .7;
}
.lg-top { position: fixed; top: 0; inset-inline: 0; height: 84px; padding: 0 56px; display: flex; align-items: center; gap: 14px; z-index: 5; }
.lg-top .brand-word { font-size: 30px; }
.lg-top .lg-sub { font-size: 13px; color: var(--ink-3); }
.lg-top .lg-sub b { color: var(--ink-2); }
.lang-sw { display: inline-flex; padding: 4px; border-radius: 13px; background: var(--surface-strong); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.lang-sw button { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; border-radius: 9px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); background: transparent; border: 0; cursor: pointer; }
.lang-sw button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lang-sw .i { width: 15px; height: 15px; }
.stage { position: relative; height: 100vh; display: grid; grid-template-columns: 480px minmax(0, 1fr); gap: 80px; align-items: center; padding: 84px 56px 64px; padding-inline: 120px 56px; }
.card {
  position: relative; z-index: 3; padding: 26px 28px 20px; border-radius: 32px;
  background: var(--ava-login-card);
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--ava-login-card-border);
  box-shadow: var(--shadow-3), inset 0 1px 0 var(--hl);
  animation: rise .8s var(--ease) both;
}
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 55%, transparent), transparent 35%, transparent 70%, color-mix(in srgb, var(--ava-aurora-hi) 50%, transparent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.card h1 { font-size: 24px; font-weight: 850; line-height: 1.4; }
.card .lead { font-size: 13px; color: var(--ink-2); margin-top: 2px; margin-bottom: 16px; }
.card form { display: flex; flex-direction: column; gap: 12px; }
.card .input { height: 44px; border-radius: 13px; }
.otp { display: flex; gap: 8px; direction: ltr; justify-content: center; }
.otp input { width: 52px; height: 56px; border-radius: 16px; text-align: center; font: inherit; font-size: 24px; font-weight: 800; background: var(--ava-field-bg); border: 1.5px solid var(--line-2); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.otp input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.otp input[aria-invalid="true"] { border-color: var(--bad-fill); }
.otp .dash { width: 10px; display: grid; place-items: center; color: var(--ink-4); font-size: 18px; }
.login-alert { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border-radius: 13px; background: var(--bad-soft); border: 1px solid color-mix(in srgb, var(--bad) 28%, transparent); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.7; }
.login-alert:empty { display: none; }
.login-alert .i { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--bad); }
.go { width: 100%; height: 48px; border-radius: 15px; font-size: 14.5px; margin-top: 4px; }
.go .i { width: 18px; height: 18px; transform: scaleX(var(--x-dir)); }
.reveal { background: transparent; border: 0; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; padding: 4px; border-radius: 8px; }
.reveal:hover { color: var(--ink); }
.secure { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); }
.secure .i { width: 15px; height: 15px; color: var(--ok); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; animation: spin2 .8s linear infinite; }
@keyframes spin2 { to { transform: rotate(360deg); } }
.lg-hero { position: relative; height: 560px; }
.lg-hero h2 { font-size: 54px; font-weight: 900; line-height: 1.3; }
.lg-hero h2 .grad-text { display: inline-block; padding-bottom: 6px; }
.lg-hero p { margin-top: 12px; max-width: 470px; font-size: 16px; line-height: 2; color: var(--ink-2); }
.float { position: absolute; border-radius: 20px; background: var(--ava-float-bg); border: 1px solid var(--ava-login-card-border); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); box-shadow: var(--shadow-2), inset 0 1px 0 var(--hl); display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; padding-inline: 12px 16px; animation: bob 8s ease-in-out infinite; }
.float b { display: block; font-size: 13px; }
.float small { font-size: 11.5px; color: var(--ink-3); }
.float .icon-tile { width: 38px; height: 38px; border-radius: 12px; }
.f1 { inset-inline-start: 0; top: 330px; }
.f2 { inset-inline-start: 220px; top: 420px; animation-delay: -2s; }
.f3 { inset-inline-start: 40px; top: 500px; animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -8px; } }
.lg-foot { position: fixed; bottom: 0; inset-inline: 0; height: 56px; padding: 0 56px; display: flex; align-items: center; gap: 18px; font-size: 12px; color: var(--ink-3); z-index: 5; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1280px) {
  .lane { grid-template-columns: 180px minmax(0, 1fr) 112px 100px; gap: 14px; }
}
@media (max-width: 1100px) {
  .lay { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .switcher span { display: none; }
  .me-t { display: none; }
  .me { padding-inline-end: 5px; }
  .stage { grid-template-columns: minmax(0, 480px); justify-content: center; padding-inline: 24px; }
  .lg-hero { display: none; }
}
@media (max-width: 760px) {
  body { padding: 10px 12px 96px; padding-inline-start: 12px; }
  .rail {
    inset-inline: 10px; top: auto; bottom: 10px; transform: none; width: auto; flex-direction: row; justify-content: space-between;
    padding: 6px 8px; border-radius: 20px; overflow-x: auto;
  }
  .rail.is-mini { width: auto; }
  .rail-item { width: 40px; height: 40px; flex: none; }
  .rail-item[data-tip]::after, .rail-item.is-active::before, .rail-toggle { display: none; }
  .rail-sep { width: 1px; height: 22px; margin: 0 2px; flex: none; }
  .topbar { grid-template-columns: auto minmax(0, 1fr); gap: 8px; height: auto; min-height: 52px; }
  .tb-start { gap: 8px; }
  .switcher, .tb-date { display: none; }
  .omnibar { grid-row: 2; grid-column: 1 / -1; width: 100%; }
  .kbds { display: none; }
  .tb-end { gap: 2px; }
  .h1 { font-size: 22px; }
  .h1 small { display: block; margin: 0; font-size: 12.5px; }
  .kpis, .grid-2, .form-grid, .skel-grid { grid-template-columns: minmax(0, 1fr); }
  .k { height: auto; min-height: 104px; }
  .lane { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; height: auto; padding: 10px; gap: 8px 12px; }
  .lane .stages { grid-column: 1 / -1; grid-row: 2; }
  .lane .st { display: none; }
  .cockpit, .chart, .vers, .rel { height: auto; min-height: 0; }
  .chart .plot-wrap { height: 220px; flex: none; }
  .plot { grid-template-columns: 34px minmax(0, 1fr); column-gap: 6px; }
  .plot-x span.m-hide { visibility: hidden; }
  .cols { display: none; }
  .item { grid-template-columns: 46px minmax(0, 1fr) auto; row-gap: 6px; }
  .item > :nth-child(n+4) { grid-column: 2 / -1; }
  .item > .acts-cell { grid-column: 3; grid-row: 1; }
  .filters .search { width: 100%; }
  .kc-top { grid-template-columns: minmax(0, 1fr); }
  .kc-top .vr { display: none; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .lg-top { padding: 0 16px; }
  .lg-top .lg-sub { display: none; }
  .stage { padding: 84px 12px 64px; }
  .card { padding: 20px 16px 16px; border-radius: 24px; }
  .otp input { width: 42px; height: 50px; font-size: 20px; }
  .lg-foot { padding: 0 16px; }
  .inspector { top: 12px; bottom: 12px; inset-inline-end: 12px; }
  .repeat-row { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
