:root {
  --primary-rgb: 59, 130, 246;
  --primary: #3B82F6;
  --primary-hi: #73A5FF;
  --primary-lo: #1260DD;
  --primary-light: var(--primary-hi);
  --primary-dark: var(--primary-lo);
  --primary-soft: rgba(var(--primary-rgb), .14);
  --primary-border: rgba(var(--primary-rgb), .5);
  --primary-glow: rgba(var(--primary-rgb), .35);
  --primary-gradient: linear-gradient(180deg, var(--primary-hi) 0%, var(--primary) 52%, var(--primary-lo) 100%);
  --primary-fg: #000;
  --accent: var(--primary-hi);
  --amber: #fde68a;
  --gold: #fcd34d;
  --danger-tint: #fecaca;
  --success: #22c55e;
  --success-light: #4ade80;
  --danger: #ef4444;
  --danger-light: #fca5a5;
  --warning: #f59e0b;
  --warning-light: #fcd34d;
  --violet: #a78bfa;
  --cyan: #22d3ee;
  --orange: #fb923c;
  --bg: #08090c;
  --surface: #0A0908;
  --text: #EBEFF6;
  --muted: #ABA497;
  --muted2: #7C766C;
  --line: rgba(255, 255, 255, .075);
  --line-strong: rgba(255, 255, 255, .14);
  --border: var(--line-strong);
  --border-soft: var(--line);
  --input: rgba(255, 255, 255, .035);
  --input-hover: rgba(255, 255, 255, .055);
  --card: linear-gradient(165deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015) 38%, rgba(255, 255, 255, .008) 60%), rgba(16, 15, 13, .46);
  --card-solid: #12110F;
  --grad: var(--primary-gradient);
  --shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .07);
  --shadow-card: 0 18px 50px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: Geist, 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --font-head: Sora, Geist, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  --sidebar-w: 270px;
  --tint: 255, 255, 255;
  --shade: 0, 0, 0;
  --heading: #fff;
  --glass-bar: rgba(12, 11, 10, .55);
  --glass-main: rgba(10, 9, 8, .42);
  --glass-pop: rgba(18, 17, 15, .97);
  --glass-sticky: rgba(10, 9, 8, .92);
  --glass-cell: rgba(14, 13, 12, .92);
  --banner-base: rgba(10, 9, 8, .85);
  --hb-band: var(--bg);
  --hb-top: 14px;
  --hb-h: 68px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: calc(100vh / var(--Zoom, 1));
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

body.no-scroll { overflow: hidden; }

::selection { background: rgba(var(--primary-rgb), .3); color: var(--text); }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 999px; box-shadow: 0 0 8px var(--primary-glow); }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }
::-webkit-scrollbar-corner { background: transparent; }
* { scrollbar-width: thin; scrollbar-color: var(--primary) transparent; }

.hidden { display: none !important; }
code, pre, .mono { font-family: var(--font-mono); }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); cursor: pointer; width: auto; }
a { color: var(--primary-light); cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.ico { width: 16px; height: 16px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.ico.sm { width: 14px; height: 14px; }
.ico.xs { width: 12px; height: 12px; }
.ico.lg { width: 20px; height: 20px; }
.ico.xl { width: 28px; height: 28px; }
.ico.xxl { width: 44px; height: 44px; }
.ico.spin { animation: spin .9s linear infinite; }

.ob-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}
.ob-bg svg {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  opacity: .55;
  animation: ob-drift 40s ease-in-out infinite alternate;
}
.ob-bg path { stroke: rgb(var(--primary-rgb)); }
.ob-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 900px;
  height: 900px;
  margin: -450px 0 0 -450px;
  background: radial-gradient(closest-side, rgba(var(--primary-rgb), .22), rgba(var(--primary-rgb), .06) 55%, transparent 72%);
  animation: ob-breathe 9s ease-in-out infinite;
}
.ob-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask: radial-gradient(70% 60% at 50% 50%, #000 20%, transparent 75%);
  mask: radial-gradient(70% 60% at 50% 50%, #000 20%, transparent 75%);
}
.ob-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 70% at 50% 50%, transparent 40%, rgba(0, 0, 0, .75));
}
html:has(#App-Wrap:not(.hidden)) .ob-glow, html:has(#App-Wrap:not(.hidden)) .ob-dots, html:has(#App-Wrap:not(.hidden)) .ob-vignette { display: none; }
html:not([data-theme=light]):has(#App-Wrap:not(.hidden)) .ob-bg { background: #060606; }
html:not([data-theme=light]):has(#App-Wrap:not(.hidden)) .ob-bg svg { opacity: .6; }

.boot-splash {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.boot-splash .ico { color: var(--primary); }

.landing-wrap { position: relative; z-index: 1; min-height: calc(100vh / var(--Zoom, 1)); }
.landing-nav {
  position: sticky;
  top: 14px;
  z-index: 20;
  max-width: 1200px;
  margin: 14px auto 0;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .085);
  background: rgba(12, 11, 10, .55);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.landing-nav .brand-chip { margin: 0; text-decoration: none; color: inherit; }
.nav-link { color: var(--muted); text-decoration: none; font-size: 14px; padding: 8px 12px; transition: color .2s ease; }
.nav-link:hover { color: var(--text); }

.hero-section {
  position: relative;
  min-height: calc(82vh / var(--Zoom, 1));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 56px;
  text-align: center;
  overflow: hidden;
}
#Hero-Canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .9;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(50% 45% at 50% 50%, rgba(var(--primary-rgb), .07), transparent 75%);
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; animation: rx-rise .9s var(--ease) both; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .035);
  font: 500 10.5px/1.4 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero-pill:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .15);
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(36px, calc(7vw / var(--Zoom, 1)), 82px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 0 22px;
  overflow-wrap: anywhere;
}
.hero-sub {
  color: var(--muted);
  font-size: clamp(15px, calc(2vw / var(--Zoom, 1)), 18px);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 34px;
}
.hero-actions { justify-content: center; }
.hero-actions .btn { padding: 14px 28px; text-decoration: none; }

.features-6 {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 24px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.feat-card {
  background: var(--card);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
}
.feat-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35), 0 0 30px rgba(var(--primary-rgb), .12), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--primary-light), var(--primary) 55%, var(--primary-dark));
  box-shadow: 0 10px 24px rgba(var(--primary-rgb), .35), inset 0 1px 0 rgba(255, 255, 255, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
}
.feat-icon .ico { width: 20px; height: 20px; }
.feat-card h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}
.feat-card p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; }
.landing-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 28px 24px;
  text-align: center;
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted2);
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: calc(100vh / var(--Zoom, 1));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.login-card,
.glow-card {
  position: relative;
  width: 100%;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: linear-gradient(165deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .016) 40%), rgba(14, 13, 12, .78);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow);
  animation: rx-modal-card .6s var(--ease) both;
}
.login-card {
  max-width: 1024px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.login-card:before,
.glow-card:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  z-index: 3;
  background: conic-gradient(from var(--ob-a), transparent 0deg, rgba(var(--primary-rgb), 0) 40deg, var(--primary-light) 90deg, rgba(var(--primary-rgb), 0) 140deg, transparent 180deg, rgba(var(--primary-rgb), 0) 220deg, rgba(var(--primary-rgb), .55) 270deg, rgba(var(--primary-rgb), 0) 320deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ob-spin 6s linear infinite;
}
.login-card:after,
.glow-card:after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
}
.glow-card { max-width: 448px; padding: 32px; }
.glow-card > * { position: relative; z-index: 2; }
.login-form-pane {
  position: relative;
  z-index: 2;
  padding: 46px 44px 32px;
  display: flex;
  flex-direction: column;
}
.login-form-pane h1 { font-family: var(--font-head); font-size: 38px; line-height: 1.1; margin: 0 0 8px; font-weight: 800; letter-spacing: -.03em; }
.login-form-pane .lead { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.login-foot { margin-top: auto; padding-top: 28px; font-size: 11px; color: var(--muted); text-align: center; }

.brand-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
  min-width: 0;
}
.brand-icon-box {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 13px;
  border: 1px solid rgba(var(--primary-rgb), .3);
  background: rgba(14, 13, 12, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(var(--primary-rgb), .22), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.brand-icon-box.sm { width: 36px; height: 36px; border-radius: 11px; }
.brand-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand-sub {
  font: 500 9.5px/1.4 var(--font-mono);
  letter-spacing: .24em;
  color: #847d72;
  text-transform: uppercase;
  margin-top: 3px;
  white-space: nowrap;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-welcome-pane {
  position: relative;
  z-index: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(closest-side at 50% 42%, rgba(var(--primary-rgb), .2), transparent 75%),
    linear-gradient(160deg, rgba(var(--primary-rgb), .08), rgba(255, 255, 255, .01));
  border-left: 1px solid var(--line);
}
.login-welcome-pane h2 { font-family: var(--font-head); font-size: 34px; margin: 0 0 10px; font-weight: 800; letter-spacing: -.03em; }
.login-welcome-pane p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 999px;
  pointer-events: none;
}
.orbit-ring:before {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--primary-light);
  box-shadow: 0 0 10px rgba(var(--primary-rgb), .9);
}
.ring-outer {
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border: 1px solid rgba(var(--primary-rgb), .22);
  animation: spin 26s linear infinite;
}
.ring-outer:before { width: 7px; height: 7px; top: -3.5px; left: calc(50% - 3.5px); }
.ring-inner {
  width: 310px;
  height: 310px;
  margin: -155px 0 0 -155px;
  border: 1px dashed rgba(255, 255, 255, .13);
  animation: spin 18s linear infinite reverse;
}
.ring-inner:before {
  width: 5px;
  height: 5px;
  top: calc(50% - 2.5px);
  right: -2.5px;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, .7);
  opacity: .8;
}

