/* Shared workspace design system. Loaded after the feature styles so chat,
   settings, approval controls and the native web view use the same surfaces. */
:root {
  --side-w: 264px;
  --head-h: 72px;
  --r-sm: 8px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px;
  --bg: #fafaf7;
  --side-bg: #f1f2ed;
  --surface: #ffffff;
  --surface-2: #e9ece5;
  --border: #d4d9ce;
  --border-soft: #e2e5dc;
  --text: #242a24;
  --text-2: #596255;
  --text-3: #65705f;
  --accent: #3e5945;
  --accent-fg: #ffffff;
  --selection: #e4ebe0;
  --shadow-1: 0 2px 8px #25322205;
  --shadow-2: 0 16px 48px #2532221c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #191b19; --side-bg: #20231f; --surface: #242824; --surface-2: #30362f;
    --border: #434b40; --border-soft: #343c32;
    --text: #ecede7; --text-2: #b7c0b1; --text-3: #a6b09f;
    --accent: #c4d6b8; --accent-fg: #253421; --selection: #343e2f;
    --shadow-1: 0 2px 8px #0000000d; --shadow-2: 0 16px 48px #00000038;
  }
}
:root[data-theme="dark"] {
  --bg: #191b19; --side-bg: #20231f; --surface: #242824; --surface-2: #30362f;
  --border: #434b40; --border-soft: #343c32;
  --text: #ecede7; --text-2: #b7c0b1; --text-3: #a6b09f;
  --accent: #c4d6b8; --accent-fg: #253421; --selection: #343e2f;
  --shadow-1: 0 2px 8px #0000000d; --shadow-2: 0 16px 48px #00000038;
}
body { letter-spacing: -.012em; }
button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
.btn { border-radius: var(--r-sm); font-weight: 600; box-shadow: none; }
.btn.ghost { background: transparent; }
input, select, textarea { border-radius: var(--r-sm); }
.card, .setting-card, .tasks-list-card { box-shadow: none; }
.card h2, .setting-card h3 { letter-spacing: -.025em; }
:where(button,a,summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:where(p, small, strong) { overflow-wrap: break-word; }

/* Navigation: stable destinations first, people and their conversations below. */
.side { padding: 0 12px; }
.side-top { padding: 14px 8px; gap: 12px; }
.brand { font-size: 17px; gap: 10px; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.brand-mark img { width: 21px; height: 21px; }
.brand small { font-size: 11px; }
.workspace-nav { display: grid; gap: 3px; padding: 8px 0 22px; border-bottom: 1px solid var(--border-soft); }
.workspace-nav .side-link { padding: 0 12px; width: 100%; font-size: 13px; gap: 12px; }
.workspace-nav .side-link[aria-current="page"] { background: var(--selection); color: var(--accent); }
.workspace-nav .side-link svg { flex: none; }
.side-team-heading { display: flex; align-items: center; justify-content: space-between; padding: 20px 8px 4px; gap: 4px; }
.side-team-heading > span { color: var(--text-2); font-size: 11px; font-weight: 650; }
.side-team-heading #botCount { margin-left: 4px; color: var(--text-3); font-weight: 450; }
.side-team-heading .side-create { min-height: 44px; border: 0; border-radius: 8px; padding: 0 7px; }
.side-search { padding: 0 0 8px; }
.side-search input { padding: 0 12px; font-size: 12px; border: 1px solid var(--border-soft); background: var(--bg); }
.bot-row { min-height: 52px; font-size: 13px; }
.bot-row .nm { font-size: 13px; font-weight: 550; }
.bot-row[data-current="true"] { background: var(--surface); }
.agent-mark { box-shadow: none; }
.agent-thread-row { border-radius: 6px; }
.agent-thread-title { font-size: 12px; }
.agent-thread-meta { font-size: 10px; }
.side-foot { padding: 10px 0 max(12px, env(safe-area-inset-bottom)); }
.side-foot .me #me { font-size: 12px; }
.me-copy small { font-size: 11px; }
.account-menu-item { font-size: 13px; }

/* Header and chat share a quiet, readable width. */
.head { border-bottom: 1px solid var(--border-soft); padding-inline: 28px; gap: 18px; background: var(--bg); }
.head h1 { font-size: 15px; letter-spacing: -.02em; }
.head-copy .sub { font-size: 11px; }
.head-modes { border-radius: 9px; background: var(--side-bg); padding: 3px; }
.head-modes::before { border-radius: 7px; }
.mode-btn { font-size: 12px; min-width: 68px; padding: 0 14px; }
.mode-btn.is-active { color: var(--text); }
.head-kicker { font-size: 10px; }
.head-team { margin-left: 0; }
.head-team .team-chip { background: transparent; }
.thread { width: min(100%, 848px); padding-inline: 32px; gap: 28px; }
.thread[data-empty="true"] { align-content: center; padding-block: 48px 32px; }
.welcome { width: 100%; max-width: 784px; padding: 0; text-align: left; justify-items: start; gap: 14px; }
.welcome-character { min-width: 48px; min-height: 48px; margin-bottom: 5px; }
.welcome-character .agent-mark-large { width: 48px; height: 48px; border-radius: 15px; }
.welcome-kicker { font-size: 12px; letter-spacing: .005em; }
.welcome h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.13; font-weight: 580; letter-spacing: -.045em; }
.welcome p { max-width: 52ch; font-size: 14px; line-height: 1.7; }
.welcome-description { -webkit-line-clamp: 3; }
.welcome-starts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 24px; width: 100%; }
.welcome-start { position: relative; display: grid; align-content: start; justify-items: start; gap: 8px; min-height: 148px; padding: 18px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface); color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.welcome-start:hover { border-color: var(--accent); background: var(--selection); }
.welcome-start > svg:first-child { color: var(--accent); margin-bottom: 8px; }
.welcome-start strong { font-size: 13px; font-weight: 600; }
.welcome-start span { color: var(--text-2); font-size: 12px; line-height: 1.5; }
.welcome-start > svg:last-child { position: absolute; right: 14px; top: 22px; color: var(--text-3); }
.welcome-trust { margin-top: 4px; font-size: 11px; }
.composer-wrap { padding: 20px 32px max(18px,env(safe-area-inset-bottom)); }
.composer { max-width: 784px; border-radius: 16px; border-color: var(--border); background: var(--surface); padding: 10px 10px 10px 18px; box-shadow: 0 4px 20px #17201306; }
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb,var(--accent) 8%,transparent); }
.composer textarea { min-height: 58px; font-size: 15px; }
.composer-note { font-size: 11px; line-height: 1.5; }
.composer-hint { font-size: 10px; }
.send { border-radius: 10px; }
.model-chip { max-width: min(360px,50vw); min-width: 0; border-radius: 7px; background: var(--side-bg); font-size: 11px; }
.model-chip span { max-width: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-chip svg { flex: none; }
.turn.bot .bubble { font-size: 15px; line-height: 1.75; }
.turn.me .bubble { border-radius: 14px 14px 4px 14px; background: var(--selection); }
.markdown-body strong { font-weight: 650; }
.md-table { max-width: 100%; overflow-x: auto; margin: 18px 0; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--surface); }
.md-table table { width: 100%; min-width: 320px; border-collapse: collapse; }
.md-table th { background: var(--side-bg); font-size: 12px; }
.md-table td { font-size: 13px; }
.md-table th, .md-table td { padding: 12px 16px; white-space: normal; }
.md-table .md-align-left { text-align: left; }
.md-table .md-align-center { text-align: center; }
.md-table .md-align-right { text-align: right; }
.delegation-card { border-radius: 12px; box-shadow: none; }

