/* CONNECT Platform Design System — generated platform.css (board 02) */
:root, [data-theme="dark"] {
  --ground: #07080d;
  --surface-1: #0d0f17;
  --surface-2: #141724;
  --surface-3: #1c2031;
  --glass: #0d0f17b3;
  --line: #262b40;
  --line-strong: #646b8a;
  --ink: #f2f4fa;
  --ink-muted: #9aa1b9;
  --ink-faint: #5a6078;
  --brand: #2ee6c5;
  --brand-ink: #03120f;
  --brand-fill: #2ee6c5;
  --brand-fill-ink: #03120f;
  --brand-soft: #2ee6c52e;
  --accent: #ff7a45;
  --accent-soft: #ff7a452e;
  --volt: #d8f04a;
  --volt-soft: #d8f04a29;
  --success: #5be38f;
  --success-soft: #5be38f24;
  --warning: #ffc24b;
  --warning-soft: #ffc24b24;
  --danger: #ff6b81;
  --danger-ink: #1a0006;
  --danger-soft: #ff6b8124;
  --info: #5cc8ff;
  --info-soft: #5cc8ff24;
  --focus: #f2f4fa;
  --glow-a: #2ee6c555;
  --glow-b: #ff7a4540;
  --glow-c: #d8f04a33;
  --overlay: #000000b3;
  --chart-1: var(--brand);
  --chart-2: var(--accent);
  --chart-3: var(--volt);
  --chart-4: #f2f4fa;
  --chart-5: #646b8a;
  --shadow-1: 0 1px 0 #ffffff0d inset, 0 8px 24px -12px #00000099;
  --shadow-2: 0 1px 0 #ffffff14 inset, 0 24px 60px -20px #000000cc;
  --shadow-glow: 0 0 0 1px #2ee6c533, 0 12px 40px -12px #2ee6c580;
  color-scheme: dark;
}
[data-theme="light"] {
  --ground: #f4f5f1;
  --surface-1: #ffffff;
  --surface-2: #f0f1ec;
  --surface-3: #e6e8e1;
  --glass: #ffffffb8;
  --line: #dadcd3;
  --line-strong: #7c8296;
  --ink: #0b0d12;
  --ink-muted: #545b6e;
  --ink-faint: #9aa0b2;
  --brand: #066b5b;
  --brand-ink: #ffffff;
  --brand-fill: #2ee6c5;
  --brand-fill-ink: #03120f;
  --brand-soft: #087a681f;
  --accent: #b03a09;
  --accent-soft: #c2410c1f;
  --volt: #5e6e00;
  --volt-soft: #5e6e001f;
  --success: #12733d;
  --success-soft: #12733d1a;
  --warning: #8a5a00;
  --warning-soft: #8a5a001a;
  --danger: #c8102e;
  --danger-ink: #ffffff;
  --danger-soft: #c8102e1a;
  --info: #0b63a8;
  --info-soft: #0b63a81a;
  --focus: #0b0d12;
  --glow-a: #2ee6c540;
  --glow-b: #ff7a4530;
  --glow-c: #d8f04a40;
  --overlay: #0b0d1266;
  --chart-1: var(--brand);
  --chart-2: var(--accent);
  --chart-3: var(--volt);
  --chart-4: #1c2030;
  --chart-5: #9aa0b2;
  --shadow-1: 0 1px 2px #0b0d1214, 0 8px 24px -12px #0b0d1229;
  --shadow-2: 0 2px 6px #0b0d121a, 0 24px 60px -20px #0b0d1240;
  --shadow-glow: 0 0 0 1px #087a6833, 0 12px 32px -14px #087a6866;
  color-scheme: light;
}
[data-theme="hc-dark"] {
  --ground: #000000;
  --surface-1: #050505;
  --surface-2: #0f0f0f;
  --surface-3: #1a1a1a;
  --glass: #050505;
  --line: #8a90a3;
  --line-strong: #c9ced9;
  --ink: #ffffff;
  --ink-muted: #d5d9e3;
  --ink-faint: #a8adbb;
  --brand: #5cffe4;
  --brand-ink: #000000;
  --brand-fill: #5cffe4;
  --brand-fill-ink: #000000;
  --brand-soft: #5cffe433;
  --accent: #ff9a6b;
  --accent-soft: #ff9a6b33;
  --volt: #e6ff5c;
  --volt-soft: #e6ff5c33;
  --success: #7dffae;
  --success-soft: #7dffae33;
  --warning: #ffd166;
  --warning-soft: #ffd16633;
  --danger: #ff8095;
  --danger-ink: #000000;
  --danger-soft: #ff809533;
  --info: #7fd6ff;
  --info-soft: #7fd6ff33;
  --focus: #ffe600;
  --glow-a: #00000000;
  --glow-b: #00000000;
  --glow-c: #00000000;
  --overlay: #000000cc;
  --chart-1: var(--brand);
  --chart-2: var(--accent);
  --chart-3: var(--volt);
  --chart-4: #ffffff;
  --chart-5: #c9ced9;
  --shadow-1: none;
  --shadow-2: none;
  --shadow-glow: none;
  color-scheme: dark;
}
[data-theme="hc-light"] {
  --ground: #ffffff;
  --surface-1: #ffffff;
  --surface-2: #f2f2f2;
  --surface-3: #e5e5e5;
  --glass: #ffffff;
  --line: #4a5064;
  --line-strong: #1f2333;
  --ink: #000000;
  --ink-muted: #262a36;
  --ink-faint: #4a5064;
  --brand: #00544a;
  --brand-ink: #ffffff;
  --brand-fill: #00544a;
  --brand-fill-ink: #ffffff;
  --brand-soft: #00544a1f;
  --accent: #a33100;
  --accent-soft: #a331001f;
  --volt: #4d5c00;
  --volt-soft: #4d5c001f;
  --success: #0b5a2e;
  --success-soft: #0b5a2e1f;
  --warning: #6b4500;
  --warning-soft: #6b45001f;
  --danger: #a0001c;
  --danger-ink: #ffffff;
  --danger-soft: #a0001c1f;
  --info: #004f8c;
  --info-soft: #004f8c1f;
  --focus: #0040ff;
  --glow-a: #ffffff00;
  --glow-b: #ffffff00;
  --glow-c: #ffffff00;
  --overlay: #000000b3;
  --chart-1: var(--brand);
  --chart-2: var(--accent);
  --chart-3: var(--volt);
  --chart-4: #000000;
  --chart-5: #4a5064;
  --shadow-1: none;
  --shadow-2: none;
  --shadow-glow: none;
  color-scheme: light;
}
:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 20px; --radius-xl: 28px; --radius-pill: 999px;
  --font-display: Sora, Inter, system-ui, sans-serif;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

