
:root {
  --black: #070708;
  --bg: #0b0b0d;
  --bg-alt: #101013;
  --surface: #141418;
  --surface-hover: #1a1a1f;
  --border: rgba(var(--fg-rgb), 0.08);
  --border-strong: rgba(var(--fg-rgb), 0.16);

  --white: #f4f4f6;
  --text: #c9cacf;
  --muted: #8a8b92;
  --dim: #5c5d64;

  --metal: linear-gradient(180deg, #ffffff 0%, #d4d6db 45%, #8e9097 100%);

  --fg-rgb: 255, 255, 255;
  --bg-rgb: 11, 11, 13;
  --black-rgb: 7, 7, 8;
  --track: #26272c;
  --raised-a: #2a2b30;
  --raised-b: #16161a;
  --sidebar: #0d0d0f;
  --bad-text: #ffb4b6; --warn-text: #ffd27a; --ok-text: #8ff0b0; --boost-text: #f5a8ff;
  color-scheme: dark;

  --font-display: "Michroma", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 14px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="light"] {
  --black: #eceef2; --bg: #f5f6f8; --bg-alt: #eef0f3; --surface: #ffffff; --surface-hover: #f0f2f5;
  --border: rgba(16, 18, 24, 0.1); --border-strong: rgba(16, 18, 24, 0.2);
  --white: #121318; --text: #2b2d34; --muted: #5d6069; --dim: #8a8d96;
  --metal: linear-gradient(180deg, #2b2d34 0%, #555862 55%, #8a8d96 100%);
  --fg-rgb: 16, 18, 24; --bg-rgb: 245, 246, 248; --black-rgb: 236, 238, 242;
  --track: #dfe2e7; --raised-a: #ffffff; --raised-b: #e6e8ec; --sidebar: #ffffff;
  --bad-text: #c42b31; --warn-text: #9a6a00; --ok-text: #1f8a47; --boost-text: #a03ab0;
  --st-up: #1c9a4c; --st-degraded: #c08600; --st-down: #d6343a; --st-maintenance: #2f6fd6; --st-restarting: #7a58e0;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --black: #eceef2; --bg: #f5f6f8; --bg-alt: #eef0f3; --surface: #ffffff; --surface-hover: #f0f2f5;
    --border: rgba(16, 18, 24, 0.1); --border-strong: rgba(16, 18, 24, 0.2);
    --white: #121318; --text: #2b2d34; --muted: #5d6069; --dim: #8a8d96;
    --metal: linear-gradient(180deg, #2b2d34 0%, #555862 55%, #8a8d96 100%);
    --fg-rgb: 16, 18, 24; --bg-rgb: 245, 246, 248; --black-rgb: 236, 238, 242;
    --track: #dfe2e7; --raised-a: #ffffff; --raised-b: #e6e8ec; --sidebar: #ffffff;
  --bad-text: #c42b31; --warn-text: #9a6a00; --ok-text: #1f8a47; --boost-text: #a03ab0;
  --st-up: #1c9a4c; --st-degraded: #c08600; --st-down: #d6343a; --st-maintenance: #2f6fd6; --st-restarting: #7a58e0;
    color-scheme: light;
  }
}
:root[data-theme="light"] :is(.hero__logo, .nav__brand img, .sidebar__brand img, .login-card__logo, .footer .nav__brand img) { filter: brightness(0.45) contrast(1.3) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25)); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) :is(.hero__logo, .nav__brand img, .sidebar__brand img, .login-card__logo, .footer .nav__brand img) { filter: brightness(0.45) contrast(1.3) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25)); }
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; filter: drop-shadow(0 0 40px rgba(127, 127, 140, 0.35)); }
.theme-toggle__btn.is-spin svg { animation: themeSpin 0.75s cubic-bezier(0.65, 0, 0.35, 1); }
@keyframes themeSpin { 0% { transform: rotate(0) scale(1); } 45% { transform: rotate(200deg) scale(0.6); } 100% { transform: rotate(360deg) scale(1); } }

html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease !important; }

.theme-toggle { position: relative; margin-left: 10px; flex-shrink: 0; }
.app-top .theme-toggle { margin-left: auto; }
.theme-toggle__btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); border: 1px solid var(--border); background: rgba(var(--fg-rgb), 0.03); transition: color 0.15s, border-color 0.15s, background 0.15s; }
.theme-toggle__btn:hover, .theme-toggle__btn[aria-expanded="true"] { color: var(--white); border-color: var(--border-strong); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 120; min-width: 160px; padding: 5px; display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); animation: vselectIn 0.15s ease; }
.theme-toggle__menu[hidden] { display: none; }
.theme-toggle__menu button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: 0.86rem; text-align: left; }
.theme-toggle__menu button:hover { background: var(--surface-hover); color: var(--white); }
.theme-toggle__menu button[aria-checked="true"] { color: var(--white); font-weight: 600; background: rgba(var(--fg-rgb), 0.06); }

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
html:has(> body.no-scroll) { overflow: hidden; }
@media (max-width: 900px) { html:has(> body.sidebar-open), body.sidebar-open { overflow: hidden; } }
.nav__links, .sidebar { overscroll-behavior: contain; }

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3 { color: var(--white); font-weight: 600; line-height: 1.2; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

::selection { background: var(--white); color: var(--black); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.metal {
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section { padding: 120px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { text-align: center; margin-bottom: 64px; }
.section__title { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.02em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--black); box-shadow: 0 0 0 rgba(var(--fg-rgb), 0); }
.btn--light:hover { background: var(--white); box-shadow: 0 8px 30px rgba(var(--fg-rgb), 0.15); }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--white); }
.btn--ghost:hover { background: rgba(var(--fg-rgb), 0.06); border-color: rgba(var(--fg-rgb), 0.3); }
.btn--small { padding: 9px 20px; font-size: 0.85rem; }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.card:hover { background: var(--surface-hover); border-color: var(--border-strong); transform: translateY(-4px); }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--raised-a), var(--raised-b));
  border: 1px solid var(--border-strong);
  margin-bottom: 24px;
}
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  padding: 20px 0;
  transition: padding 0.3s, background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav--scrolled,
.nav--solid {
  padding: 12px 0;
  background: rgba(var(--bg-rgb), 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }

.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { width: 40px; height: 40px; object-fit: contain; }
.nav__brand span { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.3em; color: var(--white); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a.is-current { color: var(--white); }
.nav__links a:not(.btn) { font-size: 0.9rem; color: var(--muted); position: relative; transition: color 0.2s; }
.nav__links a:not(.btn):hover { color: var(--white); }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--white);
  transition: width 0.3s var(--ease);
}
.nav__links a:not(.btn):hover::after { width: 100%; }

.nav__toggle { display: none; width: 40px; height: 40px; position: relative; z-index: 110; }
.nav__toggle span {
  position: absolute; left: 9px; right: 9px; height: 2px; background: var(--white);
  border-radius: 2px; transition: transform 0.3s var(--ease), top 0.3s;
}
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle.is-open span:first-child { top: 19px; transform: rotate(45deg); }
.nav__toggle.is-open span:last-child { top: 19px; transform: rotate(-45deg); }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 140px 0 100px;
  background: var(--black);
  overflow: hidden;
}
.hero__glow {
  position: absolute; top: 38%; left: 50%;
  width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(var(--fg-rgb), 0.09) 0%, rgba(var(--fg-rgb), 0.03) 35%, transparent 65%);
  pointer-events: none;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(var(--fg-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--fg-rgb), 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero__logo {
  width: min(340px, 72vw);
  margin-bottom: 40px;
  filter: drop-shadow(0 0 24px rgba(var(--fg-rgb), 0.18));
}
.hero__title { font-size: clamp(2.3rem, 6vw, 4.4rem); letter-spacing: -0.03em; margin-bottom: 22px; }
.hero__text { max-width: 560px; font-size: 1.08rem; color: var(--muted); margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.status {
  display: inline-flex; align-items: center; gap: 18px;
  margin-top: 48px;
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(var(--fg-rgb), 0.02);
  font-size: 0.85rem; color: var(--muted);
}
a.status { transition: border-color 0.2s, background 0.2s; }
a.status:hover { border-color: var(--border-strong); background: rgba(var(--fg-rgb), 0.05); }
.status__item { display: flex; align-items: center; gap: 8px; }
.status__item strong { color: var(--white); }
.status__sep { width: 1px; height: 14px; background: var(--border-strong); }
.status__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 0 rgba(var(--fg-rgb), 0.6);
  animation: pulse 2s infinite;
}

.status--offline .status__dot { background: var(--dim); animation: none; }

.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid var(--border-strong); border-radius: 20px;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%;
  width: 3px; height: 8px; margin-left: -1.5px;
  background: var(--white); border-radius: 2px;
  animation: scroll 1.8s infinite;
}

.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.about__text .section__title { margin-bottom: 24px; }
.about__text p:not(.eyebrow) { color: var(--muted); margin-bottom: 16px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg); padding: 36px 28px; display: flex; flex-direction: column; gap: 6px; }
.stat__num {
  font-family: var(--font-display);
  font-size: 2rem;
  background: var(--metal);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { font-size: 0.85rem; color: var(--muted); }


.jobs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.job {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background 0.3s;
}
.job::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 2px; height: 0; background: var(--white);
  transition: height 0.4s var(--ease);
}
.job:hover { background: var(--surface); }
.job:hover::before { height: 100%; }
.job__num { font-family: var(--font-display); font-size: 0.75rem; color: var(--dim); letter-spacing: 0.2em; }
.job h3 { font-size: 1.3rem; margin: 18px 0 10px; }
.job p { color: var(--muted); font-size: 0.95rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { text-align: center; padding: 20px; position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 48px; left: calc(50% + 44px); right: calc(-50% + 44px);
  height: 1px; background: linear-gradient(90deg, var(--border-strong), transparent);
}
.step__num {
  width: 56px; height: 56px; margin: 0 auto 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: linear-gradient(145deg, var(--raised-a), var(--raised-b));
  font-family: var(--font-display); color: var(--white);
}
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.95rem; max-width: 300px; margin: 0 auto; }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}
.faq__item[open] { border-color: var(--border-strong); }
.faq__item summary {
  list-style: none; cursor: pointer;
  padding: 22px 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--white); font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-size: 1.4rem; font-weight: 300; color: var(--muted);
  transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 26px 22px; color: var(--muted); }
.faq__answer p { padding: 0 26px 14px; overflow-wrap: anywhere; }
.faq__answer p:last-child { padding-bottom: 22px; }
.faq__answer a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.faq-search { display: flex; align-items: center; gap: 12px; padding: 0 18px; margin-bottom: 14px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--muted); transition: border-color 0.15s; }
.faq-search:focus-within { border-color: var(--white); }
.faq-search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.faq-search input { flex: 1; min-width: 0; padding: 14px 0; border: none; outline: none; background: none; color: var(--white); font: inherit; }
.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.faq-cats:empty { margin-bottom: 12px; }
.faq-cat { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 0.86rem; font-weight: 600; transition: color 0.15s, border-color 0.15s, background 0.15s; }
.faq-cat:hover { color: var(--white); border-color: var(--border-strong); }
.faq-cat.is-active { color: var(--black); background: var(--white); border-color: var(--white); }
.faq-group + .faq-group { margin-top: 34px; }
.faq-group__title { margin-bottom: 14px; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.faq-help { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 46px; padding: 24px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.faq-help h2 { font-size: 1.1rem; margin-bottom: 4px; }
.faq-help p { color: var(--muted); font-size: 0.92rem; }

.cta {
  padding: 120px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(var(--fg-rgb), 0.06), transparent 60%),
    var(--black);
  border-top: 1px solid var(--border);
}
.cta__inner p { color: var(--muted); margin: 16px 0 36px; font-size: 1.05rem; }

.footer { border-top: 1px solid var(--border); background: var(--black); }
.footer__top {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px;
  padding: 72px 0 56px;
}
.footer__brand p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; margin: 18px 0 22px; }
.footer__col h4 {
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--white);
  margin-bottom: 18px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer__col a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  padding: 22px 0 28px; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--dim);
}

.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.25s var(--ease);
}
.socials a:hover { color: var(--black); background: var(--white); border-color: var(--white); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.cta .socials { justify-content: center; margin-top: 36px; }

.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translate(-50%, 20px);
  padding: 12px 22px;
  background: var(--white); color: var(--black);
  border-radius: 999px; font-size: 0.9rem; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.team__group + .team__group { margin-top: 56px; }
.team__role {
  font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
}
.team__role::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.team__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.member {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 16px; text-align: center;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.member:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.member img {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px;
  border: 1px solid var(--border-strong); filter: grayscale(0.4);
  transition: filter 0.3s;
}
.member:hover img { filter: none; }
.member__name { color: var(--white); font-weight: 600; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member__role { color: var(--muted); font-size: 0.8rem; }

.legal { padding: 150px 0 100px; min-height: 80vh; }
.legal__head { margin-bottom: 56px; }
.legal__head .section__title { margin-bottom: 12px; }
.legal__lead { color: var(--muted); max-width: 640px; }
.legal__lead a, .legal__block a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dim); }
.legal__lead a:hover, .legal__block a:hover { text-decoration-color: var(--white); }
.legal__block { padding: 40px 0; border-top: 1px solid var(--border); }
.legal__block h2 { font-size: 1.5rem; margin-bottom: 18px; }
.legal__block h3 { font-size: 1rem; margin: 8px 0 10px; }
.legal__block p:not(.eyebrow) { color: var(--muted); margin-bottom: 14px; }
.legal__info { display: grid; grid-template-columns: 120px 1fr; gap: 10px 24px; margin-top: 20px; }
.legal__info dt { color: var(--white); font-weight: 600; }
.legal__info dd { color: var(--muted); }
.legal__back { margin-top: 48px; }
.legal__toc {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px;
  padding: 22px 26px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.legal__toc a { color: var(--muted); font-size: 0.9rem; padding: 4px 0; transition: color 0.2s; }
.legal__toc a:hover { color: var(--white); }
.legal__block { scroll-margin-top: 90px; }
.legal__block code { font-size: 0.85em; padding: 1px 6px; border-radius: 5px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.legal__block strong { color: var(--text); }
.legal__table { overflow-x: auto; margin: 6px 0 18px; border: 1px solid var(--border); border-radius: 12px; }
.legal__table table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.legal__table th, .legal__table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal__table th { color: var(--white); font-weight: 600; background: var(--surface); }
.legal__table td { color: var(--muted); }
.legal__table tr:last-child td { border-bottom: none; }
.legal__list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.legal__list li { position: relative; padding-left: 20px; color: var(--muted); }
.legal__list li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 5px; height: 5px; border-radius: 50%; background: var(--dim); }
.legal__placeholder { padding: 14px 18px; border-radius: 10px; border: 1px dashed rgba(232, 180, 35, 0.5); background: rgba(232, 180, 35, 0.06); }
.legal__stand { margin-top: 32px; color: var(--dim); font-size: 0.85rem; }
@media (max-width: 560px) { .legal__toc { grid-template-columns: 1fr; } }

.rules-toolbar { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.rules-search {
  flex: 1; min-width: 220px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 12px 20px; color: var(--white); font: inherit; font-size: 0.92rem;
  outline: none; transition: border-color 0.2s;
}
.rules-search::placeholder { color: var(--dim); }
.rules-search:focus { border-color: var(--border-strong); }

.rules { display: flex; flex-direction: column; gap: 14px; }
.rule-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.rule-group[open] { border-color: var(--border-strong); }
.rule-group summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  padding: 22px 26px;
  color: var(--white); font-weight: 600; font-size: 1.05rem;
}
.rule-group summary::-webkit-details-marker { display: none; }
.rule-group summary::after {
  content: ""; margin-left: auto; width: 9px; height: 9px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg); transition: transform 0.3s var(--ease);
}
.rule-group[open] summary::after { transform: rotate(-135deg); }
.rule-group__num { font-family: var(--font-body); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 0.9rem; color: var(--muted); min-width: 32px; }
.rule-group__count { font-size: 0.78rem; font-weight: 500; color: var(--dim); }
.rule-list { list-style: none; border-top: 1px solid var(--border); }
.rule-list li {
  display: flex; gap: 18px; padding: 15px 26px;
  border-bottom: 1px solid var(--border); color: var(--text); font-size: 0.94rem;
  scroll-margin-top: 100px;
}
.rule-list li:last-child { border-bottom: none; }
.rule-list li:target { background: rgba(var(--fg-rgb), 0.05); }
.rule-list a.rule-id {
  font-family: var(--font-body); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: 0.82rem; color: var(--muted);
  min-width: 52px; padding-top: 2px; text-decoration: none;
}
.rule-list a.rule-id:hover { color: var(--white); }
.rule-list li.is-hidden, .rule-group.is-hidden { display: none; }
.team-rules__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.team-rules__head .kills-intro { flex: 1 1 380px; margin: 0; }
.team-rules .rule-group { background: var(--bg); }
.rule-list li.is-target { background: rgba(var(--fg-rgb), 0.06); }
.rules-empty { color: var(--muted); text-align: center; padding: 40px 0; }

.rules-note {
  margin-top: 28px; padding: 22px 26px;
  border: 1px solid var(--border); border-left: 2px solid var(--white);
  border-radius: var(--radius); background: rgba(var(--fg-rgb), 0.02);
  color: var(--muted); font-size: 0.94rem;
}
.rules-note strong { color: var(--white); }
.rules-note a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dim); }

