:root {
  color-scheme: dark;
  --cc-bg: #040611;
  --cc-bg-2: #070b18;
  --cc-panel: rgba(8, 13, 32, 0.92);
  --cc-panel-2: rgba(12, 18, 42, 0.92);
  --cc-panel-soft: rgba(18, 24, 52, 0.72);
  --cc-border: rgba(110, 125, 205, 0.28);
  --cc-border-strong: rgba(133, 95, 255, 0.52);
  --cc-text: #f4f7ff;
  --cc-muted: #99a6c7;
  --cc-muted-2: #697697;
  --cc-cyan: #1ad8ff;
  --cc-blue: #367cff;
  --cc-violet: #8448ff;
  --cc-magenta: #ef38c7;
  --cc-pink: #ff4b9c;
  --cc-orange: #ff861d;
  --cc-yellow: #ffc44d;
  --cc-green: #31e38a;
  --cc-red: #ff466f;
  --cc-shadow: 0 20px 70px rgba(0, 0, 0, 0.34);
  --cc-radius: 18px;
  --cc-radius-sm: 12px;
  --cc-sidebar: 224px;
  --cc-topbar: 78px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cc-bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--cc-text);
  background:
    radial-gradient(circle at 12% 8%, rgba(42, 103, 255, 0.13), transparent 26rem),
    radial-gradient(circle at 82% 14%, rgba(255, 71, 123, 0.10), transparent 30rem),
    linear-gradient(135deg, #03050d 0%, #070919 48%, #08050e 100%);
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(67, 102, 190, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 102, 190, .06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 78%);
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--cc-muted); }
.compact { margin-top: .35rem; margin-bottom: .35rem; }
.small { font-size: .86rem; }
.mini { font-size: .78rem; }
.wide { grid-column: span 2; }
.span-two { grid-column: span 2; }

/* ---------- Shared legacy dashboard foundation, rebuilt for 5.0 ---------- */
.shell {
  width: min(1480px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 60px;
}
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.topbar h1, .section-heading h2, .section-heading h3, h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
}
.topbar h1 { font-size: clamp(1.9rem, 3vw, 3.2rem); letter-spacing: -.035em; }
.subtitle { margin: 8px 0 0; color: var(--cc-muted); }
.eyebrow {
  margin: 0 0 7px;
  color: var(--cc-magenta);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.top-actions, .action-row, .row-actions, .filter-actions, .import-toolbar, .gradient-access-add {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.section-heading, .list-heading, .item-head, .filter-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.section-heading { margin-bottom: 18px; }

.module-card, .inner-card, .card, .stat-card, .feature-card, .portal-card, .connect-card,
.hero-card, .source-card, .category-card, .mini-card, .preview-card, .support-card,
.ops-details, .update-stat, .ops-stat, .radio-stat, .creator-stat, .schedule-stat,
.live-role-stat, .message-card, .step-card, .discovery-block, .item-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  background:
    linear-gradient(145deg, rgba(15, 22, 49, .88), rgba(6, 10, 27, .94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), var(--cc-shadow);
}
.module-card { padding: 24px; margin-top: 18px; }
.inner-card, .portal-card, .feature-card, .connect-card, .preview-card, .support-card,
.source-card, .category-card, .step-card, .discovery-block, .item-card { padding: 18px; }
.card, .stat-card, .mini-card, .ops-stat, .update-stat, .radio-stat, .creator-stat, .schedule-stat, .live-role-stat { padding: 16px; }
.module-card::after, .inner-card::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, var(--cc-cyan), var(--cc-magenta), transparent);
  opacity: .65;
}

