/* AEOTEE Mocha: approved presentation only. No RTC, account, or crypto policy changes. */
:root{--mocha-bg:#100e11;--mocha-surface:#211b20;--mocha-card:#30252b;--mocha-line:#5b4650;--mocha-text:#fbf3ef;--mocha-muted:#bcabb2;--mocha-coral:#ff977f;--mocha-lilac:#b79afd;--mocha-mint:#93e5ce;}
body{background:radial-gradient(ellipse at 93% 0%,#73493830,transparent 48%),#100e11!important;color:var(--mocha-text);}
.app{background:#171217!important;border-color:#644d5355!important;box-shadow:0 20px 65px #0007!important}
.app .sidebar{background:linear-gradient(170deg,#241b21,#19151a 64%,#171317)!important;border-color:#6d545744!important}
.app .brand{color:var(--mocha-text)!important;letter-spacing:.14em}
.app .brand-mark{background:linear-gradient(135deg,#ffb596,#a67bd5)!important;border-color:#e6adab66!important}
.app .sidebar .search input{background:#2a2229!important;border:1px solid #654a5659!important;color:#fff2ec!important}
.app .chat{background:linear-gradient(150deg,#191319,#120f15 65%,#19131a)!important}
.app .chat-header{background:#211a20ed!important;border-bottom:1px solid #79585a36!important}
.app .chat-header .person b{color:#fff2ed!important}
.app .chat-header .person small{color:#c5adb6!important}
.app .bubble.incoming,.app .incoming.bubble{background:#30262e!important;border-color:#795f695c!important;color:#fff2ed!important}
.app .bubble.outgoing,.app .outgoing.bubble{background:linear-gradient(130deg,#673e5f,#92536f)!important;border-color:#d58fa277!important;color:#fff7f2!important}
.app .composer{background:#211920f7!important;border-color:#77555f50!important}
.app .composer input{background:#342933!important;border-color:#9c707255!important;border-radius:22px!important;color:#fff7f4!important}
.app .composer .send{background:linear-gradient(120deg,#ffa17f,#b47af3)!important;border-color:#ffb6a283!important;color:#2c1725!important;box-shadow:0 8px 24px #dc777741!important}
.app .composer button:not(.send){border-radius:15px!important;background:#32262f!important;color:#f0cfcb!important}
.app button:focus-visible,.app input:focus-visible{outline-color:var(--mocha-coral)!important}
.app.mocha-ready #aeoteeLinkedDevicesBtn,.app.mocha-ready #aeoteeSecurityBtn{display:none!important}
.app .sidebar .mocha-settings-entry{margin:10px 14px;padding:13px 15px;display:flex;align-items:center;gap:10px;width:calc(100% - 28px);border:1px solid #aa7b8059;border-radius:16px;background:linear-gradient(110deg,#43303c,#2a232d);color:#fbe7e0;font-weight:730;cursor:pointer}
.app .sidebar .mocha-settings-entry:hover{background:#503842}
.app .chat-header .actions{display:flex;align-items:center;gap:7px}
.app .chat-header .actions .mocha-call-launch{width:42px;height:42px;min-width:42px;padding:0;display:grid;place-items:center;border:1px solid #c98b9a5c;border-radius:50%;background:linear-gradient(125deg,#7e4c69,#4b3153);color:#ffeae5;box-shadow:0 4px 14px #130c16aa;cursor:pointer;transition:transform .2s ease,background .2s ease}
.app .chat-header .actions .mocha-call-launch[data-kind="video"]{background:linear-gradient(135deg,#65427d,#5b438a)}
.app .chat-header .actions .mocha-call-launch:hover{transform:translateY(-2px)}
.app .chat-header .actions .mocha-call-launch:active{transform:scale(.94)}
.app .chat-header .actions .mocha-call-launch[hidden]{display:none!important}
.app.mocha-ready:has(.mocha-call-launch:not([hidden])) .chat-header #aeoteeAudioCheckBtn,.app.mocha-ready:has(.mocha-call-launch:not([hidden])) .chat-header #aeoteeVideoCheckBtn{display:none!important}
.app.mocha-ready .aeotee-call-actions-row>button[id^="aeotee"]{display:none!important}
.app.mocha-ready .aeotee-call-actions-row{padding:0!important;gap:0!important;min-height:0!important;border:0!important;background:transparent!important}
.app.mocha-ready .aeotee-call-actions-row .aeotee-call-toast:not([hidden]){padding:7px 12px!important}
.mocha-panel{box-sizing:border-box;border:1px solid #9a737c70;border-radius:24px;background:linear-gradient(155deg,#33272e,#1b161d 75%);color:#fff6f2;box-shadow:0 25px 85px #000a;max-height:min(84dvh,690px);overflow-y:auto;width:min(440px,calc(100vw - 22px));padding:22px;animation:mocha-enter .24s cubic-bezier(.2,.8,.2,1);font:14px/1.5 system-ui,-apple-system,sans-serif}
.mocha-panel::backdrop{background:#080509b8;backdrop-filter:blur(8px)}
.mocha-panel button{cursor:pointer;font:inherit}
.mocha-panel h2{font-size:24px;letter-spacing:-.04em;margin:4px 0 6px}
.mocha-panel .mocha-eyebrow{font-size:11px;text-transform:uppercase;color:#ffac96;font-weight:780;letter-spacing:.14em}
.mocha-panel p{color:#c6b4bd;margin:0 0 17px}
.mocha-panel .mocha-head{display:flex;align-items:start;justify-content:space-between;gap:12px}
.mocha-panel .mocha-close{background:#473740;border:1px solid #82626d87;color:#fff2ec;width:38px;height:38px;flex:0 0 38px;border-radius:14px;font-size:19px}
.mocha-panel .mocha-option{width:100%;min-height:74px;text-align:left;display:flex;align-items:center;gap:13px;background:#3a2b35;border:1px solid #71586486;border-radius:15px;margin:10px 0;padding:13px;color:#fff6f1;transition:transform .18s ease,border-color .18s ease,background .18s ease}
.mocha-panel .mocha-option:hover,.mocha-panel .mocha-option[aria-checked="true"]{border-color:#ffa898!important;background:#493241}
.mocha-panel .mocha-option:active{transform:scale(.985)}
.mocha-panel .mocha-option strong{display:block;font-size:14px}
.mocha-panel .mocha-option small{display:block;color:#d1bfc7;font-size:11px;line-height:1.48;margin-top:3px}
.mocha-panel .mocha-provider-mark{width:44px;height:44px;flex:0 0 44px;border-radius:14px;display:grid;place-items:center;background:#4b3541}
.mocha-panel .mocha-provider-mark svg{width:34px;height:34px}
.mocha-panel .mocha-radio{margin-left:auto;width:20px;height:20px;border-radius:50%;border:2px solid #957987;flex:0 0 20px}
.mocha-panel [aria-checked="true"] .mocha-radio{background:radial-gradient(circle,#fff7eb 0 36%,#e98f8a 39% 100%);border-color:#ffb29e}
.mocha-panel .mocha-primary{border:0;border-radius:16px;min-height:49px;width:100%;background:linear-gradient(110deg,#ffae88,#d48da9);color:#321b24;font-weight:800;margin-top:10px}
.mocha-panel .mocha-primary:disabled{opacity:.42;cursor:not-allowed}
.mocha-panel .mocha-network{padding:10px 12px;border-radius:12px;background:#261f27;border:1px solid #725c6057;color:#d8bcc4;font-size:11px;margin:8px 0 13px}
.mocha-panel .mocha-setting-card{width:100%;text-align:left;display:flex;gap:12px;align-items:center;background:#302630;border:1px solid #7f606664;border-radius:16px;color:#fff6ef;padding:16px;margin:11px 0}
.mocha-panel .mocha-setting-card .ico{font-size:22px;display:grid;place-items:center;width:38px;height:38px;background:#583c52;border-radius:12px}
.mocha-panel .mocha-setting-card small{display:block;font-size:11px;color:#c6b3bd;margin-top:3px}
.mocha-panel .mocha-back{border:0;background:none;color:#ffaf9d;padding:4px 0 12px;font-weight:750}
.mocha-panel .mocha-nav-hide[hidden]{display:none!important}
.mocha-panel [hidden]{display:none!important}
.connect-gesture-menu{background:#2e232c!important;color:#fff4ed!important;border:1px solid #ad818c75!important;border-radius:18px!important;box-shadow:0 16px 42px #0008!important;backdrop-filter:blur(16px)!important;animation:mocha-enter .16s ease both}
.connect-gesture-menu button{color:#fff0e9!important;border-radius:12px!important;transition:transform .16s ease,background .16s ease!important}
.connect-gesture-menu button:hover{background:#533a49!important}
.connect-gesture-menu button:active{transform:scale(.94)}
.connect-gesture-menu .danger{color:#ffa59d!important}
.connect-reaction-picker{border-radius:999px!important;background:#332434!important}
.connect-reaction-picker button:hover{background:#665063!important;transform:translateY(-3px)}
.connect-reaction-customizer .reaction-title{color:#ffdecf}
.connect-reaction-customizer input{background:#594250;color:#fff7eb;border:1px solid #ad818c}
.app .bubble:not(.swiping){transition:transform .2s cubic-bezier(.2,.8,.2,1)}
@keyframes mocha-enter{from{opacity:0;transform:translateY(10px) scale(.986)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:700px){
 .app .chat-header .actions .mocha-call-launch{width:39px;height:39px;min-width:39px}
 .app .chat-header .actions{gap:5px}
}
@media(prefers-reduced-motion:reduce){.mocha-panel,.connect-gesture-menu{animation:none!important}.app .bubble,.mocha-panel button,.app .chat-header .actions button{transition:none!important}}

/* Existing Security Center remains the source of truth; this is visual polish only. */
#aeoteeSecurityDialog.a2s-backdrop{background:#09060bb8!important}
#aeoteeSecurityDialog .a2s-panel{background:linear-gradient(160deg,#382830,#1d161c)!important;border-color:#a878806e!important;border-radius:24px!important;color:#fff4ef!important}
#aeoteeSecurityDialog .a2s-card{background:#32262e!important;border-color:#805f6a77!important;color:#fff4ef!important;border-radius:16px!important}
#aeoteeSecurityDialog .a2s-card span{color:#e4b5ad!important}
#aeoteeSecurityDialog .a2s-head h2{color:#fff2ed!important}
#aeoteeSecurityDialog .a2s-msg{background:#65415455!important;color:#ffe7dd!important}
#aeoteeSecurityDialog .a2s-actions button,#aeoteeSecurityDialog .a2s-panel button.primary,#aeoteeSecurityDialog .a2s-subactions button{background:linear-gradient(120deg,#ffac89,#c57da0)!important;color:#2c1720!important;border:1px solid #ffbbac88!important}
#aeoteeSecurityDialog .a2s-actions button.secondary,#aeoteeSecurityDialog .a2s-panel button.secondary{background:#44313d!important;color:#fae7e5!important}


/* Shared audio/video mode switch — real eligibility comes from original RTC controls. */
#mochaCallPicker.mocha-panel{max-height:min(90dvh,700px);overflow-y:auto;overscroll-behavior:contain}
#mochaCallPicker .mocha-call-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:9px;margin:8px 0 13px}
#mochaCallPicker .mocha-call-mode{display:flex;align-items:center;justify-content:center;gap:9px;
 min-width:0;min-height:49px;padding:9px 12px;
 border:1px solid #6e578d;border-radius:14px;background:#312a50;
 color:#f6eaff;cursor:pointer;font-size:12px;font-weight:750;transition:border-color .16s,background-color .16s}
#mochaCallPicker .mocha-call-mode svg{width:21px;height:21px;flex:0 0 21px}
#mochaCallPicker .mocha-call-mode[aria-pressed=true]{
 border-color:#f5a3db;background:linear-gradient(105deg,#744196,#b85f9c);
 box-shadow:inset 0 0 0 1px #f5a3db55;color:#fff8ff}
#mochaCallPicker .mocha-call-mode:disabled{cursor:not-allowed;opacity:.43;box-shadow:none}
#mochaCallPicker .mocha-call-mode:focus-visible{outline:2px solid #ffc9eb;outline-offset:2px}
#mochaCallPicker .mocha-network{margin-bottom:9px!important}
#mochaCallPicker .mocha-option{min-height:65px!important;padding:10px 12px!important;margin:7px 0!important}
@media(max-width:440px){#mochaCallPicker .mocha-call-mode{min-height:46px;padding:8px;font-size:11px}}
@media(prefers-reduced-motion:reduce){#mochaCallPicker .mocha-call-mode{transition:none}}


/* Root profile identity & photo editor. Colors inherit the six existing themes. */
#mochaSettings .aeotee-profile-hero{display:flex;align-items:center;gap:14px;width:100%;min-width:0;
 padding:14px;margin:1px 0 12px;background:var(--ui-raised);border:1px solid var(--ui-soft-line);
 border-radius:20px;color:var(--ui-text);text-align:left;cursor:pointer;font:inherit;transition:background .18s,transform .18s}
#mochaSettings .aeotee-profile-hero:hover{background:var(--ui-hover)}
#mochaSettings .aeotee-profile-hero:active{transform:scale(.987)}
#mochaSettings .aeotee-profile-hero-avatar{flex:0 0 60px;width:60px;height:60px;display:grid;place-items:center;
 border-radius:50%;overflow:hidden;background:var(--ui-panel);border:2px solid var(--ui-line);font-weight:750;font-size:25px}
#mochaSettings .aeotee-profile-hero-avatar img{width:100%;height:100%;object-fit:cover}
#mochaSettings .aeotee-profile-hero-name{display:grid;gap:5px;min-width:0;flex:1}
#mochaSettings .aeotee-profile-hero-name strong{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#mochaSettings .aeotee-profile-hero-name small{font-size:12px;color:var(--ui-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#mochaSettings .aeotee-profile-hero-camera{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;
 border-radius:12px;background:var(--ui-panel);color:var(--ui-accent);font-size:22px}
.aeotee-photo-editor{box-sizing:border-box;max-width:min(440px,calc(100vw - 24px));width:100%;
 max-height:calc(100dvh - 24px);padding:0;overflow:auto;border:1px solid var(--ui-line);
 border-radius:24px;background:var(--ui-panel);color:var(--ui-text);box-shadow:var(--ui-shadow)}
.aeotee-photo-editor::backdrop{background:#0009;backdrop-filter:blur(5px)}
.aeotee-photo-editor-card{padding:clamp(16px,4vw,24px);min-width:0}
.aeotee-photo-editor-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}
.aeotee-photo-editor h2{font:750 20px/1.3 inherit;color:var(--ui-text);margin:0}
.aeotee-photo-editor button{font:inherit;cursor:pointer}
.aeotee-photo-editor button:disabled{opacity:.48;cursor:wait}
.aeotee-photo-icon{border:0;width:40px;height:40px;border-radius:13px;background:var(--ui-raised);color:var(--ui-text);font-size:25px!important}
.aeotee-photo-editor-center{display:grid;gap:14px;justify-items:stretch}
.aeotee-photo-current{display:grid;place-items:center;margin:0 auto;width:158px;height:158px;overflow:hidden;
 border-radius:50%;border:3px solid var(--ui-line);background:var(--ui-raised)}
.aeotee-photo-current img{width:100%;height:100%;object-fit:cover}
.aeotee-photo-fallback{font-size:58px;color:var(--ui-muted)}
.aeotee-photo-description{text-align:center;font-size:13px;color:var(--ui-muted);margin:0}
.aeotee-photo-actions{display:flex;flex-wrap:wrap;gap:9px}
.aeotee-photo-actions button{flex:1 1 120px;min-height:46px;border-radius:13px;padding:10px 14px;border:1px solid var(--ui-line)}
.aeotee-photo-primary{background:var(--ui-accent-solid);color:var(--ui-accent-ink)}
.aeotee-photo-secondary{background:var(--ui-raised);color:var(--ui-text)}
.aeotee-photo-crop{display:grid;gap:14px}
.aeotee-photo-canvas{display:block;width:min(280px,100%);height:auto;aspect-ratio:1;object-fit:cover;
 justify-self:center;border-radius:22px;touch-action:none;cursor:grab;user-select:none}
.aeotee-photo-canvas:active{cursor:grabbing}
.aeotee-photo-zoom{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--ui-text)}
.aeotee-photo-zoom input{flex:1;min-width:0;accent-color:var(--ui-accent)}
.aeotee-photo-privacy,.aeotee-photo-status{font-size:12px;color:var(--ui-muted);margin:0;line-height:1.5;text-align:center}
.aeotee-photo-status[data-error=true]{color:var(--ui-danger)}
.aeotee-photo-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none}
.aeotee-photo-editor [hidden]{display:none!important}
.aeotee-photo-editor :focus-visible,#mochaSettings .aeotee-profile-hero:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
@media(max-width:680px){#mochaSettings .aeotee-profile-hero{padding:11px;gap:10px;border-radius:16px}
#mochaSettings .aeotee-profile-hero-avatar{flex-basis:54px;width:54px;height:54px}
.aeotee-photo-editor{max-height:calc(100dvh - 12px)}}
@media(prefers-reduced-motion:reduce){#mochaSettings .aeotee-profile-hero{transition:none}}
