:root {
  --bg: #020711;
  --bg-deep: #01050b;
  --surface: rgba(7, 20, 32, 0.78);
  --surface-strong: rgba(9, 27, 42, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.055);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: rgba(255, 255, 255, 0.94);
  --text-secondary: rgba(255, 255, 255, 0.62);
  --text-muted: rgba(255, 255, 255, 0.40);
  --green: #23e66d;
  --green-deep: #0ba84f;
  --green-wash: rgba(35, 230, 109, 0.12);
  --purple: #a46dff;
  --blue: #55c7ff;
  --orange: #ffb44a;
  --pink: #ff7eb6;
  --danger: #ff6b6b;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
  --sidebar-width: 252px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 33% -12%, rgba(11, 111, 140, 0.18), transparent 30rem),
    radial-gradient(circle at 74% 106%, rgba(35, 230, 109, 0.09), transparent 30rem),
    linear-gradient(165deg, #030916 0%, #061827 45%, #01050b 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  text-rendering: geometricPrecision;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.48) 100%);
  pointer-events: none;
}

body.is-menu-open { overflow: hidden; }

img, svg { display: block; }
button, input, select, textarea { font: inherit; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
::selection { color: #04110a; background: var(--green); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: #03100a;
  font-weight: 800;
  transform: translateY(-140%);
}
.skip-link:focus { transform: translateY(0); }

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: var(--sidebar-width);
  padding: 24px 16px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(2, 9, 18, 0.73);
  backdrop-filter: blur(24px) saturate(130%);
}