.rules-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rules-nav .card { display: block; }
.rules-nav .card.is-active { border-color: var(--border-strong); background: var(--surface-hover); }
.rules-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.rules-tabs a {
  padding: 9px 18px; border-radius: 999px; font-size: 0.85rem;
  border: 1px solid var(--border); color: var(--muted); transition: all 0.2s;
}
.rules-tabs a:hover { color: var(--white); border-color: var(--border-strong); }
.rules-tabs a.is-active { background: var(--white); color: var(--black); border-color: var(--white); font-weight: 600; }

body.app { --sb-w: 232px; min-height: 100vh; }
body.app.sidebar-collapsed { --sb-w: 64px; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 120;
  width: var(--sb-w);
  display: flex; flex-direction: column;
  background: var(--sidebar); border-right: 1px solid var(--border);
  transition: width 0.22s var(--ease), transform 0.3s var(--ease);
}
.sidebar__top { display: flex; align-items: center; padding: 14px 14px 10px; }
.sidebar__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sidebar__brand img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
.sidebar__brand span { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.sidebar__brand strong { font-family: var(--font-display); font-weight: 400; font-size: 0.74rem; letter-spacing: 0.2em; color: var(--white); }
.sidebar__brand small { font-size: 0.7rem; color: var(--muted); }
.sidebar svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.sidebar__nav { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 4px 10px 10px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.sidebar__nav::-webkit-scrollbar { display: none; }
.sidebar__label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); padding: 14px 10px 6px; white-space: nowrap; }
.sidebar__spacer { flex: 1; min-height: 10px; }
.sidebar__item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; border: 1px solid transparent;
  color: var(--muted); font-size: 0.86rem; font-weight: 500; white-space: nowrap;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.sidebar__item:hover { color: var(--white); background: rgba(var(--fg-rgb), 0.04); }
.sidebar__item.is-active { color: var(--white); background: rgba(var(--fg-rgb), 0.07); border-color: var(--border); }

.sidebar__user { position: relative; padding: 10px; border-top: 1px solid var(--border); }
.sidebar__me { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 8px; text-align: left; transition: background 0.15s; }
.sidebar__me:hover, .sidebar__me[aria-expanded="true"] { background: rgba(var(--fg-rgb), 0.05); }
.sidebar__avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.sidebar__avatar--initials { font-size: 0.6rem; }
.sidebar__who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.sidebar__who strong { color: var(--white); font-size: 0.84rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__who small { color: var(--muted); font-size: 0.72rem; }
.sidebar__me > svg { width: 15px; height: 15px; color: var(--dim); }
.sidebar__menu {
  position: absolute; left: 10px; bottom: calc(100% - 4px); width: max(calc(100% - 20px), 200px);
  padding: 5px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.sidebar__menu a, .sidebar__menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; font-size: 0.84rem; color: var(--text); }
.sidebar__menu a:hover, .sidebar__menu button:hover { background: rgba(var(--fg-rgb), 0.06); color: var(--white); }
.sidebar__menu [data-logout]:hover { color: var(--bad-text); }

body.sidebar-collapsed .sidebar__top { justify-content: center; padding: 14px 0 10px; }
body.sidebar-collapsed .sidebar__brand span,
body.sidebar-collapsed .sidebar__item span,
body.sidebar-collapsed .sidebar__who,
body.sidebar-collapsed .sidebar__me > svg { display: none; }
body.sidebar-collapsed .sidebar__label { font-size: 0; padding: 0; height: 1px; margin: 10px 8px; background: var(--border); }
body.sidebar-collapsed .sidebar__item { justify-content: center; padding: 9px 0; }
body.sidebar-collapsed .sidebar__me { justify-content: center; padding: 4px 0; }

.sidebar-backdrop { display: none; }

.cmd-ticker { display: none; }
body.app--team .cmd-ticker { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 0.76rem; color: var(--muted); overflow: hidden; }
.cmd-ticker__item { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border); background: rgba(var(--fg-rgb), 0.03); white-space: nowrap; }
.cmd-ticker__item b { color: var(--white); font-weight: 600; }
.cmd-ticker__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--st-up); box-shadow: 0 0 8px var(--st-up); animation: pulseRestart 2s ease-in-out infinite; }
.cmd-ticker__dot.is-bad { background: var(--st-down); box-shadow: 0 0 8px var(--st-down); }
body.app--team .app-top .theme-toggle { margin-left: 6px; }
@media (max-width: 1100px) { .cmd-ticker__item.is-optional { display: none; } }
@media (max-width: 700px) { body.app--team .cmd-ticker { display: none; } }