/* CONNECT Platform Design System — component styles (components/bundle.css). */
:root {
  --dur-1: 70ms; --dur-2: 120ms; --dur-3: 200ms; --dur-4: 320ms; --dur-5: 480ms; --dur-6: 720ms;
  --dur-count: 900ms; --dur-draw: 1100ms; --dur-ambient: 28s;
  --ease-productive: cubic-bezier(.2, 0, .38, .9);
  --ease-enter: cubic-bezier(0, 0, .3, 1);
  --ease-exit: cubic-bezier(.4, .14, 1, 1);
  --ease-expressive: cubic-bezier(.4, .14, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.45, .64, 1);
  --stagger: 45ms; --blur-glass: 18px; --focus-w: 2px; --ts: 1;
}
[data-theme="hc-dark"], [data-theme="hc-light"] { --focus-w: 3px; --blur-glass: 0px; }
[data-a11y-text="115"] { --ts: 1.15; }
[data-a11y-text="130"] { --ts: 1.3; }
[data-a11y-motion="reduced"] { --dur-4: 160ms; --dur-5: 160ms; --dur-6: 160ms; --dur-count: 0ms; --dur-draw: 0ms; --stagger: 0ms; }
[data-a11y-motion="reduced"] .cp-ambient, [data-a11y-motion="reduced"] .cp-cursor-light,
[data-a11y-motion="off"] .cp-ambient, [data-a11y-motion="off"] .cp-cursor-light { display: none; }
[data-a11y-motion="off"] *, [data-a11y-motion="off"] *::before, [data-a11y-motion="off"] *::after { animation: none !important; transition: none !important; }
[data-a11y-motion="reduced"] .cp-enter, [data-a11y-motion="off"] .cp-enter { animation: cp-fade var(--dur-5) linear both; transform: none; }
[data-a11y-motion="off"] .cp-enter { opacity: 1; }
[data-a11y-transparency="reduced"] .cp-glass { background: var(--surface-1); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (prefers-reduced-motion: reduce) {
  :root:not([data-a11y-motion="full"]) { --dur-4: 160ms; --dur-5: 160ms; --dur-6: 160ms; --dur-count: 0ms; --dur-draw: 0ms; --stagger: 0ms; }
  :root:not([data-a11y-motion="full"]) .cp-ambient, :root:not([data-a11y-motion="full"]) .cp-cursor-light { display: none; }
  :root:not([data-a11y-motion="full"]) .cp-enter { animation: cp-fade var(--dur-5) linear both; transform: none; }
}
@media (prefers-reduced-transparency: reduce) { .cp-glass { background: var(--surface-1); backdrop-filter: none; } }
@media (forced-colors: active) {
  .cp-btn, .cp-input, .cp-card, .cp-badge, .cp-toggle__track { border: 1px solid CanvasText; }
  .cp-ambient, .cp-cursor-light, .cp-card::after, .cp-btn::before { display: none; }
  :focus-visible { outline: 3px solid Highlight !important; }
}
.cp-scope { background: var(--ground); color: var(--ink); font-family: var(--font-sans); font-size: calc(15px * var(--ts)); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.cp-scope, .cp-scope *, .cp-scope *::before, .cp-scope *::after, [data-theme] *, [data-theme] *::before, [data-theme] *::after { box-sizing: border-box; }
.cp-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "cv11" 1; }
.cp-overline { font: 600 calc(11px * var(--ts))/1.45 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.cp-muted { color: var(--ink-muted); }
.cp-h1 { font: 600 calc(32px * var(--ts))/1.25 var(--font-display); letter-spacing: -.02em; margin: 0; }
.cp-h2 { font: 600 calc(22px * var(--ts))/1.35 var(--font-display); letter-spacing: -.01em; margin: 0; }
.cp-h3 { font: 600 calc(17px * var(--ts))/1.4 var(--font-display); margin: 0; }
.cp-scope :focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: 2px; }
.cp-stage { position: relative; overflow: hidden; isolation: isolate; background: var(--ground); }
.cp-ambient { position: absolute; inset: -25%; z-index: -2; pointer-events: none; will-change: transform;
  background:
    radial-gradient(38% 42% at 22% 28%, var(--glow-a), transparent 70%),
    radial-gradient(32% 36% at 80% 18%, var(--glow-b), transparent 70%),
    radial-gradient(44% 40% at 62% 86%, var(--glow-c), transparent 70%);
  animation: cp-drift var(--dur-ambient) var(--ease-expressive) infinite alternate; }
.cp-cursor-light { position: absolute; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, var(--brand-soft), transparent 100%); opacity: 0; transition: opacity var(--dur-4) var(--ease-productive); will-change: transform; }
.cp-stage:hover .cp-cursor-light { opacity: 1; }
.cp-grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .035; background-image: radial-gradient(var(--ink) 1px, transparent 1px); background-size: 4px 4px; }
.cp-enter { opacity: 0; transform: translate3d(0, 14px, 0) scale(.985); animation: cp-rise var(--dur-5) var(--ease-enter) both; animation-delay: calc(var(--i, 0) * var(--stagger)); }
@keyframes cp-rise { to { opacity: 1; transform: none; } }
@keyframes cp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cp-drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(4%, -3%, 0) rotate(7deg) scale(1.08); }
  100% { transform: translate3d(-3%, 4%, 0) rotate(-5deg) scale(1.03); } }
