/* =========================================================
   BLOCK DEPOT — Player Service Center
   Warm paper / ink / signal-lime. Flat, editorial, engineered.
   ========================================================= */

:root {
  --paper: #f7f7f7;
  --paper-deep: #f0f0f0;
  --card: #ffffff;
  --card-strong: #ffffff;
  --ink: #191919;
  --ink-soft: #333333;
  --muted: #737373;
  --muted-light: #9a9a9a;
  --line: #ececec;
  --line-dark: #d9d9d9;
  --acid: #ff6900;
  --acid-deep: #ff6900;
  --acid-ink: #ffffff;
  --orange: #ff6900;
  --orange-soft: #fff0e6;
  --blue: #191919;
  --red: #e23b2e;
  --green: #1f8a46;
  --cream: #ffffff;
  --dark-surface: #111111;
  --dark-line: #2a2a2a;
  --display: "MiSans VF", "MiSans", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --body: "MiSans VF", "MiSans", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "MiSans VF", "MiSans", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --radius: 24px;
  --radius-sm: 14px;
  --radius-lg: 32px;
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.05);
  --shadow-modal: 0 28px 80px rgba(0, 0, 0, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
::selection { background: var(--acid); color: var(--acid-ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, h4, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
[hidden] { display: none !important; }
.noscript { padding: 24px; }

.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(21, 22, 15, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21, 22, 15, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

#app { position: relative; z-index: 1; min-height: 100vh; }

/* ---------- Boot ---------- */
.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
}
.boot-mark { display: grid; grid-template-columns: repeat(2, 18px); gap: 5px; }
.boot-mark i { display: block; width: 18px; height: 18px; background: var(--ink); animation: bootBlink 1.2s infinite var(--ease); }
.boot-mark i:nth-child(2) { animation-delay: .15s; background: var(--acid); }
.boot-mark i:nth-child(3) { animation-delay: .3s; }
.boot-mark i:nth-child(4) { animation-delay: .45s; background: var(--acid); }
.boot-screen p { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.boot-line { width: 210px; height: 1px; background: var(--line); overflow: hidden; }
.boot-line span { display: block; height: 100%; width: 45%; background: var(--ink); animation: bootSlide 1.1s infinite var(--ease); }
@keyframes bootBlink { 0%,100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
@keyframes bootSlide { from { transform: translateX(-110%); } to { transform: translateX(320%); } }

/* ---------- Typography & primitives ---------- */
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.055em; line-height: 0.92; }
.mono { font-family: var(--mono); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--ink); border-radius: 50%; }
.eyebrow.acid::before { background: var(--acid-deep); }
.eyebrow.orange::before { background: var(--orange); }
.eyebrow.plain::before { display: none; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11px; }
.strong { font-weight: 650; }
.mono-label { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-border: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform .22s var(--ease), background .22s, color .22s, border-color .22s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; }
.btn.acid { --btn-bg: var(--acid); --btn-fg: var(--acid-ink); --btn-border: var(--acid); }
.btn.light { --btn-bg: var(--card); --btn-fg: var(--ink); --btn-border: var(--line-dark); }
.btn.ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--line-dark); }
.btn.dark { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn.danger { --btn-bg: transparent; --btn-fg: var(--red); --btn-border: rgba(217, 56, 43, .34); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 12px; }
.btn.icon { width: 44px; min-height: 44px; padding: 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.wide { width: 100%; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--muted);
  background: rgba(255,255,255,.35);
  white-space: nowrap;
}
.pill.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill.acid { background: var(--acid); color: var(--acid-ink); border-color: var(--acid-deep); }
.pill.orange { background: var(--orange-soft); color: #7d250f; border-color: #f4bca9; }
.pill.green { background: #e5f4de; color: var(--green); border-color: #c3ddb6; }
.pill.red { background: #ffe3df; color: var(--red); border-color: #f0b7b0; }
.pill.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.live::before { background: var(--acid-deep); box-shadow: 0 0 0 3px rgba(184,224,36,.16); animation: livePulse 2s infinite; }
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { background: var(--card-strong); border-color: var(--line-dark); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }

.field { display: grid; gap: 7px; }
.field > label, .field-label { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.input, .textarea, .select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 247, .72);
  padding: 0 14px;
  color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.textarea { min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: #999b91; }
.input:focus, .textarea:focus, .select:focus { outline: 0; border-color: var(--ink); background: var(--card-strong); box-shadow: 0 0 0 3px rgba(21,22,15,.06); }
.input:disabled { opacity: .55; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.55; }
.error-text { color: var(--red); font-size: 12.5px; }
.form-error {
  padding: 11px 13px;
  border: 1px solid #eab8b1;
  border-radius: 10px;
  background: #fff0ed;
  color: #8a251b;
  font-size: 12.5px;
}
.success-text { color: var(--green); font-size: 12.5px; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(250, 248, 241, .82);
  backdrop-filter: blur(8px);
}
.card.pad { padding: 24px; }
.card.dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.card.acid { background: var(--acid); border-color: var(--acid-deep); color: var(--acid-ink); }
.card-hover { transition: transform .3s var(--ease), border-color .3s, background .3s; }
.card-hover:hover { transform: translateY(-3px); border-color: var(--line-dark); background: var(--card-strong); }

.divider { height: 1px; background: var(--line); }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.stack { display: grid; gap: 16px; }
.stack-sm { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.grow { flex: 1; min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Auth ---------- */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(400px, .82fr);
  gap: 14px;
  padding: 14px;
}
.auth-brand {
  position: relative;
  min-height: calc(100vh - 28px);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--paper);
  padding: clamp(26px, 3vw, 46px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.auth-brand::before {
  content: "";
  position: absolute;
  width: min(46vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(242,240,232,.12);
  border-radius: 50%;
  right: -20%;
  top: 8%;
  box-shadow: 0 0 0 85px rgba(242,240,232,.025), 0 0 0 170px rgba(242,240,232,.02);
  z-index: -1;
}
.auth-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(242,240,232,.14) .7px, transparent .7px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom left, black, transparent 55%);
  opacity: .55;
  z-index: -1;
  pointer-events: none;
}
.brand-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-lockup .mark { width: 34px; height: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.brand-lockup .mark i { background: var(--paper); border-radius: 2px; }
.brand-lockup .mark i:nth-child(1), .brand-lockup .mark i:nth-child(4) { background: var(--acid); }
.brand-lockup strong { display: block; font-size: 15px; letter-spacing: -.02em; line-height: 1.1; }
.brand-lockup span { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: .15em; color: rgba(242,240,232,.5); margin-top: 3px; }
.brand-top .meta { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: rgba(242,240,232,.5); text-align: right; line-height: 1.7; }

.auth-hero { margin: auto 0; padding: clamp(40px, 7vh, 90px) 0; }
.auth-hero .super { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--acid); margin-bottom: 26px; }
.auth-hero .super::before { content: ""; width: 38px; height: 1px; background: var(--acid); }
.auth-word {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(5.5rem, 11.8vw, 12.5rem);
  line-height: .72;
  letter-spacing: 0;
  color: var(--paper);
  margin-left: -.07em;
  text-transform: uppercase;
}
.auth-word .outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242,240,232,.55);
  padding-bottom: .08em;
}
.auth-word .dot { color: var(--acid); -webkit-text-stroke: 0; }
.auth-hero .cn { margin-top: 34px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.auth-hero .cn h2 { font-size: clamp(19px, 2vw, 26px); font-weight: 500; letter-spacing: -.03em; color: rgba(242,240,232,.92); }
.auth-hero .cn p { color: rgba(242,240,232,.5); font-size: 13px; max-width: 310px; line-height: 1.6; }
.auth-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.server-ticker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(242,240,232,.17);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(242,240,232,.05);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: rgba(242,240,232,.75);
}
.server-ticker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); animation: livePulse 2s infinite; }
.auth-foot .fine { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; color: rgba(242,240,232,.36); text-align: right; line-height: 1.8; }

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 64px);
}
.auth-form-wrap { width: 100%; max-width: 410px; }
.auth-form-wrap .mobile-brand { display: none; }
.auth-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.auth-form-wrap h1 { font-family: var(--display); font-size: clamp(38px, 4vw, 52px); font-weight: 750; letter-spacing: -.055em; line-height: 1; margin-bottom: 10px; }
.auth-form-wrap .lead { color: var(--muted); font-size: 13.5px; margin-bottom: 28px; max-width: 340px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--paper-deep); border-radius: 999px; margin-bottom: 26px; }
.auth-tab { min-height: 42px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; transition: background .25s var(--ease), color .25s; }
.auth-tab.active { background: var(--ink); color: var(--paper); }
.auth-form { display: grid; gap: 15px; }
.auth-form .btn { margin-top: 4px; min-height: 50px; }
.auth-options { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: -3px; }
.auth-options .hint { font-size: 11.5px; }
.auth-footer { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.auth-footer .mini-row { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.auth-footer .mini-row strong { color: var(--ink); font-weight: 550; }
.auth-notice { display: flex; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.32); font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.auth-notice svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; }

/* ---------- App shell ---------- */
.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 0;
  min-height: 100vh;
  padding: 14px;
}
.sidebar {
  position: sticky;
  top: 14px;
  height: calc(100vh - 28px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--paper);
  padding: 22px 16px 16px;
  overflow: hidden;
}
.sidebar::before {
  content: "";
  position: absolute;
  inset: auto -70px -90px auto;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(242,240,232,.1);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(242,240,232,.025), 0 0 0 100px rgba(242,240,232,.02);
  pointer-events: none;
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 20px; border-bottom: 1px solid rgba(242,240,232,.12); position: relative; }
.side-brand .mark { width: 30px; height: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; flex: 0 0 auto; }
.side-brand .mark i { background: var(--paper); border-radius: 2px; }
.side-brand .mark i:nth-child(1), .side-brand .mark i:nth-child(4) { background: var(--acid); }
.side-brand strong { display: block; font-size: 14px; letter-spacing: -.02em; line-height: 1.1; }
.side-brand span { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: .14em; color: rgba(242,240,232,.43); margin-top: 3px; }
.side-brand .version { margin-left: auto; font-family: var(--mono); font-size: 8px; color: rgba(242,240,232,.32); }
.side-label { font-family: var(--mono); font-size: 8.5px; letter-spacing: .16em; color: rgba(242,240,232,.35); text-transform: uppercase; padding: 24px 10px 10px; }
.side-nav { display: grid; gap: 3px; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 45px;
  padding: 0 11px;
  border-radius: 11px;
  color: rgba(242,240,232,.64);
  font-size: 13px;
  font-weight: 500;
  transition: background .22s, color .22s;
}
.nav-link svg { width: 17px; height: 17px; flex: 0 0 auto; opacity: .8; }
.nav-link .idx { margin-left: auto; font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; color: rgba(242,240,232,.28); }
.nav-link:hover { background: rgba(242,240,232,.06); color: var(--paper); }
.nav-link.active { background: var(--paper); color: var(--ink); }
.nav-link.active svg { opacity: 1; }
.nav-link.active .idx { color: var(--muted); }
.nav-link .nav-badge { min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 5px; margin-left: auto; border-radius: 999px; background: var(--orange); color: white; font-family: var(--mono); font-size: 8px; }
.nav-link.active .nav-badge { margin-left: 0; }
.side-bottom { margin-top: auto; position: relative; display: grid; gap: 10px; }
.side-status { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border: 1px solid rgba(242,240,232,.12); border-radius: 12px; font-size: 10px; color: rgba(242,240,232,.55); }
.side-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); animation: livePulse 2s infinite; flex: 0 0 auto; }
.side-status strong { color: var(--paper); font-weight: 500; margin-left: auto; font-family: var(--mono); font-size: 9px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: 13px; background: rgba(242,240,232,.06); border: 1px solid rgba(242,240,232,.1); }
.avatar { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: hsl(var(--hue, 70) 60% 78%); color: var(--ink); font-family: var(--mono); font-size: 12px; font-weight: 600; flex: 0 0 auto; border: 1px solid rgba(21,22,15,.1); }
.avatar.sm { width: 28px; height: 28px; font-size: 10px; }
.avatar.lg { width: 48px; height: 48px; font-size: 16px; }
.avatar.online::after { content: ""; position: absolute; width: 9px; height: 9px; right: -1px; bottom: 0; border-radius: 50%; background: var(--acid-deep); border: 2px solid var(--paper); }
.side-user .who { min-width: 0; flex: 1; }
.side-user .who strong { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .who span { display: block; font-family: var(--mono); font-size: 8px; color: rgba(242,240,232,.42); letter-spacing: .04em; margin-top: 2px; }
.side-user .leave { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: rgba(242,240,232,.45); display: grid; place-items: center; }
.side-user .leave:hover { color: var(--paper); background: rgba(242,240,232,.08); }
.side-user .leave svg { width: 15px; height: 15px; }

.main { min-width: 0; padding: 0 0 32px 30px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(242, 240, 232, .86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 0 2px;
}
.crumbs { display: flex; align-items: center; gap: 9px; min-width: 0; font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; color: var(--muted); }
.crumbs .slash { color: var(--line-dark); }
.crumbs strong { color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs svg { width: 14px; height: 14px; color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-live { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 9px; color: var(--muted); white-space: nowrap; }
.top-live .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--acid-deep); }
.top-actions .badge-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); border: 1.5px solid var(--paper); }
.icon-btn.has-badge { position: relative; }
.mobile-header { display: none; }
.bottom-nav { display: none; }

