:root {
  --bg: #fcfbf8;
  --panel: #ffffff;
  --panel-soft: #f3f1eb;
  --line: #e6e4dc;
  --line-strong: #c9c8bd;
  --text: #2a302b;
  --muted: #676e62;
  --accent: #efad56;
  --accent-soft: #fff1d9;
  --accent-text: #775024;
  --danger: #b3483d;
  --success: #3e7554;
  --sidebar: #f5f4ef;
  --hover: #eaeae2;
  --selected: #e7e8df;
  --message: #eeeee7;
  --preview: #f2f3ed;
  --success-soft: #edf4ee;
  --danger-soft: #fff3ef;
  --on-strong: #fff;
  --strong-hover: #454d43;
  --avatar-bg: #e9e9df;
  --avatar-text: #686f5c;
  --accent-border: #eedbb9;
  --radius: 13px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
[data-theme='dark'] {
  color-scheme: dark;
  --bg: #171b18;
  --panel: #202622;
  --panel-soft: #29322c;
  --line: #374139;
  --line-strong: #58645a;
  --text: #e6ebe3;
  --muted: #a4b09f;
  --accent: #efb269;
  --accent-soft: #382e20;
  --accent-text: #ebbd7f;
  --danger: #f09a8f;
  --success: #a2cfad;
  --sidebar: #1c221e;
  --hover: #303b32;
  --selected: #354239;
  --message: #2c362f;
  --preview: #242d27;
  --success-soft: #263d2d;
  --danger-soft: #442c29;
  --on-strong: #18221b;
  --strong-hover: #d1ddce;
  --avatar-bg: #374238;
  --avatar-text: #bdccb7;
  --accent-border: #645035;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-width: 320px; min-height: 100%; }
body { font-size: 14px; line-height: 1.6; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, textarea, select { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; text-decoration: none; }
button { border: 0; background: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid #a16e2d; outline-offset: 3px; }
svg { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
span[data-icon] { display: inline-flex; align-items: center; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; margin: -1px !important; clip-path: inset(50%) !important; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 8px 15px; background: var(--text); color: var(--on-strong); border-radius: 6px; }
.skip-link:focus { top: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; }
.brand strong { font-size: 21px; font-weight: 700; letter-spacing: -.8px; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; background: var(--accent); color: #2a302b; font-size: 20px; font-weight: 800; line-height: 1; }
.primary-button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 42px; padding: 9px 18px; border: 1px solid transparent; border-radius: 9px; background: var(--text); color: var(--on-strong); font-weight: 600; transition: background .15s; }
.primary-button:hover:not(:disabled) { background: var(--strong-hover); }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 8px; border-radius: 8px; color: var(--muted); }
.icon-button:hover { background: var(--panel-soft); color: var(--text); }
.muted, .field-hint { color: var(--muted); }
.field-hint { margin: -4px 0 0; font-size: 12px; }
.inline-error { margin: 0; padding: 10px 12px; color: var(--danger); font-size: 13px; line-height: 1.7; background: var(--danger-soft); border-radius: 8px; overflow-wrap: anywhere; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.eyebrow > span { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.boot-screen { display: grid; min-height: 100dvh; place-content: center; justify-items: center; gap: 12px; color: var(--muted); }
.boot-screen p { margin: 0; }
.no-script { padding: 30px; text-align: center; }

.auth-screen { min-height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(ellipse at 5% 60%, rgba(239, 173, 86, .055), transparent 45%); }
.auth-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 48px; }
.trial-label { padding: 4px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 12px; }
.auth-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 88px; align-items: center; flex: 1; width: 100%; max-width: 1176px; margin: 0 auto; padding: 48px; }
.auth-intro h1 { margin: 25px 0; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.5; font-weight: 600; letter-spacing: -.055em; }
.auth-intro h1 span { color: var(--muted); }
.auth-description { color: var(--muted); font-size: 15px; line-height: 2; }
.auth-steps { display: flex; align-items: center; gap: 18px; margin-top: 45px; font-size: 12px; }
.auth-steps span { display: grid; gap: 7px; }
.auth-steps b { color: var(--muted); font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.auth-steps i { color: var(--muted); font-style: normal; margin-top: 20px; }
.auth-card { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 12px 45px -30px rgba(40, 44, 25, .2); }
.auth-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 29px; border-radius: 9px; background: var(--panel-soft); }
.auth-tabs button { flex: 1; padding: 8px 10px; border-radius: 6px; font-size: 13px; color: var(--muted); }
.auth-tabs button[aria-selected='true'] { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .07); font-weight: 600; }
.auth-card h2 { margin: 0 0 5px; font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.auth-card > div > .muted { margin: 0 0 24px; font-size: 13px; }
#auth-form { display: grid; gap: 17px; }
#auth-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 500; }
#auth-form input { width: 100%; min-width: 0; height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font-size: 14px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.password-field { position: relative; }
.password-field input { padding-right: 44px !important; }
.password-field button { position: absolute; right: 4px; top: 4px; }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-footnote { margin: 20px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.auth-footer { padding: 30px; color: var(--muted); font-size: 11px; text-align: center; }

.app-screen { display: flex; height: 100dvh; min-height: 0; overflow: hidden; }
.sidebar { display: flex; flex-direction: column; flex: 0 0 248px; min-width: 0; padding: 25px 16px 14px; border-right: 1px solid var(--line); background: var(--sidebar); }
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; margin-bottom: 29px; }
.new-conversation { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 43px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 9px; font-size: 13px; font-weight: 550; background: var(--panel); }
.new-conversation:hover { background: var(--hover); }
.new-conversation svg { width: 17px; height: 17px; }
.conversation-heading { display: flex; justify-content: space-between; align-items: center; margin: 29px 10px 10px; color: var(--muted); }
.conversation-heading h2, .conversation-heading span { margin: 0; font-size: 11px; font-weight: 500; }
.conversation-list { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.conversation-item { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; margin: 2px 0; padding: 10px 12px; border-radius: 8px; color: var(--muted); font-size: 13px; text-align: left; }
.conversation-item:hover { background: var(--hover); }
.conversation-item.is-current { background: var(--selected); color: var(--text); }
.conversation-icon svg { width: 15px; height: 15px; color: #909689; }
.conversation-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #c38a37; }
.conversation-empty { margin: 5px 12px; color: var(--muted); font-size: 12px; }
.sidebar-bottom { padding-top: 16px; }
.sidebar-theme { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 8px; color: var(--muted); font-size: 12px; text-align: left; }
.sidebar-theme:hover { background: var(--hover); color: var(--text); }
.sidebar-theme svg { width: 17px; height: 17px; }
.account-menu { position: relative; margin-top: 5px; }
.account-menu summary { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; cursor: pointer; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover { background: var(--hover); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--avatar-bg); color: var(--avatar-text); font-size: 13px; }
.account-menu summary > span:nth-child(2) { min-width: 0; flex: 1; }
.account-menu strong, .account-menu small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu strong { font-size: 12px; font-weight: 550; }
.account-menu small { margin-top: 1px; color: var(--muted); font-size: 10px; }
.account-menu summary svg { width: 15px; height: 15px; color: var(--muted); }
.account-popover { position: absolute; bottom: calc(100% + 8px); left: 0; right: 0; padding: 6px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); box-shadow: 0 5px 20px rgba(32, 35, 26, .08); }
.account-popover button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px; border-radius: 6px; font-size: 13px; text-align: left; }
.account-popover button:hover { background: var(--panel-soft); }
.account-popover svg { width: 17px; height: 17px; }

.chat-main { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
.chat-main:focus { outline: 0; }
.chat-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 70px; padding: 15px 30px; border-bottom: 1px solid transparent; }
.header-title, .header-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.header-title { flex: 1; }
.chat-header h1 { max-width: 100%; margin: 0; font-size: 14px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.balance-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.balance-chip svg { width: 13px; height: 13px; color: #ab823f; }
.balance-chip b { color: var(--text); font-weight: 550; }
.global-alert { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 20px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; }
.global-alert button { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; white-space: nowrap; }
.timeline { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 30px 28px; scrollbar-width: thin; }
.empty-state { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 350px; height: 100%; padding: 40px 10px 60px; text-align: center; }
.empty-mark { display: grid; place-items: center; width: 57px; height: 57px; margin-bottom: 16px; border: 1px solid var(--accent-border); border-radius: 18px; background: var(--accent-soft); color: var(--accent-text); transform: rotate(-7deg); }
.empty-mark svg { width: 28px; height: 28px; transform: rotate(7deg); }
.empty-state .eyebrow { margin: 6px 0 12px; font-size: 11px; color: var(--muted); }
.empty-state h2 { margin: 0 0 16px; font-size: clamp(22px, 2.3vw, 29px); font-weight: 550; letter-spacing: -.045em; line-height: 1.6; }
.empty-state > p:not(.eyebrow) { margin: 0; max-width: 410px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 31px; }
.suggestions button { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--muted); font-size: 12px; }
.suggestions button:hover { border-color: var(--line-strong); background: var(--panel-soft); }
.suggestions svg { width: 15px; height: 15px; }
.messages { display: flex; flex-direction: column; gap: 28px; width: 100%; max-width: 790px; margin: 0 auto; padding-top: 22px; }
.message { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.message-user { justify-content: flex-end; }
.message-body { min-width: 0; max-width: min(100%, 620px); }
.message-user .message-body { max-width: min(86%, 590px); padding: 14px 17px; border-radius: 17px 17px 4px 17px; background: var(--message); }
.message-content { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; font-size: 14px; }
.message-assistant .message-body { width: min(620px, 100%); }
.message-assistant .message-content { margin: 3px 0 14px; }
.assistant-avatar { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; margin-top: 3px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-text); font-size: 15px; font-weight: 700; }
.message-assets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.message-image-link { display: block; flex: 0 0 230px; width: 230px; max-width: 100%; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.message-assets img { display: block; width: 100%; height: auto; max-height: 180px; object-fit: contain; }
.job-card { width: min(560px, 100%); overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.job-card-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 16px; }
.job-card-header > span:first-child { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 550; }
.job-card-header svg { width: 16px; height: 16px; color: #8e957f; }
.job-status { display: inline-flex; padding: 3px 8px; border-radius: 99px; background: var(--panel-soft); color: var(--muted); font-size: 10px; white-space: nowrap; }
.status-running, .status-queued { background: var(--accent-soft); color: var(--accent-text); }
.status-succeeded { background: var(--success-soft); color: var(--success); }
.status-failed { background: var(--danger-soft); color: var(--danger); }
.job-preview { position: relative; display: grid; place-items: center; min-height: 220px; overflow: hidden; background: var(--preview); }
.job-reference { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .10; filter: blur(4px); transform: scale(1.05); }
.job-status-content { position: relative; z-index: 1; width: 100%; max-width: 380px; padding: 28px 20px; text-align: center; }
.job-symbol { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 9px; border: 1px solid rgba(144, 150, 132, .3); border-radius: 50%; color: #818975; background: rgba(255, 255, 255, .4); }
.job-symbol svg { width: 19px; height: 19px; }
.job-status-content h3 { margin: 0 0 6px; font-size: 15px; font-weight: 550; }
.job-status-content p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.job-progress { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 11px; color: var(--muted); }
.job-progress progress { width: 100%; height: 4px; accent-color: #b99b63; border: 0; border-radius: 4px; overflow: hidden; background: #dedfd3; }
.job-progress progress::-webkit-progress-bar { background: #dedfd3; border-radius: 4px; }
.job-progress progress::-webkit-progress-value { background: #b99b63; border-radius: 4px; }
.result-video { display: block; width: 100%; max-height: 420px; aspect-ratio: 928 / 512; object-fit: contain; background: #20241d; }
.job-details { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px; padding: 12px 16px; color: var(--muted); font-size: 11px; }
.job-details i { margin: 0 7px; font-style: normal; }
.job-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 11px 10px; }
.text-button, .download-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 35px; padding: 7px 9px; border-radius: 7px; color: var(--muted); font-size: 12px; }
.text-button:hover { background: var(--panel-soft); color: var(--text); }
.text-button svg, .download-button svg { width: 15px; height: 15px; }
.download-button { background: var(--text); color: var(--on-strong); padding-inline: 12px; }
.download-button:hover { background: var(--strong-hover); }
.conversation-loading { padding: 60px 20px; text-align: center; color: var(--muted); font-size: 13px; }

.composer-wrap { flex-shrink: 0; width: 100%; max-width: 870px; margin: 0 auto; padding: 4px 40px max(18px, env(safe-area-inset-bottom)); }
.composer { position: relative; padding: 17px 17px 12px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--panel); box-shadow: 0 5px 22px -14px rgba(33, 39, 26, .16); }
.composer:focus-within { border-color: var(--muted); }
.composer-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.composer-options { display: flex; align-items: center; gap: 4px; min-width: 0; }
.tool-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 7px 9px; border-radius: 7px; color: var(--muted); font-size: 12px; white-space: nowrap; cursor: pointer; }
.tool-button:hover { background: var(--panel-soft); color: var(--text); }
.tool-button svg { width: 17px; height: 17px; }
.tool-button[aria-expanded='true'] { background: var(--panel-soft); color: var(--text); }
.send-button { min-height: 36px; padding: 7px 12px; font-size: 12px; flex-shrink: 0; }
.send-button svg { width: 16px; height: 16px; }
.composer-footer { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 5px 0; color: var(--muted); font-size: 10px; }
.composer-footer p { margin: 0; }
.composer-footer > span { flex-shrink: 0; }
.composer-error { margin-top: 9px; }
.generation-notice { margin: 0 0 9px; padding: 9px 12px; color: var(--accent-text); background: var(--accent-soft); border-radius: 8px; font-size: 12px; line-height: 1.7; }
.parameters-panel { position: fixed; z-index: 50; width: 360px; padding: 16px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: 0 12px 45px #0003; }
.parameters-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.parameters-heading strong { font-size: 13px; font-weight: 600; }
.parameters-heading .icon-button { width: 28px; height: 28px; }
.parameter-fields { display: grid; grid-template-columns: 1fr; gap: 7px; }
.parameter-fields label { display: grid; grid-template-columns: minmax(82px, 1fr) minmax(0, 1.75fr); align-items: center; gap: 12px; min-width: 0; font-size: 12px; color: var(--muted); }
.parameter-fields label small { font-size: 10px; color: var(--muted); }
.parameter-fields input, .parameter-fields select { width: 100%; min-width: 0; height: 33px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); font-size: 12px; color: var(--text); }
.parameters-panel > p { margin: 10px 0 0; color: var(--muted); font-size: 10px; }
.pending-retry { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 9px; padding: 10px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; }
.pending-retry button { flex-shrink: 0; padding: 5px 8px; border: 1px solid #dec295; border-radius: 6px; }
.pulse { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (min-width: 761px) { .sidebar.is-collapsed { display: none; } }

@media (max-width: 1050px) {
  .auth-layout { gap: 45px; padding: 32px; }
  .auth-intro h1 { font-size: 33px; }
  .sidebar { flex-basis: 224px; }
  .composer-wrap { padding-inline: 28px; }
}
@media (max-width: 760px) {
  .sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: min(292px, 85vw); padding-top: max(20px, env(safe-area-inset-top)); transform: translateX(-100%); visibility: hidden; transition: transform .18s, visibility .18s; }
  .sidebar.is-open { transform: translateX(0); visibility: visible; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 35; width: 100%; height: 100%; padding: 0; background: rgba(28, 33, 25, .3); }
  .chat-header { min-height: 60px; padding: 11px 16px 9px; gap: 10px; }
  .header-title { gap: 7px; }
  .header-actions { gap: 5px; }
  .header-actions > .icon-button { width: 31px; height: 31px; }
  .balance-chip { font-size: 10px; gap: 4px; padding: 4px 7px; }
  .chat-header h1 { font-size: 13px; }
  .timeline { padding: 0 20px 22px; }
  .messages { gap: 23px; padding-top: 17px; }
  .message { gap: 8px; }
  .message-body { max-width: calc(100% - 33px); }
  .message-user .message-body { max-width: 89%; }
  .assistant-avatar { width: 25px; height: 25px; font-size: 13px; }
  .message-content { font-size: 13px; }
  .message-user .message-body { padding: 12px 14px; }
  .job-card { width: 100%; }
  .job-card-header { padding: 11px 12px; }
  .job-card-header > span:first-child { font-size: 11px; }
  .job-preview { min-height: 190px; }
  .job-status-content { padding: 22px 15px; }
  .job-status-content h3 { font-size: 14px; }
  .job-status-content p { font-size: 11px; }
  .job-details { padding: 10px 12px; font-size: 10px; }
  .job-actions { padding: 0 7px 7px; }
  .text-button, .download-button { font-size: 11px; gap: 6px; }
  .empty-state { min-height: 340px; padding: 32px 0; }
  .empty-state h2 { max-width: 330px; margin-bottom: 12px; font-size: 24px; }
  .empty-state > p:not(.eyebrow) { max-width: 300px; font-size: 12px; }
  .suggestions { gap: 8px; margin-top: 25px; }
  .suggestions button { padding: 8px 10px; font-size: 11px; }
  .composer-wrap { padding: 3px 20px max(12px, env(safe-area-inset-bottom)); }
  .composer { padding: 14px 13px 10px; border-radius: 14px; }
  .composer-footer { font-size: 9px; gap: 7px; padding-top: 8px; }
  .auth-header { padding: 22px 24px; }
  .auth-layout { grid-template-columns: 1fr; gap: 32px; max-width: 480px; padding: 25px 24px; }
  .auth-intro h1 { margin: 15px 0; font-size: 30px; line-height: 1.5; }
  .auth-intro .eyebrow { font-size: 11px; }
  .auth-description { font-size: 13px; }
  .auth-steps { display: none; }
  .auth-card { padding: 25px; }
  .auth-card h2 { font-size: 22px; }
  #auth-form input { font-size: 16px; }
  .auth-footer { padding: 23px; }
}
@media (max-width: 540px) {
  .upload-label { display: none; }
  .tool-button { gap: 5px; padding: 7px 8px; font-size: 11px; }
  .composer-options { gap: 1px; }
  .send-button { font-size: 11px; padding: 7px 9px; gap: 6px; }
  .parameter-fields input, .parameter-fields select { font-size: 16px; }
  .pending-retry { font-size: 11px; }
}
@media (max-width: 359px) {
  .chat-header { padding-inline: 10px; }
  .composer-wrap { padding-inline: 12px; }
  .timeline { padding-inline: 12px; }
  .empty-state h2 { max-width: 240px; font-size: 23px; }
  .suggestions button { font-size: 10px; padding-inline: 8px; }
  .auth-header { padding-inline: 20px; }
  .auth-layout { padding-inline: 20px; }
  .auth-card { padding: 20px; }
  .auth-intro h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