.welcome-shield {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  border: 1px solid rgba(var(--primary-rgb), .4);
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .01)), rgba(14, 13, 12, .8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  color: var(--primary-light);
  box-shadow: 0 12px 30px rgba(var(--primary-rgb), .3), 0 0 60px rgba(var(--primary-rgb), .25), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.welcome-shield:after {
  content: "";
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(var(--primary-rgb), .3), transparent 70%);
}
.welcome-shield img { filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .3)); }
.welcome-shield.sm { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 18px; }
.welcome-shield.err { color: var(--danger-light); border-color: rgba(239, 68, 68, .4); box-shadow: 0 12px 30px rgba(239, 68, 68, .18); }
.welcome-shield.ok { color: var(--success-light); border-color: rgba(34, 197, 94, .45); border-radius: 50%; box-shadow: 0 12px 30px rgba(34, 197, 94, .2); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 360px;
  margin: 26px auto 0;
}
.feature-box {
  border: 1px solid rgba(var(--primary-rgb), .2);
  background: rgba(14, 13, 12, .5);
  border-radius: 14px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font: 700 10px/1.2 var(--font);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.feature-box .ico { color: var(--primary-light); }

.free-title { font-family: var(--font-head); font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 8px; text-align: center; overflow-wrap: anywhere; }
.free-by { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 24px; overflow-wrap: anywhere; }
.free-by strong { color: var(--primary-light); }
.how-box {
  border: 1px solid rgba(var(--primary-rgb), .22);
  background: rgba(var(--primary-rgb), .06);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.how-box .how-title { display: flex; align-items: center; gap: 6px; font: 700 11px/1.4 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--primary-light); margin: 0 0 8px; }
.how-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.how-box li { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.how-box li strong { color: var(--text); }
.how-box li .warn-t { color: var(--warning-light); }
.how-box li > span:first-child { color: var(--primary-light); flex-shrink: 0; }
.how-box li.warn > span:first-child { color: var(--warning-light); }
.free-foot { margin-top: 22px; text-align: center; font-size: 12px; color: var(--muted2); }

.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  min-height: calc(100vh / var(--Zoom, 1));
  padding: 14px;
}
.sidebar {
  position: sticky;
  top: 14px;
  width: var(--sidebar-w);
  height: calc(calc(100vh / var(--Zoom, 1)) - 28px);
  flex-shrink: 0;
  background: var(--glass-bar);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  overflow: hidden;
  transition: width .3s var(--ease), transform .35s var(--ease);
}
.sb-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; min-width: 0; }
.sb-top .brand-chip { margin: 0; text-decoration: none; color: inherit; cursor: pointer; }
.sb-top { padding: 4px 8px 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(var(--tint), .08); }
.sb-brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: inherit; cursor: pointer; }
.sb-brand-logo { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--primary-gradient); box-shadow: 0 4px 18px rgba(var(--primary-rgb), .45); transition: background .25s ease, box-shadow .25s ease; }
.sb-brand-logo img { width: 18px; height: auto; display: block; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); pointer-events: none; -webkit-user-drag: none; }
.sb-brand h2 { margin: 0; font: 800 1.18rem/1.15 Sora, var(--font-head); letter-spacing: -.025em; color: #fff; white-space: nowrap; }
.sb-brand-sub { display: block; margin-top: 3px; font: 800 .65rem/1.3 Geist, var(--font); letter-spacing: .16em; text-transform: uppercase; color: #8a8377; white-space: nowrap; }
html[data-theme=light] .sb-brand h2 { color: var(--text); }
.sb-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-right: 2px; }
.nav-group { padding-top: 14px; margin-top: 4px; }
.nav-group:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.nav-group-label {
  font: 800 .55rem/1.3 var(--font);
  color: #8a8377;
  text-transform: uppercase;
  letter-spacing: .18em;
  padding: 0 0 8px;
}
.nav-item {
  position: relative;
  width: 100%;
  height: 42px;
  text-align: left;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0 16px;
  font-family: var(--font);
  font-size: .86rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 3px;
  text-decoration: none;
  box-shadow: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.nav-item .ico { display: block; flex: none; width: 18px; height: 18px; stroke-width: 1.9; }
.nav-item:hover { background: rgba(var(--tint), .05); color: var(--text); }
.nav-item.active {
  background: var(--primary);
  border-color: transparent;
  color: #fff;
  font-weight: 500;
  box-shadow: 0 0 12px rgba(var(--primary-rgb), .32);
}
.nav-item.active:hover { background: var(--primary); color: #fff; }
.nav-item .nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .nav-item { height: 42px; padding: 0 12px; gap: 12px; color: var(--text); font-size: 14px; font-weight: 500; }
.sidebar .nav-item .ico { color: color-mix(in srgb, var(--text) 78%, transparent); }
.sidebar .nav-item.active .ico { color: #fff; }
.sidebar .nav-group { padding-top: 4px; margin-top: 0; }
.sidebar .nav-group-label { padding: 8px 6px 6px; }
.sidebar .nav-group:first-child .nav-group-label { padding-top: 0; }
.sb-crown { display: grid; place-items: center; flex: none; filter: drop-shadow(0 0 6px rgba(250, 204, 21, .45)); }
.sb-crown .ico { width: 15px !important; height: 15px !important; color: #facc15 !important; }
.nav-item.active .sb-crown { filter: none; }
.nav-item.active .sb-crown .ico { color: #fff !important; }
.sidebar .nav-item.active, .sidebar .nav-item.active:hover { background: linear-gradient(90deg, rgba(var(--primary-rgb), .24), rgba(var(--primary-rgb), .03)); border-color: rgba(var(--primary-rgb), .22); color: #fff; box-shadow: none; }
.sidebar .nav-item.active:before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); box-shadow: 0 0 12px var(--primary); }
.sidebar .nav-item.active .ico { color: var(--primary-light); }
.sidebar .nav-item.active .sb-crown { filter: drop-shadow(0 0 6px rgba(250, 204, 21, .45)); }
.sidebar .nav-item.active .sb-crown .ico { color: #facc15 !important; }
html[data-theme=light] .sidebar .nav-item.active, html[data-theme=light] .sidebar .nav-item.active:hover { color: var(--text); }
.sb-abajo:empty { display: none; }
.sb-abajo { flex: none; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.sb-abajo .nav-item:last-child { margin-bottom: 0; }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  color: var(--primary-fg);
  font: 800 13px/1 var(--font-head);
  box-shadow: 0 6px 16px rgba(var(--primary-rgb), .3), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.avatar.sq { border-radius: 12px; width: 46px; height: 46px; font-size: 16px; }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }
.avatar.soft { background: rgba(var(--primary-rgb), .18); color: var(--primary-light); box-shadow: none; }

.drawer-backdrop { display: none; }
.sb-close { display: none !important; }

.main-area {
  flex: 1;
  min-width: 0;
  padding: 26px 28px 40px;
  background: var(--glass-main);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.main-area > section:not(.hidden) { animation: rx-rise .45s var(--ease) both; }
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.page-head > div:first-child { min-width: 0; }
.page-head h2 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.025em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-wrap: anywhere;
}
.page-head h2 > .ico { color: var(--primary-light); width: 26px; height: 26px; }
.page-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font: 600 10.5px/1.4 var(--font-mono);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--primary-light);
}
.page-sub { color: var(--muted); font-family: Inter, system-ui, sans-serif; font-size: 15px; margin: 6px 0 0; line-height: 1.5; letter-spacing: -.005em; }
.page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.card {
  position: relative;
  background: var(--card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.card.flush { padding: 0; overflow: hidden; }
.card.clip { overflow: hidden; }
.card.narrow { max-width: 720px; }
.card h3 { font-family: var(--font); font-size: 1rem; font-weight: 700; letter-spacing: -.015em; color: var(--heading); margin: 0; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.card-head .ttl { display: flex; align-items: center; gap: 10px; min-width: 0; }
.card-head .ttl > .ico { color: var(--primary-light); }
.card-head h3 { font-family: Inter, system-ui, sans-serif; font-size: 16px; font-weight: 700; letter-spacing: -.015em; color: var(--text); }
.card-desc { color: var(--muted); font-family: Inter, system-ui, sans-serif; font-size: 14px; line-height: 1.55; margin: 0 0 16px; letter-spacing: -.005em; }
.section-title { font-family: var(--font-head); font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 30px 0 4px; }
.section-sub { color: var(--muted); font-size: 12.5px; margin: 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.stats-grid.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stats-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stats-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  transition: border-color .3s ease, transform .3s var(--ease), background .25s ease;
  text-align: left;
  min-width: 0;
}
.stat-card:after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), .6), transparent);
}
.stat-card.is-click { cursor: pointer; }
.stat-card.is-click:hover { border-color: var(--primary-border); transform: translateY(-2px); }
.stat-card.is-active { border-color: rgba(var(--primary-rgb), .6); background: linear-gradient(165deg, rgba(var(--primary-rgb), .16), rgba(var(--primary-rgb), .03)), rgba(16, 15, 13, .5); box-shadow: 0 0 24px rgba(var(--primary-rgb), .14), var(--shadow-card); }
.stat-label { display: flex; align-items: center; gap: 7px; font: 800 .6rem/1.4 var(--font); color: #8a8377; text-transform: uppercase; letter-spacing: .18em; }
.stat-label .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--tint), .2); flex-shrink: 0; }
.stat-card.is-active .stat-label .dot { background: var(--primary-light); box-shadow: 0 0 8px var(--primary-glow); }
.stat-val { font-family: var(--font-head); font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin-top: 6px; line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-sub { font-size: 11.5px; color: var(--muted2); margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat-card.wide { max-width: 24rem; margin-bottom: 18px; }
.stat-icon { display: flex; align-items: center; gap: 14px; }
.stat-icon .si-box { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(var(--shade), .35); border: 1px solid var(--line); flex-shrink: 0; }
.stat-icon .stat-val { font-size: 32px; margin-top: 2px; }

.c-ok { color: var(--success-light) !important; }
.c-err { color: var(--danger-light) !important; }
.c-warn { color: var(--warning-light) !important; }
.c-pri { color: var(--primary-light) !important; }
.c-vio { color: var(--violet) !important; }
.c-org { color: var(--orange) !important; }
.c-mut { color: var(--muted) !important; }
.c-mut2 { color: var(--muted2) !important; }

.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid > *, .stack > *, .stats-grid > * { min-width: 0; }
.grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.nowrap { flex-wrap: nowrap; }
.row.tight { gap: 6px; }
.stack { display: grid; gap: 12px; }
.stack.sm { gap: 8px; }
.stack.lg { gap: 18px; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 14px; }
.mt-sm { margin-top: 8px; }
.mb0 { margin-bottom: 0 !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.xsmall { font-size: 11px; }
.break { overflow-wrap: anywhere; word-break: break-word; }
.nowrap-t { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.layout-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: start; }

label { display: block; font-size: 13px; font-weight: 700; letter-spacing: -.005em; color: var(--text); margin-bottom: 7px; }
label.check { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 500; font-size: 13px; cursor: pointer; color: var(--text); }
.lbl-sm { display: block; font: 700 13px/1.3 var(--font); letter-spacing: -.005em; color: var(--text); margin-bottom: 8px; }
input, select, textarea {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--input);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
textarea { resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--muted2); }
input:hover, select:hover, textarea:hover { background-color: var(--input-hover); }
input:focus, select:focus, textarea:focus {
  background-color: var(--input-hover);
  border-color: var(--primary-border);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .12), 0 0 22px rgba(var(--primary-rgb), .08);
}
input:disabled, input[readonly], textarea:disabled, select:disabled { color: var(--muted); cursor: default; }
input:disabled, select:disabled, textarea:disabled { opacity: .55; }
input.sm, select.sm { padding: 9px 14px; font-size: 13px; border-radius: 10px; }
input.xs, select.xs { padding: 5px 8px; font-size: 12px; border-radius: 8px; }
input.num { width: 74px; }
input.mono, textarea.mono { font-family: var(--font-mono); font-size: 13px; }
input[type=datetime-local] { color-scheme: dark; }
select { cursor: pointer; }
select option { background: var(--card-solid); color: var(--text); }

.input-ico { position: relative; }
.input-ico > .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted2); pointer-events: none; }
.input-ico > input { padding-left: 38px; }

.prefix-field {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--input);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.prefix-field:focus-within { border-color: var(--primary-border); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .12); }
.prefix-field .pf-pre { display: flex; align-items: center; flex-shrink: 0; padding: 0 12px; font: 500 12.5px/1.3 var(--font-mono); color: var(--muted); background: rgba(var(--tint), .03); border-right: 1px solid var(--line); white-space: nowrap; max-width: 70%; overflow: hidden; text-overflow: ellipsis; }
.prefix-field input { border: 0; background: transparent; box-shadow: none !important; border-radius: 0; }

.pw-wrap { position: relative; }
.pw-wrap > input { padding-right: 44px; }
.pw-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}
.pw-eye, .pw-eye:hover, .pw-eye:active, .pw-eye:focus, .pw-eye:focus-visible { transform: translateY(-50%); background: transparent; border-color: transparent; box-shadow: none; outline: none; }
.pw-eye:hover { color: var(--text); }
.pw-field { position: relative; min-width: 0; }
.pw-field input { padding-right: 78px; font-family: var(--font-mono); font-size: 13px; }
.pw-field .pw-tools { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: flex; gap: 2px; }

button, .btn {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: var(--primary-fg);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 20px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -.005em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(var(--primary-rgb), .32);
  transition: transform .25s var(--ease), box-shadow .25s ease, background .2s ease, border-color .2s ease, filter .2s ease, opacity .2s ease;
}
button:after, .btn:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: skew(-18deg);
  transition: left .6s var(--ease);
  pointer-events: none;
}
button:hover, .btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 0 18px rgba(var(--primary-rgb), .45);
}
button:hover:after, .btn:hover:after { left: 120%; }
button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 3px; }
button:active, .btn:active { transform: translateY(0); }
button:disabled, button:disabled:hover { opacity: .5; cursor: not-allowed; transform: none; filter: none; }
button:disabled:after { display: none; }
button.sec, .btn.sec {
  background: var(--input);
  color: var(--text);
  border: 1px solid var(--line-strong);
  font-weight: 600;
  box-shadow: none;
}
button.sec:hover, .btn.sec:hover { background: var(--input-hover); border-color: var(--primary-border); box-shadow: none; filter: none; }
button.pri-o, .btn.pri-o {
  background: rgba(var(--primary-rgb), .1);
  color: var(--primary-light);
  border: 1px solid rgba(var(--primary-rgb), .4);
  font-weight: 700;
  box-shadow: none;
}
button.pri-o:hover, .btn.pri-o:hover { background: rgba(var(--primary-rgb), .18); border-color: rgba(var(--primary-rgb), .7); box-shadow: 0 0 18px rgba(var(--primary-rgb), .16); filter: none; }
button.danger, .btn.danger {
  background: rgba(239, 68, 68, .1);
  color: var(--danger-light);
  border: 1px solid rgba(239, 68, 68, .35);
  font-weight: 600;
  box-shadow: none;
}
button.danger:hover, .btn.danger:hover { background: rgba(239, 68, 68, .18); border-color: rgba(239, 68, 68, .6); box-shadow: 0 0 18px rgba(239, 68, 68, .18); filter: none; }
button.danger-solid { background: linear-gradient(180deg, #f87171, #dc2626); color: #fff; box-shadow: 0 8px 22px rgba(239, 68, 68, .28), inset 0 1px 0 rgba(255, 255, 255, .35); }
button.danger-solid:hover { box-shadow: 0 12px 30px rgba(239, 68, 68, .38), inset 0 1px 0 rgba(255, 255, 255, .35); }
button.ok-o {
  background: rgba(34, 197, 94, .1);
  color: var(--success-light);
  border: 1px solid rgba(34, 197, 94, .35);
  font-weight: 700;
  box-shadow: none;
}
button.ok-o:hover { background: rgba(34, 197, 94, .18); border-color: rgba(34, 197, 94, .6); box-shadow: none; filter: none; }
button.sec:after, button.danger:after, button.pri-o:after, button.ok-o:after, .btn.sec:after, .btn.pri-o:after, .btn.danger:after, .nav-item:after { display: none; }
button.sm, .btn.sm { padding: 7px 12px; font-size: 12.5px; border-radius: 10px; }
button.xs, .btn.xs { padding: 4px 9px; font-size: 11.5px; border-radius: 8px; gap: 5px; }
button.lg, .btn.lg { padding: 14px 20px; font-size: 15px; }
button.block, .btn.block { width: 100%; }

button.plain {
  background: transparent;
  color: inherit;
  border: 0;
  padding: 0;
  font: inherit;
  box-shadow: none;
  border-radius: 0;
  white-space: normal;
  text-align: inherit;
  display: block;
}
button.plain:after { display: none; }
button.plain:hover { transform: none; filter: none; box-shadow: none; }
button.link {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  box-shadow: none;
  text-decoration: none;
}
button.link:after { display: none; }
button.link:hover { color: var(--primary-light); transform: none; filter: none; box-shadow: none; }
button.link.u { text-decoration: underline; text-underline-offset: 3px; }
a.link-a { color: var(--primary-light); text-decoration: none; font-size: 12px; }
a.link-a:hover { text-decoration: underline; }

.ico-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  box-shadow: none;
  flex-shrink: 0;
}
.ico-btn:after { display: none; }
.ico-btn:hover { background: rgba(var(--tint), .06); color: var(--text); transform: none; filter: none; box-shadow: none; }
.ico-btn.bd { border-color: var(--line-strong); }
.ico-btn.sm { width: 30px; height: 30px; border-radius: 8px; }
.ico-btn.xs { width: 26px; height: 26px; border-radius: 7px; }
.ico-btn.pri { color: var(--primary-light); }
.ico-btn.pri:hover { background: rgba(var(--primary-rgb), .14); color: var(--primary-light); }
.ico-btn.pri.bd { border-color: rgba(var(--primary-rgb), .35); }
.ico-btn.ok:hover { background: rgba(34, 197, 94, .12); color: var(--success-light); }
.ico-btn.ok.bd { border-color: rgba(34, 197, 94, .35); color: var(--success-light); }
.ico-btn.err:hover { background: rgba(239, 68, 68, .12); color: var(--danger-light); }
.ico-btn.err.bd { border-color: rgba(239, 68, 68, .35); color: var(--danger-light); }
.ico-btn.org { color: var(--orange); }
.ico-btn.org:hover { background: rgba(251, 146, 60, .12); color: var(--orange); }
.ico-btn.on { background: rgba(var(--primary-rgb), .16); color: var(--primary-light); }

.switch {
  position: relative;
  width: 40px;
  height: 22px;
  padding: 0;
  border-radius: 999px;
  background: rgba(var(--tint), .12);
  border: 1px solid var(--line-strong);
  box-shadow: none;
  flex-shrink: 0;
  overflow: visible;
  transition: background .25s ease, border-color .25s ease;
}
.switch:after { display: none; }
.switch:before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.switch[aria-checked=true] { background: var(--primary); border-color: var(--primary-light); box-shadow: 0 0 12px rgba(var(--primary-rgb), .35); }
.switch[aria-checked=true]:before { transform: translateX(18px); }
.switch.ok-err { background: rgba(127, 29, 29, .8); border-color: rgba(239, 68, 68, .45); }
.switch.ok-err[aria-checked=true] { background: #16a34a; border-color: #4ade80; box-shadow: 0 0 12px rgba(34, 197, 94, .3); }
.switch:hover { transform: none; filter: none; }
.switch-wrap { display: inline-flex; align-items: center; gap: 8px; }
.switch-tag { font: 800 10px/1 var(--font); letter-spacing: .06em; min-width: 26px; }

.toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(var(--tint), .025);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.toggle-row:hover { background: rgba(var(--tint), .045); border-color: var(--line-strong); }
.toggle-row .tr-title { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--primary-light); }
.toggle-row .tr-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 20px; }
.tab {
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--input);
  color: var(--muted);
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: none;
}
.tab:after { display: none; }
.tab:hover { color: var(--text); border-color: var(--primary-border); transform: none; filter: none; box-shadow: none; }
.tab.active { background: var(--grad); color: var(--primary-fg); border-color: transparent; box-shadow: 0 8px 22px rgba(var(--primary-rgb), .28), inset 0 1px 0 rgba(255, 255, 255, .5); }

