:root {
  --bg: #03070d;
  --bg-2: #06111c;
  --panel: rgba(6, 16, 27, .82);
  --panel-2: rgba(9, 23, 36, .88);
  --border: rgba(58, 205, 255, .18);
  --border-strong: rgba(58, 205, 255, .38);
  --text: #eff8ff;
  --muted: #8fa7bb;
  --muted-2: #60778b;
  --accent: #23c9ff;
  --accent-2: #69e3ff;
  --success: #00ff8a;
  --danger: #ff4f61;
  --warning: #ffc145;
  --shadow: 0 24px 80px rgba(0, 0, 0, .42);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.abyss-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% -10%, rgba(31, 195, 255, .18), transparent 34%),
    radial-gradient(circle at 8% 20%, rgba(0, 124, 183, .20), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(0, 173, 255, .16), transparent 28%),
    linear-gradient(135deg, #02050a, #06111c 48%, #02050a);
}
.abyss-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 72%);
}
.abyss-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(35,201,255,.10), transparent 38%);
  filter: blur(20px);
}


/* =========================
   PAGE CONNEXION DISCORD
   ========================= */
body.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #02050a;
}
body.login-body .abyss-bg {
  background:
    radial-gradient(circle at 50% 12%, rgba(35, 201, 255, .20), transparent 30%),
    radial-gradient(circle at 12% 84%, rgba(0, 158, 255, .18), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(0, 91, 150, .16), transparent 28%),
    linear-gradient(135deg, #010409, #06111c 52%, #02050a);
}
.login-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  position: relative;
}
.login-shell::before {
  content: "";
  position: absolute;
  width: min(720px, 80vw);
  height: min(720px, 80vw);
  border-radius: 50%;
  border: 1px solid rgba(35, 201, 255, .18);
  box-shadow: 0 0 90px rgba(35, 201, 255, .12), inset 0 0 80px rgba(35, 201, 255, .06);
  opacity: .65;
  transform: translateY(-20px);
  pointer-events: none;
}
.login-card {
  width: min(560px, calc(100vw - 32px));
  position: relative;
  z-index: 1;
  padding: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(8, 24, 38, .92), rgba(2, 8, 14, .94)),
    radial-gradient(circle at 50% 0%, rgba(35,201,255,.22), transparent 46%);
  box-shadow: 0 28px 110px rgba(0, 0, 0, .62), inset 0 0 48px rgba(35,201,255,.07);
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(110deg, transparent 0%, rgba(105,227,255,.16) 35%, transparent 70%);
  pointer-events: none;
}
.login-logo {
  width: 96px;
  height: 96px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 0 22px;
  border: 1px solid rgba(105,227,255,.42);
  background: #000;
  box-shadow: 0 0 40px rgba(35,201,255,.32);
}
.login-card .eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.login-card h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: .95;
  letter-spacing: -.04em;
  color: var(--text);
  text-shadow: 0 0 28px rgba(35,201,255,.24);
}
.login-text {
  margin: 22px 0 0;
  color: #bcd3e7;
  line-height: 1.65;
  font-size: 16px;
}
.discord-btn {
  margin-top: 26px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid rgba(105,227,255,.42);
  color: #00131d;
  text-decoration: none;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), #b6f5ff);
  box-shadow: 0 18px 48px rgba(35,201,255,.23);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.discord-btn::before { content: "🔐"; }
.discord-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 22px 58px rgba(35,201,255,.34);
}
.login-hint {
  margin: 22px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(0, 255, 138, .18);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(0, 255, 138, .045);
  line-height: 1.55;
  font-size: 14px;
}
@media (max-width: 620px) {
  .login-shell { padding: 18px; }
  .login-card { padding: 26px; border-radius: 22px; }
  .login-logo { width: 78px; height: 78px; }
  .discord-btn { width: 100%; }
}

.app-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
  gap: 14px;
  padding: 12px;
}

