/* AEOTEE / approved visual system. Presentation only: no auth, E2EE or call logic. */
/* Semantic appearance wins over legacy CSS; legacy data-theme remains light/dark. */
html[data-aeotee-theme="day"] {
 color-scheme:light;--ui-bg:#f2f9fe;--ui-panel:#ffffff;--ui-raised:#e5f2fa;--ui-hover:#d8eaf6;
 --ui-input:#f3f9fc;--ui-line:#c4d8e5;--ui-soft-line:#dbe8f1;--ui-text:#112a44;
 --ui-muted:#526d7e;--ui-accent:#1671c1;--ui-accent-solid:#0879ca;--ui-accent-ink:#ffffff;
 --ui-good:#16775c;--ui-danger:#ae354c;--ui-coral:#f4ad79;--ui-out:#0873c8;--ui-out-text:#ffffff;
 --ui-shadow:0 14px 42px #144d7925;--sig-ink:#e7f4ff;--sig-rail:#0b2948;
 --sig-paper:#f7fbfe;--sig-violet:#2177bc;--sig-rose:#1e8ac6;--sig-blue:#37a6da;
 --sig-amber:#efb84d;--sig-line:#d9f0ff31;--studio-glass:#f7fbfe;
 --studio-edge:#c2dbea;--theme-ink-on-rail:#eff9ff;--theme-scene:url("aeotee-scene-day.svg");
 --theme-scene-opacity:.48;--theme-dialog-backdrop:#07182a99;--theme-active:#1284c9;
}
html[data-aeotee-theme="night"] {
 color-scheme:dark;--ui-bg:#091a2e;--ui-panel:#10253e;--ui-raised:#193450;--ui-hover:#244461;
 --ui-input:#132b46;--ui-line:#345371;--ui-soft-line:#294461;--ui-text:#f4f9ff;
 --ui-muted:#aec8de;--ui-accent:#8bd4fc;--ui-accent-solid:#6ec8fb;--ui-accent-ink:#061d36;
 --ui-good:#93dec6;--ui-danger:#ffc4c4;--ui-coral:#f3bd9c;--ui-out:#1c65b0;--ui-out-text:#ffffff;
 --ui-shadow:0 20px 60px #000b1bb0;--sig-ink:#071629;--sig-rail:#091931;
 --sig-paper:#0f243e;--sig-violet:#8bd4fc;--sig-rose:#78c5f5;--sig-blue:#57b8ed;
 --sig-amber:#ecc17a;--sig-line:#9fc8eb27;--studio-glass:#112a44;
 --studio-edge:#3b5d7b;--theme-ink-on-rail:#f1f8ff;--theme-scene:url("aeotee-scene-night.svg");
 --theme-scene-opacity:.4;--theme-dialog-backdrop:#020812b3;--theme-active:#70d1fc;
}
html[data-aeotee-theme="amoled"] {
 color-scheme:dark;--ui-bg:#000000;--ui-panel:#090f12;--ui-raised:#111d22;--ui-hover:#1c3036;
 --ui-input:#10191d;--ui-line:#38545b;--ui-soft-line:#24383d;--ui-text:#f6fcff;
 --ui-muted:#b4c7ce;--ui-accent:#6be8f1;--ui-accent-solid:#21cadd;--ui-accent-ink:#001b21;
 --ui-good:#7adfc0;--ui-danger:#ffb2b2;--ui-coral:#f4b587;--ui-out:#09677b;--ui-out-text:#f7ffff;
 --ui-shadow:0 12px 38px #000000c9;--sig-ink:#000000;--sig-rail:#000000;
 --sig-paper:#050b0d;--sig-violet:#73e7ee;--sig-rose:#6ce0eb;--sig-blue:#16c8dc;
 --sig-amber:#b9e2de;--sig-line:#9ceaf12b;--studio-glass:#080f12;
 --studio-edge:#315059;--theme-ink-on-rail:#f4fcff;--theme-scene:url("aeotee-scene-amoled.svg");
 --theme-scene-opacity:.22;--theme-dialog-backdrop:#000000de;--theme-active:#31d8e8;
}
html[data-aeotee-theme="couple-light"] {
 color-scheme:light;--ui-bg:#fff0f5;--ui-panel:#fff9fb;--ui-raised:#fbe0e9;--ui-hover:#f8d3de;
 --ui-input:#fff3f7;--ui-line:#e8b9c9;--ui-soft-line:#f1d7e2;--ui-text:#56263b;
 --ui-muted:#80516a;--ui-accent:#b83766;--ui-accent-solid:#ad3763;--ui-accent-ink:#ffffff;
 --ui-good:#20745a;--ui-danger:#9f284b;--ui-coral:#eea09a;--ui-out:#ac3b65;--ui-out-text:#ffffff;
 --ui-shadow:0 15px 45px #ae59702b;--sig-ink:#fff0f5;--sig-rail:#6b2c4c;
 --sig-paper:#fff6fa;--sig-violet:#cc5c80;--sig-rose:#e785a0;--sig-blue:#b65e88;
 --sig-amber:#e9aa84;--sig-line:#fbdce839;--studio-glass:#fff8fb;
 --studio-edge:#e8b9c9;--theme-ink-on-rail:#fff8fb;--theme-scene:url("aeotee-scene-couple-light.svg");
 --theme-scene-opacity:.35;--theme-dialog-backdrop:#3215229c;--theme-active:#d64f78;
}
html[data-aeotee-theme="couple-night"] {
 color-scheme:dark;--ui-bg:#211324;--ui-panel:#301b35;--ui-raised:#432743;--ui-hover:#56334f;
 --ui-input:#39233d;--ui-line:#76516c;--ui-soft-line:#593a55;--ui-text:#fff2f5;
 --ui-muted:#dfbccf;--ui-accent:#f2b4c6;--ui-accent-solid:#e6a2b9;--ui-accent-ink:#3b1832;
 --ui-good:#a0e4c7;--ui-danger:#ffb4c6;--ui-coral:#efbca5;--ui-out:#8e4367;--ui-out-text:#ffffff;
 --ui-shadow:0 22px 70px #0d0611b6;--sig-ink:#1b1020;--sig-rail:#24132b;
 --sig-paper:#2b1831;--sig-violet:#e3adc2;--sig-rose:#e69db9;--sig-blue:#bf8fbb;
 --sig-amber:#e9b7a3;--sig-line:#fbd2e22a;--studio-glass:#34203a;
 --studio-edge:#84586d;--theme-ink-on-rail:#fff4f8;--theme-scene:url("aeotee-scene-couple-night.svg");
 --theme-scene-opacity:.32;--theme-dialog-backdrop:#0c0711cb;--theme-active:#f0b1c6;
}
/* Bridge the legacy premium/mocha components to one semantic token set. */
html[data-aeotee-theme] {
 --premium-text:var(--ui-text);--premium-muted:var(--ui-muted);
 --premium-card:var(--ui-raised);--premium-line:var(--ui-line);
 --premium-accent:var(--ui-accent);--premium-night:var(--ui-bg);
 --premium-surface:var(--ui-panel);--mocha-text:var(--ui-text);
 --mocha-muted:var(--ui-muted);--mocha-card:var(--ui-raised);
 --mocha-bg:var(--ui-bg);--mocha-surface:var(--ui-panel);
 background:var(--ui-bg)!important;
}
html[data-aeotee-theme] body{background:var(--ui-bg)!important;color:var(--ui-text)!important;}
/* Content hierarchy: preserve the approved pane geometry and real data. */
html[data-aeotee-theme] .app.premium-ready{background:var(--ui-bg)!important;}
html[data-aeotee-theme] .app.premium-ready>.studio-dock{
 background:linear-gradient(168deg,color-mix(in srgb,var(--sig-rail) 95%,var(--ui-accent) 5%),var(--sig-rail))!important;
 color:var(--theme-ink-on-rail)!important;border-right:1px solid var(--sig-line)!important;
}
html[data-aeotee-theme] .app.premium-ready .studio-dock button{
 color:var(--theme-ink-on-rail)!important;border-color:transparent!important;
}
html[data-aeotee-theme] .app.premium-ready .studio-dock button[aria-current="page"]{
 color:var(--ui-accent-ink)!important;background:var(--ui-accent-solid)!important;
 border-color:transparent!important;box-shadow:none!important;
}
html[data-aeotee-theme] .app.premium-ready>.sidebar{
 background:var(--ui-panel)!important;border-right:1px solid var(--ui-soft-line)!important;
}
html[data-aeotee-theme] .app.premium-ready .sidebar>.brand,
html[data-aeotee-theme] .app.premium-ready .sidebar>.studio-inbox-head{
 background:var(--ui-panel)!important;color:var(--ui-text)!important;
}
html[data-aeotee-theme] .app.premium-ready :is(.relay-filters button,.sidebar .mocha-settings-entry,.premium-nav-item){
 color:var(--ui-text)!important;border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] .app.premium-ready :is(.relay-filters button[aria-pressed="true"],.relay-filters button.active,.premium-nav-item[aria-current="page"]){
 background:var(--ui-accent-solid)!important;color:var(--ui-accent-ink)!important;
}
html[data-aeotee-theme] .app.premium-ready :is(.search input,.sidebar .mocha-settings-entry){
 background:var(--ui-input)!important;color:var(--ui-text)!important;
}
html[data-aeotee-theme] .app.premium-ready #userList .contact:is(.active,[aria-current="true"]){
 background:var(--ui-raised)!important;border-color:var(--ui-line)!important;
 box-shadow:inset 3px 0 0 var(--ui-accent-solid)!important;
}
html[data-aeotee-theme] .app.premium-ready #userList .contact .avatar{border:1px solid var(--ui-line)!important;}
html[data-aeotee-theme] .app.premium-ready>.chat,
html[data-aeotee-theme] .app.premium-ready #aeoteeChatSurface{
 background:var(--ui-bg)!important;
}
html[data-aeotee-theme] .app.premium-ready .chat>.chat-header{
 background:var(--ui-panel)!important;border-bottom:1px solid var(--ui-soft-line)!important;
}
html[data-aeotee-theme] .app.premium-ready .chat-header .actions button{
 background:var(--ui-raised)!important;color:var(--ui-text)!important;border:1px solid var(--ui-line)!important;
}
html[data-aeotee-theme] .app.premium-ready #messages{
 background-color:var(--ui-bg)!important;
 background-image:var(--theme-scene)!important;
 background-position:center bottom!important;
 background-repeat:no-repeat!important;
 background-size:100% auto!important;
}
html[data-aeotee-theme] .app.premium-ready #messages>.bubble{
 border:1px solid var(--ui-soft-line)!important;box-shadow:0 2px 8px #00000016!important;
 overflow-wrap:anywhere;
}
html[data-aeotee-theme] .app.premium-ready #messages>.bubble.incoming{
 background:var(--ui-panel)!important;color:var(--ui-text)!important;
}
html[data-aeotee-theme] .app.premium-ready #messages>.bubble.outgoing{
 background:var(--ui-out)!important;color:var(--ui-out-text)!important;
}
html[data-aeotee-theme] .app.premium-ready #messages>.bubble.media-only{
 background:transparent!important;border-color:transparent!important;box-shadow:none!important;
}
html[data-aeotee-theme] .app.premium-ready :is(.composer,.reply-bar){
 background:var(--ui-panel)!important;border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] .app.premium-ready .composer input{
 background:var(--ui-input)!important;color:var(--ui-text)!important;
}
html[data-aeotee-theme] .app.premium-ready .composer .send{
 background:var(--ui-accent-solid)!important;color:var(--ui-accent-ink)!important;
}
/* Main menu plus every nested Settings route, Security Center, Vault and Devices. */
html[data-aeotee-theme] .studio-settings-aside{
 background:var(--sig-rail)!important;color:var(--theme-ink-on-rail)!important;
 border-right:1px solid var(--sig-line)!important;
}
html[data-aeotee-theme] .studio-settings-aside :is(h2,p,.studio-aside-kicker,.studio-aside-footer){color:var(--theme-ink-on-rail)!important;}
html[data-aeotee-theme] body :is(dialog.mocha-panel,dialog.aeotee-connection,dialog.aeotee-link-dialog,dialog.aeotee-storage-dialog,.a2s-panel){
 background:var(--ui-panel)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] body :is(dialog.mocha-panel,.a2s-panel) :is(.premium-settings-group,.premium-item-mark,.premium-notice,.mocha-setting-card){
 background-color:var(--ui-raised)!important;border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] body :is(dialog.mocha-panel,.a2s-panel) :is(.premium-item-copy strong,.premium-settings-header h2,.premium-notice){
 color:var(--ui-text)!important;
}
html[data-aeotee-theme] body :is(dialog.mocha-panel,.a2s-panel) :is(.premium-item-copy small,.premium-settings-header p){
 color:var(--ui-muted)!important;
}
html[data-aeotee-theme] body dialog:not(.aeotee-call-stage-dialog)::backdrop{background:var(--theme-dialog-backdrop)!important;}
html[data-aeotee-theme] .app.premium-ready>.signature-security-hub{
 background:var(--ui-panel)!important;border:1px solid var(--ui-line)!important;
 box-shadow:var(--ui-shadow)!important;color:var(--ui-text)!important;
}
html[data-aeotee-theme] .app.premium-ready .signature-hub-header{
 background:var(--ui-raised)!important;border-bottom:1px solid var(--ui-line)!important;
}
html[data-aeotee-theme] .app.premium-ready .signature-hub-heading :is(h2,p),
html[data-aeotee-theme] .app.premium-ready .signature-hub-status :is(strong,p),
html[data-aeotee-theme] .app.premium-ready .signature-hub-feature :is(strong,small){
 color:var(--ui-text)!important;
}
html[data-aeotee-theme] .app.premium-ready :is(.signature-hub-hero,.signature-hub-feature,.signature-hub-checks button,.signature-connect-card,.aeotee-security-tile){
 background:var(--ui-raised)!important;border-color:var(--ui-line)!important;color:var(--ui-text)!important;
}
html[data-aeotee-theme] .app.premium-ready .signature-connect-card button{
 background:var(--ui-accent-solid)!important;color:var(--ui-accent-ink)!important;
}
html[data-aeotee-theme] .aeotee-phantom-layer .aeotee-phantom-card{
 background:var(--ui-panel)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] .aeotee-phantom-layer :is(.aeotee-phantom-caption,.aeotee-phantom-note,.aeotee-phantom-input-hint){
 color:var(--ui-muted)!important;
}
html[data-aeotee-theme] .aeotee-phantom-layer .aeotee-phantom-form input{
 color:var(--ui-text)!important;background:var(--ui-input)!important;border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] .aeotee-phantom-layer .aeotee-phantom-form .primary{
 background:var(--ui-accent-solid)!important;color:var(--ui-accent-ink)!important;
}
html[data-aeotee-theme] :is(.aeotee-garden-card,.aeotee-garden-device,.aeotee-garden-summary){
 background:var(--ui-panel)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] :is(.aeotee-garden-device-text,.aeotee-garden-intro,.aeotee-garden-info){color:var(--ui-muted)!important;}
