@font-face {
  font-family: 'Changa';
  src: url('/fonts/Changa-Variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: 'Bree Serif';
  src: url('/fonts/BreeSerif-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --cp-night: #061426;
  --cp-navy: #091e37;
  --cp-blue: #0e3157;
  --cp-blue-soft: #143f6c;
  --cp-cyan: #5fd5e5;
  --cp-gold: #e9b44c;
  --cp-ivory: #fffbef;
  --cp-muted: #a7bed8;
  --cp-faint: #6f89a7;
  --cp-danger: #ef786a;
  --cp-success: #72d59a;
  --cp-line: rgba(116, 213, 232, .18);
  --cp-line-strong: rgba(116, 213, 232, .35);
  --cp-shadow: 0 26px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--cp-night); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--cp-ivory);
  background:
    radial-gradient(circle at 86% 4%, rgba(35, 104, 150, .30), transparent 29rem),
    radial-gradient(circle at 45% 100%, rgba(13, 74, 104, .32), transparent 35rem),
    var(--cp-night);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:not(:disabled), a { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 3px solid var(--cp-cyan); outline-offset: 3px; }

.cp-skip-link {
  position: fixed;
  z-index: 30;
  top: 12px;
  left: 18px;
  transform: translateY(-150%);
  padding: 9px 14px;
  color: var(--cp-night);
  background: var(--cp-cyan);
  border-radius: 8px;
  font-weight: 800;
}
.cp-skip-link:focus { transform: translateY(0); }

.cp-app { min-height: 100vh; display: grid; grid-template-columns: 276px minmax(0, 1fr); }

.cp-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 18px 18px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(5, 19, 37, .98), rgba(6, 24, 45, .94));
  border-right: 1px solid var(--cp-line);
}

.cp-brand { min-height: 56px; display: inline-flex; align-items: center; gap: 12px; padding: 0 8px; }
.cp-brand-mark { width: 42px; height: 42px; flex: none; }
.cp-brand strong { display: block; font: 400 23px/1 'Bree Serif', Georgia, serif; letter-spacing: .01em; }
.cp-brand strong span { color: var(--cp-cyan); }
.cp-brand small { display: block; margin-top: 4px; color: var(--cp-muted); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }

.cp-environment {
  width: fit-content;
  margin: 27px 8px 29px;
  padding: 5px 9px;
  color: var(--cp-gold);
  border: 1px solid rgba(233, 180, 76, .45);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.cp-environment[data-environment='staging'] { color: var(--cp-cyan); border-color: rgba(95, 213, 229, .45); }
.cp-environment[data-environment='local'], .cp-environment[data-environment='local preview'] { color: var(--cp-success); border-color: rgba(114, 213, 154, .45); }

.cp-nav { display: grid; gap: 5px; }
.cp-nav-label { margin: 0 10px 8px; color: var(--cp-faint); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.cp-nav-label-secondary { margin-top: 19px; }
.cp-nav-item {
  width: 100%;
  min-height: 47px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cp-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  text-align: left;
  font-weight: 730;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}
.cp-nav-item[hidden] { display: none; }
.cp-nav-item > span:first-child { width: 18px; color: var(--cp-cyan); font-family: 'Bree Serif', Georgia, serif; font-size: 19px; text-align: center; }
.cp-nav-item:hover { color: var(--cp-ivory); background: rgba(20, 63, 108, .42); }
.cp-nav-item[aria-current='page'] { color: var(--cp-ivory); background: linear-gradient(90deg, rgba(27, 77, 125, .68), rgba(18, 60, 99, .5)); border-color: var(--cp-line-strong); box-shadow: inset 3px 0 var(--cp-gold); }

.cp-sidebar-note { margin: auto 7px 18px; padding: 16px; display: flex; align-items: flex-start; gap: 10px; color: var(--cp-muted); background: rgba(15, 52, 89, .44); border: 1px solid var(--cp-line); border-radius: 14px; font-size: 12px; line-height: 1.45; }
.cp-sidebar-note p { margin: 0; }
.cp-sidebar-note strong { color: var(--cp-ivory); }
.cp-note-icon { color: var(--cp-gold); font-size: 17px; }

.cp-session { min-height: 38px; padding: 0 10px; display: flex; align-items: center; gap: 8px; color: var(--cp-muted); border-top: 1px solid var(--cp-line); font-size: 12px; font-weight: 650; }
.cp-session-dot, .cp-live-status i { width: 8px; height: 8px; flex: none; display: inline-block; border-radius: 50%; background: var(--cp-faint); }
.cp-session[data-state='ready'] .cp-session-dot, .cp-live-status[data-state='ready'] i { background: var(--cp-success); box-shadow: 0 0 0 4px rgba(114, 213, 154, .11); }
.cp-session[data-state='denied'] .cp-session-dot, .cp-live-status[data-state='denied'] i { background: var(--cp-danger); }

.cp-main { width: min(1500px, 100%); min-height: 100vh; padding: 34px clamp(24px, 4vw, 64px) 64px; }
.cp-topbar { min-height: 74px; padding-bottom: 25px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--cp-line); }
.cp-eyebrow { margin: 0 0 7px; color: var(--cp-gold); font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.cp-topbar h1 { margin: 0; font: 400 clamp(30px, 3vw, 42px)/1.05 'Bree Serif', Georgia, serif; letter-spacing: -.02em; }
.cp-topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 13px; }
.cp-live-status { padding: 7px 10px; display: inline-flex; align-items: center; gap: 7px; color: var(--cp-muted); border: 1px solid var(--cp-line); border-radius: 999px; font-size: 11px; font-weight: 720; white-space: nowrap; }
.cp-account-button { min-height: 36px; padding: 0 12px; color: var(--cp-ivory); background: rgba(20, 63, 108, .55); border: 1px solid var(--cp-line-strong); border-radius: 9px; font-size: 12px; font-weight: 760; }
.cp-account-button:hover { background: rgba(28, 81, 132, .72); }

.cp-notice { margin: 20px 0 0; padding: 12px 14px; color: var(--cp-ivory); background: rgba(17, 61, 99, .7); border: 1px solid var(--cp-line-strong); border-radius: 11px; font-size: 14px; }
.cp-notice[data-tone='error'] { color: #ffe1db; background: rgba(135, 52, 52, .35); border-color: rgba(239, 120, 106, .65); }
.cp-notice[data-tone='success'] { color: #dbffe8; background: rgba(50, 115, 80, .3); border-color: rgba(114, 213, 154, .62); }

.cp-view { padding-top: 32px; }
.cp-loading { min-height: 340px; display: grid; place-content: center; justify-items: center; color: var(--cp-muted); }
.cp-loading span { width: 31px; height: 31px; margin-bottom: 12px; border: 3px solid rgba(95, 213, 229, .22); border-top-color: var(--cp-cyan); border-radius: 50%; animation: cp-spin .75s linear infinite; }
@keyframes cp-spin { to { transform: rotate(360deg); } }

.cp-gate { min-height: min(560px, 70vh); display: grid; place-items: center; }
.cp-gate-card { width: min(610px, 100%); padding: clamp(29px, 5vw, 52px); text-align: center; background: linear-gradient(145deg, rgba(16, 54, 93, .88), rgba(7, 28, 53, .9)); border: 1px solid var(--cp-line-strong); border-radius: 22px; box-shadow: var(--cp-shadow); }
.cp-gate-icon { width: 58px; height: 58px; margin: 0 auto 22px; display: grid; place-items: center; color: var(--cp-night); background: var(--cp-gold); border-radius: 18px; font-family: 'Bree Serif', Georgia, serif; font-size: 31px; box-shadow: 0 12px 28px rgba(233, 180, 76, .2); }
.cp-gate-card h2 { margin: 0; font: 400 clamp(28px, 4vw, 39px)/1.1 'Bree Serif', Georgia, serif; }
.cp-gate-card p { max-width: 440px; margin: 15px auto 0; color: var(--cp-muted); }
.cp-gate-card .cp-button { margin-top: 26px; }
.cp-gate-hint { margin-top: 17px !important; color: var(--cp-faint) !important; font-size: 12px; }

.cp-button { min-height: 43px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 800; transition: transform 150ms ease, background 150ms ease, border-color 150ms ease; }
.cp-button:not(:disabled):hover { transform: translateY(-1px); }
.cp-button-primary { color: #072333; background: var(--cp-gold); border-color: rgba(255,255,255,.2); }
.cp-button-primary:not(:disabled):hover { background: #f5c56a; }
.cp-button-secondary { color: var(--cp-ivory); background: rgba(20, 63, 108, .6); border-color: var(--cp-line-strong); }
.cp-button-secondary:not(:disabled):hover { background: rgba(29, 83, 133, .84); }
.cp-button-quiet { color: var(--cp-muted); background: transparent; border-color: transparent; }
.cp-button-danger { color: #ffe1db; background: rgba(125, 45, 45, .38); border-color: rgba(239, 120, 106, .55); }

.cp-page-intro { max-width: 710px; margin: 0 0 28px; color: var(--cp-muted); font-size: 16px; }
.cp-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .32fr); align-items: start; gap: 24px; }
.cp-content-stack, .cp-action-rail { display: grid; gap: 18px; }
.cp-panel { padding: clamp(19px, 2.3vw, 29px); background: linear-gradient(145deg, rgba(13, 48, 84, .77), rgba(8, 32, 58, .82)); border: 1px solid var(--cp-line); border-radius: 17px; box-shadow: 0 12px 38px rgba(0, 0, 0, .11); }
.cp-panel-heading { margin: 0 0 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 400 25px/1.15 'Bree Serif', Georgia, serif; }
.cp-panel-copy { margin: 0; color: var(--cp-muted); font-size: 14px; }
.cp-panel-kicker { margin: 0 0 10px; color: var(--cp-gold); font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }

.cp-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cp-module-card { min-height: 225px; padding: 22px; display: flex; flex-direction: column; align-items: flex-start; background: rgba(5, 23, 44, .45); border: 1px solid var(--cp-line); border-radius: 14px; }
.cp-module-icon { width: 39px; height: 39px; margin-bottom: 18px; display: grid; place-items: center; color: var(--cp-gold); background: rgba(233, 180, 76, .12); border: 1px solid rgba(233, 180, 76, .32); border-radius: 12px; font: 400 22px/1 'Bree Serif', Georgia, serif; }
.cp-module-heading { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cp-module-card h3 { margin: 0; font-size: 18px; }
.cp-module-card p { margin: 7px 0 18px; color: var(--cp-muted); font-size: 13px; line-height: 1.5; }
.cp-module-card .cp-button { margin-top: auto; }
.cp-source-badge { width: fit-content; padding: 4px 7px; color: var(--cp-cyan); background: rgba(95, 213, 229, .09); border: 1px solid rgba(95, 213, 229, .28); border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }

.cp-preview-banner { margin: -10px 0 22px; padding: 10px 13px; display: flex; align-items: flex-start; gap: 9px; color: #d9fbff; background: rgba(41, 110, 130, .23); border: 1px solid rgba(95, 213, 229, .4); border-radius: 10px; font-size: 12px; font-weight: 650; }
.cp-preview-banner > span:first-child { color: var(--cp-cyan); font-size: 16px; line-height: 1; }
.cp-panel-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.cp-panel-title-row .cp-panel-heading { margin-bottom: 0; }
.cp-panel-title-row .cp-filter-row { margin: 0; justify-content: flex-end; }
.cp-metric-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cp-metric-card { min-height: 145px; padding: 17px; display: flex; flex-direction: column; background: rgba(4, 20, 39, .47); border: 1px solid var(--cp-line); border-radius: 12px; }
.cp-metric-card p { margin: 0; color: var(--cp-muted); font-size: 12px; font-weight: 720; }
.cp-metric-card strong { margin: 11px 0 8px; color: var(--cp-ivory); font: 400 30px/1 'Bree Serif', Georgia, serif; }
.cp-metric-card span { margin-top: auto; color: var(--cp-faint); font-size: 11px; line-height: 1.45; }
.cp-metric-card .cp-button { min-height: 29px; margin-top: 11px; padding-inline: 0; align-self: flex-start; font-size: 11px; }
.cp-metric-card[data-tone='good'] { border-color: rgba(114, 213, 154, .31); }
.cp-metric-card[data-tone='attention'] { border-color: rgba(233, 180, 76, .48); }
.cp-metric-card[data-tone='attention'] strong { color: #ffd889; }
.cp-analytics-brief .cp-button { min-height: 30px; margin-top: 15px; padding-inline: 0; font-size: 11px; }
.cp-analytics-facts { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cp-analytics-facts > div { padding: 11px; background: rgba(4, 20, 39, .38); border: 1px solid rgba(116, 213, 232, .16); border-radius: 10px; }
.cp-analytics-facts span { display: block; color: var(--cp-faint); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cp-analytics-facts strong { display: block; margin-top: 5px; color: var(--cp-ivory); font: 400 20px/1 'Bree Serif', Georgia, serif; overflow-wrap: anywhere; }
.cp-analytics-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cp-analytics-metric-card { min-height: 178px; }
.cp-analytics-metric-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cp-analytics-metric-heading .cp-status-pill { margin-top: 0; flex: none; }
.cp-analytics-metric-card small { margin-top: 7px; color: var(--cp-faint); font-size: 10px; line-height: 1.4; }
.cp-analytics-metric-card .cp-button { margin-top: 9px; }
.cp-analytics-table { width: 100%; min-width: 660px; border-collapse: collapse; }
.cp-analytics-table th, .cp-analytics-table td { padding: 12px 9px; border-top: 1px solid rgba(116, 213, 232, .12); text-align: left; }
.cp-analytics-table thead th { color: var(--cp-faint); border-top: 0; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cp-analytics-table tbody th { color: var(--cp-ivory); font-size: 13px; text-transform: capitalize; }
.cp-analytics-table td { color: var(--cp-muted); font-size: 12px; }
.cp-analytics-coverage-grid { margin-top: 17px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cp-analytics-coverage { padding: 13px; background: rgba(4, 20, 39, .4); border: 1px solid rgba(116, 213, 232, .18); border-radius: 10px; }
.cp-analytics-coverage > div { display: flex; align-items: center; gap: 8px; }
.cp-analytics-coverage h3 { margin: 0; color: var(--cp-ivory); font-size: 13px; line-height: 1.3; }
.cp-analytics-coverage p { margin: 9px 0 0; color: var(--cp-muted); font-size: 12px; line-height: 1.45; }
.cp-decision-list { display: grid; gap: 12px; margin-top: 19px; }
.cp-decision-card { padding: 17px; background: rgba(4, 20, 39, .44); border: 1px solid var(--cp-line); border-radius: 12px; }
.cp-decision-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cp-decision-heading small { color: var(--cp-faint); font-size: 11px; font-weight: 700; }
.cp-decision-card h3 { margin: 11px 0 5px; font-size: 16px; line-height: 1.3; }
.cp-decision-card p { margin: 0; color: var(--cp-muted); font-size: 13px; line-height: 1.5; }
.cp-decision-footer { margin-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--cp-faint); font-size: 11px; font-weight: 720; }
.cp-decision-footer > div, .cp-decision-footer > span:last-child { display: inline-flex; flex-wrap: wrap; gap: 7px; }
.cp-decision-footer .cp-button { min-height: 34px; padding-inline: 10px; font-size: 11px; }

.cp-case-list { display: grid; gap: 8px; margin-top: 18px; }
.cp-case-row { width: 100%; padding: 13px 14px; display: grid; grid-template-columns: auto minmax(80px, .5fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; color: var(--cp-ivory); background: rgba(4, 20, 39, .36); border: 1px solid var(--cp-line); border-radius: 10px; text-align: left; }
.cp-case-row:hover, .cp-case-row[aria-current='true'] { background: rgba(19, 61, 102, .58); border-color: var(--cp-line-strong); }
.cp-case-row strong { font-size: 13px; }
.cp-case-row span:not(.cp-status-pill), .cp-case-row small { color: var(--cp-muted); font-size: 11px; }
.cp-case-row small { text-align: right; }
.cp-case-facts { margin-top: 19px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cp-case-facts > div { min-height: 67px; padding: 11px; display: grid; align-content: start; gap: 4px; background: rgba(4, 20, 39, .42); border: 1px solid rgba(116, 213, 232, .11); border-radius: 9px; }
.cp-case-facts span { color: var(--cp-faint); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cp-case-facts strong { color: var(--cp-ivory); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.cp-section-heading { margin: 23px 0 10px; font-size: 15px; }
.cp-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--cp-line-strong); }
.cp-timeline li { position: relative; padding: 0 0 14px 16px; color: var(--cp-muted); font-size: 12px; line-height: 1.45; }
.cp-timeline li:last-child { padding-bottom: 0; }
.cp-timeline li::before { content: ''; position: absolute; top: 4px; left: -4px; width: 7px; height: 7px; background: var(--cp-cyan); border-radius: 50%; box-shadow: 0 0 0 3px rgba(95, 213, 229, .13); }

.cp-table-wrap { margin-top: 18px; overflow-x: auto; }
.cp-funnel-table { width: 100%; min-width: 510px; border-collapse: collapse; }
.cp-funnel-table th, .cp-funnel-table td { padding: 12px 9px; border-top: 1px solid rgba(116, 213, 232, .12); text-align: left; }
.cp-funnel-table thead th { color: var(--cp-faint); border-top: 0; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cp-funnel-table tbody th { color: var(--cp-ivory); font-size: 13px; }
.cp-funnel-table td { color: var(--cp-muted); font-size: 12px; }
.cp-funnel-table td:nth-child(3) { min-width: 190px; }
.cp-funnel-table td:last-child { width: 1%; white-space: nowrap; }
.cp-funnel-table .cp-button { min-height: 28px; padding-inline: 0; font-size: 11px; }
.cp-funnel-bar { width: 114px; height: 7px; margin-right: 8px; display: inline-block; overflow: hidden; vertical-align: middle; background: rgba(95, 213, 229, .12); border-radius: 999px; }
.cp-funnel-bar i { height: 100%; display: block; background: linear-gradient(90deg, var(--cp-cyan), #9be7ef); border-radius: inherit; }
.cp-funnel-table td strong { color: var(--cp-ivory); font-size: 12px; }

.cp-signal-evidence { margin-top: 13px; padding: 10px 12px; display: grid; grid-template-columns: 75px minmax(0, 1fr); gap: 10px; background: rgba(4, 20, 39, .37); border-radius: 8px; }
.cp-signal-evidence span { color: var(--cp-faint); font-size: 11px; font-weight: 760; }
.cp-signal-evidence strong { color: var(--cp-muted); font-size: 11px; font-weight: 650; }
.cp-gate-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.cp-gate-row { padding: 14px 0; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; border-top: 1px solid rgba(116, 213, 232, .12); }
.cp-gate-row > span { width: 22px; height: 22px; display: grid; place-items: center; color: var(--cp-faint); background: rgba(95, 213, 229, .09); border: 1px solid var(--cp-line); border-radius: 50%; font-size: 12px; }
.cp-gate-row[data-state='ready'] > span { color: #06261a; background: var(--cp-success); border-color: var(--cp-success); }
.cp-gate-row[data-state='waiting'] > span { color: #422a00; background: var(--cp-gold); border-color: var(--cp-gold); }
.cp-gate-row strong { display: block; color: var(--cp-ivory); font-size: 13px; }
.cp-gate-row p { margin: 3px 0 0; color: var(--cp-muted); font-size: 12px; line-height: 1.42; }
.cp-gate-row .cp-button { min-height: 28px; margin-top: 8px; padding-inline: 0; font-size: 11px; }

.cp-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.cp-insight-list { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.cp-insight-list li { padding: 0 0 12px 20px; position: relative; color: var(--cp-muted); font-size: 13px; border-bottom: 1px solid rgba(116, 213, 232, .11); }
.cp-insight-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.cp-insight-list li::before { content: '◆'; position: absolute; left: 0; top: 0; color: var(--cp-cyan); font-size: 9px; }
.cp-action-card { position: relative; overflow: hidden; }
.cp-action-card::after { content: ''; position: absolute; right: -26px; bottom: -26px; width: 106px; height: 106px; border: 1px solid rgba(95, 213, 229, .18); border-radius: 50%; }
.cp-action-card > * { position: relative; z-index: 1; }

.cp-command-stack { width: min(640px, 100%); margin: 0 auto; display: grid; gap: 14px; }
.cp-command-brief, .cp-command-section { padding: 18px; background: linear-gradient(145deg, rgba(13, 48, 84, .77), rgba(8, 32, 58, .82)); border: 1px solid var(--cp-line); border-radius: 17px; box-shadow: 0 12px 38px rgba(0, 0, 0, .11); }
.cp-command-brief[data-tone='attention'], .cp-command-brief[data-tone='critical'] { border-color: rgba(233, 180, 76, .52); }
.cp-command-brief[data-tone='critical'] { border-color: rgba(239, 120, 106, .68); }
.cp-command-brief-heading, .cp-command-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cp-command-brief h2 { margin: 0; font: 400 28px/1.08 'Bree Serif', Georgia, serif; }
.cp-command-brief > p { margin: 9px 0 0; color: var(--cp-muted); font-size: 13px; line-height: 1.5; }
.cp-command-facts { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cp-command-facts > div { min-height: 67px; padding: 10px; display: grid; align-content: center; gap: 3px; background: rgba(4, 20, 39, .44); border: 1px solid rgba(116, 213, 232, .14); border-radius: 10px; }
.cp-command-facts span { color: var(--cp-faint); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.cp-command-facts strong { color: var(--cp-ivory); font: 400 19px/1.1 'Bree Serif', Georgia, serif; overflow-wrap: anywhere; }
.cp-command-facts > div:nth-child(3) strong, .cp-command-facts > div:nth-child(4) strong { font: 700 11px/1.35 Inter, ui-sans-serif, system-ui, sans-serif; }
.cp-command-brief-actions { margin-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cp-command-brief-actions small { color: var(--cp-faint); font-size: 11px; line-height: 1.4; }
.cp-command-brief-actions .cp-button { min-height: 32px; flex: none; padding-inline: 7px; font-size: 11px; }
.cp-command-section-heading .cp-button { min-height: 31px; padding-inline: 0; flex: none; font-size: 11px; }
.cp-command-section > .cp-panel-copy { margin-top: 7px; }
.cp-command-incident-list { display: grid; gap: 10px; margin-top: 14px; }
.cp-command-incident { margin-top: 13px; padding: 15px; background: rgba(4, 20, 39, .44); border: 1px solid var(--cp-line); border-radius: 12px; }
.cp-command-incident[data-tone='attention'], .cp-command-incident[data-tone='watch'] { border-color: rgba(233, 180, 76, .46); }
.cp-command-incident[data-tone='critical'], .cp-command-incident[data-tone='high'] { border-color: rgba(239, 120, 106, .62); }
.cp-command-incident h3 { margin: 10px 0 5px; font-size: 16px; line-height: 1.3; }
.cp-command-incident p { margin: 0; color: var(--cp-muted); font-size: 13px; line-height: 1.5; }
.cp-command-incident-meta { margin-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--cp-faint); font-size: 11px; font-weight: 720; }
.cp-command-incident-meta .cp-button { min-height: 34px; padding-inline: 10px; flex: none; font-size: 11px; }
.cp-command-empty { margin: 13px 0 0; padding: 14px; color: var(--cp-muted); background: rgba(4, 20, 39, .34); border: 1px dashed var(--cp-line-strong); border-radius: 10px; font-size: 13px; line-height: 1.5; }
.cp-command-pulse-grid { margin-top: 14px; display: grid; gap: 9px; }
.cp-command-pulse-card { min-height: 84px; padding: 13px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'label value' 'detail action'; gap: 5px 12px; background: rgba(4, 20, 39, .43); border: 1px solid var(--cp-line); border-radius: 11px; }
.cp-command-pulse-card[data-tone='good'] { border-color: rgba(114, 213, 154, .31); }
.cp-command-pulse-card[data-tone='attention'] { border-color: rgba(233, 180, 76, .46); }
.cp-command-pulse-card p { grid-area: label; margin: 0; color: var(--cp-muted); font-size: 12px; font-weight: 720; }
.cp-command-pulse-card strong { grid-area: value; color: var(--cp-ivory); font: 400 24px/1 'Bree Serif', Georgia, serif; }
.cp-command-pulse-card span { grid-area: detail; color: var(--cp-faint); font-size: 11px; }
.cp-command-pulse-card .cp-button { grid-area: action; min-height: 24px; padding: 0; align-self: end; font-size: 11px; }
.cp-command-facts-service { margin-top: 13px; }
.cp-command-create { margin: 0; }
.cp-command-create summary { min-height: 42px; display: flex; align-items: center; color: var(--cp-ivory); cursor: pointer; font-size: 14px; font-weight: 800; }
.cp-command-create summary::marker { color: var(--cp-cyan); }
.cp-command-create > .cp-panel-copy { margin: 0 0 13px; }
.cp-command-create form { display: grid; gap: 11px; }
.cp-command-create .cp-button { justify-self: start; }
.cp-command-boundary { margin-top: 17px; padding-top: 15px; border-top: 1px solid rgba(116, 213, 232, .12); }
.cp-command-boundary > span { color: var(--cp-gold); font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.cp-command-boundary p { margin: 6px 0 4px; color: var(--cp-muted); font-size: 12px; line-height: 1.5; }
.cp-command-boundary .cp-button { min-height: 30px; padding-inline: 0; font-size: 11px; }

.cp-search-form { margin-top: 21px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.cp-field { display: grid; gap: 7px; }
.cp-field label { color: var(--cp-muted); font-size: 12px; font-weight: 740; }
.cp-field input, .cp-field select, .cp-field textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--cp-ivory);
  background: rgba(4, 20, 39, .72);
  border: 1px solid var(--cp-line-strong);
  border-radius: 9px;
  outline: none;
}
.cp-field input:focus, .cp-field select:focus, .cp-field textarea:focus { border-color: var(--cp-cyan); box-shadow: 0 0 0 3px rgba(95, 213, 229, .12); }
.cp-field textarea { min-height: 92px; resize: vertical; }
.cp-form-help { margin: 8px 0 0; color: var(--cp-faint); font-size: 12px; }

.cp-account-summary { margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--cp-line); }
.cp-account-id { margin: 0 0 16px; color: var(--cp-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; overflow-wrap: anywhere; }
.cp-account-meta { margin: 0 0 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cp-account-meta div { padding: 11px; background: rgba(4, 20, 39, .46); border-radius: 9px; }
.cp-account-meta dt { margin: 0 0 3px; color: var(--cp-faint); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cp-account-meta dd { margin: 0; color: var(--cp-ivory); font-size: 13px; font-weight: 760; overflow-wrap: anywhere; }
.cp-status-pill { width: fit-content; padding: 4px 8px; border: 1px solid var(--cp-line-strong); border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: capitalize; }
.cp-status-pill[data-status='active'], .cp-status-pill[data-status='implementation_ready'], .cp-status-pill[data-status='ready'], .cp-status-pill[data-status='resolved'], .cp-status-pill[data-status='cleared'], .cp-status-pill[data-status='completed'] { color: var(--cp-success); border-color: rgba(114, 213, 154, .52); }
.cp-status-pill[data-status='attention'], .cp-status-pill[data-status='high'], .cp-status-pill[data-status='waiting'], .cp-status-pill[data-status='queued'], .cp-status-pill[data-status='leased'], .cp-status-pill[data-status='partial'] { color: #ffe0a1; border-color: rgba(233, 180, 76, .64); }
.cp-status-pill[data-status='locked'], .cp-status-pill[data-status='suspended'], .cp-status-pill[data-status='blocked_by_protected_doctrine'], .cp-status-pill[data-status='implementation_failed'], .cp-status-pill[data-status='failed'], .cp-status-pill[data-status='critical'] { color: #ffd3cc; border-color: rgba(239, 120, 106, .58); }
.cp-edit-grid { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cp-edit-actions { margin-top: 15px; display: flex; justify-content: flex-end; }
.cp-user-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.cp-user-stat-card { padding: 13px; background: rgba(4, 20, 39, .46); border: 1px solid rgba(116, 213, 232, .18); border-radius: 10px; }
.cp-user-stat-card > p { margin: 0 0 12px; color: var(--cp-ivory); font-size: 14px; font-weight: 820; }
.cp-user-stat-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 8px; margin: 0; }
.cp-user-stat-card dt { margin: 0 0 3px; color: var(--cp-faint); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cp-user-stat-card dd { margin: 0; color: var(--cp-ivory); font-size: 13px; font-weight: 780; }
.cp-user-lifecycle { margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--cp-line); }
.cp-user-lifecycle .cp-panel-kicker { margin-bottom: 0; }
.cp-user-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.cp-user-warning { margin: 0 0 15px; padding: 11px 12px; color: #ffe0a1; background: rgba(125, 89, 30, .2); border: 1px solid rgba(233, 180, 76, .45); border-radius: 9px; font-size: 12px; line-height: 1.5; }
.cp-user-communication { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--cp-line); }
.cp-user-communication summary { color: var(--cp-ivory); cursor: pointer; font-size: 14px; font-weight: 820; }
.cp-user-communication form { display: grid; gap: 12px; margin-top: 13px; }
.cp-channel-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 11px; border: 1px solid var(--cp-line); border-radius: 9px; }
.cp-channel-options legend { padding: 0 5px; color: var(--cp-faint); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cp-channel-options label { color: var(--cp-muted); font-size: 12px; font-weight: 700; }
.cp-channel-options input { width: auto; accent-color: var(--cp-cyan); }
.cp-empty { margin-top: 17px; padding: 17px; color: var(--cp-muted); background: rgba(4,20,39,.36); border: 1px dashed var(--cp-line-strong); border-radius: 10px; font-size: 13px; }

.cp-audit-list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.cp-audit-event { padding: 12px 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; border-top: 1px solid rgba(116, 213, 232, .12); }
.cp-audit-event:first-child { border-top: 0; padding-top: 0; }
.cp-audit-event > i { width: 27px; height: 27px; display: grid; place-items: center; color: var(--cp-cyan); background: rgba(95,213,229,.1); border-radius: 50%; font-style: normal; }
.cp-audit-event strong { display: block; font-size: 13px; }
.cp-audit-event span { display: block; color: var(--cp-muted); font-size: 12px; }

.cp-tabs { margin: 18px 0 0; display: flex; gap: 8px; border-bottom: 1px solid var(--cp-line); }
.cp-tab { padding: 0 0 11px; color: var(--cp-muted); background: transparent; border: 0; border-bottom: 2px solid transparent; font-size: 13px; font-weight: 800; }
.cp-tab[aria-selected='true'] { color: var(--cp-ivory); border-bottom-color: var(--cp-gold); }
.cp-filter-row { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 7px; }
.cp-filter { min-height: 30px; padding: 0 10px; color: var(--cp-muted); background: rgba(5, 23, 44, .45); border: 1px solid var(--cp-line); border-radius: 999px; font-size: 11px; font-weight: 760; }
.cp-filter[aria-pressed='true'] { color: var(--cp-ivory); background: rgba(20, 63, 108, .74); border-color: var(--cp-line-strong); }
.cp-feedback-tools { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .42fr); gap: 10px; }
.cp-review-list { display: grid; gap: 12px; margin-top: 18px; }
.cp-review-card { padding: 17px; background: rgba(4, 20, 39, .44); border: 1px solid var(--cp-line); border-radius: 12px; }
.cp-review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--cp-faint); font-size: 11px; font-weight: 700; }
.cp-review-card h3 { margin: 10px 0 5px; font-size: 16px; line-height: 1.3; }
.cp-review-card p { margin: 0; color: var(--cp-muted); font-size: 13px; line-height: 1.5; }
.cp-feedback-submission { display: grid; gap: 4px; margin-top: 13px; padding: 11px 12px; background: rgba(10, 39, 70, .48); border: 1px solid rgba(116, 213, 232, .18); border-radius: 9px; }
.cp-feedback-submission > span { color: var(--cp-faint); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.cp-feedback-author { width: fit-content; padding: 0; color: var(--cp-ivory); background: transparent; border: 0; border-radius: 3px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; text-align: left; }
.cp-feedback-author:hover, .cp-feedback-author:focus-visible { color: var(--cp-cyan); outline: none; box-shadow: 0 0 0 3px rgba(95, 213, 229, .12); }
.cp-feedback-submission blockquote { margin: 1px 0 0; color: var(--cp-muted); font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.cp-review-card [data-agent-state] { display: block; margin-top: 8px; color: var(--cp-cyan); font-size: 11px; font-weight: 720; line-height: 1.45; }
.cp-review-actions { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.cp-review-actions small { color: var(--cp-faint); font-size: 11px; }
.cp-issue-details { margin-top: 13px; padding-top: 12px; border-top: 1px solid rgba(116, 213, 232, .11); }
.cp-issue-details dl { margin: 0; display: grid; gap: 8px; }
.cp-issue-details div { display: grid; grid-template-columns: 106px minmax(0, 1fr); gap: 10px; }
.cp-issue-details dt { color: var(--cp-faint); font-size: 11px; font-weight: 780; }
.cp-issue-details dd { margin: 0; color: var(--cp-muted); font-size: 12px; overflow-wrap: anywhere; }

.cp-dialog { width: min(570px, calc(100% - 32px)); padding: 0; color: var(--cp-ivory); background: transparent; border: 0; }
.cp-dialog::backdrop { background: rgba(1, 9, 19, .76); backdrop-filter: blur(4px); }
.cp-dialog-card { position: relative; padding: 30px; background: linear-gradient(145deg, #103a64, #071a30); border: 1px solid var(--cp-line-strong); border-radius: 18px; box-shadow: var(--cp-shadow); }
.cp-dialog-close { position: absolute; top: 11px; right: 13px; width: 31px; height: 31px; color: var(--cp-muted); background: transparent; border: 0; border-radius: 8px; font-size: 25px; line-height: 1; }
.cp-dialog-close:hover { color: var(--cp-ivory); background: rgba(255,255,255,.08); }
.cp-dialog-card h2 { margin: 0; font: 400 28px/1.15 'Bree Serif', Georgia, serif; }
.cp-dialog-body { margin-top: 16px; color: var(--cp-muted); }
.cp-dialog-body p { margin: 0 0 12px; }
.cp-dialog-preview { display: grid; gap: 8px; padding: 13px; color: var(--cp-ivory); background: rgba(4, 20, 39, .52); border: 1px solid var(--cp-line); border-radius: 10px; font-size: 13px; }
.cp-dialog-preview strong { color: var(--cp-cyan); }
.cp-dialog-actions { margin-top: 22px; display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 960px) {
  .cp-app { grid-template-columns: 220px minmax(0, 1fr); }
  .cp-sidebar { padding-inline: 12px; }
  .cp-workspace { grid-template-columns: 1fr; }
  .cp-action-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-sidebar-note { display: none; }
  .cp-case-row { grid-template-columns: auto minmax(80px, .5fr) minmax(0, 1fr); }
  .cp-case-row small { display: none; }
}

@media (max-width: 720px) {
  .cp-app { display: block; }
  .cp-sidebar { position: relative; height: auto; min-height: unset; padding: 15px 16px 12px; border-right: 0; border-bottom: 1px solid var(--cp-line); }
  .cp-brand { min-height: 42px; padding: 0; }
  .cp-brand-mark { width: 34px; height: 34px; }
  .cp-brand strong { font-size: 20px; }
  .cp-environment { position: absolute; top: 10px; right: 16px; margin: 0; }
  .cp-nav { margin-top: 17px; display: flex; overflow-x: auto; gap: 7px; scrollbar-width: none; }
  .cp-nav::-webkit-scrollbar { display: none; }
  .cp-nav-label { display: none; }
  .cp-nav-item { width: auto; min-height: 38px; padding: 0 10px; white-space: nowrap; }
  .cp-nav-item > span:first-child { font-size: 16px; }
  .cp-session { display: none; }
  .cp-main { padding: 23px 16px 42px; }
  .cp-topbar { min-height: 58px; padding-bottom: 18px; align-items: center; }
  .cp-topbar h1 { font-size: 29px; }
  .cp-live-status { display: none; }
  .cp-action-rail, .cp-overview-grid { grid-template-columns: 1fr; }
  .cp-metric-grid { grid-template-columns: 1fr; }
  .cp-analytics-facts, .cp-analytics-coverage-grid { grid-template-columns: 1fr; }
  .cp-panel-title-row { align-items: flex-start; flex-direction: column; }
  .cp-panel-title-row .cp-filter-row { justify-content: flex-start; }
  .cp-case-row { grid-template-columns: auto minmax(0, 1fr); }
  .cp-case-row span:not(.cp-status-pill) { grid-column: 2; }
  .cp-case-facts { grid-template-columns: 1fr; }
  .cp-decision-footer { align-items: flex-start; flex-direction: column; }
  .cp-account-meta { grid-template-columns: 1fr; }
  .cp-user-stats { grid-template-columns: 1fr; }
  .cp-channel-options { grid-template-columns: 1fr; }
}

@media (max-width: 470px) {
  .cp-topbar-actions { gap: 0; }
  .cp-account-button { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cp-search-form { grid-template-columns: 1fr; }
  .cp-feedback-tools { grid-template-columns: 1fr; }
  .cp-edit-grid { grid-template-columns: 1fr; }
  .cp-panel { padding: 18px; }
  .cp-command-facts { grid-template-columns: 1fr; }
  .cp-command-brief-actions, .cp-command-incident-meta { align-items: flex-start; flex-direction: column; }
  .cp-gate-card { padding: 28px 21px; }
}
