:root {
  --bg: #07080d;
  --surface: rgba(16, 20, 34, 0.78);
  --surface-solid: #121624;
  --stroke: rgba(164, 188, 255, 0.14);
  --stroke-strong: rgba(186, 210, 255, 0.28);
  --text: #edf2ff;
  --muted: #93a0bd;
  --faint: #66728e;
  --accent: #3ef0d0;
  --accent-2: #7aa2ff;
  --accent-ink: #04221c;
  --danger: #ff5d7a;
  --warn: #ffc857;
  --ok: #3ef0a4;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --sidebar: 272px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
  --mono: "Cascadia Code", "Consolas", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
::selection { background: rgba(62, 240, 208, 0.28); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a3148; border-radius: 99px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; }
p { margin: 0; }

.role-admin {
  --accent: #9ebcff;
  --accent-2: #c4b5ff;
  --accent-ink: #10182e;
}

.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(48px); opacity: 0.55; animation: float 18s ease-in-out infinite; }
.orb-a { width: 460px; height: 460px; background: #16465c; top: -140px; left: -80px; }
.orb-b { width: 380px; height: 380px; background: #3a2468; right: -120px; top: 18%; animation-delay: -6s; }
.orb-c { width: 320px; height: 320px; background: #0d5c4e; left: 32%; bottom: -140px; animation-delay: -12s; }
.ambient .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 15%, transparent 72%);
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(20px, -28px, 0) scale(1.06); }
}