.sidebar {
  position: sticky;
  top: 12px;
  height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(8, 20, 33, .92), rgba(2, 8, 14, .94));
  box-shadow: var(--shadow), inset 0 0 42px rgba(35,201,255,.04);
  overflow: hidden;
}
.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: -2px;
  width: 3px;
  height: 100%;
  background: linear-gradient(transparent, rgba(35,201,255,.8), transparent);
  opacity: .45;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(35,201,255,.35);
  box-shadow: 0 0 32px rgba(35,201,255,.25);
  background: #000;
}
.brand h1 { margin: 0; font-size: 22px; letter-spacing: .02em; }
.brand p { margin: 4px 0 0; font-size: 12px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }

.nav-list { display: grid; gap: 10px; margin-top: 26px; }
.nav-card {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  text-align: left;
  transition: .18s ease;
}
.nav-card span { font-size: 20px; filter: drop-shadow(0 0 10px rgba(35,201,255,.25)); }
.nav-card strong { font-size: 15px; }
.nav-card em { font-style: normal; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.nav-card:hover, .nav-card.active {
  border-color: var(--border-strong);
  background: linear-gradient(90deg, rgba(35,201,255,.24), rgba(35,201,255,.04));
  box-shadow: 0 0 26px rgba(35,201,255,.18), inset 0 0 24px rgba(35,201,255,.06);
}
.is-viewer .admin-only { display: none; }

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
}
.user-mini, .readonly-box {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.045);
  border-radius: 18px;
  padding: 14px;
}
.user-mini { display: flex; align-items: center; gap: 12px; }
.avatar, .staff-avatar, .person-initial {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #00131d;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), #b6f5ff);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 0 26px rgba(35,201,255,.24);
}
.avatar.has-image, .staff-avatar.has-image {
  background-size: cover;
  background-position: center;
  color: transparent;
}
.user-mini strong { display: block; font-size: 15px; }
.user-mini small { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.readonly-box strong { display: block; color: var(--success); margin-bottom: 4px; }
.readonly-box span { color: var(--muted); font-size: 13px; }

.main {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(1, 7, 13, .70);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(1, 8, 15, .68);
}
.icon-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
}
.title-zone { min-width: 0; margin-right: auto; }
.title-zone p { margin: 0 0 4px; color: var(--accent-2); letter-spacing: .2em; text-transform: uppercase; font-size: 12px; }
.title-zone h2 { margin: 0; font-size: 25px; }
.top-status {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  color: var(--muted);
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.09);
  padding: 12px 16px;
  border-radius: 999px;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 18px var(--success);
}
.top-status strong { color: var(--text); }
.logout-btn, .ghost-btn {
  color: var(--text);
  text-decoration: none;
  background: rgba(35,201,255,.09);
  border: 1px solid rgba(35,201,255,.30);
  padding: 12px 16px;
  border-radius: 15px;
}
.logout-btn:hover, .ghost-btn:hover { background: rgba(35,201,255,.17); }

.view { display: none; padding: 20px; }
.view.active-view { display: block; }

.hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 45% 0%, rgba(35,201,255,.20), transparent 42%),
    linear-gradient(135deg, rgba(7, 23, 38, .90), rgba(2, 8, 15, .76));
  box-shadow: inset 0 0 70px rgba(35,201,255,.045);
  overflow: hidden;
  position: relative;
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 160px;
  border: 1px solid rgba(35,201,255,.23);
  border-radius: 50%;
  left: 55%;
  bottom: -105px;
  transform: translateX(-50%);
  box-shadow: 0 0 50px rgba(35,201,255,.18);
}
.hero-content { display: flex; align-items: center; gap: 20px; position: relative; z-index: 1; }
.hero-logo {
  width: 98px;
  height: 98px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(35,201,255,.45);
  box-shadow: 0 0 48px rgba(35,201,255,.34);
}
.eyebrow { margin: 0 0 4px; color: var(--accent-2); font-size: 12px; text-transform: uppercase; letter-spacing: .22em; }
.hero-card h1 { font-size: clamp(34px, 4.2vw, 62px); letter-spacing: .14em; margin: 0 0 6px; text-shadow: 0 0 24px rgba(35,201,255,.30); }
.hero-card span { color: var(--muted); line-height: 1.55; max-width: 830px; display: block; }
.hero-badge, .readonly-pill, .live-pill {
  position: relative;
  z-index: 1;
  border-radius: 999px;
  padding: 10px 15px;
  background: linear-gradient(135deg, var(--accent), #89efff);
  color: #00131d;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  white-space: nowrap;
}
.readonly-pill { padding: 8px 12px; font-size: 11px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,255,138,.13); color: var(--success); border: 1px solid rgba(0,255,138,.25); }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.stat-card {
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: inset 0 0 28px rgba(35,201,255,.03);
}
.stat-card > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(35,201,255,.10);
  border: 1px solid rgba(35,201,255,.14);
  font-size: 24px;
}
.stat-card strong { display: block; color: var(--accent); font-size: 28px; line-height: 1; }
.stat-card small { display: block; color: var(--muted); margin-top: 8px; }
.primary-stat { border-color: rgba(35,201,255,.25); }
.admin-stat { border-color: rgba(105,227,255,.18); }
.wide-stat { grid-column: span 2; }

