:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --background: #11181d;
  --sidebar: #0d1418;
  --surface: #182329;
  --surface-raised: #1d2a31;
  --surface-hover: #24343d;
  --field: #101a20;
  --border: #2d3c45;
  --border-strong: #435965;
  --text: #e6edf1;
  --muted: #a2b3bc;
  --dim: #8c9fa9;
  --accent: #8ad5bd;
  --accent-surface: #1c3933;
  --accent-strong: #a0e5ce;
  --warning: #edc785;
  --warning-surface: #342d21;
  --danger: #f2aca5;
  --danger-surface: #3a2729;
  color: var(--text);
  background: var(--background);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
::selection { background: #3b695f; color: #fff; }
[hidden] { display: none !important; }
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.subtle { color: var(--muted); font-size: 14px; line-height: 1.65; }
.error { color: var(--danger); font-size: 13px; line-height: 1.6; min-height: 16px; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--dim); font-weight: 600; }
.text-button { border: 0; padding: 0; background: none; color: var(--muted); font-size: 13px; }
.text-button:hover { color: var(--text); }
.primary { display: flex; justify-content: space-between; width: 100%; padding: 14px 16px; margin-top: 14px; border: 0; border-radius: 9px; background: var(--accent); color: #102d25; text-align: left; font-size: 14px; font-weight: 650; }
.primary:hover { background: var(--accent-strong); }
.secondary { padding: 10px 14px; min-height: 42px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface-raised); color: var(--text); font-size: 13px; white-space: nowrap; }
.secondary:hover:not(:disabled) { border-color: var(--accent); background: var(--surface-hover); }

/* Sign in. Native inputs and browser controls use the same dark palette. */
.login { display: grid; place-items: center; min-height: 100dvh; padding: 32px 24px; background: radial-gradient(ellipse at 50% 0, #1b302f, var(--background) 65%); }
.login-card { width: 100%; max-width: 390px; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #426e60; border-radius: 14px; background: var(--accent-surface); color: var(--accent-strong); font-family: Georgia, serif; font-size: 31px; }
.login-card > .brand-mark { margin-bottom: 30px; }
.login-card h1 { font-size: 36px; letter-spacing: -1px; font-weight: 650; margin: 12px 0; }
.login-card > .subtle { font-size: 15px; }
.login form { margin-top: 32px; }
.login label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 9px; }
.login label:not(:first-child) { margin-top: 20px; }
.login input { width: 100%; padding: 13px 14px; min-height: 48px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--field); color: var(--text); }
.login input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 1000px var(--field) inset; caret-color: var(--text); }
.login-foot { border-top: 1px solid var(--border); padding-top: 24px; color: var(--dim); font-size: 12px; margin-top: 28px; }