/* All management screens follow one heading, section, row rhythm. */
.page { padding: 36px 32px 56px; grid-template-columns: minmax(0,1fr); }
.page > * { min-width: 0; }
.side-close { display: none; }
.settings-shell.page { width: min(100%,1220px); padding: 32px 32px 56px; }
.settings-layout { grid-template-columns: 172px minmax(0,1fr); gap: 36px; }
.set-nav { gap: 20px; }
.set-nav-item { border-radius: 8px; font-size: 12px; }
.set-nav-item[aria-current="page"] { background: var(--selection); color: var(--accent); box-shadow: none; }
.set-section-head { padding: 0 0 24px; gap: 12px; }
.set-section-icon { display: none; }
.set-section-head h2 { font-size: 28px; line-height: 1.2; font-weight: 600; }
.set-section-head p { font-size: 13px; }
.settings-kicker, .tasks-kicker { font-size: 10px; font-weight: 600; letter-spacing: .075em; }
.set-stack > .card > p { font-size: 13px; line-height: 1.65; color: var(--text-2); }
.set-stack > .card > h2, .set-stack > .card > h3 { font-size: 15px; font-weight: 600; }
.set-stack { gap: 20px; padding-top: 24px; }
.setting-card { border-radius: 12px; background: var(--surface); }
.setting-card-head { padding: 20px; min-height: auto; }
.setting-card-head h3 { font-size: 15px; }
.setting-card-head p { font-size: 12px; }
.setting-notice { font-size: 12px; margin: 0 20px 18px; background: var(--side-bg); border-radius: 8px; padding: 12px; }
.setting-field > span { font-size: 12px; }
.setting-field small { font-size: 11px; }
.setting-card > h3, .setting-card > h2 { margin: 20px 20px 10px; }
.setting-card > p { margin: 12px 20px 20px; color: var(--text-2); font-size: 13px; line-height: 1.65; }
.setting-card > .btn { margin: 0 20px 20px; }
.setting-card > summary { padding: 18px 20px; min-height: 58px; cursor: pointer; font-size: 13px; font-weight: 600; }
.setting-card > summary > span { display: block; padding: 3px 0 0 16px; color: var(--text-2); font-size: 11px; font-weight: 450; }
.setting-facts dt, .setting-person-copy > span { font-size: 12px; }
.setting-facts dd, .setting-person-copy strong { font-size: 13px; }
.setting-person-copy > span, .setting-facts dd small { font-size: 11px; }
.setting-person-row { padding-inline: 20px; }
.setting-empty { padding: 24px; font-size: 13px; }
.local-account-list { padding: 0 20px; }
.local-account-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 20px 0; border-top: 1px solid var(--border-soft); }
.local-account-copy { min-width: 0; }
.local-account-row:has(.account-actions[open]) { align-items: start; }
.local-account-title { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.local-account-title strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.account-default { display: inline-flex; align-items: center; gap: 4px; border-radius: 5px; background: var(--selection); color: var(--accent); padding: 3px 6px; font-size: 10px; }
.local-account-copy p { margin: 5px 0; color: var(--text-2); font-size: 12px; }
.local-account-copy small { display: flex; gap: 5px; align-items: center; color: var(--text-3); font-size: 11px; flex-wrap: wrap; }
.local-account-copy small svg { flex: none; }
.local-account-actions { display: flex; gap: 8px; align-items: center; }
.local-account-actions .btn { font-size: 11px; }
.local-account-copy .setting-field { margin-top: 12px; max-width: 380px; }
.account-actions { position: relative; }
.account-actions summary { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 10px; border: 1px solid var(--border-soft); border-radius: 8px; font-size: 11px; color: var(--text-2); cursor: pointer; list-style: none; }
.account-actions summary::-webkit-details-marker { display: none; }
.account-actions[open] { min-width: 154px; }
.account-action-list { display: grid; justify-items: stretch; gap: 4px; padding: 8px 0 0; }
.account-action-list .btn, .account-action-list .text-button { text-align: left; justify-content: flex-start; padding: 0 10px; min-height: 44px; font-size: 11px; }
.account-connect { border-top: 1px solid var(--border-soft); }
.account-connect > summary { padding: 16px 20px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 550; min-height: 58px; }
.account-connect > summary span { margin-left: auto; font-weight: 450; font-size: 11px; color: var(--text-2); }
.account-connect .model-connect-form { padding: 4px 20px 20px; }
.account-browser-note { display: flex; gap: 12px; padding: 18px 20px; background: var(--side-bg); border-top: 1px solid var(--border-soft); }
.account-browser-note > svg { flex: none; color: var(--text-2); margin-top: 2px; }
.account-browser-note strong { font-size: 12px; font-weight: 550; }
.account-browser-note p { margin: 4px 0 0; color: var(--text-2); font-size: 12px; }
.account-empty { padding: 4px 20px 24px; }
.account-empty h4 { font-size: 16px; margin: 16px 0 8px; }
.account-empty p { color: var(--text-2); font-size: 13px; }
.model-browser { grid-template-columns: 190px minmax(0,1fr); }
.model-detail-head { flex-wrap: wrap; }
.model-provider-logo, .model-detail-logo { border-radius: 9px; }
.model-form-actions { flex-wrap: wrap; }

/* Team setup keeps responsibilities readable without opening every profile. */
.desktop-agent-manager { gap: 24px; }
.desktop-agent-group { border-radius: 12px; background: var(--surface); box-shadow: none; }
.desktop-agent-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
.desktop-agent-card { border: 0; border-radius: 0; }
.desktop-agent-card + .desktop-agent-card { border-top: 1px solid var(--border-soft); }
.desktop-agent-main { padding: 16px 0; min-height: 78px; }
.desktop-agent-copy > small { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.55; font-size: 12px; }
.desktop-available-grid { grid-template-columns: repeat(auto-fit,minmax(min(310px,100%),1fr)); gap: 10px; }
.desktop-available-agent { padding: 16px; min-height: 100px; }
.desktop-agent-dialog { max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); }
.desktop-dialog-heading h2 { font-size: 17px; }
.response-style { border-radius: 8px; }
.plugin-tabs { border-radius: 8px; }
.plugin-market-card { border-radius: 12px; }
.auto-model-settings > p { color: var(--text-2); font-size: 13px; line-height: 1.65; }
.auto-model-settings > h2 { font-size: 15px; }
.auto-model-settings > ul:empty { display: none; }
.auto-model-settings summary { min-height: 44px; padding-block: 10px; font-size: 12px; cursor: pointer; }