@keyframes cp-draw { to { stroke-dashoffset: 0; } }
@keyframes cp-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes cp-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes cp-spin { to { transform: rotate(360deg); } }
@keyframes cp-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes cp-toast-in { from { opacity: 0; transform: translate3d(0, 16px, 0) scale(.97); } to { opacity: 1; transform: none; } }
.cp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: calc(40px * var(--ts)); padding: 0 calc(18px * var(--ts)); border-radius: var(--radius-md);
  font: 600 calc(14px * var(--ts))/1 var(--font-sans); border: 1px solid transparent; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-2) var(--ease-productive), box-shadow var(--dur-3) var(--ease-productive), background-color var(--dur-2) var(--ease-productive), border-color var(--dur-2); }
.cp-btn:hover { transform: translate3d(0, -1px, 0); }
.cp-btn:active { transform: scale(.97); transition-duration: var(--dur-1); }
.cp-btn--primary { background: var(--brand-fill); color: var(--brand-fill-ink); }
.cp-btn--primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, #ffffff73 50%, transparent 70%); transform: translateX(-120%); transition: transform var(--dur-6) var(--ease-expressive); }
.cp-btn--primary:hover { box-shadow: var(--shadow-glow); }
.cp-btn--primary:hover::before { transform: translateX(120%); }
.cp-btn--secondary { background: var(--surface-3); color: var(--ink); border-color: var(--line-strong); }
.cp-btn--secondary:hover { background: var(--surface-2); }
.cp-btn--ghost { background: transparent; color: var(--ink); }
.cp-btn--ghost:hover { background: var(--surface-2); }
.cp-btn--danger { background: var(--danger); color: var(--danger-ink); }
.cp-btn--sm { height: calc(32px * var(--ts)); padding: 0 12px; font-size: calc(13px * var(--ts)); border-radius: var(--radius-sm); }
.cp-btn--lg { height: calc(48px * var(--ts)); padding: 0 24px; font-size: calc(15px * var(--ts)); }
.cp-btn[disabled], .cp-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.cp-btn[aria-busy="true"] { cursor: progress; }
.cp-btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
[data-theme="hc-dark"] .cp-btn, [data-theme="hc-light"] .cp-btn { border-width: 2px; }
[data-theme="hc-dark"] .cp-btn--primary::before, [data-theme="hc-light"] .cp-btn--primary::before { display: none; }
[data-theme="hc-dark"] .cp-btn--ghost, [data-theme="hc-light"] .cp-btn--ghost { text-decoration: underline; text-underline-offset: 3px; }
.cp-spinner { width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: cp-spin 700ms linear infinite; }
.cp-card { position: relative; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-1); overflow: hidden; }
.cp-glass { background: var(--glass); -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(140%); backdrop-filter: blur(var(--blur-glass)) saturate(140%); }
.cp-card--interactive::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), var(--brand-soft), transparent 60%); transition: opacity var(--dur-4) var(--ease-productive); }
.cp-card--interactive:hover::after { opacity: 1; }
.cp-card--interactive { transition: transform var(--dur-3) var(--ease-productive), border-color var(--dur-3); }
.cp-card--interactive:hover { transform: translate3d(0, -2px, 0); border-color: var(--line-strong); }
.cp-kpi { display: grid; gap: 6px; }
.cp-kpi__value { font: 600 calc(30px * var(--ts))/1.15 var(--font-sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cp-kpi__value--xl { font-size: calc(44px * var(--ts)); letter-spacing: -.03em; }
.cp-kpi__foot { display: flex; align-items: center; gap: 8px; font-size: calc(13px * var(--ts)); color: var(--ink-muted); }
.cp-delta { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--radius-pill); font: 600 calc(12px * var(--ts))/1 var(--font-sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-delta--up { background: var(--success-soft); color: var(--success); }
.cp-delta--down { background: var(--danger-soft); color: var(--danger); }
.cp-spark { width: 100%; height: 48px; display: block; overflow: visible; }
.cp-spark .line { fill: none; stroke: var(--chart-1); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: cp-draw var(--dur-draw) var(--ease-expressive) forwards; animation-delay: calc(var(--i, 0) * var(--stagger) + 200ms); }
.cp-spark .area { fill: var(--brand-soft); opacity: 0; animation: cp-fade var(--dur-5) var(--ease-enter) forwards; animation-delay: calc(var(--i, 0) * var(--stagger) + 700ms); }
.cp-live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--volt); display: inline-block; flex: none; }
.cp-live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--volt); animation: cp-pulse 1.8s var(--ease-enter) infinite; }
.cp-badge { display: inline-flex; align-items: center; gap: 6px; height: calc(24px * var(--ts)); padding: 0 10px 0 8px; border-radius: var(--radius-pill); font: 600 calc(12px * var(--ts))/1 var(--font-sans); white-space: nowrap; background: var(--surface-3); color: var(--ink-muted); }
.cp-badge::before { content: ""; width: 8px; height: 8px; flex: none; background: currentColor; border-radius: 50%; }
.cp-badge--active { background: var(--success-soft); color: var(--success); }
.cp-badge--trial { background: var(--info-soft); color: var(--info); }
.cp-badge--trial::before { background: transparent; border: 2px solid currentColor; }
.cp-badge--pastdue { background: var(--warning-soft); color: var(--warning); }
.cp-badge--pastdue::before { border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); width: 9px; }
.cp-badge--suspended { background: var(--danger-soft); color: var(--danger); }
.cp-badge--suspended::before { border-radius: 2px; }
.cp-badge--provisioning { background: var(--brand-soft); color: var(--brand); }
.cp-badge--provisioning::before { animation: cp-pulse-dot 1.4s var(--ease-expressive) infinite alternate; }
@keyframes cp-pulse-dot { from { transform: scale(.7); } to { transform: scale(1.15); } }
[data-theme="hc-dark"] .cp-badge, [data-theme="hc-light"] .cp-badge { border: 1px solid currentColor; }
.cp-help { font-size: calc(13px * var(--ts)); color: var(--ink-muted); }
.cp-error { display: flex; gap: 6px; align-items: center; font: 500 calc(13px * var(--ts))/1.3 var(--font-sans); color: var(--danger); }
.cp-error::before { content: "!"; display: grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--danger); color: var(--danger-ink); font-size: 11px; font-weight: 700; }
.cp-skel { position: relative; overflow: hidden; background: var(--surface-3); border-radius: var(--radius-sm); }
.cp-skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--brand-soft), transparent); animation: cp-shimmer 1.4s linear infinite; }
[data-a11y-motion="reduced"] .cp-skel::after, [data-a11y-motion="off"] .cp-skel::after { display: none; }
.cp-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font: 500 calc(14px * var(--ts))/1.3 var(--font-sans); color: var(--ink); }
.cp-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cp-toggle__track { position: relative; width: 44px; height: 26px; flex: none; border-radius: var(--radius-pill); background: var(--surface-3); border: 1px solid var(--line-strong); transition: background-color var(--dur-3) var(--ease-productive); }
.cp-toggle__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-muted); transition: transform var(--dur-3) var(--ease-spring), background-color var(--dur-3); }
.cp-toggle input:checked + .cp-toggle__track { background: var(--brand-fill); border-color: var(--brand-fill); }
.cp-toggle input:checked + .cp-toggle__track::after { transform: translateX(18px); background: var(--brand-fill-ink); }
.cp-toggle input:focus-visible + .cp-toggle__track { outline: var(--focus-w) solid var(--focus); outline-offset: 2px; }
.cp-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--line); }
.cp-seg button { height: calc(32px * var(--ts)); min-width: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-muted); font: 500 calc(13px * var(--ts))/1 var(--font-sans); cursor: pointer; transition: background-color var(--dur-2), color var(--dur-2); }
.cp-seg button[aria-pressed="true"] { background: var(--surface-1); color: var(--ink); box-shadow: var(--shadow-1); }
[data-theme="hc-dark"] .cp-seg button[aria-pressed="true"], [data-theme="hc-light"] .cp-seg button[aria-pressed="true"] { outline: 2px solid var(--ink); }
.cp-avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; font: 600 12px/1 var(--font-display); color: var(--brand-fill-ink); background: var(--brand-fill); }
.cp-avatar--b { background: var(--accent); color: #1a0a03; }
.cp-avatar--c { background: var(--volt); color: #121500; }
.cp-avatar--d { background: var(--info); color: #001521; }
[data-theme="light"] .cp-avatar--b, [data-theme="light"] .cp-avatar--c, [data-theme="light"] .cp-avatar--d, [data-theme="hc-light"] .cp-avatar--b, [data-theme="hc-light"] .cp-avatar--c, [data-theme="hc-light"] .cp-avatar--d { color: #ffffff; }
.cp-tenant { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cp-tenant b { display: block; font-weight: 600; }
.cp-tenant small { color: var(--ink-muted); font-size: calc(12px * var(--ts)); }
.cp-health { display: inline-flex; align-items: center; gap: 6px; font-size: calc(13px * var(--ts)); color: var(--ink-muted); white-space: nowrap; }
.cp-health i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cp-health--good i { background: var(--success); }
.cp-health--watch i { background: var(--warning); border-radius: 2px; transform: rotate(45deg); width: 9px; height: 9px; }
.cp-health--risk i { background: var(--danger); border-radius: 2px; }
.cp-toast { display: flex; align-items: center; gap: 12px; min-width: 320px; max-width: 440px; padding: 12px 12px 12px 16px; border-radius: var(--radius-md); background: var(--surface-1); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); animation: cp-toast-in var(--dur-3) var(--ease-spring) both; font-size: calc(14px * var(--ts)); }
.cp-toast__icon { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--success-soft); color: var(--success); font-weight: 700; }
.cp-toast__msg { flex: 1; }
.cp-side { display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; background: var(--surface-1); border-right: 1px solid var(--line); }
.cp-logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font: 700 calc(15px * var(--ts))/1 var(--font-display); letter-spacing: .02em; white-space: nowrap; }
.cp-logo__mark { box-sizing: border-box; width: 28px; height: 28px; flex: none; padding: 3px; border-radius: 9px; background: conic-gradient(from 0deg, #2ee6c5, #d8f04a, #ff7a45, #2ee6c5); animation: cp-spin 14s linear infinite; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
[data-a11y-motion="reduced"] .cp-logo__mark { animation: none; }
@media (prefers-reduced-motion: reduce) { :root:not([data-a11y-motion="full"]) .cp-logo__mark { animation: none; } }
.cp-nav { position: relative; display: grid; gap: 2px; }
.cp-nav a { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; height: calc(38px * var(--ts)); padding: 0 10px; border-radius: 10px; color: var(--ink-muted); text-decoration: none; font: 500 calc(14px * var(--ts))/1 var(--font-sans); transition: color var(--dur-2); white-space: nowrap; }
.cp-nav a:hover { color: var(--ink); }
.cp-nav a[aria-current="page"] { color: var(--ink); }
.cp-nav svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cp-nav a[aria-current="page"] svg { stroke: var(--brand); }
.cp-nav__ind { position: absolute; left: 0; right: 0; top: 0; height: calc(38px * var(--ts)); border-radius: 10px; background: var(--surface-3); box-shadow: inset 3px 0 0 var(--brand); transition: transform var(--dur-4) var(--ease-spring); will-change: transform; }
.cp-top { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.cp-search { flex: 1; max-width: 420px; min-width: 0; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-muted); font-size: calc(14px * var(--ts)); white-space: nowrap; overflow: hidden; }
.cp-kbd { margin-left: auto; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-strong); font: 500 11px/1.4 var(--font-mono); color: var(--ink-muted); }
.cp-iconbtn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; transition: background-color var(--dur-2), transform var(--dur-1); }
.cp-iconbtn:hover { background: var(--surface-3); }
.cp-iconbtn:active { transform: scale(.95); }
.cp-iconbtn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Board 12b Public status page (st- prefix) ===== */
.st { position: relative; overflow: hidden; isolation: isolate; background: var(--ground); color: var(--ink); font-family: var(--font-sans); font-size: calc(15px * var(--ts)); line-height: 1.55; -webkit-font-smoothing: antialiased; }
.st .cp-ambient { opacity: .14; }
.st__scroll { position: relative; }
.st--live .st__scroll { height: 100%; overflow-y: auto; }
.st-wrap { margin: 0 auto; max-width: 1120px; padding: 0 48px; }
.st--tl .st-wrap { padding: 0 36px; }
.st--tp .st-wrap { padding: 0 32px; }
.st--ph .st-wrap { padding: 0 16px; }
/* prototype bar (prototype only) */
.st-proto { border-bottom: 1px dashed var(--line-strong); background: var(--surface-1); }
.st-proto .st-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; font-size: calc(12.5px * var(--ts)); color: var(--ink-muted); }
.st-proto .cp-seg { flex-wrap: wrap; }
/* header */
.st-top .st-wrap { display: flex; align-items: center; gap: 12px; height: 72px; }
.st--ph .st-top .st-wrap { height: 60px; }
.st-mark { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.st-mark__sep { width: 1px; height: 22px; background: var(--line-strong); }
.st-mark b { font: 600 calc(15px * var(--ts))/1 var(--font-display); color: var(--ink-muted); }
.st-tz { margin-left: auto; color: var(--ink-muted); font-size: calc(12.5px * var(--ts)); }
/* tabs */
.st-tabs .st-wrap { display: flex; gap: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.st-tabs button { appearance: none; border: 0; background: transparent; color: var(--ink-muted); font: 600 calc(14px * var(--ts))/1 var(--font-sans); height: calc(40px * var(--ts)); padding: 0 14px; border-radius: 10px; cursor: pointer; position: relative; }
.st-tabs button:hover { color: var(--ink); background: var(--surface-2); }
.st-tabs button[aria-selected="true"] { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 -3px 0 var(--brand); }
[data-theme^="hc-"] .st-tabs button[aria-selected="true"] { box-shadow: inset 0 -4px 0 var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.st--ph .st-tabs .st-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.st--ph .st-tabs button { padding: 0 8px; }
/* body */
.st-body .st-wrap { padding-top: 28px; padding-bottom: 64px; }
.st--ph .st-body .st-wrap { padding-top: 18px; padding-bottom: 44px; }
.st-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; color: var(--brand); font: 600 calc(14px * var(--ts))/1.4 var(--font-sans); text-decoration: none; cursor: pointer; min-height: 24px; }
.st-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.st-backrow { display: block; }
.st-head { margin: 0 0 20px; }
.st-head h1 { margin: 0; font: 600 calc(32px * var(--ts))/1.2 var(--font-display); letter-spacing: -.02em; }
.st--ph .st-head h1 { font-size: calc(25px * var(--ts)); }
.st-head p { margin: 8px 0 0; color: var(--ink-muted); }
.st-head .st-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
/* hero */
.st-hero { display: flex; align-items: center; gap: 16px; padding: 22px 24px; margin: 0 0 20px; border-radius: var(--radius-lg); background: var(--surface-1); border: 1px solid var(--line); box-shadow: var(--shadow-1), inset 5px 0 0 var(--tone); --tone: var(--success); }
.st--ph .st-hero { padding: 16px; gap: 12px; align-items: flex-start; }
.st-hero__ic { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--tone) 18%, transparent); color: var(--tone); }
.st--ph .st-hero__ic { width: 40px; height: 40px; }
.st-hero__ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.st--ph .st-hero__ic svg { width: 22px; height: 22px; }
.st-hero__t { flex: 1; min-width: 0; }
.st-hero h1 { margin: 0; font: 600 calc(26px * var(--ts))/1.25 var(--font-display); letter-spacing: -.015em; }
.st--ph .st-hero h1 { font-size: calc(21px * var(--ts)); }
.st-hero p { margin: 4px 0 0; }
.st-hero small { display: block; margin-top: 6px; color: var(--ink-muted); font-size: calc(12.5px * var(--ts)); }
.st-hero--live .st-hero__ic { animation: st-pulse 2.4s var(--ease-productive) infinite; }
@keyframes st-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tone) 40%, transparent); } 50% { box-shadow: 0 0 0 8px transparent; } }
[data-a11y-motion="reduced"] .st-hero--live .st-hero__ic, .st--static .st-hero--live .st-hero__ic { animation: none; }
[data-theme^="hc-"] .st-hero { border: 2px solid var(--tone); box-shadow: inset 7px 0 0 var(--tone); }
.st-t--ok { --tone: var(--success); } .st-t--slow { --tone: var(--warning); } .st-t--part { --tone: var(--accent); } .st-t--down { --tone: var(--danger); } .st-t--maint { --tone: var(--info); } .st-t--none { --tone: var(--line-strong); }
/* layout */
.st-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.st-grid--one { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.st--tp .st-grid, .st--ph .st-grid { grid-template-columns: minmax(0, 1fr); }
.st--ph .st-grid { gap: 14px; }
.st-col { display: grid; gap: 20px; min-width: 0; }
.st--ph .st-col { gap: 14px; }
/* card */
.st-card { position: relative; min-width: 0; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--surface-1); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.st--ph .st-card { padding: 16px; }
.st-card--tone { box-shadow: var(--shadow-1), inset 4px 0 0 var(--tone); }
[data-theme^="hc-"] .st-card { border-color: var(--line-strong); box-shadow: none; }
[data-theme^="hc-"] .st-card--tone { box-shadow: inset 6px 0 0 var(--tone); }
.st-card__tag { display: inline-block; margin: 0 0 6px; font: 700 calc(11.5px * var(--ts))/1.4 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--tone); }
.st-card h2 { margin: 0 0 4px; font: 600 calc(18px * var(--ts))/1.35 var(--font-display); }
.st-card__sub { margin: 0 0 12px; color: var(--ink-muted); font-size: calc(13.5px * var(--ts)); }
.st-card > :last-child { margin-bottom: 0; }
.st-p { margin: 0 0 12px; }
.st-p b { font-weight: 600; }
.st-note { margin: 0 0 12px; color: var(--ink-muted); font-size: calc(13px * var(--ts)); }
.st-chip { display: inline; padding: 1px 6px; border-radius: 6px; background: var(--warning-soft); border: 1px dashed var(--warning); color: var(--ink); font: 500 .84em/1.6 var(--font-mono); overflow-wrap: anywhere; }
[data-theme^="hc-"] .st-chip { border-style: solid; border-width: 2px; }
.st-kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px 14px; margin: 0 0 12px; font-size: calc(14px * var(--ts)); }
.st--ph .st-kv { grid-template-columns: 104px minmax(0, 1fr); }
.st-kv dt { color: var(--ink-muted); font-weight: 600; }
.st-kv dd { margin: 0; }
/* status pill (never colour alone: icon + words) */
.st-pill { display: inline-flex; align-items: center; gap: 6px; height: calc(26px * var(--ts)); padding: 0 10px 0 8px; border-radius: 999px; white-space: nowrap; font: 600 calc(12.5px * var(--ts))/1 var(--font-sans); color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent); }
.st-pill svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
[data-theme^="hc-"] .st-pill { background: var(--surface-1); border: 2px solid var(--tone); color: var(--ink); }
[data-theme^="hc-"] .st-pill svg { color: var(--tone); }
/* parts list */
.st-parts { display: grid; margin: 0 0 4px; }
.st-part { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.st-part:first-child { border-top: 0; padding-top: 4px; }
.st-part b { display: block; font-weight: 600; }
.st-part small { display: block; color: var(--ink-muted); font-size: calc(13px * var(--ts)); }
/* status key */
.st-key { display: grid; gap: 10px; margin: 0 0 12px; }
.st-key div { display: grid; gap: 4px; justify-items: start; }
.st-key p { margin: 0; font-size: calc(13.5px * var(--ts)); color: var(--ink-muted); }
.st--tp .st-key { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
/* timeline */
.st-tl { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 0; }
.st-tl li { position: relative; display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 14px; padding: 0 0 16px; }
.st--ph .st-tl li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding-left: 20px; }
.st-tl li::before { content: ""; position: absolute; left: 96px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface-1); border: 2px solid var(--tone); }
.st-tl li::after { content: ""; position: absolute; left: 100px; top: 20px; bottom: 2px; width: 2px; background: var(--line); }
.st-tl li:last-child::after { display: none; }
.st--ph .st-tl li::before { left: 0; }
.st--ph .st-tl li::after { left: 4px; }
.st-tl time { color: var(--ink-muted); font: 600 calc(13px * var(--ts))/1.5 var(--font-sans); font-variant-numeric: tabular-nums; }
.st-tl div { padding-left: 22px; }
.st--ph .st-tl div { padding-left: 0; }
.st-tl b { display: block; font-weight: 600; color: var(--tone); }
[data-theme^="hc-"] .st-tl b { color: var(--ink); text-decoration: underline; text-decoration-color: var(--tone); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.st-tl p { margin: 2px 0 0; }
/* incident list */
.st-inc { display: grid; margin: 0 0 8px; }
.st-irow { display: grid; grid-template-columns: 92px minmax(0, 1fr) 176px 96px; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.st-irow:first-child { border-top: 0; padding-top: 2px; }
.st--tl .st-irow { grid-template-columns: 84px minmax(0, 1fr) 176px 88px; }
.st--ph .st-irow, .st-inc--c .st-irow { grid-template-columns: minmax(0, 1fr) 84px; gap: 4px 10px; }
.st--ph .st-irow time, .st-inc--c .st-irow time, .st--ph .st-irow .st-i__d, .st-inc--c .st-irow .st-i__d { grid-column: 1 / -1; }
.st--ph .st-irow .st-pill, .st-inc--c .st-irow .st-pill { grid-column: 1; justify-self: start; margin-top: 4px; }
.st--ph .st-irow .st-i__btn, .st-inc--c .st-irow .st-i__btn { grid-column: 2; align-self: center; margin-top: 4px; }
.st-irow time { color: var(--ink-muted); font-weight: 600; font-size: calc(13.5px * var(--ts)); font-variant-numeric: tabular-nums; }
.st-irow b { display: block; font-weight: 600; }
.st-irow small { display: block; color: var(--ink-muted); font-size: calc(13px * var(--ts)); }
.st-i__btn { justify-self: end; }
.st-i__btn .cp-btn { width: 100%; }
.st-empty { margin: 0; padding: 10px 0 2px; color: var(--ink-muted); }
/* 90-day bars */
.st-up { display: grid; gap: 16px; margin: 0 0 14px; }
.st-uprow__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.st-uprow__top b { font-weight: 600; }
.st-uprow__top span { color: var(--ink-muted); font-size: calc(13px * var(--ts)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-bars { display: flex; gap: 2px; height: 30px; }
.st--ph .st-bars { gap: 3px; height: 26px; }
.st-bars i { flex: 1; min-width: 0; border-radius: 3px; background: var(--success); opacity: .85; }
.st-bars i.b-slow { background: var(--warning); opacity: 1; }
.st-bars i.b-part { background: var(--accent); opacity: 1; }
.st-bars i.b-down { background: var(--danger); opacity: 1; }
.st-bars i.b-maint { background: var(--info); opacity: 1; }
.st-bars i.b-none { background: var(--surface-3); opacity: 1; }
[data-theme^="hc-"] .st-bars i.b-slow, [data-theme^="hc-"] .st-bars i.b-part, [data-theme^="hc-"] .st-bars i.b-down, [data-theme^="hc-"] .st-bars i.b-maint { outline: 2px solid var(--ink); outline-offset: -1px; }
.st-bars__ax { display: flex; justify-content: space-between; margin-top: 4px; color: var(--ink-muted); font-size: calc(12px * var(--ts)); }
.st-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 12px; font-size: calc(13px * var(--ts)); color: var(--ink-muted); }
.st-legend span { display: inline-flex; align-items: center; gap: 6px; }
.st-legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--success); }
.st-legend i.b-slow { background: var(--warning); } .st-legend i.b-part { background: var(--accent); } .st-legend i.b-down { background: var(--danger); } .st-legend i.b-maint { background: var(--info); } .st-legend i.b-none { background: var(--surface-3); border: 1px solid var(--line-strong); }
/* form */
.st-field { display: grid; gap: 6px; margin: 0 0 16px; }
.st-field > span { font-weight: 600; font-size: calc(14px * var(--ts)); }
.st-field .cp-input { width: 100%; height: calc(44px * var(--ts)); padding: 0 12px; border-radius: 10px; font: 500 calc(15px * var(--ts))/1 var(--font-sans); background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-strong); box-sizing: border-box; }
.st-field .cp-input::placeholder { color: var(--ink-muted); }
[data-theme^="hc-"] .st-field .cp-input { border-width: 2px; }
.st-lab { margin: 0 0 8px; font-weight: 600; font-size: calc(14px * var(--ts)); }
.st-opts { display: grid; gap: 8px; margin: 0 0 16px; }
.st-opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st--ph .st-opts--2 { grid-template-columns: minmax(0, 1fr); }
.st-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; }
.st-opt input { margin: 3px 0 0; flex: none; width: 16px; height: 16px; accent-color: var(--brand); }
.st-opt b { display: block; font-weight: 600; font-size: calc(14px * var(--ts)); }
.st-opt small { display: block; color: var(--ink-muted); font-size: calc(12.5px * var(--ts)); }
.st-opt--on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--surface-2)); }
[data-theme^="hc-"] .st-opt { border-color: var(--line-strong); }
[data-theme^="hc-"] .st-opt--on { border-width: 2px; }
.st-acts { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
.st--ph .st-acts .cp-btn { flex: 1 1 100%; white-space: normal; }
.st-err { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--line-strong); font-size: calc(13.5px * var(--ts)); }
/* footer */
.st-foot { border-top: 1px solid var(--line); }
.st-foot .st-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; font-size: calc(13px * var(--ts)); line-height: 1.5; color: var(--ink-muted); }
.st--tp .st-foot .st-wrap, .st--ph .st-foot .st-wrap { flex-direction: column; align-items: flex-start; }
.st-foot p { margin: 0; max-width: 560px; }
.st-foot nav { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.st-foot a { color: var(--brand); text-decoration: none; font-weight: 500; min-height: 24px; display: inline-flex; align-items: center; }
[data-theme^="hc-"] .st-foot a, [data-theme^="hc-"] .st-back { text-decoration: underline; text-underline-offset: 3px; }
/* toast (prototype) */
.st-toast { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 5; }
.st--ph .st-toast .cp-toast { min-width: 0; max-width: 350px; }
.st-in { animation: cp-fade var(--dur-4) var(--ease-enter) both; }
[data-a11y-motion="reduced"] .st-in { animation: none; }
.st-irow > .st-pill { justify-self: start; }
