
:root{color-scheme:dark;--bg:#0c1020;--shell:#101629;--sidebar:#11172a;--panel:#151d33;--panel2:#1c2640;--border:rgba(179,195,233,.1);--text:#f5f7ff;--muted:#8795b2;--pink:#ec70ce;--violet:#9886ff;--cyan:#65d8ec;--orange:#ffbc72;--radius:22px;--shadow:0 30px 100px rgba(0,0,0,.35);font-family:Inter,'Segoe UI',system-ui,-apple-system,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px;overflow:hidden;min-height:100dvh}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.38;cursor:not-allowed}a{color:var(--cyan)}[hidden]{display:none!important}em{font-style:normal;background:linear-gradient(110deg,#8bdce7 5%,#ae99fd 50%,#f1a3cf 95%);background-clip:text;-webkit-background-clip:text;color:transparent}.ambient{position:fixed;border-radius:50%;filter:blur(110px);opacity:.2;z-index:-1;pointer-events:none}.orb-a{background:#825bdd;width:420px;height:420px;top:-120px;left:-180px}.orb-b{background:#297da7;width:350px;height:350px;right:-170px;bottom:-100px}.muted{color:var(--muted)}.eyebrow,.overline{font-size:10px;font-weight:800;letter-spacing:.22em;color:var(--muted)}.brand-dot{color:#8fd9ec}.auth-screen{width:min(1100px,calc(100% - 48px));min-height:100dvh;margin:auto;display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}.auth-card{max-width:410px;padding:36px 0}.auth-logo{width:71px;height:71px;object-fit:contain;margin-bottom:12px}.brand-name{font-size:29px;font-weight:850;letter-spacing:-.075em;margin-bottom:5px}.auth-card h1{font-size:clamp(30px,3.2vw,46px);line-height:1.1;letter-spacing:-.05em;margin:26px 0 14px}.auth-subtitle{line-height:1.75;margin:0 0 30px}.auth-form{display:grid;gap:12px}.auth-form label{font-weight:700;font-size:12px}.auth-form input{height:51px;background:#1c2540;border:1px solid #34405b;color:white;padding:0 17px;border-radius:13px;outline:none;width:100%}.auth-form input:focus{border-color:var(--violet);box-shadow:0 0 0 3px #9886ff25}.auth-form #verifyFields{display:grid;gap:10px}.primary{border:0;background:linear-gradient(110deg,#78d7e9,#8e91fa 55%,#c189ee);color:#101329;font-weight:850;border-radius:13px;padding:14px 22px;box-shadow:0 10px 28px #5660e72b;transition:transform .15s}.primary:hover{transform:translateY(-2px)}.auth-submit{margin-top:5px;display:flex;justify-content:space-between}.auth-hint{font-size:11px;color:#7786a4;line-height:1.7}.legal-links{margin-top:26px;color:var(--muted);font-size:12px}.legal-links a{color:#aab7d4;text-decoration:none}.auth-art{min-height:550px;border-radius:30px;background:radial-gradient(circle at 50% 22%,#453b7d77,transparent 47%),linear-gradient(135deg,#1f2b4b,#0c1326);border:1px solid #ffffff12;display:flex;flex-direction:column;justify-content:end;padding:52px;position:relative;overflow:hidden}.auth-art .display-icon{position:absolute;inset:15px 40px 190px;display:flex;align-items:center;justify-content:center}.auth-art img{width:min(100%,390px);filter:drop-shadow(0 20px 42px #0006)}.art-overline{letter-spacing:.2em;font-size:11px;color:#9bafd2;margin-bottom:22px}.auth-art strong{font-size:clamp(28px,3.1vw,42px);line-height:1.19;letter-spacing:-.05em}.auth-art p{color:#a4b2ce;margin-bottom:0}.app-shell{display:grid;grid-template-columns:345px 1fr;position:absolute;inset:14px;max-width:1700px;margin:auto;background:#0e1528;border:1px solid var(--border);border-radius:25px;overflow:hidden;box-shadow:var(--shadow)}.sidebar{background:linear-gradient(180deg,#171d34,#10172a);border-right:1px solid var(--border);display:flex;flex-direction:column;min-width:0}.sidebar-top{display:flex;align-items:center;justify-content:space-between;padding:27px 25px 30px}.wordmark{display:flex;align-items:center;gap:9px;font-weight:900;letter-spacing:-.06em;font-size:26px}.wordmark img{width:36px;height:36px;object-fit:contain}.icon-btn{border:0;background:transparent;color:#c0cbe3;border-radius:12px;min-width:39px;height:39px;font-size:22px;display:grid;place-items:center}.icon-btn:hover{background:#ffffff12;color:white}.primary-mini{background:linear-gradient(140deg,#7fd5e6,#a490ff);color:#17203a;font-size:26px}.sidebar-heading{padding:0 25px 21px;display:flex;justify-content:space-between;align-items:end}.sidebar-heading h2{font-size:23px;margin:8px 0 0;letter-spacing:-.04em}.status-pill{font-size:10px;border-radius:100px;background:#283952;color:#98b6da;padding:7px 10px;white-space:nowrap}.status-pill.live{background:#1d463c;color:#78e6b4}.search-box{display:flex;align-items:center;background:#202a42;color:#91a0bb;margin:0 18px 18px;border:1px solid #34405b80;border-radius:13px;height:46px;padding:0 12px}.search-box span{font-size:24px}.search-box input{width:100%;outline:0;border:0;background:transparent;color:white;padding:0 8px;font-size:12px}.search-box button{background:transparent;color:#a3cfe9;border:0;font-size:24px}.contacts-list{flex:1;overflow:auto;padding:0 12px}.empty-list{text-align:center;color:#8493b0;margin:70px 30px}.empty-list>span{font-size:35px;color:#a3b6e3}.empty-list p{line-height:1.6}.text-btn{background:transparent;color:#b5b5ff;border:0;font-weight:700}.contact-item{width:100%;border:1px solid transparent;border-radius:15px;background:transparent;display:flex;gap:12px;align-items:center;padding:13px;color:inherit;text-align:left}.contact-item:hover,.contact-item.active{background:#25314b}.contact-item.active{border-color:#ffffff12}.contact-item div.meta{min-width:0;flex:1}.contact-item strong{font-size:13px;display:block}.contact-item p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#8493b0;margin:5px 0 0}.avatar{width:41px;height:41px;border-radius:14px;background:linear-gradient(140deg,#425285,#7b61ab);display:grid;place-items:center;color:#e8ebff;font-weight:850;flex-shrink:0}.self-avatar{background:linear-gradient(140deg,#5c90c7,#8965cf)}.sidebar-foot{border-top:1px solid var(--border);padding:15px 21px}.profile{display:flex;align-items:center;gap:11px}.profile-text{flex:1;min-width:0}.profile-text strong,.profile-text span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.profile-text span{font-size:10px;color:#8897b3;margin-top:3px}.powered{text-align:center;font-size:9px;letter-spacing:.16em;color:#65708c;padding:23px 0 2px}.powered b{color:#8394c0}.chat-area{position:relative;min-width:0;background:radial-gradient(circle at 70% 80%,#182448,transparent 50%),#0e1528;display:flex;flex-direction:column}.welcome{margin:auto;width:min(520px,calc(100% - 42px));text-align:center}.welcome-mark{width:130px;height:130px;margin:0 auto 20px;padding:5px;border-radius:38px;background:#222a484d}.welcome-mark img{width:100%;height:100%;object-fit:contain}.welcome h2{font-size:clamp(38px,5vw,60px);letter-spacing:-.065em;line-height:1.05;margin:17px 0}.welcome p{line-height:1.8;color:#8e9bb5;margin:0 auto 26px;max-width:410px}.feature-tags{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin-top:34px}.feature-tags span{border:1px solid #3a466d70;color:#9aa9c6;border-radius:50px;font-size:10px;padding:8px 10px}.chat-content{display:flex;flex:1;flex-direction:column;min-height:0}.chat-head{height:80px;border-bottom:1px solid var(--border);display:flex;align-items:center;padding:0 29px;gap:14px;background:#141b2e9a}.contact-avatar{background:linear-gradient(145deg,#3085a6,#5d5bc4)}.chat-contact{flex:1}.chat-contact h3{margin:0 0 5px;font-size:15px}.chat-contact>span{font-size:11px;color:#8e9ab5}.presence-dot{width:7px;height:7px;background:#67718a;border-radius:50%;display:inline-block;margin-right:5px}.presence-dot.on{background:#5bdda5}.chat-actions{display:flex;gap:6px}.chat-actions .icon-btn{font-size:23px}.messages{flex:1;padding:26px clamp(18px,4vw,75px);overflow-y:auto;display:flex;flex-direction:column;gap:11px}.chat-day{align-self:center;border:1px solid #30405d90;border-radius:30px;padding:7px 15px;font-size:10px;color:#8797b4;margin-bottom:18px}.bubble{max-width:min(480px,76%);min-width:74px;border-radius:18px;padding:12px 16px 9px;background:#26314b;line-height:1.55;overflow-wrap:anywhere;box-shadow:0 6px 20px #00000010;white-space:pre-wrap}.bubble.mine{align-self:flex-end;background:linear-gradient(125deg,#295679,#424789);border-bottom-right-radius:5px}.bubble.theirs{align-self:flex-start;border-bottom-left-radius:5px}.bubble .time{font-size:9px;color:#c5cce2a8;display:block;text-align:right;margin-top:6px}.bubble .file-link{color:#b6edff;text-decoration:underline;cursor:pointer}.system-message{align-self:center;font-size:11px;color:#8b9fb6;padding:9px 18px;background:#1c294050;border-radius:30px;text-align:center}.typing{height:19px;margin:0 28px;font-size:10px;color:#94a7c6}.composer{margin:0 24px 8px;min-height:65px;border:1px solid #3b456380;display:flex;align-items:center;gap:6px;background:#1a243d;border-radius:18px;padding:8px 12px}.composer textarea{flex:1;min-width:0;border:0;outline:0;resize:none;background:transparent;line-height:1.4;color:#eff3ff;max-height:130px;padding:9px 5px;font-size:13px}.send-btn{width:41px;height:41px;border:0;border-radius:13px;background:linear-gradient(145deg,#7ccee4,#ac8be9);color:#182139;font-size:20px}.secure-note{text-align:center;color:#647594;font-size:10px;padding:0 0 14px}.emoji-picker{position:absolute;bottom:111px;left:35px;max-width:330px;background:#242e4b;border:1px solid #435473;border-radius:17px;padding:15px;z-index:4;display:grid;grid-template-columns:repeat(7,1fr);box-shadow:0 18px 46px #0008}.emoji-picker button{background:transparent;border:0;border-radius:9px;font-size:22px;padding:4px}.emoji-picker button:hover{background:#ffffff20}.mobile-back{display:none}.dialog-shade{position:fixed;inset:0;background:#040812b8;display:grid;place-items:center;z-index:20;padding:20px;backdrop-filter:blur(9px)}.dialog{width:min(455px,100%);background:#1a243c;border:1px solid #46567870;border-radius:22px;padding:29px;position:relative;box-shadow:var(--shadow)}.dialog h2{margin:0 0 15px;letter-spacing:-.04em}.dialog p{color:#b0bdd4;line-height:1.65}.dialog code{font-size:11px;display:block;word-break:break-all;background:#10192c;padding:14px;border-radius:10px;color:#b8ddf3}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px;flex-wrap:wrap}.secondary{border:1px solid #536587;background:#24314c;color:#e3eaff;border-radius:11px;padding:11px 18px}.danger{border:0;background:#9d394c;color:#fff;border-radius:11px;padding:11px 19px}.dialog-close{position:absolute;right:13px;top:12px;color:#a1aec5;background:none;border:0}.toast{position:fixed;z-index:99;bottom:24px;right:24px;max-width:400px;background:#27365b;border:1px solid #5969a9;border-radius:12px;padding:14px 20px;box-shadow:var(--shadow);opacity:0;pointer-events:none;transition:opacity .2s}.toast.visible{opacity:1}.call-overlay{position:fixed;inset:0;z-index:25;background:#090f1de8;display:grid;place-items:center;padding:20px;backdrop-filter:blur(20px)}.call-panel{background:#151e33;border:1px solid #354765;border-radius:25px;width:min(950px,100%);padding:22px}.call-panel header{display:flex;align-items:center;justify-content:space-between}.call-panel h2{margin:6px 0 15px}.videos{height:min(60vh,550px);position:relative;background:#090d17;border-radius:20px;overflow:hidden;display:flex;align-items:center;justify-content:center}.videos video#remoteVideo{width:100%;height:100%;object-fit:contain}.videos video#localVideo{position:absolute;bottom:17px;right:17px;width:26%;height:33%;background:#111a29;object-fit:cover;border:2px solid #6c86b4;border-radius:14px}.call-buttons{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;padding-top:18px}.call-disclaimer{font-size:11px;color:#93a5c3;text-align:center;line-height:1.5}
@media(max-width:850px){.app-shell{inset:0;border-radius:0;grid-template-columns:295px 1fr}.auth-screen{grid-template-columns:1fr;max-width:470px}.auth-art{display:none}.auth-card{padding:30px 0}.welcome h2{font-size:38px}.chat-head{padding:0 12px}.messages{padding:16px}.composer{margin:0 10px 8px}.secure-note{font-size:9px}.feature-tags{margin-top:22px}}
@media(max-width:640px){.app-shell{display:block}.sidebar{width:100%;height:100%;border-right:0}.chat-area{display:none;height:100%}.app-shell.mobile-chat .sidebar{display:none}.app-shell.mobile-chat .chat-area{display:flex}.mobile-back{display:grid}.sidebar-top{padding-top:calc(25px + env(safe-area-inset-top))}.chat-head{height:calc(68px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}.chat-actions .icon-btn{min-width:34px}.messages{padding:14px}.bubble{max-width:86%}.composer{margin-bottom:calc(8px + env(safe-area-inset-bottom))}.secure-note{display:none}.auth-card h1{font-size:35px}.auth-screen{width:calc(100% - 48px)}.call-panel{padding:14px}.videos{height:55vh}.feature-tags{gap:5px}}
.connect-btn{font-size:11px;padding:8px 12px;white-space:nowrap}
@media(max-width:400px){.connect-btn{padding:8px;font-size:10px}.chat-contact h3{font-size:12px}}

/* Keep hero graphic above but not over text. */
.auth-art .display-icon{inset:12px 50px auto;height:240px}.auth-art img{width:245px;height:245px;object-fit:contain}

/* Language selector: compact, isolated from messaging controls */
.language-picker{display:inline-flex;align-items:center;gap:5px;max-width:102px;padding:5px 7px;background:rgba(255,255,255,.045);border:1px solid rgba(158,185,234,.18);border-radius:10px;color:#cbd7ef;cursor:pointer;flex-shrink:0}
.language-globe{font-size:16px;opacity:.8}
.language-picker select{border:0;outline:0;background:transparent;color:inherit;font-size:11px;font-weight:750;letter-spacing:.07em;cursor:pointer;max-width:55px;padding:1px 2px}
.language-picker select option{background:#121a2f;color:#f5f7ff}
.auth-card>.language-picker{display:flex;margin:0 0 10px auto;width:max-content}
.sidebar-top>.language-picker{margin-left:auto;margin-right:8px}
@media(max-width:420px){.sidebar-top>.language-picker{margin-right:5px}.language-picker{padding:5px}}

/* Visibility of language setting without overlapping the branding */
.language-picker:focus-within{outline:2px solid #65d8ec;outline-offset:2px}
@media(max-width:640px){.auth-card>.language-picker{margin-bottom:6px}}

/* Complete legal directory accessible on sign-in and inside the application */
body:has(.auth-screen:not([hidden])){overflow-y:auto}.auth-screen{padding-block:35px}.auth-card{padding-bottom:22px}
.auth-legal-directory{margin-top:24px;border-top:1px solid #ffffff20;padding-top:14px;max-width:450px}
.auth-legal-nav{display:flex;gap:8px 13px;flex-wrap:wrap}.auth-legal-nav a{font-size:10.5px;color:#aabbd8;text-decoration:none;line-height:1.65}.auth-legal-nav a:hover,.auth-legal-nav a:focus-visible{text-decoration:underline;color:white}
@media(max-width:680px){.auth-screen{padding-block:20px}.auth-card{padding-bottom:18px}.auth-legal-nav a{font-size:10px}}


/* PARUNO v0.1.3: one Vervuno-style institutional footer; no duplicate catalogues */
.site-footer{position:relative;z-index:3;box-sizing:border-box;width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px 26px;padding:13px clamp(18px,2.6vw,46px);background:#f9fbff;color:#293862;border-top:1px solid #dfe6f2;font-size:10.5px;font-weight:550;line-height:1.65}
.site-footer-links{display:flex;flex:1 1 auto;align-items:center;flex-wrap:wrap;gap:3px 14px;min-width:0}
.site-footer-links a{white-space:nowrap;text-decoration:none;color:#243b82!important;font-size:inherit;font-weight:600;margin:0!important}
.site-footer-links a:hover,.site-footer-links a:focus-visible{color:#6346ab!important;text-decoration:underline;text-underline-offset:3px}
.site-footer-copyright{white-space:nowrap;color:#4c5d7d;flex:0 0 auto;font-size:10.5px;text-align:right}
@media(max-width:1100px){.site-footer{align-items:flex-start;flex-direction:column;gap:9px}.site-footer-copyright{text-align:left}}
@media(max-width:660px){.site-footer{padding:18px 18px;gap:15px}.site-footer-links{gap:6px 14px}.site-footer-links a{font-size:11px}.site-footer-copyright{font-size:10px;border-top:1px solid #e4e8f3;padding-top:10px;width:100%}}

/* Keep the footer outside the login card and visible at the bottom of the landing page. */
body:has(#authScreen:not([hidden])){overflow-y:auto}
body:has(#authScreen:not([hidden])) .auth-screen{min-height:calc(100dvh - 66px)}
body:has(#appScreen:not([hidden]))>.site-footer{display:none}
@media(max-width:660px){body:has(#authScreen:not([hidden])) .auth-screen{min-height:auto;padding-bottom:42px}}


/* PARUNO v0.1.4: dark, integrated institutional footer (OVH + PWA). */
.site-footer{position:relative;z-index:6;width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px 22px;padding:15px clamp(20px,3.4vw,62px);background:linear-gradient(110deg,#0c1428,#141e38 65%,#101b34)!important;border-top:1px solid #738bb33a!important;color:#b3c4dc!important;box-shadow:inset 0 1px #ffffff0b;font-size:10.5px;line-height:1.7}
.site-footer-links{display:flex;gap:5px 15px;flex:1 1 auto;flex-wrap:wrap;min-width:0}
.site-footer-links a,.site-footer-mobile a{color:#bdcee9!important;font-size:10.5px!important;font-weight:550;text-decoration:none!important;white-space:normal;margin:0!important}
.site-footer-links a:hover,.site-footer-links a:focus-visible,.site-footer-mobile a:hover,.site-footer-mobile a:focus-visible{color:#a9f5ff!important;text-decoration:underline!important;text-underline-offset:3px}
.site-footer-copyright{font-size:10.5px;flex:0 0 auto;white-space:nowrap;color:#98a8c6!important;text-align:right!important;border:0!important;padding:0!important;width:auto!important}
.site-footer-mobile{display:none}
@media(max-width:1120px){.site-footer{align-items:flex-start;flex-direction:column;gap:10px}.site-footer-copyright{text-align:left!important}}
@media(max-width:899px){
 .site-footer{padding:17px 19px 20px;gap:13px;align-items:stretch!important}
 .site-footer-links{display:none!important}
 .site-footer-mobile{display:block;width:100%}
 .site-footer-mobile-primary{display:flex;align-items:center;gap:8px 16px;justify-content:center;flex-wrap:wrap}
 .site-footer-mobile-primary a{font-size:11px!important}
 .site-footer-details{margin:13px 0 0;text-align:center}
 .site-footer-details summary{cursor:pointer;color:#9dafce;font-size:11px;list-style:none;display:inline-flex;align-items:center;justify-content:center;gap:5px}
 .site-footer-details summary::-webkit-details-marker{display:none}
 .site-footer-details summary:after{content:'⌄';font-size:16px;line-height:1;transition:transform .2s}
 .site-footer-details[open] summary:after{transform:rotate(180deg)}
 .site-footer-mobile-more{display:flex;flex-wrap:wrap;justify-content:center;gap:9px 17px;padding:17px 3px 6px}
 .site-footer-mobile-more a{font-size:11px!important}
 .site-footer-copyright{width:100%!important;text-align:center!important;border-top:1px solid #ffffff17!important;padding-top:11px!important;font-size:10px}
}
/* PARUNO v0.1.5: group messaging and voice-only calling */
.sidebar-top{gap:8px}.sidebar-top .wordmark{margin-right:auto;min-width:0}
.group-create-btn{font-size:23px;background:#263752;border:1px solid #7d99d645;flex:0 0 auto}
.group-create-btn:hover{background:#324c71}.group-avatar{background:linear-gradient(135deg,#2b7791,#8560cf);font-size:20px}
.group-dialog{max-width:520px;width:min(94vw,520px)}.group-dialog label{display:block;font-size:13px;font-weight:700;margin-bottom:8px}
.group-dialog input#groupName{display:block;width:100%;height:47px;border-radius:12px;background:#1c2640;border:1px solid #4b5873;color:white;padding:0 14px;margin-bottom:17px}
.group-member-list{display:grid;gap:6px;max-height:35vh;overflow:auto;padding:5px 0 12px}
.group-member-option{display:flex!important;align-items:center;gap:12px;min-height:48px;padding:6px 9px;border-radius:12px;background:#1f2d48;border:1px solid #ffffff10;cursor:pointer}
.group-member-option input{width:17px;height:17px;accent-color:#85cced}.group-member-option .avatar{width:32px;height:32px;min-width:32px;line-height:32px;text-align:center}
.bubble-sender{display:block;font-size:11px;color:#83d5e7;margin:0 0 5px}
.call-participants{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;max-height:min(66dvh,710px);overflow:auto;padding:5px}
.call-tile{position:relative;min-height:175px;aspect-ratio:16/10;border-radius:17px;background:radial-gradient(circle at top,#3e5683,#151e36 77%);overflow:hidden;border:1px solid #f0f5ff24;display:flex;align-items:center;justify-content:center}
.call-tile video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}
.call-tile video:not(.has-stream){opacity:0}.call-tile .call-glyph{font-size:55px;color:#c9dcfa;font-weight:800;opacity:.55}
.call-tile.audio-only{aspect-ratio:16/9;min-height:145px}.call-tile.audio-only audio{position:absolute;width:0;height:0}
.call-person-name{position:absolute;z-index:2;bottom:9px;left:10px;background:#07142bb8;border-radius:8px;padding:6px 9px;color:#f3f6ff;font-weight:700;font-size:12px}
.chat-actions #voiceCallBtn{font-size:20px}
@media(min-width:1040px){.call-participants:has(.call-tile:nth-child(4)){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:670px){.sidebar-top{padding-inline:15px;gap:3px}.sidebar-top .wordmark{font-size:21px}.sidebar-top .wordmark img{width:29px;height:29px}
 .group-create-btn{min-width:35px;height:35px}.chat-actions{gap:0}.chat-actions .icon-btn{min-width:32px;font-size:17px}
 .call-participants{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.call-tile{min-height:110px}.call-tile.audio-only{min-height:110px}.call-tile .call-glyph{font-size:38px}}
/* Keep the additional group shortcut from overlapping the language selector. */
.sidebar-top{padding:22px 14px 22px;gap:5px}
.sidebar-top .wordmark{font-size:22px;gap:5px;letter-spacing:-.075em;white-space:nowrap;flex:0 1 auto;margin-right:0}
.sidebar-top .wordmark img{width:29px;height:29px}
.sidebar-top>.language-picker{margin:0;padding:4px;min-width:65px;flex:0 0 auto}
.sidebar-top>.icon-btn{width:36px;min-width:36px;height:36px;flex:0 0 36px}
@media(max-width:420px){.sidebar-top{padding-inline:11px;gap:4px}.sidebar-top .wordmark{font-size:20px}.sidebar-top>.icon-btn{width:33px;min-width:33px;flex-basis:33px}}

/* Entrada simples, conservando a disposição existente. */
.auth-screen{overflow:visible}.auth-card{padding-top:24px;padding-bottom:24px}
.auth-card h1{margin-top:15px}.auth-subtitle{margin-bottom:20px}
.auth-form{gap:8px}.auth-form input{height:45px}
.auth-field-note{margin:0 0 5px;color:#a0aec9;font-size:11px;line-height:1.5}
.google-auth-section{margin-top:17px}.google-divider{text-align:center;font-size:11px;color:#9eabc3;margin-bottom:11px}
.google-button-host{display:flex;justify-content:center;min-height:43px;align-items:center}
.google-unconfigured{background:transparent;border:1px solid #6a7290;border-radius:9px;padding:12px 24px;color:#bac7dd;font-size:12px}
.logout-small{border:1px solid #394660;border-radius:8px;background:transparent;color:#a9bbda;font-size:11px;font-weight:600;padding:8px;white-space:nowrap}
.logout-small:hover{border-color:#92badd;color:white}
#changeAuthContact{justify-self:center;padding:6px}
.bubble.pending{outline:1px dashed #8f97b6}.bubble .pending-status{display:block;font-size:10px;color:#b7c6e1;margin-top:5px}
@media(max-height:740px){.auth-card{padding-block:12px}.auth-card h1{margin-block:9px}.auth-subtitle{margin-bottom:12px}}

body:has(#authScreen:not([hidden])){overflow-y:auto}
@media(min-width:900px){.auth-screen{overflow:visible!important}.auth-screen>.auth-card{max-height:calc(100dvh - 32px);overflow-y:auto;scrollbar-width:thin}}

.ephemeral-toggle{flex:0 0 29px;width:29px;height:32px;padding:0;border-radius:9px;border:1px solid #435574;background:#222e46;color:#bacbe0;font-size:20px}
.ephemeral-toggle.is-ephemeral{border-color:#9cbfff;color:#fff;background:#55417e}
.bubble.ephemeral{border:1px dotted #a5b9ef;background:#34304e}

/* O formulário público é visível sem JavaScript: evita ecrãs vazios se um módulo falhar. */
.auth-screen{visibility:visible}

@media(min-width:900px) and (min-height:820px){
 .auth-screen>.auth-card{padding:20px 30px!important}
 .auth-card .auth-logo{width:45px;height:45px;margin-bottom:4px}
 .auth-card h1{font-size:33px;margin:9px 0 8px}
 .auth-card .auth-subtitle{font-size:12px;margin-bottom:10px}
 .auth-form{gap:6px}.auth-form input{height:40px}
 .google-auth-section{margin-top:8px}
 .auth-hint{margin:8px 0 0;font-size:10px}
}

.dialog-field{display:block;width:100%;height:46px;margin-top:12px;padding:0 13px;border:1px solid #4b5b7c;border-radius:10px;background:#101a30;color:#edf3ff}
.dialog-field:focus{outline:2px solid #9cb5ec}

/* Reuniões: sala de espera com controlo exclusivo pelo anfitrião. */
.group-schedule{margin:12px 0;padding:12px;background:#202c47;border:1px solid #435474;border-radius:13px}.group-schedule label{display:block;margin-bottom:7px}.group-schedule input{width:100%;height:43px;padding:0 10px;background:#111e34;color:#f4f6ff;border:1px solid #53627f;border-radius:8px;color-scheme:dark}.group-schedule .check-row{display:flex!important;align-items:center;gap:9px;margin:13px 0 0}.group-schedule .check-row input{width:17px;height:17px}.group-schedule small{display:block;color:#a4b8d8;line-height:1.5;margin-top:8px}.meeting-lobby{margin:10px 0;padding:10px;background:#1d2a44;border:1px solid #607ca063;border-radius:14px}.meeting-lobby h3{margin:3px 0 9px;font-size:13px}.lobby-line{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:7px 0}.lobby-line .lobby-name{font-size:12px;flex:1;min-width:0;overflow-wrap:anywhere}.lobby-line button{font-size:11px;padding:8px 11px}.waiting-room{display:flex;align-items:center;gap:12px;padding:16px;background:#253250;border-radius:13px}.waiting-room .waiting-label{flex:1;font-size:13px;line-height:1.5}.call-panel{max-height:calc(100dvh - 28px);overflow:auto}.call-tile:focus-visible{outline:3px solid #83d9ed;outline-offset:2px}
@media(min-width:900px){.call-panel{width:min(1240px,100%);max-height:calc(100dvh - 32px);padding:21px}.call-participants{grid-template-columns:repeat(2,minmax(0,1fr));max-height:calc(100dvh - 250px);grid-auto-rows:minmax(0,1fr)}.call-participants:has(.call-tile:nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr))}.call-participants:has(.call-tile:nth-child(5)){grid-template-columns:repeat(3,minmax(0,1fr))}.call-tile{min-height:min(220px,28vh);aspect-ratio:16/10}}
@media(max-width:899px){#createGroupBtn{display:none!important}.call-participants{display:flex;gap:8px;max-height:calc(100dvh - 210px);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory}.call-tile{width:100%;min-width:100%;flex:0 0 100%;scroll-snap-align:center;min-height:min(48vh,420px);aspect-ratio:auto}.call-panel{padding:12px;border-radius:15px}.call-panel header{gap:5px}.call-panel header h2{font-size:17px}.call-buttons{gap:6px;padding-top:9px}.call-buttons button{padding:10px 12px}.call-overlay{padding:7px}.call-disclaimer{font-size:9px}.call-mobile-hint{display:block;text-align:center;font-size:10px;color:#b0c2d7;margin:5px 0}}
@media(min-width:900px){.call-mobile-hint{display:none}}

.participant-select{display:none;align-items:center;gap:10px;margin:9px 0;color:#d9e6fa;font-size:12px}.participant-select select{flex:1;min-width:0;color:#f1f6ff;background:#26334f;border:1px solid #6681a4;border-radius:9px;padding:8px}
@media(max-width:899px){.participant-select:not([hidden]){display:flex}}

/* A secção Google só aparece após o backend confirmar que está ativa. */
.google-auth-section[hidden]{display:none!important}

/* 0.2.6: erros de sessão persistentes e visíveis, sem obrigar a novo OTP. */
.auth-error,.app-error{color:#ffe2e2;background:#5b1e2c;border:1px solid #d47a90;border-radius:11px;padding:11px 14px;line-height:1.5;overflow-wrap:anywhere}
.auth-error{margin:14px 0 6px;font-size:12px}
.auth-retry{width:100%;margin-top:8px}
.app-error{position:absolute;top:14px;left:16px;right:16px;z-index:9;font-size:12px;box-shadow:0 10px 25px #0006}

/* Botão Google: impedir alargamentos causados por iframes de terceiros. */
.google-button-host{width:100%;min-width:0;min-height:44px;overflow:hidden}
.google-button-host>div{max-width:100%}
.google-button-host iframe{border:0}
/* Recuperação administrativa de identidade, mantendo a sessão autenticada. */
.app-error{max-height:55vh;overflow:auto}
.app-error p{margin:0 0 10px;line-height:1.55}
.app-error-retry{display:block;margin-top:10px;padding:10px 15px}

/* Gestão acessível de conversas (desktop, táctil e teclado). */
.conversation-entry{display:flex;align-items:center;min-width:0;position:relative;border-radius:12px;}
.conversation-entry>.contact-item{min-width:0;flex:1 1 auto;width:0;padding-right:4px;}
.conversation-remove{flex:0 0 33px;width:33px;height:34px;border:0;border-radius:9px;background:transparent;color:#a8b8d5;font-size:16px;opacity:.35;cursor:pointer;}
.conversation-entry:hover .conversation-remove,.conversation-entry:focus-within .conversation-remove,.conversation-remove:focus-visible{opacity:1;}
.conversation-remove:hover,.conversation-remove:focus-visible{background:#693241;color:white;outline-offset:2px;}
.manage-chat-btn{font-size:22px;min-width:34px;flex:0 0 auto;}
@media(hover:none),(pointer:coarse){.conversation-remove{opacity:1;}}
@media(max-width:670px){.manage-chat-btn{font-size:20px;min-width:30px;}}

/* Conta inexistente: ligação de texto, sem aparência de botão. */
.auth-error .auth-register-link{display:inline;margin:0 0 0 .35em;padding:0;
 border:0;border-radius:0;background:transparent;color:#b5f0ff;
 font-size:inherit;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.auth-error .auth-register-link:hover{background:transparent;color:#f0fcff}
.auth-error .auth-register-link:focus-visible{outline:2px solid #e6fbff;outline-offset:2px}

/* O botão GIS não pode alargar o cartão, ainda que o CSS externo carregue tarde. */
/* O componente Google gere o seu próprio tamanho, estilos e imagens. */
.auth-card .google-button-host{width:100%;min-height:44px;overflow:visible;}
.auth-card .google-button-host>div{max-width:100%;}
.google-login-unavailable{margin:2px 0 0;padding:10px 12px;border:1px solid #495674;
 border-radius:12px;color:#bac7dd;font-size:12px;line-height:1.45;text-align:center;}
