:root {
  --bg: #090b0d;
  --sidebar: #0d1012;
  --panel: #111518;
  --panel-2: #151a1e;
  --panel-3: #1a2024;
  --border: #252c31;
  --border-soft: #1c2226;
  --text: #edf2f4;
  --muted: #89949b;
  --subtle: #626c72;
  --lime: #b8f23d;
  --lime-dark: #7eaa24;
  --green: #59d68c;
  --red: #ff6c70;
  --blue: #67a8ff;
  --purple: #a984ff;
  --amber: #f4bd50;
  --radius: 14px;
  --shadow: 0 18px 60px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 80% -20%, rgba(184, 242, 61, .045), transparent 36%), var(--bg); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
code { color: #b7c1c6; font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
p, h1, h2, h3 { margin-top: 0; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 248px; display: flex; flex-direction: column; padding: 28px 18px 18px; background: linear-gradient(180deg, #0e1113 0%, #0a0d0f 100%); border-right: 1px solid var(--border-soft); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; letter-spacing: .035em; font-size: 17px; }
.brand strong { color: var(--lime); font-weight: 850; }
.brand span:last-child { display: flex; flex-direction: column; font-weight: 720; }
.brand small { color: #657077; font-size: 7px; letter-spacing: .27em; margin-top: 3px; }
.brand-mark { width: 27px; height: 31px; display: flex !important; flex-direction: row !important; align-items: end; gap: 3px; transform: skew(-9deg); }
.brand-mark i { display: block; width: 6px; border-radius: 2px 2px 1px 1px; background: var(--lime); box-shadow: 0 0 16px rgba(184,242,61,.12); }
.brand-mark i:nth-child(1) { height: 15px; opacity: .55; }
.brand-mark i:nth-child(2) { height: 23px; opacity: .78; }
.brand-mark i:nth-child(3) { height: 31px; }
.brand-large { padding: 0; font-size: 20px; }
.brand-large .brand-mark { width: 33px; height: 38px; }
.brand-large .brand-mark i { width: 7px; }
.brand-large .brand-mark i:nth-child(1) { height: 18px; }.brand-large .brand-mark i:nth-child(2) { height: 28px; }.brand-large .brand-mark i:nth-child(3) { height: 38px; }

.nav { margin-top: 44px; flex: 1; }
.nav-label { padding: 0 12px; margin: 26px 0 9px; color: #515b61; font-size: 9px; letter-spacing: .18em; font-weight: 800; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; margin: 3px 0; border-radius: 9px; color: #939da3; font-size: 13px; font-weight: 600; transition: .16s ease; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.03); }
.nav a.active { color: #f7f9fa; background: linear-gradient(90deg, rgba(184,242,61,.12), rgba(184,242,61,.035)); }
.nav a.active::before { content: ""; position: absolute; left: -18px; width: 3px; height: 22px; border-radius: 0 3px 3px 0; background: var(--lime); box-shadow: 0 0 14px rgba(184,242,61,.45); }
.nav-icon { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #2a3136; border-radius: 7px; color: #aeb8bd; font: 700 11px/1 ui-monospace, monospace; }
.nav a.active .nav-icon { color: var(--lime); border-color: rgba(184,242,61,.3); }
.sidebar-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border-soft); padding: 18px 6px 0; }
.user-chip, .person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-chip > span:last-child, .person p { min-width: 0; margin: 0; display: flex; flex-direction: column; }
.user-chip strong, .person strong { font-size: 12px; max-width: 125px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip small, .person small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.avatar { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #10130d; background: linear-gradient(135deg, var(--lime), #81ad28); font-size: 12px; font-weight: 850; }
.icon-button, .mobile-menu { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 19px; }
.sidebar-backdrop { display: none; }

.main { margin-left: 248px; min-width: 0; }
.topbar { height: 84px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-soft); background: rgba(9,11,13,.88); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 20; }
.topbar h1 { margin: 2px 0 0; font-size: 21px; letter-spacing: -.025em; }
.eyebrow { margin: 0 0 4px; color: #626c72; font-size: 8px; letter-spacing: .19em; font-weight: 800; }
.top-actions { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 11px; }
.live-dot { display: flex; align-items: center; gap: 7px; }
.live-dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(184,242,61,.08), 0 0 10px rgba(184,242,61,.5); }
.mobile-menu { display: none; }
.content { width: min(1600px, 100%); padding: 29px 34px 48px; margin: 0 auto; }
.page-intro { min-height: 48px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.page-intro p { color: var(--muted); font-size: 13px; margin: 0; }
.context-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.badge { display: inline-flex; align-items: center; gap: 7px; min-height: 29px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 8px; color: #9aa5ab; background: #101417; font-size: 9px; letter-spacing: .08em; font-weight: 750; }
.badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.badge-demo { color: #d7eb9d; border-color: rgba(184,242,61,.18); background: rgba(184,242,61,.055); }
.badge-demo i, .badge-live i { background: var(--lime); }
.badge-live { color: #aee6c5; border-color: rgba(89,214,140,.18); background: rgba(89,214,140,.055); }

.demo-banner, .security-note { display: flex; align-items: flex-start; gap: 12px; padding: 12px 15px; margin-bottom: 15px; border: 1px solid rgba(184,242,61,.13); border-radius: 10px; background: rgba(184,242,61,.035); color: #b7c88f; }
.demo-banner > span, .security-note > span { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border: 1px solid rgba(184,242,61,.25); border-radius: 50%; font-size: 10px; }
.demo-banner strong, .security-note strong { color: #dce8c0; font-size: 11px; }
.demo-banner p, .security-note p { margin: 2px 0 0; color: #899471; font-size: 10px; line-height: 1.5; }
.security-note { border-color: rgba(103,168,255,.16); background: rgba(103,168,255,.04); color: var(--blue); }
.security-note > span { border-color: rgba(103,168,255,.25); }.security-note strong { color: #bed7f8; }.security-note p { color: #8296ad; }

.filters { display: grid; grid-template-columns: 1.7fr repeat(4, minmax(110px, 1fr)); gap: 10px; padding: 13px; margin-bottom: 19px; border: 1px solid var(--border-soft); background: #0d1113; border-radius: 12px; }
.filters label, .filter-date > label, .form-grid label, .form-stack label, .auth-form label { display: flex; flex-direction: column; gap: 6px; color: #78838a; font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
input, select, textarea { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid #293137; border-radius: 8px; outline: none; background: #12171a; color: #dce2e5; font-size: 11px; letter-spacing: 0; text-transform: none; transition: border .15s, box-shadow .15s; }
textarea { padding: 10px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(184,242,61,.5); box-shadow: 0 0 0 3px rgba(184,242,61,.07); }
select { appearance: none; padding-right: 27px; background-image: linear-gradient(45deg, transparent 50%, #667178 50%), linear-gradient(135deg, #667178 50%, transparent 50%); background-position: calc(100% - 14px) 16px, calc(100% - 10px) 16px; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; }
.filter-date > div { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 7px; }
.filter-date > div span { color: var(--subtle); font-size: 9px; }
.filter-date input { color-scheme: dark; }
.filter-actions { display: flex; align-items: flex-end; gap: 6px; }

.button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 14px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-size: 10px; font-weight: 750; transition: .15s ease; white-space: nowrap; }
.button:active { transform: translateY(1px); }
.button-primary { color: #10130b; background: var(--lime); border-color: var(--lime); box-shadow: 0 6px 22px rgba(184,242,61,.08); }
.button-primary:hover { background: #c7ff4d; }
.button-secondary { color: #c0c9cd; border-color: #30383d; background: #161b1e; }
.button-secondary:hover, .button-ghost:hover { color: white; border-color: #475157; }
.button-ghost { color: #7d888e; border-color: transparent; background: transparent; }
.button-danger { color: #ef9c9e; border-color: rgba(255,108,112,.22); background: rgba(255,108,112,.07); }
.button-small { min-height: 30px; padding: 0 10px; font-size: 9px; }
.button-wide { width: 100%; min-height: 45px; justify-content: space-between; padding: 0 17px; }
.button[disabled] { opacity: .55; cursor: wait; }

.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 11px; margin-bottom: 14px; }
.metric-card { min-width: 0; min-height: 123px; padding: 16px; border: 1px solid var(--border-soft); border-radius: 12px; background: linear-gradient(140deg, #12171a, #0f1315); box-shadow: 0 10px 28px rgba(0,0,0,.07); }
.metric-featured { border-color: rgba(184,242,61,.18); background: linear-gradient(140deg, rgba(184,242,61,.065), #101512 72%); }
.metric-top { display: flex; justify-content: space-between; align-items: center; color: #8a959b; font-size: 10px; font-weight: 650; }
.metric-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; font-style: normal; font-size: 10px; }
.metric-icon.red { color: var(--red); background: rgba(255,108,112,.08); }.metric-icon.blue { color: var(--blue); background: rgba(103,168,255,.08); }.metric-icon.green { color: var(--green); background: rgba(89,214,140,.08); }.metric-icon.purple { color: var(--purple); background: rgba(169,132,255,.08); }
.metric-card > strong { display: block; margin: 15px 0 7px; font-size: clamp(20px, 2vw, 27px); letter-spacing: -.04em; }
.metric-card > small { color: #59636a; font-size: 9px; }
.positive { color: var(--lime) !important; }.negative { color: var(--red) !important; }
.partial-note { display: flex; align-items: center; gap: 7px; margin: -3px 0 14px; color: #9a8760; font-size: 9px; }.partial-note span { color: var(--amber); }.partial-note strong { color: #c8ae77; }

.panel { min-width: 0; border: 1px solid var(--border-soft); border-radius: var(--radius); background: linear-gradient(145deg, #111619, #0f1315); box-shadow: 0 12px 35px rgba(0,0,0,.09); }
.panel-head { min-height: 68px; display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 16px 18px; border-bottom: 1px solid var(--border-soft); }
.panel-head h2 { margin: 0; font-size: 14px; letter-spacing: -.015em; }
.panel-head p:not(.eyebrow) { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.panel-foot { padding: 10px 18px; display: flex; gap: 22px; border-top: 1px solid var(--border-soft); color: #5d676d; font-size: 8px; }.panel-foot strong { color: #879197; font-weight: 600; }
.split-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(270px, .8fr); gap: 13px; margin-bottom: 14px; }.split-grid.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.legend { display: flex; gap: 13px; color: var(--muted); font-size: 8px; }.legend span { display: flex; align-items: center; gap: 5px; }.legend i { width: 12px; height: 2px; border-radius: 2px; }.legend-spend { background: var(--red); }.legend-revenue { background: var(--lime); }
.chart-wrap { position: relative; padding: 12px 18px 20px; overflow: hidden; }
.line-chart { display: block; width: 100%; height: 230px; overflow: visible; }
.line-chart line { stroke: #21272b; stroke-width: 1; stroke-dasharray: 3 6; }
.line-chart polyline { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.revenue-line { stroke: var(--lime); filter: drop-shadow(0 0 5px rgba(184,242,61,.2)); }.spend-line { stroke: var(--red); opacity: .8; }.revenue-dot { fill: var(--lime); stroke: #111518; stroke-width: 2; }
.chart-labels { position: absolute; inset: auto 22px 8px; height: 12px; }.chart-labels span { position: absolute; transform: translateX(-50%); color: #59636a; font-size: 8px; }
.efficiency-list { padding: 5px 18px; }
.efficiency-list > div { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }.efficiency-list > div:last-child { border: 0; }
.efficiency-list span { color: #a1abb0; font-size: 10px; }.efficiency-list span small { display: block; margin-top: 3px; color: #555f65; font-size: 8px; }.efficiency-list strong { font-size: 14px; }
.formula-note { margin: 4px 14px 14px; padding: 11px 12px; border-radius: 9px; background: rgba(103,168,255,.045); border: 1px solid rgba(103,168,255,.1); }.formula-note strong { color: #a8c4e5; font-size: 9px; }.formula-note p { color: #67798b; font-size: 8px; line-height: 1.55; margin: 4px 0 0; }

.table-panel { margin-bottom: 14px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 10px; }
th { padding: 10px 15px; color: #5f696f; background: rgba(255,255,255,.008); text-align: left; font-size: 8px; letter-spacing: .065em; text-transform: uppercase; font-weight: 750; white-space: nowrap; }
td { padding: 12px 15px; border-top: 1px solid var(--border-soft); color: #9aa4a9; vertical-align: middle; }
td > strong { color: #d8dfe2; font-size: 10px; } td > small { display: block; margin-top: 4px; color: #586269; font-size: 8px; max-width: 280px; }.number { text-align: right; white-space: nowrap; }.actions-cell { text-align: right; }.actions-cell form { display: inline-block; }
tbody tr { transition: background .12s; } tbody tr:hover { background: rgba(255,255,255,.012); }
.table-empty { padding: 42px; text-align: center; color: var(--subtle); }
.text-link, .text-button { color: #97bc45; font-size: 9px; font-weight: 700; }.text-button { border: 0; padding: 4px; background: transparent; cursor: pointer; }
.status { display: inline-flex; align-items: center; gap: 6px; color: #8c969b; font-size: 8px; white-space: nowrap; }.status i { width: 5px; height: 5px; border-radius: 50%; background: #667178; }
.status-healthy { color: #83ba93; }.status-healthy i { background: var(--green); }.status-error { color: #df8588; }.status-error i { background: var(--red); }.status-warning { color: #d2aa64; }.status-warning i { background: var(--amber); }.status-syncing { color: #89a9cf; }.status-syncing i { background: var(--blue); animation: pulse 1.2s infinite; }.status-not_configured, .status-disabled { color: #707a80; }.status-success { color: var(--green); }
.confidence { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 7px; border-radius: 6px; font-size: 7px; letter-spacing: .04em; font-weight: 800; text-transform: uppercase; white-space: nowrap; }.confidence-reliable { color: #8bd9a7; background: rgba(89,214,140,.08); border: 1px solid rgba(89,214,140,.13); }.confidence-estimated { color: #d2aa64; background: rgba(244,189,80,.07); border: 1px solid rgba(244,189,80,.13); }.confidence-unavailable { color: #848e94; background: rgba(132,142,148,.07); border: 1px solid rgba(132,142,148,.12); }

.scope-tabs { display: inline-flex; gap: 3px; padding: 3px; margin: -5px 0 16px; border: 1px solid var(--border-soft); border-radius: 9px; background: #0e1214; }.scope-tabs a { padding: 7px 12px; border-radius: 6px; color: #687279; font-size: 9px; font-weight: 700; }.scope-tabs a.active { color: #dce4e7; background: #1a2023; box-shadow: 0 3px 10px rgba(0,0,0,.15); }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 14px; }.mini-stats article { padding: 14px 16px; border: 1px solid var(--border-soft); border-radius: 11px; background: #101416; }.mini-stats span { color: var(--muted); font-size: 9px; }.mini-stats strong { display: block; margin: 8px 0 4px; font-size: 20px; }.mini-stats small { color: #566067; font-size: 8px; }
.entity-tree { padding: 7px 17px 14px; }.entity-row { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 50px; border-bottom: 1px solid var(--border-soft); }.entity-row:last-child { border: 0; }.entity-row > div { display: flex; flex-direction: column; min-width: 0; }.entity-row strong { color: #cbd3d7; font-size: 10px; }.entity-row small { color: #586269; font-size: 8px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.entity-kind { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #2a3338; border-radius: 7px; color: #7f8a90; background: #151a1d; font: 800 7px/1 ui-monospace, monospace; }.entity-meta_account { margin-left: 15px; }.entity-campaign { margin-left: 30px; }.entity-adset { margin-left: 45px; }.entity-ad { margin-left: 60px; }
.check-list { padding: 7px 18px 2px; }.check-list > div { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }.check-list > div > span { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; color: var(--lime); background: rgba(184,242,61,.07); font-size: 9px; }.check-list p { margin: 0; color: #646e74; font-size: 9px; line-height: 1.5; }.check-list strong { display: block; color: #bdc6ca; font-size: 9px; }
.future-box, .warning-box { margin: 13px; padding: 13px; border: 1px solid rgba(169,132,255,.12); border-radius: 9px; background: rgba(169,132,255,.04); }.future-box > span { color: #8c73bd; font-size: 7px; letter-spacing: .15em; font-weight: 800; }.future-box strong, .warning-box strong { display: block; color: #b9a8dc; font-size: 10px; margin: 5px 0 3px; }.future-box p, .warning-box p { margin: 0; color: #726986; font-size: 8px; line-height: 1.5; }.future-box.wide { margin: 0; }
.warning-box { border-color: rgba(244,189,80,.13); background: rgba(244,189,80,.04); }.warning-box strong { color: #d1b172; }.warning-box p { color: #867654; }
.assignment-list { padding: 7px 18px 14px; }.assignment-list > div { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 10px; align-items: center; min-height: 60px; border-bottom: 1px solid var(--border-soft); }.assignment-list p { margin: 0; display: flex; flex-direction: column; }.assignment-list strong { color: #cbd3d7; font-size: 9px; }.assignment-list small { color: #586269; font-size: 8px; margin-top: 3px; }.site-favicon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; color: #10140c; background: var(--lime); font-weight: 900; }.assignment-arrow { color: #4c565c; }
.capability-list { padding: 8px 17px; }.capability-list > div { padding: 11px 0; border-bottom: 1px solid var(--border-soft); }.capability-list > div:last-child { border: 0; }.capability-list header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.capability-list strong { color: #cbd3d7; font-size: 9px; }.capability-list p { margin: 5px 0; color: #707b81; font-size: 8px; line-height: 1.5; }.capability-list b { color: #98a2a7; }.capability-list small { display: block; color: #59636a; font-size: 8px; line-height: 1.5; }.capability-list.compact { max-height: 440px; overflow: auto; }

.compact-grid { grid-template-columns: repeat(4, 1fr); }.roadmap-list { padding: 7px 18px; }.roadmap-list > div { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); }.roadmap-list > div > span { color: var(--lime); font: 800 8px/1.4 ui-monospace, monospace; }.roadmap-list p { margin: 0; color: #626c73; font-size: 9px; line-height: 1.5; }.roadmap-list strong { display: block; color: #bac3c7; font-size: 9px; }
.mapping-explainer { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 18px; margin-bottom: 14px; border: 1px solid var(--border-soft); border-radius: 12px; background: #0e1214; }.mapping-explainer > div { display: flex; align-items: center; gap: 11px; }.mapping-explainer p { margin: 0; color: #a2adb2; font-size: 9px; line-height: 1.6; }.mapping-explainer small { color: #58636a; }.map-node { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; font-size: 8px; font-weight: 900; }.map-node.meta { color: #a9caff; background: rgba(103,168,255,.1); border: 1px solid rgba(103,168,255,.16); }.map-node.gam { color: #d9ebac; background: rgba(184,242,61,.08); border: 1px solid rgba(184,242,61,.14); }.map-line { display: flex; flex-direction: column; align-items: center; color: #626d73; }.map-line small { margin-top: 3px; font-size: 7px; }.confidence-stack { flex-direction: column; gap: 3px !important; align-items: stretch !important; }
.confidence-grid, .role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }.confidence-grid > div { padding: 17px; border-right: 1px solid var(--border-soft); }.confidence-grid > div:last-child { border: 0; }.confidence-grid p { margin: 9px 0 0; color: #69747a; font-size: 9px; line-height: 1.6; }

.integration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }.integration-card { border: 1px solid var(--border-soft); border-radius: 13px; background: linear-gradient(140deg, #12171a, #0f1315); overflow: hidden; }.integration-card > header { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; padding: 15px 17px; border-bottom: 1px solid var(--border-soft); }.integration-card > header > div { display: flex; flex-direction: column; min-width: 0; }.integration-card > header strong { font-size: 11px; }.integration-card > header small { color: #626c72; font-size: 8px; margin-top: 3px; }.provider-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; font-weight: 900; }.provider-meta { color: #9bc4ff; background: rgba(103,168,255,.09); border: 1px solid rgba(103,168,255,.14); }.provider-gam { color: #d6ec9c; background: rgba(184,242,61,.07); border: 1px solid rgba(184,242,61,.13); }
.integration-details { display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px 17px; }.integration-details > div { padding: 8px 8px 8px 0; display: flex; flex-direction: column; }.integration-details span { color: #59636a; font-size: 8px; }.integration-details strong { color: #a8b1b6; font-size: 9px; margin-top: 4px; overflow-wrap: anywhere; }.warning-text { color: var(--amber) !important; }.sync-line { display: flex; justify-content: space-between; gap: 10px; margin: 0 17px; padding: 10px 0; border-top: 1px solid var(--border-soft); color: #59636a; font-size: 8px; }.sync-line strong { color: #818c92; }.integration-error { margin: 0 17px 10px; padding: 8px 10px; border-radius: 7px; color: #bd7376; background: rgba(255,108,112,.05); font-size: 8px; }.integration-error p { margin: 3px 0 0; color: #8c6062; }.integration-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 17px; background: rgba(255,255,255,.009); border-top: 1px solid var(--border-soft); }.integration-card footer code { max-width: 58%; }
.timeline { padding: 7px 17px; }.timeline > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 51px; border-bottom: 1px solid var(--border-soft); }.timeline > div:last-child { border: 0; }.timeline-dot { width: 7px; height: 7px; border: 2px solid #232a2e; border-radius: 50%; background: var(--subtle); }.dot-success { background: var(--green); }.dot-failed { background: var(--red); }.timeline p { margin: 0; display: flex; flex-direction: column; }.timeline strong { color: #bdc6ca; font-size: 9px; }.timeline small { color: #5e686e; font-size: 8px; margin-top: 3px; }.timeline em { color: #9f6264; font-size: 8px; font-style: normal; margin-top: 3px; }

.invite-reveal { display: grid; grid-template-columns: 1fr minmax(300px, 1fr); gap: 20px; align-items: center; margin-bottom: 14px; padding: 15px 17px; border: 1px solid rgba(184,242,61,.18); border-radius: 11px; background: rgba(184,242,61,.04); }.invite-reveal strong { color: #d5e6ae; font-size: 10px; }.invite-reveal p { margin: 4px 0 0; color: #74805d; font-size: 8px; }.copy-field { display: flex; gap: 6px; }.copy-field input { min-width: 0; }
.inline-form { display: flex; align-items: center; gap: 4px; }.inline-form select { min-height: 30px; width: 112px; }
.role-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 0; }.role-grid article { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--border-soft); border-radius: 11px; background: #101416; }.role-icon { display: grid; place-items: center; flex: none; width: 31px; height: 31px; border-radius: 8px; font-weight: 850; }.role-icon.admin { color: #10140c; background: var(--lime); }.role-icon.viewer { color: #a8c8f0; background: rgba(103,168,255,.1); }.role-grid strong { font-size: 10px; }.role-grid p { margin: 4px 0 0; color: #636e74; font-size: 8px; line-height: 1.55; }

.alert { display: flex; align-items: flex-start; gap: 10px; position: relative; padding: 12px 40px 12px 13px; margin-bottom: 15px; border-radius: 9px; font-size: 9px; }.alert > span { display: grid; place-items: center; flex: none; width: 19px; height: 19px; border-radius: 50%; }.alert strong { font-size: 10px; }.alert p { margin: 3px 0 0; opacity: .75; }.alert > button { position: absolute; right: 10px; top: 8px; border: 0; background: transparent; color: inherit; cursor: pointer; }.alert-success { color: #99cda9; background: rgba(89,214,140,.06); border: 1px solid rgba(89,214,140,.13); }.alert-success > span { background: rgba(89,214,140,.1); }.alert-error { color: #e0999b; background: rgba(255,108,112,.06); border: 1px solid rgba(255,108,112,.13); }
.empty-state { grid-column: 1/-1; padding: 60px 20px; border: 1px dashed #283136; border-radius: 13px; background: #0e1214; text-align: center; }.empty-state h2 { font-size: 15px; }.empty-state p { color: var(--muted); font-size: 10px; }.empty-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 12px; color: var(--lime); background: rgba(184,242,61,.06); font-size: 20px; }.empty-compact { padding: 32px 15px; text-align: center; }.empty-compact strong { color: #a6b0b5; font-size: 10px; }.empty-compact p { color: #5f696f; font-size: 8px; }

.modal { width: min(650px, calc(100vw - 28px)); padding: 0; border: 1px solid #2c3439; border-radius: 15px; background: #101416; color: var(--text); box-shadow: 0 28px 90px rgba(0,0,0,.65); }.modal::backdrop { background: rgba(2,4,5,.76); backdrop-filter: blur(5px); }.modal > form > header { display: flex; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border-soft); }.modal h2 { margin: 0; font-size: 15px; }.modal header button { border: 0; background: transparent; color: #737e84; cursor: pointer; font-size: 20px; }.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border-soft); }.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; padding: 20px; }.form-stack { display: flex; flex-direction: column; gap: 13px; padding: 20px; }.span-2 { grid-column: span 2; }.form-grid small, .form-stack small { color: #59636a; font-size: 8px; text-transform: none; font-weight: 400; }.modal .setup-note { margin: 2px 0 0; }

.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(430px, 1.1fr) minmax(400px, .9fr); }
.auth-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(35px, 5vw, 72px); border-right: 1px solid var(--border-soft); background: radial-gradient(circle at 75% 65%, rgba(184,242,61,.08), transparent 38%), linear-gradient(150deg, #111518, #090b0d 70%); }
.auth-panel::after { content: ""; position: absolute; width: 480px; height: 480px; right: -170px; bottom: -190px; border: 1px solid rgba(184,242,61,.09); border-radius: 50%; box-shadow: 0 0 0 70px rgba(184,242,61,.018), 0 0 0 140px rgba(184,242,61,.012); pointer-events: none; }
.auth-copy { position: relative; z-index: 1; max-width: 640px; margin: 90px 0; }.kicker { display: inline-flex; padding: 6px 9px; border: 1px solid rgba(184,242,61,.16); border-radius: 6px; color: #a8c95f; background: rgba(184,242,61,.04); font-size: 8px; letter-spacing: .16em; font-weight: 800; }.auth-copy h1 { margin: 21px 0; font-size: clamp(40px, 5vw, 68px); line-height: 1.04; letter-spacing: -.055em; }.auth-copy h1 em { color: var(--lime); font-style: normal; }.auth-copy p { max-width: 525px; color: #768188; font-size: 13px; line-height: 1.75; }
.auth-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 600px; border: 1px solid var(--border-soft); border-radius: 10px; overflow: hidden; background: var(--border-soft); }.auth-grid div { padding: 14px; display: flex; flex-direction: column; background: rgba(12,15,17,.93); }.auth-grid strong { font-size: 10px; }.auth-grid span { margin-top: 4px; color: #5f696f; font-size: 8px; }
.login-panel { display: grid; place-items: center; padding: 35px; background: #0c0f11; }.login-box { width: min(390px, 100%); }.login-box h2 { margin: 6px 0 7px; font-size: 28px; letter-spacing: -.045em; }.muted { color: var(--muted); }.login-box > .muted { font-size: 11px; margin-bottom: 30px; }.auth-form { display: flex; flex-direction: column; gap: 17px; }.auth-form input { min-height: 45px; font-size: 12px; }.password-wrap { position: relative; }.password-wrap button { position: absolute; right: 7px; top: 6px; width: 32px; height: 32px; border: 0; background: transparent; color: #667178; cursor: pointer; }.login-foot { margin: 22px 0 0; text-align: center; color: #505a60; font-size: 8px; }.form-error, .setup-note { display: flex; flex-direction: column; gap: 3px; margin: 0 0 18px; padding: 11px 12px; border: 1px solid rgba(255,108,112,.15); border-radius: 8px; color: #dc8d8f; background: rgba(255,108,112,.05); font-size: 9px; }.form-error span, .setup-note span { opacity: .72; line-height: 1.5; }.setup-note { color: #c9b173; border-color: rgba(244,189,80,.15); background: rgba(244,189,80,.04); }
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 25px; background: radial-gradient(circle at 50% 0, rgba(184,242,61,.05), transparent 35%), var(--bg); }.modal-card { width: min(520px, 100%); padding: 30px; border: 1px solid var(--border); border-radius: 15px; background: #101416; box-shadow: var(--shadow); }.invite-card .brand { margin-bottom: 40px; }.invite-card .section-heading h1 { margin: 7px 0; font-size: 26px; }.invite-card .section-heading p { color: var(--muted); font-size: 10px; }.invite-card .form-stack { padding: 12px 0 0; }.error-card { width: min(460px, 100%); text-align: center; }.error-card .brand { justify-content: center; margin-bottom: 50px; }.error-code { display: block; color: var(--lime); font-size: 65px; letter-spacing: -.06em; }.error-card h1 { font-size: 24px; }.error-card p { color: var(--muted); font-size: 11px; line-height: 1.6; margin-bottom: 22px; }

@keyframes pulse { 50% { opacity: .35; } }

@media (max-width: 1200px) {
  .filters { grid-template-columns: repeat(4, 1fr); }.filter-date { grid-column: span 2; }.filter-actions { align-items: end; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }.metric-grid .metric-card:nth-child(4), .metric-grid .metric-card:nth-child(5) { grid-column: span 1; }
  .compact-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 950px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 25px 0 70px rgba(0,0,0,.45); }.sidebar.open { transform: translateX(0); }.sidebar-backdrop { position: fixed; inset: 0; z-index: 25; width: 100%; height: 100%; border: 0; background: rgba(0,0,0,.6); }.sidebar.open + .sidebar-backdrop { display: block; }
  .main { margin-left: 0; }.mobile-menu { display: block; margin-right: 14px; }.topbar { justify-content: flex-start; padding: 0 20px; }.top-actions { margin-left: auto; }.content { padding: 24px 20px 40px; }
  .split-grid, .split-grid.equal { grid-template-columns: 1fr; }.integration-grid { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: 1fr; }.auth-panel { display: none; }.login-panel { min-height: 100vh; }
}

@media (max-width: 680px) {
  .topbar { height: 72px; }.topbar .eyebrow, .date-now { display: none; }.topbar h1 { font-size: 18px; }.live-dot { font-size: 8px; }
  .content { padding: 20px 13px 35px; }.page-intro { flex-direction: column; gap: 11px; }.context-badges { justify-content: flex-start; }
  .filters { grid-template-columns: repeat(2, minmax(0,1fr)); }.filter-date { grid-column: span 2; }.filter-actions { grid-column: span 2; }.filter-actions .button { flex: 1; }
  .metric-grid, .compact-grid { grid-template-columns: repeat(2, 1fr); }.metric-card { min-height: 112px; }.metric-card > strong { font-size: 20px; }.metric-featured { grid-column: span 2; }
  .mini-stats { grid-template-columns: repeat(2,1fr); }.panel-head { flex-direction: column; min-height: auto; }.legend { margin-top: 7px; }.line-chart { height: 180px; }.panel-foot { flex-direction: column; gap: 4px; }
  .mapping-explainer { align-items: stretch; flex-direction: column; }.mapping-explainer > div { justify-content: center; }.map-line { transform: rotate(90deg); align-self: center; }.confidence-stack { flex-direction: row !important; flex-wrap: wrap; }.confidence-grid { grid-template-columns: 1fr; }.confidence-grid > div { border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .integration-details { grid-template-columns: repeat(2, 1fr); }.sync-line { flex-direction: column; }.invite-reveal { grid-template-columns: 1fr; }.copy-field { flex-direction: column; }.role-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }.span-2 { grid-column: span 1; }.modal footer { flex-direction: column-reverse; }.modal footer .button { width: 100%; }
  .auth-grid { grid-template-columns: 1fr; }.login-panel { padding: 24px; }
}

@media (max-width: 420px) {
  .metric-grid, .compact-grid { grid-template-columns: 1fr; }.metric-featured { grid-column: span 1; }.metric-card { min-height: 105px; }
  .filters { grid-template-columns: 1fr; }.filter-date, .filter-actions { grid-column: span 1; }.filter-date > div { grid-template-columns: 1fr; }.filter-date > div span { display: none; }
  .mini-stats { grid-template-columns: 1fr 1fr; }.assignment-list > div { grid-template-columns: auto 1fr; }.assignment-arrow { display: none; }.assignment-list > div p:last-child { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