.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: rgba(var(--shade), .25); }
.seg.full { display: flex; width: 100%; }
.seg button {
  flex: 1;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  box-shadow: none;
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button:after { display: none; }
.seg button:hover { color: var(--text); transform: none; filter: none; box-shadow: none; background: rgba(var(--tint), .04); }
.seg button.active { background: rgba(var(--primary-rgb), .2); color: var(--primary-light); }
.seg button.active.ok { background: rgba(34, 197, 94, .16); color: var(--success-light); }
.seg button.active.err { background: rgba(239, 68, 68, .16); color: var(--danger-light); }
.seg button.active.warn { background: rgba(245, 158, 11, .16); color: var(--warning-light); }

.badge, .chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: rgba(var(--tint), .04);
  white-space: nowrap;
  line-height: 1.3;
}
.chip.sq { border-radius: 7px; }
.chip.xs { font-size: 9.5px; padding: 2px 6px; letter-spacing: .06em; text-transform: uppercase; }
.chip.up { text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
.badge.ok, .chip.ok { background: rgba(34, 197, 94, .12); color: var(--success-light); border-color: rgba(34, 197, 94, .3); }
.badge.err, .chip.err { background: rgba(239, 68, 68, .12); color: var(--danger-light); border-color: rgba(239, 68, 68, .32); }
.badge.acc, .chip.pri { background: rgba(var(--primary-rgb), .14); color: var(--primary-light); border-color: rgba(var(--primary-rgb), .32); }
.chip.warn { background: rgba(245, 158, 11, .12); color: var(--warning-light); border-color: rgba(245, 158, 11, .32); }
.chip.vio { background: rgba(167, 139, 250, .14); color: var(--violet); border-color: rgba(167, 139, 250, .3); }
.chip.cyan { background: rgba(34, 211, 238, .12); color: var(--cyan); border-color: rgba(34, 211, 238, .28); }
.chip.org { background: rgba(251, 146, 60, .12); color: var(--orange); border-color: rgba(251, 146, 60, .3); }
.chip.mut { background: rgba(var(--tint), .05); color: var(--muted); border-color: var(--line-strong); }
.chip.bare { background: transparent; border-color: transparent; padding-left: 0; padding-right: 0; }
.dot-s { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: currentColor; box-shadow: 0 0 6px currentColor; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--success-light); box-shadow: 0 0 8px rgba(52, 211, 153, .8); }
.live-dot.off { background: var(--danger); box-shadow: 0 0 8px rgba(239, 68, 68, .8); }
.pulse { animation: pulse 1.4s ease-in-out infinite; }

.callout {
  border-radius: 14px;
  border: 1px solid rgba(var(--primary-rgb), .25);
  background: rgba(var(--primary-rgb), .06);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.callout h4 { margin: 0 0 6px; font-size: 13.5px; color: var(--primary-light); }
.callout strong { color: var(--text); }
.callout code { color: var(--primary-light); }
.callout.warn { border-color: rgba(245, 158, 11, .3); background: rgba(245, 158, 11, .07); }
.callout.warn h4 { color: var(--warning-light); }
.callout.err { border-color: rgba(239, 68, 68, .3); background: rgba(239, 68, 68, .08); color: var(--danger-tint); }
.callout.err h4 { color: var(--danger-light); }
.callout.ok { border-color: rgba(34, 197, 94, .28); background: rgba(34, 197, 94, .07); }
.callout.ok h4 { color: var(--success-light); }
.callout.row-c { display: flex; align-items: flex-start; gap: 10px; }

.state {
  padding: 34px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.state > .ico { color: var(--primary); }
.state.err { border: 1px dashed rgba(239, 68, 68, .35); background: rgba(239, 68, 68, .05); border-radius: 16px; }
.state.err > .ico { color: var(--danger-light); }
.state .st-title { font-weight: 700; font-size: 14px; color: var(--text); }
.state.err .st-title { color: var(--danger-light); }
.state.empty { border: 1px dashed var(--line-strong); border-radius: 16px; }
.state.tall { min-height: calc(50vh / var(--Zoom, 1)); }
.state .st-big { font: 600 12px/1.4 var(--font-mono); letter-spacing: .24em; text-transform: uppercase; }
.guard-box { max-width: 560px; margin: 40px auto; text-align: center; padding: 34px 26px; }
.guard-box h2 { font-family: var(--font-head); font-size: 24px; margin: 12px 0 8px; font-weight: 800; }
.guard-box p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.guard-box > .ico { color: var(--muted2); }

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(var(--tint), .04);
  height: 62px;
}
.skeleton:after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(var(--tint), .06), transparent);
  animation: shimmer 1.3s infinite;
}
.sk-list { display: grid; gap: 8px; }

.sticky-bar {
  position: sticky;
  top: 0;
  z-index: 15;
  padding: 16px 16px 12px;
  background: var(--glass-sticky);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.list-pad { padding: 12px 16px 16px; }
.list-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); text-align: center; font-size: 12px; color: var(--muted2); }
.sentinel { display: flex; justify-content: center; padding: 14px 0; color: var(--primary); }
.sel-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sel-bar .sel-count { font-weight: 800; font-size: 13px; color: var(--primary-light); }
.sel-bar.err-box { padding: 4px 8px; border-radius: 10px; background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .22); }
.sel-bar.err-box .sel-count { color: var(--danger-light); font-size: 12px; }

.uid-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(var(--shade), .2);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
  min-width: 0;
}
.uid-item + .uid-item { margin-top: 8px; }
.uid-item:hover { background: rgba(var(--tint), .04); }
.uid-item.sel { background: rgba(var(--primary-rgb), .1); border-color: rgba(var(--primary-rgb), .5); }
.uid-item.static { cursor: default; }
.uid-item.dim { opacity: .62; }
.uid-item .ui-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.uid-item .ui-main > input { pointer-events: none; }
.uid-item.static .ui-main > input { pointer-events: auto; }
.uid-item .ui-text { min-width: 0; flex: 1; }
.uid-item .ui-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; min-width: 0; }
.uid-item .ui-name { font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: 100%; }
.uid-item .ui-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: var(--muted); }
.uid-item .ui-added { font-size: 10.5px; color: var(--muted2); margin-top: 3px; }
.uid-code { font-family: var(--font-mono); color: var(--primary-light); background: rgba(var(--primary-rgb), .1); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.uid-item .ui-acts { display: flex; gap: 2px; flex-shrink: 0; }

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(var(--shade), .2);
  min-width: 0;
  font-size: 13px;
}
.list-row + .list-row { margin-top: 8px; }
.list-row.click { cursor: pointer; }
.list-row.click:hover { border-color: var(--line-strong); background: rgba(var(--tint), .035); }
.list-row.ok { border-color: rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .05); }
.list-row.open { border-color: rgba(var(--primary-rgb), .4); background: rgba(var(--shade), .35); }
.list-row .lr-main { min-width: 0; flex: 1; }
.list-row .lr-icon { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(var(--primary-rgb), .12); color: var(--primary-light); }
.list-row.ok .lr-icon { background: rgba(34, 197, 94, .14); color: var(--success-light); }
.wrap-box { border-radius: 13px; border: 1px solid var(--line); background: rgba(var(--shade), .2); }
.wrap-box + .wrap-box { margin-top: 8px; }
.wrap-box.open { border-color: rgba(var(--primary-rgb), .4); }
.wrap-box .list-row { border: 0; background: transparent; }
.wrap-box .wb-body { padding: 0 13px 12px; border-top: 1px solid var(--line); }
.scroll-box { max-height: 400px; overflow-y: auto; padding-right: 4px; }
.scroll-box.sm { max-height: 200px; }
.scroll-box.md { max-height: 330px; }
.uid-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.uid-chips span { font: 500 10.5px/1.4 var(--font-mono); padding: 1px 6px; border-radius: 6px; color: var(--success-light); background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .2); }