/* Other nested surfaces inherit the same variables; do not alter their events. */
html[data-aeotee-theme] :is(.aeotee-emoji-picker,.aeotee-quick-tray,.aeotee-storage-dialog,.a2s-panel,.connect-gesture-menu){
 color:var(--ui-text)!important;background-color:var(--ui-panel)!important;border-color:var(--ui-line)!important;
}
/* Settings: explicit grouped theme selection with accessible live state. */
.aeotee-theme-collection{display:grid;gap:16px;margin:17px 0 20px;}
.aeotee-theme-group-label{margin:0 0 8px!important;font-size:12px!important;letter-spacing:.05em;color:var(--ui-muted)!important;}
html body #mochaSettings .aeotee-theme-collection .premium-theme-picker{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0;
}
html body #mochaSettings .aeotee-theme-collection .premium-theme-option{
 display:flex;min-width:0;flex-direction:column;gap:6px;align-items:flex-start;
 justify-content:center;min-height:80px!important;padding:13px!important;
 background:var(--ui-raised)!important;color:var(--ui-text)!important;
 border:1px solid var(--ui-line)!important;border-radius:13px!important;
 text-align:left;transition:border-color .16s,background .16s;
}
html body #mochaSettings .aeotee-theme-collection .premium-theme-option strong{
 font-size:12px!important;white-space:normal;color:inherit!important;
}
html body #mochaSettings .aeotee-theme-collection .premium-theme-option small{
 font-size:10px;line-height:1.3;color:var(--ui-muted)!important;
}
html body #mochaSettings .aeotee-theme-collection .premium-theme-option[aria-pressed="true"]{
 background:var(--ui-out)!important;color:var(--ui-out-text)!important;
 border-color:var(--ui-accent)!important;box-shadow:inset 0 0 0 1px var(--ui-accent)!important;
}
html body #mochaSettings .aeotee-theme-collection .premium-theme-option[aria-pressed="true"] small{
 color:var(--ui-out-text)!important;opacity:.9;
}
/* Responsive: never change the product's authoritative one-pane navigation. */
@media(max-width:760px){
 html body #mochaSettings .aeotee-theme-collection .premium-theme-picker{
  grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
 }
 html[data-aeotee-theme] .app.premium-ready #messages{background-size:auto 63%!important;}
 html[data-aeotee-theme] .studio-settings-main{min-width:0;overflow-x:hidden;}
 html[data-aeotee-theme] #mochaSettings .premium-item{min-width:0;}
}
@media(max-width:360px){
 html body #mochaSettings .aeotee-theme-collection .premium-theme-picker{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
 html[data-aeotee-theme] .app.premium-ready .composer input{min-width:0;}
}
@media(min-width:761px) and (max-width:1150px){
 html[data-aeotee-theme] .app.premium-ready :is(.sidebar,.chat){min-width:0!important;}
 html[data-aeotee-theme] .app.premium-ready #messages{background-size:100% auto!important;}
}
@media(prefers-reduced-motion:reduce){
 html body #mochaSettings .premium-theme-option{transition:none!important;}
}
/* AMOLED: actual pixel-off backgrounds, no broad decorative glow. */
html[data-aeotee-theme="amoled"] body,
html[data-aeotee-theme="amoled"] .app.premium-ready,
html[data-aeotee-theme="amoled"] .app.premium-ready>.studio-dock,
html[data-aeotee-theme="amoled"] .app.premium-ready #aeoteeChatSurface{
 background-color:#000!important;
}
html[data-aeotee-theme="amoled"] .app.premium-ready #messages{
 background-color:#000!important;background-image:var(--theme-scene)!important;
}
html[data-aeotee-theme="amoled"] .signature-a-icon{filter:none!important;}
html[data-aeotee-theme="amoled"] .app.premium-ready :is(.composer,.chat-header,.sidebar){
 box-shadow:none!important;
}
/* Auth is still handled exclusively by the established login controller. */
html[data-aeotee-theme] #loginBox.auth-shell{
 background:var(--ui-bg)!important;color:var(--ui-text)!important;
}
html[data-aeotee-theme] #loginBox.auth-shell .studio-login-scene{
 background:var(--sig-rail)!important;color:var(--theme-ink-on-rail)!important;
}
html[data-aeotee-theme] #loginBox.auth-shell .studio-login-scene::before{
 background-image:var(--theme-scene)!important;background-position:center bottom!important;
 background-size:cover!important;background-repeat:no-repeat!important;
}
html[data-aeotee-theme] #loginBox.auth-shell .auth-card{
 background:var(--ui-panel)!important;color:var(--ui-text)!important;
}
html[data-aeotee-theme] #loginBox.auth-shell button.auth-submit{
 background:var(--ui-accent-solid)!important;color:var(--ui-accent-ink)!important;
}

/* Theme-aware login landscape replaces retired lotus without altering auth. */
html[data-aeotee-theme] #loginBox.auth-shell .studio-login-scene::after{
 display:block!important;
 background:radial-gradient(ellipse 95% 80% at 50% 95%,color-mix(in srgb,var(--ui-accent) 9%,transparent),transparent 80%)!important;
 opacity:.75!important;
 height:23%!important;
 bottom:0!important;
 pointer-events:none!important;
}
html[data-aeotee-theme="amoled"] #loginBox.auth-shell .studio-login-scene::after{
 opacity:.22!important;
}
@media(max-width:760px){
 html[data-aeotee-theme] #loginBox.auth-shell .studio-login-scene::after{
  height:28%!important;opacity:.5!important;
 }
}
/* Approved AEOTEE cat mark replaces the obsolete A emblem in the existing layout. */
.aeotee-cat-mark{
 display:inline-block;flex:0 0 auto;width:52px;height:52px;
 background:var(--ui-accent-solid);
 -webkit-mask:url("aeotee-cat-mark.svg") center/contain no-repeat;
 mask:url("aeotee-cat-mark.svg") center/contain no-repeat;
}
html[data-aeotee-theme] #loginBox .studio-scene-brand .aeotee-cat-mark{
 background:var(--theme-ink-on-rail);width:48px;height:48px;
}
html[data-aeotee-theme] #loginBox .auth-brand-mark{
 background:var(--ui-raised)!important;border:1px solid var(--ui-line)!important;
 border-radius:16px!important;display:grid;place-items:center;
}
html[data-aeotee-theme] #loginBox .auth-brand-mark .aeotee-cat-mark{width:39px;height:39px;}
html[data-aeotee-theme] .app.premium-ready .studio-cat .aeotee-cat-mark{
 width:53px;height:53px;background:var(--theme-ink-on-rail);
}
html[data-aeotee-theme] .app.premium-ready .brand-mark .aeotee-cat-mark{
 width:36px;height:36px;background:var(--ui-accent-solid);
}
/* Login: theme the original functional controls, not a recreated auth flow. */
html[data-aeotee-theme] #loginBox.auth-shell :is(.auth-intro h1,.auth-brand-copy strong,.auth-fields label){
 color:var(--ui-text)!important;
}
html[data-aeotee-theme] #loginBox.auth-shell :is(.auth-intro p,.auth-brand-copy small,.auth-status,.auth-page-note,.auth-card-footer p){
 color:var(--ui-muted)!important;
}
html[data-aeotee-theme] #loginBox.auth-shell :is(.auth-eyebrow,.auth-forgot,.auth-password-row button,.auth-status-dot){
 color:var(--ui-accent)!important;
}
html[data-aeotee-theme] #loginBox.auth-shell input{
 border-color:var(--ui-line)!important;color:var(--ui-text)!important;background:var(--ui-input)!important;
}
html[data-aeotee-theme] #loginBox.auth-shell input:focus-visible{
 outline:2px solid var(--ui-accent)!important;outline-offset:1px;
}
html[data-aeotee-theme] #loginBox .studio-login-scene :is(.studio-scene-brand,.studio-scene-eyebrow,.studio-scene-copy h2,.studio-scene-copy>p:last-child,.studio-scene-foot){
 color:var(--theme-ink-on-rail)!important;
}
html[data-aeotee-theme] #loginBox .studio-login-scene h2 em{color:var(--sig-blue)!important;}
html[data-aeotee-theme] #loginBox .studio-login-graphic{
 background:color-mix(in srgb,var(--theme-ink-on-rail) 18%,transparent);
 -webkit-mask:url("aeotee-cat-mark.svg") center/contain no-repeat;
 mask:url("aeotee-cat-mark.svg") center/contain no-repeat;
 width:clamp(180px,22vw,330px);right:6%;top:28%;opacity:.7;
}
html[data-aeotee-theme] #loginBox .studio-login-graphic i{display:none!important;}
html[data-aeotee-theme] #loginBox.auth-shell .studio-scene-foot{border-color:var(--sig-line)!important;}
/* Refine touch and pixel alignment without changing click handlers or call geometry. */
html[data-aeotee-theme] .app.premium-ready :is(.studio-dock button,.relay-filters button,.premium-nav-item,.chat-header .actions button){
 -webkit-tap-highlight-color:transparent;align-items:center;justify-content:center;
}
html[data-aeotee-theme] .app.premium-ready :is(.studio-dock button,.chat-header .actions button,.composer button) svg{
 width:22px;max-width:100%;height:22px;stroke-width:1.8;
}
html[data-aeotee-theme] .app.premium-ready #userList .contact{min-width:0;}
html[data-aeotee-theme] .app.premium-ready #userList .contact :is(b,small){
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;
}
@media(max-width:760px){
 html[data-aeotee-theme] #loginBox.auth-shell{overflow-y:auto;overscroll-behavior:contain;}
 html[data-aeotee-theme] #loginBox.auth-shell .auth-page-note{position:static!important;margin:4px auto 14px!important;}
 html[data-aeotee-theme] .app.premium-ready .chat-header .actions button svg{width:19px;height:19px;}
}
@media(prefers-reduced-motion:reduce){
 html[data-aeotee-theme] #loginBox .studio-login-graphic{transition:none!important;animation:none!important;}
}