.brand { display: flex; align-items: center; gap: 9px; padding: 0 9px; }
.brand__mark { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid rgba(35, 230, 109, .34); border-radius: 10px; background: rgba(35, 230, 109, .08); }
.brand__mark img { width: 25px; height: 25px; object-fit: contain; }
.brand__text { display: grid; gap: 0; line-height: 1; }
.brand__text strong { font-size: 14px; font-weight: 800; letter-spacing: .07em; }
.brand__text span { margin-top: 3px; color: var(--text-secondary); font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.brand__admin { align-self: flex-start; margin: 1px 0 0 2px; padding: 3px 5px; border: 1px solid rgba(35, 230, 109, .24); border-radius: 5px; color: var(--green); font-size: 8px; font-weight: 800; letter-spacing: .08em; }

.workspace-switcher {
  display: grid;
  grid-template-columns: 32px 1fr 16px;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 32px 0 28px;
  padding: 10px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.workspace-switcher:hover { border-color: rgba(35, 230, 109, .38); background: var(--green-wash); }
.workspace-switcher__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #d8ff36, #20c95c); color: #04100a; font-size: 14px; font-weight: 900; }
.workspace-switcher small, .workspace-switcher strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-switcher small { margin-bottom: 2px; color: var(--text-muted); font-size: 9px; font-weight: 500; }
.workspace-switcher strong { font-size: 11px; font-weight: 700; }
.workspace-switcher > svg, .sidebar-profile > svg { width: 14px; fill: none; stroke: var(--text-muted); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.nav-group { display: grid; gap: 4px; }
.nav-group--secondary { margin-top: 28px; }
.nav-group__label { margin: 0 10px 8px; color: var(--text-muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nav-item { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 11px; width: 100%; min-height: 41px; padding: 0 11px; border-radius: 12px; background: transparent; color: var(--text-secondary); font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; transition: background .18s ease, color .18s ease; }
.nav-item svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.nav-item:hover { background: var(--surface-hover); color: var(--text); }
.nav-item.is-active { background: linear-gradient(90deg, rgba(35, 230, 109, .14), rgba(35, 230, 109, .05)); color: var(--green); box-shadow: inset 2px 0 0 var(--green); }
.nav-item.is-active span { color: var(--text); }
.nav-badge { display: grid; place-items: center; min-width: 22px; height: 21px; padding: 0 5px; border-radius: 7px; background: rgba(164, 109, 255, .18); color: #c6aaff; font-size: 9px; font-weight: 800; }

.sidebar__bottom { display: grid; gap: 16px; }
.system-status { display: flex; gap: 9px; padding: 12px 10px; border: 1px solid rgba(35, 230, 109, .13); border-radius: var(--radius-md); background: rgba(35, 230, 109, .045); }
.status-dot { flex: none; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(35, 230, 109, .1), 0 0 14px rgba(35, 230, 109, .7); }
.system-status strong, .system-status small { display: block; }
.system-status strong { color: rgba(255, 255, 255, .78); font-size: 10px; font-weight: 700; }
.system-status small { margin-top: 3px; color: var(--text-muted); font-size: 9px; }
.system-status.is-offline { border-color: rgba(255, 180, 74, .22); background: rgba(255, 180, 74, .055); }
.system-status.is-offline .status-dot { background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 180, 74, .10), 0 0 14px rgba(255, 180, 74, .60); }
.sidebar-profile { display: grid; grid-template-columns: 32px 1fr 14px; align-items: center; gap: 9px; width: 100%; padding: 8px 7px; border-radius: 12px; background: transparent; color: var(--text); text-align: left; cursor: pointer; transition: background .18s ease; }
.sidebar-profile:hover { background: var(--surface-hover); }
.sidebar-profile strong, .sidebar-profile small { display: block; }
.sidebar-profile strong { font-size: 11px; font-weight: 700; }
.sidebar-profile small { margin-top: 2px; color: var(--text-muted); font-size: 9px; }

.avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 2px solid rgba(255, 255, 255, .1); border-radius: 12px; font-size: 11px; font-weight: 800; }
.avatar--lime { border-color: rgba(35, 230, 109, .32); background: linear-gradient(135deg, #d8ff36, #1bc95a); color: #06130b; }
.avatar--violet { background: linear-gradient(135deg, #b99aff, #4d3c89); color: #fff; }
.avatar--orange { background: linear-gradient(135deg, #ffc871, #a45f23); color: #fff; }
.avatar--blue { background: linear-gradient(135deg, #89dcff, #236685); color: #fff; }
.avatar--pink { background: linear-gradient(135deg, #ffb1d3, #964564); color: #fff; }

.main-column { width: calc(100% - var(--sidebar-width)); margin-left: var(--sidebar-width); }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 0 clamp(24px, 4vw, 56px); border-bottom: 1px solid rgba(255, 255, 255, .065); background: rgba(2, 9, 18, .20); }
.topbar__left, .topbar__actions { display: flex; align-items: center; gap: 16px; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 11px; }
.breadcrumbs svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.breadcrumbs strong { color: var(--text-secondary); font-weight: 650; }
.global-search { display: flex; align-items: center; width: min(232px, 25vw); height: 38px; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .035); color: var(--text-muted); transition: border-color .18s ease, background .18s ease; }
.global-search:focus-within { border-color: rgba(35, 230, 109, .42); background: rgba(255, 255, 255, .07); }
.global-search svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.75; }
.global-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 11px; }
.global-search input::placeholder { color: var(--text-muted); }
.global-search kbd { flex: none; padding: 3px 5px; border: 1px solid var(--line); border-radius: 5px; color: var(--text-muted); font-size: 9px; white-space: nowrap; }
.icon-button { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .035); color: var(--text-secondary); cursor: pointer; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.icon-button:hover { border-color: var(--line-strong); background: var(--surface-hover); color: var(--text); }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.icon-button.has-notification > span { position: absolute; top: 7px; right: 7px; width: 5px; height: 5px; border: 1px solid #05100a; border-radius: 50%; background: var(--green); }
.icon-button--small { width: 31px; height: 31px; border: 0; background: transparent; }
.icon-button--small svg { width: 16px; height: 16px; }
.topbar-avatar { width: 34px; height: 34px; border-radius: 12px; font-size: 11px; }
.mobile-menu { display: none; width: 38px; height: 38px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); cursor: pointer; }
.mobile-menu span { display: block; height: 1px; margin: 4px 0; background: var(--text-secondary); }

.content { max-width: 1440px; margin: 0 auto; padding: clamp(32px, 4.7vw, 62px) clamp(24px, 4vw, 56px) 24px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.eyebrow { margin: 0 0 9px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.045em; }
h2 { margin-bottom: 5px; font-size: 14px; line-height: 1.2; letter-spacing: -.02em; }
.wave { display: inline-block; color: var(--green); font-size: .7em; transform: translateY(-3px); }
.page-heading__lead, .panel-heading p { margin: 0; color: var(--text-muted); font-size: 11px; }
.page-heading__actions { display: flex; gap: 9px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: 10px; font-size: 11px; font-weight: 750; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.button--primary { background: var(--green); color: #04110a; box-shadow: 0 8px 24px rgba(35, 230, 109, .16); }
.button--primary:hover { background: #47f183; }
.button--ghost { border-color: var(--line); background: rgba(255, 255, 255, .035); color: var(--text-secondary); }
.button--ghost:hover { border-color: var(--line-strong); background: var(--surface-hover); color: var(--text); }

.panel { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(12, 31, 47, .82), rgba(3, 13, 23, .84)); box-shadow: var(--shadow); overflow: hidden; }
.panel::after { position: absolute; inset: 1px; border: 1px solid rgba(255, 255, 255, .025); border-radius: calc(var(--radius-lg) - 1px); content: ""; pointer-events: none; }
.summary-grid { display: grid; grid-template-columns: 1.13fr repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.summary-card { min-height: 146px; padding: 19px 20px 17px; }
.summary-card--accent { background: linear-gradient(135deg, rgba(21, 75, 58, .88), rgba(5, 25, 28, .93)); border-color: rgba(35, 230, 109, .24); }
.summary-card__top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-secondary); font-size: 10px; font-weight: 650; }
.live-pill { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.live-pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.summary-card__value { position: relative; z-index: 1; margin: 21px 0 4px; color: var(--text); font-size: clamp(23px, 2.2vw, 29px); font-weight: 750; letter-spacing: -.045em; }
.summary-card__meta { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; padding-right: 46px; color: var(--text-muted); font-size: 9px; }
.trend { font-weight: 750; white-space: nowrap; }
.trend--up { color: var(--green); }
.trend--warning { color: var(--orange); }
.summary-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; }
.summary-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.summary-icon--purple { background: rgba(164, 109, 255, .14); color: var(--purple); }
.summary-icon--orange { background: rgba(255, 180, 74, .14); color: var(--orange); }
.summary-icon--green { background: rgba(35, 230, 109, .14); color: var(--green); }
.sparkline { position: absolute; right: 18px; bottom: 20px; display: flex; align-items: flex-end; gap: 4px; height: 38px; opacity: .85; }
.sparkline span { display: block; width: 4px; border-radius: 5px 5px 2px 2px; background: currentColor; }
.sparkline--purple { color: rgba(164, 109, 255, .55); }
.progress-line { position: absolute; right: 20px; bottom: 14px; left: 20px; height: 4px; border-radius: 5px; background: rgba(255, 255, 255, .07); }
.progress-line span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), #ffd382); }
.score-ring { position: absolute; right: 18px; bottom: 14px; width: 45px; height: 45px; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring circle { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 3; }
.score-ring__value { stroke: var(--green) !important; stroke-dasharray: 92 108; stroke-linecap: round; }
.mini-orbit { position: absolute; border: 1px solid rgba(35, 230, 109, .22); border-radius: 50%; pointer-events: none; }
.mini-orbit--one { top: -72px; right: -36px; width: 170px; height: 170px; }
.mini-orbit--two { top: -44px; right: -5px; width: 118px; height: 118px; border-color: rgba(35, 230, 109, .10); }
.mini-orbit::after { position: absolute; top: 27px; left: 22px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px 4px rgba(35, 230, 109, .38); content: ""; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(280px, .95fr); gap: 14px; margin-bottom: 14px; }
.analytics-panel, .quick-panel, .moderation-panel, .activity-panel { min-width: 0; padding: 21px 22px; }
.panel-heading { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-heading--with-action { align-items: center; }
.panel-heading > div { min-width: 0; }
.panel-menu { color: var(--text-muted); font-size: 14px; letter-spacing: 2px; }
.select-button { display: inline-flex; align-items: center; gap: 10px; min-height: 31px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .035); color: var(--text-secondary); font-size: 10px; cursor: pointer; }
.select-button:hover { border-color: var(--line-strong); color: var(--text); }
.select-button svg, .text-button svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.chart-legend { position: relative; z-index: 1; display: flex; gap: 17px; margin: 19px 0 4px 36px; color: var(--text-muted); font-size: 9px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; }
.legend-dot--green { background: var(--green); }
.legend-dot--blue { background: var(--blue); }
.activity-chart { display: grid; grid-template: 214px 19px / 28px 1fr; gap: 2px 9px; margin-top: 3px; }
.chart-y-axis, .chart-x-axis { display: flex; flex-direction: column; justify-content: space-between; color: var(--text-muted); font-size: 8px; text-align: right; }
.chart-canvas { position: relative; min-width: 0; }
.chart-gridlines { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.chart-gridlines i { display: block; width: 100%; border-top: 1px dashed rgba(255, 255, 255, .075); }
.chart-canvas > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart-area { stroke: none; }
.chart-area--green { fill: url(#area-green); }
.chart-area--blue { fill: url(#area-blue); }
.chart-line { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.chart-line--green { stroke: var(--green); }
.chart-line--blue { stroke: var(--blue); stroke-width: 1.6; opacity: .85; }
.chart-points--green circle { fill: #092a1d; stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-points--green circle:last-child { fill: var(--green); }
.chart-tooltip { position: absolute; top: 8px; right: 5px; display: grid; gap: 2px; padding: 8px 10px; border: 1px solid rgba(35, 230, 109, .3); border-radius: 8px; background: rgba(3, 15, 24, .88); box-shadow: 0 9px 22px rgba(0, 0, 0, .22); font-size: 9px; opacity: 0; transform: translateY(4px); transition: opacity .18s ease, transform .18s ease; pointer-events: none; }
.chart-tooltip strong { color: var(--text); font-size: 9px; }
.chart-tooltip span { color: var(--green); font-size: 8px; }
.chart-hover-line { position: absolute; top: 0; right: 1px; bottom: 0; border-left: 1px dashed rgba(35, 230, 109, .55); opacity: 0; transition: opacity .18s ease; }
.chart-canvas:hover .chart-tooltip, .chart-canvas:hover .chart-hover-line { opacity: 1; }
.chart-tooltip, .chart-hover-line { transform-origin: top right; }
.chart-x-axis { grid-column: 2; flex-direction: row; justify-content: space-between; padding-top: 5px; text-align: left; }

.quick-panel { padding-bottom: 15px; }
.quick-actions { display: grid; gap: 8px; margin-top: 21px; }
.quick-action { position: relative; display: grid; grid-template-columns: 33px 1fr 14px; grid-template-rows: 1fr 1fr; align-items: center; column-gap: 10px; width: 100%; min-height: 60px; padding: 9px 10px; border: 1px solid transparent; border-radius: 13px; background: rgba(255, 255, 255, .035); color: var(--text); text-align: left; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.quick-action:hover { transform: translateX(2px); background: var(--surface-hover); border-color: var(--line-strong); }
.quick-action > span { grid-row: 1 / span 2; display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; }
.quick-action > span svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.quick-action strong { align-self: end; font-size: 10px; font-weight: 700; }
.quick-action small { align-self: start; color: var(--text-muted); font-size: 8px; }
.quick-action__arrow { grid-column: 3; grid-row: 1 / span 2; width: 14px; height: 14px; fill: none; stroke: var(--text-muted); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.quick-action--green > span { background: rgba(35, 230, 109, .13); color: var(--green); }
.quick-action--purple > span { background: rgba(164, 109, 255, .13); color: var(--purple); }
.quick-action--blue > span { background: rgba(85, 199, 255, .13); color: var(--blue); }

.lower-grid { display: grid; grid-template-columns: minmax(0, 1.46fr) minmax(300px, 1fr); gap: 14px; }
.text-button { display: inline-flex; align-items: center; gap: 3px; padding: 5px 0; background: transparent; color: var(--green); font-size: 10px; font-weight: 700; cursor: pointer; }
.text-button:hover { color: #78ffa5; }
.filter-tabs { position: relative; z-index: 1; display: flex; align-items: center; gap: 4px; margin-top: 19px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.filter-tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 8px; background: transparent; color: var(--text-muted); font-size: 9px; font-weight: 700; cursor: pointer; }
.filter-tab b { display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 5px; background: rgba(255, 255, 255, .06); color: var(--text-muted); font-size: 8px; }
.filter-tab:hover { color: var(--text-secondary); }
.filter-tab.is-active { background: var(--green-wash); color: var(--green); }
.filter-tab.is-active b { background: rgba(35, 230, 109, .16); color: var(--green); }
.moderation-list { position: relative; z-index: 1; }
.api-empty-state { padding: 28px 0 14px; color: var(--text-muted); font-size: 10px; text-align: center; }
.moderation-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 35px 25px; align-items: center; gap: 11px; min-height: 61px; border-bottom: 1px solid rgba(255, 255, 255, .065); transition: opacity .18s ease; }
.moderation-row:last-child { border-bottom: 0; }
.moderation-row.is-hidden { display: none; }
.moderation-main { min-width: 0; }
.moderation-main strong, .moderation-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moderation-main strong { margin-bottom: 3px; color: var(--text); font-size: 10px; font-weight: 700; }
.moderation-main span { color: var(--text-muted); font-size: 8px; }
.role-chip { padding: 5px 7px; border-radius: 6px; background: rgba(164, 109, 255, .11); color: #b896ff; font-size: 8px; font-weight: 700; }
.role-chip--business { background: rgba(85, 199, 255, .11); color: #83d8ff; }
.moderation-row time { color: var(--text-muted); font-size: 8px; white-space: nowrap; }
.moderation-row[data-api-item] { grid-template-columns: 34px minmax(0, 1fr) auto 35px 64px 25px; }
.moderation-row.is-processing { opacity: .55; }
.moderation-controls { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.moderation-control { display: grid; place-items: center; width: 27px; height: 25px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 800; line-height: 1; cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.moderation-control--approve { background: rgba(182, 255, 59, .1); border-color: rgba(182, 255, 59, .18); color: var(--green); }
.moderation-control--approve:hover { background: rgba(182, 255, 59, .2); border-color: rgba(182, 255, 59, .42); }
.moderation-control--reject { background: rgba(255, 117, 140, .1); border-color: rgba(255, 117, 140, .18); color: #ff91a3; }
.moderation-control--reject:hover { background: rgba(255, 117, 140, .2); border-color: rgba(255, 117, 140, .4); }
.moderation-control:disabled { cursor: wait; opacity: .5; }
.row-action { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: transparent; color: var(--text-muted); cursor: pointer; }
.row-action:hover { background: var(--surface-hover); color: var(--green); }
.row-action svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.activity-panel { padding-bottom: 15px; }
.timeline { position: relative; margin-top: 17px; }
.timeline::before { position: absolute; top: 16px; bottom: 16px; left: 14px; width: 1px; background: var(--line); content: ""; }
.timeline-item { position: relative; display: grid; grid-template-columns: 29px 1fr; align-items: start; gap: 10px; min-height: 55px; }
.timeline-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 29px; height: 29px; border: 4px solid rgba(5, 17, 28, .95); border-radius: 10px; }
.timeline-icon svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.75; }
.timeline-icon--green { background: rgba(35, 230, 109, .15); color: var(--green); }
.timeline-icon--purple { background: rgba(164, 109, 255, .15); color: var(--purple); }
.timeline-icon--blue { background: rgba(85, 199, 255, .15); color: var(--blue); }
.timeline-icon--orange { background: rgba(255, 180, 74, .15); color: var(--orange); }
.timeline-item p { margin: 1px 0 3px; color: var(--text-secondary); font-size: 9px; line-height: 1.4; }
.timeline-item p strong { color: var(--text); font-weight: 700; }
.timeline-item time { color: var(--text-muted); font-size: 8px; }
.content-footer { display: flex; justify-content: space-between; padding: 20px 2px 0; color: var(--text-muted); font-size: 8px; }
.content-footer b { margin-left: 5px; padding: 3px 5px; border: 1px solid var(--line); border-radius: 4px; font-size: 7px; font-weight: 600; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: flex; align-items: center; gap: 9px; min-width: 220px; padding: 12px 14px; border: 1px solid rgba(35, 230, 109, .28); border-radius: 12px; background: rgba(4, 19, 28, .95); box-shadow: 0 18px 45px rgba(0, 0, 0, .32); color: var(--text); font-size: 10px; font-weight: 650; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast__icon { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 7px; background: rgba(35, 230, 109, .15); color: var(--green); font-size: 11px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 22px; background: rgba(0, 3, 8, .68); backdrop-filter: blur(12px); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.modal { position: relative; width: min(100%, 480px); padding: 29px; border: 1px solid rgba(35, 230, 109, .25); border-radius: 22px; background: linear-gradient(145deg, rgba(12, 35, 50, .98), rgba(2, 12, 21, .99)); box-shadow: 0 25px 80px rgba(0, 0, 0, .45); transform: translateY(9px) scale(.985); transition: transform .22s ease; }
.modal-backdrop.is-open .modal { transform: translateY(0) scale(1); }
.modal__close { position: absolute; top: 17px; right: 17px; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--text-muted); cursor: pointer; }
.modal__close:hover { color: var(--text); background: rgba(255, 255, 255, .1); }
.modal__close svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.modal__eyebrow { color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.modal h2 { margin: 9px 0 7px; font-size: 24px; letter-spacing: -.04em; }
.modal > p { max-width: 350px; margin-bottom: 23px; color: var(--text-secondary); font-size: 11px; }
.modal form { display: grid; gap: 14px; }
.modal label { display: grid; gap: 7px; color: var(--text-secondary); font-size: 10px; font-weight: 650; }
.modal input, .modal select, .modal textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: rgba(255, 255, 255, .045); color: var(--text); font-size: 11px; transition: border-color .18s ease, background .18s ease; }
.modal input, .modal select { height: 40px; padding: 0 11px; }
.modal textarea { padding: 10px 11px; resize: vertical; }
.modal input::placeholder, .modal textarea::placeholder { color: var(--text-muted); }
.modal input:focus, .modal select:focus, .modal textarea:focus { border-color: rgba(35, 230, 109, .5); background: rgba(35, 230, 109, .045); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

@media (max-width: 1180px) {
  :root { --sidebar-width: 226px; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-card--accent { grid-column: span 2; min-height: 130px; }
  .dashboard-grid, .lower-grid { grid-template-columns: 1fr; }
  .quick-panel { min-height: 0; }
  .quick-actions { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 780px) {
  :root { --sidebar-width: 252px; }
  .sidebar { box-shadow: 18px 0 70px rgba(0, 0, 0, .34); transform: translateX(-102%); transition: transform .25s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .main-column { width: 100%; margin-left: 0; }
  .topbar { min-height: 64px; padding: 0 18px; }
  .mobile-menu { display: block; }
  .global-search { width: 38px; padding: 0 10px; }
  .global-search input, .global-search kbd { display: none; }
  .topbar__actions { gap: 8px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 25px; }
  .page-heading__actions { width: 100%; }
  .page-heading__actions .button { flex: 1; }
  .content { padding: 29px 18px 20px; }
  .quick-actions { grid-template-columns: 1fr; }
  .lower-grid { grid-template-columns: 1fr; }
  .moderation-row { grid-template-columns: 34px minmax(0, 1fr) auto 25px; gap: 9px; }
  .moderation-row[data-api-item] { grid-template-columns: 34px minmax(0, 1fr) 25px 61px 25px; }
  .moderation-row .role-chip { display: none; }
  .moderation-row time { text-align: right; }
}

@media (max-width: 510px) {
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .summary-card--accent { grid-column: span 2; }
  .summary-card { min-height: 140px; padding: 16px 15px; }
  .summary-card__value { margin-top: 20px; font-size: 24px; }
  .summary-card__meta { display: block; line-height: 1.5; }
  .summary-card__meta span { display: block; }
  .summary-card__meta .trend { margin-bottom: 1px; }
  .analytics-panel, .quick-panel, .moderation-panel, .activity-panel { padding: 17px 15px; }
  .panel-heading { gap: 8px; }
  .select-button { padding: 0 7px; font-size: 9px; }
  .select-button svg { display: none; }
  .activity-chart { grid-template: 180px 19px / 24px 1fr; }
  .chart-canvas { height: 180px; }
  .chart-y-axis { height: 180px; }
  .chart-x-axis { font-size: 7px; }
  .chart-legend { margin-left: 31px; }
  .chart-tooltip { display: none; }
  .content-footer { display: grid; gap: 6px; }
  .form-grid { grid-template-columns: 1fr; }
  .modal { padding: 24px 18px 20px; }
}
