
:root {
  --gold: #f2b51d;
  --gold-light: #ffcb47;
  --gold-dark: #c48d0c;
  --bg: #0b0b0d;
  --bg-2: #111114;
  --panel: #151518;
  --panel-2: #1c1c20;
  --line: #24242a;
  --line-2: #33333a;
  --text: #f1efea;
  --text-dim: #a3a09a;
  --text-faint: #6c6a66;
  --red: #ef4f55;
  --green: #3ccf6e;
  --radius: 8px;
  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --glass: var(--panel);
  --glass-strong: var(--panel-2);
  --glass-border: var(--line);
  --bg-input: #0f0f12;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold); }
img { max-width: 100%; }
h1, h2, h3 {
  font-family: var(--font-display); font-stretch: 75%; font-weight: 800;
  line-height: 1.05; letter-spacing: -.01em;
}

::selection { background: var(--gold); color: #111; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }
.mid { max-width: 1000px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, .96);
  border-bottom: 1px solid var(--line);
  transition: background .25s, border-color .25s;
}
body:has(.hero) .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; }
body:has(.hero) .site-header.scrolled,
body:has(.hero) .site-header.nav-open { background: rgba(11, 11, 13, .96); border-bottom-color: var(--line); }

.site-header .inner {
  display: flex; align-items: center; gap: 10px 28px;
  max-width: 1240px; margin: 0 auto; padding: 0 24px; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-stretch: 80%; font-weight: 900; font-size: 22px; letter-spacing: .02em; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; }