/* AEOTEE v5 menu redesign — green-marked surface. Existing navigation actions stay intact. */
html[data-aeotee-theme]{
 --menu-fg:var(--theme-ink-on-rail);
 --menu-muted:color-mix(in srgb,var(--theme-ink-on-rail) 78%,transparent);
 --menu-border:color-mix(in srgb,var(--theme-ink-on-rail) 17%,transparent);
 --menu-card:color-mix(in srgb,var(--theme-ink-on-rail) 6%,var(--sig-rail));
 --menu-picked:color-mix(in srgb,var(--ui-accent-solid) 23%,var(--sig-rail));
}
html[data-aeotee-theme] body .app.premium-ready>.studio-dock{
 background:var(--sig-rail)!important;border-right:1px solid var(--menu-border)!important;
 box-shadow:none!important;gap:8px!important;overflow-y:auto!important;overflow-x:hidden!important;
}
html[data-aeotee-theme] body .app.premium-ready .studio-dock .studio-cat{
 width:54px!important;height:54px!important;min-height:54px!important;flex:0 0 54px!important;
 margin:4px 0 0 4px!important;border:0!important;box-shadow:none!important;background:none!important;
}
html[data-aeotee-theme] body .app.premium-ready .studio-dock .studio-cat .aeotee-cat-mark{
 width:48px!important;height:48px!important;background:var(--menu-fg)!important;
}
html[data-aeotee-theme] body .app.premium-ready .studio-dock .nova-brand-voice{
 color:var(--menu-fg)!important;margin:0 8px 10px!important;gap:5px!important;
}
html[data-aeotee-theme] body .app.premium-ready .studio-dock .nova-brand-voice strong{
 color:var(--menu-fg)!important;font:760 21px/1.15 system-ui,sans-serif!important;letter-spacing:.13em!important;
}
html[data-aeotee-theme] body .app.premium-ready .studio-dock .nova-brand-voice small{
 color:var(--menu-muted)!important;font:600 9px/1.3 system-ui,sans-serif!important;
}
html[data-aeotee-theme] body .app.premium-ready .studio-dock .signature-nav-caption{
 color:var(--menu-muted)!important;opacity:1!important;margin:0!important;
 padding:10px 12px 5px!important;font:700 10px/1.2 system-ui,sans-serif!important;
}
html[data-aeotee-theme] body .app.premium-ready .studio-dock button[data-studio-action]{
 display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:13px!important;
 width:100%!important;min-width:0!important;flex:0 0 64px!important;
 height:64px!important;min-height:64px!important;padding:8px 10px!important;
 background:var(--menu-card)!important;color:var(--menu-fg)!important;
 border:1px solid var(--menu-border)!important;border-radius:17px!important;box-shadow:none!important;
}
html[data-aeotee-theme] body .app.premium-ready .studio-dock button[data-studio-action]>svg{
 flex:0 0 43px!important;width:43px!important;height:43px!important;min-width:43px!important;
 padding:11px!important;border-radius:14px!important;stroke:currentColor!important;
 color:var(--menu-fg)!important;
 background:color-mix(in srgb,var(--menu-fg) 9%,var(--sig-rail))!important;
 border:1px solid var(--menu-border)!important;box-shadow:none!important;
}
html[data-aeotee-theme] body .app.premium-ready .studio-dock button[data-studio-action] .nova-nav-label{
 color:var(--menu-fg)!important;gap:5px!important;min-width:0!important;
 font:660 15px/1.18 system-ui,sans-serif!important;letter-spacing:-.015em!important;
}
html[data-aeotee-theme] body .app.premium-ready .studio-dock button[data-studio-action] .nova-nav-label small{
 color:var(--menu-muted)!important;opacity:1!important;
 font:450 11px/1.25 system-ui,sans-serif!important;
}
html[data-aeotee-theme] body .app.premium-ready .studio-dock button[data-studio-action][aria-current="page"]{
 background:var(--menu-picked)!important;border-color:var(--ui-accent)!important;
 box-shadow:inset 3px 0 0 var(--ui-accent-solid)!important;color:var(--menu-fg)!important;
}
html[data-aeotee-theme] body .app.premium-ready .studio-dock button[data-studio-action][aria-current="page"]>svg{
 color:var(--ui-accent)!important;border-color:var(--ui-accent)!important;box-shadow:none!important;
}
html[data-aeotee-theme] body .app.premium-ready .studio-dock button[data-studio-action][aria-current="page"] :is(.nova-nav-label,.nova-nav-label small){
 color:var(--menu-fg)!important;
}
html[data-aeotee-theme] body .app.premium-ready .studio-dock button[data-studio-action]:focus-visible{
 outline:2px solid var(--ui-accent)!important;outline-offset:2px!important;
}
html[data-aeotee-theme] body .app.premium-ready .studio-dock .signature-lotus{
 display:none!important;flex:0 0 0!important;height:0!important;background:none!important;
}
html[data-aeotee-theme] body .app.premium-ready .studio-dock .nova-workspace-note{
 display:block!important;flex:0 0 auto!important;order:91!important;
 width:100%!important;margin:14px 0 4px!important;padding:16px 4px 3px!important;
 border-top:1px solid var(--menu-border)!important;
 font:650 10px/1.3 system-ui,sans-serif!important;color:var(--menu-muted)!important;
 letter-spacing:.13em!important;text-align:center!important;
}
html[data-aeotee-theme] body .app.premium-ready .studio-dock #aeoteeFullscreenMenuAction{
 color:var(--menu-fg)!important;background:var(--menu-card)!important;
 border:1px solid var(--menu-border)!important;box-shadow:none!important;
}
@media(max-width:760px){
 html[data-aeotee-theme] body .app.premium-ready.aeotee-view-menu>.studio-dock{
  padding:20px 16px 18px!important;gap:8px!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-view-menu .studio-dock .nova-brand-voice{
  position:absolute!important;top:27px!important;left:91px!important;right:70px!important;
  height:53px!important;margin:0!important;justify-content:center!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-view-menu .studio-dock .signature-nav-caption{
  margin:19px 0 2px!important;padding:8px 8px 5px!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-view-menu .studio-dock button[data-studio-action]{
  flex:0 0 68px!important;height:68px!important;min-height:68px!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-view-menu .studio-dock button[data-studio-action]>svg{
  width:44px!important;height:44px!important;flex:0 0 44px!important;
 }
}

/* AEOTEE v5 chat refinements — fix purple bleed, faint receipts and floating search. */
html[data-aeotee-theme] body .app.premium-ready .chat>.chat-header{
 color:var(--ui-text)!important;background:var(--ui-panel)!important;
 border-bottom:1px solid var(--ui-line)!important;box-shadow:none!important;backdrop-filter:none!important;
}
html[data-aeotee-theme] body .app.premium-ready .chat-header .avatar{
 background:var(--ui-accent-solid)!important;color:var(--ui-accent-ink)!important;
 border-color:var(--ui-line)!important;box-shadow:none!important;
}
html[data-aeotee-theme] body .app.premium-ready .chat-header .person{min-width:0!important;overflow:hidden!important;}
html[data-aeotee-theme] body .app.premium-ready .chat-header .person b{color:var(--ui-text)!important;font:650 14px/1.25 Roboto,"Noto Sans",Arial,sans-serif!important;letter-spacing:-.02em!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
html[data-aeotee-theme] body .app.premium-ready .chat-header .person small{color:var(--ui-muted)!important;font:500 11px/1.35 Roboto,"Noto Sans",Arial,sans-serif!important;}
/* The local encrypted search control was accidentally placed in a second grid row. */
html[data-aeotee-theme] body .app.premium-ready .chat-header .actions{
 display:flex!important;flex-direction:row!important;justify-content:flex-end!important;
 align-items:center!important;flex:0 0 auto!important;
 width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;
 overflow:visible!important;gap:6px!important;
}
html[data-aeotee-theme] body .app.premium-ready .chat-header .actions>button:not([hidden]){
 position:static!important;display:grid!important;place-items:center!important;
 flex:0 0 38px!important;width:38px!important;min-width:38px!important;max-width:38px!important;
 height:38px!important;min-height:38px!important;max-height:38px!important;
 padding:8px!important;margin:0!important;line-height:1!important;
 background:var(--ui-raised)!important;color:var(--ui-text)!important;
 border:1px solid var(--ui-line)!important;border-radius:12px!important;box-shadow:none!important;
}
html[data-aeotee-theme] body .app.premium-ready .chat-header .actions>button[hidden]{display:none!important;}
html[data-aeotee-theme] body .app.premium-ready .chat-header .actions #aeoteePrivateChatSearchToggle{
 font:600 23px/1 system-ui,sans-serif!important;
}
html[data-aeotee-theme] body .app.premium-ready .chat-header .actions>button:focus-visible{
 outline:2px solid var(--ui-accent)!important;outline-offset:2px!important;
}
html[data-aeotee-theme] body .app.premium-ready #aeoteeChatSurface{
 background:var(--ui-bg)!important;
}
html[data-aeotee-theme] body .app.premium-ready #aeoteeChatSurface::before{
 display:none!important;background:none!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages{
 background-color:var(--ui-bg)!important;background-image:var(--theme-scene)!important;
 background-position:center bottom!important;background-repeat:no-repeat!important;
 background-size:100% auto!important;
 gap:4px!important;scrollbar-color:var(--ui-line) transparent;
}
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble{
 flex:0 0 auto!important;max-width:min(76%,520px)!important;
 min-height:0!important;margin-block:3px!important;padding:8px 11px!important;
 border:1px solid var(--ui-soft-line)!important;border-radius:16px!important;
 background:var(--ui-panel)!important;color:var(--ui-text)!important;
 box-shadow:0 1px 5px #00000012!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble.outgoing{
 background:var(--ui-out)!important;color:var(--ui-out-text)!important;
 border-color:color-mix(in srgb,var(--ui-out) 78%,var(--ui-text))!important;
 border-radius:16px 16px 5px 16px!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble.incoming{
 background:var(--ui-panel)!important;color:var(--ui-text)!important;
 border-radius:16px 16px 16px 5px!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble :is(.bubble-body,.bubble-body span){
 color:inherit!important;
}
/* Readable chat typography shared across themes; native emoji/media rendering remains unchanged. */
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble:not([data-emoji-only="true"]) .bubble-body{font:500 14px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif!important;letter-spacing:-.01em!important;overflow-wrap:anywhere!important;}
html[data-aeotee-theme] body .app.premium-ready .chat .composer input#messageInput,
html[data-aeotee-theme] body .app.premium-ready .chat .composer input#messageInput::placeholder{font:500 14px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif!important;}
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble.outgoing :is(.bubble-meta,.bubble-meta span,.timestamp,.read-receipt){
 color:var(--ui-out-text)!important;opacity:1!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble.incoming :is(.bubble-meta,.bubble-meta span,.timestamp,.read-receipt){
 color:var(--ui-muted)!important;opacity:1!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble .bubble-meta{
 font:500 11px/1.3 system-ui,sans-serif!important;margin-top:4px!important;
 min-height:14px!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble.media-only{
 background:transparent!important;border:0!important;box-shadow:none!important;
}
/* Keep protected-content warnings obvious; never visually disguise a failure. */
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble:is([data-content-protection="unavailable"],[data-content-protection="recovery-required"],[data-content-protection="identity-mismatch"],[data-content-protection="history-unavailable"],[data-content-protection="unsupported"]){
 border:2px solid var(--ui-danger)!important;
}
/* Replace the remaining purple composer chrome while retaining every action. */
html[data-aeotee-theme] body .app.premium-ready .chat .composer{
 color:var(--ui-text)!important;background:var(--ui-panel)!important;
 border:1px solid var(--ui-line)!important;box-shadow:0 2px 9px #0000001a!important;
}
html[data-aeotee-theme] body .app.premium-ready .chat .composer:focus-within{
 border-color:var(--ui-accent)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--ui-accent) 22%,transparent)!important;
}
html[data-aeotee-theme] body .app.premium-ready .chat .composer>.aeotee-compose-field{
 background:var(--ui-input)!important;color:var(--ui-text)!important;
 border:1px solid var(--ui-line)!important;box-shadow:none!important;
}
html[data-aeotee-theme] body .app.premium-ready .chat .composer>.aeotee-compose-field>input#messageInput{
 background:transparent!important;color:var(--ui-text)!important;
}
html[data-aeotee-theme] body .app.premium-ready .chat .composer>.aeotee-compose-field>input#messageInput::placeholder{
 color:var(--ui-muted)!important;opacity:1!important;
}
html[data-aeotee-theme] body .app.premium-ready .chat .composer :is(#attachBtn,#gifBtn,#aeoteeGifBtn,#micBtn,#aeoteeCameraBtn){
 color:var(--ui-text)!important;background:var(--ui-raised)!important;
 border-color:var(--ui-line)!important;box-shadow:none!important;
}
html[data-aeotee-theme] body .app.premium-ready .chat .composer>#sendBtn.send{
 color:var(--ui-accent-ink)!important;background:var(--ui-accent-solid)!important;
 border:1px solid var(--ui-accent)!important;box-shadow:none!important;
}
html[data-aeotee-theme] body .app.premium-ready .chat .composer>#sendBtn.send:disabled{
 opacity:.55!important;color:var(--ui-muted)!important;background:var(--ui-raised)!important;
 border-color:var(--ui-line)!important;
}
@media(max-width:760px){
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread .chat>.chat-header{
  display:grid!important;grid-template-columns:34px 40px minmax(0,1fr) 128px!important;
  grid-template-rows:48px!important;column-gap:7px!important;
  height:auto!important;min-height:67px!important;padding:9px 8px!important;
  background:var(--ui-panel)!important;border-bottom:1px solid var(--ui-line)!important;
  border-radius:0!important;box-shadow:none!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread .chat-header .avatar{
  width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;
  background:var(--ui-accent-solid)!important;color:var(--ui-accent-ink)!important;
  border:1px solid var(--ui-line)!important;box-shadow:none!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread .chat-header .person b{
  color:var(--ui-text)!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread .chat-header .actions{
  display:grid!important;grid-column:4!important;grid-row:1!important;
  grid-template-columns:repeat(3,38px)!important;grid-template-rows:38px!important;gap:5px!important;
  width:124px!important;min-width:124px!important;max-width:124px!important;
  height:38px!important;min-height:38px!important;
  flex:0 0 124px!important;justify-self:end!important;align-items:center!important;
  margin:0!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread .chat-header .actions #studioInfoBtn{display:none!important;}
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread .chat-header .actions #aeoteePrivateChatSearchToggle{
  position:static!important;grid-column:1!important;grid-row:1!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread .chat-header .actions>.mocha-call-launch[data-kind="audio"]{
  grid-column:2!important;grid-row:1!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread .chat-header .actions>.mocha-call-launch[data-kind="video"]{
  grid-column:3!important;grid-row:1!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread .chat-header .actions>button:not([hidden]){
  width:38px!important;min-width:38px!important;max-width:38px!important;
  height:38px!important;min-height:38px!important;max-height:38px!important;
  background:var(--ui-raised)!important;color:var(--ui-text)!important;
  border:1px solid var(--ui-line)!important;border-radius:12px!important;box-shadow:none!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread #messages>.bubble{
  max-width:86%!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread .chat .composer{
  background:var(--ui-panel)!important;border-color:var(--ui-line)!important;box-shadow:0 1px 7px #00000021!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread .chat .composer>.aeotee-compose-field{
  background:var(--ui-input)!important;border-color:var(--ui-line)!important;
 }
}
@media(max-width:355px){
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread .chat>.chat-header{
  grid-template-columns:32px 36px minmax(0,1fr) 111px!important;column-gap:5px!important;padding-inline:6px!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread .chat-header .actions{
  grid-template-columns:repeat(3,34px)!important;grid-template-rows:36px!important;
  width:111px!important;min-width:111px!important;max-width:111px!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread .chat-header .actions>button:not([hidden]){
  width:34px!important;min-width:34px!important;max-width:34px!important;
  height:36px!important;min-height:36px!important;max-height:36px!important;
 }
}

/* AEOTEE v5 attachment tray colors — red-marked geometry is intentionally unchanged. */
html[data-aeotee-theme] body #aeoteeComposeMenu.aeotee-quick-tray:not([hidden]){
 color:var(--ui-text)!important;background:var(--ui-panel)!important;
 border-color:var(--ui-line)!important;box-shadow:0 8px 22px #0000002b!important;
}
html[data-aeotee-theme] body #aeoteeComposeMenu.aeotee-quick-tray:not([hidden])::after{
 background:var(--ui-panel)!important;border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] body #aeoteeComposeMenu.aeotee-quick-tray :is(.aeotee-compose-menu-action,.aeotee-tray-shortcut){
 color:var(--ui-text)!important;background:var(--ui-raised)!important;
 border-color:var(--ui-line)!important;box-shadow:inset 0 1px 0 color-mix(in srgb,var(--ui-text) 8%,transparent)!important;
}
html[data-aeotee-theme] body #aeoteeComposeMenu.aeotee-quick-tray :is(.aeotee-compose-menu-action,.aeotee-tray-shortcut) svg{
 color:var(--ui-text)!important;stroke:currentColor!important;
}
html[data-aeotee-theme] body #aeoteeComposeMenu.aeotee-quick-tray button:hover:not(:disabled){
 color:var(--ui-text)!important;background:var(--ui-hover)!important;border-color:var(--ui-accent)!important;
}
html[data-aeotee-theme] body #aeoteeComposeMenu.aeotee-quick-tray button:focus-visible{
 outline:2px solid var(--ui-accent)!important;outline-offset:2px!important;
}
html[data-aeotee-theme] body #aeoteeComposeMenu.aeotee-quick-tray .aeotee-gif-mark{
 color:var(--ui-text)!important;
}
/* Nested pages, Security, Devices and search use the active semantic palette. */
html[data-aeotee-theme] body .aeotee-private-search-panel:not([hidden]){
 background:var(--ui-panel)!important;color:var(--ui-text)!important;border-bottom-color:var(--ui-line)!important;
}
html[data-aeotee-theme] body .aeotee-private-search-panel :is(input,button){
 background:var(--ui-input)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] body :is(.mocha-panel,.a2s-panel,.signature-security-hub,.aeotee-phantom-layer,.aeotee-garden-card) :is(button,input,select,textarea):focus-visible{
 outline:2px solid var(--ui-accent)!important;outline-offset:2px!important;
}
html[data-aeotee-theme] body :is(.mocha-panel,.a2s-panel,.aeotee-storage-dialog) :is(.mocha-close,.premium-back,.premium-settings-back){
 color:var(--ui-text)!important;background:var(--ui-raised)!important;border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] body .app.premium-ready>.signature-security-hub{
 background:var(--ui-panel)!important;color:var(--ui-text)!important;
}
html[data-aeotee-theme] body .app.premium-ready .signature-security-hub .aeotee-security-tile-copy :is(strong,small){
 color:var(--ui-text)!important;
}
/* Preserve long-press gesture, drag handlers and the fixed tray's hit targets. */
@media(prefers-reduced-motion:reduce){
 html[data-aeotee-theme] body .app.premium-ready .studio-dock button[data-studio-action],
 html[data-aeotee-theme] body .app.premium-ready .chat-header .actions>button,
 html[data-aeotee-theme] body #aeoteeComposeMenu.aeotee-quick-tray button{
  transition:none!important;animation:none!important;
 }
}

/* AEOTEE v6 mobile composer specificity: matches the old neon selector exactly. */
@media(max-width:760px){
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread .chat .composer,
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread.living-focus-mode .chat .composer{
  background:var(--ui-panel)!important;border:1px solid var(--ui-line)!important;
  box-shadow:0 2px 10px #0000001c!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread .chat .composer>#attachBtn{
  background:var(--ui-raised)!important;color:var(--ui-text)!important;
  border:1px solid var(--ui-line)!important;box-shadow:none!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread .chat .composer>.aeotee-compose-field{
  background:var(--ui-input)!important;border:1px solid var(--ui-line)!important;
  box-shadow:none!important;color:var(--ui-text)!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread .chat .composer>.aeotee-compose-field>input#messageInput{
  background:transparent!important;color:var(--ui-text)!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread .chat .composer>.aeotee-compose-field>input#messageInput::placeholder{
  color:var(--ui-muted)!important;opacity:1!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread .chat .composer>#sendBtn.send{
  background:var(--ui-accent-solid)!important;color:var(--ui-accent-ink)!important;
  border:1px solid var(--ui-accent)!important;box-shadow:none!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread .chat .composer>#sendBtn.send:disabled{
  background:var(--ui-raised)!important;color:var(--ui-muted)!important;
  border-color:var(--ui-line)!important;box-shadow:none!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread .chat .composer #gifBtn{
  color:var(--ui-text)!important;background:var(--ui-input)!important;border-color:transparent!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread .chat-header #mobileChatsBtn{
  background:var(--ui-raised)!important;color:var(--ui-text)!important;
  border:1px solid var(--ui-line)!important;box-shadow:none!important;
 }
}

/* AEOTEE v7 desktop density / message sizing: eliminate oversized one-word cards. */
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble:not(.media-only){
 width:fit-content!important;max-width:min(76%,520px)!important;min-width:0!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble.incoming{
 align-self:flex-start!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble.outgoing{
 align-self:flex-end!important;
}
@media(min-width:1150px){
 html[data-aeotee-theme] body .app.premium-ready:not(.living-focus-mode){
  grid-template-columns:clamp(214px,17.4vw,255px) clamp(284px,23vw,348px) minmax(0,1fr)!important;
 }
 html[data-aeotee-theme] body .app.premium-ready .studio-dock button[data-studio-action] .nova-nav-label small{
  white-space:normal!important;overflow-wrap:anywhere!important;
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
 }
}
@media(max-width:760px){
 html[data-aeotee-theme] body .app.premium-ready.aeotee-neon-chat.aeotee-view-thread #messages>.bubble:not(.media-only){
  max-width:86%!important;
 }
}

/* AEOTEE v8 nested settings polish — shared contrast, compact controls, theme previews. */
html[data-aeotee-theme] body #mochaSettings.mocha-panel{
 color:var(--ui-text)!important;background:var(--ui-panel)!important;
 border:1px solid var(--ui-line)!important;
}
html[data-aeotee-theme] body #mochaSettings :is(h2,h3,.premium-settings-section,.premium-item-copy strong){
 color:var(--ui-text)!important;font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;
}
html[data-aeotee-theme] body #mochaSettings :is(.premium-settings-header p,.premium-eyebrow,.premium-item-copy small){
 color:var(--ui-muted)!important;font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;
}
html[data-aeotee-theme] body #mochaSettings .premium-back{
 display:inline-flex!important;align-items:center!important;min-height:42px!important;
 width:max-content!important;max-width:100%!important;margin:0 0 16px!important;
 padding:8px 13px!important;border:1px solid var(--ui-line)!important;
 border-radius:12px!important;background:var(--ui-raised)!important;
 color:var(--ui-text)!important;font:650 13px/1.35 system-ui,sans-serif!important;
}
html[data-aeotee-theme] body #mochaSettings .premium-back:focus-visible{
 outline:2px solid var(--ui-accent)!important;outline-offset:2px!important;
}
html[data-aeotee-theme] body #mochaSettings .premium-settings-group{
 background:var(--ui-raised)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] body #mochaSettings .premium-item{
 color:var(--ui-text)!important;background:transparent!important;border-color:var(--ui-soft-line)!important;
}
html[data-aeotee-theme] body #mochaSettings .premium-item-mark{
 background:var(--ui-panel)!important;color:var(--ui-accent)!important;border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] body #mochaSettings .aeotee-theme-collection .premium-theme-option{
 position:relative!important;overflow:hidden!important;
 background:var(--ui-raised)!important;color:var(--ui-text)!important;
 border-color:var(--ui-line)!important;
 font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;
}
html[data-aeotee-theme] body #mochaSettings .aeotee-theme-collection .premium-theme-option strong{
 color:inherit!important;font:650 13px/1.2 system-ui,sans-serif!important;
}
html[data-aeotee-theme] body #mochaSettings .aeotee-theme-collection .premium-theme-option small{
 font:450 11px/1.25 system-ui,sans-serif!important;color:var(--ui-muted)!important;
}
html[data-aeotee-theme] body #mochaSettings .aeotee-theme-collection .premium-theme-option::before{
 content:"";display:block;width:46px;height:10px;margin-bottom:7px;
 border:1px solid color-mix(in srgb,currentColor 19%,transparent);
 border-radius:99px;background:linear-gradient(100deg,#f7f9fe 0 33%,#438bc3 33% 67%,#0f395b 67%);
}
html[data-aeotee-theme] body #mochaSettings .premium-theme-option[data-theme-choice="system"]::before{
 background:linear-gradient(100deg,#f2f9fe 0 45%,#0c223a 45% 80%,#070707 80%);
}
html[data-aeotee-theme] body #mochaSettings .premium-theme-option[data-theme-choice="day"]::before{
 background:linear-gradient(100deg,#f2f9fe 0 40%,#9dd0ed 40% 70%,#1671c1 70%);
}
html[data-aeotee-theme] body #mochaSettings .premium-theme-option[data-theme-choice="night"]::before{
 background:linear-gradient(100deg,#091a2e 0 40%,#244b6d 40% 70%,#8bd4fc 70%);
}
html[data-aeotee-theme] body #mochaSettings .premium-theme-option[data-theme-choice="amoled"]::before{
 background:linear-gradient(100deg,#000 0 45%,#111d22 45% 75%,#21cadd 75%);
}
html[data-aeotee-theme] body #mochaSettings .premium-theme-option[data-theme-choice="couple-light"]::before{
 background:linear-gradient(100deg,#fff0f5 0 40%,#e69bb2 40% 70%,#ad3763 70%);
}
html[data-aeotee-theme] body #mochaSettings .premium-theme-option[data-theme-choice="couple-night"]::before{
 background:linear-gradient(100deg,#211324 0 40%,#8e4367 40% 70%,#e6a2b9 70%);
}
html[data-aeotee-theme] body #mochaSettings .aeotee-theme-collection .premium-theme-option[aria-pressed="true"]{
 background:var(--ui-out)!important;color:var(--ui-out-text)!important;border-color:var(--ui-accent)!important;
}
html[data-aeotee-theme] body #mochaSettings .aeotee-theme-collection .premium-theme-option[aria-pressed="true"] small{
 color:var(--ui-out-text)!important;opacity:1!important;
}
html[data-aeotee-theme] body :is(dialog.mocha-panel,.a2s-panel) :is(.mocha-option,.mocha-setting-card,.mocha-network){
 background:var(--ui-raised)!important;color:var(--ui-text)!important;
 border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] body :is(dialog.mocha-panel,.a2s-panel) :is(.mocha-option,.mocha-setting-card) small{
 color:var(--ui-muted)!important;
}
html[data-aeotee-theme] body dialog.mocha-panel :is(.mocha-primary,.mocha-option[aria-checked="true"]){
 border-color:var(--ui-accent)!important;
}
html[data-aeotee-theme] body dialog.mocha-panel .mocha-primary{
 color:var(--ui-accent-ink)!important;background:var(--ui-accent-solid)!important;
}
/* User-controlled dialogs keep their original DOM, buttons and navigation. */
@media(max-width:760px){
 html[data-aeotee-theme] body #mochaSettings .premium-back{
  min-height:40px!important;margin-bottom:12px!important;
 }
 html[data-aeotee-theme] body #mochaSettings .aeotee-theme-collection{
  gap:12px!important;margin:12px 0 14px!important;
 }
}