.app-main { margin-left: var(--sb-w); min-height: 100vh; display: flex; flex-direction: column; transition: margin-left 0.22s var(--ease); }
.app-top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  height: 46px; padding: 0 18px;
  background: rgba(var(--bg-rgb), 0.97); border-bottom: 1px solid var(--border);
}
.app-toggle { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); transition: color 0.15s, background 0.15s; }
.app-toggle:hover { color: var(--white); background: rgba(var(--fg-rgb), 0.06); }
@media (min-width: 901px) {
  .app-toggle { display: none; }
  .crumbs { padding-left: 0; border-left: none; }
}
.app-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--muted); min-width: 0; padding-left: 12px; border-left: 1px solid var(--border); }
.crumbs a:hover { color: var(--white); }
.crumbs svg { width: 13px; height: 13px; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.crumbs span { color: var(--white); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.app-content { flex: 1; padding: 26px 28px 48px; }
.app-head { margin-bottom: 18px; }
.app-head h1 { font-size: 1.45rem; letter-spacing: -0.02em; }
.app-head p { color: var(--muted); font-size: 0.86rem; margin-top: 2px; }
.app-head p:empty { display: none; }
.app-content .panel { border-radius: 12px; }
.app-content .panel__body { padding: 20px; }

body.app--guest .sidebar, body.app--guest .app-top, body.app--guest .app-head { display: none; }
body.app--guest .app-main { margin-left: 0; }
body.app--guest .app-content { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 16px; }
body.app--guest .app-content > * { width: 100%; max-width: 440px; }
body.app--guest .app-main { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
body.app--guest .app-content { flex: 1; }
body.app--guest .app-main::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(var(--fg-rgb), 0.12) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask: radial-gradient(ellipse 60% 55% at 50% 50%, #000 10%, transparent 75%); mask: radial-gradient(ellipse 60% 55% at 50% 50%, #000 10%, transparent 75%);
}
body.app--guest .app-main::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 720px; height: 720px; transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--fg-rgb), 0.08), transparent 60%);
}
body.app--guest .login-card {
  background: color-mix(in srgb, var(--surface) 80%, transparent); border-color: var(--border-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(var(--fg-rgb), 0.06);
  animation: riseIn 0.7s var(--ease) both;
}
:root[data-theme="light"] :is(body.app--guest .login-card, .verify-card) { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
:root[data-theme="light"] .verify-card.is-ok { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08), 0 0 50px color-mix(in srgb, var(--st-up) 14%, transparent); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) :is(body.app--guest .login-card, .verify-card) { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
  :root:not([data-theme="dark"]) .verify-card.is-ok { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08), 0 0 50px color-mix(in srgb, var(--st-up) 14%, transparent); }
}
.login-card__back { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 0.82rem; color: var(--dim); transition: color 0.15s; }
.login-card__back:hover { color: var(--white); }
.login-card__back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.dash-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.dash-profile { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dash-profile__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.dash-profile__avatar--initials { font-size: 0.75rem; }
.dash-profile__who { display: flex; flex-direction: column; line-height: 1.3; }
.dash-profile__who strong { color: var(--white); font-size: 0.95rem; }
.dash-profile__who small { color: var(--muted); font-size: 0.76rem; }
.dash-badge { font-size: 0.72rem; font-weight: 600; color: var(--text); padding: 3px 9px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--bg); }
.dash-profile__meta { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.82rem; color: var(--muted); }
.dash-profile__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.dash-profile__meta svg, .dash-card__title svg, .quick svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dash-profile__meta svg { width: 15px; height: 15px; }
.dash-profile__meta strong { color: var(--white); font-weight: 600; }
.dash-profile__meta code { color: var(--white); font-size: 0.78rem; font-family: ui-monospace, Consolas, monospace; }
.dash-copy { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: var(--dim); }
.dash-copy:hover { color: var(--white); background: rgba(var(--fg-rgb), 0.06); }
.dash-card__title { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.dash-card__title svg { width: 17px; height: 17px; color: var(--muted); }
.widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.widgets .dash-card { margin-bottom: 0; display: flex; flex-direction: column; }
.widget__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.widget__link { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; color: var(--muted); }
.widget__link:hover { color: var(--white); }
.widget__link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.widget__empty { color: var(--muted); font-size: 0.86rem; }
.wrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wbig { color: var(--white); font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.wbig small { font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.wbar { margin: 12px 0 16px; }
.wstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wstat { padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; display: flex; flex-direction: column; }
.wstat strong { color: var(--white); font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.wstat span { color: var(--muted); font-size: 0.74rem; }
.wstat.is-good strong { color: var(--st-up); }
.wstat.is-warn strong { color: var(--st-degraded); }
.wstat.is-bad strong { color: var(--st-down); }
.wlist { list-style: none; margin-top: 12px; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.wlist li { border-bottom: 1px solid var(--border); }
.wlist li:last-child { border-bottom: none; }
.wlist a, .wlog li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; font-size: 0.84rem; color: var(--text); }
.wlist a:hover { background: rgba(var(--fg-rgb), 0.03); }
.wlist strong { color: var(--white); }
.wlist em { font-style: normal; color: var(--muted); font-size: 0.78rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wlist em.bad { color: var(--st-down); }
.wlog li { justify-content: flex-start; }
.wlog li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wlog li small { color: var(--dim); }
.wlog i { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--c, #9a9ca1); }
.wlog .is-success { --c: var(--st-up); }
.wlog .is-warn { --c: var(--st-degraded); }
.wlog .is-error { --c: var(--st-down); }
.wlog .is-stats { --c: var(--st-maintenance); }
@media (max-width: 560px) { .widgets { grid-template-columns: 1fr; } }

.dash-group { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 18px 0 8px; font-weight: 600; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.quick {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  transition: border-color 0.15s, background 0.15s;
}
.quick:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.quick__icon { width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--border-strong); color: var(--white); }
.quick__icon svg { width: 17px; height: 17px; }
.quick__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.quick__text strong { color: var(--white); font-size: 0.88rem; }
.quick__text small { color: var(--muted); font-size: 0.76rem; }
.quick__arrow { color: var(--dim); transition: color 0.15s, transform 0.15s; }
.quick__arrow svg { width: 15px; height: 15px; }
.quick:hover .quick__arrow { color: var(--white); transform: translate(1px, -1px); }

@media (max-width: 900px) {
  body.app, body.app.sidebar-collapsed { --sb-w: 0px; }
  .sidebar { width: 260px; transform: translateX(-100%); }
  body.sidebar-open .sidebar { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, 0.6); }
  body.sidebar-collapsed .sidebar__top { justify-content: flex-start; padding: 14px 14px 10px; }
  body.sidebar-collapsed .sidebar__brand span, body.sidebar-collapsed .sidebar__who { display: flex; }
  body.sidebar-collapsed .sidebar__item span { display: inline; }
  body.sidebar-collapsed .sidebar__me > svg { display: block; }
  body.sidebar-collapsed .sidebar__label { font-size: 0.62rem; padding: 14px 10px 6px; height: auto; margin: 0; background: none; }
  body.sidebar-collapsed .sidebar__item { justify-content: flex-start; padding: 8px 10px; }
  body.sidebar-collapsed .sidebar__me { justify-content: flex-start; padding: 6px; }
  .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(0, 0, 0, 0.6); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
  body.sidebar-open .sidebar-backdrop { opacity: 1; visibility: visible; }
  .app-top { padding: 0 12px; }
  .app-content { padding: 18px 16px 40px; }
  .dash-profile__meta { margin-left: 0; width: 100%; }
  .quick-grid { grid-template-columns: 1fr; }
}

.nav__links a.nav__login { display: inline-flex; align-items: center; gap: 8px; }
.nav__login svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav__login.is-user span:last-child { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav__avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-strong); }

[class$="--initials"] {
  display: inline-grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(145deg, var(--raised-a), var(--raised-b)); border: 1px solid var(--border-strong);
  font-family: var(--font-display); color: var(--white); border-radius: 50%;
}
.nav__avatar--initials { font-size: 0.55rem; }

.login-card {
  max-width: 460px; margin: 0 auto; padding: 44px 36px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
}
.login-card__logo { width: 72px; height: 72px; margin: 0 auto 18px; object-fit: contain; filter: drop-shadow(0 6px 22px rgba(var(--fg-rgb), 0.25)); }
.login-card h2 { font-size: 1.4rem; margin-bottom: 10px; }
.login-card .login-card__title { font-size: clamp(1.9rem, 6vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }
.login-card__title span { background: linear-gradient(180deg, var(--white), rgba(var(--fg-rgb), 0.45)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-card > p { color: var(--muted); font-size: 0.94rem; margin-bottom: 26px; }
.login-card > p.login-card__label { font-family: ui-monospace, Consolas, monospace; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); margin: 0 0 12px; }
.login-card > p.login-card__label--left { text-align: left; margin-top: 26px; }
.login-card .btn { width: 100%; }
.login-card .btn--discord { padding: 16px 22px; font-size: 1rem; border-radius: 999px; box-shadow: 0 10px 30px rgba(var(--fg-rgb), 0.12); }
.login-card .btn--discord:hover { box-shadow: 0 14px 38px rgba(var(--fg-rgb), 0.2); }
.login-card__info { display: flex; gap: 10px; padding: 10px 12px; text-align: left; border: 1px solid var(--border); border-radius: 10px; background: rgba(var(--fg-rgb), 0.025); }
.login-card__info svg { width: 16px; height: 16px; flex: none; margin-top: 2px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.login-card__info p { font-size: 0.8rem; line-height: 1.5; color: var(--muted); }
.login-card__info small { display: block; margin-top: 4px; font-size: 0.74rem; color: var(--dim); }
.login-card__info a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
.btn--discord svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.form-msg { font-size: 0.9rem; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; text-align: left; }
.form-msg.is-error { color: var(--bad-text); background: rgba(240, 86, 90, 0.1); border: 1px solid rgba(240, 86, 90, 0.3); }
.form-msg a { color: var(--white); text-decoration: underline; }

.profile {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 28px; margin-bottom: 32px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
}
.profile__avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-strong); }
.profile__avatar--initials { font-size: 1.3rem; }
.profile__info { flex: 1; min-width: 220px; }
.profile__info h2 { font-size: 1.5rem; }
.profile__info > p { color: var(--muted); font-size: 0.92rem; }
.profile__info > p strong { color: var(--white); }
.profile__meta { margin-top: 2px; font-size: 0.85rem !important; }
.profile .form-msg { margin: 12px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { padding: 4px 10px; border-radius: 999px; font-size: 0.76rem; color: var(--text); background: var(--bg); border: 1px solid var(--border); }
.chip--small { padding: 1px 6px; font-size: 0.65rem; vertical-align: middle; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 26px; border-bottom: 1px solid var(--border); }
.panel__head h2 { font-size: 1.2rem; }
.panel__tabs { margin: 0; }
.panel__body { padding: 26px; }
.panel__body .team__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.panel__body .team__group + .team__group { margin-top: 36px; }
.panel__empty { color: var(--muted); text-align: center; padding: 30px 0; }
.panel__toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }

.member__img { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; object-fit: cover; border: 1px solid var(--border-strong); }
.member__img--initials { display: grid; font-size: 1rem; }

.member-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.member-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.member-row:last-child { border-bottom: none; }
.member-row:hover { background: rgba(var(--fg-rgb), 0.02); }
.member-row__img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.member-row__img--initials { font-size: 0.7rem; }
.member-row__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.member-row__info strong { color: var(--white); font-size: 0.92rem; font-weight: 600; }
.member-row__info span { color: var(--muted); font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-row__date { color: var(--dim); font-size: 0.78rem; white-space: nowrap; }
.member-servers { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; white-space: normal !important; }
.chip--main { color: var(--white); border-color: var(--border-strong); }

.btn--danger { background: rgba(240, 86, 90, 0.12); color: var(--bad-text); border: 1px solid rgba(240, 86, 90, 0.4); }
.btn--danger:hover { background: #f0565a; color: #fff; border-color: #f0565a; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.profile__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.select {
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 10px 16px; color: var(--white); font: inherit; font-size: 0.9rem; outline: none;
}
.field .select { border-radius: 10px; }

input[type="checkbox"]:not(.switch input) {
  -webkit-appearance: none; appearance: none; flex-shrink: 0; position: relative;
  width: 18px; height: 18px; margin: 0; border: 1px solid var(--border-strong); border-radius: 5px;
  background: var(--bg); cursor: pointer; vertical-align: middle;
  transition: background 0.15s, border-color 0.15s;
}
input[type="checkbox"]:not(.switch input):hover { border-color: var(--white); }
input[type="checkbox"]:not(.switch input):checked { background: var(--white); border-color: var(--white); }
input[type="checkbox"]:not(.switch input)::after {
  content: ""; position: absolute; left: 50%; top: 45%; width: 28%; height: 52%;
  border: solid var(--black); border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg) scale(0); transition: transform 0.12s;
}
input[type="checkbox"]:not(.switch input):checked::after { transform: translate(-50%, -50%) rotate(45deg) scale(1); }
input[type="checkbox"]:not(.switch input):focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
input[type="checkbox"]:not(.switch input):disabled { opacity: 0.35; cursor: not-allowed; }

.vselect { position: relative; display: inline-block; min-width: 0; }
.field .vselect, .compress__opts .vselect, .msg-pingadd .vselect { display: block; }
.vselect > select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.vselect__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 10px 14px 10px 16px; color: var(--white); font: inherit; font-size: 0.9rem; text-align: left; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.field .vselect__btn, .compress__opts .vselect__btn, .msg-pingadd .vselect__btn { border-radius: 10px; }
.vselect__btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field .vselect span { color: inherit; font-size: inherit; font-weight: 400; }
.field .vselect__opt.is-selected span { font-weight: 600; }
.vselect__btn svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.vselect__btn:hover { border-color: var(--white); }
.vselect__btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.vselect__btn:disabled { opacity: 0.5; cursor: not-allowed; }
.vselect.is-open .vselect__btn { border-color: var(--white); background: var(--surface); }
.vselect.is-open .vselect__btn svg { transform: rotate(180deg); }
.vselect__list {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 100%; max-width: max(100%, min(380px, 100vw - 32px)); max-height: 280px; overflow-y: auto;
  padding: 5px; border: 1px solid var(--border-strong); border-radius: 12px;
  background: var(--surface); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  animation: vselectIn 0.14s var(--ease, ease);
}
.vselect.is-up .vselect__list { top: auto; bottom: calc(100% + 6px); }
.vselect.is-right .vselect__list { left: auto; right: 0; }
.vselect__opt span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
@keyframes vselectIn { from { opacity: 0; transform: translateY(-4px); } }
.vselect__search { position: sticky; top: -5px; z-index: 1; width: 100%; margin: -5px 0 5px; padding: 9px 12px; border: none; border-bottom: 1px solid var(--border); border-radius: 8px 8px 0 0; background: var(--surface); color: var(--white); font: inherit; font-size: 0.86rem; outline: none; }
.vselect__search::placeholder { color: var(--dim); }
.vselect__opt[hidden] { display: none; }
.vselect__opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; color: var(--text); font-size: 0.88rem; cursor: pointer; white-space: nowrap; }
.vselect__opt svg { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: var(--white); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.vselect__opt.is-active { background: var(--surface-hover); color: var(--white); }
.vselect__opt.is-selected { color: var(--white); font-weight: 600; }
.vselect__opt.is-selected svg { visibility: visible; }
.vselect__opt.is-disabled { opacity: 0.4; cursor: not-allowed; }
.field span em { font-style: normal; font-weight: 400; color: var(--dim); }

.logs { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.logs .panel__empty { padding: 30px 16px; }
.log { display: flex; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.log:last-child { border-bottom: none; }
.log.is-info { --c: #9a9ca1; }
.log.is-success { --c: var(--st-up); }
.log.is-warn { --c: var(--st-degraded); }
.log.is-error { --c: var(--st-down); }
.log.is-stats { --c: var(--st-maintenance); }
.log__dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; flex-shrink: 0; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 15%, transparent); }
.log__body { flex: 1; min-width: 0; }
.log__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.log__head strong { color: var(--white); font-size: 0.92rem; font-weight: 600; }
.log__head time { margin-left: auto; color: var(--dim); font-size: 0.78rem; white-space: nowrap; }
.log__copy { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: var(--dim); transition: color 0.15s, background 0.15s; }
.log__copy:hover { color: var(--white); background: rgba(var(--fg-rgb), 0.08); }
.log__copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.log__body p { color: var(--muted); font-size: 0.86rem; margin-top: 3px; overflow-wrap: anywhere; }
.log__body p strong, .log__body dd strong { color: var(--text); }
.log__body code { font-size: 0.8em; padding: 1px 5px; border-radius: 4px; background: var(--bg); border: 1px solid var(--border); }
.log__body dl { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 8px; }
.log__body dt { color: var(--dim); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.log__body dd { color: var(--text); font-size: 0.84rem; overflow-wrap: anywhere; }
.logs__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.logs__foot:empty { display: none; }
.logs__count { color: var(--dim); font-size: 0.8rem; }

.pager { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pager button { min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); color: var(--muted); font-size: 0.84rem; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.pager button:hover:not(:disabled) { border-color: var(--border-strong); color: var(--white); }
.pager button.is-active { background: var(--white); border-color: var(--white); color: var(--black); }
.pager button:disabled { opacity: 0.35; cursor: not-allowed; }
.pager__arrow { display: grid; place-items: center; padding: 0 !important; }
.pager__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pager__gap { padding: 0 4px; color: var(--dim); }
.pager__jump { display: flex; gap: 4px; margin-left: 8px; }
.pager__jump input { width: 74px; height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); color: var(--white); font: inherit; font-size: 0.84rem; font-variant-numeric: tabular-nums; outline: none; -moz-appearance: textfield; appearance: textfield; transition: border-color 0.15s; }
.pager__jump input::-webkit-outer-spin-button, .pager__jump input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pager__jump input:focus { border-color: rgba(var(--fg-rgb), 0.4); }
.pager button.pager__go { color: var(--white); }

.kills-intro { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.kills-intro strong { color: var(--white); }
.kill-list { display: flex; flex-direction: column; gap: 12px; }
.kill { padding: 18px 20px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; }
.kill__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.kill__head strong { display: block; color: var(--white); font-size: 1rem; }
.kill__head span:not(.pill) { color: var(--muted); font-size: 0.84rem; }
.kill__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 0.84rem; color: var(--text); }
.kill__meta span:empty { display: none; }
.kill__note { margin-top: 10px; font-size: 0.86rem; color: var(--muted); }
.kill__note strong { color: var(--white); }
.kill__note.is-bad { color: var(--bad-text); }
.kill__upload { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.upload-progress { position: relative; flex: 1; min-width: 200px; height: 8px; margin-bottom: 18px; border-radius: 999px; background: var(--track); }
.upload-progress span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--white); transition: width 0.2s; }
.upload-progress em { position: absolute; top: 14px; left: 0; font-style: normal; font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.chip--warn { color: var(--warn-text); border-color: rgba(232, 180, 35, 0.35); background: rgba(232, 180, 35, 0.08); }

.clip-tabs { margin: 0 0 18px; align-items: center; }
.clip-tabs__sep { width: 1px; height: 22px; margin: 0 4px; background: var(--border-strong); }
.rules-tabs a.clip-tab--clean { color: #3ecf6e; border-color: rgba(62, 207, 110, 0.35); }
.rules-tabs a.clip-tab--suspicious { color: #e8b423; border-color: rgba(232, 180, 35, 0.35); }
.rules-tabs a.clip-tab--cheat { color: #f0565a; border-color: rgba(240, 86, 90, 0.35); }
.rules-tabs a.clip-tab--clean.is-active { background: #3ecf6e; border-color: #3ecf6e; color: #0b0b0d; }
.rules-tabs a.clip-tab--suspicious.is-active { background: #e8b423; border-color: #e8b423; color: #0b0b0d; }
.rules-tabs a.clip-tab--cheat.is-active { background: #f0565a; border-color: #f0565a; color: #0b0b0d; }
.upload-progress.is-error span { background: #f0565a; }
.upload-progress.is-error em { color: var(--bad-text); white-space: normal; }

.compress { max-width: 860px; }
.panel:has(.compress) { max-width: calc(860px + 52px + 2px); }
.compress__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 14px; }
.compress__opts .field[hidden] { display: none; }
.compress__drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 40px 16px; border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--bg); text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.compress__drop:hover, .compress__drop.is-over { border-color: var(--white); background: var(--surface); }
.compress__drop.is-busy { opacity: 0.5; cursor: not-allowed; }
.compress__drop strong { color: var(--white); }
.compress__drop span { color: var(--muted); font-size: 0.8rem; }
.compress__status { margin-top: 18px; }
.compress__status .upload-progress { margin-bottom: 34px; }
.compress__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.compress__actions:empty { display: none; }
.compress__note { margin-top: 14px; color: var(--dim); font-size: 0.76rem; }
.clip-row { width: 100%; text-align: left; cursor: pointer; }
.clip-row__thumb { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--border-strong); color: var(--white); font-size: 0.8rem; }
.clip-row__arrow { color: var(--dim); font-weight: 400; }

.modal__box.modal__box--wide { max-width: 880px; max-height: calc(100vh - 32px); overflow-y: auto; }
.clip-modal__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.clip-modal__head h2 { margin: 0; flex: 1; font-size: 1.15rem; }
.clip-modal__close { width: 34px; height: 34px; border-radius: 8px; font-size: 1.4rem; line-height: 1; color: var(--muted); }
.clip-modal__close:hover { color: var(--white); background: rgba(var(--fg-rgb), 0.06); }
.clip-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; border: 1px solid var(--border); }
.clip-video--empty { display: grid; place-items: center; align-content: center; gap: 10px; color: var(--muted); font-size: 0.9rem; text-align: center; padding: 20px; }
.clip-video--empty a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.clip-backup { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.clip-backup .btn .ico { margin-right: 6px; }
.clip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.clip-person { display: flex; flex-direction: column; gap: 2px; padding: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; min-width: 0; }
.clip-person span { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.clip-person strong { color: var(--white); font-size: 0.95rem; }
.clip-person small { color: var(--muted); font-size: 0.8rem; overflow-wrap: anywhere; }
.clip-sub { font-size: 0.95rem; margin: 22px 0 10px; }
.clip-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.clip-checks div { padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; }
.clip-checks dt { font-size: 0.74rem; color: var(--dim); }
.clip-checks dd { font-size: 0.9rem; color: var(--white); font-weight: 600; }
.clip-checks dd.good { color: var(--st-up); }
.clip-checks dd.bad { color: var(--st-down); }
.clip-hint { margin-top: 12px; font-size: 0.82rem; color: var(--muted); }
.clip-checks dd small { color: var(--dim); font-weight: 400; }
.scan-verdict { margin-left: 8px; font-size: 0.78rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--muted); }
.scan-verdict.good { color: var(--st-up); border-color: color-mix(in srgb, var(--st-up) 45%, transparent); }
.scan-verdict.bad { color: var(--st-down); border-color: color-mix(in srgb, var(--st-down) 45%, transparent); }
.clip-review { font-size: 0.88rem; color: var(--muted); margin-bottom: 10px; }
.clip-review strong { color: var(--white); }
.clip-verdict textarea { width: 100%; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px 14px; color: var(--white); font: inherit; font-size: 0.9rem; resize: vertical; outline: none; }
.clip-verdict__buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.verdict { border: 1px solid; }
.verdict--clean { color: var(--st-up); border-color: color-mix(in srgb, var(--st-up) 45%, transparent); background: color-mix(in srgb, var(--st-up) 10%, transparent); }
.verdict--suspicious { color: var(--st-degraded); border-color: color-mix(in srgb, var(--st-degraded) 45%, transparent); background: color-mix(in srgb, var(--st-degraded) 10%, transparent); }
.verdict--cheat { color: var(--st-down); border-color: color-mix(in srgb, var(--st-down) 45%, transparent); background: color-mix(in srgb, var(--st-down) 10%, transparent); }
.verdict:hover { color: var(--black); }
.verdict--clean:hover { background: var(--st-up); }
.verdict--suspicious:hover { background: var(--st-degraded); }
.verdict--cheat:hover { background: var(--st-down); color: #fff; }

.botctl { display: flex; flex-direction: column; gap: 18px; }
.botctl__status { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 16px 18px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; }
.botctl__status dl { display: flex; gap: 28px; flex-wrap: wrap; flex: 1; }
.botctl__status dt { font-size: 0.74rem; color: var(--dim); }
.botctl__status dd { color: var(--white); font-weight: 600; font-variant-numeric: tabular-nums; }
.botctl__buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.botctl__storage { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 14px 18px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; }
.botctl__storage > div { display: flex; flex-direction: column; gap: 2px; }
.botctl__storage strong { color: var(--white); font-size: 0.9rem; }
.botctl__storage span { color: var(--muted); font-size: 0.82rem; }
.console { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #050506; }
.console__bar { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 0.82rem; color: var(--muted); }
.console__bar span { color: var(--white); font-weight: 600; flex: 1; }
.console__bar label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.console__bar input { width: 16px; height: 16px; }
.console__clear { color: var(--muted); font-size: 0.82rem; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--border); }
.console__clear:hover { color: var(--white); border-color: var(--border-strong); }
.console__out {
  height: min(60vh, 560px); overflow: auto; margin: 0; padding: 12px 14px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace; font-size: 0.8rem; line-height: 1.55;
  color: #d6d7db; white-space: pre-wrap; word-break: break-word;
}
.console__line { display: flex; gap: 12px; }
.console__line time { color: #55575e; flex-shrink: 0; }
.console__line.is-err span { color: #ff8a8d; }
.console__line.is-manager span { color: #8fb6ff; }

.perm-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 16px; margin-bottom: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.perm-info__text { display: flex; flex-direction: column; gap: 2px; max-width: 620px; }
.perm-info__text strong { color: var(--white); font-size: 0.9rem; }
.perm-info__text span { color: var(--muted); font-size: 0.8rem; }
.perm-info__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.perm-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.perm-roles { padding: 0 !important; overflow: hidden; position: sticky; top: 16px; }
.perm-roles__head { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-bottom: 1px solid var(--border); }
.perm-roles__head .rules-search { width: 100%; max-width: none; }
.perm-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); }
.perm-seg button { padding: 6px 8px; border-radius: 6px; color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.perm-seg button.is-active { background: var(--surface-hover); color: var(--white); }
.perm-roles__list { max-height: 62vh; overflow-y: auto; padding: 6px; }
.perm-roleitem { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; text-align: left; color: var(--text); transition: background 0.15s; }
.perm-roleitem:hover { background: var(--surface-hover); }
.perm-roleitem.is-active { background: var(--surface-hover); box-shadow: inset 2px 0 0 var(--white); }
.perm-roleitem__name { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--white); font-size: 0.86rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perm-roleitem__name small { color: var(--dim); font-size: 0.72rem; font-weight: 400; }
.perm-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.perm-count { flex-shrink: 0; font-size: 0.72rem; font-weight: 600; color: var(--dim); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); }
.perm-count.has { color: var(--white); border-color: var(--border-strong); }
.perm-detail { min-width: 0; }
.perm-detail__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.perm-detail__head h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; color: var(--white); }
.perm-detail__head p { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.perm-detail__actions { display: flex; gap: 8px; }
.perm-detail__actions .btn:disabled { opacity: 0.4; cursor: not-allowed; }
.perm-group { margin-top: 18px; }
.perm-list__group { padding: 10px 10px 2px; margin: 0; }

.role-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.role-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 6px 5px 10px; border-radius: 6px;
  background: color-mix(in srgb, var(--role) 14%, var(--bg)); border: 1px solid color-mix(in srgb, var(--role) 45%, transparent);
  color: var(--white); font-size: 0.84rem; font-weight: 500; animation: fadeUp 0.25s var(--ease) both;
}
.role-pill i, .role-add__item i { width: 10px; height: 10px; border-radius: 50%; background: var(--role); flex: none; }
.role-pill button { width: 20px; height: 20px; border-radius: 4px; color: var(--muted); font-size: 1rem; line-height: 1; }
.role-pill button:hover { color: var(--white); background: rgba(240, 86, 90, 0.35); }
.role-add__search { width: 100%; max-width: none; margin-bottom: 10px; }
.role-add { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; max-height: 340px; overflow-y: auto; }
.role-add__item {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--white); font-size: 0.84rem; text-align: left; transition: border-color 0.15s, background 0.15s;
}
.role-add__item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-add__item small { color: var(--dim); font-size: 0.72rem; white-space: nowrap; }
.role-add__item b { color: var(--muted); font-size: 1.05rem; font-weight: 500; }
.role-add__item:hover { border-color: color-mix(in srgb, var(--role) 60%, transparent); background: color-mix(in srgb, var(--role) 10%, var(--bg)); }
.role-add__item:hover b { color: var(--white); }
.role-pill button:disabled, .role-add__item:disabled { opacity: 0.5; cursor: wait; }
.perm-group__title { color: var(--dim); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.perm-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.perm-item:hover { border-color: var(--border-strong); }
.perm-item.is-on { border-color: var(--border-strong); background: var(--surface); }
.perm-item__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.perm-item__text strong { color: var(--white); font-size: 0.88rem; font-weight: 600; }
.perm-item__text > span { color: var(--muted); font-size: 0.8rem; }
@media (max-width: 860px) {
  .perm-layout { grid-template-columns: 1fr; }
  .perm-roles { position: static; }
  .perm-roles__list { max-height: 260px; }
}

@media (max-width: 700px) {
  .clip-grid, .clip-checks { grid-template-columns: 1fr 1fr; }
}

.modal { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal__box {
  position: relative; width: 100%; max-width: 480px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px;
  padding: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.modal__box h2 { font-size: 1.2rem; margin-bottom: 8px; }
.vdialog { z-index: 300; }
.vdialog .modal__backdrop { animation: vdialogFade 0.15s ease; }
.vdialog__box { max-width: 420px; padding: 24px; animation: vdialogIn 0.18s ease; }
.vdialog__box .field { margin-bottom: 18px; }
.vdialog__box .modal__actions { margin-top: 4px; }
@keyframes vdialogFade { from { opacity: 0; } }
@keyframes vdialogIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.modal__text { color: var(--muted); font-size: 0.88rem; margin-bottom: 20px; }
#banModal { z-index: 280; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field span { color: var(--white); font-size: 0.85rem; font-weight: 600; }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 11px 14px; color: var(--white); font: inherit; font-size: 0.92rem; resize: vertical; outline: none;
}
.field input:focus, .field textarea:focus { border-color: rgba(var(--fg-rgb), 0.4); }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; }

.ban-screen { z-index: 400; }
.ban-screen .modal__backdrop { background: rgba(var(--black-rgb), 0.96); }
.ban-screen .modal__box { text-align: center; border-color: rgba(240, 86, 90, 0.4); }
.ban-screen svg { width: 48px; height: 48px; margin: 0 auto 14px; display: block; fill: none; stroke: #f0565a; stroke-width: 1.8; stroke-linecap: round; }
.ban-screen .modal__text { margin-bottom: 14px; }
.ban-screen__reason { color: var(--white); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin-bottom: 20px; font-size: 0.9rem; }
.ban-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.member-row--click { cursor: pointer; }
.member-row--click:focus-visible { outline: 2px solid var(--border-strong); outline-offset: -2px; }
.member-row__chev { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.member-row--click:hover .member-row__chev { stroke: var(--white); }
.member-detail__user { color: var(--muted); font-family: var(--font-body); font-size: 0.8rem; font-weight: 400; }
.chip--bad { color: var(--bad-text); border-color: rgba(240, 86, 90, 0.4); background: rgba(240, 86, 90, 0.08); }
.chip--link { cursor: pointer; font: inherit; font-size: 0.76rem; }
.chip--link:hover { color: var(--white); border-color: var(--border-strong); }
.member-char { margin-bottom: 10px; }
.member-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }

@media (max-width: 560px) {
  .member-row { flex-wrap: wrap; }
  .member-row__date { display: none; }
  .profile { padding: 22px; }
}

:root {
  --st-up: #3ecf6e;
  --st-degraded: #e8b423;
  --st-down: #f0565a;
  --st-maintenance: #4f8ff0;
  --st-restarting: #a78bfa;
  --st-none: var(--track);
}
.container--status { max-width: 920px; }
.status-banner {
  width: 100%; height: auto; aspect-ratio: 4 / 1; object-fit: cover;
  border-radius: 18px; border: 1px solid var(--border); margin-bottom: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.status-overall {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 26px; margin-bottom: 48px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  --c: var(--muted);
}
.status-overall strong { display: block; color: var(--white); font-size: 1.1rem; }
.status-overall span:not(.status-overall__dot) { font-size: 0.85rem; color: var(--muted); }
.status-overall__dot {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 18%, transparent);
}
.status-overall--up { --c: var(--st-up); border-color: color-mix(in srgb, var(--st-up) 30%, transparent); }
.status-overall--degraded { --c: var(--st-degraded); border-color: color-mix(in srgb, var(--st-degraded) 30%, transparent); }
.status-overall--down { --c: var(--st-down); border-color: color-mix(in srgb, var(--st-down) 30%, transparent); }
.status-overall--maintenance { --c: var(--st-maintenance); border-color: color-mix(in srgb, var(--st-maintenance) 30%, transparent); }
.status-overall--restarting { --c: var(--st-restarting); border-color: color-mix(in srgb, var(--st-restarting) 30%, transparent); }
.status-overall--restarting .status-overall__dot, .pill.is-restarting i { animation: pulseRestart 1.4s ease-in-out infinite; }
@keyframes pulseRestart { 50% { opacity: 0.35; } }

.svc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.svc-head h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.svc-head h2 svg { width: 20px; height: 20px; fill: none; stroke: var(--st-maintenance); stroke-width: 2.4; stroke-linecap: round; }
.svc-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.82rem; color: var(--text); }
.svc-legend li { display: flex; align-items: center; gap: 6px; }
.svc-legend i { width: 11px; height: 11px; border-radius: 3px; }

.is-up { --c: var(--st-up); }
.is-degraded { --c: var(--st-degraded); }
.is-down { --c: var(--st-down); }
.is-maintenance { --c: var(--st-maintenance); }
.is-restarting { --c: var(--st-restarting); }
.is-none { --c: var(--st-none); }
.svc-legend i { background: var(--c); }

.svc-list { display: flex; flex-direction: column; gap: 16px; }
.svc {
  padding: 22px 22px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
}
.svc__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.svc__icon {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 14%, var(--bg));
}
.svc.is-none .svc__icon { background: var(--bg); }
.svc__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--c); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.svc.is-none .svc__icon svg { stroke: var(--muted); }
.svc__info { flex: 1; min-width: 0; }
.svc__info h3 { font-size: 1.15rem; }
.svc__info p { color: var(--muted); font-size: 0.92rem; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
}
.pill.is-none { color: var(--muted); border-color: var(--border-strong); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; margin: -6px 0 22px; }
.meter__label { display: flex; justify-content: space-between; gap: 12px; font-size: 0.82rem; margin-bottom: 6px; }
.meter__label span { color: var(--muted); }
.meter__label strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.meter__track { height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.meter__track span { display: block; height: 100%; border-radius: inherit; background: var(--st-up); transition: width 0.6s var(--ease); }
.meter.is-mid .meter__track span { background: var(--st-degraded); }
.meter.is-high .meter__track span { background: var(--st-down); }

.bars { display: flex; gap: 3px; height: 34px; }
.bars > span {
  flex: 1; min-width: 0; border-radius: 3px;
  background: var(--c); transition: opacity 0.15s, transform 0.15s;
}
.bars > span.is-none { background: var(--track); }
.bars:hover > span { opacity: 0.55; }
.bars > span:hover { opacity: 1; transform: scaleY(1.08); }

.svc__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 0.8rem; color: var(--dim); }
.svc__foot strong { color: var(--text); font-weight: 600; }
.only-narrow { display: none; }

.bar-tip {
  position: absolute; z-index: 150; pointer-events: none;
  display: flex; flex-direction: column; gap: 3px; min-width: 150px;
  padding: 10px 12px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  font-size: 0.8rem; color: var(--text);
}
.bar-tip strong { color: var(--white); }
.bar-tip span { display: flex; align-items: center; gap: 6px; color: var(--c); font-weight: 600; }
.bar-tip span.is-none { color: var(--muted); }
.bar-tip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bar-tip em { font-style: normal; color: var(--muted); }

@media (max-width: 640px) {
  .bars > span:nth-child(-n+60) { display: none; }
  .only-wide { display: none; }
  .only-narrow { display: inline; }
  .svc__head { flex-wrap: wrap; }
  .svc__info { flex-basis: calc(100% - 64px); }
  .svc .pill { margin-left: 64px; }
}

.nav__dropdown { position: relative; }
.nav__dropdown-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.9rem; color: var(--muted); cursor: pointer; transition: color 0.2s;
}
.nav__dropdown-toggle:hover, .nav__dropdown-toggle.is-current, .nav__dropdown.is-open .nav__dropdown-toggle { color: var(--white); }
.nav__dropdown-toggle svg {
  width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease);
}
.nav__menu {
  position: absolute; top: 100%; left: 50%;
  width: max-content; min-width: 200px; padding: 5px; margin-top: 12px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__dropdown:hover .nav__menu,
.nav__dropdown:focus-within .nav__menu,
.nav__dropdown.is-open .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__dropdown:hover .nav__dropdown-toggle svg,
.nav__dropdown:focus-within .nav__dropdown-toggle svg,
.nav__dropdown.is-open .nav__dropdown-toggle svg { transform: rotate(180deg); }
.nav__dropdown:hover .nav__dropdown-toggle { color: var(--white); }

.nav__links .nav__menu a {
  display: flex; flex-direction: column; gap: 0;
  padding: 7px 11px; border-radius: 8px;
  color: var(--white); transition: background 0.2s;
}
.nav__links .nav__menu a::after { display: none; }
.nav__menu a:hover, .nav__menu a:focus-visible { background: rgba(var(--fg-rgb), 0.06); }
.nav__menu strong { font-size: 0.82rem; font-weight: 600; line-height: 1.4; }
.nav__menu span { font-size: 0.72rem; color: var(--muted); line-height: 1.4; white-space: nowrap; }

.nav__links a.nav__shop { display: inline-flex; align-items: center; gap: 7px; }
.nav__links a.nav__discord { display: grid; place-items: center; color: var(--white); transition: transform 0.2s var(--ease), color 0.2s; }
.nav__links a.nav__discord::after { display: none; }
.nav__links a.nav__discord:hover { color: #5865f2; transform: translateY(-2px); }
.nav__discord svg { width: 26px; height: 26px; fill: currentColor; }
.nav__shop svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.consent { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center; padding: 24px; }
.consent__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.consent__box {
  position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px;
  padding: 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: consent-in 0.4s var(--ease);
}
.consent__box h2 { font-size: 1.2rem; margin-bottom: 12px; }
.consent__main p { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
.consent__main em { color: var(--text); font-style: normal; }
.consent__links a { color: var(--white); font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dim); }
.consent__settings { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 4px; }
.consent__cat { display: block; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); cursor: pointer; }
.consent__cat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--white); font-size: 0.95rem; }
.consent__cat-text { display: block; color: var(--muted); font-size: 0.84rem; margin-top: 6px; line-height: 1.55; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 22px; }

.switch { position: relative; flex-shrink: 0; width: 42px; height: 24px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch__track { position: absolute; inset: 0; border-radius: 999px; background: var(--track); border: 1px solid var(--border-strong); transition: background 0.2s; pointer-events: none; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform 0.25s var(--ease), background 0.2s; }
.switch input:checked + .switch__track { background: var(--white); }
.switch input:checked + .switch__track::after { transform: translateX(18px); background: var(--black); }
.switch input:disabled + .switch__track { opacity: 0.55; }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--white); outline-offset: 2px; }

@keyframes consent-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.member__avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--raised-a), var(--raised-b)); border: 1px solid var(--border-strong);
  font-family: var(--font-display); color: var(--white); font-size: 1.1rem;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--fg-rgb), 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(var(--fg-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--fg-rgb), 0); }
}
@keyframes scroll { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

.error-page__code {
  font-family: var(--font-display); font-size: clamp(6rem, 22vw, 12rem); line-height: 1; letter-spacing: -0.04em;
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 18px; animation: logoIn 1s var(--ease) both, glitch 5s steps(1) 1.5s infinite;
}
.error-page__path { color: var(--white); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; font-size: 0.92em; overflow-wrap: anywhere; }
@keyframes glitch {
  0%, 92%, 100% { transform: none; text-shadow: none; }
  93% { transform: translate(3px, -2px); text-shadow: -3px 0 rgba(240, 86, 90, 0.6), 3px 0 rgba(79, 143, 240, 0.6); }
  95% { transform: translate(-3px, 1px); text-shadow: 3px 0 rgba(240, 86, 90, 0.6), -3px 0 rgba(79, 143, 240, 0.6); }
  97% { transform: none; text-shadow: none; }
}

.verify-card {
  width: 100%; max-width: 480px; padding: 36px 32px; text-align: center;
  background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--border-strong); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: riseIn 0.8s var(--ease) both; --c: #5865f2;
}
.verify-card.is-ok { --c: var(--st-up); border-color: color-mix(in srgb, var(--st-up) 45%, transparent); }
.verify-card.is-warn { --c: var(--st-degraded); }
.verify-card.is-ok { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px color-mix(in srgb, var(--st-up) 18%, transparent); }
.verify-card.is-ok .verify-card__icon { border-radius: 50%; animation: okPop 0.5s var(--ease) both; }
.verify-card.is-ok .verify-card__icon svg { fill: none; stroke: var(--c); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.verify-card.is-ok .verify-card__title { color: var(--ok-text); }
@keyframes okPop { from { transform: scale(0.6); opacity: 0; } 70% { transform: scale(1.08); } }
.verify-card.is-bad { --c: var(--st-down); border-color: color-mix(in srgb, var(--st-down) 45%, transparent); }
.verify-card__icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.verify-card__icon svg { width: 32px; height: 32px; fill: var(--c); }
.verify-card__title { font-size: clamp(1.6rem, 5vw, 2rem); margin: 6px 0 10px; }
.verify-card__text { color: var(--muted); margin-bottom: 26px; }
.verify-card__btn { width: 100%; justify-content: center; }
.verify-card__actions { display: flex; gap: 10px; }
.ts-card { --c: var(--white); }
.ts-card__icon svg { fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ts-address { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin: -6px 0 20px; padding: 12px 16px; border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--bg); color: var(--white); font-family: ui-monospace, Consolas, monospace; font-size: 1rem; cursor: pointer; transition: border-color 0.15s; }
.ts-address:hover { border-color: var(--white); }
.ts-address svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ts-guide { width: 100%; max-width: 640px; margin-top: 56px; text-align: left; }
.ts-guide > .eyebrow, .ts-guide__title, .ts-guide__lead { text-align: center; }
.ts-guide__title { font-size: clamp(1.4rem, 4vw, 1.8rem); margin: 6px 0 10px; }
.ts-guide__lead { color: var(--muted); margin: 0 auto 28px; max-width: 520px; }
.ts-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ts-step, .ts-card.verify-card {
  --glass: rgba(255, 255, 255, 0.02); --glass-edge: rgba(255, 255, 255, 0.12); --glass-shine: rgba(255, 255, 255, 0.2);
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(145deg, color-mix(in srgb, var(--glass) 200%, transparent), var(--glass) 45%, rgba(255, 255, 255, 0.015));
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(8px) saturate(160%); -webkit-backdrop-filter: blur(8px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--glass-shine), inset 0 -1px 0 rgba(255, 255, 255, 0.03), 0 18px 40px rgba(0, 0, 0, 0.35);
}
.ts-step::before, .ts-card.verify-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.10), transparent 55%), radial-gradient(80% 60% at 100% 100%, rgba(255, 255, 255, 0.04), transparent 60%);
}
.ts-step { display: flex; gap: 16px; padding: 20px 22px; border-radius: 18px; }
.ts-step__num { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; color: var(--white); background: linear-gradient(160deg, rgba(var(--fg-rgb), 0.18), rgba(var(--fg-rgb), 0.05)); border: 1px solid rgba(var(--fg-rgb), 0.28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 14px rgba(0, 0, 0, 0.2); }
:root[data-theme="light"] :is(.ts-step, .ts-card.verify-card) { --glass: rgba(255, 255, 255, 0.35); --glass-edge: rgba(255, 255, 255, 0.85); --glass-shine: rgba(255, 255, 255, 1); box-shadow: inset 0 1px 0 #fff, 0 14px 34px rgba(0, 0, 0, 0.08); }

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) :is(.ts-step, .ts-card.verify-card) { --glass: rgba(255, 255, 255, 0.35); --glass-edge: rgba(255, 255, 255, 0.85); --glass-shine: rgba(255, 255, 255, 1); box-shadow: inset 0 1px 0 #fff, 0 14px 34px rgba(0, 0, 0, 0.08); }

}
.ts-step__body { min-width: 0; }
.ts-step__body h3 { font-size: 1.05rem; margin: 5px 0 6px; }
.ts-step__body p { color: var(--muted); margin: 0 0 10px; }
.ts-step__body p:last-child { margin-bottom: 0; }
.ts-step__body p strong { color: var(--white); }
.ts-step__hint { font-size: 0.9rem; }
.ts-checks { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.ts-checks li { color: var(--muted); }
.ts-checks li strong { color: var(--white); }
.ts-checks li::before { content: ""; display: inline-block; vertical-align: middle; margin: -2px 10px 0 2px; width: 10px; height: 10px; border-radius: 50%; }
.ts-checks .is-on::before { background: var(--st-up); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-up) 25%, transparent); }
.ts-checks .is-off::before { background: var(--st-down); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-down) 25%, transparent); }
.ts-mono { font-family: ui-monospace, Consolas, monospace; }
@media (max-width: 480px) { .ts-step { padding: 16px; gap: 12px; } }
.verify-card__actions .verify-card__btn { flex: 1 1 0; }
@media (max-width: 480px) { .verify-card__actions { flex-direction: column; } .verify-card__actions .verify-card__btn { flex: none; } }