.dashboard-panel, .logs-top-panel, .log-panel, .admin-panel {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(4, 13, 22, .78);
  box-shadow: inset 0 0 42px rgba(35,201,255,.025);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.panel-head p { margin: 0 0 4px; color: var(--accent-2); text-transform: uppercase; letter-spacing: .18em; font-size: 11px; }
.panel-head h3 { margin: 0; font-size: 22px; }
.compact-head { border-bottom: 0; padding-bottom: 8px; }

.dashboard-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}
.dashboard-category-card, .category-chip, .person-card {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-radius: 16px;
  transition: .16s ease;
}
.dashboard-category-card {
  text-align: left;
  padding: 16px;
  min-height: 112px;
}
.dashboard-category-card span { display: block; color: var(--muted); margin-bottom: 12px; }
.dashboard-category-card strong { display: block; font-size: 30px; color: var(--accent); }
.dashboard-category-card em { color: var(--muted); font-style: normal; }
.dashboard-category-card:hover, .category-chip:hover, .category-chip.active, .person-card:hover {
  border-color: var(--border-strong);
  background: rgba(35,201,255,.12);
  box-shadow: 0 0 22px rgba(35,201,255,.14);
}

.logs-top-panel { margin-top: 0; padding: 0 0 18px; }
.logs-toolbar { padding: 0 18px; }
.toolbar {
  display: grid;
  grid-template-columns: 1fr 150px auto;
  gap: 12px;
  align-items: center;
}
.search-wrap input, select {
  width: 100%;
  height: 52px;
  color: var(--text);
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  outline: none;
  padding: 0 16px;
}
.search-wrap input:focus, select:focus { border-color: var(--border-strong); box-shadow: 0 0 0 3px rgba(35,201,255,.10); }
select option { background: #06111c; color: var(--text); }
.ghost-btn { height: 52px; }

.category-section { padding: 16px 18px 0; }
.category-title-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.category-title-row strong { color: var(--text); }
.category-title-row small { color: var(--muted); }
.log-category-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.category-chip {
  min-width: 168px;
  padding: 13px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  white-space: nowrap;
}
.category-chip span { overflow: hidden; text-overflow: ellipsis; }
.category-chip strong { color: var(--accent); }
.category-chip.active { background: linear-gradient(90deg, rgba(35,201,255,.25), rgba(35,201,255,.07)); }
.category-empty { padding: 12px; color: var(--muted); }

.expanded-log-panel { min-height: 420px; }
.people-box:not(:empty) { padding: 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.people-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.people-head p { margin: 0 0 4px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.people-head h4 { margin: 0; font-size: 22px; }
.people-head small { color: var(--muted); }
.people-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.person-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 14px;
  text-align: left;
}
.person-initial { width: 42px; height: 42px; grid-row: span 2; }
.person-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-card em { color: var(--muted); font-style: normal; font-size: 12px; text-transform: uppercase; }
.person-card small { grid-column: 3; grid-row: 1 / span 2; color: var(--accent); font-weight: 800; }

.logs-list { display: grid; gap: 14px; padding: 18px; }
.log-card {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  border-radius: 18px;
  padding: 16px;
}
.log-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.log-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.channel-tag, .tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.channel-tag { background: rgba(35,201,255,.10); border: 1px solid rgba(35,201,255,.22); color: var(--accent-2); }
.tag { background: rgba(255,193,69,.10); border: 1px solid rgba(255,193,69,.22); color: var(--warning); }
.log-head time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.log-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.log-meta-grid div {
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.18);
  border-radius: 14px;
  padding: 10px;
  min-width: 0;
}
.log-meta-grid span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }
.log-meta-grid strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-content-title { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.log-card pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  color: #d9f3ff;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.06);
  line-height: 1.58;
  max-height: 360px;
  overflow: auto;
}