.page { padding-top: 34px; animation: pageIn .55s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 26px; margin-bottom: 30px; flex-wrap: wrap; }
.page-head .title-block { min-width: 0; }
.page-title { font-family: var(--display); font-size: clamp(38px, 4.5vw, 62px); font-weight: 750; letter-spacing: -.06em; line-height: .95; margin-top: 10px; }
.page-title .accent { color: var(--muted-light); }
.page-sub { color: var(--muted); font-size: 13px; max-width: 560px; margin-top: 12px; line-height: 1.6; }
.page-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.section-head h2 { font-size: 16px; font-weight: 650; letter-spacing: -.025em; }
.section-head .more { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.section-head .more:hover { color: var(--ink); }

/* ---------- Dashboard ---------- */
.dashboard-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }

.server-card {
  position: relative;
  min-height: 310px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--paper);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.server-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(242,240,232,.055) 1px, transparent 1px), linear-gradient(to bottom, rgba(242,240,232,.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(135deg, black, transparent 75%);
  z-index: -1;
}
.server-card .big-orbit {
  position: absolute;
  right: -80px;
  top: -90px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(242,240,232,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(242,240,232,.022), 0 0 0 108px rgba(242,240,232,.018);
  z-index: -1;
}
.server-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.server-top .pill { background: rgba(242,240,232,.07); border-color: rgba(242,240,232,.16); color: rgba(242,240,232,.74); }
.server-card h2 { font-family: var(--display); font-size: clamp(34px, 4vw, 55px); font-weight: 750; letter-spacing: -.06em; line-height: .92; margin-top: 20px; max-width: 600px; }
.server-card .server-desc { margin-top: 10px; color: rgba(242,240,232,.55); font-size: 12.5px; max-width: 430px; }
.server-mid { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 30px; }
.server-ip { display: grid; gap: 6px; min-width: 0; }
.server-ip .mono-label { color: rgba(242,240,232,.36); }
.ip-box { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ip-box code { font-family: var(--mono); font-size: clamp(16px, 2vw, 23px); letter-spacing: -.03em; color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn { width: 34px; height: 34px; border: 1px solid rgba(242,240,232,.17); border-radius: 9px; background: rgba(242,240,232,.05); color: rgba(242,240,232,.62); display: grid; place-items: center; flex: 0 0 auto; }
.copy-btn:hover { background: var(--acid); color: var(--acid-ink); border-color: var(--acid); }
.copy-btn svg { width: 13px; height: 13px; }
.server-players { display: flex; align-items: center; gap: 12px; }
.server-rail-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(242,240,232,.17); border-radius: 10px; background: rgba(242,240,232,.05); color: var(--acid); flex: 0 0 auto; }
.server-rail-mark svg { width: 18px; height: 18px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -8px; border: 2px solid var(--ink); }
.avatar-stack .avatar:first-child { margin-left: 0; }
.player-count { display: grid; gap: 1px; }
.player-count strong { font-family: var(--mono); font-size: 16px; font-weight: 500; }
.player-count span { font-family: var(--mono); font-size: 8px; letter-spacing: .1em; color: rgba(242,240,232,.4); }
.player-count strong em { font-style: normal; color: rgba(242,240,232,.36); font-size: 10px; }

.passport-card { min-height: 330px; background: var(--acid); border: 1px solid var(--acid-deep); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; color: var(--acid-ink); position: relative; overflow: hidden; }
.passport-card::after { content: "ID"; position: absolute; right: -8px; bottom: -32px; font-family: var(--display); font-weight: 800; font-size: 160px; line-height: 1; color: rgba(28,38,0,.07); letter-spacing: -.08em; pointer-events: none; }
.passport-top { display: flex; align-items: center; justify-content: space-between; }
.passport-top .mono-label { color: rgba(28,38,0,.52); }
.passport-user { display: flex; align-items: center; gap: 12px; margin-top: 20px; position: relative; z-index: 1; }
.passport-user .avatar { width: 44px; height: 44px; border-color: rgba(28,38,0,.16); }
.passport-user h3 { font-size: 18px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.passport-user p { font-family: var(--mono); font-size: 8.5px; letter-spacing: .07em; color: rgba(28,38,0,.55); margin-top: 3px; }
.passport-list { margin-top: 16px; display: grid; gap: 0; position: relative; z-index: 1; }
.passport-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(28,38,0,.16); font-size: 12px; }
.passport-row .label { display: flex; align-items: center; gap: 7px; color: rgba(28,38,0,.66); }
.passport-row .label svg { width: 14px; height: 14px; }
.passport-row strong { font-weight: 650; display: flex; align-items: center; gap: 6px; }
.passport-row .status-dot { width: 6px; height: 6px; border-radius: 50%; background: #2f6d2a; }
.passport-row .status-dot.warn { background: var(--orange); }
.passport-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.passport-foot a { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 9px; letter-spacing: .05em; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; flex: 0 0 auto; }
.passport-foot a svg { width: 11px; height: 11px; }
.passport-foot .mini-dots { display: flex; gap: 3px; }
.passport-foot .mini-dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(28,38,0,.25); }
.passport-foot .mini-dots i.on { background: var(--acid-ink); }

.stats-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 8px 0 6px; }
.stat-item { padding: 18px 20px 18px 0; min-width: 0; }
.stat-item + .stat-item { border-left: 1px solid var(--line); padding-left: 20px; }
.stat-label { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat-label .tick { width: 5px; height: 5px; background: var(--acid-deep); }
.stat-value { margin-top: 8px; font-family: var(--display); font-size: clamp(25px, 2.8vw, 35px); font-weight: 650; letter-spacing: -.055em; line-height: 1; }
.stat-value small { font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: .02em; font-weight: 400; margin-left: 4px; }
.stat-sub { margin-top: 5px; font-size: 10.5px; color: var(--muted); }

.panel { border: 1px solid var(--line); background: rgba(250,248,241,.78); border-radius: var(--radius); padding: 22px; }
.panel.tight { padding: 16px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-head h2 { font-size: 15px; font-weight: 650; letter-spacing: -.025em; }
.panel-head .eyebrow { font-size: 8.5px; }
.resource-compact { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); transition: padding-left .2s var(--ease); }
.resource-compact:first-of-type { border-top: 0; padding-top: 0; }
.resource-compact:hover { padding-left: 4px; }
.resource-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-deep);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--ink);
}
.resource-icon svg { width: 18px; height: 18px; }
.resource-icon.acid { background: var(--acid); border-color: var(--acid-deep); }
.resource-icon.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.resource-compact .meta { min-width: 0; flex: 1; }
.resource-compact .meta strong { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; }
.resource-compact .meta span { display: flex; gap: 7px; align-items: center; margin-top: 3px; font-family: var(--mono); font-size: 8.5px; color: var(--muted); }
.resource-compact .arrow { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); transition: background .2s, color .2s; }
.resource-compact:hover .arrow { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.resource-compact .arrow svg { width: 12px; height: 12px; }

.announcement-list { display: grid; gap: 0; }
.announcement { padding: 14px 0; border-top: 1px solid var(--line); }
.announcement:first-child { border-top: 0; padding-top: 0; }
.announcement .a-top { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 8px; letter-spacing: .04em; color: var(--muted); }
.announcement .a-top .role { padding: 2px 6px; border-radius: 999px; background: var(--paper-deep); color: var(--ink-soft); }
.announcement p { margin-top: 7px; font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); }
.empty-mini { padding: 22px 0; text-align: center; font-size: 12px; color: var(--muted); }