/* Kopierschutz auf der öffentlichen Webseite (nicht im UCP) – Eingabefelder bleiben bedienbar */
body.no-copy { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.no-copy :is(input, textarea, select, [contenteditable="true"]) { -webkit-user-select: text; user-select: text; }
body.no-copy img { -webkit-user-drag: none; pointer-events: auto; }
@media print {
  body.no-copy > * { display: none !important; }
  body.no-copy::after { content: "Die Inhalte von Vexora City dürfen nicht gedruckt oder kopiert werden."; display: block; padding: 40px; font: 16px/1.5 sans-serif; color: #000; }
}

.discord-gate { z-index: 260; }
.discord-gate .modal__backdrop { background: rgba(var(--black-rgb), 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal .discord-gate__box { max-width: 460px; text-align: center; padding: 36px 30px; border-radius: 22px; transition: transform 0.5s var(--ease), opacity 0.5s; }
.discord-gate__box h2 { font-size: 1.4rem; margin-bottom: 10px; }
.discord-gate__icon { --c: #5865f2; color: #5865f2; }
.discord-gate__icon svg { width: 32px; height: 32px; fill: var(--c); stroke: none; }
.discord-gate__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.discord-gate__actions .btn { width: 100%; justify-content: center; }
.discord-gate__wait { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 0.84rem; }
.discord-gate__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st-degraded); animation: pulseRestart 1.4s ease-in-out infinite; }
.discord-gate__dot.is-ok { background: var(--st-up); animation: none; }
.discord-gate.is-done .discord-gate__box { transform: scale(0.96); opacity: 0; transition-delay: 0.5s; }
@media (max-width: 700px) {
  .modal.discord-gate { place-items: center; padding: 16px; }
  .modal.discord-gate .discord-gate__box { border-radius: 22px; padding: 30px 22px; }
}
.verify-card__btn[hidden] { display: none; }
.verify-card__facts { list-style: none; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); text-align: left; display: flex; flex-direction: column; gap: 8px; }
.verify-card__facts li { position: relative; padding-left: 22px; color: var(--muted); font-size: 0.84rem; }
.verify-card__facts li::before {
  content: ""; position: absolute; left: 0; top: 0.25em; width: 14px; height: 14px; background: var(--st-up);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

@keyframes pageIn { from { opacity: 0; } }
body { animation: pageIn 0.5s var(--ease) both; }

@keyframes riseIn { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }
@keyframes logoIn { from { opacity: 0; transform: scale(0.9); filter: blur(10px) drop-shadow(0 0 0 rgba(var(--fg-rgb), 0)); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes breathe { 0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
@keyframes gridDrift { to { background-position: 64px 64px, 64px 64px; } }
.hero__logo { animation: pageIn 0.8s var(--ease) both; }
.hero__title { animation: riseIn 0.9s var(--ease) 0.25s both; }
.hero__text { animation: riseIn 0.9s var(--ease) 0.4s both; }
.hero .hero__actions { animation: riseIn 0.9s var(--ease) 0.55s both; }
.hero__glow { animation: breathe 8s ease-in-out infinite; will-change: transform, opacity; }

.hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero::before, .hero::after {
  content: ""; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; pointer-events: none; z-index: 0;
  opacity: 0.55; will-change: transform;
}
.hero::before { top: -25vmax; left: -15vmax; background: radial-gradient(circle, rgba(var(--fg-rgb), 0.09), transparent 65%); animation: driftA 26s ease-in-out infinite alternate; }
.hero::after { bottom: -30vmax; right: -20vmax; background: radial-gradient(circle, rgba(120, 140, 255, 0.10), transparent 65%); animation: driftB 32s ease-in-out infinite alternate; }
@keyframes driftA { to { transform: translate(18vmax, 12vmax) scale(1.15); } }
@keyframes driftB { to { transform: translate(-16vmax, -10vmax) scale(1.1); } }
.hero__grid { display: none; }

.card { position: relative; overflow: hidden; }
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--fg-rgb), 0.07), transparent 60%);
}
.card:hover::before { opacity: 1; }
.card__icon { transition: transform 0.4s var(--ease), border-color 0.3s; }
.card:hover .card__icon { transform: translateY(-3px) rotate(-6deg) scale(1.06); border-color: var(--border-strong); }

.btn--light { position: relative; overflow: hidden; }
.btn--light::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(var(--fg-rgb), 0.85), transparent);
  transform: skewX(-20deg); opacity: 0;
}
.btn--light:hover::after { animation: shine 0.8s var(--ease); }
@keyframes shine { 0% { left: -60%; opacity: 1; } 100% { left: 130%; opacity: 0; } }
.btn:active { transform: scale(0.97); }