.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 0; }
.kv > div { min-width: 0; }
.kv dt { font: 600 10px/1.4 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted2); margin-bottom: 5px; display: flex; align-items: center; gap: 6px; justify-content: space-between; flex-wrap: wrap; }
.kv dt .dt-l { display: inline-flex; align-items: center; gap: 6px; }
.kv dd { margin: 0; font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.kv .full { grid-column: 1 / -1; }
.kv .amber { color: var(--amber); font-family: var(--font-mono); font-size: 12.5px; }

.ann-banner, .sub-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(var(--primary-rgb), .32);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), .12), var(--banner-base) 60%);
  animation: rx-rise .45s var(--ease) both;
}
.ann-banner:before, .sub-banner:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}
.ann-banner .ab-ico, .sub-banner .ab-ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(var(--primary-rgb), .15);
  border: 1px solid rgba(var(--primary-rgb), .3);
  color: var(--primary-light);
}
.ab-body { flex: 1; min-width: 0; }
.ab-kicker { font: 700 10px/1.4 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--primary-light); margin-bottom: 4px; }
.ab-text { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; word-break: break-word; }
.ab-text a { color: var(--primary-light); }
.ab-text ul, .ab-text ol { margin: 4px 0; padding-left: 20px; }
.ab-text p { margin: 0 0 4px; }
.sub-banner.warn { border-color: rgba(251, 146, 60, .42); background: linear-gradient(135deg, rgba(251, 146, 60, .12), var(--banner-base) 60%); }
.sub-banner.warn:before { background: linear-gradient(90deg, transparent, var(--orange), transparent); }
.sub-banner.warn .ab-ico { background: rgba(251, 146, 60, .14); border-color: rgba(251, 146, 60, .32); color: var(--orange); }
.sub-banner.warn .ab-kicker { color: var(--orange); }
.sub-banner.warn .ab-text { color: #ffedd5; }
.sub-banner.exp { border-color: rgba(239, 68, 68, .5); background: linear-gradient(135deg, rgba(239, 68, 68, .14), var(--banner-base) 60%); }
.sub-banner.exp:before { background: linear-gradient(90deg, transparent, var(--danger), transparent); }
.sub-banner.exp .ab-ico { background: rgba(239, 68, 68, .18); border-color: rgba(239, 68, 68, .4); color: var(--danger-light); }
.sub-banner.exp .ab-kicker { color: var(--danger-light); }
.sub-banner.exp .ab-text { color: #fee2e2; }
.sub-banner .sb-live { margin: 6px 0 0; font: 500 12px/1.4 var(--font-mono); color: rgba(253, 186, 116, .75); font-variant-numeric: tabular-nums; }

.sub-cd { min-width: 0; }
.cd-box {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  min-width: 140px;
}
.cd-box .cd-val { font: 700 12px/1.25 var(--font-mono); font-variant-numeric: tabular-nums; }
.cd-box .cd-lbl { font: 600 9px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-top: 2px; }
.cd-box.unl { color: var(--primary-light); border-color: rgba(var(--primary-rgb), .3); font-weight: 700; align-items: center; min-width: 0; }
.cd-box.ok { color: #6ee7b7; border-color: rgba(16, 185, 129, .3); background: rgba(16, 185, 129, .1); }
.cd-box.warning { color: var(--amber); border-color: rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .1); }
.cd-box.critical { color: #fed7aa; border-color: rgba(249, 115, 22, .5); background: rgba(249, 115, 22, .14); animation: pulse 1.6s ease-in-out infinite; }
.cd-box.expired { color: var(--danger-light); border-color: rgba(239, 68, 68, .6); background: rgba(239, 68, 68, .18); box-shadow: 0 0 0 1px rgba(239, 68, 68, .3); }
.sub-editor { display: grid; gap: 6px; min-width: 170px; }
.sub-editor input[type=datetime-local] { padding: 5px 8px; font-size: 11.5px; border-radius: 8px; }
.sub-editor label.check { font-size: 11px; color: var(--muted); gap: 7px; }

.sub-badge { padding: 16px; border-radius: 16px; border: 1px solid; }
.sub-badge .sbg-big { font: 800 24px/1.2 var(--font-mono); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.sub-badge .sbg-lbl { font: 600 10px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-top: 4px; }
.sub-badge .sbg-line { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.sub-badge.ok { border-color: rgba(16, 185, 129, .25); background: rgba(16, 185, 129, .08); color: #34d399; }
.sub-badge.warn { border-color: rgba(251, 146, 60, .25); background: rgba(251, 146, 60, .08); color: var(--orange); }
.sub-badge.err { border-color: rgba(239, 68, 68, .25); background: rgba(239, 68, 68, .08); color: #f87171; }
.sub-badge strong { color: inherit; }

.maxbots { display: inline-flex; align-items: center; gap: 6px; }
.maxbots .mb-unl { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 9px; border: 1px solid rgba(var(--primary-rgb), .3); background: rgba(var(--primary-rgb), .1); color: var(--primary-light); font-weight: 700; font-size: 12.5px; }
.maxbots input { width: 70px; padding: 6px 8px; font-size: 12.5px; border-radius: 9px; }
.maxbots.compact input { width: 58px; padding: 5px 7px; font-size: 12px; }
.maxbots.compact .mb-unl { padding: 5px 8px; }
.maxbots .mb-hash { font: 800 11px/1 var(--font-mono); }

.table-wrap { overflow-x: auto; min-width: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font: 700 .7rem/1.4 var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; background: rgba(0, 0, 0, .3); white-space: nowrap; }
tbody tr { transition: background .2s ease; }
tbody tr:hover { background: rgba(var(--tint), .025); }
td.mono { color: var(--text); font-size: 13px; }
table.compact th, table.compact td { padding: 9px 10px; font-size: 12.5px; }
table.wide { min-width: 900px; }
.td-actions { white-space: nowrap; text-align: right; }
.td-top { vertical-align: top; }
thead.sticky th { position: sticky; top: 0; z-index: 5; background: var(--glass-pop); }
.only-mob { display: none; }
.m-card { padding: 14px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; min-width: 0; }
.m-card:last-child { border-bottom: 0; }
.m-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; font-size: 12px; color: var(--muted); }
.m-grid > div { min-width: 0; overflow-wrap: anywhere; }
.m-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.m-nums > * { min-width: 0; margin: 0; }
.m-nums input.num { width: 100%; }

.dropdown { position: relative; display: inline-block; }
.dd-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 150px;
  padding: 5px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: var(--glass-pop);
  box-shadow: var(--shadow);
  animation: rx-pop .22s cubic-bezier(.34, 1.56, .64, 1) both;
}
.dd-menu button {
  width: 100%;
  justify-content: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: none;
}
.dd-menu button:after { display: none; }
.dd-menu button:hover { background: rgba(var(--primary-rgb), .14); transform: none; filter: none; box-shadow: none; }
.dd-menu button:disabled { opacity: .5; background: rgba(var(--primary-rgb), .08); }
.dd-menu button .dd-cur { margin-left: auto; font-size: 9.5px; opacity: .7; }
.dd-menu button.adm { color: var(--gold); }
.role-btn { display: inline-flex; align-items: center; gap: 6px; }
.role-btn.adm { color: var(--gold); border-color: rgba(251, 191, 36, .4); background: rgba(245, 158, 11, .14); }

.code-card { border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: #0d0f14; }
.code-card .cc-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .35); font: 600 10.5px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.code-card pre { margin: 0; border: 0; padding: 14px; font-size: 12.5px; line-height: 1.6; color: #cbd5e1; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
pre { border: 1px solid var(--line); color: var(--text); }
pre.plain-pre { margin: 10px 0 0; padding: 12px; border-radius: 10px; background: rgba(0, 0, 0, .3); font-size: 11.5px; overflow-x: auto; color: #fef3c7; }
.param-row { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.param-row .pr-name { width: 110px; flex-shrink: 0; font-family: var(--font-mono); color: var(--primary-light); font-weight: 700; overflow-wrap: anywhere; }
.param-row .pr-desc { flex: 1; color: var(--muted); min-width: 0; }
.param-row .pr-req { color: var(--primary-light); font-size: 11px; font-weight: 700; margin-left: 4px; }
.method { display: inline-flex; padding: 2px 7px; border-radius: 6px; font: 800 10.5px/1.4 var(--font-mono); background: rgba(34, 197, 94, .16); color: var(--success-light); }
.method.get { background: rgba(var(--primary-rgb), .18); color: var(--primary-light); }
.ref-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(var(--shade), .2); }
.ref-list .rl-head { padding: 9px 14px; border-bottom: 1px solid var(--line); font: 600 10.5px/1.4 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ref-list .rl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 9px 14px; font-size: 13px; }
.ref-list .rl-row + .rl-row { border-top: 1px solid var(--line); }
.ref-list .rl-num { width: 18px; color: var(--muted2); }
.ref-list .rl-title { min-width: 150px; font-weight: 600; }
.key-box { display: flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--shade), .25); min-width: 0; }
.key-box input { flex: 1; width: auto; min-width: 0; border: 0; background: transparent; padding: 6px 0; font-family: var(--font-mono); font-size: 13px; box-shadow: none !important; }
.key-box > button { flex-shrink: 0; }
.ep-title { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.ep-title .ico { color: var(--primary-light); }
.ep-sub { font: 700 12.5px/1.4 var(--font); color: var(--primary-light); margin: 18px 0 8px; }

.chart-box { position: relative; width: 100%; height: 300px; min-width: 0; }
.chart-box svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-box .ch-grid { stroke: rgba(var(--tint), .06); stroke-dasharray: 3 3; }
.chart-box .ch-axis { fill: rgba(var(--tint), .38); font: 500 11px var(--font); }
.chart-box .ch-line { fill: none; stroke: var(--primary-light); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(var(--primary-rgb), .55)); }
.chart-box .ch-pt { fill: var(--card-solid); stroke: var(--primary-light); stroke-width: 2; }
.chart-box .ch-pt.on { fill: var(--primary-light); }
.chart-box .ch-hit { fill: transparent; cursor: crosshair; }
.chart-box .ch-cursor { stroke: rgba(var(--primary-rgb), .45); stroke-width: 1; }
.chart-tip {
  position: absolute;
  pointer-events: none;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid rgba(var(--primary-rgb), .35);
  background: var(--glass-pop);
  font-size: 12px;
  white-space: nowrap;
  transform: translate(-50%, -115%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  z-index: 3;
}
.chart-tip b { display: block; color: var(--muted); font-weight: 600; font-size: 11px; margin-bottom: 2px; }
.chart-tip span { color: var(--primary-light); font-weight: 700; }

.user-card-x { padding: 0; overflow: hidden; transition: border-color .25s ease; }
.user-card-x:hover { border-color: rgba(var(--primary-rgb), .3); }
.ux-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 18px 20px; background: rgba(var(--shade), .2); border-bottom: 1px solid var(--line); }
.ux-who { display: flex !important; align-items: center; gap: 14px; min-width: 0; cursor: pointer; max-width: 100%; }
.ux-who .ux-txt { min-width: 0; }
.ux-who h3 { font-family: var(--font-head); font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s ease; }
.ux-who:hover h3 { color: var(--primary-light); }
.ux-who .ux-id { font: 500 11.5px/1.4 var(--font-mono); color: var(--muted2); }
.ux-who .ux-mail { font-size: 12px; color: var(--primary-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.ux-who .chev { color: var(--muted); transition: transform .3s var(--ease); }
.ux-who .chev.open { transform: rotate(180deg); }
.ux-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 0; }
.ux-right .row { justify-content: flex-end; }
.ux-paused { display: flex; align-items: center; gap: 8px; padding: 10px 20px; background: rgba(239, 68, 68, .1); border-bottom: 1px solid rgba(239, 68, 68, .2); font-size: 12px; color: var(--danger-tint); }
.ux-paused .ico { color: var(--danger-light); }
.ux-details { padding: 18px 20px; border-bottom: 1px solid var(--line); background: rgba(var(--shade), .1); }
.ux-stats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.ux-stat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 72px; padding: 12px 6px; background: var(--glass-cell); border-radius: 0; color: var(--text); box-shadow: none; }
.ux-stat:after { display: none; }
.ux-stat:hover { background: rgba(var(--tint), .04); transform: none; filter: none; box-shadow: none; }
.ux-stat.active { background: rgba(var(--primary-rgb), .12); box-shadow: inset 0 2px 0 var(--primary); }
.ux-stat .us-val { font: 800 20px/1 var(--font-head); font-variant-numeric: tabular-nums; }
.ux-stat .us-lbl { font: 600 9.5px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ux-panel { display: flex; flex-direction: column; border-top: 1px solid rgba(var(--primary-rgb), .2); background: rgba(var(--shade), .35); max-height: min(calc(70vh / var(--Zoom, 1)), 560px); min-height: 280px; }
.ux-panel .sticky-bar { position: relative; padding: 12px; }
.ux-panel .ux-scroll { flex: 1; overflow-y: auto; padding: 8px; }

.portal-card { padding: 0; overflow: hidden; }
.pc-head { position: relative; }
.pc-toggle { display: block; width: 100%; padding: 18px 64px 18px 20px; cursor: pointer; transition: background .2s ease; }
.pc-toggle:hover { background: rgba(var(--primary-rgb), .05); }
.pc-del { position: absolute; top: 14px; right: 14px; }
.pc-title { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--primary-light); overflow-wrap: anywhere; }
.pc-detail { border-top: 1px solid var(--line); padding: 18px 20px; background: rgba(var(--shade), .2); display: grid; gap: 18px; }
.pc-detail h4 { margin: 0 0 10px; font: 600 10.5px/1.4 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.log-item { padding: 9px 11px; border-radius: 11px; border: 1px solid var(--line); background: rgba(var(--tint), .02); font-size: 12px; }
.log-item + .log-item { margin-top: 7px; }
.watermark { position: absolute; top: 18px; right: 18px; color: var(--primary-light); opacity: .07; pointer-events: none; }
.watermark .ico { width: 150px; height: 150px; }
.url-box { padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(var(--primary-rgb), .25); background: rgba(var(--primary-rgb), .08); }
.url-box .lbl-sm { color: var(--primary-light); }
.url-box a { color: var(--text); font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; text-decoration: none; }
.url-box a:hover { text-decoration: underline; }

.fm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fm-box { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: rgba(var(--tint), .02); display: grid; gap: 14px; align-content: start; min-width: 0; }
.fm-box .fm-ttl { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--primary-light); }
.fm-stats { font: 500 12px/1.7 var(--font-mono); color: var(--muted); padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line); background: rgba(var(--shade), .25); }
.fm-stats > div { display: flex; justify-content: space-between; gap: 10px; }
.fm-stats b { color: var(--text); font-weight: 700; }
.fm-link-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.fm-link-row a { display: inline-flex; align-items: center; gap: 5px; color: var(--primary-light); font-family: var(--font-mono); text-decoration: none; overflow-wrap: anywhere; }
.fm-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fm-guide > div { padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line); background: rgba(var(--shade), .25); min-width: 0; }
.fm-guide .lbl-sm { margin-bottom: 4px; }
.fm-guide .fg-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; font: 600 12px/1.4 var(--font-mono); color: var(--primary-light); min-width: 0; }
.fm-guide .fg-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
input[type=file] { padding: 8px; font-size: 12px; color: var(--muted); }
input[type=file]::file-selector-button { margin-right: 10px; padding: 6px 12px; border: 0; border-radius: 8px; background: var(--grad); color: var(--primary-fg); font: 700 12px var(--font); cursor: pointer; }

.guide { border: 1px solid rgba(var(--primary-rgb), .22); background: rgba(var(--primary-rgb), .05); border-radius: 16px; padding: 14px 16px; font-size: 12.5px; color: var(--muted); }
.guide .g-ttl { font-weight: 700; color: var(--primary-light); font-size: 14px; margin: 0 0 8px; }
.guide ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; line-height: 1.5; }
.guide strong { color: var(--text); }
.guide code { color: var(--warning-light); }
.guide .g-url { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.guide .g-url code { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 5px 8px; border-radius: 8px; background: rgba(var(--shade), .3); font-size: 11.5px; color: var(--amber); }
.bot-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.bot-head h3 { font-family: var(--font-head); font-size: 18px; color: var(--primary-light); overflow-wrap: anywhere; }
.bot-status { font: 600 10px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted2); }
.field-btn { display: flex; gap: 6px; }
.field-btn > input { flex: 1; }

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.toast {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 260px;
  max-width: 420px;
  overflow: hidden;
  padding: 13px 16px;
  border-radius: 14px;
  background: linear-gradient(160deg, #1c1d1e, #141516 55%, #111314);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 2px 10px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(var(--primary-rgb), .16);
  color: #f2f2f2;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  animation: toastSlideIn .45s cubic-bezier(.22, 1.1, .36, 1) both;
  cursor: pointer;
}
.toast .t-ico { flex-shrink: 0; margin-top: 1px; color: var(--primary-light); display: flex; }
.toast .t-msg { min-width: 0; overflow-wrap: anywhere; white-space: pre-line; }
.toast:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(var(--primary-rgb), .5));
  box-shadow: 0 0 8px rgba(var(--primary-rgb), .5);
  transform-origin: left;
  opacity: .7;
  animation: toastProgress var(--t-dur, 3600ms) linear forwards;
}
.toast.t-ok .t-ico { color: var(--success-light); }
.toast.t-err { color: #fecaca; box-shadow: 0 20px 60px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(239, 68, 68, .3); }
.toast.t-err .t-ico { color: var(--danger-light); }
.toast.t-err:after { background: linear-gradient(90deg, var(--danger), rgba(239, 68, 68, .5)); box-shadow: 0 0 8px rgba(239, 68, 68, .5); }
.toast.t-warn { box-shadow: 0 20px 60px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(245, 158, 11, .3); }
.toast.t-warn .t-ico { color: var(--warning-light); }
.toast.t-warn:after { background: linear-gradient(90deg, var(--warning), rgba(245, 158, 11, .5)); }
.toast.t-load:after { animation: none; transform: scaleX(1); opacity: .35; }
.toast.out { animation: toastOut .25s ease forwards; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: radial-gradient(circle at 50% 42%, rgba(11, 18, 28, .55), rgba(5, 5, 5, .9));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  animation: rx-modal-fade .35s var(--ease) both;
}
.modal-backdrop.block { z-index: 110; }
.modal-backdrop.top { z-index: 130; }
.modal-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: auto;
  background: linear-gradient(165deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .016) 40%), rgba(14, 13, 12, .95);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  animation: rx-modal-card .5s cubic-bezier(.34, 1.56, .64, 1) both;
}
.modal-box.md { max-width: 520px; }
.modal-box.flush { padding: 0; overflow: hidden; }
.modal-box h3 { font-family: var(--font-head); font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin: 0; overflow-wrap: anywhere; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal-head .mh-ttl { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.modal-head .mh-ttl > .ico { color: var(--primary-light); margin-top: 3px; }
.modal-desc { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 0 0 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
.modal-foot { display: flex; gap: 10px; margin-top: 18px; }
.modal-foot > button { flex: 1; }
.modal-foot.right { justify-content: flex-end; }
.modal-foot.right > button { flex: none; }
.modal-scroll { max-height: calc(70vh / var(--Zoom, 1)); overflow-y: auto; padding: 20px 24px 24px; display: grid; gap: 18px; }
.modal-hero { padding: 20px 24px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, rgba(var(--primary-rgb), .1), transparent); }
.modal-hero .mh-meta { margin-top: 6px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.m-sec { display: grid; gap: 10px; }
.m-sec + .m-sec { padding-top: 16px; border-top: 1px solid var(--line); }
.m-sec > .lbl-sm { margin: 0; }
.m-box { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--tint), .03); font-size: 12.5px; color: var(--muted); }
.m-box.warn { border-color: rgba(245, 158, 11, .3); background: rgba(245, 158, 11, .08); color: var(--amber); }
.m-box.pri { border-color: rgba(var(--primary-rgb), .25); background: rgba(var(--primary-rgb), .05); }

button.plain.stat-card { display: block; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow-card); text-align: left; color: var(--text); }
button.plain.stat-card.stat-icon { display: flex; }
button.plain.stat-card.is-active { background: linear-gradient(165deg, rgba(var(--primary-rgb), .16), rgba(var(--primary-rgb), .03)), rgba(16, 15, 13, .5); border-color: rgba(var(--primary-rgb), .6); }
button.plain.stat-card:hover { transform: translateY(-2px); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ob-spin { to { --ob-a: 360deg; } }
@keyframes ob-drift { to { transform: translate3d(-2%, 1.5%, 0) scale(1.03); } }
@keyframes ob-breathe { 50% { transform: scale(1.08); opacity: .85; } }
@keyframes rx-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rx-pop { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes rx-modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rx-modal-card { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastSlideIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px) scale(.96); } }
@keyframes toastProgress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes pulse { 50% { opacity: .55; } }
@keyframes shimmer { to { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
  .ob-bg svg, .ob-glow, .orbit-ring, .login-card:before, .glow-card:before, .pulse, .cd-box.critical { animation: none; }
}

@media (max-width: 1200px) {
  .stats-grid.six, .stats-grid.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout-2-1 { grid-template-columns: 1fr; }
}

@media (max-width: 1023px) {
  .only-desk { display: none !important; }
  .only-mob { display: block; }
  .fm-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .login-card { grid-template-columns: 1fr; }
  .login-welcome-pane { display: none; }
  .landing-nav { margin: 10px 10px 0; top: 10px; }
  .app-shell { flex-direction: column; padding: 0; gap: 0; }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    width: min(calc(85vw / var(--Zoom, 1)), 18rem);
    height: calc(100vh / var(--Zoom, 1));
    height: calc(100dvh / var(--Zoom, 1));
    border-radius: 0 22px 22px 0;
    background: rgba(12, 11, 10, .97);
    transform: translateX(-105%);
    padding: max(env(safe-area-inset-top, 0px), 14px) 12px max(env(safe-area-inset-bottom, 0px), 14px);
  }
  .app-shell.menu-open .sidebar { transform: none; }
  .app-shell.menu-open .drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: rx-modal-fade .3s ease both; }
  .sb-close { display: inline-flex !important; }
  .main-area { padding: 16px 12px 48px; border-radius: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .page-head h2 { font-size: 22px; }
  .stats-grid.three { grid-template-columns: 1fr; }
  .ux-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fm-guide { grid-template-columns: 1fr; }
  .grid.g3, .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .login-shell { padding: 12px; }
  .login-form-pane { padding: 30px 20px 22px; }
  .login-form-pane h1 { font-size: 28px; }
  .brand-chip { margin-bottom: 24px; }
  .features-6 { padding: 16px 16px 60px; grid-template-columns: 1fr; }
  .hero-section { padding: 48px 16px 40px; min-height: calc(70vh / var(--Zoom, 1)); }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .landing-nav { padding: 10px 12px; }
  .landing-nav .brand-sub { display: none; }
  .landing-nav .nav-link { padding: 8px 4px; }
  .landing-nav .btn { padding: 9px 12px; font-size: 12.5px; }
  .toast-stack { left: 12px; right: 12px; bottom: 12px; align-items: stretch; }
  .toast { min-width: 0; max-width: none; }
  .stats-grid.six, .stats-grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat-val { font-size: 21px; }
  .stat-icon .stat-val { font-size: 26px; }
  .card { padding: 16px; border-radius: 18px; }
  .card.flush { padding: 0; }
  .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .kv { grid-template-columns: 1fr; }
  .page-actions { width: 100%; }
  .page-actions > * { flex: 1 1 auto; }
  .uid-item { flex-direction: column; align-items: stretch; }
  .uid-item .ui-acts { justify-content: flex-end; }
  .ux-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ux-head, .ux-details { padding: 14px; }
  .ux-right { align-items: flex-start; }
  .ux-right .row { justify-content: flex-start; }
  .ux-who .ux-mail { max-width: 200px; }
  .modal-backdrop { align-items: flex-end; padding: 10px; }
  .modal-box { padding: 20px; border-radius: 20px; }
  .modal-box.flush { padding: 0; }
  .modal-scroll { padding: 16px; }
  .modal-hero { padding: 16px; }
  .glow-card { padding: 24px 18px; }
  .prefix-field { flex-direction: column; }
  .prefix-field .pf-pre { max-width: none; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); white-space: normal; overflow-wrap: anywhere; }
  .param-row { flex-direction: column; gap: 2px; }
  .param-row .pr-name { width: auto; }
  .list-row { flex-wrap: wrap; }
  .sticky-bar { padding: 12px; }
  .list-pad { padding: 10px 12px 12px; }
  .pc-toggle { padding: 16px 58px 16px 16px; }
  .pc-detail { padding: 14px; }
}