.todo-list { display: grid; gap: 8px; }
.todo-item { display: flex; gap: 11px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.32); transition: border-color .2s, background .2s; }
.todo-item:hover { border-color: var(--line-dark); background: var(--card-strong); }
.todo-item .todo-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--paper-deep); flex: 0 0 auto; }
.todo-item .todo-icon.warn { background: var(--orange-soft); color: #8a2d16; }
.todo-item .todo-icon.ok { background: #e4f3dd; color: var(--green); }
.todo-item .todo-icon svg { width: 14px; height: 14px; }
.todo-item .todo-copy { flex: 1; min-width: 0; }
.todo-item strong { display: block; font-size: 12px; font-weight: 600; line-height: 1.45; }
.todo-item span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.todo-item .mini-action { font-family: var(--mono); font-size: 8px; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line-dark); padding-bottom: 1px; align-self: center; white-space: nowrap; }
.voice-mini { background: var(--ink); color: var(--paper); border-color: var(--ink); overflow: hidden; position: relative; }
.voice-mini::after { content: ""; position: absolute; width: 180px; height: 180px; right: -50px; bottom: -80px; border: 1px solid rgba(242,240,232,.12); border-radius: 50%; box-shadow: 0 0 0 40px rgba(242,240,232,.025); pointer-events: none; }
.voice-mini .panel-head h2 { color: var(--paper); }
.voice-mini .panel-head .eyebrow { color: rgba(242,240,232,.42); }
.voice-mini .panel-head .eyebrow::before { background: var(--acid); }
.voice-mini p { color: rgba(242,240,232,.48); font-size: 11.5px; line-height: 1.6; }
.voice-mini .voice-people { display: flex; align-items: center; gap: 8px; margin: 22px 0 18px; }
.voice-mini .voice-people .avatar { border-color: var(--ink); margin-left: -7px; }
.voice-mini .voice-people .avatar:first-child { margin-left: 0; }
.voice-mini .voice-people span { font-family: var(--mono); font-size: 9px; color: rgba(242,240,232,.55); margin-left: 4px; }
.voice-mini .btn { position: relative; z-index: 1; }

/* ---------- Resources ---------- */
.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-chip { min-height: 38px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 12px; color: var(--muted); transition: background .2s, color .2s, border-color .2s; }
.filter-chip:hover { border-color: var(--line-dark); color: var(--ink); }
.filter-chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter-count { font-family: var(--mono); font-size: 8px; opacity: .55; margin-left: 4px; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.resource-card { display: flex; flex-direction: column; min-height: 260px; padding: 22px; position: relative; overflow: hidden; }
.resource-card .top-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.resource-card .big-icon { width: 48px; height: 48px; border: 1px solid var(--line-dark); border-radius: 12px; display: grid; place-items: center; background: var(--paper-deep); }
.resource-card .big-icon svg { width: 21px; height: 21px; }
.resource-card .big-icon.acid { background: var(--acid); border-color: var(--acid-deep); }
.resource-card .big-icon.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.resource-card h3 { font-size: 17px; font-weight: 650; letter-spacing: -.03em; line-height: 1.25; }
.resource-card .desc { margin-top: 8px; font-size: 11.5px; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 37px; }
.resource-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 8.5px; color: var(--muted); }
.resource-meta span { display: inline-flex; align-items: center; gap: 4px; }
.resource-meta svg { width: 11px; height: 11px; }
.resource-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.resource-foot .download-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 600; transition: background .2s, transform .2s; }
.resource-foot .download-btn:hover { background: var(--acid); color: var(--acid-ink); transform: translateY(-1px); }
.resource-foot .download-btn svg { width: 12px; height: 12px; }
.resource-foot .admin-mini { display: flex; gap: 6px; }
.icon-mini { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); }
.icon-mini:hover { color: var(--red); border-color: #e5b3ac; background: #fff1ee; }
.icon-mini svg { width: 13px; height: 13px; }
.empty-state { grid-column: 1 / -1; display: grid; place-items: center; text-align: center; gap: 12px; min-height: 280px; border: 1px dashed var(--line-dark); border-radius: var(--radius); color: var(--muted); padding: 30px; }
.empty-state .empty-mark { width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 14px; display: grid; place-items: center; background: var(--paper-deep); }
.empty-state .empty-mark svg { width: 22px; height: 22px; }
.empty-state h3 { font-size: 16px; color: var(--ink); font-weight: 600; }
.empty-state p { font-size: 12px; max-width: 320px; }

.upload-drop { border: 1px dashed var(--line-dark); border-radius: 14px; padding: 26px 20px; text-align: center; background: rgba(255,255,255,.3); cursor: pointer; transition: border-color .2s, background .2s; }
.upload-drop:hover, .upload-drop.dragover { border-color: var(--ink); background: var(--card-strong); }
.upload-drop svg { width: 24px; height: 24px; margin: 0 auto 10px; }
.upload-drop strong { display: block; font-size: 13px; }
.upload-drop span { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.progress { height: 5px; border-radius: 999px; background: var(--paper-deep); overflow: hidden; margin-top: 12px; }
.progress span { display: block; height: 100%; width: 0; background: var(--acid-deep); transition: width .25s; }

/* ---------- Community ---------- */
.community-layout {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr) 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(250,248,241,.8);
  height: calc(100vh - 292px);
  min-height: 560px;
  overflow: hidden;
}
.channel-panel { border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; min-height: 0; }
.channel-head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 14px; }
.channel-head strong { font-size: 13px; letter-spacing: -.02em; }
.channel-list { display: grid; gap: 2px; overflow-y: auto; }
.channel-link { display: flex; align-items: center; gap: 9px; min-height: 40px; border: 0; border-radius: 9px; padding: 0 10px; background: transparent; color: var(--muted); font-size: 12.5px; text-align: left; width: 100%; transition: background .2s, color .2s; }
.channel-link svg { width: 15px; height: 15px; flex: 0 0 auto; opacity: .7; }
.channel-link:hover { background: rgba(21,22,15,.045); color: var(--ink); }
.channel-link.active { background: var(--ink); color: var(--paper); }
.channel-link.active svg { opacity: 1; }
.channel-link .hash { font-family: var(--mono); font-size: 13px; opacity: .4; }
.channel-link .count { margin-left: auto; font-family: var(--mono); font-size: 8px; opacity: .5; }
.channel-divider { margin: 16px 8px 12px; border-top: 1px solid var(--line); }
.voice-entry { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: auto; background: rgba(255,255,255,.35); }
.voice-entry .v-top { display: flex; align-items: center; gap: 8px; }
.voice-entry .v-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--ink); color: var(--acid); }
.voice-entry .v-icon svg { width: 13px; height: 13px; }
.voice-entry strong { display: block; font-size: 11px; }
.voice-entry span { display: block; font-family: var(--mono); font-size: 7.5px; letter-spacing: .06em; color: var(--muted); margin-top: 1px; }
.voice-entry .v-list { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px; }
.voice-entry .v-person { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; color: var(--muted); padding: 3px 6px; border-radius: 999px; background: var(--paper-deep); }
.voice-entry .v-person i { width: 4px; height: 4px; border-radius: 50%; background: var(--green); }

