@import url('/fonts.css');
:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#e8efed;background:#101b1c;color-scheme:dark;font-synthesis:none}*{box-sizing:border-box}body{margin:0}main{max-width:840px;margin:auto;padding:24px 20px}header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 34px}.brand{display:flex;gap:12px;align-items:center;font-size:26px;font-weight:750;letter-spacing:-1px}.brand img{width:44px}.brand small{display:block;font-size:11px;letter-spacing:1.1px;font-weight:400;color:#9dafa9;margin-top:4px}#account{font-size:12px;text-align:right;display:grid;gap:6px}#connection{color:#a5c4b4}.card{background:#192829;border:1px solid #2e4241;border-radius:22px;padding:28px;margin:18px 0}h1{font-size:clamp(35px,6vw,57px);line-height:1.06;letter-spacing:-2px;font-weight:650;margin:24px 0}h2{font-size:22px;font-weight:600;letter-spacing:-.5px;margin:0 0 16px}h3{font-size:16px}.eyebrow{color:#a7d8a1;font-size:10px;letter-spacing:2px}.muted{color:#a4b7b0;line-height:1.6}.fine{font-size:12px}label{display:block;font-size:13px;margin:18px 0 10px;color:#cbd8d3}input{display:block;width:100%;background:#101e20;color:#fff;border:1px solid #3e5652;border-radius:12px;font:inherit;font-size:17px;padding:14px;margin-top:9px;min-height:48px}input:focus{outline:2px solid #a8d8a0;outline-offset:2px}button{font:inherit;font-size:14px;background:#2d4440;color:#f1f7f3;border:1px solid #45625b;border-radius:12px;padding:13px 18px;min-height:46px;cursor:pointer}button:hover{filter:brightness(1.1)}button:focus-visible{outline:3px solid #e4dfad;outline-offset:3px}button:disabled{opacity:.5;cursor:wait}.primary{background:#b7e4a5;color:#183020;border-color:#b7e4a5;font-weight:650}form>.primary{width:100%;margin-top:12px}.danger{background:#683b3b;border-color:#925553}.check{display:flex;align-items:center;gap:12px;line-height:1.4}.check input{width:20px;min-height:20px;height:20px;margin:0;flex-shrink:0;accent-color:#b7e4a5}nav{display:flex;gap:6px;overflow:auto;padding:4px 0}nav button{background:transparent;white-space:nowrap;border-color:transparent}nav .selected{background:#324941;color:#c5eaae}.terminal{display:flex;gap:20px;align-items:center}.terminal p{font-size:13px;color:#b4c9bf;margin:0;line-height:1.4}.terminal button{flex-shrink:0;max-width:180px}.row{border-top:1px solid #2f4241;padding:17px 0;display:flex;justify-content:space-between;align-items:center;gap:15px}.row:first-child{border:0}.row small{display:block;color:#a4b7b0;margin-top:7px;line-height:1.5}.contact{background:transparent;border:0;padding:0;min-height:28px;font-weight:600;text-align:left}.dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#d17b7b;margin-right:9px}.dot.online{background:#b7e4a5}.active-call{text-align:center;border-color:#92c09b;background:#233c35}.active-call h2{font-size:34px}.actions{display:flex;flex-wrap:wrap;justify-content:center;gap:9px}.active-call meter{width:80%;height:8px;margin:0 auto 20px}#duration{font-variant-numeric:tabular-nums;font-size:26px}#notice:not(:empty){background:#433c27;border:1px solid #81764b;padding:14px;border-radius:12px;line-height:1.4}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#101e20;padding:16px;border-radius:12px;font-size:12px;line-height:1.6}footer{text-align:center;font-size:11px;color:#81948e;padding:26px}[hidden]{display:none!important}#login-panel{max-width:510px;margin:0 auto}#users .row{align-items:flex-start}#users .actions{justify-content:flex-end}.row button{font-size:12px}input[type=range]{padding:0}#account button{padding:4px;min-height:26px}@media(max-width:540px){main{padding:16px 12px}.card{padding:23px 18px;border-radius:18px}header{margin-bottom:24px}.terminal{display:block}.terminal button{margin-top:16px;max-width:none;width:100%}nav button{padding:10px 12px}.row{gap:10px}#users .row{display:block}#users .actions{margin-top:12px;justify-content:flex-start}}
/* Authenticated messenger. Public city login is styled independently in login.css. */
body:not(.signed-out){background:#e9efec;color:#263d36;color-scheme:light}
body:not(.signed-out) main{max-width:1680px;padding:22px 28px 0}
body:not(.signed-out) header{margin:0 0 20px;min-height:50px}
body:not(.signed-out) .brand{font-size:24px;letter-spacing:-.8px;gap:10px}
body:not(.signed-out) .brand img{width:38px;height:38px}
body:not(.signed-out) .brand small{color:#6a8278;font-size:9px;letter-spacing:2px;margin-top:5px}
body:not(.signed-out) #account{display:flex;align-items:center;gap:14px;font-size:12px}
body:not(.signed-out) #user{font-weight:650}
body:not(.signed-out) #connection{color:#528574;display:flex;align-items:center;gap:7px}
body:not(.signed-out) #connection:before,.secure-dot{content:'';width:6px;height:6px;display:inline-block;background:#31a87c;border-radius:50%}
body:not(.signed-out) button{background:#f4f8f6;color:#34564b;border:1px solid #dbe5df;border-radius:10px;padding:10px 14px;min-height:40px;font-size:12px;transition:background .15s,border-color .15s}
body:not(.signed-out) button:hover{background:#e5f2eb;filter:none}
body:not(.signed-out) button:focus-visible{outline:2px solid #1a9671;outline-offset:3px}
body:not(.signed-out) button:disabled{opacity:.4;cursor:default}
body:not(.signed-out) .primary{background:#177b60;border-color:#177b60;color:#fff;font-weight:600}
body:not(.signed-out) .primary:hover{background:#10694f}
body:not(.signed-out) .danger{background:#fbecec;border-color:#f1d5d5;color:#a34747}
body:not(.signed-out) input,body:not(.signed-out) textarea{font-family:inherit;background:#fff;color:#2d443b;border:1px solid #dce5df;min-height:42px;padding:11px 12px;font-size:13px;border-radius:9px}
body:not(.signed-out) input:focus,body:not(.signed-out) textarea:focus{outline:2px solid #56ac8e;outline-offset:1px}
body:not(.signed-out) label{color:#596e64;font-size:11px;margin:14px 0 8px}
body:not(.signed-out) input[type=range]{min-height:18px;padding:0;accent-color:#177b60}
body:not(.signed-out) input[type=checkbox]{width:17px;height:17px;min-height:17px;accent-color:#177b60}
body:not(.signed-out) #logout{background:transparent;border:0;color:#70877c;padding:8px;min-height:36px}
body:not(.signed-out) .muted{color:#7a8e83}
body:not(.signed-out) .eyebrow{font-size:9px;letter-spacing:2px;color:#859a8e;font-weight:650}
body:not(.signed-out) #notice:not(:empty){background:#fff8e6;border-color:#e8d9b3;font-size:12px;padding:12px;margin-bottom:12px;color:#7c6435}
.microphone-bar{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #d9e5de;box-shadow:0 2px 10px #284c3c03;border-radius:14px;padding:14px 20px;margin-bottom:20px}
.mic-symbol{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:#f0f3f1;color:#8fa096;flex-shrink:0}
.mic-symbol.enabled{background:#e3f4eb;color:#198568}
.mic-symbol svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mic-copy{flex:1;min-width:0;display:grid;gap:5px}
.mic-copy strong{font-size:11px;letter-spacing:1.4px;font-weight:700}
.mic-copy span{font-size:11px;color:#83968b;line-height:1.4}
body:not(.signed-out) .microphone-bar #enable{border-color:#a4ccba;background:#f1f8f4;color:#24795d}
.messenger-layout{display:grid;grid-template-columns:270px minmax(0,1fr) 320px;border:1px solid #d7e3dc;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 16px 60px #284c3c08;min-height:620px;height:calc(100svh - 216px);max-height:1100px}
.contacts-pane,.conversation-pane,.tools-pane{min-width:0;min-height:0}
.contacts-pane{display:flex;flex-direction:column;background:#fff;border-right:1px solid #e3ebe5}
.pane-heading{display:flex;justify-content:space-between;align-items:center;padding:24px 22px 18px}
.pane-heading h2{font-size:22px;letter-spacing:-.8px;margin:6px 0 0}
.count{font-size:11px;color:#84a090;background:#f0f5f2;padding:5px 8px;border-radius:7px}
body:not(.signed-out) .search-field{margin:0 16px 16px;display:block}
body:not(.signed-out) .search-field input{margin:0;background:#f3f6f4;border-color:transparent;font-size:12px;min-height:38px}
.contacts-list{flex:1;overflow-y:auto;min-height:100px;padding:0 8px}
body:not(.signed-out) .contact-row{display:flex;align-items:center;gap:11px;min-height:82px;width:100%;text-align:left;background:transparent;border-color:transparent;border-radius:11px;padding:13px 12px;margin:3px 0}
body:not(.signed-out) .contact-row.active{background:#edf5ef}
body:not(.signed-out) .contact-row:hover{background:#f3f7f4}
.avatar{position:relative;display:flex;align-items:center;justify-content:center;width:43px;height:43px;flex-shrink:0;background:#e2eee6;border:1px solid #d6e6dc;border-radius:15px;color:#62917b;font-size:13px;font-weight:650;letter-spacing:.6px}
.contact-row:nth-child(3n+2) .avatar{background:#e8ecf4;border-color:#dce3ef;color:#788ba9}
.contact-row:nth-child(3n) .avatar{background:#f3ebe2;border-color:#ebe0d2;color:#ac9171}
.presence-dot{position:absolute;bottom:-2px;right:-2px;width:10px;height:10px;border:2px solid #fff;background:#b9c5bd;border-radius:50%}
.presence-dot.online{background:#3bae84}
.contact-copy{flex:1;min-width:0;display:grid;gap:7px}
.contact-copy strong{font-size:13px;font-weight:650;color:#344f41}
.contact-copy small{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:100%;font-size:11px;color:#90a094}
.contact-meta{align-self:flex-start;display:grid;justify-items:end;gap:10px;padding-top:3px}
.contact-meta small{font-size:9px;color:#91a294;white-space:nowrap}
.unread{background:#279570;color:white;border-radius:9px;min-width:18px;text-align:center;font-size:9px;line-height:18px;padding:0 5px}
.add-contact{padding:15px 20px;border-top:1px solid #edf2ee;font-size:11px;color:#829689}
.add-contact summary{cursor:pointer;list-style:none;font-size:11px;font-weight:600;color:#698977}
.add-contact summary:before{content:'+';margin-right:10px;font-size:16px}
.add-contact .actions{justify-content:flex-start}
body:not(.signed-out) .add-contact .actions button{font-size:10px;padding:8px}
.contacts-note{padding:12px 20px 20px;color:#9aac9f;font-size:9px;display:flex;align-items:center;gap:8px}
.empty-contacts{padding:16px;color:#94a598;font-size:12px}
.conversation-pane{display:flex;flex-direction:column;background:#f4f6f0}
.conversation-heading{display:flex;align-items:center;gap:13px;min-height:88px;padding:18px 24px;background:#fcfdfb;border-bottom:1px solid #e3e9df}
.conversation-title{flex:1;min-width:0}
.conversation-title h2{font-size:16px;letter-spacing:-.3px;margin:0;overflow-wrap:anywhere}
.conversation-title p{font-size:10px;color:#899d8c;margin:6px 0 0}
body:not(.signed-out) .icon-button{width:40px;height:40px;min-height:40px;padding:10px;display:grid;place-items:center;border-radius:12px}
.icon-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
body:not(.signed-out) .call-icon{background:transparent;border:0;color:#52876e}
#back-contacts{display:none!important}
.timeline{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px 30px;display:flex;flex-direction:column;gap:10px;background-image:radial-gradient(#70947b0b .8px,transparent .8px);background-size:18px 18px;scrollbar-width:thin;scrollbar-color:#c6d4c6 transparent}
.conversation-empty{margin:auto;text-align:center;padding:32px 20px;max-width:340px;color:#7f9985}
.conversation-empty h2{font-size:25px;color:#658770;letter-spacing:-.8px;font-weight:550;margin:22px 0 14px}
.conversation-empty p{font-size:12px;line-height:1.8;color:#8da18f}
.empty-art{margin:auto;display:grid;place-items:center;width:100px;height:100px;background:#e4ede0;border:1px solid #dbe5d8;border-radius:30px;font-family:Georgia,serif;font-size:52px;color:#8dab8a;box-shadow:14px -12px 0 -4px #eaf0e6,-12px 14px 0 -4px #eef2e9;transform:rotate(-5deg)}
.day-divider{align-self:center;background:#e8ede2dd;color:#879580;border:1px solid #e1e7d9;border-radius:7px;font-size:9px;padding:5px 10px;margin:10px 0 6px}
.message-bubble{max-width:82%;min-width:110px;border-radius:0 13px 13px 13px;padding:11px 14px 7px;box-shadow:0 1px 2px #274a3210;align-self:flex-start;background:#fff;border:1px solid #e4eae0}
.message-bubble.outgoing{align-self:flex-end;background:#ddefd3;border-color:#d6e7cd;border-radius:13px 0 13px 13px}
.message-bubble p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.65;margin:0;color:#374c3c}
.message-meta{display:flex;justify-content:flex-end;gap:6px;font-size:9px;color:#93a188;margin-top:5px;font-variant-numeric:tabular-nums}
.read-receipt{font-weight:650;letter-spacing:-3px;padding-right:3px;color:#8fa485}
.read-receipt.read{color:#29998d}
.call-entry{align-self:center;display:flex;align-items:center;gap:11px;background:#fafcf8;border:1px solid #e0e9dc;border-radius:12px;padding:12px 14px;min-width:240px;max-width:100%;color:#6d866e}
.call-entry-icon{font-size:20px;background:#eaf2e6;width:32px;height:32px;border-radius:10px;display:grid;place-items:center}
.call-entry>div{flex:1;min-width:0}
.call-entry strong{font-size:11px;font-weight:600}
.call-entry small{display:block;font-size:9px;color:#98a491;margin-top:6px}
.call-entry.missed .call-entry-icon{background:#f9e9e3;color:#b47b65}
body:not(.signed-out) .call-entry button{min-height:32px;font-size:10px;background:transparent;padding:6px 10px}
body:not(.signed-out) .load-older{align-self:center;background:#fff9;font-size:10px;border-color:#dee8d8}
.composer{background:#fcfdfb;display:grid;grid-template-columns:minmax(0,1fr) 40px;align-items:center;gap:10px;padding:16px 22px 10px;border-top:1px solid #e3e9df}
body:not(.signed-out) .composer textarea{margin:0;width:100%;resize:vertical;max-height:160px;min-height:45px;line-height:1.5;background:#f1f5ee;border-color:transparent;padding:12px 15px;font-size:12px}
.composer-hint{grid-column:1/-1;display:flex;justify-content:space-between;gap:10px;color:#a7b1a2;font-size:8px;line-height:1.4}
.tools-pane{background:#fafcf9;border-left:1px solid #e3ebe0;overflow:auto;padding:16px;scrollbar-width:thin}
body:not(.signed-out) .tools-pane nav{flex-wrap:wrap;gap:3px;overflow:visible;padding:0 0 14px;margin:0}
body:not(.signed-out) .tools-pane nav button{min-height:30px;font-size:10px;padding:6px 8px;background:transparent;border:0;border-radius:7px;color:#97a794}
body:not(.signed-out) .tools-pane nav .selected{background:#e5efe2;color:#568267}
body:not(.signed-out) .card{background:#fff;border:1px solid #e1e9de;border-radius:12px;padding:20px;margin:0 0 14px;box-shadow:none}
body:not(.signed-out) .card h2{font-size:16px;margin-bottom:14px;letter-spacing:-.3px}
body:not(.signed-out) .card h3{font-size:12px;margin:0 0 14px;font-weight:600;letter-spacing:-.1px}
body:not(.signed-out) .card>p{font-size:11px;line-height:1.65;color:#899681}
body:not(.signed-out) .card .fine{font-size:10px}
.peer-card{text-align:center;padding:24px 20px!important}
.avatar.large{width:70px;height:70px;border-radius:24px;font-size:22px;margin:20px auto 16px;background:#e7efe2;color:#7f9b72}
body:not(.signed-out) .peer-card h2{font-size:20px;margin:0}
body:not(.signed-out) .peer-card>p{margin:8px 0 20px;font-size:10px}
body:not(.signed-out) .peer-card button{width:100%;font-size:12px}
body:not(.signed-out) .row{border-color:#edf1e9;padding:12px 0;gap:8px;align-items:flex-start}
body:not(.signed-out) .row>div:first-child{min-width:0;flex:1}
body:not(.signed-out) .row small{font-size:9px;line-height:1.5;color:#9ba592;margin-top:5px;overflow-wrap:anywhere}
body:not(.signed-out) .row button{font-size:10px;padding:6px 8px;min-height:30px}
body:not(.signed-out) .contact{border:0;padding:0!important;min-height:20px;font-size:11px!important;background:none;font-weight:600}
.dot{width:6px;height:6px;margin-right:6px;background:#bcc6b9}.dot.online{background:#3eab7d}
.device-note{padding:2px 10px;font-size:9px;line-height:1.8}
body:not(.signed-out) #recents,body:not(.signed-out) #history{font-size:11px;color:#9baa94}
body:not(.signed-out) .active-call{background:#eaf5e5;border-color:#b7d5a7;padding:18px}
body:not(.signed-out) .active-call h2{font-size:22px;margin-bottom:10px}
body:not(.signed-out) #duration{font-size:24px;color:#508653;margin:10px 0}
body:not(.signed-out) .active-call .actions{gap:6px}
body:not(.signed-out) .active-call .actions button{padding:8px 10px;font-size:11px;min-height:36px}
body:not(.signed-out) .active-call meter{height:7px;margin-bottom:10px;width:90%}
body:not(.signed-out) pre{background:#f2f5ee;color:#6a8061;border-radius:8px;padding:12px;font-size:10px;line-height:1.6}
body:not(.signed-out) #users .row{display:block;font-size:11px}
body:not(.signed-out) #users .actions{margin-top:10px;justify-content:flex-start}
body:not(.signed-out) #users .actions input{max-width:100%;font-size:11px;min-height:36px;margin:0}
body:not(.signed-out) #users .actions button{font-size:9px;padding:7px}
body:not(.signed-out) .check{font-size:11px;line-height:1.6}
body:not(.signed-out) footer{padding:14px;color:#a2b0a3;font-size:9px;letter-spacing:.7px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1500px){.messenger-layout{grid-template-columns:300px minmax(0,1fr) 340px}.timeline{padding:24px 50px}}
@media(max-width:1150px) and (min-width:761px){body:not(.signed-out) main{padding:18px 16px 0}.messenger-layout{grid-template-columns:225px minmax(0,1fr) 270px}.tools-pane{padding:12px}.timeline{padding:20px 18px}.conversation-heading{padding:18px}.pane-heading{padding:22px 18px}.contact-copy strong{font-size:12px}.contact-row .avatar{width:34px;height:34px;border-radius:12px}.contact-meta small{font-size:8px}body:not(.signed-out) .card{padding:15px}.composer{padding:14px 14px 10px}}
@media(max-width:760px){body:not(.signed-out) main{padding:14px 10px 0}body:not(.signed-out) header{margin-bottom:14px}body:not(.signed-out) .brand{font-size:19px;gap:8px}body:not(.signed-out) .brand img{width:32px;height:32px}body:not(.signed-out) .brand small{font-size:6px;letter-spacing:1.5px}body:not(.signed-out) #account{font-size:10px;gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:150px}body:not(.signed-out) #connection{font-size:8px}body:not(.signed-out) #logout{font-size:9px;padding:4px;min-height:25px}.microphone-bar{padding:12px;gap:10px;margin-bottom:14px;border-radius:12px}.mic-symbol{width:34px;height:34px;border-radius:10px}.mic-symbol svg{width:19px;height:19px}.mic-copy strong{font-size:9px;letter-spacing:.8px}.mic-copy span{font-size:9px}body:not(.signed-out) .microphone-bar button{font-size:9px;padding:8px;max-width:95px;min-height:36px}.messenger-layout{display:flex;flex-direction:column;height:auto;max-height:none;min-height:0;border-radius:14px}.contacts-pane{border:0;min-height:330px;max-height:65svh}.contacts-list{min-height:100px}.contacts-note{padding-bottom:15px}.conversation-pane{display:none}.tools-pane{border-left:0;border-top:1px solid #e3ebe0;overflow:visible;padding:14px}.conversation-open .contacts-pane{display:none}.conversation-open .conversation-pane{display:flex;height:calc(100svh - 172px);min-height:390px}.conversation-open #back-contacts{display:grid!important}.conversation-heading{min-height:75px;padding:14px 12px;gap:10px}.conversation-heading .avatar{width:36px;height:36px;border-radius:12px;font-size:11px}.conversation-title h2{font-size:14px}.timeline{padding:18px 14px}.message-bubble{max-width:88%;padding:9px 12px 6px}.message-bubble p{font-size:13px}.composer{padding:12px 12px 9px}.composer-hint{font-size:7px}body:not(.signed-out) .tools-pane nav{position:sticky;top:0;background:#fafcf9;z-index:2;padding:8px 0 12px}body:not(.signed-out) .card{padding:18px}body:not(.signed-out) .card h2{font-size:18px}body:not(.signed-out) .row small{font-size:10px}body:not(.signed-out) .row button{font-size:11px}.peer-card{display:none}.conversation-empty h2{font-size:23px}.add-contact{padding:12px 20px}body:not(.signed-out) footer{font-size:8px}.call-entry{min-width:220px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
/* Large, familiar controls and explanations for everyday use. */
body:not(.signed-out){font-size:17px}
body:not(.signed-out) .brand{font-size:27px}
body:not(.signed-out) .brand small{font-size:11px}
body:not(.signed-out) #account{font-size:15px}
body:not(.signed-out) #logout{font-size:15px;padding:10px}
body:not(.signed-out) button{font-size:16px;min-height:48px;padding:12px 16px}
body:not(.signed-out) input,body:not(.signed-out) textarea{font-size:17px;min-height:48px}
body:not(.signed-out) label{font-size:15px;line-height:1.5}
body:not(.signed-out) .muted{color:#627764}
.microphone-bar{gap:12px;padding:16px 18px}
.mic-copy strong{font-size:15px;letter-spacing:.3px;color:#2e5141}
.mic-copy span{font-size:14px;color:#637b68}
body:not(.signed-out) .microphone-bar button{font-size:16px;min-height:50px;max-width:none}
.messenger-layout{grid-template-columns:285px minmax(0,1fr) 350px;height:calc(100svh - 225px);min-height:660px}
.pane-heading h2{font-size:25px;display:flex;align-items:center;gap:8px}
body:not(.signed-out) .search-field input{font-size:16px;min-height:46px}
body:not(.signed-out) .contact-row{min-height:96px;gap:10px;padding:15px 12px}
.contact-copy strong{font-size:19px}
.contact-copy small{font-size:14px;color:#6e8776}
.contact-meta small{font-size:12px;color:#6d826e}
.avatar{width:48px;height:48px;font-size:16px}
.contact-meta{max-width:46px}
.unread{font-size:12px;line-height:23px;min-width:23px;border-radius:12px}
.contacts-note{font-size:12px;line-height:1.5;color:#6c8371}
.add-contact summary{font-size:16px;color:#45715a}
body:not(.signed-out) .add-contact .actions button{font-size:14px}
.conversation-heading{padding:16px 20px;gap:12px;min-height:115px;flex-wrap:wrap}
.conversation-title h2{font-size:22px}
.conversation-title p{font-size:14px;color:#58755f;margin-top:8px}
.encryption-status{display:inline-block;font-size:12px;line-height:1.5;margin-top:7px;color:#a87536;max-width:260px}
.encryption-status.protected{color:#43885c}
.encryption-status.protected:before{content:'🔒 ';font-size:12px}
body:not(.signed-out) #conversation-call{width:auto;min-width:115px;display:flex;gap:8px;background:#e8f3e9;color:#287251;font-size:15px;border:1px solid #d6e8d8;padding:12px}
body:not(.signed-out) .icon-button svg{width:21px;height:21px}
.timeline{padding:20px 22px;gap:12px}
.message-bubble{max-width:88%;padding:13px 16px 9px}
.message-bubble p{font-size:18px;line-height:1.65;color:#2a4230}
.message-meta{font-size:12px;color:#61765a}
.day-divider{font-size:13px;color:#627757;padding:7px 12px}
.call-entry{min-width:270px;padding:14px;gap:12px}
.call-entry strong{font-size:16px}.call-entry small{font-size:13px;color:#6f8068}
body:not(.signed-out) .call-entry button{font-size:14px;min-height:40px}
.composer{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:14px}
body:not(.signed-out) .composer textarea{font-size:17px;min-height:52px;padding:13px 14px}
body:not(.signed-out) #send-message{width:auto;display:flex;gap:8px;height:52px;padding:12px;font-size:15px;border-radius:10px}
.composer-hint{font-size:11px;color:#7c9076;line-height:1.5}
body:not(.signed-out) .tools-pane nav button{font-size:14px;min-height:42px;padding:8px 9px;color:#607959}
body:not(.signed-out) .tools-pane nav .selected{color:#2f653e}
body:not(.signed-out) .card h2{font-size:20px;margin-bottom:15px}
body:not(.signed-out) .card h3{font-size:18px}
body:not(.signed-out) .card>p{font-size:15px;line-height:1.6;color:#62775a}
body:not(.signed-out) .card .fine{font-size:13px}
body:not(.signed-out) .peer-card>p{font-size:14px}
body:not(.signed-out) .peer-card button{font-size:18px}
body:not(.signed-out) .contact{font-size:17px!important;min-height:30px}
body:not(.signed-out) .row small{font-size:13px;color:#6b7f60}
body:not(.signed-out) .row button{font-size:14px;min-height:42px}
body:not(.signed-out) #recents,body:not(.signed-out) #history{font-size:15px;color:#6c815f}
body:not(.signed-out) #users .row{font-size:16px}
body:not(.signed-out) #users .actions button{font-size:13px;min-height:42px}
body:not(.signed-out) #users .actions input{font-size:15px}
body:not(.signed-out) .check{font-size:15px}
body:not(.signed-out) .check input{width:22px;height:22px;min-height:22px}
.device-note{font-size:13px;line-height:1.7}
body:not(.signed-out) .active-call{padding:22px}
body:not(.signed-out) .active-call h2{font-size:30px}
body:not(.signed-out) .active-call>p{font-size:16px}
body:not(.signed-out) .active-call .actions button{font-size:17px;min-height:52px;flex:1 0 42%}
body:not(.signed-out) .active-call .actions #hangup{flex-basis:100%}
body:not(.signed-out) .incoming-ring{background:#eef8e9;border:2px solid #77ad6b;box-shadow:0 0 0 5px #dcefd580}
.incoming-ring #call-state{font-weight:700;letter-spacing:.4px;color:#346c32!important}
body:not(.signed-out) #notice:not(:empty){font-size:16px;padding:16px;line-height:1.6}
body:not(.signed-out) .fine{font-size:13px;line-height:1.65}
body:not(.signed-out) pre{font-size:12px}
body:not(.signed-out) footer{font-size:12px;color:#738970}
.conversation-empty h2{font-size:27px}.conversation-empty p{font-size:17px;color:#657d64}
.encryption-card summary{font-size:15px;cursor:pointer;color:#437158}
.fingerprint{font-family:monospace;font-size:13px!important;overflow-wrap:anywhere;line-height:1.6;background:#f0f5ed;padding:10px;border-radius:8px}
#key-change-warning{background:#fff6df;border:1px solid #e8d391;border-radius:10px;padding:13px;margin-top:12px;color:#7e6630;font-size:15px;line-height:1.6}
.help{position:relative;display:inline-flex;vertical-align:middle;margin:0 4px;flex-shrink:0;align-items:center}
body:not(.signed-out) .help-trigger{width:27px;height:27px;min-height:27px;padding:0;border-radius:50%;border:1px solid #b6cdbd;background:#f1f7f1;color:#4a7655;font-size:16px;font-weight:600;line-height:25px;text-align:center}
body:not(.signed-out) .microphone-bar .help-trigger{height:27px;min-height:27px;width:27px;padding:0;max-width:none}
.help-text{position:absolute;z-index:30;top:calc(100% + 10px);right:0;width:260px;max-width:calc(100vw - 40px);padding:15px 16px;background:#294f3b;color:#fff;box-shadow:0 8px 24px #18342030;border:1px solid #315e45;border-radius:11px;font-size:15px;line-height:1.65;font-weight:400;letter-spacing:normal;text-align:left;white-space:normal;visibility:hidden;opacity:0;pointer-events:none}
.microphone-bar>.help .help-text,.pane-heading .help .help-text{left:0;right:auto}
.help.open .help-text,.help:focus-within .help-text{visibility:visible;opacity:1;pointer-events:auto}
@media(hover:hover){.help:hover .help-text{visibility:visible;opacity:1;pointer-events:auto}}
#mobile-call-slot:empty{display:none}
@media(min-width:1500px){.messenger-layout{grid-template-columns:310px minmax(0,1fr) 370px}}
@media(min-width:761px) and (max-width:1150px){.messenger-layout{grid-template-columns:225px minmax(0,1fr) 285px}.conversation-heading{padding:15px 12px}.conversation-heading .avatar{display:none}.contact-copy strong{font-size:17px}.contact-copy small{font-size:13px}.contact-meta small{font-size:10px}.contact-meta{max-width:35px}.timeline{padding:18px 12px}.composer{grid-template-columns:minmax(0,1fr) auto;padding:12px 8px;gap:6px}body:not(.signed-out) #send-message{font-size:13px;padding:10px}#send-message svg{display:none}.message-bubble p{font-size:17px}.tools-pane{padding:10px}body:not(.signed-out) .tools-pane nav button{font-size:12px;padding:8px 7px}.microphone-bar .help-text{width:240px}}
@media(max-width:760px){body:not(.signed-out) main{padding:12px 10px 0}body:not(.signed-out) .brand{font-size:23px}body:not(.signed-out) .brand small{font-size:8px}body:not(.signed-out) #account{font-size:13px;max-width:150px}body:not(.signed-out) #connection{font-size:10px}body:not(.signed-out) #logout{font-size:13px;padding:5px}.microphone-bar{display:grid;grid-template-columns:36px minmax(0,1fr) 27px;padding:14px;gap:10px}.mic-symbol{grid-column:1;grid-row:1}.microphone-bar>.help{grid-column:3;grid-row:1}.mic-copy{grid-column:2;grid-row:1}.mic-copy strong{font-size:14px;letter-spacing:0}.mic-copy span{font-size:13px}.microphone-bar .help-text{left:auto!important;right:0}body:not(.signed-out) .microphone-bar button:not(.help-trigger){grid-column:1/-1;grid-row:2;width:100%;min-height:49px;max-width:none;font-size:17px}.messenger-layout{height:auto;min-height:0;display:flex}.contacts-pane{max-height:none;min-height:340px}.contacts-list{max-height:55svh}.conversation-open .conversation-pane{height:calc(100svh - 250px);min-height:500px}.conversation-heading{min-height:105px;padding:14px 12px;gap:8px}.conversation-heading .avatar{display:none}.conversation-title h2{font-size:21px}.conversation-title p{font-size:13px}.encryption-status{font-size:12px;max-width:190px}body:not(.signed-out) #conversation-call{font-size:15px;min-width:112px;padding:12px 10px;min-height:48px}.timeline{padding:18px 12px}.message-bubble{max-width:92%;padding:12px 13px 8px}.message-bubble p{font-size:18px}.composer{grid-template-columns:minmax(0,1fr) auto;padding:12px 10px;gap:7px}body:not(.signed-out) #send-message{font-size:14px;min-height:50px;padding:10px}#send-message svg{display:none}.composer-hint{font-size:10px;flex-wrap:wrap}.call-entry{min-width:0;width:100%;padding:12px;gap:8px}.call-entry strong{font-size:15px}.call-entry small{font-size:12px}.call-entry button{font-size:13px!important;padding:8px!important}.tools-pane{padding:14px}body:not(.signed-out) .tools-pane nav button{font-size:15px;min-height:44px}.peer-card{display:none}body:not(.signed-out) .card h2{font-size:22px}body:not(.signed-out) .row small{font-size:14px}body:not(.signed-out) .row button{font-size:15px}.contacts-note{font-size:12px}.add-contact summary{font-size:16px}.pane-heading .help-text{left:auto;right:-80px;width:230px}#mobile-call-slot .active-call{margin-bottom:16px}#mobile-call-slot .active-call .actions button{min-height:54px;font-size:19px}#mobile-call-slot .active-call h2{font-size:30px}#mobile-call-slot .active-call #duration{font-size:29px;margin:8px}#mobile-call-slot .active-call #audio-status{margin:8px 0}body:not(.signed-out) footer{font-size:11px}}
/* Hidden explanations must not expand the page on a narrow screen. */
.help-text{display:none}
.help.open .help-text,.help:focus-within .help-text{display:block}
@media(hover:hover){.help:hover .help-text{display:block}}

/* One compact account and microphone strip. Colour is reinforced by icon and text. */
body:not(.signed-out) #app-header{display:flex;flex-wrap:nowrap;gap:16px;margin:0 0 16px;padding:8px 12px;background:#fff;border:1px solid #d9e5de;border-radius:13px;min-height:64px}
body:not(.signed-out) #app-header .brand{font-size:20px;gap:7px;flex-shrink:0}
body:not(.signed-out) #app-header .brand img{width:28px;height:28px}
body:not(.signed-out) #app-header .brand small{display:none}
body:not(.signed-out) #app-header .microphone-bar{flex:1;display:flex;gap:8px;margin:0;padding:0;background:none;border:0;border-radius:0;box-shadow:none;min-width:0}
body:not(.signed-out) #app-header .mic-symbol{width:34px;height:34px;background:#f9d6d8;color:#a42737;border-radius:9px}
body:not(.signed-out) #app-header .mic-symbol.enabled{background:#ccebd7;color:#12703a}
body:not(.signed-out) #app-header .mic-copy{display:block;flex:0 1 auto}
body:not(.signed-out) #app-header .mic-copy strong{font-size:12px;letter-spacing:0;white-space:nowrap}
body:not(.signed-out) #app-header .mic-copy span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body:not(.signed-out) #app-header .microphone-bar button:not(.help-trigger){width:auto;min-height:42px;max-width:none;font-size:14px;padding:8px 12px}
body:not(.signed-out) #app-header #account{display:flex;gap:10px;font-size:13px;min-width:0}
body:not(.signed-out) #app-header #user{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body:not(.signed-out) .messenger-layout{height:calc(100svh - 124px)}
body:not(.signed-out) select{font:inherit;font-size:14px;color:#34564b;background:#fff;border:1px solid #c7d8cd;border-radius:9px;padding:8px;min-height:40px;max-width:100%}
.composer-options{grid-column:1/-1;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
body:not(.signed-out) .composer-options label{margin:0;font-size:12px}
body:not(.signed-out) .composer-options button{min-height:40px;font-size:14px;padding:8px 12px}
.message-policy{display:flex;align-items:center;gap:6px;justify-content:flex-end;margin-top:8px;flex-wrap:wrap}
body:not(.signed-out) .message-policy button,body:not(.signed-out) .message-policy select{min-height:36px;font-size:12px;padding:6px 8px}
.message-expiry{font-size:12px;color:#667f70;display:block;margin-top:7px}
.sealed-message{position:relative;min-height:78px;padding:15px;background:#eef2ed;border-radius:9px;text-align:center}
.sealed-message .blurred-text{filter:blur(5px);user-select:none;pointer-events:none;color:#668471;letter-spacing:2px;display:block}
body:not(.signed-out) .sealed-message button{position:relative;min-height:44px;margin-top:8px;background:#fff;color:#245d44;font-size:15px}
.file-transfers:empty{display:none}.file-transfers{padding:8px 14px;max-height:280px;overflow:auto;background:#f4f8f5;border-top:1px solid #dce6de}
.file-card{border:1px solid #d5e2da;border-radius:10px;padding:12px;background:#fff;margin:5px 0;font-size:14px;overflow-wrap:anywhere}.file-card strong{display:block}.file-card p{margin:6px 0}.file-card progress{width:100%;accent-color:#197b60}.file-card .actions{margin-top:8px}.file-card a{color:#117650;text-decoration:underline;padding:9px;display:inline-block}.file-card.error{border-color:#d98b91}.file-card img{max-width:130px;max-height:100px;border-radius:7px}
.conversation-pane.drop-target{outline:3px dashed #258d61;outline-offset:-5px}
.recovery-secret{display:block;user-select:all;word-break:break-all;font:600 17px/1.6 monospace;background:#fff4cc;color:#624b16;border:1px solid #dac998;border-radius:9px;padding:12px;margin:14px 0}
#camera-dialog{border:1px solid #cadacd;border-radius:15px;max-width:min(90vw,620px);background:#f5faf6;color:#263d36;padding:24px}#camera-dialog::backdrop{background:#0f261bb3}#camera-preview{width:100%;max-height:55vh;border-radius:9px}
@media(max-width:1100px){body:not(.signed-out) #app-header .brand>div{display:none}body:not(.signed-out) #app-header{gap:10px}}
@media(max-width:760px){body:not(.signed-out) #app-header{padding:8px;gap:8px;min-height:60px;margin-bottom:12px}body:not(.signed-out) #app-header .mic-copy{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}body:not(.signed-out) #app-header .brand img{width:24px;height:24px}body:not(.signed-out) #app-header .mic-symbol{width:29px;height:29px}body:not(.signed-out) #app-header .microphone-bar{gap:5px;flex:0 1 auto}body:not(.signed-out) #app-header .microphone-bar .help{order:3}body:not(.signed-out) #app-header .microphone-bar button:not(.help-trigger){min-height:40px;font-size:13px;padding:6px 8px}body:not(.signed-out) #app-header #account{gap:6px;margin-left:auto;font-size:12px}body:not(.signed-out) #app-header #connection{font-size:0;gap:0}body:not(.signed-out) #app-header #logout{font-size:12px;padding:6px;min-height:40px}body:not(.signed-out) #app-header #user{max-width:56px}body:not(.signed-out) #app-header .help-trigger{width:22px;height:22px;min-height:22px;font-size:13px;line-height:20px}.composer-options{gap:6px}.composer-options label{display:none}.composer-options select{flex:1;min-width:130px;font-size:12px}.conversation-open .conversation-pane{height:calc(100svh - 100px);min-height:550px}.message-policy select{max-width:190px}.file-transfers{max-height:260px}.file-card .actions button{min-height:42px;font-size:14px}}
@media(max-width:350px){body:not(.signed-out) #app-header{gap:5px}body:not(.signed-out) #app-header #user{max-width:40px}body:not(.signed-out) #app-header .microphone-bar>.help{display:inline-flex}body:not(.signed-out) #app-header .microphone-bar button:not(.help-trigger){font-size:12px;padding:6px}body:not(.signed-out) #app-header #account{gap:4px}}

body:not(.signed-out) #connection.disconnected:before{background:#cf6870}
body:not(.signed-out) .message-policy button,body:not(.signed-out) .message-policy select{font-size:14px;min-height:40px}
.message-expiry{font-size:13px}
@media(max-width:760px){body:not(.signed-out) #app-header{position:relative}body:not(.signed-out) #app-header .microphone-bar>.help{position:static}body:not(.signed-out) #app-header .microphone-bar .help-text{top:calc(100% + 8px);left:auto!important;right:8px;width:min(340px,calc(100vw - 40px));transform:none}}

body:not(.signed-out){font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
#mobile-nav{display:none}
@media(max-width:760px){body:not(.signed-out){overflow:hidden}body:not(.signed-out) main{height:var(--app-height,100dvh);min-height:0;display:flex;flex-direction:column;max-width:none;padding:8px;overflow:hidden}body:not(.signed-out) #app-header{flex-shrink:0;margin-bottom:8px}body:not(.signed-out) #app{display:flex;flex:1;min-height:0;flex-direction:column}body:not(.signed-out) #notice:not(:empty){flex-shrink:0;max-height:90px;overflow:auto;margin-bottom:8px;font-size:14px}body:not(.signed-out) .messenger-layout{flex:1;min-height:0;max-height:none;height:auto;display:flex;flex-direction:column;border-radius:13px}body:not(.signed-out) .contacts-pane{flex:1;min-height:0;max-height:none;border:0;overflow:hidden}body:not(.signed-out) .contacts-list{flex:1;max-height:none;min-height:0;overflow:auto}body:not(.signed-out) .conversation-pane{flex:1;min-height:0;height:auto}body:not(.signed-out) .conversation-open .conversation-pane{min-height:0;height:auto}body:not(.signed-out) .tools-pane{display:none;flex:1;min-height:0;height:100%;overflow:auto;background:#f7faf8}body:not(.signed-out)[data-mobile-view=tools] .tools-pane{display:block}body:not(.signed-out)[data-mobile-view=tools] .contacts-pane,body:not(.signed-out)[data-mobile-view=tools] .conversation-pane{display:none}body:not(.signed-out) .conversation-heading{min-height:80px;padding:10px 12px;flex-shrink:0}body:not(.signed-out) .conversation-title h2{font-size:21px}body:not(.signed-out) .timeline{flex:1;min-height:0;padding:12px;overflow:auto}body:not(.signed-out) .composer{flex-shrink:0;padding:10px;gap:7px}body:not(.signed-out) .composer textarea{font-size:17px;min-height:46px;padding:10px}body:not(.signed-out) .composer-hint{display:none}body:not(.signed-out) .file-transfers{max-height:25dvh;min-height:0;flex-shrink:1;padding:6px 10px}body:not(.signed-out) #mobile-nav{display:flex;flex-shrink:0;gap:4px;margin-top:8px;padding:4px;background:#fff;border:1px solid #dbe5df;border-radius:11px}body:not(.signed-out) #mobile-nav button{flex:1;min-height:46px;border:0;font-size:15px;background:transparent;font-weight:500;padding:8px}body:not(.signed-out) #mobile-nav button.selected{background:#e1f1e7;color:#166642}body:not(.signed-out).conversation-open:not([data-mobile-view=tools]) #mobile-nav{display:none}body:not(.signed-out) #app-footer{display:none}body:not(.signed-out) .add-contact{padding:10px 14px;flex-shrink:0}body:not(.signed-out) .contacts-note{display:none}body:not(.signed-out) #mobile-call-slot{flex-shrink:0;max-height:50dvh;overflow:auto}body:not(.signed-out) #mobile-call-slot .active-call{margin:0 0 8px;padding:12px}body:not(.signed-out) #mobile-call-slot .active-call:not(.incoming-ring){display:grid;grid-template-columns:1fr auto;gap:6px;align-items:center}body:not(.signed-out) #mobile-call-slot .active-call:not(.incoming-ring) #call-state{font-size:13px;margin:0}body:not(.signed-out) #mobile-call-slot .active-call:not(.incoming-ring) h2{font-size:20px;margin:0}body:not(.signed-out) #mobile-call-slot .active-call:not(.incoming-ring) #duration{font-size:18px;margin:0}body:not(.signed-out) #mobile-call-slot .active-call:not(.incoming-ring) #audio-status,body:not(.signed-out) #mobile-call-slot .active-call:not(.incoming-ring) meter{display:none}body:not(.signed-out) #mobile-call-slot .active-call:not(.incoming-ring) .actions{grid-column:1/-1;margin:0;gap:7px}body:not(.signed-out) #mobile-call-slot .active-call:not(.incoming-ring) .actions button{min-height:42px;font-size:15px}body:not(.signed-out) #mobile-call-slot .active-call:not(.incoming-ring)>label{grid-column:1/-1;font-size:12px;margin:0}body:not(.signed-out):has(#message-text:focus) #file-transfers{display:none}body:not(.signed-out):has(#message-text:focus) .conversation-heading{min-height:54px;padding:6px 10px}body:not(.signed-out):has(#message-text:focus) .conversation-title>p,body:not(.signed-out):has(#message-text:focus) .conversation-title>#encryption-status,body:not(.signed-out):has(#message-text:focus) .conversation-title>.help{display:none}body:not(.signed-out):has(#message-text:focus) #mobile-call-slot .active-call:not(.incoming-ring)>label{display:none}}

@media(max-width:760px) and (max-height:500px){body:not(.signed-out):has(#message-text:focus) .composer-options{display:none}body:not(.signed-out):has(#message-text:focus) #mobile-call-slot .active-call:not(.incoming-ring)>p,body:not(.signed-out):has(#message-text:focus) #mobile-call-slot .active-call:not(.incoming-ring)>h2{display:none}body:not(.signed-out):has(#message-text:focus) #mobile-call-slot .active-call:not(.incoming-ring){padding:7px}}
