@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/public-sans-400.ttf') format('truetype'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/public-sans-500.ttf') format('truetype'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/public-sans-600.ttf') format('truetype'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/public-sans-700.ttf') format('truetype'); }
@font-face { font-family: 'Material Symbols Outlined'; font-style: normal; font-weight: 400; font-display: block; src: url('/assets/fonts/material-symbols.ttf') format('truetype'); }
@font-face { font-family: 'Noto Sans SC'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/noto-sans-sc-400.f0e03dbf82ff.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans SC'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/noto-sans-sc-600.f2b8c385d7ac.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans SC'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/noto-sans-sc-700.be8a109bcb4f.woff2') format('woff2'); }
:root {
  --background: #FAFAF8; --surface: #FFFFFF; --field: #F2F3F0; --text: #202322; --secondary: #616763;
  --subtle: #E8EAE6; --border: #DFE3DF; --interaction: #315E66;
  --success: #427A5B; --success-background: #EEF5F1; --warning: #875916; --warning-background: #F5EFE5;
  color-scheme: light; font-family: 'Public Sans', 'Noto Sans SC', sans-serif;
  font-size: 16px; line-height: 1.6; background: var(--background); color: var(--text);
}
:root[data-theme="dark"] {
  --background: #161918; --surface: #1D211F; --field: #111312; --text: #E7EAE8; --secondary: #9EA6A2;
  --subtle: #242927; --border: #303633; --interaction: #8EB4BA;
  --success: #64D0A5; --success-background: #192B23; --warning: #E4B75C; --warning-background: #2B241A;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --background: #161918; --surface: #1D211F; --field: #111312; --text: #E7EAE8; --secondary: #9EA6A2;
    --subtle: #242927; --border: #303633; --interaction: #8EB4BA;
    --success: #64D0A5; --success-background: #192B23; --warning: #E4B75C; --warning-background: #2B241A;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--interaction); }
button, input, select, textarea { font: inherit; color: inherit; }
button, .button, select, input { min-height: 44px; }
button, .button { border: 1px solid var(--border); border-radius: 4px; background: transparent; padding: 9px 16px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.5; }
button:hover, .button:hover { background: var(--subtle); color: var(--text); }
button:disabled { cursor: default; color: var(--secondary); background: var(--subtle); }
.primary { background: var(--text); color: var(--background); border-color: var(--text); font-weight: 600; }
.primary:hover { background: var(--text); color: var(--background); }
.primary:disabled { color: var(--secondary); background: var(--subtle); border-color: var(--border); }
input, select, textarea { background: var(--field); border: 1px solid var(--border); border-radius: 4px; padding: 10px 12px; min-width: 0; max-width: 100%; }
input, select, textarea { font-size: 16px; }
input::placeholder, textarea::placeholder { color: var(--secondary); opacity: 1; }
:focus-visible { outline: 2px solid var(--interaction); outline-offset: 3px; }
/* #main receives programmatic focus after each navigation; only main is exempt
   from the focus ring so it never paints a full-content outline. Interactive
   controls (buttons, links, inputs) keep their :focus-visible ring. */
main#main[tabindex="-1"]:focus,
main#main[tabindex="-1"]:focus-visible { outline: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 24px; line-height: 1.4; font-weight: 700; letter-spacing: -.4px; overflow-wrap: anywhere; }
h2 { font-size: 16px; line-height: 1.5; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
p + p { margin-top: 12px; }
small, .small { font-size: 12px; color: var(--secondary); }
.muted { color: var(--secondary); }
.mono { font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', 'Noto Sans SC', monospace; overflow-wrap: anywhere; }
.icon { font-family: 'Material Symbols Outlined'; font-weight: 400; font-style: normal; font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr; flex-shrink: 0; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; width: 20px; height: 20px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -60px; left: 16px; padding: 10px; min-height: 44px; display: inline-flex; align-items: center; background: var(--background); z-index: 10; }
.skip-link:focus { top: 8px; }
.site-header { height: 56px; padding: 0 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; text-decoration: none; font-size: 16px; font-weight: 600; white-space: nowrap; }
.project-name { display: inline-flex; gap: 8px; font-weight: 400; }
.context-divider { color: var(--secondary); }
.mobile-back, .mobile-brand-icon, .mobile-settings-label { display: none; }
.theme-control.mobile-settings-theme { display: none; }
.header-nav { display: flex; align-items: stretch; height: 100%; gap: 24px; flex-shrink: 0; }
.header-nav a, .header-tools a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; text-decoration: none; }
.header-nav a { color: var(--secondary); border-bottom: 2px solid transparent; }
.header-nav a[aria-current="page"], .settings-link[aria-current="page"] { border-bottom: 2px solid var(--interaction); color: var(--interaction); }
.header-tools { margin-left: auto; height: 100%; display: flex; align-items: center; gap: 24px; }
.settings-link { height: 100%; }
.account-link { max-width: 240px; }
.account-link span:not(.icon) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-control { display: inline-flex; align-items: center; gap: 4px; color: var(--secondary); }
.theme-control select { border: 0; padding: 8px 4px; background: transparent; font-size: 14px; }
.login-header .theme-control { border: 1px solid var(--border); border-radius: 4px; padding: 0 8px; }
.login-header .theme-control > .icon { display: none; }
.account-link[aria-current="page"] { border-bottom: 2px solid var(--interaction); color: var(--interaction); }
.header-model { background: var(--subtle); border: 1px solid var(--border); border-radius: 4px; padding: 6px 10px; }
.project-picker { display: inline-flex; align-items: center; gap: 8px; margin-left: -16px; }
.project-picker select { border: 0; padding: 8px 2px; background: transparent; width: 130px; }
.conversation-header:has(.project-picker) .brand .project-name { display: none; }
.mobile-more { display: none; margin-left: auto; position: relative; }
.mobile-more summary { min-height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.more-panel { position: absolute; right: 0; top: 48px; padding: 8px; width: 196px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); z-index: 5; }
.more-panel a, .more-panel label { display: flex; min-height: 44px; padding: 8px; text-decoration: none; align-items: center; }
.more-panel label { flex-direction: column; align-items: stretch; gap: 8px; }
.page { max-width: 1120px; margin: 40px auto; padding: 0 24px; }
.narrow-container { max-width: 880px; }
.page-heading, .page-title { margin-bottom: 32px; }
.page-heading > p { margin-top: 8px; }
.panel { border: 1px solid var(--border); border-radius: 4px; padding: 24px; background: var(--surface); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.section { padding: 28px 0; border-top: 1px solid var(--border); }
.section h2, .section h3 { margin-bottom: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.section > .actions, .unavailable-panel .actions { margin-top: 24px; }
.unavailable-panel > h2 { margin-bottom: 12px; }
.unavailable-panel > .small { margin-top: 16px; }
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.facts > div:last-child { border-bottom: 0; }
dt { color: var(--secondary); }
dd { margin: 0; overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status > .icon { font-size: 8px; }
.success { color: var(--success); }
.warning, .warning-text { color: var(--warning); }
.neutral { color: var(--secondary); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border: 1px solid var(--border); border-radius: 2px; background: var(--subtle); color: var(--secondary); font-size: 12px; line-height: 1.5; }
.login-page { max-width: 468px; margin: max(56px, calc(50dvh - 208px)) auto 48px; padding: 0 24px; }
.login-page h1 { margin-bottom: 16px; }
.login-actions { display: flex; flex-direction: column; gap: 16px; margin: 28px 0 24px; padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.login-actions .button { width: 100%; }
.login-back { display: flex; min-height: 44px; align-items: center; justify-content: center; color: var(--secondary); text-decoration: none; }
.login-note { line-height: 1.7; }
.model-toolbar { min-height: 44px; display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.model-connection-select { display: grid; gap: 6px; min-width: min(360px, 100%); color: var(--secondary); }
.model-connection-select select { color: var(--text); background: var(--field); }
.model-layout { display: grid; gap: 24px; }
.connection-heading { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.connection-heading > div { display: flex; align-items: center; gap: 12px; }
.connection-heading .status { font-size: 12px; border: 1px solid var(--border); background: var(--subtle); border-radius: 2px; padding: 2px 6px; }
.connection-heading .success { background: var(--success-background); }
.connection-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; margin: 20px 0 0; }
.connection-facts dt { font-size: 12px; margin-bottom: 6px; }
.value-box { display: inline-block; border: 1px solid var(--border); border-radius: 4px; background: var(--subtle); padding: 4px 8px; font-size: 12px; max-width: 100%; }
.credential-row { grid-column: 1 / -1; }
.credential-row dd { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 4px; background: var(--subtle); }
.connection-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.connection-actions button { min-height: 44px; padding: 9px 12px; font-size: 14px; }
.connection-actions .icon { font-size: 18px; }
.models-panel h2 { font-size: 16px; }
.models-panel > p { margin-top: 4px; margin-bottom: 16px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { padding: 0; }
.radio-row { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
input[type="radio"] { accent-color: var(--interaction); min-height: 20px; height: 20px; width: 20px; flex-shrink: 0; margin: 0; }
.model-option { border: 1px solid var(--border); border-radius: 4px; padding: 12px 16px; margin-top: 8px; }
.model-option:has(input:checked) { border-color: var(--interaction); background: var(--subtle); }
.default-tag { color: var(--interaction); margin-left: auto; }
.model-actions { display: flex; justify-content: end; margin-top: 24px; min-height: 44px; }
.model-action-note { margin-top: 12px; }
.model-editor { margin-bottom: 24px; }
.model-editor .panel-heading > div { min-width: 0; }
.model-editor label { display: grid; gap: 6px; }
.model-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-helper { margin: 16px 0; color: var(--secondary); }
.form-helper p { margin-top: 8px; }
.model-base-url, .model-list-field { grid-column: 1 / -1; }
.model-editor textarea { width: 100%; resize: vertical; }
.model-empty { display: grid; gap: 12px; }
.model-empty .primary { justify-self: start; }
.account-page .panel + .panel { margin-top: 24px; }
.account-page .panel { border-radius: 0; }
.account-info h2 { padding-bottom: 16px; border-bottom: 1px solid var(--border); color: var(--secondary); font-size: 14px; }
.account-info .facts dd { text-align: right; }
.account-info .facts > div:last-child dd::before { content: 'fiber_manual_record'; font-family: 'Material Symbols Outlined'; font-size: 8px; color: var(--success); margin-right: 8px; }
.appearance-label { display: none; }
.theme-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.theme-choice { position: relative; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 12px; min-height: 64px; border: 1px solid var(--border); cursor: pointer; }
.theme-choice input { position: absolute; opacity: 0; width: 20px; height: 20px; }
.theme-choice:has(input:checked) { border-color: var(--interaction); background: var(--subtle); color: var(--interaction); }
.theme-choice:has(input:focus-visible) { outline: 2px solid var(--interaction); outline-offset: 3px; }
.account-actions { display: flex; justify-content: space-between; margin-top: 40px; }
.account-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--border); margin-top: 24px; padding-top: 24px; }
.account-footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--secondary); text-decoration: none; }
.projects-page { min-height: calc(100dvh - 120px); display: flex; flex-direction: column; }
.projects-page .page-heading { padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.search-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.search-row label { display: flex; align-items: center; gap: 8px; max-width: 448px; width: 100%; padding: 0 12px; background: var(--subtle); border: 1px solid var(--border); border-radius: 2px; }
.search-row input { border: 0; background: transparent; width: 100%; padding: 8px 0; }
.project-list { list-style: none; margin: 0; padding: 0; }
.project-row { padding: 16px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px; align-items: center; }
.project-row-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.project-row h2 { font-size: 16px; }
.project-row h2 a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.project-row .actions { justify-content: end; gap: 12px; }
.project-updated { max-width: 210px; }
.project-count { margin-top: auto; padding-top: 28px; }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--border); }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 12px 0; white-space: nowrap; text-decoration: none; color: var(--secondary); }
.tabs a[aria-current="page"] { color: var(--interaction); border-bottom: 2px solid var(--interaction); font-weight: 600; }
.project-tabs { max-width: 1120px; margin: 0 auto; padding: 0 24px; border-bottom: 0; }
.project-tabs a { padding-top: 8px; padding-bottom: 8px; }
.project-page { margin-top: 32px; }
.project-page-heading { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--border); }
.release-subtitle { font-size: 14px; font-weight: 400; color: var(--secondary); margin-top: 6px; }
.project-page-tools { display: flex; gap: 16px; align-items: start; color: var(--secondary); font-size: 12px; }
.project-page-tools a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.text-button { border: 0; padding: 8px 0; color: var(--interaction); }
.runtime-notice { padding: 16px; border: 1px solid var(--border); background: var(--warning-background); margin-bottom: 28px; }
.runtime-notice p { padding-left: 16px; margin-top: 4px; }
.release-records, .release-history, .runtime-observation { margin-bottom: 28px; }
.release-records .facts { font-size: 12px; }
.release-records .facts > div { padding-top: 10px; padding-bottom: 10px; }
.release-records h2, .release-history h2, .runtime-observation h2 { font-size: 14px; color: var(--secondary); margin-bottom: 12px; }
.release-records .facts > div:first-child { border-top: 1px solid var(--border); }
.history { list-style: none; padding: 0; margin: 0; }
.history li { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.history li:last-child { border-bottom: 1px solid var(--border); }
.history time { margin-left: auto; }
.observation-body { border: 1px solid var(--border); background: var(--subtle); padding: 16px; }
.observation-body p { margin-top: 8px; }
.observation-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 24px 0 0; }
.check-details { border: 1px solid var(--border); border-radius: 4px; margin: 24px 0; }
.check-details summary { cursor: pointer; min-height: 44px; padding: 12px 16px; display: flex; align-items: center; gap: 8px; list-style: none; }
.check-details[open] summary > .icon { transform: rotate(90deg); }
.check-details > div { padding: 16px; border-top: 1px solid var(--border); }
.release-footer { border-top: 1px solid var(--border); padding-top: 32px; margin-top: 32px; display: flex; justify-content: space-between; gap: 16px; }
.observation-metrics > div { border: 1px solid var(--border); padding: 12px; }
.observation-metrics dd { margin-top: 6px; }
.conversation-page { max-width: none; width: 100%; height: calc(100dvh - 56px); margin: 0; padding: 0; display: flex; flex-direction: column; }
.conversation-flow { width: min(880px, 100%); padding: 32px 24px 48px; margin: 0 auto; flex: 1; min-height: 0; overflow-y: auto; }
.user-request { display: flex; align-items: end; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.user-bubble { margin-top: 0; border: 1px solid var(--border); background: var(--subtle); border-radius: 4px; padding: 12px 16px; max-width: 80%; }
.check-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.check-heading .status { border: 1px solid var(--border); border-radius: 3px; background: var(--warning-background); padding: 2px 8px; font-size: 12px; }
.conclusion { font-size: 24px; line-height: 1.5; font-weight: 700; }
.check-explanation { margin-top: 8px; margin-bottom: 24px; }
.evidence-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.evidence-caption h3 { font-size: 12px; }
.evidence-table { border: 1px solid var(--border); border-radius: 4px; font-size: 12px; }
.evidence-row, .evidence-table-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 16px; padding: 12px 16px; align-items: center; }
.evidence-table-heading { padding-top: 8px; padding-bottom: 8px; background: var(--subtle); color: var(--secondary); }
.evidence-row { border-top: 1px solid var(--border); }
.evidence-row > :last-child, .evidence-table-heading > :last-child { text-align: right; }
.evidence-values { display: flex; flex-wrap: wrap; gap: 6px; }
.check-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.conversation-actions { gap: 12px; }
.composer-dock { position: relative; flex-shrink: 0; background: var(--background); border-top: 1px solid var(--border); padding: 16px 0 12px; z-index: 2; }
.composer { max-width: 832px; width: calc(100% - 48px); margin: auto; padding: 12px 16px; background: var(--subtle); border: 1px solid var(--border); border-radius: 4px; }
.composer textarea { width: 100%; min-height: 48px; resize: vertical; border: 0; padding: 0; background: transparent; }
.composer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.composer-context { display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; }
.composer-project { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: var(--text); font-weight: 500; font-size: 14px; overflow: hidden; }
.composer-project span { overflow: hidden; text-overflow: ellipsis; }
.composer-model { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: var(--secondary); font-size: 12px; }
.composer-model .icon { font-size: 8px; color: var(--interaction); }
.composer-actions { display: flex; align-items: center; gap: 8px; }
.clear-prompt { border: 0; padding: 8px; color: var(--secondary); }
.send-prompt { width: 44px; padding: 8px; }
.composer-footnote { position: relative; max-width: 832px; width: calc(100% - 48px); min-height: 20px; margin: 8px auto 0; padding-right: 72px; text-align: center; }
.task-query { position: relative; flex-shrink: 0; }
.composer-footnote .task-query { position: absolute; right: 0; top: -12px; }
.task-query summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 12px; color: var(--secondary); }
.task-query .form-stack { position: absolute; bottom: calc(100% + 8px); right: 0; width: min(420px, calc(100vw - 32px)); z-index: 5; }
.suggest-check { margin-top: 16px; }
.conversation-page > #feedback { max-width: 832px; width: calc(100% - 48px); margin: 0 auto 16px; }
.notice { margin: 20px 0; padding: 16px; background: var(--subtle); border-left: 2px solid var(--border); overflow-wrap: anywhere; }
.form-stack { display: grid; gap: 16px; max-width: 420px; }
.form-stack input { display: block; width: 100%; margin-top: 8px; }
.file-list { padding-left: 20px; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
@media (max-width: 1000px) {
  .header-tools { gap: 12px; }
  .header-tools .account-link span:not(.icon) { display: none; }
  .site-header { gap: 16px; }
}
@media (max-width: 767px) {
  .site-header { padding: 0 16px; gap: 16px; }
  .header-tools { display: none; }
  .mobile-more { display: block; }
  .header-nav { gap: 16px; }
  .brand .project-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
  .project-picker { margin-left: -8px; }
  .project-picker select { max-width: 140px; }
  .conversation-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; height: 56px; gap: 0 8px; }
  .conversation-header .brand { grid-column: 1; }
  .conversation-header .mobile-brand-icon { display: inline-flex; }
  .conversation-header .mobile-brand-icon .icon { font-size: 20px; }
  .conversation-header .project-picker { grid-column: 2; min-width: 0; margin-left: 0; }
  .conversation-header .project-picker select { font-size: 16px; width: 100%; max-width: 160px; }
  .conversation-header .mobile-more { grid-column: 3; grid-row: 1; }
  .conversation-header .header-nav { display: none; }
  .settings-header .header-nav, .settings-header .desktop-context { display: none; }
  .settings-header .mobile-back, .settings-header .mobile-settings-label { display: inline-flex; }
  .settings-header .brand { font-weight: 600; }
  .settings-header .mobile-settings-theme { display: inline-flex; margin-left: auto; gap: 0; }
  .settings-header .mobile-settings-theme select { max-width: 96px; font-size: 16px; }
  .settings-header .mobile-more { margin-left: 0; }
  .settings-header .mobile-settings-label { font-weight: 600; }
  .page { margin: 24px auto; padding: 0 16px; }
  .page-heading, .page-title { margin-bottom: 24px; }
  .panel { padding: 16px; }
  .model-toolbar { align-items: stretch; flex-direction: column; margin-bottom: 16px; }
  .model-toolbar > button { align-self: flex-start; }
  .model-connection-select { min-width: 0; width: 100%; }
  .model-form-grid { grid-template-columns: 1fr; }
  .connection-heading { gap: 8px; flex-wrap: wrap; padding-bottom: 12px; }
  .connection-heading > div { gap: 8px; flex-wrap: wrap; }
  .connection-facts { grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
  .connection-facts dt { margin-bottom: 4px; }
  .value-box { display: block; padding: 4px 8px; }
  .credential-row dd { display: block; background: transparent; padding: 0; border: 0; }
  .credential-row .mono { display: inline-flex; padding: 2px 6px; border: 1px solid var(--border); border-radius: 4px; background: var(--subtle); }
  .credential-row .small { display: block; margin-top: 6px; }
  .connection-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
  .connection-actions button { padding-left: 8px; padding-right: 8px; }
  .model-editor .actions { position: sticky; bottom: 0; background: var(--surface); margin: 16px -16px -16px; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; z-index: 10; }
  .model-editor .actions button { width: 100%; }
  .models-panel { padding: 16px; }
  .models-panel > p { margin-bottom: 16px; }
  .model-option { padding: 12px 16px; background: var(--subtle); }
  .default-tag { margin-left: 0; }
  .model-actions { margin-top: 32px; }
  .model-actions > button { width: 100%; }
  .model-action-note { margin-bottom: 24px; }
  .account-page .panel-heading { align-items: start; flex-direction: column; gap: 8px; }
  .theme-choices { gap: 8px; }
  .theme-choice { flex-direction: column; padding: 12px 4px; }
  .account-actions { gap: 12px; }
  .account-footer { gap: 16px; }
  .account-footer a { font-size: 12px; }
  .projects-page { min-height: calc(100dvh - 104px); }
  .search-row { align-items: stretch; flex-direction: column; gap: 16px; }
  .search-row button { align-self: flex-start; }
  .project-row { grid-template-columns: 1fr; gap: 8px; }
  .project-row .actions { justify-content: start; margin-top: 8px; }
  .project-row-heading .tag { font-size: 11px; }
  .project-count { margin-top: 24px; }
  .project-tabs { padding: 0 16px; justify-content: space-between; gap: 12px; }
  .project-page-heading { align-items: start; flex-direction: column; gap: 8px; margin-bottom: 24px; }
  .project-page-tools { flex-wrap: wrap; }
  .facts > div { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; }
  .history time { margin-left: 0; }
  .history-artifact { flex-basis: 100%; }
  .observation-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .release-footer { flex-direction: column; padding-top: 24px; }
  .conversation-page { margin: 0; padding: 0; height: calc(100dvh - 56px); }
  .conversation-flow { padding: 16px 16px 32px; margin: 0 auto; }
  .user-request { margin-bottom: 16px; }
  .user-request > .small { display: none; }
  .user-bubble { max-width: 94%; font-size: 14px; padding: 10px 14px; }
  .check-panel { padding: 16px; }
  .check-heading { display: block; margin-bottom: 12px; }
  .check-kicker { display: none; }
  .check-heading .status { border-radius: 24px; padding: 4px 10px; font-size: 12px; }
  .conclusion { font-size: 20px; }
  .check-explanation { font-size: 12px; line-height: 1.6; margin-bottom: 16px; }
  .evidence-caption { padding-top: 12px; border-top: 1px solid var(--border); }
  .evidence-caption h3 { display: none; }
  .evidence-caption > span { display: flex; justify-content: space-between; width: 100%; font-size: 12px; }
  .evidence-table { border: 0; font-size: 12px; }
  .evidence-table-heading { display: none; }
  .evidence-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); border: 0; padding: 6px 0; gap: 8px; }
  .evidence-row > :nth-child(2) { text-align: right; }
  .evidence-row:nth-child(2) > :last-child { display: none; }
  .evidence-row:nth-child(3) > :last-child { grid-column: 1 / -1; text-align: right; }
  .evidence-values { display: contents; }
  .evidence-values > :first-child { grid-column: 2; grid-row: 1; text-align: right; }
  .evidence-values > :nth-child(2), .evidence-values > :nth-child(3) { border-top: 1px dashed var(--border); padding-top: 12px; }
  .evidence-values > :nth-child(2) { grid-column: 1; grid-row: 2; font-size: inherit; text-align: left; }
  .evidence-values > :nth-child(3) { grid-column: 2; grid-row: 2; text-align: right; }
  .evidence-row:nth-child(3) > :last-child { grid-row: 3; }
  .check-footer { display: block; }
  .conversation-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .check-operator { display: none; }
  .check-details { border-left: 0; border-right: 0; border-radius: 0; margin: 20px 0; }
  .check-details summary { padding: 12px 0; }
  .projects-empty { padding: 48px 0; border-top: 1px solid var(--border); text-align: center; }
  .projects-empty h2 { margin-bottom: 8px; }
  .projects-empty .actions { justify-content: center; margin-top: 24px; }
  .projects-empty #create-form { margin: 24px auto 0; text-align: left; }

  .composer-dock { padding: 12px 0 max(12px, env(safe-area-inset-bottom)); }
  .composer { display: grid; grid-template-columns: minmax(0, 1fr) 44px; grid-template-rows: 44px 44px; gap: 8px; width: calc(100% - 32px); padding: 0; background: transparent; border: 0; }
  .composer textarea { grid-column: 1; grid-row: 2; min-height: 44px; height: 44px; padding: 10px 12px; resize: none; border: 1px solid var(--border); background: var(--subtle); }
  .composer-bottom, .composer-actions { display: contents; }
  .composer-context { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 6px; min-height: 44px; padding-right: 72px; overflow: hidden; white-space: nowrap; font-size: 12px; }
  .composer-project { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; color: var(--text); font-weight: 500; overflow: hidden; }
  .composer-project span { overflow: hidden; text-overflow: ellipsis; }
  .composer-model { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .clear-prompt { display: none; }
  .send-prompt { grid-column: 2; grid-row: 2; }
  .composer-footnote { position: static; width: auto; min-height: 0; margin: 0; padding: 0; }
  .composer-footnote .task-query { top: 4px; right: 16px; }
  .composer-footnote > p { display: none; }
  .composer-footnote > .model-unavailable-note { display: block; margin: 8px 16px 0; text-align: left; }
  .task-query .form-stack { bottom: calc(100% + 8px); }
  .conversation-page > #feedback { width: calc(100% - 32px); }
}
@media (max-width: 359px) {
  .site-header { gap: 12px; }
  .brand .project-name { max-width: 88px; }
  .conversation-header .project-picker select { max-width: 100px; }
  .connection-actions { gap: 8px; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .theme-choice { font-size: 12px; }
  .settings-header { gap: 8px; }
  .settings-header .brand { gap: 6px; }
  .settings-header .mobile-settings-theme select { max-width: 64px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