.socials a:hover svg { animation: pop 0.4s var(--ease); }
@keyframes pop { 50% { transform: scale(1.2); } }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.app-head, .panel, .dash-card { animation: fadeUp 0.45s var(--ease) both; }
.widgets .dash-card:nth-child(2) { animation-delay: 0.06s; }
.widgets .dash-card:nth-child(3) { animation-delay: 0.12s; }
.widgets .dash-card:nth-child(4) { animation-delay: 0.18s; }
.member-row, .log { animation: fadeUp 0.35s var(--ease) both; }
.member-row:nth-child(2), .log:nth-child(2) { animation-delay: 0.03s; }
.member-row:nth-child(3), .log:nth-child(3) { animation-delay: 0.06s; }
.member-row:nth-child(4), .log:nth-child(4) { animation-delay: 0.09s; }
.member-row:nth-child(5), .log:nth-child(5) { animation-delay: 0.12s; }
.member-row:nth-child(n+6), .log:nth-child(n+6) { animation-delay: 0.15s; }
.member-row--click { transition: background 0.2s, padding-left 0.25s var(--ease); }
.member-row--click:hover { padding-left: 22px; }
.modal:not(.vdialog) .modal__backdrop { animation: vdialogFade 0.2s ease; }
.modal:not(.vdialog) .modal__box { animation: vdialogIn 0.25s var(--ease); }
.wstat strong, .wbig { animation: fadeUp 0.5s var(--ease) both; }
.meter__track span { transition: width 1s var(--ease); }

