@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #0e1521; --sidebar: #0a101a; --panel: #141e2c; --hover: #1c2a3c;
  --line: #263449; --text: #edf3fc; --muted: #a0aec2; --subtle: #8292aa;
  --accent: #82e3eb; --accent-hover: #adf1f5; --danger: #ffb4ad;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none; -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { font-size: 14px; line-height: 1.55; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; border: 0; background: none; }
button:disabled { cursor: not-allowed; opacity: .42; }
a { color: inherit; }
button, input, textarea { outline: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
input, textarea { width: 100%; color: var(--text); background: #0d1522; border: 1px solid #344359; border-radius: 11px; }
input { padding: 13px 14px; }
textarea { padding: 14px; resize: vertical; line-height: 1.65; }
textarea::placeholder, input::placeholder { color: #8d9eb6; }
label { display: block; font-size: 13px; font-weight: 550; margin-bottom: 9px; }
h1, h2, p { margin: 0; }
h1, h2 { font-weight: 590; letter-spacing: -.035em; }
h2 { font-size: 29px; line-height: 1.25; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--accent); color: #08292f; padding: 10px 16px; border-radius: 9px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.eyebrow { color: var(--subtle); font-size: 10px; letter-spacing: .15em; font-weight: 600; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; padding: 11px 19px; border-radius: 10px; background: var(--accent); color: #0a2830; font-weight: 650; transition: background .15s; }
.primary-button:hover:not(:disabled), .send-button:hover:not(:disabled) { background: var(--accent-hover); }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #b1c0d3; font-size: 12px; min-height: 44px; }
.text-button .icon { width: 15px; height: 15px; }
.text-button:hover { color: var(--accent); }
.field-hint { color: var(--muted); font-size: 12px; line-height: 1.6; }
.icon-button { display: grid; place-items: center; min-width: 40px; min-height: 40px; border-radius: 9px; color: #b3c1d5; }
.icon-button:hover { background: var(--hover); color: var(--text); }
.small-button { padding: 8px 12px; min-height: 36px; background: var(--hover); border: 1px solid #3c5069; border-radius: 8px; font-size: 12px; white-space: nowrap; }
.network-banner { position: fixed; z-index: 80; top: 0; left: 0; right: 0; text-align: center; padding: 9px 16px; padding-top: max(9px, env(safe-area-inset-top)); background: #523d25; color: #ffe8c6; font-size: 12px; }
.has-network-banner .app-shell, .has-network-banner .login-view { padding-top: 40px; }

/* Sign in */
.login-view { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 44px 24px 24px; background: radial-gradient(ellipse at 50% 5%, #18364b80, transparent 60%); }
.login-card { width: 100%; max-width: 416px; padding: 33px 31px 23px; border: 1px solid #2a3b50; border-radius: 24px; background: #111c2bea; box-shadow: 0 24px 90px #0003; text-align: center; }
.login-mark { margin-bottom: 24px; border-radius: 16px !important; box-shadow: 0 0 38px #6de0ef14; }
.login-card h1 { font-size: 44px; line-height: 1.2; margin: 10px 0 15px; letter-spacing: -.05em; }
.login-description { color: #becbdd; font-size: 15px; line-height: 1.65; }
.login-card form { text-align: left; margin-top: 30px; }
.login-card .primary-button { width: 100%; margin-top: 18px; }
.login-card .field-hint { margin-top: 10px; font-size: 11px; }
.login-status { font-size: 11px; color: var(--muted); margin: 15px 0 8px; min-height: 18px; }
.login-footer { font-size: 11px; color: #8b9cb4; margin-top: 25px; text-align: center; }
.form-error { color: var(--danger); font-size: 12px; margin-top: 12px; }
.brand-mark { border-radius: 10px; }

/* Frame and navigation */
.app-shell { height: 100vh; height: 100dvh; display: flex; overflow: hidden; }
.sidebar { width: 236px; flex: none; display: flex; flex-direction: column; padding: 29px 17px 20px; padding-bottom: max(20px, env(safe-area-inset-bottom)); background: var(--sidebar); border-right: 1px solid #202c3c; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px; font-size: 22px; font-weight: 600; letter-spacing: -.035em; text-decoration: none; }
.brand-caption { display: block; margin-top: 1px; font-size: 10px; line-height: 1.5; letter-spacing: .015em; font-weight: 400; color: #91a2bb; }
.nav-label { font-size: 9px; letter-spacing: .16em; color: #8293ad; font-weight: 600; margin: 43px 13px 14px; }
.navigation { display: flex; flex-direction: column; gap: 6px; }
.nav-button { display: flex; align-items: center; gap: 12px; min-height: 44px; text-align: left; padding: 10px 13px; color: #acbbd0; border-radius: 10px; font-size: 13px; font-weight: 500; }
.nav-button:hover { background: #151f2f; color: var(--text); }
.nav-button.active { background: #17303e; color: #a4eff4; box-shadow: inset 0 0 0 1px #245065; }
.nav-button .icon { width: 18px; height: 18px; }
.nav-count { margin-left: auto; min-width: 20px; padding: 1px 5px; border-radius: 5px; color: #9aacbf; background: #223043; font-size: 10px; text-align: center; }
.sidebar-bottom { margin-top: auto; padding: 24px 7px 0; }
.mode-badge { display: flex; align-items: center; gap: 7px; width: fit-content; margin: 0 0 15px 4px; padding: 6px 8px; border: 1px solid #2b4c5f; border-radius: 7px; background: #142733; color: #b5e7ed; font-size: 10px; }
.mode-badge .icon { width: 13px; height: 13px; color: var(--accent); }
.connection { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #b4c5d6; margin: 0 0 17px 7px; }
.status-dot { width: 6px; height: 6px; flex: none; display: inline-block; border-radius: 50%; background: #8899ae; }
.status-dot.online { background: var(--accent); box-shadow: 0 0 0 3px #82e3eb12; }
.status-dot.busy { background: var(--accent); box-shadow: 0 0 0 3px #82e3eb10; }
.status-dot.failed { background: var(--danger); }
.utility-button { display: flex; align-items: center; gap: 10px; min-height: 38px; text-align: left; padding: 6px; color: #a0b1c9; font-size: 11px; }
.utility-button:hover { color: var(--text); }
.utility-button .icon { width: 16px; height: 16px; }
.sidebar-note { display: block; margin: 17px 6px 0; font-size: 10px; color: #8191a8; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.topbar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; padding: 17px 34px; border-bottom: 1px solid #202d40; background: #101825; }
.topbar-title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.topbar h1 { font-size: 19px; letter-spacing: -.025em; }
.topbar-eyebrow { display: none; }
.model-label { display: flex; align-items: center; gap: 7px; min-width: 0; max-width: 55%; padding: 6px 10px; border: 1px solid #2c3d53; border-radius: 8px; font-size: 11px; color: #bfcede; background: #162130; }
.model-label span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-indicator { width: 4px; height: 4px; flex: none; background: var(--accent); border-radius: 50%; }
.panel { min-height: 0; flex: 1; }

/* Conversation */
.chat-panel { display: flex; flex-direction: column; }
.chat-scroll { overflow: auto; flex: 1; min-height: 0; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #344860 transparent; overscroll-behavior: contain; }
.empty-state { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 42px 24px; }
.empty-symbol { display: grid; place-items: center; width: 78px; height: 78px; margin-bottom: 27px; border: 1px solid #29485c; border-radius: 23px; background: #142837; box-shadow: 0 0 65px #6ce4e90b; }
.empty-symbol img { border-radius: 15px; }
.empty-state .eyebrow { color: #a5becf; font-size: 9px; letter-spacing: .14em; }
.empty-state h2 { font-size: 36px; margin: 13px 0 14px; letter-spacing: -.04em; }
.empty-state > p:not(.eyebrow):not(.quick-hint) { color: #b1bfd2; font-size: 14px; line-height: 1.8; }
.quick-prompts { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.quick-prompt { display: inline-flex; align-items: center; gap: 7px; min-height: 39px; padding: 9px 12px; border: 1px solid #32445b; border-radius: 10px; color: #c7d6e5; background: #172233; font-size: 12px; }
.quick-prompt .icon { width: 15px; height: 15px; color: #89d7df; }
.quick-prompt:hover:not(:disabled) { border-color: #54919f; background: #1a3041; }
.quick-hint { color: #91a4bb; font-size: 10px; margin-top: 13px; }
.messages { width: 100%; max-width: 856px; margin: auto; padding: 28px 30px 10px; }
.message { display: flex; gap: 13px; margin-bottom: 28px; }
.message-avatar { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border: 1px solid #2f5265; border-radius: 9px; color: #a0f0f2; background: #183342; font-size: 12px; font-weight: 650; }
.message-avatar .icon { width: 16px; height: 16px; }
.message-main { min-width: 0; flex: 1; }
.message-meta { display: flex; align-items: center; gap: 10px; min-height: 28px; margin-bottom: 8px; }
.message-author { font-size: 12px; font-weight: 600; letter-spacing: .005em; color: #dfedf6; }
.message-time { font-size: 10px; color: #98a9bf; }
.message-content { color: #e5edf7; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.78; tab-size: 2; }
.message.user { justify-content: flex-end; }
.message.user .message-avatar { display: none; }
.message.user .message-main { flex: 0 1 auto; max-width: 86%; }
.message.user .message-meta { justify-content: flex-end; margin-bottom: 7px; }
.message.user .message-content { padding: 12px 16px; border: 1px solid #314a63; border-radius: 15px 15px 4px 15px; background: #1d3044; color: #f1f6ff; }
.message.tool .message-avatar, .message.system .message-avatar { color: #b4c6dc; border-color: #3a4c64; background: #233045; }
.message.tool .message-content, .message.system .message-content { max-height: 360px; overflow: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #c0d1e6; background: #111d2c; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 28px; margin-left: auto; padding: 4px 7px; border-radius: 6px; color: #9cacbf; font-size: 10px; }
.copy-button .icon { width: 14px; height: 14px; }
.copy-button:hover { background: #1c2b3d; color: #e7f4ff; }
.copy-button.copied { color: var(--accent); }
.message-image-link { display: block; margin-top: 13px; width: fit-content; max-width: 100%; }
.message-image { display: block; max-width: 100%; max-height: 540px; border: 1px solid #3c526c; border-radius: 12px; object-fit: contain; }
.progress-message { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: calc(100% - 41px); margin: -8px 0 20px 41px; padding: 8px 11px; border-radius: 8px; background: #132836; border: 1px solid #274654; color: #b2dce3; font-size: 11px; }
.progress-message .icon { width: 15px; height: 15px; color: var(--accent); }
.progress-count { font-size: 10px; color: #a7bccd; padding-left: 2px; white-space: nowrap; }
.composer-area { position: sticky; bottom: 0; flex: none; width: 100%; max-width: 888px; margin: 0 auto; padding: 12px 32px 18px; padding-bottom: max(18px, env(safe-area-inset-bottom)); background: var(--bg); }
.composer { padding: 4px 7px 8px; border: 1px solid #3a4d65; border-radius: 17px; background: #192536; box-shadow: 0 8px 30px #0000001a; }
.composer:focus-within { border-color: #66adbf; box-shadow: 0 0 0 1px #82e3eb19; }
.composer textarea { min-height: 58px; max-height: 180px; padding: 11px 12px 4px; border: 0; background: transparent; resize: vertical; font-size: 14px; outline: none !important; }
.composer-bottom { display: flex; align-items: center; gap: 10px; padding: 0 3px 0 12px; }
.composer-label { display: flex; align-items: center; gap: 6px; min-width: 0; color: #a0b4ca; font-size: 10px; }
.composer-label .icon { width: 12px; height: 12px; color: #95a9c1; }
#composer-state { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-count { display: none; margin-left: auto; white-space: nowrap; font-size: 9px; color: #a9bbcf; font-variant-numeric: tabular-nums; }
.message-count.is-visible { display: inline; }
.send-button { display: grid; place-items: center; flex: none; width: 38px; height: 38px; margin-left: auto; border-radius: 11px; background: var(--accent); color: #11343d; }
.send-button .icon { width: 21px; height: 21px; stroke-width: 2; }
.message-count.is-visible + .send-button { margin-left: 0; }
.composer-hint { text-align: center; font-size: 10px; color: #92a1b7; margin-top: 10px; }

/* Task status stays compact while the conversation takes the space. */
.task-card { flex: none; align-self: center; width: calc(100% - 64px); max-width: 824px; margin: 12px 0 0; padding: 8px 12px; border: 1px solid #2b495b; background: #152735; border-radius: 10px; }
.task-heading { display: flex; align-items: center; gap: 9px; min-height: 27px; }
.task-heading strong { font-size: 12px; font-weight: 550; line-height: 1.4; color: #d9edf4; }
.stop-button { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; min-height: 30px; padding: 5px 9px; border: 1px solid #466379; border-radius: 7px; background: #203548; color: #e3eef9; font-size: 11px; white-space: nowrap; }
.stop-button .icon { width: 13px; height: 13px; }
.stop-button:hover:not(:disabled) { border-color: #8aaec2; background: #2a4358; }
.task-detail { max-height: 84px; overflow: auto; font-size: 11px; line-height: 1.55; color: #bdd0df; margin-top: 5px; overflow-wrap: anywhere; white-space: pre-wrap; }
.task-card[data-status="failed"], .task-card[data-status="interrupted"] { border-color: #6b494c; background: #2c212b; }
.task-card[data-status="completed"], .task-card[data-status="cancelled"] { background: #152331; border-color: #2b4056; }
.notice { display: flex; align-items: center; gap: 10px; flex: none; margin: 12px 32px 0; padding: 10px 12px; border: 1px solid #36566b; border-radius: 10px; background: #1b2e3f; }
.notice > p { min-width: 0; font-size: 12px; flex: 1; overflow-wrap: anywhere; color: #dbe8f7; }
.notice .icon-button { min-width: 28px; min-height: 28px; }
.notice .icon-button .icon { width: 17px; height: 17px; }
.notice.warning { background: #352b25; border-color: #6e5942; }
.notice.error { background: #34242d; border-color: #76505a; }

/* Memory and connected devices */
.content-panel { overflow: auto; padding: 39px 34px 36px; padding-bottom: max(36px, env(safe-area-inset-bottom)); }
.section-heading, .memory-form, .memory-list, .quiet-empty, .device-grid, .device-explanation { max-width: 824px; margin-left: auto; margin-right: auto; }
.section-heading h2 { margin: 11px 0 13px; }
.section-heading > p:last-child { color: #aebbcd; font-size: 13px; line-height: 1.8; }
.memory-form { margin-top: 29px; padding: 20px; background: var(--panel); border: 1px solid #2c3d53; border-radius: 15px; }
.memory-form label { font-size: 12px; }
.memory-form textarea { font-size: 13px; min-height: 94px; max-height: 240px; }
.memory-form-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 12px; }
.memory-form-footer .field-hint { font-size: 11px; max-width: 72%; }
.primary-button.compact { font-size: 12px; min-height: 39px; padding: 9px 16px; }
.memory-list { list-style: none; padding: 0; margin-top: 23px; display: flex; flex-direction: column; gap: 11px; }
.memory-item { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid #2b3b50; border-radius: 12px; background: #141f2d; }
.memory-glyph { display: inline-flex; padding-top: 2px; color: var(--accent); }
.memory-glyph .icon { width: 18px; height: 18px; }
.memory-text { white-space: pre-wrap; overflow-wrap: anywhere; flex: 1; min-width: 0; font-size: 13px; line-height: 1.7; color: #dce7f7; }
.delete-memory { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 5px 6px; border-radius: 6px; color: #a5b8cd; font-size: 10px; }
.delete-memory .icon { width: 14px; height: 14px; }
.delete-memory:hover { color: var(--danger); background: #382833; }
.quiet-empty { margin-top: 26px; padding: 20px 0; color: #a0b2c8; font-size: 13px; }
.device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 29px; }
.device-card { min-height: 176px; padding: 23px; border: 1px solid #2c3e54; background: #152131; border-radius: 16px; }
.device-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.device-icon { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #35536a; border-radius: 12px; background: #20384a; color: #a2ebf0; }
.device-icon .icon { width: 21px; height: 21px; }
.device-status { display: flex; align-items: center; gap: 7px; color: #b3c3d6; font-size: 11px; }
.device-card h3 { font-size: 17px; font-weight: 550; margin: 0 0 5px; overflow-wrap: anywhere; }
.device-card p { font-size: 12px; color: #a5b8cd; }
.device-explanation { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; color: #a0b4cb; font-size: 12px; line-height: 1.8; }
.device-explanation > .icon { width: 17px; height: 17px; margin-top: 2px; }
.install-dialog { width: calc(100% - 36px); max-width: 450px; max-height: 85dvh; overflow: auto; padding: 28px; border: 1px solid #3b546d; border-radius: 21px; background: #162233; color: var(--text); box-shadow: 0 30px 100px #0008; }
.install-dialog::backdrop { background: #050a13c7; backdrop-filter: blur(6px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.dialog-heading > img { border-radius: 11px; }
.install-dialog h2 { font-size: 26px; margin: 10px 0 12px; }
.install-dialog > p:not(.eyebrow) { font-size: 12px; color: #b2c4d9; line-height: 1.8; }
.install-step { padding: 20px 0; border-bottom: 1px solid #304155; }
.install-step strong { font-size: 13px; font-weight: 550; }
.install-step p { font-size: 12px; color: #c1cfe1; margin-top: 7px; line-height: 1.75; }
.install-dialog > .field-hint { margin-top: 18px; font-size: 11px !important; }
.install-dialog > .primary-button { margin-top: 18px; width: 100%; }
.drawer-open, .drawer-close { display: none; }
.noscript-message { position: fixed; bottom: 20px; left: 20px; right: 20px; background: #4b2c37; padding: 20px; border-radius: 10px; text-align: center; }

@media (min-width: 1280px) {
  .sidebar { width: 248px; padding-left: 21px; padding-right: 21px; }
  .topbar { padding-left: 43px; padding-right: 43px; }
  .content-panel { padding-top: 45px; }
}
@media (max-width: 760px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 70; width: min(282px, calc(100vw - 38px)); transform: translateX(-100%); transition: transform .2s ease; padding-top: max(27px, env(safe-area-inset-top)); box-shadow: 24px 0 80px #0005; }
  .sidebar.is-open { transform: none; }
  .drawer-open, .drawer-close { display: grid; }
  .drawer-close { position: absolute; right: 11px; top: max(20px, env(safe-area-inset-top)); }
  .drawer-backdrop { position: fixed; inset: 0; z-index: 65; background: #040b16b8; backdrop-filter: blur(4px); }
  .topbar { min-height: 65px; padding: 10px 14px 10px 7px; padding-top: max(10px, env(safe-area-inset-top)); gap: 10px; }
  .topbar-title { gap: 5px; }
  .topbar-eyebrow { display: block; margin-bottom: 1px; color: #9cb0c9; font-size: 8px; letter-spacing: .12em; }
  .topbar h1 { font-size: 16px; line-height: 1.3; }
  .model-label { max-width: 45%; font-size: 10px; padding: 5px 7px; border-radius: 7px; }
  .empty-state { padding: 29px 18px; }
  .empty-state h2 { font-size: 29px; margin: 12px 0; }
  .empty-state > p:not(.eyebrow):not(.quick-hint) { font-size: 13px; }
  .empty-symbol { width: 66px; height: 66px; border-radius: 20px; margin-bottom: 24px; }
  .empty-symbol img { width: 47px; height: 47px; }
  .quick-prompts { gap: 6px; margin-top: 24px; }
  .quick-prompt { min-height: 40px; padding: 8px 10px; gap: 6px; font-size: 11px; }
  .quick-prompt .icon { width: 14px; height: 14px; }
  .quick-hint { max-width: 250px; line-height: 1.65; font-size: 10px; margin-top: 12px; }
  .messages { padding: 22px 17px 7px; }
  .message { gap: 9px; margin-bottom: 25px; }
  .message-avatar { width: 25px; height: 25px; border-radius: 8px; font-size: 11px; }
  .message-meta { min-height: 25px; gap: 8px; margin-bottom: 6px; }
  .message-author { font-size: 12px; }
  .message-time { font-size: 10px; }
  .message-content { font-size: 14px; line-height: 1.75; }
  .message.user .message-main { max-width: 92%; }
  .message.user .message-content { padding: 11px 13px; border-radius: 13px 13px 3px 13px; }
  .copy-label { display: none; }
  .copy-button { min-width: 30px; min-height: 28px; padding: 5px; }
  .copy-button .icon { width: 15px; height: 15px; }
  .progress-message { max-width: calc(100% - 34px); margin-left: 34px; padding: 7px 9px; gap: 6px; font-size: 10px; }
  .composer-area { padding: 10px 13px max(13px, env(safe-area-inset-bottom)); }
  .composer { border-radius: 15px; padding-bottom: 7px; }
  .composer textarea { min-height: 54px; max-height: 140px; font-size: 16px; padding: 10px 10px 2px; }
  .composer-bottom { padding-left: 10px; gap: 7px; }
  .composer-label { font-size: 9px; gap: 5px; }
  .send-button { width: 37px; height: 37px; border-radius: 10px; }
  .composer-hint { display: none; }
  .task-card { width: calc(100% - 28px); margin-top: 10px; padding: 6px 10px; border-radius: 9px; }
  .task-heading { gap: 7px; min-height: 25px; }
  .task-heading strong { font-size: 11px; }
  .stop-button { min-height: 30px; padding: 5px 7px; gap: 4px; font-size: 10px; }
  .task-detail { font-size: 10px; max-height: 65px; margin-top: 4px; }
  .notice { margin: 10px 14px 0; gap: 8px; flex-wrap: wrap; padding: 9px 11px; }
  .notice > p { min-width: 74%; font-size: 11px; }
  .notice .icon-button { margin-left: auto; }
  .content-panel { padding: 28px 18px max(28px, env(safe-area-inset-bottom)); }
  .section-heading h2 { font-size: 25px; }
  .section-heading > p:last-child { font-size: 12px; }
  .memory-form { padding: 15px; margin-top: 24px; border-radius: 12px; }
  .memory-form textarea { font-size: 16px; }
  .memory-form-footer { align-items: flex-end; gap: 10px; }
  .memory-form-footer .field-hint { max-width: 60%; font-size: 10px; }
  .memory-item { padding: 14px; gap: 9px; }
  .memory-text { font-size: 13px; }
  .delete-memory { min-width: 30px; min-height: 32px; justify-content: center; padding: 5px; }
  .delete-memory > span { display: none; }
  .device-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .device-card { min-height: 158px; padding: 20px; }
  .device-top { margin-bottom: 18px; }
  .login-view { padding: 31px 18px max(24px, env(safe-area-inset-bottom)); }
  .login-card { max-width: 360px; padding: 28px 23px 18px; border-radius: 21px; }
  .login-card h1 { font-size: 39px; }
  .login-description { font-size: 13px; }
  .login-card form { margin-top: 26px; }
  .login-card input { font-size: 16px; }
  .login-footer { margin-top: 22px; font-size: 10px; }
  .has-network-banner .sidebar { padding-top: max(65px, env(safe-area-inset-top)); }
  .has-network-banner .drawer-close { top: 55px; }
  .install-dialog { padding: 22px; }
}
@media (max-width: 350px) {
  .messages { padding-left: 14px; padding-right: 14px; }
  .model-label { max-width: 43%; font-size: 9px; }
  .quick-prompts { gap: 5px; }
  .quick-prompt { padding: 8px; gap: 5px; font-size: 10px; }
  .empty-state h2 { font-size: 27px; }
  .login-card { padding-left: 19px; padding-right: 19px; }
  .composer-label .icon { display: none; }
}
@media (max-height: 650px) {
  .empty-state { padding-top: 22px; padding-bottom: 22px; }
  .empty-symbol { width: 54px; height: 54px; border-radius: 16px; margin-bottom: 14px; }
  .empty-symbol img { width: 39px; height: 39px; }
  .empty-state h2 { font-size: 27px; margin: 9px 0; }
  .quick-prompts { margin-top: 18px; }
  .login-view { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
