/* mybritain.chat visual system. Palette follows the GOV.UK Design System.
   The mark is a Union Jack, not the Crown and not the GOV.UK logo.
   Kit: static/brand/README.md */

:root {
  --blue: #1f4fa3;
  --blue-deep: #012169;
  --blue-ice: #e3e9f5;
  --ink: #14161a;
  --ink-2: #4a5160;
  --ink-3: #4a5160;
  --line: #c5cad3;
  --paper: #ffffff;
  --chat-canvas: #ffffff;
  --bg-alt: #f5f6f8;
  --surface: #ffffff;
  --blue-hover: #012169;
  --blue-bright: #1f4fa3;
  --spark: #1f4fa3;
  --radius-stone: 8px;
  --success: #0f7b4b;
  --danger: #b42318;
  --button: #012169;
  --button-hover: #1f4fa3;
  --button-shadow: #00113a;
  --focus: #012169;
  --flag-red: #c8102e;
  --notice-bg: #eef2fa;
  --bg: var(--surface);
  --border: var(--line);
  --ink-muted: var(--ink-2);
  --ink-dim: var(--ink-3);
  --accent: var(--blue);
  --accent-hover: var(--blue-hover);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--surface);
  color: var(--ink);
  color-scheme: light;
  font-family: var(--font);
}

body {
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after { box-sizing: border-box; }

button,
input,
textarea { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

a { color: var(--blue); }

::selection { background: var(--blue-ice); color: var(--ink); }

html { scrollbar-color: var(--line) transparent; scrollbar-width: thin; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #ffffff;
}

.unofficial-banner {
  background: var(--notice-bg);
  color: var(--ink);
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  padding: 10px 16px;
}

.unofficial-banner a {
  color: var(--ink);
  font-weight: 700;
}

.skip-link { position: absolute; top: 0; left: -9999px; padding: 10px 16px; background: var(--blue); color: var(--surface); border-radius: 0 0 4px 0; z-index: 101; font-size: 14px; font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 0; outline: 2px solid var(--blue); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }

/* Public shell ---------------------------------------------------------- */

.portal-container { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.public-page { padding-bottom: 52px; background: var(--paper); }
.public-page:has(.home-page) { padding-bottom: 0; }
.public-nav { position: sticky; top: 0; z-index: 50; display: block; background: var(--paper); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.public-nav > div { position: relative; min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 0.45em; color: var(--ink); font-family: var(--font); font-size: 21px; font-weight: 700; letter-spacing: 0; line-height: 1; text-decoration: none; }
.wordmark-suffix { color: var(--blue); }
.wordmark .brand-mark { display: block; flex-shrink: 0; }
.wordmark-text { display: inline-block; }
.icon { display: block; flex-shrink: 0; }
.public-nav-link { position: relative; display: inline-flex; align-items: center; min-height: 64px; color: var(--ink-3); font-size: 14px; text-decoration: none; transition: color 160ms ease; }
.public-nav-link::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--blue); content: ''; opacity: 0; transform: scaleX(0.35); transition: opacity 160ms ease, transform 160ms ease; }
.public-nav-link:hover,
.public-nav-link.active { color: var(--ink); }
.public-nav-link.active::after { opacity: 1; transform: scaleX(1); }
.nav-burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--ink); cursor: pointer; }
.nav-burger:hover { background: var(--bg-alt); }
.public-nav-drawer { position: absolute; top: 100%; right: 0; left: 0; display: none; border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12); }
.public-nav-drawer.open { display: block; }
.public-nav-drawer-link { display: flex; align-items: center; min-height: 48px; padding: 0 20px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15px; text-decoration: none; }
.public-nav-drawer-link.active { border-left: 1px solid var(--blue); color: var(--ink); font-weight: 700; }
.public-nav-drawer-link:hover { color: var(--blue); background: var(--bg-alt); }
.public-nav-cta-full { display: flex; margin: 16px 20px; }
.public-nav-cta,
.public-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 16px; border: 1px solid transparent; border-radius: 4px; font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.public-nav-cta,
.public-button-primary { background: var(--button); color: var(--surface); border-radius: 8px; box-shadow: none; }
.public-nav-cta:hover,
.public-button-primary:hover { background: var(--button-hover); color: var(--surface); }
.public-footer { padding: clamp(76px, 10vw, 128px) 20px 124px; background: var(--paper); border-top: 1px solid var(--line); color: var(--ink-3); }
.public-page:has(.home-page) + .public-footer { padding-top: clamp(64px, 6vw, 86px); }
.footer-wordmark { margin-bottom: 20px; font-size: 30px; }
.footer-desc { max-width: 270px; margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.footer-heading { margin: 0 0 16px; color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-link { color: var(--ink-2); font-size: 14px; text-decoration: none; transition: color 160ms ease; }
.footer-link:hover { color: var(--blue); }
.footer-meta { margin: 0; color: var(--ink-3); font-size: 12px; line-height: 1.5; }

/* Home ------------------------------------------------------------------ */

.home-page { background: var(--paper); }
.home-hero { display: flex; overflow: hidden; background: var(--paper); color: var(--ink); }
.home-hero-inner { display: flex; flex: 1; flex-direction: column; width: min(1200px, calc(100% - 40px)); margin-inline: auto; padding: clamp(40px, 6.5svh, 80px) 0 clamp(40px, 5.5svh, 64px); }
.home-hero-content { display: flex; flex-direction: column; width: 100%; max-width: 1120px; margin-inline: auto; text-align: center; }
.hero-kicker,
.section-label-blue { display: inline-block; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; line-height: 1.2; text-transform: uppercase; }
.hero-kicker { margin-bottom: clamp(14px, 2svh, 20px); }
.hero-title { max-width: 1050px; margin: 0 auto; color: var(--ink); font-family: var(--font); font-weight: 700; letter-spacing: 0; font-size: clamp(52px, min(7.2vw, 9svh), 88px); line-height: 0.93; overflow-wrap: anywhere; text-wrap: balance; }
.hero-subtitle { max-width: 760px; margin: clamp(16px, 2.2svh, 24px) auto 0; color: var(--ink-2); font-size: clamp(18px, min(2vw, 2.6svh), 24px); line-height: 1.28; text-wrap: balance; }
.hero-copy { max-width: 560px; margin: clamp(10px, 1.5svh, 16px) auto 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.hero-prompt-slot { width: min(720px, 100%); margin: clamp(20px, 2.6svh, 30px) auto 0; }
.hero-prompt-form { display: flex; align-items: center; min-height: 64px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1); }
.hero-prompt-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-ice), 0 18px 45px rgba(15, 23, 42, 0.1); }
.hero-prompt-input { min-width: 0; min-height: 48px; flex: 1; padding: 12px 18px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.hero-prompt-input::placeholder { color: var(--ink-3); }
.hero-prompt-form .voice-btn { width: 48px; height: 48px; min-width: 48px; min-height: 48px; margin-right: 6px; }
.hero-prompt-submit { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: 0 0 48px; padding: 0; border: 0; border-radius: 50%; background: var(--button); color: var(--surface); box-shadow: none; cursor: pointer; transition: background-color 160ms ease, transform 160ms ease; }
.hero-prompt-submit:hover { background: var(--button-hover); }
.hero-prompt-submit:active { transform: translateX(1px); }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(14px, 1.8svh, 20px); }
.hero-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--ink-2); font-size: 13px; text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.hero-chip:hover { border-color: var(--line); background: var(--surface); color: var(--blue); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: clamp(14px, 1.8svh, 20px); }
.hero-action { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 0; border: 0; border-radius: 0; font-size: 14px; font-weight: 700; text-decoration: none; }
.hero-action-primary { background: transparent; color: var(--blue); }
.hero-action-primary:hover { background: transparent; color: var(--blue-hover); text-decoration: underline; text-underline-offset: 4px; }
.hero-action-secondary { color: var(--ink-2); }
.hero-action-secondary:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Motion ----------------------------------------------------------------- */

