@charset "UTF-8";
@font-face { font-family: "Inter Variable"; src: url('/vendor/inter-latin-variable.woff2') format('woff2'); font-style: normal; font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: light;
  --bg: #ffffff; --sidebar: #f9f9f9; --surface: #ffffff; --hover: #eeeeee;
  --soft: #f7f7f7; --text: #0d0d0d; --muted: #676767; --faint: #929292;
  --line: #e6e6e6; --strong: #0d0d0d; --inverse: #ffffff; --user: #f4f4f4;
  --composer: #ffffff; --composer-border: #e5e5e5; --icon-filter: none;
  --send-filter: invert(1); --sidebar-width: 260px;
  --shadow: 0 2px 8px #00000008, 0 0 1px #00000008;
  --modal-shadow: 0 16px 80px #00000024;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0b; --sidebar: #0b0b0b; --surface: #202020; --hover: #262626;
  --soft: #191919; --text: #f3f3f3; --muted: #afafaf; --faint: #808080;
  --line: #282828; --strong: #f3f3f3; --inverse: #171717; --user: #242424;
  --composer: #242424; --composer-border: #303030; --icon-filter: invert(1);
  --send-filter: none; --shadow: none; --modal-shadow: 0 20px 100px #00000080;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Inter Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
button, a, select, textarea { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid var(--muted); outline-offset: 3px; }
textarea:focus, input:focus { outline: none; }
a { color: inherit; }
[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; }
span[data-icon], .ui-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-image { display: block; width: 20px; height: 20px; filter: var(--icon-filter); opacity: .85; pointer-events: none; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; color: var(--muted); flex-shrink: 0; transition: background .14s, color .14s; }
.icon-button:hover { background: var(--hover); color: var(--text); }
.icon-button:hover .icon-image { opacity: 1; }
[data-tooltip] { position: relative; }
[data-tooltip]::after { content: attr(data-tooltip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-2px); padding: 6px 9px; background: var(--strong); color: var(--inverse); font-size: 12px; line-height: 1.5; border-radius: 7px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; z-index: 40; }
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); transition-delay: .35s; }
kbd { font-family: inherit; font-size: 11px; color: var(--faint); font-weight: 400; }
.app-shell { display: flex; height: 100dvh; min-height: 480px; overflow: hidden; }
.sidebar { width: var(--sidebar-width); flex-shrink: 0; background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; padding: 8px 10px 12px; transition: width .2s ease, padding .2s ease; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 5px 0 8px; flex-shrink: 0; min-width: 238px; }
.brand { font-size: 21px; line-height: 1; font-weight: 650; letter-spacing: -.8px; text-decoration: none; }
.sidebar-header .icon-button { color: var(--text); }
.sidebar-navigation { display: flex; flex-direction: column; gap: 2px; padding: 14px 0 0; min-width: 238px; }
.nav-button { min-height: 42px; display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px; font-size: 14px; text-align: left; white-space: nowrap; transition: background .14s; }
.nav-button:hover { background: var(--hover); }
.nav-button .icon-image { width: 19px; height: 19px; }
.nav-button kbd { margin-left: auto; opacity: 0; transition: opacity .14s; }
.nav-button:hover kbd, .nav-button:focus-visible kbd { opacity: 1; }
.memory-count { margin-left: auto; font-size: 12px; color: var(--muted); padding-right: 3px; }
.sidebar-section-label { min-width: 238px; font-size: 12px; color: var(--muted); margin: 29px 11px 10px; font-weight: 500; }
.conversation-list { overflow-y: auto; overflow-x: hidden; flex: 1; min-height: 0; min-width: 238px; }
.empty-history { color: var(--faint); font-size: 13px; line-height: 1.8; padding: 6px 11px; margin: 0; }
.conversation-row { position: relative; border-radius: 9px; margin-bottom: 2px; display: flex; align-items: center; }
.conversation-row:hover, .conversation-row.active { background: var(--hover); }
.conversation-open { width: 100%; min-width: 0; padding: 11px; text-align: left; font-size: 14px; line-height: 1.4; display: flex; align-items: center; }
.conversation-open>span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-right: 18px; }
.conversation-delete { position: absolute; top: 7px; right: 5px; width: 28px; height: 28px; padding: 5px; background: var(--hover); border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .12s; }
.conversation-delete .icon-image { width: 16px; height: 16px; opacity: .65; }
.conversation-row:hover .conversation-delete, .conversation-row:focus-within .conversation-delete { opacity: 1; pointer-events: auto; }
.sidebar-bottom { padding: 12px 5px 0; min-width: 238px; }
.profile-row { display: flex; align-items: center; gap: 11px; padding: 10px 4px 0; }
.profile-monogram { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--hover); font-size: 14px; font-weight: 550; flex-shrink: 0; }
.profile-name { display: block; font-size: 13px; font-weight: 500; }
.profile-detail { display: block; font-size: 11px; color: var(--faint); margin-top: 2px; white-space: nowrap; }
.workspace { flex: 1; min-width: 0; position: relative; display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: 64px minmax(100px,1.25fr) auto minmax(120px,1fr) 36px; }
.topbar { grid-row: 1; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; min-width: 0; gap: 16px; }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.model-picker { position: relative; display: flex; align-items: center; border-radius: 10px; min-width: 0; }
.model-picker:hover { background: var(--soft); }
.model-picker select { appearance: none; border: 0; background: none; color: var(--text); font-size: 18px; font-weight: 550; letter-spacing: -.3px; padding: 8px 30px 8px 8px; cursor: pointer; max-width: 230px; }
.model-picker option { font-size: 15px; background: var(--surface); color: var(--text); }
.model-picker>span { pointer-events: none; position: absolute; right: 8px; opacity: .5; }
.model-picker .icon-image { width: 14px; height: 14px; }
.connection-state { display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: 12px; white-space: nowrap; }
.status-dot { display: block; width: 5px; height: 5px; background: var(--faint); border-radius: 50%; }
.connected .status-dot { background: var(--text); }
.theme-control { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--soft); }
.theme-control .icon-button { height: 30px; width: 30px; border-radius: 50%; }
.theme-control .icon-image { width: 16px; height: 16px; opacity: .55; }
.theme-control .selected { background: var(--hover); }
.theme-control .selected .icon-image { opacity: 1; }
.theme-control [data-tooltip]::after { left: auto; right: -7px; transform: none; }
.sidebar-opener { display: none; }
.sidebar-collapsed .sidebar { width: 0; padding-left: 0; padding-right: 0; border: 0; }
.sidebar-collapsed .sidebar-opener { display: inline-flex; }
.sidebar-scrim { display: none; }
.chat-scroll { grid-row: 2; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 24px 44px; }
.welcome { width: min(768px,100%); margin: 0 auto; text-align: center; }
.welcome h1 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 400; letter-spacing: .07px; }
.composer-area { grid-row: 3; width: min(768px,calc(100% - 48px)); margin: 0 auto; min-width: 0; }
.composer { position: relative; background: var(--composer); border: 1px solid var(--composer-border); border-radius: 30px; padding: 17px 56px; min-height: 64px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: var(--faint); }
.composer.dragging { outline: 2px solid var(--muted); outline-offset: 5px; }
.composer textarea { display: block; border: 0; resize: none; padding: 0; margin: 0; color: var(--text); background: transparent; width: 100%; min-height: 28px; max-height: 208px; line-height: 28px; font-size: 17px; overflow-y: auto; }
.composer textarea::placeholder { color: var(--muted); }
.composer-toolbar { display: flex; align-items: flex-end; justify-content: space-between; position: absolute; left: 10px; right: 10px; bottom: 10px; height: 40px; pointer-events: none; }
.composer-toolbar>button { pointer-events: auto; }
.attach-button { width: 40px; height: 40px; border-radius: 50%; }
.attach-button .icon-image { width: 24px; height: 24px; opacity: .9; }
.attach-button[data-tooltip]::after { top: auto; bottom: calc(100% + 8px); left: 0; transform: none; }
.send-button { display: flex; align-items: center; justify-content: center; background: var(--strong); color: var(--inverse); border-radius: 50%; width: 38px; height: 38px; margin-bottom: 1px; transition: opacity .15s, transform .15s; }
.send-button .icon-image { filter: var(--send-filter); width: 22px; height: 22px; opacity: 1; }
.send-button:hover:not(:disabled) { opacity: .82; }
.send-button:active:not(:disabled) { transform: scale(.94); }
.send-button:disabled { opacity: 1; background: var(--hover); }
.send-button:disabled .icon-image { filter: var(--icon-filter); opacity: .3; }
.suggestions { grid-row: 4; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; align-self: start; padding: 0 20px; margin: 22px auto 0; }
.suggestion { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; color: var(--muted); font-size: 14px; line-height: 20px; transition: background .14s, color .14s, border-color .14s; }
.suggestion:hover { background: var(--soft); color: var(--text); border-color: var(--faint); }
.suggestion .icon-image { width: 18px; height: 18px; opacity: .65; }
.composer-footnote { grid-row: 5; align-self: center; color: var(--faint); font-size: 11px; line-height: 1.5; margin: 0; padding: 0 20px 4px; text-align: center; }
.inline-notice { color: var(--muted); font-size: 13px; line-height: 1.7; border: 1px solid var(--line); background: var(--soft); padding: 11px 16px; border-radius: 16px; margin-bottom: 12px; }
.attachments { display: flex; gap: 10px; flex-wrap: wrap; margin: -3px -38px 16px; padding-bottom: 2px; }
.attachment { position: relative; border: 1px solid var(--line); background: var(--bg); border-radius: 14px; width: 82px; height: 82px; overflow: hidden; }
.attachment img { width: 100%; height: 100%; object-fit: cover; display: block; }
.remove-attachment { display: flex; align-items: center; justify-content: center; position: absolute; right: 4px; top: 4px; background: #fff; border: 1px solid #ddd; width: 21px; height: 21px; border-radius: 50%; }
.remove-attachment .icon-image { width: 12px; height: 12px; filter: none; }
.has-conversation { grid-template-rows: 64px minmax(0,1fr) auto 34px; }
.has-conversation .chat-scroll { display: block; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px; scroll-behavior: smooth; }
.has-conversation .composer-area { margin-bottom: 6px; }
.has-conversation .composer-footnote { grid-row: 4; }
.has-conversation .suggestions { display: none; }
.messages { width: min(768px,100%); margin: 34px auto 32px; }
.message { margin-bottom: 38px; }
.message.user { display: flex; flex-direction: column; align-items: flex-end; margin-top: 12px; margin-bottom: 36px; }
.user-content { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 80%; font-size: 16px; line-height: 1.7; border-radius: 24px; padding: 11px 19px; background: var(--user); }
.message-images { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; margin-bottom: 12px; }
.message-image-button { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; max-width: 280px; max-height: 230px; padding: 0; background: #fff; }
.message-image-button img { max-width: 100%; max-height: 230px; display: block; object-fit: contain; }
.markdown { font-size: 16px; line-height: 1.85; overflow-wrap: break-word; }
.markdown>:first-child { margin-top: 0; }
.markdown p { margin: 0 0 1.15em; }
.markdown h1, .markdown h2, .markdown h3, .markdown h4 { font-weight: 600; letter-spacing: -.3px; line-height: 1.5; margin: 1.6em 0 .7em; }
.markdown h1 { font-size: 26px; } .markdown h2 { font-size: 23px; } .markdown h3 { font-size: 20px; } .markdown h4 { font-size: 17px; }
.markdown ul, .markdown ol { padding-left: 1.6em; margin: .8em 0 1.2em; }
.markdown li { padding-left: .25em; margin: .35em 0; } .markdown li p { margin: .45em 0; }
.markdown blockquote { margin: 1.3em 0; border-left: 3px solid var(--line); padding: .1em 1em; color: var(--muted); }
.markdown code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; background: var(--user); border-radius: 5px; padding: 2px 5px; }
.markdown pre { overflow-x: auto; border: 1px solid var(--line); background: var(--soft); border-radius: 14px; padding: 17px 20px; line-height: 1.7; }
.markdown pre code { background: none; padding: 0; }
.markdown table { border-collapse: collapse; display: block; overflow-x: auto; width: 100%; font-size: 14px; margin: 1.2em 0; }
.markdown th, .markdown td { border-bottom: 1px solid var(--line); padding: 10px 15px; text-align: left; min-width: 100px; }
.markdown th { font-weight: 600; } .markdown hr { border: 0; border-top: 1px solid var(--line); margin: 1.8em 0; }
.markdown a { text-decoration: underline; text-underline-offset: 3px; } .markdown img { max-width: 100%; height: auto; }
.katex-display { overflow-x: auto; overflow-y: hidden; padding: 5px 0; font-size: .96em; }
.message-actions { display: flex; align-items: center; gap: 6px; margin-top: 12px; min-height: 30px; }
.message-actions .icon-button { width: 30px; height: 30px; border-radius: 8px; }
.message-actions .icon-image { width: 17px; height: 17px; opacity: .45; }
.message-actions .action-note { font-size: 12px; color: var(--faint); margin-left: 5px; }
.thinking { color: var(--muted); font-size: 15px; display: flex; align-items: center; gap: 5px; min-height: 30px; }
.thinking i { width: 5px; height: 5px; background: var(--muted); border-radius: 50%; animation: pulse 1.35s ease-in-out infinite; }
.thinking i:nth-child(2) { animation-delay: .16s; } .thinking i:nth-child(3) { animation-delay: .32s; } .thinking span { margin-left: 7px; }
.streaming .markdown>:last-child::after { content: ''; width: 5px; height: 15px; margin-left: 5px; vertical-align: middle; background: var(--muted); display: inline-block; animation: pulse 1s infinite; }
.streaming .markdown:empty::after { display: none; }
.scroll-bottom { position: absolute; right: calc(50% - 18px); bottom: 120px; background: var(--surface); border: 1px solid var(--line); border-radius: 50%; box-shadow: var(--shadow); z-index: 3; }
.scroll-bottom .icon-image { width: 18px; height: 18px; }
dialog { color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 0; box-shadow: var(--modal-shadow); }
dialog::backdrop { background: #0006; backdrop-filter: blur(2px); }
.memory-dialog { width: min(640px,calc(100% - 32px)); max-height: min(85dvh,820px); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: 19px 24px; }
.dialog-header h2 { margin: 0; font-size: 21px; letter-spacing: -.4px; font-weight: 600; }
.dialog-header .icon-button { border-radius: 50%; }
.dialog-body { padding: 24px; max-height: calc(85dvh - 80px); overflow-y: auto; }
.dialog-description { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0 0 28px; }
.memory-section-heading { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 550; margin-bottom: 13px; }
.subtle-label { color: var(--faint); font-size: 12px; font-weight: 400; }
.memory-list { display: flex; flex-direction: column; gap: 12px; }
.memory-item { border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.memory-item textarea { border: 0; background: none; width: 100%; color: var(--text); resize: vertical; font-size: 14px; line-height: 1.85; padding: 0; min-height: 52px; }
.memory-item-bottom { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 7px; }
.text-button { padding: 6px 10px; font-size: 12px; color: var(--muted); border-radius: 7px; }
.text-button:hover { color: var(--text); background: var(--hover); }
.memory-form { margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--line); }
.memory-form>label { display: block; font-weight: 550; font-size: 14px; margin-bottom: 12px; }
.memory-form>textarea { display: block; width: 100%; resize: vertical; border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 14px; font-size: 14px; line-height: 1.8; padding: 13px 15px; }
.memory-form>textarea:focus { border-color: var(--muted); } .memory-form>textarea::placeholder { color: var(--faint); }
.memory-form-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; }
.memory-form-bottom>span { color: var(--faint); font-size: 12px; }
.solid-button, .plain-button { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.solid-button { background: var(--strong); color: var(--inverse); } .solid-button:hover { opacity: .85; }
.plain-button { border: 1px solid var(--line); } .plain-button:hover { background: var(--hover); }
.confirm-dialog { width: min(420px,calc(100% - 32px)); padding: 26px; }
.confirm-dialog h2 { margin: 0 0 14px; font-size: 21px; font-weight: 600; letter-spacing: -.4px; }
.confirm-dialog p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 28px; }
.search-dialog { width: min(640px,calc(100% - 32px)); max-height: 80dvh; }
.search-field { display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); padding: 15px 19px; }
.search-field>.icon-image { opacity: .6; } .search-field input { width: 100%; min-width: 0; border: 0; background: none; color: var(--text); font-size: 16px; padding: 5px 0; }
.search-field input::placeholder { color: var(--faint); } .search-field .icon-button { width: 30px; height: 30px; border-radius: 50%; }
.search-results { min-height: 180px; max-height: 50dvh; overflow-y: auto; padding: 12px; }
.search-result { width: 100%; display: flex; gap: 12px; align-items: center; padding: 13px 14px; border-radius: 11px; text-align: left; font-size: 14px; }
.search-result:hover { background: var(--hover); } .search-result>span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result .icon-image { width: 18px; height: 18px; opacity: .6; }
.search-empty { text-align: center; color: var(--faint); font-size: 14px; padding: 58px 10px; }
.search-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding: 13px 23px; font-size: 12px; color: var(--faint); }
.search-footer kbd { padding: 1px 4px; border: 1px solid var(--line); border-radius: 4px; margin-right: 4px; }
.image-dialog { width: fit-content; max-width: 94vw; max-height: 94dvh; padding: 45px 15px 15px; border-radius: 18px; }
.image-dialog>.icon-button { position: absolute; top: 6px; right: 7px; border-radius: 50%; }
.image-dialog>img { display: block; max-width: calc(94vw - 32px); max-height: calc(94dvh - 65px); object-fit: contain; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50; background: var(--strong); color: var(--inverse); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 18px; font-size: 13px; max-width: 90vw; text-align: center; }
::-webkit-scrollbar { width: 7px; height: 7px; } ::-webkit-scrollbar-thumb { background: var(--line); border-radius: 7px; } ::-webkit-scrollbar-track { background: transparent; }
@keyframes pulse { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }
@media (max-width: 900px) { .topbar { padding: 0 18px; } .connection-state { display: none; } .composer-area { width: calc(100% - 40px); } .chat-scroll { padding-left: 20px; padding-right: 20px; } }
@media (max-width: 760px) {
  .app-shell { min-height: 0; }
  .sidebar, .sidebar-collapsed .sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 30; width: 276px; padding: 8px 12px 16px; border-right: 1px solid var(--line); transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim:not([hidden]) { display: block; position: fixed; inset: 0; width: 100%; height: 100%; border: 0; background: #0008; z-index: 29; }
  .sidebar-opener { display: inline-flex; }
  .workspace { grid-template-rows: 60px minmax(80px,1.2fr) auto minmax(120px,1fr) 36px; }
  .topbar { padding: 0 12px; gap: 8px; } .topbar-left { gap: 5px; }
  .model-picker select { font-size: 16px; max-width: 180px; padding-left: 6px; }
  .topbar-actions { gap: 0; } .theme-control { padding: 2px; }
  .theme-control .icon-button { width: 28px; height: 28px; } .theme-control .icon-image { width: 15px; height: 15px; }
  .chat-scroll { padding-bottom: 26px; } .welcome h1 { font-size: 24px; letter-spacing: .07px; }
  .composer-area { width: calc(100% - 28px); }
  .composer { padding: 16px 49px; border-radius: 28px; min-height: 62px; }
  .composer textarea { font-size: 16px; line-height: 28px; }
  .composer-toolbar { left: 7px; right: 8px; bottom: 10px; }
  .attach-button { width: 36px; height: 36px; } .attach-button .icon-image { width: 22px; height: 22px; }
  .send-button { width: 36px; height: 36px; }
  .suggestions { margin-top: 18px; gap: 8px; padding: 0 15px; }
  .suggestion { font-size: 12px; padding: 8px 11px; gap: 6px; }
  .suggestion .icon-image { width: 16px; height: 16px; }
  .composer-footnote { font-size: 10px; padding-left: 10px; padding-right: 10px; }
  .has-conversation { grid-template-rows: 60px minmax(0,1fr) auto 34px; }
  .has-conversation .chat-scroll { padding: 0 18px; }
  .messages { margin-top: 22px; } .message { margin-bottom: 30px; }
  .user-content { max-width: 90%; font-size: 15px; border-radius: 22px; padding: 10px 16px; }
  .markdown { font-size: 15px; } .markdown h2 { font-size: 21px; } .markdown h3 { font-size: 18px; }
  .conversation-delete { opacity: .6; pointer-events: auto; }
  .dialog-header { padding: 15px 18px; } .dialog-header h2 { font-size: 20px; }
  .dialog-body { padding: 20px 18px; }
  .memory-form-bottom { align-items: flex-end; } .memory-form-bottom>span { max-width: 160px; font-size: 11px; }
  .attachments { margin-left: -32px; margin-right: -32px; }
  [data-tooltip]::after { display: none; }
}
@media (max-height: 560px) { .workspace { grid-template-rows: 56px minmax(60px,1fr) auto minmax(65px,.7fr) 30px; } .has-conversation { grid-template-rows: 56px minmax(0,1fr) auto 30px; } .chat-scroll { padding-bottom: 20px; } .welcome h1 { font-size: 24px; } .suggestions { margin-top: 14px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Family entry and the personal interview share the same quiet grayscale language. */
.entry-screen { min-height:100dvh; padding:28px; background:var(--bg); }
.entry-brand { font-size:22px;font-weight:650;letter-spacing:-.8px; }
.entry-card { width:min(400px,100%); margin:clamp(55px,11vh,130px) auto 45px; }
.entry-eyebrow { color:var(--muted);font-size:13px;margin:0 0 14px; }
.entry-card h1,.interview-body>h1 { font-size:29px;line-height:1.35;font-weight:500;letter-spacing:-.6px;margin:0 0 18px; }
.entry-description { color:var(--muted);font-size:14px;line-height:1.85;margin:0 0 26px; }
.entry-form { display:flex;flex-direction:column;gap:19px; }
.entry-form label,.field-label { display:block;font-size:13px;font-weight:500;margin:0 0 9px; }
.entry-form input,.profile-form>input,#invite-link { width:100%;height:48px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--text);font-size:15px; }
.entry-form input:focus,.profile-form>input:focus,#invite-link:focus { border-color:var(--muted);outline:2px solid var(--line);outline-offset:2px; }
.entry-primary { display:block;min-height:46px;width:100%;background:var(--strong);color:var(--inverse);border-radius:999px;padding:12px 23px;font-size:14px;font-weight:500; }
.entry-primary:hover:not(:disabled) { opacity:.85; }
.entry-footnote { color:var(--faint);font-size:12px;line-height:1.8;margin:22px 0 0; }
.entry-error { border:1px solid var(--line);border-radius:10px;padding:12px 14px;font-size:13px;line-height:1.7;color:var(--text);background:var(--soft);margin:0; }
.interview-top { max-width:1100px;margin:0 auto;display:flex;align-items:center;justify-content:space-between; }
.interview-top>div { display:flex;align-items:center;gap:14px;font-size:13px;color:var(--muted); }
.interview-body { width:min(640px,100%);margin:65px auto 50px; }
.interview-transcript { display:flex;flex-direction:column;gap:25px;margin:32px 0; }
.interview-turn { display:flex;flex-direction:column;gap:10px;font-size:14px;line-height:1.8; }
.interview-asked { color:var(--muted);margin:0; }
.interview-answer { align-self:flex-end;max-width:90%;padding:11px 17px;border-radius:19px;background:var(--user);margin:0;white-space:pre-wrap;overflow-wrap:anywhere; }
.interview-step { display:block;color:var(--faint);font-size:12px;margin:0 0 12px; }
#interview-current h2 { font-size:21px;line-height:1.65;font-weight:500;letter-spacing:-.3px;margin:0 0 22px; }
.interview-options { display:flex;flex-wrap:wrap;gap:9px;margin:0 0 20px; }
.interview-option { text-align:left;font-size:13px;line-height:1.7;border:1px solid var(--line);border-radius:13px;padding:10px 14px; }
.interview-option:hover { background:var(--soft);border-color:var(--faint); }
#interview-answer,.profile-editor { width:100%;display:block;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:14px;resize:vertical;padding:14px 16px;font-size:14px;line-height:1.85; }
#interview-answer:focus,.profile-editor:focus { border-color:var(--muted);outline:2px solid var(--line);outline-offset:2px; }
.interview-body .entry-primary { width:auto;min-width:120px;margin:20px 0 0 auto; }
.interview-restart { margin:28px 0 0 -10px; }
.assistant-name { font-size:17px;font-weight:500;letter-spacing:-.3px;white-space:nowrap; }
.tools-opener { display:flex;align-items:center;gap:7px;border-radius:9px;padding:8px 10px;color:var(--muted);font-size:13px;white-space:nowrap; }
.tools-opener .icon-image { width:17px;height:17px;opacity:.6; }
.tools-opener:hover { color:var(--text);background:var(--soft); }
.account-button { width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:11px 8px;border-radius:10px; }
.account-button:hover { background:var(--hover); }
.account-button .icon-image { width:19px;height:19px;opacity:.65; }
.profile-form { margin-bottom:32px;padding-bottom:27px;border-bottom:1px solid var(--line); }
.profile-form>input { margin-bottom:23px; }
.profile-actions,.account-actions { display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:17px; }
.advanced-settings { font-size:13px;color:var(--muted);margin-top:23px; }
.advanced-settings summary,.sources-panel>summary,.calculations-panel>summary { cursor:pointer; }
.advanced-settings select { margin-top:14px;width:100%;border:1px solid var(--line);border-radius:10px;color:var(--text);background:var(--bg);padding:11px 13px; }
.advanced-settings p { font-size:12px;line-height:1.8;margin:10px 0 0; }
.account-actions { border-top:1px solid var(--line);padding-top:22px;margin-top:30px; }
.tool-list { display:flex;flex-direction:column;gap:8px; }
.tool-item { display:flex;align-items:center;gap:17px;padding:16px 12px;text-align:left;border-radius:13px;width:100%; }
.tool-item:hover { background:var(--hover); }
.tool-item>span:nth-child(2) { flex:1;min-width:0; }
.tool-item strong { display:block;font-size:15px;font-weight:500;margin-bottom:5px; }
.tool-item>span:nth-child(2)>span { display:block;font-size:13px;color:var(--muted);line-height:1.7; }
.tool-item>span:last-child .icon-image { width:16px;height:16px;opacity:.4; }
.tool-limit { font-size:12px;line-height:1.9;color:var(--muted);margin:22px 0 10px; }
.provider-link { font-size:12px;color:var(--muted);text-underline-offset:3px; }
.family-members { margin-bottom:25px; }
.family-member { display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 0;border-bottom:1px solid var(--line); }
.family-member strong,.family-member span { display:block;overflow-wrap:anywhere; }
.family-member strong { font-size:14px;font-weight:550; }
.family-member span { margin-top:5px;font-size:12px;color:var(--muted); }
.family-member-actions { display:flex;gap:14px;flex-shrink:0; }
.family-form { gap:9px; }
.family-form h3 { margin:0 0 10px;font-size:16px;font-weight:550; }
.family-form label { font-size:13px;margin-top:5px; }
.family-form .tool-limit { margin:5px 0 12px; }
.family-privacy { border-top:1px solid var(--line);margin-top:24px;padding-top:16px; }
.family-members p { font-size:14px;border-bottom:1px solid var(--line);padding:14px 0;margin:0; }
#invite-result { margin-top:25px; }
.evidence-block { margin:21px 0 8px;font-size:13px;color:var(--muted);line-height:1.7; }
.tool-receipt { font-size:12px;color:var(--faint);margin:0 0 12px; }
.sources-panel>summary,.calculations-panel>summary { display:list-item;list-style-position:inside;color:var(--muted);padding:8px 0;font-size:13px; }
.source-card { border-left:2px solid var(--line);padding:6px 0 7px 15px;margin:14px 0 20px;scroll-margin:20px; }
.source-card>a { color:var(--text);font-size:14px;line-height:1.8;text-decoration:none; }
.source-card>a:hover { text-decoration:underline;text-underline-offset:3px; }
.source-meta { color:var(--faint);font-size:12px;margin:6px 0; }
.source-level { color:var(--muted);font-size:11px;margin:6px 0; }
.source-abstract { font-size:12px;margin-top:9px; }
.source-abstract>summary { cursor:pointer; }
.source-abstract>p { line-height:1.85;overflow-wrap:anywhere;margin:10px 0;color:var(--muted); }
.calculation-result { font-family:ui-monospace,SFMono-Regular,monospace;font-size:12px;overflow-wrap:anywhere;margin:7px 0; }
.citation { display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;vertical-align:2px;border-radius:7px;background:var(--user);color:var(--muted);font-size:11px;font-weight:500;line-height:1;padding:0 5px;margin:0 3px; }
.citation:hover { background:var(--hover);color:var(--text); }
@media(max-width:760px) {
  .entry-screen { padding:24px 20px; }.entry-card { margin-top:65px; }.entry-card h1,.interview-body>h1 { font-size:27px; }
  .interview-body { margin-top:50px; }.interview-top>div { gap:4px; }.interview-top>div>span { max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
  .assistant-name { font-size:15px; }.tools-opener { font-size:12px;padding:8px;gap:5px; }.tools-opener .icon-image { width:15px;height:15px; }
  .tool-item { gap:13px;padding:14px 4px; }.account-actions { flex-wrap:wrap; }.profile-editor { font-size:14px; }
}

/* Direct task entry and compact personal settings, using the existing palette. */
.task-control{display:flex;align-items:center;justify-content:center;gap:4px;margin:0 0 15px}.task-control button{padding:7px 15px;font-size:13px;color:var(--muted);border-radius:9px}.task-control button[aria-pressed="true"]{background:var(--soft);color:var(--text)}.task-hint{margin:-3px 0 14px;text-align:center;color:var(--muted);font-size:13px}.image-reference{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);padding:10px 4px}.image-reference button{text-decoration:underline;text-underline-offset:3px}.suggestions.image-mode{visibility:hidden}.has-conversation .task-control{justify-content:flex-start;margin-bottom:8px}.has-conversation .task-hint{text-align:left;margin-bottom:10px}.generated-images{justify-content:flex-start}.generated-images .message-image-button{max-width:min(100%,600px);max-height:none;border-radius:16px}.generated-images .message-image-button img{max-height:500px;max-width:100%;width:auto}.image-result{max-width:100%}.image-result-actions{display:flex;gap:20px;align-items:center;margin:9px 0 15px;color:var(--muted);font-size:13px}.image-result-actions a{text-decoration:none;padding:7px 0}.image-result-actions a:hover{text-decoration:underline}.settings-tabs{display:flex;padding:0 24px;gap:22px;border-bottom:1px solid var(--line)}.settings-tabs button{padding:13px 0;font-size:14px;color:var(--muted);border-bottom:2px solid transparent}.settings-tabs button[aria-selected="true"]{color:var(--text);border-bottom-color:var(--text)}.settings-body{min-height:350px}.preference-summary{font-size:14px;line-height:1.9;color:var(--text);padding:16px 18px;margin:0 0 24px;background:var(--soft);border-radius:12px}.preference-editor{margin-top:12px}.preference-editor summary{font-size:13px;color:var(--muted);cursor:pointer;padding:10px 0}.preference-editor textarea{margin-top:8px}.interview-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:24px}.interview-footer .interview-restart{margin:0}.profile-detail{font-size:12px;color:var(--muted)}.composer-footnote{font-size:12px;color:var(--muted)}.settings-body .account-actions{border-top:0;justify-content:space-between}.has-conversation .composer-area{padding-top:12px;background:var(--bg)}
@media(max-width:760px){.model-picker select{font-size:15px;max-width:190px}.topbar{padding:0 12px;gap:6px}.topbar-left,.topbar-actions{gap:6px}.tools-opener>span:last-child{display:none}.theme-control{gap:0;padding:2px}.theme-control .icon-button{width:28px}.task-hint{font-size:12px}.interview-footer{align-items:flex-start;flex-direction:column}.settings-tabs{padding:0 20px}.settings-body{min-height:300px}}
