:root {
  
  --bg: #0d1015;
  color-scheme: dark;
  --surface: #151920;
  --surface-2: #1b212b;
  --hairline: rgba(255, 255, 255, .08);
  --fill: rgba(255, 255, 255, .05);
  --fill-2: rgba(255, 255, 255, .09);
  --fill-3: rgba(255, 255, 255, .14);

  
  --text: #f2f4f8;
  --text-2: #b0bacb;
  --text-3: #939fb2;

  
  --accent: #356fee;
  --accent-deep: #2b5fd9;
  --accent-text: #86acff;
  --accent-soft: rgba(61, 123, 253, .13);
  --ok: #30d158;
  --ok-soft: rgba(48, 209, 88, .12);
  --warn: #f5a524;
  --warn-soft: rgba(245, 165, 36, .13);
  --danger: #ff453a;
  --danger-soft: rgba(255, 69, 58, .12);
  --violet: #a78bfa;
  --violet-soft: rgba(167, 139, 250, .13);
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, .12);
  --discord: #5865f2;

  
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-full: 999px;

  
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;

  
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur-fast: 150ms;
  --dur: 200ms;
  --dur-slow: 300ms;

  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .35);
  --shadow-md: 0 10px 32px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .55);
  --focus: 0 0 0 3px rgba(53, 111, 238, .35);

  
  --header-h: 72px;
  --tabbar-h: 58px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 600px) {
  :root { --header-h: 54px; }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: rgba(255, 255, 255, .18) transparent;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "cv05", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }

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

.wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding-inline: 16px;
}
@media (min-width: 768px) { .wrap { padding-inline: 24px; } }

.page {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  min-width: 0;
  padding: var(--sp-7) 0 var(--sp-8);
}

@media (max-width: 719px) {
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
}

.layout { display: grid; gap: var(--sp-4); align-items: start; }
@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr) 280px; gap: var(--sp-4); }
  .layout-col { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
  .layout-side { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: var(--sp-4); }
}
@media (max-width: 959px) {
  .layout-col, .layout-side { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
}

.hero { padding: 4px 2px 0; display: flex; flex-direction: column; gap: 6px; }
.hero-title { font-size: clamp(25px, 4.2vw, 32px); font-weight: 700; letter-spacing: -.032em; line-height: 1.1; }
.hero-sub { font-size: 14.5px; color: var(--text-3); line-height: 1.5; max-width: 62ch; }
.hero-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); padding: 0 2px; }
.crumbs a { transition: color var(--dur-fast) var(--ease); }
.crumbs a:hover { color: var(--text); }
.crumbs svg { width: 14px; height: 14px; opacity: .45; flex-shrink: 0; }
.crumbs .current { color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 719px) { .hide-mob { display: none !important; } }
@media (min-width: 720px) { .hide-desk { display: none !important; } }
@media (min-width: 900px) { .hide-lg { display: none !important; } }
.spacer { flex: 1 1 auto; min-width: 0; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; gap: 10px; min-width: 0; height: 100%; }

.brand { display: flex; align-items: center; gap: 9px; min-width: 0; flex-shrink: 0; min-height: 40px; }
.brand-logo { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: -.015em; white-space: nowrap; }
.brand-tag {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 9px;
  border-radius: var(--r-full);
  background: var(--fill);
  color: var(--text-3);
  font-size: 11.5px; font-weight: 600;
  white-space: nowrap;
}

.nav { display: none; align-items: center; flex: 1 1 auto; gap: 2px; margin-left: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.nav::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .nav { display: flex; } }
.nav a {
  display: inline-flex; align-items: center;
  flex: 0 0 auto;
  height: 34px; padding: 0 12px;
  border-radius: var(--r-full);
  color: var(--text-2);
  font-size: 13.5px; font-weight: 600;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav a:hover { color: var(--text); background: var(--fill); }
.nav a.active { color: var(--text); background: var(--fill-2); }
.nav-report { gap: 5px; }
.nav.is-scrollable { padding-right: 16px; }

.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.header-search { display: none; position: relative; flex: 0 1 240px; min-width: 0; }
@media (min-width: 900px) { .header-search { display: block; } }
@media (max-width: 1250px) {
  .site-header .spacer, .header-search { display: none; }
  .header-actions .hide-lg { display: inline-flex !important; }
  .nav a { padding: 0 9px; font-size: 13px; }
}

.header-user { display: flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 40px; }
.header-user .avatar { box-shadow: 0 0 0 1px var(--hairline); }

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: flex;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-top: 1px solid var(--hairline);
}
@media (min-width: 720px) { .tabbar { display: none; } }
.tabbar a {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-3);
  font-size: 10.5px; font-weight: 600; letter-spacing: -.01em;
  transition: color var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.active { color: var(--accent-text); }