.chat-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chat-title .hash-badge { width: 34px; height: 34px; border-radius: 10px; background: var(--paper-deep); display: grid; place-items: center; font-family: var(--mono); font-size: 16px; color: var(--muted); }
.chat-title h2 { font-size: 14px; font-weight: 650; letter-spacing: -.02em; }
.chat-title p { font-size: 10px; color: var(--muted); margin-top: 1px; }
.chat-head-actions { display: flex; align-items: center; gap: 8px; }
.chat-feed { flex: 1; overflow-y: auto; padding: 12px 20px 18px; display: flex; flex-direction: column; gap: 2px; scroll-behavior: smooth; }
.chat-day { align-self: center; margin: 12px 0 10px; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; color: var(--muted); padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.msg { display: flex; gap: 11px; padding: 9px 8px; border-radius: 10px; position: relative; transition: background .15s; }
.msg:hover { background: rgba(21,22,15,.028); }
.msg.own { background: rgba(215,255,63,.13); }
.msg.own:hover { background: rgba(215,255,63,.2); }
.msg .msg-body { min-width: 0; flex: 1; }
.msg .msg-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.msg .msg-meta strong { font-size: 12px; font-weight: 650; letter-spacing: -.01em; }
.msg .msg-meta .role-badge { font-family: var(--mono); font-size: 7px; letter-spacing: .05em; padding: 2px 5px; border-radius: 4px; background: var(--paper-deep); color: var(--muted); }
.msg .msg-meta .role-badge.op2 { background: #e3e7ff; color: #3443b7; }
.msg .msg-meta .role-badge.op3 { background: var(--ink); color: var(--acid); }
.msg .msg-meta time { font-family: var(--mono); font-size: 8px; color: var(--muted-light); }
.msg .msg-text { margin-top: 2px; font-size: 13px; line-height: 1.6; color: var(--ink-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .msg-actions { position: absolute; right: 8px; top: 7px; display: none; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.msg:hover .msg-actions { display: flex; }
.msg .msg-actions button { border: 0; background: transparent; color: var(--muted); width: 26px; height: 24px; display: grid; place-items: center; border-radius: 5px; }
.msg .msg-actions button:hover { background: var(--paper-deep); color: var(--red); }
.msg .msg-actions svg { width: 12px; height: 12px; }
.msg.revoked .msg-text { font-style: italic; color: var(--muted); font-size: 11.5px; }
.chat-empty { margin: auto; display: grid; place-items: center; gap: 8px; color: var(--muted); text-align: center; padding: 40px 20px; }
.chat-empty svg { width: 30px; height: 30px; opacity: .5; }
.chat-empty p { font-size: 12px; }
.chat-muted { margin: 0 20px 12px; padding: 10px 13px; border: 1px solid #f0b7b0; background: #fff0ed; border-radius: 10px; font-size: 11.5px; color: #8a251b; }
.chat-composer { border-top: 1px solid var(--line); padding: 12px 16px 14px; }
.composer-box { border: 1px solid var(--line-dark); border-radius: 13px; background: var(--card-strong); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, box-shadow .2s; }
.composer-box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21,22,15,.05); }
.composer-box textarea { width: 100%; min-height: 26px; max-height: 140px; border: 0; outline: 0; background: transparent; resize: none; font-size: 12.5px; line-height: 1.55; }
.composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.composer-actions .hint { font-family: var(--mono); font-size: 8px; color: var(--muted); }
.composer-actions .btn { min-height: 32px; padding: 0 12px; font-size: 11px; }
.composer-actions .btn svg { width: 12px; height: 12px; }

.side-panel { border-left: 1px solid var(--line); padding: 16px; overflow-y: auto; background: rgba(255,253,247,.36); }
.side-section + .side-section { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.side-section h3 { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 11px; }
.side-section h3 span { color: var(--ink); font-family: var(--body); font-size: 10px; letter-spacing: 0; }
.online-list { display: grid; gap: 2px; }
.online-item { display: flex; align-items: center; gap: 9px; padding: 7px 6px; border-radius: 8px; }
.online-item:hover { background: rgba(21,22,15,.03); }
.online-item .who { min-width: 0; flex: 1; }
.online-item strong { display: block; font-size: 11px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.online-item span { display: block; font-family: var(--mono); font-size: 7.5px; color: var(--muted); margin-top: 1px; }
.online-item .voice-indicator { color: var(--green); }
.online-item .voice-indicator svg { width: 12px; height: 12px; }

/* Voice room */
.voice-panel { background: var(--ink); color: var(--paper); border-radius: 14px; padding: 15px; overflow: hidden; position: relative; }
.voice-panel::after { content: ""; position: absolute; width: 130px; height: 130px; border: 1px solid rgba(242,240,232,.1); border-radius: 50%; right: -45px; top: -55px; pointer-events: none; }
.voice-panel .v-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.voice-panel .v-head .mono-label { color: rgba(242,240,232,.4); }
.voice-panel .v-title { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.voice-wave { display: flex; align-items: center; gap: 2px; height: 20px; }
.voice-wave i { width: 2px; border-radius: 2px; background: var(--acid); animation: wave 1.1s ease-in-out infinite; height: 30%; }
.voice-wave i:nth-child(2) { animation-delay: .1s; height: 70%; }
.voice-wave i:nth-child(3) { animation-delay: .2s; height: 45%; }
.voice-wave i:nth-child(4) { animation-delay: .3s; height: 90%; }
.voice-wave i:nth-child(5) { animation-delay: .4s; height: 55%; }
@keyframes wave { 0%,100% { transform: scaleY(.45); opacity: .55; } 50% { transform: scaleY(1); opacity: 1; } }
.voice-panel h3 { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.voice-panel .v-sub { font-family: var(--mono); font-size: 8px; letter-spacing: .05em; color: rgba(242,240,232,.42); margin-top: 3px; }
.voice-participants { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; margin-top: 14px; }
.voice-person { display: flex; align-items: center; gap: 7px; padding: 7px; border-radius: 8px; background: rgba(242,240,232,.055); min-width: 0; }
.voice-person .avatar { width: 24px; height: 24px; font-size: 8px; border: 0; }
.voice-person .name { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voice-person .mute-icon { margin-left: auto; color: var(--orange); flex: 0 0 auto; }
.voice-person .mute-icon svg { width: 10px; height: 10px; }
.voice-person.speaking { box-shadow: inset 0 0 0 1px rgba(215,255,63,.45); background: rgba(215,255,63,.09); }
.voice-controls { display: flex; gap: 6px; margin-top: 14px; }
.voice-controls .v-btn { flex: 1; min-height: 34px; border: 1px solid rgba(242,240,232,.13); border-radius: 8px; background: rgba(242,240,232,.05); color: rgba(242,240,232,.72); font-size: 9.5px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.voice-controls .v-btn:hover { background: rgba(242,240,232,.11); color: var(--paper); }
.voice-controls .v-btn.active { background: var(--acid); color: var(--acid-ink); border-color: var(--acid); }
.voice-controls .v-btn svg { width: 12px; height: 12px; }
.voice-join { width: 100%; margin-top: 14px; }
.voice-note { font-family: var(--mono); font-size: 7.5px; line-height: 1.6; letter-spacing: .02em; color: rgba(242,240,232,.3); margin-top: 11px; }

/* ---------- Account ---------- */
.account-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; align-items: start; }
.bind-hero { position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius-lg); background: var(--ink); color: var(--paper); min-height: 170px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.bind-hero::after { content: ""; position: absolute; right: 8%; top: -60%; width: 300px; height: 300px; border: 1px solid rgba(242,240,232,.12); border-radius: 50%; box-shadow: 0 0 0 50px rgba(242,240,232,.025), 0 0 0 100px rgba(242,240,232,.02); }
.bind-hero .copy { position: relative; z-index: 1; max-width: 500px; }
.bind-hero h2 { font-family: var(--display); font-size: clamp(27px, 3vw, 38px); font-weight: 700; letter-spacing: -.05em; line-height: 1; margin-top: 10px; }
.bind-hero p { margin-top: 10px; color: rgba(242,240,232,.5); font-size: 12px; max-width: 430px; }
.bind-hero .art { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; flex: 0 0 auto; }
.bind-hero .art i { width: 44px; height: 44px; border: 1px solid rgba(242,240,232,.16); border-radius: 7px; }
.bind-hero .art i:nth-child(1), .bind-hero .art i:nth-child(4) { background: var(--acid); border-color: var(--acid); }
.account-card { padding: 24px; }
.account-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.account-card-head .icon-wrap { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--paper-deep); border: 1px solid var(--line); }
.account-card-head .icon-wrap svg { width: 18px; height: 18px; }
.account-card-head h3 { font-size: 16px; font-weight: 650; letter-spacing: -.03em; }
.account-card-head p { font-size: 11px; color: var(--muted); margin-top: 2px; }
.game-account { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: rgba(255,255,255,.36); }
.game-account + .game-account { margin-top: 10px; }
.game-account-top { display: flex; align-items: center; gap: 11px; }
.game-avatar { width: 40px; height: 40px; border-radius: 8px; background: var(--acid); display: grid; place-items: center; color: var(--acid-ink); font-family: var(--mono); font-size: 14px; font-weight: 600; border: 1px solid var(--acid-deep); }
.game-account-top strong { display: block; font-size: 13px; font-weight: 650; }
.game-account-top span { display: block; font-family: var(--mono); font-size: 8px; color: var(--muted); margin-top: 2px; }
.ip-table { margin-top: 14px; border-top: 1px solid var(--line); }
.ip-row { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.ip-row:last-child { border-bottom: 0; }
.ip-row code { font-family: var(--mono); font-size: 10px; }
.ip-row .geo { color: var(--muted); }
.ip-row time { font-family: var(--mono); font-size: 8px; color: var(--muted-light); text-align: right; }
.pending-box { display: flex; align-items: flex-start; gap: 10px; border: 1px solid #f2c1b2; background: #fff3ee; border-radius: 12px; padding: 12px; margin-top: 12px; }
.pending-box .p-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--orange-soft); color: #8a2d16; display: grid; place-items: center; flex: 0 0 auto; }
.pending-box .p-icon svg { width: 13px; height: 13px; }
.pending-box strong { display: block; font-size: 11.5px; color: #7d250f; }
.pending-box p { font-size: 10.5px; color: #9d4b38; margin-top: 2px; line-height: 1.5; }
.pending-box .btn { margin-top: 8px; }
.setup-steps { display: grid; gap: 0; }
.setup-step { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.setup-step:first-child { border-top: 0; padding-top: 0; }
.step-num { width: 24px; height: 24px; border: 1px solid var(--line-dark); border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 9px; flex: 0 0 auto; }
.setup-step strong { display: block; font-size: 12px; font-weight: 600; }
.setup-step p { font-size: 10.5px; color: var(--muted); margin-top: 2px; line-height: 1.55; }
.qq-bind-box { border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: center; background: rgba(255,255,255,.3); }
.qq-logo { width: 44px; height: 44px; border-radius: 12px; background: #e9f0ff; color: #2b5dd6; display: grid; place-items: center; margin: 0 auto 12px; border: 1px solid #d4e0fb; }
.qq-logo svg { width: 22px; height: 22px; }
.qq-bind-box h4 { font-size: 14px; font-weight: 650; }
.qq-bind-box p { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.55; }
.bind-code { margin: 14px 0 4px; border: 1px dashed var(--line-dark); border-radius: 10px; background: var(--paper); padding: 12px; font-family: var(--mono); font-size: 25px; letter-spacing: .22em; font-weight: 600; }
.bind-code-label { font-family: var(--mono); font-size: 8px; color: var(--muted); letter-spacing: .1em; }
.code-instruction { margin-top: 10px; padding: 10px; border-radius: 8px; background: var(--paper-deep); font-family: var(--mono); font-size: 9px; color: var(--ink-soft); text-align: left; line-height: 1.6; word-break: break-all; }
.connected-qq { display: flex; align-items: center; gap: 12px; text-align: left; padding: 2px; }
.connected-qq .qq-logo { margin: 0; flex: 0 0 auto; }
.connected-qq .who { flex: 1; min-width: 0; }
.connected-qq strong { display: block; font-size: 13px; }
.connected-qq span { display: block; font-family: var(--mono); font-size: 8px; color: var(--muted); margin-top: 2px; }
.security-list { display: grid; gap: 10px; }
.security-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.security-row:first-child { border-top: 0; padding-top: 0; }
.security-row strong { display: block; font-size: 12px; font-weight: 550; }
.security-row span { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }

/* ---------- Authorize / bind page ---------- */
.center-page { min-height: calc(100vh - 150px); display: grid; place-items: center; padding: 30px 0; }
.authz-card { width: min(620px, 100%); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; box-shadow: var(--shadow-modal); }
.authz-top { background: var(--ink); color: var(--paper); padding: 28px; position: relative; overflow: hidden; }
.authz-top::after { content: ""; position: absolute; width: 250px; height: 250px; right: -100px; top: -130px; border: 1px solid rgba(242,240,232,.12); border-radius: 50%; box-shadow: 0 0 0 40px rgba(242,240,232,.025); }
.authz-top .eyebrow { color: rgba(242,240,232,.48); }
.authz-top .eyebrow::before { background: var(--orange); }
.authz-top h1 { font-family: var(--display); font-size: clamp(30px, 4vw, 42px); font-weight: 700; letter-spacing: -.055em; line-height: 1; margin-top: 12px; }
.authz-top p { font-size: 12px; color: rgba(242,240,232,.5); margin-top: 10px; max-width: 440px; }
.authz-body { padding: 26px; }
.authz-data { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.authz-data-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 12px; }
.authz-data-row:first-child { border-top: 0; }
.authz-data-row span { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .04em; padding-top: 2px; }
.authz-data-row strong { font-weight: 550; overflow-wrap: anywhere; }
.authz-warning { display: flex; gap: 10px; padding: 12px 14px; border: 1px solid #f0c5b8; border-radius: 12px; background: #fff3ee; color: #7d2c1a; font-size: 11px; line-height: 1.55; margin-top: 16px; }
.authz-warning svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
.authz-actions { display: flex; gap: 9px; margin-top: 20px; flex-wrap: wrap; }
.authz-actions .btn { flex: 1; min-width: 140px; }
.authz-foot { margin-top: 18px; font-size: 10px; color: var(--muted); text-align: center; }
.result-check { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--acid); margin: 0 auto 16px; }
.result-check svg { width: 26px; height: 26px; }
.center-form { width: min(440px, 100%); }

/* ---------- Admin ---------- */
.admin-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab { flex: 0 0 auto; min-height: 43px; padding: 0 15px; border: 0; background: transparent; color: var(--muted); font-size: 12px; border-bottom: 2px solid transparent; white-space: nowrap; }
.admin-tab:hover { color: var(--ink); }
.admin-tab.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.admin-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.metric-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(250,248,241,.72); }
.metric-card .metric-label { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.metric-card .metric-label svg { width: 14px; height: 14px; opacity: .5; }
.metric-card .metric-value { font-family: var(--display); font-size: 33px; font-weight: 650; letter-spacing: -.055em; margin-top: 12px; line-height: 1; }
.metric-card .metric-sub { font-size: 10px; color: var(--muted); margin-top: 5px; }
.table-wrap { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(250,248,241,.68); }
.data-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.data-table th { text-align: left; padding: 12px 14px; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); background: rgba(232,229,218,.45); white-space: nowrap; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: rgba(255,255,255,.32); }
.table-user { display: flex; align-items: center; gap: 9px; min-width: 0; }
.table-user strong { display: block; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.table-user span { display: block; font-family: var(--mono); font-size: 8px; color: var(--muted); margin-top: 1px; white-space: nowrap; }
.role-select { min-height: 30px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); padding: 0 7px; font-family: var(--mono); font-size: 9px; }
.table-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.table-actions .btn { min-height: 29px; padding: 0 9px; font-size: 9.5px; }
.table-actions .icon-mini { width: 28px; height: 28px; }
.admin-section { display: grid; gap: 16px; }
.admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.settings-form { display: grid; gap: 16px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.settings-grid .full { grid-column: 1 / -1; }
.setting-block { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: rgba(250,248,241,.6); }
.setting-block + .setting-block { margin-top: 14px; }
.setting-block-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.setting-block-head h3 { font-size: 13.5px; font-weight: 650; }
.setting-block-head p { font-size: 10.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 11px; color: var(--muted); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .track { width: 38px; height: 22px; border-radius: 999px; background: var(--line-dark); position: relative; transition: background .2s; flex: 0 0 auto; }
.toggle .track::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: white; left: 3px; top: 3px; transition: transform .2s var(--ease); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.toggle input:checked + .track { background: var(--ink); }
.toggle input:checked + .track::after { transform: translateX(16px); background: var(--acid); }
.secret-dot { font-family: var(--mono); color: var(--muted); letter-spacing: .12em; }
.key-box { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-dark); border-radius: 10px; padding: 10px 12px; background: var(--paper); }
.key-box code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 10px; word-break: break-all; color: var(--ink-soft); }
.copy-small { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 7px; display: grid; place-items: center; background: var(--card); }
.copy-small:hover { background: var(--acid); border-color: var(--acid-deep); }
.copy-small svg { width: 12px; height: 12px; }
.qq-status-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 13px; padding: 14px; background: rgba(255,255,255,.32); }
.qq-status-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #e9f0ff; color: #2b5dd6; }
.qq-status-icon svg { width: 19px; height: 19px; }
.qq-status-card .grow strong { display: block; font-size: 12px; }
.qq-status-card .grow span { display: block; font-family: var(--mono); font-size: 8px; color: var(--muted); margin-top: 2px; }
.log-list { display: grid; gap: 0; }
.log-row { padding: 10px 0; border-top: 1px solid var(--line); }
.log-row:first-child { border-top: 0; padding-top: 0; }
.log-row .log-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-family: var(--mono); font-size: 8px; color: var(--muted); }
.log-row p { font-size: 10.5px; margin-top: 4px; line-height: 1.55; color: var(--ink-soft); overflow-wrap: anywhere; }
.log-status { padding: 1px 5px; border-radius: 4px; background: var(--paper-deep); color: var(--muted); }
.log-status.sent, .log-status.received { background: #e4f3dd; color: var(--green); }
.log-status.failed { background: #ffe3df; color: var(--red); }
.log-status.mock { background: #e3e7ff; color: #3443b7; }
.mod-install { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.mod-install::after { content: ""; position: absolute; right: -40px; top: -50px; width: 160px; height: 160px; border: 1px solid rgba(242,240,232,.12); border-radius: 50%; box-shadow: 0 0 0 30px rgba(242,240,232,.02); }
.mod-install h3 { font-family: var(--display); font-size: 22px; letter-spacing: -.04em; font-weight: 650; }
.mod-install p { color: rgba(242,240,232,.5); font-size: 11px; margin-top: 4px; max-width: 480px; }
.mod-install .btn { margin-top: 16px; position: relative; z-index: 1; }
.mod-install code { font-family: var(--mono); font-size: 9px; color: var(--acid); background: rgba(215,255,63,.08); padding: 2px 5px; border-radius: 3px; }

/* ---------- Modal / drawer / toast ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(21,22,15,.45); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .2s; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-modal); animation: modalIn .32s var(--ease); }
.modal.wide { width: min(760px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 22px 0; }
.modal-head h2 { font-family: var(--display); font-size: 25px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.modal-head p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.modal-close { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; display: grid; place-items: center; flex: 0 0 auto; }
.modal-close:hover { background: var(--paper-deep); }
.modal-close svg { width: 14px; height: 14px; }
.modal-body { padding: 20px 22px; display: grid; gap: 14px; }
.modal-foot { padding: 0 22px 22px; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.drawer { position: fixed; inset: 0; z-index: 100; background: rgba(21,22,15,.35); backdrop-filter: blur(2px); display: flex; justify-content: flex-end; animation: fadeIn .2s; }
.drawer-panel { width: min(420px, 100%); height: 100%; background: var(--card); border-left: 1px solid var(--line); box-shadow: var(--shadow-modal); animation: drawerIn .32s var(--ease); display: flex; flex-direction: column; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--display); font-size: 27px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px 22px; }
.notif-item { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; }
.notif-item .n-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-top: 6px; flex: 0 0 auto; }
.notif-item.read .n-dot { background: var(--line-dark); }
.notif-item strong { display: block; font-size: 12px; font-weight: 600; }
.notif-item p { font-size: 10.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.notif-item time { display: block; font-family: var(--mono); font-size: 8px; color: var(--muted-light); margin-top: 5px; }
.notif-empty { text-align: center; color: var(--muted); font-size: 12px; padding: 50px 10px; }

.toast-stack { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; max-width: min(360px, calc(100vw - 40px)); }
.toast { display: flex; align-items: flex-start; gap: 9px; background: var(--ink); color: var(--paper); border: 1px solid rgba(242,240,232,.15); border-radius: 12px; padding: 12px 14px; box-shadow: 0 12px 40px rgba(21,22,15,.2); font-size: 12px; animation: toastIn .3s var(--ease); }
.toast .t-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); margin-top: 5px; flex: 0 0 auto; }
.toast.error .t-dot { background: var(--orange); }
.toast.leaving { animation: toastOut .25s forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

.skeleton { background: linear-gradient(90deg, var(--paper-deep) 25%, #f4f1e8 37%, var(--paper-deep) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1220px) {
  .app-shell { grid-template-columns: 224px minmax(0,1fr); }
  .main { padding-left: 24px; }
  .community-layout { grid-template-columns: 190px minmax(0,1fr); }
  .side-panel { display: none; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; padding: 10px; }
  .auth-brand { min-height: 420px; padding: 26px; }
  .auth-hero { padding: 40px 0 30px; }
  .auth-word { font-size: clamp(4.5rem, 16vw, 8rem); }
  .auth-panel { padding: 38px 24px 60px; }
  .auth-form-wrap .mobile-brand { display: flex; margin-bottom: 30px; }
  .app-shell { display: block; padding: 0; }
  .sidebar { display: none; }
  .main { padding: 0; }
  .topbar { top: 0; padding: 0 18px; margin: 0; border-bottom: 1px solid var(--line); background: rgba(242,240,232,.94); }
  .page { padding: 26px 18px 100px; }
  .mobile-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 12px; border-bottom: 1px solid var(--line); }
  .mobile-header .brand-lockup strong { font-size: 13px; color: var(--ink); }
  .mobile-header .brand-lockup > span:last-child > span { font-size: 7px; color: var(--muted); }
  .mobile-header .brand-lockup .mark { width: 26px; height: 26px; }
  .mobile-header .brand-lockup .mark i { background: var(--ink); }
  .mobile-header .brand-lockup .mark i:nth-child(1), .mobile-header .brand-lockup .mark i:nth-child(4) { background: var(--acid-deep); }
  .bottom-nav {
    display: flex;
    position: fixed;
    z-index: 50;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 6px;
    background: rgba(21,22,15,.95);
    border: 1px solid rgba(242,240,232,.12);
    border-radius: 18px;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 35px rgba(21,22,15,.22);
  }
  .bottom-nav a { flex: 1; min-height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 13px; color: rgba(242,240,232,.5); font-family: var(--mono); font-size: 7px; letter-spacing: .02em; }
  .bottom-nav a svg { width: 16px; height: 16px; }
  .bottom-nav a.active { color: var(--acid); background: rgba(242,240,232,.07); }
  .top-live { display: none; }
  .server-card { grid-column: span 12; }
  .passport-card { grid-column: span 12; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--line); }
  .community-layout { grid-template-columns: 1fr; height: auto; min-height: auto; }
  .channel-panel { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; }
  .channel-list { display: flex; overflow-x: auto; gap: 4px; }
  .channel-link { flex: 0 0 auto; width: auto; }
  .channel-divider, .voice-entry { display: none; }
  .chat-panel { min-height: 62vh; }
  .voice-panel { margin: 0 16px 16px; }
  .side-panel { display: none; }
  .account-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-two-col { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .page-head { margin-bottom: 22px; }
  .page-title { font-size: clamp(34px, 8vw, 48px); }
}
@media (max-width: 680px) {
  .auth-brand { min-height: 330px; }
  .auth-hero { padding: 24px 0 20px; }
  .auth-word { font-size: clamp(3.8rem, 19vw, 6rem); }
  .auth-hero .cn { margin-top: 20px; }
  .auth-hero .cn p { display: none; }
  .auth-foot { display: none; }
  .auth-panel { padding: 32px 20px 50px; }
  .auth-brand .brand-top .meta { display: none; }
  .server-card { min-height: 280px; }
  .server-mid { flex-direction: column; align-items: flex-start; gap: 16px; }
  .dashboard-grid { gap: 10px; }
  .span-8, .span-7, .span-6, .span-5, .span-4, .span-3 { grid-column: span 12; }
  .stats-strip { margin: 4px 0; }
  .stat-item { padding: 14px 12px 14px 0; }
  .stat-item + .stat-item { padding-left: 12px; }
  .stat-value { font-size: 27px; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card { min-height: 240px; }
  .page { padding-left: 14px; padding-right: 14px; }
  .topbar { padding: 0 14px; }
  .mobile-header { padding: 12px 14px 10px; }
  .page-title { font-size: 35px; }
  .page-sub { font-size: 12px; }
  .page-actions .btn { min-height: 38px; padding: 0 14px; font-size: 11.5px; }
  .account-card { padding: 18px; }
  .bind-hero { padding: 22px; }
  .bind-hero .art { display: none; }
  .ip-row { grid-template-columns: 1fr auto; }
  .ip-row .geo { grid-column: 1 / -1; grid-row: 2; }
  .ip-row time { grid-row: 1; }
  .admin-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .metric-card { padding: 14px; }
  .metric-card .metric-value { font-size: 27px; }
  .settings-grid { grid-template-columns: 1fr; }
  .modal { border-radius: 18px 18px 0 0; align-self: flex-end; max-height: 92vh; }
  .overlay { padding: 0; align-items: flex-end; }
  .toast-stack { right: 12px; left: 12px; bottom: 88px; max-width: none; }
  .community-layout { border-radius: 16px; }
  .chat-feed { padding: 10px 12px 14px; }
  .chat-head { padding: 12px; }
  .chat-composer { padding: 10px 12px 12px; }
  .voice-participants { grid-template-columns: 1fr 1fr; }
  .center-page { min-height: calc(100vh - 120px); }
  .authz-card { border-radius: 18px; }
  .authz-body { padding: 20px; }
  .authz-top { padding: 22px; }
  .data-table { font-size: 10.5px; }
  .data-table th, .data-table td { padding: 9px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   XIAOMI PRODUCT THEME / MiSans
   White surfaces, orange accent, generous spacing, soft depth.
   ========================================================= */

.ambient-grid { display: none; }
body { background: #f7f7f7; color: var(--ink); font-family: var(--body); font-size: 15px; }
::selection { background: #ff6900; color: #fff; }
a, button, input, textarea, select { font-family: inherit; }
#app { background: transparent; }

/* ---------- app chrome ---------- */
.app-shell { display: block; min-height: 100vh; padding: 0; }
.mi-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92); border-bottom: 1px solid #ececec; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.mi-header-inner { max-width: 1320px; margin: 0 auto; min-height: 72px; padding: 0 32px; display: flex; align-items: center; gap: 40px; }
.mi-logo { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; color: #191919; }
.mi-logo .mark { width: 30px; height: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.mi-logo .mark i { display: block; background: #191919; border-radius: 3px; }
.mi-logo .mark i:nth-child(1), .mi-logo .mark i:nth-child(4) { background: #ff6900; }
.mi-logo-copy strong { display: block; font-size: 16px; line-height: 1.05; font-weight: 600; letter-spacing: -.03em; }
.mi-logo-copy small { display: block; margin-top: 3px; font-size: 8px; font-weight: 500; letter-spacing: .14em; color: #a3a3a3; }
.mi-header-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.mi-header-nav .nav-link { min-height: 38px; padding: 0 14px; color: #6f6f6f; background: transparent; border-radius: 999px; font-size: 13px; font-weight: 450; gap: 0; }
.mi-header-nav .nav-link svg, .mi-header-nav .nav-link .idx { display: none; }
.mi-header-nav .nav-link:hover { color: #191919; background: #f5f5f5; }
.mi-header-nav .nav-link.active { color: #191919; background: #f5f5f5; font-weight: 600; }
.mi-header-nav .nav-badge { display: inline-grid; place-items: center; margin-left: 6px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: #ff6900; color: #fff; font-size: 8px; font-weight: 600; }
.mi-header-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.mi-live { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 11px; border-radius: 999px; background: #f5f5f5; color: #888; font-size: 10px; white-space: nowrap; }
.mi-live i { width: 6px; height: 6px; border-radius: 50%; background: #b9b9b9; }
.mi-live.is-online { color: #555; }
.mi-live.is-online i { background: #ff6900; box-shadow: 0 0 0 3px rgba(255,105,0,.12); }
.mi-icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #ececec; border-radius: 50%; background: #fff; color: #333; }
.mi-icon-btn:hover { background: #f7f7f7; }
.mi-icon-btn .badge-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #ff6900; border: 1.5px solid #fff; }
.mi-user { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; border-radius: 999px; background: #f5f5f5; }
.mi-user .avatar { width: 30px; height: 30px; font-size: 10px; }
.mi-user-copy { display: grid; gap: 1px; min-width: 0; }
.mi-user-copy strong { font-size: 11.5px; font-weight: 600; line-height: 1.1; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-user-copy small { font-size: 8px; color: #999; }
.mi-logout { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #999; }
.mi-logout:hover { background: #fff; color: #191919; }
.main { padding: 0; }
.topbar { position: static; max-width: 1320px; margin: 0 auto; padding: 26px 32px 0; min-height: 0; background: transparent; border: 0; backdrop-filter: none; }
.topbar .crumbs { color: #aaa; font-size: 10px; letter-spacing: .04em; }
.topbar .crumbs strong { color: #191919; font-weight: 500; }
.topbar .slash { color: #d2d2d2; }
.mi-crumb-note { font-size: 8px; letter-spacing: .16em; color: #c2c2c2; }
.page { max-width: 1320px; margin: 0 auto; padding: 30px 32px 90px; }
.page-head { margin-bottom: 34px; align-items: flex-end; }
.page-title { font-family: var(--display); font-size: clamp(38px, 4.5vw, 64px); font-weight: 600; letter-spacing: -.06em; line-height: 1.02; margin-top: 12px; }
.page-title .accent { color: #b5b5b5; }
.page-sub { color: #727272; font-size: 14px; line-height: 1.7; max-width: 600px; margin-top: 14px; }
.eyebrow { color: #999; font-family: var(--body); font-size: 10px; letter-spacing: .08em; font-weight: 500; text-transform: none; gap: 8px; }
.eyebrow::before { width: 16px; height: 2px; border-radius: 2px; background: #ff6900; }
.eyebrow.plain::before { display: block; }
.section-head h2, .panel-head h2 { font-weight: 600; }

/* ---------- controls ---------- */
.btn { min-height: 46px; padding: 0 21px; border: 0; border-radius: 999px; background: #191919; color: #fff; font-size: 13px; font-weight: 500; transition: background .2s, color .2s, transform .2s; }
.btn:hover { transform: none; background: #333; }
.btn.acid { background: #ff6900; color: #fff; }
.btn.acid:hover { background: #e65f00; }
.btn.light { background: #f5f5f5; color: #191919; border: 0; }
.btn.light:hover { background: #ececec; }
.btn.ghost { background: #fff; color: #333; border: 1px solid #e7e7e7; }
.btn.ghost:hover { background: #f7f7f7; }
.btn.dark { background: #191919; color: #fff; }
.btn.danger { background: #fff0ee; color: #d9382b; border: 0; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 11.5px; }
.pill { min-height: 28px; border: 0; background: #f5f5f5; color: #777; font-family: var(--body); font-size: 10px; letter-spacing: .02em; font-weight: 500; padding: 0 11px; }
.pill.solid { background: #191919; color: #fff; }
.pill.acid { background: #fff0e6; color: #d75a00; }
.pill.orange { background: #fff0e6; color: #d75a00; border: 0; }
.pill.green { background: #eef8f1; color: #1f8a46; border: 0; }
.pill.red { background: #fff0ee; color: #d9382b; border: 0; }
.pill.live::before { background: #ff6900; box-shadow: 0 0 0 3px rgba(255,105,0,.12); }
.icon-btn { border-color: #eaeaea; background: #fff; }
.icon-btn:hover { background: #f5f5f5; }
.input, .textarea, .select { min-height: 50px; border: 1px solid transparent; border-radius: 14px; background: #f5f5f5; padding: 0 15px; }
.input:focus, .textarea:focus, .select:focus { border-color: #191919; background: #fff; box-shadow: 0 0 0 3px rgba(0,0,0,.04); }
.field > label, .field-label { color: #8b8b8b; font-family: var(--body); font-size: 11px; letter-spacing: .02em; text-transform: none; }
.hint { color: #8f8f8f; }
.card, .panel { background: #fff; border: 1px solid #ececec; border-radius: 24px; box-shadow: 0 2px 10px rgba(0,0,0,.025); backdrop-filter: none; }
.panel { padding: 26px; }
.avatar { background: #f2f2f2; color: #333; border-color: #e7e7e7; font-weight: 600; }
.avatar.online::after { background: #ff6900; border-color: #fff; }

/* ---------- overview ---------- */
.dashboard-grid { gap: 18px; }
.server-card { min-height: 340px; border-radius: 30px; background: radial-gradient(circle at 86% 10%, rgba(255,105,0,.24), transparent 34%), #101010; padding: 34px; }
.server-card::before { background-image: linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(135deg, black, transparent 72%); }
.server-card .big-orbit { border-color: rgba(255,105,0,.25); box-shadow: 0 0 0 54px rgba(255,105,0,.035), 0 0 0 108px rgba(255,255,255,.018); }
.server-card h2 { font-weight: 600; letter-spacing: -.055em; }
.server-card .eyebrow { color: rgba(255,255,255,.48); }
.server-card .eyebrow::before { background: #ff6900; }
.server-card .pill { background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); }
.server-card .pill.live::before { background: #ff6900; }
.copy-btn { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); border-radius: 50%; }
.copy-btn:hover { background: #ff6900; border-color: #ff6900; color: #fff; }
.server-rail-mark { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #ff6900; }
.passport-card { min-height: 340px; background: linear-gradient(145deg, #f5f5f5, #ededed); border: 1px solid #e6e6e6; color: #191919; border-radius: 30px; padding: 26px; }
.passport-card::after { color: rgba(255,105,0,.06); }
.passport-card .mono-label { color: #929292; }
.passport-card .passport-top .pill.solid { background: #191919; color: #fff; }
.passport-user h3 { color: #191919; }
.passport-user p { color: #8a8a8a; }
.passport-row { border-top-color: #dedede; }
.passport-row .label { color: #666; }
.passport-row strong { color: #191919; }
.passport-row .status-dot { background: #ff6900; }
.passport-row .status-dot.warn { background: #ff6900; }
.passport-foot a { color: #191919; }
.passport-foot .mini-dots i { background: #c9c9c9; }
.passport-foot .mini-dots i.on { background: #ff6900; }
.stats-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border: 1px solid #ececec; border-radius: 22px; background: #fff; overflow: hidden; margin: 2px 0 4px; }
.stat-item { padding: 22px 24px; border: 0 !important; }
.stat-item + .stat-item { border-left: 1px solid #ececec !important; }
.stat-label { color: #979797; font-family: var(--body); font-size: 10px; letter-spacing: .03em; text-transform: none; }
.stat-label .tick { background: #ff6900; }
.stat-value { font-size: clamp(27px, 2.7vw, 36px); font-weight: 600; letter-spacing: -.05em; }
.stat-value small { color: #999; font-family: var(--body); }
.stat-sub { color: #999; }
.panel-head .eyebrow { font-size: 9px; }
.resource-compact { border-top-color: #efefef; }
.resource-icon { border-color: #e9e9e9; background: #f7f7f7; border-radius: 12px; }
.resource-icon.acid { background: #ff6900; border-color: #ff6900; color: #fff; }
.resource-icon.dark { background: #191919; border-color: #191919; color: #fff; }
.resource-compact:hover { padding-left: 3px; }
.resource-compact .arrow { border-color: #e7e7e7; }
.resource-compact:hover .arrow { background: #191919; border-color: #191919; }
.todo-item { background: #fafafa; border-color: #ededed; border-radius: 16px; }
.todo-item:hover { border-color: #dedede; background: #f5f5f5; }
.todo-item .todo-icon { background: #f0f0f0; border-radius: 10px; }
.todo-item .todo-icon.warn { background: #fff0e6; color: #d75a00; }
.todo-item .todo-icon.ok { background: #eef8f1; color: #1f8a46; }
.voice-mini { background: #111; border-color: #111; border-radius: 28px; }
.voice-mini::after { border-color: rgba(255,105,0,.22); box-shadow: 0 0 0 40px rgba(255,105,0,.035); }
.voice-mini .panel-head .eyebrow::before { background: #ff6900; }
.voice-mini .btn.acid { background: #ff6900; color: #fff; }
.panel-head .eyebrow.plain::before { display: block; }

/* ---------- resources ---------- */
.filter-chip { min-height: 38px; border: 1px solid #e9e9e9; background: #fff; color: #777; font-size: 12px; }
.filter-chip:hover { border-color: #d5d5d5; color: #191919; }
.filter-chip.active { background: #191919; border-color: #191919; color: #fff; }
.resource-card { background: #fff; border: 1px solid #ececec; border-radius: 24px; box-shadow: 0 2px 10px rgba(0,0,0,.025); padding: 24px; }
.resource-card:hover { transform: translateY(-3px); border-color: #dedede; background: #fff; box-shadow: 0 14px 34px rgba(0,0,0,.06); }
.resource-card .big-icon { border-color: #ececec; background: #f7f7f7; border-radius: 14px; }
.resource-card .big-icon.acid { background: #ff6900; border-color: #ff6900; color: #fff; }
.resource-card .big-icon.dark { background: #191919; color: #fff; border-color: #191919; }
.resource-card h3 { font-weight: 600; }
.resource-foot .download-btn { background: #ff6900; color: #fff; height: 38px; }
.resource-foot .download-btn:hover { background: #e65f00; color: #fff; }
.icon-mini { border-color: #ececec; }
.icon-mini:hover { color: #d9382b; border-color: #f0c7c2; background: #fff5f3; }
.upload-drop { border-color: #dcdcdc; border-radius: 16px; background: #fafafa; }
.upload-drop:hover, .upload-drop.dragover { border-color: #ff6900; background: #fff8f3; }
.progress span { background: #ff6900; }

/* ---------- community ---------- */
.community-layout { height: calc(100vh - 310px); min-height: 560px; border: 1px solid #ececec; border-radius: 28px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.025); }
.channel-panel { border-right-color: #efefef; background: #fafafa; border-radius: 28px 0 0 28px; }
.channel-link { color: #777; border-radius: 12px; }
.channel-link:hover { background: #f0f0f0; color: #191919; }
.channel-link.active { background: #191919; color: #fff; }
.channel-link .hash { opacity: .45; }
.chat-head { border-bottom-color: #efefef; }
.chat-title .hash-badge { background: #f5f5f5; color: #888; border-radius: 12px; }
.chat-feed { background: #fff; }
.msg:hover { background: #fafafa; }
.msg.own { background: #fff5ed; }
.msg.own:hover { background: #ffefe4; }
.msg .msg-meta .role-badge { background: #f3f3f3; color: #777; }
.msg .msg-meta .role-badge.op2 { background: #eef2ff; color: #4055c7; }
.msg .msg-meta .role-badge.op3 { background: #191919; color: #ffb27a; }
.msg .msg-actions { background: #fff; border-color: #ececec; }
.chat-composer { border-top-color: #efefef; }
.composer-box { border-color: #e5e5e5; border-radius: 16px; background: #fff; }
.composer-box:focus-within { border-color: #191919; box-shadow: 0 0 0 3px rgba(0,0,0,.04); }
.side-panel { border-left-color: #efefef; background: #fafafa; border-radius: 0 28px 28px 0; }
.side-section + .side-section { border-top-color: #ececec; }
.side-section h3 { color: #999; font-family: var(--body); letter-spacing: .04em; }
.online-item:hover { background: #f2f2f2; }
.voice-entry { border-color: #ececec; background: #fff; border-radius: 14px; }
.voice-entry .v-icon { background: #ff6900; color: #fff; border-radius: 9px; }
.voice-entry .v-person { background: #f5f5f5; }
.voice-panel { background: #111; border-radius: 18px; }
.voice-panel::after { border-color: rgba(255,105,0,.25); }
.voice-wave i { background: #ff6900; }
.voice-controls .v-btn.active { background: #ff6900; border-color: #ff6900; color: #fff; }
.voice-controls .v-btn:hover { background: rgba(255,255,255,.12); }
.voice-panel .pill.live { background: rgba(255,105,0,.15); border-color: rgba(255,105,0,.28); color: #ff9a4d; }

/* ---------- account / authz ---------- */
.bind-hero { background: radial-gradient(circle at 84% 15%, rgba(255,105,0,.3), transparent 32%), #111; border-radius: 28px; }
.bind-hero .art i { border-color: rgba(255,255,255,.15); }
.bind-hero .art i:nth-child(1), .bind-hero .art i:nth-child(4) { background: #ff6900; border-color: #ff6900; }
.bind-hero .eyebrow::before { background: #ff6900; }
.game-avatar { background: #ff6900; border-color: #ff6900; color: #fff; }
.account-card { border-radius: 24px; }
.game-account { background: #fafafa; border-color: #ededed; border-radius: 16px; }
.pending-box { border-color: #ffd4b8; background: #fff5ed; border-radius: 14px; }
.pending-box .p-icon { background: #ffe6d3; color: #d75a00; }
.pending-box strong { color: #b74b00; }
.pending-box p { color: #a76a45; }
.qq-bind-box { background: #fafafa; border-color: #ededed; border-radius: 16px; }
.qq-logo { background: #fff0e6; color: #ff6900; border-color: #ffe0cc; }
.bind-code { background: #fafafa; border-color: #dedede; border-radius: 12px; }
.code-instruction { background: #f5f5f5; }
.authz-card { border-radius: 28px; border-color: #ececec; box-shadow: 0 24px 70px rgba(0,0,0,.08); }
.authz-top { background: radial-gradient(circle at 86% 8%, rgba(255,105,0,.3), transparent 34%), #111; }
.authz-top::after { border-color: rgba(255,105,0,.24); box-shadow: 0 0 0 40px rgba(255,105,0,.03); }
.authz-top .eyebrow::before { background: #ff6900; }
.authz-data { border-color: #ececec; border-radius: 16px; }
.authz-data-row { border-top-color: #efefef; }
.authz-warning { border-color: #ffd9c3; background: #fff6ef; color: #9a4b1c; border-radius: 14px; }
.result-check { background: #ff6900; color: #fff; }

/* ---------- admin ---------- */
.admin-tabs { border-bottom-color: #ececec; }
.admin-tab.active { border-bottom-color: #ff6900; }
.metric-card { background: #fff; border-color: #ececec; border-radius: 20px; }
.metric-card .metric-label { color: #999; font-family: var(--body); }
.metric-card .metric-value { font-weight: 600; }
.table-wrap { background: #fff; border-color: #ececec; border-radius: 20px; }
.data-table th { background: #fafafa; border-bottom-color: #ececec; color: #999; font-family: var(--body); letter-spacing: .03em; }
.data-table td { border-bottom-color: #f0f0f0; }
.data-table tr:hover td { background: #fafafa; }
.setting-block { background: #fff; border-color: #ececec; border-radius: 18px; }
.key-box { background: #fafafa; border-color: #e6e6e6; border-radius: 12px; }
.copy-small { background: #fff; border-color: #e7e7e7; }
.copy-small:hover { background: #ff6900; border-color: #ff6900; color: #fff; }
.qq-status-card { background: #fafafa; border-color: #ececec; border-radius: 16px; }
.qq-status-icon { background: #fff0e6; color: #ff6900; }
.mod-install { background: radial-gradient(circle at 90% 4%, rgba(255,105,0,.24), transparent 30%), #111; border-radius: 20px; }
.mod-install::after { border-color: rgba(255,105,0,.25); }
.mod-install code { color: #ffb27a; background: rgba(255,105,0,.12); }
.log-status.sent, .log-status.received { background: #eef8f1; color: #1f8a46; }
.log-status.failed { background: #fff0ee; color: #d9382b; }
.log-status.mock { background: #eef2ff; color: #4055c7; }
.log-status.queued { background: #fff6e8; color: #b26b00; }
.toggle input:checked + .track { background: #ff6900; }
.toggle input:checked + .track::after { background: #fff; }

/* ---------- overlays ---------- */
.modal { background: #fff; border-color: #ececec; border-radius: 26px; }
.modal-close { border-color: #ececec; background: #fff; }
.drawer-panel { background: #fff; border-left-color: #ececec; }
.drawer-head { border-bottom-color: #ececec; }
.notif-item .n-dot { background: #ff6900; }
.toast { background: #191919; border-color: #2c2c2c; border-radius: 14px; }
.toast .t-dot { background: #ff6900; }
.boot-mark i { background: #191919; }
.boot-mark i:nth-child(2), .boot-mark i:nth-child(4) { background: #ff6900; }

/* ---------- Xiaomi auth landing ---------- */
.mi-auth { min-height: 100vh; display: flex; flex-direction: column; background: #fff; color: #191919; }
.mi-topbar { max-width: 1320px; width: 100%; margin: 0 auto; min-height: 80px; padding: 0 32px; display: flex; align-items: center; gap: 40px; border-bottom: 1px solid #f0f0f0; }
.mi-topnav { display: flex; align-items: center; gap: 30px; flex: 1; font-size: 12px; color: #8a8a8a; }
.mi-topnav span { cursor: default; }
.mi-topright { margin-left: auto; }
.mi-auth-main { width: 100%; max-width: 1320px; margin: 0 auto; padding: 56px 32px 68px; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr); gap: 72px; align-items: center; flex: 1; }
.mi-hero { min-width: 0; }
.mi-kicker { display: flex; align-items: center; gap: 10px; color: #ff6900; font-size: 10px; font-weight: 600; letter-spacing: .12em; }
.mi-kicker > span { width: 22px; height: 2px; border-radius: 2px; background: #ff6900; }
.mi-display { margin: 22px 0 0; font-family: var(--display); font-size: clamp(72px, 9.2vw, 126px); font-weight: 650; line-height: .9; letter-spacing: -.08em; color: #191919; }
.mi-display span { color: #ff6900; }
.mi-tagline { margin-top: 28px; max-width: 640px; font-size: clamp(20px, 2.1vw, 27px); line-height: 1.38; font-weight: 500; letter-spacing: -.035em; color: #2b2b2b; }
.mi-desc { margin-top: 14px; max-width: 570px; color: #818181; font-size: 13px; line-height: 1.8; }
.mi-specs { display: flex; align-items: stretch; gap: 0; margin: 30px 0 26px; border-top: 1px solid #eeeeee; border-bottom: 1px solid #eeeeee; padding: 17px 0; max-width: 560px; }
.mi-spec { display: grid; gap: 3px; flex: 1; padding: 0 22px; border-left: 1px solid #eeeeee; }
.mi-spec:first-child { padding-left: 0; border-left: 0; }
.mi-spec strong { font-size: 23px; line-height: 1; font-weight: 600; letter-spacing: -.04em; }
.mi-spec strong em { font-style: normal; color: #b0b0b0; font-size: 12px; font-weight: 400; }
.mi-spec span { color: #999; font-size: 10px; }
.mi-map { position: relative; height: 258px; border-radius: 28px; background: #f5f5f5; border: 1px solid #ededed; overflow: hidden; isolation: isolate; }
.mi-map::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#c8c8c8 .8px, transparent .8px); background-size: 18px 18px; opacity: .35; z-index: -1; }
.mi-map-head { position: absolute; left: 22px; top: 19px; right: 22px; display: flex; justify-content: space-between; color: #a0a0a0; font-size: 8px; letter-spacing: .12em; }
.mi-rail { position: absolute; height: 5px; border-radius: 999px; transform-origin: left center; }
.rail-a { width: 68%; left: 8%; top: 64%; background: #ff6900; transform: rotate(-9deg); }
.rail-b { width: 56%; left: 31%; top: 31%; background: #1b1b1b; transform: rotate(28deg); }
.rail-c { width: 40%; left: 58%; top: 76%; background: #c7c7c7; transform: rotate(-3deg); }
.mi-stop { position: absolute; display: inline-flex; align-items: center; gap: 6px; }
.mi-stop i { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 4px solid #ff6900; box-shadow: 0 0 0 3px #fff; }
.mi-stop b { font-size: 9px; font-weight: 500; color: #666; background: rgba(255,255,255,.85); padding: 2px 5px; border-radius: 4px; }
.stop-a { left: 24%; top: 55%; }
.stop-b { left: 55%; top: 32%; }
.stop-b i { border-color: #191919; }
.stop-c { left: 53%; top: 76%; }
.stop-c i { border-color: #bbb; width: 9px; height: 9px; border-width: 3px; }
.mi-map-card { position: absolute; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 10px; min-width: 208px; padding: 12px 13px; border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.mi-line-badge { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #ff6900; color: #fff; font-size: 15px; font-weight: 600; }
.mi-map-card span:nth-child(2) { display: grid; gap: 2px; flex: 1; }
.mi-map-card strong { font-size: 11px; font-weight: 600; }
.mi-map-card small { font-size: 8px; color: #999; }
.mi-map-card b { color: #ff6900; font-weight: 400; }
.mi-hero-foot { display: flex; justify-content: space-between; margin-top: 14px; color: #aaa; font-size: 8px; letter-spacing: .08em; }
.mi-login-card { width: 100%; max-width: 440px; justify-self: end; padding: 34px; border: 1px solid #ececec; border-radius: 30px; background: #fff; box-shadow: 0 26px 70px rgba(0,0,0,.08); }
.mi-login-head { display: flex; align-items: center; justify-content: space-between; }
.mi-login-mark { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 25px; height: 25px; }
.mi-login-mark i { border-radius: 2px; background: #191919; }
.mi-login-mark i:nth-child(1), .mi-login-mark i:nth-child(4) { background: #ff6900; }
.mi-login-card h2 { margin-top: 25px; font-size: clamp(28px, 2.7vw, 36px); line-height: 1.08; letter-spacing: -.055em; font-weight: 600; }
.mi-login-sub { margin-top: 8px; color: #888; font-size: 12px; }
.mi-login-card .auth-tabs { margin: 24px 0 20px; background: #f5f5f5; }
.mi-login-card .auth-tab { min-height: 40px; font-size: 12px; }
.mi-login-card .auth-tab.active { background: #191919; color: #fff; }
.mi-login-card .auth-form { gap: 14px; }
.mi-login-card .field > label { font-size: 10px; color: #999; }
.mi-login-card .input { min-height: 50px; background: #f5f5f5; border-color: transparent; border-radius: 13px; font-size: 13px; }
.mi-login-card .input:focus { background: #fff; border-color: #191919; }
.mi-primary-btn { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; background: #ff6900; color: #fff; font-size: 13px; font-weight: 600; margin-top: 4px; transition: background .2s; }
.mi-primary-btn:hover { background: #e65f00; }
.mi-primary-btn:disabled { opacity: .5; }
.mi-login-card .auth-options { margin-top: 1px; }
.mi-login-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 22px; padding-top: 17px; border-top: 1px solid #f0f0f0; color: #a0a0a0; font-size: 9px; }
.mi-login-meta b { color: #333; font-weight: 600; }
.mi-login-note { display: flex; gap: 8px; margin-top: 18px; padding: 10px 11px; border-radius: 11px; background: #fafafa; color: #999; font-size: 10px; line-height: 1.55; }
.mi-login-note svg { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 1px; }
.mi-login-foot { margin-top: 18px; color: #bdbdbd; font-size: 8px; text-align: center; letter-spacing: .02em; }
.mi-footer { max-width: 1320px; width: 100%; margin: 0 auto; padding: 18px 32px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #f0f0f0; color: #b0b0b0; font-size: 8px; letter-spacing: .06em; }

/* ---------- mobile / responsive ---------- */
@media (max-width: 1100px) {
  .mi-header-inner { gap: 22px; padding: 0 24px; }
  .mi-header-nav { gap: 0; }
  .mi-header-nav .nav-link { padding: 0 10px; font-size: 12px; }
  .mi-auth-main { gap: 40px; padding-left: 24px; padding-right: 24px; }
  .mi-display { font-size: clamp(64px, 9vw, 104px); }
  .mi-topbar { padding: 0 24px; }
  .page, .topbar { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 900px) {
  .mi-header-inner { min-height: 62px; padding: 0 18px; gap: 12px; }
  .mi-header-nav { display: none; }
  .mi-header-right { margin-left: auto; }
  .mi-user-copy { display: none; }
  .mi-live { display: none; }
  .mi-user { padding: 4px; background: transparent; }
  .mi-logout { display: none; }
  .mi-icon-btn { width: 37px; height: 37px; }
  .topbar { padding: 18px 20px 0; }
  .mi-crumb-note { display: none; }
  .page { padding: 24px 20px 100px; }
  .mi-auth-main { grid-template-columns: 1fr; gap: 46px; padding: 44px 20px 54px; max-width: 620px; }
  .mi-login-card { justify-self: stretch; max-width: none; }
  .mi-topbar { min-height: 62px; padding: 0 20px; }
  .mi-topnav { display: none; }
  .mi-display { font-size: clamp(66px, 15vw, 98px); }
  .mi-tagline { font-size: 21px; }
  .mi-map { height: 230px; }
  .mi-footer { padding: 16px 20px 22px; flex-direction: column; align-items: flex-start; gap: 5px; }
  .community-layout { height: auto; min-height: 0; border-radius: 22px; }
  .channel-panel { border-radius: 22px 22px 0 0; }
  .side-panel { border-radius: 0 0 22px 22px; }
  .mi-header .mi-user .avatar { border: 0; }
  .mi-header .mi-icon-btn { display: grid; }
}
@media (max-width: 680px) {
  .mi-display { font-size: clamp(58px, 19vw, 86px); }
  .mi-auth-main { padding-top: 34px; gap: 34px; }
  .mi-login-card { padding: 24px; border-radius: 24px; box-shadow: 0 18px 50px rgba(0,0,0,.07); }
  .mi-login-card h2 { font-size: 28px; margin-top: 20px; }
  .mi-specs { margin: 24px 0 20px; }
  .mi-spec { padding: 0 14px; }
  .mi-spec strong { font-size: 20px; }
  .mi-map { height: 205px; }
  .mi-map-card { min-width: 190px; right: 12px; bottom: 12px; }
  .mi-desc { font-size: 12px; }
  .mi-hero-foot { font-size: 7px; }
  .mi-footer { font-size: 7px; }
  .page { padding-left: 16px; padding-right: 16px; }
  .page-title { font-size: clamp(34px, 9vw, 46px); }
  .page-sub { font-size: 13px; }
  .stat-item { padding: 17px 16px; }
  .stats-strip { border-radius: 18px; grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3) { border-left: 0 !important; border-top: 1px solid #ececec !important; }
  .stat-item:nth-child(4) { border-top: 1px solid #ececec !important; }
  .server-card { min-height: 300px; border-radius: 24px; padding: 24px; }
  .passport-card { border-radius: 24px; }
  .panel { padding: 20px; border-radius: 20px; }
  .resource-card { border-radius: 20px; }
  .bottom-nav { background: rgba(255,255,255,.94); border-color: #ececec; box-shadow: 0 10px 35px rgba(0,0,0,.1); }
  .bottom-nav a { color: #999; }
  .bottom-nav a.active { color: #ff6900; background: #fff3eb; }
  .mi-topbar .mi-live { display: inline-flex; }
}

/* bottom nav Xiaomi-light override */
.bottom-nav { background: rgba(255,255,255,.94); border: 1px solid #ececec; box-shadow: 0 10px 35px rgba(0,0,0,.1); }
.bottom-nav a { color: #999; }
.bottom-nav a.active { color: #ff6900; background: #fff3eb; }

/* mobile refinements */
@media (max-width: 680px) {
  .mi-map { display: none; }
  .mi-desc { display: none; }
  .mi-hero-foot { display: none; }
  .mi-specs { margin-top: 22px; }
  .mi-login-card { margin-top: 6px; }
  .mi-logout { display: grid; }
  .mi-header-right { gap: 6px; }
}
.app-foot { max-width: 1320px; margin: 0 auto; padding: 0 32px 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #b5b5b5; font-size: 8px; letter-spacing: .05em; }
@media (max-width: 900px) { .app-foot { padding: 0 20px 96px; } }
@media (max-width: 680px) { .app-foot { padding: 0 16px 94px; flex-direction: column; align-items: flex-start; gap: 4px; } }
.btn.acid { color: #191919; }
.btn.acid:hover { color: #191919; }
.resource-foot .download-btn { color: #191919; }
.resource-foot .download-btn:hover { color: #191919; }
.mi-primary-btn { color: #191919; }
.mi-primary-btn:hover { color: #191919; }
.mi-line-badge { color: #191919; }
.voice-mini .btn.acid { color: #191919; }
:root { --muted: #6b6b6b; }
.page-sub { color: #6b6b6b; }
.mi-kicker { color: #b34700; }
.mi-desc { color: #6b6b6b; }
.mi-spec span { color: #6b6b6b; }
.mi-login-sub { color: #6b6b6b; }
.mi-login-note { color: #6b6b6b; }
.mi-login-meta { color: #6b6b6b; }
.hint { color: #6b6b6b; }
.field > label, .field-label { color: #6b6b6b; }

/* ===== simplified content layout ===== */
.page { padding-top: 42px; }
.page-head { margin-bottom: 26px; }
.page-head .eyebrow { display: none; }
.page-title { font-size: clamp(36px, 4.2vw, 58px); }
.page-sub { margin-top: 8px; }
.passport-top { justify-content: flex-end; }
.passport-card::after { display: none; }
.passport-row .status-dot { display: none; }
.server-card h2 { margin-top: 0; }
.server-card .server-mid { padding-top: 54px; }
.resource-head { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.resource-head h3 { font-size: 16px; line-height: 1.3; }
.resource-kind { display: block; margin-top: 4px; color: #8a8a8a; font-size: 10px; }
.resource-card .desc { min-height: 0; margin-top: 0; }
.resource-card .resource-foot { margin-top: 20px; padding-top: 0; border-top: 0; }
.resource-size { color: #8a8a8a; font-size: 10px; }
.community-layout { grid-template-columns: 218px minmax(0, 1fr); height: calc(100vh - 252px); }
.chat-head { padding: 16px 22px; }
.chat-title { gap: 10px; }
.chat-title h2 { font-size: 15px; }
.chat-head-actions { display: none; }
.voice-entry { margin-top: auto; }
.voice-entry-controls { display: flex; gap: 5px; margin-top: 10px; }
.voice-entry-controls button { flex: 1; min-height: 32px; border: 1px solid #ececec; border-radius: 9px; background: #fafafa; color: #666; font-size: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.voice-entry-controls button:hover { background: #f2f2f2; color: #191919; }
.voice-entry-controls button.on { background: #fff0e6; border-color: #ffd8c2; color: #b34700; }
.voice-entry-controls button.danger { color: #b54a3f; }
.voice-entry-controls button svg { width: 12px; height: 12px; }
.account-card-head { align-items: center; margin-bottom: 18px; }
.account-card-head h3 { font-size: 16px; }
.account-card { padding: 24px; }
.mi-hero-meta { display: flex; align-items: center; gap: 26px; margin-top: 32px; color: #777; font-size: 12px; }
.mi-hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.mi-hero-meta i { width: 6px; height: 6px; border-radius: 50%; background: #c4c4c4; }
.mi-hero-meta i.on { background: #ff6900; box-shadow: 0 0 0 3px rgba(255,105,0,.12); }
.mi-auth-main { min-height: calc(100vh - 150px); }
.mi-login-head { justify-content: flex-start; }
.mi-login-foot { margin-top: 16px; }
.chat-composer .composer-actions { justify-content: flex-end; }
@media (max-width: 900px) {
  .community-layout { grid-template-columns: 1fr; height: auto; }
  .channel-panel { border-radius: 22px 22px 0 0; padding: 12px; }
  .channel-head { padding-bottom: 9px; }
  .channel-list { padding-bottom: 2px; }
  .channel-divider { display: none; }
  .voice-entry { display: block; margin-top: 10px; }
  .voice-entry .v-list { margin-top: 6px; }
  .voice-entry .voice-entry-controls { margin-top: 8px; }
  .voice-entry > .btn { margin-top: 8px !important; }
  .chat-panel { border-radius: 0 0 22px 22px; }
  .page { padding-top: 30px; }
}
@media (max-width: 680px) {
  .page-head { margin-bottom: 20px; }
  .mi-auth-main { min-height: auto; }
  .mi-hero-meta { margin-top: 24px; }
  .mi-login-card { margin-top: 0; }
}
@media (max-width: 680px) {
  .server-card h2 { font-size: 32px; white-space: nowrap; }
  .server-card { min-height: 280px; }
  .passport-card { min-height: auto; }
}