@media (max-width: 960px) {
  .grid--3, .jobs { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step::after { display: none; }
  .rules-nav { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 28px;
    background: rgba(var(--black-rgb), 0.97);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav:has(.nav__links.is-open) { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__links a:not(.btn) { font-size: 1.2rem; color: var(--white); }
  .nav__links { overflow-y: auto; padding: 90px 0 40px; justify-content: safe center; }

  .nav__dropdown { display: flex; flex-direction: column; align-items: center; }
  .nav__dropdown-toggle svg { display: none; }
  .nav__dropdown-toggle { font-size: 1.2rem; color: var(--white); cursor: default; }
  .nav__menu,
  .nav__dropdown:hover .nav__menu,
  .nav__dropdown:focus-within .nav__menu,
  .nav__dropdown.is-open .nav__menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; margin-top: 8px; padding: 0; gap: 0;
    background: none; border: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nav__menu::before { display: none; }
  .nav__links .nav__menu a { align-items: center; padding: 6px 12px; }
  .nav__links .nav__menu strong { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
  .nav__menu span { display: none; }
}

@media (max-width: 760px) {
  .section, .cta { padding: 88px 0; }
  .footer__top { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; padding: 56px 0 44px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .grid--3, .jobs { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .hero__actions { width: 100%; }
  .status { flex-direction: column; gap: 6px; border-radius: var(--radius); }
  .status__sep { display: none; }
  .card, .job { padding: 28px 22px; }
  .legal { padding: 120px 0 72px; }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
  .legal__info { grid-template-columns: 1fr; gap: 2px; }
  .legal__info dd { margin-bottom: 12px; }
  .rule-list li { padding: 14px 18px; gap: 12px; flex-direction: column; }
  .rule-group summary { padding: 18px; }
  .consent { padding: 12px; }
  .consent__box { padding: 22px; }
  .consent__actions .btn { flex: 1 1 100%; }
  .consent__actions [data-action="all"] { order: -1; }
}

.container--changelog { max-width: 1040px; }
.changelog__head { text-align: center; }
.changelog__head .legal__lead { margin-left: auto; margin-right: auto; }
.changelog { position: relative; display: flex; flex-direction: column; gap: 28px; }
.changelog::before { content: ""; position: absolute; top: 8px; bottom: 0; left: 190px; width: 1px; background: linear-gradient(var(--border-strong), transparent); }
.cl-entry { display: grid; grid-template-columns: 170px 40px minmax(0, 1fr); align-items: start; }
.cl-entry__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-top: 2px; text-align: right; }
.cl-entry__meta time { color: var(--muted); font-size: 0.84rem; font-weight: 500; }
.cl-entry__badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cl-badge { padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; color: var(--white); background: var(--bg); border: 1px solid var(--border-strong); }
.cl-badge--new { color: var(--black); background: var(--white); border-color: var(--white); }
.cl-entry__dot { justify-self: center; width: 13px; height: 13px; margin-top: 5px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); position: relative; z-index: 1; }
.cl-entry__dot.is-latest { background: var(--white); border-color: var(--white); box-shadow: 0 0 0 5px rgba(var(--fg-rgb), 0.12), 0 0 22px rgba(var(--fg-rgb), 0.35); }
.cl-card { padding: 26px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; transition: border-color 0.2s; }
.cl-card:hover { border-color: var(--border-strong); }
.cl-card h2 { font-size: 1.2rem; margin-bottom: 6px; }
.cl-card__summary { color: var(--muted); font-size: 0.92rem; margin-bottom: 4px; }
.cl-tag { display: inline-block; margin: 18px 0 10px; padding: 2px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.cl-tag.is-added { --c: var(--st-up); }
.cl-tag.is-changed { --c: var(--st-degraded); }
.cl-tag.is-removed { --c: var(--st-down); }
.cl-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.cl-list li { position: relative; padding-left: 18px; color: var(--text); font-size: 0.93rem; line-height: 1.5; overflow-wrap: anywhere; }
.cl-list li::before { content: ""; position: absolute; left: 3px; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--dim); }
.cl-card__author { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--dim); font-size: 0.8rem; }
.changelog__more { display: flex; justify-content: center; margin-top: 28px; }
.changelog__more:empty { display: none; }
@media (max-width: 760px) {
  .changelog::before { left: 6px; }
  .cl-entry { grid-template-columns: 14px minmax(0, 1fr); column-gap: 14px; }
  .cl-entry__meta { grid-column: 2; grid-row: 1; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; margin-bottom: 10px; text-align: left; }
  .cl-entry__dot { grid-column: 1; grid-row: 1; margin-top: 4px; }
  .cl-card { grid-column: 2; padding: 20px 18px; }
}

.clip-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.clip-stat {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; text-align: left;
  border: 1px solid var(--border); border-radius: 14px; background: var(--bg); color: var(--muted); font-size: 0.82rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.clip-stat strong { color: var(--white); font-size: 1.6rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.clip-stat:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.clip-stat.is-active { border-color: var(--white); background: var(--surface); box-shadow: inset 0 0 0 1px var(--white); }
.clip-stat__icon { position: absolute; top: 14px; right: 14px; color: var(--dim); }
.clip-stat__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.clip-stat.is-active .clip-stat__icon { color: var(--white); }
.clip-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.clip-bar .rules-search { flex: 1 1 260px; max-width: none; }
.clip-bar__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.clip-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); font-size: 0.84rem; font-weight: 600; --c: var(--white); transition: border-color 0.15s, background 0.15s, color 0.15s; }
.clip-chip b { font-size: 0.72rem; padding: 1px 7px; border-radius: 999px; background: rgba(var(--fg-rgb), 0.08); }
.clip-chip--clean { --c: var(--st-up); color: var(--ok-text); }
.clip-chip--suspicious { --c: var(--st-degraded); color: var(--warn-text); }
.clip-chip--cheat { --c: var(--st-down); color: var(--bad-text); }
.clip-chip:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.clip-chip.is-active { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.clip-cards { display: flex; flex-direction: column; gap: 8px; }
.clip-card {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; text-align: left;
  border: 1px solid var(--border); border-radius: 14px; background: var(--bg); transition: border-color 0.15s, background 0.15s, transform 0.2s var(--ease);
  animation: fadeUp 0.3s var(--ease) both;
}
.clip-card:hover { border-color: var(--border-strong); background: var(--surface-hover); transform: translateX(3px); }
.clip-card__thumb { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; color: var(--dim); background: var(--surface); border: 1px solid var(--border); }
.clip-card__thumb.has-clip { color: var(--white); background: linear-gradient(145deg, var(--raised-a), var(--raised-b)); border-color: var(--border-strong); }
.clip-card__thumb .ico { width: 18px; height: 18px; }
.clip-card__thumb.has-clip .ico { fill: currentColor; stroke: none; }
.clip-card__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.clip-card__main strong { color: var(--white); font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-card__arrow { color: var(--dim); font-weight: 400; margin: 0 2px; }
.clip-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: 0.8rem; }
.clip-card__vs { color: var(--dim); }
.clip-card__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.clip-card__side small { color: var(--dim); font-size: 0.75rem; white-space: nowrap; }
.clip-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 16px; text-align: center; border: 1px dashed var(--border-strong); border-radius: 16px; color: var(--muted); font-size: 0.88rem; }
.clip-empty svg { width: 30px; height: 30px; margin-bottom: 6px; fill: none; stroke: var(--dim); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.clip-empty strong { color: var(--white); font-size: 1rem; }
@media (max-width: 760px) {
  .clip-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clip-card { flex-wrap: wrap; }
  .clip-card__side { flex-direction: row; flex-wrap: wrap; align-items: center; width: 100%; min-width: 0; justify-content: space-between; gap: 6px 10px; padding-left: 58px; }
}

.ico { width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.14em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.clip-row__thumb .ico { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.chip .ico, .perm-count .ico { margin-right: 2px; }

.sc-stats { margin-bottom: 4px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 700px) { .sc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sc-head .clip-sub { margin-bottom: 10px; }
.guild-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.guild-list--scroll { max-height: 340px; overflow-y: auto; }
.guild-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg); }
.guild-row:last-child { border-bottom: none; }
.guild-row.is-bad { background: color-mix(in srgb, var(--st-down) 9%, var(--bg)); box-shadow: inset 3px 0 0 var(--st-down); }
.guild-row.is-warn { background: color-mix(in srgb, var(--st-degraded) 7%, var(--bg)); box-shadow: inset 3px 0 0 var(--st-degraded); }
.guild-row__icon { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.guild-row__icon--initials { font-size: 0.66rem; border-radius: 10px; }
.guild-row__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.guild-row__info strong { color: var(--white); font-size: 0.88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guild-row__info span { color: var(--muted); font-size: 0.78rem; }
.guild-row.is-bad .guild-row__info span { color: var(--bad-text); }
.guild-row.is-warn .guild-row__info span { color: var(--warn-text); }
.guild-row .btn { flex-shrink: 0; }
.guild-row__btns { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.guild-row.is-ok { box-shadow: inset 3px 0 0 var(--st-up); }
.guild-row.is-ok .guild-row__info span { color: var(--ok-text); }
.md-sub-hint { font-weight: 400; color: var(--dim); font-size: 0.78rem; margin-left: 6px; }
@media (max-width: 560px) {
  .guild-row { flex-wrap: wrap; }
  .guild-row__btns { flex: 1 1 100%; }
  .guild-row__btns .btn { flex: 1 1 0; }
}

.member-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; }
.member-filters .select, .member-filters .vselect { flex: 1 1 170px; min-width: 0; }
.member-filters #filterReset { flex: none; }
@media (max-width: 700px) {
  .member-filters .select, .member-filters .vselect { flex: 1 1 calc(50% - 4px); }
  .member-filters #filterReset { flex: 1 1 100%; }
}

.modal .modal__box.modal__box--member { max-width: 860px; padding: 0; display: flex; flex-direction: column; height: min(860px, calc(100vh - 32px)); max-height: calc(100vh - 32px); overflow: hidden; }
.md-head { display: flex; align-items: center; gap: 14px; padding: 22px 24px 0; }
.md-head__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border-strong); }
.md-head__avatar--initials { font-size: 0.95rem; }
.md-head__who { flex: 1; min-width: 0; }
.md-head__who h2 { font-size: 1.25rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-head__who p { color: var(--muted); font-size: 0.84rem; margin-top: 2px; }
.md-copy { color: var(--muted); font: inherit; font-family: ui-monospace, Consolas, monospace; font-size: 0.8rem; padding: 1px 6px; border-radius: 6px; }
.md-copy:hover { color: var(--white); background: rgba(var(--fg-rgb), 0.06); }
.md-badges { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 24px 0; }
.md-badges .chip { font-size: 0.74rem; }
.chip--ok { color: var(--ok-text); border-color: color-mix(in srgb, var(--st-up) 40%, transparent); background: color-mix(in srgb, var(--st-up) 10%, transparent); }
.chip--boost { color: var(--boost-text); border-color: rgba(244, 127, 255, 0.4); background: rgba(244, 127, 255, 0.08); }
.md-alert { margin: 14px 24px 0; padding: 12px 14px; border-radius: 12px; font-size: 0.88rem; color: var(--white); display: flex; flex-direction: column; gap: 2px; }
.md-alert small { color: var(--muted); font-size: 0.78rem; }
.md-alert.is-bad { background: color-mix(in srgb, var(--st-down) 12%, var(--bg)); border: 1px solid color-mix(in srgb, var(--st-down) 40%, transparent); }
.md-tabs { display: flex; gap: 4px; padding: 16px 24px 0; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.md-tabs::-webkit-scrollbar { display: none; }
.md-tabs button { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; color: var(--muted); font-size: 0.86rem; font-weight: 600; white-space: nowrap; border-radius: 8px 8px 0 0; transition: color 0.15s; }
.md-tabs button:hover { color: var(--white); }
.md-tabs button.is-active { color: var(--white); }
.md-tabs button.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--white); }
.md-tabs__n { font-size: 0.7rem; padding: 0 7px; border-radius: 999px; background: var(--surface-hover); color: var(--text); }
.md-tabs__n.is-bad { background: var(--st-down); color: #fff; }
.md-head, .md-badges, .md-alert, .md-tabs, .md-foot { flex-shrink: 0; }
.md-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 24px 24px; -webkit-overflow-scrolling: touch; }
.md-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.md-fact { padding: 12px 14px; min-width: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 0 -1px -1px 0; }
.md-fact dt { color: var(--dim); font-size: 0.72rem; margin-bottom: 3px; }
.md-fact dd { color: var(--white); font-size: 0.9rem; font-weight: 600; overflow-wrap: anywhere; }
.md-fact.is-bad dd { color: var(--st-down); }
.md-facts--small .md-fact { padding: 10px 12px; }
.md-facts--small .md-fact dd { font-size: 0.84rem; }
.md-sub { font-size: 0.82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin: 22px 0 10px; }
.md-sub small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--dim); margin-left: 6px; }
.md-list { list-style: none; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.md-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--border); font-size: 0.88rem; color: var(--white); }
.md-list li:last-child { border-bottom: none; }
.md-list em { font-style: normal; color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.md-sec { border: 1px solid var(--border); border-radius: 10px; margin-top: 8px; background: var(--bg); }
.md-sec summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; list-style: none; color: var(--white); font-size: 0.86rem; font-weight: 600; }
.md-sec summary::-webkit-details-marker { display: none; }
.md-sec summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg); transition: transform 0.2s; }
.md-sec[open] summary::after { transform: rotate(-135deg); }
.md-sec__body { padding: 0 12px 12px; }
.md-sec .md-list li { font-size: 0.84rem; }
.id-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.id-group { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--border); }
.id-group:last-child { border-bottom: none; }
.id-group__label { font-size: 0.78rem; color: var(--dim); padding-top: 4px; }
.id-group__label em { font-style: normal; font-size: 0.7rem; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--surface-hover); color: var(--text); }
.id-group__values { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.id-chip { max-width: 100%; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--white); font: 0.74rem/1.5 ui-monospace, Consolas, monospace; text-align: left; overflow-wrap: anywhere; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.id-chip:hover { border-color: var(--border-strong); background: var(--surface-hover); }
@media (max-width: 560px) { .id-group { grid-template-columns: 1fr; gap: 6px; } }
.md-plate { font-family: ui-monospace, Consolas, monospace; font-size: 0.78rem; padding: 1px 6px; margin-right: 6px; border-radius: 5px; background: var(--white); color: var(--black); white-space: nowrap; }
@media (max-width: 560px) {
  .md-list li { flex-wrap: wrap; row-gap: 4px; }
  .md-list em { white-space: normal; }
  .char-card { padding: 14px; }
  .char-card__head { gap: 12px; }
  .char-card__avatar { width: 44px; height: 44px; border-radius: 12px; }
}
.md-guilds { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.md-guild + .md-guild { border-top: 1px solid var(--border); }
.md-guild__head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; background: var(--bg); color: var(--white); font-size: 0.88rem; text-align: left; transition: background 0.15s; }
.md-guild__head:hover { background: var(--surface-hover); }
.md-guild__head span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-guild__head em { font-style: normal; color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.md-guild__chev { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.md-guild.is-open .md-guild__chev { transform: rotate(180deg); }
.md-guild__body { padding: 14px; background: color-mix(in srgb, var(--surface) 50%, var(--bg)); border-top: 1px solid var(--border); animation: fadeUp 0.25s var(--ease) both; }
.md-guild__roles { margin-top: 12px; }
.md-guild__actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin-top: 14px; }
.md-guild__actions .btn:disabled { opacity: 0.4; cursor: not-allowed; }
.md-act { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); min-width: 0; }
.md-act__title { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.md-act__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.dur-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dur-chip { position: relative; }
.dur-chip input { position: absolute; opacity: 0; pointer-events: none; }
.dur-chip span { display: inline-block; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 0.8rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: color 0.15s, background 0.15s, border-color 0.15s; }
.dur-chip span:hover { color: var(--white); border-color: var(--white); }
.dur-chip input:checked + span { color: var(--black); background: var(--white); border-color: var(--white); }
.dur-chip input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }
.dur-chip input:disabled + span { opacity: 0.4; cursor: not-allowed; }
.md-guild__note { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: 12px; color: var(--muted); font-size: 0.86rem; }
.md-guild__note .ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.md-state { font-weight: 600; }
.md-state.is-ok { color: var(--ok-text); }
.md-state.is-warn { color: var(--warn-text); }
.md-state.is-bad { color: var(--bad-text); }
@media (max-width: 560px) {
  .md-guild__actions { grid-template-columns: 1fr; }
  .md-act__row .btn { flex: 1 1 calc(50% - 4px); white-space: nowrap; }
}
.md-char { border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: color-mix(in srgb, var(--surface) 60%, var(--bg)); }
.md-char + .md-char { margin-top: 12px; }
.vdialog__box { position: relative; }
.vdialog__box .modal__actions .btn { white-space: nowrap; }
.vdialog__back { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 8px; font-size: 0.75rem; font-weight: 600; color: var(--dim); transition: color 0.15s, background 0.15s; }
.vdialog__back:hover { color: var(--white); background: rgba(var(--fg-rgb), 0.06); }
.vdialog__back svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vdialog__back + h2 { padding-right: 70px; }
.tlinks { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.tlinks a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); transition: border-color 0.15s, background 0.15s; }
.tlinks a:hover { border-color: var(--border-strong); background: rgba(var(--fg-rgb), 0.03); }
.tlinks__icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--white); color: var(--black); font-weight: 800; }
.tlinks__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tlinks__text strong { color: var(--white); font-size: 0.9rem; }
.tlinks__text small { color: var(--muted); font-size: 0.76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlinks a > svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.link-roles__search { margin-bottom: 8px; }
.link-roles { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow-y: auto; padding: 2px; }
.link-role { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s; }
.link-role[hidden] { display: none; }
.link-role { position: relative; }
.link-role input, .field .link-role input { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; border: 0; opacity: 0; pointer-events: none; }
.link-role i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.link-role:hover { color: var(--white); border-color: var(--border-strong); }
.link-role.is-on { color: var(--black); background: var(--white); border-color: var(--white); }
.link-role:focus-within { outline: 2px solid var(--white); outline-offset: 2px; }
.team-teaser { display: flex; align-items: center; gap: 14px; color: var(--white); transition: border-color 0.15s; }
.team-teaser:hover { border-color: var(--border-strong); }
.team-teaser > svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.team-teaser > svg:last-child { width: 16px; height: 16px; margin-left: auto; color: var(--muted); }
.team-teaser span { display: flex; flex-direction: column; }
.team-teaser small { color: var(--muted); font-size: 0.82rem; }
.chan-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; }
.chan-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 16px; align-items: center; padding: 12px 14px; background: var(--bg); border-bottom: 1px solid var(--border); }
.chan-row:first-child { border-radius: 12px 12px 0 0; }
.chan-row:last-child { border-bottom: none; border-radius: 0 0 12px 12px; }
.chan-row__info strong { display: block; color: var(--white); font-size: 0.92rem; }
.chan-row__info span { color: var(--muted); font-size: 0.8rem; }
.chan-row__pick { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.chan-row__pick .vselect, .chan-row__pick .select { width: 100%; }
.chan-row__state { font-style: normal; font-size: 0.74rem; color: var(--warn-text); min-height: 1em; }
.chan-row__state:empty { display: none; }
@media (max-width: 700px) { .chan-row { grid-template-columns: 1fr; gap: 8px; } }
.save-bar { position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding: 12px 14px 12px 18px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--st-degraded) 50%, transparent); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); animation: riseIn 0.25s var(--ease) both; }
.site-tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.site-tabs a { position: relative; padding: 10px 14px 12px; color: var(--muted); font-size: 0.9rem; font-weight: 600; white-space: nowrap; transition: color 0.15s; }
.site-tabs a:hover { color: var(--white); }
.site-tabs a.is-active { color: var(--white); }
.site-tabs a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--white); }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 0.86rem; cursor: pointer; }
.check input, .field .check input { flex: none; width: 16px; height: 16px; padding: 0; margin: 0; accent-color: var(--white); }
.shop-stock .check { white-space: nowrap; font-weight: 400; }
.rules-updated { margin-top: 18px; color: var(--dim); font-size: 0.82rem; }

