/* SEKO by Sela — matches the Sela systems landing page (internal-cas-landing-page):
   Lexend + JetBrains Mono, #F6F6F6 canvas, frosted white glass, ink #2D3034, cyan #00C7D4
   used only for signals, a floating pill top bar, and the same light/dark theme rule. */

/* Fonts are served locally (latin subsets, SIL OFL 1.1; licences in /fonts) so the private
   app makes no third-party requests. */
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/lexend-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/lexend-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/lexend-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/lexend-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 800 900; font-display: swap; src: url("/fonts/lexend-latin-800.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/jetbrains-mono-latin-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/jetbrains-mono-latin-500.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("/fonts/jetbrains-mono-latin-600.woff2") format("woff2"); }

/* ---- Theme tokens (light). Dark values are below; .report-document keeps the light set. ---- */
:root, html.dark .report-document {
  --canvas: #f6f6f6;
  --ink: #2d3034;
  --ink-strong: #202632;
  --ink-max: #000000;
  --muted: #7b8489;
  --muted-2: #68757d;
  --nav: #78838c;
  --line: #dfe3e6;
  --line-soft: rgba(223, 227, 230, .7);
  --surface: linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(244, 244, 242, .54));
  --surface-elevated: linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(241, 241, 239, .62));
  --surface-edge: rgba(255, 255, 255, .86);
  --surface-solid: #ffffff;
  --surface-alt: #f8f9fa;
  --surface-sunk: #f3f4f3;
  --field: #ffffff;
  --bubble-user: #eef1f2;
  --bubble-user-ink: #39444b;
  --bubble-assistant: rgba(255, 255, 255, .92);
  --cta: linear-gradient(145deg, #2d3541, #171c24);
  --cta-hover: linear-gradient(145deg, #232a33, #0f1318);
  --on-cta: #ffffff;
  --cta-solid: #2d3034;
  --accent: #00c7d4;
  --accent-bright: #00dbe9;
  --accent-deep: #0e9fae;
  --accent-soft: rgba(0, 199, 212, .12);
  --success: #00875f;
  --success-soft: #e8f8f2;
  --success-line: #bfe8d9;
  --warning: #8a6100;
  --warning-soft: #fff8db;
  --danger: #c7354f;
  --danger-soft: #fdeef1;
  --danger-line: #f4c6cf;
  --sev-critical: #a4152d; --sev-critical-bg: #fde8eb; --sev-critical-line: #f5b5c0; --sev-critical-bar: #c7354f;
  --sev-high: #a84a00; --sev-high-bg: #ffefe2; --sev-high-line: #f7c9a4; --sev-high-bar: #e0701f;
  --sev-medium: #7a5a00; --sev-medium-bg: #fff6d6; --sev-medium-line: #f0dd8d; --sev-medium-bar: #d9a300;
  --shadow-card: 0 22px 60px -28px rgba(52, 57, 61, .18), 0 6px 18px -8px rgba(70, 74, 78, .08), 0 1px 0 rgba(255, 255, 255, .95) inset;
  --shadow-float: 0 14px 38px rgba(30, 46, 62, .065), inset 0 1px rgba(255, 255, 255, .96);
  --shadow-button: inset 0 1px rgba(255, 255, 255, .14), 0 16px 34px -18px rgba(14, 24, 38, .76);
  --shadow-dialog: 0 30px 100px -40px rgba(35, 48, 57, .55);
  --radius-card: 28px;
  --radius-inner: 18px;
  --radius-field: 14px;
  --font-sans: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

html.dark {
  --canvas: #0d1115;
  --ink: #e6ebee;
  --ink-strong: #f1f4f6;
  --ink-max: #ffffff;
  --muted: #8f9ba3;
  --muted-2: #9aa6ae;
  --nav: #8f9ba3;
  --line: rgba(70, 82, 92, .7);
  --line-soft: rgba(70, 82, 92, .45);
  --surface: linear-gradient(135deg, rgba(28, 35, 42, .82), rgba(20, 26, 31, .62));
  --surface-elevated: linear-gradient(135deg, rgba(28, 35, 42, .88), rgba(20, 26, 31, .7));
  --surface-edge: rgba(60, 72, 82, .7);
  --surface-solid: #161c22;
  --surface-alt: #1a2128;
  --surface-sunk: #1d252c;
  --field: #11171c;
  --bubble-user: #26313a;
  --bubble-user-ink: #eef2f4;
  --bubble-assistant: rgba(26, 33, 40, .92);
  --cta: linear-gradient(145deg, #eef2f4, #cfd7dc);
  --cta-hover: linear-gradient(145deg, #ffffff, #dde4e8);
  --on-cta: #11161b;
  --cta-solid: #e6ebee;
  --accent-deep: #3fd3df;
  --accent-soft: rgba(0, 199, 212, .16);
  --success: #4fd1a5;
  --success-soft: rgba(0, 168, 116, .14);
  --success-line: rgba(79, 209, 165, .35);
  --warning: #e8c15a;
  --warning-soft: rgba(232, 193, 90, .12);
  --danger: #ff8197;
  --danger-soft: rgba(199, 53, 79, .16);
  --danger-line: rgba(255, 129, 151, .35);
  --sev-critical: #ff9aab; --sev-critical-bg: rgba(199, 53, 79, .18); --sev-critical-line: rgba(255, 154, 171, .35);
  --sev-high: #ffb37a; --sev-high-bg: rgba(224, 112, 31, .18); --sev-high-line: rgba(255, 179, 122, .35);
  --sev-medium: #f0cf62; --sev-medium-bg: rgba(217, 163, 0, .16); --sev-medium-line: rgba(240, 207, 98, .32);
  --shadow-card: 0 34px 80px -32px rgba(0, 0, 0, .6), 0 10px 28px -11px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .05) inset;
  --shadow-float: 0 14px 38px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 255, 255, .05);
  --shadow-button: inset 0 1px rgba(255, 255, 255, .5), 0 16px 34px -18px rgba(0, 0, 0, .8);
  --shadow-dialog: 0 30px 100px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
/* The report preview is a printed page; it stays light in both themes. */
html.dark .report-document { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-font-smoothing: antialiased; background: var(--canvas); }
body { margin: 0; min-height: 100vh; color: var(--ink); font: 400 14.5px/1.6 var(--font-sans); overflow-x: hidden; }
::selection { background: rgba(0, 219, 233, .3); color: var(--ink-strong); }
a { color: inherit; }
h1, h2, h3 { color: var(--ink-strong); letter-spacing: -.02em; }
code, kbd, pre { font-family: var(--font-mono); }
.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 #697177; outline-offset: 3px; }
html.dark :focus-visible { outline-color: #9aa6ae; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; border: 2px solid var(--canvas); }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
html.dark ::-webkit-scrollbar-thumb { background: #34404a; }

/* ---- Page material: the landing page's "special UI" canvas ---- */
.special-ui {
  isolation: isolate;
  background: radial-gradient(ellipse 68% 34% at 50% 0%, rgba(255, 255, 255, .98), transparent 73%), linear-gradient(126deg, #fbfbfa 0%, #f0f0ee 49%, #f8f8f6 100%);
  background-attachment: fixed;
}
.special-ui::after {
  content: ""; position: fixed; inset: 0; z-index: -5; pointer-events: none; opacity: .24;
  background-image: radial-gradient(rgba(25, 45, 78, .16) .55px, transparent .6px); background-size: 5px 5px;
  mask-image: linear-gradient(to bottom, black, transparent 65%);
}
html.dark .special-ui { background: radial-gradient(ellipse 68% 34% at 50% 0%, rgba(40, 56, 68, .55), transparent 73%), linear-gradient(126deg, #0f1418 0%, #0b0f13 49%, #10161b 100%); background-attachment: fixed; }
html.dark .special-ui::after { opacity: .3; background-image: radial-gradient(rgba(170, 200, 220, .12) .55px, transparent .6px); }
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.haze { position: absolute; border-radius: 50%; }
.haze-top { top: -12rem; left: 50%; width: 1100px; height: 660px; transform: translateX(-50%); background: rgba(255, 255, 255, .95); filter: blur(120px); }
.haze-right { top: 10rem; right: -10%; width: 560px; height: 560px; background: rgba(232, 234, 236, .45); filter: blur(150px); }
.haze-left { top: 48%; left: -14%; width: 620px; height: 620px; background: rgba(240, 240, 239, .65); filter: blur(180px); }
.haze-bottom { bottom: 8%; right: 8%; width: 420px; height: 420px; background: rgba(255, 255, 255, .55); filter: blur(145px); }
html.dark .haze-top { background: rgba(22, 28, 34, .95); }
html.dark .haze-right { background: rgba(22, 32, 42, .45); }
html.dark .haze-left { background: rgba(18, 26, 32, .65); }
html.dark .haze-bottom { background: rgba(22, 28, 34, .55); }
.backdrop-grid {
  position: absolute; inset: 0; opacity: .6;
  background-image: linear-gradient(to right, rgba(92, 110, 143, .075) 1px, transparent 1px), linear-gradient(to bottom, rgba(92, 110, 143, .065) 1px, transparent 1px);
  background-size: 88px 88px; mask-image: radial-gradient(ellipse 65% 46% at 50% 12%, black, transparent 78%);
}
html.dark .backdrop-grid { background-image: linear-gradient(to right, rgba(140, 170, 200, .06) 1px, transparent 1px), linear-gradient(to bottom, rgba(140, 170, 200, .05) 1px, transparent 1px); }

/* ---- Shared surfaces (landing .glass-panel) ---- */
.glass { background: var(--surface); border: 1px solid var(--surface-edge); box-shadow: var(--shadow-card); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); }
.kicker { margin: 0; font: 650 10px/1.4 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.muted, .muted-text { color: var(--muted); font-size: 13px; margin: 0; }
.dot { color: var(--accent); }

/* ---- Buttons (landing .spatial-button-primary / .sela-nav-cta) ---- */
button { font: inherit; cursor: pointer; border: 0; color: inherit; background: none; }
button:disabled { opacity: .55; cursor: progress; }
.primary, .action { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; background: var(--cta); color: var(--on-cta); padding: 11px 20px; font-size: 12.5px; font-weight: 700; letter-spacing: -.01em; border: 1px solid rgba(255, 255, 255, .14); box-shadow: var(--shadow-button); transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease, background .28s ease; }
.primary:hover:not(:disabled), .action:hover:not(:disabled) { background: var(--cta-hover); transform: translateY(-1px); box-shadow: var(--shadow-button), 0 0 25px -16px rgba(49, 202, 214, .8); }
.primary:active:not(:disabled), .action:active:not(:disabled) { transform: scale(.98); }
.action { margin-top: 10px; padding: 8px 16px; font-size: 12px; }
.ghost, .secondary, .chip-button, .credential-button, .account-report-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-solid); color: var(--ink); font-weight: 600; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.ghost, .secondary { padding: 9px 16px; font-size: 12.5px; }
.ghost:hover:not(:disabled), .secondary:hover:not(:disabled), .chip-button:hover, .credential-button:hover, .account-report-button:hover { border-color: #b9c0c4; color: var(--ink-max); transform: translateY(-1px); }
html.dark .ghost:hover:not(:disabled), html.dark .secondary:hover:not(:disabled), html.dark .chip-button:hover, html.dark .credential-button:hover, html.dark .account-report-button:hover { border-color: #5b6b77; }
.secondary { margin: 8px 6px 0 0; padding: 7px 14px; }
.chip-button { padding: 6px 12px; font-size: 11.5px; white-space: nowrap; }
.icon-button { align-self: start; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); font-size: 22px; line-height: 1; }
.icon-button:hover { background: var(--surface-alt); color: var(--ink); }
.danger-text { color: var(--danger); }

/* Theme toggle and back link (landing .theme-toggle) */
.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; color: #4a5660; background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9); transition: color .2s ease, background .2s ease, transform .2s ease; }
.theme-toggle:hover { color: #1f272e; background: #fff; transform: translateY(-1px); }
.theme-toggle svg, .back-to-systems svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle { color: #d5dce0; background: rgba(30, 38, 45, .8); border-color: rgba(70, 82, 92, .6); }
html.dark .theme-toggle:hover { color: #fff; background: rgba(44, 54, 62, .95); }
html.dark .theme-toggle .icon-sun { display: block; }
html.dark .theme-toggle .icon-moon { display: none; }
.back-to-systems { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-solid); font-size: 11.5px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; transition: border-color .2s ease, color .2s ease; }
.back-to-systems svg { width: 14px; height: 14px; }
.back-to-systems:hover { border-color: #b9c0c4; color: var(--ink-max); }

/* ---- Forms ---- */
label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-field); background: var(--field); color: var(--ink); padding: 10px 13px; font: 400 14px/1.4 var(--font-sans); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea { resize: vertical; }
.form-error { margin: 0; color: var(--danger); font-size: 12.5px; }
.form-error:empty { display: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
kbd { display: inline-block; padding: 0 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--surface-solid); font-size: 10.5px; color: var(--muted-2); }

/* ---- Brand (landing .sela-brand) ---- */
.sela-brand { display: inline-flex; align-items: flex-end; gap: 8px; min-width: 0; line-height: 1; text-decoration: none; }
.sela-brand-wordmark { display: block; width: 94px; height: 32px; flex: 0 0 auto; }
.sela-brand-wordmark img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; pointer-events: none; }
.sela-brand-wordmark .wordmark-dark { display: none; }
html.dark .sela-brand-wordmark .wordmark-light { display: none; }
html.dark .sela-brand-wordmark .wordmark-dark { display: block; }
.sela-brand-descriptor { margin: 0 0 4px; color: #68757d; font: 600 8.5px/1 var(--font-mono); letter-spacing: .1em; white-space: nowrap; }
html.dark .sela-brand-descriptor { color: #8f9ba3; }

/* ---- Sign-in: the landing page's SEKO tool page ---- */
.auth-screen { min-height: 100vh; display: flex; flex-direction: column; padding: 24px 20px 20px; }
.tool-header { width: min(1152px, 100%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 20px; border-radius: 999px; border: 1px solid var(--surface-edge); background: rgba(255, 255, 255, .56); box-shadow: var(--shadow-float); backdrop-filter: blur(22px) saturate(145%); -webkit-backdrop-filter: blur(22px) saturate(145%); }
html.dark .tool-header, html.dark .topbar { background: rgba(20, 26, 31, .62); }
.tool-header-actions { display: flex; align-items: center; gap: 8px; }
.tool-main { flex: 1; width: min(1152px, 100%); margin: 0 auto; display: flex; align-items: center; padding: 48px 0 24px; }
.tool-panel { width: 100%; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding: clamp(28px, 5vw, 64px); border-radius: 36px; border: 1px solid var(--surface-edge); background: var(--surface-elevated); box-shadow: 0 30px 100px -60px rgba(35, 48, 57, .5), inset 0 1px rgba(255, 255, 255, .9); backdrop-filter: blur(28px) saturate(150%); -webkit-backdrop-filter: blur(28px) saturate(150%); }
html.dark .tool-panel { box-shadow: var(--shadow-card); }
.tool-tag { margin: 0; font: 600 10px/1.4 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: #94a3b8; }
.tool-name { margin: 18px 0 0; font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; color: var(--ink-strong); }
.tool-summary { margin: 18px 0 0; max-width: 34rem; font-size: 18px; line-height: 1.55; color: var(--muted-2); }
.tool-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-alt); font: 600 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.tool-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tool-body { margin: 26px 0 0; max-width: 34rem; font-size: 13.5px; line-height: 1.7; color: var(--muted-2); }
.tool-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px; max-width: 26rem; }
.tool-points li { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--surface-solid); font-size: 13px; font-weight: 600; color: var(--ink); }
.tool-points svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.auth-card { display: grid; gap: 16px; padding: 30px; border-radius: 28px; border: 1px solid var(--line-soft); background: var(--surface-alt); }
html.dark .auth-card { background: rgba(17, 23, 28, .7); }
.auth-card h2 { margin: 6px 0 4px; font-size: 26px; font-weight: 800; letter-spacing: -.035em; }
.auth-card .primary { width: 100%; margin-top: 4px; padding: 13px 20px; }
.tool-footnote { margin: 0 auto; width: min(1152px, 100%); text-align: center; font: 500 10.5px/1.5 var(--font-mono); color: var(--muted); }

/* ---- App shell and floating top bar (landing .sela-topbar) ---- */
.app-shell { min-height: 100vh; padding: 16px 20px 24px; }
/* Three columns: brand left, tabs centred in the bar, actions right. */
.topbar { position: sticky; top: 14px; z-index: 20; max-width: 1480px; min-height: 64px; margin: 0 auto 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 22px; padding: 9px 11px 9px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .56); box-shadow: var(--shadow-float); backdrop-filter: blur(22px) saturate(145%); -webkit-backdrop-filter: blur(22px) saturate(145%); }
html.dark .topbar { border-color: rgba(70, 82, 92, .55); }
.topbar .sela-brand { justify-self: start; }
.tabs { justify-self: center; display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); }
.nav-button { position: relative; padding: 10px 0; font-size: 12.5px; font-weight: 650; letter-spacing: -.025em; color: var(--nav); transition: color .24s ease; }
.nav-button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1.5px; border-radius: 99px; background: var(--accent); transform: scaleX(0); transition: transform .25s ease; }
.nav-button:hover, .nav-button.active { color: var(--ink-strong); }
.nav-button.active::after { transform: scaleX(1); }
.topbar-actions { justify-self: end; display: flex; align-items: center; gap: 8px; min-width: 0; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-solid); font: 650 9.5px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #c9cfd3; }
.status.ok { color: var(--muted-2); }
.status.ok::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.status.error { color: var(--danger); }
.status.error::before { background: var(--danger); }
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-solid); cursor: pointer; font-size: 12.5px; font-weight: 600; }
.user-menu summary::-webkit-details-marker { display: none; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cta); color: var(--on-cta); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.user-label { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-panel { position: absolute; right: 0; top: calc(100% + 12px); min-width: 220px; display: grid; gap: 6px; padding: 14px; border-radius: 22px; }
html.dark .user-menu-panel { background: rgba(18, 24, 29, .97); }
.user-menu-panel .ghost { justify-content: flex-start; width: 100%; }
.sidebar-toggle { display: none; }
.icon-pill { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-solid); flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.icon-pill span { display: block; width: 14px; height: 2px; border-radius: 2px; background: var(--ink); }

.layout { max-width: 1480px; margin: 0 auto; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.sidebar { position: sticky; top: 96px; display: grid; align-content: start; gap: 14px; max-height: calc(100vh - 114px); overflow: auto; padding-bottom: 4px; scrollbar-width: thin; }
.panel { border-radius: var(--radius-card); padding: 18px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-heading h2 { margin: 4px 0 0; font-size: 19px; font-weight: 800; letter-spacing: -.035em; }
.guardrail ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 12.5px; color: var(--muted-2); }
.guardrail li { position: relative; padding-left: 16px; }
.guardrail li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(0, 199, 212, .25); }

/* Account cards */
.account-list { display: grid; gap: 10px; }
.account { display: grid; gap: 3px; padding: 14px; border-radius: var(--radius-inner); background: var(--surface-solid); border: 1px solid var(--line-soft); cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.account:hover { border-color: #b9c0c4; transform: translateY(-1px); }
html.dark .account:hover { border-color: #5b6b77; }
.account:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.account strong { font-size: 13.5px; font-weight: 700; color: var(--ink-strong); }
.account span { font-size: 11.5px; color: var(--muted-2); }
.account .account-meta { font-family: var(--font-mono); font-size: 10.5px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.credential-button, .account-report-button { padding: 6px 11px; font-size: 11.5px; }
.account-active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.credential-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--warning) !important; }
.credential-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.credential-status.active { color: var(--success) !important; }

/* Scan jobs */
.scan-job-list { display: grid; gap: 9px; font-size: 12.5px; color: var(--muted); }
.scan-job { display: grid; gap: 4px; padding: 12px; border-radius: var(--radius-inner); background: var(--surface-solid); border: 1px solid var(--line-soft); border-left: 3px solid var(--accent); color: var(--ink); font-size: 12px; }
.scan-job span { color: var(--muted-2); }
.scan-job .scan-stage { font-family: var(--font-mono); font-size: 10.5px; color: var(--accent-deep); }
.scan-job ul { margin: 6px 0 0; padding-left: 17px; }
.scan-job .secondary { margin: 4px 6px 0 0; padding: 5px 11px; font-size: 11px; }
.scan-error { color: var(--danger) !important; }
.scan-job-completed { border-left-color: var(--success); }
.scan-job-completed_with_warnings { border-left-color: #d9a300; }
.scan-job-failed, .scan-job-cancelled { border-left-color: var(--danger); }

/* ---- Chat (landing voice-chat preview style) ---- */
.workspace { min-width: 0; }
.chat-card { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; height: calc(100vh - 114px); min-height: 520px; border-radius: 30px; overflow: hidden; background: var(--surface-elevated); }
.account-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.account-bar-title { display: grid; gap: 2px; min-width: 0; }
.account-bar-title strong { font-size: 16px; font-weight: 800; letter-spacing: -.03em; color: var(--ink-strong); }
.account-bar-title .account-meta { font: 500 10.5px/1.4 var(--font-mono); color: var(--muted); }
.account-bar .credential-status { margin: 0; font-size: 12px; }
.report-toolbar .account-bar-title { flex: 1 1 260px; }
.conversation-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.conversation-bar label, .report-toolbar label { font: 650 9.5px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.conversation-bar label.grow { flex: 1 1 260px; }
.conversation-bar select, .report-toolbar select { min-width: 200px; padding: 8px 12px; font-size: 13px; text-transform: none; letter-spacing: 0; font-family: var(--font-sans); color: var(--ink); border-radius: 999px; }
.conversation-bar .chip-button { padding: 8px 14px; }
.messages { overflow-y: auto; padding: 24px 24px 12px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.message { display: flex; max-width: min(78%, 780px); animation: rise .2s cubic-bezier(.16, 1, .3, 1); }
.message.user { align-self: flex-end; }
.message.assistant { align-self: flex-start; }
.bubble { padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: var(--bubble-assistant); border: 1px solid var(--line-soft); box-shadow: 0 10px 30px -24px rgba(35, 48, 58, .4); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; color: var(--ink); }
.message.user .bubble { border-radius: 18px 6px 18px 18px; background: var(--bubble-user); color: var(--bubble-user-ink); border-color: transparent; box-shadow: none; }
.bubble p { margin: 0; }
.bubble code { padding: 1px 6px; border-radius: 6px; background: var(--surface-alt); border: 1px solid var(--line-soft); font-size: .85em; }
.bubble > br + .action { margin-right: 6px; }
@keyframes rise { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; white-space: normal; }
.suggestions button { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-alt); font-size: 12px; color: var(--ink); text-align: left; transition: border-color .2s ease, transform .2s ease; }
.suggestions button:hover { border-color: var(--accent); background: var(--surface-solid); transform: translateY(-1px); }
.composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin: 0 16px 6px; padding: 7px 7px 7px 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface-solid); box-shadow: 0 6px 18px -16px rgba(30, 45, 55, .35), inset 0 1px rgba(255, 255, 255, .6); transition: border-color .15s, box-shadow .15s; }
html.dark .composer { box-shadow: none; }
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.composer textarea { border: 0; box-shadow: none; padding: 9px 0; min-height: 44px; max-height: 220px; resize: none; background: transparent; }
.composer textarea:focus { box-shadow: none; }
.composer .primary { padding: 11px 22px; border-radius: 14px; }
.composer-hint { grid-column: 1 / -1; margin: 0; padding-bottom: 2px; font: 500 9.5px/1.4 var(--font-mono); color: var(--muted); }
.viewer-notice { margin: 0 16px 16px; padding: 12px 16px; border-radius: var(--radius-inner); background: var(--surface-alt); border: 1px dashed var(--line); font-size: 13px; color: var(--muted-2); }
body[data-role="viewer"] .composer { display: none; }
.chat-card > footer { display: none; }

/* Activity indicator */
.activity-message { max-width: min(78%, 780px); }
.activity-bubble { display: grid; gap: 8px; color: var(--muted-2); background: var(--surface-alt); white-space: normal; }
.activity-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.activity-bubble .secondary { margin: 0; }
.activity-current { font-weight: 600; color: var(--ink); }
/* Live progress lines, newest at the bottom; long runs scroll inside the bubble. */
.activity-log { margin: 0; padding: 8px 10px 8px 28px; max-height: 240px; overflow-y: auto; border-radius: 12px; background: var(--surface-solid); border: 1px solid var(--line-soft); font: 500 11.5px/1.65 var(--font-mono); color: var(--muted-2); }
.activity-log li::marker { color: var(--accent); }
.activity-log .activity-warn { color: var(--warning); }
.activity-details { margin-top: 8px; }
.activity-details summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted-2); }
.activity-details .activity-log { margin-top: 8px; }
.activity-error .activity-bubble { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-line); }
.loading-dots { display: inline-flex; align-items: center; gap: 3px; height: 14px; flex: 0 0 auto; }
.loading-dots i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: loading-bounce 1.1s infinite ease-in-out; }
.loading-dots i:nth-child(2) { animation-delay: .15s; }
.loading-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes loading-bounce { 0%, 65%, 100% { transform: translateY(0); opacity: .4; } 32% { transform: translateY(-5px); opacity: 1; } }

/* Evidence panels inside messages */
.inventory-result, .revision-preview { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface-alt); border: 1px solid var(--line-soft); font-size: 13px; white-space: normal; color: var(--ink); }
.inventory-result strong { font-weight: 700; }
.inventory-result p { margin: 7px 0 0; }
.inventory-result ul { margin: 8px 0 0; padding-left: 18px; }
.inventory-result li { margin: 3px 0; }
.inventory-result details { margin-top: 8px; }
.inventory-result summary, .revision-preview summary { cursor: pointer; font-weight: 600; color: var(--muted-2); }
.inventory-resources { color: var(--muted-2); overflow-wrap: anywhere; }
.inventory-metadata { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 12px; margin: 8px 0 0; }
.inventory-metadata dt { font-weight: 600; }
.inventory-metadata dd { margin: 0; overflow-wrap: anywhere; }
.coverage-warning { padding: 8px 10px; border-radius: 10px; background: var(--warning-soft); color: var(--warning); list-style-position: inside; }
.cli-output { max-height: 340px; overflow: auto; margin: 8px 0 0; padding: 12px; border-radius: 12px; background: #1b222b; color: #e2e8f0; border: 1px solid rgba(70, 82, 92, .5); font-size: 11.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.follow-up { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); white-space: normal; }
.follow-up-question { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink-strong); }
.follow-up-choices { display: flex; gap: 8px; margin-top: 8px; }
.follow-up-choices .action, .follow-up-choices .secondary { margin: 0; min-width: 68px; }
.exports { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; white-space: normal; }
.exports a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-solid); font-size: 12px; font-weight: 600; text-decoration: none; color: var(--ink); }
.exports a::before { content: "↓"; color: var(--accent-deep); }
.exports a:hover { border-color: var(--accent); }

/* ---- Reports ---- */
.report-view { display: block; }
.report-toolbar { max-width: 940px; margin: 0 auto 12px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--radius-card); }
.report-toolbar select { min-width: 300px; padding: 9px 13px; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.report-status { max-width: 940px; margin: 0 auto 14px; padding: 0 6px; color: var(--muted-2); font-size: 13px; }
.report-status .revision-preview { margin-top: 8px; }
.report-document { max-width: 940px; min-height: 950px; margin: 0 auto 30px; padding: 58px 64px; border-radius: 28px; background: #ffffff; border: 1px solid var(--line-soft); box-shadow: var(--shadow-card); color: var(--ink-strong); line-height: 1.6; }
html.dark .report-document { border-color: rgba(70, 82, 92, .6); box-shadow: 0 34px 80px -32px rgba(0, 0, 0, .7); }
.report-document .report-cover { padding-bottom: 26px; border-bottom: 2px solid var(--ink); }
.report-kicker { margin: 0 0 10px; font: 600 10.5px/1.4 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-deep); }
.report-document h1 { margin: 0 0 8px; font-size: 30px; font-weight: 800; letter-spacing: -.035em; }
.report-customer { margin: 0; color: var(--muted); font-size: 16px; }
.report-metadata { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; margin: 22px 0 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; }
.report-metadata dt { font: 600 10.5px/1.9 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.report-metadata dd { margin: 0; }
.report-section { margin-top: 30px; }
.report-section h2 { margin: 0 0 10px; font-size: 19px; font-weight: 700; color: var(--ink); }
.report-section h3 { margin: 20px 0 8px; font-size: 15px; font-weight: 700; color: var(--muted-2); }
.section-intro, .finding-context { color: var(--muted); font-size: 13px; }
.narrative-body { min-height: 58px; white-space: pre-wrap; padding: 8px 10px; margin: 0 -10px; border-radius: 12px; outline: 1px dashed transparent; transition: background .15s, outline-color .15s; }
[contenteditable="true"]:hover { outline-color: var(--line); }
[contenteditable="true"]:focus { outline: 1px dashed var(--accent); background: rgba(0, 219, 233, .05); }
.risk-table, .action-table, .findings-summary-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 10px; font-size: 13px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.risk-table th, .risk-table td { padding: 9px; text-align: center; border-bottom: 1px solid var(--line); }
.action-table th, .action-table td { padding: 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.risk-table th, .action-table th, .findings-summary-table th { background: var(--surface-alt); color: var(--muted); border-bottom: 1px solid var(--line); font: 650 10px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.risk-table tr:last-child td, .action-table tr:last-child td, .findings-summary-table tr:last-child td { border-bottom: 0; }
.action-table td { font-size: 12.5px; }
.coverage-note { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.coverage-table td:first-child { font-weight: 600; }
.ai-findings { margin-top: 22px; }
.ai-findings h3 { margin-bottom: 4px; }
.finding-narrative { padding: 16px 0; border-bottom: 1px solid var(--line); }
.finding-narrative h3 { margin: 0 0 4px; color: var(--ink); }
.finding-narrative p { margin: 8px 0; font-size: 13px; }
.finding-narrative strong { color: var(--muted-2); }
.technical-theme-group { margin-top: 20px; }
.technical-theme-group > h3 { margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--ink); }
.technical-service-group { margin: 16px 0; }
.technical-service-group > h4 { margin: 0 0 8px; font: 600 11px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); }
.technical-finding { margin: 10px 0; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); border-left: 3px solid var(--ink); background: var(--surface-alt); }
.technical-finding h5 { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.technical-finding-details { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 13px; }
.technical-finding-details dt { font: 600 10.5px/1.9 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.technical-finding-details dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Security findings */
.findings-summary-table th { padding: 9px 10px; text-align: left; }
.findings-summary-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.findings-summary-table a { font-family: var(--font-mono); font-size: 12px; color: var(--accent-deep); text-decoration: none; }
.severity-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font: 700 10px/1.6 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.severity-critical { background: var(--sev-critical-bg); color: var(--sev-critical); border: 1px solid var(--sev-critical-line); }
.severity-high { background: var(--sev-high-bg); color: var(--sev-high); border: 1px solid var(--sev-high-line); }
.severity-medium { background: var(--sev-medium-bg); color: var(--sev-medium); border: 1px solid var(--sev-medium-line); }
.vulnerability-card { margin: 14px 0; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); border-left-width: 4px; background: #ffffff; box-shadow: 0 12px 30px -26px rgba(35, 48, 58, .5); scroll-margin-top: 110px; }
.severity-border-critical { border-left-color: var(--sev-critical-bar); }
.severity-border-high { border-left-color: var(--sev-high-bar); }
.severity-border-medium { border-left-color: var(--sev-medium-bar); }
.vulnerability-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.vulnerability-heading h3 { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--ink-strong); }
.vulnerability-ref { font: 600 11px/1.4 var(--font-mono); color: var(--muted); }
.vulnerability-card > p { margin: 8px 0; font-size: 13px; }
.affected-resources { margin: 10px 0; font-size: 12.5px; }
.affected-resources summary { cursor: pointer; font-weight: 600; color: var(--muted-2); }
.affected-resources ul { margin: 8px 0 0; padding-left: 18px; max-height: 260px; overflow: auto; }
.affected-resources li { margin: 3px 0; overflow-wrap: anywhere; }
.affected-resources code { font-size: 11.5px; }
.remediation-box { margin-top: 10px; padding: 11px 13px; border-radius: 12px; background: #e6f9fa; border: 0; }
.remediation-box strong { font: 600 10.5px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #0e8f9a; }
.remediation-box p { margin: 4px 0 0; font-size: 13px; }
.remediation-box .standard-label { display: block; margin-top: 10px; color: var(--muted); }
.remediation-box .standard-text { color: var(--muted-2); font-size: 12.5px; }
.recommendation-note { margin: 4px 0 0; font-size: 12px; color: var(--muted-2); }
.recommendation-note strong { color: #0e8f9a; font-weight: 600; }

/* ---- Admin ---- */
.admin-view { display: grid; gap: 16px; }
.admin-view .panel { padding: 22px; }
.table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line-soft); border-radius: var(--radius-inner); background: var(--surface-solid); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { padding: 11px 14px; text-align: left; background: var(--surface-alt); border-bottom: 1px solid var(--line); font: 650 10px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table select { padding: 6px 10px; border-radius: 999px; font-size: 12.5px; width: auto; }
.data-table .row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.data-table .ghost { padding: 6px 12px; font-size: 11.5px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-alt); font: 600 10px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.badge.active { color: var(--success); border-color: var(--success-line); background: var(--success-soft); }
.badge.disabled { color: var(--danger); border-color: var(--danger-line); background: var(--danger-soft); }
.badge.you { color: var(--accent-deep); border-color: rgba(0, 199, 212, .35); background: var(--accent-soft); }
.project-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.project-editor { display: grid; gap: 8px; margin-top: 8px; }
.user-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.user-form .project-picker, .user-form .form-error, .user-form .primary { grid-column: 1 / -1; }
.user-form .primary { justify-self: start; }
.project-picker { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-inner); }
.project-picker legend { padding: 0 6px; font: 650 10px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.checkbox-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox-grid label { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-solid); font-size: 12px; font-weight: 500; cursor: pointer; }
.checkbox-grid input { width: auto; margin: 0; accent-color: var(--accent-deep); }
.checkbox-grid label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.audit-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; max-height: 420px; overflow: auto; }
.audit-list li { display: grid; grid-template-columns: 170px 140px minmax(0, 1fr); gap: 12px; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; }
.audit-list li:nth-child(odd) { background: var(--surface-alt); }
.audit-list time, .audit-list .audit-actor { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.audit-list .audit-action { font-weight: 600; overflow-wrap: anywhere; }

/* ---- Dialogs ---- */
.credentials-dialog { width: min(560px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--surface-edge); border-radius: 30px; background: var(--surface-solid); color: var(--ink); box-shadow: var(--shadow-dialog); }
.credentials-dialog::backdrop { background: rgba(32, 38, 50, .35); backdrop-filter: blur(6px); }
html.dark .credentials-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.credentials-dialog form { display: grid; gap: 14px; padding: 26px; }
.dialog-header { display: flex; justify-content: space-between; gap: 15px; }
.dialog-header h2 { margin: 4px 0 0; font-size: 20px; font-weight: 800; letter-spacing: -.035em; }
.dialog-header p:not(.kicker) { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.credential-warning { margin: 0; padding: 11px 14px; border-radius: 14px; background: var(--warning-soft); color: var(--warning); font-size: 12.5px; }
.dialog-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; }

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 280px minmax(0, 1fr); }
  .user-form { grid-template-columns: 1fr 1fr; }
  .topbar .back-to-systems { display: none; }
}
@media (max-width: 960px) {
  .tool-panel { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .app-shell { padding: 10px 10px 18px; }
  .topbar { top: 8px; gap: 10px; padding: 8px 10px; border-radius: 26px; display: flex; flex-wrap: wrap; }
  .topbar-actions { margin-left: auto; }
  .topbar .sela-brand-descriptor { display: none; }
  .sidebar-toggle { display: inline-flex; }
  .tabs { order: 3; width: 100%; justify-content: center; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 30; top: 0; left: 0; bottom: 0; width: min(340px, 88vw); max-height: none; padding: 14px; background: var(--canvas); box-shadow: 0 0 60px rgba(0, 0, 0, .25); transform: translateX(-105%); transition: transform .2s ease-out; }
  .app-shell.sidebar-open .sidebar { transform: none; }
  .chat-card { height: calc(100vh - 150px); border-radius: 24px; }
  .message, .activity-message { max-width: 94%; }
  .messages { padding: 18px 14px 10px; }
  .report-document { padding: 30px 22px; border-radius: 22px; }
  .report-toolbar select { min-width: 0; width: 100%; }
  .report-toolbar label { width: 100%; }
  .report-metadata, .technical-finding-details { grid-template-columns: 1fr; gap: 2px; }
  .user-form, .form-grid { grid-template-columns: 1fr; }
  .audit-list li { grid-template-columns: 1fr; gap: 2px; }
  .user-label { display: none; }
  .composer-hint { display: none; }
  .status { display: none; }
}
@media (max-width: 639px) {
  .auth-screen { padding: 10px; }
  .tool-header { padding: 7px 8px 7px 14px; border-radius: 24px; }
  .tool-header .sela-brand-descriptor { display: none; }
  .tool-main { padding: 28px 0 16px; }
  .tool-panel { padding: 24px 20px; border-radius: 28px; }
  .tool-summary { font-size: 16px; }
  .auth-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
