:root{
  color-scheme:dark;
  --bg:#161715;--surface:#22231f;--raised:#2c2d28;--ink:#f5f3ee;--sub:#b4b4a9;
  --accent:#e8c69c;--on-accent:#211c17;--ok:#94cfad;
  --edge:color-mix(in srgb,var(--ink) 12%,transparent);--veil:#0008;
  --safe-b:max(env(safe-area-inset-bottom),var(--tg-content-safe-area-inset-bottom,0px),var(--tg-safe-area-inset-bottom,0px));
  --safe-t:max(env(safe-area-inset-top),var(--tg-content-safe-area-inset-top,0px));
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0;background:var(--bg);color:var(--ink);overscroll-behavior:none}
body{height:var(--app-height,100dvh);overflow:hidden}
body:not(.control){-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}
body:not(.control) :is(textarea,input,[contenteditable="true"]){-webkit-user-select:text;user-select:text}
button,textarea,input,select{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:transparent}
button:disabled{cursor:default;opacity:.5}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
button,.pill{border-radius:11px}
a{color:var(--accent);overflow-wrap:anywhere}

[data-icon]{display:inline-flex;align-items:center;justify-content:center}
.app{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.header{padding:max(11px,var(--safe-t)) clamp(14px,3vw,32px) 0}
.toolbar,.brand,.status,.resource,.model-button,.suggestions button{display:flex;align-items:center;gap:9px}
.mast{max-width:1160px;margin:auto;gap:13px}
.grow{flex:1}
.brand{font-size:24px;font-weight:680;letter-spacing:-.085em}
.brand small{font-size:9px;font-weight:630;color:var(--sub);letter-spacing:.12em;margin:2px 0 0 2px}
.icon-button,.profile-button{width:42px;height:42px;display:grid;place-items:center;color:var(--sub)}
.icon-button:hover,.suggestions button:hover,.model-button:hover,.row:hover{background:var(--raised);color:var(--ink)}
.status{font-size:12px;color:var(--sub);white-space:nowrap}
.status i{width:7px;height:7px;border-radius:50%;background:currentColor}
.status[data-state=online] i{background:var(--ok)}
.profile-button{background:var(--raised);color:var(--ink);border-radius:50%;width:33px;height:33px;font-size:13px;font-weight:600;overflow:hidden;padding:0}
.profile-button img{width:100%;height:100%;object-fit:cover}
.resource{margin:9px 0 0 auto;color:var(--sub);font-size:11px;padding:8px 7px;width:max-content;gap:8px}
.resource strong{font-weight:630;color:var(--ink);min-width:32px;text-align:right}
.bar{display:block;width:58px;height:4px;background:var(--raised);border-radius:8px;overflow:hidden}
.bar i{display:block;height:100%;width:0;background:var(--accent);transition:width .35s ease}
.thread{overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none}
.welcome{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px 17px 38px}
.welcome h1{font-size:clamp(30px,5vw,52px);line-height:1.08;font-weight:575;letter-spacing:-.07em;margin:22px 0 8px}
.welcome p{font-size:15px;color:var(--sub);margin:5px 0 18px}
.suggestions{display:flex;justify-content:center;gap:7px;flex-wrap:wrap}
.suggestions button{min-height:42px;font-size:13px;color:var(--sub);padding:8px 10px}
.suggestions .glyph{width:16px;height:16px}
.messages,.dock{width:min(800px,100%);margin-inline:auto}
.messages{padding:15px clamp(14px,3vw,28px) 28px;display:grid;gap:23px}
.turn{min-width:0;display:flex;flex-direction:column}
.user-text{align-self:flex-end;background:var(--raised);padding:12px 16px;border-radius:18px;white-space:pre-wrap;overflow-wrap:anywhere;max-width:min(85%,630px);margin:4px 0 17px}
.answer{line-height:1.63;font-size:15px;overflow-wrap:anywhere}
.answer>:first-child{margin-top:0}
.answer pre{white-space:pre;overflow:auto;margin:0;background:var(--surface);padding:13px 14px;font-size:13px;line-height:1.55;tab-size:4;overflow-wrap:normal}
.code-shell{margin-block:13px;max-width:100%;min-width:0;border:1px solid var(--edge);border-radius:12px;overflow:hidden}
.code-toolbar{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 7px 0 13px;background:var(--raised);border-bottom:1px solid var(--edge);color:var(--sub);font-size:12px}
.code-language{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:620}
.code-copy{min-height:34px;display:inline-flex;align-items:center;gap:6px;padding:5px 7px;white-space:nowrap}
.code-copy:not(:disabled):hover{color:var(--ink);background:var(--surface)}
.code-copy:focus-visible{outline-offset:-2px}
.answer p code,.answer li code{padding:.06em .28em;background:var(--surface);border-radius:4px}
.table-scroll{max-width:100%;overflow:auto;border-radius:12px;border:1px solid var(--edge);margin-block:12px;overscroll-behavior-inline:contain}
.answer table{width:100%;border-collapse:collapse;background:var(--surface);font-size:14px}
.answer td,.answer th{padding:9px 13px;border-bottom:1px solid var(--edge);text-align:start;vertical-align:top;min-width:76px;overflow-wrap:normal}
.answer th{font-weight:630;background:var(--raised);white-space:nowrap}
.answer tbody tr:nth-child(even){background:color-mix(in srgb,var(--raised) 52%,var(--surface))}
.answer tbody tr:last-child td{border-bottom:0}
.reply-heading{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;margin:3px 0 7px}
.reply-model{font-size:17px;font-weight:680;letter-spacing:-.025em;line-height:1.26}
.reply-timing{font-size:12px;color:var(--sub);font-variant-numeric:tabular-nums}
.answer-copy{margin-top:5px;align-self:flex-start}
.answer-copy .glyph,.attach-button .glyph,.history-row .glyph{width:17px;height:17px}
.attachment-preview,.message-files{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:2px 2px 6px}
.attachment-chip{display:inline-flex;align-items:center;gap:7px;padding:4px 5px 4px 8px;max-width:100%;min-width:0;background:var(--raised);border-radius:10px;color:var(--ink);font-size:12px}
.attachment-chip .glyph{width:17px;height:17px;color:var(--sub)}
.attachment-chip .icon-button{width:30px;height:30px;flex:none}
.attachment-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.message-file{background:var(--surface);padding:7px 9px}
.message-file-preview{width:100%;font-size:12px;color:var(--sub)}
.message-file-preview .attachment-name{display:block}
.attachment-thumb{width:38px;height:38px;object-fit:cover;border-radius:7px}
.message-image{display:block;width:auto;max-width:100%;max-height:250px;border-radius:11px;margin:0 0 8px;object-fit:contain}
.history-image{display:flex;gap:7px;align-items:center;padding:4px;margin-bottom:5px;font-size:13px}
.history-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px}
.history-row .row{min-width:0;overflow-wrap:anywhere}
.delete-action{color:#e47474}
.confirm-actions{display:flex;justify-content:flex-end;gap:8px}
.answer blockquote{margin-left:0;padding-left:14px;border-left:2px solid var(--edge);color:var(--sub)}
.reply-meta{display:flex;align-items:center;gap:8px;color:var(--sub);font-size:12px;line-height:1.4;min-height:22px;margin:6px 0}
.reply-dots{height:17px;display:inline-flex;align-items:center;gap:3px;flex:none;padding-inline:1px;color:var(--accent)}
.reply-dots i{width:5px;height:5px;border-radius:50%;background:currentColor;animation:reply-dot 1.35s ease-in-out infinite both}
.reply-dots i:nth-child(2){animation-delay:.13s}
.reply-dots i:nth-child(3){animation-delay:.26s}
.reply-label{display:inline-block;animation:reply-label .23s ease-out both}
.code-shell .glyph{width:15px;height:15px}
@keyframes reply-dot{0%,72%,100%{transform:translateY(0) scale(.78);opacity:.45}32%{transform:translateY(-3px) scale(1.04);opacity:1}}
@keyframes reply-label{from{transform:translateY(2px);opacity:.4}to{transform:translateY(0);opacity:1}}
.stream-fade{animation:stream-ink .18s ease-out both}
@keyframes stream-ink{from{opacity:.35}to{opacity:1}}
.dock{padding:0 clamp(10px,3vw,25px) max(11px,var(--safe-b))}
.composer{padding:8px 11px;border-radius:22px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--edge)}
textarea,input,select{min-width:0;width:100%;border:0;border-radius:10px;background:var(--surface);padding:10px}
.composer textarea{display:block;min-height:42px;max-height:140px;resize:none;outline:none!important;font-size:16px;background:none}
.beneath{padding:0 1px 1px}
.model-button{min-height:40px;padding:6px 10px;color:var(--sub);font-size:14px;min-width:0}
#model-mark{display:inline-flex}
#model-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.model-button .glyph{width:15px;height:15px}
.send{background:var(--accent);color:var(--on-accent);border-radius:50%;width:39px;height:39px}
.send:not(:disabled):hover{background:var(--ink);color:var(--bg)}
.sheet{border:0;border-radius:24px;background:var(--surface);color:var(--ink);padding:12px 18px 18px;width:min(620px,calc(100% - 22px));max-height:min(86dvh,var(--app-height,86dvh));box-shadow:0 16px 64px #0006}
.sheet.wide{width:min(950px,calc(100% - 22px))}
.sheet[open]{animation:open-sheet .22s ease-out}
.sheet::backdrop{background:var(--veil)}
.handle{width:30px;height:4px;background:var(--edge);border-radius:4px;margin:0 auto 5px}
.sheet-header{display:flex;align-items:center;justify-content:space-between;padding:0 0 9px}
.sheet-header h2{font-size:21px;letter-spacing:-.035em;margin:0}
.sheet-content{display:grid;gap:10px}
.row{display:flex;align-items:center;gap:10px;text-align:left;padding:11px;color:var(--ink);min-height:48px}
.row .desc{display:block;color:var(--sub);font-size:12px;font-weight:400;margin-top:5px}
.row .badge{margin-left:auto;text-align:right;color:var(--sub);font-size:12px;white-space:nowrap}
.row.selected{background:var(--raised)}
.profile-data,.card,.metric{background:var(--raised);border-radius:14px;padding:13px}
.profile-data{display:flex;align-items:center;gap:10px}.profile-data span{color:var(--sub)}
.primary,.secondary{padding:9px 13px;min-height:40px;font-weight:620}
.primary{background:var(--accent);color:var(--on-accent)}
.secondary{background:var(--raised);color:var(--ink)}
.tariffs{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
.card h3,.card p{margin:0 0 8px}
.card p,.muted{color:var(--sub);font-size:13px;line-height:1.5}
.card small{color:var(--sub)}
.price{font-size:23px;letter-spacing:-.05em;margin:7px 0;font-weight:630}
.menu-tabs,.actions{display:flex;gap:7px;flex-wrap:wrap}
.menu-tabs button{min-height:40px;padding:7px 10px;color:var(--sub)}
.menu-tabs button.selected{background:var(--raised);color:var(--ink)}
.admin-section{display:grid;gap:9px}
.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}
.metric strong,.metric small{display:block}
.metric strong{font-size:20px;margin-bottom:4px}
.metric small{color:var(--sub)}
.form-grid{display:grid;gap:9px;grid-template-columns:repeat(2,minmax(0,1fr))}
.form-grid label{display:grid;gap:4px;font-size:12px;color:var(--sub)}
.form-grid input,.form-grid select,.form-grid textarea{color:var(--ink);min-height:40px}
.form-grid input[type=checkbox]{width:18px;min-height:18px}
.span-all{grid-column:1/-1}
details.card>summary{cursor:pointer;margin-bottom:8px}
.notice{position:fixed;bottom:calc(max(10px,var(--safe-b)) + 6px);right:13px;z-index:8;padding:10px 14px;background:var(--raised);border-radius:12px;box-shadow:0 8px 32px #0004;max-width:calc(100vw - 26px)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@keyframes open-sheet{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media(max-width:660px){
  .mast{gap:7px}.brand small{display:none}.status{font-size:11px}
  .sheet,.sheet.wide{margin:auto 0 0;width:100%;max-width:100%;max-height:min(87dvh,var(--app-height,87dvh));border-radius:22px 22px 0 0;padding-bottom:max(18px,var(--safe-b))}
  .tariffs{grid-template-columns:1fr}.welcome{padding-bottom:32px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.app-views{display:flex;gap:7px;max-width:1160px;margin:10px auto 3px}
.app-views button{padding:8px 12px;color:var(--sub);font-size:13px}
.app-views button[aria-pressed=true]{background:var(--raised);color:var(--ink)}
.usage-view{overflow:auto;padding:24px clamp(14px,4vw,36px) max(25px,var(--safe-b))}
.usage-content{max-width:640px;margin:0 auto;display:grid;gap:12px}
.usage-heading,.usage-title,.usage-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.usage-heading h1{font-size:clamp(25px,5vw,34px);font-weight:620;letter-spacing:-.05em;margin:6px 0 10px}
.usage-heading .pill{background:var(--raised);color:var(--sub);font-size:12px;padding:5px 9px}
.usage-card{padding:16px;background:var(--surface);border-radius:16px}
.usage-title h2{font-size:15px;margin:0;font-weight:630}
.usage-title strong{font-size:17px;font-variant-numeric:tabular-nums}
.usage-meta{font-size:12px;color:var(--sub)}
.usage-meter{appearance:none;width:100%;height:5px;border:0;border-radius:9px;overflow:hidden;background:var(--raised);margin:11px 0}
.usage-meter::-webkit-progress-bar{background:var(--raised)}
.usage-meter::-webkit-progress-value{background:var(--accent)}
.usage-meter::-moz-progress-bar{background:var(--accent)}
.usage-card p{margin:8px 0 0}
.usage-actions .secondary{display:inline-flex;align-items:center;gap:8px}

/* Transparent raster symbols, all aligned to the same optical box. */
.glyph{display:inline-block;flex:none;width:20px;height:20px;vertical-align:middle;background-color:currentColor;
  -webkit-mask:url("/static/art/glyphs.png") var(--glyph-x,0%) var(--glyph-y,0%)/500% 500% no-repeat;
  mask:url("/static/art/glyphs.png") var(--glyph-x,0%) var(--glyph-y,0%)/500% 500% no-repeat}
[data-glyph="basalt"]{--glyph-x:0%;--glyph-y:0%}
[data-glyph="panel-left"]{--glyph-x:25%;--glyph-y:0%}
[data-glyph="plus"]{--glyph-x:50%;--glyph-y:0%}
[data-glyph="arrow-up"]{--glyph-x:75%;--glyph-y:0%}
[data-glyph="chevron-down"]{--glyph-x:100%;--glyph-y:0%}
[data-glyph="x"]{--glyph-x:0%;--glyph-y:25%}
[data-glyph="copy"]{--glyph-x:25%;--glyph-y:25%}
[data-glyph="check"]{--glyph-x:50%;--glyph-y:25%}
[data-glyph="sparkles"]{--glyph-x:75%;--glyph-y:25%}
[data-glyph="credit-card"]{--glyph-x:100%;--glyph-y:25%}
[data-glyph="gift"]{--glyph-x:0%;--glyph-y:50%}
[data-glyph="activity"]{--glyph-x:25%;--glyph-y:50%}
[data-glyph="arrow-left"]{--glyph-x:50%;--glyph-y:50%}
[data-glyph="external-link"]{--glyph-x:75%;--glyph-y:50%}
[data-glyph="message-circle"]{--glyph-x:100%;--glyph-y:50%}
[data-glyph="refresh-cw"]{--glyph-x:0%;--glyph-y:75%}
[data-glyph="zap"]{--glyph-x:25%;--glyph-y:75%}
[data-glyph="layers"]{--glyph-x:50%;--glyph-y:75%}
[data-glyph="terminal"]{--glyph-x:75%;--glyph-y:75%}
[data-glyph="aperture"],[data-glyph="image"]{--glyph-x:100%;--glyph-y:75%}
[data-glyph="shield"]{--glyph-x:0%;--glyph-y:100%}
[data-glyph="paperclip"]{--glyph-x:25%;--glyph-y:100%}
[data-glyph="trash"]{--glyph-x:50%;--glyph-y:100%}
[data-glyph="file-text"]{--glyph-x:75%;--glyph-y:100%}
[data-glyph="archive"]{--glyph-x:100%;--glyph-y:100%}

:root{
  --ease:cubic-bezier(.2,.76,.22,1);
  --gutter:clamp(14px,3.6vw,36px);
  --safe-l:max(env(safe-area-inset-left),var(--tg-content-safe-area-inset-left,0px));
  --safe-r:max(env(safe-area-inset-right),var(--tg-content-safe-area-inset-right,0px));
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility
}
.app{padding-inline:var(--safe-l) var(--safe-r)}
.brand{gap:8px;font-size:24px;line-height:1;font-weight:650;letter-spacing:-.065em}
.brand .brand-mark{width:29px;height:29px;color:var(--ink)}
.header{position:relative;width:min(100%,1080px);margin-inline:auto;padding: max(14px,var(--safe-t)) var(--gutter) 12px}
.mast{min-height:44px;gap:12px}
.profile-button{width:40px;height:40px;box-shadow:inset 0 0 0 1px var(--edge)}
.app-views{width:max-content;margin:10px auto 0;align-items:center;gap:2px;background:var(--surface);border-radius:20px;padding:3px}
.app-views button{min-height:36px;padding-inline:15px;border-radius:18px;font-weight:550}
.app-views button[aria-pressed=true]{background:var(--raised);box-shadow:0 1px 3px #0001}
@media(min-width:600px){
  .app-views{position:absolute;inset-inline-start:50%;top:calc(max(14px,var(--safe-t)) + 1px);margin:0;transform:translateX(-50%)}
}
.welcome{max-width:900px;margin:auto;gap:16px;padding:24px var(--gutter);isolation:isolate}
.welcome-stone{display:block;width:auto;height:clamp(112px,20vh,185px);max-width:100%;object-fit:contain;flex:none}
.welcome-copy{max-width:100%;min-width:0}
.welcome h1{font-size:clamp(33px,6.4vw,65px);font-weight:540;line-height:1.1;letter-spacing:-.056em;margin:0;text-wrap:balance}
.welcome p{margin:13px 0 0;line-height:1.55}
.suggestions{margin:17px auto 0;gap:4px 12px}
.suggestions button{font-weight:500;min-height:40px}
.suggestions .glyph{width:17px;height:17px}
@media(min-width:820px){.welcome{flex-direction:row-reverse;text-align:left;gap:clamp(40px,6vw,88px)}.welcome-stone{height:218px}.suggestions{justify-content:flex-start;margin-left:-9px}}
@media(max-height:520px){.welcome{padding-block:12px;gap:6px}.welcome-stone{height:56px}.welcome h1{font-size:30px}.suggestions{margin-top:4px}}
.messages,.dock{width:min(844px,100%);padding-inline:var(--gutter)}
.messages{padding-block:24px 28px;gap:24px}
.user-text{border-radius:20px 20px 6px 20px;font-size:15px;line-height:1.5;margin-bottom:24px}
.reply-heading{align-items:center;margin-bottom:9px;column-gap:10px}
.reply-heading::before{content:"";width:20px;height:20px;background:currentColor;
 -webkit-mask:url("/static/art/glyphs.png") 0 0/500% 500%;mask:url("/static/art/glyphs.png") 0 0/500% 500%}
.reply-model{font-weight:640;font-size:18px}
.reply-timing,.reply-meta{font-size:12px}
.answer{font-size:16px;line-height:1.64}
.answer :is(pre,code){font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace}
.answer p{margin:0 0 .85em}.answer p:last-child{margin-bottom:0}
.dock{padding-bottom:max(14px,var(--safe-b));padding-top:5px}
.composer{border-radius:23px;padding:9px 11px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--edge),0 5px 24px #0001;transition:box-shadow .2s var(--ease)}
.composer:focus-within{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ink) 30%,transparent),0 5px 24px #0001}
.composer textarea{padding:10px 10px 8px;line-height:1.45}
.composer textarea::placeholder{color:var(--sub);opacity:.9}
.beneath{min-height:44px;gap:4px}
.icon-button,.send{width:44px;height:44px;flex:none}
.send .glyph{width:21px;height:21px}
.send:disabled{opacity:.45}
.model-button{font-size:14px;gap:8px;border-radius:15px}
button{transition:background-color .17s var(--ease),color .17s var(--ease),opacity .17s var(--ease)}
button:active:not(:disabled){transform:scale(.98)}
button.primary,button.secondary{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.sheet{border-radius:23px;padding:14px 18px 20px;overscroll-behavior:contain}
.sheet-header{position:sticky;top:-14px;background:var(--surface);z-index:1}
.sheet::backdrop{background:#1113}
@supports (backdrop-filter:blur(8px)) or (-webkit-backdrop-filter:blur(8px)){
  .sheet::backdrop{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#1115}
}
.sheet .row{border-radius:14px;padding:12px;gap:13px}
.sheet .row .glyph{color:var(--sub)}
.usage-content{max-width:740px}
.usage-card,.card,.profile-data{border-radius:18px;padding:clamp(15px,3vw,23px)}
.usage-title strong{font-size:23px;letter-spacing:-.04em}
.usage-meter{height:6px;margin-block:16px}
.notice{bottom:calc(max(12px,var(--safe-b)) + 100px)}
@media(max-width:660px){.sheet,.sheet.wide{border-radius:22px 22px 0 0;padding-bottom:max(18px,var(--safe-b))}}
@media(prefers-reduced-motion:no-preference){
  .header,.dock{animation:arrive .26s var(--ease) both}
  .welcome-copy,.welcome-stone{animation:arrive .42s var(--ease) both}
  .welcome-stone{animation-name:stone-in}
  .usage-content,.sheet-content{animation:arrive .22s var(--ease)}
  .sheet[open]{animation:open-sheet .24s var(--ease)}
  .stream-fade{animation:ink-unveil .29s var(--ease) both;
    -webkit-box-decoration-break:clone;box-decoration-break:clone;
    -webkit-mask-image:linear-gradient(105deg,#000 42%,transparent 57%);mask-image:linear-gradient(105deg,#000 42%,transparent 57%);
    -webkit-mask-size:260% 100%;mask-size:260% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
}
@keyframes arrive{from{opacity:.1;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes stone-in{from{opacity:0;transform:translateY(7px) scale(.97)}to{opacity:1;transform:none}}
@keyframes ink-unveil{from{opacity:.3;-webkit-mask-position:100% 0;mask-position:100% 0}to{opacity:1;-webkit-mask-position:0 0;mask-position:0 0}}
@media(prefers-reduced-transparency:reduce){.sheet::backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background:#1119}}
@media(forced-colors:active){.glyph,.reply-heading::before{forced-color-adjust:none;background-color:ButtonText}}
@media(prefers-reduced-motion:reduce){.stream-fade{-webkit-mask-image:none;mask-image:none}}
@supports (transition-behavior:allow-discrete){
  @media(prefers-reduced-motion:no-preference){
    .sheet{opacity:0;transform:translateY(9px);transition:opacity .17s var(--ease),transform .2s var(--ease),display .2s allow-discrete,overlay .2s allow-discrete}
    .sheet[open]{opacity:1;transform:none;animation:none}
    @starting-style{.sheet[open]{opacity:0;transform:translateY(10px)}}
  }
}

.image-slot{position:relative;isolation:isolate;aspect-ratio:1;width:min(100%,520px);border-radius:20px;overflow:hidden;background:var(--raised);display:flex;flex-direction:column;gap:14px;justify-content:center;align-items:center;color:var(--sub);margin:16px auto}
.image-locked::before,.image-slot.loading::before{content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(ellipse at 30% 60%,#66708080,transparent 65%);filter:blur(16px)}
.image-created{width:100%;height:100%;object-fit:contain}
@media(prefers-reduced-motion:no-preference){.image-slot.loading::before{animation:imageGlow 1.8s ease-in-out infinite alternate}.image-created{animation:arrive .3s ease-out}@keyframes imageGlow{to{opacity:.35;transform:translateX(10%)}}}

.answer .image-slot{margin:8px 0;width:min(100%,400px);text-align:center}

.composer-modes{display:flex;align-items:center;gap:3px;padding:3px 5px 1px}
.composer-modes button{font:inherit;font-size:12px;line-height:1.3;min-height:32px;padding:6px 12px;color:var(--sub);border-radius:12px;background:transparent;transition:background .18s var(--ease),color .18s var(--ease)}
.composer-modes button[aria-pressed="true"]{background:var(--raised);color:var(--ink)}
@media(prefers-reduced-motion:reduce){.composer-modes button{transition:none}}