/* Routines and the human review queue. */
.tasks-page { padding: 36px 32px 56px; }
.tasks-shell { max-width: 1000px; gap: 24px; }
.tasks-hero { padding: 0; align-items: center; gap: 24px; }
.tasks-hero h2, .workspace-page-intro h2 { margin: 6px 0 0; font-size: clamp(26px,2.4vw,32px); line-height: 1.15; font-weight: 580; letter-spacing: -.04em; }
.tasks-hero p, .workspace-page-intro p { max-width: 560px; margin: 12px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.65; }
.tasks-hero-actions { display: grid; gap: 8px; flex: none; }
.tasks-hero-actions .btn { font-size: 12px; }
.task-metrics { gap: 0; border: 1px solid var(--border-soft); background: var(--surface); border-radius: 12px; overflow: hidden; }
.task-metrics article { border: 0; border-radius: 0; min-height: 115px; background: transparent; padding: 18px 22px; gap: 10px; }
.task-metrics article + article { border-left: 1px solid var(--border-soft); }
.task-metrics strong { font-size: 27px; font-weight: 550; }
.tasks-section-head { min-height: 72px; padding: 16px 22px; }
.tasks-section-head h3 { font-weight: 600; }
.tasks-section-head .tasks-kicker { display: none; }
.routine { padding: 20px 22px; }
.routine.off { opacity: 1; }
.routine-glyph { border-radius: 9px; background: var(--side-bg); }
.r-name { font-weight: 600; }
.r-when { font-size: 12px; }
.r-new { border-radius: 12px; }
.routine-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.routine-presets > span { flex-basis: 100%; font-size: 12px; color: var(--text-2); }
.routine-presets .btn { font-size: 12px; }
.task-form { background: var(--surface); }
.governance-page { max-width: 1080px; }
.workspace-page-intro { margin-bottom: 12px; }
.tiles { border: 1px solid var(--border-soft); border-radius: 12px; gap: 0; background: var(--surface); overflow: hidden; }
.tile { border: 0; border-radius: 0; background: transparent; padding: 18px 22px; }
.tile + .tile { border-left: 1px solid var(--border-soft); }
.tile-n { font-size: 27px; font-weight: 550; }
.sec-title { margin: 12px 0 0; font-size: 14px; letter-spacing: -.01em; text-transform: none; color: var(--text); }
.governance-approval { border-left: 3px solid var(--wait); background: var(--surface); }
.governance-approval .decision-head { gap: 10px; flex-wrap: wrap; }
.governance-approval .acts-row { flex-wrap: wrap; }
.governance-approval .decision-note { font-size: 11px; line-height: 1.6; }
.governance-policy { border-top: 1px solid var(--border-soft); margin-top: 8px; }
.governance-policy > summary { padding: 20px 0; font-size: 14px; font-weight: 600; cursor: pointer; }
.governance-policy > summary span { font-weight: 400; color: var(--text-2); font-size: 12px; margin-left: 12px; }
.governance-policy > .card { margin-bottom: 16px; }
.scroll-x { border-radius: 8px; }
th { color: var(--text-2); font-size: 11px; text-transform: none; font-weight: 600; }
td { font-size: 12px; }