.tabbar a:active { opacity: .6; }
.tabbar .tab-dot {
  position: absolute;
  top: 8px; left: 50%; margin-left: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 2px var(--bg);
}

.panel {
  min-width: 0;
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 24px 28px 26px;
  display: flex; flex-direction: column; gap: 18px;

}


.panel--list { padding: 0; gap: 0; overflow: hidden; }
.panel--list .panel-head { padding: 22px 28px 14px; }
.panel--list .panel-foot { padding: 14px 28px 18px; border-top: 1px solid var(--hairline); }

.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-title { font-size: 19px; font-weight: 600; letter-spacing: -.022em; line-height: 1.25; }
.panel-sub { font-size: 13.5px; color: var(--text-3); margin-top: 3px; line-height: 1.45; }
.panel-sub:empty { display: none; }
.panel-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .panel { padding: 18px 16px 20px; border-radius: var(--r-lg); gap: 14px; }
  .panel--list { padding: 0; }
  .panel--list .panel-head { padding: 16px 16px 12px; }
  .panel--list .panel-foot { padding: 12px 16px 14px; }
  .panel-title { font-size: 17.5px; }
}

.section-title {
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-2);
  padding: 0 4px 8px;
}

.divider { height: 1px; background: var(--hairline); border: none; }

.btn {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--text);
  font-size: 14px; font-weight: 600; line-height: 1;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .9; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-deep); }