@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.hero-kicker,
.hero-title,
.hero-subtitle,
.hero-copy,
.hero-prompt-slot,
.hero-chips,
.hero-actions { animation: rise-in 700ms cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.hero-kicker { animation-delay: 60ms; }
.hero-title { animation-delay: 140ms; }
.hero-subtitle { animation-delay: 220ms; }
.hero-copy { animation-delay: 300ms; }
.hero-prompt-slot { animation-delay: 380ms; }
.hero-chips { animation-delay: 450ms; }
.hero-actions { animation-delay: 520ms; }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1); }
.js .reveal.reveal-in { opacity: 1; transform: none; }
.js .stat-item:nth-child(2) { transition-delay: 70ms; }
.js .stat-item:nth-child(3) { transition-delay: 140ms; }
.js .stat-item:nth-child(4) { transition-delay: 210ms; }
.js .agent-card:nth-child(2) { transition-delay: 70ms; }
.js .agent-card:nth-child(3) { transition-delay: 140ms; }
.js .agent-card:nth-child(5) { transition-delay: 70ms; }
.js .agent-card:nth-child(6) { transition-delay: 140ms; }
.js .step-row:nth-child(2) { transition-delay: 90ms; }
.js .step-row:nth-child(3) { transition-delay: 180ms; }

