:root {
  color-scheme: light;
  --ink: #28251f;
  --muted: #70685c;
  --paper: #faf8f3;
  --sidebar: #f1ece2;
  --surface: #fffdf9;
  --line: #e2dbcf;
  --line-strong: #d4c8bb;
  --wine: #793d4a;
  --wine-dark: #622e3b;
  --wine-light: #f1e4e6;
  --teal: #507264;
  --serif: Georgia, "Songti SC", "Noto Serif CJK SC", STSong, SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.sprite { position: absolute; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.primary, .quiet { display: inline-flex; align-items: center; gap: .55rem; justify-content: center; border: 1px solid transparent; border-radius: .6rem; font-weight: 600; }
.primary { min-height: 2.6rem; padding: .55rem 1rem; background: var(--wine); color: #fffdf9; }
.primary:hover { background: var(--wine-dark); }
.primary:disabled { opacity: .65; }
.quiet { min-height: 2.3rem; padding: .4rem .6rem; color: var(--muted); background: transparent; font-size: .86rem; }
.quiet:hover { color: var(--ink); background: #2c251909; }
.quiet:disabled { opacity: .4; }
.icon-only { width: 2.3rem; padding: 0; flex: none; }
.brand-mark { width: 2.35rem; aspect-ratio: 1; flex: none; display: grid; place-items: center; padding-right: .06em; border-radius: .62rem .62rem .62rem .22rem; background: var(--wine); color: #fff9ef; font: italic 1.65rem/.9 Georgia, serif; }

.workspace { display: grid; grid-template-columns: minmax(235px, 268px) minmax(0, 1fr); height: 100vh; height: 100dvh; overflow: hidden; }
.sidebar { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 1.55rem 1.1rem .85rem; background: var(--sidebar); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .68rem; padding: 0 .25rem; font: 700 1.28rem/1.15 var(--serif); letter-spacing: .025em; }
.brand em { color: var(--wine); font-weight: 500; }
.new-chat { margin: 1.7rem 0 .92rem; justify-content: flex-start; font-size: .91rem; }
.search { display: flex; align-items: center; gap: .4rem; padding: 0 .65rem; min-width: 0; color: var(--muted); border: 1px solid var(--line-strong); border-radius: .6rem; background: #faf7f0; }
.search input { width: 100%; min-width: 0; height: 2.45rem; padding: .1rem; outline: none; border: 0; background: transparent; color: var(--ink); font-size: .82rem; }
.search:focus-within { border-color: var(--wine); box-shadow: 0 0 0 2px var(--wine-light); }
.search .icon { width: 1.07rem; height: 1.07rem; }
.history-title { display: flex; align-items: center; justify-content: space-between; margin: 1.45rem .1rem .35rem .35rem; color: var(--muted); font-size: .77rem; font-weight: 700; }
.history { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.history-empty { margin: .7rem .35rem; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.history-group { margin: .1rem 0 .52rem; }
.history-group summary { display: flex; align-items: center; gap: .4rem; padding: .4rem .38rem; color: var(--muted); font-size: .77rem; font-weight: 650; cursor: pointer; overflow-wrap: anywhere; list-style: none; }
.history-group summary::-webkit-details-marker { display: none; }
.history-group summary .icon { width: 1rem; height: 1rem; }
.history-group summary .chevron { margin-left: auto; width: .87rem; height: .87rem; }
.history-group[open] summary .chevron { transform: rotate(90deg); }
.history-item { display: flex; width: 100%; align-items: center; gap: .46rem; min-height: 2.19rem; padding: .42rem .46rem; border: 0; border-radius: .45rem; background: transparent; color: var(--ink); text-align: left; font-size: .84rem; }
.history-item:hover { background: #eae2d7; }
.history-item[aria-current="true"] { background: var(--wine-light); color: var(--wine-dark); font-weight: 680; }
.history-item .icon { width: .96rem; height: .96rem; color: var(--muted); }
.history-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .75rem; margin-top: .35rem; border-top: 1px solid var(--line-strong); }
.sidebar-footer .quiet { justify-content: flex-start; }
.sidebar-footer .icon-only { justify-content: center; }
.sidebar-footer .icon { width: 1.12rem; height: 1.12rem; }
.scrim, .mobile-only { display: none; }

.main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.topbar { flex: none; display: flex; align-items: center; gap: .85rem; padding: .75rem clamp(1rem, 3.3vw, 3.2rem); min-height: 4.68rem; border-bottom: 1px solid var(--line); }
.heading { min-width: 0; margin-right: auto; }
.heading span { display: block; margin-bottom: .16rem; color: var(--muted); font-size: .73rem; }
.heading h1 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 1.2rem/1.35 var(--serif); letter-spacing: .018em; }
.top-actions { display: flex; flex: none; gap: .22rem; }
.top-actions .icon { width: 1.09rem; height: 1.09rem; }
.offline-banner { padding: .53rem 1rem; background: #f4e8d1; color: #664e24; text-align: center; font-size: .84rem; }
.transcript { flex: 1; display: flex; flex-direction: column; overflow-y: auto; min-height: 0; scrollbar-width: thin; overscroll-behavior-y: contain; }
.welcome { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 3rem 1rem 2.2rem; text-align: center; }
.welcome-mark { width: 3.75rem; border-radius: 1rem 1rem 1rem .34rem; font-size: 2.55rem; box-shadow: 0 8px 20px #793d4a24; }
.welcome h2 { margin: 1.45rem 0 .62rem; font: 680 clamp(1.9rem, 4.5vw, 3.05rem)/1.25 var(--serif); letter-spacing: .035em; }
.welcome p { margin: 0; color: var(--muted); font-size: clamp(.85rem, 2vw, .98rem); }
.starters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.85rem; }
.starters button { display: flex; gap: .44rem; align-items: center; padding: .63rem .82rem; border: 1px solid var(--line-strong); border-radius: .65rem; background: var(--surface); color: var(--ink); font-size: .85rem; }
.starters button:hover { border-color: var(--wine); color: var(--wine-dark); }
.starters .icon { width: 1.1rem; height: 1.1rem; color: var(--wine); }
.messages { width: min(48.5rem, 100%); margin: 0 auto; padding: 1.55rem clamp(1rem, 3.5vw, 2rem) .85rem; }
.message { position: relative; min-width: 0; margin-bottom: 1.6rem; }
.message-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem .8rem; margin-bottom: .45rem; }
.message-author { display: flex; align-items: center; min-width: 0; gap: .5rem; font-size: .83rem; font-weight: 700; }
.message-author-name { overflow-wrap: anywhere; }
.message-model { min-width: 0; max-width: min(16rem, 38vw); overflow: hidden; color: var(--muted); font-size: .71rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.message-author .brand-mark { width: 1.62rem; border-radius: .45rem .45rem .45rem .18rem; font-size: 1.13rem; }
.user-avatar { display: grid; place-items: center; width: 1.62rem; height: 1.62rem; border-radius: .43rem; color: #3e5e51; background: #e1ebe4; font-size: .7rem; }
.message-content { overflow-wrap: anywhere; font-size: 1rem; line-height: 1.85; }
.message.user .message-content { white-space: pre-wrap; }
.message.user { padding: .83rem .95rem; background: #f1ece3; border: 1px solid #eae2d6; border-radius: .86rem; }
.message.assistant { padding: .15rem .28rem 0; }
.message-meta { margin: .3rem 0 0; color: var(--muted); font-size: .75rem; line-height: 1.55; }
.message-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .18rem; margin: .35rem 0 0 -.26rem; }
.message-actions .quiet { min-height: 2rem; font-size: .75rem; }
.message-actions .icon { width: 1rem; height: 1rem; }
.branch-picker { display: inline-flex; align-items: center; gap: .19rem; color: var(--muted); font-size: .73rem; }
.branch-picker .icon-only { width: 1.9rem; min-height: 1.95rem; }
.branch-picker .icon { width: .93rem; height: .93rem; }
.message-files { display: flex; flex-wrap: wrap; gap: .56rem; margin-top: .55rem; }
.attachment { display: inline-flex; align-items: center; gap: .37rem; padding: .44rem .64rem; max-width: 100%; color: var(--wine-dark); text-decoration: none; font-size: .83rem; line-height: 1.5; border: 1px solid var(--line-strong); border-radius: .5rem; background: var(--surface); }
.attachment .icon { width: 1rem; height: 1rem; }
.attachment span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.attachment:hover { border-color: var(--wine); }
.attachment.picture { display: block; flex: 0 1 auto; overflow: hidden; padding: 0; }
.attachment img { display: block; max-width: 100%; max-height: 30rem; object-fit: contain; }
.user .attachment img { max-height: 13rem; }
.attachment.picture span { display: block; padding: .27rem .52rem; }
.message-error { padding: .54rem .71rem; margin: .55rem 0 0; border-inline-start: 3px solid var(--wine); border-radius: .24rem; background: var(--wine-light); color: var(--wine-dark); font-size: .82rem; line-height: 1.55; }
.working { color: var(--muted); font-size: .87rem; }
.working::before { content: ''; display: inline-block; width: .47rem; height: .47rem; margin-right: .48rem; border-radius: 50%; background: var(--wine); vertical-align: .09rem; animation: pulse 1.7s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.markdown > :first-child { margin-top: 0; }
.markdown > :last-child { margin-bottom: 0; }
.markdown :is(h1,h2,h3,h4,h5,h6) { margin: 1.15em 0 .38em; line-height: 1.35; font-family: var(--serif); }
.markdown :is(h1,h2) { font-size: 1.4em; }
.markdown h3 { font-size: 1.21em; }
.markdown p, .markdown ul, .markdown ol { margin: .55em 0; }
.markdown ul, .markdown ol { padding-inline-start: 1.55em; }
.markdown blockquote { padding: .15em 0 .15em .9em; margin: .8em 0; border-inline-start: 3px solid var(--line-strong); color: var(--muted); }
.markdown a { color: var(--wine-dark); text-underline-offset: .2em; }
.markdown code { padding: .09em .28em; border-radius: .28em; background: #eee8de; font: .86em/1.55 ui-monospace, Consolas, monospace; }
.markdown pre { overflow: auto; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: .5rem; background: #f2eee6; line-height: 1.5; }
.markdown pre code { padding: 0; background: transparent; }
.markdown hr { border: 0; border-top: 1px solid var(--line-strong); margin: 1.5em 0; }
.table-scroll { overflow-x: auto; }
.markdown table { border-collapse: collapse; font-size: .9rem; }
.markdown td, .markdown th { padding: .4em .72em; border: 1px solid var(--line-strong); text-align: left; }
.markdown th { background: #eee8de; }

.compose { width: min(48.5rem, 100%); margin: 0 auto; flex: none; padding: .45rem clamp(1rem, 3.5vw, 2rem) max(.6rem, env(safe-area-inset-bottom)); }
.composer { min-width: 0; overflow: hidden; padding: .64rem .68rem .62rem; border: 1px solid var(--line-strong); border-radius: .96rem; background: var(--surface); box-shadow: 0 7px 25px #3e2a2010; }
.composer:focus-within { border-color: #ac7581; }
.composer textarea { display: block; resize: none; width: 100%; min-height: 3.2rem; max-height: 28vh; padding: .48rem .5rem .36rem; border: 0; outline: 0; color: var(--ink); background: transparent; line-height: 1.57; font-size: 1rem; }
.composer textarea::placeholder { color: #7d7468; }
.compose-tools { display: flex; align-items: center; gap: .22rem; }
.compose-button[aria-pressed="true"] { color: var(--wine-dark); background: var(--wine-light); }
.compose-button .icon { width: 1.11rem; height: 1.11rem; }
.compose-count { margin-left: auto; margin-right: .28rem; color: var(--muted); font-size: .72rem; white-space: nowrap; }
.send { display: grid; flex: none; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; border: 0; border-radius: .61rem; color: white; background: var(--wine); }
.send:not(:disabled):hover { background: var(--wine-dark); }
.send:disabled { color: #fffdf9; background: #a2878c; }
.composer-caption { display: flex; justify-content: space-between; align-items: center; gap: .38rem; min-height: 1.95rem; padding: .14rem 0; color: var(--muted); font-size: .72rem; }
.composer-choices { display: flex; align-items: center; min-width: 0; gap: .18rem; }
.composer-choice { justify-content: flex-start; min-width: 0; min-height: 1.95rem; gap: .3rem; padding: .25rem .38rem; font-size: .74rem; font-weight: 500; }
.composer-choice:first-child { flex: 1 1 auto; }
.choice-label { flex: none; color: var(--wine-dark); font-weight: 670; }
.choice-value { overflow: hidden; max-width: 14rem; text-overflow: ellipsis; white-space: nowrap; }
.composer-choice:last-child .choice-value { max-width: 8rem; }
#generation-status { flex: none; }
.model-dot { flex: none; width: .44rem; height: .44rem; border-radius: 50%; background: #a37d72; }
.model-dot.ready { background: var(--teal); }
.edit-banner { display: flex; justify-content: space-between; align-items: center; gap: .4rem; padding: .16rem .46rem; color: var(--wine-dark); border-radius: .42rem; background: var(--wine-light); font-size: .78rem; }
.edit-banner .quiet { flex: none; min-height: 1.8rem; font-size: .74rem; }
.pending-files { display: flex; flex-wrap: wrap; gap: .37rem; padding: .27rem .38rem; }
.file-pill { display: flex; align-items: center; max-width: 100%; gap: .33rem; padding: .12rem .18rem .12rem .43rem; border: 1px solid var(--line); border-radius: .38rem; background: var(--paper); font-size: .76rem; }
.file-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-pill .icon-only { width: 1.7rem; min-height: 1.65rem; }
.file-pill .icon { width: .85rem; height: .85rem; }

.startup, .login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 1rem; }
.startup { justify-content: center; align-content: center; gap: .85rem; color: var(--muted); font-size: .9rem; text-align: center; }
.login-card { width: min(100%, 24rem); padding: 2.35rem clamp(1.35rem, 7vw, 2.5rem); border: 1px solid var(--line-strong); border-radius: 1.1rem; background: var(--surface); box-shadow: 0 12px 50px #3e2a2013; }
.login-mark { width: 3rem; margin: 0 auto 1.12rem; font-size: 2.12rem; }
.login-card h1 { margin: 0; text-align: center; font: 700 2.05rem/1.18 var(--serif); }
.login-card h1 em { color: var(--wine); font-weight: 500; }
.login-card p { margin: .58rem 0 1.65rem; text-align: center; color: var(--muted); font-size: .88rem; }
.login-card label { display: block; margin-bottom: .42rem; font-size: .86rem; font-weight: 650; }
.login-card input { margin-bottom: .65rem; }
.login-card .primary { width: 100%; margin-top: .48rem; }
dialog { width: min(36rem, calc(100% - 1.8rem)); max-height: min(90vh, 90dvh); padding: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: .92rem; color: var(--ink); background: var(--surface); box-shadow: 0 19px 70px #27181b35; }
dialog::backdrop { background: #2a211b62; }
.revision-dialog { width: min(49rem, calc(100% - 1.8rem)); }
.revision-dialog textarea { line-height: 1.68; }
.revision-hint { margin: 0; color: var(--muted); font-size: .8rem; }
.dialog-form { display: flex; flex-direction: column; max-height: min(89vh, 89dvh); }
.dialog-heading { flex: none; display: flex; align-items: center; justify-content: space-between; padding: .8rem 1.15rem; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin: 0; font: 700 1.3rem/1.3 var(--serif); }
.dialog-content { display: grid; gap: .88rem; overflow: auto; overscroll-behavior: contain; padding: .95rem 1.16rem; scrollbar-width: thin; }
.dialog-content label { display: grid; gap: .37rem; color: var(--ink); font-size: .83rem; font-weight: 630; }
.dialog-content label.checkbox { display: flex; align-items: center; gap: .36rem; font-weight: 500; }
.checkbox input { accent-color: var(--wine); }
.dialog-content :is(input:not([type="checkbox"]), textarea, select), .login-card input { min-width: 0; width: 100%; padding: .56rem .65rem; border: 1px solid var(--line-strong); border-radius: .45rem; color: var(--ink); background: var(--paper); font-size: .9rem; font-weight: 400; }
.dialog-content textarea { resize: vertical; }
.settings-note { margin: 0; padding: .62rem .72rem; border-radius: .5rem; color: var(--wine-dark); background: var(--wine-light); font-size: .8rem; line-height: 1.55; }
.settings-main, .settings-section-fields { display: grid; gap: .7rem; }
.settings-model-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .3rem; }
.settings-model-field .quiet { white-space: nowrap; }
.settings-footer #manage-assistants { margin-right: auto; }
.settings-hint { margin: -.34rem 0 0; color: var(--muted); font-size: .77rem; line-height: 1.55; }
.settings-section-fields .settings-hint { margin-top: 0; }
.settings-advanced { display: grid; gap: .35rem; }
.settings-section { border: 1px solid var(--line); border-radius: .5rem; }
.settings-section summary { display: flex; align-items: center; justify-content: space-between; gap: .45rem; min-height: 2.5rem; padding: .47rem .68rem; color: var(--ink); list-style: none; font-size: .82rem; font-weight: 670; cursor: pointer; }
.settings-section summary::-webkit-details-marker { display: none; }
.settings-section summary::after { content: ''; width: .48rem; height: .48rem; margin-right: .17rem; transform: rotate(45deg); border: solid var(--muted); border-width: 0 1px 1px 0; }
.settings-section[open] summary::after { transform: rotate(225deg); }
.settings-section-fields { padding: .28rem .68rem .7rem; }
.settings-error { flex: none; padding: .3rem 1.15rem .55rem; }
.picker-dialog { width: min(35rem, calc(100% - 1.6rem)); }
.picker-content { gap: .62rem; }
.picker-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .35rem; }
.picker-status { margin: 0; }
.picker-list { display: grid; gap: .28rem; }
.picker-list-title { margin: .32rem 0 .05rem; color: var(--muted); font-size: .77rem; font-weight: 680; }
.picker-message { margin: .5rem 0; color: var(--muted); font-size: .83rem; line-height: 1.5; }
.picker-row { display: flex; align-items: center; min-width: 0; gap: .14rem; min-height: 2.48rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--paper); }
.picker-row.is-selected { border-color: var(--wine); background: var(--wine-light); }
.picker-choice { display: flex; align-items: center; gap: .32rem; flex: 1 1 0; min-width: 0; padding: .48rem .6rem; text-align: left; color: var(--ink); font-size: .83rem; border: 0; border-radius: .48rem; background: transparent; }
button.picker-choice:hover { background: #2c251909; }
.picker-choice-text { min-width: 0; overflow-wrap: anywhere; }
.picker-choice-text small { display: block; margin-top: .13rem; color: var(--muted); font-size: .72rem; }
.picker-choice .picker-active { flex: none; margin-left: auto; color: var(--wine-dark); font-size: .71rem; }
.picker-star { width: 2.05rem; min-height: 2rem; margin-right: .1rem; padding: 0; flex: none; color: var(--wine-dark); font-size: 1.13rem; }
.picker-manual { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: .3rem; padding: .7rem 1.14rem; border-top: 1px solid var(--line); }
.picker-manual label { display: grid; gap: .37rem; font-size: .83rem; font-weight: 630; }
.picker-manual input { min-width: 0; width: 100%; padding: .56rem .65rem; border: 1px solid var(--line-strong); border-radius: .45rem; background: var(--paper); color: var(--ink); font-size: .91rem; font-weight: 400; }
.picker-manual .primary { min-height: 2.36rem; padding-inline: .65rem; font-size: .82rem; }
.picker-manual .picker-star { min-height: 2.36rem; margin: 0; }
.picker-assistant-action { flex: none; padding-inline: .37rem; font-size: .75rem; }
.picker-confirm { padding: .65rem .7rem; border-radius: .55rem; background: var(--wine-light); color: var(--wine-dark); }
.picker-confirm p { margin: 0 0 .36rem; font-size: .82rem; line-height: 1.55; overflow-wrap: anywhere; }
.picker-confirm-buttons { display: flex; justify-content: flex-end; gap: .33rem; }
.picker-confirm-buttons .primary { min-height: 2.18rem; font-size: .81rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .51rem; }
.generation-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dialog-footer { flex: none; display: flex; justify-content: flex-end; gap: .49rem; padding: .69rem 1.14rem; border-top: 1px solid var(--line); }
.form-error { color: var(--wine-dark); font-size: .84rem; line-height: 1.6; }
.export-options { gap: .5rem; }
.export-option { display: grid; grid-template-columns: auto 1fr auto; gap: .68rem; align-items: center; padding: .7rem .75rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: .5rem; text-decoration: none; }
.export-option:hover { border-color: var(--wine); }
.export-option .icon { color: var(--wine); }
.export-option small { display: block; margin-top: .21rem; color: var(--muted); }
.toast { position: fixed; z-index: 5; left: 50%; bottom: max(1.4rem, env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: min(92vw, 39rem); padding: .67rem .9rem; border-radius: .55rem; color: #fffaf1; background: #392d2b; box-shadow: 0 5px 20px #241b1c2b; font-size: .84rem; line-height: 1.55; }

@media (max-width: 730px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: 3; width: min(83vw, 18rem); inset: 0 auto 0 0; padding-top: max(1rem, env(safe-area-inset-top)); padding-bottom: max(.7rem, env(safe-area-inset-bottom)); transform: translateX(-100%); visibility: hidden; transition: transform .18s, visibility .18s; }
  .sidebar.open { transform: translateX(0); visibility: visible; }
  .scrim { display: block; position: fixed; z-index: 2; inset: 0; padding: 0; border: 0; background: #27201966; }
  .mobile-only { display: inline-flex; }
  .topbar { min-height: 3.58rem; padding: max(.44rem, env(safe-area-inset-top)) .7rem .44rem; gap: .5rem; }
  .top-actions .quiet { padding-inline: .42rem; }
  .top-actions span { display: none; }
  .heading h1 { font-size: 1.08rem; }
  .heading span { font-size: .68rem; }
  .messages { padding-top: 1rem; }
  .message-content { font-size: .96rem; }
  .welcome { padding-top: 1.5rem; padding-bottom: 1rem; }
  .welcome-mark { width: 3.15rem; font-size: 2.15rem; }
  .welcome h2 { margin-top: 1.13rem; }
  .starters { margin-top: 1.32rem; }
  .starters button { padding: .53rem .63rem; font-size: .79rem; }
  .compose { padding-inline: .69rem; }
  .dialog-content :is(input:not([type="checkbox"]), textarea, select), .login-card input { font-size: 1rem; }
  .picker-manual input { font-size: 1rem; }
  .composer-choice .choice-value { max-width: min(26vw, 14rem); }
  .composer-choice:last-child .choice-value { max-width: min(19vw, 8rem); }
}
@media (max-height: 470px) {
  .welcome { padding: .9rem 1rem; }
  .welcome-mark { display: none; }
  .welcome h2 { margin-top: 0; }
  .starters { margin-top: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