.rules-admin__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rules-admin__view { color: var(--muted); font-size: 0.86rem; }
.rules-admin__view:hover { color: var(--white); }
.rules-admin { display: flex; flex-direction: column; gap: 12px; }
.rules-sec { border: 1px solid var(--border); border-radius: 14px; background: var(--bg); padding: 12px; }
.rules-sec__head { display: flex; align-items: center; gap: 10px; }
.rules-sec__num { flex: none; min-width: 38px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--white); color: var(--black); font-weight: 800; font-size: 0.84rem; }
.rules-sec__title { flex: 1; min-width: 0; padding: 8px 12px; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--white); font: inherit; font-weight: 700; font-size: 1rem; }
.rules-sec__title:hover { border-color: var(--border); }
.rules-sec__title:focus { outline: none; border-color: var(--border-strong); background: var(--surface); }
.rules-sec__list { list-style: none; margin: 10px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rules-rule { display: flex; align-items: flex-start; gap: 10px; padding: 4px 4px 4px 6px; border-radius: 10px; }
.rules-rule:hover, .rules-rule:focus-within { background: var(--surface); }
.rules-rule__num { flex: none; width: 46px; padding-top: 9px; color: var(--muted); font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.rules-rule textarea { flex: 1; min-width: 0; resize: none; overflow: hidden; padding: 8px 10px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--text); font: inherit; font-size: 0.9rem; line-height: 1.45; }
.rules-rule textarea:focus { outline: none; border-color: var(--border-strong); background: var(--bg); }
.rules-rule__tools { flex: none; display: flex; gap: 4px; padding-top: 2px; opacity: 0.35; transition: opacity 0.15s; }
.rules-rule:hover .rules-rule__tools, .rules-rule:focus-within .rules-rule__tools { opacity: 1; }
.rules-rule__tools .faq-edit__move { width: 28px; height: 28px; font-size: 1.05rem; }
.rules-sec__add { margin-left: 62px; padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: 0.84rem; font-weight: 600; }
.rules-sec__add:hover { color: var(--white); background: var(--surface); }
.rules-admin__add { margin-top: 12px; }
.rules-announce { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; flex-wrap: wrap; }
.rules-announce input[type="text"] { flex: 1 1 220px; min-width: 0; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--white); font: inherit; font-size: 0.86rem; }
@media (max-width: 700px) {
  .rules-sec__head { flex-wrap: wrap; }
  .rules-sec__head .faq-edit__tools { width: 100%; justify-content: flex-end; }
  .rules-rule { flex-wrap: wrap; }
  .rules-rule__num { width: auto; padding-top: 0; }
  .rules-rule textarea { flex-basis: 100%; }
  .rules-rule__tools { opacity: 1; width: 100%; justify-content: flex-end; }
  .rules-sec__add { margin-left: 0; }
}