.statement-section { padding: clamp(64px, 7vw, 108px) 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.statement-inner { max-width: 1240px; }
.statement-copy { max-width: 1080px; margin: 0 auto; color: var(--ink); font-family: var(--font); font-weight: 700; letter-spacing: 0; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.04; text-align: center; text-wrap: balance; }
.statement-accent { color: var(--blue); white-space: nowrap; }
.stats-band { border-bottom: 1px solid var(--line); background: var(--paper); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding-block: 42px; }
.stat-item { display: flex; flex-direction: column; gap: 7px; min-width: 0; padding-inline: clamp(14px, 2.8vw, 38px); border-left: 1px solid var(--line); }
.stat-item:first-child { padding-left: 0; border-left: 0; }
.stat-value { color: var(--ink); font-family: var(--font); font-weight: 700; letter-spacing: 0; font-size: clamp(36px, 4vw, 54px); line-height: 0.95; }
.stat-label { max-width: 18ch; color: var(--ink-3); font-size: 11px; letter-spacing: 0.1em; line-height: 1.35; text-transform: uppercase; }
.public-section { padding: clamp(76px, 9vw, 124px) 20px; }
.home-page #topics { padding-bottom: clamp(48px, 5vw, 60px); }
.home-page #how { padding-top: clamp(48px, 5vw, 60px); }
.public-section-white { background: var(--surface); }
.public-section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); }
.home-page .public-section-alt { background: var(--surface); }
.section-title { max-width: 700px; margin: 14px 0 38px; color: var(--ink); font-family: var(--font); font-weight: 700; letter-spacing: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.02; }
.feature-section { padding-block: 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.editorial-list { border-top: 1px solid var(--line); }
.editorial-row-shell { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px 22px; align-items: start; padding: clamp(36px, 4vw, 52px) 0; border-bottom: 1px solid var(--line); }
.editorial-row-reverse { grid-template-columns: 36px minmax(0, 1fr); }
.editorial-row-reverse .editorial-visual { order: 0; justify-self: start; }
.editorial-row-reverse .editorial-copy-column { order: 0; justify-self: start; }
.editorial-visual { display: flex; width: 36px; height: 36px; aspect-ratio: auto; align-items: center; justify-content: center; border-radius: 0; background: transparent !important; color: var(--blue); }
.editorial-visual-blue,
.editorial-visual-ink,
.editorial-visual-paper { background: transparent; color: var(--blue); border: 0; }
.editorial-mark { width: 32px; height: auto; }
.editorial-mark-large { width: 32px; }
.editorial-visual-icon { width: 28px; height: 28px; }
.editorial-icon-cluster { display: grid; grid-template-columns: repeat(3, 60px); gap: 10px; }
.editorial-cluster-item { display: flex; width: 60px; height: 60px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; }
.editorial-copy-column { max-width: 640px; }
.editorial-row-shell:not(.editorial-row-reverse) .editorial-visual { justify-self: start; }
.editorial-row-shell:not(.editorial-row-reverse) .editorial-copy-column { justify-self: start; }
.editorial-eyebrow { display: block; margin-bottom: 16px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: 0.15em; line-height: 1.2; text-transform: uppercase; }
.editorial-title { margin: 0 0 14px; color: var(--ink); font-family: var(--font); font-weight: 700; letter-spacing: 0; font-size: clamp(30px, 3.6vw, 48px); line-height: 1; }
.editorial-copy { max-width: 44ch; margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.editorial-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--blue); font-size: 14px; font-weight: 700; text-decoration: none; }
.editorial-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.agent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; border-top: 1px solid var(--line); }
.home-page .agent-card { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; padding: 20px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.home-page .agent-card:hover { border-color: var(--line); box-shadow: none; }
.agent-card-icon { display: inline-flex; grid-row: span 2; color: var(--blue); }
.agent-card-title { margin-bottom: 5px; color: var(--ink); font-size: 15px; font-weight: 700; }
.agent-card-copy { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.steps-list { border-top: 1px solid var(--line); }
.step-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 26px; padding: 26px 0 30px; border-bottom: 1px solid var(--line); }
.step-number { margin: 2px 0 0; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; }
.step-title { margin: 0 0 8px; color: var(--ink); font-family: var(--font); font-weight: 700; letter-spacing: 0; font-size: 28px; line-height: 1; }
.step-copy { max-width: 62ch; margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.cta-section { padding-block: clamp(108px, 14vw, 190px); border-top: 1px solid var(--line); background: var(--paper); }
.home-page .cta-section { padding-top: clamp(76px, 8vw, 112px); padding-bottom: clamp(48px, 5vw, 72px); }
.cta-inner { text-align: center; }
.cta-title { max-width: 780px; margin-inline: auto; font-size: clamp(42px, 5.4vw, 72px); }
.cta-copy { max-width: 600px; margin: 20px auto 32px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.public-button-primary { gap: 8px; min-height: 48px; padding: 14px 22px; border-radius: 8px; }
.source-band { padding: 34px 20px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.source-inner { text-align: center; }
.source-copy { max-width: 700px; margin: 10px auto 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }

/* Public ask bubble ------------------------------------------------------ */

.ask-bubble { position: fixed; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; z-index: 60; width: min(620px, calc(100% - 40px)); opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 12px); transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease; }
.ask-bubble.visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.ask-bubble-form { display: flex; align-items: center; min-height: 58px; padding: 6px 6px 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: 0 12px 30px rgba(15, 23, 42, 0.13); }
.ask-bubble-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-ice), 0 12px 30px rgba(15, 23, 42, 0.13); }
.ask-bubble-mark { width: 20px; height: 20px; flex: 0 0 20px; margin-right: 8px; }
.ask-bubble-input { min-width: 0; flex: 1; padding: 8px 4px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.ask-bubble-input::placeholder { color: var(--ink-3); }
.ask-bubble-form .voice-btn { width: 42px; height: 42px; min-width: 42px; min-height: 42px; margin-right: 4px; }
.ask-bubble-submit { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 42px; padding: 0; border: 0; border-radius: 50%; background: var(--button); color: var(--surface); box-shadow: none; cursor: pointer; transition: background-color 160ms ease, transform 160ms ease; }
.ask-bubble-submit:hover { background: var(--button-hover); }
.ask-bubble-submit:active { transform: translateX(1px); }

/* Public inner pages ---------------------------------------------------- */

.public-page-hero { background: var(--surface); }
.public-hero-content { padding-block: clamp(64px, 9vw, 112px); }
.public-page-title { margin: 0; color: var(--ink); font-family: var(--font); font-weight: 700; letter-spacing: 0; font-size: clamp(40px, 6vw, 72px); line-height: 0.98; }
.public-page-intro { max-width: 680px; margin: 18px 0 0; color: var(--ink-2); font-size: 20px; line-height: 1.35; }
.public-page-meta { margin: 14px 0 0; color: var(--ink-3); font-size: 13px; }
.public-reading-column { max-width: 760px; }
.public-subtitle { margin: 0 0 12px; color: var(--ink); font-size: 22px; font-weight: 700; line-height: 1.2; }
.public-paragraph { margin: 0 0 28px; color: var(--ink-2); font-size: 16px; line-height: 1.72; }
.public-paragraph a,
.public-paragraph-link { color: var(--blue); text-decoration: none; text-underline-offset: 3px; }
.public-paragraph a:hover,
.public-paragraph-link:hover { text-decoration: underline; }
.public-callout { margin-top: 36px; padding: 20px; border: 1px solid var(--blue-ice); border-radius: 6px; background: var(--blue-ice); }
.callout-title { margin: 0 0 4px; color: var(--ink); font-size: 14px; font-weight: 700; }
.callout-copy { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.contact-section { min-height: 520px; }
.contact-form { max-width: 520px; margin-inline: auto; padding: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.contact-error { margin: 0 0 18px; color: var(--danger); font-size: 13px; }
.field-label { display: block; margin: 0 0 6px; color: var(--ink); font-size: 13px; font-weight: 700; }
.public-field { width: 100%; margin: 0 0 18px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font-size: 15px; }
.public-field:focus { border-color: var(--ink); outline: 3px solid var(--focus); outline-offset: 0; box-shadow: inset 0 0 0 2px var(--ink); }
.public-button-full { width: 100%; margin-top: 4px; }
.legal-section { padding-bottom: 112px; }
.legal-reading-column { max-width: 820px; }
.legal-list { margin: 0 0 28px; padding-left: 24px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal-list li + li { margin-top: 8px; }
.legal-note { margin: 24px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.legal-card { max-width: 760px; margin-inline: auto; padding: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }

/* Chat workspace: layout mechanics are intentionally preserved. -------- */

.app { display: flex; height: 100vh; height: 100dvh; overflow: hidden; background: var(--surface); }
.left-pane { width: 280px; min-width: 280px; display: flex; flex-direction: column; overflow-y: auto; background: var(--surface); border-right: 1px solid rgba(203, 213, 225, 0.6); }
.workspace-wordmark { margin-bottom: 16px; font-size: 19px; }
.new-chat-btn { display: block; width: 100%; padding: 10px 12px; border: 1px solid var(--button); border-radius: 8px; background: var(--button); color: var(--surface); box-shadow: none; font-size: 13px; font-weight: 700; cursor: pointer; }
.new-chat-btn:hover { background: var(--button-hover); }
.section-label { margin: 0; padding: 20px 14px 8px; color: var(--ink-3); font-size: 9.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.history-section { flex: 0 0 auto; max-height: 200px; overflow-y: auto; }
.session-list { display: flex; flex-direction: column; }
.session-item { display: flex; align-items: center; position: relative; margin: 1px 8px; border-left: 2px solid transparent; border-radius: 10px; }
.session-item:hover { background: var(--bg-alt); }
.session-item-link { min-width: 0; flex: 1; overflow: hidden; padding: 8px 10px; color: var(--ink-3); font-size: 12.5px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.session-item:hover .session-item-link,
.session-item.active .session-item-link { color: var(--ink); }
.session-item.active { border-left-color: var(--blue); background: var(--bg-alt); }
.session-share-btn { display: none; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; margin-right: 4px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--ink-3); cursor: pointer; }
.session-item:hover .session-share-btn,
.session-share-btn.copied { display: flex; }
.session-share-btn:hover { background: var(--surface); color: var(--ink); }
.session-share-btn.copied { color: var(--success); }
.agents-section { flex: 1; overflow-y: auto; }
.cat-header { display: flex; align-items: center; gap: 7px; width: calc(100% - 16px); margin: 1px 8px; padding: 7px 6px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-size: 12px; font-weight: 700; cursor: pointer; text-align: left; }
.cat-header:hover { background: var(--bg-alt); }
.cat-icon,
.agent-icon { display: inline-flex; color: var(--ink-3); }
.cat-icon { color: var(--ink-3); }
.cat-agents { display: none; padding-left: 8px; }
.cat-agents.open { display: block; }
.agent-item { display: flex; align-items: center; gap: 7px; width: calc(100% - 8px); margin: 1px 0; padding: 7px 12px 7px 14px; border: 0; border-left: 2px solid transparent; border-radius: 0 10px 10px 0; background: transparent; color: var(--ink-3); font-size: 12.5px; cursor: pointer; text-align: left; }
.agent-item:hover { background: var(--bg-alt); color: var(--ink); }
.agent-item.active { border-left-color: var(--blue); background: var(--bg-alt); color: var(--ink); font-weight: 700; }
.agent-item.active .agent-icon { color: var(--blue); }
.workspace-link { display: block; margin: 1px 8px; padding: 6px 6px; border-radius: 10px; color: var(--ink-3); font-size: 12px; text-decoration: none; }
.workspace-link:hover { background: var(--bg-alt); color: var(--blue); }
.auth-section { margin-top: auto; padding: 10px 12px; border-top: 1px solid rgba(203, 213, 225, 0.6); }
.account-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; }
.account-row:hover { background: var(--bg-alt); }
.account-email { overflow: hidden; color: var(--ink-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-action { padding: 0; border: 0; background: transparent; color: var(--ink-3); font-size: 12px; cursor: pointer; }
.account-action:hover { color: var(--ink); }
.auth-section .auth-primary { border: 1px solid rgba(203, 213, 225, 0.8); border-radius: 10px; background: var(--surface); color: var(--ink-2); }
.auth-section .auth-primary:hover { border-color: var(--line); background: var(--bg-alt); color: var(--ink); }
.empty-copy { margin: 0; padding: 0 12px; color: var(--ink-3); font-size: 12px; }

.center-pane { display: flex; min-width: 0; flex: 1; flex-direction: column; background: var(--chat-canvas); }
.chat-header { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 6px 16px; border-bottom: 1px solid rgba(203, 213, 225, 0.4); background: var(--surface); }
.shared-subtitle { color: var(--ink-3); font-size: 14px; }
.chat-header-left { display: flex; align-items: center; gap: 8px; }
.chat-header-title { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.chat-header-dot { color: var(--ink-3); }
.chat-header-agent { color: var(--ink-3); font-size: 12px; }
.chat-header-actions { display: flex; gap: 4px; }
.header-action-btn { padding: 4px 10px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--ink-3); font-size: 11px; cursor: pointer; text-decoration: none; }
.header-action-btn:hover { border-color: var(--blue); color: var(--blue); }
.header-icon-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); cursor: pointer; transition: color 160ms ease, background-color 160ms ease; }
.header-icon-btn:hover { background: var(--bg-alt); color: var(--ink); }
.header-icon-btn.active { background: var(--blue-ice); color: var(--blue); }
.header-icon-btn.copied { color: var(--success); }
.header-icon-btn[title]:hover::after { position: absolute; top: 100%; left: 50%; z-index: 10; margin-top: 4px; padding: 3px 8px; border-radius: 3px; background: var(--ink); color: var(--surface); content: attr(title); font-size: 11px; pointer-events: none; transform: translateX(-50%); white-space: nowrap; }
.mobile-menu-btn { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--ink); cursor: pointer; }
.mobile-menu-btn:hover { background: var(--bg-alt); }
.chat-header-logo { display: none; align-items: center; flex-shrink: 0; padding: 2px; border-radius: 4px; text-decoration: none; }

.messages { display: flex; min-height: 0; flex: 1; flex-direction: column; overflow-y: auto; padding: 32px clamp(16px, 4vw, 52px) 36px; background: var(--chat-canvas); scrollbar-color: rgba(100, 116, 139, 0.45) transparent; scrollbar-width: thin; }
.welcome-hero { width: min(100%, 860px); max-width: 860px; margin: auto; padding: clamp(86px, 13vh, 148px) 24px 72px; text-align: center; }
.welcome-title { margin: 0 0 16px; color: var(--ink); font-family: var(--font); font-weight: 700; letter-spacing: 0; font-size: clamp(40px, 6vw, 56px); line-height: 1; }
.welcome-copy { max-width: 580px; margin: 0 auto 36px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.sample-cards-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(100%, 700px); margin: 0 auto; }
.sample-card { display: flex; align-items: center; width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid rgba(203, 213, 225, 0.85); border-radius: 999px; background: transparent; color: var(--ink-2); font-size: 13px; line-height: 1.35; cursor: pointer; text-align: left; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.sample-card:hover { border-color: var(--line); background: var(--bg-alt); color: var(--ink); }
.sample-card-text { display: block; }

/* Always-present follow-up / starter chips under the composer */
.followups { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; width: min(calc(100% - 32px), 880px); margin: -8px auto 16px; padding: 0 2px; }
.followups:empty { display: none; }
.followup-chip { display: inline-flex; align-items: center; max-width: 100%; padding: 7px 14px; border: 1px solid rgba(203, 213, 225, 0.85); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 12.5px; line-height: 1.3; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.followup-chip:hover { border-color: var(--blue); background: var(--bg-alt); color: var(--ink); }

/* "Powered by Predictive Labs Ltd" in the chat sidebar */
.powered-by { margin: 0; padding: 10px 16px 14px; font-size: 11px; line-height: 1.3; color: var(--ink-3); text-align: center; }
.powered-by-link { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid transparent; }
.powered-by-link:hover { color: var(--ink); border-bottom-color: currentColor; }
.msg { width: min(100%, 720px); margin-bottom: 28px; }
.msg-user { max-width: min(100%, 520px); margin-left: auto; }
.msg-assistant { max-width: 720px; margin-right: auto; }
.msg-bubble { color: var(--ink); font-size: 15.75px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.msg-user .msg-bubble { padding: 10px 14px; border: 0; border-radius: 18px; background: var(--ink); color: var(--surface); font-size: 14.5px; line-height: 1.55; }
.msg-assistant .msg-bubble { padding: 0; background: transparent; }
.msg-assistant .msg-bubble p,
.msg-assistant .msg-bubble h1,
.msg-assistant .msg-bubble h2,
.msg-assistant .msg-bubble h3,
.msg-assistant .msg-bubble ul,
.msg-assistant .msg-bubble ol,
.msg-assistant .msg-bubble li,
.msg-assistant .msg-bubble blockquote,
.msg-assistant .msg-bubble pre,
.msg-assistant .msg-bubble table { white-space: normal; }
.msg-assistant .msg-bubble p { margin: 0 0 1em; }
.msg-assistant .msg-bubble p:last-child { margin-bottom: 0; }
.msg-assistant .msg-bubble h1,
.msg-assistant .msg-bubble h2,
.msg-assistant .msg-bubble h3 { margin: 1.45em 0 0.5em; color: var(--ink); font-family: var(--font); font-weight: 700; letter-spacing: 0;  line-height: 1.15; }
.msg-assistant .msg-bubble h1:first-child,
.msg-assistant .msg-bubble h2:first-child,
.msg-assistant .msg-bubble h3:first-child { margin-top: 0; }
.msg-assistant .msg-bubble h1 { font-size: 1.45em; }
.msg-assistant .msg-bubble h2 { font-size: 1.2em; }
.msg-assistant .msg-bubble h3 { font-size: 1.05em; }
.msg-assistant .msg-bubble ul,
.msg-assistant .msg-bubble ol { margin: 0 0 1em; padding-left: 1.35em; }
.msg-assistant .msg-bubble li + li { margin-top: 0.4em; }
.msg-assistant .msg-bubble blockquote { margin: 1.15em 0; padding: 0 0 0 1em; border-left: 1px solid var(--line); color: var(--ink-2); }
.msg-assistant .msg-bubble hr { margin: 1.5em 0; border: 0; border-top: 1px solid rgba(203, 213, 225, 0.7); }
.msg-assistant .msg-bubble a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.msg-assistant .msg-bubble code { padding: 0.14em 0.38em; border-radius: 5px; background: var(--bg-alt); color: var(--ink); font-size: 0.88em; }
.msg-assistant .msg-bubble pre { margin: 1.15em 0; padding: 16px 18px; overflow-x: auto; border-radius: 12px; background: var(--ink); color: var(--surface); line-height: 1.55; }
.msg-assistant .msg-bubble pre code { padding: 0; border-radius: 0; background: transparent; color: inherit; font-size: 0.86em; }
.msg-assistant .msg-bubble table { width: 100%; margin: 1.15em 0; border-collapse: collapse; font-size: 0.92em; }
.msg-assistant .msg-bubble th,
.msg-assistant .msg-bubble td { padding: 0.65em 0.75em; border-bottom: 1px solid rgba(203, 213, 225, 0.7); text-align: left; }
.msg-assistant .msg-bubble th { color: var(--ink); font-weight: 700; }
.msg-assistant .msg-bubble td { color: var(--ink-2); }
.msg-assistant .msg-bubble .source-chip,
.msg-assistant .msg-bubble .citation-chip,
.msg-assistant .msg-bubble .source-link,
.msg-assistant .msg-bubble .citation,
.msg-assistant .msg-bubble a[href^="http"] { display: inline-flex; align-items: center; gap: 0.25em; padding: 0.2em 0.65em; border: 1px solid rgba(203, 213, 225, 0.9); border-radius: 999px; color: var(--ink-2); font-size: 0.78em; line-height: 1.35; text-decoration: none; vertical-align: baseline; }
.msg-assistant .msg-bubble .source-chip:hover,
.msg-assistant .msg-bubble .citation-chip:hover,
.msg-assistant .msg-bubble .source-link:hover,
.msg-assistant .msg-bubble .citation:hover,
.msg-assistant .msg-bubble a[href^="http"]:hover { background: var(--bg-alt); color: var(--ink); }
.msg-agent { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.msg-agent-icon { display: block; width: 24px; height: 12px; flex-shrink: 0; border-radius: 2px; box-shadow: 0 0 0 1px rgba(20, 22, 26, 0.12); }
.msg-agent-label { color: var(--ink-3); font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; }
.feedback-row { display: flex; align-items: center; gap: 4px; min-height: 28px; margin-top: 10px; color: var(--ink-3); }
.feedback-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 5px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--ink-3); cursor: pointer; }
.feedback-btn:hover { border-color: var(--line); background: var(--surface); color: var(--blue); }
.feedback-btn.active { color: var(--blue); }
.feedback-btn:disabled { cursor: default; opacity: 0.55; }
.feedback-note { color: var(--ink-3); font-size: 11px; transition: opacity 250ms ease; }
.feedback-note.fading { opacity: 0; }
.retry-row { display: flex; align-items: center; margin-top: 10px; }
.retry-btn { min-height: 32px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--ink-3); font-size: 12px; cursor: pointer; }
.retry-btn:hover { border-color: var(--blue); color: var(--blue); }
.tool-log { margin-top: 12px; padding: 10px 0 0; border-top: 1px solid rgba(203, 213, 225, 0.7); }
.tool-step { padding: 2px 0; color: var(--ink-3); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.tool-name { color: var(--ink-2); font-weight: 700; }
.tool-args { color: var(--ink-3); }
.thinking-indicator { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--ink-2); font-size: 12px; }
.thinking-indicator .dot { display: inline-flex; width: 20px; height: 10px; animation: pulse 1.2s ease-in-out infinite; }
.thinking-indicator .thinking-mark { display: block; width: 20px; height: 10px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { .thinking-indicator .dot { animation: none; } }
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.thinking-indicator .secs { color: var(--ink-3); }

.chat-form { display: flex; align-items: flex-end; gap: 10px; width: min(calc(100% - 32px), 880px); min-height: 64px; flex: 0 0 auto; margin: 0 auto 20px; padding: 8px 10px 8px 16px; border: 1px solid rgba(203, 213, 225, 0.9); border-radius: 20px; background: var(--surface); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06); }
.chat-form:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--focus); }
.chat-form textarea { min-height: 42px; max-height: 240px; min-width: 0; flex: 1; resize: none; padding: 8px 0; border: 0; border-radius: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; line-height: 1.55; }
.chat-form textarea::placeholder { color: var(--ink-3); }
.send-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--button); color: var(--surface); box-shadow: none; font-size: 16px; font-weight: 700; cursor: pointer; }
.send-btn:hover { background: var(--button-hover); }
.send-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.voice-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; }
.voice-btn:hover { border-color: var(--blue); color: var(--blue); }
.voice-btn.active { background: var(--blue); border-color: var(--blue); color: var(--surface); }
.voice-panel { display: flex; align-items: center; gap: 12px; width: min(calc(100% - 32px), 880px); margin: 0 auto 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.voice-orb { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); flex-shrink: 0; }
.voice-panel[data-state="listening"] .voice-orb { background: var(--blue); animation: voicePulse 1.2s ease-in-out infinite; }
.voice-panel[data-state="speaking"] .voice-orb { background: var(--blue-bright); animation: voicePulse 0.8s ease-in-out infinite; }
.voice-panel[data-state="thinking"] .voice-orb { background: var(--ink-2); animation: voicePulse 1s ease-in-out infinite; }
.voice-panel[data-state="error"] .voice-orb { background: #B42318; }
@keyframes voicePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(1.5); } }
.voice-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.voice-status { color: var(--ink); font-size: 13px; font-weight: 600; }
.voice-line { color: var(--ink-2); font-size: 13px; font-weight: 400; line-height: 1.35; }
.voice-line:empty { display: none; }
.hero-prompt-slot .voice-panel,
.ask-bubble .voice-panel { width: 100%; margin: 0 0 8px; }
.voice-stop { padding: 6px 12px; border: 0; border-radius: 4px; background: var(--ink); color: var(--surface); font-size: 12px; font-weight: 600; cursor: pointer; }
.voice-stop:hover { background: var(--blue-deep); }
.voice-hint { display: flex; align-items: center; gap: 10px; width: min(calc(100% - 32px), 880px); margin: 0 auto 8px; padding: 8px 12px; border: 1px solid var(--blue-ice); border-radius: 10px; background: var(--surface); color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.voice-hint strong { color: var(--blue); font-weight: 700; }
.voice-hint-x { margin-left: auto; flex-shrink: 0; padding: 0 2px; border: 0; background: none; color: var(--ink-3); font-size: 18px; line-height: 1; cursor: pointer; }
.voice-hint-x:hover { color: var(--ink); }

.right-pane { display: flex; width: 0; min-width: 0; flex-direction: column; overflow: hidden; border-left: 1px solid rgba(203, 213, 225, 0.6); background: var(--chat-canvas); transition: width 0.2s ease; }
.right-pane.open { width: 420px; min-width: 420px; }
.artifact-header { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; padding: 12px 16px; border-bottom: 1px solid rgba(203, 213, 225, 0.4); background: var(--chat-canvas); }
.artifact-title { margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; }
.artifact-subtitle { color: var(--ink-3); font-size: 11px; }
.artifact-empty { padding: 32px 16px; text-align: center; }
.artifact-empty-copy { margin: 0; color: var(--ink-3); font-size: 13px; }
.artifact-body { min-height: 0; flex: 1; overflow-y: auto; padding: 18px 16px; }
.artifact-card { margin-bottom: 18px; padding: 0 0 18px; border: 0; border-bottom: 1px solid rgba(203, 213, 225, 0.7); border-radius: 0; background: transparent; }
.artifact-card .meta { margin-bottom: 5px; color: var(--ink-3); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.artifact-card h4 { margin: 0 0 8px; color: var(--ink); font-size: 13px; font-weight: 700; }
.artifact-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.artifact-table th { padding: 7px 8px; border-bottom: 1px solid rgba(203, 213, 225, 0.8); color: var(--ink-2); font-size: 11px; font-weight: 700; text-align: left; }
.artifact-table td { padding: 6px 8px; border-bottom: 1px solid rgba(203, 213, 225, 0.6); color: var(--ink-2); }
.artifact-table tr:hover { background: transparent; }
.table-toolbar { display: flex; gap: 4px; margin-bottom: 5px; }
.table-action-btn { padding: 4px 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink-2); font-size: 10px; cursor: pointer; }
.table-action-btn:hover { border-color: var(--line); background: var(--bg-alt); color: var(--ink); }

/* Overlay and mobile z-index hierarchy: 40 / 50 / 55 / 60 / 65 / 100. */
.signin-overlay { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 42, 0.56); }
.signin-overlay.visible { display: flex; }
.left-overlay { position: fixed; inset: 0; z-index: 40; display: none; background: rgba(15, 23, 42, 0.32); }
.left-overlay.visible { display: block; }
.right-overlay { position: fixed; inset: 0; z-index: 55; display: none; background: rgba(15, 23, 42, 0.32); }
.right-overlay.visible { display: block; }

