:root {
  color-scheme: dark;
  --bg: #09090a;
  --surface: rgba(255,255,255,.025);
  --surface-strong: rgba(255,255,255,.055);
  --border: rgba(255,255,255,.085);
  --border-strong: rgba(255,255,255,.16);
  --text: #f5f5f4;
  --muted: #929298;
  --orange: #fb923c;
  --orange-soft: rgba(251,146,60,.11);
  --silver: #cbd5e1;
  --gold: #eab308;
  --red: #fb7185;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--text); background: var(--bg); overflow-x: hidden; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.ambient { position: fixed; width: 38rem; height: 38rem; border-radius: 50%; filter: blur(120px); pointer-events: none; opacity: .12; z-index: 0; }
.ambient-one { top: -25rem; left: -10rem; background: var(--orange); }
.ambient-two { right: -28rem; top: 30%; background: #475569; }

.login-shell { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.login-card { width: min(100%, 470px); padding: 42px; border: 1px solid var(--border-strong); border-radius: 28px; background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.018)); box-shadow: inset 0 1px 1px rgba(255,255,255,.16), 0 32px 90px rgba(0,0,0,.55); backdrop-filter: blur(20px); }
.login-brand, .admin-brand { display: inline-flex; align-items: center; color: #fff; text-decoration: none; }
.login-brand { gap: 9px; font-size: 19px; font-weight: 650; }
.login-brand img, .admin-brand img { width: 32px; height: 32px; object-fit: contain; filter: invert(1); }
.eyebrow, .panel-kicker { color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.login-card .eyebrow { margin: 40px 0 14px; }
.login-card h1 { margin: 0; font-size: clamp(38px, 9vw, 54px); line-height: .98; font-weight: 650; letter-spacing: -.055em; }
.login-copy { max-width: 390px; margin: 20px 0 30px; color: #a1a1aa; font-size: 15px; line-height: 1.65; }
.login-form { display: grid; gap: 16px; }
.login-form label { display: grid; gap: 8px; color: #d4d4d8; font-size: 12px; font-weight: 650; }
.login-form input { width: 100%; padding: 14px 15px; color: #fff; background: rgba(0,0,0,.34); border: 1px solid var(--border); border-radius: 13px; outline: none; transition: border-color .2s, box-shadow .2s; }
.login-form input:focus { border-color: rgba(251,146,60,.55); box-shadow: 0 0 0 4px rgba(251,146,60,.07); }
.primary-button { margin-top: 5px; padding: 14px 18px; display: flex; justify-content: space-between; border: 0; border-radius: 999px; background: #fafafa; color: #09090b; font-weight: 750; cursor: pointer; transition: transform .2s, background .2s; }
.primary-button:hover { background: #fff; transform: translateY(-2px); }
.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.form-error, .dashboard-error { padding: 12px 14px; color: #fecdd3; background: rgba(251,113,133,.08); border: 1px solid rgba(251,113,133,.22); border-radius: 12px; font-size: 12px; line-height: 1.5; }
.form-error { margin: 0; }
.privacy-note { margin: 24px 0 0; display: flex; align-items: center; gap: 8px; color: #71717a; font-size: 11px; }
.status-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px rgba(251,146,60,.8); }

.app-shell { position: relative; z-index: 1; min-height: 100vh; }
.admin-header { position: fixed; inset: 0 0 auto; height: 72px; z-index: 20; background: rgba(9,9,10,.74); border-bottom: 1px solid rgba(255,255,255,.045); backdrop-filter: blur(18px); }
.admin-nav { width: min(1400px, calc(100% - 48px)); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.admin-brand { gap: 9px; font-size: 20px; font-weight: 650; letter-spacing: -.025em; }
.admin-brand small { margin-left: 5px; padding: 4px 7px; color: #a1a1aa; border: 1px solid var(--border); border-radius: 999px; font-size: 8px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.admin-nav nav { display: flex; gap: 34px; }
.admin-nav nav a { position: relative; color: #a1a1aa; text-decoration: none; font-size: 13px; font-weight: 550; transition: color .2s; }
.admin-nav nav a:hover, .admin-nav nav a.active { color: #fff; }
.admin-nav nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 1px; background: var(--orange); }
.admin-nav-actions { display: flex; align-items: center; gap: 10px; }
.privacy-pill { padding: 8px 11px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 999px; color: #a1a1aa; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.logout-button { padding: 9px 15px; color: #09090b; background: #fafafa; border: 0; border-radius: 999px; font-size: 11px; font-weight: 700; cursor: pointer; transition: transform .2s; }
.logout-button:hover { transform: translateY(-1px); }

.dashboard-main { width: min(1360px, calc(100% - 48px)); margin: 0 auto; padding: 142px 0 70px; }
.topbar { min-height: 330px; display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; padding-bottom: 52px; border-bottom: 1px solid #29292c; }
.topbar-copy { max-width: 790px; }
.editorial-kicker-row { margin-bottom: 38px; display: flex; justify-content: space-between; gap: 40px; color: #66666c; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.topbar .eyebrow { margin: 0 0 18px; color: #aaaab0; }
.topbar h1 { margin: 0; color: #f5f5f4; font-size: clamp(52px, 7vw, 94px); line-height: .91; font-weight: 630; letter-spacing: -.065em; }
.dashboard-intro { max-width: 610px; margin: 27px 0 0; color: #929298; font-size: 16px; line-height: 1.7; }
.updated-at { margin: 18px 0 0; color: #606066; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 10px; padding-bottom: 5px; }
.range-switch { display: flex; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.025); }
.range-switch button { padding: 9px 13px; border: 0; border-radius: 999px; color: #77777d; background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.range-switch button.active { color: #09090b; background: #fafafa; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; color: #d4d4d8; background: rgba(255,255,255,.025); font-size: 18px; cursor: pointer; }
.icon-button:hover { border-color: var(--border-strong); background: rgba(255,255,255,.06); }
.icon-button.loading { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dashboard-error { margin: 22px 0 -8px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-bottom: 1px solid #29292c; }
.metric-card { position: relative; min-height: 260px; padding: 34px 30px 30px; display: flex; flex-direction: column; background: transparent; border-right: 1px solid #29292c; overflow: hidden; }
.metric-card:first-child { border-left: 1px solid #29292c; }
.metric-card::before { content: ""; position: absolute; inset: auto 10% -70% 10%; height: 80%; background: var(--orange); opacity: 0; filter: blur(70px); transition: opacity .35s; }
.metric-card:hover::before, .metric-card.accent::before { opacity: .08; }
.metric-card.silver::before { background: var(--silver); }
.metric-card.gold::before { background: var(--gold); }
.metric-top { position: relative; display: flex; align-items: center; justify-content: space-between; }
.metric-index { color: #66666c; font-size: 9px; font-weight: 750; letter-spacing: .14em; }
.metric-icon { color: #77777d; font-size: 18px; }
.metric-label { position: relative; margin-top: 33px; color: #a1a1aa; font-size: 13px; }
.metric-card strong { position: relative; margin-top: auto; color: #fff; font-size: clamp(46px, 5vw, 70px); line-height: .9; font-weight: 620; letter-spacing: -.055em; }
.metric-card small { position: relative; margin-top: 14px; color: #71717a; font-size: 10px; }
.metric-card.accent .metric-index, .metric-card.accent .metric-icon { color: var(--orange); }
.metric-card.silver .metric-index { color: var(--silver); }
.metric-card.gold .metric-index { color: #facc15; }

.signal-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); margin: 42px 0 88px; border: 1px solid var(--border); border-radius: 24px; background: linear-gradient(135deg,rgba(255,255,255,.045),rgba(255,255,255,.012)); box-shadow: inset 0 1px 1px rgba(255,255,255,.1), 0 18px 55px rgba(0,0,0,.22); overflow: hidden; }
.signal-grid article { min-height: 140px; padding: 24px; display: flex; flex-direction: column; border-right: 1px solid var(--border); }
.signal-grid article:last-child { border: 0; }
.signal-grid span { color: #77777d; font-size: 9px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.signal-grid strong { margin-top: auto; font-size: 27px; font-weight: 620; letter-spacing: -.035em; }
.signal-grid small { margin-top: 7px; color: #636369; font-size: 9px; }
.signal-track { height: 3px; margin-top: 12px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.signal-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg,var(--orange),#facc15); transition: width .55s ease; }

.content-grid, .lower-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(330px,.75fr); gap: 18px; }
.lower-grid { margin-top: 18px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.panel { min-width: 0; padding: 30px; border: 1px solid var(--border); border-radius: 24px; background: linear-gradient(135deg,rgba(255,255,255,.038),rgba(255,255,255,.012)); box-shadow: inset 0 1px 1px rgba(255,255,255,.08), 0 18px 55px rgba(0,0,0,.18); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.panel-kicker { margin: 0 0 14px; color: #71717a; font-size: 9px; }
.panel h2 { margin: 0; font-size: 26px; line-height: 1.05; font-weight: 620; letter-spacing: -.045em; }
.panel-heading p:not(.panel-kicker) { margin: 9px 0 0; color: #71717a; font-size: 11px; }
.panel-note { color: #66666c; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.legend { display: flex; gap: 14px; color: #77777d; font-size: 9px; }
.legend span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend i { width: 13px; display: inline-block; }
.legend-line { height: 2px; background: var(--orange); }
.legend-bar { height: 7px; background: rgba(203,213,225,.25); }
.usage-chart { min-height: 300px; }
.usage-chart svg { width: 100%; height: 300px; display: block; overflow: visible; }
.chart-grid { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.chart-area { fill: url(#usageGradient); }
.chart-line { fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: #111; stroke: var(--orange); stroke-width: 2; }
.chart-bar { fill: rgba(203,213,225,.12); }
.chart-label { fill: #68686e; font-size: 9px; }
.chart-empty { min-height: 300px; display: grid; place-items: center; color: #71717a; font-size: 12px; }

.plan-visual { min-height: 216px; display: flex; align-items: center; justify-content: center; gap: 30px; }
.donut { position: relative; width: 132px; height: 132px; flex: 0 0 auto; display: grid; place-items: center; align-content: center; border-radius: 50%; background: conic-gradient(#52525b 0 33%,var(--silver) 33% 66%,var(--gold) 66%); }
.donut::after { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: #0d0d0e; box-shadow: inset 0 0 0 1px var(--border); }
.donut span,.donut small { position: relative; z-index: 1; }
.donut span { font-size: 29px; line-height: 1; font-weight: 650; }
.donut small { margin-top: 4px; color: #66666c; font-size: 8px; letter-spacing: .14em; text-transform: uppercase; }
.plan-legend { min-width: 115px; display: grid; gap: 14px; }
.plan-row { display: grid; grid-template-columns: 7px 1fr auto; align-items: center; gap: 9px; color: #85858b; font-size: 10px; }
.plan-row i { width: 7px; height: 7px; border-radius: 50%; }
.plan-row strong { color: #f5f5f4; font-size: 13px; }
.mini-stats { padding-top: 18px; display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; border-top: 1px solid var(--border); }
.mini-stats div { display: grid; gap: 5px; }
.mini-stats span { color: #68686e; font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
.mini-stats strong { font-size: 17px; font-weight: 620; }

.table-panel { margin-top: 18px; padding-bottom: 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 0 13px 13px; color: #626268; font-size: 8px; font-weight: 750; letter-spacing: .13em; text-align: left; text-transform: uppercase; }
td { padding: 15px 13px; color: #a1a1aa; border-top: 1px solid var(--border); }
td strong { color: #f5f5f4; font-weight: 620; }
.user-cell { display: flex; align-items: center; gap: 11px; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; color: #09090b; background: #f5f5f4; border-radius: 50%; font-weight: 800; }
.plan-badge { padding: 4px 8px; display: inline-flex; color: #a1a1aa; border: 1px solid var(--border); border-radius: 999px; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.plan-badge.plus { color: var(--silver); border-color: rgba(203,213,225,.22); }
.plan-badge.pro { color: #facc15; border-color: rgba(234,179,8,.26); background: rgba(234,179,8,.05); }
.plan-badge.max { color: #fdba74; border-color: rgba(251,146,60,.35); background: rgba(251,146,60,.07); box-shadow: 0 0 14px rgba(251,146,60,.08); }
.share-cell { min-width: 130px; display: flex; align-items: center; gap: 9px; }
.share-track { width: 75px; height: 3px; background: rgba(255,255,255,.07); border-radius: 99px; overflow: hidden; }
.share-track i { display: block; height: 100%; background: var(--orange); }
.empty-row td { padding: 40px; color: #71717a; text-align: center; }

.profiles-panel { margin-top: 18px; padding: 0; overflow: hidden; }
.profiles-heading { padding: 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--border); }
.profiles-heading h2 { margin: 0; font-size: 30px; line-height: 1.05; font-weight: 620; letter-spacing: -.045em; }
.profiles-heading p:not(.panel-kicker) { margin: 10px 0 0; color: #71717a; font-size: 11px; }
.profile-search { width: min(430px,48%); min-height: 48px; padding: 0 13px; display: flex; align-items: center; gap: 11px; color: #71717a; background: rgba(0,0,0,.28); border: 1px solid var(--border); border-radius: 999px; transition: border-color .2s,box-shadow .2s; }
.profile-search:focus-within { border-color: rgba(251,146,60,.48); box-shadow: 0 0 0 4px rgba(251,146,60,.06); }
.profile-search > span { color: #a1a1aa; font-size: 19px; transform: translateY(-1px); }
.profile-search input { min-width: 0; flex: 1; color: #f5f5f4; background: transparent; border: 0; outline: 0; font-size: 12px; }
.profile-search input::placeholder { color: #5c5c62; }
.profile-search kbd { padding: 3px 6px; color: var(--orange); background: var(--orange-soft); border: 1px solid rgba(251,146,60,.18); border-radius: 5px; font-family: inherit; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.profile-toolbar { min-height: 64px; padding: 12px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); }
.profile-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-filters button { padding: 7px 10px; display: inline-flex; align-items: center; gap: 7px; color: #85858b; background: transparent; border: 1px solid var(--border); border-radius: 999px; font-size: 9px; font-weight: 700; cursor: pointer; }
.profile-filters button span { min-width: 17px; padding: 2px 5px; color: #71717a; background: rgba(255,255,255,.05); border-radius: 99px; font-size: 7px; text-align: center; }
.profile-filters button:hover,.profile-filters button.active { color: #09090b; background: #f5f5f4; border-color: #f5f5f4; }
.profile-filters button.active span { color: #09090b; background: rgba(0,0,0,.1); }
.profile-result-count { color: #66666c; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.profile-table-wrap { padding: 0 17px 18px; }
.profile-table td { padding-top: 17px; padding-bottom: 17px; }
.profile-identity { display: flex; align-items: center; gap: 11px; min-width: 210px; }
.profile-identity > span:first-child { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; color: #09090b; background: linear-gradient(135deg,#fff,#c4c4c7); border-radius: 50%; font-size: 11px; font-weight: 850; }
.profile-identity div { min-width: 0; display: grid; gap: 3px; }
.profile-identity strong,.profile-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-identity small { max-width: 230px; color: #6d6d73; font-size: 9px; }
.subscription-cell { display: grid; gap: 5px; }
.subscription-cell small { color: #5f5f65; font-size: 8px; }
.subscription-status { display: inline-flex; align-items: center; gap: 6px; color: #a1a1aa; font-size: 9px; }
.subscription-status i { width: 6px; height: 6px; border-radius: 50%; background: #71717a; }
.subscription-status.active { color: #d4d4d8; }
.subscription-status.active i { background: var(--orange); box-shadow: 0 0 8px rgba(251,146,60,.65); }
.subscription-status.expired { color: #fb7185; }
.subscription-status.expired i { background: #fb7185; }
.remaining-pill { padding: 5px 8px; display: inline-flex; color: #a1a1aa; background: rgba(255,255,255,.035); border: 1px solid var(--border); border-radius: 999px; font-size: 8px; white-space: nowrap; }
.remaining-pill.soon { color: #facc15; border-color: rgba(234,179,8,.22); background: rgba(234,179,8,.04); }
.credit-stack { min-width: 118px; display: grid; gap: 5px; }
.credit-stack span { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #77777d; font-size: 8px; }
.credit-stack strong { color: #f5f5f4; font-size: 10px; }
.grant-credit-button { padding: 8px 11px; color: #09090b; background: #f5f5f4; border: 0; border-radius: 999px; font-size: 9px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.grant-credit-button:hover { background: var(--orange); }
.credit-history-block { padding: 27px 30px 30px; border-top: 1px solid var(--border); background: rgba(255,255,255,.012); }
.credit-history-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.credit-history-heading .panel-kicker { margin: 0 0 9px; }
.credit-history-heading h3 { margin: 0; font-size: 22px; font-weight: 620; letter-spacing: -.04em; }
.credit-schema-status { color: #facc15; font-size: 9px; }
.credit-history { display: grid; }
.credit-history-row { padding: 13px 0; display: grid; grid-template-columns: minmax(180px,1.4fr) minmax(120px,.8fr) minmax(100px,.7fr) minmax(150px,1fr); gap: 18px; align-items: center; border-top: 1px solid var(--border); }
.credit-history-row:first-child { border-top: 0; }
.credit-history-row > span { min-width: 0; display: grid; gap: 4px; color: #8a8a90; font-size: 9px; }
.credit-history-row strong { overflow: hidden; color: #e4e4e7; font-size: 11px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.credit-history-row small { color: #5f5f65; font-size: 8px; }
.credit-history-row .credit-amount { color: var(--orange); font-size: 16px; }

.credit-dialog { width: min(92vw,520px); padding: 0; color: var(--text); background: #101011; border: 1px solid var(--border-strong); border-radius: 24px; box-shadow: 0 35px 100px rgba(0,0,0,.72); }
.credit-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(8px); }
.credit-form { padding: 30px; display: grid; gap: 17px; }
.credit-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.credit-dialog-head .panel-kicker { margin: 0 0 10px; }
.credit-dialog-head h2 { margin: 0; font-size: 30px; font-weight: 620; letter-spacing: -.05em; }
.credit-dialog-head p:not(.panel-kicker) { margin: 8px 0 0; color: #71717a; font-size: 11px; }
.dialog-close { width: 34px; height: 34px; flex: 0 0 auto; color: #a1a1aa; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 50%; font-size: 20px; cursor: pointer; }
.credit-type-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: rgba(0,0,0,.3); border: 1px solid var(--border); border-radius: 999px; }
.credit-type-switch button { padding: 10px; color: #77777d; background: transparent; border: 0; border-radius: 999px; font-size: 10px; font-weight: 700; cursor: pointer; }
.credit-type-switch button.active { color: #09090b; background: #f5f5f4; }
.credit-form label { display: grid; gap: 8px; color: #d4d4d8; font-size: 11px; font-weight: 650; }
.credit-form label small { color: #626268; font-weight: 500; }
.credit-form input,.credit-form textarea { width: 100%; padding: 13px 14px; color: #fff; background: rgba(0,0,0,.3); border: 1px solid var(--border); border-radius: 12px; outline: none; resize: vertical; }
.credit-form input:focus,.credit-form textarea:focus { border-color: rgba(251,146,60,.55); box-shadow: 0 0 0 4px rgba(251,146,60,.06); }
.credit-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 3px; }
.credit-form-actions > button { padding: 12px 17px; border-radius: 999px; cursor: pointer; }
.credit-form-actions > button:first-child { color: #a1a1aa; background: transparent; border: 1px solid var(--border); }
.credit-form-actions .primary-button { margin: 0; gap: 18px; border: 0; }

.model-list,.activity-list { display: grid; gap: 14px; }
.model-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px 12px; }
.model-name { overflow: hidden; color: #d4d4d8; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.model-value { color: #71717a; font-size: 10px; }
.model-track { grid-column: 1/-1; height: 4px; background: rgba(255,255,255,.06); border-radius: 99px; overflow: hidden; }
.model-track i { display: block; height: 100%; background: linear-gradient(90deg,#71717a,var(--orange)); border-radius: inherit; }
.activity-row { padding-bottom: 12px; display: grid; grid-template-columns: 7px minmax(0,1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--border); }
.activity-row:last-child { padding-bottom: 0; border: 0; }
.activity-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.activity-dot.error { background: var(--red); }
.activity-main { min-width: 0; display: grid; gap: 3px; }
.activity-main strong { font-size: 11px; font-weight: 620; }
.activity-main small { overflow: hidden; color: #6d6d73; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.activity-time { color: #66666c; font-size: 8px; white-space: nowrap; }
.live-label { display: flex; align-items: center; gap: 7px; color: var(--orange); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.live-label i { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 9px var(--orange); }
.empty-state { padding: 34px 0; color: #71717a; font-size: 11px; text-align: center; }
.admin-footer { margin-top: 70px; padding-top: 22px; display: flex; justify-content: space-between; color: #525258; border-top: 1px solid #29292c; font-size: 8px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

@media (max-width: 1080px) {
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .metric-card:nth-child(2) { border-right: 1px solid #29292c; }
  .metric-card:nth-child(-n+2) { border-bottom: 1px solid #29292c; }
  .signal-grid { grid-template-columns: repeat(3,1fr); }
  .signal-grid article:nth-child(3) { border-right: 0; }
  .signal-grid article:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
  .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .admin-header { height: 64px; }
  .admin-nav { width: calc(100% - 28px); }
  .admin-nav nav,.privacy-pill,.admin-brand small { display: none; }
  .admin-brand { font-size: 17px; }
  .admin-brand img { width: 29px; height: 29px; }
  .dashboard-main { width: calc(100% - 28px); padding-top: 105px; }
  .topbar { min-height: 0; display: grid; padding-bottom: 36px; }
  .editorial-kicker-row { margin-bottom: 28px; }
  .topbar h1 { font-size: clamp(50px,15vw,72px); }
  .header-actions { width: 100%; }
  .range-switch { flex: 1; }
  .range-switch button { flex: 1; }
  .signal-grid { grid-template-columns: repeat(2,1fr); margin-bottom: 55px; }
  .signal-grid article,.signal-grid article:nth-child(3) { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .signal-grid article:nth-child(even) { border-right: 0; }
  .signal-grid article:last-child { grid-column: 1/-1; border: 0; }
  .lower-grid { grid-template-columns: 1fr; }
  .profiles-heading { align-items: stretch; flex-direction: column; }
  .profile-search { width: 100%; }
  .profile-toolbar { align-items: flex-start; flex-direction: column; }
  .credit-history-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .login-card { padding: 29px 23px; border-radius: 22px; }
  .metric-card { min-height: 205px; padding: 24px 18px; }
  .metric-label { margin-top: 25px; }
  .metric-card strong { font-size: 46px; }
  .panel { padding: 23px 18px; border-radius: 19px; }
  .legend { display: none; }
  .plan-visual { gap: 18px; }
  th:nth-child(2),td:nth-child(2),th:nth-child(4),td:nth-child(4) { display: none; }
  .profile-table th:nth-child(4),.profile-table td:nth-child(4),.profile-table th:nth-child(5),.profile-table td:nth-child(5) { display: none; }
  .profiles-heading,.profile-toolbar { padding-left: 18px; padding-right: 18px; }
  .credit-history-block { padding-left: 18px; padding-right: 18px; }
  .credit-history-row { grid-template-columns: 1fr; gap: 8px; }
  .credit-form { padding: 23px 18px; }
  .admin-footer { display: grid; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