.brand .gold { color: var(--gold); }
.nav-collapse { display: flex; flex: 1; align-items: center; gap: 10px 20px; }
.nav { display: flex; flex-wrap: nowrap; gap: 4px; flex: 1; }
.nav a {
  position: relative; padding: 8px 10px;
  font-size: 14px; font-weight: 600; color: #cfccc5; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease-out);
}
.nav a:hover { color: #fff; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: #fff; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.header-actions > a, .header-actions summary { white-space: nowrap; }
.head-menu { position: relative; }
.head-menu > summary { list-style: none; }
.head-menu > summary::-webkit-details-marker { display: none; }
.head-menu-caret { font-size: 11px; opacity: .7; transition: transform .15s; }
.head-menu[open] .head-menu-caret { transform: rotate(180deg); }
.head-menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 220px; display: flex; flex-direction: column; padding: 6px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.head-menu-list a { padding: 10px 12px; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.head-menu-list a:hover { background: var(--panel-2); color: #fff; }

.nav-toggle {
  display: none; margin-left: auto; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(0,0,0,.3);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: flex; }
  .site-header .inner { position: relative; }
  .nav-collapse {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 24px 20px; background: #0b0b0d; border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .site-header.nav-open .nav-collapse { display: flex; }
  .nav { flex-direction: column; flex: none; gap: 0; }
  .nav a { padding: 13px 0; font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 22px; text-transform: uppercase; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav a.active { color: var(--gold); }
  .header-actions { margin-top: 16px; flex-wrap: wrap; }
  .head-menu-list { position: static; margin-top: 6px; box-shadow: none; }
}

.btn, .btn-primary, .btn-secondary, .btn-danger, .btn-ghost, .btn-discord {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius); border: 1px solid transparent;
  font-family: inherit; font-size: 14px; font-weight: 700; text-align: center; line-height: 1.2;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn-lg { padding: 15px 26px; font-size: 15px; }
.btn-xs { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.btn-primary { background: var(--gold); color: #121212; }
.btn-primary:hover { background: var(--gold-light); color: #121212; }
.btn-secondary { background: rgba(255,255,255,.06); color: var(--text); border-color: rgba(255,255,255,.14); }
.btn-secondary:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }
.btn-danger { background: #b3262c; color: #fff; }
.btn-danger:hover { background: #cc2f35; color: #fff; }
.btn-ghost { background: transparent; color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; color: #fff; }
.arrow::after { content: "\2192"; display: inline-block; transition: transform .2s var(--ease-out); }
.arrow:hover::after { transform: translateX(4px); }
button:disabled { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }

.card, .card-pad, details.box {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card-pad { padding: 24px; }
a.card-pad, .hoverable { transition: border-color .2s, background .2s; }
a.card-pad:hover, .hoverable:hover { border-color: var(--line-2); background: var(--panel-2); color: inherit; }
.card-soft { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.card-soft:hover { border-color: var(--line-2); }
details.card-soft[open] { border-color: var(--line-2); }
details.card-soft summary { list-style: none; }
details.card-soft summary::-webkit-details-marker { display: none; }
.card-title { border-bottom: 1px solid var(--line); padding: 14px 24px; font-weight: 700; }

.glow-border { border-top: 3px solid var(--gold); }

.input, select.input, textarea.input {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--bg-input); color: var(--text);
  padding: 11px 14px; font-size: 15px; font-family: inherit; outline: none;
  transition: border-color .15s;
}
select.input option { background: #141417; }
.input:focus { border-color: var(--gold); }
.input::placeholder { color: var(--text-faint); }
.label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--text-dim); }
.field { margin-bottom: 16px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  border-radius: 6px; border: 1px solid var(--line-2);
  padding: 2px 9px; font-size: 12px; font-weight: 600; color: var(--text-dim);
}
.b-green { border-color: #24563a; background: #11241a; color: #6fe39a; }
.b-red { border-color: #6e272b; background: #2a1214; color: #f58e92; }
.b-orange { border-color: #6e451c; background: #2b1c0e; color: #f5a25d; }
.b-sky { border-color: #24516e; background: #0f202b; color: #6cc3f2; }
.b-amber { border-color: #6e5314; background: #2a200b; color: #ffcb47; }
.b-zinc { border-color: #38383e; background: #1b1b1f; color: #a5a5ab; }
.b-gold { border-color: #6e5314; background: #2a200b; color: var(--gold-light); }

.alert { border-radius: var(--radius); padding: 13px 16px; font-size: 15px; margin: 14px 0; border: 1px solid; }
.alert-ok { border-color: #24563a; background: #11241a; color: #a3f0bd; }
.alert-err { border-color: #6e272b; background: #2a1214; color: #f8b3b6; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table.tbl { width: 100%; border-collapse: collapse; min-width: 560px; }
.tbl th {
  padding: 11px 14px; text-align: left; font-size: 12.5px; font-weight: 700;
  color: var(--text-dim); border-bottom: 1px solid var(--line-2); background: var(--bg-2);
}
.tbl td { padding: 11px 14px; font-size: 14px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: #19191d; }

.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid[style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.section-title { font-size: clamp(34px, 5vw, 56px); text-transform: uppercase; margin: 0; }
.gold-line { height: 4px; width: 56px; margin-top: 14px; background: var(--gold); }
.grad { color: var(--gold); }
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.small { font-size: 14px; }
.xs { font-size: 12.5px; }
.pre { white-space: pre-line; overflow-wrap: anywhere; word-break: break-word; }
.ap-a, .tk-msg-body, .kv dd { overflow-wrap: anywhere; }

.page-head { padding: 64px 0 8px; }
.page-head .section-title { font-size: clamp(40px, 7vw, 84px); }

.rich-content { color: #d8d5ce; }
.rich-content p { margin: 0 0 12px; }
.rich-content p:last-child { margin-bottom: 0; }
.rich-content h2, .rich-content h3, .rich-content h4 { margin: 20px 0 8px; color: var(--text); }
.rich-content h2 { font-size: 26px; }
.rich-content h3 { font-size: 21px; }
.rich-content h4 { font-size: 17px; }
.rich-content ul, .rich-content ol { margin: 8px 0 12px 22px; padding: 0; }
.rich-content li { margin: 4px 0; }
.rich-content blockquote { margin: 12px 0; padding: 10px 16px; border-left: 3px solid var(--gold); background: var(--bg-2); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text); }
.rich-content a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.rich-content code { padding: 1px 6px; border-radius: 4px; background: #24242a; color: #fff; }
.rich-content pre { white-space: pre-wrap; padding: 14px; border-radius: var(--radius); background: #08080a; overflow: auto; }
.rich-content hr { border: 0; height: 1px; margin: 20px 0; background: var(--line-2); }
.rich-content img { max-width: 100%; height: auto; border-radius: var(--radius); display: block; margin: 12px 0; }

.rich-editor-wrap { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--bg-input); }
.rich-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.rich-toolbar button { width: 32px; height: 30px; padding: 0; border-radius: 6px; border: 1px solid transparent; background: transparent; color: var(--text-dim); font: 700 12px/1 "Archivo", sans-serif; cursor: pointer; }
.rich-toolbar button:hover { background: #2b2b31; color: var(--gold-light); }
.rich-toolbar .wide { width: auto; padding: 0 9px; }
.rich-toolbar select { height: 30px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-input); color: var(--text); font: 600 12px/1 "Archivo", sans-serif; padding: 0 8px; outline: none; }
.rich-toolbar select option { background: #141417; }
.rich-toolbar input[type="color"] { width: 32px; height: 30px; padding: 3px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-input); cursor: pointer; }
.rich-toolbar .rich-sep { width: 1px; height: 24px; margin: 3px; background: var(--line-2); }
.rich-editable { min-height: 170px; padding: 12px 14px; outline: none; color: var(--text); font-size: 15px; line-height: 1.55; }
.rich-editable:focus { box-shadow: inset 0 0 0 1px var(--gold-dark); }
.rich-editable.input-error { box-shadow: inset 0 0 0 1px var(--red); }
textarea.rich-source { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: #08080a;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-slide {
  position: absolute; inset: -2%; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s;
  animation: heroDrift 30s ease-in-out infinite alternate;
}
.hero-bg-slide.active { opacity: 1; }
@keyframes heroDrift { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,8,10,.75) 0%, rgba(8,8,10,0) 22%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11,11,13,.85) 28%, rgba(11,11,13,.2) 70%),
    linear-gradient(90deg, rgba(8,8,10,.7) 0%, rgba(8,8,10,0) 65%);
}
.hero-content { position: relative; z-index: 1; padding-top: 140px; padding-bottom: 40px; }
.hero h1 {
  font-size: clamp(64px, 13vw, 190px); font-stretch: 62%; font-weight: 900;
  text-transform: uppercase; line-height: .86; letter-spacing: -.01em; margin: 0 0 22px;
}
.hero h1 .outline { color: transparent; -webkit-text-stroke: 2px var(--text); }
.hero .slogan { display: inline-block; font-weight: 700; font-size: clamp(16px, 2vw, 20px); color: #121212; background: var(--gold); padding: 4px 12px; margin: 0 0 22px; }
.hero .desc { max-width: 560px; margin: 0 0 30px; color: #d6d3cc; font-size: 18px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero .cta .btn-link { margin-left: 8px; font-weight: 600; color: var(--text-dim); }
.hero .cta .btn-link:hover { color: #fff; }

.hero-stats { position: absolute; top: 84px; left: 0; right: 0; z-index: 2; pointer-events: none; }
.hero-stats-inner { display: flex; flex-wrap: wrap; gap: 10px 34px; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.hero-stats .item { display: flex; flex-direction: column; line-height: 1.15; pointer-events: auto; text-shadow: 0 2px 12px rgba(0,0,0,.75); }
.hero-stats .item small { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(241,239,234,.6); margin-bottom: 3px; }
.hero-stats .item b { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 22px; }
.hero-stats .item b .faint { font-size: 15px !important; }
@media (max-width: 760px) {
  .hero-stats { top: 80px; }
  .hero-stats-inner { gap: 8px 22px; padding: 0 16px; }
  .hero-stats .item b { font-size: 18px; }
  .hero-content { padding-top: 190px; }
}
.server-bar { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.1); }
.server-bar .container { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 44px; padding-top: 22px; padding-bottom: 22px; }
.server-bar .item { display: flex; flex-direction: column; line-height: 1.2; }
.server-bar .item small { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.server-bar .item b { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 28px; }
.server-bar .status b { display: flex; align-items: center; gap: 10px; }
.server-bar .connect { margin-left: auto; display: flex; align-items: center; gap: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(0,0,0,.45); overflow: hidden; }
.server-bar .connect code { font-family: "Cascadia Mono", Consolas, monospace; font-size: 14px; padding: 0 14px; color: var(--gold-light); }
.server-bar .connect button { border: 0; border-left: 1px solid var(--line-2); border-radius: 0; background: transparent; }
.server-bar .connect button:hover { background: var(--gold); color: #121212; }
@media (max-width: 760px) {
  .server-bar .container { gap: 14px 28px; }
  .server-bar .connect { margin-left: 0; width: 100%; justify-content: space-between; }
  .server-bar .connect code { font-size: 13px; padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

.home-section { padding: 110px 0 0; }
@media (max-width: 700px) { .home-section { padding-top: 72px; } }
.about-split { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; gap: 24px; } }
.statement { font-size: clamp(40px, 5.6vw, 72px); text-transform: uppercase; margin: 18px 0 0; }
.statement em { font-style: normal; color: var(--gold); }
.about-split .lead { font-size: 20px; color: var(--text); margin: 0 0 16px; }
.about-split p { color: var(--text-dim); margin: 0 0 16px; font-size: 17px; }

.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border-top: 1px solid var(--line); }
@media (max-width: 960px) { .feature-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-row { grid-template-columns: 1fr; } }
.feature {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 28px 30px 0; color: inherit;
}
.feature + .feature { padding-left: 28px; border-left: 1px solid var(--line); }
@media (max-width: 960px) {
  .feature, .feature + .feature { padding: 28px 24px 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .feature:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) { .feature:nth-child(even) { padding-left: 0; border-left: 0; } }
.feature::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .35s var(--ease-out);
}
.feature + .feature::before { left: 28px; }
.feature:hover::before { width: 60px; }
.feature .num { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 15px; color: var(--gold); }
.feature h3 { font-size: 30px; text-transform: uppercase; margin: 10px 0 10px; }
.feature p { margin: 0 0 18px; color: var(--text-dim); font-size: 15.5px; flex: 1; }
.feature .more { font-size: 14px; font-weight: 700; color: var(--text); }
.feature:hover { color: inherit; }
.feature:hover .more { color: var(--gold); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.news-grid .news-card:first-child { grid-row: span 2; }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } .news-grid .news-card:first-child { grid-row: auto; } }
.news-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.news-card .news-img { aspect-ratio: 16 / 9; background: #08080a center / cover; border-bottom: 1px solid var(--line); }
.news-card .news-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.news-card .news-meta { font-size: 13px; color: var(--text-faint); }
.news-card .news-meta b { color: var(--gold); font-weight: 700; }
.news-card h3 { margin: 10px 0 10px; font-size: 26px; transition: color .15s; }
.news-grid .news-card:first-child h3 { font-size: clamp(28px, 3.4vw, 40px); }
.news-card:hover h3 { color: var(--gold); }

.join-band {
  margin-top: 120px; background: var(--gold); color: #121212;
  clip-path: polygon(0 48px, 100% 0, 100% 100%, 0 100%);
}
.join-band .container { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 110px; padding-bottom: 70px; }
.join-band h2 { margin: 0 0 12px; font-size: clamp(44px, 7vw, 96px); font-stretch: 62%; font-weight: 900; text-transform: uppercase; line-height: .9; }
.join-band p { margin: 0; max-width: 520px; font-size: 18px; font-weight: 500; }
.join-band .btn-primary { background: #121212; color: #fff; }
.join-band .btn-primary:hover { background: #000; color: var(--gold-light); }
.join-band .btn-secondary { background: transparent; border-color: rgba(0,0,0,.35); color: #121212; }
.join-band .btn-secondary:hover { border-color: #121212; background: rgba(0,0,0,.07); color: #121212; }

.stat-chip { text-align: left; }
.stat-value { font-size: clamp(26px, 3vw, 34px); font-weight: 800; font-family: var(--font-display); font-stretch: 75%; }

.site-footer { margin-top: 100px; background: #08080a; border-top: 1px solid var(--line); }
main:has(> .join-band:last-child) + .site-footer { margin-top: 0; border-top: 0; }
.site-footer .cols { display: grid; gap: 32px; grid-template-columns: 1.6fr 1fr 1fr 1fr; max-width: 1240px; margin: 0 auto; padding: 56px 24px; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer .label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.site-footer ul { list-style: none; margin: 6px 0 0; padding: 0; }
.site-footer li { margin: 7px 0; font-size: 15px; color: var(--text-dim); }
.site-footer .copy { max-width: 1240px; margin: 0 auto; border-top: 1px solid var(--line); padding: 20px 24px; font-size: 13px; color: var(--text-faint); }

.panel-body {
  --p-bg: #0c0c0f;
  --p-side: #0f0f12;
  --p-card: #141418;
  --p-card-2: #1a1a1f;
  --p-line: #232329;
  --p-line-2: #2e2e36;
  --radius: 10px;
  background: var(--p-bg);
  font-size: 14.5px;
}
.panel-wrap { display: flex; min-height: 100vh; }

.panel-sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; width: clamp(232px, 15vw, 272px); flex-shrink: 0;
  display: flex; flex-direction: column;
  background: var(--p-side); border-right: 1px solid var(--p-line);
}
.ps-head { padding: 18px 18px 14px; }
.ps-head .brand { font-size: 18px; gap: 9px; }
.ps-head .brand img { width: 30px; height: 30px; }
.ps-nav { flex: 1; overflow-y: auto; padding: 4px 10px 16px; scrollbar-width: thin; scrollbar-color: #2a2a31 transparent; }
.panel-sidebar .group-label {
  display: flex; align-items: center; gap: 6px; margin: 14px 0 4px; padding: 4px 10px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint);
  list-style: none; cursor: pointer; user-select: none; border-radius: 6px; transition: color .12s, background .12s;
}
.panel-sidebar .group-label::-webkit-details-marker { display: none; }
.panel-sidebar .group-label > span:first-child { flex: 1; }
.panel-sidebar .group-label:hover { color: var(--text); background: #15151a; }
.panel-sidebar .group-label .ico { width: 14px; height: 14px; transition: transform .18s var(--ease-out); }
.nav-group:not([open]) > .group-label .ico { transform: rotate(-90deg); }
.nav-group-count { display: none; min-width: 18px; padding: 0 5px; border-radius: 999px; background: #1f1f25; color: var(--text-dim); font-size: 10.5px; line-height: 17px; text-align: center; letter-spacing: 0; }
.nav-group:not([open]) .nav-group-count { display: inline-block; }
.nav-group-start { padding-top: 2px; }
.panel-sidebar a.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; margin: 1px 0; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: #b9b6af;
  transition: background .12s, color .12s;
}
.panel-sidebar a.nav-item .ico { flex-shrink: 0; color: #77746e; transition: color .12s; }
.panel-sidebar a.nav-item:hover { background: #18181d; color: #fff; }
.panel-sidebar a.nav-item:hover .ico { color: #c9c6bf; }
.panel-sidebar a.nav-item.active { background: #1f1b10; color: var(--gold-light); font-weight: 600; box-shadow: inset 0 0 0 1px #3a3018; }
.panel-sidebar a.nav-item.active .ico { color: var(--gold); }

.ps-user { display: flex; align-items: center; gap: 10px; margin: 0 10px 12px; padding: 10px; border: 1px solid var(--p-line); border-radius: 10px; background: var(--p-card); }
.ps-user-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ps-user-text strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-user-text small { font-size: 12px; color: var(--gold-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--text-dim); cursor: pointer; transition: background .12s, color .12s;
}
.ps-icon-btn:hover { background: #222228; color: #fff; }

.panel-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.panel-topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 28px;
  background: rgba(12, 12, 15, .92); border-bottom: 1px solid var(--p-line);
  backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
}
.panel-burger { display: none; margin-left: -8px; }
.pt-crumbs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; }
.pt-crumbs a:hover { color: var(--text); }
.pt-crumbs strong { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.pt-link { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--p-line-2); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-dim); }
.pt-link:hover { color: #fff; border-color: #44444d; }

.panel-content { flex: 1; width: 100%; min-width: 0; padding: clamp(18px, 2vw, 36px) clamp(16px, 2.2vw, 40px) 40px; }
.panel-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 28px; border-top: 1px solid var(--p-line); color: var(--text-faint); font-size: 12.5px;
}
.panel-footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.panel-footer a { color: var(--text-dim); }
.panel-footer a:hover { color: var(--gold-light); }
.panel-backdrop { display: none; }

@media (max-width: 960px) {
  .panel-sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; transform: translateX(-100%); transition: transform .22s var(--ease-out); box-shadow: 0 0 40px rgba(0,0,0,.6); }
  .panel-wrap.nav-open .panel-sidebar { transform: none; }
  .panel-wrap.nav-open .panel-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.55); }
  .panel-burger { display: inline-flex; }
  .panel-topbar { padding: 0 16px; }
  .pt-link span { display: none; }
  .panel-content { padding: 20px 16px 32px; }
}
@media (max-width: 600px) {
  .panel-body .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .panel-body .grid-4 > .card-pad { padding: 14px; }
  .panel-body .stat-value { font-size: 24px; }
}

.panel-body .section-title {
  font-size: 26px; font-stretch: 100%; font-weight: 700; text-transform: none; letter-spacing: -.02em; line-height: 1.2;
}
.panel-body .gold-line { display: none; }
.panel-body .card, .panel-body .card-pad, .panel-body details.box {
  background: var(--p-card); border-color: var(--p-line); border-radius: 12px;
}
.panel-body .card-pad { padding: 20px; }
.panel-body a.card-pad:hover, .panel-body .hoverable:hover { background: var(--p-card-2); border-color: var(--p-line-2); }
.panel-body .card-title { padding: 14px 20px; font-size: 14.5px; font-weight: 700; border-bottom-color: var(--p-line); }
.panel-body .card-soft { background: #111115; border-color: var(--p-line); border-radius: 10px; }
.panel-body .card-pad h2 { font-family: inherit; font-stretch: 100%; font-weight: 700; letter-spacing: -.01em; }

.panel-body .stat-chip { position: relative; display: block; overflow: hidden; }
.panel-body .stat-chip > span:first-child, .panel-body .stat-chip .label {
  display: block; margin: 0 0 8px; font-size: 12.5px !important; font-weight: 600; letter-spacing: 0 !important; text-transform: none !important; color: var(--text-dim);
}
.panel-body .stat-value { font-size: 30px; font-stretch: 100%; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }

.panel-body .input, .panel-body select.input, .panel-body textarea.input {
  background: #0e0e11; border-color: var(--p-line-2); border-radius: 8px; padding: 9px 12px; font-size: 14px;
}
.panel-body .input:hover { border-color: #3a3a43; }
.panel-body .input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 181, 29, .14); }
.panel-body .label { font-size: 12.5px; margin-bottom: 6px; }

.panel-body .btn-primary, .panel-body .btn-secondary, .panel-body .btn-danger, .panel-body .btn-ghost, .panel-body .btn-discord {
  padding: 8px 14px; font-size: 13.5px; border-radius: 8px;
}
.panel-body .btn-lg { padding: 11px 20px; font-size: 14.5px; }
.panel-body .btn-xs { padding: 4px 9px; font-size: 12px; border-radius: 6px; }
.panel-body .btn-secondary { background: #1b1b20; border-color: var(--p-line-2); }
.panel-body .btn-secondary:hover { background: #232329; border-color: #3d3d46; }

.panel-body .table-wrap { border: 1px solid var(--p-line); border-radius: 12px; background: var(--p-card); }
.panel-body .card .table-wrap, .panel-body .card-pad .table-wrap { border: 0; background: transparent; }
.panel-body .tbl th { background: #111115; font-size: 12px; font-weight: 600; color: var(--text-faint); border-bottom-color: var(--p-line); padding: 10px 14px; }
.panel-body .tbl td { border-bottom-color: var(--p-line); font-size: 13.5px; padding: 11px 14px; }
.panel-body .tbl tr:hover td { background: #17171c; }

.panel-body .badge { border-radius: 999px; padding: 2px 9px; font-size: 11.5px; }
.panel-body .alert { border-radius: 10px; font-size: 14px; }
.panel-body details.box > summary { font-size: 15px; padding: 15px 18px; }
.panel-body details.box > *:not(summary) { padding: 0 18px 16px; }
.panel-body details.inner { background: #111115; border-color: var(--p-line); border-radius: 10px; }
.panel-body .list-plain li { border-bottom-color: var(--p-line); }

.first-login-shell { min-height: 100vh; display: grid; place-items: center; padding: 34px 16px; }
.first-login-card { width: min(760px, 100%); }
.admin-rules-modal { position: fixed; inset: 0; z-index: 120; display: none; place-items: center; padding: 18px; background: rgba(0,0,0,.75); backdrop-filter: blur(4px); }
.admin-rules-modal.open { display: grid; }
.admin-rules-box { width: min(720px, 100%); max-height: min(78vh, 680px); overflow: auto; }
.admin-rules-protected { -webkit-user-select: none; user-select: none; }
.avatar { border-radius: 50%; object-fit: cover; }
.avatar-fallback {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  border-radius: 50%; background: #2a200b; color: var(--gold); font-weight: 800;
}

details.box { padding: 0; margin-bottom: 10px; transition: border-color .15s; }
details.box[open] { border-color: var(--line-2); }
details.box > summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 17px; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
details.box > summary::after { content: "+"; margin-left: auto; color: var(--gold); font-size: 22px; line-height: 1; transition: transform .2s var(--ease-out); }
details.box[open] > summary::after { transform: rotate(45deg); }
details.box > summary::-webkit-details-marker { display: none; }
details.box > summary .toggle-hint { color: var(--gold); }
details.box > *:not(summary) { padding: 0 22px 18px; }
details.box[open] > summary { padding-bottom: 10px; }
details.inner { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 10px; background: var(--bg-2); }
details.inner > summary { cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--gold-light); }
.divider-top { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-on { background: var(--green); box-shadow: 0 0 0 4px rgba(60, 207, 110, .15); }
.dot-off { background: var(--red); box-shadow: 0 0 0 4px rgba(239, 79, 85, .15); }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.list-plain li:last-child { border-bottom: none; }
.flex { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.flex-between { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.ml-auto { margin-left: auto; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 48px; }
.mb-2 { margin-bottom: 12px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  display: grid; grid-template-columns: 110px 1fr; gap: 0 24px;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 3;
  font-family: var(--font-display); font-stretch: 62%; font-weight: 900; font-size: 72px; line-height: .85;
  color: transparent; -webkit-text-stroke: 1.5px var(--line-2); transition: -webkit-text-stroke-color .2s, color .2s;
}
.steps li:hover::before { color: var(--gold); -webkit-text-stroke-color: var(--gold); }
.steps h2 { margin: 0 0 6px; font-size: 30px; text-transform: uppercase; }
.steps p { margin: 0; color: var(--text-dim); font-size: 17px; }
.steps .btn-secondary { justify-self: start; }
@media (max-width: 560px) { .steps li { grid-template-columns: 64px 1fr; gap: 0 14px; } .steps li::before { font-size: 48px; } .steps h2 { font-size: 24px; } }

.countdown { display: inline-block; margin: 0 0 28px; }
.countdown-title { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.countdown-grid { display: flex; align-items: flex-start; gap: 10px; }
.countdown .cu { display: flex; flex-direction: column; align-items: center; min-width: 78px; padding: 12px 8px 10px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); }
.countdown .cu b { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: clamp(32px, 5vw, 46px); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.countdown .cu span { margin-top: 6px; font-size: 12px; color: var(--text-dim); }
.countdown .cu-sep { display: none; }
.countdown.countdown-live .countdown-title { color: var(--green); }
@media (max-width: 480px) { .countdown .cu { min-width: 0; flex: 1; } .countdown { display: block; } }

.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 760px; margin: 0 auto; background: #141417; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.cookie-banner.hide { display: none; }
.cookie-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 16px 20px; }
.cookie-icon { display: none; }
.cookie-text { flex: 1; min-width: 240px; }
.cookie-text strong { display: block; font-size: 15px; margin-bottom: 2px; }
.cookie-text p { margin: 0; font-size: 14px; color: var(--text-dim); }
.cookie-text a { color: var(--gold-light); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-cookie { white-space: nowrap; }
@media (max-width: 640px) {
  .cookie-actions { width: 100%; }
  .cookie-actions .btn-cookie { flex: 1; }
}

.no-select { -webkit-user-select: none; user-select: none; }
.no-select input, .no-select textarea, .no-select select, .no-select [contenteditable] { -webkit-user-select: text; user-select: text; }
.no-select img { -webkit-user-drag: none; }

.vn-ctx {
  position: fixed; z-index: 200; min-width: 200px; padding: 6px;
  border-radius: 10px; border: 1px solid var(--line-2); background: #151518;
  box-shadow: 0 12px 30px rgba(0,0,0,.6);
  display: none;
}
.vn-ctx.open { display: block; }
.vn-ctx-head { display: flex; align-items: center; gap: 8px; padding: 6px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-weight: 800; font-size: 14px; }
.vn-ctx-head img { width: 20px; height: 20px; }
.vn-ctx-head .gold { color: var(--gold); }
.vn-ctx button, .vn-ctx a {
  display: block; width: 100%; padding: 8px 10px; border: none; border-radius: 6px; background: transparent;
  color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.vn-ctx button:hover, .vn-ctx a:hover { background: #222227; color: var(--gold-light); }
.vn-ctx .vn-ctx-ico { display: none; }
.vn-ctx-sep { height: 1px; margin: 4px 0; background: var(--line); }

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

.wlx-user{display:flex;align-items:center;gap:12px}
.wlx-user img,.wlx-user .avatar-fallback{width:40px;height:40px;border-radius:50%}
.wlx-check{display:flex;gap:10px;align-items:flex-start}
.wlx-check input{margin-top:3px;accent-color:var(--gold)}
.wlx-field-err{color:#f58e92;font-size:13px;margin-top:4px}
.wlx-req:not([hidden]){display:block;color:#f58e92;font-size:13px;margin-top:4px}
.wlx-bar{position:sticky;top:64px;z-index:6;display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:24px}
.wlx-bar-left{display:flex;flex-direction:column;gap:2px}
.wlx-timer strong{font-size:19px;font-variant-numeric:tabular-nums}
.wlx-timer.is-low strong{color:#f58e92}
.wlx-q-head{display:flex;gap:10px;align-items:center;margin-bottom:10px}
.wlx-q-num{font-weight:700;color:var(--gold-light)}
.wlx-q-text{font-size:16px;margin:0 0 12px;font-weight:600}
.wlx-opt{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:8px;cursor:pointer}
.wlx-opt:hover{border-color:rgba(255,255,255,.25)}
.wlx-opt input{margin-top:3px;accent-color:var(--gold)}
.wlx-opt:has(input:checked){border-color:var(--gold);background:#1c1a14}
.wlx-steps{display:flex;flex-wrap:wrap;gap:6px;margin-top:16px}
.wlx-step-btn{min-width:34px;height:34px;padding:0 8px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--text-dim);font-weight:600;cursor:pointer}
.wlx-step-btn.is-current{border-color:var(--gold);color:var(--gold-light)}
.wlx-step-btn.is-done{background:#11241a;border-color:#24563a;color:#6fe39a}
.wlx-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px}
.wlx-mark{position:fixed;inset:0;z-index:9990;pointer-events:none;background-repeat:repeat}
.wlx-ended{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:rgba(8,8,10,.92);padding:16px}
.wlx-ended-box{max-width:460px;text-align:center}
.wlx.is-ended .wlx-bar,.wlx.is-ended form{filter:blur(4px);pointer-events:none;user-select:none}
.wlx-guarded .wlx-q-text,.wlx-guarded .wlx-opt span{user-select:none}
.wlx-qtimer{height:8px;border-radius:4px;background:#26262b;overflow:hidden;margin:0 0 6px}
.wlx-qtimer span{display:block;height:100%;width:100%;background:var(--gold)}
.wlx-qtimer.is-low span{background:#e5484d}
.wlx-qtimer.is-done span{background:#3a3a42}
.wlx-qinfo{margin:0 0 12px}
.wlx-qinfo.is-late{color:#f58e92}
.wlx-step-btn:disabled{opacity:.35;cursor:not-allowed}
.wlx-opt:has(input:disabled){cursor:default}
.dc-editor{border:1px solid var(--line);border-radius:var(--radius);background:var(--bg-2);overflow:hidden}
.dc-editor textarea{border:0;border-radius:0;background:transparent;resize:vertical;min-height:90px;width:100%}
.dc-toolbar{display:flex;flex-wrap:wrap;gap:4px;align-items:center;padding:6px;border-bottom:1px solid var(--line);background:#16161a}
.dc-toolbar button{min-width:30px;height:28px;padding:0 8px;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--text);font-size:13px;cursor:pointer}
.dc-toolbar button:hover{border-color:var(--gold);color:var(--gold-light)}
.dc-sep{width:1px;height:18px;background:var(--line);margin:0 4px}
.dc-count{margin-left:auto;font-size:12px;color:var(--text-faint)}
.dc-preview{border-top:1px dashed var(--line);padding:10px 12px;font-size:14px;line-height:1.45;color:#dbdee1;background:#313338;max-height:260px;overflow:auto}
.dc-empty{color:#80848e;font-style:italic}
.dc-code{background:#1e1f22;border-radius:4px;padding:1px 4px;font-family:Consolas,monospace;font-size:.9em}
.dc-pre{background:#1e1f22;border:1px solid #2b2d31;border-radius:6px;padding:8px 10px;margin:4px 0;white-space:pre-wrap;font-family:Consolas,monospace;font-size:13px}
.dc-quote{border-left:4px solid #4e5058;padding-left:10px;margin:2px 0}
.dc-h1{font-size:22px;font-weight:800;margin:6px 0 2px}
.dc-h2{font-size:18px;font-weight:800;margin:6px 0 2px}
.dc-h3{font-size:16px;font-weight:800;margin:6px 0 2px}
.dc-sub{font-size:12px;color:#949ba4}
.dc-list{margin:2px 0;padding-left:20px}
.dc-spoiler{background:#1e1f22;color:transparent;border-radius:3px;padding:0 2px;cursor:pointer;transition:color .15s}
.dc-spoiler:hover{color:inherit}
.dc-preview a,.dc-msg a{color:#00a8fc}
.dc-embed{position:relative;border-left:4px solid var(--gold);background:#2b2d31;border-radius:4px;padding:8px 12px;margin-top:6px;max-width:520px;color:#dbdee1;overflow:hidden}
.dc-embed-title{font-weight:700;margin-bottom:4px;padding-right:90px}
.dc-embed-title a{color:#00a8fc}
.dc-embed-desc{font-size:14px;padding-right:90px}
.dc-embed-field{margin-top:6px;font-size:13px}
.dc-embed-image{display:block;max-width:100%;max-height:320px;border-radius:4px;margin-top:8px}
.dc-embed-thumb{position:absolute;top:8px;right:10px;width:80px;height:80px;object-fit:cover;border-radius:4px}
.dc-embed-footer{font-size:12px;color:#949ba4;margin-top:8px}
.dc-embed-form{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.dc-embed-form .wide{grid-column:1/-1}
@media (max-width:700px){.dc-embed-form{grid-template-columns:1fr}}
[hidden]{display:none!important}
.exam-body .wlx-bar{top:8px}
.wlx-saved{margin-left:auto;text-align:right}
.wlx-intro-box{max-width:560px;text-align:left}
.wlx-intro-box ul{margin:10px 0 14px}
.wlx-intro-box li{margin-bottom:6px}
.wlx-q textarea.input{min-height:150px}
.tk-live{max-height:520px;overflow-y:auto;padding:4px 16px 14px}
.tk-msg{padding:8px 0;border-bottom:1px solid var(--line)}
.tk-msg:last-child{border-bottom:0}
.tk-msg-head{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tk-msg-body{font-size:14px;margin-top:4px;word-break:break-word}
.tk-msg.is-bot{opacity:.85}
.tk-msg.is-deleted .tk-msg-body{text-decoration:line-through;opacity:.6}
.sl-old{background:rgba(229,72,77,.08);border-left:3px solid #e5484d;padding:4px 8px;border-radius:4px;white-space:pre-wrap;word-break:break-word}
.sl-new{background:rgba(48,164,108,.08);border-left:3px solid #30a46c;padding:4px 8px;border-radius:4px;margin-top:4px;white-space:pre-wrap;word-break:break-word}
.act-bar{height:8px;border-radius:4px;background:#26262b;overflow:hidden;margin-bottom:2px}
.act-bar span{display:block;height:100%;background:var(--gold)}
.pt-search{display:flex;align-items:center;gap:6px;margin-left:auto;background:var(--panel-2);border:1px solid var(--line);border-radius:8px;padding:0 10px;height:34px}
.pt-search svg{width:16px;height:16px;opacity:.6}
.pt-search input{background:transparent;border:0;color:inherit;outline:0;width:200px;font:inherit;font-size:13px;transition:width .2s}
.pt-search{position:relative;transition:border-color .15s}
.pt-search:focus-within{border-color:var(--gold-dark)}
.pt-search:focus-within input{width:280px}
.pt-kbd,.pt-results kbd{padding:1px 6px;border:1px solid var(--line-2);border-radius:5px;font:600 10.5px/1.5 inherit;color:var(--text-faint);white-space:nowrap}
.pt-search:focus-within .pt-kbd{display:none}
.pt-search.is-loading svg{animation:ptPulse .8s ease-in-out infinite alternate}
@keyframes ptPulse{from{opacity:.3}to{opacity:1}}
.sz-live{position:relative}
.pt-results{position:absolute;top:calc(100% + 6px);right:0;z-index:60;width:min(480px,calc(100vw - 32px));max-height:min(70vh,560px);overflow-y:auto;padding:6px;border:1px solid var(--p-line-2,#33333a);border-radius:12px;background:#141418;box-shadow:0 18px 48px rgba(0,0,0,.6)}
.sz-live .pt-results{left:0;right:auto}
.pt-res-group+.pt-res-group{margin-top:4px;padding-top:4px;border-top:1px solid var(--p-line,#24242a)}
.pt-res-head{display:flex;justify-content:space-between;align-items:center;padding:6px 10px 4px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-faint)}
.pt-res-head a{font-size:11px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--gold-light)}
.pt-res-item{display:grid;gap:1px;padding:8px 10px;border-radius:8px;color:var(--text);text-decoration:none}
.pt-res-item:hover,.pt-res-item.is-active{background:#22222a}
.pt-res-title{font-size:13.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pt-res-meta{font-size:12px;color:var(--text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pt-results mark{background:rgba(242,181,29,.22);color:var(--gold-light);border-radius:3px;padding:0 1px}
.pt-res-empty{padding:14px 10px;font-size:13px;color:var(--text-faint);text-align:center}
.pt-res-all{display:flex;justify-content:space-between;align-items:center;margin-top:4px;border-top:1px solid var(--p-line,#24242a);border-radius:0 0 8px 8px;font-size:12.5px;color:var(--gold-light)}
.pt-bell{position:relative}
.pt-bell>summary{list-style:none;cursor:pointer;position:relative}
.pt-bell>summary::-webkit-details-marker{display:none}
.pt-bell-count{position:absolute;top:-4px;right:-4px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#e5484d;color:#fff;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center}
.pt-bell-menu{position:absolute;right:0;top:calc(100% + 8px);width:320px;max-width:86vw;background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 32px rgba(0,0,0,.45);z-index:50;overflow:hidden}
.pt-bell-head{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;border-bottom:1px solid var(--line)}
.pt-bell-item{display:flex;flex-direction:column;gap:2px;padding:9px 14px;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}
.pt-bell-item:hover{background:var(--panel-2)}
.pt-bell-item.is-new{border-left:3px solid var(--gold)}
.notif-row{padding:8px 0;border-bottom:1px solid var(--line)}
.notif-row.is-new{border-left:3px solid var(--gold);padding-left:10px}
.todo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px;padding:0 16px 16px}
.todo-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;color:inherit;text-decoration:none;background:var(--panel-2)}
.todo-item:hover{border-color:rgba(255,255,255,.25)}
.todo-item strong{font-size:20px;min-width:28px;text-align:center}
.todo-item span{font-size:13px}
.todo-red strong{color:#f58e92}
.todo-gold strong{color:var(--gold-light)}
.todo-sky strong{color:#7cc4ff}
.sn-banner{display:flex;align-items:center;gap:12px;padding:10px 16px;font-size:14px;border-bottom:1px solid var(--line)}
.sn-banner a{font-weight:600;text-decoration:underline}
.sn-banner span{flex:1}
.sn-info{background:#10233a;color:#cfe4ff}
.sn-warning{background:#2e2410;color:#ffe2a3}
.sn-danger{background:#3a1416;color:#ffd0d2}
.sn-success{background:#10291d;color:#c6f3da}
.panel-content>.sn-banner{border-radius:10px;border:1px solid var(--line);margin-bottom:16px}
.sn-close{background:transparent;border:0;color:inherit;font-size:20px;line-height:1;cursor:pointer;opacity:.7}
.sn-lock,.sn-lock body{overflow:hidden}
.sn-modal{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(5,5,8,.72);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);animation:snFade .2s var(--ease-out)}
.sn-modal[hidden]{display:none}
.sn-modal-box{width:100%;max-width:460px;background:var(--panel);border:1px solid var(--line-2);border-top:3px solid var(--sn-accent,var(--gold));border-radius:14px;padding:28px 24px 22px;text-align:center;box-shadow:0 24px 60px rgba(0,0,0,.55);animation:snPop .25s var(--ease-out)}
.sn-modal-icon{width:52px;height:52px;margin:0 auto 14px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:800;color:var(--sn-accent,var(--gold));background:color-mix(in srgb,var(--sn-accent,var(--gold)) 16%,transparent);border:1px solid color-mix(in srgb,var(--sn-accent,var(--gold)) 40%,transparent)}
.sn-modal-title{font-family:var(--font-display);font-size:22px;margin:0 0 10px;color:var(--text)}
.sn-modal-text{margin:0 0 22px;font-size:15px;line-height:1.6;color:var(--text-dim);overflow-wrap:anywhere}
.sn-modal-text a{color:var(--sn-accent,var(--gold));font-weight:600;text-decoration:underline}
.sn-modal-ok{min-width:160px;justify-content:center}
.sn-modal.sn-info,.sn-modal.sn-warning,.sn-modal.sn-danger,.sn-modal.sn-success{background:rgba(5,5,8,.72);color:var(--text)}
.sn-modal.sn-info{--sn-accent:#5aa9ff}
.sn-modal.sn-warning{--sn-accent:var(--gold)}
.sn-modal.sn-danger{--sn-accent:var(--red)}
.sn-modal.sn-success{--sn-accent:var(--green)}
@keyframes snFade{from{opacity:0}to{opacity:1}}
@keyframes snPop{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.sn-modal,.sn-modal-box{animation:none}}
.pn-note{padding:8px 0;border-bottom:1px solid var(--line)}
.ch-title{font-size:15px;margin:0 0 8px}
.ch-legend{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:6px;font-size:12px;color:var(--text-dim)}
.ch-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.ch-svg{width:100%;height:auto;display:block}
.ch-grid{stroke:rgba(255,255,255,.07);stroke-width:1}
.ch-axis{stroke:rgba(255,255,255,.22);stroke-width:1}
.ch-tick{fill:#8b8d98;font-size:12.5px;font-family:inherit}
.ch-hit{fill:transparent;cursor:default}
.ch-hit:hover{fill:rgba(255,255,255,.04)}
.ch-cross{stroke:rgba(255,255,255,.3);stroke-width:1;stroke-dasharray:3 3}
.ch-dot{stroke:var(--panel);stroke-width:2}
.ch-table{margin-top:6px}
.ch-tooltip{position:fixed;z-index:9000;pointer-events:none;background:#0f0f12;border:1px solid var(--line);border-radius:8px;padding:8px 10px;font-size:12px;line-height:1.5;color:#e4e4e7;box-shadow:0 8px 24px rgba(0,0,0,.5)}
.ch-tip-head{font-weight:700;color:#fff}
.ch-hbars{display:flex;flex-direction:column;gap:8px}
.ch-hrow{display:grid;grid-template-columns:minmax(90px,30%) 1fr 40px;align-items:center;gap:10px;font-size:13px}
.ch-hlabel{color:var(--text-dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ch-htrack{height:12px;background:#26262b;border-radius:4px;overflow:hidden}
.ch-htrack span{display:block;height:100%;border-radius:0 4px 4px 0}
.ch-hval{text-align:right;font-variant-numeric:tabular-nums}
.pt-search-btn{display:none}
@media (max-width:760px){.pt-search{display:none}.pt-search-btn{display:inline-flex}.pt-link span{display:none}.panel-topbar{gap:6px}}
@media (max-width:420px){.pt-link{display:none}}
@media (max-width:760px){.pt-bell-menu,.pt-tour-menu{position:fixed;left:8px;right:8px;top:62px;width:auto;max-width:none}}
.gmap{display:grid;grid-template-columns:1fr 280px;gap:12px;height:calc(100vh - 220px);min-height:460px}
.gmap-view{position:relative;overflow:hidden;border-radius:12px;border:1px solid var(--line);background:#0e1a24;cursor:grab;touch-action:none;user-select:none}
.gmap-view:active{cursor:grabbing}
.gmap-tiles img{position:absolute;left:0;top:0;transform-origin:0 0;pointer-events:none;image-rendering:auto}
.gmap-tiles img.is-base{filter:blur(.4px)}
.gmap-markers{position:absolute;inset:0;pointer-events:none}
.gmap-marker{position:absolute;left:0;top:0;width:0;height:0;border:0;padding:0;background:none;pointer-events:auto;cursor:pointer}
.gmap-dot{position:absolute;left:-6px;top:-6px;width:12px;height:12px;border-radius:50%;background:#3987e5;border:2px solid #0b0b0d;box-shadow:0 0 0 1px rgba(255,255,255,.4)}
.gmap-marker.is-vehicle .gmap-dot{border-radius:3px}
.gmap-marker.is-staff .gmap-dot{background:#efb320;box-shadow:0 0 0 2px #efb320}
.gmap-marker.is-selected .gmap-dot{transform:scale(1.5);box-shadow:0 0 0 3px #fff}
.gmap-label{position:absolute;left:10px;top:-9px;white-space:nowrap;font-size:11px;font-weight:600;color:#fff;background:rgba(0,0,0,.65);padding:1px 6px;border-radius:4px}
.gmap-controls{position:absolute;left:10px;top:10px;display:flex;gap:4px;flex-wrap:wrap;z-index:2}
.gmap-controls .is-active{border-color:var(--gold);color:var(--gold-light)}
.gmap-info{position:absolute;right:10px;bottom:10px;width:260px;z-index:3;font-size:13px;cursor:default}
.gmap-side{display:flex;flex-direction:column;overflow:hidden}
.gmap-list{overflow-y:auto;flex:1;padding:0 6px 8px}
.gmap-row{display:flex;align-items:center;gap:8px;width:100%;text-align:left;background:transparent;border:0;border-radius:8px;padding:6px 8px;color:inherit;cursor:pointer}
.gmap-row:hover,.gmap-row.is-selected{background:var(--panel-2)}
.gmap-row-id{min-width:30px;font-size:11px;color:#8b8d98;font-variant-numeric:tabular-nums}
.gmap-row-main{display:flex;flex-direction:column;flex:1;min-width:0}
.gmap-row-main strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:900px){.gmap{grid-template-columns:1fr;height:auto}.gmap-view{height:60vh}.gmap-side{max-height:320px}}
.perm-matrix th{font-size:10px;writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;padding:8px 4px;position:sticky;top:0;background:var(--panel);z-index:1}
.perm-matrix th:first-child{writing-mode:horizontal-tb;transform:none;font-size:12px}
.perm-matrix td.pm-cell{text-align:center;padding:4px}
.pm-yes{color:#6fe39a;font-weight:700}
.pt-tour{position:relative}
.pt-tour-menu{position:absolute;right:0;top:calc(100% + 8px);display:flex;flex-direction:column;min-width:220px;background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 32px rgba(0,0,0,.45);z-index:50;overflow:hidden}
.pt-tour-menu[hidden]{display:none!important}
.pt-tour-menu button{background:transparent;border:0;color:inherit;text-align:left;padding:10px 14px;font:inherit;font-size:13px;cursor:pointer}
.pt-tour-menu button:hover{background:var(--panel-2)}
.tour-overlay{position:fixed;inset:0;z-index:9500}
.tour-overlay.is-dim{background:rgba(0,0,0,.6)}
.tour-spot{position:fixed;z-index:9501;border-radius:10px;box-shadow:0 0 0 9999px rgba(0,0,0,.6),0 0 0 2px var(--gold);pointer-events:none;transition:all .2s ease}
.tour-box{position:fixed;z-index:9502;width:340px;max-width:calc(100vw - 24px);background:var(--panel);border:1px solid var(--gold);border-radius:12px;padding:14px 16px;box-shadow:0 16px 40px rgba(0,0,0,.55)}
.tour-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:6px}
.tour-head strong{color:var(--gold-light);font-size:15px}
.tour-text{font-size:13.5px;line-height:1.55;white-space:pre-line;color:#e4e4e7}
.tour-nav{display:flex;gap:6px;justify-content:flex-end;margin-top:12px}
.tour-nav .btn-ghost{margin-right:auto}
.panel-content table:not(.tbl) td{overflow-wrap:anywhere}
@media (max-width:600px){.panel-content .flex[style*="nowrap"]{flex-wrap:wrap!important}.panel-content td .flex[style*="nowrap"],.panel-content a.flex[style*="nowrap"]{flex-wrap:nowrap!important}}
.role-row>input.input{flex:1 1 180px;width:auto;min-width:0}

input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #4a4a52;
  background: var(--bg-input) no-repeat center / 12px 12px;
  cursor: pointer;
  vertical-align: middle;
  transition: background-color .15s var(--ease-out), border-color .15s var(--ease-out), box-shadow .15s var(--ease-out), transform .1s var(--ease-out);
}
input[type="checkbox"] { border-radius: 5px; }
input[type="radio"] { border-radius: 50%; }

input[type="checkbox"]:hover:not(:disabled),
input[type="radio"]:hover:not(:disabled),
label:hover > input[type="checkbox"]:not(:disabled),
label:hover > input[type="radio"]:not(:disabled) {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(242, 181, 29, .1);
}

input[type="checkbox"]:active:not(:disabled),
input[type="radio"]:active:not(:disabled) { transform: scale(.92); }

input[type="checkbox"]:checked {
  border-color: var(--gold);
  background-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='%23111' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
input[type="checkbox"]:indeterminate {
  border-color: var(--gold);
  background-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6h6' fill='none' stroke='%23111' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E");
}
input[type="radio"]:checked {
  border-color: var(--gold);
  background-color: var(--bg-input);
  box-shadow: inset 0 0 0 3.5px var(--bg-input), inset 0 0 0 9px var(--gold);
}
input[type="radio"]:checked:hover:not(:disabled),
label:hover > input[type="radio"]:checked:not(:disabled) {
  box-shadow: inset 0 0 0 3.5px var(--bg-input), inset 0 0 0 9px var(--gold), 0 0 0 3px rgba(242, 181, 29, .1);
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  cursor: not-allowed;
  opacity: .45;
}

input[type="checkbox"]:user-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239, 79, 85, .15);
}

@media (prefers-reduced-motion: reduce) {
  input[type="checkbox"], input[type="radio"] { transition: none; }
}

.vn-dialog-open { overflow: hidden; }
.vn-dialog-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(5, 5, 7, .62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .16s var(--ease-out);
}
.vn-dialog-backdrop.is-open { opacity: 1; }
.vn-dialog {
  width: 100%; max-width: 440px;
  background: var(--panel); border: 1px solid var(--line-2); border-top: 3px solid var(--gold);
  border-radius: 12px; padding: 22px 22px 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(242, 181, 29, .06);
  transform: translateY(10px) scale(.97); transition: transform .18s var(--ease-out);
}
.vn-dialog.is-danger { border-top-color: var(--red); }
.vn-dialog-backdrop.is-open .vn-dialog { transform: none; }
.vn-dialog-head { display: flex; align-items: center; gap: 12px; }
.vn-dialog-icon {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
  color: var(--gold-light); background: rgba(242, 181, 29, .12); border: 1px solid rgba(242, 181, 29, .35);
}
.vn-dialog.is-danger .vn-dialog-icon { color: #ff8a8f; background: rgba(239, 79, 85, .12); border-color: rgba(239, 79, 85, .4); }
.vn-dialog-title { margin: 0; font-size: 18px; line-height: 1.3; color: #fff; }
.vn-dialog-text { margin: 12px 0 0; color: var(--text-dim); font-size: 15px; line-height: 1.55; white-space: pre-wrap; }
.vn-dialog-input { margin-top: 14px; width: 100%; }
.vn-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.vn-dialog-actions button { min-width: 104px; }
.vn-toasts {
  position: fixed; right: 16px; bottom: 16px; z-index: 1100;
  display: grid; gap: 8px; max-width: min(380px, calc(100vw - 32px));
}
.vn-toast {
  padding: 12px 16px; border-radius: 10px; font-size: 14px; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(8px); transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
}
.vn-toast.is-open { opacity: 1; transform: none; }
.vn-toast.is-ok { border-left-color: var(--green); }
.vn-toast.is-err { border-left-color: var(--red); }
@media (max-width: 480px) {
  .vn-dialog { padding: 18px 16px 14px; }
  .vn-dialog-actions button { flex: 1 1 0; }
}
@media (prefers-reduced-motion: reduce) {
  .vn-dialog-backdrop, .vn-dialog, .vn-toast { transition: none; }
}

.admin-menu { position: relative; display: flex; }
.admin-menu > summary { list-style: none; }
.admin-menu > summary::-webkit-details-marker { display: none; }
.admin-menu-toggle { position: relative; width: auto; gap: 7px; padding: 0 11px; border: 1px solid #4a2326; background: #1d1012; color: #f58e92; font-size: 13px; font-weight: 700; }
.admin-menu-toggle:hover { background: #2a1214; color: #ffb3b6; }
.admin-menu[open] > .admin-menu-toggle, .admin-menu-toggle.is-current { background: #2a1214; border-color: #6e272b; color: #ffd0d2; }
.admin-menu-count { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.admin-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
  width: 360px; max-height: min(78vh, 680px); display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line-2); border-top: 2px solid #e5484d; border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55); overflow: hidden;
}
.admin-menu-head { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #111115; }
.admin-menu-head strong { font-size: 14px; }
.admin-menu-head small { font-size: 12px; color: var(--text-faint); }
.admin-menu-body { flex: 1; overflow-y: auto; padding: 4px 0 8px; scrollbar-width: thin; scrollbar-color: #2a2a31 transparent; }
.admin-menu-group + .admin-menu-group { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 2px; }
.admin-menu-group-label { margin: 0; padding: 9px 16px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.admin-menu-item { display: flex; align-items: center; gap: 11px; padding: 7px 16px; color: var(--text); }
.admin-menu-item .ico { flex-shrink: 0; color: #77746e; }
.admin-menu-item:hover { background: #1c1c21; color: #fff; }
.admin-menu-item:hover .ico { color: var(--gold); }
.admin-menu-item.active { background: #1f1b10; box-shadow: inset 3px 0 0 var(--gold); }
.admin-menu-item.active .ico { color: var(--gold); }
.admin-menu-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.admin-menu-text span { font-size: 13.5px; font-weight: 600; }
.admin-menu-text small { font-size: 12px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-menu-badge { flex: none; min-width: 22px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; text-align: center; background: #26262c; color: var(--text-dim); }
.admin-menu-badge.is-danger { background: #e5484d; color: #fff; }
.admin-menu-badge.is-warning { background: #2a200b; color: var(--gold-light); }
@media (max-width: 1180px) { .admin-menu-label { display: none; } .admin-menu-toggle { width: 34px; padding: 0; } }
@media (max-width: 760px) { .admin-menu-panel { position: fixed; left: 8px; right: 8px; top: 62px; width: auto; max-height: calc(100dvh - 76px); } }

.pt-bell-tools { display: inline-flex; align-items: center; gap: 10px; }
.pt-sound-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--text-dim); cursor: pointer; }
.pt-sound-toggle:hover { color: #fff; border-color: var(--line-2); }
.pt-sound-toggle .ico { width: 16px; height: 16px; }
.pt-sound-toggle .ico + .ico { display: none; }
.sound-off .pt-sound-toggle .ico { display: none; }
.sound-off .pt-sound-toggle .ico + .ico { display: inline; color: #f58e92; }

.vn-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 14px; color: var(--text-dim); }
.vn-back .ico { width: 16px; height: 16px; }
.grid-profile { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid-profile > * { min-width: 0; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
.grid-auto > * { min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack > * { margin-top: 0; margin-bottom: 0; }
.grid-profile.grid-sb { grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); }
@media (max-width: 1100px) { .grid-profile, .grid-profile.grid-sb { grid-template-columns: minmax(0, 1fr); } }

.profile-card { border-top: 3px solid var(--rank-color, var(--gold)) !important; }
.profile-card .profile-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 24px 20px 6px; }
.profile-card .profile-avatar { position: relative; }
.profile-card .profile-avatar img, .profile-card .profile-avatar .avatar-fallback { width: 112px; height: 112px; border-radius: 14px; border: 1px solid var(--p-line-2); }
.profile-card .profile-avatar .avatar-fallback { font-size: 38px; }
.profile-card .profile-star { position: absolute; right: -8px; bottom: -8px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gold); color: #121212; font-size: 15px; box-shadow: 0 0 0 3px var(--p-card); }
.profile-name { margin: 4px 0 0; font-size: 21px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.profile-sub { font-size: 13px; color: var(--text-faint); }
.profile-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rank-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #121212; background: var(--rank-color, var(--gold)); }
.badge-admin { border-color: #6e272b; background: #2a1214; color: #f58e92; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.kv { margin: 0; padding: 6px 20px 16px; }
.kv-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--p-line); font-size: 14px; }
.kv-row dt { color: var(--text-dim); flex-shrink: 0; }
.kv-row dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.kv-row.is-admin dt { color: #f58e92; }
.sens-mask { display: inline-flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.sens-dots { filter: blur(3px); letter-spacing: 2px; color: var(--text-dim); user-select: none; }
.sens-mask.is-open .sens-value { font-weight: 600; color: var(--gold-light, inherit); }
.sens-lock { display: flex; align-items: center; gap: 8px; }
.sens-lock .input { flex: 1; min-width: 0; }
.copy-chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px; border: 1px solid var(--p-line-2); border-radius: 7px; background: #0e0e11; color: var(--text); font: 600 13px/1.4 "Cascadia Mono", Consolas, monospace; cursor: pointer; }
.copy-chip:hover { border-color: var(--gold-dark); color: var(--gold-light); }
.copy-chip .ico { width: 14px; height: 14px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 20px; }
.profile-actions > *, .profile-actions form { flex: 1 1 auto; display: flex; }
.profile-actions form button { flex: 1; }
.profile-actions > a { justify-content: center; text-align: center; }
.gp-hero { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 10px; padding: 22px 24px; border: 1px solid var(--p-line-2); border-radius: 16px; background: linear-gradient(120deg, color-mix(in srgb, var(--gp-accent, #f2b51d) 20%, #141418) 0%, #141418 60%); }
.gp-hero::after { content: ""; position: absolute; right: -80px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gp-accent, #f2b51d) 28%, transparent), transparent 70%); pointer-events: none; }
.gp-hero > * { position: relative; z-index: 1; }
.gp-hero-avatar { flex-shrink: 0; }
.gp-hero-avatar img, .gp-hero-avatar .avatar-fallback { width: 88px; height: 88px; border-radius: 50%; border: 3px solid var(--gp-accent, #f2b51d); object-fit: cover; font-size: 30px; }
.gp-online-dot { position: absolute; right: 4px; bottom: 4px; width: 18px; height: 18px; border-radius: 50%; background: #3ccf6e; box-shadow: 0 0 0 3px #141418; }
.gp-hero-main { flex: 1 1 320px; min-width: 0; }
.gp-eyebrow { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gp-accent, var(--gold)); }
.gp-hero-main h1 { margin: 2px 0 0; font-size: 28px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.gp-hero-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 10px; font-size: 13px; color: var(--text-faint); }
.gp-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; max-width: 360px; justify-content: flex-end; }
.gp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.gp-tile { display: block; padding: 14px 16px; border: 1px solid var(--p-line); border-radius: 12px; background: var(--p-card); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.gp-tile:hover { border-color: var(--gold-dark); transform: translateY(-1px); }
.gp-tile small { display: block; margin-bottom: 4px; font-size: 12px; color: var(--text-faint); }
.gp-tile strong { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gp-tile.is-bad { border-color: #4a2326; background: linear-gradient(180deg, #1d1214, var(--p-card)); }
.gp-tile.is-bad strong { color: #f58e92; }
.gp-tile.is-good strong { color: #6fe39a; }
.gp-jump { position: sticky; top: 58px; z-index: 5; display: flex; gap: 6px; margin: 16px 0 4px; padding: 8px 0; overflow-x: auto; scrollbar-width: none; background: var(--p-bg, #0c0c0f); }
.gp-jump::-webkit-scrollbar { display: none; }
.gp-jump a { flex-shrink: 0; padding: 6px 13px; border: 1px solid var(--p-line-2); border-radius: 999px; font-size: 13px; color: var(--text-dim); text-decoration: none; white-space: nowrap; }
.gp-jump a:hover { color: var(--gold-light); border-color: var(--gold-dark); }
.gp-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 8px; }
.gp-layout > * { min-width: 0; }
@media (max-width: 1100px) { .gp-layout { grid-template-columns: minmax(0, 1fr); } .gp-hero-actions { max-width: none; justify-content: flex-start; } }
.gp-sec { scroll-margin-top: 120px; overflow: hidden; }
.gp-sec-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--p-line); background: #131317; }
.gp-sec-head .ico { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.gp-sec-head h2 { flex: 1; margin: 0; font-family: inherit; font-size: 15.5px; font-weight: 700; }
.gp-count { padding: 2px 9px; border-radius: 999px; background: #24242a; font-size: 12px; font-weight: 600; color: var(--text-dim); }
.gp-row { display: flex; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--p-line); }
.gp-sec-head + .gp-row, .gp-more > summary + .gp-row { border-top: 0; }
.gp-row-main { flex: 1; min-width: 0; }
.gp-stripe { flex-shrink: 0; width: 3px; border-radius: 3px; background: var(--line-2); }
.gp-stripe.is-bad { background: #ef4f55; }
.gp-stripe.is-warn { background: #f5a25d; }
.gp-stripe.is-ok { background: #3ccf6e; }
.gp-empty { padding: 22px 18px; text-align: center; font-size: 13px; color: var(--text-faint); }
.gp-more > summary { padding: 10px 18px; border-top: 1px solid var(--p-line); font-size: 13px; color: var(--gold-light); cursor: pointer; list-style: none; }
.gp-more > summary::-webkit-details-marker { display: none; }
.gp-more[open] > summary { color: var(--text-faint); }
.gp-foot { padding: 10px 18px; border-top: 1px solid var(--p-line); text-align: right; }
.gp-ids { display: grid; gap: 8px; margin: 0 18px 14px; padding: 12px; border: 1px dashed var(--p-line-2); border-radius: 10px; }
.gp-ids div { display: grid; gap: 4px; min-width: 0; font-size: 12.5px; }
.gp-ids span { color: var(--text-dim); }
.gp-ids .copy-chip { width: 100%; min-width: 0; justify-content: space-between; text-align: left; white-space: normal; word-break: break-all; font-size: 12px; }
.gp-ids .copy-chip .ico { flex-shrink: 0; }
.gp-note-form { display: grid; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--p-line); }
@media (max-width: 600px) { .gp-hero { padding: 18px 16px; } .gp-hero-main h1 { font-size: 23px; } .gp-row { padding: 12px 14px; } }
.bc-status { display: flex; flex-wrap: wrap; gap: 12px; }
.bc-status > div { flex: 1 1 220px; display: grid; gap: 2px; padding: 12px 16px; border: 1px solid var(--p-line); border-radius: 12px; background: var(--p-card); }
.bc-status small { font-size: 12px; color: var(--text-faint); }
.bc-status strong { font-size: 16px; }
.bc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px 20px; padding: 16px 18px 18px; }
.bc-field { display: grid; gap: 5px; align-content: start; min-width: 0; }
.bc-field .label { margin: 0; }
.bc-field select.input { width: 100%; }
.bc-key { justify-self: start; font-size: 11px; color: var(--text-faint); background: none; padding: 0; }
.bc-bool { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-size: 14px; cursor: pointer; }
.bc-bool input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--gold); }
.bc-ms { position: relative; display: grid; gap: 6px; }
.bc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-chips:empty { display: none; }
.bc-chip { padding: 4px 10px; border: 1px solid var(--p-line-2); border-radius: 999px; background: #18181d; color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; }
.bc-chip:hover { border-color: #6e272b; color: #f58e92; }
.bc-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; max-height: 260px; overflow-y: auto; margin-top: 4px; padding: 4px; border: 1px solid var(--p-line-2); border-radius: 10px; background: #141418; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.bc-opt { display: block; width: 100%; padding: 7px 10px; border: 0; border-radius: 7px; background: none; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.bc-opt:hover { background: #22222a; }
.bc-none { padding: 8px 10px; font-size: 13px; color: var(--text-faint); }
.bc-save { position: sticky; bottom: 0; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border: 1px solid var(--p-line-2); border-radius: 12px; background: rgba(20, 20, 24, .95); backdrop-filter: blur(6px); }
.pm-counter { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 20px 14px; }
.pm-counter div { padding: 10px; border: 1px solid var(--p-line); border-radius: 10px; text-align: center; background: #111115; }
.pm-counter strong { display: block; font-size: 22px; line-height: 1.1; }
.pm-counter span { font-size: 12px; color: var(--text-faint); }
.pm-counter .is-plus strong { color: #6fe39a; }
.pm-counter .is-minus strong { color: #f58e92; }

.vn-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--p-line-2); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.vn-tabs::-webkit-scrollbar { display: none; }
.vn-tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; margin-bottom: -1px; padding: 0 16px;
  border: 1px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0; background: none;
  color: var(--gold-light); font-family: inherit; font-size: 14.5px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer;
}
.vn-tab .ico { width: 17px; height: 17px; }
.vn-tab:hover { background: #17171c; }
.vn-tab.is-active { background: var(--p-card); border-color: var(--p-line-2); color: var(--text); font-weight: 700; }
.vn-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--p-card); }
.vn-tab-count { padding: 2px 7px; border-radius: 999px; background: #24242a; color: var(--text-dim); font-size: 12px; font-weight: 600; }
.vn-tab.is-admin { color: #f58e92; }
.vn-tab.is-admin.is-active { color: #ffd0d2; }
.card-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--p-line); }
.card-head small { display: block; font-size: 12.5px; color: var(--text-faint); margin-bottom: 2px; }
.card-head h3 { margin: 0; font-family: inherit; font-stretch: 100%; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.card-body { padding: 16px 20px 20px; }
.card-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--p-line); }
.card-danger { border-color: #4a2326 !important; }
.card-danger .card-head h3 { color: #f58e92; }
.card-warn { border-color: #6e5314 !important; }
.card-warn .card-head h3 { color: var(--gold-light); }
.history-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 12px 20px; border-top: 1px solid var(--p-line); }
.history-item:first-child { border-top: 0; }
.history-dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--line-2); box-shadow: 0 0 0 4px #1b1b20; }
.history-dot.is-plus { background: #3ccf6e; }
.history-dot.is-minus { background: #ef4f55; }
.history-dot.is-rank { background: var(--gold); }
.act-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.act-table th { padding: 6px 0; text-align: right; font-size: 12px; font-weight: 600; color: var(--text-faint); }
.act-table th:first-child, .act-table td:first-child { text-align: left; }
.act-table td { padding: 8px 0; border-top: 1px solid var(--p-line); text-align: right; font-variant-numeric: tabular-nums; }
.subrole-list { display: flex; flex-wrap: wrap; gap: 8px; }
.subrole-list form { display: inline-flex; }
.subrole-btn { cursor: pointer; padding: 5px 12px; font-size: 12.5px; }
.subrole-btn:not(.b-gold) { background: transparent; }
.subrole-btn:hover { border-color: var(--gold-dark); color: var(--gold-light); }
@media (max-width: 600px) {
  .vn-tab { padding: 0 11px; height: 40px; font-size: 13.5px; }
  .kv { padding: 6px 16px 14px; }
  .card-head, .card-body, .card-foot, .history-item { padding-left: 16px; padding-right: 16px; }
}

.sb-status { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--p-line); }
.sb-eq { display: inline-flex; align-items: flex-end; gap: 3px; width: 22px; height: 18px; }
.sb-eq i { flex: 1; height: 30%; border-radius: 2px; background: var(--text-faint); }
.sb-status.is-playing .sb-eq i { background: var(--green); animation: sbEq 1s ease-in-out infinite; }
.sb-status.is-playing .sb-eq i:nth-child(2) { animation-delay: -.3s; }
.sb-status.is-playing .sb-eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes sbEq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.sb-status-text { flex: 1; min-width: 200px; line-height: 1.35; }
.sb-status-text strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-status-text span { font-size: 13px; color: var(--text-dim); }
.sb-source { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; margin-bottom: 14px; }
.sb-source label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--p-line-2); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.sb-source label:has(input:checked) { border-color: var(--gold); background: #1c1a14; color: var(--gold-light); }
.sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.sb-tile { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--p-line-2); border-radius: 12px; background: #111115; min-width: 0; }
.sb-tile:hover { border-color: #3d3d46; }
.sb-tile-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-tile-meta { font-size: 12px; color: var(--text-faint); }
.sb-tile audio { width: 100%; height: 32px; }
.sb-tile-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.sb-tile-actions > *, .sb-tile-actions form { flex: 1 1 auto; display: flex; }
.sb-tile-actions form button { flex: 1; }
.sb-volume { display: flex; align-items: center; gap: 12px; }
.sb-volume input { flex: 1; accent-color: var(--gold); }
.sb-volume output { min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-dim); }

.rec-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--text-faint); flex-shrink: 0; }
.rec-status.is-rec .rec-dot { background: var(--red); box-shadow: 0 0 0 0 rgba(239,79,85,.6); animation: recPulse 1.6s ease-out infinite; }
@keyframes recPulse { 0% { box-shadow: 0 0 0 0 rgba(239,79,85,.55); } 100% { box-shadow: 0 0 0 12px rgba(239,79,85,0); } }
.rec-status.is-rec .sb-status-text strong { color: #f58e92; }
.rec-start { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.rec-start .ico { color: var(--red); }
.rec-start .rec-cue { flex: 0 1 230px; }
.rec-back { display: inline-flex; align-items: center; gap: 6px; }
.rec-back .ico { width: 15px; height: 15px; }
.rec-faces { display: flex; align-items: center; }
.rec-faces > * { margin-left: -6px; box-shadow: 0 0 0 2px var(--bg-2); border-radius: 50%; }
.rec-faces > :first-child { margin-left: 0; }
.rec-faces > span.xs { box-shadow: none; margin-left: 6px; }
@media (max-width: 640px) { .rec-table .hide-sm { display: none; } }

.rec-player { overflow: hidden; }
.rec-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--p-line); }
.rec-play { width: 44px; height: 44px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; }
.rec-clock { font-variant-numeric: tabular-nums; }
.rec-speed { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.rec-speed .input { width: auto; height: 32px; padding: 0 8px; }
.rec-timeline { --lane-label: 160px; position: relative; padding: 8px 0 12px; }
.rec-ruler { position: relative; height: 22px; margin-left: var(--lane-label); margin-right: 20px; border-bottom: 1px solid var(--p-line); }
.rec-ruler span { position: absolute; top: 2px; transform: translateX(-50%); font-size: 11px; color: var(--text-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rec-ruler span:first-child { transform: none; }
.rec-ruler span.is-end { transform: translateX(-100%); }
.rec-lane { display: grid; grid-template-columns: var(--lane-label) minmax(0, 1fr); align-items: center; height: 34px; padding-right: 20px; }
.rec-lane.is-off { opacity: .3; }
.rec-lane-name { display: flex; align-items: center; gap: 8px; padding: 0 12px 0 20px; min-width: 0; font-size: 13px; font-weight: 600; }
.rec-lane-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-lane.is-live .rec-lane-name { color: var(--c); }
.rec-lane.is-live .rec-lane-name img, .rec-lane.is-live .rec-lane-name .avatar-fallback { box-shadow: 0 0 0 2px var(--c); }
.rec-lane-track { position: relative; height: 18px; border-radius: 5px; background: #16161b; cursor: pointer; }
.rec-lane-track:hover { background: #1c1c22; }
.rec-lane-track i { position: absolute; top: 2px; bottom: 2px; min-width: 2px; border-radius: 3px; background: var(--c); opacity: .85; pointer-events: none; }
.rec-playhead { position: absolute; top: 8px; bottom: 6px; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,.5); pointer-events: none; }
@media (max-width: 640px) { .rec-ruler span:nth-child(even):not(.is-end) { display: none; } .rec-timeline { --lane-label: 96px; } .rec-lane-name { padding-left: 12px; } .rec-lane-name img, .rec-lane-name .avatar-fallback { display: none; } .rec-speed { margin-left: 0; } }

[data-rec-trim-toggle].is-on { border-color: var(--gold); color: var(--gold); }
.rec-trim { display: grid; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--p-line); background: #121216; }
.rec-trim[hidden] { display: none; }
.rec-trim-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.rec-trim .field { margin: 0; }
.rec-trim-src { flex: 1 1 220px; }
.rec-trim-time { flex: 0 1 190px; }
.rec-trim-input { display: flex; gap: 6px; align-items: center; }
.rec-trim-input .input { min-width: 0; font-variant-numeric: tabular-nums; }
.rec-trim-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.rec-trim-actions a.is-disabled { opacity: .45; pointer-events: auto; cursor: not-allowed; }
.rec-timeline.is-trim { user-select: none; touch-action: none; }
.rec-timeline.is-trim .rec-ruler, .rec-timeline.is-trim .rec-lane-track { cursor: crosshair; }
.rec-sel { position: absolute; top: 8px; bottom: 6px; border-left: 2px solid var(--gold); border-right: 2px solid var(--gold); background: rgba(242,181,29,.14); pointer-events: none; z-index: 2; min-width: 2px; }
.rec-sel i { position: absolute; top: 0; bottom: 0; width: 14px; cursor: ew-resize; pointer-events: auto; }
.rec-sel i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 26px; margin: -13px 0 0 -4px; border-radius: 4px; background: var(--gold); box-shadow: 0 0 0 2px #111; }
.rec-sel i[data-sel-edge="from"] { left: -8px; }
.rec-sel i[data-sel-edge="to"] { right: -8px; }
.rec-cut-btn { padding-left: 8px; padding-right: 8px; }
.rec-head-actions { gap: 8px; flex-wrap: wrap; }
.rec-cut-btn .ico { margin: 0; }
.rec-opts { gap: 12px; }
.rec-opts label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.rec-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 20px; border-bottom: 1px solid var(--p-line); }
.rec-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--p-line-2); border-radius: 999px; background: transparent; color: var(--text); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.rec-chip span { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.rec-chip.is-off { opacity: .4; text-decoration: line-through; }
.rec-log { position: relative; list-style: none; margin: 0; padding: 6px 0; max-height: 70vh; overflow-y: auto; }
.rec-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 20px; border-left: 3px solid transparent; }
.rec-row.is-seg { border-left-color: color-mix(in srgb, var(--c) 40%, transparent); }
.rec-row.is-seg:hover { background: #17171c; }
.rec-row.is-live { background: color-mix(in srgb, var(--c) 12%, transparent); border-left-color: var(--c); }
.rec-row.is-ev { grid-template-columns: 74px minmax(0, 1fr); padding-top: 4px; padding-bottom: 4px; }
.rec-row-time { display: flex; flex-direction: column; align-items: flex-start; padding: 0; border: 0; background: none; color: var(--text-dim); font: inherit; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: left; }
button.rec-row-time { cursor: pointer; }
button.rec-row-time:hover { color: var(--gold-light, var(--gold)); }
.rec-row-time small { font-size: 11px; font-weight: 500; color: var(--text-faint); }
.rec-row-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rec-row.is-ev .rec-row-main { display: block; }
.rec-row-who { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.rec-row-who strong { font-size: 14px; color: var(--c); }
.rec-wave { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.rec-wave i { width: 3px; height: 30%; border-radius: 1px; background: var(--c); animation: sbEq .9s ease-in-out infinite; }
.rec-wave i:nth-child(2) { animation-delay: -.2s; }
.rec-wave i:nth-child(3) { animation-delay: -.45s; }
.rec-wave i:nth-child(4) { animation-delay: -.7s; }
.rec-row.is-live .rec-wave { display: inline-flex; }
.rec-row [data-rec-solo-btn].is-on { border-color: var(--gold); color: var(--gold); }.rec-msg { margin-top: 3px; padding: 6px 10px; border-radius: 8px; background: #16161b; color: var(--text); font-size: 13px; white-space: normal; overflow-wrap: anywhere; }
.rec-person .avatar, .rec-person .avatar-fallback { margin-top: 2px; }
.rec-share { height: 4px; margin: 5px 0; border-radius: 2px; background: #1c1c22; overflow: hidden; }
.rec-share i { display: block; height: 100%; background: var(--c); }
.rec-row-btns { display: flex; gap: 6px; align-items: center; }
@media (max-width: 640px) { .rec-row { grid-template-columns: 58px minmax(0, 1fr); } .rec-row-btns { grid-column: 2; justify-self: start; } }
.btn-primary .ico, .btn-secondary .ico, .btn-danger .ico { width: 16px; height: 16px; }

.alert-warn { border-color: #6e5314; background: #2a200b; color: #ffe2a3; }
.profile-actions-danger { padding-top: 12px; border-top: 1px solid var(--p-line); margin-top: -8px; }
.vn-modal {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; overflow: hidden;
  border: 1px solid var(--line-2); border-top: 3px solid var(--gold); border-radius: 14px;
  background: var(--panel); color: var(--text); box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.vn-modal.is-wide { width: min(900px, calc(100vw - 24px)); }
.vn-modal.is-danger { border-top-color: var(--red); }
.vn-modal::backdrop { background: rgba(5,5,7,.65); backdrop-filter: blur(3px); }
.vn-modal[open] { display: flex; animation: vnModalIn .16s var(--ease-out); }
@keyframes vnModalIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.vn-modal-inner { display: flex; flex-direction: column; width: 100%; max-height: inherit; min-height: 0; }
.vn-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.vn-modal-head small { display: block; font-size: 12.5px; color: var(--text-faint); }
.vn-modal-head h2 { margin: 2px 0 0; font-family: inherit; font-stretch: 100%; font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.vn-modal-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px; }
.vn-modal-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--line); background: #111115; }
@media (max-width: 600px) { .vn-modal-foot > * { flex: 1 1 auto; } }
.rc-hero { max-width: 760px; }
.rc-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.rc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.rc-tile { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 170px; padding: 20px 18px 18px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(160deg, #18181d, #111114); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.rc-tile:hover { border-color: var(--gold-dark); transform: translateY(-2px); }
.rc-tile.is-closed { opacity: .62; }
.rc-emoji { font-size: 30px; line-height: 1; }
.rc-tile strong { font-size: 17px; }
.rc-desc { flex: 1; font-size: 13px; line-height: 1.5; color: var(--text-dim); }
.rc-state { align-self: flex-start; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.rc-state.is-open { background: #11241a; color: #6fe39a; border: 1px solid #24563a; }
.rc-state.is-closed { background: #241314; color: #f58e92; border: 1px solid #4a2326; }
.rc-type-head { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.rc-type-emoji { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 64px; height: 64px; border-radius: 16px; background: #18181d; border: 1px solid var(--line); font-size: 32px; }
.rc-form { display: grid; gap: 18px; max-width: 760px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.rc-form-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rc-field { display: grid; gap: 6px; }
.rc-field .label { margin: 0; font-size: 14.5px; color: var(--text); }
.rc-req { color: var(--gold); }
.rc-help { margin-top: -2px; }
.rc-field.has-error .input { border-color: #ef4f55; }
.rc-error { font-size: 12.5px; color: #f58e92; }
.rc-count { text-align: right; }
.rc-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-check { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 14px; cursor: pointer; }
.rc-check:has(input:checked) { border-color: var(--gold-dark); background: #1d1a10; }
.rc-check input { accent-color: var(--gold); }
.ap-types { display: flex; gap: 8px; margin: 14px 0 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.ap-type { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 8px 12px; border: 1px solid var(--p-line-2, var(--line-2)); border-radius: 10px; background: var(--p-card, var(--bg-2)); color: var(--text-dim); text-decoration: none; font-size: 13.5px; }
.ap-type:hover { border-color: var(--gold-dark); color: var(--text); }
.ap-type.is-active { border-color: var(--gold); color: var(--text); background: #1d1a10; }
.ap-type em { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #24242a; font-style: normal; font-size: 12px; text-align: center; }
.ap-type em.has { background: var(--gold); color: #121212; font-weight: 700; }
.ap-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ap-filters .input { flex: 1 1 200px; max-width: 320px; }
.ap-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--p-line, var(--line)); color: var(--text); text-decoration: none; }
.ap-row:first-child { border-top: 0; }
a.ap-row:hover { background: #18181d; }
.ap-row-emoji { font-size: 22px; flex-shrink: 0; }
.ap-row-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ap-row-main strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-head { display: flex; gap: 16px; align-items: center; margin: 10px 0 16px; padding: 18px 20px; border: 1px solid var(--p-line-2, var(--line-2)); border-radius: 14px; background: linear-gradient(120deg, #1d1a10, #141418 60%); }
.ap-head-emoji { font-size: 38px; flex-shrink: 0; }
.ap-title { margin: 2px 0 8px; font-size: 24px; font-weight: 800; overflow-wrap: anywhere; }
.ap-answer { padding: 14px 18px; border-top: 1px solid var(--p-line, var(--line)); }
.gp-sec-head + .ap-answer { border-top: 0; }
.ap-q { font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 4px; }
.ap-q span { color: var(--gold); }
.ap-a { font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.ap-form { display: grid; gap: 8px; padding: 14px 18px 18px; }
.ap-form .label { margin: 4px 0 0; }
.ap-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ap-others { display: grid; gap: 6px; padding: 0 18px 16px; }
.ap-others small { font-size: 12px; color: var(--text-faint); }
.ap-others a { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text); }
.ap-portal { padding: 8px 0 32px; background: transparent; }
.ap-gate { max-width: 560px; margin: 30px auto; padding: 32px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); text-align: center; }
.ap-gate-emoji { font-size: 44px; }
.fq-list { display: grid; }
.fq-row { display: grid; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--p-line); }
.fq-row:first-child { border-top: 0; }
.fq-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fq-top input[name="f_label[]"] { flex: 1 1 260px; }
.fq-type { flex: 0 1 180px; }
.fq-req { flex: 0 1 130px; }
.fq-handle { color: var(--text-faint); letter-spacing: -2px; }
.fq-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 6px; padding-left: 22px; }
.fq-len { display: flex; align-items: center; gap: 6px; }
.fq-len .input { width: 90px; }
.fq-options { grid-column: 1 / -1; }
@media (max-width: 600px) { .rc-form { padding: 16px; } .fq-more { padding-left: 0; } .ap-head { padding: 14px; } }
.rec-opts { flex: 1 1 100%; margin: 4px 0 0; padding: 0; border: 0; min-width: 0; }
.rec-opts legend { font-size: 12px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; padding: 0; }
.rec-opts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .rec-opts-grid { grid-template-columns: minmax(0, 1fr); } }
.rec-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--p-line-2, #2e2e36); border-radius: 10px; background: var(--p-card-2, #1a1a1f); cursor: pointer; transition: border-color .15s, background .15s; }
.rec-opt:hover { border-color: rgba(242, 181, 29, .45); }
.rec-opt:has(input:checked) { border-color: var(--gold); background: rgba(242, 181, 29, .07); }
.rec-opt input { margin-top: 2px; flex-shrink: 0; }
.rec-opt span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rec-opt strong { font-size: 13.5px; }
.rec-opt small { font-size: 12px; color: var(--text-faint); line-height: 1.35; }
.rec-start > .btn-primary { margin-left: auto; }
.rec-trolls { margin: 0 20px 18px; padding: 12px 14px; border: 1px solid var(--p-line-2, #2e2e36); border-radius: 10px; }
.rec-trolls-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.rec-troll { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--p-line, #232329); margin: 0; }
.rec-troll:first-of-type { border-top: 0; }
.rec-troll > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
@media (max-width: 640px) { .rec-start > .field { flex: 1 1 100%; } .rec-start > .btn-primary { width: 100%; justify-content: center; } }
.u-accent-color-f87171{accent-color:#f87171!important}
.u-accent-color-facc15{accent-color:#facc15!important}
.u-accent-color-gold{accent-color:var(--gold)!important}
.u-ai-baseline{align-items:baseline!important}
.u-ai-center{align-items:center!important}
.u-ai-flex-end{align-items:flex-end!important}
.u-ai-flex-start{align-items:flex-start!important}
.u-as-center{align-self:center!important}
.u-as-start{align-self:start!important}
.u-bcol-separate{border-collapse:separate!important}
.u-bd-0{border:0!important}
.u-bdb-1px-solid-line{border-bottom:1px solid var(--line)!important}
.u-bdb-1px-solid-rgba-255-255-255-0d05{border-bottom:1px solid rgba(255,255,255,0.05)!important}
.u-bdb-1px-solid-rgba-255-255-255-0d06{border-bottom:1px solid rgba(255,255,255,0.06)!important}
.u-bdc-e5484d{border-color:#e5484d!important}
.u-bdc-rgba-239-179-32-d45{border-color:rgba(239,179,32,.45)!important}
.u-bdt-1px-solid-glass-border{border-top:1px solid var(--glass-border)!important}
.u-bdt-1px-solid-line{border-top:1px solid var(--line)!important}
.u-bdt-1px-solid-rgba-255-255-255-d06{border-top:1px solid rgba(255,255,255,.06)!important}
.u-bg-15151a{background:#15151a!important}
.u-bg-1c1a14{background:#1c1a14!important}
.u-bg-rgba-239-179-32-d06{background:rgba(239,179,32,.06)!important}
.u-br-0{border-radius:0!important}
.u-br-30pc{border-radius:30%!important}
.u-bsp-0-3px{border-spacing:0 3px!important}
.u-c-34d399{color:#34d399!important}
.u-c-38bdf8{color:#38bdf8!important}
.u-c-3ddfa5{color:#3ddfa5!important}
.u-c-52525b{color:#52525b!important}
.u-c-6c6a66{color:#6c6a66!important}
.u-c-6cc3f2{color:#6cc3f2!important}
.u-c-6fe39a{color:#6fe39a!important}
.u-c-d4d4d8{color:#d4d4d8!important}
.u-c-d6d3cc{color:#d6d3cc!important}
.u-c-efb320{color:#efb320!important}
.u-c-f58e92{color:#f58e92!important}
.u-c-f5a25d{color:#f5a25d!important}
.u-c-f87171{color:#f87171!important}
.u-c-fb923c{color:#fb923c!important}
.u-c-fbbf24{color:#fbbf24!important}
.u-c-ff8a8a{color:#ff8a8a!important}
.u-c-ffa057{color:#ffa057!important}
.u-c-ffcb47{color:#ffcb47!important}
.u-c-fff{color:#fff!important}
.u-c-gold{color:var(--gold)!important}
.u-c-gold-light{color:var(--gold-light)!important}
.u-c-text-dim{color:var(--text-dim)!important}
.u-cur-default{cursor:default!important}
.u-cur-pointer{cursor:pointer!important}
.u-f-1{flex:1!important}
.u-f-2{flex:2!important}
.u-f-none{flex:none!important}
.u-ff-consolas-monospace{font-family:Consolas,monospace!important}
.u-ff-font-display{font-family:var(--font-display)!important}
.u-ff-monospace{font-family:monospace!important}
.u-filter-drop-shadow-0-8px-26px-rgba-0-0-0-d5{filter:drop-shadow(0 8px 26px rgba(0,0,0,.5))!important}
.u-font-variant-numeric-tabular-nums{font-variant-numeric:tabular-nums!important}
.u-fs-12px{font-size:12px!important}
.u-fs-15px{font-size:15px!important}
.u-fs-16px{font-size:16px!important}
.u-fs-17px{font-size:17px!important}
.u-fs-18px{font-size:18px!important}
.u-fs-20px{font-size:20px!important}
.u-fs-21px{font-size:21px!important}
.u-fs-22px{font-size:22px!important}
.u-fs-23px{font-size:23px!important}
.u-fs-24px{font-size:24px!important}
.u-fs-26px{font-size:26px!important}
.u-fs-28px{font-size:28px!important}
.u-fs-30px{font-size:30px!important}
.u-fs-32px{font-size:32px!important}
.u-fs-96px{font-size:96px!important}
.u-fsh-0{flex-shrink:0!important}
.u-fw-400{font-weight:400!important}
.u-fw-600{font-weight:600!important}
.u-fw-700{font-weight:700!important}
.u-fwr-nowrap{flex-wrap:nowrap!important}
.u-fwr-wrap{flex-wrap:wrap!important}
.u-gap-10px{gap:10px!important}
.u-gap-12px{gap:12px!important}
.u-gap-14px{gap:14px!important}
.u-gap-28px{gap:28px!important}
.u-gap-4px{gap:4px!important}
.u-gap-6px{gap:6px!important}
.u-gap-8px{gap:8px!important}
.u-gc-1s-1{grid-column:1/-1!important}
.u-gc-span-2{grid-column:span 2!important}
.u-gp-accent-gold{--gp-accent:var(--gold)!important}
.u-gtc-1fr-1fr{grid-template-columns:1fr 1fr!important}
.u-gtc-2fr-1fr{grid-template-columns:2fr 1fr!important}
.u-gtc-2fr-1fr-1fr-auto{grid-template-columns:2fr 1fr 1fr auto!important}
.u-gtc-2fr-1fr-1fr-auto-auto{grid-template-columns:2fr 1fr 1fr auto auto!important}
.u-gtc-3fr-1fr{grid-template-columns:3fr 1fr!important}
.u-jc-center{justify-content:center!important}
.u-jc-flex-end{justify-content:flex-end!important}
.u-jc-space-between{justify-content:space-between!important}
.u-lh-1d6{line-height:1.6!important}
.u-ls-1d5px{letter-spacing:1.5px!important}
.u-lst-none{list-style:none!important}
.u-m-0{margin:0!important}
.u-m-0-0-12px{margin:0 0 12px!important}
.u-m-0-0-14px{margin:0 0 14px!important}
.u-m-0-0-18px{margin:0 0 18px!important}
.u-m-0-0-2px{margin:0 0 2px!important}
.u-m-0-0-4px{margin:0 0 4px!important}
.u-m-0-0-6px{margin:0 0 6px!important}
.u-m-0-0-8px{margin:0 0 8px!important}
.u-m-0-16px-12px{margin:0 16px 12px!important}
.u-m-0-auto{margin:0 auto!important}
.u-m-0-auto-22px{margin:0 auto 22px!important}
.u-m-10px-0-0{margin:10px 0 0!important}
.u-m-12px-0-0{margin:12px 0 0!important}
.u-m-12px-0-8px{margin:12px 0 8px!important}
.u-m-12px-auto{margin:12px auto!important}
.u-m-14px-0-0{margin:14px 0 0!important}
.u-m-14px-0-4px{margin:14px 0 4px!important}
.u-m-14px-auto-0{margin:14px auto 0!important}
.u-m-2px-0-0{margin:2px 0 0!important}
.u-m-2px-0-6px{margin:2px 0 6px!important}
.u-m-32px-0-0{margin:32px 0 0!important}
.u-m-4px-0{margin:4px 0!important}
.u-m-4px-0-0{margin:4px 0 0!important}
.u-m-6px-0-0{margin:6px 0 0!important}
.u-m-6px-0-10px{margin:6px 0 10px!important}
.u-m-8px-0-0{margin:8px 0 0!important}
.u-m-8px-0-4px{margin:8px 0 4px!important}
.u-m-n6px-0-12px{margin:-6px 0 12px!important}
.u-maxh-200px{max-height:200px!important}
.u-maxh-70vh{max-height:70vh!important}
.u-maxw-130px{max-width:130px!important}
.u-maxw-140px{max-width:140px!important}
.u-maxw-150px{max-width:150px!important}
.u-maxw-160px{max-width:160px!important}
.u-maxw-170px{max-width:170px!important}
.u-maxw-180px{max-width:180px!important}
.u-maxw-190px{max-width:190px!important}
.u-maxw-200px{max-width:200px!important}
.u-maxw-220px{max-width:220px!important}
.u-maxw-230px{max-width:230px!important}
.u-maxw-240px{max-width:240px!important}
.u-maxw-260px{max-width:260px!important}
.u-maxw-280px{max-width:280px!important}
.u-maxw-300px{max-width:300px!important}
.u-maxw-320px{max-width:320px!important}
.u-maxw-340px{max-width:340px!important}
.u-maxw-360px{max-width:360px!important}
.u-maxw-400px{max-width:400px!important}
.u-maxw-420px{max-width:420px!important}
.u-maxw-480px{max-width:480px!important}
.u-maxw-520px{max-width:520px!important}
.u-maxw-560px{max-width:560px!important}
.u-maxw-600px{max-width:600px!important}
.u-maxw-620px{max-width:620px!important}
.u-maxw-680px{max-width:680px!important}
.u-maxw-700px{max-width:700px!important}
.u-maxw-760px{max-width:760px!important}
.u-mb-0{margin-bottom:0!important}
.u-mb-10px{margin-bottom:10px!important}
.u-mb-12px{margin-bottom:12px!important}
.u-mb-14px{margin-bottom:14px!important}
.u-mb-18px{margin-bottom:18px!important}
.u-mb-2px{margin-bottom:2px!important}
.u-mb-4px{margin-bottom:4px!important}
.u-mb-6px{margin-bottom:6px!important}
.u-mb-8px{margin-bottom:8px!important}
.u-minw-0{min-width:0!important}
.u-minw-160px{min-width:160px!important}
.u-minw-180px{min-width:180px!important}
.u-minw-220px{min-width:220px!important}
.u-minw-420px{min-width:420px!important}
.u-minw-760px{min-width:760px!important}
.u-minw-90px{min-width:90px!important}
.u-ml-8px{margin-left:8px!important}
.u-ml-auto{margin-left:auto!important}
.u-mt-0{margin-top:0!important}
.u-mt-12px{margin-top:12px!important}
.u-mt-16px{margin-top:16px!important}
.u-mt-18px{margin-top:18px!important}
.u-mt-3px{margin-top:3px!important}
.u-mt-4px{margin-top:4px!important}
.u-mt-6px{margin-top:6px!important}
.u-mt-8px{margin-top:8px!important}
.u-of-cover{object-fit:cover!important}
.u-ov-auto{overflow:auto!important}
.u-ov-hidden{overflow:hidden!important}
.u-p-0{padding:0!important}
.u-p-0-16px-16px{padding:0 16px 16px!important}
.u-p-0-20px{padding:0 20px!important}
.u-p-0-20px-14px{padding:0 20px 14px!important}
.u-p-0-20px-16px{padding:0 20px 16px!important}
.u-p-0-24px-16px{padding:0 24px 16px!important}
.u-p-0-24px-20px{padding:0 24px 20px!important}
.u-p-10px-14px{padding:10px 14px!important}
.u-p-10px-18px{padding:10px 18px!important}
.u-p-12px{padding:12px!important}
.u-p-14px{padding:14px!important}
.u-p-14px-16px{padding:14px 16px!important}
.u-p-14px-18px{padding:14px 18px!important}
.u-p-14px-20px{padding:14px 20px!important}
.u-p-16px-18px{padding:16px 18px!important}
.u-p-18px-0{padding:18px 0!important}
.u-p-24px{padding:24px!important}
.u-p-28px-24px{padding:28px 24px!important}
.u-p-28px-26px{padding:28px 26px!important}
.u-p-30px-0{padding:30px 0!important}
.u-p-32px{padding:32px!important}
.u-p-3px-0{padding:3px 0!important}
.u-p-40px-16px{padding:40px 16px!important}
.u-p-40px-20px{padding:40px 20px!important}
.u-p-48px-16px{padding:48px 16px!important}
.u-p-48px-20px{padding:48px 20px!important}
.u-p-60px-16px{padding:60px 16px!important}
.u-p-6px-0{padding:6px 0!important}
.u-p-6px-8px{padding:6px 8px!important}
.u-p-7px-0{padding:7px 0!important}
.u-p-80px-16px{padding:80px 16px!important}
.u-p-8px-0{padding:8px 0!important}
.u-pl-18px{padding-left:18px!important}
.u-pl-20px{padding-left:20px!important}
.u-pr-14px{padding-right:14px!important}
.u-pt-0{padding-top:0!important}
.u-pt-44px{padding-top:44px!important}
.u-pt-6px{padding-top:6px!important}
.u-pt-8px{padding-top:8px!important}
.u-ta-center{text-align:center!important}
.u-ta-left{text-align:left!important}
.u-ta-right{text-align:right!important}
.u-td-underline{text-decoration:underline!important}
.u-tov-ellipsis{text-overflow:ellipsis!important}
.u-tt-uppercase{text-transform:uppercase!important}
.u-va-top{vertical-align:top!important}
.u-wb-break-all{word-break:break-all!important}
.u-ws-nowrap{white-space:nowrap!important}
.u-ws-pre-wrap{white-space:pre-wrap!important}
.h-sub{font-size:17px;margin-bottom:10px}
.gold-text{color:var(--gold-light)}
.link-gold{color:var(--gold-light)}
.link-gold:hover{text-decoration:underline}
.span-2{grid-column:span 2}
.m-0{margin:0}
.m-tight{margin:4px 0 0}
.nowrap{white-space:nowrap}
.text-center{text-align:center}
.cell-wide{max-width:360px;overflow-wrap:anywhere}
.gap-6{gap:6px}
.input-sm{padding:6px 10px;font-size:13px}
.w-130{width:130px}
.pay-state{padding:12px 14px;border:1px solid var(--line-2);border-radius:var(--radius);background:var(--bg-2);font-weight:600;margin-bottom:12px}
.pay-state.is-ok{border-color:#24563a;background:#11241a;color:#a3f0bd}
.pay-state.is-warn{border-color:#6b4e12;background:#231b0a;color:#fcd581}
.pay-state.is-bad{border-color:#6e272b;background:#2a1214;color:#f8b3b6}
.pay-steps{margin:0 0 10px;padding-left:20px;line-height:1.8}
.pay-code{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;border:1px dashed var(--gold-dark);border-radius:var(--radius);background:rgba(242,181,29,.06)}
.pay-code span{font-family:var(--font-display);font-size:24px;font-weight:800;letter-spacing:2px;color:var(--gold-light);user-select:all}
.gw-page{padding:48px 16px}
.gw-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}
.gw-card{display:flex;flex-direction:column;gap:8px}
.gw-card.is-ended{opacity:.85}
.gw-title{font-size:22px;margin:4px 0 0}
.gw-prize{font-size:17px;color:var(--gold-light)}
.gw-options{display:flex;flex-direction:column;gap:10px;margin:4px 0}
.gw-opt{padding:8px 10px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg-2)}
.gw-opt.is-picked{border-color:var(--gold-dark)}
.gw-bar{height:6px;margin-top:6px;border-radius:3px;background:var(--line);overflow:hidden}
.gw-bar span{display:block;height:100%;width:0;background:var(--gold);transition:width .4s var(--ease-out)}
.gw-vote{margin-top:6px}
.gw-winners{font-weight:700;color:var(--gold-light)}
.gw-in{color:#6fe39a;font-weight:600}
.gw-desc{color:#d8d5ce;line-height:1.55;overflow-wrap:anywhere}
.gw-desc .dc-h1,.gw-desc .dc-h2,.gw-desc .dc-h3{color:var(--text)}
.gw-row-deleted td{opacity:.5}
.gw-row-deleted td:first-child a,.gw-row-deleted td:first-child .xs{text-decoration:line-through}
@media (max-width:640px){.gw-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.pay-code span{font-size:20px}}
.bday-alert{border-color:#6e5314;background:linear-gradient(90deg,#2a200b,#1c1608);color:#ffe2a3}
.bday-alert strong{color:var(--gold-light)}
.bday-today strong,.bday-today a{color:var(--gold-light)}
.bday-cake{cursor:default}
.bday-confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:9999}
.bday-confetti i{position:absolute;top:-24px;width:8px;height:14px;border-radius:2px;opacity:.95;animation-name:bday-fall;animation-timing-function:linear;animation-fill-mode:both}
@keyframes bday-fall{from{transform:translate3d(0,0,0) rotate(0)}to{transform:translate3d(var(--dx),110vh,0) rotate(var(--rot));opacity:.3}}
@media (prefers-reduced-motion:reduce){.bday-confetti{display:none}}
.rate-input{display:inline-flex;flex-direction:row-reverse;gap:2px;border:0;padding:0;margin:4px 0 0}
.rate-input input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.rate-input label{font-size:26px;line-height:1;cursor:pointer;color:var(--text-faint);transition:color .12s,transform .12s}
.rate-input label:hover,.rate-input label:hover~label,.rate-input input:checked~label{color:var(--gold)}
.rate-input label:hover{transform:scale(1.12)}
.rate-input input:focus-visible+label{outline:2px solid var(--gold);outline-offset:2px;border-radius:4px}
.rate-show{color:var(--gold);letter-spacing:1px;white-space:nowrap}
.rate-show .faint{color:var(--text-faint)}
.push-card{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.push-card .push-state{flex:1 1 220px}
.rm-card { padding: 0; overflow: hidden; }
.rm-head { padding: 18px 22px 12px; border-bottom: 1px solid var(--line); }
.rm-head small { color: var(--text-dim); font-size: 13px; }
.rm-head h2 { margin: 2px 0 4px; font-size: 20px; }
.rm-head p { margin: 0; }
.rm-scroll { overflow: auto; max-height: 75vh; }
.rm-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; }
.rm-table th, .rm-table td { border-bottom: 1px solid var(--line); }
.rm-table thead th { position: sticky; top: 0; z-index: 2; background: var(--panel); vertical-align: bottom; }
.rm-table .rm-name { position: sticky; left: 0; z-index: 1; background: var(--panel); text-align: left; font-weight: 500; padding: 12px 16px 12px 22px; min-width: 260px; max-width: 360px; }
.rm-table thead .rm-name { z-index: 3; }
.rm-table .rm-name small { display: block; color: var(--text-faint); font-size: 11px; font-weight: 400; margin-top: 2px; }
.rm-col { padding: 14px 4px 10px; min-width: 46px; }
.rm-col span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-weight: 700; font-size: 13px; letter-spacing: .02em; max-height: 170px; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
.rm-col.is-locked span { opacity: .55; }
.rm-table td { text-align: center; padding: 8px 4px; }
.rm-table td input { width: 18px; height: 18px; accent-color: #3b82f6; cursor: pointer; }
.rm-table td input:disabled { cursor: not-allowed; opacity: .45; }
.rm-table tbody tr:not(.rm-group):hover th, .rm-table tbody tr:not(.rm-group):hover td { background: var(--panel-2); }
.rm-group th, .rm-group td { background: var(--bg-2); font-weight: 700; font-size: 13px; padding-top: 14px; padding-bottom: 10px; }
.rm-group th.rm-name { background: var(--bg-2); }
.rm-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
@media (max-width: 700px) { .rm-table .rm-name { min-width: 170px; padding-left: 14px; } }
.rm-roles-info { padding: 0; overflow: hidden; }
.rm-roles-info > summary { cursor: pointer; list-style: none; }
.rm-roles-info > summary::-webkit-details-marker { display: none; }
.rm-roles-info[open] > summary { border-bottom: 1px solid var(--line); }
.rm-roles-grid { padding: 16px 22px 20px; gap: 14px; }
.rm-roles-grid ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }

.ip-mask { display: inline-flex; align-items: center; gap: 5px; padding: 1px 7px; border: 1px dashed var(--line-2); border-radius: 6px; background: transparent; color: var(--text-dim); font: inherit; font-size: 11px; cursor: pointer; }
.ip-mask .ico { width: 12px; height: 12px; }
.ip-mask:hover { color: var(--text); border-color: var(--gold-dark); }
.ip-mask.is-open { border-style: solid; color: var(--text); cursor: text; user-select: all; font-family: Consolas, monospace; }