.grid, .stat-grid, .mini-grid, .summary-grid, .guide-grid, .builder-grid, .source-grid,
.profile-grid, .quest-grid, .dates-grid, .toggle-grid, .provider-grid, .achievement-grid,
.giveaway-grid, .detail-grid, .insight-grid, .command-grid, .progress-admin-grid,
.ops-two-column, .update-two-column, .two-col, .colour-layout, .import-style-grid {
  display: grid;
  gap: 16px;
}
.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-grid, .mini-grid, .summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two-col, .ops-two-column, .update-two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.builder-grid, .source-grid, .guide-grid, .profile-grid, .quest-grid, .dates-grid,
.provider-grid, .achievement-grid, .giveaway-grid, .insight-grid, .command-grid, .progress-admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.module {
  min-height: 84px;
  padding: 16px;
  text-align: left;
  color: var(--cc-text);
  border: 1px solid rgba(115, 104, 220, .26);
  border-radius: 14px;
  background: rgba(11, 16, 38, .86);
  transition: .18s ease;
}
.module:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 213, 255, .52);
  box-shadow: 0 12px 32px rgba(44, 80, 255, .12), inset 0 0 24px rgba(100, 62, 255, .08);
}
.module small { display: block; margin-top: 7px; color: var(--cc-muted); line-height: 1.35; }
.module-live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cc-green); margin-right: 8px; box-shadow: 0 0 12px var(--cc-green); }