.app { position: relative; z-index: 1; display: flex; align-items: flex-start; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; flex: 0 0 var(--sidebar); width: var(--sidebar); z-index: 20;
  display: flex; flex-direction: column;
  padding: 18px 14px 16px;
  background: rgba(10, 12, 20, 0.88);
  border-right: 1px solid var(--stroke);
  backdrop-filter: blur(18px);
  overflow: visible;
  transition: flex-basis .42s cubic-bezier(.22,.8,.24,1), width .42s cubic-bezier(.22,.8,.24,1), padding .42s ease;
}
.side-toggle {
  position: absolute; top: 78px; left: calc(var(--sidebar) - 15px); z-index: 30;
  width: 30px; height: 30px; border-radius: 999px; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  color: var(--text); background: #141a2b;
  border: 1px solid rgba(62, 240, 208, 0.35);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(62, 240, 208, 0.2);
  transition: left .42s cubic-bezier(.22,.8,.24,1), transform .42s cubic-bezier(.22,.8,.24,1), box-shadow .25s ease, background .2s ease;
}
.side-toggle:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), 0 0 0 5px rgba(62, 240, 208, 0.14); }
.side-toggle svg { display: block; }
.brand > span:last-child, .nav-label, .nav-link > span, .nav-link .badge, .net > span, .userchip > span, .side-foot .btn > span, .ver {
  transition: opacity .28s ease, max-width .42s cubic-bezier(.22,.8,.24,1), margin .42s ease;
}
@media (min-width: 961px) {
  html.sidebar-hidden .sidebar { flex-basis: 84px; width: 84px; padding-left: 10px; padding-right: 10px; }
  html.sidebar-hidden .side-toggle { left: 69px; transform: rotate(180deg); }
  html.sidebar-hidden .brand { justify-content: center; padding-right: 0; padding-left: 0; }
  html.sidebar-hidden .brand > span:last-child,
  html.sidebar-hidden .nav-link > span,
  html.sidebar-hidden .nav-link .badge,
  html.sidebar-hidden .net > span,
  html.sidebar-hidden .userchip > span:not(.avatar),
  html.sidebar-hidden .side-foot .btn > span,
  html.sidebar-hidden .ver {
    max-width: 0; opacity: 0; margin: 0; overflow: hidden; white-space: nowrap; pointer-events: none;
  }
  html.sidebar-hidden .nav-label { max-height: 0; margin: 0; opacity: 0; overflow: hidden; }
  html.sidebar-hidden .nav-link { justify-content: center; gap: 0; padding-left: 0; padding-right: 0; }
  html.sidebar-hidden .nav-sub { display: none; }
  html.sidebar-hidden .nav { padding-right: 0; }
  html.sidebar-hidden .net, html.sidebar-hidden .userchip, html.sidebar-hidden .side-foot .btn { justify-content: center; }
}
.main { flex: 1; min-width: 0; min-height: 100vh; position: relative; }
@media (max-width: 1280px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 16px; min-width: 0; overflow: hidden; }
.brand strong { display: block; font-family: var(--display); font-size: 15px; letter-spacing: -0.03em; }
.brand small { color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  background: conic-gradient(from 120deg, var(--accent), var(--accent-2), #d8b4fe, var(--accent));
  animation: spin 10s linear infinite;
  box-shadow: 0 0 24px rgba(62, 240, 208, 0.25);
}
.brand-mark b {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: #0d111c; color: white;
  font-family: var(--display); font-size: 14px;
  animation: spin 10s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.nav { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 4px; overflow-x: hidden; overflow-y: auto; padding-right: 4px; }
.nav-label {
  margin: 16px 12px 6px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 12px;
  color: var(--muted); font-weight: 700;
  position: relative;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  animation: rise 0.5s ease both;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.nav-link.is-active {
  background: linear-gradient(90deg, rgba(62, 240, 208, 0.16), rgba(122, 162, 255, 0.05));
  color: var(--text);
}
.role-admin .nav-link.is-active {
  background: linear-gradient(90deg, rgba(158, 188, 255, 0.18), rgba(196, 181, 255, 0.05));
}
.nav-sub { display: grid; gap: 2px; margin: 0 0 8px 22px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.08); }
.nav-sublink { padding: 8px 10px; font-size: 13px; font-weight: 650; }
.nav-sublink.is-active::before { display: none; }
.nav-link.is-active::before {
  content: "";
  position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
  border-radius: 99px; background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.icon { width: 18px; height: 18px; flex: none; }
.badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 99px; display: grid; place-items: center;
  background: rgba(255, 93, 122, 0.16); color: #ffb3c2;
  font-size: 11px; font-style: normal; font-weight: 800;
}
.side-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 14px; }
.net { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; padding: 0 8px; }
.net i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(62, 240, 164, 0.7); animation: ping 1.8s infinite; }
.net.warn i { background: var(--warn); animation: none; }
.ver { color: var(--faint); text-align: center; font-size: 11px; overflow-wrap: anywhere; padding: 0 10px; }
body.style-blue {
  --accent: #7aa2ff;
  --accent-2: #d8b4fe;
  --accent-ink: #10182e;
}
body.style-violet {
  --accent: #d8b4fe;
  --accent-2: #7aa2ff;
  --accent-ink: #1c1030;
}
.sys-page { display: grid; gap: 16px; min-width: 0; }
.sys-page > form { display: grid; gap: 16px; min-width: 0; }
.sys-page .card { min-width: 0; }
.sys-block { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.sys-block > .card-head { margin-bottom: 0; }
.sys-choices, .sys-access { display: grid; gap: 12px; width: 100%; }
.sys-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sys-access { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sys-choice, .sys-switch {
  position: relative; min-width: 0; margin: 0; padding: 16px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); cursor: pointer;
}
.sys-choice { display: flex; flex-direction: column; gap: 6px; }
.sys-choice input { position: absolute; opacity: 0; pointer-events: none; }
.sys-choice strong { font-family: var(--display); font-size: 20px; letter-spacing: -.04em; line-height: 1.2; }
.sys-choice span { color: var(--muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.sys-choice:has(input:checked), .sys-switch:has(input:checked) { border-color: rgba(62, 240, 208, .7); background: rgba(62, 240, 208, .08); }
.sys-switch { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; }
.sys-switch strong { grid-column: 1; font-family: var(--display); font-size: 16px; line-height: 1.2; }
.sys-switch span { grid-column: 1; color: var(--muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.sys-switch input { grid-column: 2; grid-row: 1 / span 2; width: 18px; height: 18px; margin: 0; accent-color: #3ef0d0; }
.sys-block > .btn { align-self: flex-start; margin: 0; }
.sys-page .card-head > div { min-width: 0; }
.sys-page .card-head p { overflow-wrap: anywhere; }
.sys-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 16px; align-items: start; }
.sys-split > * { min-width: 0; }
.sys-files, .sys-notes { display: grid; gap: 8px; }
.sys-file, .sys-note {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-width: 0; padding: 12px 14px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03);
}
.sys-file > div, .sys-note > div { min-width: 0; display: grid; gap: 2px; }
.sys-file b, .sys-note b, .sys-file span, .sys-note span { min-width: 0; overflow-wrap: anywhere; }
.sys-file span, .sys-note span { color: var(--muted); font-size: 13px; }
.sys-file em { flex: none; font-style: normal; font-weight: 800; }
.sys-file em.is-ok { color: var(--accent); }
.sys-file em.is-off { color: var(--danger); }
.sys-note-add { display: grid; grid-template-columns: minmax(120px, 160px) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.sys-note-add .field, .sys-note .btn { min-width: 0; }
@media (max-width: 1100px) {
  .sys-split, .sys-note-add, .sys-choices, .sys-access { grid-template-columns: 1fr; }
}
.userchip { display: flex; align-items: center; gap: 10px; min-width: 0; }
.userchip strong, .userchip small { display: block; }
.userchip strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.userchip small { color: var(--muted); font-size: 12px; }
.avatar {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: hsl(var(--h, 180) 70% 48%);
  color: #04120f; font-weight: 800; letter-spacing: -0.03em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.topbar {
  position: sticky; top: 0; z-index: 8;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  background: rgba(7, 8, 13, 0.55);
  backdrop-filter: blur(16px);
}
.search-btn {
  flex: 1; max-width: 520px;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted); text-align: left;
  transition: border-color 0.2s, background 0.2s;
}
.search-btn:hover { border-color: var(--stroke-strong); background: rgba(255, 255, 255, 0.05); }
.search-ico { display: grid; }
.search-btn kbd {
  font-family: var(--mono); font-size: 11px;
  border: 1px solid var(--stroke); border-bottom-width: 2px;
  border-radius: 6px; padding: 2px 6px; color: var(--faint);
}
.search-btn kbd + kbd { margin-left: -4px; }
.search-btn { min-width: 0; }
.search-btn > span:not(.search-ico) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.apps-btn { border-radius: 12px; color: var(--muted); }
.apps-btn:hover, .apps-btn[aria-expanded="true"] {
  color: var(--accent); border-color: rgba(62, 240, 208, 0.45); background: rgba(62, 240, 208, 0.1);
}
.apps-pop {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, calc(100vw - 24px));
  padding: 12px; border-radius: 22px; z-index: 40;
  background: rgba(14, 18, 30, 0.96); color: var(--text);
  border: 1px solid var(--stroke-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.apps-pop[hidden] { display: none; }
.apps-pop > p {
  margin: 2px 8px 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--faint);
}
.apps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.apps-empty { grid-column: 1 / -1; margin: 8px; color: var(--muted); }
.app-tile {
  display: grid; justify-items: center; align-content: start; gap: 8px; min-width: 0;
  padding: 12px 6px; border-radius: 16px; color: var(--text); text-align: center; text-decoration: none;
  border: 1px solid transparent;
}
.app-tile:hover { background: rgba(62, 240, 208, 0.08); border-color: rgba(62, 240, 208, 0.22); }
.app-tile img, .app-letter {
  width: 48px; height: 48px; border-radius: 14px; object-fit: cover;
}
.app-letter {
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke); color: var(--accent); font-weight: 800;
}
.app-tile small { max-width: 100%; font-size: 12px; font-weight: 700; line-height: 1.25; color: var(--muted); overflow-wrap: anywhere; }
.app-tile.is-market {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px; text-align: left; background: rgba(255, 255, 255, 0.03); border-color: var(--stroke);
}
.app-open { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.app-tile.is-market .app-open img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; }
.app-tile:not(.is-market) .app-open { display: grid; justify-items: center; gap: 8px; }
.app-meta { display: grid; justify-items: end; gap: 6px; flex: none; }
.app-tile:not(.is-market) .app-meta { justify-items: center; }
.app-ver { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--faint); }
.app-news {
  height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04); color: var(--text); font-size: 12px; font-weight: 800;
}
.app-news:hover, .app-news.is-on { border-color: rgba(62, 240, 208, 0.45); color: var(--accent); background: rgba(62, 240, 208, 0.1); }
.app-note {
  flex: 1 0 100%; margin: 0; padding: 10px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--stroke);
  color: var(--muted); font-size: 13px; line-height: 1.45; white-space: pre-wrap; text-align: left;
}
.apps-pop .brand-copy, .apps-preview .brand-copy { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.apps-pop .brand-copy em, .apps-preview .brand-copy em {
  color: var(--text); background: rgba(62, 240, 208, 0.1); border: 1px solid rgba(62, 240, 208, 0.28);
  border-radius: 999px; padding: 3px 8px; font-style: normal; font-size: 10px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.3;
}
.apps-pop .brand-copy i, .apps-preview .brand-copy i {
  font-style: normal; font-weight: 600; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1;
  color: #9aa8ff; background: linear-gradient(100deg, #7aa2ff, #3ef0d0); -webkit-background-clip: text; background-clip: text;
}
.apps-owner-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.apps-preview { padding: 8px; border-radius: 22px; background: rgba(14, 18, 30, 0.72); border: 1px solid var(--stroke); }
.apps-preview .apps-grid, .apps-preview .app-tile.is-market { display: flex; }
.apps-checks { display: grid; gap: 8px; align-content: end; }
@media (max-width: 800px) {
  .apps-owner-row { grid-template-columns: 1fr; }
}
.icon-btn { width: 42px; height: 42px; padding: 0; display: grid; place-items: center; position: relative; }
.dot-note {
  position: absolute; top: 9px; right: 9px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(7, 8, 13, 0.8);
}
.bell-count {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: #ff5d73; color: #fff;
  font-size: 10px; font-weight: 800; font-style: normal; line-height: 18px;
  text-align: center; box-shadow: 0 0 0 3px rgba(7, 8, 13, 0.85);
}
.popwrap { position: relative; }
.pop {
  position: absolute; right: 0; top: calc(100% + 8px); width: 380px;
  background: rgba(16, 20, 32, 0.96);
  border: 1px solid var(--stroke-strong);
  border-radius: 16px; box-shadow: var(--shadow);
  padding: 8px; z-index: 30;
}
.pop[hidden] { display: none; }
.pop-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); padding: 8px 10px; font-weight: 800;
}
.pop-head small { letter-spacing: 0; text-transform: none; color: var(--muted); font-weight: 600; }
.pop-head button {
  margin-left: auto; border: 0; background: transparent; color: var(--accent-2);
  font: inherit; font-size: 12px; letter-spacing: 0; text-transform: none; cursor: pointer; font-weight: 700;
}
.pop-head button[hidden] { display: none; }
.note-list { max-height: 380px; overflow: auto; }
.note { display: flex; gap: 4px; align-items: flex-start; padding: 4px; border-radius: 12px; }
.note.is-unread { background: rgba(62, 240, 208, 0.06); }
.note:hover { background: rgba(255, 255, 255, 0.04); }
.note-open {
  display: flex; gap: 10px; flex: 1; min-width: 0;
  padding: 8px; border: 0; background: transparent; color: inherit;
  text-align: left; cursor: pointer; font: inherit;
}
.note p {
  font-size: 14px; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.note.is-open p { display: block; -webkit-line-clamp: unset; }
.note small { color: var(--muted); }
.note-x {
  width: 32px; height: 32px; margin-top: 6px; flex: none;
  display: grid; place-items: center; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.note-x:hover { background: rgba(255, 93, 115, 0.12); color: #ff8b9a; }
.note-x svg { width: 16px; height: 16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--accent-2); }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.err { background: var(--danger); }
.dot.info { background: var(--accent-2); }

.content { padding: 6px 28px 48px; min-width: 0; overflow-x: clip; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.page-head h1 { font-family: var(--display); font-size: clamp(26px, 3vw, 36px); }
.page-head > div { min-width: 0; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 640px; overflow-wrap: anywhere; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-body { animation: fade 0.45s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.banner {
  margin: 0 28px;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 200, 87, 0.1);
  border: 1px solid rgba(255, 200, 87, 0.28);
  color: #ffe3a8;
  overflow-wrap: anywhere;
}
.banner + .banner { margin-top: 8px; }
.banner.danger {
  background: rgba(255, 93, 122, 0.1);
  border-color: rgba(255, 93, 122, 0.32);
  color: #ffc3cf;
}

.stack { display: grid; gap: 14px; }
.grid-4, .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: 14px; }
.grid-2 > *, .stack > * { min-width: 0; max-width: 100%; }
.span-2 { grid-column: span 2; }

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow);
  padding: 18px;
}
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card h2 { font-size: 16px; }
.card-head a { color: var(--accent); font-weight: 800; font-size: 13px; }
.stat {
  display: flex; gap: 14px; align-items: center;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.2s, border-color 0.2s;
}
.stat:hover { transform: translateY(-3px); border-color: var(--stroke-strong); }
.stat-ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: rgba(62, 240, 208, 0.12); color: var(--accent);
}
.stat-ico.violet { background: rgba(122, 162, 255, 0.14); color: #b9ccff; }
.stat-ico.gold { background: rgba(255, 200, 87, 0.14); color: var(--warn); }
.stat-ico.rose { background: rgba(255, 93, 122, 0.14); color: #ffb0c0; }
.stat span, .stat em { display: block; color: var(--muted); font-style: normal; font-size: 13px; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(18px, 1.5vw, 26px); letter-spacing: -0.04em; margin: 2px 0; overflow-wrap: anywhere; }

[hidden] { display: none !important; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; padding: 10px 14px;
  border: 1px solid transparent; font-weight: 800;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.65; cursor: progress; transform: none; }
.btn-primary {
  background: linear-gradient(180deg, #74f7e2, #1ed4b4);
  color: var(--accent-ink);
  box-shadow: 0 10px 24px rgba(62, 240, 208, 0.22);
}
.role-admin .btn-primary {
  background: linear-gradient(180deg, #e5edff, #8eafff);
  color: #10182e;
  box-shadow: 0 10px 24px rgba(122, 162, 255, 0.22);
}
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--stroke); color: var(--text); }
.btn-ghost:hover { border-color: var(--stroke-strong); }
.btn-danger { background: rgba(255, 93, 122, 0.1); color: #ffb4c2; border-color: rgba(255, 93, 122, 0.32); }
.btn-sm { padding: 7px 10px; border-radius: 10px; font-size: 13px; }
.btn-block { width: 100%; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px 4px 7px; border-radius: 999px;
  font-size: 12px; font-weight: 800;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke); color: var(--muted);
  white-space: nowrap;
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.online { color: var(--ok); }
.pill.online i { animation: ping 1.6s infinite; }
.pill.starting, .pill.pending, .pill.maintenance { color: var(--warn); }
.pill.offline, .pill.closed { color: var(--faint); }
.pill.suspended, .pill.overdue { color: #ff8ea3; }
.pill.answered, .pill.paid { color: #9eb6ff; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(62, 240, 164, 0.65); }
  100% { box-shadow: 0 0 0 8px transparent; }
}

.toolbar { display: grid; gap: 10px; margin-bottom: 14px; }
.toolbar .search-inline { width: 100%; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border-radius: 999px; padding: 7px 12px;
  border: 1px solid var(--stroke); background: transparent;
  color: var(--muted); font-weight: 800; font-size: 13px;
}
.chip.is-active { color: var(--accent-ink); background: var(--accent); border-color: transparent; }

.server-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.server-card {
  --tone: var(--accent);
  position: relative; overflow: hidden;
  padding: 18px; border-radius: 20px;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(420px 140px at 100% 0%, color-mix(in srgb, var(--tone) 28%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  display: grid; gap: 12px;
  transition: transform 0.2s, border-color 0.2s;
}
.server-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tone) 50%, var(--stroke)); }
.server-card[data-tone="amber"] { --tone: #ffb020; }
.server-card[data-tone="green"] { --tone: #3dff9a; }
.server-card[data-tone="gold"] { --tone: #ffd15c; }
.server-card[data-tone="blue"] { --tone: #7aa2ff; }
.server-card[data-tone="rust"] { --tone: #ff7a4d; }
.server-card[data-tone="teal"] { --tone: #3ee0d2; }
.server-top, .server-meta, .server-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.server-title { display: flex; gap: 12px; align-items: center; min-width: 0; }
.server-title strong, .srow strong { display: block; }
.server-title small, .srow small, .muted { color: var(--muted); }
.gmark {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
  font-family: var(--display); font-size: 12px; letter-spacing: -0.04em;
  background: rgba(255,255,255,.06); border: 1px solid var(--stroke); color: var(--tone, var(--text));
}
.gmark.amber { color: #ffb020; } .gmark.green { color: #3dff9a; } .gmark.gold { color: #ffd15c; }
.gmark.blue { color: #9eb6ff; } .gmark.rust { color: #ff7a4d; } .gmark.teal { color: #3ee0d2; }
.server-actions { justify-content: flex-start; flex-wrap: wrap; }
.srow {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: 14px;
  transition: background 0.2s;
}
.srow:hover { background: rgba(255,255,255,.04); }
.srow .gmark { width: 40px; height: 40px; }
.srow-main { flex: 1; min-width: 0; }
.srow-main small { display: block; }

.meter-block { display: grid; gap: 6px; }
.meter-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 700; }
.meter-top b { color: var(--text); }
.meter { height: 8px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.meter > span {
  display: block; height: 100%; width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--tone, var(--accent)));
  transition: width .9s linear;
}
@keyframes grow { from { transform: scaleX(0); } }
.meter-row { display: grid; gap: 10px; }

.sftp-card {
  margin-top: 14px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background:
    radial-gradient(70% 140% at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(18, 24, 42, 0.96), rgba(10, 12, 22, 0.96));
}
.sftp-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.sftp-kicker { margin: 0 0 6px; color: var(--accent); letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px; }
.sftp-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.sftp-grid > div { background: rgba(0, 0, 0, 0.28); border-radius: 16px; padding: 12px 14px; display: grid; gap: 6px; min-width: 0; }
.sftp-grid span { color: var(--muted); font-size: 12px; }
.sftp-grid b { overflow-wrap: anywhere; }
.sftp-grid button { justify-self: start; border: 0; background: transparent; color: var(--accent); padding: 0; font-size: 12px; }
@media (max-width: 980px) {
  .sftp-head { flex-direction: column; }
  .sftp-grid { grid-template-columns: 1fr 1fr; }
}
.gauge-row { display: flex; justify-content: space-around; gap: 12px; flex-wrap: wrap; }
.gauge { position: relative; width: 128px; height: 128px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 8; }
.gauge .track { stroke: rgba(255,255,255,.07); }
.gauge .value {
  stroke: var(--accent); stroke-linecap: round;
  stroke-dasharray: calc(var(--val) * 3.267) 326.7;
  transition: stroke-dasharray .9s linear;
}
@keyframes gauge { from { stroke-dasharray: 0 326.7; } }
.gauge-label {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.gauge-label strong { font-family: var(--display); font-size: 18px; }
.gauge-label span { color: var(--muted); font-size: 12px; }
.gauge.is-live .value { animation: none; }
.gauge-unit { display: grid; justify-items: center; gap: 4px; min-width: 128px; }
.resource-usage { margin: 0; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; }

.explorer {
  display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 560px;
  border: 1px solid rgba(164, 188, 255, 0.18); border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(80% 40% at 0% 0%, rgba(62, 240, 208, 0.08), transparent 40%),
    #0b0f16;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.explorer-side { border-right: 1px solid var(--stroke); padding: 12px; background: rgba(255,255,255,.02); display: grid; align-content: start; gap: 4px; }
.explorer-side a, .crumbs a { color: var(--muted); border-radius: 8px; }
.explorer-side a { padding: 8px 10px; }
.explorer-side a.is-active, .explorer-side a:hover, .crumbs a:hover { color: var(--text); background: rgba(62, 240, 208, .08); }
.explorer-label { margin: 8px 0 4px; color: var(--faint); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; }
.explorer-bar { display: flex; gap: 8px; align-items: center; padding: 10px; border-bottom: 1px solid var(--stroke); }
.crumbs { display: flex; gap: 6px; align-items: center; flex: 1; min-width: 0; padding: 6px 10px; border-radius: 10px; background: rgba(0,0,0,.28); overflow: auto; }
.explorer-new { display: flex; gap: 6px; }
.explorer-new input { width: 140px; }
.explorer-table-wrap { overflow: auto; }
.explorer-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.explorer-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; border-bottom: 1px solid var(--stroke); }
.explorer-tools form, .explorer-zip { display: flex; gap: 6px; align-items: center; }
.explorer-zip input { width: 128px; }
.explorer-tools .btn { margin: 0; }
.explorer-table th, .explorer-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.05); }
.explorer-table .pick { width: 42px; }
.file-open { border: 0; background: transparent; padding: 0; color: var(--text); text-align: left; }
.file-open:hover { color: var(--accent); }
.file-name { display: inline-flex; align-items: center; gap: 8px; }
.is-dir .file-name::before, .is-file .file-name::before {
  content: ""; width: 16px; height: 16px; flex: 0 0 16px; border-radius: 4px;
  background: rgba(142, 176, 255, 0.2); box-shadow: inset 0 0 0 1px rgba(142, 176, 255, 0.35);
}
.is-dir .file-name::before { background: rgba(62, 240, 208, 0.2); box-shadow: inset 0 0 0 1px rgba(62, 240, 208, 0.4); }
.explorer-status {
  margin: 0; padding: 8px 14px; border-top: 1px solid var(--stroke);
  color: var(--muted); font-size: 12px;
}
.editor-window { width: min(920px, 100%); max-height: min(88vh, 860px); overflow: auto; }
.editor-window .editor { min-height: 320px; height: 48vh; }
.plan-board { display: grid; gap: 16px; }
.plan-group { display: grid; gap: 10px; }
.plan-group > h2 { margin: 0; font-size: 18px; }
.plan-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.plan-list { display: grid; gap: 12px; }
.plan-card {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 18px; align-items: center; padding: 18px 20px;
  border: 1px solid var(--stroke); border-radius: 18px;
  background: rgba(16, 20, 34, 0.72);
}
.plan-card.is-hot { border-color: rgba(62, 240, 208, 0.45); box-shadow: inset 0 0 0 1px rgba(62, 240, 208, 0.12); }
.plan-card.is-off { opacity: 0.62; }
.plan-price strong { display: block; font-family: var(--display); font-size: 28px; letter-spacing: -0.04em; }
.plan-price small { color: var(--muted); font-size: 12px; }
.plan-title { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.plan-copy p { margin: 6px 0 0; color: var(--muted); }
.plan-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.plan-specs span {
  padding: 4px 8px; border-radius: 999px; border: 1px solid var(--stroke);
  color: var(--muted); font-size: 12px; background: rgba(255,255,255,.03);
}
.plan-actions { display: flex; gap: 8px; }
.plan-window { width: min(860px, 100%); max-height: min(88vh, 900px); overflow: auto; }
.explorer-table th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.explorer-table tr.is-selected td { background: rgba(62, 240, 208, .08); }
.explorer-table tbody tr:hover td { background: rgba(255,255,255,.03); }
.explorer-edit { display: grid; gap: 10px; padding: 12px; border-top: 1px solid var(--stroke); }
.acl-board { display: grid; gap: 14px; }
.acl-card { border: 1px solid var(--stroke); border-radius: 16px; padding: 16px; background: rgba(255,255,255,.02); display: grid; gap: 12px; }
.acl-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.right-toggle { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--stroke); border-radius: 12px; background: rgba(0,0,0,.18); }
.right-toggle span { display: grid; }
.right-toggle small { color: var(--faint); font-family: var(--mono); }
.install-log { margin: 0; padding: 12px; border-radius: 12px; background: #07090f; color: #c9ffe8; overflow: auto; font-family: var(--mono); font-size: 12px; white-space: pre-wrap; }
@media (max-width: 860px) {
  .plan-card, .plan-toolbar { grid-template-columns: 1fr; display: grid; }
  .plan-actions { justify-content: flex-start; }
  .explorer { grid-template-columns: 1fr; }
  .explorer-side { border-right: 0; border-bottom: 1px solid var(--stroke); }
  .explorer-bar { flex-wrap: wrap; }
}

.table-wrap { overflow: auto; border: 1px solid var(--stroke); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
th { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 800; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 0.15s; }
tbody tr:hover td { background: rgba(255,255,255,.025); }
.who { display: flex; align-items: center; gap: 10px; }
.who small { display: block; color: var(--muted); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.icon-act {
  width: 34px; height: 34px; padding: 0; display: grid; place-items: center; flex: none;
  border-radius: 10px; border: 1px solid var(--stroke); background: transparent; color: var(--muted);
}
.icon-act:hover { color: var(--text); border-color: var(--stroke-strong); }
.money-plus { color: var(--ok); font-weight: 800; }
.money-minus { color: #ff9aab; font-weight: 800; }
.linkish { color: var(--accent); font-weight: 800; }

.field { display: grid; gap: 6px; }
.field span, .eyebrow { color: var(--muted); font-size: 13px; font-weight: 800; }
.eyebrow { letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; color: var(--accent); }
input, select, textarea {
  width: 100%; background: rgba(6, 8, 14, 0.55);
  border: 1px solid var(--stroke); border-radius: 12px;
  padding: 12px 14px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 70%, white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}
select option { background: #121624; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.form-grid > .field { min-width: 0; max-width: 100%; }
.form-grid input, .form-grid select { width: 100%; min-width: 0; max-width: 100%; }
.offer-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.offer-card {
  display: grid; gap: 12px; padding: 16px; border-radius: 18px;
  border: 1px solid var(--stroke); background: rgba(0,0,0,.18);
}
.offer-card.is-new { border-color: color-mix(in srgb, var(--accent) 45%, var(--stroke)); }
.offer-card-top, .offer-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.offer-card-top small, .offer-label { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.offer-card-top b { display: block; font-size: 16px; }
.offer-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.offer-facts span { color: var(--muted); }
.offer-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.offer-choice { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.offer-choice label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  border: 1px solid var(--stroke); border-radius: 999px; padding: 8px 14px;
  cursor: pointer; font-weight: 800; background: rgba(255,255,255,.03);
}
.offer-choice input { width: 16px; height: 16px; margin: 0; accent-color: #1ed4b4; }
.offer-choice label:has(input:checked) { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.offer-choice label:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.offer-drop { color: #ff9aab; }
@media (max-width: 900px) {
  .offer-board, .offer-dates { grid-template-columns: minmax(0, 1fr); }
}
.form-grid .full, .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.check input { width: 18px; height: 18px; accent-color: #1ed4b4; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.callout {
  padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 200, 87, 0.08);
  border: 1px solid rgba(255, 200, 87, 0.25);
  color: #ffe1a3;
  max-height: 120px;
  overflow: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.callout.danger { background: rgba(255,93,122,.08); border-color: rgba(255,93,122,.3); color: #ffc0cc; }
.callout.info { background: rgba(122,162,255,.08); border-color: rgba(122,162,255,.28); color: #d5e2ff; }
.callout.ok { background: rgba(62,240,164,.08); border-color: rgba(62,240,164,.25); color: #c9ffe8; }

.wallet-hero {
  position: relative; overflow: hidden;
  border-radius: 24px; padding: 28px;
  display: flex; justify-content: space-between; gap: 20px; align-items: flex-end;
  background: linear-gradient(120deg, #123247, #1c1844 42%, #0e3b38);
  background-size: 180% 180%;
  animation: sheen 10s ease infinite;
  border: 1px solid rgba(255,255,255,.12);
}
.wallet-hero::after {
  content: ""; position: absolute; top: -40%; bottom: -40%; width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: rotate(16deg);
  animation: shine 4.8s ease-in-out infinite;
}
.wallet-copy, .wallet-side { position: relative; z-index: 1; }
.wallet-hero strong {
  display: block; font-family: var(--display);
  font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.045em; margin: 6px 0;
}
.wallet-hero p { color: rgba(237, 242, 255, 0.78); max-width: 460px; }
.presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes shine { 0% { left: -40%; } 60%, 100% { left: 120%; } }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar i {
  display: block; width: 100%; height: var(--h); border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--accent), rgba(122, 162, 255, 0.35));
  box-shadow: 0 0 18px rgba(62, 240, 208, 0.18);
  transform-origin: bottom;
  animation: growY 0.7s ease both;
}
.bar em, .bar b { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 700; }
.bar b { color: var(--text); }
@keyframes growY { from { transform: scaleY(0.2); opacity: 0.3; } }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; min-width: 0; }
.timeline li { display: block; padding: 0; min-width: 0; }
.timeline-open {
  display: flex; gap: 10px; width: 100%; margin: 0; padding: 8px 6px;
  border: 0; border-radius: 12px; background: transparent; color: inherit;
  font: inherit; text-align: left; cursor: pointer;
}
.timeline-open:hover { background: rgba(255, 255, 255, .04); }
.timeline-open > span:last-child { min-width: 0; }
button.cast-card {
  display: block; width: 100%; margin: 0; color: inherit; font: inherit;
  text-align: left; cursor: pointer;
}
button.cast-card:hover { border-color: rgba(158, 188, 255, .55); }
.note-modal { width: min(560px, 100%); }
.note-modal-body {
  margin: 0; white-space: pre-wrap; overflow-wrap: anywhere;
  color: #d5def2; line-height: 1.65; max-height: 60vh; overflow: auto;
}
.note-modal-when { display: block; margin-top: 12px; color: var(--muted); }
.timeline li > div { min-width: 0; }
.timeline p { font-weight: 650; overflow-wrap: anywhere; }
.timeline small { color: var(--muted); }

.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.quick a {
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--stroke); color: var(--muted); font-weight: 800; font-size: 13px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.quick a:hover { color: var(--text); border-color: var(--accent); background: rgba(62, 240, 208, 0.06); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button {
  background: transparent; border: 1px solid transparent; color: var(--muted);
  border-radius: 999px; padding: 8px 12px; font-weight: 800;
}
.tabs button.is-active { color: var(--text); border-color: var(--stroke); background: rgba(255,255,255,.04); }
.settings-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.settings-nav a {
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--stroke);
  color: var(--muted); font-weight: 800; font-size: 13px;
}
.settings-nav a.is-active { color: var(--text); background: rgba(255,255,255,.05); border-color: var(--accent); }
.file-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--stroke); }
.file-row a { font-weight: 700; }
.editor { min-height: 220px; font-family: var(--mono); }
.kv { display: grid; grid-template-columns: minmax(110px, 140px) minmax(0, 1fr); gap: 8px 12px; }
.kv span { color: var(--muted); }
.kv b { min-width: 0; overflow-wrap: anywhere; font-weight: 650; }
.mono { font-family: var(--mono); font-size: 13px; }

.terminal {
  background: #07090f; border-radius: 16px;
  border: 1px solid rgba(62, 240, 208, 0.18);
  overflow: hidden;
  box-shadow: 0 20px 70px rgba(0,0,0,.35);
}
.terminal-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #10141f; color: var(--muted); font-size: 12px;
}
.terminal-bar b { margin-left: auto; color: var(--ok); font-weight: 800; }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: #ff5d7a; }
.dots i:nth-child(2) { background: #ffc857; }
.dots i:nth-child(3) { background: #3ef0a4; }
.terminal .chips { padding: 8px 14px 0; }
.terminal-body {
  height: 320px; overflow: auto; padding: 14px 16px 8px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: #b7ffe9;
  white-space: pre-wrap;
}
.terminal-line em { color: #8eb6ff; font-style: normal; }
.terminal-input { display: flex; gap: 8px; align-items: center; padding: 8px 14px 14px; color: var(--accent); font-family: var(--mono); }
.terminal-input input { background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0; }

.faq { border: 1px solid var(--stroke); border-radius: 16px; padding: 0 16px; background: rgba(255,255,255,.02); }
.faq + .faq { margin-top: 10px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--display); }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--muted); padding-bottom: 14px; }
.faq-cat { margin: 18px 0 8px; color: var(--faint); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; }

.support-layout { display: grid; grid-template-columns: 320px 1fr; gap: 14px; align-items: start; }
.ticket {
  display: grid; gap: 4px; padding: 12px; border-radius: 14px; border: 1px solid transparent;
}
.ticket:hover, .ticket.is-active { background: rgba(255,255,255,.04); border-color: var(--stroke); }
.ticket small { color: var(--muted); }
.thread { display: grid; gap: 10px; margin: 14px 0; }
.bubble {
  max-width: min(80%, 640px);
  padding: 12px 14px; border-radius: 16px;
  background: rgba(255,255,255,.04); border: 1px solid var(--stroke);
}
.bubble.mine { margin-left: auto; background: rgba(62, 240, 208, 0.1); border-color: rgba(62, 240, 208, 0.25); }
.role-admin .bubble.mine { background: rgba(158, 188, 255, 0.12); border-color: rgba(158, 188, 255, 0.28); }
.bubble-top { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.ref-page { gap: 16px; }
.ref-hero { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 22px; border-radius: 24px; background: radial-gradient(420px 180px at 100% 0%, rgba(62, 240, 208, .18), transparent 55%), #121826; border: 1px solid rgba(62, 240, 208, .2); }
.ref-hero h2 { margin: 6px 0; font-family: var(--display); font-size: 32px; letter-spacing: -.04em; }
.ref-hero p { margin: 0; color: var(--muted); max-width: 560px; }
.ref-now { min-width: 140px; text-align: center; padding: 14px 16px; border-radius: 18px; background: rgba(62, 240, 208, .12); }
.ref-now b { display: block; font-family: var(--display); font-size: 28px; color: #8ef0dc; }
.ref-now span { color: var(--muted); font-size: 12px; }
.ref-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ref-step { padding: 14px; border-radius: 18px; border: 1px solid var(--stroke); background: rgba(255,255,255,.03); }
.ref-step b { display: block; font-family: var(--display); font-size: 22px; }
.ref-step span { color: var(--muted); font-size: 13px; }
.ref-step.is-done { border-color: rgba(62, 240, 208, .25); }
.ref-step.is-now { background: rgba(62, 240, 208, .14); border-color: rgba(62, 240, 208, .45); }
.ref-link { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.ref-link span { color: var(--muted); font-size: 12px; }
.ref-link strong { display: block; margin-top: 4px; word-break: break-all; }
.ref-admin { display: grid; gap: 12px; }
@media (max-width: 800px) {
  .ref-hero, .ref-link { display: grid; }
  .ref-steps { grid-template-columns: 1fr 1fr; }
}
.order-codes { display: flex; flex-wrap: wrap; gap: 8px; }
.order-code { border: 1px solid rgba(62, 240, 208, .35); background: rgba(62, 240, 208, .08); color: #8ef0dc; border-radius: 999px; padding: 6px 10px; font-weight: 800; font-size: 12px; }
.cast-gift { display: grid; gap: 10px; padding: 12px; border-radius: 16px; border: 1px solid rgba(255, 166, 61, .35); background: rgba(255, 166, 61, .08); }
.receipt { display: block; margin-top: 6px; text-align: right; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--faint); }
.receipt.is-read { color: #8ef0dc; }
.typing { display: flex; align-items: center; gap: 6px; min-height: 22px; color: var(--muted); font-size: 13px; }
.typing[hidden] { display: none; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8ef0dc; animation: typeDot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typeDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-shell {
  height: calc(100dvh - 148px); min-height: 560px;
  display: grid; grid-template-columns: 320px minmax(0, 1fr);
  border: 1px solid rgba(255,255,255,.08); border-radius: 24px; overflow: hidden;
  background: #0c1118;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.chat-list, .chat-room { border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 0; min-height: 0; }
.chat-list { display: flex; flex-direction: column; background: #101722; border-right: 1px solid rgba(255,255,255,.06); }
.chat-scroll { flex: 1; min-height: 0; overflow: auto; padding: 4px 8px 12px; display: grid; align-content: start; gap: 4px; }
.chat-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border-radius: 16px; border: 1px solid transparent; }
.chat-row:hover { background: rgba(255,255,255,.04); }
.chat-row.is-active { background: rgba(62, 240, 208, .1); border-color: rgba(62, 240, 208, .22); }
.chat-row strong, .chat-row small { display: block; }
.chat-row strong { font-size: 14px; }
.chat-row strong em { font-style: normal; color: #9eb0c8; font-weight: 650; }
.chat-row small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.chat-row small b { color: #ffc98a; font-weight: 800; }
.chat-meta { display: grid; justify-items: end; gap: 6px; }
.chat-meta time { color: var(--faint); font-size: 11px; }
.chat-meta em { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #ffb15a; color: #2a2116; font-style: normal; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.chat-room { display: flex; flex-direction: column; background: radial-gradient(720px 220px at 100% 0%, rgba(62, 240, 208, .09), transparent 55%), #0c1118; }
.chat-head { position: relative; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(12, 17, 24, .92); }
.chat-head h2, .chat-empty h2 { margin: 0; font-family: var(--display); font-size: 20px; letter-spacing: -.03em; }
.chat-head h2 span { color: #9eb0c8; font-weight: 600; }
.chat-head p, .chat-empty p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.chat-empty { flex: 1; display: grid; place-content: center; text-align: center; gap: 8px; padding: 24px; }
.chat-log { flex: 1; min-height: 0; max-height: none; margin: 0; overflow: auto; padding: 16px 16px 8px; display: flex; flex-direction: column; }
.chat-stream { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.chat-log .bubble { width: fit-content; max-width: min(78%, 440px); margin: 0; padding: 8px 12px 7px; border-radius: 18px 18px 18px 6px; background: #182131; border: 1px solid rgba(255,255,255,.06); }
.chat-log .bubble.mine { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: linear-gradient(180deg, rgba(62, 240, 208, .2), rgba(62, 240, 208, .08)); border-color: rgba(62, 240, 208, .28); }
.chat-log .bubble p { margin: 2px 0 0; line-height: 1.45; }
.chat-log .bubble-top { margin-bottom: 0; font-size: 11px; }
.chat-compose { margin: 0; padding: 12px 14px 14px; border-top: 1px solid rgba(255,255,255,.06); background: #0e141e; display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 8px; align-items: end; }
.compose-box { position: relative; min-width: 0; }
.chat-compose textarea { min-height: 46px; max-height: 140px; height: 46px; margin: 0; padding: 12px 46px 12px 16px; border-radius: 16px; resize: none; line-height: 22px; background: #151c28; }
.compose-box .clip { position: absolute; right: 6px; bottom: 6px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 12px; display: grid; place-items: center; color: #9eb0c8; background: transparent; }
.compose-box .clip:hover, .compose-box .clip.is-on { color: #06221c; background: #3ef0d0; }
.compose-box .clip .icon { width: 18px; height: 18px; }
.compose-send { width: 46px; height: 46px; padding: 0; border: 0; border-radius: 16px; display: grid; place-items: center; background: #3ef0d0; color: #06221c; cursor: pointer; }
.compose-send:hover { filter: brightness(1.06); }
.compose-send .icon { width: 20px; height: 20px; }
.chat-compose [data-file-names] { grid-column: 1 / -1; min-height: 0; color: #8ef0dc; font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-compose [data-file-names]:empty { display: none; }
.clip { position: relative; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(62, 240, 208, .35); color: #8ef0dc; font-size: 12px; font-weight: 800; cursor: pointer; }
.clip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.attach-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.attach-photo img { display: block; max-width: 240px; max-height: 180px; border-radius: 14px; object-fit: cover; }
.file-chip { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--stroke); font-size: 12px; font-weight: 800; }
.chat-start { width: min(560px, 100%); display: grid; gap: 12px; }
.new-chat { position: relative; display: flex; align-items: center; gap: 6px; }
.new-btn { height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: #3ef0d0; color: #06221c; font-weight: 800; cursor: pointer; }
.new-btn-ghost { background: transparent; color: #8ef0dc; border: 1px solid rgba(62, 240, 208, .4); }
.call-btn { border: 0; border-radius: 999px; background: #3ef0d0; color: #06221c; font-weight: 800; cursor: pointer; }
.call-stage { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: 28px; background: radial-gradient(520px 320px at 16% 10%, rgba(62, 240, 208, .2), transparent 62%), radial-gradient(460px 340px at 86% 86%, rgba(124, 92, 255, .24), transparent 64%), rgba(4, 8, 14, .82); backdrop-filter: blur(18px); }
.call-stage[hidden] { display: none; }
.call-live, .call-ask { width: min(420px, 100%); padding: 34px 26px 26px; border-radius: 36px; text-align: center; background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 30%), #101722; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08); }
.call-ring { border-color: rgba(255, 196, 87, .35); }
.call-kicker { margin: 0; letter-spacing: .18em; text-transform: uppercase; color: #8ef0dc; font-size: 11px; font-weight: 800; }
.call-kind { display: inline-flex; align-items: center; height: 22px; margin-left: 8px; padding: 0 8px; border-radius: 999px; letter-spacing: .08em; font-size: 11px; font-style: normal; font-weight: 800; text-transform: uppercase; vertical-align: middle; }
.call-kind.is-alpha { color: #ffd27a; background: rgba(255, 196, 87, .16); }
.call-kind.is-beta { color: #d7c8ff; background: rgba(124, 92, 255, .22); }
.call-kind.is-release { color: #8ef0dc; background: rgba(62, 240, 208, .14); }
.call-dock .call-kind { height: 18px; margin-left: 6px; font-size: 10px; }
.call-live h2, .call-ask h2 { margin: 6px 0 0; font-family: var(--display); font-size: 28px; letter-spacing: -.05em; }
.call-ask p, .call-live .call-link { color: var(--muted); }
.call-orb { position: relative; width: 168px; height: 168px; margin: 18px auto 6px; display: grid; place-items: center; }
.call-orb span { position: absolute; border-radius: 50%; border: 1px solid rgba(62, 240, 208, .28); }
.call-orb span:first-child { width: 132px; height: 132px; }
.call-orb span:nth-child(2) { width: 164px; height: 164px; opacity: .55; }
.call-orb i { position: relative; z-index: 1; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #d9fff6, #2ee6c8 46%, #0c7f78); color: #04221c; font-family: var(--display); font-style: normal; font-weight: 800; font-size: 28px; letter-spacing: -.04em; box-shadow: 0 16px 40px rgba(62, 240, 208, .32); }
.call-orb i .icon { width: 36px; height: 36px; }
.call-ring .call-orb i { background: radial-gradient(circle at 32% 28%, #fff4d2, #ffc857 48%, #c4842a); box-shadow: 0 16px 40px rgba(255, 196, 87, .28); }
.call-orb.is-pulse span { animation: call-pulse 1.8s ease-out infinite; }
.call-orb.is-pulse span:nth-child(2) { animation-delay: .45s; }
@keyframes call-pulse { 0% { transform: scale(.86); opacity: .8; } 100% { transform: scale(1.08); opacity: 0; } }
.call-stage.is-muted .call-orb i { background: #8b95a8; color: #151b26; box-shadow: none; }
.call-peers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 4px; }
.call-peers span { padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.06); font-size: 13px; font-weight: 700; }
.call-clock { margin: 8px 0 2px; font-family: var(--mono); font-size: 40px; letter-spacing: .04em; }
.call-link { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.call-net { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin: 8px 0 4px; color: var(--muted); font-size: 12px; font-weight: 800; }
.call-net .bars { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.call-net .bars i { display: block; width: 4px; border-radius: 2px; background: rgba(255,255,255,.16); }
.call-net .bars i:nth-child(1) { height: 5px; }
.call-net .bars i:nth-child(2) { height: 8px; }
.call-net .bars i:nth-child(3) { height: 12px; }
.call-net .bars i:nth-child(4) { height: 16px; }
.call-net.is-1 .bars i:nth-child(-n+1) { background: #ff5d73; }
.call-net.is-2 .bars i:nth-child(-n+2) { background: #ffb15a; }
.call-net.is-3 .bars i:nth-child(-n+3) { background: #8ef0dc; }
.call-net.is-4 .bars i { background: #3ef0d0; }
.chat-blank { margin: auto; max-width: 360px; text-align: center; display: grid; gap: 14px; justify-items: center; color: var(--muted); }
.call-controls { display: flex; justify-content: center; gap: 22px; margin-top: 18px; }
.call-controls button { min-width: 92px; height: auto; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font-size: 12px; font-weight: 700; cursor: pointer; display: grid; justify-items: center; gap: 8px; }
.call-controls button b { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #243044; color: #e8eef8; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.call-controls button b .icon { width: 26px; height: 26px; }
.call-controls .is-go b { background: #3ef0d0; color: #06221c; box-shadow: 0 12px 28px rgba(62, 240, 208, .32); }
.call-controls .is-end b { background: #ff4d67; color: #fff; box-shadow: 0 12px 28px rgba(255, 77, 103, .28); }
.call-controls [data-call-mute] b { background: #243044; color: #e8eef8; }
.call-stage.is-muted [data-call-mute] b { background: #ffb15a; color: #2a1c08; }
.call-stage.is-muted [data-call-mute] .on,
.call-stage:not(.is-muted) [data-call-mute] .off { display: none; }
.call-controls-row { display: flex; gap: 8px; }
.call-controls-row button { min-width: 0; height: 42px; padding: 0 16px; border-radius: 999px; display: inline-flex; }
.call-controls-row button b { display: none; }
.call-controls-row .btn-primary { background: #3ef0d0; color: #06221c; }
.call-controls-row .btn-ghost { border: 1px solid rgba(255,255,255,.16); }
.call-dock { position: fixed; right: 20px; bottom: 84px; z-index: 70; display: flex; gap: 10px; align-items: center; min-width: 220px; padding: 12px 16px; border: 0; border-radius: 20px; background: rgba(16, 23, 34, .94); color: inherit; box-shadow: 0 18px 50px rgba(0,0,0,.45); border: 1px solid rgba(62, 240, 208, .35); cursor: pointer; backdrop-filter: blur(12px); }
.call-dock[hidden] { display: none; }
.call-dock i { width: 12px; height: 12px; border-radius: 50%; background: #3ef0d0; box-shadow: 0 0 0 6px rgba(62, 240, 208, .18); }
.call-dock.is-muted i { background: #ffb15a; box-shadow: none; }
.call-dock b, .call-dock small { display: block; text-align: left; }
.call-dock small { color: var(--muted); font-size: 12px; }
.new-btn:hover { filter: brightness(1.06); }
.new-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 8; width: 280px; display: grid; gap: 4px; padding: 8px; border-radius: 16px; background: #151c28; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.new-menu[hidden] { display: none; }
.new-menu input { margin-bottom: 4px; }
.pick { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; text-align: left; background: transparent; border: 0; color: inherit; padding: 8px; border-radius: 12px; cursor: pointer; }
.pick:hover { background: rgba(255,255,255,.05); }
.pick strong, .pick small { display: block; }
.pick small { color: var(--muted); margin-top: 3px; }
.chat-person { display: flex; gap: 12px; align-items: center; min-width: 0; padding: 4px 8px 4px 4px; border: 0; border-radius: 16px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.chat-person:hover { background: rgba(255,255,255,.04); }
.chat-person h2, .chat-person p { margin: 0; }
.chat-person p { margin-top: 3px; color: #8ef0dc; font-size: 12px; font-weight: 700; }
.chat-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.chat-topic { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-style: normal; font-size: 12px; font-weight: 700; }
.chat-tools .call-btn { width: 36px; height: 36px; margin: 0; padding: 0; display: grid; place-items: center; }
.chat-tools .call-btn .icon { width: 18px; height: 18px; }
.chat-blank .call-btn { height: 36px; padding: 0 14px; }
.person-card { position: absolute; left: 16px; top: calc(100% - 6px); z-index: 6; width: min(360px, calc(100% - 32px)); padding: 14px; border-radius: 18px; background: #151c28; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.person-card[hidden] { display: none; }
.person-top { display: flex; gap: 10px; align-items: center; }
.person-top strong { display: block; }
.person-card dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 10px; margin: 12px 0 0; }
.person-card dt { color: var(--muted); }
.person-card dd { margin: 0; }
.me-plate { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: 12px 12px 0; padding: 10px; border-radius: 18px; background: linear-gradient(135deg, rgba(62, 240, 208, .16), rgba(255,255,255,.03)); border: 1px solid rgba(62, 240, 208, .16); }
.me-plate strong { display: block; font-size: 14px; }
.chat-find { margin: 10px 12px 8px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.id-chip { display: inline-flex; align-items: center; border: 0; border-radius: 999px; padding: 2px 8px; background: rgba(255, 177, 90, .16); color: #ffc98a; font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
button.id-chip { cursor: pointer; }
.who { display: inline-flex; align-items: center; gap: 6px; }
.chat-day { align-self: center; margin: 6px 0; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--faint); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mate-list { display: grid; gap: 8px; max-height: 240px; overflow: auto; }
.mate { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; border-radius: 16px; border: 1px solid var(--stroke); }
.mate:has(input:checked) { border-color: rgba(62, 240, 208, .45); background: rgba(62, 240, 208, .08); }
.mate strong, .mate small { display: block; }
.mate small { color: var(--muted); margin-top: 3px; }

.preview h3 { font-family: var(--display); font-size: 26px; margin: 10px 0; }
.preview p { color: var(--muted); white-space: pre-wrap; }
.node-card { display: grid; gap: 14px; }
.region {
  font-family: var(--mono); font-size: 12px; font-weight: 800;
  padding: 4px 7px; border-radius: 8px; border: 1px solid var(--stroke); color: var(--muted);
}
.splitbar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.05); }
.splitbar span { display: block; height: 100%; }
.splitbar .online { background: var(--ok); }
.splitbar .starting { background: var(--warn); }
.splitbar .offline { background: #66728e; }
.splitbar .suspended { background: var(--danger); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 8px; }
.legend b { color: var(--text); }

.empty, .empty-inline { color: var(--muted); padding: 18px; text-align: center; }
.is-hidden { display: none !important; }
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-start; justify-content: center;
  overflow: auto; padding: 24px 16px;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(10px);
  animation: fade .28s ease;
}
.modal[hidden] { display: none; }
.modal-card {
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  margin: auto;
  background: #121624;
  border: 1px solid var(--stroke-strong);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  animation: rise 0.35s ease;
  display: grid; gap: 12px;
  align-content: start;
}
.modal-card .card-head {
  position: sticky; top: -20px; z-index: 2;
  margin: -20px -20px 0; padding: 16px 20px 12px;
  background: #121624;
}
.field { min-width: 0; }
.env-box {
  display: grid; gap: 8px; padding: 12px 14px;
  border: 1px solid var(--stroke); border-radius: 14px;
  background: rgba(255,255,255,.03);
}
.env-box p { margin: 0; color: var(--muted); }
.env-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.env-specs span {
  padding: 4px 8px; border-radius: 999px; border: 1px solid var(--stroke);
  color: var(--muted); font-size: 12px; background: rgba(255,255,255,.03);
}
.setup { display: grid; gap: 18px; width: 100%; min-width: 0; }
.setup-head p { margin: 0; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-size: 11px; font-weight: 800; }
.setup-head h2 { margin: 6px 0; font-family: var(--display); font-size: clamp(32px, 4vw, 52px); letter-spacing: -.04em; overflow-wrap: anywhere; }
.setup-head span { color: var(--muted); display: block; max-width: 62ch; }
.setup-window {
  display: grid; grid-template-columns: minmax(280px, .9fr) minmax(280px, 1.1fr); gap: 22px; align-items: stretch;
  padding: 28px; border-radius: 28px; border: 1px solid rgba(62, 240, 208, .28);
  background:
    radial-gradient(480px 220px at 0% 0%, rgba(62, 240, 208, .14), transparent 62%),
    radial-gradient(420px 240px at 100% 100%, rgba(122, 162, 255, .12), transparent 60%),
    rgba(8, 12, 22, .82);
  box-shadow: inset 0 0 48px rgba(62, 240, 208, .05);
}
.setup-rail { position: relative; min-width: 0; padding: 4px 0 4px 4px; }
.setup-track {
  position: absolute; left: 23px; top: 24px; bottom: 24px; width: 4px; height: auto; border-radius: 99px;
  background: rgba(255,255,255,.08); overflow: hidden;
}
.setup-track i {
  display: block; width: 100%; height: 0; border-radius: inherit;
  background: linear-gradient(180deg, #3ef0d0, #7aa2ff);
  transition: height .9s cubic-bezier(.22,.8,.24,1);
  position: relative;
}
.setup-window.is-run .setup-track i::after {
  content: ""; position: absolute; left: 0; right: 0; height: 56px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.92), transparent);
  animation: setup-glide 1.2s linear infinite;
}
.setup-window.is-fail .setup-track i { background: #ff5d7a; }
.setup-window.is-done .setup-track i { background: linear-gradient(180deg, #3ef0a4, #3ef0d0); }
@keyframes setup-glide { from { top: -56px; } to { top: 100%; } }
.setup-dots {
  list-style: none; margin: 0; padding: 0; position: relative; z-index: 1;
  display: grid; gap: 0;
}
.setup-dots li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: center;
  min-height: 76px; text-align: left;
}
.setup-dots b {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #10141f; border: 2px solid rgba(255,255,255,.18);
  font-family: var(--display); font-size: 15px;
}
.setup-dots small { color: var(--muted); font-size: 16px; font-weight: 800; line-height: 1.35; overflow-wrap: break-word; }
.setup-dots .is-ok b { background: #3ef0d0; border-color: #3ef0d0; color: #04221c; }
.setup-dots .is-ok small { color: var(--text); }
.setup-dots .is-run b {
  border-color: #3ef0d0; color: #3ef0d0;
  box-shadow: 0 0 0 6px rgba(62, 240, 208, .16);
  animation: setup-pulse 1.4s ease infinite;
}
.setup-dots .is-run small { color: var(--text); }
.setup-dots .is-fail b { border-color: #ff5d7a; color: #ffb4c2; background: rgba(255, 93, 122, .16); }
@keyframes setup-pulse { 50% { box-shadow: 0 0 0 10px rgba(62, 240, 208, 0); } }
.setup-now {
  display: grid; align-content: center; gap: 10px; min-width: 0; min-height: 180px;
  padding: 22px; border-radius: 22px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(164, 188, 255, .14);
}
.setup-now strong { font-family: var(--display); font-size: clamp(22px, 2vw, 30px); letter-spacing: -.03em; overflow-wrap: anywhere; }
.setup-now span { color: var(--muted); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.setup-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) {
  .setup-window { grid-template-columns: 1fr; }
}
.order-stage {
  width: min(880px, 100%);
  padding: 0 0 18px;
  gap: 0;
  overflow: auto;
  animation: order-in .45s cubic-bezier(.22,.8,.24,1);
  background:
    radial-gradient(520px 200px at 100% 0%, rgba(62, 240, 208, 0.18), transparent 58%),
    #10141f;
}
@keyframes order-in {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.order-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 18px 20px 0; }
.order-kicker { margin: 0 0 4px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-size: 11px; font-weight: 800; }
.order-top h3 { margin: 0; }
.order-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; padding: 16px 20px 8px; }
.order-fields { display: grid; gap: 12px; }
.order-fields .field span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.order-ticket {
  display: grid; gap: 6px; align-content: start;
  padding: 16px; border-radius: 18px;
  background: rgba(8, 12, 22, 0.72);
  border: 1px solid rgba(62, 240, 208, 0.28);
  box-shadow: inset 0 0 40px rgba(62, 240, 208, 0.05);
}
.order-ticket p { margin: 0; color: var(--muted); font-size: 13px; }
.order-ticket strong { font-family: var(--display); font-size: 34px; letter-spacing: -0.04em; line-height: 1; }
.order-ticket small { color: var(--accent); font-weight: 800; }
.order-scroll {
  max-height: 240px; overflow: auto; display: grid; gap: 8px; margin-top: 8px; padding-right: 8px;
  scrollbar-width: thin; scrollbar-color: #3ef0d0 rgba(255, 255, 255, 0.06);
}
.order-scroll::-webkit-scrollbar { width: 8px; }
.order-scroll::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 99px; }
.order-scroll::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #3ef0d0, #7aa2ff); border-radius: 99px; }
.order-fact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: baseline; font-size: 13.5px; }
.order-fact span { color: var(--muted); }
.order-fact b { font-weight: 800; text-align: right; }
.order-desc { margin: 0; color: var(--text); font-size: 13.5px; line-height: 1.45; }
.order-note { line-height: 1.45; }
.order-go { width: calc(100% - 40px); margin: 8px 20px 0; }
@media (max-width: 800px) {
  .order-layout { grid-template-columns: 1fr; }
}
.modal-card.narrow { width: min(420px, 100%); }
.modal-card h3 { font-family: var(--display); font-size: 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.palette-back {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(8px);
  display: grid; align-items: start; justify-content: center;
  padding-top: 10vh;
}
.palette-back[hidden] { display: none; }
.palette {
  width: min(680px, calc(100vw - 28px));
  background:
    radial-gradient(420px 160px at 0 0, rgba(62, 240, 208, 0.14), transparent 70%),
    #121722;
  border: 1px solid rgba(158, 188, 255, 0.28);
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.palette-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 0; }
.palette-head p { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #9eefff; font-weight: 800; }
.palette-head button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--stroke); background: transparent; color: var(--muted); display: grid; place-items: center; }
.palette input { border: 0; border-bottom: 1px solid var(--stroke); border-radius: 0; background: transparent; padding: 14px 16px; font-size: 17px; box-shadow: none; }
.palette-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.palette-quick[hidden] { display: none; }
.palette-quick .hit { min-height: 74px; align-items: flex-start; align-content: space-between; flex-wrap: wrap; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
#palette-list { max-height: min(38vh, 320px); overflow: auto; padding: 0 8px 8px; display: grid; gap: 4px; }
.hit {
  width: 100%; text-align: left; background: transparent; border: 0;
  color: var(--text); padding: 11px 12px; display: flex; gap: 10px; align-items: center;
  border-radius: 12px;
}
.hit-ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(62, 240, 208, 0.1); color: #9eefff; flex: none; }
.hit-ico .icon { width: 16px; height: 16px; }
.hit kbd { margin-left: auto; font-family: var(--mono); font-size: 11px; border: 1px solid var(--stroke); border-bottom-width: 2px; border-radius: 6px; padding: 2px 6px; color: var(--faint); }
.hit.is-active, .hit:hover { background: rgba(62, 240, 208, 0.1); }
.palette-foot { display: flex; flex-wrap: wrap; gap: 10px 14px; padding: 10px 16px 14px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--stroke); }
.world-live { margin: 0; color: var(--muted); font-size: 13px; }
@media (max-width: 700px) {
  .palette-quick { grid-template-columns: 1fr 1fr; }
}
.toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 80; }
.toast {
  min-width: 240px; max-width: 380px;
  padding: 12px 14px; border-radius: 14px;
  background: #151a28; border: 1px solid var(--stroke);
  box-shadow: var(--shadow); animation: rise 0.35s ease;
}
.toast.ok { border-color: rgba(62, 240, 164, 0.45); }
.toast.wait { border-color: rgba(255, 166, 61, 0.72); background: #2a2116; color: #ffd7a8; }
.toast.err { border-color: rgba(255, 93, 122, 0.5); }
.pill.review { color: #ffb15a; }
.review-banner {
  display: grid; gap: 8px; padding: 12px 14px; border-radius: 16px;
  background: rgba(255, 166, 61, 0.1); border: 1px solid rgba(255, 166, 61, 0.35);
}
.review-banner p { display: flex; gap: 10px; align-items: center; margin: 0; }
.scrim { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 15; }
.scrim.is-on { display: block; }
body.is-loading::before {
  content: ""; position: fixed; top: 0; left: 0; height: 2px; width: 35%; z-index: 100;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: load 0.8s ease infinite;
}
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(320%); } }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.auth-body { min-height: 100vh; }
.fx {
  --ink: #e9fbff;
  --muted: #93a8c7;
  --line: rgba(140, 220, 255, 0.18);
  color-scheme: dark;
  min-height: 100vh;
  color: var(--ink);
  background: #04060d;
  font-size: 15px;
}
.fx-sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.fx-orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .7; animation: fx-float 16s ease-in-out infinite; }
.fx-orb.a { width: 420px; height: 420px; background: #145e86; top: -120px; left: -80px; }
.fx-orb.b { width: 360px; height: 360px; background: #3a2d86; right: -100px; top: 10%; animation-delay: -6s; }
.fx-orb.c { width: 280px; height: 280px; background: #0c6b62; left: 30%; bottom: -120px; animation-delay: -11s; }
.fx-grid {
  position: absolute; inset: -20%;
  background-image:
    linear-gradient(rgba(120, 210, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 210, 255, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 70%);
  animation: fx-pan 28s linear infinite;
}
.fx-scan {
  position: absolute; left: 0; right: 0; height: 120px;
  background: linear-gradient(180deg, transparent, rgba(120, 230, 255, 0.08), transparent);
  animation: fx-scan 7s linear infinite;
}
@keyframes fx-float { 50% { transform: translate3d(24px, -30px, 0) scale(1.06); } }
@keyframes fx-pan { to { transform: translateY(64px); } }
@keyframes fx-scan { from { top: -20%; } to { top: 110%; } }
.fx-bar, .fx-wrap, .fx-reel, .fx-foot, .fx main { position: relative; z-index: 1; }
.fx-bar {
  position: sticky; top: 0; z-index: 8;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 22px;
  background: rgba(4, 6, 13, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.fx-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; }
.fx-logo span {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; color: #041018; font-family: var(--display); font-size: 14px;
  background: linear-gradient(140deg, #7af6ff, #8d7bff);
  box-shadow: 0 0 18px rgba(122, 246, 255, 0.45);
  animation: fx-pulse 2.8s ease-in-out infinite;
}
.fx-logo b { font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: -0.03em; }
@keyframes fx-pulse { 50% { box-shadow: 0 0 26px rgba(141, 123, 255, 0.7); } }
.fx-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fx-nav a { color: var(--muted); font-weight: 700; font-size: 13.5px; }
.fx-nav a:hover { color: #7af6ff; }
.fx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 13.5px;
  color: #041018; text-decoration: none;
  background: linear-gradient(120deg, #7af6ff, #9b8cff);
  box-shadow: 0 8px 24px rgba(122, 246, 255, 0.22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fx-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(155, 140, 255, 0.35); }
.fx-btn-ghost {
  color: var(--ink); background: transparent;
  border: 1px solid var(--line); box-shadow: none;
}
.fx-wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.fx-stack { display: grid; gap: 64px; padding-bottom: 56px; }
.fx-hero {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: center;
  padding: 42px 0 28px;
}
.fx-eye { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: #7af6ff; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.fx-eye i { width: 8px; height: 8px; border-radius: 50%; background: #7af6ff; box-shadow: 0 0 10px #7af6ff; animation: fx-pulse 1.6s ease-in-out infinite; }
.fx h1, .fx h2, .fx h3 { margin: 0; font-family: var(--display); letter-spacing: -0.04em; }
.fx h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: .96; font-weight: 600; }
.fx h1 span {
  display: block; margin-top: 6px;
  background: linear-gradient(100deg, #7af6ff, #d7d0ff 45%, #7af6ff);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fx-shine 6s linear infinite;
}
@keyframes fx-shine { to { background-position: 200% 0; } }
.fx-lead { max-width: 54ch; margin: 16px 0 0; color: var(--muted); font-size: 16.5px; line-height: 1.55; }
.fx-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.fx-panel {
  position: relative; padding: 18px; border-radius: 24px;
  background: rgba(10, 16, 32, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 0 40px rgba(122, 246, 255, 0.05);
  overflow: hidden;
}
.fx-panel::before {
  content: ""; position: absolute; inset: -40% auto auto -30%; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 246, 255, 0.35), transparent 70%);
  animation: fx-float 8s ease-in-out infinite;
}
.fx-ring {
  width: 74px; height: 74px; margin-bottom: 12px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(from 0deg, #7af6ff, #8d7bff, transparent 60%, #7af6ff);
  animation: spin 8s linear infinite;
}
.fx-ring b {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #07101c; color: #e9fbff; font-family: var(--display); font-size: 18px;
}
.fx-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; position: relative; }
.fx-stats li { padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.fx-stats strong { display: block; font-family: var(--display); font-size: 22px; }
.fx-stats span, .fx-panel > p { color: var(--muted); font-size: 12.5px; }
.fx-panel > p { position: relative; margin: 12px 0 0; }
.fx-reel { overflow: hidden; border-block: 1px solid var(--line); background: rgba(8, 14, 28, 0.55); }
.fx-reel div { display: flex; gap: 28px; width: max-content; padding: 12px 0; animation: fx-reel 26s linear infinite; }
.fx-reel span { font-family: var(--display); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: #c9f7ff; }
.fx-reel span::before { content: "◈"; margin-right: 28px; color: #8d7bff; }
@keyframes fx-reel { to { transform: translateX(-50%); } }
.fx-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 16px; }
.fx h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 600; }
.fx-head p, .fx-ports p, .fx-note, .fx-steps p, .fx-grid6 p { color: var(--muted); }
.fx-head p { margin: 8px 0 0; max-width: 58ch; }
.fx-cats, .fx-offers, .fx-grid6, .fx-steps, .fx-places { display: grid; gap: 12px; }
.fx-offers { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.fx-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fx-cat, .fx-offer, .fx-grid6 article, .fx-steps article, .fx-places article, .fx-faq details {
  position: relative; border-radius: 20px;
  background: rgba(10, 16, 30, 0.78);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
.fx-cat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  min-height: 248px; padding: 16px 16px 14px; color: inherit; text-decoration: none; overflow: hidden;
  background:
    radial-gradient(160px 110px at 100% 0%, rgba(122, 246, 255, .2), transparent 70%),
    rgba(18, 24, 40, .55);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 18px 40px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
  transition: transform .3s ease, border-color .3s ease;
}
.fx-cat-top { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; }
.fx-mark {
  width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 196, 92, .35), transparent 55%),
    rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 206, 120, .28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.fx-mark img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.fx-mark b { font-family: var(--display); font-size: 16px; letter-spacing: .04em; }
.fx-game-title { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.fx-game-logo { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; flex: none; border: 1px solid rgba(255, 206, 120, .28); }
.fx-cat::after, .fx-offer::after {
  content: ""; position: absolute; inset: auto -20% -40% auto; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 246, 255, .28), transparent 70%);
  animation: fx-float 9s ease-in-out infinite;
}
.fx-cat:hover, .fx-offer:hover { transform: translateY(-6px); border-color: rgba(122, 246, 255, .55); }
.fx-no { font-family: var(--display); font-size: 12px; color: #8d7bff; letter-spacing: .14em; }
.fx-cat strong { font-family: var(--display); font-size: 26px; letter-spacing: -0.04em; line-height: 1.05; position: relative; }
.fx-cat small {
  color: var(--muted); position: relative; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.fx-cat em {
  font-style: normal; font-weight: 800; position: relative;
  padding: 4px 8px; border-radius: 999px; background: rgba(122, 246, 255, .12); color: #bffbff;
}
.fx-go { position: relative; margin-top: auto; font-weight: 800; font-size: 13px; color: #7af6ff; }
.fx-game { display: grid; gap: 14px; }
.fx-game + .fx-game { margin-top: 28px; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; justify-content: flex-end; }
.fx-chips li { padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.fx-offer { display: grid; gap: 10px; align-content: start; padding: 16px; overflow: hidden; transition: transform .3s ease, border-color .3s ease; }
.fx-offer.is-hot { border-color: rgba(122, 246, 255, .7); box-shadow: 0 0 0 1px rgba(122, 246, 255, .25), 0 16px 40px rgba(80, 140, 255, .12); }
.fx-offer-top, .fx-offer h3, .fx-price, .fx-setup, .fx-note, .fx-offer ul, .fx-offer .fx-btn { position: relative; z-index: 1; }
.fx-offer-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.fx-offer h3 { font-size: 20px; font-family: var(--font); }
.fx-offer-top span { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #041018; background: #7af6ff; border-radius: 999px; padding: 3px 7px; }
.fx-price { margin: 0; }
.fx-price b { display: block; font-family: var(--display); font-size: 30px; letter-spacing: -0.04em; line-height: 1; }
.fx-price small { color: var(--muted); }
.fx-setup {
  display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 196, 92, .18), rgba(255, 120, 180, .12));
  border: 1px solid rgba(255, 206, 120, .45);
  animation: fx-glow 3.2s ease-in-out infinite;
}
.fx-setup span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: #ffd98a; }
.fx-setup b { font-family: var(--display); font-size: 20px; }
.fx-setup small { color: #f0d7b0; }
.fx-setup.is-free { background: linear-gradient(135deg, rgba(90, 255, 210, .14), rgba(122, 246, 255, .08)); border-color: rgba(122, 246, 255, .4); animation: none; }
.fx-setup.is-free span, .fx-setup.is-free b { color: #bfffea; }
.fx-setup.is-free small { color: #9ed9cf; }
@keyframes fx-glow { 50% { box-shadow: 0 0 0 6px rgba(255, 196, 92, .12); } }
.fx-offer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.fx-offer li { color: var(--muted); font-size: 13.5px; padding-left: 14px; position: relative; }
.fx-offer li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: #7af6ff; }
.fx-offer .fx-btn { width: 100%; }
.fx-grid6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fx-grid6 article, .fx-steps article { padding: 14px 14px 16px; }
.fx-grid6 b, .fx-steps b { font-family: var(--display); color: #8d7bff; font-size: 13px; }
.fx-grid6 h3, .fx-steps h3 { margin: 6px 0; font-size: 16px; font-family: var(--font); }
.fx-grid6 p, .fx-steps p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.fx-ports {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; align-items: center;
  padding: 20px; border-radius: 24px;
  background:
    radial-gradient(400px 180px at 0 0, rgba(122, 246, 255, .16), transparent 60%),
    rgba(8, 14, 28, .8);
  border: 1px solid var(--line);
}
.fx-ports ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.fx-ports li { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.fx-ports strong { display: block; }
.fx-ports span { color: var(--muted); font-size: 13.5px; }
.fx-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fx-places { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fx-places article.fx-place {
  min-height: 168px; padding: 16px 16px 14px;
  display: grid; align-content: space-between; gap: 8px; overflow: hidden;
  background:
    radial-gradient(140px 90px at 100% 0%, rgba(122, 246, 255, .18), transparent 70%),
    rgba(10, 16, 30, 0.78);
}
.fx-places article.fx-place.is-on {
  background:
    radial-gradient(160px 100px at 100% 0%, rgba(62, 240, 176, .22), transparent 68%),
    rgba(10, 16, 30, 0.78);
}
.fx-place-top { display: flex; justify-content: space-between; align-items: center; }
.fx-region {
  font-family: var(--display); letter-spacing: .16em; font-size: 13px; color: #9eefff;
}
.fx-place-top i {
  width: 9px; height: 9px; border-radius: 50%; background: #6a7388; box-shadow: 0 0 0 4px rgba(106, 115, 136, .18);
}
.fx-place.is-on .fx-place-top i { background: #3ef0b0; box-shadow: 0 0 0 4px rgba(62, 240, 176, .18); }
.fx-place strong { font-family: var(--display); font-size: 26px; letter-spacing: -0.04em; }
.fx-place em { font-style: normal; font-weight: 800; color: #d5deea; }
.fx-place span { color: var(--muted); font-size: 13px; }
.game-title { display: flex; align-items: center; gap: 10px; }
.game-title img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.fx-faq { display: grid; gap: 8px; }
.fx-faq details { padding: 12px 14px; }
.fx-faq summary { cursor: pointer; font-weight: 800; }
.fx-faq p { margin: 8px 0 0; color: var(--muted); }
.fx-band {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 22px; border-radius: 24px; overflow: hidden; position: relative;
  background: linear-gradient(120deg, rgba(20, 40, 70, .9), rgba(40, 24, 80, .9));
  border: 1px solid var(--line);
}
.fx-band::before {
  content: ""; position: absolute; width: 220px; height: 220px; right: -40px; top: -80px; border-radius: 50%;
  background: rgba(122, 246, 255, .25); filter: blur(8px); animation: fx-float 9s ease-in-out infinite;
}
.fx-band h2, .fx-band p, .fx-band .fx-btn { position: relative; }
.fx-band p { margin: 6px 0 0; color: var(--muted); }
.fx-foot {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 8px 0 24px;
  color: var(--muted); font-size: 13px;
}
.fx-foot nav { display: flex; gap: 14px; flex-wrap: wrap; }
.fx-foot a { color: var(--muted); font-weight: 700; }
.fx-foot a:hover { color: #7af6ff; }
.fx-empty { color: var(--muted); padding: 14px; border-radius: 14px; border: 1px dashed var(--line); }
.fx-hero, .fx-cat, .fx-game, .fx-grid6 article, .fx-steps article { animation: fx-in .7s ease both; }
.fx-cats .fx-cat:nth-child(2), .fx-steps article:nth-child(2) { animation-delay: .08s; }
.fx-cats .fx-cat:nth-child(3), .fx-steps article:nth-child(3) { animation-delay: .16s; }
@keyframes fx-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .fx-hero, .fx-head, .fx-ports, .fx-steps, .fx-grid6, .fx-band, .fx-bar, .fx-foot { display: grid; }
  .fx-steps, .fx-grid6, .fx-cats, .fx-places { grid-template-columns: 1fr 1fr; }
  .fx h1 { font-size: 36px; }
  .fx-chips { justify-content: flex-start; }
  .fx-stack { gap: 48px; }
}
@media (max-width: 640px) {
  .fx-cats, .fx-places, .fx-steps, .fx-grid6 { grid-template-columns: 1fr; }
  .fx-cat { min-height: 0; }
  .fx-wrap { width: min(1120px, calc(100% - 24px)); }
}
@media (prefers-reduced-motion: reduce) {
  .fx-orb, .fx-grid, .fx-scan, .fx-reel div, .fx-ring, .fx h1 span, .fx-setup, .fx-logo span, .fx-eye i, .fx-cat::after, .fx-offer::after, .fx-band::before, .fx-hero, .fx-cat, .fx-game { animation: none; }
}
.auth-shell {
  position: relative; z-index: 1; min-height: 100vh;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
}
.auth-story { padding: 40px 56px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.auth-story h1 { font-family: var(--display); font-size: clamp(34px, 4vw, 52px); line-height: 1.12; max-width: 640px; }
.auth-story > p { color: var(--muted); max-width: 520px; font-size: 17px; }
.story-stats { display: flex; gap: 18px; }
.story-stats article { display: grid; }
.story-stats strong { font-family: var(--display); font-size: 28px; }
.story-stats span { color: var(--muted); font-size: 13px; }
.float-card {
  width: min(460px, 100%); padding: 18px; border-radius: 20px;
  border: 1px solid var(--stroke); background: rgba(12, 16, 28, 0.86);
  display: grid; gap: 12px;
  box-shadow: var(--shadow);
}
.float-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.float-top .eyebrow { margin: 0; }
.float-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.float-title strong, .float-title small { display: block; }
.float-title strong { font-size: 20px; }
.float-title small, .float-addr span, .float-facts span, .float-who span { color: var(--muted); }
.float-addr {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px; border-radius: 14px; border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.28);
}
.float-addr b { display: block; margin-top: 2px; font-family: var(--mono); font-size: 15px; overflow-wrap: anywhere; }
.float-addr .btn { flex: 0 0 auto; }
.float-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.float-facts article {
  min-width: 0; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--stroke); background: rgba(255,255,255,.03);
}
.float-facts span, .float-who span { display: block; font-size: 12px; }
.float-facts b { display: block; margin-top: 2px; overflow-wrap: anywhere; }
.float-who { margin: 0; font-size: 13px; }
.float-card .muted, .float-card .fine { margin: 0; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.auth-panel { display: grid; place-items: center; padding: 28px; }
.admin-auth {
  --accent: #9ebcff;
  --accent-2: #c4b5ff;
  --accent-ink: #10182e;
}
.adm-gate {
  position: relative; z-index: 1; min-height: 100vh;
  display: grid; place-items: center; padding: 28px 16px;
}
.adm-gate::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(158, 188, 255, 0.22), transparent 68%);
  filter: blur(8px); pointer-events: none;
}
.adm-card {
  position: relative; width: min(420px, 100%);
  display: grid; gap: 18px; padding: 28px 26px 22px;
  border-radius: 28px;
  background: rgba(12, 16, 28, 0.9);
  border: 1px solid rgba(186, 210, 255, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}
.adm-card .brand { padding: 0; }
.adm-card.hud::before, .adm-card.hud::after { border-color: rgba(158, 188, 255, 0.55); }
.adm-card form { display: grid; gap: 12px; min-width: 0; }
.adm-card h1 { margin: 0; font-family: var(--display); font-size: 32px; letter-spacing: -0.04em; }
.adm-card .lede { margin: 0; }
.adm-points {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.adm-points li {
  min-width: 0; text-align: center; padding: 8px 4px; border-radius: 12px;
  border: 1px solid rgba(164, 188, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted); font-size: 12px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 480px) {
  .adm-card { padding: 22px 16px 16px; }
  .adm-card h1 { font-size: 28px; }
  .adm-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.client-auth { --accent: #3ef0d0; --accent-2: #7af6ff; }
.cli-gate {
  position: relative; z-index: 1; min-height: 100vh;
  display: grid; place-items: center; padding: 28px 16px;
}
.cli-gate::before {
  content: ""; position: absolute; width: min(720px, 90vw); height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 240, 208, 0.16), transparent 70%);
  filter: blur(6px); pointer-events: none;
}
.cli-card {
  position: relative; width: min(880px, 100%);
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  border-radius: 28px; overflow: hidden;
  background: rgba(10, 16, 22, 0.9);
  border: 1px solid rgba(62, 240, 208, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}
.cli-side {
  display: grid; align-content: center; gap: 16px;
  padding: 36px 32px;
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(62, 240, 208, 0.16), transparent 60%),
    linear-gradient(160deg, rgba(62, 240, 208, 0.08), transparent 42%);
  border-right: 1px solid rgba(62, 240, 208, 0.12);
}
.cli-side .brand { padding: 0; }
.cli-side h1 {
  margin: 0; max-width: 360px;
  font-family: var(--display); font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12; letter-spacing: -0.04em;
}
.cli-side p { margin: 0; max-width: 320px; color: var(--muted); }
.cli-points { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.cli-points li {
  display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px;
  border: 1px solid rgba(62, 240, 208, 0.14);
  background: rgba(0, 0, 0, 0.22);
}
.cli-points b { font-size: 14px; }
.cli-points span { color: var(--muted); font-size: 12px; }
.cli-form { display: grid; align-content: center; gap: 12px; padding: 36px 32px; min-width: 0; }
.cli-form h2 { margin: 0; font-family: var(--display); font-size: 32px; letter-spacing: -0.04em; }
.cli-form .lede { margin: 0; }
@media (max-width: 800px) {
  .cli-card { grid-template-columns: 1fr; }
  .cli-side { gap: 12px; padding: 22px 16px 8px; border-right: 0; border-bottom: 1px solid rgba(62, 240, 208, 0.12); }
  .cli-side h1 { font-size: 28px; }
  .cli-points { grid-template-columns: 1fr; }
  .cli-form { padding: 18px 16px 22px; }
}
.auth-card {
  width: min(440px, 100%); display: grid; gap: 12px;
  padding: 28px; border-radius: 24px;
  background: rgba(14, 18, 30, 0.86);
  border: 1px solid var(--stroke-strong);
  box-shadow: var(--shadow);
}
.auth-card h2 { font-family: var(--display); font-size: 30px; }
.lede, .fine { color: var(--muted); }
.fine { font-size: 13px; line-height: 1.6; }
.fine a { color: var(--accent); font-weight: 800; }
.demo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shake { animation: shake 0.42s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.hud { position: relative; }
.hud::before, .hud::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 1.5px solid rgba(62, 240, 208, 0.5); pointer-events: none;
}
.hud::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.hud::after { right: 10px; bottom: 10px; border-left: 0; border-top: 0; }

@media (max-width: 1100px) {
  .grid-2, .support-layout, .server-grid, .chat-shell { grid-template-columns: minmax(0, 1fr); }
  .chat-shell { height: auto; min-height: 0; }
  .chat-list { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .chat-scroll, .chat-log { max-height: 52vh; }
  .span-2 { grid-column: auto; }
}
@media (max-width: 960px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; transform: translateX(-105%); transition: transform .42s cubic-bezier(.22,.8,.24,1); }
  .sidebar.is-open { transform: none; }
  .side-toggle { position: fixed; top: 22px; left: 14px; }
  body:has(.sidebar.is-open) .side-toggle { left: calc(var(--sidebar) - 15px); transform: rotate(180deg); }
  .main { margin-left: 0; }
  .top-user span { display: none; }
}
@media (max-width: 800px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { display: none; }
  .content, .topbar { padding-left: 16px; padding-right: 16px; }
  .banner { margin-left: 16px; margin-right: 16px; }
  .grid-4, .grid-3, .server-grid, .form-grid, .demo-row { grid-template-columns: 1fr; }
  .page-head, .wallet-hero { flex-direction: column; align-items: flex-start; }
  .kv { grid-template-columns: 1fr; }
  .search-btn kbd { display: none; }
}
.test-screen { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.test-list { display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.test-list a { display: block; padding: 12px; border-radius: 12px; color: inherit; text-decoration: none; }
.test-list a.is-active { background: rgba(62, 240, 208, 0.12); }
.test-list a strong, .test-list a small { display: block; }
.test-list a small { color: var(--muted); margin-top: 4px; }
.test-console .terminal-body { white-space: pre-wrap; max-height: 62vh; overflow: auto; }
@media (max-width: 800px) {
  .test-screen { grid-template-columns: 1fr; }
}
.game-nodes { display: grid; gap: 8px; }
.game-card { min-width: 0; }
.game-card .eyebrow { margin-bottom: 6px; }
.game-files { display: grid; gap: 8px; }
.game-file {
  display: grid; gap: 3px; min-width: 0;
  padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--stroke); background: rgba(255,255,255,.03);
}
.game-file span, .game-file small { color: var(--muted); }
.game-file .mono { overflow-wrap: anywhere; word-break: break-all; color: var(--text); }
.game-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.game-versions { display: grid; gap: 8px; }
.game-version {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--stroke);
}
.game-version div { min-width: 0; }
.game-version small { display: block; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.cast-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.cast-preset {
  margin: 0; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(158, 188, 255, .28);
  background: rgba(158, 188, 255, .08);
  color: #dbe6ff; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .01em;
}
.cast-preset:hover, .cast-preset.is-on {
  border-color: rgba(158, 188, 255, .75);
  background: rgba(158, 188, 255, .2);
  color: #fff;
}
.cast-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cast-pick {
  position: relative; display: flex; align-items: center; gap: 10px;
  min-height: 72px; padding: 12px; border-radius: 16px; cursor: pointer;
  border: 1px solid var(--stroke); background: rgba(255,255,255,.03);
}
.cast-pick input { position: absolute; opacity: 0; pointer-events: none; }
.cast-pick-ico {
  width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center;
  border-radius: 12px; background: rgba(255,255,255,.05); color: var(--muted);
}
.cast-pick-copy { display: grid; min-width: 0; }
.cast-pick-copy strong { font-size: 14px; }
.cast-pick-copy small { color: var(--muted); font-size: 12px; }
.cast-pick:has(input:checked) {
  border-color: rgba(158, 188, 255, .7);
  background: rgba(158, 188, 255, .12);
}
.cast-pick:has(input:checked) .cast-pick-ico { color: var(--accent); background: rgba(158, 188, 255, .16); }
.cast-pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.cast-stage { display: grid; gap: 12px; align-content: start; }
.cast-card {
  padding: 18px 18px 16px; border-radius: 18px;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(420px 120px at 0% 0%, rgba(158, 188, 255, .16), transparent 60%),
    rgba(12, 16, 28, .72);
}
.cast-kicker {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .04em;
}
.cast-kicker .icon { width: 15px; height: 15px; }
.cast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(62, 240, 164, .15); }
.cast-card { min-width: 0; max-width: 100%; overflow: hidden; }
.cast-card h2, .cast-card h3 { margin: 0 0 8px; font-family: var(--display); font-size: 22px; overflow-wrap: anywhere; }
.cast-card p { color: #d5def2; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.cast-card small, .cast-sms-note { color: var(--muted); }
.cast-mail { background: #10141c; }
.cast-mail-from { margin: 0 0 8px; color: var(--faint); font-size: 12px; }
.cast-sms { background: transparent; border-color: transparent; padding-left: 0; padding-right: 0; }
.cast-bubble {
  max-width: 320px; padding: 14px 16px; border-radius: 18px 18px 18px 6px;
  background: linear-gradient(160deg, #243056, #1a2238);
  border: 1px solid rgba(158, 188, 255, .28);
}
.cast-bubble strong, .cast-bubble p { display: block; }
.cast-bubble p { margin-top: 4px; }
.cast-live { box-shadow: var(--shadow); }
.cast-history { padding: 14px 0; border-top: 1px solid var(--stroke); }
.cast-history:first-of-type { border-top: 0; }
.cast-history-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.cast-history p { margin: 8px 0; color: #d5def2; white-space: pre-wrap; }
.cast-history small { color: var(--muted); }
.cast-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.cast-tags span {
  padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 800;
  color: var(--accent); background: rgba(158, 188, 255, .12);
}
@media (max-width: 800px) {
  .cast-picks { grid-template-columns: 1fr; }
  .cast-history-top { flex-direction: column; }
  .cast-tags { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
.ai-launch, .ai-dock { position: fixed; z-index: 60; }
.ai-launch {
  right: 20px; bottom: 20px;
  width: 48px; height: 48px; padding: 0;
  border: 0; background: transparent; color: inherit;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45));
  transition: transform .25s ease;
}
.ai-launch:hover { transform: translateY(-2px); }
.ai-logo { position: relative; display: block; width: 48px; height: 48px; }
.ai-mark, .ai-mark b { animation: none; }
.ai-mark {
  width: 48px; height: 48px; border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 18px rgba(62, 240, 208, 0.28);
}
.ai-mark b { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
.ai-sigil {
  position: absolute; top: 3px; right: 3px; z-index: 2;
  height: 14px; padding: 0 4px;
  display: grid; place-items: center;
  border-radius: 5px;
  color: #04221c;
  background: linear-gradient(135deg, #fff, #3ef0d0 42%, #8eb0ff);
  border: 1px solid rgba(7, 17, 15, 0.85);
  font-family: var(--display); font-size: 8px; font-weight: 700; letter-spacing: 0.03em; line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.ai-dock {
  right: 20px; bottom: 80px;
  width: min(420px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 108px));
  display: flex; flex-direction: column; min-width: 0;
  border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(158, 188, 255, 0.28);
  background:
    radial-gradient(90% 50% at 0% 0%, rgba(142, 176, 255, 0.16), transparent 46%),
    radial-gradient(120% 70% at 100% 0%, rgba(62, 240, 208, 0.16), transparent 42%),
    rgba(10, 14, 24, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  animation: ai-in .32s cubic-bezier(.22,.8,.24,1);
}
.ai-dock[hidden] { display: none !important; }
@keyframes ai-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ai-dock-head {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 32px;
  align-items: center; gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(164, 188, 255, 0.14);
}
.ai-dock-head .ai-logo, .ai-dock-head .ai-mark { width: 44px; height: 44px; }
.ai-dock-head .ai-mark { border-radius: 14px; }
.ai-dock-head .ai-mark b { width: 28px; height: 28px; border-radius: 9px; font-size: 13px; }
.ai-dock-head .ai-sigil { top: 2px; right: 2px; }
.ai-dock-head div { min-width: 0; }
.ai-dock-head strong, .ai-dock-head small {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ai-dock-head strong { font-family: var(--display); font-size: 16px; letter-spacing: -0.03em; }
.ai-dock-head small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.ai-x {
  width: 28px; height: 28px; padding: 0; border-radius: 9px;
  border: 1px solid var(--stroke); background: rgba(255, 255, 255, 0.03);
  color: var(--text); display: grid; place-items: center;
}
.ai-x .icon { width: 14px; height: 14px; }
.ai-log {
  flex: 1; min-height: 0; min-width: 0; overflow: auto;
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.ai-msg {
  max-width: 100%; align-self: flex-start;
  padding: 12px 14px; border-radius: 18px;
  white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; font-size: 14.5px;
}
.ai-msg.is-user {
  align-self: flex-end; max-width: 86%;
  background: linear-gradient(180deg, rgba(62, 240, 208, 0.24), rgba(62, 240, 208, 0.1));
  border: 1px solid rgba(62, 240, 208, 0.22);
  border-bottom-right-radius: 6px;
}
.ai-msg.is-bot {
  max-width: 100%;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(164, 188, 255, 0.16);
  border-bottom-left-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.ai-msg.is-wait { color: var(--muted); }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ai-chip {
  border: 1px solid rgba(142, 176, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: inherit; border-radius: 12px;
  padding: 8px 14px; font-size: 13px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.ai-chip:hover {
  border-color: rgba(62, 240, 208, 0.7);
  background: linear-gradient(180deg, rgba(62, 240, 208, 0.2), rgba(62, 240, 208, 0.08));
  transform: translateY(-1px);
}
.ai-form {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 8px;
  padding: 12px 14px 14px; border-top: 1px solid rgba(164, 188, 255, 0.14);
}
.ai-form input, .ai-form .btn { height: 42px; margin: 0; }
.ai-form input {
  width: 100%; min-width: 0; border-radius: 14px; border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04); padding: 0 14px; font-size: 14px;
}
.ai-form .btn { padding: 0 16px; border-radius: 14px; font-size: 14px; white-space: nowrap; }
.ai-form .btn:hover { transform: none; }
@media (max-width: 960px) {
  .ai-launch { right: 12px; bottom: 12px; }
  .ai-dock { right: 12px; bottom: 72px; }
}
.pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pay-card, .pay-way {
  min-width: 0; border: 1px solid var(--stroke); border-radius: 16px;
  background: rgba(255, 255, 255, 0.03); padding: 14px;
}
.pay-card { display: flex; flex-direction: column; gap: 10px; }
.pay-card-top, .pay-way {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center;
}
.pay-way { grid-template-columns: 42px minmax(0, 1fr); align-items: start; }
.pay-ways { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.pay-mark {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(62, 240, 208, 0.22), rgba(142, 176, 255, 0.18));
  color: var(--text); font-family: var(--display); font-size: 13px; font-weight: 700;
}
.pay-card-top strong, .pay-way strong { display: block; font-size: 14px; }
.pay-card-top small, .pay-way small {
  display: block; margin-top: 2px; color: var(--accent); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 800;
}
.pay-card p, .pay-way p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.pay-way p { margin-top: 6px; }
.pay-addr { margin-top: 8px; overflow-wrap: anywhere; }
.pay-way .btn { margin-top: 8px; }
@media (max-width: 900px) {
  .pay-grid { grid-template-columns: 1fr; }
  .pay-card-top { grid-template-columns: 42px minmax(0, 1fr); }
  .pay-card-top .check { grid-column: 1 / -1; }
}
.ollama-plan { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 18px; align-items: start; }
.ollama-reinstall { margin: 0 0 14px; }
.agent-facts { display: grid; gap: 12px; margin-top: 14px; }
.agent-facts div { display: grid; gap: 3px; }
.agent-facts span { color: var(--muted); font-size: 12px; letter-spacing: 0.02em; }
.agent-facts b { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
#ollama-install[hidden] { display: none !important; }
.ollama-plan dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.ollama-plan dl div { min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--stroke); background: rgba(255,255,255,.03); }
.ollama-plan dt { color: var(--muted); font-size: 12px; }
.ollama-plan dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.ai-live { display: grid; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 14px; border: 1px solid rgba(62, 240, 208, 0.18); background: rgba(62, 240, 208, 0.05); }
.ai-live-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.ai-live-top b { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.ai-live .fine { margin: 0; }
.node-kinds { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; }
.node-kinds legend { margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.model-picks { display: grid; gap: 8px; }
.model-pick { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px; border-radius: 14px; border: 1px solid var(--stroke); }
.model-pick:has(input:checked) { border-color: rgba(62, 240, 208, .55); background: rgba(62, 240, 208, .06); }
.model-pick strong, .model-pick small, .model-pick em { display: block; }
.model-pick small { color: var(--muted); margin-top: 4px; }
.model-pick em { color: var(--accent); font-style: normal; font-size: 12px; font-weight: 800; }
.agent-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.agent-head h2 { margin: 0; }
.agent-list { display: grid; gap: 10px; }
.agent-row {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start;
  padding: 12px; border-radius: 16px;
  background: rgba(18, 24, 40, .5);
  border: 1px solid rgba(255,255,255,.16);
}
.agent-row .stack { display: grid; gap: 8px; }
.agent-row input, .agent-row textarea { width: 100%; }
.memory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.memory-card {
  display: grid; gap: 10px; align-content: start;
  padding: 16px; border-radius: 18px;
  border: 1px solid rgba(164, 188, 255, 0.16);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(62, 240, 208, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.03);
}
.memory-card h2 { margin: 0; font-size: 18px; }
.memory-card .muted, .memory-meta, .memory-preview { margin: 0; }
.memory-meta { color: var(--muted); font-size: 12px; }
.memory-preview {
  color: var(--text); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.memory-window { width: min(720px, calc(100vw - 32px)); max-height: min(78vh, 760px); display: grid; grid-template-rows: auto minmax(0, 1fr); }
.memory-window .ai-memory { max-height: none; }
.ai-memory { display: grid; gap: 8px; max-height: 320px; overflow: auto; }
@media (max-width: 980px) { .memory-grid { grid-template-columns: 1fr; } }
.ai-memory p { margin: 0; padding: 8px 10px; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-memory .is-user { background: rgba(62, 240, 208, 0.08); }
.ai-memory .is-bot { background: rgba(255, 255, 255, 0.04); }
.setup-live { display: grid; gap: 12px; min-width: 0; }
.setup-live[hidden] { display: none !important; }
.setup-live-head { display: grid; gap: 6px; min-width: 0; }
.setup-live-head h2, .setup-live-head p { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.setup-live-head p { color: var(--muted); }
.setup-bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.setup-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #3ef0d0, #7af6ff); transition: width .35s ease; }
.setup-live[data-state="fail"] .setup-bar span { background: #ff5d73; }
.setup-live[data-state="done"] .setup-bar span { background: #3ef0b0; }
.setup-bar-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.setup-bar-meta b { color: var(--text); font-variant-numeric: tabular-nums; }
.install-log { max-height: 320px; }
.glass-btn {
  width: 100%; margin-top: 4px; padding: 13px 16px; border-radius: 16px; cursor: pointer;
  color: #f4fbff; font-weight: 800; letter-spacing: .01em;
  border: 1px solid rgba(255,255,255,.38);
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 30px rgba(0,0,0,.25);
  backdrop-filter: blur(16px);
}
.glass-btn:hover { border-color: rgba(122, 246, 255, .75); }
.glass-btn[hidden], #setup-retry-note[hidden] { display: none; }
#setup-retry-note { margin: 0; }
@media (max-width: 800px) {
  .ollama-plan, .ollama-plan dl { grid-template-columns: 1fr; }
}
.owner-desk { gap: 16px; }
.visit-bar { position: sticky; top: 0; z-index: 40; display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 0 0 16px; padding: 12px 16px; border-radius: 16px; background: rgba(18, 181, 160, .14); border: 1px solid rgba(18, 181, 160, .35); }
.visit-bar a { color: inherit; font-weight: 700; }
.approval-list { display: grid; gap: 10px; }
.approval-card { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(255, 196, 87, .08); border: 1px solid rgba(255, 196, 87, .28); }
.approval-card strong { display: block; }
.approval-main { min-width: 0; flex: 1; }
.approval-card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.approval-decide { display: flex; flex-wrap: wrap; gap: 8px; }
.approval-more { margin-top: 10px; }
.approval-more summary { cursor: pointer; color: #ffd7a8; font-weight: 700; }
.approval-facts { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; margin: 12px 0; }
.approval-facts dt { color: var(--muted); }
.approval-facts dd { margin: 0; }
.approval-note { margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 166, 61, .1); }
.approval-note span { display: block; color: #ffb15a; font-size: 12px; font-weight: 800; margin-bottom: 4px; }
.approval-note p { color: var(--text); }
.approval-chat { display: grid; gap: 8px; margin: 10px 0; }
.approval-bubble { padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.04); }
.approval-bubble.is-mine { background: rgba(62, 240, 208, .08); }
.approval-bubble b, .approval-bubble small { display: block; color: var(--muted); font-size: 12px; }
.approval-bubble p { color: var(--text); white-space: pre-wrap; }
.approval-reply { display: grid; gap: 8px; margin-top: 8px; }
.note-ask { width: min(460px, calc(100vw - 32px)); }
.approval-recent { margin: 12px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; display: grid; gap: 4px; }
@media (max-width: 800px) { .approval-card { display: grid; } }
.app-desk { display: grid; gap: 16px; }
.app-hero {
  display: flex; justify-content: space-between; gap: 18px; align-items: center;
  padding: 22px 24px; border-radius: 24px;
  background:
    radial-gradient(420px 160px at 100% 0%, rgba(62, 240, 208, .16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid rgba(164, 188, 255, .18);
}
.app-hero h2 { font-family: var(--display); font-size: 28px; letter-spacing: -.04em; }
.app-hero p { margin: 6px 0 0; max-width: 62ch; color: var(--muted); }
.app-hero-links { margin-top: 14px; }
.qr-page { display: grid; gap: 18px; }
.qr-layout { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 16px; align-items: start; }
.qr-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qr-facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); }
.qr-facts li { padding-left: 14px; position: relative; }
.qr-facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: #3ef0d0; }
.qr-help { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.qr-stage {
  position: relative; overflow: hidden;
  padding: 28px 24px 22px; border-radius: 28px; text-align: center;
  background:
    radial-gradient(280px 160px at 50% 0%, rgba(18, 181, 160, .18), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.qr-stage h2 { margin: 8px 0 6px; font-family: var(--display); letter-spacing: -.04em; }
.qr-kicker { margin: 0; color: var(--accent); letter-spacing: .16em; text-transform: uppercase; font-size: 11px; font-weight: 800; }
.app-marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 12px; }
.app-hero .app-marks { justify-content: flex-end; margin: 0; align-items: center; }
.app-mark {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
  border: 1px solid transparent;
}
.app-mark.release { color: #8ef0dc; background: rgba(62, 240, 208, .12); border-color: rgba(62, 240, 208, .4); }
.app-mark.beta { color: #c5d2ff; background: rgba(130, 156, 255, .14); border-color: rgba(150, 170, 255, .45); }
.app-mark.alpha { color: #ffd7a8; background: rgba(255, 166, 61, .14); border-color: rgba(255, 166, 61, .45); }
.app-mark.maintenance { color: #ffb15a; background: rgba(255, 166, 61, .16); border-color: rgba(255, 166, 61, .5); }
.app-mark.off { color: #c9d0dc; background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
.qr-stage .btn[disabled] { opacity: .45; cursor: not-allowed; }
.qr-stage .fine { max-width: 36ch; margin: 0 auto 16px; }
.qr-frame {
  width: min(100%, 196px); margin: 0 auto 14px; padding: 10px;
  border-radius: 28px; background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255,255,255,.7);
}
.app-qr {
  position: relative; width: 100%; margin: 0;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.app-qr canvas {
  display: block; width: 100%; height: auto; pointer-events: none;
  image-rendering: pixelated; image-rendering: crisp-edges;
  -webkit-user-drag: none; user-select: none;
}
.app-qr-shield { position: absolute; inset: 0; z-index: 2; background: transparent; cursor: default; }
.app-qr img, .app-qr table { display: none !important; }
.qr-timer {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 16px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 200, 87, .12); color: var(--warn); font-weight: 700;
}
.qr-timer b { font-family: var(--mono); font-size: 18px; }
.qr-steps { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; text-align: left; }
.qr-steps li {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center;
  color: var(--muted); font-size: 14px;
}
.qr-steps i {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(62, 240, 208, .14); color: var(--accent); font-style: normal; font-weight: 800;
}
.qr-empty {
  width: min(100%, 220px); margin: 0 auto 14px; padding: 28px 16px;
  border-radius: 28px; border: 1px dashed rgba(164, 188, 255, .35);
  color: var(--muted);
}
.qr-side h2 { margin-bottom: 8px; }
@media (max-width: 860px) {
  .qr-layout, .qr-notes { grid-template-columns: 1fr; }
}
.app-phones { display: grid; gap: 10px; margin-bottom: 14px; }
.app-phones article { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.06); }
.app-phones p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.app-timer { margin: 0 0 14px; color: var(--warn); font-weight: 700; }
.app-timer b { font-family: var(--mono); font-size: 18px; }
.guide-steps, .guide-list { margin: 0; padding-left: 18px; display: grid; gap: 10px; color: var(--muted); }
.guide-steps strong { color: var(--text); }
.app-guide .card h2 { margin-bottom: 12px; }
.app-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; }
.app-connect h2, .app-docs h2, .app-form h2 { margin-bottom: 12px; }
.app-steps { margin: 0 0 14px; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; }
.app-code {
  margin: 0 0 8px; padding: 16px 18px; border-radius: 16px;
  font-family: var(--mono); font-size: 28px; letter-spacing: .18em; text-align: center;
  background: rgba(62, 240, 208, .08); border: 1px dashed rgba(62, 240, 208, .45);
}
.app-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.app-facts div { padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.06); }
.app-facts dt { color: var(--faint); font-size: 12px; }
.app-facts dd { margin: 4px 0 0; }
.app-sample {
  margin: 10px 0 0; padding: 12px 14px; overflow: auto;
  border-radius: 14px; background: #090c14; color: #d5e4ff;
  font-family: var(--mono); font-size: 12px; line-height: 1.55; white-space: pre-wrap;
}
.app-form { display: grid; gap: 16px; }
.app-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.app-mode { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); cursor: pointer; }
.app-mode:has(input:checked) { border-color: rgba(62, 240, 208, .55); background: rgba(62, 240, 208, .08); }
.app-mode:not(:has(input:checked)) { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.app-mode.is-locked { opacity: .45; cursor: not-allowed; }
.app-mode strong { display: block; }
.app-mode span { color: var(--muted); font-size: 13px; }
.app-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.app-feature {
  display: flex; gap: 12px; align-items: flex-start;
  min-height: 84px; padding: 14px; border-radius: 16px;
  background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.07); cursor: pointer;
}
.app-feature:has(input:checked) { border-color: rgba(62, 240, 208, .5); background: rgba(62, 240, 208, .08); }
.app-feature:not(:has(input:checked)) { border-color: rgba(255,255,255,.07); background: rgba(0,0,0,.2); }
.app-form:has(input[name="servers"]:not(:checked)) [data-live="servers"] .app-feature,
.app-form:has(input[name="servers"]:not(:checked)) [data-live="servers"] .app-feature:has(input:checked) {
  opacity: .45; border-color: rgba(255,255,255,.07); background: rgba(0,0,0,.2);
}
.app-feature input { width: 16px; height: 16px; margin-top: 3px; flex: none; accent-color: #3ef0d0; }
.app-feature strong, .app-feature small { display: block; }
.app-feature small { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.app-doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.app-doc-grid h3 { margin-bottom: 6px; font-size: 15px; }
.app-doc-grid p { margin: 0; color: var(--muted); }
.app-form .page-actions { margin-top: 16px; }
@media (max-width: 900px) {
  .app-split, .app-modes, .app-doc-grid, .app-facts { grid-template-columns: 1fr; }
  .app-hero { display: grid; }
}
.market-desk { display: grid; gap: 16px; margin-bottom: 16px; }
.market-band { display: grid; gap: 12px; }
.market-band > .card-head { align-items: flex-start; flex-wrap: wrap; margin: 0; }
.market-band .card-head > div { min-width: min(100%, 280px); flex: 1; }
.market-band .card-head p { margin: 6px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.market-line {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-width: 0; padding: 12px 14px; border-radius: 16px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.market-line > div { min-width: 0; }
.market-line strong, .market-line span { display: block; overflow-wrap: anywhere; }
.market-line span { margin-top: 3px; color: var(--muted); font-size: 13px; }
.market-go { flex: none; width: auto; justify-self: start; white-space: nowrap; }
.market-piece { display: grid; gap: 10px; min-width: 0; }
.market-piece .page-actions { margin: 0; }
.market-band > .btn, .market-piece > .btn, .market-band form > .btn { width: fit-content; justify-self: start; }
.market-cats { margin-bottom: 16px; }
.market-cat-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.market-cat-add .field, .market-cat-add .btn { min-width: 0; }
.market-cat-list { display: grid; gap: 8px; }
.market-cat {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  min-width: 0; padding: 12px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.16);
}
.market-cat form { display: flex; gap: 8px; align-items: center; min-width: 0; }
.market-cat form:first-child { display: grid; grid-template-columns: minmax(0, 1fr) auto; flex: 1 1 280px; }
.market-cat .btn { flex: none; width: auto; white-space: nowrap; }
.market-cat input[name="name"] { width: 100%; min-width: 0; }
.market-owner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 16px; align-items: start; }
.market-form { display: grid; gap: 18px; }
.market-form h3 { margin: 0; font-size: 15px; }
.market-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.market-form section { display: grid; gap: 10px; }
.market-owner + .card { margin-top: 16px; }
.market-kind {
  position: relative; display: grid; gap: 6px; min-height: 112px; padding: 16px;
  border-radius: 18px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); cursor: pointer;
}
.market-kind input { position: absolute; opacity: 0; pointer-events: none; }
.market-kind strong { font-family: var(--display); font-size: 22px; letter-spacing: -.04em; }
.market-kind span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.market-kind:has(input:checked) { border-color: rgba(62, 240, 208, .7); background: linear-gradient(180deg, rgba(62, 240, 208, .16), rgba(62, 240, 208, .05)); }
.market-switches { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.market-switch {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center;
  padding: 14px 16px; border-radius: 18px; border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.18); cursor: pointer;
}
.market-switch strong { grid-column: 1; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.market-switch span { grid-column: 1; color: var(--muted); font-size: 13px; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.market-switch input { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 18px; height: 18px; accent-color: #3ef0d0; }
.market-switch:has(input:checked) { border-color: rgba(62, 240, 208, .55); background: rgba(62, 240, 208, .08); }
.market-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.market-fields .wide { grid-column: 1 / -1; }
.market-side { display: grid; gap: 12px; align-content: start; }
.market-stats { display: grid; gap: 8px; }
.market-stats div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  min-width: 0; padding: 12px 14px; border-radius: 16px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.market-stats b { min-width: 0; font-family: var(--display); font-size: 18px; letter-spacing: -.03em; overflow-wrap: anywhere; text-align: right; }
.market-stats span { color: var(--muted); font-size: 12px; flex: none; }
@media (max-width: 1100px) {
  .market-owner, .market-kinds, .market-switches, .market-fields, .market-cat { grid-template-columns: 1fr; }
}
.owner-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.owner-stats article {
  padding: 16px 18px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.1);
}
.owner-stats b { display: block; font-family: var(--display); font-size: 28px; letter-spacing: -.04em; }
.owner-stats span { color: var(--muted); font-size: 13px; }
.post-list, .staff-grid { display: grid; gap: 12px; }
.post-list { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.post-card { position: relative; padding: 16px 16px 14px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.post-card em { position: absolute; top: 12px; right: 14px; font-style: normal; font-weight: 800; color: #9ef6e4; }
.post-card strong { display: block; margin: 0 28px 6px 0; }
.post-card p, .staff-card .fine, .owner-hire .fine { margin: 0; color: var(--muted); }
.owner-desk > form.card,
.staff-card { display: flex; flex-direction: column; gap: 16px; }
.owner-desk > form.card > .card-head,
.staff-card .card-head { margin-bottom: 0; }
.staff-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.staff-search { min-width: min(280px, 100%); margin: 0; }
.staff-card.is-locked { opacity: .72; }
.staff-person { display: flex; align-items: center; gap: 12px; }
.staff-person > div { min-width: 0; flex: 1; }
.staff-person strong { display: block; }
.staff-person p { margin: 2px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.staff-person .pill { flex: none; }
.owner-desk .page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.access-tools { display: flex; flex-wrap: wrap; gap: 12px; }
.access-board { display: grid; gap: 14px; }
.access-group {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
}
.access-group h3 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.access-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin: 0; }
.access-picks label {
  display: flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 10px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.07);
  cursor: pointer;
}
.access-picks label:has(input:checked) {
  border-color: rgba(120, 210, 160, .5);
  background: rgba(120, 210, 160, .1);
}
.access-picks input { width: 16px; height: 16px; margin: 0; flex: none; accent-color: #7dface; }
.access-picks span { line-height: 1.3; }
.owner-auth .adm-card { width: min(460px, 100%); }
@media (max-width: 800px) {
  .owner-stats { grid-template-columns: 1fr 1fr; }
}
.calls-page { display: grid; gap: 22px; align-content: start; }
.calls-page > form,
.calls-page > .card { margin: 0; min-width: 0; }
.calls-block { display: grid; gap: 12px; margin-top: 18px; }
.calls-block h3 { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.calls-modes { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.call-board { display: grid; gap: 10px; }
.call-empty { margin: 0; padding: 18px 16px; border-radius: 16px; border: 1px dashed rgba(255,255,255,.16); color: var(--muted); background: rgba(255,255,255,.02); }
.call-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.call-row p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.call-row .btn { flex: none; }
.calls-sub { margin: 8px 0 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.missed-list { display: grid; gap: 6px; margin: 8px 12px 0; }
.missed-row { display: grid; gap: 2px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 77, 103, .08); border: 1px solid rgba(255, 77, 103, .28); color: inherit; text-decoration: none; }
.missed-row strong { font-size: 13px; }
.missed-row span { color: var(--muted); font-size: 12px; }
@media (max-width: 800px) {
  .call-row { align-items: flex-start; flex-direction: column; }
}
.desk-flow { display: grid; gap: 20px; align-content: start; }
.desk-flow > * { min-width: 0; margin: 0; }
.desk-flow > .card,
.desk-flow .market-band,
.approval-board { background: #141822; box-shadow: none; }
.approval-card { display: grid; gap: 12px; background: #1c2233; border: 1px solid rgba(255,255,255,.12); box-shadow: none; }
.approval-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 14px; }
.approval-counts > div { padding: 12px 14px; border-radius: 16px; background: #10141e; border: 1px solid rgba(255,255,255,.08); }
.approval-counts b { display: block; font-family: var(--display); font-size: 26px; letter-spacing: -.04em; }
.approval-counts span { color: var(--muted); font-size: 12px; }
.desk-flow > .approval-counts { margin: 0; }
.approval-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.approval-filter button { border: 1px solid rgba(255,255,255,.12); background: #10141e; color: inherit; border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.api-grants { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 0; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; }
.api-grants legend { padding: 0 6px; color: var(--muted); }
.api-grants label { display: flex; gap: 8px; align-items: center; min-width: 0; }
.pma-run { display: inline-grid; justify-items: start; gap: 4px; vertical-align: top; }
.pma-run .btn { min-width: 11em; }
.pma-stage { margin: 0; max-width: 260px; font-size: 12px; font-weight: 500; line-height: 1.35; color: rgba(237, 242, 255, .5); }
.mail-page { display: grid; gap: 16px; }
.mail-live { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mail-live article { display: grid; gap: 4px; align-content: start; }
.mail-live small, .mail-page .muted { color: var(--muted); }
.mail-dot { width: 10px; height: 10px; border-radius: 50%; background: #8b93a7; }
.mail-dot.on { background: #3ef0b0; box-shadow: 0 0 0 4px rgba(62, 240, 176, .16); }
.mail-dot.off { background: #ff5d7a; box-shadow: 0 0 0 4px rgba(255, 93, 122, .16); }
.mail-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mail-actions form { display: flex; gap: 6px; align-items: center; }
.mail-actions input { width: 140px; }
.mail-page .card-head .btn-ghost { color: var(--text); }
.mail-page .card-head .btn-primary { color: var(--accent-ink); }
.mail-toolbar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.mail-toolbar form { margin: 0; }
.mail-person { display: grid; gap: 2px; }
.mail-person small, .mail-id { color: var(--muted); font-size: 12px; }
.mail-id { display: block; }
.mail-cmd {
  display: block;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--stroke);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.letter-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 18px; align-items: start; }
.letter-frame { width: 100%; height: 880px; border: 0; border-radius: 16px; background: #e7eef6; }
.mail-check { display: grid; }
.mail-check-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 16px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--stroke);
}
.mail-check-row .pill { margin-left: 8px; }
.log-fold { border-top: 1px solid var(--stroke); }
.log-fold summary {
  cursor: pointer;
  padding: 10px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}
.log-fold summary::-webkit-details-marker { display: none; }
.log-fold summary::before { content: "▸ "; }
.log-fold[open] summary::before { content: "▾ "; }
.log-fold .mail-log,
.log-fold .callout { margin-bottom: 12px; }
.mail-log { display: grid; gap: 6px; }
.mail-log code {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,.28);
  color: #ffd0d8;
  font-family: var(--mono);
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mail-wizard { align-content: start; }
.mail-wizard h3 { margin: 4px 0 0; font-size: 15px; }
.mail-done {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(62, 240, 176, .1);
  border: 1px solid rgba(62, 240, 176, .28);
  color: #d9fff1;
}
.mail-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.mail-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  position: relative;
  padding: 0 0 16px;
}
.mail-step:last-child { padding-bottom: 0; }
.mail-step::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,.08);
}
.mail-step:last-child::before { display: none; }
.mail-step-n {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800;
  background: #121624;
  border: 1px solid var(--stroke);
  position: relative;
  z-index: 1;
}
.mail-step b { display: block; }
.mail-step p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.mail-step small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.mail-step[data-state="ok"] .mail-step-n { background: rgba(62, 240, 176, .16); color: #9ff6d8; border-color: transparent; }
.mail-step[data-state="ok"] small { color: #b7f5df; }
.mail-step[data-state="bad"] .mail-step-n { background: rgba(255, 93, 122, .16); color: #ffb4c2; border-color: transparent; }
.mail-step[data-state="bad"] small { color: #ffb4c2; }
.mail-step[data-state="run"] .mail-step-n { background: rgba(62, 240, 208, .16); color: var(--accent); border-color: transparent; }
.mail-wizard form[data-mail-run-form] { display: grid; gap: 8px; justify-items: start; }
.mail-server-note { margin: 0; }
.bug-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 42px; padding: 0 12px;
  border-radius: 12px; border: 1px solid var(--stroke); background: transparent;
  color: var(--muted); font-weight: 700; font-size: 13px; white-space: nowrap;
}
.bug-btn:hover { color: var(--text); border-color: var(--stroke-strong); }
.bug-btn kbd {
  font-family: var(--mono); font-size: 10px; border: 1px solid var(--stroke);
  border-bottom-width: 2px; border-radius: 6px; padding: 1px 5px; color: var(--faint);
}
.bug-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--stroke); }
.bug-row b, .bug-row p { display: block; }
.bug-row small, .bug-row p { color: var(--muted); }
.bug-row p { margin: 6px 0 0; white-space: pre-wrap; }
.bug-row.is-done { opacity: .72; }
@media (max-width: 800px) {
  .bug-btn kbd { display: none; }
  .bug-row { flex-direction: column; }
}
@media (max-width: 900px) {
  .mail-live { grid-template-columns: 1fr 1fr; }
  .mail-page .card-head { align-items: flex-start; flex-direction: column; }
  .mail-toolbar { justify-content: flex-start; }
  .mail-check-row { grid-template-columns: 1fr; }
  .letter-layout { grid-template-columns: 1fr; }
}
