@import url('https://fonts.googleapis.com/css2?family=Calistoga&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

:root {
  color-scheme: light;
  --primary: #18181b;
  --on-primary: #ffffff;
  --secondary: #3f3f46;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #eaf0ff;
  --background: #f4f3ef;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --foreground: #101012;
  --muted: #67676f;
  --muted-2: #8b8b93;
  --border: #deddd8;
  --border-strong: #c9c8c2;
  --destructive: #c92a2a;
  --destructive-soft: #fff0f0;
  --warning: #a64b00;
  --warning-soft: #fff4e8;
  --success: #147a4f;
  --success-soft: #eaf8f1;
  --orange: #e5682a;
  --purple: #7756d8;
  --sidebar: #171719;
  --sidebar-muted: #9b9ba3;
  --sidebar-border: #2e2e31;
  --ring: #2563eb;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 20, .05);
  --shadow-md: 0 8px 24px rgba(20, 20, 20, .07);
  --shadow-lg: 0 24px 60px rgba(20, 20, 20, .18);
  --sidebar-width: 252px;
  --topbar-height: 70px;
  --transition: 200ms cubic-bezier(.2, .8, .2, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --primary: #f7f7f4;
  --on-primary: #171719;
  --secondary: #d4d4d8;
  --accent: #7aa2ff;
  --accent-strong: #94b4ff;
  --accent-soft: #19264a;
  --background: #111113;
  --surface: #19191c;
  --surface-raised: #202024;
  --foreground: #f6f6f2;
  --muted: #b0b0b8;
  --muted-2: #898991;
  --border: #303036;
  --border-strong: #45454c;
  --destructive: #ff8585;
  --destructive-soft: #3a1c21;
  --warning: #ffb46e;
  --warning-soft: #382619;
  --success: #74d4a6;
  --success-soft: #183127;
  --sidebar: #0b0b0c;
  --sidebar-border: #252529;
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .3);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: "Inter", "Segoe UI", sans-serif; font-size: 15px; line-height: 1.5; }
button, input, select { font: inherit; }
button { color: inherit; }
button, [tabindex="0"] { touch-action: manipulation; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid color-mix(in srgb, var(--ring) 42%, transparent); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Calistoga", Georgia, serif; font-weight: 400; letter-spacing: -.02em; }
h1 { margin-bottom: 10px; font-size: clamp(2rem, 3vw, 3.35rem); line-height: 1.04; }
h2 { margin-bottom: 0; font-size: 1.35rem; line-height: 1.2; }
h3 { margin: 0; font-size: 1rem; }
svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 2000; background: var(--accent); color: white; padding: 12px 16px; border-radius: 8px; transition: top var(--transition); }
.skip-link:focus { top: 16px; }

.app-shell { min-height: 100dvh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--sidebar-width); display: flex; flex-direction: column; background: var(--sidebar); color: white; border-right: 1px solid var(--sidebar-border); }
.brand-block { padding: 26px 20px 20px; }
.brand { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 12px; border: 0; background: none; color: white; text-align: left; padding: 0; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--accent); border-radius: 11px; font-family: "Calistoga", Georgia, serif; font-size: 22px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.brand-copy { display: grid; line-height: .95; letter-spacing: .045em; font-size: 12px; }
.brand-copy b { font-size: 18px; letter-spacing: -.02em; }
.brand-version { display: block; margin: 15px 0 0 50px; color: #71717a; font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: .11em; }
.nav-list { display: grid; gap: 5px; padding: 10px 12px; }
.nav-item { position: relative; width: 100%; min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--sidebar-muted); text-align: left; transition: color var(--transition), background var(--transition), border-color var(--transition); }
.nav-item svg { width: 19px; height: 19px; }
.nav-item:hover { color: white; background: #222225; }
.nav-item.is-active { color: white; background: #29292d; border-color: #37373c; box-shadow: inset 3px 0 0 var(--accent); }
.nav-item.is-active svg { color: #8eabff; }
.nav-count { margin-left: auto; min-width: 24px; height: 22px; padding: 0 7px; display: grid; place-items: center; border-radius: 20px; background: #303035; color: #bbbcc4; font-size: 11px; font-weight: 700; }
.nav-count-accent { background: var(--accent); color: white; }
.nav-count-danger { background: #7f1d1d; color: #fecaca; }
.sidebar-note { margin: auto 14px 18px; padding: 16px; border: 1px solid var(--sidebar-border); border-radius: 14px; background: #1d1d20; }
.sidebar-note-top { display: flex; align-items: center; gap: 8px; color: #bcbcc4; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #42c887; box-shadow: 0 0 0 4px rgba(66,200,135,.12); }
.sidebar-note strong { display: block; margin: 13px 0 5px; font-size: 15px; }
.sidebar-note p { margin: 0 0 12px; color: #8f8f97; font-size: 12px; line-height: 1.5; }
.sidebar-note .text-button { color: #a9beff; }
.sidebar-footer { padding: 14px; border-top: 1px solid var(--sidebar-border); }
.user-card { width: 100%; min-height: 54px; display: grid; grid-template-columns: 38px 1fr 20px; gap: 10px; align-items: center; border: 0; background: transparent; color: white; text-align: left; padding: 6px; border-radius: 10px; }
.user-card:hover { background: #222225; }
.user-card strong, .user-card small { display: block; }
.user-card strong { font-size: 13px; }
.user-card small { margin-top: 2px; color: #85858d; font-size: 10px; }
.user-card > svg { width: 17px; color: #777780; }

.workspace { min-height: 100dvh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; top: 0; z-index: 40; height: var(--topbar-height); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 32px; background: color-mix(in srgb, var(--background) 88%, transparent); border-bottom: 1px solid var(--border); backdrop-filter: blur(16px); }
.topbar-left, .topbar-actions, .breadcrumb { display: flex; align-items: center; }
.breadcrumb { gap: 8px; color: var(--muted); font-size: 12px; }
.breadcrumb svg { width: 14px; height: 14px; }
.breadcrumb strong { color: var(--foreground); font-weight: 600; }
.topbar-actions { gap: 8px; }
.icon-button { width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--foreground); transition: background var(--transition), border-color var(--transition), color var(--transition); }
.icon-button:hover { background: var(--surface-raised); border-color: var(--border-strong); }
.icon-button-small { width: 36px; height: 36px; }
.notification-button { position: relative; }
.notification-button span { position: absolute; right: -3px; top: -4px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border-radius: 12px; border: 2px solid var(--background); background: var(--destructive); color: white; font-size: 9px; font-weight: 700; }
.search-button { min-width: 280px; height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--muted); text-align: left; }
.search-button svg { width: 17px; }
.search-button span { flex: 1; font-size: 12px; }
kbd { min-width: 34px; height: 23px; display: inline-grid; place-items: center; padding: 0 6px; border: 1px solid var(--border); border-bottom-color: var(--border-strong); border-radius: 6px; background: var(--background); color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 9px; }
.mobile-menu { display: none; margin-right: 8px; }
.theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: none; }
[data-theme="dark"] .theme-moon { display: block; }

.main-content { width: 100%; max-width: 1650px; margin: 0 auto; padding: 38px clamp(22px, 3vw, 48px) 72px; }
.page { display: none; animation: page-in 260ms ease-out; }
.page.is-active { display: block; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.page-heading-compact { align-items: center; }
.page-heading-compact h1 { font-size: clamp(2rem, 3vw, 2.9rem); }
.page-lead { max-width: 700px; margin-bottom: 0; color: var(--muted); font-size: 15px; }
.eyebrow { margin-bottom: 8px; color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 600; letter-spacing: .12em; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 13px; white-space: nowrap; transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition); }
.button svg { width: 17px; height: 17px; }
.button-primary { border: 1px solid var(--accent); background: var(--accent); color: white; box-shadow: 0 5px 14px color-mix(in srgb, var(--accent) 20%, transparent); }
.button-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.button-secondary { border: 1px solid var(--border); background: var(--surface); color: var(--foreground); }
.button-secondary:hover { border-color: var(--border-strong); background: var(--surface-raised); }
.button-light { border: 1px solid white; background: white; color: #171719; }
.button-light:hover { background: #edf2ff; border-color: #edf2ff; }
.button-ghost-light { border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.05); color: white; }
.button-ghost-light:hover { background: rgba(255,255,255,.12); }
.button-small { min-height: 36px; padding: 7px 11px; font-size: 11px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; font-size: 12px; }
.text-button svg { width: 14px; height: 14px; }

.dashboard-focus { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, .85fr); gap: 16px; }
.focus-card { position: relative; overflow: hidden; min-height: 298px; display: grid; grid-template-columns: 1fr 220px; gap: 32px; align-items: end; padding: 34px; border-radius: var(--radius-xl); background: #183aa0; color: white; box-shadow: var(--shadow-md); }
.focus-card::before { content: ""; position: absolute; width: 320px; height: 320px; right: -100px; top: -130px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 65px rgba(255,255,255,.035), 0 0 0 130px rgba(255,255,255,.02); }
.focus-copy, .focus-progress { position: relative; z-index: 1; }
.focus-copy h2 { margin: 16px 0 12px; font-size: clamp(2rem, 3.3vw, 3.1rem); line-height: 1.03; }
.focus-copy p { max-width: 580px; margin-bottom: 24px; color: #dbe5ff; font-size: 14px; }
.focus-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.status-label { display: inline-flex; align-items: center; gap: 8px; width: max-content; min-height: 26px; padding: 0 10px; border-radius: 20px; font-family: "JetBrains Mono", monospace; font-size: 9px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.status-label > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-label-light { background: rgba(255,255,255,.13); color: white; }
.status-label-warning { background: var(--warning-soft); color: var(--warning); }
.focus-progress { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; padding: 21px; border: 1px solid rgba(255,255,255,.17); border-radius: 18px; background: rgba(10,25,75,.25); backdrop-filter: blur(8px); }
.focus-progress > span { color: #cbd8ff; font-size: 11px; }
.focus-progress > strong { margin: 8px 0 14px; font-family: "Calistoga", Georgia, serif; font-size: 55px; font-weight: 400; line-height: 1; }
.focus-progress > strong small { margin-left: 2px; font-family: "Inter", sans-serif; font-size: 16px; }
.progress-track { height: 6px; overflow: hidden; border-radius: 8px; background: color-mix(in srgb, var(--foreground) 10%, transparent); }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.focus-progress .progress-track { background: rgba(255,255,255,.15); }
.focus-progress .progress-track i { background: white; }
.focus-meta { display: flex; justify-content: space-between; margin-top: 9px; color: #c8d5ff; font-size: 9px; }
.signal-stack { display: grid; gap: 16px; }
.signal-card { min-height: 140px; display: grid; grid-template-columns: 46px 1fr 36px; gap: 13px; align-items: center; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.signal-card-warning { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 22%, var(--border)); }
.signal-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: color-mix(in srgb, var(--warning) 11%, transparent); color: var(--warning); }
.signal-icon-green { background: var(--success-soft); color: var(--success); }
.signal-card small, .signal-card strong, .signal-card p { display: block; }
.signal-card small { margin-bottom: 3px; color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 8px; letter-spacing: .08em; }
.signal-card strong { font-size: 15px; }
.signal-card p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.signal-card .icon-button { align-self: end; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.metric-card { position: relative; min-height: 160px; overflow: hidden; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.metric-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.metric-card-top svg { width: 18px; height: 18px; color: var(--muted-2); }
.metric-card > strong { display: block; margin: 13px 0 5px; font-family: "Calistoga", Georgia, serif; font-size: 28px; font-weight: 400; letter-spacing: -.02em; }
.metric-delta { color: var(--muted); font-size: 10px; }
.metric-delta span { color: var(--muted-2); }
.delta-up { color: var(--success) !important; }
.delta-warn { color: var(--warning) !important; }
.delta-down { color: var(--destructive) !important; }
.sparkline { position: absolute; inset: auto 13px 12px 13px; width: calc(100% - 26px); height: 38px; }
.sparkline path { fill: none; stroke: var(--accent); stroke-width: 2.2; }
.avatar-row { display: flex; margin-top: 17px; }
.avatar-row .avatar { margin-right: -7px; border: 2px solid var(--surface); }
.avatar { flex: 0 0 auto; width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; color: #161616; font-size: 11px; font-weight: 700; }
.avatar-sm { width: 26px; height: 26px; font-size: 8px; }
.avatar-xl { width: 56px; height: 56px; font-size: 14px; }
.avatar-xxl { width: 94px; height: 94px; font-family: "Calistoga", Georgia, serif; font-size: 26px; font-weight: 400; }
.avatar-owner { background: #d8e1ff; }
.avatar-a { background: #f0c5bc; }
.avatar-b { background: #c8dfce; }
.avatar-c { background: #cfcae8; }
.avatar-d { background: #f2d7a1; }
.avatar-e { background: #bfdbe3; }
.avatar-f { background: #dfc0d8; }
.avatar-more { background: var(--accent-soft); color: var(--accent); }
.mini-bars { position: absolute; inset: auto 19px 16px 19px; height: 44px; display: flex; align-items: end; gap: 5px; }
.mini-bars i { flex: 1; min-width: 6px; border-radius: 4px 4px 1px 1px; background: color-mix(in srgb, var(--accent) 35%, var(--accent-soft)); }
.mini-bars i:nth-child(6) { background: var(--accent); }
.health-strip { display: flex; gap: 4px; margin-top: 22px; }
.health-strip i { height: 8px; flex: 1; border-radius: 4px; background: var(--border); }
.health-strip .ok { background: var(--success); }
.health-strip .warn { background: #f0a252; }

.content-grid { display: grid; gap: 16px; }
.content-grid-2-1 { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.panel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-head .eyebrow { margin-bottom: 4px; }
.performance-panel, .action-panel { min-height: 365px; padding: 24px; }
.segmented-control { display: flex; padding: 3px; border-radius: 9px; background: var(--background); }
.segmented-control button { min-height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 10px; }
.segmented-control button.is-active { background: var(--surface); color: var(--foreground); box-shadow: var(--shadow-sm); }
.chart-summary { display: flex; gap: 28px; margin: 22px 0 4px; }
.chart-summary > div { display: grid; grid-template-columns: 8px auto; align-items: center; gap: 4px 8px; }
.chart-summary span:not(.legend-dot) { color: var(--muted); font-size: 10px; }
.chart-summary strong { grid-column: 2; font-size: 13px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.legend-blue { background: var(--accent); }
.legend-orange { background: var(--orange); }
.line-chart { position: relative; height: 220px; padding-top: 8px; }
.line-chart svg { position: relative; z-index: 2; width: 100%; height: 180px; overflow: visible; }
.area-path { fill: color-mix(in srgb, var(--accent) 10%, transparent); stroke: none; }
.revenue-path, .cost-path { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; }
.revenue-path { stroke: var(--accent); }
.cost-path { stroke: var(--orange); stroke-width: 2; }
.chart-point { fill: var(--surface); stroke: var(--accent); stroke-width: 3; }
.chart-grid-lines { position: absolute; inset: 8px 0 32px; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; }
.chart-grid-lines i { display: block; border-top: 1px dashed var(--border); }
.chart-labels { display: flex; justify-content: space-between; color: var(--muted-2); font-size: 9px; }
.counter-pill { min-width: 58px; height: 28px; display: grid; place-items: center; padding: 0 9px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 700; }
.action-list { display: grid; margin-top: 16px; }
.action-item { min-height: 74px; display: grid; grid-template-columns: 7px 1fr 18px; gap: 12px; align-items: center; padding: 10px 0; border: 0; border-bottom: 1px solid var(--border); background: transparent; text-align: left; }
.action-item:last-child { border-bottom: 0; }
.action-item > svg { width: 16px; color: var(--muted-2); transition: transform var(--transition); }
.action-item:hover > svg { transform: translateX(3px); color: var(--accent); }
.action-item strong, .action-item small { display: block; }
.action-item strong { font-size: 12px; }
.action-item small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.action-priority { width: 7px; height: 35px; border-radius: 8px; background: var(--border); }
.priority-high { background: var(--destructive); }
.priority-medium { background: #e39b46; }
.priority-low { background: var(--accent); }
.panel-link { margin-top: 18px; }

.portfolio-overview { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.portfolio-overview > div { min-height: 98px; display: flex; flex-wrap: wrap; align-content: center; gap: 4px 10px; padding: 18px 22px; border-right: 1px solid var(--border); }
.portfolio-overview > div:last-child { border-right: 0; }
.portfolio-overview span { flex-basis: 100%; color: var(--muted); font-size: 10px; }
.portfolio-overview strong { font-family: "Calistoga", Georgia, serif; font-size: 22px; font-weight: 400; }
.portfolio-overview small { align-self: end; padding-bottom: 2px; color: var(--muted); font-size: 9px; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.search-field { flex: 1; max-width: 330px; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.search-field svg { width: 17px; color: var(--muted); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--foreground); font-size: 12px; }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent); }
.filter-chips { display: flex; gap: 7px; }
.filter-chip { min-height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--muted); font-size: 10px; font-weight: 600; transition: background var(--transition), border-color var(--transition), color var(--transition); }
.filter-chip span { margin-left: 4px; color: var(--muted-2); }
.filter-chip:hover { border-color: var(--border-strong); color: var(--foreground); }
.filter-chip.is-active { border-color: var(--foreground); background: var(--foreground); color: var(--background); }
.filter-chip.is-active span { color: color-mix(in srgb, var(--background) 70%, transparent); }
.toolbar-filter { margin-left: auto; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.creator-card { min-width: 0; display: flex; flex-direction: column; min-height: 345px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color var(--transition), box-shadow var(--transition); }
.creator-card:hover, .creator-card:focus-within { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.creator-card.featured { border-color: color-mix(in srgb, var(--accent) 48%, var(--border)); box-shadow: inset 0 3px 0 var(--accent); }
.creator-card[hidden] { display: none; }
.creator-card-head { display: grid; grid-template-columns: 56px 1fr 36px; align-items: start; gap: 13px; }
.creator-title { min-width: 0; }
.creator-title h2 { margin: 7px 0 2px; font-family: "Inter", sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.creator-title p { margin: 0; color: var(--muted); font-size: 10px; }
.stage-badge { display: inline-flex; min-height: 21px; align-items: center; padding: 0 7px; border-radius: 20px; font-family: "JetBrains Mono", monospace; font-size: 7.5px; font-weight: 600; letter-spacing: .07em; }
.stage-launch { background: var(--accent-soft); color: var(--accent); }
.stage-scale, .stage-growth { background: var(--success-soft); color: var(--success); }
.stage-attention { background: var(--destructive-soft); color: var(--destructive); }
.creator-next { margin: 21px 0; padding: 15px; border-radius: 12px; background: var(--background); }
.creator-next > span, .creator-next > small { display: block; color: var(--muted); font-size: 9px; }
.creator-next > strong { display: block; margin: 4px 0 12px; font-size: 11px; }
.creator-next .progress-track { height: 5px; }
.creator-next > small { margin-top: 7px; }
.creator-signal, .creator-alert { min-height: 75px; display: flex; align-items: center; gap: 12px; margin: 21px 0; padding: 13px; border-radius: 12px; background: var(--success-soft); color: var(--success); }
.creator-alert { background: var(--destructive-soft); color: var(--destructive); }
.creator-signal svg, .creator-alert svg { flex: 0 0 auto; }
.creator-signal strong, .creator-signal small, .creator-alert strong, .creator-alert small { display: block; }
.creator-signal strong, .creator-alert strong { font-size: 10px; }
.creator-signal small, .creator-alert small { margin-top: 3px; opacity: .78; font-size: 8.5px; }
.creator-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 4px; }
.creator-metrics > div { min-width: 0; }
.creator-metrics span, .creator-metrics strong, .creator-metrics small { display: block; }
.creator-metrics span { color: var(--muted); font-size: 8px; }
.creator-metrics strong { margin: 4px 0 2px; font-size: 12px; }
.creator-metrics small { color: var(--muted); font-size: 8px; }
.card-link { min-height: 42px; display: flex; align-items: end; justify-content: space-between; margin-top: auto; padding: 15px 0 0; border: 0; border-top: 1px solid var(--border); background: transparent; color: var(--accent); font-size: 10px; font-weight: 700; }
.card-link svg { width: 15px; height: 15px; transition: transform var(--transition); }
.card-link:hover svg { transform: translateX(3px); }
.empty-state { min-height: 320px; display: grid; place-items: center; align-content: center; text-align: center; }
.empty-state[hidden] { display: none; }
.empty-state svg { width: 42px; height: 42px; margin-bottom: 18px; color: var(--muted-2); }
.empty-state h2 { font-size: 22px; }
.empty-state p { color: var(--muted); }

.approval-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.summary-number { min-height: 85px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-right: 1px solid var(--border); }
.summary-number:last-child { border-right: 0; }
.summary-number span { color: var(--muted); font-size: 10px; }
.summary-number strong { font-family: "Calistoga", Georgia, serif; font-size: 25px; font-weight: 400; }
.summary-critical strong { color: var(--destructive); }
.approval-layout { display: grid; grid-template-columns: minmax(320px, .85fr) minmax(560px, 1.6fr); gap: 16px; align-items: start; }
.approval-queue { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.queue-filter { display: flex; gap: 4px; padding: 12px; border-bottom: 1px solid var(--border); }
.queue-filter button { min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 9px; }
.queue-filter button.is-active { background: var(--background); color: var(--foreground); font-weight: 700; }
.queue-filter span { margin-left: 3px; }
.queue-item { width: 100%; min-height: 118px; display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 17px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--foreground); text-align: left; transition: background var(--transition); }
.queue-item:last-child { border-bottom: 0; }
.queue-item:hover { background: var(--background); }
.queue-item.is-selected { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.queue-type { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--background); color: var(--accent); }
.queue-type-price { background: var(--warning-soft); color: var(--warning); }
.queue-type svg { width: 18px; }
.queue-meta { display: flex; justify-content: space-between; gap: 10px; }
.queue-meta b { color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 7.5px; letter-spacing: .08em; }
.queue-meta time { color: var(--muted-2); font-size: 8px; }
.queue-copy > strong, .queue-copy > small { display: block; }
.queue-copy > strong { margin: 6px 0 3px; font-size: 11px; }
.queue-copy > small { color: var(--muted); font-size: 9px; }
.queue-risk { display: inline-block; margin-top: 8px; padding: 3px 6px; border-radius: 5px; background: var(--destructive-soft); color: var(--destructive); font-size: 7.5px; font-weight: 700; }
.review-panel { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.review-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 21px; border-bottom: 1px solid var(--border); }
.review-head p { margin: 13px 0 4px; color: var(--muted); font-size: 10px; }
.review-head h2 { font-size: 26px; }
.decision-card { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; margin: 22px 0 14px; padding: 22px; border-radius: 15px; background: var(--foreground); color: var(--background); }
.decision-price span, .decision-price small, .confidence span { display: block; }
.decision-price span, .confidence span { opacity: .68; font-size: 9px; }
.decision-price strong { display: block; margin: 7px 0 2px; font-family: "Calistoga", Georgia, serif; font-size: 38px; font-weight: 400; }
.decision-price small { opacity: .68; font-size: 9px; }
.confidence strong { display: block; margin: 8px 0; font-size: 16px; }
.confidence .progress-track { background: color-mix(in srgb, var(--background) 18%, transparent); }
.confidence .progress-track i { background: var(--background); }
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.evidence-grid > div { padding: 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--background); }
.evidence-grid span, .evidence-grid strong, .evidence-grid small { display: block; }
.evidence-grid span { color: var(--muted); font-size: 8px; }
.evidence-grid strong { margin: 5px 0 2px; font-size: 11px; }
.evidence-grid small { color: var(--muted); font-size: 8px; }
.review-section { margin-top: 22px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.section-title > span { color: var(--success); font-size: 9px; font-weight: 700; }
.reason-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.reason-list li { display: flex; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 9px; background: var(--success-soft); color: var(--success); font-size: 9.5px; }
.reason-list svg { flex: 0 0 auto; width: 16px; height: 16px; }
.check-row { min-height: 53px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.check-row:last-child { border-bottom: 0; }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.check-row b, .check-row small { display: block; }
.check-row b { font-size: 10px; }
.check-row small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.review-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }

.system-status { min-height: 156px; display: grid; grid-template-columns: 58px 1fr 220px; gap: 20px; align-items: center; margin-bottom: 16px; padding: 28px; border: 1px solid color-mix(in srgb, var(--success) 25%, var(--border)); border-radius: var(--radius-lg); background: var(--success-soft); }
.system-status-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--success); color: white; }
.system-status-icon svg { width: 27px; height: 27px; }
.system-status > div:nth-child(2) > span { color: var(--success); font-family: "JetBrains Mono", monospace; font-size: 8px; font-weight: 600; letter-spacing: .09em; }
.system-status h2 { margin: 7px 0 5px; font-size: 25px; }
.system-status p { margin: 0; color: color-mix(in srgb, var(--foreground) 68%, transparent); font-size: 11px; }
.system-uptime { padding-left: 22px; border-left: 1px solid color-mix(in srgb, var(--success) 25%, transparent); }
.system-uptime span, .system-uptime strong, .system-uptime small { display: block; }
.system-uptime span, .system-uptime small { color: var(--success); font-size: 9px; }
.system-uptime strong { margin: 4px 0; font-family: "Calistoga", Georgia, serif; font-size: 30px; font-weight: 400; }
.incident-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.incident-metrics article { min-height: 96px; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.severity-mark { width: 8px; height: 43px; flex: 0 0 auto; display: inline-block; border-radius: 9px; background: var(--border); }
.sev-1 { background: #8b1a1a; }
.sev-2 { background: var(--destructive); }
.sev-3 { background: #e79438; }
.sev-ok { background: var(--success); }
.incident-metrics span:not(.severity-mark), .incident-metrics strong, .incident-metrics small { display: block; }
.incident-metrics span:not(.severity-mark) { color: var(--muted); font-size: 9px; }
.incident-metrics strong { margin: 2px 0; font-family: "Calistoga", Georgia, serif; font-size: 25px; font-weight: 400; }
.incident-metrics small { color: var(--muted-2); font-size: 8px; }
.incident-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(280px, .8fr); gap: 16px; align-items: start; }
.incident-table-panel, .health-panel { padding: 23px; }
.filter-chips.compact .filter-chip { min-height: 31px; padding: 0 10px; }
.incident-table { margin-top: 17px; }
.incident-row { min-height: 76px; display: grid; grid-template-columns: 2fr 1fr .8fr .8fr 82px; gap: 12px; align-items: center; padding: 10px 5px; border-bottom: 1px solid var(--border); font-size: 9px; }
.incident-row:last-child { border-bottom: 0; }
.incident-row-head { min-height: 36px; color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 7.5px; text-transform: uppercase; letter-spacing: .07em; }
.incident-row b, .incident-row small { display: block; }
.incident-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.incident-title { display: flex; align-items: center; gap: 10px; }
.incident-title .severity-mark { width: 5px; height: 35px; }
.incident-row > span:nth-child(4) { display: flex; align-items: center; gap: 7px; }
.live-indicator { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-size: 9px; }
.live-indicator i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 12%, transparent); }
.service-list { display: grid; margin-top: 18px; }
.service-list > div { min-height: 48px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.service-list > div:last-child { border-bottom: 0; }
.service-list span { display: flex; align-items: center; gap: 9px; }
.service-list b, .service-list strong { font-size: 9.5px; }
.service-list strong { color: var(--muted); }
.service-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.service-dot.ok { background: var(--success); }
.service-dot.warn { background: #e79438; }
.kill-switch-card { display: grid; grid-template-columns: 28px 1fr; gap: 10px; margin-top: 20px; padding: 15px; border-radius: 11px; background: var(--destructive-soft); color: var(--destructive); }
.kill-switch-card svg { width: 20px; }
.kill-switch-card strong { font-size: 9px; }
.kill-switch-card p { margin: 3px 0 8px; color: color-mix(in srgb, var(--destructive) 70%, var(--muted)); font-size: 8px; }
.kill-switch-card .text-button { grid-column: 2; color: var(--destructive); justify-self: start; }

.project-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.project-identity { display: flex; align-items: center; gap: 20px; }
.project-identity h1 { margin: 7px 0 4px; font-size: 38px; }
.project-identity p { margin: 0; color: var(--muted); font-size: 11px; }
.identity-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.identity-tags span { padding: 4px 8px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--muted); font-size: 8px; }
.project-hero-actions { display: flex; gap: 9px; }
.stage-rail { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); margin-bottom: 17px; padding: 22px 25px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.stage-rail::before { content: ""; position: absolute; left: 8%; right: 8%; top: 41px; height: 2px; background: var(--border); }
.stage-step { position: relative; z-index: 1; display: grid; justify-items: center; gap: 7px; text-align: center; }
.stage-step i { width: 38px; height: 38px; display: grid; place-items: center; border: 4px solid var(--surface); border-radius: 50%; background: var(--border); color: var(--muted); font-style: normal; font-size: 10px; font-weight: 700; }
.stage-step i svg { width: 16px; height: 16px; }
.stage-step.is-done i { background: var(--success); color: white; }
.stage-step.is-current i { background: var(--accent); color: white; box-shadow: 0 0 0 5px var(--accent-soft); }
.stage-step span, .stage-step small { display: block; }
.stage-step span { font-size: 9px; font-weight: 700; }
.stage-step small { margin-top: 2px; color: var(--muted); font-size: 7.5px; font-weight: 400; }
.project-metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.project-metric-grid article { min-height: 116px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.project-metric-grid span, .project-metric-grid strong, .project-metric-grid small { display: block; }
.project-metric-grid span { color: var(--muted); font-size: 9px; }
.project-metric-grid strong { margin: 7px 0 6px; font-family: "Calistoga", Georgia, serif; font-size: 25px; font-weight: 400; }
.project-metric-grid small { margin-top: 7px; color: var(--muted); font-size: 8px; }
.project-analytics-panel { margin-bottom: 16px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.project-analytics-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.project-analytics-head h2 { margin-bottom: 7px; font-size: 27px; }
.project-analytics-head p:not(.eyebrow) { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: 11px; }
.project-analytics-grid { display: grid; grid-template-columns: 1.15fr 1.2fr 1fr; gap: 12px; }
.analytics-card { min-height: 210px; display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--background); }
.analytics-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.analytics-card-head h3 { font-size: 13px; }
.analytics-card-head small { color: var(--muted); font-size: 8px; text-align: right; }
.analytics-score-card { overflow: hidden; background: #173b9e; color: white; }
.analytics-score-card > strong { display: block; margin-top: 6px; font-family: "Calistoga", Georgia, serif; font-size: 68px; font-weight: 400; line-height: .86; }
.analytics-score-card p { margin: 0; color: #dbe5ff; font-size: 11px; }
.analytics-score-factors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-top: auto; }
.analytics-score-factors span { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.08); color: #e9efff; font-size: 9px; }
.analytics-score-factors b { color: white; font-size: 10px; }
.project-funnel { display: grid; gap: 9px; margin-top: auto; }
.project-funnel div { --value: 50; min-height: 36px; display: grid; grid-template-columns: minmax(78px, 1fr) auto; align-items: center; gap: 10px; padding: 0 10px; border-radius: 8px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 18%, transparent) calc(var(--value) * 1%), var(--surface) 0); border: 1px solid var(--border); }
.project-funnel span, .project-funnel b { font-size: 9px; }
.project-funnel span { color: var(--muted); }
.project-funnel b { color: var(--foreground); font-variant-numeric: tabular-nums; }
.channel-bars { display: grid; gap: 10px; }
.channel-bars div { display: grid; grid-template-columns: minmax(96px, 1fr) 40px; gap: 10px; align-items: center; }
.channel-bars span { display: flex; align-items: center; gap: 8px; color: var(--foreground); font-size: 9px; }
.channel-bars b { justify-self: end; color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.channel-bars em { grid-column: 1 / -1; height: 7px; overflow: hidden; border-radius: 8px; background: var(--surface); }
.channel-bars em::before { content: ""; display: block; width: calc(var(--value) * 1%); height: 100%; border-radius: inherit; background: var(--accent); }
.content-signal-list { display: grid; gap: 10px; }
.content-signal-list div { padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.content-signal-list div:last-child { padding-bottom: 0; border-bottom: 0; }
.content-signal-list b, .content-signal-list span { display: block; }
.content-signal-list b { font-size: 10px; }
.content-signal-list span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.audience-clusters { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.audience-clusters span { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--muted); font-size: 9px; }
.audience-clusters b { color: var(--foreground); font-variant-numeric: tabular-nums; }
.analytics-decisions ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.analytics-decisions li { min-height: 44px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.analytics-decisions span { color: var(--foreground); font-size: 9px; }
.analytics-decisions b { color: var(--accent); font-size: 9px; white-space: nowrap; }
.project-analytics-actions { display: flex; align-items: end; gap: 8px; }
.project-analytics-actions label { display: grid; gap: 5px; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.project-analytics-actions select { min-width: 116px; min-height: 44px; padding: 0 34px 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--foreground); font: inherit; font-size: 10px; }
.project-analytics-actions .button { min-height: 44px; }
.analytics-signal-ribbon { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 0; overflow: hidden; border: 1px solid #bcd6ff; border-radius: 14px; background: linear-gradient(110deg, #062f6e, #075dcc 72%, #147cff); color: #fff; box-shadow: 0 14px 32px rgba(4, 63, 143, .16); }
.analytics-signal-ribbon article { min-width: 0; padding: 15px 18px; border-right: 1px solid rgba(255,255,255,.2); }
.analytics-signal-ribbon article:last-child { border-right: 0; }
.analytics-signal-ribbon span,.analytics-signal-ribbon small { display: block; color: rgba(255,255,255,.72); }
.analytics-signal-ribbon span { font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.analytics-signal-ribbon strong { display: block; margin: 5px 0 2px; font-size: 19px; }
.analytics-signal-ribbon small { font-size: 8px; line-height: 1.4; }
.analytics-live-metrics article[data-unavailable] { background: #f7f9fc; }
.analytics-live-metrics article[data-unavailable] strong { color: var(--muted); font-size: 13px; }
.analytics-format-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.analytics-format { padding: 12px; border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 10px; background: #f8fbff; }
.analytics-format:nth-child(2) { border-top-color: #7c3aed; }
.analytics-format:nth-child(3) { border-top-color: #00a67d; }
.analytics-format:nth-child(4) { border-top-color: #f97316; }
.analytics-format span,.analytics-format small { display: block; color: var(--muted); font-size: 8px; }
.analytics-format strong { display: block; margin: 5px 0; color: var(--foreground); font-size: 16px; }
.analytics-format.is-empty { opacity: .62; }
.analytics-recommendations { display: grid; gap: 8px; }
.analytics-recommendation { padding: 12px 14px; border-left: 3px solid #7aaef7; border-radius: 8px; background: #f7faff; }
.analytics-recommendation.priority-high { border-left-color: #f97316; background: #fff9f3; }
.analytics-recommendation span { color: var(--accent); font-size: 7px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.analytics-recommendation h4 { margin: 4px 0; font-size: 11px; }
.analytics-recommendation p,.analytics-recommendation small { color: var(--muted); font-size: 8px; line-height: 1.45; }
.analytics-content-register { grid-column: 1 / -1; }
.analytics-content-filters { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; }
.analytics-content-filters button { padding: 7px 11px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); font: inherit; font-size: 8px; font-weight: 800; cursor: pointer; }
.analytics-content-filters button.is-active { border-color: var(--accent); background: var(--accent); color: #fff; }
.analytics-content-row { display: grid; grid-template-columns: 30px minmax(180px, 1fr) 90px 90px 100px; gap: 10px; align-items: center; min-height: 52px; padding: 8px 10px; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.analytics-content-row:hover { background: #f8fbff; }
.analytics-content-row > span b,.analytics-content-row > span small { display: block; }
.analytics-content-row > span b { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.analytics-content-row > span small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.analytics-content-rank { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-size: 8px; font-weight: 900; }
.analytics-performance { justify-self: end; padding: 5px 7px; border-radius: 6px; background: #eef3fa; color: var(--muted); font-size: 7px; font-weight: 850; }
.analytics-content-row.is-strong .analytics-performance { background: #e8f8f2; color: #08795d; }
.analytics-content-row.is-weak .analytics-performance { background: #fff1e7; color: #b64a00; }
.analytics-live-status { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 13px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border)); border-radius: 12px; background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.analytics-live-status strong { font-size: 10px; }
.analytics-live-status > span:not(.analytics-state-dot) { color: var(--muted); font-size: 8.5px; }
.analytics-state-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 5px color-mix(in srgb, var(--warning) 15%, transparent); }
.analytics-live-status[data-analytics-state="fresh"] .analytics-state-dot { background: var(--success); box-shadow: 0 0 0 5px color-mix(in srgb, var(--success) 15%, transparent); }
.analytics-live-status[data-analytics-state="partial"] .analytics-state-dot,
.analytics-live-status[data-analytics-state="stale"] .analytics-state-dot { background: var(--warning); }
.analytics-live-status[data-analytics-state="provider-issue"] .analytics-state-dot,
.analytics-live-status[data-analytics-state="mcp-not-configured"] .analytics-state-dot { background: var(--danger); box-shadow: 0 0 0 5px color-mix(in srgb, var(--danger) 13%, transparent); }
.analytics-live-status[data-analytics-state="loading"] .analytics-state-dot { animation: analytics-pulse 1.15s ease-in-out infinite; }
@keyframes analytics-pulse { 50% { opacity: .35; transform: scale(.76); } }
.analytics-notice { margin-bottom: 14px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--warning) 34%, var(--border)); border-radius: 11px; background: color-mix(in srgb, var(--warning) 9%, white); color: var(--foreground); font-size: 9px; line-height: 1.55; }
.analytics-notice[hidden] { display: none; }
.analytics-live-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-bottom: 12px; }
.analytics-live-metrics article { min-height: 104px; padding: 15px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--accent) 3%, var(--surface))); }
.analytics-live-metrics span,.analytics-live-metrics strong,.analytics-live-metrics small { display: block; }
.analytics-live-metrics span { color: var(--muted); font-size: 8.5px; }
.analytics-live-metrics strong { margin: 9px 0 6px; font-family: "Calistoga", Georgia, serif; font-size: 26px; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.analytics-live-metrics small { color: var(--muted); font-size: 7.5px; line-height: 1.35; }
.project-analytics-grid.analytics-live-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.analytics-live-grid .analytics-card { min-height: 250px; }
.analytics-product-signals-card { grid-column: 1 / -1; }
.analytics-card-head > div h3 { margin-bottom: 3px; }
.analytics-signal-count { min-width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px; background: var(--accent); color: white; font-size: 9px; font-weight: 900; }
.analytics-mini-chart { min-height: 172px; display: flex; align-items: end; gap: 4px; padding-top: 14px; overflow: hidden; }
.analytics-mini-chart-bar { min-width: 5px; flex: 1 1 0; position: relative; height: max(5px, calc(var(--height) * 1%)); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 72%, white), var(--accent)); }
.analytics-mini-chart-bar:hover::after,.analytics-mini-chart-bar:focus-visible::after { content: attr(data-label); position: absolute; z-index: 3; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); min-width: max-content; padding: 5px 7px; border-radius: 7px; background: var(--foreground); color: var(--surface); font-size: 7.5px; }
.analytics-empty { margin: auto; color: var(--muted); font-size: 9px; text-align: center; line-height: 1.5; }
.analytics-top-content { display: grid; gap: 8px; }
.analytics-media-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.analytics-media-row:last-child { border-bottom: 0; }
.analytics-media-type { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 7px; font-weight: 900; text-transform: uppercase; }
.analytics-media-copy { min-width: 0; }
.analytics-media-copy b,.analytics-media-copy small { display: block; }
.analytics-media-copy b { overflow: hidden; color: var(--foreground); font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.analytics-media-copy small { margin-top: 4px; color: var(--muted); font-size: 7.5px; }
.analytics-media-score { color: var(--accent); font-size: 9px; font-weight: 900; }
.analytics-product-signals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.analytics-product-signal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.analytics-product-signal-copy { min-width: 0; }
.analytics-product-signal-copy > span { display: inline-flex; margin-bottom: 7px; padding: 4px 7px; border-radius: 999px; background: color-mix(in srgb, var(--product-gold, var(--warning)) 14%, white); color: var(--product-ink, var(--foreground)); font-size: 7px; font-weight: 900; text-transform: uppercase; }
.analytics-product-signal h4 { font-size: 11px; line-height: 1.25; }
.analytics-product-signal p { margin: 6px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.analytics-product-signal .button { min-height: 44px; white-space: nowrap; }
.analytics-product-signal.is-used { border-color: color-mix(in srgb, var(--success) 38%, var(--border)); background: color-mix(in srgb, var(--success) 5%, white); }
.analytics-data-quality dl { display: grid; gap: 0; margin: 0; }
.analytics-data-quality dl div { min-height: 42px; display: grid; grid-template-columns: minmax(120px, 1fr) 1.2fr; gap: 12px; align-items: center; border-bottom: 1px solid var(--border); }
.analytics-data-quality dl div:last-child { border-bottom: 0; }
.analytics-data-quality dt { color: var(--muted); font-size: 8.5px; }
.analytics-data-quality dd { margin: 0; color: var(--foreground); font-size: 8.5px; font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.product-factory-panel { --product-ink: #213a31; --product-paper: #fbf7ed; --product-sage: #476f5c; --product-gold: #bd8e43; --product-clay: #9a5a43; margin-bottom: 16px; padding: 28px; border: 1px solid color-mix(in srgb, var(--product-sage) 23%, var(--border)); border-radius: 22px; background: radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--product-gold) 13%, transparent), transparent 28%), linear-gradient(145deg, var(--product-paper), color-mix(in srgb, var(--product-sage) 4%, white) 52%, #fff); box-shadow: 0 20px 55px rgba(33,58,49,.08); }
.product-factory-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.product-factory-head h2 { margin-bottom: 7px; font-size: 27px; }
.product-factory-head p:not(.eyebrow) { max-width: 780px; margin-bottom: 0; color: var(--muted); font-size: 11px; }
.product-factory-actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.product-factory-actions .button,.lava-checkout-panel .button { min-height: 44px; }
.product-factory-statusline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.product-factory-statusline > span:not(.status-label) { min-height: 30px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.58); color: var(--muted); font-size: 8.5px; }
.product-creator-form { margin: 20px 0 14px; padding: 22px; border: 1px solid color-mix(in srgb, var(--product-sage) 22%, var(--border)); border-radius: 18px; background: rgba(255,255,255,.78); box-shadow: inset 0 1px 0 rgba(255,255,255,.88); }
.product-form-intro { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; margin-bottom: 20px; }
.product-form-intro > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--product-sage); color: white; font: 600 13px/1 Georgia,serif; }
.product-form-intro h3 { margin: 2px 0 4px; color: var(--product-ink); font: 500 22px/1.2 Georgia,serif; }
.product-form-intro p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--muted); font-size: 11px; }
.product-form-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.product-field { min-width: 0; display: grid; align-content: start; gap: 7px; color: var(--product-ink); font-size: 11px; font-weight: 700; }
.product-field-wide { grid-column: span 2; }
.product-field > span { min-height: 17px; }
.product-field small { color: var(--muted); font-size: 8.5px; font-weight: 400; line-height: 1.45; }
.product-field input,.product-field select,.product-field textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid color-mix(in srgb, var(--product-sage) 23%, var(--border)); border-radius: 11px; outline: 0; background: rgba(255,255,255,.92); color: var(--product-ink); font: 500 12px/1.45 inherit; transition: border-color 180ms ease,box-shadow 180ms ease,background 180ms ease; }
.product-field textarea { min-height: 88px; resize: vertical; }
.product-field input:hover,.product-field select:hover,.product-field textarea:hover { border-color: color-mix(in srgb, var(--product-sage) 48%, var(--border)); }
.product-field input:focus,.product-field select:focus,.product-field textarea:focus { border-color: var(--product-sage); box-shadow: 0 0 0 4px color-mix(in srgb, var(--product-sage) 13%, transparent); background: white; }
.product-field :invalid:not(:focus):not(:placeholder-shown) { border-color: var(--danger); }
.product-price-input { display: grid; grid-template-columns: minmax(0,1fr) 86px; gap: 8px; }
.product-form-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 9px; background: color-mix(in srgb,var(--danger) 9%,white); color: var(--danger); font-size: 10px; font-weight: 700; }
.premium-production-rail { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; margin-bottom: 14px; }
.premium-production-rail > div { position: relative; min-height: 76px; display: grid; grid-template-columns: 34px 1fr; gap: 9px; align-items: center; padding: 10px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.72); transition: border-color 200ms ease,background 200ms ease,box-shadow 200ms ease; }
.premium-production-rail > div::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: transparent; }
.premium-production-rail b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--background); color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.premium-production-rail span,.premium-production-rail small { display: block; min-width: 0; }
.premium-production-rail span { color: var(--product-ink); font-size: 9px; font-weight: 800; }
.premium-production-rail small { margin-top: 3px; color: var(--muted); font-size: 7.5px; font-weight: 400; line-height: 1.3; }
.premium-production-rail .is-current { border-color: var(--product-gold); background: color-mix(in srgb,var(--product-gold) 8%,white); box-shadow: 0 8px 24px rgba(189,142,67,.12); }
.premium-production-rail .is-current b { background: var(--product-gold); color: white; }
.premium-production-rail .is-current::after { background: var(--product-gold); }
.premium-production-rail .is-ready { border-color: color-mix(in srgb,var(--product-sage) 35%,var(--border)); }
.premium-production-rail .is-ready b { background: var(--product-sage); color: white; }
.premium-production-rail .is-ready::after { background: var(--product-sage); }
.premium-production-rail .is-error { border-color: var(--danger); background: color-mix(in srgb,var(--danger) 6%,white); }
.premium-production-rail .is-error b { background: var(--danger); color: white; }
.materials-quality-summary { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.materials-output { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; margin-bottom: 14px; padding: 14px; border: 1px solid color-mix(in srgb, var(--success) 28%, var(--border)); border-radius: var(--radius-md); background: color-mix(in srgb, var(--success) 8%, white); }
.materials-output[hidden] { display: none; }
.materials-output h3 { font-size: 13px; }
.materials-output-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.materials-output-links a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--product-sage,var(--accent)); font-size: 9px; font-weight: 800; text-decoration: none; transition: border-color 180ms ease,background 180ms ease; }
.materials-output-links a:hover { border-color: currentColor; background: color-mix(in srgb,var(--product-sage,var(--accent)) 7%,white); }
.materials-output-links a.is-primary { border-color: var(--product-sage,var(--accent)); background: var(--product-sage,var(--accent)); color: white; }
.lava-checkout-panel { display: grid; grid-template-columns: minmax(0, 1fr) 150px 190px auto; gap: 10px; align-items: end; margin-bottom: 14px; padding: 14px; border: 1px solid color-mix(in srgb, var(--warning) 28%, var(--border)); border-radius: var(--radius-md); background: color-mix(in srgb, var(--warning) 8%, white); }
.lava-checkout-panel h3 { font-size: 13px; }
.lava-checkout-panel p:not(.eyebrow) { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.lava-checkout-panel label { display: grid; gap: 5px; color: var(--muted); font-size: 8px; font-weight: 800; }
.lava-checkout-panel input { min-height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--foreground); font-size: 10px; }
.commerce-output { background: color-mix(in srgb, var(--accent) 7%, white); border-color: color-mix(in srgb, var(--accent) 24%, var(--border)); }
.product-factory-grid { display: grid; grid-template-columns: 1.05fr 1.45fr; gap: 12px; }
.product-offer-card, .product-pipeline-card, .product-assets-card, .product-gates-card { min-height: 196px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: rgba(255,255,255,.72); }
.product-offer-card { background: #101f45; color: white; overflow: hidden; position: relative; }
.product-offer-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -86px; top: -90px; border-radius: 50%; background: rgba(255,255,255,.08); }
.product-kicker { display: inline-flex; margin-bottom: 12px; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.11); color: #dbe5ff; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.product-offer-card h3 { max-width: 310px; font-family: "Calistoga", Georgia, serif; font-size: 31px; font-weight: 400; line-height: .98; }
.product-offer-card p { max-width: 340px; margin: 10px 0 18px; color: #dbe5ff; font-size: 10px; }
.product-price-row { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
.product-price-row strong { font-family: "Calistoga", Georgia, serif; font-size: 34px; font-weight: 400; line-height: 1; }
.product-price-row span { color: #b9c8f6; font-size: 8px; }
.product-offer-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.product-offer-tags span { padding: 6px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.08); color: white; font-size: 8px; }
.product-pipeline-card { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; align-items: stretch; }
.product-pipeline-step { min-height: 148px; display: flex; flex-direction: column; justify-content: space-between; padding: 11px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.product-pipeline-step b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--background); color: var(--muted); font-size: 8px; }
.product-pipeline-step span, .product-pipeline-step small { display: block; }
.product-pipeline-step span { font-size: 9px; font-weight: 800; }
.product-pipeline-step small { margin-top: 4px; color: var(--muted); font-size: 7.5px; font-weight: 400; line-height: 1.35; }
.product-pipeline-step.is-done b { background: var(--success); color: white; }
.product-pipeline-step.is-current { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.product-pipeline-step.is-current b { background: var(--accent); color: white; }
.product-assets-card, .product-gates-card { min-height: 178px; }
.product-asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.product-asset-grid span { min-height: 54px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.product-asset-grid b, .product-asset-grid small { display: block; }
.product-asset-grid b { color: var(--foreground); font-size: 9px; }
.product-asset-grid small { color: var(--muted); font-size: 7.5px; }
.product-gates-card ul { display: grid; gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; }
.product-gates-card li { display: grid; grid-template-columns: 9px 1fr; gap: 9px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); color: var(--foreground); font-size: 9px; }
.product-gates-card li:last-child { border-bottom: 0; }
.project-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, .85fr); gap: 16px; align-items: start; }
.project-main, .project-aside { display: grid; gap: 16px; }
.next-move-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 27px; }
.next-move-card::after { content: ""; position: absolute; width: 140px; height: 140px; right: -60px; top: -55px; border: 1px solid var(--border); border-radius: 50%; }
.next-move-number { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: var(--accent); color: white; font-family: "Calistoga", Georgia, serif; font-size: 24px; }
.next-move-card h2 { max-width: 700px; margin: 4px 0 9px; font-size: 25px; }
.next-move-card p:not(.eyebrow) { max-width: 760px; margin-bottom: 14px; color: var(--muted); font-size: 10px; }
.next-move-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.next-move-meta span { padding: 6px 9px; border-radius: 7px; background: var(--background); color: var(--muted); font-size: 8px; }
.next-move-meta b { color: var(--foreground); }
.next-move-actions { display: flex; gap: 8px; margin-top: 18px; }
.workstreams-panel { padding: 24px; }
.workstream-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 18px; }
.workstream-grid button { min-height: 72px; display: grid; grid-template-columns: 40px 1fr auto; gap: 11px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--background); color: var(--foreground); text-align: left; transition: border-color var(--transition), background var(--transition); }
.workstream-grid button:hover { border-color: var(--accent); background: var(--accent-soft); }
.workstream-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); color: var(--accent); }
.workstream-icon svg { width: 17px; }
.workstream-grid b, .workstream-grid small { display: block; }
.workstream-grid b { font-size: 10px; }
.workstream-grid small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.workstream-grid strong { font-size: 9px; }
.state-ok { color: var(--success); }
.state-warn { color: var(--warning); }
.launch-checklist, .budget-card { padding: 22px; }
.launch-checklist .panel-head > span, .budget-card .panel-head > span { min-width: 42px; height: 27px; display: grid; place-items: center; border-radius: 20px; background: var(--accent-soft); color: var(--accent); font-size: 9px; font-weight: 700; }
.checklist-items { display: grid; margin-top: 14px; }
.checklist-items > div { min-height: 42px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); font-size: 9px; }
.checklist-items > div:last-child { border-bottom: 0; }
.checklist-items i { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--muted); }
.checklist-items i svg { width: 12px; height: 12px; }
.checklist-items .done i { border-color: var(--success); background: var(--success); color: white; }
.checklist-items .done span { color: var(--muted); text-decoration: line-through; }
.budget-card > .progress-track { margin: 17px 0 8px; }
.budget-legend { display: flex; justify-content: space-between; color: var(--muted); font-size: 7.5px; }
.budget-breakdown { display: grid; gap: 9px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--border); }
.budget-breakdown > div { display: flex; justify-content: space-between; gap: 12px; font-size: 8.5px; }
.budget-breakdown span { color: var(--muted); }

.mobile-nav { display: none; }
.sidebar-scrim { display: none; }
.modal-overlay, .command-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.55); backdrop-filter: blur(5px); }
.modal-overlay[hidden], .command-overlay[hidden], .toast[hidden] { display: none; }
.modal { width: min(100%, 520px); padding: 28px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg); animation: modal-in 220ms ease-out; }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.modal-head h2 { font-size: 26px; }
.modal form { display: grid; gap: 16px; }
.modal label { display: grid; gap: 7px; color: var(--foreground); font-size: 10px; font-weight: 600; }
.modal input, .modal select { width: 100%; min-height: 45px; padding: 0 13px; border: 1px solid var(--border); border-radius: 9px; background: var(--background); color: var(--foreground); font-size: 12px; }
.modal input:focus, .modal select:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-note { display: flex; gap: 10px; padding: 13px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 9px; }
.modal-note svg { flex: 0 0 auto; width: 17px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 5px; }
.command-palette { width: min(100%, 620px); overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); animation: command-in 220ms ease-out; }
.command-palette > label { min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 17px; border-bottom: 1px solid var(--border); }
.command-palette > label svg { color: var(--muted); }
.command-palette input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--foreground); font-size: 14px; }
.command-results { display: grid; gap: 3px; padding: 10px; }
.command-results > span { padding: 8px 10px 5px; color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 8px; letter-spacing: .1em; }
.command-results button { min-height: 56px; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--foreground); text-align: left; }
.command-results button:hover { background: var(--background); }
.command-results button > svg { width: 18px; color: var(--accent); }
.command-results b, .command-results small { display: block; }
.command-results b { font-size: 11px; }
.command-results small { color: var(--muted); font-size: 8px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 150; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 12px; background: var(--foreground); color: var(--background); box-shadow: var(--shadow-lg); transform: translateX(-50%); animation: toast-in 220ms ease-out; font-size: 11px; font-weight: 600; }
.toast svg { width: 18px; color: var(--success); }

@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes command-in { from { opacity: 0; transform: translateY(-10px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 1220px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-content-row { grid-template-columns: 30px minmax(150px, 1fr) 76px 76px; }
  .analytics-content-row .analytics-performance { display: none; }
  .analytics-live-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-factory-grid { grid-template-columns: 1fr; }
  .product-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .premium-production-rail { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .product-pipeline-card { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lava-checkout-panel { grid-template-columns: 1fr 1fr; }
  .lava-checkout-panel > div:first-child { grid-column: 1 / -1; }
  .analytics-score-card { grid-row: span 2; }
  .incident-layout, .project-layout { grid-template-columns: 1fr; }
  .project-aside { grid-template-columns: 1fr 1fr; }
  .incident-table-panel { overflow-x: auto; }
  .incident-table { min-width: 760px; }
}

@media (max-width: 980px) {
  :root { --topbar-height: 62px; }
  .sidebar { transform: translateX(-101%); transition: transform var(--transition); box-shadow: var(--shadow-lg); }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-scrim.is-open { position: fixed; inset: 0; z-index: 45; display: block; background: rgba(0,0,0,.48); }
  .workspace { margin-left: 0; }
  .mobile-menu { display: inline-grid; }
  .topbar { padding: 0 18px; }
  .main-content { padding: 28px 20px 80px; }
  .dashboard-focus { grid-template-columns: 1fr; }
  .signal-stack { grid-template-columns: 1fr 1fr; }
  .content-grid-2-1 { grid-template-columns: 1fr; }
  .action-panel { min-height: auto; }
  .approval-layout { grid-template-columns: minmax(280px, .7fr) minmax(470px, 1.3fr); }
  .stage-rail { overflow-x: auto; grid-template-columns: repeat(6, minmax(120px, 1fr)); }
  .stage-rail::before { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  h1 { font-size: 2.2rem; }
  .product-creator-form { padding: 16px; }
  .product-form-grid { grid-template-columns: 1fr; }
  .product-field-wide { grid-column: auto; }
  .premium-production-rail { grid-template-columns: 1fr 1fr; }
  .premium-production-rail > div { min-height: 68px; }
  .topbar { padding: 0 12px; }
  .breadcrumb span, .breadcrumb svg { display: none; }
  .search-button { min-width: 44px; width: 44px; padding: 0; justify-content: center; }
  .search-button span, .search-button kbd { display: none; }
  .main-content { padding: 24px 14px 98px; }
  .page-heading, .page-heading-compact { align-items: stretch; flex-direction: column; gap: 18px; margin-bottom: 24px; }
  .page-heading .button { width: 100%; }
  .page-lead { font-size: 13px; }
  .focus-card { grid-template-columns: 1fr; padding: 24px; }
  .focus-copy h2 { font-size: 2rem; }
  .focus-progress { min-height: 170px; }
  .signal-stack { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 150px; padding: 17px; }
  .content-grid-2-1 { grid-template-columns: 1fr; }
  .performance-panel, .action-panel { padding: 18px; }
  .chart-summary { gap: 14px; }
  .portfolio-overview, .approval-summary { grid-template-columns: 1fr 1fr; }
  .portfolio-overview > div:nth-child(2), .portfolio-overview > div:nth-child(4), .summary-number:nth-child(2), .summary-number:nth-child(4) { border-right: 0; }
  .portfolio-overview > div:nth-child(-n+2), .summary-number:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .toolbar { align-items: stretch; flex-wrap: wrap; }
  .search-field { max-width: none; flex-basis: 100%; }
  .filter-chips { width: 100%; overflow-x: auto; padding-bottom: 3px; }
  .filter-chip { white-space: nowrap; }
  .toolbar-filter { display: none; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .creator-card { min-height: 330px; }
  .approval-layout { grid-template-columns: 1fr; }
  .approval-queue { max-height: 360px; overflow-y: auto; }
  .review-panel { padding: 20px; }
  .review-head h2 { font-size: 23px; }
  .decision-card { grid-template-columns: 1fr; }
  .evidence-grid { grid-template-columns: 1fr; }
  .review-actions { position: sticky; bottom: 78px; z-index: 10; margin-inline: -20px; padding: 14px 20px; background: var(--surface); box-shadow: 0 -12px 24px color-mix(in srgb, var(--background) 90%, transparent); }
  .review-actions .button { flex: 1; white-space: normal; }
  .system-status { grid-template-columns: 50px 1fr; padding: 21px; }
  .system-uptime { grid-column: 1 / -1; padding: 16px 0 0; border-left: 0; border-top: 1px solid color-mix(in srgb, var(--success) 25%, transparent); }
  .incident-metrics { grid-template-columns: 1fr 1fr; }
  .incident-table-panel, .health-panel { padding: 18px; }
  .project-analytics-head, .product-factory-head { flex-direction: column; }
  .project-analytics-head .button, .product-factory-head .button { width: 100%; justify-content: center; }
  .project-analytics-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .project-analytics-actions select { width: 100%; }
  .product-factory-panel { padding: 18px; }
  .product-factory-head h2 { font-size: 22px; }
  .product-factory-grid, .product-pipeline-card, .product-asset-grid { grid-template-columns: 1fr; }
  .materials-output, .lava-checkout-panel { grid-template-columns: 1fr; align-items: stretch; }
  .materials-output-links { justify-content: flex-start; }
  .product-pipeline-step { min-height: 72px; }
  .project-hero { align-items: stretch; flex-direction: column; }
  .project-identity { align-items: flex-start; }
  .avatar-xxl { width: 68px; height: 68px; font-size: 19px; }
  .project-identity h1 { font-size: 30px; }
  .project-hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .stage-rail { margin-inline: -14px; border-left: 0; border-right: 0; border-radius: 0; padding-inline: 18px; }
  .project-metric-grid { grid-template-columns: 1fr 1fr; }
  .project-analytics-panel { padding: 18px; }
  .project-analytics-head { flex-direction: column; }
  .project-analytics-head .button { width: 100%; }
  .project-analytics-grid { grid-template-columns: 1fr; }
  .analytics-signal-ribbon { grid-template-columns: 1fr; }
  .analytics-signal-ribbon article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .analytics-signal-ribbon article:last-child { border-bottom: 0; }
  .analytics-content-row { grid-template-columns: 28px minmax(0, 1fr) 64px; }
  .analytics-content-row > span:nth-child(4),.analytics-content-row .analytics-performance { display: none; }
  .analytics-live-metrics { grid-template-columns: 1fr 1fr; }
  .analytics-product-signals-card { grid-column: auto; }
  .analytics-product-signals { grid-template-columns: 1fr; }
  .analytics-product-signal { grid-template-columns: 1fr; }
  .analytics-product-signal .button { width: 100%; justify-content: center; }
  .analytics-score-card { grid-row: auto; }
  .analytics-score-card > strong { font-size: 56px; }
  .analytics-score-factors { grid-template-columns: 1fr; }
  .project-aside { grid-template-columns: 1fr; }
  .next-move-card { grid-template-columns: 1fr; padding: 22px; }
  .next-move-number { width: 52px; height: 52px; }
  .next-move-actions { display: grid; grid-template-columns: 1fr; }
  .workstream-grid { grid-template-columns: 1fr; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 60; height: 72px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px max(5px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left)); border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 95%, transparent); backdrop-filter: blur(18px); }
  .mobile-nav button { position: relative; min-width: 0; min-height: 54px; display: grid; justify-items: center; align-content: center; gap: 3px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
  .mobile-nav button.is-active { color: var(--accent); background: var(--accent-soft); }
  .mobile-nav svg { width: 19px; height: 19px; }
  .mobile-nav span { font-size: 8px; font-weight: 600; }
  .mobile-nav i { position: absolute; right: calc(50% - 20px); top: 3px; min-width: 15px; height: 15px; display: grid; place-items: center; padding: 0 3px; border-radius: 10px; background: var(--accent); color: white; font-style: normal; font-size: 7px; }
  .mobile-nav i.danger { background: var(--destructive); }
  .toast { bottom: 86px; max-width: calc(100% - 28px); }
}

@media (max-width: 440px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 145px; }
  .portfolio-overview > div { min-height: 88px; padding: 14px; }
  .portfolio-overview strong { font-size: 18px; }
  .approval-summary { grid-template-columns: 1fr; }
  .summary-number { min-height: 65px; border-right: 0; border-bottom: 1px solid var(--border); }
  .summary-number:last-child { border-bottom: 0; }
  .incident-metrics { grid-template-columns: 1fr; }
  .incident-metrics article { min-height: 78px; }
  .project-identity { gap: 13px; }
  .project-hero-actions { grid-template-columns: 1fr; }
  .project-metric-grid { grid-template-columns: 1fr; }
  .analytics-live-metrics { grid-template-columns: 1fr; }
  .analytics-card { min-height: auto; }
  .analytics-card-head { flex-direction: column; }
  .analytics-card-head small { text-align: left; }
  .analytics-decisions li { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .modal { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