/* Sign-in and first-run use the same calm surfaces and controls. */
.gate { background: var(--bg); }
.gate-card { border-radius: 16px; box-shadow: var(--shadow-1); }
.auth-shell { max-width: 980px; min-height: 660px; border-radius: 18px; box-shadow: var(--shadow-2); }
.auth-story { background: var(--side-bg); color: var(--text); border-right: 1px solid var(--border-soft); padding: 40px; }
.auth-story::after { display: none; }
.auth-brand { flex: none; color: var(--text); }
.auth-brand small, .auth-kicker, .auth-story-copy > p, .auth-agent-stack small { color: var(--text-2); }
.auth-story-copy { margin-top: 64px; }
.auth-story h1 { font-size: 44px; line-height: 1.08; font-weight: 580; letter-spacing: -.045em; }
.auth-kicker { letter-spacing: .075em; }
.auth-agent-stack > span { border-color: var(--side-bg); }
.auth-heading h2 { font-size: 28px; font-weight: 600; }
.auth-form input { border-radius: 8px; }
.auth-panel { background: var(--surface); padding: 48px; }
.auth-assurance { font-size: 11px; }
.auth-provider-list > :only-child { grid-column: 1 / -1; }
.auth-provider-btn { border-radius: 8px; font-size: 12px; }