.lang-dropdown { position: relative; }
.lang-trigger { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 6px 12px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--ink-2); font-family: var(--font); cursor: pointer; }
.lang-trigger-flag,
.lang-dd-flag { display: inline-flex; align-items: center; width: 20px; height: 15px; flex-shrink: 0; }
.lang-trigger-flag svg,
.lang-dd-flag svg { display: block; }
.lang-trigger-code { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.lang-trigger-chevron { color: var(--ink-3); }
.lang-trigger:hover { background: var(--bg-alt); color: var(--ink); }
.chat-header .lang-trigger { color: var(--ink-2); }
.chat-header .lang-trigger-chevron { color: var(--ink-3); }
.chat-header .lang-trigger:hover { background: var(--bg-alt); }
.lang-dd-menu { position: absolute; top: 100%; right: 0; z-index: 100; display: none; min-width: 160px; max-height: 360px; margin-top: 4px; overflow-y: auto; padding: 4px 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12); }
.lang-dd-menu.open { display: block; }
.lang-dd-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 12px; border: 0; background: transparent; color: var(--ink); font-size: 13px; cursor: pointer; text-align: left; white-space: nowrap; }
.lang-dd-item:hover,
.lang-dd-item.active { background: var(--bg-alt); }
.lang-dd-label { flex: 1; }
.right-pane-toggle { position: fixed; right: 12px; bottom: 80px; z-index: 30; display: none; align-items: center; gap: 6px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 700; cursor: pointer; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06); }
.right-pane-toggle:hover { background: var(--bg-alt); color: var(--ink); }
.right-pane-toggle .toggle-label { font-size: 12px; }
.right-pane-close { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; margin-left: auto; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--ink-3); cursor: pointer; }
.right-pane-close:hover { background: var(--bg-alt); color: var(--ink); }

