:root {
  color-scheme: dark;
  --bg: #0a0b10;
  --panel: #12141c;
  --panel-2: #171923;
  --line: rgba(255, 255, 255, 0.08);
  --muted: #8b90a2;
  --text: #f6f7fb;
  --accent: #7868ff;
  --green: #5ce6ad;
  --amber: #ffc76a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body { min-width: 320px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.app-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 236px; padding: 26px 18px;
  background: #0d0f15; border-right: 1px solid var(--line); display: flex; flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark {
  display: block; width: 34px; height: 34px; border-radius: 9px; object-fit: cover;
  box-shadow: 0 8px 24px rgba(24,122,255,.22);
}
.sidebar nav { display: flex; flex-direction: column; gap: 5px; margin-top: 38px; }
.nav-item { padding: 11px 12px; border-radius: 9px; color: #959aab; font-size: 13px; font-weight: 650; }
.nav-item span { display: inline-block; width: 24px; color: #707688; }
.nav-item:hover, .nav-item.active { color: white; background: rgba(255,255,255,.06); }
.nav-item.active span { color: #9b90ff; }
.nav-label { margin: 26px 12px 5px; color: #555b6d; text-transform: uppercase; letter-spacing: .14em; font-size: 9px; font-weight: 800; }
.sidebar-foot { margin-top: auto; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 11px; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(92,230,173,.1); }

.main-content { grid-column: 2; width: min(1400px, 100%); padding: 38px 44px 58px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.eyebrow { color: #777d91; text-transform: uppercase; letter-spacing: .15em; font-size: 9px; font-weight: 850; }
h1, h2, h3, p { margin: 0; }
.topbar h1 { margin-top: 5px; font-size: 25px; letter-spacing: -.04em; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.range-chip { padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; color: #a7acbb; font-size: 11px; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #212432; color: #c6c9d5; font-size: 11px; font-weight: 800; }

.project-hero {
  position: relative; min-height: 178px; display: grid; grid-template-columns: 244px 1fr auto; align-items: center; gap: 28px;
  padding: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px;
  background: radial-gradient(circle at 65% 0%, rgba(120,104,255,.17), transparent 38%), var(--panel);
}
.hero-image { height: 142px; border-radius: 11px; overflow: hidden; background: #08090e; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.project-kicker { display: inline-flex; padding: 5px 8px; border-radius: 6px; background: rgba(120,104,255,.12); color: #afa6ff; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.hero-copy h2 { max-width: 620px; margin-top: 12px; font-size: clamp(24px, 3vw, 38px); line-height: 1.02; letter-spacing: -.05em; }
.hero-copy p { margin-top: 8px; color: var(--muted); font-size: 12px; }
.hero-links { display: flex; gap: 10px; margin-top: 18px; }
.hero-links a { padding: 8px 10px; border-radius: 7px; background: rgba(255,255,255,.055); color: #c9ccda; font-size: 10px; font-weight: 700; }
.hero-links a:hover { background: rgba(255,255,255,.1); }
.hero-state { align-self: start; padding: 8px 10px; border: 1px solid rgba(92,230,173,.16); border-radius: 8px; color: #a6b2ad; font-size: 10px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0; }
.metric-card { padding: 19px; min-height: 122px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.metric-card > span { display: block; color: #8b90a2; font-size: 11px; font-weight: 650; }
.metric-card strong { display: block; margin: 10px 0 4px; font-size: 29px; letter-spacing: -.05em; }
.metric-card small { color: #595f70; font-size: 9px; }

.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 14px; }
.panel-heading h2, .section-heading h2 { margin-top: 4px; font-size: 16px; letter-spacing: -.025em; }
.data-note { color: #666c7d; font-size: 9px; }
.panel-action {
  display: inline-flex; align-items: center; justify-content: center; padding: 8px 11px;
  border: 1px solid rgba(120,104,255,.24); border-radius: 8px; color: #c7c1ff;
  background: rgba(120,104,255,.08); font-size: 9px; font-weight: 800;
}
.panel-action:hover { border-color: rgba(120,104,255,.45); background: rgba(120,104,255,.14); }
.chart-wrap { display: grid; grid-template-columns: 38px 1fr; height: 225px; padding: 8px 22px 0 16px; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; padding: 1px 8px 1px 0; color: #555b6d; font-size: 8px; text-align: right; }
.chart { width: 100%; height: 100%; overflow: visible; }
.chart line { stroke: rgba(255,255,255,.055); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; opacity: .65; }
.chart .area { fill: url(#area); }
.chart-x { display: flex; justify-content: space-between; padding: 10px 23px 18px 57px; color: #555b6d; font-size: 8px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 26px 2px 12px; }
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.platform-card { display: flex; gap: 13px; min-height: 102px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.platform-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 9px; background: #242735; font-weight: 850; }
.platform-icon.youtube { color: #ff5d6c; background: rgba(255,65,85,.1); }
.platform-icon.tiktok { color: #ecfaff; background: rgba(105,244,255,.08); }
.platform-icon.instagram { color: #ff8eb8; background: rgba(255,92,163,.09); }
.platform-icon.x { color: white; background: rgba(255,255,255,.08); }
.platform-main { min-width: 0; flex: 1; }
.platform-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.platform-head h3 { font-size: 12px; }
.platform-main p { margin-top: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6f7587; font-size: 9px; }
.connect-link { display: inline-flex; margin-top: 10px; padding: 6px 9px; border: 1px solid rgba(105,244,255,.2); border-radius: 7px; color: #b9faff; background: rgba(105,244,255,.07); font-size: 8px; font-weight: 800; }
.connect-link:hover { border-color: rgba(105,244,255,.38); background: rgba(105,244,255,.12); }
.oauth-return { display: inline-flex; margin-top: 24px; padding: 11px 14px; border-radius: 9px; color: white; background: var(--accent); font-size: 10px; font-weight: 800; }
.status-pill { padding: 4px 6px; border-radius: 5px; background: rgba(255,199,106,.09); color: var(--amber); text-transform: uppercase; letter-spacing: .08em; font-size: 7px; font-weight: 850; }
.platform-card.connected .status-pill { color: var(--green); background: rgba(92,230,173,.08); }

.uploads-panel { margin-top: 26px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 10px; }
th { padding: 10px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #606678; text-align: left; text-transform: uppercase; letter-spacing: .09em; font-size: 7px; }
td { padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.055); color: #a5aab9; }
tbody tr:last-child td { border-bottom: 0; }
.video-cell { display: flex; align-items: center; gap: 11px; min-width: 280px; }
.video-cell img { width: 54px; height: 40px; border-radius: 6px; object-fit: cover; }
.video-cell strong { display: block; max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e5e7ef; font-size: 10px; }
.video-cell span { display: block; margin-top: 5px; color: #5f6576; font-size: 8px; }
.platform-tag { display: inline-flex; align-items: center; gap: 6px; }
.mini-icon { color: #9d93ff; }
.visibility { padding: 4px 7px; border-radius: 5px; color: #9aa0b1; background: rgba(255,255,255,.05); font-size: 8px; }
.visibility.public { color: var(--green); background: rgba(92,230,173,.07); }
.numeric { font-variant-numeric: tabular-nums; }
.row-link { color: #9d93ff; font-weight: 700; }
.empty-row { padding: 32px; text-align: center; color: var(--muted); }
footer { padding-top: 28px; color: #424757; text-align: center; font-size: 8px; }

.manual-layout { display: grid; grid-template-columns: minmax(340px, .72fr) minmax(0, 1.28fr); gap: 16px; align-items: start; }
.manual-form { overflow: visible; }
.form-body { padding: 4px 22px 22px; }
.form-body > label, .metric-inputs label { display: block; margin: 15px 0 7px; color: #a9adbb; font-size: 10px; font-weight: 700; }
.form-body input {
  width: 100%; padding: 12px 13px; border: 1px solid #292c3a; border-radius: 9px;
  outline: 0; background: #0c0e14; color: white;
}
.form-body input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(120,104,255,.12); }
.form-body fieldset { margin: 18px 0 0; padding: 0; border: 0; }
.form-body legend { color: #a9adbb; font-size: 10px; font-weight: 800; }
.form-body legend span { color: #62687a; font-weight: 600; }
.metric-inputs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 10px; }
.form-body button {
  width: 100%; margin-top: 19px; padding: 12px 14px; border: 0; border-radius: 9px;
  background: var(--accent); color: white; cursor: pointer; font-size: 10px; font-weight: 850;
}
.form-body button:hover { background: #897bff; }
.form-help { margin-top: 13px; color: #666c7d; font-size: 9px; line-height: 1.55; }
.form-help code { color: #aaa3ff; }
.form-notice { margin: 0 0 12px; padding: 10px 11px; border-radius: 8px; font-size: 9px; }
.form-notice.success { color: #a8f2d1; background: rgba(92,230,173,.08); border: 1px solid rgba(92,230,173,.18); }
.form-notice.error { color: #ff9da6; background: rgba(255,93,108,.08); border: 1px solid rgba(255,93,108,.18); }
.linked-posts td strong { display: block; min-width: 190px; color: #e5e7ef; font-size: 10px; }
.source-detail { display: block; margin-top: 5px; color: #5f6576; font-size: 8px; }

.auth-shell {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(circle at 50% 15%, rgba(120,104,255,.17), transparent 32%), #090a0f;
}
.auth-card { width: min(430px, 100%); padding: 35px; border: 1px solid var(--line); border-radius: 18px; background: rgba(18,20,28,.94); box-shadow: 0 30px 90px rgba(0,0,0,.42); }
.brand-auth { margin-bottom: 48px; }
.brand-auth .brand-mark { width: 44px; height: 44px; border-radius: 11px; }
.auth-copy h1 { margin-top: 10px; font-size: 34px; line-height: 1.05; letter-spacing: -.05em; }
.auth-copy p { margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.auth-card form { margin-top: 32px; }
.auth-card label { display: block; margin-bottom: 8px; color: #a9adbb; font-size: 10px; font-weight: 700; }
.auth-card input { width: 100%; padding: 13px; border: 1px solid #292c3a; border-radius: 9px; outline: 0; background: #0c0e14; color: white; }
.auth-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(120,104,255,.12); }
.credential-username { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.auth-card .remember-option { display: flex; align-items: center; gap: 9px; margin: 12px 0 2px; color: #a9adbb; cursor: pointer; font-size: 10px; font-weight: 600; }
.auth-card .remember-option input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); box-shadow: none; }
.auth-card button { display: flex; justify-content: space-between; width: 100%; margin-top: 12px; padding: 13px 15px; border: 0; border-radius: 9px; background: var(--accent); color: white; cursor: pointer; font-size: 11px; font-weight: 800; }
.auth-card button:hover { background: #897bff; }
.auth-error { margin: 10px 0 0; color: #ff7f8a; font-size: 10px; }
.api-disclosure { margin-top: 24px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.api-disclosure p { margin-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.youtube-badge { display: inline-flex; align-items: center; gap: 7px; color: #f4f5f8; font-size: 11px; font-weight: 800; }
.youtube-badge span { display: grid; place-items: center; width: 25px; height: 18px; border-radius: 5px; background: #ff0033; color: #fff; font-size: 8px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 18px; color: #777d91; font-size: 9px; }
.legal-links a:hover, .public-footer a:hover { color: #fff; }

.legal-page { width: min(920px, 100%); margin: 0 auto; padding: 34px 24px 60px; }
.legal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.legal-signin { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; color: #a9adbb; font-size: 10px; font-weight: 700; }
.legal-card { padding: clamp(26px, 5vw, 58px); border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.legal-card > h1 { margin-top: 10px; font-size: clamp(34px, 6vw, 56px); letter-spacing: -.055em; }
.legal-updated { margin-top: 12px; color: #6e7486; font-size: 10px; }
.legal-card section { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); }
.legal-card section h2 { margin-bottom: 10px; font-size: 16px; letter-spacing: -.02em; }
.legal-card section p { margin-top: 10px; color: #a3a8b8; font-size: 12px; line-height: 1.75; }
.legal-card section a { color: #a99fff; text-decoration: underline; text-underline-offset: 3px; }
.public-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; padding-top: 22px; color: #666c7d; font-size: 9px; }
.control-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 0 !important; border-top: 0 !important; }
.control-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.control-card > span { color: #7868ff; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.control-card h2 { margin-top: 12px; }
.workflow-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding-top: 0 !important; border-top: 0 !important; }
.legal-card code { padding: 2px 5px; border-radius: 4px; background: rgba(255,255,255,.06); color: #d8d4ff; font-size: .92em; }
.certification-notice { margin-top: 18px; padding: 18px; border: 1px solid rgba(255,0,51,.22); border-radius: 12px; background: rgba(255,0,51,.055); }
.certification-notice strong { color: #fff; font-size: 11px; }
.certification-notice p { margin-top: 7px !important; }

.mab-link-shell {
  min-height: 100vh; overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(39, 108, 255, .2), transparent 32%),
    radial-gradient(circle at 88% 78%, rgba(255, 62, 74, .17), transparent 34%),
    #08090e;
}
.mab-link-page { position: relative; display: grid; place-items: center; min-height: 100vh; padding: 32px 18px; isolation: isolate; }
.mab-link-glow {
  position: absolute; z-index: -1; width: min(880px, 86vw); height: min(620px, 72vh); border-radius: 50%;
  background: rgba(83, 97, 255, .13); filter: blur(110px);
}
.mab-link-card {
  width: min(880px, 100%); overflow: hidden; display: grid; grid-template-columns: 1.06fr .94fr;
  border: 1px solid rgba(255,255,255,.11); border-radius: 24px;
  background: rgba(15,17,24,.94); box-shadow: 0 40px 120px rgba(0,0,0,.58);
}
.mab-link-art { min-height: 590px; background: #11131a; }
.mab-link-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mab-link-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 5vw, 54px); }
.mab-link-kicker {
  width: fit-content; padding: 6px 9px; border: 1px solid rgba(117,136,255,.2); border-radius: 7px;
  color: #aeb9ff; background: rgba(91,111,255,.08); text-transform: uppercase; letter-spacing: .14em;
  font-size: 9px; font-weight: 850;
}
.mab-link-content h1 { margin-top: 17px; font-size: clamp(36px, 5vw, 56px); line-height: .95; letter-spacing: -.065em; }
.mab-link-content > p { margin-top: 16px; color: #989eaf; font-size: 13px; line-height: 1.55; }
.mab-link-actions { display: grid; gap: 11px; margin-top: 30px; }
.mab-link-button {
  display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 12px; min-height: 68px; padding: 11px 14px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(255,255,255,.045);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.mab-link-button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.075); }
.mab-link-button:focus-visible { outline: 3px solid rgba(126,140,255,.4); outline-offset: 2px; }
.mab-link-platform-logo { display: grid; place-items: center; width: 76px; height: 42px; }
.mab-link-platform-logo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.mab-link-platform-logo.roblox-logo img { width: 76px; }
.mab-link-platform-logo.discord-logo { width: 48px; height: 42px; border-radius: 11px; background: #5865f2; }
.mab-link-platform-logo.discord-logo img { width: 29px; height: 22px; }
.mab-link-button strong { display: block; font-size: 12px; letter-spacing: -.015em; }
.mab-link-button small { display: block; margin-top: 4px; color: #73798a; font-size: 9px; }
.mab-link-arrow { color: #777e91; font-size: 17px; }
.mab-link-note { margin-top: 24px; color: #525867; font-size: 8px; letter-spacing: .04em; }

@media (max-width: 1050px) {
  .metric-grid, .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .project-hero { grid-template-columns: 200px 1fr; }
  .hero-state { display: none; }
}

@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 16px 18px; flex-direction: row; align-items: center; }
  .sidebar nav, .sidebar-foot { display: none; }
  .main-content { padding: 24px 16px 40px; }
  .topbar h1 { font-size: 21px; }
  .range-chip { display: none; }
  .project-hero { grid-template-columns: 1fr; padding: 14px; }
  .hero-image { height: 180px; }
  .hero-copy { padding: 3px 3px 10px; }
  .metric-grid, .platform-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 112px; }
  .data-note { display: none; }
  .control-grid { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: 1fr; }
  .manual-layout { grid-template-columns: 1fr; }
  .mab-link-page { align-items: start; padding: 14px; }
  .mab-link-card { grid-template-columns: 1fr; border-radius: 18px; }
  .mab-link-art { min-height: 0; aspect-ratio: 16 / 9; }
  .mab-link-content { padding: 28px 22px 26px; }
  .mab-link-content h1 { font-size: clamp(35px, 11vw, 47px); }
  .mab-link-actions { margin-top: 24px; }
  .mab-link-button { grid-template-columns: 68px 1fr auto; padding-inline: 11px; }
  .mab-link-platform-logo, .mab-link-platform-logo.roblox-logo img { width: 68px; }
  .mab-link-platform-logo.discord-logo { width: 44px; }
}

@media (max-width: 460px) {
  .metric-grid, .platform-grid { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; }
  .hero-copy h2 { font-size: 27px; }
}

/* Dashboard command-center refinement */
.topbar { align-items: flex-start; }
.topbar-subtitle { max-width: 590px; margin: 8px 0 0; color: #747b91; font-size: 11px; line-height: 1.5; }
.project-hero { isolation: isolate; box-shadow: 0 20px 65px rgba(0, 0, 0, .18); }
.project-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 8%, rgba(124, 103, 255, .07) 48%, rgba(38, 209, 255, .08)); pointer-events: none; }
.hero-image { position: relative; box-shadow: 0 14px 34px rgba(0, 0, 0, .36); }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(3, 5, 12, .78)); pointer-events: none; }
.hero-image-label { position: absolute; z-index: 1; left: 10px; bottom: 9px; padding: 5px 7px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; background: rgba(5, 7, 15, .72); color: #e8ebff; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(9px); }
.hero-command { align-self: stretch; display: flex; min-width: 116px; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 2px 0 1px; }
.hero-state { align-self: auto; white-space: nowrap; }
.hero-signals { display: grid; gap: 7px; width: 100%; padding: 12px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 10px; background: rgba(4, 6, 13, .34); color: #737b91; font-size: 9px; text-align: right; }
.hero-signals span { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.hero-signals b { color: #e9ecfb; font-size: 17px; letter-spacing: -.04em; }
.metric-card { position: relative; overflow: hidden; box-shadow: 0 10px 25px rgba(0, 0, 0, .11); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.metric-card::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 2px; opacity: .85; background: linear-gradient(90deg, transparent, var(--metric-accent), transparent); }
.metric-card::after { content: ""; position: absolute; width: 115px; height: 115px; top: -70px; right: -42px; border-radius: 50%; background: var(--metric-glow); filter: blur(4px); pointer-events: none; }
.metric-card:hover { transform: translateY(-2px); border-color: rgba(163, 153, 255, .36); background: #151722; }
.metric-card > span, .metric-card strong, .metric-card small { position: relative; z-index: 1; }
.metric-views { --metric-accent: #7b6dff; --metric-glow: rgba(123, 109, 255, .2); }
.metric-published { --metric-accent: #4fd6f5; --metric-glow: rgba(79, 214, 245, .18); }
.metric-engagement { --metric-accent: #ffbd64; --metric-glow: rgba(255, 189, 100, .16); }
.metric-followers { --metric-accent: #5ce6ad; --metric-glow: rgba(92, 230, 173, .16); }
.command-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .85fr); gap: 14px; margin: 14px 0; }
.command-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: 0 12px 28px rgba(0, 0, 0, .1); }
.compact-heading { padding-bottom: 12px; }
.pipeline-list { padding: 0 22px 8px; }
.pipeline-step { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .055); }
.pipeline-index { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid rgba(143, 132, 255, .22); border-radius: 8px; color: #aaa2ff; background: rgba(120, 104, 255, .09); font-size: 9px; font-weight: 800; }
.pipeline-step strong { display: block; color: #e8eaf5; font-size: 11px; }
.pipeline-step p { margin: 4px 0 0; color: #6e7589; font-size: 9px; line-height: 1.38; }
.pipeline-state { justify-self: end; padding: 5px 7px; border-radius: 999px; font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.pipeline-state.ready { background: rgba(92, 230, 173, .1); color: #85edc1; }
.pipeline-state.live { background: rgba(120, 104, 255, .13); color: #b2aaff; }
.pipeline-state.neutral { background: rgba(255, 199, 106, .1); color: #ffd38d; }
.operator-panel { position: relative; display: flex; min-height: 220px; flex-direction: column; padding: 21px 22px; background: radial-gradient(circle at 100% 0%, rgba(120, 104, 255, .22), transparent 42%), linear-gradient(145deg, #17162b, #11121a 58%); }
.operator-panel::after { content: ""; position: absolute; right: -64px; bottom: -82px; width: 205px; height: 205px; border: 1px solid rgba(147, 133, 255, .18); border-radius: 50%; box-shadow: 0 0 0 24px rgba(147, 133, 255, .035), 0 0 0 48px rgba(147, 133, 255, .02); pointer-events: none; }
.operator-panel > * { position: relative; z-index: 1; }
.operator-panel h2 { max-width: 270px; margin: 9px 0 7px; color: #fbfbff; font-size: 22px; letter-spacing: -.045em; }
.operator-panel p { max-width: 300px; margin: 0; color: #9da1b5; font-size: 10px; line-height: 1.55; }
.primary-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: fit-content; min-width: 185px; margin-top: auto; padding: 10px 11px 10px 13px; border: 1px solid rgba(176, 166, 255, .38); border-radius: 9px; background: #7666ef; color: #fff; box-shadow: 0 10px 23px rgba(85, 67, 230, .25); font-size: 10px; font-weight: 800; transition: transform .18s ease, background .18s ease; }
.primary-action:hover { transform: translateY(-1px); background: #8779ff; }
.primary-action span { font-size: 15px; line-height: .7; }
.operator-panel small { margin-top: 12px; color: #767b93; font-size: 8px; line-height: 1.35; }

@media (max-width: 1080px) {
  .project-hero { grid-template-columns: 200px minmax(0, 1fr); }
  .hero-command { display: none; }
  .command-grid { grid-template-columns: 1fr; }
  .operator-panel { min-height: 190px; }
}

@media (max-width: 720px) {
  .topbar-subtitle { max-width: 320px; font-size: 10px; }
  .hero-image-label { left: 9px; bottom: 8px; }
  .command-grid { gap: 12px; margin: 12px 0; }
  .pipeline-list { padding: 0 16px 6px; }
  .compact-heading { padding: 17px 16px 11px; }
  .pipeline-step { gap: 9px; padding: 12px 0; }
  .operator-panel { min-height: 198px; padding: 20px 18px; }
}

@media (max-width: 460px) {
  .topbar-subtitle { display: none; }
  .pipeline-step { grid-template-columns: 28px minmax(0, 1fr); }
  .pipeline-state { grid-column: 2; justify-self: start; margin-top: -4px; }
  .operator-panel h2 { font-size: 21px; }
}

/* MAB command center: deliberate game-operations visual system. */
:root { --bg: #07090e; --panel: #0e1119; --panel-2: #141824; --line: rgba(193, 205, 255, .105); --muted: #9ba5bb; --text: #f8f9ff; --accent: #8d78ff; --green: #66e5b1; --amber: #ffd06f; }
html, body { background: radial-gradient(circle at 82% -8%, rgba(102, 68, 209, .14), transparent 32%), #07090e; }
.app-shell { grid-template-columns: 274px minmax(0, 1fr); }
.sidebar { width: 274px; padding: 26px 18px 18px; overflow: hidden; border-right-color: rgba(181, 192, 255, .1); background: linear-gradient(180deg, #0d1018, #080a10 64%); }
.sidebar::before { content: ""; position: absolute; top: -150px; left: -146px; width: 340px; height: 340px; border: 1px solid rgba(148, 126, 255, .12); border-radius: 50%; box-shadow: 0 0 0 38px rgba(148, 126, 255, .03), 0 0 0 76px rgba(148, 126, 255, .018); pointer-events: none; }
.brand, .sidebar-project, .sidebar nav, .sidebar-foot { position: relative; z-index: 1; }
.brand { gap: 12px; font-size: 17px; letter-spacing: -.045em; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; box-shadow: 0 12px 32px rgba(112, 86, 255, .42); }
.brand-copy { display: grid; gap: 2px; }
.brand-copy small { color: #8b83d9; font-size: 7px; font-weight: 900; letter-spacing: .19em; }
.sidebar-project { display: grid; gap: 5px; margin-top: 34px; padding: 15px; border: 1px solid rgba(143, 123, 255, .18); border-radius: 14px; background: linear-gradient(135deg, rgba(119, 93, 255, .16), rgba(22, 24, 38, .36)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035); }
.sidebar-project > span { color: #aaa5d1; font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sidebar-project strong { color: #fff; font-size: 25px; line-height: 1; letter-spacing: -.07em; }
.sidebar-project small { overflow: hidden; color: #8d96ad; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-project em { display: flex; align-items: center; margin-top: 6px; color: #72dfb4; font-size: 8px; font-style: normal; font-weight: 800; }
.sidebar-project .live-dot { width: 6px; height: 6px; margin-right: 6px; }
.sidebar nav { margin-top: 29px; gap: 3px; }
.nav-label { margin: 0 11px 9px; color: #636d85; }
.nav-item { position: relative; display: flex; align-items: center; min-height: 43px; padding: 11px 12px; border: 1px solid transparent; border-radius: 10px; color: #9da6bd; font-size: 11px; }
.nav-item span { width: 32px; color: #687188; font-size: 8px; font-weight: 900; letter-spacing: .05em; }
.nav-item::after { content: ""; position: absolute; left: -19px; width: 3px; height: 18px; border-radius: 0 4px 4px 0; background: transparent; }
.nav-item:hover { border-color: rgba(170, 157, 255, .11); background: rgba(255, 255, 255, .035); }
.nav-item.active { border-color: rgba(160, 145, 255, .2); background: linear-gradient(90deg, rgba(120, 100, 255, .18), rgba(120, 100, 255, .03)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025); }
.nav-item.active::after { background: #9b87ff; box-shadow: 0 0 15px rgba(155, 135, 255, .9); }
.nav-item.active span { color: #b7aaff; }
.sidebar-foot { display: flex; align-items: center; gap: 7px; padding: 13px; border-radius: 12px; background: rgba(255, 255, 255, .018); }
.sidebar-foot .live-dot { flex: 0 0 auto; margin-right: 0; }
.sidebar-foot b, .sidebar-foot small { display: block; }
.sidebar-foot b { color: #c7cde0; font-size: 9px; }
.sidebar-foot small { margin-top: 3px; color: #667089; font-size: 8px; }
.main-content { width: min(1540px, 100%); padding: 42px 54px 74px; }
.topbar { margin-bottom: 28px; }
.topbar h1 { margin-top: 7px; font-size: clamp(31px, 3vw, 45px); font-weight: 850; letter-spacing: -.065em; }
.topbar .eyebrow { color: #b7aff7; }
.topbar-subtitle { max-width: 650px; color: #8e99b2; font-size: 11px; }
.range-chip { border-color: rgba(171, 161, 255, .22); border-radius: 999px; background: rgba(127, 109, 255, .075); color: #c8c0ff; }
.avatar { width: 39px; height: 39px; border: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(145deg, #292d43, #171a27); }
.project-hero { display: block; min-height: 376px; padding: 39px; border-color: rgba(198, 207, 255, .14); border-radius: 23px; background: #0c1019; box-shadow: 0 26px 90px rgba(0, 0, 0, .34); }
.project-hero::before { z-index: 0; background: linear-gradient(90deg, rgba(5, 7, 13, .97) 0%, rgba(5, 7, 13, .82) 34%, rgba(5, 7, 13, .3) 100%); }
.project-hero::after { content: ""; position: absolute; z-index: 1; inset: 13px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 15px; pointer-events: none; }
.hero-image { position: absolute; inset: 0; z-index: -1; height: auto; border-radius: 0; background: #0c1019; box-shadow: none; }
.hero-image img { transform: scale(1.035); filter: saturate(1.2) contrast(1.08) brightness(.8); object-position: 53% center; }
.hero-image::after { z-index: 0; background: linear-gradient(90deg, rgba(5, 7, 13, .98) 0%, rgba(5, 7, 13, .72) 40%, rgba(5, 7, 13, .12) 100%); }
.hero-image-label { z-index: 2; right: 20px; left: auto; bottom: 20px; border-color: rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(7, 9, 14, .66); color: #d8d5ff; font-size: 8px; letter-spacing: .12em; }
.hero-copy { position: relative; z-index: 2; max-width: 790px; padding: 24px 0 0 3px; }
.project-kicker { border: 1px solid rgba(184, 170, 255, .23); border-radius: 999px; background: rgba(123, 102, 255, .13); color: #c9c0ff; }
.hero-copy h2 { max-width: 780px; margin-top: 16px; font-size: clamp(43px, 5.2vw, 74px); font-weight: 900; line-height: .91; letter-spacing: -.078em; text-transform: uppercase; text-wrap: balance; }
.hero-copy p { margin-top: 17px; color: #c1c5d4; font-size: 12px; font-weight: 650; }
.hero-links { gap: 10px; margin-top: 26px; }
.hero-links a { padding: 11px 14px; border: 1px solid rgba(255, 255, 255, .17); border-radius: 9px; background: rgba(255, 255, 255, .08); color: #f9f9ff; font-size: 10px; }
.hero-links a:first-child { border-color: rgba(159, 142, 255, .5); background: linear-gradient(135deg, #725ef0, #8c77ff); box-shadow: 0 12px 30px rgba(92, 70, 236, .32); }
.hero-command { position: absolute; z-index: 2; right: 38px; bottom: 38px; width: 225px; align-items: stretch; }
.hero-state { width: fit-content; align-self: flex-end; border-color: rgba(102, 229, 177, .24); background: rgba(7, 18, 17, .56); color: #9df4ca; }
.hero-signals { gap: 10px; padding: 16px; border-color: rgba(255, 255, 255, .12); border-radius: 13px; background: rgba(7, 10, 17, .78); text-align: left; backdrop-filter: blur(13px); }
.hero-signals span { display: grid; grid-template-columns: 34px 1fr; align-items: baseline; color: #9da5b9; font-size: 9px; }
.hero-signals b { color: #fff; font-size: 21px; }
.metric-grid { gap: 0; margin: 19px 0 0; border: 1px solid var(--line); border-radius: 16px; background: rgba(11, 14, 22, .72); overflow: hidden; }
.metric-card { min-height: 137px; padding: 24px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.metric-card:last-child { border-right: 0; }
.metric-card::before { right: auto; bottom: 0; left: 24px; width: 36px; height: 3px; background: var(--metric-accent); }
.metric-card::after { top: auto; right: -22px; bottom: -80px; opacity: .55; }
.metric-card:hover { transform: none; background: rgba(255, 255, 255, .025); border-color: transparent; }
.metric-card > span { color: #a4acc1; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.metric-card strong { margin: 12px 0 5px; font-size: 36px; color: #fff; }
.metric-card small { color: #788299; font-size: 9px; }
.command-grid { grid-template-columns: minmax(0, 1.5fr) minmax(330px, .82fr); gap: 19px; margin: 19px 0; }
.command-panel, .panel, .platform-card { border-color: rgba(194, 205, 255, .11); border-radius: 16px; background: linear-gradient(145deg, rgba(20, 24, 36, .88), rgba(10, 13, 20, .94)); box-shadow: 0 18px 48px rgba(0, 0, 0, .16); }
.panel-heading { padding: 23px 25px 16px; }
.panel-heading h2, .section-heading h2 { font-size: 18px; letter-spacing: -.045em; }
.compact-heading { padding-bottom: 14px; }
.pipeline-list { padding: 0 25px 10px; }
.pipeline-step { grid-template-columns: 37px minmax(0, 1fr) auto; gap: 15px; padding: 17px 0; }
.pipeline-index { width: 34px; height: 34px; border-radius: 50%; border-color: rgba(151, 131, 255, .36); background: radial-gradient(circle, rgba(145, 124, 255, .23), rgba(91, 73, 173, .08)); color: #d3caff; }
.pipeline-step strong { font-size: 12px; }
.pipeline-step p { font-size: 10px; }
.pipeline-state { min-width: 66px; text-align: center; }
.operator-panel { min-height: 266px; border-color: rgba(157, 139, 255, .24); border-radius: 16px; background: radial-gradient(circle at 94% 3%, rgba(130, 106, 255, .42), transparent 35%), linear-gradient(135deg, #17142d, #0f111c 68%); }
.operator-panel::after { right: -48px; bottom: -54px; border-color: rgba(200, 190, 255, .22); }
.operator-panel h2 { max-width: 300px; font-size: 29px; line-height: .95; }
.operator-panel p { font-size: 10px; }
.primary-action { min-width: 210px; border-radius: 10px; background: linear-gradient(135deg, #7761f5, #a087ff); }
.analytics-panel { position: relative; overflow: hidden; }
.analytics-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 10%, rgba(105, 87, 255, .12), transparent 30%); pointer-events: none; }
.platform-grid { gap: 13px; }
.platform-card { position: relative; min-height: 119px; padding: 19px; transition: transform .18s ease, border-color .18s ease; }
.platform-card:hover { transform: translateY(-3px); border-color: rgba(166, 151, 255, .34); }
.platform-icon { flex-basis: 39px; height: 39px; border-radius: 12px; }
.uploads-panel { margin-top: 20px; }
.table-wrap { border-top-color: rgba(194, 205, 255, .09); }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 236px minmax(0, 1fr); }
  .sidebar { width: 236px; }
  .main-content { padding: 34px 34px 60px; }
  .project-hero { min-height: 354px; }
  .hero-command { right: 28px; bottom: 29px; }
}

@media (max-width: 900px) {
  .hero-command { display: none; }
  .project-hero { min-height: 338px; }
  .metric-card { padding: 18px; }
  .metric-card strong { font-size: 31px; }
}

@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { width: 100%; padding: 15px 17px; }
  .sidebar::before, .sidebar-project, .sidebar nav, .sidebar-foot { display: none; }
  .brand { font-size: 16px; }
  .main-content { padding: 26px 16px 46px; }
  .topbar { margin-bottom: 21px; }
  .topbar h1 { font-size: 31px; line-height: .95; }
  .topbar-subtitle { display: block; max-width: 290px; font-size: 10px; }
  .project-hero { min-height: 468px; padding: 26px 21px; border-radius: 19px; }
  .project-hero::before, .hero-image::after { background: linear-gradient(180deg, rgba(6, 8, 14, .25), rgba(6, 8, 14, .94) 72%, rgba(6, 8, 14, .99)); }
  .project-hero::after { inset: 9px; border-radius: 12px; }
  .hero-image img { object-position: 55% 14%; filter: saturate(1.18) contrast(1.05) brightness(.82); }
  .hero-copy { padding-top: 235px; }
  .hero-copy h2 { margin-top: 13px; font-size: clamp(39px, 12vw, 56px); }
  .hero-copy p { margin-top: 14px; font-size: 10px; }
  .hero-links { margin-top: 20px; }
  .hero-links a { padding: 10px 11px; font-size: 9px; }
  .hero-image-label { top: 17px; right: 17px; bottom: auto; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 0; border-radius: 14px; }
  .metric-card { min-height: 130px; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .metric-card:nth-child(2n) { border-right: 0; }
  .metric-card:nth-last-child(-n+2) { border-bottom: 0; }
  .command-grid { grid-template-columns: 1fr; gap: 14px; margin: 14px 0; }
  .pipeline-list { padding: 0 17px 8px; }
  .panel-heading { padding: 18px 17px 13px; }
  .operator-panel { min-height: 237px; padding: 22px 18px; }
}

/* Keep the navigation quiet; the campaign screen is the product focus. */
.sidebar nav { margin-top: 38px; }
.sidebar-foot { display: block; }
.sidebar-foot .live-dot { margin-right: 7px; }
