/*
 * Tech9IQ UI kit — the look of the AWS module (Tech9IQ/aws_observability, main),
 * rebuilt in plain CSS so the Ops Console, Customer-Login and Billing share it.
 * The same file lives in each of those repos; change it in all three.
 *
 * Values are the AWS module's own (its tailwind.config.js brand/semantic scales
 * plus Tailwind's slate), with its known inconsistencies fixed rather than copied:
 * one input style, one focus ring, header and top bar the same height, success
 * notices with a green border, light chart colours.
 *
 * Icons: /assets/icons.svg (lucide 0.446), used as
 *   <svg class="i"><use href="/assets/icons.svg#i-server"/></svg>
 */

:root {
  /* Brand (Tech9IQ) */
  --t9-brand-50:#eef4f7; --t9-brand-100:#d6e4ee; --t9-brand-200:#b7ced9; --t9-brand-300:#98b7c7; --t9-brand-400:#7a9eb2;
  --t9-brand-500:#5b788a; --t9-brand-600:#4c6575; --t9-brand-700:#3d525f; --t9-brand-800:#2f3f49; --t9-brand-900:#212c33;
  --t9-accent-400:#6ed2f5; --t9-accent-500:#46c4f2; --t9-accent-600:#3aafe0;

  /* Status: badge fill / solid / text. 2026-10-07 (spec §8.1): the brand palette,
     no traffic-light green or yellow. Success is the accent, warning steel with
     an accent outline (warning-200), info steel; danger stays red, for one small
     mark only. Was: success #d5edd5/#a9d8aa/#71c173/#3a7a3b, warning
     #fef5e0/#fbe2a6/#f39c12/#b7770d, info #d0eef9/#a5dcf1/#46c4f2/#1a7aa8. */
  --t9-success-50:#e1f4fb; --t9-success-200:#ade0f3; --t9-success-500:#46c4f2; --t9-success-700:#13708f;
  --t9-warning-50:#f2f7fa; --t9-warning-200:#46c4f2; --t9-warning-500:#4c6575; --t9-warning-700:#3d525f;
  --t9-danger-50:#fce8e6;  --t9-danger-200:#f6c3bd;  --t9-danger-500:#e74c3c;  --t9-danger-700:#c0392b;
  --t9-info-50:#eef4f7;    --t9-info-200:#b7ced9;    --t9-info-500:#5b788a;    --t9-info-700:#3d525f;

  /* Neutrals (slate) */
  --t9-slate-50:#f8fafc; --t9-slate-100:#f1f5f9; --t9-slate-200:#e2e8f0; --t9-slate-300:#cbd5e1; --t9-slate-400:#94a3b8;
  --t9-slate-500:#64748b; --t9-slate-600:#475569; --t9-slate-700:#334155; --t9-slate-800:#1e293b; --t9-slate-900:#0f172a;

  /* Soft hues for notices and soft buttons */
  --t9-red-50:#fef2f2; --t9-red-100:#fee2e2; --t9-red-200:#fecaca; --t9-red-600:#dc2626; --t9-red-700:#b91c1c;
  /* 2026-10-07 (spec §8.1) amber and emerald in the brand palette too (was amber #fffbeb…#b45309, emerald #ecfdf5…#047857). */
  --t9-amber-50:#f2f7fa; --t9-amber-200:#7fd3f2; --t9-amber-300:#98b7c7; --t9-amber-500:#5b788a; --t9-amber-700:#3d525f;
  --t9-emerald-50:#e1f4fb; --t9-emerald-100:#c9ebf8; --t9-emerald-200:#ade0f3; --t9-emerald-700:#13708f;
  --t9-sky-50:#f0f9ff; --t9-sky-200:#bae6fd; --t9-sky-700:#0369a1;

  /* Roles */
  --t9-bg-page: var(--t9-slate-50);
  --t9-bg-surface: #ffffff;
  --t9-bg-muted: var(--t9-slate-50);
  --t9-bg-sunken: var(--t9-slate-100);
  --t9-border: var(--t9-slate-200);
  --t9-border-control: var(--t9-slate-300);
  --t9-text: var(--t9-slate-900);
  --t9-text-title2: var(--t9-slate-800);
  --t9-text-body: var(--t9-slate-700);
  --t9-text-muted: var(--t9-slate-600);
  --t9-text-secondary: var(--t9-slate-500);
  --t9-text-faint: var(--t9-slate-400);
  --t9-text-ghost: var(--t9-slate-300);
  --t9-primary: var(--t9-brand-600);
  --t9-primary-hover: var(--t9-brand-700);
  --t9-link: var(--t9-brand-600);
  --t9-selected-bg: var(--t9-brand-50);
  --t9-selected-text: var(--t9-brand-700);
  --t9-tab-active: var(--t9-brand-500);
  --t9-focus: var(--t9-accent-500);
  --t9-overlay: rgba(15, 23, 42, .55);
  --t9-skeleton: rgba(226, 232, 240, .7);
  /* Surfaces above the page: popovers and menus, the top bar and sidebar,
     tooltips (dark in both themes), and a plate for a brand logo that can't
     sit on the background as it is (only where unreadable, spec §2). */
  --t9-bg-raised: #ffffff;
  --t9-bg-chrome: #ffffff;
  --t9-bg-hover: var(--t9-slate-50);
  --t9-tooltip-bg: var(--t9-slate-900);
  --t9-tooltip-text: #ffffff;
  --t9-on-solid: #ffffff;
  --t9-accent-text: #187b9b;
  --t9-aws-ink: #232f3e; /* the "aws" of its mark (cloud-icons.svg), light on dark */
  --t9-vmware-ink: #717074; /* the "vm" of VMware's mark (cloud-icons.svg), VMware grey; lighter on dark */
  --t9-terminal-bg: #0f172a;
  --t9-terminal-text: #e2e8f0;
  --t9-logo-plate: transparent;
  --t9-icon: var(--t9-text-faint);
  --t9-icon-active: var(--t9-brand-600);
  --t9-code-bg: var(--t9-slate-100);
  --t9-code-text: var(--t9-slate-800);
  --t9-scrollbar: var(--t9-slate-300);
  color-scheme: light;

  /* Charts (light UI) */
  /* 2026-10-07 (spec §8.1) the brand palette's blues and tints (was blue, green, amber, red, violet, cyan, pink). */
  --t9-chart-1:#4c6575; --t9-chart-2:#46c4f2; --t9-chart-3:#212c33; --t9-chart-4:#98b7c7; --t9-chart-5:#1a7aa8; --t9-chart-6:#7a9eb2; --t9-chart-7:#b5e6f8;
  --t9-chart-grid: var(--t9-slate-200); --t9-chart-tick: var(--t9-slate-500);

  /* Type */
  --t9-font-sans: 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --t9-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  --t9-fs-10:10px; --t9-fs-11:11px;
  --t9-fs-xs:12px;  --t9-lh-xs:16px;
  --t9-fs-sm:14px;  --t9-lh-sm:20px;
  --t9-fs-base:16px;--t9-lh-base:24px;
  --t9-fs-lg:18px;  --t9-lh-lg:28px;
  --t9-fs-xl:20px;  --t9-lh-xl:28px;
  --t9-fs-2xl:24px; --t9-lh-2xl:32px;
  --t9-fw-regular:400; --t9-fw-medium:500; --t9-fw-semibold:600;
  --t9-tracking-wide:.025em;

  /* Shape / elevation */
  --t9-radius-sm:4px; --t9-radius-md:6px; --t9-radius-lg:8px; --t9-radius-xl:12px; --t9-radius-full:9999px;
  --t9-shadow-card:0 2px 8px rgba(44, 62, 80, .08);
  --t9-shadow-sm:0 1px 2px 0 rgb(0 0 0 / .05);
  --t9-shadow-lg:0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --t9-shadow-xl:0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
  --t9-shadow-2xl:0 25px 50px -12px rgb(0 0 0 / .25);
  --t9-ring-focus: 0 0 0 2px var(--t9-accent-500);

  /* Layout */
  --t9-sidebar-w:288px; --t9-bar-h:56px; --t9-content-pad:24px;
  --t9-content-max:1152px; --t9-detail-max:1024px;
  --t9-control-h:34px;
  --t9-ease:cubic-bezier(.4, 0, .2, 1); --t9-dur:150ms;
}