/* Authentication ------------------------------------------------------- */
.auth-panel { width: 100%; max-width: 410px; padding: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14); }
.auth-tabs { display: flex; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.auth-copy { margin: 0 0 18px; color: var(--ink-2); font-size: 14px; }
.auth-field { display: block; width: 100%; margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font-size: 14px; }
.auth-field:focus { border-color: var(--ink); outline: 3px solid var(--focus); outline-offset: 0; box-shadow: inset 0 0 0 2px var(--ink); }
.auth-field-last { margin-bottom: 4px; }
.auth-link { color: var(--blue); font-size: 13px; text-decoration: none; }
.auth-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-forgot { display: block; margin-bottom: 16px; }
.auth-error { min-height: 18px; margin-bottom: 8px; color: var(--danger); font-size: 12px; }
.auth-success { min-height: 18px; margin-bottom: 8px; color: var(--success); font-size: 12px; }
.auth-message { min-height: 18px; margin-bottom: 8px; color: var(--ink-2); font-size: 13px; }
.auth-actions { display: flex; gap: 8px; }
.auth-action { min-height: 38px; padding: 9px 14px; border: 1px solid transparent; border-radius: 4px; font-size: 13px; font-weight: 700; cursor: pointer; }
.auth-primary { background: var(--button); color: var(--surface); border-radius: 8px; box-shadow: none; }
.auth-primary:hover { background: var(--button-hover); }
.auth-secondary { border-color: var(--line); background: var(--bg-alt); color: var(--ink-2); }
.auth-secondary:hover { border-color: var(--blue); color: var(--blue); }
.auth-full { width: 100%; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 10px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.google-btn:hover { background: var(--bg-alt); }
.google-btn-icon { display: flex; align-items: center; }
.google-btn-text { font-family: var(--font); }
.google-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.google-divider-line { height: 1px; flex: 1; background: var(--line); }
.google-divider-text { color: var(--ink-3); font-size: 12px; }

@media (max-width: 1023px) {
  .nav-burger { display: flex; }
  .public-nav-actions .public-nav-cta { display: none; }
}

@media (pointer: coarse) {
  .header-icon-btn { width: 44px; height: 44px; }
  .session-share-btn { width: 44px; height: 44px; }
  .mobile-menu-btn { width: 44px; height: 44px; }
  .right-pane-close { width: 44px; height: 44px; }
  .lang-trigger { min-width: 44px; min-height: 44px; }
  .lang-option { min-height: 44px; }
  .lang-dd-item { min-height: 44px; }
  .cat-header, .agent-item { padding-top: 12px; padding-bottom: 12px; }
  .table-action-btn { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
  .session-item-link { padding-top: 12px; padding-bottom: 12px; }
  .workspace-link { padding-top: 10px; padding-bottom: 10px; }
  .header-action-btn { min-height: 44px; }
  .retry-btn { min-height: 44px; }
}

@media (max-width: 900px) {
  .agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .portal-container,
  .home-hero-inner { width: min(100% - 28px, 1200px); }
  .public-footer { padding-inline: 14px; }
  .public-nav > div { min-height: 58px; }
  .public-nav-link { min-height: 58px; }
  .hero-title { font-size: clamp(44px, 12vw, 68px); }
  .home-hero-inner { padding: clamp(28px, 5svh, 48px) 0 clamp(32px, 5svh, 48px); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .public-section { padding-inline: 14px; }
  .source-band { padding-inline: 14px; }
  .agent-grid { grid-template-columns: 1fr; }
  .editorial-row-shell,
  .editorial-row-reverse { grid-template-columns: 36px minmax(0, 1fr); gap: 14px 18px; }
  .editorial-row-reverse .editorial-visual,
  .editorial-row-reverse .editorial-copy-column { order: initial; justify-self: start; }
  .editorial-visual { width: 36px; }
  .statement-accent { white-space: normal; }
  .ask-bubble { width: calc(100% - 28px); }
  .contact-form,
  .legal-card { padding: 20px; }
  /* Fixed mobile drawers and their behavior remain unchanged. */
  .left-pane { position: fixed; top: 0; bottom: 0; left: -280px; z-index: 50; transition: left 0.2s ease; }
  .left-pane.open { left: 0; }
  .mobile-menu-btn { display: flex; }
  .right-pane { position: fixed; top: 0; right: -100%; bottom: 0; z-index: 60; width: 85% !important; min-width: 0 !important; max-width: 360px; box-shadow: -4px 0 20px rgba(15, 23, 42, 0.12); transition: right 0.25s ease; }
  .right-pane.open { right: 0; width: 85% !important; min-width: 0 !important; max-width: 360px; }
  .right-pane-toggle { display: none; }
  .right-pane-toggle.has-results { display: flex; }
  .right-pane.open ~ .right-pane-toggle { display: none !important; }
  .right-pane-close { display: flex; }
  .center-pane { width: 100%; }
  .messages { padding: 16px 12px; }
  .chat-header { padding: 8px 12px; }
  .chat-form { width: calc(100% - 24px); margin-bottom: 12px; padding: 8px 8px 8px 14px; border-radius: 16px; }
  .voice-panel, .voice-hint { width: calc(100% - 24px); }
  .chat-form textarea { min-height: 64px; }
  .chat-header-logo { display: inline-flex; }
  #artifact-btn { display: none; }
}

@media (max-width: 480px) {
  .public-nav > div { gap: 8px; padding-inline: 10px; }
  .public-nav-actions { gap: 4px; }
  .lang-trigger { min-width: 44px; min-height: 44px; padding-inline: 6px; }
  .public-nav-cta { min-height: 44px; padding-inline: 8px; font-size: 12px; }
  .hero-prompt-form { min-height: 54px; padding: 4px; }
  .hero-prompt-input { min-width: 0; min-height: 44px; padding: 12px; font-size: 14px; }
  .hero-prompt-form .voice-btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .hero-prompt-submit { width: 44px; height: 44px; flex-basis: 44px; margin-left: 4px; }
  .hero-actions { margin-top: 18px; }
  .hero-action { width: 100%; justify-content: center; }
  .welcome-hero { padding: 40px 4px 24px; }
  .chat-form textarea { padding-inline: 0; }
  .send-btn { min-width: 44px; padding-inline: 0; }
}

@media (max-width: 640px) {
  .sample-cards-row { grid-template-columns: 1fr; }
  .welcome-hero { padding: 64px 4px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .js .reveal,
  .js .reveal.reveal-in { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Independence notice + official sources (every page). Plain text links, no logos. */
.sources-notice { padding: 16px 18px; border-left: 4px solid var(--blue-deep); background: var(--notice-bg); color: var(--ink); font-size: 14px; line-height: 1.5; text-align: left; }
.sources-notice-text { margin: 0 0 8px; font-weight: 600; }
.sources-notice-label { margin: 0 0 4px; color: var(--ink-2); font-size: 13px; }
.sources-notice-list { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; }
.sources-notice-link { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.sources-notice-link:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }
.sources-notice-compact { margin: 8px 8px 4px; padding: 10px 12px; font-size: 12px; }
.sources-notice-compact .sources-notice-text { font-weight: 500; }
.sources-notice-compact .sources-notice-label { font-size: 11.5px; }
.sources-notice-compact .sources-notice-list { gap: 2px 10px; }

/* BYOK key dialog */
.byok-dialog { max-width: 460px; width: calc(100% - 32px); padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.byok-dialog::backdrop { background: rgba(20, 22, 26, 0.45); }
.byok-form { display: flex; flex-direction: column; gap: 10px; padding: 22px; font-family: var(--font); }
.byok-form h2 { margin: 0; font-size: 20px; }
.byok-form p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.byok-form a { color: var(--blue); }
.byok-form label { font-size: 14px; font-weight: 600; }
.byok-row { display: flex; gap: 8px; }
.byok-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 2px solid var(--ink-2); border-radius: 8px; font-size: 15px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.byok-show, .byok-cancel { padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; font-weight: 600; }
.byok-save { padding: 10px 16px; border: 0; border-radius: 8px; background: var(--button); color: #fff; cursor: pointer; font-weight: 700; }
.byok-save:disabled { opacity: 0.7; cursor: progress; }
.byok-error { color: var(--danger) !important; font-weight: 600; }
.byok-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

/* ---- Developers page (pattern from eesti.chat / alpatrade.chat developers) ---- */
.dev-block { --d-bg: var(--surface); --d-card: var(--surface); --d-ink: var(--ink); --d-ink-2: var(--ink-2); --d-ink-3: var(--ink-3); --d-line: var(--line); --d-accent: var(--blue); --d-chip: var(--bg-alt);
  display: grid; gap: 56px; margin: 0 0 64px; color: var(--d-ink); }
.dev-block code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.dev-block p code, .dev-fields code, .dev-block .dev-p code { padding: 1px 6px; border-radius: 6px; background: var(--d-chip); color: var(--d-ink); font-size: .88em; }
.dev-hero { max-width: 820px; }
.dev-hero-title { margin: 14px 0 16px; color: var(--d-ink); font-family: 'AinoHeadline', Verdana, system-ui, sans-serif; font-size: clamp(28px, 4vw, 44px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; }
.dev-lede { max-width: 64ch; margin: 0 0 24px; color: var(--d-ink-2); font-size: 17px; line-height: 1.6; }
.dev-endpoint { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; max-width: 100%; padding: 8px 8px 8px 18px; border: 1px solid var(--d-accent); border-radius: 14px; background: var(--d-card); }
.dev-endpoint-url { color: var(--d-ink); font-size: 16px; font-weight: 600; word-break: break-all; }
.dev-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--d-line); }
.dev-stat { display: flex; flex-direction: column; gap: 2px; }
.dev-stat-n { color: var(--d-ink); font-family: 'AinoHeadline', Verdana, system-ui, sans-serif; font-size: 30px; line-height: 1; }
.dev-stat-l { color: var(--d-ink-3); font-size: 13px; }
.dev-works { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 18px 0; border-top: 1px solid var(--d-line); border-bottom: 1px solid var(--d-line); }
.dev-works-label { color: var(--d-ink-3); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.dev-works-row { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.dev-works-item { display: inline-flex; align-items: center; gap: 10px; color: var(--d-ink); font-size: 16px; font-weight: 600; }
.dev-client-logo { display: inline-flex; width: 24px; height: 24px; color: var(--d-ink); }
.dev-client-logo svg { width: 100%; height: 100%; }
.dev-step { display: grid; gap: 14px; max-width: 960px; }
.dev-h { margin: 0; color: var(--d-ink); font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -0.01em; }
.dev-h4 { margin: 0 0 8px; color: var(--d-ink); font-size: 15px; font-weight: 700; }
.dev-p { margin: 0; color: var(--d-ink-2); line-height: 1.65; }
.dev-note { margin: -4px 0 0; color: var(--d-ink-3); font-size: 12px; font-style: italic; }
.dev-subs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 10px; }
.dev-fields { margin: 0; padding: 0; list-style: none; color: var(--d-ink-2); line-height: 1.5; }
.dev-fields li { padding: 5px 0; border-top: 1px solid var(--d-line); font-size: 14px; }
/* terminal */
.dev-term { width: 100%; min-width: 0; border-radius: 14px; background: #0B1120; box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 32px rgba(2,8,23,.18); border: 1px solid #1E293B; overflow: hidden; }
.dev-term-bar { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border-bottom: 1px solid #1E293B; background: #0F172A; }
.dev-dots { display: inline-flex; gap: 6px; }
.dev-dot { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.dev-term-title { flex: 1; min-width: 0; color: #94A3B8; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-term-body { padding: 16px 18px 18px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13.5px; line-height: 1.7; }
.dev-term-row { display: flex; }
.dev-term-prompt { flex: none; color: #64748B; white-space: pre; user-select: none; }
.dev-term-cmd { min-width: 0; color: #F1F5F9; white-space: pre-wrap; overflow-wrap: anywhere; }
.dev-term-arrow { flex: none; color: #4ADE80; white-space: pre; user-select: none; }
.dev-term-out { min-width: 0; color: #94A3B8; white-space: pre-wrap; overflow-wrap: anywhere; }
.dev-copy { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px; border: 1px solid #334155; border-radius: 8px; background: transparent; color: #CBD5E1; font-size: 12px; font-weight: 600; cursor: pointer; }
.dev-copy:hover { border-color: #7FA8FF; color: #fff; }
.dev-copy.is-copied { border-color: #4ADE80; color: #4ADE80; }
.dev-copy:focus-visible, .dev-client-tab:focus-visible { outline: 2px solid var(--d-accent); outline-offset: 2px; }
.dev-endpoint .dev-copy { border-color: var(--d-line); color: var(--d-ink); }
.dev-endpoint .dev-copy:hover { border-color: var(--d-accent); color: var(--d-accent); }
/* clients */
.dev-client-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dev-client-tab { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 10px 14px; border: 1px solid var(--d-line); border-radius: 14px; background: var(--d-card); color: var(--d-ink); font-size: 15px; font-weight: 600; cursor: pointer; }
.dev-client-tab:hover { border-color: var(--d-accent); }
.dev-client-tab.is-active { border-color: var(--d-accent); box-shadow: inset 0 0 0 1px var(--d-accent); }
.dev-client-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: start; margin-top: 18px; }
.dev-client-panel[hidden] { display: none; }
.dev-client-steps { margin: 0; padding-left: 20px; color: var(--d-ink-2); line-height: 1.6; }
.dev-client-steps li { padding: 4px 0; }
/* tools + limits */
.dev-bottom { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.dev-card { display: grid; align-content: start; gap: 16px; padding: 24px; border: 1px solid var(--d-line); border-radius: 18px; background: var(--d-card); }
.dev-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.dev-tool-group { margin: 0 0 6px; color: var(--d-accent); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dev-tool-list { margin: 0; padding: 0; list-style: none; }
.dev-tool { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--d-line); }
.dev-tool-name { color: var(--d-ink); font-size: 12.5px; font-weight: 600; }
.dev-tool-desc { color: var(--d-ink-2); font-size: 13px; line-height: 1.45; }
.dev-tiers { margin: 0; padding: 0; list-style: none; }
.dev-tiers li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--d-line); }
.dev-tier { color: var(--d-ink); font-weight: 700; }
.dev-tier-v { color: var(--d-ink-2); font-size: 14px; }
.dev-link { color: var(--d-accent); font-weight: 700; }
.developers-official-title { margin-top: 8px; margin-bottom: 8px; }
@media (max-width: 1024px) {
  .dev-bottom, .dev-client-panel { grid-template-columns: 1fr; }
  .dev-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .dev-block { gap: 40px; }
  .dev-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dev-subs, .dev-tool-grid { grid-template-columns: 1fr; }
  .dev-client-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dev-term-body { padding: 14px; font-size: 12.5px; }
  .dev-endpoint { display: flex; }
}


/* Developers page extras */
.developers-page .dev-block { max-width: 1040px; margin: 0 auto; }
.dev-tool-section { margin-top: 18px; }
.dev-tool-item { border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; background: var(--surface); }
.dev-tool-item > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.dev-tool-item > summary::-webkit-details-marker { display: none; }
.dev-tool-item > summary::before { content: "+"; font-weight: 700; color: var(--blue); width: 12px; }
.dev-tool-item[open] > summary::before { content: "−"; }
.dev-tool-item > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.dev-tool-key { color: var(--ink-3); font-size: 12px; margin-left: auto; }
.dev-tool-body { padding: 0 14px 14px; }
.dev-req { color: var(--flag-red, #c8102e); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.dev-json { max-height: 360px; overflow: auto; background: #0b1220; color: #e8eef8; padding: 12px 14px; border-radius: 8px; font-size: 12px; line-height: 1.45; white-space: pre; }
.dev-disclaimer { margin: 28px 0 12px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 16px 0 8px; }
.tool-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tool-card h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.tool-card .tool-domain { color: var(--ink-3); font-size: 13px; }
.tool-card p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; flex: 1; }
.tool-card .tool-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--notice-bg, #eef2fa); color: var(--blue-deep, #012169); font-size: 12px; }
.tool-chip.is-ours { background: var(--blue-deep, #012169); color: #fff; }
.tool-card .tool-open { align-self: flex-start; font-weight: 700; color: var(--blue); text-decoration: none; }
.tool-card .tool-open:hover { text-decoration: underline; }
.tools-section { margin-top: 36px; }
.tools-section h2 { font-size: 22px; margin: 0 0 4px; }
.tools-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.tools-table th, .tools-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tools-table th { color: var(--ink-2); font-weight: 700; }

.tools-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tools-table-wrap .tools-table { min-width: 560px; }

/* BYOK key-help */
.byok-dialog { max-width: 520px; max-height: calc(100dvh - 32px); overflow-y: auto; }
.byok-sub { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.byok-providers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.byok-get { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink) !important; text-decoration: none; font-size: 13.5px; background: #fff; }
.byok-get:hover, .byok-get:focus-visible { border-color: var(--ink-3); background: var(--bg-alt); }
.byok-logo { width: 16px; height: 16px; flex: none; opacity: .85; filter: grayscale(1); }
.byok-get-name { font-weight: 600; flex: 1; min-width: 0; }
.byok-chip { font-size: 10.5px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 1px 6px; white-space: nowrap; }
.byok-get-cta { display: none; }
.byok-select { padding: 9px 10px; border: 2px solid var(--ink-2); border-radius: 8px; font-size: 14px; background: #fff; color: var(--ink); }
.byok-detected { min-height: 1em; font-size: 12.5px !important; color: var(--ink-3) !important; }
.byok-note { font-size: 12.5px !important; color: var(--ink-3) !important; }
.byok-current { padding: 8px 10px; border-radius: 8px; background: var(--bg-alt); }
.byok-current code { font-size: 12px; }
.byok-remove { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--danger); font-weight: 600; cursor: pointer; font-size: 13px; }
@media (max-width: 480px) { .byok-providers { grid-template-columns: 1fr; } }
.account-key-btn { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 2px; padding: 7px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-size: 12.5px; cursor: pointer; text-align: left; }
.account-key-btn:hover { background: var(--bg-alt); color: var(--ink); }
.account-key-label { font-weight: 600; }
.account-key-status { margin-left: auto; color: var(--ink-3); font-size: 11.5px; }
.account-key-status.is-missing { color: var(--danger); }

/* Developers / Tools: the hero and the first section share one white surface, so
   the standard hero bottom padding plus section top padding left a large blank gap. */
.developers-page .public-hero-content, .tools-page .public-hero-content { padding-block: clamp(48px, 7vw, 88px) 0; }
.developers-page .public-section, .tools-page .public-section { padding-top: clamp(24px, 3vw, 36px); }
.dev-client-logo.is-gray svg { filter: grayscale(1); }
.dev-client-tab .dev-client-logo { width: 20px; height: 20px; }
.byok-get-cta { display: inline; color: var(--ink-3); font-size: 13px; }