/* AEOTEE v9 approved reference art - responsive static SVG wallpaper. */
html[data-aeotee-theme] body .app.premium-ready #messages{
 background-image:var(--theme-scene)!important;
 background-size:100% 100%!important;
 background-position:center center!important;
 background-repeat:no-repeat!important;
 background-color:var(--ui-bg)!important;
}
html[data-aeotee-theme="amoled"] body .app.premium-ready #messages{
 background-color:#000000!important;
 background-image:var(--theme-scene)!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages>.day,
html[data-aeotee-theme] body .app.premium-ready #messages>.date-divider{
 align-self:center!important;width:max-content!important;max-width:100%!important;
 padding:5px 12px!important;border-radius:999px!important;
 background:var(--ui-raised)!important;color:var(--ui-text)!important;
 border:1px solid var(--ui-line)!important;
 box-shadow:none!important;font:600 11px/1.25 system-ui,sans-serif!important;
}
/* Keyboard-only outline: touch/swipe focus must not leave a second ring. */
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble:has(:focus-visible){
 outline:2px solid var(--ui-accent)!important;outline-offset:2px!important;
}
@media(prefers-contrast:more){
 html[data-aeotee-theme] body .app.premium-ready #messages{
  background-image:none!important;
 }
 html[data-aeotee-theme] body .app.premium-ready #messages>.bubble{border-width:2px!important;}
}
@media(prefers-reduced-motion:reduce){
 html[data-aeotee-theme] body .app.premium-ready #messages{scroll-behavior:auto!important;}
}