/* ---------- Dark theme (2026-10-07) ----------
 * <html data-theme="dark">, set before first paint from the t9_theme cookie
 * (/assets/t9-theme.js). The website's dark palette (tech9iq-website
 * docs/THEME_GUIDE.md, assets/theme-v15.css): a near-black base, dark panes,
 * low-contrast steel-blue borders, light grey-blue text and the brand accent
 * #46c4f2 kept. The scales are turned round, so a rule written for light
 * (a slate-50 fill, slate-700 text, a success-50 badge with success-700 text)
 * reads the same way on dark without being rewritten. The same block is in
 * Customer-Login's and Billing's copy of this file.
 */
:root[data-theme="dark"] {
  color-scheme: dark;
  --t9-brand-50:#111b22; --t9-brand-100:#16242e; --t9-brand-200:#1f3340; --t9-brand-300:#2d4a5b; --t9-brand-400:#4f7286;
  --t9-brand-500:#7fa3b8; --t9-brand-600:#9dbccd; --t9-brand-700:#b9d1de; --t9-brand-800:#d4e3ec; --t9-brand-900:#e8f0f5;
  --t9-accent-400:#8adcf8; --t9-accent-500:#46c4f2; --t9-accent-600:#68d2f5;

  --t9-success-50:#0b2532; --t9-success-200:#124a63; --t9-success-500:#46c4f2; --t9-success-700:#7fd6f6;
  --t9-warning-50:#111b22; --t9-warning-200:#46c4f2; --t9-warning-500:#7fa3b8; --t9-warning-700:#b9d1de;
  --t9-danger-50:#2b1412;  --t9-danger-200:#5a231d;  --t9-danger-500:#e74c3c;  --t9-danger-700:#f3968b;
  --t9-info-50:#111b22;    --t9-info-200:#2d4a5b;    --t9-info-500:#7fa3b8;    --t9-info-700:#b9d1de;

  --t9-slate-50:#121920; --t9-slate-100:#172029; --t9-slate-200:#222d37; --t9-slate-300:#33414d; --t9-slate-400:#6b7d8a;
  --t9-slate-500:#8798a4; --t9-slate-600:#a3b1bb; --t9-slate-700:#c3cdd4; --t9-slate-800:#dbe3e8; --t9-slate-900:#edf3f6;

  --t9-red-50:#2b1414; --t9-red-100:#3a1a1a; --t9-red-200:#5c2626; --t9-red-600:#e5534b; --t9-red-700:#f59b94;
  --t9-amber-50:#111b22; --t9-amber-200:#2b6a86; --t9-amber-300:#3d7590; --t9-amber-500:#7fa3b8; --t9-amber-700:#b9d1de;
  --t9-emerald-50:#0b2532; --t9-emerald-100:#0f3042; --t9-emerald-200:#124a63; --t9-emerald-700:#7fd6f6;
  --t9-sky-50:#0b2232; --t9-sky-200:#164a66; --t9-sky-700:#8ad6fb;

  --t9-bg-page: #05080b;
  --t9-bg-surface: #0d1217;
  --t9-bg-muted: #121920;
  --t9-bg-sunken: #0a0f13;
  --t9-bg-raised: #141b22;
  --t9-bg-chrome: #0a0e12;
  --t9-bg-hover: #16202a;
  --t9-border: #212c35;
  --t9-border-control: #34434f;
  --t9-text: #edf3f6;
  --t9-text-title2: #dbe3e8;
  --t9-text-body: #c3cdd4;
  --t9-text-muted: #b7c1c9;
  --t9-text-secondary: #8f9fab;
  --t9-text-faint: #6f818e;
  --t9-text-ghost: #44535f;
  --t9-primary: #2f7393;
  --t9-primary-hover: #3a86a9;
  --t9-link: #68d2f5;
  --t9-selected-bg: rgba(70, 196, 242, .12);
  --t9-selected-text: #8adcf8;
  --t9-tab-active: #46c4f2;
  --t9-focus: #46c4f2;
  --t9-overlay: rgba(0, 0, 0, .66);
  --t9-skeleton: rgba(155, 193, 211, .10);
  --t9-tooltip-bg: #e8f0f5;
  --t9-tooltip-text: #0d1217;
  --t9-logo-plate: rgba(255, 255, 255, .92);
  --t9-icon: #7d8f9c;
  --t9-icon-active: #68d2f5;
  --t9-code-bg: #0a0f13;
  --t9-code-text: #dbe3e8;
  --t9-scrollbar: #33414d;
  --t9-accent-text: #68d2f5;
  --t9-aws-ink: #e8eef2;
  --t9-vmware-ink: #b9b8bd;
  --t9-terminal-bg: #05080b;
  --t9-terminal-text: #dbe3e8;

  --t9-chart-1:#7fa3b8; --t9-chart-2:#46c4f2; --t9-chart-3:#d4e3ec; --t9-chart-4:#4f7286; --t9-chart-5:#8adcf8; --t9-chart-6:#9dbccd; --t9-chart-7:#2f7393;
  --t9-chart-grid: #1f2a33; --t9-chart-tick: #8f9fab;

  --t9-shadow-card:0 2px 10px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .03);
  --t9-shadow-sm:0 1px 2px 0 rgb(0 0 0 / .4);
  --t9-shadow-lg:0 10px 24px -4px rgb(0 0 0 / .6), 0 4px 8px -4px rgb(0 0 0 / .5);
  --t9-shadow-xl:0 20px 40px -6px rgb(0 0 0 / .65), 0 8px 12px -6px rgb(0 0 0 / .5);
  --t9-shadow-2xl:0 25px 60px -12px rgb(0 0 0 / .8);
}