/* Keep the same hierarchy on narrower desktop windows and phones. */
@media (max-width: 1180px) {
  .settings-layout { grid-template-columns: 150px minmax(0,1fr); gap: 24px; }
  .settings-shell.page { padding-inline: 24px; }
  .head-team { display: none; }
  .local-account-row { gap: 12px; }
  .local-account-actions { flex-wrap: wrap; justify-content: flex-end; }
  .model-browser { grid-template-columns: 1fr; }
  .model-provider-list { max-height: 220px; }
}
@media (max-width: 900px) {
  .app { grid-template-rows: minmax(0,1fr); }
  .main { grid-row: 1; height: 100%; }
  .panel[data-open="false"] { display: none; }
  .side { width: min(310px,86vw); }
  .head { padding-inline: 16px; gap: 10px; }
  .side .side-theme, .side .side-close { display: inline-grid; }
  .tasks-hero h2 { font-size: 28px; }
}
@media (max-width: 760px) {
  .head-modes { position: relative; left: auto; transform: none; margin-left: auto; }
  .head-identity { display: flex; max-width: none; }
  .mode-btn { padding: 0 9px; min-width: 56px; font-size: 11px; }
  .head-identity { gap: 8px; }
  .head-copy { max-width: 130px; }
  .head-copy .sub { display: none; }
  .settings-return span { display: none; }
  .settings-layout { grid-template-columns: 1fr; gap: 0; }
  .settings-shell.page, .page, .tasks-page { padding: 24px 18px 40px; }
  .set-mobile-switcher { margin-bottom: 22px; }
  .set-section-head h2 { font-size: 25px; }
  .thread { padding: 24px 20px; }
  .thread[data-empty="true"] { padding-block: 32px 24px; }
  .welcome h2 { font-size: 32px; }
  .welcome-starts { gap: 8px; margin-top: 14px; }
  .welcome-start { padding: 14px; min-height: 144px; }
  .welcome-start > svg:last-child { display: none; }
  .composer-wrap { padding: 12px 16px max(12px,env(safe-area-inset-bottom)); }
  .composer-note { font-size: 10px; max-width: 340px; }
  .composer-hint { display: none; }
  .composer { padding: 8px 8px 8px 14px; }
  .composer textarea { font-size: 16px; }
  .model-chip { max-width: calc(100vw - 195px); }
  .tasks-hero { display: block; }
  .tasks-hero-actions { display: flex; flex-wrap: wrap; margin-top: 20px; }
  .task-metrics article { padding: 16px 14px; }
  .task-metrics strong { font-size: 25px; }
  .task-metrics .task-next-value { font-size: 18px; }
  .auth-shell { min-height: 100dvh; border-radius: 0; }
  .auth-story { border-right: 0; border-bottom: 1px solid var(--border-soft); padding: 24px; }
  .auth-story-copy { margin-top: 24px; }
  .auth-story h1 { font-size: 28px; }
  .auth-panel { padding: 32px 24px; }
}
@media (max-width: 520px) {
  .head { gap: 6px; padding-inline: 10px; }
  .head-identity { display: flex; }
  .head-identity .agent-mark { display: none; }
  .head-copy { max-width: 100px; }
  .head .acts:empty { display: none; }
  .welcome h2 { font-size: 28px; }
  .welcome-starts { grid-template-columns: 1fr; }
  .welcome-start { grid-template-columns: 22px 1fr; gap: 3px 12px; min-height: 72px; padding: 14px; }
  .welcome-start > svg:first-child { grid-row: span 2; margin: 4px 0 0; }
  .welcome-start span { grid-column: 2; }
  .welcome-character { display: none; }
  .welcome-trust { font-size: 10px; }
  .local-account-row { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .local-account-actions { justify-content: flex-start; }
  .account-actions[open] { width: 100%; }
  .account-action-list { grid-template-columns: 1fr; }
  .account-connect > summary { flex-wrap: wrap; }
  .account-connect > summary span { flex-basis: 100%; margin-left: 23px; }
  .task-metrics { grid-template-columns: 1fr; }
  .task-metrics article { grid-template-columns: 1fr auto; align-items: center; min-height: 82px; gap: 5px 12px; }
  .task-metrics article + article { border-left: 0; border-top: 1px solid var(--border-soft); }
  .task-metrics article small { grid-column: 1; grid-row: 2; }
  .task-metrics article strong { grid-column: 2; grid-row: 1 / span 2; }
  .tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tile { padding: 14px; }
  .tile:nth-child(3) { border-left: 0; }
  .tile:nth-child(n+3) { border-top: 1px solid var(--border-soft); }
  .governance-policy > summary span { display: block; margin: 4px 0 0; }
  .governance-approval .btn { white-space: normal; text-align: left; }
}
/* Verification sits above the current editor so pending work stays in place. */
.mfa-verification-dialog { width:min(460px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); overflow:auto; box-sizing:border-box; margin:auto; padding:28px; border:1px solid var(--border); border-radius:20px; background:var(--surface); color:var(--text); box-shadow:0 24px 80px #0005; }
.mfa-verification-dialog::backdrop { background:#0007; backdrop-filter:blur(4px); }
.mfa-verification-dialog h2 { margin:0 0 12px; font-size:22px; letter-spacing:-.03em; }
.mfa-verification-dialog p { color:var(--text-2); font-size:14px; line-height:1.6; }
.mfa-verification-dialog label { display:block; margin:20px 0 8px; font-size:13px; }
.mfa-verification-dialog input,.mfa-verification-dialog select { width:100%; box-sizing:border-box; }
.mfa-verification-dialog footer { display:flex; justify-content:flex-end; gap:10px; margin-top:24px; }
.mfa-verification-dialog .hint.bad { color:var(--no); }
.mfa-verification-setup img { display:block; width:180px; max-width:100%; background:white; padding:8px; margin:12px auto; }
.mfa-verification-setup code { display:block; padding:12px; margin-top:8px; overflow-wrap:anywhere; user-select:all; }