.btn-secondary { background: var(--fill-2); color: var(--text); }
.btn-secondary:hover:not(:disabled) { background: var(--fill-3); }
.btn-quiet { background: transparent; color: var(--accent-text); padding: 0 13px; }
.btn-quiet:hover:not(:disabled) { background: var(--accent-soft); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { background: var(--fill); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #e03a30; }
.btn-quiet.danger { color: var(--danger); }
.btn-quiet.danger:hover:not(:disabled) { background: var(--danger-soft); }

.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { min-height: 48px; padding: 0 24px; font-size: 15.5px; }
.btn-block { width: 100%; }
@media (max-width: 600px) { .btn-sm { min-height: 36px; } }

.icon-btn {
  appearance: none; cursor: pointer;
  width: 38px; height: 38px;
  border: none; border-radius: 50%;
  background: transparent;
  color: var(--text-2);
  display: inline-grid; place-items: center;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { background: var(--fill-2); color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.is-on { background: var(--accent-soft); color: var(--accent-text); }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }
.icon-btn-sm { width: 32px; height: 32px; }
@media (hover: none) { .icon-btn-sm { width: 36px; height: 36px; } }
.icon-btn-sm svg { width: 17px; height: 17px; }

.icon-btn { position: relative; }
.icon-btn .dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 2px var(--bg);
}

.seg {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px;
  border-radius: var(--r-full);
  background: var(--fill);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.seg::-webkit-scrollbar { display: none; }
.seg-btn {
  appearance: none; border: none; cursor: pointer;
  background: transparent;
  color: var(--text-2);
  font-size: 13px; font-weight: 600;
  padding: 0 14px;
  min-height: 34px;
  border-radius: var(--r-full);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.seg-btn:hover:not(.active) { color: var(--text); }
.seg-btn.active { background: var(--fill-3); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.seg-btn .n { color: var(--text-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.seg-btn.active .n { color: var(--text-2); }
.seg-full { display: flex; width: 100%; }
.seg-full .seg-btn { flex: 1; justify-content: center; }
@media (max-width: 600px) { .seg-btn { min-height: 36px; } }

.tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  margin: 0 -16px;
  padding: 8px 16px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs-track {
  display: inline-flex; gap: 2px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 3px;
  border-radius: var(--r-full);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hairline);
}
.tab {
  appearance: none; border: none; cursor: pointer;
  background: transparent;
  color: var(--text-2);
  font-size: 13.5px; font-weight: 600;
  padding: 0 16px;
  min-height: 38px;
  border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  white-space: nowrap; flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.tab:hover:not(.active) { color: var(--text); }
.tab.active { background: var(--fill-3); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.tab-badge {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--r-full);
  background: var(--fill-2); color: var(--text-2);
  font-size: 11px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tab.active .tab-badge { background: var(--accent); color: #fff; }
@media (min-width: 720px) {
  .tabs { margin: 0; padding: 2px 0; }
  .tabs-track { display: flex; }
  .tab { flex: 1; }
}

input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="url"],
input[type="password"], input[type="date"], input[type="number"], select, textarea {
  width: 100%;
  background: var(--fill);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  padding: 11px 14px;
  min-height: 44px;
  transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus {
  outline: none;
  background: var(--fill-2);
  box-shadow: var(--focus);
}
input[type="search"]::-webkit-search-cancel-button { filter: invert(1); opacity: .5; }
textarea { min-height: 120px; line-height: 1.6; resize: vertical; }
select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d8598' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}
select option { background: var(--surface-2); color: var(--text); }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-label { font-size: 12.5px; font-weight: 600; color: var(--text-3); letter-spacing: .01em; }
.field-hint { font-size: 12px; color: var(--text-3); line-height: 1.45; }
.field-hint.ok { color: var(--ok); }
.field-hint.warn { color: var(--warn); }
.field-hint.err { color: var(--danger); }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.search-wrap { position: relative; min-width: 0; }
.search-wrap input { padding-left: 42px; }
.search-wrap .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-3);
  pointer-events: none;
}
.search-wrap .search-kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  padding: 2px 7px; border-radius: 6px;
  background: var(--fill-2); color: var(--text-3);
  font-size: 11px; font-weight: 600;
  pointer-events: none;
}

.switch { position: relative; display: inline-block; width: 48px; height: 30px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  position: absolute; inset: 0;
  border-radius: var(--r-full);
  background: var(--fill-2);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.switch-track::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff; opacity: .55;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(18px); opacity: 1; }
.switch input:focus-visible + .switch-track { box-shadow: var(--focus); }
.toggle-label {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px;
  font-size: 14px; color: var(--text-2);
  cursor: pointer; user-select: none;
}

.check {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 40px;
  font-size: 14px; color: var(--text-2);
  cursor: pointer; user-select: none;
}
.check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); cursor: pointer; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 10px;
  border-radius: var(--r-full);
  background: var(--fill-2);
  color: var(--text-2);
  font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.chip svg { width: 13px; height: 13px; flex-shrink: 0; }
.chip-accent { background: var(--accent-soft); color: var(--accent-text); }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-danger { background: var(--danger-soft); color: var(--danger); }
.chip-violet { background: var(--violet-soft); color: var(--violet); }
.chip-cyan { background: var(--cyan-soft); color: var(--cyan); }
.chip-quiet { background: transparent; color: var(--text-3); padding: 0 2px; }
.chip-sm { height: 21px; padding: 0 8px; font-size: 11.5px; }
a.chip { transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
a.chip:hover { background: var(--fill-3); color: var(--text); }

@media (hover: none) {
  a.chip { height: auto; min-height: 32px; padding: 0 12px; }
  a.chip.chip-sm { min-height: 30px; }
}

.count-badge {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: var(--r-full);
  background: var(--danger); color: #fff;
  font-size: 11.5px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dot-status { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.dot-status.online { background: var(--ok); }
.dot-status.away { background: var(--warn); }

.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--fill-2);
  color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  line-height: 1;
  flex-shrink: 0;
  overflow: hidden;
  user-select: none;
}
.avatar-xs { width: 24px; height: 24px; font-size: 10px; }
.avatar-sm { width: 32px; height: 32px; font-size: 12.5px; }
.avatar-lg { width: 48px; height: 48px; font-size: 18px; }
.avatar-xl { width: 64px; height: 64px; font-size: 23px; }
.avatar-2xl { width: 92px; height: 92px; font-size: 32px; }
@media (max-width: 720px) { .avatar-2xl { width: 68px; height: 68px; font-size: 25px; } }

.avatar.c1 { background: linear-gradient(140deg, #5b90ff, #2b5fd9); }
.avatar.c2 { background: linear-gradient(140deg, #b79bff, #7c3aed); }
.avatar.c3 { background: linear-gradient(140deg, #4ade80, #16a34a); }
.avatar.c4 { background: linear-gradient(140deg, #fcd34d, #f59e0b); }
.avatar.c5 { background: linear-gradient(140deg, #fb7185, #e11d48); }
.avatar.c6 { background: linear-gradient(140deg, #67e8f9, #0891b2); }
.avatar.c7 { background: linear-gradient(140deg, #cbd5e1, #64748b); }
.avatar.c8 { background: linear-gradient(140deg, #f9a8d4, #db2777); }

.avatar-wrap { position: relative; flex-shrink: 0; display: inline-grid; }
.avatar-wrap .online-dot {
  position: absolute; right: -1px; bottom: -1px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 2.5px var(--surface);
}
.avatar-wrap.on-fill .online-dot { box-shadow: 0 0 0 2.5px var(--bg); }

.avatar-stack { display: flex; align-items: center; }
.avatar-stack .avatar { box-shadow: 0 0 0 2px var(--surface); }
.avatar-stack .avatar + .avatar { margin-left: -8px; }

.inset { background: var(--fill); border-radius: 16px; overflow: hidden; }
.inset-row {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  color: inherit;
  transition: background var(--dur-fast) var(--ease);
}
.inset-row + .inset-row { border-top: 1px solid var(--hairline); }
a.inset-row:hover, button.inset-row:hover { background: var(--fill-2); }
button.inset-row { width: 100%; border: none; background: none; text-align: left; cursor: pointer; }
.inset-icon {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--fill-2); color: var(--text-2);
  flex-shrink: 0;
}
.inset-icon svg { width: 17px; height: 17px; }
.inset-body { flex: 1; min-width: 0; }
.inset-title { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.inset-sub { font-size: 12.5px; color: var(--text-3); line-height: 1.4; margin-top: 2px; }
.inset-value { font-size: 13.5px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.inset-chevron { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; opacity: .7; }

.stats { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.stat {
  padding: 2px 20px;
  border-left: 1px solid var(--hairline);
  min-width: 0;
  text-align: left;
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat-value {
  display: block;
  font-size: 26px; font-weight: 600;
  letter-spacing: -.025em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stat-value small { font-size: 15px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.stat-value.ok { color: var(--ok); }
.stat-value.warn { color: var(--warn); }
.stat-value.bad { color: var(--danger); }
.stat-label {
  display: block; margin-top: 5px;
  font-size: 12.5px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .stat { padding: 0 14px; }
  .stat:nth-child(odd) { border-left: none; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hairline); padding-top: 16px; }
  .stat-value { font-size: 23px; }
}

.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 14.5px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty svg { width: 34px; height: 34px; opacity: .3; }
.empty-title { font-size: 16px; font-weight: 600; color: var(--text-2); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pager-info { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pager-nav { display: flex; align-items: center; gap: 2px; }
.page-btn {
  appearance: none; border: none; cursor: pointer;
  background: transparent; color: var(--text-2);
  min-width: 36px; height: 36px; padding: 0 8px;
  border-radius: var(--r-full);
  font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: inline-grid; place-items: center;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.page-btn:hover:not(:disabled):not(.active) { background: var(--fill-2); color: var(--text); }
.page-btn.active { background: var(--text); color: var(--bg); cursor: default; }
.page-btn:disabled { opacity: .35; cursor: default; }
.page-btn svg { width: 17px; height: 17px; }
.page-gap { width: 22px; text-align: center; color: var(--text-3); }
@media (max-width: 560px) {
  .pager { flex-direction: column; align-items: stretch; }
  .pager-info { text-align: center; }
  .pager-nav { justify-content: center; }
}

.banner {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: var(--accent-soft);
  color: var(--text-2);
  font-size: 13.5px; line-height: 1.5;
}
.banner svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--accent-text); }
.banner b { color: var(--text); font-weight: 600; }
.banner-warn { background: var(--warn-soft); }
.banner-warn svg { color: var(--warn); }
.banner-quiet { background: var(--fill); }
.banner-quiet svg { color: var(--text-3); }

.toast-host {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 200;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
  width: min(420px, calc(100vw - 32px));
}
@media (min-width: 720px) { .toast-host { bottom: 24px; } }
.toast {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--hairline);
  color: var(--text);
  font-size: 13.5px; font-weight: 600;
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.toast.in { opacity: 1; transform: none; }
.toast svg { width: 17px; height: 17px; color: var(--ok); flex-shrink: 0; }

.site-footer { border-top: 1px solid var(--hairline); padding: 22px 0 30px; margin-top: 8px; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-3);
}
.footer-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; min-height: 32px; transition: color var(--dur-fast) var(--ease); }
.footer-links a:hover { color: var(--text); }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img { width: 20px; height: 20px; border-radius: 6px; opacity: .8; }

.skip-link { position: fixed; z-index: 200; top: 8px; left: 16px; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-shell { min-height: calc(100vh - 210px); }
.site-shell--admin { display: grid; grid-template-columns: 216px minmax(0, 1fr); align-items: start; gap: 32px; }
.eyebrow { color: var(--accent-text); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
:where(h1, h2, h3, p, .activity-title, .activity-text, .admin-row-title, .post-body) { overflow-wrap: anywhere; }
:where(input, select, textarea) { min-width: 0; }
:where(section[id], article[id], #posts, #topics) { scroll-margin-top: calc(var(--header-h) + 20px); }
@media (min-width: 720px) and (max-width: 1100px) { .brand-tag { display: none; } }
@media (max-width: 719px) {
  .site-header .wrap { justify-content: space-between; }
  .page { padding-top: 20px; }
  .site-shell--admin { display: block; }
  .panel { padding: 20px 16px; }
  .panel--list { padding: 0; }
  input, textarea, select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-iteration-count: 1 !important; } }