.empty-state, .instruction-card {
  padding: 34px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
}
.empty-state.compact { padding: 20px; grid-column: 1 / -1; }
.instruction-card { display: grid; gap: 8px; text-align: left; }
.instruction-card strong { color: var(--text); }

.admin-panel { padding-bottom: 18px; }
.panel-text { margin: 0; padding: 0 18px 16px; color: var(--muted); line-height: 1.6; }
.staff-usage-list, .settings-grid { display: grid; gap: 12px; padding: 0 18px 18px; }
.staff-usage-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}
.staff-avatar { width: 52px; height: 52px; }
.staff-main { flex: 1; min-width: 0; }
.staff-line { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.staff-line strong { font-size: 17px; }
.staff-role { border: 1px solid rgba(35,201,255,.25); color: var(--accent); border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.staff-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.staff-metrics span {
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 10px;
  background: rgba(0,0,0,.15);
}
.staff-metrics em { display: block; color: var(--muted); font-style: normal; font-size: 11px; margin-bottom: 4px; }
.staff-metrics b { color: var(--text); }
.console-output { margin: 0 18px 18px; display: grid; gap: 8px; max-height: 620px; overflow: auto; }
.console-line {
  display: grid;
  grid-template-columns: 160px 160px 130px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--muted);
}
.console-line strong { color: var(--accent-2); }
.console-line em { color: var(--warning); font-style: normal; }
.console-line code { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-line.danger { color: var(--danger); }
.settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.setting-card {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,.035);
}
.setting-card.wide { grid-column: 1 / -1; }
.setting-card h4 { margin: 0 0 14px; color: var(--accent-2); }
.setting-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.06); }
.setting-row span { color: var(--muted); }
.setting-row strong { text-align: right; overflow-wrap: anywhere; }
.safe-line { color: var(--success); margin-top: 8px; }
.fatal-error { max-width: 760px; margin: 80px auto; padding: 24px; border-radius: 18px; background: rgba(255,79,97,.10); border: 1px solid rgba(255,79,97,.3); color: var(--text); }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    z-index: 20;
    left: 12px;
    top: 12px;
    width: min(320px, calc(100vw - 24px));
    transform: translateX(calc(-100% - 24px));
    transition: .2s ease;
  }
  .sidebar-open .sidebar { transform: translateX(0); }
  .icon-btn { display: inline-grid; place-items: center; }
  .stats-grid, .dashboard-category-grid, .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .log-meta-grid, .staff-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .app-shell { padding: 8px; }
  .main { border-radius: 18px; }
  .topbar { flex-wrap: wrap; padding: 14px; }
  .top-status { order: 4; width: 100%; justify-content: center; }
  .view { padding: 12px; }
  .hero-card, .hero-content { align-items: flex-start; flex-direction: column; }
  .hero-card h1 { font-size: 34px; }
  .stats-grid, .dashboard-category-grid, .people-grid, .settings-grid { grid-template-columns: 1fr; }
  .wide-stat { grid-column: auto; }
  .toolbar { grid-template-columns: 1fr; }
  .log-head { flex-direction: column; align-items: flex-start; }
  .log-meta-grid, .staff-metrics { grid-template-columns: 1fr; }
  .console-line { grid-template-columns: 1fr; }
}