/* ---------- Brand colour (2026-10-07) ----------
 * More of the brand in the details, in both themes. The colours are the
 * brand's own, not new ones: the Tech9IQ logo's three (tech = steel, 9 = cyan,
 * Q = green, /assets/tech9iq-logo.png), the sign-in page's primary button
 * gradient (Customer-Login apps/web/src/styles.css --t9-brand-gradient, the
 * website's buttons), and the website's four category accents, light and dark
 * (See / Operate / Govern / Migrate: tech9iq-website site-kit.css, as on the
 * sign-in's platform pane). /admin/brand.css puts them on the page.
 *
 * The blocks below come after the light and dark sets above and override a
 * few of their role and chart tokens; the values above are kept as they were,
 * for the record. Contrast (WCAG AA): link / primary #187b9b on white 4.8:1,
 * selected text #13708f on #e9f8fd 5.2:1, #1a252f lettering on the button
 * gradient 5.5:1 or more at every stop; the category hues are for icons, bars
 * and edges (3:1 or more on their surface), not body text.
 */
:root {
  /* The logo's three, and the gradient between them (decorative: edges, bars, the sidebar's mark). */
  --t9-brand-steel: #5b788a;
  --t9-brand-cyan: #46c4f2;
  --t9-brand-green: #71c173;
  --t9-brand-gradient: linear-gradient(90deg, #5b788a 0%, #46c4f2 50%, #71c173 100%);
  --t9-brand-gradient-v: linear-gradient(180deg, #5b788a 0%, #46c4f2 50%, #71c173 100%);
  /* The primary button's fill: the same gradient from the steel's lighter step
     (brand-400), so its dark lettering passes AA at every stop. */
  --t9-brand-btn: linear-gradient(90deg, #7a9eb2 0%, #46c4f2 50%, #71c173 100%);
  --t9-on-brand: #1a252f;
  --t9-brand-glow: rgba(70, 196, 242, .22);
  --t9-brand-wash: linear-gradient(135deg, rgba(91, 120, 138, .10) 0%, rgba(70, 196, 242, .11) 55%, rgba(113, 193, 115, .10) 100%);
  /* The website's four categories, one hue per area of the console:
     See = dashboards, NoviQ, AssetIQ; Operate = Nutanix, IBM Power and the
     hyperscalers (compute, network, storage); Govern = FinOps360, Billing,
     ServiceIQ, support, access; Migrate = SwiftIQ. */
  --t9-hue-see: #0a6f8c;     --t9-hue-see-soft: rgba(10, 111, 140, .10);
  --t9-hue-operate: #3d5a9e; --t9-hue-operate-soft: rgba(61, 90, 158, .10);
  --t9-hue-govern: #2d7f49;  --t9-hue-govern-soft: rgba(45, 127, 73, .10);
  --t9-hue-migrate: #a8720a; --t9-hue-migrate-soft: rgba(168, 114, 10, .11);
  /* The logo's steel as a fifth, quieter hue (storage, settings). */
  --t9-hue-steel: #5b788a;   --t9-hue-steel-soft: rgba(91, 120, 138, .11);
  /* Severity in bars and gauges: the steel scale the UI pass gave them (spec
     §8.1, darker as it gets worse), kept now the chart series are colours. */
  --t9-sev-critical: #212c33; --t9-sev-warning: #4c6575; --t9-sev-info: #98b7c7;

  /* Role overrides: brand teal (the website's --accent-text) for links,
     solid primaries, the selected item and the active tab. */
  --t9-link: #187b9b;
  --t9-primary: #187b9b;
  --t9-primary-hover: #13708f;
  --t9-selected-bg: #e9f8fd;
  --t9-selected-text: #13708f;
  --t9-selected-border: rgba(70, 196, 242, .55);
  --t9-tab-active: #46c4f2;
  --t9-icon-active: #187b9b;
  /* Small uppercase headings (the sidebar's, .eyebrow): the website's eyebrow teal. */
  --t9-eyebrow: #187b9b;
  /* Chart series: the brand's hues (was steel, cyan, navy and their tints). */
  --t9-chart-1:#0a6f8c; --t9-chart-2:#46c4f2; --t9-chart-3:#3d5a9e; --t9-chart-4:#2d7f49; --t9-chart-5:#5b788a; --t9-chart-6:#98b7c7; --t9-chart-7:#b5e6f8;
}
:root[data-theme="dark"] {
  --t9-brand-steel: #7fa3b8;
  --t9-brand-glow: rgba(70, 196, 242, .14);
  --t9-brand-wash: linear-gradient(135deg, rgba(91, 120, 138, .16) 0%, rgba(70, 196, 242, .12) 55%, rgba(113, 193, 115, .10) 100%);
  --t9-hue-see: #58ceee;     --t9-hue-see-soft: rgba(88, 206, 238, .12);
  --t9-hue-operate: #8aa2dc; --t9-hue-operate-soft: rgba(138, 162, 220, .14);
  --t9-hue-govern: #7fd08a;  --t9-hue-govern-soft: rgba(127, 208, 138, .12);
  --t9-hue-migrate: #f5b83d; --t9-hue-migrate-soft: rgba(245, 184, 61, .12);
  --t9-hue-steel: #9dbccd;   --t9-hue-steel-soft: rgba(157, 188, 205, .12);
  --t9-sev-critical: #d4e3ec; --t9-sev-warning: #7fa3b8; --t9-sev-info: #4f7286;
  --t9-selected-border: rgba(70, 196, 242, .45);
  /* Halfway between the website's dark accent (#68d2f5) and the dark steel (#7fa3b8): teal, not neon. */
  --t9-eyebrow: #73bad6;
  --t9-chart-1:#58ceee; --t9-chart-2:#2f7393; --t9-chart-3:#8aa2dc; --t9-chart-4:#7fd08a; --t9-chart-5:#7fa3b8; --t9-chart-6:#4f7286; --t9-chart-7:#8adcf8;
}
/* Scrollbars follow the theme. */
* { scrollbar-color: var(--t9-scrollbar) transparent; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; font-family: var(--t9-font-sans); }
body { margin: 0; background: var(--t9-bg-page); color: var(--t9-text); font-family: var(--t9-font-sans); font-size: var(--t9-fs-sm); line-height: var(--t9-lh-sm); -webkit-font-smoothing: antialiased; }
.mono, code, kbd, pre { font-family: var(--t9-font-mono); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--t9-focus); outline-offset: 2px; }

/* Icons: lucide stroke icons from the sprite. */
.i { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; }
.i-xs { width: 12px; height: 12px; } .i-sm { width: 14px; height: 14px; } .i-lg { width: 20px; height: 20px; }
@keyframes t9-spin { to { transform: rotate(360deg); } }
.spin { animation: t9-spin 1s linear infinite; }
@keyframes t9-pulse { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .spin, .skeleton { animation: none; } }

/* ---------- App shell ---------- */
.t9-app { height: 100vh; display: flex; background: var(--t9-bg-page); color: var(--t9-text); }
.sidebar { width: var(--t9-sidebar-w); flex-shrink: 0; border-right: 1px solid var(--t9-border); background: var(--t9-bg-chrome); display: flex; flex-direction: column; min-height: 0; }
.sidebar__brand { display: flex; align-items: center; gap: 8px; height: var(--t9-bar-h); padding: 0 16px; border-bottom: 1px solid var(--t9-border); flex-shrink: 0; }
.sidebar__brand img { height: 34px; width: auto; display: block; }
.sidebar__brand-divider { height: 20px; width: 1px; background: var(--t9-border); }
.sidebar__brand-name { font-size: var(--t9-fs-sm); line-height: var(--t9-lh-sm); font-weight: var(--t9-fw-semibold); color: var(--t9-text); white-space: nowrap; }
.sidebar__scroll { flex: 1; overflow-y: auto; padding: 8px 0; min-height: 0; }
.sidebar__heading { padding: 8px 16px 4px; font-size: var(--t9-fs-xs); line-height: var(--t9-lh-xs); font-weight: var(--t9-fw-semibold); text-transform: uppercase; letter-spacing: var(--t9-tracking-wide); color: var(--t9-text-secondary); }
.sidebar__heading--spaced { padding-top: 16px; }
.sidebar a, .sidebar button { font: inherit; color: inherit; background: none; border: 0; text-align: left; cursor: pointer; text-decoration: none; }
.sidebar__topLink { display: flex; width: 100%; align-items: center; gap: 8px; padding: 10px 16px; font-size: var(--t9-fs-sm); line-height: var(--t9-lh-sm); border-bottom: 1px solid var(--t9-border) !important; color: var(--t9-text-muted) !important; flex-shrink: 0; }
.sidebar__topLink:hover { background: var(--t9-slate-50) !important; }
.sidebar__topLink--back { color: var(--t9-text-secondary) !important; }
.sidebar__topLink--back:hover { color: var(--t9-text) !important; }
.sidebar__conn { padding: 12px 16px; border-bottom: 1px solid var(--t9-border); flex-shrink: 0; }
.sidebar__conn-name { font-size: var(--t9-fs-sm); line-height: var(--t9-lh-sm); font-weight: var(--t9-fw-medium); color: var(--t9-text); }
.sidebar__conn .badge { margin-top: 4px; }
.sidebar__conn-sub { font-size: var(--t9-fs-xs); line-height: var(--t9-lh-xs); color: var(--t9-text-secondary); }
.sidebar__row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 16px; font-size: var(--t9-fs-sm); line-height: var(--t9-lh-sm); color: var(--t9-text-muted) !important; }
.sidebar__row:hover { background: var(--t9-slate-50) !important; color: var(--t9-text) !important; }
.sidebar__row-label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sidebar__row-label .i { color: var(--t9-text-faint); }
.sidebar__row--ghost { color: var(--t9-text-secondary) !important; }
.sidebar__group { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 16px; font-size: var(--t9-fs-sm); line-height: var(--t9-lh-sm); font-weight: var(--t9-fw-medium); color: var(--t9-slate-700) !important; }
.sidebar__group .i { color: var(--t9-text-faint); }
.sidebar__group:hover { background: var(--t9-slate-50) !important; }
.sidebar__back { display: flex; width: 100%; align-items: center; gap: 8px; padding: 8px 16px; font-size: var(--t9-fs-sm); line-height: var(--t9-lh-sm); color: var(--t9-text-secondary) !important; }
.sidebar__back:hover { color: var(--t9-text) !important; background: var(--t9-slate-50) !important; }
.sidebar__groupHead { display: flex; align-items: center; gap: 8px; padding: 12px 16px 6px; }
.sidebar__groupHead .i { color: var(--t9-text-faint); }
.sidebar__item { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 16px; font-size: var(--t9-fs-sm); line-height: var(--t9-lh-sm); color: var(--t9-text-muted) !important; }
.sidebar__item:hover { background: var(--t9-slate-50) !important; color: var(--t9-text) !important; }
.sidebar__item:disabled, .sidebar__item[aria-disabled="true"] { color: var(--t9-text-faint) !important; cursor: not-allowed; }
.sidebar .is-active { background: var(--t9-selected-bg) !important; color: var(--t9-selected-text) !important; font-weight: var(--t9-fw-medium); }
.sidebar__footer { border-top: 1px solid var(--t9-border); padding: 12px; flex-shrink: 0; }
.sidebar__who { display: flex; align-items: center; gap: 8px; padding: 4px 12px 8px; min-width: 0; }
.sidebar__who-name { font-size: var(--t9-fs-xs); line-height: var(--t9-lh-xs); font-weight: var(--t9-fw-medium); color: var(--t9-text); }
.sidebar__who-role { font-size: var(--t9-fs-11); line-height: var(--t9-lh-xs); color: var(--t9-text-secondary); }
.sidebar__signout { display: flex; width: 100%; align-items: center; gap: 8px; border-radius: var(--t9-radius-md); padding: 8px 12px; font-size: var(--t9-fs-sm); line-height: var(--t9-lh-sm); color: var(--t9-text-muted) !important; }
.sidebar__signout:hover { background: var(--t9-slate-50) !important; color: var(--t9-text) !important; }

.main-col { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--t9-bar-h); padding: 0 24px; border-bottom: 1px solid var(--t9-border); background: var(--t9-bg-chrome); flex-shrink: 0; }
.topbar__right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.content { flex: 1; overflow-y: auto; padding: var(--t9-content-pad); }
.container { max-width: var(--t9-content-max); margin: 0 auto; }
.detail { max-width: var(--t9-detail-max); }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; align-items: center; gap: 6px; font-size: var(--t9-fs-xs); line-height: var(--t9-lh-xs); color: var(--t9-text-secondary); min-width: 0; overflow: hidden; white-space: nowrap; }
.crumbs .i { width: 12px; height: 12px; color: var(--t9-text-ghost); }
.crumbs a, .crumbs button { color: inherit; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.crumbs a:hover, .crumbs button:hover { color: var(--t9-text); text-decoration: underline; }
.crumbs__current { font-weight: var(--t9-fw-medium); color: var(--t9-slate-700); overflow: hidden; text-overflow: ellipsis; }

/* ---------- Headings ---------- */
.h1 { margin: 0; font-size: var(--t9-fs-lg); line-height: var(--t9-lh-lg); font-weight: var(--t9-fw-semibold); color: var(--t9-text); display: flex; align-items: center; gap: 8px; }
.h2 { margin: 0; font-size: var(--t9-fs-sm); line-height: var(--t9-lh-sm); font-weight: var(--t9-fw-semibold); color: var(--t9-text-title2); }
.eyebrow { font-size: var(--t9-fs-xs); line-height: var(--t9-lh-xs); font-weight: var(--t9-fw-semibold); text-transform: uppercase; letter-spacing: var(--t9-tracking-wide); color: var(--t9-text-secondary); }
.desc { margin: 0; font-size: var(--t9-fs-xs); line-height: var(--t9-lh-xs); color: var(--t9-text-secondary); }
.section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Buttons ---------- */
.t9-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--t9-control-h); border-radius: var(--t9-radius-md); padding: 0 12px; font: inherit; font-size: var(--t9-fs-sm); line-height: var(--t9-lh-sm); font-weight: var(--t9-fw-medium); white-space: nowrap; cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: background var(--t9-dur) var(--t9-ease), color var(--t9-dur) var(--t9-ease), border-color var(--t9-dur) var(--t9-ease); }
.t9-btn .i { width: 14px; height: 14px; }
.t9-btn:disabled { opacity: .5; cursor: not-allowed; }
.t9-btn--primary { background: var(--t9-primary); color: #fff; }
.t9-btn--primary:hover:not(:disabled) { background: var(--t9-primary-hover); }
.t9-btn--secondary { background: var(--t9-bg-surface); color: var(--t9-slate-700); border-color: var(--t9-border-control); }
.t9-btn--secondary:hover:not(:disabled) { background: var(--t9-slate-50); color: var(--t9-text); }
.t9-btn--ghost { background: transparent; color: var(--t9-text-muted); font-weight: var(--t9-fw-regular); }
.t9-btn--ghost:hover:not(:disabled) { background: var(--t9-slate-100); color: var(--t9-text); }
.t9-btn--danger { background: var(--t9-red-600); color: #fff; }
.t9-btn--danger:hover:not(:disabled) { background: var(--t9-red-700); }
.t9-btn--danger-soft { background: var(--t9-red-50); color: var(--t9-red-700); }
.t9-btn--danger-soft:hover:not(:disabled) { background: var(--t9-red-100); }
.t9-btn--sm { height: 28px; padding: 0 8px; font-size: var(--t9-fs-xs); line-height: var(--t9-lh-xs); gap: 4px; }
.t9-btn--block { width: 100%; height: 38px; }
.icon-btn-t9 { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: var(--t9-radius-md); border: 0; background: transparent; color: var(--t9-text-secondary); cursor: pointer; }
.icon-btn-t9:hover { background: var(--t9-slate-100); color: var(--t9-text); }
.t9-link { color: var(--t9-link); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.t9-link:hover { text-decoration: underline; }

/* ---------- Form controls ---------- */
.t9-label { display: block; margin-bottom: 4px; font-size: var(--t9-fs-xs); line-height: var(--t9-lh-xs); font-weight: var(--t9-fw-medium); color: var(--t9-text-muted); }
.t9-help { margin-top: 4px; font-size: var(--t9-fs-xs); line-height: var(--t9-lh-xs); color: var(--t9-text-secondary); }
.t9-input { width: 100%; height: var(--t9-control-h); border-radius: var(--t9-radius-md); background: var(--t9-bg-surface); border: 1px solid var(--t9-border-control); padding: 0 10px; font: inherit; font-size: var(--t9-fs-sm); line-height: var(--t9-lh-sm); color: var(--t9-text); }
textarea.t9-input { height: auto; padding: 6px 10px; }
.t9-input::placeholder { color: var(--t9-text-faint); }
.t9-input:focus { outline: none; border-color: var(--t9-focus); box-shadow: var(--t9-ring-focus); }

/* ---------- Badge ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: var(--t9-radius-full); border: 1px solid; padding: 2px 8px; font-size: var(--t9-fs-xs); line-height: var(--t9-lh-xs); font-weight: var(--t9-fw-medium); white-space: nowrap; }
.badge--success { background: var(--t9-success-50); color: var(--t9-success-700); border-color: var(--t9-success-50); }
.badge--danger  { background: var(--t9-danger-50);  color: var(--t9-danger-700);  border-color: var(--t9-danger-50); }
.badge--warning { background: var(--t9-warning-50); color: var(--t9-warning-700); border-color: var(--t9-warning-200); }
.badge--info    { background: var(--t9-info-50);    color: var(--t9-info-700);    border-color: var(--t9-info-50); }
.badge--neutral { background: var(--t9-slate-100);  color: var(--t9-slate-600);   border-color: var(--t9-slate-100); }

/* ---------- Cards / service cards ---------- */
.t9-card { border: 1px solid var(--t9-border); border-radius: var(--t9-radius-lg); padding: 16px; background: var(--t9-bg-surface); }
.service-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.service-card { display: flex; align-items: center; gap: 12px; width: 100%; border: 1px solid var(--t9-border); border-radius: var(--t9-radius-lg); background: var(--t9-bg-surface); padding: 16px; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color var(--t9-dur) var(--t9-ease), box-shadow var(--t9-dur) var(--t9-ease); }
a.service-card { text-decoration: none; }
.service-card:hover { border-color: var(--t9-brand-300); box-shadow: var(--t9-shadow-card); }
.service-card__icon { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: var(--t9-radius-md); background: var(--t9-brand-50); color: var(--t9-brand-600); flex-shrink: 0; }
.service-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.service-card__title { font-size: var(--t9-fs-sm); line-height: var(--t9-lh-sm); font-weight: var(--t9-fw-medium); color: var(--t9-text); }
.service-card__sub { font-size: var(--t9-fs-xs); line-height: var(--t9-lh-xs); color: var(--t9-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service-card__chev { color: var(--t9-text-ghost); }
.service-card:hover .service-card__chev { color: var(--t9-text-faint); }

/* ---------- Tabs / segmented ---------- */
.t9-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--t9-border); overflow-x: auto; }
.t9-tab { padding: 8px 12px; font: inherit; font-size: var(--t9-fs-sm); line-height: var(--t9-lh-sm); white-space: nowrap; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--t9-text-secondary); cursor: pointer; }
.t9-tab:hover { color: var(--t9-slate-800); }
.t9-tab.is-active { border-bottom-color: var(--t9-tab-active); color: var(--t9-brand-700); font-weight: var(--t9-fw-medium); }

/* ---------- Notices / banners / skeleton ---------- */
.notice { font-size: var(--t9-fs-xs); line-height: var(--t9-lh-xs); border: 1px solid; border-radius: var(--t9-radius-md); padding: 6px 10px; }
.notice--error { color: var(--t9-red-700); background: var(--t9-red-50); border-color: var(--t9-red-200); }
.notice--warn { color: var(--t9-amber-700); background: var(--t9-amber-50); border-color: var(--t9-amber-200); }
.notice--success { color: var(--t9-success-700); background: var(--t9-success-50); border-color: var(--t9-emerald-200); }
.notice--info { color: var(--t9-sky-700); background: var(--t9-sky-50); border-color: var(--t9-sky-200); }
.banner { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; border: 1px solid; border-radius: var(--t9-radius-lg); padding: 16px; font-size: var(--t9-fs-sm); line-height: var(--t9-lh-sm); }
.banner--red { background: var(--t9-red-50); border-color: var(--t9-red-200); color: var(--t9-red-700); }
.banner--amber { background: var(--t9-amber-50); border-color: var(--t9-amber-200); color: var(--t9-amber-700); }
.banner--sky { background: var(--t9-sky-50); border-color: var(--t9-sky-200); color: var(--t9-sky-700); }
/* "info" is what CX.banner(…, 'info') asks for: the same calm blue as sky. */
.banner--info { background: var(--t9-sky-50); border-color: var(--t9-sky-200); color: var(--t9-sky-700); }
.skeleton { display: flex; flex-direction: column; gap: 8px; animation: t9-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.skeleton > div { height: 40px; border-radius: var(--t9-radius-lg); background: var(--t9-skeleton); }

/* ---------- Modal ---------- */
.t9-overlay { position: fixed; inset: 0; z-index: 650; display: flex; align-items: center; justify-content: center; background: var(--t9-overlay); padding: 16px; }
.t9-modal { width: 100%; max-width: 448px; background: var(--t9-bg-surface); border: 1px solid var(--t9-border); border-radius: var(--t9-radius-xl); box-shadow: var(--t9-shadow-2xl); }