.button, .tiny-button, .portal-button, .preset-button, .transport-button, .mode-button, .tab {
  border: 1px solid rgba(119, 100, 255, .36);
  border-radius: 11px;
  color: var(--cc-text);
  background: rgba(16, 22, 48, .88);
  padding: 10px 15px;
  font-weight: 800;
  text-decoration: none;
  transition: .18s ease;
}
.button:hover, .tiny-button:hover, .portal-button:hover, .preset-button:hover, .transport-button:hover, .mode-button:hover, .tab:hover {
  transform: translateY(-1px);
  border-color: rgba(28, 216, 255, .62);
  background: rgba(24, 34, 68, .96);
}
.button.primary, .portal-button.primary, .tab.active {
  border-color: rgba(211, 69, 255, .72);
  background: linear-gradient(120deg, rgba(39, 117, 255, .92), rgba(142, 66, 255, .92) 48%, rgba(239, 56, 199, .9));
  box-shadow: 0 8px 26px rgba(114, 52, 255, .25);
}
.button.ghost { background: rgba(11, 17, 39, .72); }
.button.danger, .danger { border-color: rgba(255,70,111,.5); color: #ffafc0; }
.tiny-button { padding: 7px 10px; font-size: .78rem; }

input, select, textarea {
  width: 100%;
  color: var(--cc-text);
  border: 1px solid rgba(117, 130, 199, .34);
  border-radius: 11px;
  background: rgba(3, 8, 24, .82);
  padding: 11px 12px;
  outline: none;
  transition: .18s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--cc-cyan);
  box-shadow: 0 0 0 3px rgba(26,216,255,.09), 0 0 24px rgba(26,216,255,.07);
}
textarea { min-height: 110px; resize: vertical; }
label { display: grid; gap: 7px; color: #d7def4; font-size: .9rem; }
.stack-form { display: grid; gap: 14px; }
.form-two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.check-row, .toggle-row, .inline-check, .switch-line, .mini-check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check-row input, .toggle-row input, .inline-check input, .switch-line input, .mini-check input { width: auto; }
.form-result { min-height: 1.2em; color: var(--cc-muted); }
.error-text, .notice.error { color: #ff91aa; }
.notice.warn { color: #ffd37e; }
.notice {
  padding: 12px 15px;
  margin: 12px 0;
  border: 1px solid rgba(111, 126, 203, .3);
  border-radius: 12px;
  background: rgba(12, 18, 43, .88);
}
.tip, .privacy-strip, .privacy-note, .security-check, .ops-warning, .provider-warning {
  border: 1px solid rgba(38, 202, 255, .26);
  border-radius: 12px;
  background: rgba(20, 40, 59, .46);
  padding: 12px 14px;
}

.pill, .status-pill, .status-chip, .status-badge, .ops-badge, .count-badge, .guild-badge, .access {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .03em;
  border: 1px solid rgba(109, 125, 203, .34);
  background: rgba(14, 21, 48, .86);
}
.pill.online, .status-pill.live, .status-chip.live, .status-badge.live, .complete, .all-clear {
  color: #9effc5;
  border-color: rgba(49,227,138,.42);
  background: rgba(20, 91, 61, .24);
}
.pill.waiting { color: #ffd57f; }

.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(40, 203, 255, .6); }
.profile-copy { display: grid; gap: 2px; }

.colour-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 18px; }
.tab-panel { animation: ccFade .18s ease; }
@keyframes ccFade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.card-list, .history-list, .hub-list, .member-list, .match-list, .request-list,
.management-list, .progress-list, .timeline, .creator-list, .compact-list, .flow-list,
.colour-list, .role-import-list, .gradient-access-list { display: grid; gap: 10px; }
.compact-row, .history-row, .timeline-row, .meta-row, .portal-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- 5.0 global application shell ---------- */
body.cc-shell-mounted { overflow-x: hidden; }
.cc-app-frame {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--cc-sidebar) minmax(0, 1fr);
  position: relative;
  z-index: 1;
}
.cc-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--cc-sidebar);
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  background: rgba(3, 7, 18, .96);
  border-right: 1px solid rgba(73, 91, 154, .25);
  box-shadow: 18px 0 60px rgba(0,0,0,.24);
  z-index: 80;
  overflow-y: auto;
}
.cc-brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 3px 6px 14px;
  text-decoration: none;
}
.cc-brand img {
  width: 104px;
  height: 104px;
  border-radius: 19px;
  object-fit: cover;
  filter: drop-shadow(0 0 18px rgba(54,126,255,.18));
}
.cc-brand-wordmark { display: none; }
.cc-nav { display: grid; gap: 3px; margin-top: 2px; }
.cc-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #ced6ed;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 700;
  transition: .16s ease;
}
.cc-nav-link svg { width: 18px; height: 18px; flex: 0 0 auto; color: #8d9abb; }
.cc-nav-link:hover { color: #fff; background: rgba(43, 55, 100, .28); }
.cc-nav-link.active {
  color: #fff;
  border-color: rgba(95, 71, 255, .56);
  background: linear-gradient(110deg, rgba(20, 103, 255, .16), rgba(136, 42, 255, .18));
  box-shadow: inset 0 0 25px rgba(89, 54, 255, .08), 0 0 22px rgba(42, 103, 255, .06);
}
.cc-nav-link.active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 9px;
  bottom: 9px;
  width: 2px;
  border-radius: 4px;
  background: linear-gradient(var(--cc-cyan), var(--cc-magenta));
  box-shadow: 0 0 10px var(--cc-cyan);
}
.cc-nav-link.active svg { color: var(--cc-cyan); }
.cc-nav-badge { margin-left: auto; min-width: 20px; text-align: center; padding: 2px 6px; border-radius: 999px; color: #fff; background: rgba(239,56,199,.5); border: 1px solid rgba(255,86,191,.55); font-size: .68rem; }
.cc-sidebar-spacer { flex: 1; min-height: 18px; }
.cc-time-card {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(86, 102, 170, .28);
  border-radius: 14px;
  background: radial-gradient(circle at 85% 20%, rgba(119, 55, 255, .18), transparent 45%), rgba(9, 14, 33, .82);
}
.cc-time-label { color: var(--cc-muted); font-size: .72rem; font-weight: 800; }
.cc-time-value { margin-top: 4px; font-size: 1.38rem; font-weight: 900; letter-spacing: -.03em; }
.cc-time-date { margin-top: 5px; color: var(--cc-muted); font-size: .72rem; }
.cc-all-modules { margin-top: 8px; width: 100%; }

.cc-workspace {
  grid-column: 2;
  min-width: 0;
  min-height: 100vh;
}
.cc-toprail {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--cc-topbar);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 11px 22px;
  border-bottom: 1px solid rgba(79, 93, 154, .24);
  background: rgba(4, 8, 20, .88);
  backdrop-filter: blur(20px);
}
.cc-top-title { min-width: 300px; }
.cc-top-title strong { display: block; font-size: 1.1rem; letter-spacing: -.015em; }
.cc-top-title span { display: block; margin-top: 2px; color: var(--cc-muted); font-size: .75rem; }
.cc-brand-gradient {
  background: linear-gradient(90deg, var(--cc-orange), var(--cc-yellow) 33%, #fff 62%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cc-global-search {
  margin-left: auto;
  width: min(390px, 33vw);
  position: relative;
}
.cc-global-search input { height: 42px; padding-left: 39px; background: rgba(3, 8, 22, .9); }
.cc-global-search svg { position: absolute; left: 13px; top: 12px; width: 18px; height: 18px; color: #8c99ba; }
.cc-kbd { position: absolute; right: 10px; top: 9px; padding: 3px 6px; border: 1px solid rgba(126,138,190,.3); border-radius: 6px; color: #8e9abd; font-size: .66rem; }
.cc-top-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: #a9ffca;
  font-size: .72rem;
  font-weight: 900;
}
.cc-top-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cc-green); box-shadow: 0 0 10px var(--cc-green); }
.cc-user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 7px;
  min-width: 150px;
}
.cc-user-chip img { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(28,216,255,.55); }
.cc-user-chip-copy { display: grid; min-width: 0; }
.cc-user-chip strong { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-user-chip span { color: var(--cc-muted); font-size: .68rem; }
.cc-module-viewport { padding: 20px 22px 54px; }
.cc-page-stage > .shell { width: 100%; margin: 0; padding: 0; }
.cc-page-stage > .shell > .topbar {
  padding: 4px 2px 20px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(87, 99, 158, .16);
}
.cc-page-stage > .shell > .topbar h1 { font-size: clamp(1.65rem, 2.2vw, 2.35rem); }
.cc-page-stage .module-card { box-shadow: 0 18px 50px rgba(0,0,0,.22); }

/* Module palette / command centre */
.cc-palette-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: start center;
  padding-top: 10vh;
  background: rgba(0, 2, 10, .76);
  backdrop-filter: blur(10px);
}
.cc-palette {
  width: min(720px, calc(100vw - 32px));
  max-height: 78vh;
  overflow: hidden;
  border: 1px solid rgba(119, 83, 255, .55);
  border-radius: 18px;
  background: rgba(7, 11, 28, .98);
  box-shadow: 0 35px 100px rgba(0,0,0,.55), 0 0 70px rgba(104,58,255,.12);
}
.cc-palette-head { padding: 15px; border-bottom: 1px solid rgba(94, 105, 168, .22); }
.cc-palette-head input { height: 46px; }
.cc-palette-list { max-height: calc(78vh - 78px); overflow-y: auto; padding: 8px; }
.cc-palette-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; text-decoration: none; }
.cc-palette-link:hover { background: rgba(61, 77, 137, .26); }
.cc-palette-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(135deg, rgba(40,127,255,.16), rgba(230,51,201,.17)); color: var(--cc-cyan); }
.cc-palette-copy { display: grid; gap: 2px; }
.cc-palette-copy small { color: var(--cc-muted); }