/* Workspace and navigation. */
.workspace { display: grid; grid-template-columns: 268px minmax(0, 1fr); height: 100dvh; }
aside { display: flex; flex-direction: column; min-height: 0; padding: 28px 20px; overflow: auto; border-right: 1px solid var(--border); background: var(--sidebar); }
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 32px; }
.brand-mark.small { width: 36px; height: 36px; flex-shrink: 0; font-size: 24px; border-radius: 10px; }
.brand strong { font-size: 16px; }
.brand span { display: block; font-size: 12px; margin-top: 5px; color: var(--muted); }
nav { flex: 1; overflow: auto; }
.view-navigation { display: flex; flex: none; gap: 4px; margin: 0 0 22px; padding: 4px; background: #141f25; border: 1px solid var(--border); border-radius: 10px; overflow: visible; }
.view-link { flex: 1; border: 0; border-radius: 6px; padding: 10px; font-size: 13px; color: var(--muted); background: none; }
.view-link:hover { color: var(--text); }
.view-link.active { background: var(--surface-hover); color: var(--accent-strong); font-weight: 650; }
.chat-navigation { display: flex; flex-direction: column; flex: 1; min-height: 130px; }
.new-chat { width: 100%; flex: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 9px; text-align: left; padding: 13px 14px; color: var(--accent-strong); font-weight: 600; font-size: 14px; }
.new-chat:hover { background: var(--surface-hover); border-color: #678c81; }
.history-label { margin: 28px 12px 12px; }
.chat-navigation > nav { min-height: 60px; }
.chat-link { display: block; width: 100%; border: 1px solid transparent; background: transparent; text-align: left; color: var(--muted); padding: 12px; border-radius: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 3px 0; font-size: 13px; }
.chat-link:hover { background: var(--surface); color: var(--text); }
.chat-link.active { background: var(--accent-surface); border-color: #31564c; color: #d0f0e4; font-weight: 600; }
.sidebar-foot { flex-shrink: 0; margin-top: auto; border-top: 1px solid var(--border); padding: 20px 10px 0; font-size: 12px; color: var(--dim); }
.current-user { display: block; font-size: 13px; color: var(--text); line-height: 1.5; overflow-wrap: anywhere; }
.current-login { display: block; font-size: 11px; color: var(--dim); margin: 4px 0 18px; line-height: 1.5; overflow-wrap: anywhere; }
.version { color: var(--muted); font-weight: 600; }
.sidebar-foot .text-button { padding: 7px 0; }
main { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; background: var(--background); }
header { display: flex; flex: none; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 36px; border-bottom: 1px solid var(--border); background: #121c22; }
.header-title { min-width: 0; flex: 1; }
.header-title strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; }
header p { font-size: 12px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.status { display: flex; gap: 8px; align-items: center; font-size: 12px; padding: 8px 11px; border: 1px solid #51432d; border-radius: 20px; background: var(--warning-surface); color: var(--warning); white-space: nowrap; }
.status i { width: 6px; height: 6px; flex-shrink: 0; background: currentColor; border-radius: 50%; }
.status.ready { background: var(--accent-surface); border-color: #31564c; color: var(--accent); }
.mobile-menu { display: none; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 20px; padding: 5px; min-width: 38px; min-height: 38px; }

/* Conversation. Long answers retain all text and wrap inside a readable column. */
.chat-view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.welcome { margin: auto; text-align: center; padding: 36px 24px; max-width: 700px; overflow: auto; }
.welcome-symbol { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid #3a564f; border-radius: 17px; font-size: 27px; color: var(--accent); margin: 0 auto 26px; background: var(--accent-surface); }
.welcome h1 { font-weight: 600; letter-spacing: -1.3px; font-size: 40px; margin: 16px 0; }
.welcome > p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.8; }
.suggestions { display: flex; flex-direction: column; gap: 10px; margin: 28px auto 0; max-width: 460px; }
.suggestions button { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 15px 17px; text-align: left; color: var(--text); font-size: 14px; line-height: 1.5; }
.suggestions button:hover { border-color: #648c7f; background: var(--surface-raised); }
.suggestions span { color: var(--accent); }
.messages { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 32px max(30px, calc((100% - 800px) / 2)); min-height: 0; }
.messages:empty { display: none; }
.bubble { margin-bottom: 28px; line-height: 1.8; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4; }
.bubble.user { padding: 15px 20px; background: #20352f; border: 1px solid #355047; border-radius: 14px 14px 4px 14px; margin-left: 12%; color: #e0efe8; }
.bubble.answer { border-left: 2px solid #4a7466; padding: 4px 0 4px 20px; color: var(--text); }
.bubble.pending { color: var(--muted); font-size: 14px; padding: 4px 0 4px 22px; }
.speaker { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 8px; }
.report-attachment { display: flex; align-items: center; gap: 12px; max-width: 100%; margin-top: 18px; padding: 12px 15px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-raised); color: var(--text); text-align: left; white-space: normal; line-height: 1.5; }
.report-attachment:hover { border-color: var(--accent); background: var(--surface-hover); }
.report-format { display: grid; place-items: center; flex: none; width: 36px; height: 40px; border: 1px solid #426e60; border-radius: 6px; background: var(--accent-surface); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .5px; }
.report-label { min-width: 0; }
.report-label strong { display: block; color: var(--accent-strong); font-size: 13px; font-weight: 600; }
.report-label > span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.attachment-list, .selected-files { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; white-space: normal; }
.selected-files { max-height: 220px; overflow-y: auto; overscroll-behavior: contain; }
.attachment-link { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 10px 12px; min-height: 42px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--accent-strong); font-size: 13px; line-height: 1.5; text-decoration: none; }
.attachment-link:hover { border-color: var(--accent); background: var(--surface-hover); }
.attachment-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.attachment-name { min-width: 0; overflow-wrap: anywhere; }
.attachment-size { color: var(--muted); font-size: 11px; white-space: nowrap; }
.selected-file { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--field); }
.selected-file-info { flex: 1; min-width: 0; line-height: 1.5; }
.selected-file-name { display: block; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.selected-file-status { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.selected-file-error { display: block; margin-top: 4px; color: var(--danger); font-size: 11px; overflow-wrap: anywhere; }
.remove-file { flex: none; min-width: 34px; min-height: 34px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 21px; line-height: 1; }
.remove-file:hover:not(:disabled) { background: var(--surface-hover); color: var(--text); }
.attachment-controls { margin-top: 10px; }
.attach-files { padding: 8px 0; min-height: 36px; border: 0; background: none; color: var(--accent); font-size: 12px; line-height: 1.5; text-align: left; }
.attach-files:hover:not(:disabled) { color: var(--accent-strong); text-decoration: underline; }
.file-hint { margin: 0; color: var(--dim); font-size: 11px; line-height: 1.5; }
.upload-status { margin: 8px 0 0; color: var(--accent); font-size: 12px; line-height: 1.5; }
.upload-status:empty { display: none; }
.composer-area { flex: none; width: 100%; max-width: 864px; margin: 0 auto; padding: 12px 32px 22px; }
.composer { padding: 16px 18px 12px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: 0 8px 28px #00000024; }
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px #8ad5bd40, 0 8px 28px #00000024; }
.composer textarea { width: 100%; resize: none; border: 0; outline: 0; min-height: 48px; max-height: 160px; color: var(--text); caret-color: var(--accent); line-height: 1.6; font-size: 15px; background: none; }
.composer textarea::placeholder { color: var(--dim); opacity: 1; }
.composer-bottom { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 8px; }
.composer-bottom span { font-size: 11px; color: var(--dim); }
.composer-bottom button { flex-shrink: 0; background: var(--accent); color: #102d25; border: 0; width: 38px; height: 38px; border-radius: 10px; font-size: 24px; font-weight: 600; }
.composer-bottom button:hover:not(:disabled) { background: var(--accent-strong); }
.composer-hint, .privacy-notice { font-size: 11px; color: var(--dim); line-height: 1.6; text-align: center; margin: 10px 0 0; }
.privacy-notice { margin-top: 6px; }
.notice { font-size: 12px; color: var(--warning); margin: 0 0 10px; line-height: 1.6; }
.notice:empty, .composer-area .error:empty { display: none; }

/* Administrator overview. */
.stats-view { flex: 1; min-height: 0; overflow: auto; padding: 32px clamp(22px, 4vw, 56px) 40px; }
.stats-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.stats-heading .eyebrow { margin-top: 0; }
.stats-heading h1 { font-size: 32px; font-weight: 600; letter-spacing: -.7px; margin: 8px 0; }
.stats-heading .subtle { margin: 8px 0 0; font-size: 14px; }
.stats-filters { display: grid; grid-template-columns: minmax(170px, 1.3fr) minmax(130px, 1fr) minmax(130px, 1fr) minmax(130px, 1fr); gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.stats-filters label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 9px; }
.stats-filters select, .stats-filters input { min-width: 0; width: 100%; padding: 10px; min-height: 42px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--field); color: var(--text); font-size: 13px; }
.filter-actions { grid-column: 1 / -1; display: flex; gap: 20px; align-items: center; }
.filter-actions .text-button { padding: 10px 0; }
.stats-feedback { min-height: 44px; padding: 12px 0; }
.stats-feedback .subtle { font-size: 12px; margin: 0; }
.stats-feedback .error { margin: 5px 0 0; min-height: 0; }
.stats-feedback .error:empty { display: none; }
.stats-summary { display: grid; grid-template-columns: repeat(4, minmax(100px, 1fr)); gap: 12px; margin: 4px 0 30px; }
.metric { min-width: 0; border: 1px solid var(--border); border-radius: 10px; padding: 17px 18px; background: var(--surface); }
.metric-label { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.metric-value { display: block; color: var(--text); font-size: 29px; font-weight: 600; margin-top: 10px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.metric:last-child { grid-column: span 2; }
.metric:last-child .metric-value { font-size: 25px; color: var(--accent-strong); }
.timing-hint { font-size: 12px; margin: -16px 0 30px; line-height: 1.6; }
.stats-view h2 { font-size: 16px; font-weight: 600; color: var(--text); margin: 0 0 16px; }
.analyst-summary { margin-bottom: 34px; }
.user-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.user-metric { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 15px 17px; }
.user-metric > div { min-width: 0; }
.user-metric div strong { display: block; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.user-metric div span { display: block; font-size: 12px; color: var(--dim); margin-top: 5px; line-height: 1.5; overflow-wrap: anywhere; }
.user-question-count { font-size: 23px; color: var(--accent); font-weight: 600; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.audit-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.audit-heading h2 { margin-bottom: 0; }
.audit-heading > .subtle, .audit-hint { font-size: 13px; }
.audit-hint { margin: 10px 0 18px; line-height: 1.6; }
.audit-list { display: flex; flex-direction: column; gap: 12px; }
.audit-item { background: var(--surface); border: 1px solid var(--border); border-radius: 11px; overflow: hidden; }
.audit-summary { list-style: none; cursor: pointer; padding: 19px 21px; }
.audit-summary::-webkit-details-marker { display: none; }
.audit-summary:hover { background: var(--surface-raised); }
.audit-summary:focus-visible { outline-offset: -3px; }
.audit-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 12px; color: var(--dim); }
.audit-person { font-size: 14px; color: var(--text); font-weight: 600; }
.audit-login { overflow-wrap: anywhere; }
.state-badge { border-radius: 14px; padding: 5px 9px; font-size: 11px; background: var(--surface-hover); color: var(--muted); margin-left: auto; white-space: nowrap; }
.state-completed { background: var(--accent-surface); color: var(--accent); }
.state-queued, .state-running { background: var(--warning-surface); color: var(--warning); }
.state-rejected { background: #362c32; color: #ddbbc7; }
.state-failed { background: var(--danger-surface); color: var(--danger); }
.audit-preview { display: block; font-size: 15px; line-height: 1.6; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 13px; }
.audit-time { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: var(--muted); margin-top: 12px; }
.audit-expand { margin-left: auto; color: var(--accent); }
.audit-expand::after { content: ' ↓'; }
.audit-item[open] .audit-expand { font-size: 0; }
.audit-item[open] .audit-expand::after { content: 'Свернуть ↑'; font-size: 12px; }
.audit-item[open] .audit-summary { border-bottom: 1px solid var(--border); background: var(--surface-raised); }
.audit-item[open] .audit-preview { white-space: normal; max-height: 72px; }
.audit-detail { padding: 22px 24px 26px; }
.audit-timeline { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 10px 16px; font-size: 12px; line-height: 1.5; margin: 0 0 26px; }
.audit-timeline dt { color: var(--dim); }
.audit-timeline dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.audit-detail h3 { font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin: 24px 0 12px; }
.audit-text { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; font-size: 15px; color: var(--text); tab-size: 4; }
.audit-question { background: #20352f; border: 1px solid #355047; padding: 15px 17px; border-radius: 8px; }
.audit-answer { border-left: 2px solid #4a7466; padding: 3px 0 3px 18px; }
.empty-state { padding: 32px 20px; text-align: center; color: var(--muted); font-size: 14px; border: 1px dashed var(--border-strong); border-radius: 10px; line-height: 1.7; }
.pagination { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 22px; }
.pagination .subtle { font-size: 12px; text-align: center; }
.reasoning-control { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.reasoning-control label { color: var(--muted); font-size: 12px; }
.reasoning-control select { background: var(--field); color: var(--text); border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 10px; min-height: 40px; font: inherit; font-size: 14px; }
.question-mode { display: block; color: var(--accent); font-size: 12px; margin-bottom: 8px; }
.reasoning-badge { color: var(--accent); border: 1px solid var(--border-strong); border-radius: 12px; padding: 4px 8px; }
.load-older { align-self: center; margin: 12px auto 0; flex-shrink: 0; }
.result-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; white-space: normal; }
.result-files button { font-size: 12px; }

@media (max-width: 1100px) {
  .stats-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit-timeline { grid-template-columns: auto 1fr; }
  .stats-summary { grid-template-columns: repeat(3, minmax(90px, 1fr)); }
  .metric:last-child { grid-column: auto; }
  .metric-label { font-size: 11px; }
}
@media (max-width: 750px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  aside { display: none; }
  .mobile-menu { display: block; }
  .sidebar-open aside { display: flex; position: fixed; inset: 0 auto 0 0; width: min(300px, 88vw); z-index: 10; box-shadow: 12px 0 40px #00000080; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  #close-menu { align-self: flex-end; margin-bottom: 18px; }
  header { padding: 16px 20px; gap: 13px; }
  .header-title strong { font-size: 14px; }
  header p { font-size: 11px; }
  .status { font-size: 11px; padding: 7px 9px; }
  .welcome { padding: 26px 22px; }
  .welcome h1 { font-size: 32px; }
  .welcome > p:not(.eyebrow) { font-size: 14px; }
  .welcome-symbol { margin-bottom: 20px; }
  .suggestions { margin-top: 24px; }
  .composer-area { padding: 10px 16px max(16px, env(safe-area-inset-bottom)); }
  .composer { padding: 14px 15px 12px; }
  .composer textarea, .login input, .stats-filters select, .stats-filters input { font-size: 16px; }
  .composer-hint, .privacy-notice { font-size: 11px; }
  .messages { padding: 26px 20px; }
  .bubble.user { margin-left: 6%; }
  .bubble.answer { padding-left: 16px; }
  .desktop { display: none; }
  .stats-view { padding: 26px 16px 30px; }
  .stats-heading { align-items: flex-start; gap: 15px; margin-bottom: 22px; }
  .stats-heading h1 { font-size: 27px; }
  .stats-heading .subtle { font-size: 13px; }
  .stats-heading > .secondary { padding: 9px 11px; margin-top: 5px; }
  .stats-filters { padding: 16px; gap: 15px 12px; }
  .stats-summary { grid-template-columns: repeat(2, minmax(100px, 1fr)); gap: 10px; margin-bottom: 26px; }
  .metric { padding: 15px; }
  .metric-label { font-size: 12px; }
  .metric-value { font-size: 26px; }
  .metric:last-child { grid-column: span 2; }
  .user-metrics { grid-template-columns: 1fr; }
  .analyst-summary { margin-bottom: 28px; }
  .audit-summary { padding: 16px; }
  .audit-meta { gap: 8px; }
  .audit-person { font-size: 13px; }
  .audit-login { font-size: 11px; }
  .audit-time { gap: 9px 12px; }
  .audit-detail { padding: 18px 16px 22px; }
  .audit-timeline { gap: 10px 12px; }
  .audit-text { font-size: 15px; }
  .audit-answer { padding-left: 14px; }
  .pagination > .secondary { padding: 9px 12px; }
}
@media (max-width: 430px) {
  header { padding: 12px; gap: 10px; }
  .status { max-width: 130px; white-space: normal; line-height: 1.4; }
  .header-title strong { font-size: 13px; }
  header p { font-size: 10px; }
  .welcome h1 { font-size: 29px; }
  .welcome-symbol { display: none; }
  .welcome { padding: 22px 18px; }
  .stats-heading h1 { font-size: 25px; }
  .stats-filters { grid-template-columns: minmax(0, 1fr); }
  .stats-summary { gap: 9px; }
  .audit-expand { margin-left: 0; }
  .audit-timeline { grid-template-columns: minmax(95px, auto) minmax(0, 1fr); }
  .bubble { font-size: 15px; }
  .messages { padding: 24px 16px; }
  .composer-hint { margin-top: 8px; }
}
@media (max-height: 700px) and (min-width: 751px) {
  .welcome { padding-top: 20px; padding-bottom: 20px; }
  .welcome-symbol { display: none; }
  .welcome h1 { font-size: 34px; }
  .suggestions { margin-top: 20px; gap: 8px; }
  .suggestions button { padding: 11px 15px; }
}