@media (max-width: 380px) {
  .ux-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { gap: 6px; }
}

.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.main-area [id] { scroll-margin-top: calc(var(--hb-top) + var(--hb-h) + 16px); }

.header-bar {
  position: sticky;
  top: var(--hb-top);
  z-index: 60;
  flex: none;
  height: var(--hb-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border-radius: 20px;
  border: 1px solid rgba(var(--tint), .085);
  background: var(--glass-bar);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.header-bar:before {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 100%;
  height: calc(var(--hb-top) + 2px);
  background: var(--hb-band);
  pointer-events: none;
}
.rx-crumb { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.rx-crumb-logo {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--grad);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), .35);
}
.rx-crumb-logo img { width: 11px; height: auto; display: block; }
.header-bar .rx-crumb-sep { flex: none; width: 14px; height: 14px; color: var(--muted2); }
#Rx-Crumb-Label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 800 13px/1.2 var(--font);
  color: var(--text);
}
.hb-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.hb-wrap { position: relative; }
.header-bar .hb-btn {
  box-sizing: border-box;
  height: 44px;
  min-width: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  border: 1px solid rgba(var(--tint), .09);
  background: rgba(var(--tint), .035);
  color: var(--text);
  font: 700 13px/1 var(--font);
  letter-spacing: 0;
  box-shadow: none;
  overflow: visible;
  transition: border-color .2s ease, background .2s ease;
}
.header-bar .hb-btn:after { display: none; }
.header-bar .hb-btn:hover { transform: none; filter: none; box-shadow: none; border-color: rgba(var(--primary-rgb), .45); background: rgba(var(--tint), .07); }
.header-bar .hb-btn:active { transform: none; }
.header-bar .hb-btn:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 2px; }
.header-bar .hb-btn .ico { width: 18px; height: 18px; stroke-width: 1.8; }
.header-bar .hb-menu { display: none; }
.hb-wrap.open > .hb-btn, .header-bar .hb-wrap.open > .hb-btn:hover { border-color: var(--primary); }
#Theme-Toggle-Btn { padding: 0 13px; }
#Theme-Toggle-Btn .ico { width: 16px; height: 16px; transition: opacity .2s ease; }
#Theme-Toggle-Btn .rx-theme-sun { opacity: .45; }
#Notif-Btn { padding: 0 14px; gap: 9px; white-space: nowrap; }
.header-bar #Notif-Btn > .ico { color: var(--primary); }
.rx-notif-label { white-space: nowrap; }
.rx-notif-count {
  box-sizing: border-box;
  position: relative;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-fg);
  font: 800 11px/20px var(--font);
  text-align: center;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .2);
}
.rx-notif-count:after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 2px #0f0e0d;
}
.header-bar #Profile-Btn { height: 48px; padding: 0 12px 0 5px; gap: 11px; border-radius: 13px; text-align: left; }
.brand-logo-squircle {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  color: var(--primary-fg);
  font: 800 15px/1 var(--font-head);
  box-shadow: 0 4px 18px rgba(var(--primary-rgb), .45);
  transition: background .25s ease, box-shadow .25s ease;
}
#User-Avatar-Wrap { width: 38px; height: 38px; border-radius: 10px; }
.brand-logo-squircle.lg { width: 46px; height: 46px; border-radius: 14px; font-size: 18px; }
.hb-user { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
#User-Name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
#User-Role { font-size: 11px; font-weight: 500; color: #8e877b; line-height: 1.15; }
.header-bar .hb-chev { width: 14px; height: 14px; stroke-width: 2; opacity: .6; transition: transform .2s ease; }
.hb-wrap.open .hb-chev { transform: rotate(180deg); color: var(--primary); opacity: 1; }

.rx-notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  width: 420px;
  max-width: calc(calc(100vw / var(--Zoom, 1)) - 24px);
  max-height: min(560px, calc(calc(100vh / var(--Zoom, 1)) - 110px));
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(165deg, #1f1e1d, #121110 40%), #0f0e0d;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .7);
  overflow: hidden;
  text-align: left;
  animation: rx-notif-in .18s ease;
}
.rx-notif-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.rx-notif-title { font: 800 15px/1.3 var(--font-head); color: #ebeff6; }
.rx-notif-sub { margin-top: 3px; font-size: 12px; color: #8a8d90; }
.rx-notif-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.rx-notif-panel .rx-notif-all,
.rx-notif-panel .rx-notif-view {
  flex: none;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font: 700 12px/1 var(--font);
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}
.rx-notif-panel .rx-notif-all:after, .rx-notif-panel .rx-notif-view:after { display: none; }
.rx-notif-panel .rx-notif-all { border: 1px solid rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .1); color: #4ade80; }
.rx-notif-panel .rx-notif-all:hover { background: rgba(34, 197, 94, .2); transform: none; filter: none; box-shadow: none; }
.rx-notif-panel .rx-notif-all:disabled, .rx-notif-panel .rx-notif-all:disabled:hover { opacity: .5; cursor: default; background: rgba(34, 197, 94, .1); }
.rx-notif-panel .rx-notif-view { border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .035); color: #e6e6e6; }
.rx-notif-panel .rx-notif-view:hover { border-color: rgba(var(--primary-rgb), .45); transform: none; filter: none; box-shadow: none; }
.rx-notif-panel .rx-notif-view.is-active { border-color: rgba(var(--primary-rgb), .55); background: rgba(var(--primary-rgb), .12); color: #fff; }
.rx-notif-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rx-notif-panel .rx-notif-item {
  --nt: var(--primary-rgb);
  position: relative;
  flex: none;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 30px 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .02);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.rx-notif-panel .rx-notif-item.t-warn { --nt: 245, 158, 11; }
.rx-notif-panel .rx-notif-item.t-err { --nt: 239, 68, 68; }
.rx-notif-panel .rx-notif-item:hover { border-color: rgba(var(--nt), .4); background: rgba(255, 255, 255, .045); }
.rx-notif-panel .rx-notif-item:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 2px; }
.rx-notif-panel .rx-notif-item.is-unread { border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); }
.rx-notif-panel .rx-notif-item.is-unread:after {
  content: "";
  display: block;
  position: absolute;
  top: 16px;
  right: 13px;
  bottom: auto;
  left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .2);
  transform: none;
  transition: none;
}
.rx-notif-ico {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, rgb(var(--nt)) 70%, #fff);
  background: rgba(var(--nt), .1);
  border: 1px solid rgba(var(--nt), .35);
}
.rx-notif-ico .ico { width: 17px; height: 17px; }
.rx-notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.rx-notif-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rx-notif-item-title { min-width: 0; font: 800 14px/1.3 var(--font-head); color: #f2f2f2; overflow-wrap: anywhere; }
.rx-notif-date { flex: none; font: 500 12px/1.3 var(--font); color: #8a8d90; white-space: nowrap; }
.rx-notif-msg { font-size: 13px; line-height: 1.5; color: #aba497; overflow-wrap: anywhere; word-break: break-word; }
.rx-notif-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 12px; color: #8a8d90; font-size: 13px; font-weight: 600; text-align: center; }
.rx-notif-empty .ico { opacity: .5; margin-bottom: 4px; }
.rx-notif-empty small { font-size: 12px; font-weight: 500; opacity: .8; }

#Profile-Dropdown-Menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  width: 260px;
  max-width: calc(calc(100vw / var(--Zoom, 1)) - 24px);
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(19, 18, 16, .98);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
  animation: rx-notif-in .15s ease-out;
}
.pd-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pd-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#Profile-Dropdown-Name { font-size: 15px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#Profile-Dropdown-Role { font-size: 12px; font-weight: 500; color: #8e9297; }
.pd-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.pd-chip {
  padding: 5px 12px;
  border-radius: 999px;
  background: #1c1e22;
  border: 1px solid #2e3136;
  font: 800 11px/1.3 var(--font);
  letter-spacing: .06em;
  color: #e2e8f0;
  text-transform: uppercase;
  white-space: nowrap;
}
.pd-chip.ok { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .35); color: #4ade80; }
.pd-chip.err { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .35); color: #f87171; }
.pd-sep { height: 1px; background: rgba(255, 255, 255, .08); margin: 16px 0 10px; }
.pd-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 8px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: color .15s ease, transform .15s ease, background .15s ease;
}
.pd-link .ico { width: 17px; height: 17px; color: var(--muted); transition: color .15s ease; }
.pd-link:hover { background: rgba(var(--tint), .05); transform: translateX(2px); }
.pd-link:hover .ico { color: var(--primary-light); }
.pd-link.out { color: #fca5a5; }
.pd-link.out .ico, .pd-link.out:hover .ico { color: currentColor; }
.pd-link.out:hover { color: #f87171; background: rgba(239, 68, 68, .08); }
@keyframes rx-notif-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

#Color-Primary-Modal { align-items: safe center; }
#Color-Primary-Modal .cp-wrap {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5));
  animation: rx-modal-card .5s cubic-bezier(.34, 1.56, .64, 1) both;
}
.cp-border {
  padding: 1px;
  border-radius: 0 24px 0 24px;
  background: linear-gradient(135deg, #7a7d80 0%, #55585b 6%, #2a2c2e 30%, #2a2c2e 60%, #3a3c3e 90%, #55585b);
  clip-path: polygon(46px 0, 100% 0, 100% calc(100% - 46px), calc(100% - 46px) 100%, 0 100%, 0 46px);
}
.cp-card {
  position: relative;
  padding: 32px 34px 28px;
  border-radius: 0 23px 0 23px;
  background: linear-gradient(165deg, #1f1e1d, #121110 40%), #0f0e0d;
  clip-path: polygon(45.6px 0, 100% 0, 100% calc(100% - 44px), calc(100% - 44px) 100%, 0 100%, 0 45.6px);
  color: #f2f2f2;
}
.cp-corner { position: absolute; width: 38px; height: 38px; pointer-events: none; background: #6a6d70; border-radius: 7px 0 0 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
.cp-corner span { position: absolute; top: 1px; left: 1px; width: 35.5px; height: 35.5px; border-radius: 6px 0 0 0; clip-path: polygon(0 0, 100% 0, 0 100%); background: linear-gradient(135deg, #5e6164 0%, #4a4d50 22%, #35373a 40%, #26282a 50%); }
.cp-corner.tl { top: 0; left: 0; }
.cp-corner.br { bottom: 0; right: 0; transform: rotate(180deg); }
.cp-corner.br span { background: linear-gradient(135deg, #a3a6a9 0%, #7c7f82 18%, #55585b 36%, #34363a 50%); }
#Color-Primary-Modal .cp-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .05);
  color: #d7d3cb;
  box-shadow: none;
}
#Color-Primary-Modal .cp-x:after { display: none; }
#Color-Primary-Modal .cp-x:hover { background: rgba(255, 255, 255, .1); transform: none; filter: none; box-shadow: none; }
.cp-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.cp-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--primary-rgb), .5);
  background: rgba(var(--primary-rgb), .12);
  color: var(--primary);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), .35);
}
.cp-icon .ico { width: 24px; height: 24px; }
#Color-Primary-Modal .cp-title { margin: 0; font: 800 26px/1.15 var(--font-head); letter-spacing: -.03em; white-space: nowrap; color: inherit; }
#Cp-Accent-Word { color: var(--primary); }
.cp-desc { margin: 0; max-width: 440px; font-size: 13px; line-height: 1.6; color: #b9b3a8; }
.cp-row { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cp-lbl { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #8a8d90; text-transform: uppercase; }
.cp-hex { padding: 5px 9px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); font: 700 12px/1.3 var(--font-mono); color: #f2f2f2; }
.cp-swatches { margin-top: 12px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
#Color-Primary-Modal .cp-sw {
  aspect-ratio: 1;
  width: 100%;
  height: auto;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  outline: none;
  background: linear-gradient(180deg, var(--sw-hi), var(--sw));
  box-shadow: 0 10px 22px -6px var(--sw-glow);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, filter .15s ease;
}
#Color-Primary-Modal .cp-sw:after { display: none; }
#Color-Primary-Modal .cp-sw:hover { filter: brightness(1.1); transform: scale(1.04); box-shadow: 0 10px 22px -6px var(--sw-glow); }
#Color-Primary-Modal .cp-sw:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
#Color-Primary-Modal .cp-sw.on { border: 3px solid #14130f; outline: 2px solid var(--sw); outline-offset: 0; box-shadow: 0 10px 22px -6px var(--sw-glow-on); }
#Color-Primary-Modal .cp-sw .ico { width: 18px; height: 18px; stroke-width: 3.2; animation: rx-cp-pop .45s cubic-bezier(.34, 1.56, .64, 1) both; }
#Color-Primary-Modal.is-opening .cp-sw { animation: rx-cp-in .34s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 12ms + .12s); }
.cp-sep { height: 1px; background: rgba(255, 255, 255, .08); margin: 22px 0 20px; }
.cp-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#Color-Primary-Modal .cp-btn-sec,
#Color-Primary-Modal .cp-btn-pri { height: 50px; border-radius: 12px; font: 800 13.5px/1 var(--font); }
#Color-Primary-Modal .cp-btn-sec { border: 1px solid #2a2c2e; background: #151618; color: #f2f2f2; box-shadow: none; }
#Color-Primary-Modal .cp-btn-sec:after { display: none; }
#Color-Primary-Modal .cp-btn-sec:hover { background: #1f2124; transform: none; filter: none; box-shadow: none; }
#Color-Primary-Modal .cp-btn-pri { font-size: 14px; border: 0; background: linear-gradient(180deg, var(--primary-hi), var(--primary)); color: var(--primary-fg); box-shadow: 0 10px 25px -5px rgba(var(--primary-rgb), .55); }
#Color-Primary-Modal .cp-btn-pri:hover { transform: none; filter: brightness(1.08); box-shadow: 0 10px 25px -5px rgba(var(--primary-rgb), .55); }
@keyframes rx-cp-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes rx-cp-pop { from { opacity: 0; transform: scale(.5) rotate(-15deg); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  #Color-Primary-Modal .cp-wrap, #Color-Primary-Modal .cp-sw, #Color-Primary-Modal .cp-sw .ico, .rx-notif-panel, #Profile-Dropdown-Menu { animation: none !important; }
}

@media (max-width: 900px) {
  :root { --hb-top: 10px; --hb-h: 58px; }
  .main-col { gap: 0; }
  .header-bar { margin: 10px 10px 0; padding: 0 8px; gap: 8px; border-radius: 16px; }
  .header-bar .hb-menu { display: inline-flex; }
  .rx-crumb { gap: 10px; }
  .rx-crumb-logo, .header-bar .rx-crumb-sep { display: none; }
  #Notif-Btn .rx-notif-label { display: none; }
  .header-bar #Notif-Btn { padding: 0 11px; gap: 7px; }
}

@media (max-width: 768px) {
  .hb-tools { gap: 6px; }
  .header-bar .hb-btn { height: 42px; min-width: 42px; }
  .header-bar #Theme-Toggle-Btn { width: 42px; padding: 0; gap: 0; }
  html:not([data-theme=light]) #Theme-Toggle-Btn .rx-theme-sun,
  html[data-theme=light] #Theme-Toggle-Btn .rx-theme-moon { display: none; }
  .header-bar #Profile-Btn { height: 42px; padding: 0 4px; gap: 0; }
  .header-bar #Profile-Btn .hb-user, .header-bar .hb-chev { display: none; }
  #User-Avatar-Wrap { width: 32px; height: 32px; border-radius: 9px; font-size: 14px; }
}

@media (max-width: 640px) {
  .header-bar .hb-wrap { position: static; }
  .rx-notif-panel, #Profile-Dropdown-Menu { top: calc(100% + 8px); left: 0; right: 0; width: auto; max-width: none; }
  .rx-notif-panel { max-height: calc(calc(100vh / var(--Zoom, 1)) - var(--hb-h) - 40px); max-height: calc(calc(100dvh / var(--Zoom, 1)) - var(--hb-h) - 40px); }
  .rx-notif-tools { width: 100%; }
  .rx-notif-panel .rx-notif-all, .rx-notif-panel .rx-notif-view { flex: 1; }
  #Color-Primary-Modal { align-items: safe center; padding: 12px; }
  .cp-card { padding: 26px 18px 20px; }
  #Color-Primary-Modal .cp-title { font-size: 22px; white-space: normal; }
  .cp-swatches { gap: 8px; }
}

@media (max-width: 380px) {
  .header-bar { padding: 0 6px; gap: 6px; }
  .hb-tools { gap: 5px; }
  .header-bar .hb-btn { height: 38px; min-width: 38px; border-radius: 10px; }
  .header-bar #Theme-Toggle-Btn { width: 38px; }
  .header-bar #Notif-Btn { padding: 0 8px; gap: 5px; }
  .header-bar #Profile-Btn { height: 38px; padding: 0 3px; }
  #User-Avatar-Wrap { width: 30px; height: 30px; font-size: 13px; }
  .rx-notif-count { min-width: 18px; height: 18px; padding: 0 5px; font-size: 10.5px; line-height: 18px; }
  .cp-foot { grid-template-columns: 1fr; }
}

html[data-theme=light] {
  color-scheme: light;
  --primary-light: var(--primary-lo);
  --success: #16a34a;
  --success-light: #15803d;
  --danger: #dc2626;
  --danger-light: #b91c1c;
  --warning: #d97706;
  --warning-light: #b45309;
  --violet: #6d28d9;
  --cyan: #0e7490;
  --orange: #c2410c;
  --amber: #92400e;
  --gold: #a16207;
  --danger-tint: #991b1b;
  --bg: #F3F0E9;
  --surface: #FFFFFF;
  --text: #17140F;
  --muted: #5D564A;
  --muted2: #8A8377;
  --line: rgba(17, 26, 38, .1);
  --line-strong: rgba(17, 26, 38, .18);
  --input: rgba(255, 255, 255, .75);
  --input-hover: #FFFFFF;
  --card: linear-gradient(165deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .55)), rgba(255, 255, 255, .4);
  --card-solid: #FFFFFF;
  --shadow: 0 30px 70px rgba(19, 42, 76, .14), 0 2px 8px rgba(19, 42, 76, .07), inset 0 1px 0 #fff;
  --shadow-card: 0 16px 44px rgba(19, 42, 76, .1), inset 0 1px 0 #fff;
  --tint: 17, 26, 38;
  --shade: 255, 255, 255;
  --heading: #17140F;
  --glass-bar: rgba(255, 255, 255, .66);
  --glass-main: rgba(255, 255, 255, .5);
  --glass-pop: rgba(255, 255, 255, .98);
  --glass-sticky: rgba(251, 250, 247, .95);
  --glass-cell: rgba(255, 255, 255, .92);
  --banner-base: rgba(255, 255, 255, .9);
  --hb-band: #EEEAE2;
}
html[data-theme=light] .ob-bg svg { opacity: .28; }
html[data-theme=light] .ob-dots { background-image: radial-gradient(rgba(17, 26, 38, .1) 1px, transparent 1.2px); }
html[data-theme=light] .ob-vignette { background: radial-gradient(80% 70% at 50% 50%, transparent 40%, rgba(233, 228, 218, .8)); }
html[data-theme=light] .ob-glow { background: radial-gradient(closest-side, rgba(var(--primary-rgb), .14), rgba(var(--primary-rgb), .04) 55%, transparent 72%); }
html[data-theme=light] .grad-text { background: linear-gradient(180deg, var(--primary) 0%, var(--primary-lo) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme=light] .boot-splash { color: var(--muted); }

html[data-theme=light] .login-card {
  border-color: rgba(17, 26, 38, .1);
  background: linear-gradient(165deg, rgba(255, 255, 255, .98), rgba(251, 250, 247, .94) 45%), rgba(247, 245, 240, .9);
  box-shadow: 0 30px 70px rgba(19, 42, 76, .14), 0 2px 8px rgba(19, 42, 76, .07), inset 0 1px 0 #fff;
}
html[data-theme=light] .login-card:after { background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), .35), transparent); }
html[data-theme=light] .login-welcome-pane {
  background:
    radial-gradient(closest-side at 50% 42%, rgba(var(--primary-rgb), .14), transparent 75%),
    linear-gradient(160deg, rgba(var(--primary-rgb), .06), rgba(255, 255, 255, .4));
}
html[data-theme=light] .brand-icon-box { background: #fff; box-shadow: 0 0 20px rgba(var(--primary-rgb), .16), inset 0 1px 0 #fff; }
html[data-theme=light] .brand-sub { color: var(--muted2); }
html[data-theme=light] .ring-inner { border-color: rgba(17, 26, 38, .14); }
html[data-theme=light] .ring-inner:before { background: var(--primary); box-shadow: 0 0 6px rgba(var(--primary-rgb), .5); }
html[data-theme=light] .welcome-shield { background: linear-gradient(160deg, #fff, #f7f5f0); box-shadow: 0 12px 30px rgba(var(--primary-rgb), .2), 0 0 50px rgba(var(--primary-rgb), .15), inset 0 1px 0 #fff; }
html[data-theme=light] .feature-box { background: rgba(255, 255, 255, .7); }
html[data-theme=light] input[type=datetime-local] { color-scheme: light; }

html[data-theme=light] .sidebar { box-shadow: 0 10px 34px rgba(19, 42, 76, .1); }
html[data-theme=light] .nav-item.active { background: var(--primary); border-color: transparent; color: #fff; }
html[data-theme=light] .main-area { box-shadow: 0 16px 44px rgba(19, 42, 76, .08), inset 0 1px 0 #fff; }
html[data-theme=light] .header-bar { background: rgba(255, 255, 255, .66); border-color: var(--line); box-shadow: 0 10px 34px rgba(19, 42, 76, .1); }
html[data-theme=light] .header-bar .hb-btn { border-color: rgba(17, 26, 38, .12); background: rgba(255, 255, 255, .72); }
html[data-theme=light] .header-bar .hb-btn:hover { border-color: rgba(var(--primary-rgb), .5); background: #fff; }
html[data-theme=light] .hb-wrap.open > .hb-btn { border-color: var(--primary); }
html[data-theme=light] #Theme-Toggle-Btn .rx-theme-sun { opacity: 1; }
html[data-theme=light] #Theme-Toggle-Btn .rx-theme-moon { opacity: .45; }
html[data-theme=light] #User-Role { color: #7a7263; }
html[data-theme=light] .rx-notif-count:after { box-shadow: 0 0 0 2px #fff; }

html[data-theme=light] .rx-notif-panel { background: linear-gradient(165deg, #fff, #fbfaf7 55%, #f7f5f0); border-color: rgba(17, 26, 38, .1); box-shadow: 0 24px 60px rgba(19, 42, 76, .18); }
html[data-theme=light] .rx-notif-head { border-bottom-color: rgba(17, 26, 38, .08); }
html[data-theme=light] .rx-notif-title, html[data-theme=light] .rx-notif-item-title { color: #17140F; }
html[data-theme=light] .rx-notif-sub, html[data-theme=light] .rx-notif-date, html[data-theme=light] .rx-notif-empty { color: #8A8377; }
html[data-theme=light] .rx-notif-msg { color: #5D564A; }
html[data-theme=light] .rx-notif-panel .rx-notif-item { background: #fff; border-color: rgba(17, 26, 38, .1); }
html[data-theme=light] .rx-notif-panel .rx-notif-item:hover { background: #fff; border-color: rgba(var(--nt), .45); }
html[data-theme=light] .rx-notif-panel .rx-notif-item.is-unread { background: #fbfaf7; border-color: rgba(17, 26, 38, .16); }
html[data-theme=light] .rx-notif-ico { color: color-mix(in srgb, rgb(var(--nt)) 80%, #000); }
html[data-theme=light] .rx-notif-panel .rx-notif-all { color: #15803d; border-color: rgba(22, 163, 74, .45); background: rgba(22, 163, 74, .08); }
html[data-theme=light] .rx-notif-panel .rx-notif-all:hover { background: rgba(22, 163, 74, .15); }
html[data-theme=light] .rx-notif-panel .rx-notif-all:disabled { background: rgba(22, 163, 74, .08); }
html[data-theme=light] .rx-notif-panel .rx-notif-view { background: #fff; border-color: rgba(17, 26, 38, .12); color: #17140F; }
html[data-theme=light] .rx-notif-panel .rx-notif-view.is-active { background: rgba(var(--primary-rgb), .1); border-color: rgba(var(--primary-rgb), .5); color: #17140F; }

html[data-theme=light] #Profile-Dropdown-Menu { border-color: rgba(17, 26, 38, .12); background: rgba(255, 255, 255, .97); box-shadow: 0 24px 70px rgba(19, 42, 76, .16), inset 0 1px 0 #fff; }
html[data-theme=light] #Profile-Dropdown-Name { color: var(--text); }
html[data-theme=light] #Profile-Dropdown-Role { color: #7a7263; }
html[data-theme=light] .pd-chip { background: rgba(17, 26, 38, .05); border-color: rgba(17, 26, 38, .15); color: var(--text); }
html[data-theme=light] .pd-chip.ok { background: rgba(22, 163, 74, .1); border-color: rgba(22, 163, 74, .35); color: #15803d; }
html[data-theme=light] .pd-chip.err { background: rgba(220, 38, 38, .08); border-color: rgba(220, 38, 38, .35); color: #b91c1c; }
html[data-theme=light] .pd-sep { background: rgba(17, 26, 38, .08); }
html[data-theme=light] .pd-link.out { color: #dc2626; }
html[data-theme=light] .pd-link.out:hover { color: #b91c1c; background: rgba(220, 38, 38, .07); }

html[data-theme=light] .stat-card.is-active,
html[data-theme=light] button.plain.stat-card.is-active { background: linear-gradient(165deg, rgba(var(--primary-rgb), .12), rgba(var(--primary-rgb), .03)), rgba(255, 255, 255, .7); }
html[data-theme=light] .uid-item,
html[data-theme=light] .list-row,
html[data-theme=light] .wrap-box,
html[data-theme=light] .ref-list,
html[data-theme=light] .key-box,
html[data-theme=light] .fm-stats,
html[data-theme=light] .fm-guide > div,
html[data-theme=light] .pc-detail,
html[data-theme=light] .ux-head { background: rgba(255, 255, 255, .72); }
html[data-theme=light] .uid-item:hover, html[data-theme=light] .list-row.click:hover { background: #fff; }
html[data-theme=light] .uid-item.sel { background: rgba(var(--primary-rgb), .08); }
html[data-theme=light] .list-row.ok { background: rgba(34, 197, 94, .06); }
html[data-theme=light] .wrap-box .list-row { background: transparent; }
html[data-theme=light] .ux-panel { background: rgba(247, 245, 240, .7); }
html[data-theme=light] .switch.ok-err:not([aria-checked=true]) { background: rgba(220, 38, 38, .72); border-color: rgba(185, 28, 28, .45); }
html[data-theme=light] .switch:before { box-shadow: 0 2px 6px rgba(19, 42, 76, .3); }
html[data-theme=light] .sub-banner.warn .ab-text { color: #7c2d12; }
html[data-theme=light] .sub-banner.exp .ab-text { color: #7f1d1d; }
html[data-theme=light] .sub-banner .sb-live { color: #9a3412; }
html[data-theme=light] .cd-box.ok { color: #047857; }
html[data-theme=light] .cd-box.critical { color: #9a3412; }
html[data-theme=light] .sub-badge.ok { color: #047857; }
html[data-theme=light] .sub-badge.err { color: #b91c1c; }
html[data-theme=light] .live-dot { background: #16a34a; box-shadow: 0 0 8px rgba(22, 163, 74, .5); }
html[data-theme=light] thead.sticky th { background: #F6F4EF; }
html[data-theme=light] th { background: rgba(17, 26, 38, .04); }
html[data-theme=light] .code-card { background: #FBFAF7; }
html[data-theme=light] .code-card .cc-head { background: rgba(17, 26, 38, .04); }
html[data-theme=light] .code-card pre { color: #334155; }
html[data-theme=light] pre.plain-pre { background: rgba(17, 26, 38, .05); color: #78350f; }
html[data-theme=light] .callout code, html[data-theme=light] .guide code { color: var(--primary-lo); }
html[data-theme=light] .chart-tip { box-shadow: 0 10px 30px rgba(19, 42, 76, .16); }
html[data-theme=light] .dd-menu { border-color: rgba(17, 26, 38, .12); }

html[data-theme=light] .toast {
  background: linear-gradient(160deg, #fff, #fbfaf7 55%, #f7f5f0);
  border-color: rgba(17, 26, 38, .1);
  color: #17140F;
  box-shadow: 0 18px 50px rgba(19, 42, 76, .14), 0 2px 8px rgba(19, 42, 76, .08), inset 0 0 0 1px rgba(var(--primary-rgb), .2);
}
html[data-theme=light] .toast.t-err { color: #7f1d1d; box-shadow: 0 18px 50px rgba(19, 42, 76, .14), inset 0 0 0 1px rgba(239, 68, 68, .35); }
html[data-theme=light] .toast.t-warn { box-shadow: 0 18px 50px rgba(19, 42, 76, .14), inset 0 0 0 1px rgba(245, 158, 11, .4); }

html[data-theme=light] .modal-backdrop { background: radial-gradient(85% 80% at 50% 50%, rgba(243, 240, 233, .45), rgba(233, 228, 218, .82)); }
html[data-theme=light] .modal-box { background: linear-gradient(165deg, rgba(255, 255, 255, .98), rgba(251, 250, 247, .95) 45%), #f7f5f0; border-color: rgba(17, 26, 38, .1); }

html[data-theme=light] #Color-Primary-Modal .cp-wrap { filter: drop-shadow(0 30px 40px rgba(19, 42, 76, .18)); }
html[data-theme=light] .cp-border { background: linear-gradient(135deg, #d6d0c5, #e7e2d9 30%, #e7e2d9 60%, #d6d0c5); }
html[data-theme=light] .cp-card { background: linear-gradient(160deg, #fff, #fbfaf7 55%, #f5f2ec); color: #17140F; }
html[data-theme=light] .cp-corner { background: #d6d0c5; }
html[data-theme=light] .cp-corner span, html[data-theme=light] .cp-corner.br span { background: linear-gradient(135deg, #e2ddd3, #ece8e0 50%); }
html[data-theme=light] #Color-Primary-Modal .cp-x { border-color: rgba(17, 26, 38, .12); background: #fff; color: #5D564A; }
html[data-theme=light] #Color-Primary-Modal .cp-x:hover { background: #f3f0e9; color: #17140F; }
html[data-theme=light] .cp-desc { color: #5D564A; }
html[data-theme=light] .cp-lbl { color: #8A8377; }
html[data-theme=light] .cp-hex { border-color: rgba(17, 26, 38, .12); background: #fff; color: #17140F; }
html[data-theme=light] #Color-Primary-Modal .cp-sw { border-color: rgba(17, 26, 38, .08); }
html[data-theme=light] #Color-Primary-Modal .cp-sw.on { border-color: #fff; }
html[data-theme=light] .cp-sep { background: rgba(17, 26, 38, .08); }
html[data-theme=light] #Color-Primary-Modal .cp-btn-sec { border-color: rgba(17, 26, 38, .14); background: #fff; color: #17140F; }
html[data-theme=light] #Color-Primary-Modal .cp-btn-sec:hover { background: #f6f4ef; }

@media (max-width: 900px) {
  html[data-theme=light] .sidebar { background: rgba(255, 255, 255, .97); }
  html[data-theme=light] .app-shell.menu-open .drawer-backdrop { background: rgba(17, 26, 38, .3); }
  html[data-theme=light] .main-area { box-shadow: none; }
}

.wl-sort { display: flex; align-items: center; gap: 10px; }
.wl-lbl { color: #94a3b8; font-size: .86rem; font-weight: 600; white-space: nowrap; }
.wl-dd { min-width: 190px; height: 38px; padding: 0 14px; justify-content: space-between; gap: 10px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .086); color: #EBEFF6; font: 500 13px var(--font); box-shadow: none; }
.wl-dd:after { display: none; }
.wl-dd:hover { transform: none; filter: none; box-shadow: none; border-color: rgba(var(--primary-rgb), .45); }
.wl-dd > .ico { width: 13px; height: 13px; color: var(--muted); flex: none; }
.wl-search { position: relative; width: 260px; max-width: 100%; }
.wl-search > .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.wl-search input { height: 42px; padding: 0 14px 0 40px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .086); font: 500 13.5px var(--font); }
.rx-float-menu { position: fixed; z-index: 1000; display: flex; flex-direction: column; gap: 2px; min-width: 170px; padding: 6px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .09); background: #131210fb; box-shadow: 0 24px 70px #00000073, inset 0 1px #ffffff0d; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); animation: rx-float-in .15s ease-out; }
@keyframes rx-float-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.rx-float-item { width: 100%; justify-content: space-between; gap: 16px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: #e2e8f0; font-size: .83rem; font-weight: 500; white-space: nowrap; box-shadow: none; }
.rx-float-item:after { display: none; }
.rx-float-item:hover { background: #ffffff0f; color: #fff; transform: none; filter: none; box-shadow: none; }
.rx-float-item.active { background: rgba(var(--primary-rgb), .16); color: #fff; font-weight: 700; }
.rx-float-check { width: 14px; height: 14px; color: var(--primary-light); opacity: 0; }
.rx-float-item.active .rx-float-check { opacity: 1; }
.rx-acts.xs .rx-act { width: 30px; height: 30px; border-radius: 7px; }
.rx-acts.xs .rx-act > .ico { width: 14px; height: 14px; }
.rx-acts.xs .rx-act.pri { background: rgba(var(--primary-rgb), .18); border-color: rgba(var(--primary-rgb), .45); box-shadow: 0 0 10px rgba(var(--primary-rgb), .18); }
.rx-acts.xs .rx-act.pri:hover { background: rgba(var(--primary-rgb), .35); box-shadow: 0 0 14px rgba(var(--primary-rgb), .4); }
button.ok-o > .ico, button.sm > .ico { width: 14px; height: 14px; }
.page-head.dash-head { position: relative; overflow: hidden; align-items: center; margin-bottom: 18px; padding: 18px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-card); }
.dash-tit { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dash-tit > div { min-width: 0; }
.dash-head h2 { margin: 0; font: 600 25px/1.15 Sora, 'Segoe UI', sans-serif; letter-spacing: -.035em; color: #fff; }
.dash-head h2 .tx-u { color: color-mix(in srgb, var(--primary-light) 70%, #fff); text-shadow: 0 0 18px rgba(var(--primary-rgb), .55); }
html[data-theme=light] .dash-head h2 { color: var(--text); }
html[data-theme=light] .dash-head h2 .tx-u { color: var(--primary); text-shadow: none; }
.dash-head .page-sub { margin-top: 7px; font: 400 12.5px/1.5 'Geist Mono', monospace; letter-spacing: -.01em; color: var(--muted); }
.dash-head select.dash-head-sel { width: auto; min-width: 150px; height: 36px; padding-top: 0; padding-bottom: 0; font-size: 13px; }
.dash-head .chip { padding: 7px 13px; font-size: 12.5px; }
.ds-grid.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ad-maint { margin-top: 20px; border-radius: 12px; border: 1px solid rgba(234, 179, 8, .3); background: rgba(234, 179, 8, .06); }
.ad-maint summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; list-style: none; cursor: pointer; color: #fde68a; font-size: 13px; }
.ad-maint summary::-webkit-details-marker { display: none; }
.ad-maint summary > .ico { width: 16px; height: 16px; flex: none; color: #fbbf24; }
.ad-chev { margin-left: auto; transition: transform .2s ease; }
.ad-maint[open] .ad-chev { transform: rotate(180deg); }
.ad-maint-body { padding: 0 14px 14px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.ad-maint-body .plain-pre { margin-top: 10px; }
.ad-ep { padding: 22px 24px; scroll-margin-top: 16px; }
.ad-ep-head { display: flex; align-items: flex-start; gap: 14px; }
.ad-ep-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; color: #4ade80; background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .3); }
.ad-ep-ico.pri { color: var(--primary-light); background: rgba(var(--primary-rgb), .14); border-color: rgba(var(--primary-rgb), .35); }
.ad-ep-ico.err { color: #f87171; background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .32); }
.ad-ep-ico .ico { width: 18px; height: 18px; }
.ad-ep-tt { flex: 1; min-width: 0; }
.ad-ep-tt h3 { margin: 0; font: 700 17px Inter, system-ui, sans-serif; letter-spacing: -.015em; color: var(--text); }
.ad-ep-tt p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.ad-route { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 8px 8px 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); }
.ad-route code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13px var(--font-mono); color: var(--text); }
.ad-route code span { color: var(--muted); }
.ad-sec { margin: 20px 0 10px; font: 700 12px var(--font); color: var(--muted); }
.ad-params { overflow: hidden; border-radius: 12px; border: 1px solid var(--line); }
.ad-pr { display: grid; grid-template-columns: 130px 130px minmax(0, 1fr) 76px; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.ad-pr:first-child { border-top: 0; }
.ad-pr.head { background: rgba(0, 0, 0, .3); font: 700 11.5px var(--font); color: var(--muted); }
.ad-pr-n { font: 600 13px var(--font-mono); color: var(--primary-light); }
.ad-pr-t { font: 500 12px var(--font-mono); color: #c4b5fd; }
.ad-pr-d { color: var(--text); opacity: .85; }
.ad-req { justify-self: end; padding: 3px 8px; border-radius: 6px; border: 1px solid rgba(34, 197, 94, .3); background: rgba(34, 197, 94, .12); color: #4ade80; font: 700 11px var(--font); }
.ad-req.opt { border-color: var(--line); background: rgba(255, 255, 255, .04); color: var(--muted); }
.ad-code .cc-head { gap: 10px; }
.ad-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.ad-tab { padding: 5px 10px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: var(--muted); font: 600 12px var(--font); }
.ad-tab:after { display: none; }
.ad-tab:hover { background: rgba(255, 255, 255, .05); color: #fff; transform: none; filter: none; box-shadow: none; }
.ad-tab.on { background: rgba(var(--primary-rgb), .22); color: #fff; }
.ad-str { color: #86efac; }
@media (max-width: 760px) {
  .ad-pr { grid-template-columns: 1fr auto; }
  .ad-pr-t, .ad-pr-d { grid-column: 1 / -1; }
  .ad-pr.head { display: none; }
  .ad-ep { padding: 18px 16px; }
}
html[data-theme=light] .ad-route, html[data-theme=light] .ad-pr.head { background: rgba(17, 26, 38, .04); }
html[data-theme=light] .ad-pr-t { color: #6d28d9; }
html[data-theme=light] .ad-str { color: #15803d; }
html[data-theme=light] .ad-maint summary { color: #92400e; }
.ds-s { font-size: 11.5px; color: var(--muted); }
.ds-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.ds-c { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; min-height: 92px; padding: 16px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--vf) 28%, transparent); background: var(--card); box-shadow: none; color: var(--text); text-align: left; cursor: pointer; }
.ds-c:after { display: none; }
.ds-c:hover { transform: translateY(-2px); filter: none; box-shadow: none; border-color: color-mix(in srgb, var(--vf) 45%, transparent); }
.ds-c.on { border-color: var(--vf); background: radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--vf) 22%, transparent), transparent 60%), linear-gradient(160deg, color-mix(in srgb, var(--vf) 12%, transparent), transparent 70%), var(--card); box-shadow: none; }
.ds-c.on:hover { border-color: var(--vf); box-shadow: none; }
.ds-c:focus-visible { outline: none; border-color: var(--vf); }
.ds-c.on .ds-l { color: color-mix(in srgb, var(--vf) 70%, #fff); }
.ds-c.on .ds-bg { opacity: .32; }
.ds-c.sub { cursor: default; }
.ds-c.sub:hover { transform: none; border-color: color-mix(in srgb, var(--vf) 28%, transparent); }
.ds-bg { position: absolute; right: -10px; bottom: -14px; color: var(--vf); opacity: .13; pointer-events: none; }
.ds-bg .ico { width: 70px; height: 70px; stroke-width: 1.6; }
.ds-l { font: 600 12.5px var(--font); color: var(--muted); }
.ds-n { font: 800 26px/1 Inter, system-ui, sans-serif; letter-spacing: -.025em; color: var(--text); }
.ds-c.sub .ds-n { font-size: 21px; }
@media (max-width: 1280px) { .ds-grid:not(.tres) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-grid.tres { grid-template-columns: 1fr; }
  .page-head.dash-head { padding: 16px; }
}
.dash-meta { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: 10px; font: 500 13px var(--font); color: var(--muted); vertical-align: 1px; }
.dash-meta:before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--muted2); margin-right: 2px; }
.dash-api { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: #4ade80; }
.dash-api.off { color: #f87171; }
.dash-api .live-dot { width: 7px; height: 7px; }
.dash-meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted2); }
.dash-cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px 12px; }
.dash-resumen { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font: 700 13.5px var(--font); color: var(--text); }
.dash-res-num { font-weight: 700; }
.dash-upd { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; font-size: 11px; font-weight: 600; color: var(--muted); }
.dash-upd .live-dot { width: 6px; height: 6px; }
.dash-buscar { padding: 0 20px 12px; }
.wl-search.dash-search { width: 100%; }
.dash-sel { padding: 4px 20px 14px; border-bottom: 1px solid var(--line); }
.dash-sel .check strong { font-size: 13.5px; }
#Dash-List .avatar { background: linear-gradient(135deg, #5eead4, #8b5cf6); color: #fff; box-shadow: 0 6px 16px rgba(139, 92, 246, .25), inset 0 1px 0 rgba(255, 255, 255, .35); }
#Dash-List .uid-code { color: #4ade80; background: rgba(34, 197, 94, .1); }
#Dash-List .ui-acts { gap: 8px; }
html[data-theme=light] #Dash-List .uid-code { color: #15803d; background: rgba(34, 197, 94, .12); }

@media (max-width: 640px) {
  .dash-cab, .dash-buscar, .dash-sel { padding-left: 16px; padding-right: 16px; }
  .wl-sort { flex: 1 1 100%; }
  .wl-dd { flex: 1; }
}

html[data-theme=light] .wl-search input, html[data-theme=light] .wl-dd { background: #fff; border-color: var(--line-strong); color: var(--text); }
html[data-theme=light] .rx-float-menu { background: #ffffffeb; border-color: var(--line-strong); box-shadow: 0 16px 40px rgba(19, 42, 76, .16); }
html[data-theme=light] .rx-float-item, html[data-theme=light] .rx-float-item:hover, html[data-theme=light] .rx-float-item.active { color: var(--text); }
html[data-theme=light] .rx-float-item:hover { background: rgba(var(--tint), .06); }

.rx-acts { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: nowrap; }
.rx-act { position: relative; overflow: visible; width: 38px; height: 38px; padding: 0; border-radius: 9px; color: #fff; font-weight: 600; box-shadow: none; transition: all .2s ease; }
.rx-act:after { display: none; }
.rx-act > .ico { width: 16px; height: 16px; }
.rx-acts.sm .rx-act { width: 32px; height: 32px; border-radius: 8px; }
.rx-acts.sm .rx-act > .ico { width: 15px; height: 15px; }
.rx-act:hover { transform: translateY(-1px); filter: none; }
.rx-act.verde { background: #22c55e2e; border: 1px solid rgba(34, 197, 94, .42); box-shadow: 0 0 10px #22c55e29; }
.rx-act.verde:hover { background: #22c55e59; border-color: #22c55e99; box-shadow: 0 0 14px #22c55e66; }
.rx-act.amarillo { background: #ca8a0433; border: 1px solid rgba(202, 138, 4, .3); }
.rx-act.amarillo:hover { background: #ca8a0466; box-shadow: 0 0 12px #ca8a044d; }
.rx-act.rojo { background: #dc262633; border: 1px solid rgba(220, 38, 38, .3); }
.rx-act.rojo:hover { background: #dc262666; box-shadow: 0 0 12px #dc26264d; }
.rx-act.pri { background: rgba(var(--primary-rgb), .2); border: 1px solid rgba(var(--primary-rgb), .35); }
.rx-act.pri:hover, .rx-act.pri.on { background: rgba(var(--primary-rgb), .4); border-color: rgba(var(--primary-rgb), .6); box-shadow: 0 0 12px rgba(var(--primary-rgb), .3); }
.rx-tip { pointer-events: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 50; white-space: nowrap; padding: 5px 9px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .1); background: #131210fa; box-shadow: 0 8px 22px #00000073; font-size: .74rem; font-weight: 600; color: #fff; opacity: 0; transition: opacity .2s; }
.rx-act:hover .rx-tip, .rx-act:focus-visible .rx-tip { opacity: 1; }
.rx-acts .rx-act:last-child .rx-tip { left: auto; right: 0; transform: none; }

html[data-theme=light] .rx-act { color: var(--text); }
html[data-theme=light] .rx-tip { background: #fff; color: var(--text); border-color: var(--line-strong); box-shadow: 0 8px 22px rgba(19, 42, 76, .14); }

html[data-theme=light] th { background: rgba(17, 26, 38, .05); }
html[data-theme=light] .nav-group-label, html[data-theme=light] .stat-label { color: var(--muted); }

.app-shell { --font-head: Inter, Geist, 'Segoe UI', system-ui, sans-serif; }
.app-shell .page-kicker { font: 800 .6rem/1.4 var(--font); letter-spacing: .18em; color: #8a8377; }
.app-shell .page-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.app-shell .grad-text { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); }
.app-shell .section-title { font-size: 17px; font-weight: 700; color: var(--text) !important; }
.app-shell .card h3[style] { color: var(--text) !important; font-size: 16px !important; }
html[data-theme=light] .app-shell .page-kicker { color: var(--muted); }

.modal-backdrop { padding: 24px; background: radial-gradient(42% 46% at 50% 50%, rgba(var(--primary-rgb), .13), transparent 72%), radial-gradient(85% 80% at 50% 50%, #06060680, #040404db); backdrop-filter: blur(9px) saturate(120%); -webkit-backdrop-filter: blur(9px) saturate(120%); }
#Dlg-Confirm.peligro { background: radial-gradient(42% 46% at 50% 50%, rgba(239, 68, 68, .11), transparent 72%), radial-gradient(85% 80% at 50% 50%, #06060680, #040404db); }
.rx-ventana { position: relative; width: 100%; max-width: 540px; margin: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); animation: rx-modal-card .5s cubic-bezier(.34, 1.56, .64, 1) both; }
.rx-ventana.md { max-width: 540px; }
.rx-ventana-borde { padding: 1px; border-radius: 0 24px; background: linear-gradient(135deg, #7a7d80, #55585b 6%, #2a2c2e 30%, #2a2c2e 60%, #3a3c3e 90%, #55585b); clip-path: polygon(46px 0, 100% 0, 100% calc(100% - 46px), calc(100% - 46px) 100%, 0 100%, 0 46px); }
.rx-ventana-borde > .modal-box { position: relative; max-width: none; margin: 0; padding: 28px 26px 24px; border: 0; border-radius: 0 23px; background: linear-gradient(165deg, #1f1e1d, #121110 40%), #0f0e0d; clip-path: polygon(45.6px 0, 100% 0, 100% calc(100% - 44px), calc(100% - 44px) 100%, 0 100%, 0 45.6px); box-shadow: inset 0 1px #ffffff12; color: #EBEFF6; animation: none; max-height: calc(calc(100vh / var(--Zoom, 1)) - 48px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .14) transparent; }
.rx-ventana-borde > .modal-box.flush { padding: 6px 0 0; overflow-x: hidden; }
.rx-ventana-esq { position: absolute; z-index: 8; width: 38px; height: 38px; background: #6a6d70; pointer-events: none; }
.rx-ventana-esq > span { position: absolute; width: 35.5px; height: 35.5px; }
.rx-ventana-esq.arriba { top: 0; left: 0; border-radius: 7px 0 0 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
.rx-ventana-esq.arriba > span { top: 1px; left: 1px; border-radius: 6px 0 0 0; clip-path: polygon(0 0, 100% 0, 0 100%); background: linear-gradient(135deg, #5e6164 0%, #4a4d50 22%, #35373a 40%, #26282a 50%); }
.rx-ventana-esq.abajo { bottom: 0; right: 0; border-radius: 0 0 7px 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.rx-ventana-esq.abajo > span { bottom: 1px; right: 1px; border-radius: 0 0 6px 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); background: linear-gradient(315deg, #5e6164 0%, #4a4d50 22%, #35373a 40%, #26282a 50%); }
.rx-ventana-cab { display: flex; flex-direction: column; align-items: center; text-align: center; }
.rx-modal-x { position: absolute; top: 16px; right: 16px; z-index: 7; width: 34px; height: 34px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .035); color: #d7d3cb; box-shadow: none; transition: background .2s ease, border-color .2s ease; }
.rx-modal-x:after { display: none; }
.rx-modal-x:hover { background: rgba(255, 255, 255, .065); border-color: rgba(var(--primary-rgb), .45); transform: none; filter: none; box-shadow: none; }
.rx-modal-x > .ico { width: 14px; height: 14px; }
.rx-modal-icon { position: relative; isolation: isolate; width: 54px; height: 54px; margin: 2px auto 14px; display: flex; align-items: center; justify-content: center; border-radius: 17px; color: #fff; background: linear-gradient(160deg, var(--primary-hi), var(--primary) 55%, var(--primary-lo)); box-shadow: 0 12px 30px rgba(var(--primary-rgb), .4), inset 0 1px #ffffff59; }
.rx-modal-icon > .ico { width: 22px; height: 22px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3)); }
.rx-modal-icon:after { content: ""; position: absolute; inset: -45%; z-index: -1; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(var(--primary-rgb), .28), transparent 70%); }
#Dlg-Confirm.peligro .rx-modal-icon { background: linear-gradient(160deg, #fb8a8a, #ef4444 55%, #b91c1c); box-shadow: 0 12px 30px rgba(239, 68, 68, .38), inset 0 1px #ffffff59; }
#Dlg-Confirm.peligro .rx-modal-icon:after { background: radial-gradient(closest-side, rgba(239, 68, 68, .26), transparent 70%); }
.modal-box .rx-modal-title { margin: 0 0 12px; font: 700 24px/1.15 Sora, 'Segoe UI', sans-serif; letter-spacing: -.03em; color: #EBEFF6; overflow-wrap: anywhere; }
.rx-modal-title span { background: linear-gradient(180deg, var(--primary-hi), var(--primary) 60%, var(--primary-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.rx-modal-desc { max-width: 360px; margin: 0 auto 4px; color: #ABA497; font: 400 13.5px/1.5 Geist, 'Segoe UI', sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.rx-modal-desc:empty { display: none; }
.rx-modal-desc .mono { color: var(--primary-light); font-weight: 600; }
.rx-campo { margin-top: 14px; min-width: 0; }
.rx-campos { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 12px; }
.rx-ventana .rx-campo .lbl-sm { margin-bottom: 7px; color: #ABA497; font: 500 12px/1.3 Geist, 'Segoe UI', sans-serif; letter-spacing: .01em; }
.rx-ventana .rx-campo input { height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .035); color: #EBEFF6; font-size: 13.5px; font-weight: 500; caret-color: var(--primary-light); }
.rx-ventana .rx-campo input:hover { border-color: #fff3; }
.rx-ventana .rx-campo input::placeholder { color: #6f695f; }
.rx-ventana .rx-campo input:focus { background: rgba(255, 255, 255, .065); border-color: rgba(var(--primary-rgb), .6); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .14); }
.rx-ventana .rx-seg { margin-top: 18px; }
.rx-ventana .rx-lista { margin-top: 16px; text-align: left; }
.rx-ventana .modal-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed rgba(255, 255, 255, .09); }
.rx-ventana .modal-foot > button { height: 46px; padding: 0 18px; border-radius: 12px; font: 600 14px Geist, 'Segoe UI', system-ui, sans-serif; transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, filter .2s ease, transform .25s cubic-bezier(.16, 1, .3, 1); }
.rx-ventana .modal-foot > button:after { display: none; }
.rx-ventana .modal-foot > button span { font-size: 16px; }
.rx-ventana .modal-foot > button.sec { background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .14); color: #EBEFF6; box-shadow: none; }
.rx-ventana .modal-foot > button.sec:hover { background: rgba(255, 255, 255, .065); border-color: rgba(var(--primary-rgb), .45); transform: none; filter: none; }
.rx-ventana .modal-foot > button:not(.sec):not(.danger-solid) { background: linear-gradient(180deg, var(--primary-hi), var(--primary) 55%, var(--primary-lo)); border: 1px solid rgba(255, 255, 255, .12); color: var(--primary-fg); box-shadow: 0 10px 24px -8px rgba(var(--primary-rgb), .55), inset 0 1px #ffffff40; }
.rx-ventana .modal-foot > button.danger-solid { background: linear-gradient(180deg, #f87171, #ef4444 55%, #c42020); border: 1px solid rgba(255, 255, 255, .12); color: #fff; box-shadow: 0 10px 24px -8px rgba(239, 68, 68, .6), inset 0 1px #ffffff40; }
.rx-ventana .modal-foot > button:not(.sec):hover { filter: brightness(1.08); transform: translateY(-1px); }

html[data-theme=light] .rx-ventana { filter: drop-shadow(0 30px 40px #132a4c2e); }
html[data-theme=light] .rx-ventana-borde { background: linear-gradient(135deg, #d6d0c5, #e7e2d9 30%, #e7e2d9 60%, #d6d0c5); }
html[data-theme=light] .rx-ventana-borde > .modal-box { background: linear-gradient(165deg, #fdfcf9, #f3f0e9); color: var(--text); }
html[data-theme=light] .rx-ventana-esq { background: #d6d0c5; }
html[data-theme=light] .rx-ventana-esq > span { background: linear-gradient(135deg, #e2ddd3, #ece8e0 50%); }
html[data-theme=light] .modal-box .rx-modal-title { color: var(--text); }
html[data-theme=light] .rx-modal-desc, html[data-theme=light] .rx-ventana .rx-campo .lbl-sm { color: var(--muted); }
html[data-theme=light] .rx-ventana .rx-campo input { background: #fff; border-color: rgba(17, 26, 38, .14); color: var(--text); }
html[data-theme=light] .rx-modal-x, html[data-theme=light] .rx-ventana .modal-foot > button.sec { background: #fff; border-color: rgba(17, 26, 38, .14); color: var(--text); }
html[data-theme=light] .rx-ventana .modal-foot { border-top-color: rgba(17, 26, 38, .14); }

@media (max-width: 640px) {
  .rx-ventana-borde > .modal-box { padding: 26px 18px 20px; }
  .rx-campos { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .modal-box .rx-modal-title { font-size: 21px; }
}

#Dlg-Confirm .rx-modal-title { margin-bottom: 10px; }
#Dlg-Confirm .rx-modal-desc { margin-bottom: 16px; max-width: 330px; }
#Dlg-Confirm.peligro .rx-modal-title span { background: linear-gradient(180deg, #fca5a5, #ef4444 60%, #c42020); -webkit-background-clip: text; background-clip: text; }
.rx-pill { display: block; max-width: 100%; margin: 4px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .035); color: #EBEFF6; font: 500 13.5px/1.45 Geist, 'Segoe UI', sans-serif; text-align: center; white-space: pre-line; word-break: break-word; }
#Dlg-Confirm.peligro .rx-pill { border-color: rgba(239, 68, 68, .28); background: rgba(239, 68, 68, .07); color: #f5d0d0; }
#Dlg-Confirm.peligro .rx-modal-x:hover { border-color: rgba(239, 68, 68, .5); }
html[data-theme=light] .rx-pill { background: #fff; border-color: rgba(17, 26, 38, .14); color: var(--text); }
html[data-theme=light] #Dlg-Confirm.peligro .rx-pill { background: rgba(239, 68, 68, .06); color: #9b1c1c; }

#Edit-User-Box .eu-cab { padding: 24px 26px 4px; }
#Edit-User-Box .modal-scroll { padding: 18px 26px 24px; }