/* ---------- 5.0 Overview ---------- */
body.cc-home { overflow-x: hidden; }
.cc-home-frame { min-height: 100vh; display: grid; grid-template-columns: var(--cc-sidebar) minmax(0,1fr); }
.cc-home-frame .cc-sidebar { position: fixed; }
.cc-home-workspace { grid-column: 2; min-width: 0; }
.cc-home-main { padding: 16px 20px 48px; }
.cc-home-layout { display: grid; grid-template-columns: minmax(0,1fr) 224px; gap: 16px; align-items: start; }
.cc-home-content { min-width: 0; display: grid; gap: 15px; }
.cc-right-rail { display: grid; gap: 13px; position: sticky; top: calc(var(--cc-topbar) + 14px); }
.cc-ui-card {
  position: relative;
  border: 1px solid rgba(86, 100, 165, .30);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(10, 16, 39, .93), rgba(4, 8, 23, .96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02), 0 16px 38px rgba(0,0,0,.22);
  overflow: hidden;
}
.cc-ui-card:hover { border-color: rgba(93, 101, 202, .42); }
.cc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px 9px; }
.cc-card-title { display: flex; align-items: center; gap: 8px; color: #dfe7ff; font-size: .72rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.cc-card-title .cc-card-icon { color: var(--cc-magenta); }
.cc-card-link { color: #49cfff; text-decoration: none; font-size: .7rem; font-weight: 800; }
.cc-card-body { padding: 4px 15px 15px; }
.cc-live-badge, .cc-soft-badge, .cc-alert-badge, .cc-green-badge {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 7px; font-size: .63rem; font-weight: 900; line-height: 1.2;
}
.cc-live-badge { color: #75ddff; border: 1px solid rgba(30,189,255,.4); background: rgba(19,92,147,.24); }
.cc-soft-badge { color: #d8c8ff; border: 1px solid rgba(139,83,255,.35); background: rgba(85,42,151,.22); }
.cc-alert-badge { color: #ffc0d0; border: 1px solid rgba(255,67,120,.38); background: rgba(166,27,73,.25); }
.cc-green-badge { color: #8fffc0; border: 1px solid rgba(49,227,138,.35); background: rgba(21,119,73,.22); }

.cc-hero {
  min-height: 248px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr);
  border-color: rgba(141, 65, 255, .52);
  background:
    linear-gradient(90deg, rgba(7, 10, 29, .95) 0%, rgba(7, 10, 29, .72) 42%, rgba(5, 8, 22, .90) 100%),
    url('/static/brand/respawn-loop-wide.webp') center / cover no-repeat;
  box-shadow: 0 24px 60px rgba(0,0,0,.28), 0 0 42px rgba(113,55,255,.07);
}
.cc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(40, 102, 255, .08), transparent 42%, rgba(255, 73, 74, .06));
}
.cc-hero-copy { position: relative; z-index: 2; padding: 27px 26px 22px; align-self: end; }
.cc-hero-eyebrow { color: #cfc3ff; font-size: .84rem; font-weight: 900; letter-spacing: .04em; }
.cc-hero h1 { margin: 4px 0 8px; font-size: clamp(2rem, 3vw, 3.15rem); letter-spacing: -.045em; text-shadow: 0 0 30px rgba(74, 132, 255, .15); }
.cc-hero-copy > p { max-width: 560px; margin: 0; color: #bec9e6; line-height: 1.5; }
.cc-hero-stats { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 19px; }
.cc-hero-stat { min-width: 100px; padding: 9px 11px; border: 1px solid rgba(95,109,180,.31); border-radius: 10px; background: rgba(2,7,22,.7); }
.cc-hero-stat strong { display: block; font-size: 1.05rem; }
.cc-hero-stat span { color: var(--cc-muted); font-size: .66rem; }
.cc-hero-stat:nth-child(1) strong { color: #71ddff; }
.cc-hero-stat:nth-child(2) strong { color: #7cffae; }
.cc-hero-stat:nth-child(3) strong { color: #ff87d9; }
.cc-hero-stat:nth-child(4) strong { color: #ffc66b; }
.cc-lounge-status {
  position: relative;
  z-index: 2;
  align-self: stretch;
  margin: 16px;
  padding: 17px;
  border: 1px solid rgba(100, 117, 187, .34);
  border-radius: 13px;
  background: rgba(4, 9, 26, .86);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}
.cc-status-label { font-size: .68rem; color: #cbd4ed; font-weight: 900; letter-spacing: .04em; }
.cc-status-live { margin-top: 5px; color: var(--cc-green); font-size: 1.9rem; font-weight: 950; text-shadow: 0 0 18px rgba(49,227,138,.18); }
.cc-status-sub { color: var(--cc-muted); font-size: .72rem; }
.cc-next-event { margin-top: auto; padding-top: 15px; border-top: 1px solid rgba(97,109,172,.24); }
.cc-next-event small { color: var(--cc-muted); }
.cc-next-event strong { display: block; margin-top: 4px; font-size: .88rem; }
.cc-countdown { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; margin-top: 10px; }
.cc-countdown div { text-align: center; padding: 7px 4px; border-radius: 8px; background: rgba(15,23,54,.75); }
.cc-countdown strong { font-size: .95rem; }
.cc-countdown span { display: block; color: var(--cc-muted); font-size: .52rem; margin-top: 2px; }

.cc-dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.cc-dashboard-grid .cc-ui-card { min-height: 204px; }
.cc-dashboard-grid .cc-ui-card.cc-tall { min-height: 218px; }
.cc-list { display: grid; gap: 2px; }
.cc-list-row {
  display: flex; align-items: center; gap: 10px; min-height: 43px; padding: 7px 0; border-bottom: 1px solid rgba(80,93,149,.15);
}
.cc-list-row:last-child { border-bottom: 0; }
.cc-list-icon { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(35,115,255,.17), rgba(224,47,190,.14)); font-size: .85rem; }
.cc-list-copy { min-width: 0; flex: 1; }
.cc-list-copy strong { display: block; font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-list-copy span { display: block; margin-top: 2px; color: var(--cc-muted); font-size: .64rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-list-meta { color: var(--cc-muted); font-size: .62rem; white-space: nowrap; }
.cc-empty { display: grid; place-items: center; min-height: 130px; color: var(--cc-muted); text-align: center; font-size: .78rem; }

.cc-metric-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.cc-metric { padding: 8px; border-radius: 9px; background: rgba(11,18,44,.72); }
.cc-metric span { color: var(--cc-muted); font-size: .61rem; }
.cc-metric strong { display: block; margin-top: 2px; font-size: 1.18rem; }
.cc-metric.green strong { color: var(--cc-green); }
.cc-mini-chart { display: flex; align-items: end; gap: 4px; height: 74px; margin-top: 13px; padding-top: 8px; border-top: 1px solid rgba(77,92,151,.16); }
.cc-mini-bar { flex: 1; min-width: 6px; border-radius: 3px 3px 1px 1px; background: linear-gradient(to top, rgba(77,58,255,.55), rgba(239,56,199,.86) 55%, rgba(255,137,30,.95)); box-shadow: 0 0 10px rgba(235,62,184,.08); }

.cc-waveform { display: flex; align-items: center; gap: 2px; height: 54px; margin: 12px 0 8px; overflow: hidden; }
.cc-waveform i { display: block; width: 3px; border-radius: 4px; background: linear-gradient(to top, var(--cc-blue), var(--cc-magenta), var(--cc-orange)); box-shadow: 0 0 8px rgba(239,56,199,.12); }
.cc-radio-main { display: flex; gap: 10px; align-items: center; }
.cc-radio-art { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; background: url('/static/brand/respawn-loop-wide.webp') center / cover; }
.cc-radio-copy { min-width: 0; }
.cc-radio-copy strong { display: block; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-radio-copy span { color: var(--cc-muted); font-size: .68rem; }
.cc-radio-controls { display: flex; align-items: center; gap: 9px; margin-top: 5px; }
.cc-round-button { width: 33px; height: 33px; border-radius: 50%; border: 1px solid rgba(178,67,255,.45); color: #fff; background: rgba(95,32,130,.35); }

.cc-worker-ring, .cc-health-ring {
  --value: 75%;
  width: 92px; height: 92px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--cc-cyan) 0 var(--value), rgba(58,69,110,.24) var(--value) 100%);
  position: relative;
  box-shadow: 0 0 28px rgba(28,216,255,.08);
}
.cc-worker-ring::after, .cc-health-ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #070d22; border: 1px solid rgba(102,118,185,.26); }
.cc-ring-copy { position: relative; z-index: 2; text-align: center; }
.cc-ring-copy strong { display: block; font-size: 1.05rem; }
.cc-ring-copy span { display: block; color: #8effbd; font-size: .55rem; font-weight: 900; }
.cc-worker-layout { display: flex; gap: 14px; align-items: center; }
.cc-worker-list { flex: 1; display: grid; gap: 6px; }
.cc-worker-line { display: flex; justify-content: space-between; gap: 10px; font-size: .67rem; }
.cc-worker-line span:last-child { color: var(--cc-green); font-weight: 900; }

.cc-health-rings { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; justify-items: center; }
.cc-health-ring { width: 66px; height: 66px; --ring: var(--cc-cyan); background: conic-gradient(var(--ring) 0 var(--value), rgba(58,69,110,.24) var(--value) 100%); }
.cc-health-ring.purple { --ring: var(--cc-magenta); }
.cc-health-ring.orange { --ring: var(--cc-orange); }
.cc-health-ring::after { inset: 5px; }
.cc-health-ring .cc-ring-copy strong { font-size: .83rem; }
.cc-health-ring .cc-ring-copy span { color: var(--cc-muted); font-size: .49rem; }
.cc-health-footer { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 13px; padding-top: 10px; border-top: 1px solid rgba(85,99,159,.15); }
.cc-health-footer div { text-align: center; }
.cc-health-footer span { display: block; color: var(--cc-muted); font-size: .56rem; }
.cc-health-footer strong { font-size: .7rem; }
.cc-health-footer strong.good { color: var(--cc-green); }

.cc-update-strip {
  min-height: 86px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-color: rgba(143,55,255,.42);
  background: linear-gradient(90deg, rgba(41,16,70,.68), rgba(7,12,31,.95) 32%, rgba(7,12,31,.95) 70%, rgba(75,28,12,.5));
}
.cc-update-block { min-width: 0; }
.cc-update-block strong { display: block; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-update-block span { display: block; margin-top: 4px; color: var(--cc-muted); font-size: .64rem; }
.cc-update-title { display: flex; align-items: center; gap: 10px; }
.cc-update-title-icon { color: var(--cc-magenta); font-size: 1.3rem; }
.cc-update-button { border-color: rgba(255,126,30,.7); background: rgba(96,45,17,.26); box-shadow: 0 0 22px rgba(255,126,30,.09); }

.cc-rail-card { padding: 13px; }
.cc-rail-card h3 { margin: 0 0 10px; color: #dce5ff; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.cc-quick-actions { display: grid; gap: 7px; }
.cc-quick-action { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid rgba(124,63,255,.4); border-radius: 9px; color: #e7e9ff; background: rgba(37,20,79,.24); text-decoration: none; font-size: .7rem; font-weight: 800; }
.cc-quick-action:hover { border-color: var(--cc-magenta); background: rgba(71,28,108,.32); }
.cc-top-game { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid rgba(77,88,143,.14); }
.cc-top-game:last-child { border-bottom: 0; }
.cc-game-emoji { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: rgba(31,48,94,.55); }
.cc-top-game-copy { flex: 1; min-width: 0; }
.cc-top-game-copy strong { display: block; font-size: .68rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cc-top-game-copy span { color: var(--cc-muted); font-size: .58rem; }
.cc-boost { text-align: center; }
.cc-boost-icon { font-size: 2.5rem; filter: drop-shadow(0 0 15px rgba(255,150,25,.28)); }
.cc-boost strong { display: block; color: var(--cc-orange); font-size: .95rem; margin-top: 4px; }
.cc-boost span { color: var(--cc-muted); font-size: .65rem; }
.cc-boost-bar { height: 5px; margin: 10px 0 6px; overflow: hidden; border-radius: 8px; background: rgba(83,91,131,.25); }
.cc-boost-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cc-magenta), var(--cc-orange), var(--cc-yellow)); }

.cc-auth-gate { min-height: calc(100vh - var(--cc-topbar) - 40px); display: grid; place-items: center; }
.cc-auth-card { width: min(480px, 100%); text-align: center; padding: 32px; }
.cc-auth-card img { width: 132px; border-radius: 22px; margin-bottom: 14px; }
.cc-auth-card h1 { font-size: 2rem; }
.cc-auth-card p { color: var(--cc-muted); line-height: 1.5; }

@media (max-width: 1320px) {
  :root { --cc-sidebar: 205px; }
  .cc-home-layout { grid-template-columns: minmax(0,1fr); }
  .cc-right-rail { position: static; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cc-dashboard-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 980px) {
  :root { --cc-sidebar: 74px; }
  .cc-sidebar { padding-inline: 8px; }
  .cc-brand img { width: 52px; height: 52px; border-radius: 12px; }
  .cc-nav-link { justify-content: center; padding: 9px; }
  .cc-nav-link span:not(.cc-nav-badge) { display: none; }
  .cc-nav-badge { position: absolute; right: 3px; top: 2px; }
  .cc-time-card { display: none; }
  .cc-top-title { min-width: 190px; }
  .cc-user-chip-copy, .cc-top-status { display: none; }
  .cc-user-chip { min-width: auto; padding: 4px; }
  .cc-global-search { width: min(360px, 45vw); }
  .grid, .stat-grid, .mini-grid, .summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cc-hero { grid-template-columns: 1fr; }
  .cc-lounge-status { margin-top: 0; }
  .cc-update-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --cc-sidebar: 0px; --cc-topbar: 66px; }
  .cc-app-frame, .cc-home-frame { display: block; }
  .cc-sidebar { transform: translateX(-100%); width: 222px; transition: .2s ease; }
  body.cc-menu-open .cc-sidebar { transform: translateX(0); }
  .cc-workspace, .cc-home-workspace { margin-left: 0; }
  .cc-toprail { padding-inline: 12px; }
  .cc-top-title { min-width: 0; }
  .cc-top-title span { display: none; }
  .cc-global-search { margin-left: auto; width: 44px; }
  .cc-global-search input, .cc-global-search .cc-kbd { display: none; }
  .cc-global-search svg { position: static; margin: 12px; }
  .cc-module-viewport, .cc-home-main { padding: 12px 12px 40px; }
  .cc-dashboard-grid, .cc-right-rail, .grid, .stat-grid, .mini-grid, .summary-grid,
  .two-col, .ops-two-column, .update-two-column, .form-two, .cc-health-rings { grid-template-columns: 1fr; }
  .cc-hero { min-height: 0; }
  .cc-hero-copy { padding: 24px 18px; }
  .cc-lounge-status { margin: 0 12px 12px; }
  .cc-update-strip { grid-template-columns: 1fr; }
  .wide, .span-two { grid-column: auto; }
  .shell { width: calc(100% - 24px); }
}

.cc-mobile-menu {
  display: none;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(109, 125, 203, .34);
  border-radius: 10px;
  color: #fff;
  background: rgba(12, 18, 43, .88);
  font-size: 1.1rem;
}
@media (max-width: 720px) {
  .cc-mobile-menu { display: inline-flex; }
  body.cc-menu-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(3px);
  }
  body.cc-menu-open .cc-sidebar { z-index: 90; }
}