.shop-status { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 0.86rem; color: var(--muted); }
.shop-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--st-up, #57d13a); flex: none; }
.shop-status.is-off i { background: #e8b423; }
.shop-off { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 16px; text-align: center; color: var(--muted); }
.shop-off .ico { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shop-off h3 { color: var(--white); }
.shop-off p { max-width: 460px; font-size: 0.9rem; }
.shop-admin { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px; align-items: start; }
.shop-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 70px; }
.shop-nav__btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-size: 0.88rem; font-weight: 600; text-align: left; transition: color 0.15s, background 0.15s; }
.shop-nav__btn b { font-size: 0.74rem; font-weight: 600; color: var(--dim); }
.shop-nav__btn:hover { color: var(--white); background: var(--bg); }
.shop-nav__btn.is-active { color: var(--black); background: var(--white); }
.shop-nav__btn.is-active b { color: rgba(0, 0, 0, 0.55); }
.shop-nav__add { padding: 8px 12px; border-radius: 10px; border: 1px dashed var(--border-strong); color: var(--muted); font-size: 0.84rem; font-weight: 600; }
.shop-nav__add:hover { color: var(--white); border-color: var(--white); }
.shop-nav__sep { height: 1px; margin: 6px 0; background: var(--border); }
.shop-main__head { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.shop-main__head .field { flex: 1 1 220px; }
.shop-main__head h3 { flex: 1; font-size: 1.05rem; }
.shop-item__img { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; }
.shop-item__badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.shop-item__badges i { font-style: normal; padding: 1px 8px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 0.72rem; font-weight: 600; }
.shop-item__badges i:first-child { color: #e8b423; }
.shop-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 6px 14px 14px; }
.shop-form__wide { grid-column: 1 / -1; }
.shop-stock { display: flex; align-items: center; gap: 12px; }
.shop-stock input[type="number"] { flex: 1; min-width: 0; }
.shop-stock input:disabled { opacity: 0.4; }
.shop-ticker__on { margin: 0 0 12px; }
@media (max-width: 800px) {
  .shop-admin { grid-template-columns: 1fr; }
  .shop-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .shop-nav__sep { display: none; }
  .shop-form { grid-template-columns: 1fr; padding-left: 14px; }
}
.faq-admin__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.faq-admin__head .kills-intro { flex: 1 1 380px; }
.faq-admin__head .kills-intro a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.faq-admin { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.faq-edit { border: 1px solid var(--border); border-radius: 12px; background: var(--bg); transition: border-color 0.15s; }
.faq-edit.is-open { border-color: var(--border-strong); }
.faq-edit.is-hidden .faq-edit__title { opacity: 0.5; }
.faq-edit__row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.faq-edit__num { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 0.76rem; font-weight: 700; }
.faq-edit__title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.faq-edit__title small { color: var(--dim); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.faq-edit__title strong { color: var(--white); font-size: 0.94rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.faq-edit__title strong em { color: var(--muted); font-weight: 400; }
.faq-edit__title:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.faq-edit__tools { flex: none; display: flex; align-items: center; gap: 6px; }
.faq-edit__move { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--border); color: var(--text); transition: border-color 0.15s, color 0.15s; }
.faq-edit__move:hover:not(:disabled) { border-color: var(--white); color: var(--white); }
.faq-edit__move:disabled { opacity: 0.3; cursor: default; }
.faq-edit__move .ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.faq-edit__form { display: grid; gap: 12px; padding: 4px 14px 14px 50px; }
.faq-edit__form textarea { resize: vertical; }
@media (max-width: 700px) {
  .faq-edit__row { flex-wrap: wrap; }
  .faq-edit__title { flex-basis: calc(100% - 40px); }
  .faq-edit__tools { width: 100%; justify-content: flex-end; }
  .faq-edit__form { padding-left: 14px; }
}
.save-bar span { font-size: 0.9rem; color: var(--text); }
.save-bar strong { color: var(--warn-text); }
.save-bar > div { display: flex; gap: 8px; }
.embed-list { display: grid; gap: 14px; }
.embed-card { padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
.embed-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.embed-card__head h3 { font-size: 1.05rem; margin-bottom: 4px; }
.embed-card__head p { color: var(--muted); font-size: 0.86rem; }
.embed-card__channels { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 6px; }
.embed-card__channels li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 9px; font-size: 0.85rem; color: var(--white); }
.embed-card__where { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.embed-card__where b { font-weight: 600; font-size: 0.74rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--muted); background: var(--surface); }
.embed-card__channels em { font-style: normal; color: var(--muted); font-size: 0.8rem; }
.embed-card__channels em.is-ok { color: var(--ok-text); }
.embed-card__channels em.is-bad { color: var(--bad-text); }
.embed-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.seg__btn { padding: 6px 12px; border-radius: 7px; font-size: 0.8rem; font-weight: 600; color: var(--muted); transition: color 0.15s, background 0.15s; }
.seg__btn:hover { color: var(--white); }
.seg__btn.is-active { color: var(--black); background: var(--white); }
@media (max-width: 560px) { .embed-card__actions .btn { flex: 1 1 0; } }
.perm-guilds { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); width: fit-content; max-width: 100%; }
.perm-guilds__tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px; font-size: 0.85rem; font-weight: 600; color: var(--muted); transition: color 0.15s, background 0.15s; }
.perm-guilds__tab:hover { color: var(--white); }
.perm-guilds__tab.is-active { color: var(--white); background: var(--surface-hover); }
.perm-guilds__tab .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.perm-guilds__hint { margin: -4px 0 14px; }
.gameban { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; border-color: color-mix(in srgb, var(--st-down) 45%, transparent); background: color-mix(in srgb, var(--st-down) 7%, var(--surface)); }
.gameban__icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--st-down) 16%, transparent); }
.gameban__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--bad-text); stroke-width: 2; stroke-linecap: round; }
.gameban__body { flex: 1; min-width: 0; }
.gameban__body strong { color: var(--bad-text); font-size: 1.05rem; }
.gameban__body p { color: var(--text); font-size: 0.9rem; margin: 4px 0 12px; }
.gameban__body dl { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.gameban__body dt { font-size: 0.72rem; color: var(--dim); }
.gameban__body dd { font-size: 0.88rem; color: var(--white); font-weight: 600; }
@media (max-width: 600px) { .gameban { flex-wrap: wrap; } .gameban .btn { width: 100%; } }
.char-card { padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: color-mix(in srgb, var(--surface) 60%, var(--bg)); }
.char-card + .char-card { margin-top: 16px; }
.char-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.char-card__head h3 { font-size: 1.25rem; margin-bottom: 6px; }
.char-card__avatar { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.1rem; color: var(--white); background: linear-gradient(145deg, rgba(var(--fg-rgb), 0.16), rgba(var(--fg-rgb), 0.04)); border: 1px solid var(--border-strong); }
img.char-card__avatar { object-fit: cover; padding: 0; }
.char-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.char-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); min-width: 0; }
.char-tile .ico { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.char-tile span { font-size: 0.74rem; color: var(--dim); }
.char-tile strong { font-size: 1.05rem; color: var(--white); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 700px) { .char-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.md-char header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.md-char header strong { color: var(--white); font-size: 1rem; margin-right: 4px; }
.md-empty { display: flex; flex-direction: column; gap: 4px; padding: 28px 16px; text-align: center; color: var(--white); font-weight: 600; border: 1px dashed var(--border-strong); border-radius: 12px; }
.md-empty small { color: var(--muted); font-weight: 400; font-size: 0.84rem; }
.md-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.md-toolbar .rules-search { flex: 1; min-width: 200px; max-width: none; }
.md-toolbar span { color: var(--dim); font-size: 0.78rem; }
button.guild-row { width: 100%; text-align: left; font: inherit; cursor: pointer; }
button.guild-row:hover { background: var(--surface-hover); }
.guild-row[hidden] { display: none; }
.md-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 14px 24px; border-top: 1px solid var(--border); background: var(--surface); }
.md-foot__hint { color: var(--muted); font-size: 0.82rem; margin-right: auto; }
@media (max-width: 700px) {
  .modal .modal__box.modal__box--member { height: 92svh; max-height: 92svh; padding: 0; overflow: hidden; }
  .md-head { padding: 18px 16px 0; }
  .md-head__avatar { width: 46px; height: 46px; }
  .md-badges, .md-tabs { padding-left: 16px; padding-right: 16px; }
  .md-alert { margin-left: 16px; margin-right: 16px; }
  .md-body { padding: 16px; }
  .md-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .md-foot .btn { flex: 1 1 0; padding-left: 8px; padding-right: 8px; white-space: nowrap; }
  .md-tabs button { padding: 10px 9px; font-size: 0.82rem; }
  .md-tabs__long { display: none; }
  .md-body .guild-row { flex-wrap: nowrap; }
  .md-body .guild-row .btn { flex: none; padding: 6px 10px; font-size: 0.76rem; }
}

.cl-form { display: grid; gap: 4px; margin-bottom: 24px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
.cl-form__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.cl-form .field textarea { min-height: 120px; }
.cl-form__opts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 4px 0 14px; font-size: 0.86rem; color: var(--text); }
.cl-form__opts label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.cl-form__opts input { width: 16px; height: 16px; }
.cl-admin-list .member-row { align-items: flex-start; }
@media (max-width: 860px) { .cl-form__cols { grid-template-columns: 1fr; } }

.hero { min-height: 100svh; }
html, body { overflow-x: clip; }

@media (hover: none) {
  .member-row--click:hover { padding-left: 16px; }
  .card:hover { transform: none; }
  .card:hover .card__icon { transform: none; }
  .btn--light:hover::after { animation: none; }
}

@media (max-width: 700px) {
  input, select, textarea, .rules-search { font-size: 16px !important; }

  .app-toggle { width: 40px; height: 40px; }
  .app-top { height: 52px; }
  .app-head h1 { font-size: 1.25rem; }

  .modal { padding: 0; place-items: end center; }
  .modal__box, .modal__box.modal__box--wide {
    max-width: none; max-height: 92svh; overflow-y: auto; -webkit-overflow-scrolling: touch;
    border-radius: 18px 18px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  }
  .ban-screen { padding: 16px; place-items: center; }
  .ban-screen .modal__box { border-radius: 18px; }
  .modal__actions { flex-direction: column-reverse; }
  .modal__actions .btn { width: 100%; }
  .clip-modal__head { flex-wrap: wrap; gap: 10px; }
  .clip-modal__head h2 { font-size: 1rem; min-width: 0; overflow-wrap: anywhere; }
  .clip-modal__close { margin-left: auto; width: 40px; height: 40px; }
  .clip-checks dd { overflow-wrap: anywhere; }
  .member-actions .btn { flex: 1 1 100%; }

  .panel__toolbar > * { flex: 1 1 100%; }
  .panel__toolbar .rules-search { max-width: none; }

  .logs__foot { flex-direction: column; align-items: stretch; }
  .pager { justify-content: center; }
  .pager__jump { margin: 6px 0 0; width: 100%; }
  .pager__jump input { flex: 1; width: auto; }

  .botctl__buttons { width: 100%; }
  .botctl__buttons .btn { flex: 1; white-space: nowrap; padding-left: 10px; padding-right: 10px; }
  .botctl__status dl { gap: 14px 22px; }
  .botctl__storage .btn { width: 100%; }
  .console__bar { flex-wrap: wrap; gap: 8px 12px; }
  .console__out { font-size: 0.72rem; }
  .console__line { gap: 8px; }

  .member-row__info span { white-space: normal; }
  .member-row > .btn { flex: 1 1 100%; }

  .perm-roles__list { max-height: none; overflow: visible; }
  .perm-detail__actions, .perm-detail__actions .btn { width: 100%; }
  .role-add { grid-template-columns: 1fr; max-height: 50svh; }
  .role-pill { font-size: 0.82rem; }
  .role-pill button { width: 28px; height: 28px; }

  .kill { padding: 16px; }
  .kill__head { flex-direction: column; }
  .kill__upload .btn { width: 100%; }
  .compress__drop { padding: 28px 12px; }

  .toast { left: 16px; right: 16px; max-width: none; text-align: center; transform: translateY(20px); bottom: calc(20px + env(safe-area-inset-bottom)); border-radius: 14px; }
  .toast.is-visible { transform: none; }
}

@media (max-width: 420px) {
  .app-content { padding: 14px 12px 32px; }
  .app-content .panel__body, .panel__body { padding: 14px; }
  .clip-grid { grid-template-columns: 1fr; }
  .clip-checks { grid-template-columns: 1fr 1fr; gap: 6px; }
  .clip-checks div { padding: 8px 10px; }
  .dash-card { padding: 16px; }
  .hero__title { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

:root {
  --ico-ok: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --ico-bad: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E");
  --ico-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M12 4.5v9M12 19.5v.01'/%3E%3C/svg%3E");
  --ico-tool: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3.5 17.5l3 3 5.8-5.8a4 4 0 0 0 5.4-5.4l-2.6 2.6-2.4-.6-.6-2.4z'/%3E%3C/svg%3E");
  --ico-restart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.4-5.7M20 4v5h-5'/%3E%3C/svg%3E");
  --ico-none: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
  --ico-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --ico-edit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16z'/%3E%3C/svg%3E");
  --ico-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M12 10.5v9M12 4.5v.01'/%3E%3C/svg%3E");
  --ico-chart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M5 19v-6M12 19V5M19 19v-9'/%3E%3C/svg%3E");
}

.is-up, .status-overall--up { --ico: var(--ico-ok); }
.is-degraded, .status-overall--degraded { --ico: var(--ico-warn); }
.is-down, .status-overall--down { --ico: var(--ico-bad); }
.is-maintenance, .status-overall--maintenance { --ico: var(--ico-tool); }
.is-restarting, .status-overall--restarting { --ico: var(--ico-restart); }
.is-none { --ico: var(--ico-none); }

.pill i, .bar-tip i { width: 12px; height: 12px; border-radius: 0; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.status-overall__dot { width: 26px; height: 26px; display: grid; place-items: center; }
.status-overall__dot::after { content: ""; width: 15px; height: 15px; background: #fff; -webkit-mask: var(--ico, var(--ico-none)) center / contain no-repeat; mask: var(--ico, var(--ico-none)) center / contain no-repeat; }

.log { --ico: var(--ico-info); }
.log.is-success, .wlog .is-success { --ico: var(--ico-ok); }
.log.is-warn, .wlog .is-warn { --ico: var(--ico-warn); }
.log.is-error, .wlog .is-error { --ico: var(--ico-bad); }
.log.is-stats, .wlog .is-stats { --ico: var(--ico-chart); }
.log__dot { width: 18px; height: 18px; margin-top: 2px; display: grid; place-items: center; box-shadow: none; background: color-mix(in srgb, var(--c) 18%, transparent); }
.log__dot::after { content: ""; width: 11px; height: 11px; background: var(--c); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.wlog i { width: 11px; height: 11px; border-radius: 0; -webkit-mask: var(--ico, var(--ico-info)) center / contain no-repeat; mask: var(--ico, var(--ico-info)) center / contain no-repeat; }

.ts-checks .is-on { --ico: var(--ico-ok); --c: var(--st-up); }
.ts-checks .is-off { --ico: var(--ico-bad); --c: var(--st-down); }
.ts-checks li::before, .ts-checks .is-on::before, .ts-checks .is-off::before { width: 14px; height: 14px; border-radius: 0; box-shadow: none; background: var(--c); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }

.chip--ok, .clip-chip--clean, .verdict--clean, .scan-verdict.good, .clip-checks dd.good, .md-state.is-ok, .guild-row.is-ok .guild-row__info span { --ico: var(--ico-ok); }
.chip--warn, .clip-chip--suspicious, .verdict--suspicious, .md-state.is-warn, .guild-row.is-warn .guild-row__info span, .wstat.is-warn strong { --ico: var(--ico-warn); }
.chip--bad, .clip-chip--cheat, .verdict--cheat, .scan-verdict.bad, .clip-checks dd.bad, .md-state.is-bad, .guild-row.is-bad .guild-row__info span, .form-msg.is-error, .kill__note.is-bad, .md-fact.is-bad dd, .wstat.is-bad strong, .wlist em.bad { --ico: var(--ico-bad); }
.wstat.is-good strong { --ico: var(--ico-ok); }
.cl-tag.is-added { --ico: var(--ico-plus); }
.cl-tag.is-changed { --ico: var(--ico-edit); }
.cl-tag.is-removed { --ico: var(--ico-none); }
:is(.chip--ok, .chip--warn, .chip--bad):not(:has(> .ico))::before,
:is(.clip-chip--clean, .clip-chip--suspicious, .clip-chip--cheat, .verdict--clean, .verdict--suspicious, .verdict--cheat, .scan-verdict.good, .scan-verdict.bad, .clip-checks dd.good, .clip-checks dd.bad, .md-state.is-ok, .md-state.is-warn, .md-state.is-bad, .cl-tag.is-added, .cl-tag.is-changed, .cl-tag.is-removed, .form-msg.is-error, .kill__note.is-bad, .md-fact.is-bad dd, .wstat.is-good strong, .wstat.is-warn strong, .wstat.is-bad strong, .wlist em.bad)::before,
:is(.guild-row.is-ok, .guild-row.is-warn, .guild-row.is-bad) .guild-row__info span::before {
  content: ""; display: inline-block; flex: none; width: 0.95em; height: 0.95em; margin-right: 0.35em; vertical-align: -0.12em;
  background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.clip-chip:is(.clip-chip--clean, .clip-chip--suspicious, .clip-chip--cheat)::before { margin-right: 0; }
.sidebar__item.is-soon { cursor: default; opacity: 0.45; }
.sidebar__item.is-soon:hover { background: none; color: var(--muted); }
.sidebar__item.is-soon em { margin-left: auto; padding: 1px 6px; border-radius: 999px; font-style: normal; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border-strong); }
body.sidebar-collapsed .sidebar__item.is-soon em { display: none; }

.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.car-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
.car-card__top { display: flex; align-items: center; justify-content: space-between; }
.car-card__top .ico { width: 26px; height: 26px; fill: none; stroke: var(--white); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.car-card__top .md-state { font-size: 0.78rem; }
.car-card__name { font-size: 1.05rem; color: var(--white); }
.car-card .md-plate { align-self: flex-start; font-size: 0.85rem; padding: 3px 10px; }
.car-card dl { display: grid; gap: 4px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--border); }
.car-card dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 0.82rem; }
.car-card dt { color: var(--dim); }
.car-card dd { color: var(--white); font-weight: 600; text-align: right; }

.faction + .faction { margin-top: 18px; }
.faction__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.faction__head h3 { font-size: 1.15rem; }
.faction__head p { color: var(--muted); font-size: 0.86rem; }
.faction__head .chip { margin-left: auto; }
.faction__icon { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--fg-rgb), 0.06); border: 1px solid var(--border-strong); }
.faction__icon .ico { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.faction__grade { color: var(--muted); font-weight: 400; margin-left: 6px; }

.acc-card { display: flex; align-items: center; gap: 16px; padding: 18px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
.acc-card__avatar { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; font-size: 1rem; }
.acc-card__who h3 { font-size: 1.2rem; }
.acc-card__who p { color: var(--muted); font-size: 0.86rem; }
.acc-card__badge, .acc-card .btn { margin-left: auto; }
.acc-actions { margin-top: 18px; }
@media (max-width: 700px) {
  .acc-card { flex-wrap: wrap; }
}
.cmdk { position: fixed; inset: 0; z-index: 900; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.cmdk__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: vdialogFade 0.15s ease; }
.cmdk__box { position: relative; width: 100%; max-width: 620px; display: flex; flex-direction: column; max-height: 70vh; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); overflow: hidden; animation: vdialogIn 0.18s ease; }
.cmdk__search { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.cmdk__search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.cmdk__search input { flex: 1; min-width: 0; border: none; outline: none; background: none; color: var(--white); font: inherit; font-size: 1rem; }
.cmdk__search input::placeholder { color: var(--dim); }
.cmdk kbd { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--muted); font: 600 0.7rem/1.5 ui-monospace, Consolas, monospace; text-align: center; }
.cmdk__list { flex: 1; overflow-y: auto; padding: 6px; }
.cmdk__group { padding: 10px 10px 4px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.cmdk__item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; text-align: left; color: var(--text); font-size: 0.9rem; }
.cmdk__item svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cmdk__item span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cmdk__item small { color: var(--dim); font-size: 0.74rem; font-family: ui-monospace, Consolas, monospace; }
.cmdk__item em { font-style: normal; font-size: 0.7rem; color: var(--dim); }
.cmdk__item.is-active { background: rgba(var(--fg-rgb), 0.08); color: var(--white); }
.cmdk__item.is-active svg { stroke: var(--white); }
.cmdk__item.is-disabled { opacity: 0.45; cursor: not-allowed; }
.cmdk__avatar { width: 26px; height: 26px; flex: none; border-radius: 50%; object-fit: cover; font-size: 0.55rem; }
.cmdk__empty { padding: 22px 12px; text-align: center; color: var(--muted); font-size: 0.88rem; }
.cmdk__foot { display: flex; gap: 16px; flex-wrap: wrap; padding: 9px 14px; border-top: 1px solid var(--border); font-size: 0.74rem; color: var(--dim); }
.cmdk__foot span { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 600px) { .cmdk { padding-top: 8vh; } .cmdk__foot { display: none; } }

.wallet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; margin-bottom: 14px; }
.wallet__coins { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 14px; border: 1px solid rgba(232, 180, 35, 0.35); background: radial-gradient(300px 160px at 0% 0%, rgba(232, 180, 35, 0.18), transparent 70%), var(--bg); }
.wallet__coins span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: #e8b423; }
.wallet__coins .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wallet__coins strong { font-size: 2.2rem; line-height: 1.1; color: var(--white); font-variant-numeric: tabular-nums; }
.wallet__coins small { color: var(--dim); font-size: 0.78rem; }
.wallet__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
.wallet__chars { margin-bottom: 8px; }
.tx-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.tx { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--bg); border-bottom: 1px solid var(--border); }
.tx:last-child { border-bottom: none; }
.tx i { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; }
.tx i .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tx.is-in i { color: var(--ok-text); background: color-mix(in srgb, var(--st-up) 14%, transparent); }
.tx.is-out i { color: var(--bad-text); background: color-mix(in srgb, var(--st-down) 12%, transparent); }
.tx span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tx b { color: var(--white); font-size: 0.9rem; }
.tx small { color: var(--dim); font-size: 0.76rem; }
.tx strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx.is-in strong { color: var(--ok-text); }
.tx.is-out strong { color: var(--text); }
@media (max-width: 800px) { .wallet { grid-template-columns: 1fr; } .wallet__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .wallet__tiles { grid-template-columns: 1fr 1fr; } }

/* Coinshop-Codes (Team-Panel -> FiveM-Verwaltung -> Codes) */
.code-new { margin-bottom: 18px; border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 10px; background: var(--surface); }
.code-new .form-msg { margin: 0 14px 10px; }
.code-new__bar { display: flex; justify-content: flex-end; padding: 0 14px 14px; }
.code-item__code { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.06em; }
.code-item__state.is-on { color: #57d13a !important; }
.code-item__state.is-off { color: #e8b423 !important; }
.code-item__uses { display: block; margin-top: 4px; font-size: 0.75rem; color: var(--muted); }
/* Ingame-Team (Ränge des Admin-Menüs) */
.rank-perms { margin-top: 12px; }
.rank-perms > b { display: block; margin-bottom: 6px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.shop-form input[type="color"] { width: 100%; height: 40px; padding: 2px; cursor: pointer; }
.rank-section { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 22px 0 10px; }
.rank-section h3 { margin: 0; font-size: 1.05rem; }
.rank-section .link-roles__search { flex: 1; min-width: 180px; margin: 0; }
.rank-section__hint { flex: 1; color: var(--muted); font-size: .85rem; }
.rank-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin: 0 4px; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.rank-switch { white-space: nowrap; }
.rank-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 4px 0 14px; }
.rank-stat { padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); }
.rank-stat b { display: block; font-size: 1.35rem; line-height: 1.2; color: var(--white); }
.rank-stat span { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.rank-stat.is-on b { color: #57d13a; }
.rank-stat.is-off b { color: #ff5b5b; }
.rank-online { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.rank-online > span { margin-right: 4px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rank-online i { font-style: normal; font-size: .85rem; padding: 4px 10px; border-radius: 999px; background: rgba(87,209,58,.1); border: 1px solid rgba(87,209,58,.35); }
.rank-online i em { font-style: normal; color: var(--muted); margin-left: 4px; }
.rank-online i.is-warn { background: rgba(232,180,35,.1); border-color: rgba(232,180,35,.4); }
.rank-sub { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rank-sub:first-child { margin-top: 0; }
.rank-sub span { padding: 1px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--white); }
.rank-badge--on { color: #57d13a !important; border-color: rgba(87,209,58,.4) !important; }
.rank-perms__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rank-perms__head b { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rank-perms__count { font-size: .78rem; color: var(--white); opacity: .7; }
.rank-perms__toggle { margin-left: auto; padding: 3px 10px; font: inherit; font-size: .75rem; color: var(--white); background: transparent; border: 1px solid var(--border-strong); border-radius: 999px; cursor: pointer; }
.rank-perms__toggle:hover { background: rgba(var(--fg-rgb), .08); }

/* Suchfelder in den Editoren (Ingame-Team, Items, Team-Links) */
.link-roles__search {
  display: block; width: 100%; height: 44px; margin: 10px 0 12px; padding: 0 16px 0 44px;
  font: inherit; font-size: .95rem; color: var(--white);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px center / 18px;
  border: 1px solid var(--border-strong); border-radius: 999px; outline: none;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.link-roles__search::placeholder { color: var(--muted); }
.link-roles__search:hover { border-color: rgba(var(--fg-rgb), .26); }
.link-roles__search:focus { border-color: rgba(var(--fg-rgb), .45); box-shadow: 0 0 0 4px rgba(var(--fg-rgb), .06); }
.link-roles__search::-webkit-search-cancel-button { cursor: pointer; }
.rank-section .link-roles__search { max-width: 360px; }