/* AEOTEE v10 stable scene canvas: no scroll-cutoff bands, identical paint for all five themes. */
html[data-aeotee-theme] body .app.premium-ready #aeoteeChatSurface{
 background-color:var(--ui-bg)!important;
 background-image:var(--theme-scene)!important;
 background-size:100% 100%!important;
 background-position:center center!important;
 background-repeat:no-repeat!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages{
 background:transparent!important;
 background-image:none!important;
 background-color:transparent!important;
}
html[data-aeotee-theme="amoled"] body .app.premium-ready #aeoteeChatSurface{
 background-color:#000000!important;
 background-image:var(--theme-scene)!important;
}
@media(prefers-contrast:more){
 html[data-aeotee-theme] body .app.premium-ready #aeoteeChatSurface{
  background-image:none!important;
 }
}

/* AEOTEE v11 approved-reference completion: inbox, calling chrome & desktop.
   Presentation only. No call/media geometry, key state or events are modified. */
html[data-aeotee-theme] body .app.premium-ready .sidebar>.relay-filters :is(.relay-filter,.relay-new){
 color:var(--ui-text)!important;background:var(--ui-raised)!important;
 border:1px solid var(--ui-line)!important;box-shadow:none!important;
}
html[data-aeotee-theme] body .app.premium-ready .sidebar>.relay-filters .relay-filter[aria-pressed="true"]{
 color:var(--ui-accent-ink)!important;background:var(--ui-accent-solid)!important;
 border-color:var(--ui-accent)!important;box-shadow:none!important;
}
html[data-aeotee-theme] body .app.premium-ready .sidebar>.relay-filters .relay-new{
 color:var(--ui-accent-ink)!important;background:var(--ui-accent-solid)!important;
 border-color:var(--ui-accent)!important;box-shadow:none!important;
}
html[data-aeotee-theme] body .app.premium-ready .sidebar>.relay-filters :is(.relay-filter,.relay-new):focus-visible{
 outline:2px solid var(--ui-accent)!important;outline-offset:2px!important;
}
html[data-aeotee-theme] body .app.premium-ready #userList .contact{
 color:var(--ui-text)!important;
 border-bottom:1px solid var(--ui-soft-line)!important;
 background:transparent!important;box-shadow:none!important;
}
html[data-aeotee-theme] body .app.premium-ready #userList .contact:is(:hover,.active,[aria-current="true"]){
 background:color-mix(in srgb,var(--ui-accent-solid) 11%,var(--ui-panel))!important;
 border-color:var(--ui-line)!important;
 box-shadow:inset 3px 0 0 var(--ui-accent-solid)!important;
}
html[data-aeotee-theme] body .app.premium-ready #userList .contact .avatar,
html[data-aeotee-theme] body .app.premium-ready #userList .contact:nth-child(3n+2) .avatar,
html[data-aeotee-theme] body .app.premium-ready #userList .contact:nth-child(3n+3) .avatar{
 color:var(--ui-accent-ink)!important;
 background:linear-gradient(145deg,var(--ui-accent-solid),color-mix(in srgb,var(--ui-accent-solid) 65%,var(--ui-panel)))!important;
 border:1px solid var(--ui-line)!important;
 box-shadow:0 0 0 2px color-mix(in srgb,var(--ui-accent) 13%,transparent)!important;
}
html[data-aeotee-theme] body .app.premium-ready #userList .contact .avatar img{
 width:100%;height:100%;object-fit:cover;border-radius:inherit;
}
html[data-aeotee-theme] body .app.premium-ready #userList .contact :is(b,small){
 color:var(--ui-text)!important;font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;
}
html[data-aeotee-theme] body .app.premium-ready #userList .contact small{
 color:var(--ui-muted)!important;font-size:11px!important;
}
html[data-aeotee-theme] body .app.premium-ready #userList .contact:focus-visible{
 outline:2px solid var(--ui-accent)!important;outline-offset:-2px!important;
}
html[data-aeotee-theme] body .app.premium-ready>.chat{
 background:var(--ui-bg)!important;border-color:var(--ui-line)!important;
 box-shadow:0 10px 35px #00000017!important;
}
html[data-aeotee-theme] body .app.premium-ready .sidebar>.studio-inbox-head :is(h1,p,.studio-eyebrow),
html[data-aeotee-theme] body .app.premium-ready .sidebar>.premium-people-title :is(h2,span){
 font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;
}
html[data-aeotee-theme] body .app.premium-ready .sidebar>.studio-inbox-head h1{
 color:var(--ui-text)!important;letter-spacing:-.035em!important;
}
html[data-aeotee-theme] body .app.premium-ready .sidebar>.studio-inbox-head .studio-eyebrow{
 color:var(--ui-muted)!important;
}
html[data-aeotee-theme] body .app.premium-ready .sidebar .search input{
 color:var(--ui-text)!important;background:var(--ui-input)!important;
 border:1px solid var(--ui-line)!important;box-shadow:none!important;
}
html[data-aeotee-theme] body .app.premium-ready .sidebar .search input::placeholder{
 color:var(--ui-muted)!important;opacity:1!important;
}
html[data-aeotee-theme] body .app.premium-ready .sidebar .search input:focus{
 border-color:var(--ui-accent)!important;
 box-shadow:0 0 0 3px color-mix(in srgb,var(--ui-accent) 17%,transparent)!important;
}
html[data-aeotee-theme="amoled"] body .app.premium-ready>.chat{
 box-shadow:none!important;
}
@media(max-width:760px){
 html[data-aeotee-theme] body .app.premium-ready.aeotee-view-contacts .sidebar>.studio-inbox-head{
  padding-bottom:16px!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-view-contacts #userList .contact{
  min-height:66px!important;padding:10px 12px!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-view-contacts .sidebar .relay-filters{
  min-height:50px!important;align-items:center!important;
 }
 html[data-aeotee-theme] body .app.premium-ready.aeotee-view-thread>.chat{
  border:0!important;box-shadow:none!important;
 }
}
/* Call preparation follows theme. Actual participant video stays neutral black. */
html[data-aeotee-theme]{
 --ae-call-glass:#0b121bdc;
 --ae-call-glass-border:#ffffff31;
 --ae-call-glass-text:#f9fcff;
}
html[data-aeotee-theme] body dialog.aeotee-peer-call-dialog.aeotee-call-stage-dialog:not(.aeotee-call-connected){
 background:var(--ui-panel)!important;color:var(--ui-text)!important;
 border-color:var(--ui-line)!important;
 box-shadow:var(--ui-shadow)!important;
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog:not(.aeotee-call-connected)>h2{
 color:var(--ui-text)!important;
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog:not(.aeotee-call-connected)>p{
 color:var(--ui-muted)!important;
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog:not(.aeotee-call-connected) .aeotee-peer-call-actions>button{
 background:var(--ui-raised)!important;color:var(--ui-text)!important;
 border:1px solid var(--ui-line)!important;box-shadow:none!important;
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog:not(.aeotee-call-connected) .aeotee-peer-call-actions>button:first-child{
 background:#16775c!important;color:#ffffff!important;border-color:#16775c!important;
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog:not(.aeotee-call-connected) .aeotee-peer-call-actions>button:nth-child(2){
 background:#a5324c!important;color:#ffffff!important;border-color:#a5324c!important;
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog:not(.aeotee-call-connected) :is(select,input){
 background:var(--ui-input)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog :is(button,select,.aeotee-call-inset):focus-visible{
 outline:2px solid var(--ui-accent)!important;outline-offset:3px!important;
}
/* Fullscreen video: never tint media or interfere with gestures, RTC tracks or PIP geometry. */
html[data-aeotee-theme] body dialog.aeotee-call-stage-dialog.aeotee-call-connected.aeotee-call-video-dialog,
html[data-aeotee-theme] body .aeotee-call-stage{
 background:#080b10!important;
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog.aeotee-call-connected.aeotee-call-video-dialog>h2,
html[data-aeotee-theme] body .aeotee-call-stage-dialog.aeotee-call-connected.aeotee-call-video-dialog>p[role="status"]{
 background:var(--ae-call-glass)!important;color:var(--ae-call-glass-text)!important;
 border:1px solid var(--ae-call-glass-border)!important;
 /* No backdrop-filter over active video: preserve 60 FPS performance. */
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog.aeotee-call-connected>.aeotee-call-layout-toggle,
html[data-aeotee-theme] body .aeotee-call-stage-dialog.aeotee-call-connected>.aeotee-call-layout-tools,
html[data-aeotee-theme] body .aeotee-call-stage-dialog.aeotee-call-connected>.aeotee-peer-call-actions{
 background:var(--ae-call-glass)!important;color:var(--ae-call-glass-text)!important;
 border-color:var(--ae-call-glass-border)!important;
 /* Avoid extra video compositing cost. */
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog.aeotee-call-connected .aeotee-peer-call-actions>button[data-call-role]:not([data-call-role="hangup"]){
 background:#ffffff15!important;color:#ffffff!important;
 border-color:var(--ae-call-glass-border)!important;
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog.aeotee-call-connected .aeotee-peer-call-actions>button[data-call-role="hangup"]{
 background:#d93753!important;color:#ffffff!important;border-color:#ff9aab55!important;
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog.aeotee-call-connected .aeotee-peer-call-actions>button[data-call-role][aria-pressed="true"]{
 background:var(--ui-accent-solid)!important;color:var(--ui-accent-ink)!important;
 border-color:var(--ui-accent)!important;
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog.aeotee-call-connected .aeotee-call-layout-btn{
 color:var(--ae-call-glass-text)!important;background:#ffffff10!important;
 border-color:var(--ae-call-glass-border)!important;
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog.aeotee-call-connected .aeotee-call-layout-btn[aria-pressed="true"]{
 color:var(--ui-accent-ink)!important;background:var(--ui-accent-solid)!important;
 border-color:var(--ui-accent)!important;
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog.aeotee-call-connected .aeotee-call-device select{
 color:#f9fcff!important;background:#1e2936!important;
 border-color:var(--ae-call-glass-border)!important;
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog.aeotee-call-connected .aeotee-call-tile{
 background:#090d14!important;
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog.aeotee-call-connected .aeotee-call-inset{
 border-color:var(--ae-call-glass-border)!important;
 box-shadow:0 7px 24px #00000081!important;
}
html[data-aeotee-theme="amoled"] body dialog.aeotee-call-stage-dialog.aeotee-call-connected.aeotee-call-video-dialog,
html[data-aeotee-theme="amoled"] body .aeotee-call-stage,
html[data-aeotee-theme="amoled"] body .aeotee-call-stage-dialog.aeotee-call-connected .aeotee-call-tile{
 background:#000000!important;
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog :is(.aeotee-call-pipeline,.aeotee-call-layout-tools) [hidden]{
 display:none!important;
}
@media(prefers-reduced-transparency:reduce){
 html[data-aeotee-theme] body .aeotee-call-stage-dialog.aeotee-call-connected>.aeotee-peer-call-actions,
 html[data-aeotee-theme] body .aeotee-call-stage-dialog.aeotee-call-connected>.aeotee-call-layout-tools{
  background:#111c29!important;backdrop-filter:none!important;
 }
}
@media(prefers-reduced-motion:reduce){
 html[data-aeotee-theme] body .aeotee-call-stage-dialog *{
  animation:none!important;transition:none!important;
 }
}


/* The encrypted-message placeholder owns the warning when media also fails. */
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble .attachment-preview.aeotee-media-suppressed{display:none!important;}

/* AEOTEE sign-in: theme-native editorial surface + graphic identity, no slogans. */
html[data-aeotee-theme] body #loginBox.auth-shell .auth-card{
 box-sizing:border-box!important;width:min(88%,484px)!important;max-width:484px!important;
 padding:clamp(24px,3.2vw,39px)!important;border:1px solid var(--ui-soft-line)!important;
 border-radius:25px!important;
 background:linear-gradient(155deg,
  color-mix(in srgb,var(--ui-accent) 7%,var(--ui-panel)) 0%,
  var(--ui-panel) 43%,var(--ui-panel) 100%)!important;
 box-shadow:0 22px 64px #00000024,0 1px 0 color-mix(in srgb,var(--ui-accent) 16%,transparent) inset!important;
}
html[data-aeotee-theme] body #loginBox.auth-shell .auth-brand{margin-bottom:32px!important}
html[data-aeotee-theme] body #loginBox.auth-shell .auth-intro{margin-bottom:25px!important}
html[data-aeotee-theme] body #loginBox.auth-shell .auth-intro h1{
 font:750 clamp(34px,3.4vw,43px)/1.1 system-ui,-apple-system,"Segoe UI",sans-serif!important;
 letter-spacing:-.055em!important;margin:0!important;
}
html[data-aeotee-theme] body #loginBox.auth-shell .auth-fields input{
 min-height:52px!important;border-radius:13px!important;
 transition:border-color .16s ease,box-shadow .16s ease!important;
}
html[data-aeotee-theme] body #loginBox.auth-shell .auth-fields input:focus-visible{
 outline:2px solid var(--ui-accent)!important;outline-offset:2px!important;
 box-shadow:0 0 0 4px color-mix(in srgb,var(--ui-accent) 11%,transparent)!important;
}
html[data-aeotee-theme] body #loginBox.auth-shell .auth-submit{
 min-height:53px!important;border-radius:14px!important;
 box-shadow:0 9px 24px color-mix(in srgb,var(--ui-accent-solid) 22%,transparent)!important;
 transition:filter .18s ease,transform .18s ease!important;
}
@media(hover:hover){html[data-aeotee-theme] body #loginBox.auth-shell .auth-submit:hover:not(:disabled){filter:brightness(1.07)!important;transform:translateY(-1px)}}
html[data-aeotee-theme] body #loginBox.auth-shell #loginStatus:empty{display:none!important}
/* Give the retained AEOTEE cat real visual presence without adding copy or assets.
   GPU-only ring motion is skipped for reduced-motion users. */
html[data-aeotee-theme] body #loginBox .studio-login-graphic{
 position:absolute!important;left:50%!important;right:auto!important;top:50%!important;
 transform:translate(-50%,-47%)!important;
 width:clamp(265px,34vw,440px)!important;aspect-ratio:1!important;
 border-radius:50%!important;opacity:1!important;
 -webkit-mask:none!important;mask:none!important;
 background:radial-gradient(circle,color-mix(in srgb,var(--ui-accent) 12%,transparent) 0%,
  color-mix(in srgb,var(--ui-accent) 4%,transparent) 42%,transparent 68%)!important;
}
html[data-aeotee-theme] body #loginBox .studio-login-graphic::before{
 content:"";position:absolute;z-index:2;inset:22%;
 background:var(--ui-accent-solid);
 -webkit-mask:url("aeotee-cat-mark.svg") center/contain no-repeat;
 mask:url("aeotee-cat-mark.svg") center/contain no-repeat;
 filter:drop-shadow(0 0 14px color-mix(in srgb,var(--ui-accent) 30%,transparent));
}
html[data-aeotee-theme] body #loginBox .studio-login-graphic::after{
 content:"";position:absolute;inset:8%;z-index:0;border-radius:50%;
 border:1px solid color-mix(in srgb,var(--ui-accent) 25%,transparent);
 box-shadow:0 0 54px color-mix(in srgb,var(--ui-accent) 8%,transparent) inset;
}
html[data-aeotee-theme] body #loginBox .studio-login-graphic i{
 display:block!important;position:absolute;border-radius:50%!important;
 background:none!important;box-shadow:none!important;
 border:1px solid color-mix(in srgb,var(--ui-accent) 20%,transparent)!important;
}
html[data-aeotee-theme] body #loginBox .studio-login-graphic i:nth-child(1){
 inset:2%!important;transform:rotate(-27deg) scaleY(.76)!important;
}
html[data-aeotee-theme] body #loginBox .studio-login-graphic i:nth-child(2){
 inset:10%!important;transform:rotate(32deg) scaleX(.78)!important;
 border-color:color-mix(in srgb,var(--ui-accent) 32%,transparent)!important;
}
html[data-aeotee-theme] body #loginBox .studio-login-graphic i:nth-child(3){
 inset:19%!important;transform:none!important;
 border-style:dashed!important;opacity:.4!important;
}
@media(max-width:980px){
 html[data-aeotee-theme] body #loginBox.auth-shell .auth-card{width:min(92%,484px)!important}
}
@media(max-width:699px){
 html[data-aeotee-theme] body #loginBox.auth-shell .auth-card{
  width:min(100%,460px)!important;border-radius:19px!important;padding:23px!important;
 }
 html[data-aeotee-theme] body #loginBox .studio-login-graphic{display:none!important}
}
@media(prefers-reduced-motion:reduce){
 html[data-aeotee-theme] body #loginBox.auth-shell .auth-submit,
 html[data-aeotee-theme] body #loginBox.auth-shell .auth-fields input{transition:none!important}
}

/* Chat-only is a chat utility, not an overlay on the first composer button.
   Reserve a real 60px utility lane and inherit all six theme tokens. */
@media(min-width:761px){
 html[data-aeotee-theme] body .app.premium-ready .chat>#aeoteeChatOnlyToggle{
  position:absolute!important;left:12px!important;bottom:calc(12px + env(safe-area-inset-bottom))!important;
  width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
  display:grid!important;place-items:center!important;padding:10px!important;
  border:1px solid var(--ui-line)!important;border-radius:13px!important;
  background:var(--ui-raised)!important;color:var(--ui-text)!important;
  box-shadow:0 1px 6px #00000017!important;
 }
 html[data-aeotee-theme] body .app.premium-ready .chat>#aeoteeChatOnlyToggle[aria-pressed="true"]{
  background:var(--ui-accent-solid)!important;color:var(--ui-accent-ink)!important;
  border-color:var(--ui-accent)!important;box-shadow:none!important;
 }
 html[data-aeotee-theme] body .app.premium-ready .chat>#aeoteeChatOnlyToggle:focus-visible{
  outline:2px solid var(--ui-accent)!important;outline-offset:2px!important;
 }
 html[data-aeotee-theme] body .app.premium-ready .chat .composer{
  box-sizing:border-box!important;margin-left:66px!important;
  width:calc(100% - 78px)!important;min-width:0!important;
 }
}
/* Keep mobile composer sizing owned by its existing responsive controller.
   No desktop utility lane CSS applies below 761px. */

/* Match the navigation fullscreen utility with the selected theme. */
html[data-aeotee-theme] body .app.premium-ready .studio-dock #aeoteeFullscreenMenuAction{
 background:var(--ui-raised)!important;color:var(--ui-accent)!important;
 border:1px solid var(--ui-line)!important;border-radius:13px!important;
 box-shadow:0 1px 6px #00000018!important;
}
html[data-aeotee-theme] body .app.premium-ready .studio-dock #aeoteeFullscreenMenuAction[aria-pressed="true"]{
 background:var(--ui-accent-solid)!important;color:var(--ui-accent-ink)!important;
 border-color:var(--ui-accent)!important;
}

/* AEOTEE v12: shared visual treatment for authenticated Security, Vault and Devices.
   All approval, revocation, secure-gate, warning and encryption behavior remains intact. */
html[data-aeotee-theme] body .app.premium-ready>.signature-security-hub{
 background:var(--ui-panel)!important;color:var(--ui-text)!important;
 border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] body .app.premium-ready .signature-hub-header{
 background:var(--ui-raised)!important;border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] body .app.premium-ready .signature-hub-heading :is(h2,p),
html[data-aeotee-theme] body .app.premium-ready .signature-hub-tabs :is(h3,p),
html[data-aeotee-theme] body .app.premium-ready .signature-hub-status strong,
html[data-aeotee-theme] body .app.premium-ready .signature-connect-card h3{
 color:var(--ui-text)!important;
}
html[data-aeotee-theme] body .app.premium-ready :is(.signature-hub-status p,.signature-hub-feature small,.signature-connect-card p){
 color:var(--ui-muted)!important;
}
html[data-aeotee-theme] body .app.premium-ready :is(.signature-hub-hero,.signature-hub-feature,.signature-hub-checks button,.signature-connect-card){
 background:var(--ui-raised)!important;color:var(--ui-text)!important;
 border:1px solid var(--ui-line)!important;box-shadow:none!important;
}
html[data-aeotee-theme] body .app.premium-ready :is(.signature-hub-shield,.signature-feature-icon,.signature-hub-close){
 background:var(--ui-panel)!important;color:var(--ui-accent)!important;
 border:1px solid var(--ui-line)!important;box-shadow:none!important;
}
html[data-aeotee-theme] body .app.premium-ready :is(.signature-hub-kicker,.signature-connect-kicker,.signature-hub-checks button span){
 color:var(--ui-accent)!important;
}
html[data-aeotee-theme] body .app.premium-ready .signature-hub-scroll{scrollbar-color:var(--ui-line) transparent!important;}
html[data-aeotee-theme] body .app.premium-ready .signature-connect-card button{
 background:var(--ui-accent-solid)!important;color:var(--ui-accent-ink)!important;
 border-color:var(--ui-accent)!important;box-shadow:none!important;
}
html[data-aeotee-theme] body .app.premium-ready .signature-security-hub button:focus-visible{
 outline:2px solid var(--ui-accent)!important;outline-offset:2px!important;
}
/* Vault: no changes to its blocking gate, input handlers or error semantics. */
html[data-aeotee-theme] body .aeotee-phantom-layer{
 background:color-mix(in srgb,var(--ui-bg) 78%,#000)!important;
}
html[data-aeotee-theme] body .aeotee-phantom-layer .aeotee-phantom-card{
 background:var(--ui-panel)!important;color:var(--ui-text)!important;
 border-color:var(--ui-line)!important;box-shadow:var(--ui-shadow)!important;
}
html[data-aeotee-theme] body .aeotee-phantom-layer :is(.aeotee-phantom-top h2,.aeotee-phantom-form label){
 color:var(--ui-text)!important;
}
html[data-aeotee-theme] body .aeotee-phantom-layer :is(.aeotee-phantom-kicker,.aeotee-phantom-star){
 color:var(--ui-accent)!important;
}
html[data-aeotee-theme] body .aeotee-phantom-layer :is(.aeotee-phantom-caption,.aeotee-phantom-input-hint){
 color:var(--ui-muted)!important;
}
html[data-aeotee-theme] body .aeotee-phantom-layer .aeotee-phantom-note:not([data-kind="error"]){
 color:var(--ui-muted)!important;background:var(--ui-raised)!important;
 border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] body .aeotee-phantom-layer .aeotee-phantom-note[data-kind="error"]{
 color:var(--ui-danger)!important;
}
html[data-aeotee-theme] body .aeotee-phantom-layer :is(.aeotee-phantom-close,.aeotee-phantom-reveal,.aeotee-phantom-recovery-toggle){
 background:var(--ui-raised)!important;color:var(--ui-text)!important;
 border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] body .aeotee-phantom-layer :is(.aeotee-phantom-form input,.aeotee-phantom-actions button:not(.primary)){
 background:var(--ui-input)!important;color:var(--ui-text)!important;
 border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] body .aeotee-phantom-layer :is(.aeotee-phantom-actions .primary,.aeotee-phantom-form .primary){
 background:var(--ui-accent-solid)!important;color:var(--ui-accent-ink)!important;
 border-color:var(--ui-accent)!important;box-shadow:none!important;
}
html[data-aeotee-theme] body #aeoteeVaultGuard{
 background:var(--ui-bg)!important;color:var(--ui-text)!important;
}
html[data-aeotee-theme] body #aeoteeVaultGuard .aeotee-v2-guard-card{
 color:var(--ui-text)!important;background:var(--ui-panel)!important;
 border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] body .aeotee-phantom-layer :is(input,button):focus-visible{
 outline:2px solid var(--ui-accent)!important;outline-offset:2px!important;
}
/* Device Garden: preserve signed rename/revoke operations and destructive red. */
html[data-aeotee-theme] body .aeotee-garden-overlay{
 background:color-mix(in srgb,var(--ui-bg) 80%,#000)!important;
}
html[data-aeotee-theme] body .aeotee-garden-panel{
 background:var(--ui-panel)!important;color:var(--ui-text)!important;
 border-color:var(--ui-line)!important;box-shadow:var(--ui-shadow)!important;
}
html[data-aeotee-theme] body .aeotee-garden-panel :is(.aeotee-garden-head h2,.aeotee-garden-device-text strong){
 color:var(--ui-text)!important;
}
html[data-aeotee-theme] body .aeotee-garden-panel :is(.aeotee-garden-eyebrow,.aeotee-garden-summary){
 color:var(--ui-accent)!important;
}
html[data-aeotee-theme] body .aeotee-garden-panel :is(.aeotee-garden-intro,.aeotee-garden-info,.aeotee-garden-device-text span,.aeotee-garden-device-text small,.aeotee-garden-empty){
 color:var(--ui-muted)!important;
}
html[data-aeotee-theme] body .aeotee-garden-panel .aeotee-garden-device{
 background:var(--ui-raised)!important;border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] body .aeotee-garden-panel .aeotee-garden-device-icon{
 background:var(--ui-accent-solid)!important;color:var(--ui-accent-ink)!important;
 box-shadow:none!important;
}
html[data-aeotee-theme] body .aeotee-garden-panel :is(.aeotee-garden-close,.aeotee-garden-refresh,.aeotee-garden-row-actions button:not(.is-danger),.aeotee-garden-inline button:not(.is-danger):not(.is-primary)){
 background:var(--ui-panel)!important;color:var(--ui-text)!important;
 border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] body .aeotee-garden-panel .aeotee-garden-inline input{
 color:var(--ui-text)!important;background:var(--ui-input)!important;
 border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] body .aeotee-garden-panel .aeotee-garden-inline .is-primary{
 color:var(--ui-accent-ink)!important;background:var(--ui-accent-solid)!important;
 border-color:var(--ui-accent)!important;
}
html[data-aeotee-theme] body .aeotee-garden-panel :is(.aeotee-garden-warning,.aeotee-garden-inline-error,.is-danger){
 color:var(--ui-danger)!important;
}
html[data-aeotee-theme] body .aeotee-garden-panel .is-danger{
 background:transparent!important;border-color:var(--ui-danger)!important;
}
html[data-aeotee-theme] body .aeotee-garden-panel :is(button,input):focus-visible{
 outline:2px solid var(--ui-accent)!important;outline-offset:2px!important;
}
@media(max-width:440px){
 html[data-aeotee-theme] body .aeotee-garden-row-actions{flex-wrap:wrap!important;}
 html[data-aeotee-theme] body .aeotee-garden-row-actions button{min-height:40px!important;}
 html[data-aeotee-theme] body .aeotee-phantom-layer .aeotee-phantom-card{
  max-height:calc(100dvh - 32px)!important;
 }
}
@media(prefers-reduced-motion:reduce){
 html[data-aeotee-theme] body .aeotee-phantom-layer .aeotee-phantom-mascot{
  animation:none!important;
 }
}

/* AEOTEE v13 audio-only call chrome: Day/Night/AMOLED/Couples.
   Only voice-call paint is changed; RTC or PIP geometry remains authoritative. */
html[data-aeotee-theme] body dialog.aeotee-peer-call-dialog.aeotee-call-stage-dialog.aeotee-call-audio-dialog{
 background:var(--ui-panel)!important;color:var(--ui-text)!important;
 border:1px solid var(--ui-line)!important;box-shadow:var(--ui-shadow)!important;
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog.aeotee-call-audio-dialog>h2{
 color:var(--ui-text)!important;
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog.aeotee-call-audio-dialog>p{
 color:var(--ui-muted)!important;
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog.aeotee-call-audio-dialog>.aeotee-peer-call-actions{
 background:transparent!important;color:var(--ui-text)!important;
 border:0!important;box-shadow:none!important;backdrop-filter:none!important;
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog.aeotee-call-audio-dialog.aeotee-call-connected
 .aeotee-peer-call-actions>button[data-call-role]:not([data-call-role="hangup"]){
 color:var(--ui-text)!important;background:var(--ui-raised)!important;
 border:1px solid var(--ui-line)!important;
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog.aeotee-call-audio-dialog.aeotee-call-connected
 .aeotee-peer-call-actions>button[data-call-role]:not([data-call-role="hangup"])[aria-pressed="true"]{
 color:var(--ui-accent-ink)!important;background:var(--ui-accent-solid)!important;
 border-color:var(--ui-accent)!important;
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog.aeotee-call-audio-dialog .aeotee-call-device select{
 color:var(--ui-text)!important;background:var(--ui-input)!important;
 border:1px solid var(--ui-line)!important;
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog.aeotee-call-audio-dialog>.aeotee-call-layout-tools{
 background:var(--ui-panel)!important;color:var(--ui-text)!important;
 border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] body .aeotee-call-stage-dialog.aeotee-call-audio-dialog .aeotee-call-layout-btn{
 background:var(--ui-raised)!important;color:var(--ui-text)!important;
 border-color:var(--ui-line)!important;
}
html[data-aeotee-theme="amoled"] body dialog.aeotee-call-stage-dialog.aeotee-call-audio-dialog{
 background:#000000!important;box-shadow:none!important;
}

/* Shared readable UI typography (explicit Android font avoids custom system font remapping). */
html[data-aeotee-theme] body .app.premium-ready .chat :is(
 .chat-header .person b,.chat-header .person small,
 #messages>.bubble .bubble-body,#messages>.bubble .message-protection,
 #messages>.bubble .bubble-meta,#messages>.bubble .bubble-meta span,
 #messages>.bubble .message-decrypt-retry,
 #aeoteeChatSurface>.aeotee-scroll-latest,
 .composer #messageInput
){font-family:Roboto,"Noto Sans",Arial,sans-serif!important;}
html[data-aeotee-theme] body .app.premium-ready .chat .composer #messageInput::placeholder{
 font-family:Roboto,"Noto Sans",Arial,sans-serif!important;
}
html[data-aeotee-theme] body .aeotee-private-search-panel{font-family:Roboto,"Noto Sans",Arial,sans-serif!important;}
html[data-aeotee-theme] body .aeotee-private-search-panel input{
 font:500 13px/1.4 Roboto,"Noto Sans",Arial,sans-serif!important;
}
html[data-aeotee-theme] body .aeotee-private-search-panel :is(input,button):focus-visible{
 outline:2px solid var(--ui-accent)!important;outline-offset:2px!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble .attachment-preview.aeotee-media-error{
 display:flex!important;flex-direction:column!important;align-items:flex-start!important;
 gap:6px!important;max-width:100%;min-width:0!important;min-height:0!important;
 margin:0 0 6px!important;padding:0!important;background:transparent!important;
 border:0!important;box-shadow:none!important;text-align:start!important;
 color:var(--ui-text)!important;font-family:Roboto,"Noto Sans",Arial,sans-serif!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble .aeotee-media-error-label{
 display:block!important;max-width:100%;margin:0!important;overflow-wrap:anywhere;
 font:500 12px/1.4 Roboto,"Noto Sans",Arial,sans-serif!important;color:var(--ui-muted)!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble .aeotee-media-error-retry{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 min-width:0!important;min-height:40px!important;width:auto!important;margin:0!important;
 padding:7px 12px!important;background:var(--ui-raised)!important;
 border:1px solid var(--ui-line)!important;border-radius:10px!important;
 color:var(--ui-text)!important;box-shadow:none!important;
 font:600 12px/1.3 Roboto,"Noto Sans",Arial,sans-serif!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble .aeotee-media-error-retry:focus-visible{
 outline:2px solid var(--ui-accent)!important;outline-offset:2px!important;
}

/* AEOTEE v14 visual consistency: presentation-only boundary.
   This is the sole last-pass paint layer for approved themes. It must never
   modify message data, encryption, event handlers, auth or PWA storage.
   Composer geometry and attachment tray geometry remain unchanged. */
html[data-aeotee-theme]{
 --ae-quiet-warning:color-mix(in srgb,var(--ui-raised) 94%,var(--ui-danger) 6%);
 --ae-quiet-line:color-mix(in srgb,var(--ui-line) 76%,var(--ui-accent) 24%);
 --ae-quiet-shadow:0 3px 12px #00000016;
}
html[data-aeotee-theme="amoled"]{
 --ae-quiet-warning:#0b1517;
 --ae-quiet-shadow:none;
}
/* Compact, readable warnings rather than giant mismatched pink/purple cards. */
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble:is(
 [data-content-protection="unavailable"],
 [data-content-protection="recovery-required"],
 [data-content-protection="identity-mismatch"],
 [data-content-protection="history-unavailable"],
 [data-content-protection="unsupported"]){
 flex:0 0 auto!important;width:fit-content!important;
 max-width:min(80%,350px)!important;min-width:0!important;min-height:0!important;
 margin-block:2px!important;padding:8px 11px 7px!important;
 background:var(--ae-quiet-warning)!important;
 border:1px solid var(--ae-quiet-line)!important;
 border-inline-start:3px solid var(--ui-accent)!important;
 border-radius:14px!important;color:var(--ui-text)!important;
 box-shadow:var(--ae-quiet-shadow)!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble.outgoing:is(
 [data-content-protection="unavailable"],[data-content-protection="recovery-required"],
 [data-content-protection="identity-mismatch"],[data-content-protection="history-unavailable"],
 [data-content-protection="unsupported"]){
 align-self:flex-end!important;margin-inline-start:auto!important;margin-inline-end:0!important;
 border-radius:14px 14px 5px 14px!important;
 border-inline-start:1px solid var(--ae-quiet-line)!important;
 border-inline-end:3px solid var(--ui-accent)!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble.incoming:is(
 [data-content-protection="unavailable"],[data-content-protection="recovery-required"],
 [data-content-protection="identity-mismatch"],[data-content-protection="history-unavailable"],
 [data-content-protection="unsupported"]){
 align-self:flex-start!important;margin-inline-start:0!important;margin-inline-end:auto!important;
 border-radius:14px 14px 14px 5px!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble:is(
 [data-content-protection="unavailable"],[data-content-protection="recovery-required"],
 [data-content-protection="identity-mismatch"],[data-content-protection="history-unavailable"],
 [data-content-protection="unsupported"]) .bubble-body{
 color:var(--ui-text)!important;font:500 13px/1.42 Roboto,"Noto Sans",Arial,sans-serif!important;
 overflow-wrap:anywhere!important;white-space:normal!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble:is(
 [data-content-protection="unavailable"],[data-content-protection="recovery-required"],
 [data-content-protection="identity-mismatch"],[data-content-protection="history-unavailable"],
 [data-content-protection="unsupported"]) .bubble-body::before{
 content:none!important;margin:0!important;padding:0!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble:is(
 [data-content-protection="unavailable"],[data-content-protection="recovery-required"],
 [data-content-protection="identity-mismatch"],[data-content-protection="history-unavailable"],
 [data-content-protection="unsupported"]) .message-protection{
 color:var(--ui-muted)!important;font:600 10px/1.3 Roboto,"Noto Sans",Arial,sans-serif!important;
 letter-spacing:.02em!important;margin:0 0 3px!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble:is(
 [data-content-protection="unavailable"],[data-content-protection="recovery-required"],
 [data-content-protection="identity-mismatch"],[data-content-protection="history-unavailable"],
 [data-content-protection="unsupported"]) :is(.bubble-meta,.bubble-meta span,.timestamp,.read-receipt){
 color:var(--ui-muted)!important;opacity:1!important;
 font:500 10.5px/1.35 Roboto,"Noto Sans",Arial,sans-serif!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble:is(
 [data-content-protection="unavailable"],[data-content-protection="recovery-required"],
 [data-content-protection="identity-mismatch"],[data-content-protection="history-unavailable"],
 [data-content-protection="unsupported"]) .bubble-meta{
 display:flex!important;justify-content:flex-end!important;align-items:center!important;
 gap:5px!important;margin-top:6px!important;min-height:14px!important;flex-wrap:wrap!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble .message-decrypt-retry{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 min-height:40px!important;max-width:100%!important;margin:7px 0 0!important;
 padding:7px 11px!important;border:1px solid var(--ui-line)!important;
 border-radius:11px!important;background:var(--ui-panel)!important;
 color:var(--ui-text)!important;box-shadow:none!important;
 font:600 12px/1.3 Roboto,"Noto Sans",Arial,sans-serif!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble .message-decrypt-retry:hover:not(:disabled){
 background:var(--ui-hover)!important;border-color:var(--ui-accent)!important;
 color:var(--ui-text)!important;
}
html[data-aeotee-theme] body .app.premium-ready #messages>.bubble .message-decrypt-retry:focus-visible{
 outline:2px solid var(--ui-accent)!important;outline-offset:2px!important;
}
/* The latest control owns a flex row instead of covering a message card.
   The scroll logic still controls .is-visible, its ARIA state and clicks. */
html[data-aeotee-theme] body .app.premium-ready #aeoteeChatSurface>#messages{order:0!important;}
html[data-aeotee-theme] body .app.premium-ready #aeoteeChatSurface>#aeoteeCallActions{order:1!important;}
html[data-aeotee-theme] body .app.premium-ready #aeoteeChatSurface>.composer{order:3!important;}
html[data-aeotee-theme] body .app.premium-ready #aeoteeChatSurface>.aeotee-scroll-latest{
 position:relative!important;inset:auto!important;align-self:flex-end!important;
 order:2!important;flex:0 0 0px!important;max-height:0!important;
 min-height:0!important;margin:0!important;padding:0!important;
 border-width:0!important;overflow:hidden!important;
 background:var(--ui-panel)!important;color:var(--ui-text)!important;
 border-color:var(--ui-line)!important;
 box-shadow:var(--ae-quiet-shadow)!important;
 opacity:0!important;visibility:hidden!important;
}
html[data-aeotee-theme] body .app.premium-ready #aeoteeChatSurface>.aeotee-scroll-latest.is-visible{
 flex:0 0 auto!important;max-height:40px!important;min-height:34px!important;
 margin:3px 12px 2px!important;padding:0 12px!important;
 border-width:1px!important;border-style:solid!important;
 border-radius:999px!important;opacity:1!important;visibility:visible!important;
 font:650 12px/1.2 Roboto,"Noto Sans",Arial,sans-serif!important;
}
html[data-aeotee-theme] body .app.premium-ready #aeoteeChatSurface>.aeotee-scroll-latest.has-new{
 background:var(--ui-raised)!important;color:var(--ui-text)!important;
 border-color:var(--ui-accent)!important;
}
html[data-aeotee-theme] body .app.premium-ready #aeoteeChatSurface>.aeotee-scroll-latest.has-new::after{
 background:var(--ui-accent-solid)!important;
}
/* Secure verification remains an exclusive, locked full-screen state.
   This block only refines its visible card, label and controls. */
html[data-aeotee-theme] body #aeoteeVaultGuard{
 background:var(--ui-bg)!important;color:var(--ui-text)!important;
}
html[data-aeotee-theme] body #aeoteeVaultGuard .aeotee-v2-guard-card{
 width:min(100%,430px)!important;max-width:430px!important;
 padding:clamp(21px,5vw,32px)!important;
 background:var(--ui-panel)!important;color:var(--ui-text)!important;
 border:1px solid var(--ui-line)!important;border-top:2px solid var(--ui-accent)!important;
 border-radius:22px!important;text-align:left!important;
 box-shadow:var(--ui-shadow)!important;
}
html[data-aeotee-theme] body #aeoteeVaultGuard .aeotee-phantom-kicker{
 display:block!important;color:var(--ui-muted)!important;
 font:700 10px/1.45 system-ui,sans-serif!important;
 letter-spacing:.15em!important;
}
html[data-aeotee-theme] body #aeoteeVaultGuard #aeoteeVaultGuardTitle{
 margin:14px 0 8px!important;color:var(--ui-text)!important;
 font:700 clamp(22px,5vw,28px)/1.18 system-ui,sans-serif!important;
 letter-spacing:-.035em!important;overflow-wrap:anywhere!important;
}
html[data-aeotee-theme] body #aeoteeVaultGuard #aeoteeVaultGuardText{
 color:var(--ui-muted)!important;font:450 14px/1.55 system-ui,sans-serif!important;
 margin:0 0 18px!important;opacity:1!important;overflow-wrap:anywhere!important;
}
html[data-aeotee-theme] body #aeoteeVaultGuard .aeotee-phantom-actions{
 gap:8px!important;align-items:stretch!important;margin-top:12px!important;
}
html[data-aeotee-theme] body #aeoteeVaultGuard .aeotee-phantom-actions button{
 flex:1 1 150px!important;min-height:44px!important;
 padding:10px 13px!important;border-radius:12px!important;
 font:650 13px/1.3 system-ui,sans-serif!important;
 box-shadow:none!important;
}
html[data-aeotee-theme] body #aeoteeVaultGuard #aeoteeVaultRetry{
 color:var(--ui-accent-ink)!important;background:var(--ui-accent-solid)!important;
 border:1px solid var(--ui-accent)!important;
}
html[data-aeotee-theme] body #aeoteeVaultGuard #aeoteeVaultSignOut{
 color:var(--ui-text)!important;background:var(--ui-raised)!important;
 border:1px solid var(--ui-line)!important;
}
html[data-aeotee-theme] body #aeoteeVaultGuard :is(#aeoteeVaultRetry,#aeoteeVaultSignOut):focus-visible{
 outline:2px solid var(--ui-accent)!important;outline-offset:2px!important;
}
/* Only repaint the existing composer; never move, hide, resize or rewire actions. */
html[data-aeotee-theme] body .app.premium-ready .chat .composer :is(#attachBtn,#gifBtn,#aeoteeGifBtn,#micBtn,#aeoteeCameraBtn){
 background:var(--ui-raised)!important;color:var(--ui-text)!important;
 border-color:var(--ui-line)!important;
}
html[data-aeotee-theme] body .app.premium-ready .chat .composer :is(button,input):focus-visible{
 outline:2px solid var(--ui-accent)!important;outline-offset:2px!important;
}
@media(max-width:760px){
 html[data-aeotee-theme] body .app.premium-ready #messages>.bubble:is(
  [data-content-protection="unavailable"],[data-content-protection="recovery-required"],
  [data-content-protection="identity-mismatch"],[data-content-protection="history-unavailable"],
  [data-content-protection="unsupported"]){
  max-width:min(82%,340px)!important;padding:8px 10px 7px!important;
 }
 html[data-aeotee-theme] body .app.premium-ready #aeoteeChatSurface>.aeotee-scroll-latest.is-visible{
  margin:3px 9px 2px!important;min-height:34px!important;
 }
}
@media(max-width:360px){
 html[data-aeotee-theme] body #aeoteeVaultGuard{padding:12px!important;}
 html[data-aeotee-theme] body #aeoteeVaultGuard .aeotee-v2-guard-card{padding:19px!important;}
 html[data-aeotee-theme] body #aeoteeVaultGuard .aeotee-phantom-actions button{flex-basis:100%!important;}
}
@media(prefers-reduced-motion:reduce){
 html[data-aeotee-theme] body #aeoteeVaultGuard .aeotee-phantom-actions button{
  transition:none!important;animation:none!important;
 }
}
@media(forced-colors:active){
 html[data-aeotee-theme] body #aeoteeVaultGuard .aeotee-v2-guard-card,
 html[data-aeotee-theme] body .app.premium-ready #messages>.bubble[data-content-protection]{
  border:2px solid CanvasText!important;
 }
}


