/* Unpublished visual proposal, using the existing theme tokens. */
:root{--design-gap:24px;--reading-size:15px}
:root[data-density="compact"]{--design-gap:16px}:root[data-density="roomy"]{--design-gap:32px}
:root[data-reading="small"]{--reading-size:14px}:root[data-reading="large"]{--reading-size:18px}
.design-sidebar{display:none}
.design-brand{display:flex;align-items:center;gap:12px;padding:28px 18px 32px}.design-brand>svg{width:44px;height:56px;flex:none}.design-brand strong{font-size:26px;letter-spacing:1px}.design-brand small{display:block;color:var(--muted);font-size:12px;margin-top:8px}
.design-account{display:flex;gap:12px;align-items:center;text-align:left;margin:auto 16px 18px;min-height:64px;padding:14px;background:var(--secondary);border:1px solid var(--border);border-radius:16px;color:var(--text)}
.design-account svg,.design-header-action svg,.tabs button>svg,.settings-categories a>svg{width:23px;height:23px;flex:none}
.design-header-action{display:inline-flex!important;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:9px!important;border:1px solid var(--border);border-radius:14px}
.chat>header{display:flex!important;gap:12px!important}.chat>header .brand-copy{margin-right:auto}
.tabs button{display:flex!important;align-items:center;gap:14px}
.tabs button[hidden]{display:none!important}
.settings-layout{gap:0;border:1px solid var(--border);border-radius:24px;overflow:clip;background:color-mix(in srgb,var(--surface) 85%,transparent)}
.settings-layout .settings-categories{padding:18px 12px;border-right:1px solid var(--border);gap:6px}
.settings-layout .settings-categories a{position:relative;padding:18px 12px 18px 48px;min-height:62px;border-radius:15px}
.settings-categories a>svg{position:absolute;left:13px;top:18px;color:var(--accent)}
.settings-layout .settings-categories strong{font-size:14px}.settings-layout .settings-categories span{display:none}
.settings-content{padding:var(--design-gap)}
.settings-content .settings-category{padding:0;border:0;background:transparent;border-radius:0;overflow:visible}
.settings-content .settings-category>h3{font-size:27px;margin-bottom:22px}
.settings-content .settings-category fieldset{padding:20px;border-radius:20px;border-color:var(--border);background:color-mix(in srgb,var(--secondary) 45%,transparent)}
.theme-options:has([data-theme-choice]){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.theme-options button[data-theme-choice]{min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:12px!important;border-radius:18px!important;background:transparent!important;border:1px solid var(--border)!important;font-size:12px!important;position:relative}
.theme-options button[data-theme-choice][aria-pressed="true"]{border-color:var(--accent)!important;box-shadow:0 0 0 1px var(--accent)}
.theme-options button[data-theme-choice][aria-pressed="true"]::after{content:'✓';position:absolute;right:7px;top:7px;background:var(--accent);color:var(--bg);border-radius:50%;width:20px;height:20px;line-height:20px}
.theme-mini{display:block;position:relative;overflow:hidden;height:64px;border-radius:9px;background:var(--mini-bg);box-shadow:inset 0 0 22px color-mix(in srgb,var(--mini-accent) 12%,transparent)}
.theme-mini i{position:absolute;left:8px;top:8px;width:4px;height:4px;border-radius:50%;background:var(--mini-accent);box-shadow:6px 0 var(--mini-accent),12px 0 var(--mini-accent)}
.theme-mini b{position:absolute;left:9px;top:24px;width:13px;height:30px;border-radius:3px;background:var(--mini-surface)}
.theme-mini em{position:absolute;left:30px;right:10px;top:25px;height:11px;background:var(--mini-surface);border-radius:4px;box-shadow:0 18px var(--mini-surface)}
.design-reading-options{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}
.design-reading-options label{display:grid;gap:12px;font-size:14px}.design-reading-options select{width:100%}
#design-settings-back{display:none}
#messages .message p,.settings-panel p{font-size:var(--reading-size)}
.chat-welcome{max-width:1040px;padding:36px 16px;position:relative}.chat-welcome h2{font-size:clamp(27px,3.3vw,46px);margin:18px 0}.welcome-actions{gap:16px}.welcome-actions button{padding:22px!important;min-height:140px;border-radius:20px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:linear-gradient(140deg,color-mix(in srgb,var(--accent) 9%,var(--surface)),var(--surface));border:1px solid var(--border)}.welcome-actions strong{font-size:16px}.welcome-actions small{font-size:13px;margin-top:8px}.welcome-icon{color:var(--accent);margin-bottom:8px}.welcome-icon svg{width:29px;height:29px}
@media(min-width:1100px){
 :root[data-entry="app"] body{padding:18px;place-items:center}
 :root[data-entry="app"] .chat{position:relative;width:min(1680px,100%);height:calc(100dvh - 36px);max-height:none;padding-left:240px;box-sizing:border-box;border-radius:24px;min-height:0}
 :root[data-entry="app"] .design-sidebar{display:flex;flex-direction:column;position:absolute;left:0;top:0;bottom:0;width:240px;border-right:1px solid var(--border);background:radial-gradient(ellipse at 0 100%,color-mix(in srgb,var(--accent) 24%,transparent),transparent 50%),var(--surface);z-index:3}
 .design-sidebar .tabs{display:flex!important;flex-direction:column;padding:0 16px;gap:8px;border:0;background:transparent}
 .design-sidebar .tabs button{width:100%;padding:17px 14px;min-height:54px;text-align:left;border-radius:14px;border:1px solid transparent;background:transparent;color:var(--text);font-size:15px}
 .design-sidebar .tabs button[aria-selected="true"]{border-color:var(--accent);background:linear-gradient(110deg,color-mix(in srgb,var(--accent) 38%,var(--surface)),color-mix(in srgb,var(--accent) 14%,var(--surface)));box-shadow:inset 3px 0 var(--accent)}
 #tab-admin:not([hidden]){margin-top:18px;border-top:1px solid var(--border)!important}
 .chat>header .avatar,.chat>header .brand-copy,.chat>header #open-app-menu{display:none!important}
 .chat>header{justify-content:flex-end;min-height:76px;padding:14px 28px;box-sizing:border-box;border-bottom:1px solid var(--border)}
 .welcome-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
 .mobile-dock-nav{display:none!important}
 .settings-layout{grid-template-columns:225px minmax(0,1fr)}
}
@media(max-width:1099px){
 .chat>header{gap:8px!important}.design-header-action{display:none!important}
 .settings-panel{padding:22px 16px}.settings-panel>h2{font-size:27px}
 .settings-layout{border:0;background:transparent;overflow:visible;margin-top:22px}
 .settings-layout .settings-categories{display:flex;flex-direction:column;padding:0;border:0;gap:12px}
 .settings-layout .settings-categories a{background:var(--secondary);border:1px solid var(--border);border-radius:18px;min-height:80px;padding:18px 32px 18px 68px}
 .settings-layout .settings-categories a>svg{left:18px;top:23px;width:28px;height:28px;color:var(--accent)}
 .settings-layout .settings-categories strong{font-size:16px}.settings-layout .settings-categories span{display:block;font-size:12px;line-height:1.4;margin-top:6px}
 .settings-layout .settings-categories a::after{content:'›';position:absolute;right:15px;top:23px;color:var(--muted);font-size:25px}
 .settings-content{padding:0}
 #panel-personalizacao[data-design-view="list"] .settings-content{display:none}
 #panel-personalizacao[data-design-view="detail"] .settings-categories{display:none}
 #design-settings-back{display:inline-flex;margin:0 0 22px;padding:10px 14px;border-radius:14px}
 .settings-content .theme-options{padding:16px;gap:8px}
 .theme-options button[data-theme-choice]{padding:7px!important;font-size:10px!important;border-radius:12px!important}
 .theme-mini{height:52px}.theme-mini b{height:21px}.theme-mini em{left:27px;right:6px}
 .design-reading-options{grid-template-columns:1fr}
 .chat-welcome{padding:14px 0}.welcome-actions{gap:10px}.welcome-actions button{min-height:112px;padding:14px!important}.welcome-actions strong{font-size:13px}.welcome-actions small{font-size:11px}
}
:root[data-theme="purple"][data-palette="enhanced"]{--bg:#100b1f;--surface:#170f27;--secondary:#271b3b;--accent:#b45cf0;--vivid-primary:#b552ef;--border:#49365d;--border-strong:#79518f;--tab-active:#54227a}
.settings-categories a[aria-current="true"]{background:linear-gradient(110deg,color-mix(in srgb,var(--accent) 30%,var(--surface)),color-mix(in srgb,var(--accent) 12%,var(--surface)))!important;box-shadow:inset 3px 0 var(--accent)}
.design-sidebar::before{content:'';position:absolute;bottom:116px;left:0;right:0;height:110px;background:linear-gradient(160deg,transparent 35%,color-mix(in srgb,var(--accent) 24%,transparent) 65%,transparent);border-radius:65% 30% 0 0;pointer-events:none}
.design-watermark{display:none}
.theme-options:has([data-theme-choice]){grid-template-columns:repeat(4,minmax(0,1fr))}
.design-other-themes{display:flex;flex-wrap:wrap;gap:14px;margin-top:18px}
.design-other-themes button[data-theme-choice]{font-size:0;position:relative;border-radius:50%;width:43px;height:43px;padding:3px;border:2px solid transparent;background:transparent}
.design-other-themes .theme-mini{width:33px;height:33px;border-radius:50%;background:var(--mini-accent)}
.design-other-themes .theme-mini>*{display:none}
.design-other-themes button[aria-pressed="true"]{border-color:var(--text)}
:root[data-motion-level="subtle"] .design-sidebar::before,:root[data-motion-level="subtle"] .design-watermark{display:none}
@media(min-width:1100px){.chat>header .design-header-action{order:1;flex:none;margin:0!important}.chat>header #connection-status{order:2;margin:0!important}.chat>header .design-historico{margin-left:auto!important}.design-watermark{display:block;position:absolute;right:42px;top:-30px;width:190px;height:240px;opacity:.12;pointer-events:none}.chat-welcome>h2,.chat-welcome>.welcome-subtitle{max-width:70%}.chat-welcome h2{margin-bottom:14px}.welcome-actions{position:relative;margin-top:46px}}
@media(max-width:1099px){.theme-options:has([data-theme-choice]){grid-template-columns:repeat(2,minmax(0,1fr))}.theme-mini{height:60px}.design-other-themes{gap:10px}.settings-content .settings-category fieldset{padding:16px}.theme-options button[data-theme-choice]{font-size:12px!important}.design-other-themes button[data-theme-choice]{font-size:0!important}}
.design-memory-card,.design-help-card{border:1px solid var(--border)!important;border-radius:20px;background:var(--secondary);padding:0 20px!important;margin-top:16px!important}
.design-memory-card>summary,.design-help-card>summary{padding:22px 0;font-size:16px;font-weight:600;cursor:pointer;min-height:68px;box-sizing:border-box}
.design-memory-card[open],.design-help-card[open]{padding-bottom:18px!important}
.design-memory-card form{padding:0;border:0;background:transparent}
#settings-memories #export-memories{margin-top:16px;min-height:56px;border:1px solid var(--border);border-radius:16px;text-align:left;padding:16px;width:100%}
:root[data-layout] .design-sidebar .tabs{padding:0 16px;overflow:visible;min-width:0}
:root[data-layout] .design-sidebar .tabs button{font-size:15px;min-height:54px;white-space:normal;border-radius:14px;padding:16px 12px;gap:12px}
:root[data-layout] .design-sidebar .tabs .desktop-label{display:inline}
:root[data-layout] .design-sidebar .tabs .mobile-label{display:none}
.settings-content .account-content>h3{font-size:27px;margin:0 0 14px}
@media(max-width:1099px){#panel-personalizacao[data-design-view="detail"]>h2,#panel-personalizacao[data-design-view="detail"]>.panel-lead{display:none}#panel-personalizacao[data-design-view="detail"] .settings-layout{margin-top:0}#design-settings-back{width:100%;justify-content:flex-start;padding:15px;border:1px solid var(--border);background:var(--secondary)}}
.design-profile-icon,.design-online,.design-mobile-theme-alias{display:none}
.design-auto-theme{display:flex;flex-direction:column;align-items:stretch;gap:10px;min-width:0;padding:12px;background:transparent;border:1px solid var(--border);border-radius:18px;font-size:12px;color:var(--text)}
.design-auto-theme[aria-pressed="true"]{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.auto-mini{background:linear-gradient(135deg,#f5efff 50%,#1c102c 50%);min-height:52px}
#app-menu-title{display:flex;align-items:center;gap:10px}#app-menu-title img{width:31px;height:40px}
.design-menu-greeting{margin:0 0 28px;padding-left:41px}
.design-menu-exit{display:flex;align-items:center;gap:12px;margin-top:28px;background:transparent;text-align:left}
.design-menu-exit svg{width:22px;height:22px}
@media(min-width:1100px){.design-menu-exit,.design-menu-greeting{display:none}.theme-options:has([data-theme-choice]){grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1099px){
 #app-menu{position:fixed;inset:0 auto 0 0;margin:0;width:min(320px,86vw);max-width:86vw;height:100dvh;max-height:100dvh;box-sizing:border-box;padding:28px 20px;border-radius:0 26px 26px 0;border:1px solid var(--border);background:radial-gradient(ellipse at 0 100%,color-mix(in srgb,var(--accent) 18%,transparent),transparent 65%),var(--surface);overflow-y:auto}
 #app-menu .app-menu-heading h2{font-size:24px}#app-menu .tabs{gap:8px;padding:0}
 #app-menu .tabs button{padding:16px 12px;border:1px solid transparent;border-radius:14px;font-size:15px;min-height:54px}
 #app-menu .tabs button[aria-selected="true"]{background:color-mix(in srgb,var(--accent) 24%,var(--surface));border-color:var(--border-strong)}
 .design-menu-exit{margin-top:40px;width:100%;padding:16px 12px}
 .chat>header{padding:12px!important;gap:9px!important}
 .chat>header #open-app-menu{order:-2;min-width:38px;width:38px;height:40px;padding:8px!important;border:1px solid var(--border);border-radius:14px}
 #open-app-menu svg{width:22px;height:22px}
 .chat>header .avatar{width:31px!important;height:40px!important;flex:none}
 .chat>header .brand-copy h1{font-size:20px}.chat>header .brand-subtitle{display:none}
 .design-online{display:block;color:var(--muted);font-size:10px;margin-top:3px}
 .design-profile-icon{display:block;width:20px;height:20px}
 .chat>header #connection-status{width:38px;min-width:38px;min-height:40px;height:40px;padding:9px!important;justify-content:center;border-radius:14px}
 #connection-status .connection-dot,#connection-status #connection-label{display:none}
 .chat>header .design-notifications{display:inline-flex!important;min-width:38px;min-height:40px;height:40px;padding:9px!important;margin:0!important}
 .chat>header .design-historico{display:none!important}
 .settings-layout .settings-categories{gap:9px}
 .settings-layout .settings-categories a{min-height:70px;padding-top:14px;padding-bottom:14px}
 .settings-layout .settings-categories a>svg{top:20px}.settings-layout .settings-categories a::after{top:18px}
 .settings-layout .settings-categories span{font-size:11px;margin-top:4px}
 .theme-options:has([data-theme-choice]){grid-template-columns:repeat(3,minmax(0,1fr))}
 .theme-options [data-theme-choice="purple"],.theme-options [data-theme-choice="default"]{display:none!important}
 .theme-options [data-theme-choice="white"]{order:0}.theme-options [data-theme-choice="dark"]{order:1}.design-auto-theme{order:2;padding:7px;font-size:11px;border-radius:12px}
 .design-auto-theme[aria-pressed="true"]::after{content:'✓';color:var(--accent);height:14px}
 .design-mobile-theme-alias{display:block;width:39px;height:39px;border:2px solid transparent;border-radius:12px;padding:2px;background:transparent}
 .design-mobile-theme-alias[aria-pressed="true"]{border-color:var(--accent)}
 .design-mobile-theme-alias .theme-mini{width:31px;height:31px;border-radius:8px;background:var(--mini-accent)}
 .design-other-themes{gap:8px}
 .design-other-themes button[data-theme-choice]{width:37px;height:39px;padding:2px}
 .design-other-themes .theme-mini{width:29px;height:31px;border-radius:8px}
 .message p,.message.user p{border-radius:20px;background:color-mix(in srgb,var(--secondary) 80%,var(--surface))}
 .message.user p{background:linear-gradient(125deg,color-mix(in srgb,var(--accent) 28%,var(--surface)),var(--user-bubble));border-color:color-mix(in srgb,var(--accent) 40%,var(--border))}
 #attach-image>svg{display:none}#attach-image::before{content:'+';font-size:28px;line-height:1}
}
@media(max-width:1099px){.message.assistant:not([data-intro="true"]){padding-left:36px;position:relative;box-sizing:border-box;max-width:98%}.message.assistant:not([data-intro="true"])::before{content:'';position:absolute;left:0;top:1px;width:28px;height:32px;border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface)) url('frey-mark.svg') center/16px 22px no-repeat}}
@media(max-width:1099px){#ai-mode-note{display:none}}
@media(max-width:1099px){
 #app-menu[open]{display:flex;flex-direction:column}
 #app-menu .app-menu-heading,#app-menu .tabs,.design-menu-greeting{flex:none}
 #app-menu .design-menu-greeting{margin-top:8px;margin-bottom:24px}
 #app-menu .design-menu-exit{margin-top:auto;flex:none}
 #app-menu #tab-admin .desktop-label{display:inline}#app-menu #tab-admin .mobile-label{display:none}
}
@media(max-width:1099px) and (prefers-reduced-motion:no-preference){:root[data-motion-level="full"] #app-menu[open]{animation:design-menu-in .18s ease-out}}
@keyframes design-menu-in{from{transform:translateX(-100%);opacity:.5}to{transform:translateX(0);opacity:1}}
/* Override immersive tab order inside the persistent desktop sidebar. */
@media(min-width:1100px){
 :root[data-layout] .design-sidebar .design-brand{order:0;flex:none}
 :root[data-layout] .design-sidebar .tabs{order:1;flex:0 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;justify-content:flex-start;border:0;background:transparent;padding:0 16px;margin:0}
 :root[data-layout] .design-sidebar .design-account{order:2;flex:none;margin:auto 16px 18px}
 :root[data-layout="immersive"] .welcome-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 :root[data-layout="immersive"] .welcome-actions button{min-height:100px;padding:16px!important}
 :root[data-layout="immersive"] .chat-welcome h2{font-size:clamp(25px,2.1vw,36px);max-width:100%}
 :root[data-layout="immersive"] .design-watermark{width:120px;height:160px;right:16px;opacity:.07}
}
/* Fit the empty conversation to its own available space, not the window. */
#messages{container-type:size;container-name:welcome-space}
@container welcome-space (max-width:700px){#messages .welcome-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container welcome-space (max-height:650px){
 #messages .chat-welcome{padding:clamp(6px,2cqh,16px) 0;min-height:0;flex-shrink:0}
 #messages .chat-welcome h2{font-size:clamp(22px,5cqh,34px);margin:10px 0;line-height:1.15}
 #messages .chat-welcome>.welcome-subtitle{margin:8px 0;font-size:13px}
 #messages .welcome-actions{margin-top:18px;gap:10px}
 #messages .welcome-actions button{min-height:clamp(60px,17cqh,100px);padding:12px!important;gap:8px;flex-direction:row;align-items:center}
 #messages .welcome-icon{margin:0;width:26px;height:28px}#messages .welcome-icon svg{width:24px;height:24px}
 #messages .welcome-actions strong{font-size:13px}#messages .welcome-actions small{font-size:11px;margin-top:4px}
 #messages .design-watermark{width:90px;height:110px;top:0;right:12px;opacity:.06}
}
@container welcome-space (max-height:350px){
 #messages .chat-welcome>.section-eyebrow,#messages .chat-welcome>.welcome-subtitle,#messages .welcome-actions small,#messages .design-watermark{display:none}
 #messages .chat-welcome h2{font-size:22px;margin:4px 0 12px;max-width:100%}
 #messages .welcome-actions{margin-top:8px;gap:8px}#messages .welcome-actions button{min-height:52px;padding:8px!important}
}
/* One reading/composition base for classic and temporarily expanded immersive. */
@media(min-width:761px){
 :root:is([data-layout="classic"],[data-layout="immersive"][data-chat-expanded="true"]) #messages{padding:18px;gap:18px}
 :root:is([data-layout="classic"],[data-layout="immersive"][data-chat-expanded="true"]) #messages .chat-welcome{width:100%;max-width:1040px;margin:auto;padding:16px 0}
 :root:is([data-layout="classic"],[data-layout="immersive"][data-chat-expanded="true"]) #messages .welcome-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}
 :root:is([data-layout="classic"],[data-layout="immersive"][data-chat-expanded="true"]) #messages .welcome-actions button{min-height:76px;padding:14px!important;flex-direction:row;align-items:center;gap:12px}
 :root:is([data-layout="classic"],[data-layout="immersive"][data-chat-expanded="true"]) #messages .welcome-icon{margin:0}
 :root:is([data-layout="classic"],[data-layout="immersive"][data-chat-expanded="true"]) #messages .message{max-width:min(94%,900px)}
 :root:is([data-layout="classic"],[data-layout="immersive"][data-chat-expanded="true"]) #chat-form{padding:12px clamp(16px,5vw,110px)}
}
/* One sidebar hierarchy in both layouts, including the mobile modal. */
#expand-chat{display:none!important}
.effects-picker[open]{z-index:auto}
.settings-content .effects-picker fieldset{position:static;inset:auto;margin-top:8px;background:var(--surface);box-shadow:none;border:1px solid var(--border);padding:6px}
@media(max-width:1099px){
 :root[data-layout] #app-menu .app-menu-heading{order:0;flex:none}
 :root[data-layout] #app-menu .design-menu-greeting{order:1;flex:none}
 :root[data-layout] #app-menu .tabs{order:2;display:flex!important;flex-direction:column;flex:0 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;justify-content:flex-start;padding:0;margin:0;border:0;background:transparent;gap:8px}
 :root[data-layout] #app-menu .design-menu-exit{order:3;flex:none;margin-top:auto;margin-bottom:0;padding:16px 14px;border:1px solid var(--border);border-radius:16px;background:var(--secondary);min-height:64px}
 :root[data-layout] #app-menu .tabs button{padding:16px 12px;min-height:54px;border-radius:14px;gap:12px;text-align:left;font-size:15px;white-space:normal}
 :root[data-layout] #app-menu #tab-admin:not([hidden]){border:1px solid var(--border);border-radius:14px;margin-top:18px}
 #app-menu{background:radial-gradient(ellipse at 0 100%,color-mix(in srgb,var(--accent) 20%,transparent),transparent 55%),var(--surface)}
}
/* Graphite: separate dark surfaces from silver text, borders and controls. */
:root[data-theme="default"]{--bg:#141414;--glow:#444444;--surface:#202020;--input:#2e2e2e;--composer:#191919;--border:#707070;--border-strong:#bcbcbc;--accent:#dedede;--accent-ink:#1c1c1c;--text:#fafafa;--muted:#cecece;--soft-text:#e3e3e3;--secondary:#383838;--secondary-text:#f5f5f5;--bar:#2b2b2b;--tab-active:#4c4c4c;--user-bubble:#555555;--user-text:#ffffff;--notice:#d8d8d8;--focus:#f5f5f5;--original-primary:#dedede;--original-secondary:#f5f5f5;--vivid-primary:#dedede;--vivid-secondary:#f5f5f5}
/* One selection marker; automatic mode does not also select its resolved colour. */
.theme-options button[data-theme-selected="false"]{border-color:var(--border)!important;box-shadow:none!important}
.theme-options button[data-theme-selected="false"]::after{content:none!important}
.design-other-themes button[data-theme-selected="false"]{border-color:transparent!important;box-shadow:none!important}
.design-other-themes button[data-theme-selected="true"]{border-color:var(--text)!important;box-shadow:none!important}
.design-other-themes button{outline-offset:3px}
.design-other-themes button:not(:focus-visible){outline:none}
.design-auto-theme{position:relative}
.design-auto-theme[aria-pressed="true"]::after{content:'✓';position:absolute;right:7px;top:7px;background:var(--accent);color:var(--accent-ink);border-radius:50%;width:20px;height:20px;line-height:20px}
#app-menu[open]{animation:none!important}
#app-menu::backdrop{background:#0009;transition:background .17s ease}
#app-menu[data-closing="true"]::backdrop{background:#0000}
.design-auto-theme{background:transparent!important;border:1px solid var(--border);box-sizing:border-box}
.design-auto-theme[aria-pressed="true"]{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.design-other-themes button{background:transparent!important;border-radius:10px!important}
.design-other-themes button .theme-mini{box-shadow:none}
@media(prefers-reduced-motion:reduce){#app-menu::backdrop{transition:none}}
:root[data-motion-level="subtle"] #app-menu::backdrop{transition:none}

/* Centre the reading column while the chat background fills the application. */
@media(min-width:761px){
 :root[data-entry="app"][data-layout="classic"] #messages{padding-inline:max(20px,calc((100% - 960px)/2))}
 :root[data-entry="app"][data-layout="classic"] #messages .message{max-width:min(90%,820px)}
 :root[data-entry="app"][data-layout="classic"] #chat-form{padding-inline:max(20px,calc((100% - 960px)/2))}
}
@media(min-width:1100px){
 :root[data-entry="app"] .chat>header{min-height:60px;padding:8px 20px;gap:10px!important}
}
/* Memory entries need their own surface and recognisable actions. */
.design-memory-card .memory-card{background:var(--surface);border:1px solid var(--border-strong);padding:18px;border-radius:14px}
.design-memory-card .memory-card h4{color:var(--text)}
.design-memory-card .memory-card>p:not(.small-note){color:var(--text);line-height:1.6;margin-block:12px}
.design-memory-card .memory-card .small-note{color:var(--muted);padding-top:12px;border-top:1px solid var(--border);margin-bottom:16px}
.design-memory-card .memory-card button{min-height:40px;padding:8px 14px;border:1px solid var(--border-strong);border-radius:10px;background:var(--secondary);color:var(--text)}
.design-memory-card .memory-card [data-memory-action="delete"]{background:transparent;border-color:#b97878;color:#ffbcbc}
:root[data-theme="white"] .design-memory-card .memory-card [data-memory-action="delete"]{border-color:#ad5858;color:#902525}

/* The menu owns its exit timing; native dialog overlay transitions must not replay it. */
#app-menu{transition:none!important;opacity:1;transform:none}
#app-menu::backdrop{transition:background-color 170ms ease}
@media(prefers-reduced-motion:reduce){#app-menu::backdrop{transition:none}}
:root[data-motion-level="subtle"] #app-menu::backdrop{transition:none}
/* Equal border boxes and centred swatches: no inherited button height or baseline offset. */
.design-other-themes button[data-theme-choice],.design-other-themes .design-mobile-theme-alias{
 box-sizing:border-box;width:40px;height:40px;min-width:40px;min-height:40px;
 padding:4px!important;border:2px solid transparent;border-radius:12px!important;
 line-height:0;align-items:center;justify-content:center;
}
.design-other-themes button[data-theme-choice]{display:grid}
.design-other-themes button .theme-mini{box-sizing:border-box;width:28px;height:28px;margin:0;border-radius:7px;flex:none}
@media(max-width:1099px){.design-other-themes .design-mobile-theme-alias{display:grid}}
/* Rights-only access uses the account category after account/settings consolidation. */
:root[data-entry="rights"] #panel-personalizacao{display:block!important;height:auto;overflow:visible}
:root[data-entry="rights"] :is(.design-sidebar,.settings-categories,.app-version,#design-settings-back,#panel-personalizacao>h2,#panel-personalizacao>.panel-lead){display:none!important}
:root[data-entry="rights"] .settings-layout{display:block;border:0;background:transparent;overflow:visible}
:root[data-entry="rights"] .settings-content{display:block!important}
:root[data-entry="rights"] .settings-category:not(#ai-access){display:none!important}
:root[data-entry="rights"] #ai-access{display:block!important}
:root[data-entry="rights"] .chat{padding:0!important;min-height:0}
.entry-contact>summary{cursor:pointer;text-decoration:underline;margin-top:16px}

/* Dedicated account page: the assistant shell is entirely hidden. */
:root[data-entry="rights"] .chat{display:none!important}
#account-entry-page{max-width:900px;margin:0 auto 24px;padding:20px;box-sizing:border-box;background:var(--surface);border:1px solid var(--border);border-radius:20px}
#account-entry-page #ai-access{padding:0;margin:0}
#account-entry-page[hidden]{display:none!important}

/* Public account entry shows authentication only; settings retain every control. */
#account-entry-page #ai-access>:not(h3):not(#account-access-panel):not(#signup):not(#password-recovery){display:none!important}
#account-entry-page #lock:disabled{display:none}
#entry-pending{max-width:620px;margin:32px auto;box-sizing:border-box}
#entry-pending[hidden]{display:none!important}
:root[data-entry-step="pending"][data-entry="closed"] #entry-page{display:none}

/* Account status remains readable on compact headers in every theme. */
@media(max-width:1099px){
 .chat>header .design-online{display:inline-flex;align-items:center;gap:6px;margin-top:4px;padding:3px 7px;border:1px solid var(--border-strong);border-radius:999px;background:var(--surface);color:var(--text);font-size:12px;font-weight:650;line-height:1.2;white-space:nowrap}
 .chat>header .design-online::before{content:'';width:7px;height:7px;flex:none;border-radius:50%;background:var(--muted)}
 .chat>header .design-online[data-connected="true"]{border-color:color-mix(in srgb,#35c987 65%,var(--border));background:color-mix(in srgb,#35c987 10%,var(--surface))}
 .chat>header .design-online[data-connected="true"]::before{background:#35c987}
}
@media(max-width:1099px){
 .chat>header .design-online{font-weight:500;padding:2px 6px;border-color:var(--border);background:transparent}
 .chat>header .design-online[data-connected="true"]{border-color:color-mix(in srgb,#35c987 30%,var(--border));background:transparent}
 .chat>header .design-online::before{width:6px;height:6px}
}
/* Centre the complete entry block, with safe top spacing when the form is taller. */
:root[data-entry="rights"] body{display:flex;flex-direction:column;align-items:center;min-height:100dvh;box-sizing:border-box;padding:clamp(32px,6dvh,72px) 16px 24px}
:root[data-entry="rights"] #restricted-access{width:100%;max-width:560px;margin:auto auto 20px;text-align:center}
:root[data-entry="rights"] #account-entry-page{width:100%;max-width:560px;margin:0 auto auto}
/* Stable entry viewport: only expanded forms scroll inside the compact card. */
:root[data-entry="rights"] body{position:fixed;inset:0;width:100%;height:min(100svh,var(--app-height,100svh));min-height:0;overflow:hidden;overscroll-behavior:none;justify-content:center;padding:16px}
:root[data-entry="rights"] #restricted-access{flex:none;margin:0 auto 14px;font-size:13px;line-height:1.5}
:root[data-entry="rights"] #restricted-access p{margin:0}
:root[data-entry="rights"] #account-entry-page{flex:0 1 auto;min-height:0;max-width:480px;margin:0 auto;overflow-y:auto;overscroll-behavior:contain;padding:18px}
#account-entry-page #ai-access>h3{margin:0 0 16px;font-size:20px;line-height:1.3}
#account-entry-page #account-access-panel{border:0;padding:0;margin:0}
#account-entry-page #account-access-title{display:none}
#account-entry-page :is(#signup,#password-recovery){margin-top:14px;padding-top:12px}
#account-entry-page #access-status{padding:10px;margin:12px 0;font-size:13px;line-height:1.5}
#account-entry-page .entry-contact>summary{margin-top:12px}
#memory-import-list{max-height:260px;overflow-y:auto;padding-left:22px;overflow-wrap:anywhere}
#memory-import-list li{margin:12px 0;white-space:pre-wrap}
#memory-import-preview label{display:block;margin:14px 0}
#memory-import-preview .check-label{display:flex;gap:8px;align-items:flex-start}
#private-profile{padding:18px;border:1px solid var(--border);border-radius:18px;background:var(--secondary);margin:16px 0}
#private-profile[hidden],.profile-avatar[hidden]{display:none!important}
.profile-heading{display:flex;align-items:center;gap:14px}.profile-heading h4{margin:0;font-size:20px}.profile-heading p{margin:4px 0}
.profile-avatar{display:inline-flex;align-items:center;justify-content:center;width:60px;height:60px;flex:none;border-radius:50%;background:var(--tab-active);color:var(--accent);font-size:22px;font-weight:600;border:1px solid var(--border-strong)}
.profile-avatar svg,.profile-avatar img{width:60%;height:60%;object-fit:contain}
.profile-avatar-small{width:28px;height:28px;font-size:12px}
:root[data-profile-avatar="true"] :is(.design-account,.design-menu-exit)>svg{display:none}
#connection-status>.profile-avatar{display:none}
@media(max-width:1099px){:root[data-profile-avatar="true"] #connection-status>.design-profile-icon{display:none}:root[data-profile-avatar="true"] #connection-status>.profile-avatar{display:inline-flex;width:24px;height:24px;border:0;background:transparent}}
#profile-form{padding:0;border:0;background:transparent;margin:16px 0;display:grid;gap:12px}#profile-form input,#profile-form select{width:100%}.profile-shortcuts{display:flex;flex-wrap:wrap;gap:8px}
/* Profile layout: banner, independent cards and a private-status footer. */
:root[data-profile-avatar="true"] #ai-access>h3{display:none}
#private-profile{padding:0;border:0;background:transparent;margin:0 0 24px}
.profile-intro h3{font-size:28px;margin:0 0 6px}.profile-intro p{margin:0 0 20px}
.profile-banner{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;gap:20px;padding:28px;border:1px solid var(--border-strong);border-radius:20px;background:linear-gradient(120deg,var(--secondary),color-mix(in srgb,var(--accent) 20%,var(--surface)));margin-bottom:20px}
.profile-banner::before,.profile-banner::after{content:'';position:absolute;z-index:-1;pointer-events:none;border-radius:50%;width:80%;height:220px;right:-15%;background:color-mix(in srgb,var(--accent) 20%,transparent);transform:rotate(-12deg)}
.profile-banner::before{top:-140px}.profile-banner::after{bottom:-180px;right:10%;width:100%}
.profile-banner>.profile-avatar{width:90px;height:90px;font-size:30px;background:var(--surface)}
.profile-banner-identity{min-width:0;flex:1}.profile-banner-identity strong{font-size:28px;overflow-wrap:anywhere}.profile-banner-identity p{margin:6px 0 0;color:var(--muted)}
.profile-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
.profile-panel,.profile-privacy{min-width:0;border:1px solid var(--border);border-radius:18px;background:color-mix(in srgb,var(--secondary) 55%,var(--surface));padding:22px}
.profile-panel h4{margin:0 0 18px;font-size:18px}
#profile-form{margin:0}#profile-form label{margin:0;font-size:14px}#profile-form .small-note{margin:0}
.profile-preference{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;text-align:left;margin:0 0 12px;padding:14px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);font-size:14px}
.profile-preference>span:first-child{min-width:0}.profile-preference small{display:block;font-size:13px;font-weight:400;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
.profile-preference>span:last-child{font-size:24px;color:var(--accent)}
.profile-privacy{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:18px}.profile-privacy>div{flex:1;min-width:160px}.profile-privacy p{margin:4px 0 0}
.profile-private-badge{font-size:12px;border:1px solid var(--border-strong);border-radius:99px;padding:7px 12px;color:var(--text);white-space:nowrap}
:root[data-motion-level="subtle"] .profile-banner{background:var(--surface)}:root[data-motion-level="subtle"] .profile-banner::before,:root[data-motion-level="subtle"] .profile-banner::after{display:none}
@media(max-width:1099px){.profile-columns{grid-template-columns:1fr}.profile-banner{padding:20px;gap:14px;flex-wrap:wrap}.profile-banner>.profile-avatar{width:66px;height:66px;font-size:23px}.profile-banner-identity strong{font-size:24px}.profile-banner #profile-edit{width:100%}.profile-panel,.profile-privacy{padding:18px}.profile-intro h3{font-size:26px}}

:root[data-profile-avatar="true"] :is(#account-access-panel,#signup,#password-recovery){display:none!important}
#private-profile .profile-preferences,#private-profile #profile-security{display:none}
#private-profile .profile-columns{grid-template-columns:minmax(0,1fr)}
.profile-account-group{padding:0!important;border:1px solid var(--border)!important;border-radius:16px;background:var(--surface);margin:14px 0!important}
.profile-account-group>summary{padding:18px;font-size:16px;font-weight:600;color:var(--text)}
.profile-account-group> :not(summary){margin:12px 18px}
.profile-account-group[hidden]{display:none!important}
.profile-usage-link{display:flex;justify-content:space-between;width:100%;padding:18px;margin:14px 0;border:1px solid var(--border);border-radius:16px;background:var(--surface);color:var(--text);font-size:16px;font-weight:500;text-align:left}
.usage-heading{display:flex;align-items:center;gap:16px;margin-bottom:24px}.usage-heading h3{margin:0;font-size:24px}
#usage-cards{border:1px solid var(--border);border-radius:24px;overflow:hidden;background:var(--secondary)}
.usage-card{padding:24px}.usage-card+.usage-card{border-top:1px solid var(--border)}
.usage-card-heading{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:18px}.usage-card-heading h4{margin:0;font-size:18px}.usage-card-heading strong{font-size:16px;color:var(--muted);font-weight:500}
.usage-card progress{display:block;appearance:none;width:100%;height:8px;border:0;border-radius:99px;overflow:hidden;background:var(--bar);accent-color:var(--accent)}
.usage-card progress::-webkit-progress-bar{background:var(--bar);border-radius:99px}.usage-card progress::-webkit-progress-value{background:var(--accent);border-radius:99px}.usage-card progress::-moz-progress-bar{background:var(--accent);border-radius:99px}
.usage-card p{margin:14px 0 6px}.usage-card small{display:block;color:var(--muted);line-height:1.5}
#usage-details{margin-top:20px}#usage-details #usage-status{font-size:13px}
@media(max-width:600px){.usage-card{padding:20px}.usage-heading h3{font-size:22px}}
.profile-usage-link[hidden]{display:none!important}
#panel-personalizacao:has(#settings-usage:not([hidden])) #design-settings-back{display:none}

.profile-usage-link{font-weight:600;align-items:center;gap:12px;min-height:58px}
.profile-usage-link>span:last-child{font-size:24px;font-weight:500;line-height:1;color:var(--accent)}
#profile-access-group #lock{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:calc(100% - 36px);max-width:calc(100% - 36px);min-height:44px;margin:16px 18px 18px;padding:10px 16px;border:1px solid var(--border);border-radius:10px;font-size:14px;font-weight:600;line-height:1.4}

@media(min-width:1100px){#usage-back{display:none}}
/* The private profile is a full page reached from the account at the foot of navigation. */
#tab-profile{display:none!important}
#panel-profile{padding:28px 26px 36px;overflow:auto;min-height:0}
#panel-profile #private-profile{max-width:1160px;width:100%;margin:0 auto}
#panel-profile .profile-intro h3{font-size:34px;margin:0 0 4px}
#panel-profile .profile-intro p{font-size:18px;margin:0 0 20px;color:var(--muted)}
#panel-profile .profile-banner{min-height:194px;padding:24px 40px;gap:26px;border-radius:18px;background:linear-gradient(120deg,color-mix(in srgb,var(--accent) 24%,var(--bg)),color-mix(in srgb,var(--accent) 9%,var(--bg)))}
#panel-profile .profile-banner::before{top:-160px;right:-5%;width:85%;height:240px;background:linear-gradient(100deg,transparent,var(--accent));transform:rotate(-13deg)}
#panel-profile .profile-banner::after{bottom:-215px;right:-5%;width:100%;height:270px;background:linear-gradient(100deg,transparent,color-mix(in srgb,var(--accent) 75%,transparent));transform:rotate(-8deg)}
#panel-profile .profile-banner>.profile-avatar{width:146px;height:146px;flex-shrink:0;font-size:44px;border:2px solid color-mix(in srgb,var(--accent) 50%,white);background:linear-gradient(140deg,color-mix(in srgb,var(--accent) 35%,var(--surface)),var(--secondary))}
#panel-profile .profile-banner-identity strong{font-size:36px}#panel-profile .profile-banner-identity p{font-size:21px}
#panel-profile #profile-edit{min-width:178px;padding:12px 20px;border-radius:12px}
#panel-profile .profile-columns{grid-template-columns:minmax(0,1fr) minmax(0,.95fr);gap:18px}
#panel-profile .profile-preferences{display:block}#panel-profile .profile-panel{padding:24px 28px;border-radius:18px}
#panel-profile .profile-panel h4{font-size:21px;margin-bottom:20px}
#panel-profile .profile-preference{background:color-mix(in srgb,var(--accent) 5%,var(--surface));padding:14px 18px;font-weight:600}
#panel-profile #profile-city{display:none}
#panel-profile #profile-form input{min-height:40px;padding:8px 12px}
#private-profile[data-editing="false"] #profile-form :is(label[for="profile-avatar-choice"],#profile-avatar-choice,button[type="submit"]){display:none}
#private-profile[data-editing="false"] #profile-form input[readonly]{opacity:1;cursor:default}
#panel-profile .profile-privacy{padding:20px 28px}#panel-profile .profile-private-badge{color:var(--text);border-color:var(--border-strong)}
#panel-profile #profile-security{display:block;font-size:13px}
.design-account{gap:12px}.design-account .profile-avatar-small{width:40px;height:40px;flex-shrink:0}.design-account>svg{display:none}:root[data-profile-avatar="false"] .design-account>svg{display:block}
@media(max-width:1099px){#panel-profile{padding:22px 18px}#panel-profile .profile-columns{grid-template-columns:1fr}#panel-profile .profile-banner{padding:24px;min-height:0}#panel-profile .profile-banner>.profile-avatar{width:96px;height:96px;font-size:32px}#panel-profile .profile-banner-identity strong{font-size:27px}#panel-profile .profile-banner-identity p{font-size:16px}#panel-profile .profile-panel{padding:22px}#panel-profile .profile-intro h3{font-size:29px}}
#panel-profile .profile-banner{overflow:clip;min-height:196px}
#private-profile[data-editing="false"] #profile-form .frey-select:has(#profile-avatar-choice){display:none}
#panel-profile .profile-panel h4::before{content:'♙';color:var(--accent);margin-right:12px;font-size:25px}#panel-profile .profile-preferences h4::before{content:'☷'}
#private-profile[data-editing="false"] #profile-avatar-choice+.frey-select-trigger{display:none}
#panel-profile .profile-panel h4::before{content:none}#panel-profile .profile-panel h4{display:flex;align-items:center;gap:12px}#panel-profile .profile-panel h4 svg{width:26px;height:26px;color:var(--accent);flex:none}
.profile-waves{display:none}
/* Profile colours follow the selected theme and palette. */
#panel-profile{--profile-primary:var(--vivid-primary,var(--accent));--profile-detail:var(--vivid-secondary,var(--accent))}
#panel-profile .profile-panel,#panel-profile .profile-privacy{background:linear-gradient(125deg,color-mix(in srgb,var(--accent) 12%,var(--surface)),var(--surface))}
#panel-profile .profile-panel h4 svg{color:var(--profile-detail)}
#panel-profile .profile-banner{background:linear-gradient(110deg,color-mix(in srgb,var(--profile-primary) 23%,var(--bg)),var(--bg))}
#panel-profile .profile-banner::before,#panel-profile .profile-banner::after{display:none}
#panel-profile .profile-waves{display:block;position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
#profile-wave-top stop:nth-child(1){stop-color:color-mix(in srgb,var(--profile-primary) 40%,var(--bg))}#profile-wave-top stop:nth-child(2){stop-color:var(--profile-primary)}#profile-wave-top stop:nth-child(3){stop-color:color-mix(in srgb,var(--profile-primary) 70%,var(--bg))}
#profile-wave-bottom stop:nth-child(1){stop-color:var(--bg)}#profile-wave-bottom stop:nth-child(2){stop-color:color-mix(in srgb,var(--profile-primary) 75%,var(--bg))}#profile-wave-bottom stop:nth-child(3){stop-color:color-mix(in srgb,var(--profile-primary) 25%,var(--bg))}
#panel-profile #profile-edit,#panel-profile #profile-form button[type="submit"]{background:var(--accent);color:var(--accent-ink);border:1px solid var(--border-strong)}
:root[data-palette="enhanced"] #panel-profile #profile-edit{background:linear-gradient(120deg,var(--accent),color-mix(in srgb,var(--accent) 80%,var(--bg)))}
#panel-profile .profile-private-badge{color:var(--text);border-color:var(--profile-detail);background:color-mix(in srgb,var(--profile-detail) 12%,var(--surface))}
:root[data-motion-level="subtle"] #panel-profile .profile-waves{display:none}
/* Mode explanations live in the information dialog; keep the composer stable. */
:root[data-layout] .ai-mode-control,:root[data-layout] .ai-mode-control[data-description="collapsed"]{gap:8px;transition:none}
:root[data-layout] .ai-mode-control #ai-mode-note,:root[data-layout] .ai-mode-control[data-description="collapsed"] #ai-mode-note{position:absolute!important;width:1px!important;height:1px!important;max-width:1px!important;max-height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;opacity:1!important;transform:none!important;transition:none!important;display:block!important;flex:none!important}
/* Tablet uses the same full-width settings list/detail navigation as mobile. */
@media(max-width:1099px){
 .settings-layout{display:block;grid-template-columns:minmax(0,1fr);width:100%;min-width:0;box-sizing:border-box}
 .settings-layout .settings-categories,.settings-layout .settings-content{width:100%;min-width:0;box-sizing:border-box}
 .settings-layout .settings-categories a{width:100%;box-sizing:border-box}
}
/* True black canvas, with neutral surfaces and visible borders for AMOLED. */
:root[data-theme="amoled"]{color-scheme:dark;--bg:#000;--glow:#000;--surface:#000;--input:#090909;--composer:#000;--border:#363636;--border-strong:#727272;--accent:#e4e4e4;--accent-ink:#000;--text:#f5f5f5;--muted:#bdbdbd;--secondary:#101010;--secondary-text:#ededed;--bar:#000;--tab-active:#1b1b1b;--user-bubble:#242424;--user-text:#fff;--soft-text:#d2d2d2;--notice:#c4c4c4;--focus:#fff;--vivid-primary:#d7d7d7;--vivid-secondary:#bdbdbd}
:root[data-theme="amoled"][data-palette="enhanced"]{--accent:#fff;--border:#484848;--border-strong:#929292;--text:#fff;--muted:#d0d0d0;--vivid-primary:#fff;--vivid-secondary:#bceff0}
:root[data-theme="amoled"] :is(body,.chat,.chat>header,.design-sidebar,#app-menu,#messages,#jarvis-stage,#conversation-dock,#drawer-content,.tab-panel){background:#000!important}
:root[data-theme="amoled"] .design-sidebar::before{display:none}
:root[data-theme="amoled"] .profile-banner{background:#080808}
:root[data-theme="amoled"] .theme-mini{box-shadow:none}
.theme-options [data-theme-choice="amoled"]{order:2}
@media(max-width:1099px){.theme-options:has([data-theme-choice="amoled"]){grid-template-columns:repeat(2,minmax(0,1fr))}.theme-options:has([data-theme-choice="amoled"]) .design-auto-theme{order:3}}
.theme-options [data-theme-choice="amoled"] .theme-mini{box-shadow:none;border:1px solid #444}
@media(min-width:1100px){.theme-options:has([data-theme-choice="amoled"]){grid-template-columns:repeat(3,minmax(0,1fr))}.theme-options [data-theme-choice="amoled"]{order:0}}

/* Keep the welcome identity with the greeting instead of a floating watermark. */
#messages .chat-welcome>.welcome-brand-label{display:inline-flex;align-items:center;gap:9px;color:var(--soft-text);line-height:1.4}
.welcome-brand-mark{display:inline-block;flex:none;width:18px;height:22px;background:var(--accent);-webkit-mask:url("frey-mark.svg") center/contain no-repeat;mask:url("frey-mark.svg") center/contain no-repeat}
#messages .chat-welcome>h2,#messages .chat-welcome>.welcome-subtitle{max-width:100%}
@container welcome-space (max-height:350px){#messages .chat-welcome>.welcome-brand-label{display:none}}
