:root{--ink:#264e53;--muted:#84918d;--green:#2b6066;--green-dark:#244d53;--cream:#f8f5ef;--paper:#fff;--line:#e9e9e1;--soft:#edf3f1;--accent:#ed9a77;--danger:#b54142;--shadow:0 24px 80px #163e331c;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-synthesis:none;line-height:1.5}*{box-sizing:border-box}body{margin:0;background:var(--cream);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button{cursor:pointer}button,input,textarea,select{-webkit-tap-highlight-color:transparent}button{color:inherit}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible{outline:3px solid #80b5b1;outline-offset:3px}input,textarea,select{outline:none}input:focus,textarea:focus,select:focus{border-color:#80b5b1!important;box-shadow:0 0 0 3px #80b5b121}a{color:var(--green)}[hidden]{display:none!important}.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-button{border:0;background:transparent;width:38px;height:38px;padding:8px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:#6c8175}.icon-button:hover{background:var(--soft);color:var(--green)}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:12px 20px;border:1px solid var(--line);border-radius:12px;background:white;font-weight:600;font-size:14px;min-height:44px}.button.primary{background:var(--green);border-color:var(--green);color:white}.button.primary:hover{background:var(--green-dark)}.button.subtle{background:var(--soft);border-color:transparent}.button.danger{background:#fbefef;color:var(--danger);border-color:#f1dada}.button.small{padding:6px 12px;min-height:32px;font-size:12px}.text-button{background:none;border:0;padding:0;color:var(--green);font-weight:600;font-size:13px}.text-button:hover{text-decoration:underline}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;line-height:1.6}.text-muted{color:var(--muted)}.tiny-dot{width:6px;height:6px;border-radius:50%;background:currentColor;display:inline-block;margin-right:7px;vertical-align:1px}.auth-view{min-height:100vh;min-height:100dvh;display:grid;grid-template-columns:1.05fr 1fr;padding:18px;gap:18px}.welcome-panel{position:relative;background:#2b6066;color:white;border-radius:20px;overflow:hidden;display:flex;flex-direction:column;min-height:calc(100vh - 36px);min-height:calc(100dvh - 36px);padding:35px 42px}.brand{display:inline-flex;align-items:center;gap:11px;text-decoration:none;font-size:35px;letter-spacing:-1.8px;font-weight:650;align-self:flex-start}.brand-light{color:white}.welcome-copy{margin:auto 0;padding:58px 0 24px}.welcome-copy>.eyebrow{color:#b5d1cc;font-size:10px;letter-spacing:2px}.welcome-copy h1{font-size:clamp(35px,4.2vw,60px);font-weight:500;line-height:1.16;letter-spacing:-2.5px;margin:23px 0}.welcome-copy h1 em{font-style:normal;color:var(--accent)}.welcome-copy>p{font-size:14px;line-height:1.9;max-width:365px;color:#c2d7d1}.welcome-art{height:225px;position:relative;max-width:360px;margin:8px auto 0}.art-label{position:absolute;bottom:0;left:39px;color:#95b3a1;font-size:11px;letter-spacing:.2px}.welcome-footer{display:flex;gap:25px;color:#adcac7;font-size:8px;letter-spacing:1.1px;font-weight:600;margin-top:14px}.welcome-footer span+span:before{content:"·";margin-right:25px}.auth-panel{padding:35px clamp(24px,5vw,75px);display:flex;flex-direction:column;min-width:0}.auth-content{width:100%;max-width:370px;margin:auto}.auth-content h2{font-size:30px;line-height:1.25;letter-spacing:-1px;font-weight:600;margin:13px 0 12px}.auth-description{color:#859087;font-size:13px;line-height:1.7;margin-bottom:30px}.auth-mini-brand{display:none}.auth-content label,.form-stack>label{display:block;font-size:12px;font-weight:600;margin:17px 0}.auth-content input,.form-stack input,.form-stack select,.search-dialog-input,.group-title-input{display:block;width:100%;background:white;border:1px solid #e1e6df;border-radius:10px;padding:13px 14px;font-size:13px;color:var(--ink);margin-top:7px;min-height:45px}.auth-content input::placeholder,.form-stack input::placeholder{color:#a2aba4}.auth-content small,.form-stack small{display:block;font-size:10px;line-height:1.6;font-weight:400;color:#8b958e;margin-top:7px}.password-field{position:relative}.password-field input{padding-right:45px}.password-field button{position:absolute;right:5px;top:4px}.auth-submit{width:100%;justify-content:space-between;margin-top:12px;padding:14px 18px}.auth-switch{font-size:12px;color:#88938a;text-align:center;margin:24px 0 30px}.auth-switch button{margin-left:4px;font-size:12px}.auth-note{display:flex;align-items:center;gap:11px;border-top:1px solid #e4e8e0;padding-top:20px;color:#9aa59a}.auth-note .icon{width:18px;height:18px}.auth-note p{font-size:10px;line-height:1.8;margin:0}.auth-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;color:#97a18f;font-size:10px;margin-top:30px;padding-top:24px}.auth-bottom button{font-size:10px;color:#899482}.auth-loading{margin:auto;text-align:center;color:var(--muted);font-size:13px}.spinner{display:inline-block;width:25px;height:25px;border-radius:50%;border:2px solid #dfe9d9;border-top-color:var(--green);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.form-error{font-size:12px;color:var(--danger);padding:10px 12px;background:#fbebeb;border-radius:8px;line-height:1.6}.connection-banner{position:fixed;top:0;left:0;right:0;background:#fff1cf;color:#775e19;text-align:center;padding:max(8px,env(safe-area-inset-top)) 18px 8px;font-size:12px;z-index:100;box-shadow:0 2px 10px #00000009}.connection-banner:not([hidden])~main{padding-top:38px}.connection-banner:not([hidden])~dialog.desktop-page{top:38px}.app-view{height:100vh;height:100dvh;display:grid;grid-template-columns:76px 330px 1fr;overflow:hidden;background:#faf8f3}.rail{background:#244d53;display:flex;align-items:center;flex-direction:column;padding:25px 0 22px;gap:13px;min-height:0}.rail-brand{margin-bottom:30px;display:flex}.rail-brand img{border-radius:13px}.rail-button{width:45px;height:45px;display:flex;align-items:center;justify-content:center;border:0;border-radius:13px;color:#83a698;background:transparent}.rail-button:hover{background:#ffffff0b;color:#bbd8d2}.rail-button.active{background:#ed9a77;color:#264e53}.rail-button .icon{width:23px;height:23px}.rail-spacer{flex:1}.profile-avatar{background:#698270;color:white;font-size:13px;font-weight:600;width:38px;height:38px;border-radius:50%;border:2px solid #ffffff30;margin-top:10px}.sidebar{display:flex;flex-direction:column;min-height:0;background:#fff;border-right:1px solid var(--line)}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;padding:29px 24px 24px}.sidebar-heading .eyebrow{font-size:8px;letter-spacing:1.6px;color:#8f9b90}.sidebar-heading h1{font-size:25px;font-weight:650;letter-spacing:-1px;margin:5px 0 0}.heading-dot{color:#ed9a77;margin-left:2px}.new-chat-button{width:33px;height:33px;border:1px solid #e3e9df;color:var(--green);border-radius:10px}.new-chat-button .icon{width:19px;height:19px}.search-field{display:flex;align-items:center;gap:8px;margin:0 21px;padding:9px 11px;background:#f3f4ee;border-radius:10px}.search-field>span{height:18px;color:#869687}.search-field .icon{width:17px;height:17px}.search-field input{background:none;border:0;min-width:0;width:100%;padding:1px;font-size:11px;color:var(--ink)}.search-field input:focus{box-shadow:none}.search-field input::placeholder{color:#9aa395}.sidebar-label{display:flex;justify-content:space-between;align-items:center;font-size:8px;font-weight:650;letter-spacing:1.5px;padding:26px 25px 12px;color:#95a18f}.sidebar-label>span+span{letter-spacing:0;background:#f2f4ee;border-radius:5px;padding:1px 5px}.conversation-list{overflow-y:auto;flex:1;padding:0 12px 18px}.conversation-item{display:flex;align-items:center;gap:12px;position:relative;border:0;background:none;border-radius:12px;width:100%;padding:14px 11px;text-align:left;margin:2px 0}.conversation-item:hover{background:#f6f8f2}.conversation-item.selected{background:#eaf2ef}.conversation-item.selected:before{content:"";width:3px;position:absolute;left:-12px;height:30px;background:#80b5b1;border-radius:0 3px 3px 0}.avatar{width:43px;height:43px;border-radius:14px;background:#e3eeeb;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;color:#5f837f;flex-shrink:0;letter-spacing:.1px}.avatar.group{border-radius:13px;background:#f3e6d9;color:#ab8368}.conversation-item-text{min-width:0;flex:1}.conversation-item-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.conversation-item-top strong{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-item-top time{font-size:9px;color:#9aa491;flex-shrink:0}.conversation-item-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:5px}.conversation-item-bottom p{font-size:11px;margin:0;color:#646f5f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.unread-badge{background:var(--green);color:white;min-width:17px;height:17px;line-height:17px;border-radius:6px;text-align:center;font-size:9px;padding:0 4px}.sidebar-empty{padding:40px 16px;text-align:center;color:#98a08d;font-size:12px;line-height:1.8}.sidebar-empty .icon{width:30px;height:30px;margin-bottom:10px}.sidebar-empty strong{display:block;color:#718367;font-weight:500;margin-bottom:5px}.sidebar-footer{padding:17px 23px;border-top:1px solid var(--line);display:flex;align-items:center;gap:7px;font-size:9px;color:#94a089}.connection-dot{width:5px;height:5px;display:block;background:#c5b372;border-radius:50%}.connection-dot.connected{background:#80b5b1}.small-brand{margin-left:auto;font-size:11px;font-weight:600;letter-spacing:-.5px;color:#aab69f}.conversation{display:flex;flex-direction:column;min-width:0;min-height:0;background:#faf8f3}.empty-conversation{margin:auto;text-align:center;padding:35px;max-width:530px}.empty-orbit{height:158px;position:relative;display:flex;justify-content:center;align-items:center;margin:0 auto 25px;width:180px}.empty-orbit:before,.empty-orbit:after{content:"";position:absolute;border:1px solid #e8eddc;border-radius:50%;width:154px;height:154px}.empty-orbit:after{width:190px;height:100px;transform:rotate(-27deg)}.empty-orbit img{border-radius:24px;transform:rotate(-7deg);z-index:1;box-shadow:0 14px 28px #2b606620}.empty-spark{position:absolute;right:0;top:5px;color:#ed9a77;font-size:28px}.empty-conversation>.eyebrow{font-size:8px;letter-spacing:1.5px}.empty-conversation h2{font-weight:500;font-size:29px;letter-spacing:-1px;margin:14px 0 12px}.empty-conversation p{color:#8f9a85;font-size:12px;line-height:1.9;max-width:365px;margin:0 auto 24px}.empty-conversation .button{font-size:11px;min-height:41px;padding:11px 17px}.empty-features{display:flex;align-items:center;justify-content:center;gap:20px;font-size:9px;color:#a1ad96;margin-top:42px}.empty-features>span+span:before{content:"·";margin-right:20px}.active-conversation{display:flex;flex-direction:column;min-height:0;height:100%}.conversation-header{display:flex;align-items:center;gap:12px;min-height:88px;padding:20px 31px;background:#ffffffb5;border-bottom:1px solid var(--line)}.conversation-header .avatar{width:40px;height:40px;border-radius:13px;font-size:13px}.conversation-heading{min-width:0;flex:1}.conversation-heading h2{font-size:14px;font-weight:600;line-height:1.4;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-heading p{font-size:10px;color:#9da791;margin:5px 0 0}.header-actions{display:flex;align-items:center;gap:8px}.header-actions .icon-button{width:33px;height:33px}.header-actions .icon{width:19px;height:19px}.header-divider{height:20px;width:1px;background:#e9ece4;margin:0 4px}.mobile-back{display:none}.pinned-bar{border:0;border-bottom:1px solid var(--line);background:#f0f3e9;text-align:left;padding:10px 31px;font-size:11px;color:#6d815e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.messages-scroller{flex:1;overflow:auto;overscroll-behavior:contain;padding:20px 32px 10px;scroll-behavior:auto}.messages{display:flex;flex-direction:column;gap:16px}.day-divider{display:flex;align-items:center;justify-content:center;gap:20px;color:#aab29e;font-size:9px;letter-spacing:.2px;margin:8px 0 10px}.day-divider:before,.day-divider:after{content:"";height:1px;width:70px;background:#e9ede2}.message-row{display:flex;gap:9px;align-items:flex-end;max-width:85%;position:relative;align-self:flex-start}.message-row.own{align-self:flex-end;flex-direction:row-reverse}.message-row>.avatar{width:27px;height:27px;border-radius:9px;font-size:9px;margin-bottom:21px}.message-stack{min-width:0;display:flex;flex-direction:column;align-items:flex-start}.own .message-stack{align-items:flex-end}.message-author{font-size:9px;color:#8c9c80;margin:0 3px 4px}.message-bubble{background:white;border:1px solid #e7ebdf;border-radius:13px 13px 13px 3px;padding:11px 14px;min-width:42px;overflow-wrap:anywhere;box-shadow:0 1px 2px #29432803}.own .message-bubble{background:#e2efeb;border-color:#e2efeb;border-radius:13px 13px 3px 13px}.message-body{font-size:12px;line-height:1.75;white-space:pre-wrap}.message-bubble.deleted{color:#a9b19e;font-style:italic;background:transparent;border:1px dashed #dfe5d6;box-shadow:none}.message-reply{border-left:2px solid #96b374;background:#edf0e655;border-radius:3px 5px 5px 3px;padding:6px 10px;font-size:10px;color:#8a9a77;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:8px;max-height:80px;overflow:hidden}.message-meta{display:flex;align-items:center;gap:5px;font-size:8px;color:#687559;margin:5px 3px 0}.message-meta .icon{height:12px;width:12px}.read-indicator{color:#789a5b}.message-image{max-width:min(290px,100%);max-height:260px;object-fit:contain;display:block;border-radius:8px;margin:5px 0}.message-audio{display:block;width:min(290px,100%);height:36px;margin:5px 0}.file-attachment{display:flex;align-items:center;gap:10px;color:var(--green);text-decoration:none;min-width:160px;padding:6px 0;max-width:290px}.file-attachment .icon{width:24px;height:24px;flex-shrink:0}.file-attachment span{min-width:0}.file-attachment strong{display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.file-attachment small{display:block;font-size:9px;color:#91a07e;margin-top:3px}.conversation-start{text-align:center;margin:auto;padding:60px 25px;color:#a2ae94;font-size:11px;line-height:1.9}.conversation-start strong{font-size:16px;font-weight:500;display:block;color:#7b8e6a;margin-bottom:7px}.load-older{display:flex;margin:0 auto 25px;min-height:28px;font-size:11px;padding:7px 12px;border-radius:8px}.load-older:disabled{opacity:1;cursor:default}.load-older.idle{visibility:hidden}.typing-indicator{min-height:24px;padding:3px 32px;font-size:10px;color:#8b9c78}.composer-wrap{padding:3px 28px 18px}.composer{display:flex;align-items:flex-end;gap:8px;border:1px solid #e4e9dc;border-radius:14px;padding:8px;background:white;box-shadow:0 4px 15px #29432803}.composer .icon-button{width:34px;height:34px;border-radius:8px;color:#9eac90}.composer .icon{width:19px;height:19px}.composer textarea{font-size:12px;line-height:1.65;resize:none;padding:7px 0;max-height:150px;min-height:34px;width:100%;border:0;background:transparent;color:var(--ink)}.composer textarea:focus{box-shadow:none}.composer textarea::placeholder{color:#a5b097}.send-button{width:34px;height:34px;border:0;border-radius:10px;display:flex;align-items:center;justify-content:center;background:var(--green);color:white;flex-shrink:0}.send-button .icon{width:17px;height:17px}.composer-footer{display:flex;align-items:center;justify-content:space-between;padding:8px 5px 0;color:#69755a;font-size:8px}.composer-brand{font-weight:700;letter-spacing:-.4px;font-size:12px;color:#b3bea6}.composer-brand span{margin-left:5px;font-size:11px}.reply-preview{display:flex;justify-content:space-between;align-items:center;background:#eef3e4;border-left:3px solid #8fa77c;padding:8px 12px;border-radius:8px 8px 0 0;font-size:10px;color:#81916f}.reply-preview>div{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.reply-preview strong{display:block;color:#5e7949;font-size:10px;margin-bottom:2px}.reply-preview .icon-button{width:26px;height:26px}.attachment-preview{display:flex;gap:8px;flex-wrap:wrap;padding:10px 0}.attachment-chip{display:flex;align-items:center;gap:5px;font-size:10px;background:#ebf0e2;padding:5px 7px;border-radius:8px;max-width:230px}.attachment-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-chip button{border:0;background:none;color:#8a9a7b;padding:0 3px;font-size:16px}.attachment-chip .icon{width:13px;height:13px}.recording{background:#fae6e6!important;color:#be5555!important;animation:pulse 1.5s infinite}@keyframes pulse{50%{box-shadow:0 0 0 4px #dc6a6a17}}.modal{border:1px solid var(--line);border-radius:20px;background:#fcfbf7;color:var(--ink);width:min(520px,calc(100vw - 32px));max-height:85vh;max-height:85dvh;padding:25px;box-shadow:var(--shadow)}.modal::backdrop,.call-dialog::backdrop{background:#0f282252}.modal-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:20px}.modal-heading h2{font-size:23px;font-weight:550;letter-spacing:-.7px;margin:6px 0 0}.modal-heading .eyebrow{font-size:8px}.modal-body{font-size:13px;overflow-wrap:anywhere}:where(.modal-body) p{color:#88937e;font-size:12px;line-height:1.85}.modal-body .section-title{font-size:11px;color:#678153;margin:20px 0 10px;font-weight:600}.modal-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:22px;flex-wrap:wrap}.form-stack label{font-size:11px}.form-stack input,.form-stack select{font-size:12px}.form-stack .button{width:100%;margin-top:8px}.modal-error{font-size:11px;color:var(--danger);background:#fbebeb;padding:9px 11px;border-radius:8px;margin:10px 0}.tab-row{display:flex;padding:4px;background:#eef2e7;border-radius:10px;margin-bottom:20px;gap:4px}.tab-row button{flex:1;border:0;background:none;border-radius:7px;padding:8px;font-size:12px;color:#8b997c}.tab-row button.active{background:white;color:#315742;box-shadow:0 1px 3px #244d5310}.member-list{max-height:300px;overflow-y:auto;margin:12px 0}.member-row{display:flex;align-items:center;gap:11px;padding:11px 8px;border-radius:10px;width:100%;border:0;background:none;text-align:left}.member-row:hover{background:#f0f3e9}.member-row .avatar{width:36px;height:36px;border-radius:11px;font-size:11px}.member-info{min-width:0;flex:1}.member-info strong{font-size:12px;font-weight:500;display:block}.member-info small{font-size:10px;color:#96a28a;display:block;margin-top:2px}.member-row input[type=checkbox]{accent-color:var(--green);width:16px;height:16px}.small-note{font-size:10px!important;color:#68715b!important;background:#f1f4ea;padding:11px 13px;border-radius:8px}.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.stat-card{background:#f0f3e9;border-radius:12px;padding:15px}.stat-card strong{font-size:24px;font-weight:500;letter-spacing:-.7px;display:block}.stat-card span{font-size:10px;color:#8c9c7a;display:block;margin-top:3px}.invite-form{display:flex;gap:10px;align-items:end}.invite-form label{font-size:10px;flex:1;color:#8a9978}.invite-form input{width:100%;display:block;padding:9px;margin-top:5px;border:1px solid var(--line);border-radius:8px;min-width:0;font-size:12px}.invite-form .button{padding:9px 13px;font-size:11px;min-height:37px}.invite-card{border:1px solid #e0e7d6;border-radius:11px;padding:12px;margin-top:10px}.invite-card-top{display:flex;align-items:center;gap:10px;justify-content:space-between}.invite-card code{font-size:11px;overflow-wrap:anywhere;color:#5c7947}.invite-card p{font-size:9px;margin:6px 0 0}.invite-card .actions{display:flex;gap:8px;flex-shrink:0}.invite-card .text-button{font-size:9px}.invite-card.revoked{opacity:.5}.search-dialog-input{margin:0 0 15px}.message-editor{width:100%;min-height:120px;border:1px solid var(--line);border-radius:10px;padding:13px;font-size:13px;color:var(--ink);resize:vertical}.reaction-picker{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;padding:15px 0}.reaction-picker button{font-size:25px;border:0;background:#f0f3e8;border-radius:12px;width:48px;height:48px}.reaction-picker button:hover{background:#dfeacc}.install-steps{padding-left:20px;color:#879679;font-size:12px;line-height:1.9}.install-steps li{margin-bottom:10px}.toast-region{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:300;display:flex;flex-direction:column;gap:8px;max-width:min(450px,calc(100vw - 35px));pointer-events:none}.toast{background:#1d4035;color:#e5eedb;border:1px solid #486352;font-size:12px;line-height:1.6;padding:12px 19px;border-radius:12px;box-shadow:0 8px 25px #122e3320;animation:toast-in .15s ease-out}.toast.error{background:#80413c;color:#fff3ee;border-color:#985851}@keyframes toast-in{from{transform:translateY(7px);opacity:0}to{transform:none;opacity:1}}.call-dialog{border:0;border-radius:23px;background:#244d53;color:white;width:min(800px,calc(100vw - 30px));padding:23px;overflow:hidden}.call-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.call-brand{font-size:28px;font-weight:600;letter-spacing:-1.4px;color:#efb091}.call-top>span+span{font-size:11px;color:#abc7b4}.call-stage{position:relative;min-height:340px;display:flex;align-items:center;justify-content:center;border-radius:16px;overflow:hidden;margin:20px 0}.call-stage video{object-fit:contain}.call-stage #remote-video{position:absolute;inset:0;width:100%;height:100%;background:#102e27;display:none}.call-stage.has-video #remote-video{display:block}
#call-dialog.remote-screen .call-stage #remote-video{background:#000}.call-stage.has-video #call-identity{display:none}#local-video{position:absolute;bottom:12px;right:12px;width:120px;height:90px;border-radius:10px;background:#2b4c41;object-fit:cover;transform:scaleX(-1);display:none}#local-video.visible{display:block}#call-identity{text-align:center}#call-avatar{margin:0 auto 17px;width:84px;height:84px;border-radius:27px;font-size:26px;background:#4b6854;color:#d0e5ba}#call-name{font-size:23px;font-weight:500;margin:0}#call-description{font-size:12px;color:#9ebeaa;margin:10px 0}.call-actions{display:flex;justify-content:center;gap:15px}.call-action{display:flex;align-items:center;justify-content:center;width:49px;height:49px;border:0;border-radius:50%;background:#345a49;color:#d8e8cd}.call-action.hangup{background:#d26057;color:white}.call-action.off{background:#faf1e7;color:#735c43}.call-note{font-size:9px;color:#779984;text-align:center;margin:20px 0 0}.call-stage.has-video{min-height:400px}.scroll-highlight .message-bubble{outline:2px solid #80b5b1;outline-offset:4px}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-thumb{background:#dce3d4;border-radius:4px}::-webkit-scrollbar-track{background:transparent}@media(min-width:1600px){.app-view{grid-template-columns:88px 370px 1fr}.rail{padding-top:30px}.sidebar-heading{padding-top:36px}.conversation-header{min-height:103px}.messages-scroller{padding-left:55px;padding-right:55px}.composer-wrap{padding-left:48px;padding-right:48px}.message-body{font-size:14px}.conversation-item-top strong{font-size:14px}.conversation-item-bottom p{font-size:12px}.conversation-heading h2{font-size:16px}}@media(max-width:1050px){.app-view{grid-template-columns:65px 280px 1fr}.rail-brand img{width:38px;height:38px}.sidebar-heading{padding:25px 18px 22px}.sidebar-heading h1{font-size:23px}.search-field{margin:0 16px}.conversation-header{padding:17px 20px}.header-actions{gap:3px}.messages-scroller{padding-left:20px;padding-right:20px}.composer-wrap{padding-left:16px;padding-right:16px}.empty-conversation{padding:25px}.empty-conversation h2{font-size:26px}.empty-features{gap:10px;font-size:8px}.empty-features>span+span:before{margin-right:10px}.auth-panel{padding:35px 25px}.welcome-panel{padding:30px}.welcome-copy h1{font-size:44px}.welcome-copy>p{font-size:12px}.welcome-footer{gap:10px;font-size:7px}.welcome-footer span+span:before{margin-right:10px}.message-row{max-width:92%}}@media(max-width:760px){.auth-view{padding:0;display:block;min-height:100vh;min-height:100dvh}.welcome-panel{display:none}.auth-panel{padding:30px 24px;min-height:100vh;min-height:100dvh}.auth-content{max-width:410px;padding-top:15px}.auth-mini-brand{display:flex;align-items:center;gap:9px;color:var(--green-dark);font-size:28px;letter-spacing:-1.5px;margin-bottom:40px}.auth-content h2{font-size:29px}.auth-bottom{margin:25px auto 0;width:100%;max-width:410px}.app-view{grid-template-columns:60px 1fr}.rail{padding:23px 0 max(20px,env(safe-area-inset-bottom));gap:15px}.rail-brand{margin-bottom:20px}.rail-brand img{width:36px;height:36px}.rail-button{width:39px;height:39px;border-radius:12px}.rail-button .icon{width:21px;height:21px}.sidebar{border-right:0}.sidebar-heading{padding:27px 22px 25px}.sidebar-heading h1{font-size:28px}.sidebar-heading .eyebrow{font-size:9px}.search-field{margin:0 20px;padding:12px}.search-field input{font-size:13px}.sidebar-label{font-size:9px;padding:26px 25px 14px}.conversation-item{padding:15px 12px}.conversation-item-top strong{font-size:14px}.conversation-item-top time{font-size:10px}.conversation-item-bottom p{font-size:12px}.conversation-list{padding:0 12px 18px}.avatar{width:46px;height:46px;font-size:15px}.conversation{display:none}.app-view.chat-open{display:flex}.app-view.chat-open>.rail,.app-view.chat-open>.sidebar{display:none}.app-view.chat-open>.conversation{display:flex;width:100%}.mobile-back{display:flex;margin-left:-8px}.conversation-header{min-height:77px;padding:max(14px,env(safe-area-inset-top)) 15px 14px;gap:8px}.conversation-header .avatar{width:36px;height:36px;border-radius:12px}.conversation-heading h2{font-size:14px}.header-actions{gap:0}.header-actions .icon-button{width:32px;height:32px}.header-divider{display:none}.conversation-heading p{font-size:9px}.messages-scroller{padding:17px 15px 8px}.message-body{font-size:14px;line-height:1.7}.message-meta{font-size:9px;margin-top:6px}.message-author{font-size:10px}.message-row{max-width:91%}.message-row>.avatar{display:none}.message-bubble{padding:10px 13px}.message-image{max-width:min(255px,100%)}.composer-wrap{padding:3px 10px max(12px,env(safe-area-inset-bottom))}.composer{gap:5px;padding:7px;border-radius:14px}.composer textarea{font-size:16px;line-height:1.5;padding:6px 0}.composer .icon-button{width:30px}.composer-footer{font-size:8px}.composer-footer>span:first-child{max-width:80%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.typing-indicator{padding:2px 17px;font-size:10px;min-height:23px}.pinned-bar{padding:10px 17px}.modal{padding:21px}.modal-heading h2{font-size:22px}.modal-body{font-size:14px}.form-stack input,.form-stack select,.search-dialog-input,.auth-content input,.group-title-input,.message-editor{font-size:16px}.member-row{padding:12px 8px}.member-info strong{font-size:14px}.member-info small{font-size:11px}.invite-form{flex-wrap:wrap}.invite-form input{font-size:16px}.call-dialog{padding:19px}.call-stage{min-height:330px}.call-stage.has-video{min-height:400px}.call-top>span+span{font-size:10px}.call-note{font-size:8px}.toast-region{bottom:20px}.connection-banner{font-size:10px}.connection-banner:not([hidden])~main{padding-top:32px}.connection-banner:not([hidden])~dialog.desktop-page{top:32px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Large files upload in bounded chunks; progress stays visible in its draft. */
.attachment-preview{max-height:min(290px,35vh);max-height:min(290px,35dvh);overflow:auto}

/* Notification controls stay within the conversation sidebar on small screens. */
.rail-button.notifications-enabled{color:#2b6066;background:#e2efeb}.push-status{padding:13px 15px;border-radius:11px;background:#edf3f1;color:var(--green-dark)!important}.push-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.push-actions .button{font-size:12px;min-height:44px}.notification-default-note{margin:14px 0 4px}@media(max-width:760px){.push-actions .button{font-size:14px}.push-status{font-size:14px!important}.rail{gap:12px}}

/* Official Doho artwork, supplied by the owner. */
.brand img{border-radius:12px}.brand-light>span{font-size:30px;letter-spacing:-1.2px}.official-brand-art{height:210px;max-width:350px;margin:25px 0 0;display:flex;align-items:flex-start;justify-content:flex-start}.official-brand-art>img{width:300px;height:auto;border-radius:18px;box-shadow:0 12px 35px #193f4022}.official-brand-art .art-label{left:0;bottom:0;color:#bdd4ce}.empty-orbit img{border-radius:25px;box-shadow:0 12px 28px #244d531a;transform:rotate(-5deg)}.welcome-copy h1 em{color:#efb091}.rail-button.active{color:#244d53}.empty-spark{color:#ed9a77}@media(max-width:1050px){.official-brand-art>img{width:270px}.official-brand-art{height:190px}}

.attachment-preview-status{font-size:11px;line-height:1.6;max-width:290px;margin:7px 0;color:#637f70}.attachment-preview-retry{font-size:12px;padding:8px 0}.attachment-ready-info{min-width:0}.attachment-ready-info strong{display:block;font-size:11px;font-weight:500;overflow:hidden;text-overflow:ellipsis}.attachment-ready-status{display:block;font-size:10px;color:#416b55}.attachment-chip{max-width:290px}.attachment-chip button{min-width:28px;min-height:28px;flex-shrink:0}.composer-footer #composer-status.attachments-ready{font-size:11px;color:#416b55;white-space:normal;overflow:visible;line-height:1.5}@media(max-width:760px){.attachment-ready-info strong,.attachment-preview-status{font-size:12px}.attachment-ready-status{font-size:11px}.attachment-preview-retry{font-size:13px}}
.attachment-original-download{display:inline-flex;align-items:center;min-height:30px;margin-top:3px;font-size:10px;font-weight:600;color:var(--green)}.message-attachment>.attachment-original-download{padding:3px 0}@media(max-width:760px){.attachment-original-download{font-size:11px}}

.attachment-ready-preview{display:inline-block;font-size:11px;line-height:1.8;color:var(--green);text-underline-offset:2px}

/* Local file previews are loaded only when opened, and fit phone screens. */
.attachment-ready-actions{display:flex;align-items:center;gap:10px}.attachment-ready-actions a,.attachment-ready-actions .text-button{font-size:11px;min-height:25px}.attachment-chip .attachment-ready-preview{padding:0;font-size:11px}.attachment-open-preview{font-size:12px;min-height:30px;padding:4px 0}.file-preview-dialog{border:1px solid var(--line);border-radius:18px;padding:0;width:min(1100px,calc(100vw - 36px));max-width:none;height:min(900px,calc(100vh - 36px));height:min(900px,calc(100dvh - 36px));max-height:none;color:var(--ink);background:var(--paper);overflow:hidden}.file-preview-dialog[open]{display:flex;flex-direction:column}.file-preview-dialog::backdrop{background:#102e37a6}.file-preview-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 20px;border-bottom:1px solid var(--line);flex-shrink:0}.file-preview-heading{min-width:0}.file-preview-title{font-size:17px;line-height:1.4;font-weight:500;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.file-preview-subtitle{font-size:11px;margin:3px 0 0;color:var(--muted)}.file-preview-download{font-size:12px;padding:8px 12px;text-decoration:none}.file-preview-status{font-size:13px;padding:8px 20px;margin:0;line-height:1.6;flex-shrink:0}.file-preview-retry{align-self:flex-start;margin:5px 20px 12px;font-size:12px;padding:8px 14px}.file-preview-content{flex:1;min-height:0;overflow:auto;background:#f0f3f1;padding:16px;display:flex;align-items:center;justify-content:center}.file-preview-media{display:block;max-width:100%;width:100%;max-height:100%;background:#183a40;border-radius:8px}.file-preview-content audio{max-width:600px;background:transparent}.pending-files-note{font-size:12px;line-height:1.7;color:#6a8072}.pending-files-list{display:flex;flex-direction:column;gap:11px;margin:15px 0}.pending-file{border:1px solid var(--line);padding:12px;border-radius:11px;min-width:0}.pending-file-name{display:block;font-size:13px;font-weight:500;overflow-wrap:anywhere}.pending-file-detail{display:block;font-size:11px;margin:4px 0;color:var(--muted)}.pending-file-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:8px}.pending-file-actions .text-button,.pending-file-download{font-size:12px}.pending-file-select{font-size:12px;padding:6px 10px;margin-left:auto}.pending-files-done{margin-top:7px;width:100%}@media(max-width:760px){.file-preview-dialog{width:100vw;height:100vh;height:100dvh;border:0;border-radius:0;margin:0;inset:0}.file-preview-header{padding:max(13px,env(safe-area-inset-top)) 14px 12px}.file-preview-title{font-size:15px}.file-preview-download{font-size:12px;padding:6px 10px}.file-preview-content{padding:12px}.file-preview-status{font-size:12px;padding:8px 14px}.file-preview-retry{margin-left:14px}.attachment-open-preview{font-size:13px}.pending-file-name{font-size:14px}.pending-file-actions .text-button,.pending-file-download{font-size:13px}}

.app-update-panel{margin-top:22px;padding:16px;border:1px solid #d8e4df;background:#f2f7f4;border-radius:12px}.app-update-panel h3{font-size:15px;font-weight:500;margin:0 0 8px}.app-update-current{font-size:11px!important;color:#6d8376!important;margin:0 0 8px!important}.app-update-status{font-size:12px!important;line-height:1.7!important;margin:8px 0!important;color:#416453!important}.app-update-status.update-error{color:var(--danger)!important}.app-update-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}.app-update-actions .button{font-size:12px;padding:9px 12px}.app-update-note{font-size:10px!important;line-height:1.6!important;margin:10px 0 0!important;color:#718678!important}.update-dialog{width:min(440px,calc(100vw - 30px));max-height:calc(100vh - 30px);max-height:calc(100dvh - 30px);padding:0;border:1px solid #d8e4df;border-radius:20px;background:#fffefa;color:var(--ink);box-shadow:var(--shadow);overflow:auto;overscroll-behavior:contain}.update-dialog::backdrop{background:#0f282266}@media(min-width:761px){.modal::backdrop,.call-dialog::backdrop,.update-dialog::backdrop{backdrop-filter:blur(5px)}}.app-update-popup{padding:25px}.app-update-popup-badge{display:flex;align-items:center;justify-content:center;width:48px;height:48px;margin-bottom:17px;border-radius:15px;background:#e3efeb;color:var(--green);font-size:25px;font-weight:650}.app-update-popup h2{margin:0 0 7px;font-size:23px;line-height:1.3;font-weight:600;letter-spacing:-.5px}.app-update-popup .app-update-current{margin-bottom:13px!important}.app-update-popup .app-update-status{font-size:13px!important;margin:0!important}.app-update-popup .app-update-actions{margin-top:21px}.app-update-popup .app-update-actions .button{flex:1;min-width:135px;min-height:44px}.app-update-popup .app-update-note{margin-top:13px!important}@media(max-width:760px){.app-update-panel{padding:13px}.app-update-status,.app-update-actions .button{font-size:13px!important}.app-update-current,.app-update-note{font-size:11px!important}.update-dialog{width:min(430px,calc(100vw - 24px));max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);border-radius:18px}.app-update-popup{padding:22px 19px}.app-update-popup h2{font-size:21px}.app-update-popup .app-update-actions{flex-direction:column-reverse}.app-update-popup .app-update-actions .button{width:100%}}

.profile-menu{display:grid;border:1px solid var(--line);border-radius:12px;overflow:hidden}.profile-entry{display:flex;align-items:center;gap:13px;text-align:left;padding:16px;background:var(--paper);border:0;min-height:72px;width:100%}.profile-entry+.profile-entry{border-top:1px solid var(--line)}.profile-entry:hover{background:var(--soft)}.profile-entry:focus-visible{outline-offset:-3px}.profile-entry>.icon{color:#648980}.profile-entry-text{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.profile-entry-text strong{font-size:14px;font-weight:600}.profile-entry-text small{font-size:11px;color:var(--muted);font-weight:400}.profile-entry-arrow{font-size:24px;font-weight:400;color:#86a199}.profile-back{display:inline-flex;align-items:center;gap:7px;min-height:44px;background:transparent;border:0;border-radius:8px;padding:6px 8px;margin:0 0 8px -8px;font-size:12px;color:var(--green)}.profile-back .icon{width:17px;height:17px}.profile-back:hover{background:var(--soft)}.profile-description{font-size:12px!important;color:#74847d!important;line-height:1.7!important;margin:8px 0 16px!important}.profile-form>.button{width:100%;margin-top:5px}@media(max-width:760px){.profile-entry{padding:15px 12px;gap:10px}.profile-entry-text strong{font-size:15px}.profile-entry-text small,.profile-description{font-size:12px!important}.profile-back{font-size:13px}.profile-form input{font-size:16px}}

/* Compact chat media opens a dedicated viewer; downloads live in that viewer. */
.file-attachment.attachment-open-preview{width:260px;max-width:100%;border:1px solid #cddfd7;background:#f6faf8;border-radius:10px;padding:12px;text-align:left;min-height:62px}.file-attachment.attachment-open-preview strong{font-size:12px}.file-attachment.attachment-open-preview small{font-size:11px;color:#607d72}.send-button.has-label{width:auto;min-width:64px;padding:0 10px;gap:6px;flex-shrink:0}.send-label{font-size:11px;font-weight:600;white-space:nowrap}.send-button.has-label .icon{width:17px;height:17px}.queued-send-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:9px 10px;border-radius:9px;background:#e1efe9;color:#305d50;font-size:12px}.queued-send-cancel{font-size:12px;white-space:nowrap;min-height:32px}.composer textarea[readonly]{opacity:.7}.composer-footer #composer-status{white-space:normal;line-height:1.5;max-width:100%}@media(max-width:760px){.send-button.has-label{padding:0 8px}.send-label{font-size:10px}.send-button.has-label .icon{display:none}}

.moments-dialog{width:min(780px,calc(100vw - 36px));max-width:none;height:min(900px,92vh);height:min(900px,92dvh);max-height:92vh;max-height:92dvh;padding:0;border:1px solid #dce5df;border-radius:20px;background:#f8faf6;color:var(--ink);box-shadow:var(--shadow);overflow:hidden}.moments-dialog[open]{display:flex;flex-direction:column}.moments-dialog::backdrop{background:#173d4080}@media(min-width:761px){.moments-dialog::backdrop{backdrop-filter:blur(4px)}}.moments-header{display:flex;align-items:center;gap:15px;padding:23px 28px 20px;background:white;border-bottom:1px solid var(--line);flex-shrink:0}.moments-header>div{min-width:0;flex:1}.moments-kicker{font-size:9px;letter-spacing:1.8px;font-weight:650;color:var(--muted)}.moments-header h2{margin:5px 0 0;font-size:24px;line-height:1.3;letter-spacing:-.6px;overflow-wrap:anywhere}.moments-close{width:40px;height:40px;border:0;background:var(--soft);border-radius:12px;font-size:27px;color:var(--green);flex-shrink:0}.moments-scroll{overflow-y:auto;min-height:0;padding:20px 28px 28px;overscroll-behavior:contain}.moments-tabs{display:flex;gap:7px;align-items:center}.moments-tab,.moments-refresh{border:0;border-radius:9px;background:transparent;padding:10px 12px;font-size:12px;min-height:42px}.moments-tab.active{background:var(--green);color:white}.moments-refresh{margin-left:auto;color:#617f72;font-size:11px}.moments-tab:hover:not(.active),.moments-refresh:hover{background:#e6eee8}.moments-composer{padding:20px;border:1px solid #dfe7df;background:white;border-radius:14px;margin-bottom:22px}.moments-compose-label{display:block;font-size:14px;font-weight:600;margin-bottom:10px}.moments-input{display:block;resize:vertical;min-height:96px;max-height:300px;width:100%;padding:12px 13px;border:1px solid #e1e6df;background:#fafcf9;border-radius:9px;font-size:13px;color:var(--ink);line-height:1.7}.moments-input::placeholder{color:#9ba59a}.moments-compose-actions{display:flex;justify-content:space-between;gap:10px;margin-top:13px}.moments-compose-actions .button{padding:10px 16px;font-size:12px}.moments-post{min-width:95px}.moments-draft-note{font-size:10px;color:#8b9789;line-height:1.7;margin:12px 0 0}.moments-upload{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.moments-upload-preview{width:48px;height:48px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:var(--soft);color:var(--green);border-radius:8px;overflow:hidden;font-size:12px}.moments-upload-preview img{width:100%;height:100%;object-fit:cover}.moments-upload-detail{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.moments-upload-detail strong{font-size:11px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.moments-upload-status{font-size:10px;color:#7f907e;overflow-wrap:anywhere}.moments-upload-progress{width:100%;height:5px;accent-color:var(--green)}.moments-upload-actions{display:flex;flex-direction:column;gap:5px}.moments-small-button{border:0;background:var(--soft);border-radius:6px;padding:7px;font-size:10px;min-width:42px}.moments-status{font-size:12px;padding:10px 12px;background:#eaf1ec;border-radius:9px;line-height:1.7}.moments-error{color:var(--danger)!important}.moments-posts{display:grid;gap:18px}.moments-card{background:white;border:1px solid #e0e7df;border-radius:14px;padding:20px;min-width:0}.moments-card-header{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.moments-author{display:flex;align-items:center;gap:10px;min-width:0;border:0;background:none;padding:0;text-align:left;flex:1}.moments-avatar{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;background:#e3eeeb;color:#668980;flex-shrink:0;font-size:13px;font-weight:600}.moments-author-info{display:flex;flex-direction:column;min-width:0;gap:2px}.moments-author-info strong{font-size:13px;overflow-wrap:anywhere}.moments-author-info small{font-size:10px;color:#8c9b8b;overflow-wrap:anywhere}.moments-time{font-size:10px;color:#9aaa98}.moments-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8;margin:16px 0 0}.moments-media{position:relative;min-width:0;width:100%;border:1px solid #e1e9df;background:#edf2eb;border-radius:10px;overflow:hidden;padding:0;display:flex;align-items:center;justify-content:center}.moments-media img{width:100%;height:100%;object-fit:cover}.moments-video{background:linear-gradient(145deg,#e4eeea,#cbded6);flex-direction:column;gap:10px}.moments-video-play{width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;padding-left:3px;background:#ffffffc9;color:var(--green);font-size:18px;box-shadow:0 3px 15px #2b606615}.moments-video-label,.moments-media-fallback{font-size:12px;color:#607f73;padding:8px}.moments-card-actions{margin-top:14px;border-top:1px solid #edf0e9;padding-top:10px}.moments-delete{border:0;background:none;color:#8b6c67;font-size:11px;min-height:32px;padding:3px 0}.moments-empty{text-align:center;padding:35px 15px;color:#82947f}.moments-empty strong{font-size:16px;color:#5c7c6c;font-weight:500}.moments-empty p{font-size:12px;max-width:330px;margin:9px auto;line-height:1.8}.moments-more{display:flex;margin:20px auto 0;font-size:12px}@media(max-width:760px){.moments-dialog{width:100vw;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;border:0;border-radius:0;margin:0}.moments-header{padding:max(17px,env(safe-area-inset-top)) 18px 15px}.moments-header h2{font-size:21px}.moments-kicker{font-size:8px}.moments-scroll{padding:15px 14px max(24px,env(safe-area-inset-bottom))}.moments-tab{font-size:12px;padding:9px 10px}.moments-refresh{padding:9px 5px;font-size:11px}.moments-composer,.moments-card{padding:15px}.moments-input{font-size:16px}.moments-compose-actions .button{font-size:12px;padding:10px 12px}.moments-draft-note{font-size:11px}.moments-card-header{gap:7px}.moments-time{font-size:9px;margin-left:50px}.moments-author{flex-basis:100%}.moments-text{font-size:14px}.moments-delete{font-size:12px}.moments-upload-status,.moments-small-button{font-size:11px}.moments-upload-detail strong{font-size:12px}}
.moments-settings-link{display:block;border:0;background:transparent;color:var(--green);font-size:11px;padding:0 0 14px;text-align:left;min-height:34px}.moments-visibility-label,.moments-setting-label{display:block;font-size:12px;font-weight:600;margin:15px 0 0}.moments-visibility-label select,.moments-setting-label select{display:block;width:100%;margin-top:7px;border:1px solid #dce5dc;background:#fbfcf9;border-radius:9px;padding:10px 12px;min-height:44px;color:var(--ink);font-size:13px}.moments-audience-help,.moments-setting-help{font-size:11px;line-height:1.7;color:#7b8e7d;margin:9px 0 12px}.moments-member-choices{max-height:220px;overflow-y:auto;border:1px solid #e1e7de;border-radius:9px;background:#fff;overscroll-behavior:contain}.moments-member-choice{display:flex;align-items:center;gap:10px;padding:10px 12px;min-height:50px}.moments-member-choice+.moments-member-choice{border-top:1px solid #eff2ea}.moments-member-choice input{width:17px;height:17px;accent-color:var(--green);flex-shrink:0}.moments-member-choice>span{display:flex;flex-direction:column;gap:1px;min-width:0}.moments-member-choice strong{font-size:12px;font-weight:500;overflow-wrap:anywhere}.moments-member-choice small{font-size:10px;color:#8b9a88;overflow-wrap:anywhere}.moments-members-empty{font-size:12px;color:#879582;padding:10px;margin:0}.moments-settings-back{min-height:42px;border:0;background:transparent;padding:7px 0;color:var(--green);font-size:12px;margin-bottom:8px}.moments-settings-form{background:white;border:1px solid #e0e7df;border-radius:14px;padding:18px}.moments-settings-form>.moments-setting-label:first-child{margin-top:0}.moments-settings-form section{margin-top:20px}.moments-settings-form h3{font-size:13px;font-weight:600;margin:0 0 9px}.moments-save-settings{margin-top:10px;width:100%}.moments-settings-status{font-size:12px;color:var(--green);background:#edf4ec;border-radius:8px;padding:10px;line-height:1.7}@media(max-width:760px){.moments-visibility-label select,.moments-setting-label select{font-size:16px}.moments-setting-label{font-size:13px}.moments-audience-help,.moments-setting-help{font-size:12px}.moments-settings-form{padding:14px}.moments-settings-link,.moments-settings-back{font-size:12px}.moments-member-choice strong{font-size:13px}.moments-member-choice small{font-size:11px}}

/* Consecutive messages form a compact sender group. Actions are requested explicitly. */
#messages.messages{gap:3px}#messages .message-row{margin:0;outline:none}#messages .message-row.group-end{margin-bottom:12px}#messages .message-row:not(.group-end)>.avatar{visibility:hidden}#messages .message-row:not(.group-start) .message-author{display:none}#messages .message-meta{display:none;margin-top:5px}#messages .message-row.group-end .message-meta{display:flex}:is(#messages,#pending-messages) .message-bubble{border-radius:12px;padding:9px 13px}#messages .message-bubble{-webkit-touch-callout:none}#messages .message-row.group-end:not(.own) .message-bubble{border-bottom-left-radius:3px}:is(#messages,#pending-messages) .message-row.group-end.own .message-bubble{border-bottom-right-radius:3px}#messages .message-row>.avatar{margin-bottom:19px}#messages .message-row.message-selected .message-bubble{outline:2px solid #80b5b1;outline-offset:2px}#messages .message-row:focus-visible .message-bubble{outline:2px solid #80b5b1;outline-offset:2px}.message-action-detail{font-size:11px;line-height:1.6;padding:3px 4px;color:#829486}.reaction-repeat-note{font-size:11px!important;line-height:1.7!important;color:#82937f!important;text-align:center}
@media(max-width:760px){:is(#messages,#pending-messages) .message-bubble{padding:9px 12px}#messages .message-row.group-end{margin-bottom:11px}}
@media(pointer:coarse){#messages .message-bubble{-webkit-user-select:none;user-select:none}}

/* Private friend directory and unread app count. */
.rail-button{position:relative}.app-unread-badge{position:absolute;right:-5px;top:-5px;min-width:19px;height:19px;padding:0 4px;border:2px solid var(--green-dark,#244d53);border-radius:12px;background:#d6574b;color:#fff;font-size:10px;line-height:15px;text-align:center;font-weight:700}.app-unread-badge[hidden]{display:none}.friend-search-form{display:flex;gap:10px;align-items:flex-end;margin:14px 0}.friend-search-form label{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px;font-size:13px}.friend-search-form input{width:100%;min-width:0;border:1px solid #dce5dd;border-radius:12px;background:white;padding:12px;font:inherit}.friend-section{margin-top:24px}.friend-section h3{font-size:14px;margin:0 0 10px}.friend-row-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.friend-row-actions .button,.friend-search-result .button{font-size:12px;padding:8px 12px;min-height:38px}.friend-search-result .member-row{flex-wrap:wrap}.friend-section .member-row{flex-wrap:wrap}.friend-section .member-info{min-width:110px;flex:1}.friends-manage{display:block;margin:14px 0}.friend-section>.small-note{line-height:1.7}.contacts-options-trigger{font-size:25px;line-height:1;font-weight:650;letter-spacing:1px}.contacts-options-trigger[aria-expanded=true]{background:var(--soft);color:var(--green)}.contacts-options-panel{padding:13px;border:1px solid #dfe7dd;border-radius:15px;background:#fffefa;box-shadow:0 10px 28px #244d530d}.contacts-options-menu .profile-entry{min-height:64px;padding:13px}.contacts-options-note{margin:14px 0 4px!important}.contacts-email-form{margin-bottom:4px}.friend-directory{margin-top:0}.friend-request-section+.friend-directory,.contacts-options-panel+.friend-directory{margin-top:24px}.friend-count-summary{margin:12px 4px 0!important;padding-top:12px;border-top:1px solid #e2e9df;color:#6f8378!important;font-size:12px!important;font-weight:650;text-align:right}.friend-empty-note{margin:10px 0 0}.friend-matches{display:grid;gap:2px}.friend-matches .friend-contact-row{min-height:50px;padding:4px;gap:7px;flex-wrap:nowrap}.friend-contact-row .member-avatar-link{width:42px;min-width:42px;height:42px}.friend-contact-row .member-name-link{align-self:center;display:flex;min-height:42px;flex-direction:column;justify-content:center}.friend-contact-row .member-info{min-width:0}.friend-contact-row .member-info strong{line-height:1.35}.friend-contact-row .member-info small{line-height:1.35}@media(max-width:760px){.friend-search-form{flex-direction:column;align-items:stretch}.friend-search-form input{font-size:16px}.friend-row-actions{width:100%;justify-content:flex-start;padding-left:54px}.friend-row-actions .button{min-height:42px}.friend-section .member-row{gap:10px}.friend-search-result .button{min-height:42px}.contacts-options-panel{padding:11px}.contacts-options-menu .profile-entry{min-height:62px}}

/* Text copying keeps iOS selection handles and the native copy menu available. */
.message-copy-help,.message-copy-status{font-size:12px!important;line-height:1.7!important;color:#617c70!important;margin:10px 0 14px!important}.message-copy-text{display:block;width:100%;min-height:150px;max-height:44vh;max-height:44dvh;resize:vertical;border:1px solid #cddfd7;border-radius:12px;background:#fbfdf9;padding:14px;font:inherit;font-size:16px;line-height:1.7;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;-webkit-user-select:text;user-select:text;-webkit-touch-callout:default;touch-action:auto;cursor:text}.message-copy-controls{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:14px}.message-copy-controls .button{font-size:12px;min-height:44px}.message-copy-controls .button:disabled{opacity:.5;cursor:default}@media(max-width:760px){.message-copy-help,.message-copy-status{font-size:13px!important}.message-copy-controls{flex-direction:column-reverse}.message-copy-controls .button{width:100%;font-size:14px}}
.message-web-link{color:#226b84;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}.own .message-web-link{color:#235f73}.message-web-link:focus-visible{outline:2px solid #80b5b1;outline-offset:2px;border-radius:3px}.message-link-host{font-size:16px!important;font-weight:600;color:var(--ink)!important;overflow-wrap:anywhere}.message-link-address{display:block;width:100%;padding:12px;border:1px solid #cddfd7;border-radius:10px;background:#fbfdf9;color:var(--ink);font:inherit;font-size:16px;line-height:1.6;resize:vertical;-webkit-user-select:text;user-select:text;-webkit-touch-callout:default;touch-action:auto}.message-copy-controls a.button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.sticker-tabs{display:flex;gap:6px;margin-bottom:15px}.sticker-tab{flex:1;border:0;border-radius:10px;background:#eef4ee;color:#55786b;padding:11px 7px;font-size:12px;min-height:44px}.sticker-tab.active{background:var(--green);color:#fff}.sticker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.sticker-choice{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;padding:5px 3px 9px;border:1px solid transparent;border-radius:12px;background:#f8fbf6;color:var(--ink)}.sticker-choice:hover{background:#ecf4ec;border-color:#c7ddcf}.sticker-choice:focus-visible{background:#ecf4ec;border-color:#c7ddcf}.sticker-choice img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}.sticker-choice span{font-size:10px;line-height:1.4;text-align:center}.sticker-choice:disabled{opacity:.6}.sticker-hint{font-size:12px!important;color:#74887b!important;line-height:1.6!important;margin:15px 0 0!important}:is(#messages,#pending-messages) .message-bubble.sticker-bubble{background:transparent;box-shadow:none;padding:4px;border:0}.message-sticker{width:144px;max-width:100%;text-align:center}.message-sticker img{display:block;width:144px;max-width:100%;height:auto;aspect-ratio:1}.message-sticker small{font-size:11px;color:#6d8476}@media(max-width:760px){.sticker-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.sticker-choice span{font-size:11px}.sticker-tab{font-size:12px}.sticker-hint{font-size:12px!important}.composer #sticker-button{width:28px;flex-shrink:0}}
.invite-introduction{font-size:13px!important;line-height:1.7!important;color:#657f71!important}.member-invite-form{display:grid;gap:12px;margin:18px 0}.member-invite-code{display:block;font-size:25px;letter-spacing:4px;line-height:1.6;font-weight:650;color:var(--green)}.member-invite-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.member-invite-actions .button{min-height:42px;font-size:12px;padding:10px 12px}.member-invite-actions .text-button{min-height:38px;margin-left:auto}.member-invite-list{margin-top:18px}
.forgot-password{display:block;margin:14px 0 0 auto;min-height:36px;font-size:12px}.auth-notice{padding:12px 14px;border-radius:10px;background:#e8f1e8;color:#345f4f;font-size:12px;line-height:1.7}.auth-notice[hidden]{display:none}
.user-avatar-image{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}.avatar:has(.user-avatar-image){overflow:hidden}#nav-profile .user-avatar-image{border-radius:50%}.avatar-editor-preview{width:128px!important;height:128px!important;border-radius:28px!important;margin:10px auto 20px;font-size:35px!important;overflow:hidden}.avatar-editor-status{text-align:center;font-size:12px;color:#6b8276;overflow-wrap:anywhere}.avatar-editor-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.avatar-editor-actions .button{min-height:44px}@media(max-width:760px){.avatar-editor-actions{flex-direction:column}.avatar-editor-actions .button{width:100%}}
.cover-editor-preview{position:relative;width:100%;aspect-ratio:12/5;margin:8px auto 18px;overflow:hidden;border:1px solid #dce5d7;border-radius:16px;background:linear-gradient(122deg,#dfe8c9 0%,#cbdcb2 47%,#b7d7c4 100%)}.cover-editor-preview:before,.cover-editor-preview:after{content:"";position:absolute;border:18px solid #f5f8dc55;border-radius:50%;width:230px;height:160px;right:-35px;top:-78px;transform:rotate(-18deg)}.cover-editor-preview:after{right:auto;left:-90px;top:35px;border-color:#a9c59433}.cover-editor-preview img{position:relative;z-index:1;display:block;width:100%;height:100%;object-fit:contain;object-position:center;background:#26332f}.cover-editor-status{text-align:center;font-size:12px;color:#6b8276;overflow-wrap:anywhere}.cover-editor-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.cover-editor-actions .button{min-height:44px}@media(max-width:760px){.cover-editor-preview{aspect-ratio:2/1;border-radius:14px}.cover-editor-actions{flex-direction:column}.cover-editor-actions .button{width:100%}}
.mail-service-status{padding:13px 15px;border-radius:11px;background:#eff5ee;color:#4b715e;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.mail-test-form{margin-top:24px;padding-top:16px;border-top:1px solid #e2eadd}.mail-test-form>label{display:flex;flex-direction:column;gap:8px;color:#527165;font-size:12px}.mail-test-form input{width:100%;min-height:44px;border:1px solid #ccdad0;border-radius:9px;padding:10px;font:inherit;font-size:16px;background:#fffefb;color:var(--ink)}
/* Four mobile destinations, with the same navigation inside full-screen sections. */
.nav-label,.mobile-section-nav{display:none}.nav-profile-picture{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:inherit;overflow:hidden}.settings-group{margin:23px 0}.settings-group-title{font-size:10px!important;letter-spacing:1.2px;color:#91a086!important;font-weight:600;margin:0 0 9px 5px!important}.settings-group-rows{background:#fff;border:1px solid #e2e9db;border-radius:14px;overflow:hidden}.settings-group-rows .profile-entry{border:0;border-bottom:1px solid #edf1e7;border-radius:0;padding:15px 14px;background:transparent}.settings-group-rows .profile-entry:last-child{border-bottom:0}.settings-logout{margin-top:25px}.settings-logout .button{width:100%}.settings-explanation{font-size:12px!important;line-height:1.85!important;color:#819177!important;margin:20px 5px!important}.settings-account{display:flex;flex-direction:column;align-items:center;gap:6px;padding:18px;border-radius:16px;background:#f0f6e9;overflow-wrap:anywhere}.settings-account .avatar{width:64px;height:64px;margin-bottom:5px}.settings-account>strong{font-size:17px}.settings-account>span{font-size:11px;color:#7c9173}.settings-about{display:flex;flex-direction:column;align-items:center;gap:7px;margin:20px 0 26px}.settings-about img{width:74px;height:74px;border-radius:20px}.settings-about strong{font-size:24px;font-weight:650;color:var(--green)}.settings-about span{font-size:12px;color:#8d9f83}.section-page .profile-menu .profile-entry{background:#fff;border-color:#e5ebdf}.settings-back{margin:0 0 19px}
@media(max-width:760px){
 .app-view{grid-template-columns:minmax(0,1fr);padding-bottom:calc(65px + env(safe-area-inset-bottom));height:100vh;height:100dvh}
 .app-view>.rail{position:fixed;left:0;right:0;bottom:0;z-index:40;height:calc(65px + env(safe-area-inset-bottom));min-height:65px;display:flex;flex-direction:row;align-items:flex-start;justify-content:space-around;gap:0;padding:6px 8px max(6px,env(safe-area-inset-bottom));background:#fffefa;border-top:1px solid #e4ebdd}
 .rail>.rail-brand,.rail>.rail-spacer,.rail>#nav-admin,.rail>#nav-notifications,.rail>#nav-install,.rail>#nav-capture{display:none}
 .rail>#nav-chats,.rail>#nav-contacts,.rail>#nav-moments,.rail>#nav-profile{position:relative;width:25%;height:51px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:4px 0;margin:0;border:0;border-radius:0;background:transparent;color:#859879}
 .rail>#nav-chats{order:1}.rail>#nav-contacts{order:2}.rail>#nav-moments{order:3}.rail>#nav-profile{order:4}
 /* 0.2.9: Chấm công is a fifth tab for those it concerns. */
 .rail>#nav-attendance{position:relative;width:20%;height:51px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:4px 0;margin:0;border:0;border-radius:0;background:transparent;color:#859879;order:4}
 .app-view.attendance-tab .rail>#nav-chats,.app-view.attendance-tab .rail>#nav-contacts,.app-view.attendance-tab .rail>#nav-moments,.app-view.attendance-tab .rail>#nav-profile{width:20%}.app-view.attendance-tab .rail>#nav-profile{order:5}
 .mobile-section-nav-five .mobile-tab{width:20%}
 .rail .nav-label{display:block;font-size:10px;line-height:1.4;font-weight:500;white-space:nowrap}.rail .icon{width:23px;height:23px}.rail>#nav-profile .nav-profile-picture{width:23px;height:23px;border:1px solid #a7b69b;border-radius:50%;font-size:9px;line-height:1;background:#eff5e8;color:#64815a}
 .rail>.active{color:#2b6066!important}.rail>.active .icon{stroke-width:2}.rail>.active .nav-label{font-weight:700}.rail>#nav-profile.active .nav-profile-picture{border-color:#2b6066;background:#dfeede}
 .rail .app-unread-badge{right:calc(50% - 26px);top:0;min-width:17px;height:17px;border-color:#fffefa;font-size:9px;line-height:13px}
 .app-view.chat-open{padding-bottom:0}.app-view.chat-open>.rail{display:none}.sidebar-heading{padding-top:max(24px,env(safe-area-inset-top))}.sidebar{width:100%;min-width:0}
 .modal.section-page,.modal.settings-screen{width:100vw;max-width:none;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;padding:0;margin:0;border:0;border-radius:0;background:#f6f8f1;overflow:hidden}
 .modal.section-page[open],.modal.settings-screen[open]{display:flex;flex-direction:column}
 .modal.section-page>.modal-heading,.modal.settings-screen>.modal-heading{padding:max(18px,env(safe-area-inset-top)) 19px 17px;margin:0;border-bottom:1px solid #e3eadb;background:#fffefa;flex-shrink:0}
 .modal.section-page .modal-heading h2,.modal.settings-screen .modal-heading h2{font-size:21px;margin-top:4px}.modal.section-page .modal-heading .eyebrow,.modal.settings-screen .modal-heading .eyebrow{font-size:8px;letter-spacing:1.5px}
 .modal.section-page>.modal-body,.modal.settings-screen>.modal-body{flex:1;min-height:0;overflow:auto;padding:20px 17px 25px;overscroll-behavior:contain}
 .modal.settings-screen>.modal-body{padding-bottom:max(25px,env(safe-area-inset-bottom))} .settings-group{margin:22px 0}.settings-group-rows .profile-entry{padding:15px 12px}.settings-group-rows .profile-entry strong{font-size:13px}.settings-group-rows .profile-entry small{font-size:11px;line-height:1.6}.settings-group-rows .profile-entry .icon{width:20px;height:20px}.settings-group-title{font-size:9px!important;letter-spacing:1.2px}.settings-explanation{font-size:12px!important}
 .mobile-section-nav{display:flex;justify-content:space-around;align-items:flex-start;gap:0;width:100%;height:calc(65px + env(safe-area-inset-bottom));min-height:65px;flex-shrink:0;padding:6px 8px max(6px,env(safe-area-inset-bottom));border-top:1px solid #e4ebdd;background:#fffefa}
 .mobile-tab{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:25%;height:51px;padding:4px 0;border:0;background:transparent;color:#859879}.mobile-tab .icon{width:23px;height:23px}.mobile-tab-label{font-size:10px;line-height:1.4;font-weight:500;white-space:nowrap}.mobile-tab.active{color:#2b6066}.mobile-tab.active .icon{stroke-width:2}.mobile-tab.active .mobile-tab-label{font-weight:700}.mobile-tab-avatar{display:flex;align-items:center;justify-content:center;width:23px;height:23px;overflow:hidden;background:#eff5e8;color:#64815a;border:1px solid #a7b69b;border-radius:50%;font-size:9px;line-height:1}.mobile-tab.active .mobile-tab-avatar{border-color:#2b6066;background:#dfeede}
 .mobile-unread-badge{position:absolute;right:calc(50% - 26px);top:0;min-width:17px;height:17px;border:2px solid #fffefa;border-radius:12px;background:#d6574b;color:white;font-size:9px;line-height:13px;text-align:center;padding:0 3px}.toast-region{bottom:calc(76px + env(safe-area-inset-bottom))}
}
/* Sticker tray stays with the composer, replacing the mobile keyboard area. */
.sticker-tray{display:flex;flex-direction:column;width:min(100%,480px);height:min(350px,45vh);height:min(350px,45dvh);min-height:180px;margin:10px auto 0;border:1px solid #dce7db;border-radius:17px;background:#f7faf4;overflow:hidden;box-shadow:0 -2px 15px #38694d06}.sticker-tray-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 12px 4px;flex-shrink:0}.sticker-tray-heading>strong{font-size:12px;color:#527761}.sticker-tray-controls{display:flex;align-items:center;gap:7px}.sticker-tray-controls .icon-button{width:30px;height:30px;padding:7px}.sticker-keyboard{border:0;background:none;color:#608269;font-size:11px;padding:7px}.sticker-tray .sticker-tabs{gap:4px;padding:0 8px 7px;margin:0;border-bottom:1px solid #e1ebdd;flex-shrink:0}.sticker-tray .sticker-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:0;padding:4px 3px;min-height:53px;background:transparent;border:1px solid transparent;border-radius:10px;color:#7f9376}.sticker-tray .sticker-tab.active{background:#e2efdc;color:#3f724e;border-color:#d1e1ca}.sticker-tab img{width:30px;height:30px;object-fit:contain}.sticker-tab-symbol{display:flex;align-items:center;justify-content:center;height:30px;font-size:26px;line-height:1}.sticker-tab-name{font-size:9px;line-height:1.2;white-space:nowrap}.sticker-tray .sticker-grid{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;align-content:start;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:8px 9px}.sticker-tray .sticker-choice{padding:2px 3px 5px;gap:0;background:transparent;border-radius:10px}.sticker-tray .sticker-choice:hover{background:#e9f3e2}.sticker-tray .sticker-choice img{width:min(100%,80px);height:auto}.sticker-tray .sticker-choice span{font-size:9px;color:#78936c}.sticker-tray .sticker-hint{padding:5px 10px 7px;margin:0!important;font-size:10px!important;flex-shrink:0;border-top:1px solid #e4edde;text-align:center}.sticker-tray-status{font-size:11px;color:var(--danger);line-height:1.5;margin:4px 12px;flex-shrink:0}.sticker-recent-empty{grid-column:1/-1;font-size:12px;color:#7c9471;line-height:1.8;text-align:center;margin:auto;max-width:260px;padding:22px 12px}.sticker-tray .emoji-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.emoji-choice{border:0;background:transparent;border-radius:10px;min-height:43px;padding:5px;font-size:28px;line-height:1.2}.emoji-choice:hover{background:#e6f0df}.composer-wrap:has(.sticker-tray:not([hidden])) .composer-footer{display:none}#sticker-button[aria-expanded=true]{background:#e4eee0;color:#47794d}@media(max-width:760px){.sticker-tray{width:100%;height:min(340px,43vh);height:min(340px,43dvh);margin:8px 0 0;border-radius:13px 13px 8px 8px}.sticker-tray .sticker-grid{grid-template-columns:repeat(4,minmax(0,1fr));padding:7px 5px;gap:3px}.sticker-tray .emoji-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.sticker-tray .sticker-choice img{width:min(100%,75px)}.sticker-tray .sticker-choice span{font-size:9px}.sticker-tab-name{font-size:9px}.sticker-tray .sticker-hint{font-size:9px!important}.composer-wrap:has(.sticker-tray:not([hidden])){padding-bottom:max(6px,env(safe-area-inset-bottom))}}

/* Each panda is a transparent square cell from one locally cached atlas. */
.sticker-sprite{display:block;max-width:100%;aspect-ratio:1;background-repeat:no-repeat;flex-shrink:0}.sticker-tray .sticker-choice .sticker-sprite{width:min(100%,80px)!important;height:auto!important}.sticker-tab .sticker-sprite{width:30px!important;height:30px!important}.message-sticker .sticker-sprite{width:144px!important;height:auto!important}.sticker-sprite[data-ready=error]{background-image:none!important;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:24px}.sticker-choice-label{font-size:9px;line-height:1.4;text-align:center}@media(max-width:760px){.sticker-tray .sticker-choice .sticker-sprite{width:min(100%,75px)!important}}

.device-limit-note{margin:14px 0 18px;font-size:11px;line-height:1.6;color:#708172}.device-limit-note[hidden]{display:none}

/* System-owned notification sound and deliberate incoming-call swipe controls. */
.sound-settings{margin-top:24px;padding-top:8px;border-top:1px solid var(--line)}
.sound-system-note{margin-top:16px!important}
.incoming-swipe{margin:6px auto 22px;max-width:370px}
.incoming-swipe-track{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:64px;padding:0 14px;border-radius:40px;background:#163e43;border:1px solid #83b8b34d;touch-action:none;user-select:none;-webkit-user-select:none}
.incoming-swipe-decline,.incoming-swipe-answer{font-size:12px;font-weight:600;pointer-events:none}
.incoming-swipe-decline{color:#f4b7a4}.incoming-swipe-answer{color:#c2ede0}
.incoming-swipe-thumb{position:absolute;left:calc(50% - 25px);width:50px;height:50px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#f5e7da;color:#28575c;box-shadow:0 3px 14px #001d2940;cursor:grab;will-change:transform}
.incoming-swipe-thumb:active{cursor:grabbing}.incoming-swipe-thumb:focus-visible{outline:3px solid #c2ede0;outline-offset:4px}.incoming-swipe-thumb .icon{width:23px;height:23px;pointer-events:none}
.incoming-swipe-track[data-direction=answer]{border-color:#a6d9be;background:#205b54}.incoming-swipe-track[data-direction=decline]{border-color:#e9ad99;background:#673f40}
.incoming-swipe-hint{font-size:11px;line-height:1.6;text-align:center;color:#b8d3cf;min-height:36px;margin:10px 7px 0}
.incoming-call .call-actions,.incoming-call .call-output-help{display:none}
/* 0.1.94: a call answered on the iPhone's own call screen goes on in Doho with one tap. */
.call-taking .call-actions,.call-taking .call-output-help{display:none}
.call-take-area{display:flex;flex-direction:column;align-items:center;gap:8px;margin:6px auto 22px;max-width:370px}
.call-take-area[hidden]{display:none}
.call-take{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:60px;padding:0 22px;border:0;border-radius:40px;background:#2f9e6a;color:#fff;font:inherit;font-size:17px;font-weight:650;box-shadow:0 3px 14px #001d2940;cursor:pointer}
.call-take .icon{width:22px;height:22px}
.call-take:disabled{opacity:.6}
.call-take-end{min-height:44px;padding:0 18px;border:0;border-radius:22px;background:transparent;color:#f4b7a4;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.call-output{width:auto;min-width:49px;gap:7px;border-radius:26px;padding:0 13px;white-space:nowrap}.call-output .icon{width:19px;height:19px}.call-output span{font-size:11px;font-weight:600}.call-output[aria-pressed=true]{background:#d8ece4;color:#214d49}.call-output:disabled{opacity:.65;cursor:not-allowed}.call-output-help{margin:12px auto 0;max-width:380px;text-align:center;color:#c1d7cf;font-size:11px;line-height:1.5}.call-output-help[hidden]{display:none}
@media(max-width:760px){.incoming-call .call-stage{min-height:230px;margin:12px 0}.incoming-call .call-note{margin-top:22px}.incoming-swipe{margin-bottom:14px}.incoming-swipe-track{padding:0 12px}.incoming-swipe-decline,.incoming-swipe-answer{font-size:11px}}

/* Direct profile gestures retain visible keyboard and touch targets. */
.profile-portrait { border:0; padding:0; flex-shrink:0; cursor:pointer; }
#conversation-avatar[role="button"] { cursor:pointer; }
.profile-portrait:focus-visible,#conversation-avatar:focus-visible { outline:3px solid var(--teal,#2c6669); outline-offset:4px; }

/* Direct editing keeps names and portraits where people expect to find them. */
.editable-group-title { cursor:pointer; display:flex; align-items:center; gap:8px; width:fit-content; max-width:100%; }
.editable-group-title .icon { width:15px; height:15px; flex:none; color:var(--teal,#2d6269); }
.editable-group-title:focus-visible { outline:2px solid var(--teal,#2d6269); outline-offset:4px; border-radius:5px; }

/* Sticker runs wrap inside the chat column; every tile remains a full message. */
#messages .message-sticker-run{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:flex-start;align-self:flex-start;gap:6px 8px;width:min(100%,640px);max-width:100%;min-width:0;margin:0 0 8px}
#messages .message-sticker-run.own{align-self:flex-end;justify-content:flex-end}
#messages .message-sticker-run>.message-row{flex:0 0 152px;width:152px;max-width:100%;min-width:0;margin:0;align-self:flex-end}
#messages .message-sticker-run>.message-row>.avatar{display:none}
#messages .message-sticker-run .message-stack{width:100%;min-width:0}
#messages .message-sticker-run .message-bubble{max-width:100%;overflow-wrap:anywhere}
#messages .message-sticker-run .message-reply{max-width:100%;white-space:pre-line}
#messages .message-sticker-run .message-author{max-width:100%;overflow-wrap:anywhere}

@media(max-width:600px){
 #messages .message-sticker-run>.message-row{flex-basis:140px;width:140px}
 #messages .message-sticker-run .message-sticker{width:132px}
 #messages .message-sticker-run .message-sticker .sticker-sprite{width:132px!important}
 #messages .message-sticker-run .message-sticker img{width:132px}
}

/* Secondary list actions work with touch hold, mouse context menu and keyboard. */
.conversation-item{-webkit-touch-callout:none;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.conversation-list-actions .conversation-delete-entry{display:flex;align-items:center;gap:14px;width:100%;min-height:54px;padding:14px 16px;border:1px solid #efd6d0;border-radius:13px;background:#fff4ef;color:#a5453f;text-align:left;font-size:15px;font-weight:600}
.conversation-list-actions .conversation-delete-entry .icon{width:21px;height:21px;flex:none}
.sidebar-heading-actions{display:flex;align-items:center;gap:5px}.conversation-select-button,.new-chat-button{width:36px;height:36px}.conversation-select-button{border:1px solid #e3e9df;color:var(--green);border-radius:10px}.conversation-select-button.active{background:var(--soft);border-color:#bfd7d1;color:var(--green-dark)}.conversation-bulk-toolbar{margin:13px 14px 0;padding:12px;border:1px solid #dce8e3;border-radius:14px;background:#f2f7f5;box-shadow:0 7px 20px #264e5308}.conversation-bulk-summary{display:flex;align-items:center;justify-content:space-between;gap:10px}.conversation-bulk-summary strong{font-size:12px;font-weight:650}.conversation-bulk-summary .text-button{min-height:32px;padding:4px}.conversation-bulk-actions{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(72px,.75fr) auto;gap:7px;align-items:center;margin-top:9px}.conversation-bulk-actions .button{min-height:38px;padding:8px 10px;font-size:11px;white-space:nowrap}.conversation-bulk-actions>.text-button{min-height:38px;padding:7px}.conversation-item.bulk-selecting{padding-left:8px}.conversation-item.bulk-selecting.selected:before{display:none}.conversation-item.bulk-selected{background:#e4f0ed}.conversation-item.bulk-selected:hover{background:#dcebe7}.conversation-select-indicator{display:flex;width:22px;height:22px;align-items:center;justify-content:center;flex:none;border:1.5px solid #9db3ad;border-radius:7px;background:#fff;color:#fff}.conversation-select-indicator .icon{width:15px;height:15px;stroke-width:2.5}.conversation-item.bulk-selected .conversation-select-indicator{border-color:var(--green);background:var(--green)}.conversation-pin-mark{display:inline-flex;align-items:center;justify-content:center;margin-right:4px;color:#6d897d;vertical-align:-2px}.conversation-pin-mark .icon{width:13px;height:13px;stroke-width:1.9}.conversation-list-actions{display:grid;gap:9px}.conversation-list-actions .conversation-action-entry{display:flex;align-items:center;gap:14px;width:100%;min-height:52px;padding:13px 16px;border:1px solid #dce8e3;border-radius:13px;background:#f5f9f7;color:var(--green);text-align:left;font-size:14px;font-weight:600}.conversation-list-actions .conversation-action-entry:hover{background:#eaf3ef}.conversation-list-actions .conversation-action-entry .icon{width:20px;height:20px;flex:none}.conversation-list-actions .conversation-delete-entry{margin-top:3px}.conversation-bulk-delete-names{max-height:210px;overflow:auto;margin:14px 0;padding:10px 10px 10px 30px;border:1px solid #e3e9df;border-radius:12px;background:#fbfcf9;color:#58726b}.conversation-bulk-delete-names li{padding:4px 2px;font-size:12px;overflow-wrap:anywhere}.conversation-bulk-delete-confirm>p{line-height:1.75}
@media(max-width:760px){.sidebar-heading-actions{gap:3px}.conversation-select-button,.new-chat-button{width:39px;height:39px}.conversation-bulk-toolbar{margin:11px 13px 0;padding:11px}.conversation-bulk-summary strong,.conversation-bulk-summary .text-button{font-size:12px}.conversation-bulk-actions{grid-template-columns:minmax(0,1fr) minmax(68px,.58fr) auto;gap:5px}.conversation-bulk-actions .button{padding:7px 8px;font-size:10px}.conversation-bulk-actions>.text-button{font-size:11px;padding-inline:5px}.conversation-item.bulk-selecting{min-height:72px}.conversation-list-actions .conversation-action-entry,.conversation-list-actions .conversation-delete-entry{min-height:54px;font-size:14px}.conversation-bulk-delete-names li{font-size:13px}}
.conversation-delete-entry:hover{background:#fbe7de;outline:2px solid #cb8177;outline-offset:2px}.conversation-delete-entry:focus-visible{background:#fbe7de;outline:2px solid #cb8177;outline-offset:2px}
.conversation-delete-name{display:block;font-size:16px;color:var(--ink);overflow-wrap:anywhere}
.conversation-delete-confirm .modal-actions .button{min-height:44px}

/* Contact identities open profiles; destructive friendship actions stay in the profile menu. */
.member-avatar-link,.member-name-link{border:0;background:transparent;color:inherit}
.member-avatar-link{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:44px;min-width:44px;height:44px;padding:0;border-radius:12px}
.member-name-link{align-self:stretch;min-width:0;flex:1;padding:0;text-align:left;border-radius:8px}
.member-avatar-link:hover .avatar,.member-name-link:hover strong{color:var(--green);filter:brightness(.96)}
.member-avatar-link:focus-visible,.member-name-link:focus-visible{outline:3px solid #80b5b1;outline-offset:3px}
.contact-profile-actions-identity{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:13px;padding:3px 5px 18px}
.contact-profile-actions-identity .avatar{grid-row:1/3;width:54px;height:54px;border-radius:16px;font-size:16px}
.contact-profile-actions-identity strong{align-self:end;font-size:17px;overflow-wrap:anywhere}
.contact-profile-actions-identity span{align-self:start;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.contact-profile-actions .profile-entry-danger{color:var(--danger)}
.contact-profile-actions .profile-entry-danger svg{stroke:var(--danger)}
.contact-unfriend-warning{padding:14px 15px;border:1px solid #efd8d4;border-radius:13px;background:#fff7f4;color:#7f4a47!important}
.avatar-viewer-preview{width:min(360px,82vw)!important;height:min(360px,82vw)!important;margin:12px auto 16px!important;border-radius:50%!important;font-size:64px!important;box-shadow:0 20px 55px #244d5326}
.avatar-viewer-caption{text-align:center;margin:0 0 18px}
.avatar-viewer-close{display:flex;margin:0 auto;min-width:120px}

/* A visible, selectable recovery path when a browser blocks clipboard access. */
.copy-fallback-overlay{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:20px;background:#173f4566;backdrop-filter:blur(5px)}
.copy-fallback-panel{display:grid;gap:14px;width:min(560px,100%);max-height:min(760px,calc(100vh - 40px));max-height:min(760px,calc(100dvh - 40px));padding:22px;border:1px solid var(--line);border-radius:20px;background:var(--paper,#fffdf8);box-shadow:0 24px 70px #173f4552;overflow:auto}
.copy-fallback-title{font-size:20px;color:var(--ink)}
.copy-fallback-panel .small-note{margin:0}
.copy-fallback-text{width:100%;min-height:230px;resize:vertical;border:1px solid #a9c8c1;border-radius:12px;padding:13px;background:#fff;color:var(--ink);font:14px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap}
.copy-fallback-text:focus{outline:3px solid #80b5b1;outline-offset:2px}
.copy-fallback-panel .button{justify-self:end;min-width:100px}
@media(max-width:600px){.copy-fallback-overlay{padding:10px}.copy-fallback-panel{max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);padding:18px;border-radius:16px}.copy-fallback-text{min-height:42vh;min-height:42dvh}}

/* Forwarding keeps account and group choices together in one bounded picker. */


.message-forwarded-label{display:flex;align-items:center;gap:5px;margin:0 0 6px;color:#708c80;font-size:9px;font-weight:600;line-height:1.35}
.message-forwarded-label .icon{width:13px;height:13px;stroke-width:1.8}
.forward-message-dialog{min-height:0}
.forward-form{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;gap:12px;min-height:0}
.forward-search-label{display:grid;gap:6px;color:#55756a;font-size:11px;font-weight:650}
.forward-search-label .forward-search{margin:0;font-size:14px}
.forward-summary{min-height:20px;color:#70877a;font-size:11px;line-height:1.6}
.forward-target-list{display:grid;gap:17px;max-height:min(390px,44vh);max-height:min(390px,44dvh);padding:2px 3px 5px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.forward-target-section{min-width:0}
.forward-target-section>h3{margin:0 0 8px;color:#75906d;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.forward-target-rows{display:grid;gap:5px}
.forward-target-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;min-height:60px;padding:8px 10px;border:1px solid #e2e9df;border-radius:13px;background:#fff;cursor:pointer}
.forward-target-row:hover{background:#f2f7f0;border-color:#cbdccf}
.forward-target-row:has(input:checked){background:#e7f1ec;border-color:#96bdb1}
.forward-target-row:has(input:focus-visible){outline:3px solid #80b5b1;outline-offset:2px}
.forward-target-row .avatar{width:42px;height:42px;border-radius:12px}
.forward-target-info{display:flex;flex-direction:column;min-width:0;gap:2px}
.forward-target-info strong{overflow:hidden;color:var(--ink);font-size:13px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.forward-target-info small{overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.forward-target-row input{width:20px;height:20px;margin:0;accent-color:var(--green);cursor:pointer}
.forward-target-row input:disabled{cursor:not-allowed}
.forward-empty{margin:5px 0!important;padding:18px;border:1px dashed #dce5d8;border-radius:12px;text-align:center}
.forward-actions{position:sticky;bottom:-25px;margin:4px -25px -25px;padding:13px 25px max(13px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fcfbf7eb;backdrop-filter:blur(10px)}
.forward-submit{min-width:145px}
.forward-loading{display:flex;align-items:center;justify-content:center;gap:12px;min-height:220px;color:#718479;text-align:center}
.forward-loading p{margin:0}
@media(max-width:760px){.forward-target-list{max-height:37vh;max-height:37dvh}.forward-target-row{min-height:64px;padding:9px}.forward-target-info strong{font-size:14px}.forward-target-info small,.forward-summary{font-size:11px}.forward-actions{bottom:-21px;display:grid;grid-template-columns:1fr 1.4fr;margin:4px -21px -21px;padding-inline:21px}.forward-actions .button{width:100%;padding-inline:10px}.message-forwarded-label{font-size:10px}}

/* Chat images: a single picture keeps its own shape and is drawn whole, sized to
   be readable in the bubble (receipts, invoices) without opening the viewer.
   Several pictures in one message share a square grid. Captions, sizes and the
   original download stay in the viewer. */
#messages .message-bubble.image-bubble{padding:4px}
.message-bubble.image-bubble .message-image-grid{margin:0}
.message-attachment.is-image{--image-max-w:340px;--image-max-h:440px;width:min(var(--image-max-w),calc(var(--image-max-h) * var(--image-ratio,1.3333)));max-width:100%;margin:3px 0}
.is-image .attachment-image-preview{position:relative;width:100%;aspect-ratio:var(--image-ratio,1.3333);border-radius:10px;overflow:hidden;background:#e4ece8}
.is-image .attachment-preview-link{display:block;width:100%;height:100%}
.is-image .message-image{display:block;width:100%;height:100%;max-width:none;max-height:none;margin:0;object-fit:contain;border-radius:0}
.is-image .attachment-preview-status{position:absolute;inset:0;display:grid;place-items:center;margin:0;padding:8px;color:#587168;font-size:11px;text-align:center}
.is-image .attachment-preview-status[hidden]{display:none}
.is-image .attachment-preview-retry{position:absolute;z-index:1;left:50%;bottom:10px;transform:translateX(-50%);min-height:32px;padding:4px 12px;border-radius:8px;background:#fff}
.message-image-grid{display:grid;width:340px;max-width:100%;gap:3px;margin:4px 0}
.message-image-grid.image-count-1{display:block;width:auto}
.message-image-grid.image-count-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.message-image-grid.image-count-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.message-image-grid:not(.image-count-1) .message-attachment.is-image{position:relative;width:auto;min-width:0;max-width:none;margin:0;overflow:hidden;border-radius:7px;background:#d5e5df}
.message-image-grid:not(.image-count-1) .attachment-image-preview{aspect-ratio:1;border-radius:0}
.message-image-grid:not(.image-count-1) .message-image{object-fit:cover}
.message-image-grid:not(.image-count-1) .attachment-preview-status{background:#e7eeea;font-size:9px}
.message-image-grid:not(.image-count-1) .attachment-preview-retry{left:5px;right:5px;bottom:5px;transform:none;padding:4px}
@media(max-width:760px){.message-attachment.is-image{--image-max-w:min(300px,calc(100vw - 96px));--image-max-h:420px}.message-image-grid{width:min(303px,calc(100vw - 70px));gap:3px}}

/* A compact reaction affordance stays with each live bubble. The palette is
   already in the DOM, so opening it never waits for a modal or a request. */
.message-reaction-control{position:relative;align-self:flex-end;display:flex;justify-content:flex-end;width:28px;height:20px;margin:-7px 3px -3px;z-index:5}
.message-reaction-control,.message-reaction-control *,.message-reaction-toolbar,.message-reaction-toolbar *,.message-action-panel,.message-action-panel *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.message-quick-reaction,.message-quick-reaction-choice{touch-action:manipulation}
#messages .message-body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
/* Mouse users select message text directly; touch screens keep long-press for
   the message menu and select in place only after "Chọn văn bản". */
@media (hover:hover) and (pointer:fine){#messages .message-bubble .message-body{-webkit-user-select:text;user-select:text;cursor:text}}
.message-quick-reaction{display:grid;place-items:center;width:26px;height:26px;min-width:26px;padding:0;border:1px solid #dce7df;border-radius:50%;background:#fff;color:#668078;box-shadow:0 2px 7px #244d5314;font-size:14px;line-height:1}
.message-quick-reaction:hover,.message-quick-reaction[aria-expanded=true]{border-color:#8eb7ae;background:#f5faf7;color:#285d61}.message-quick-reaction:focus-visible{border-color:#8eb7ae;background:#f5faf7;color:#285d61}
.message-quick-reaction.active{border-color:#edb3ad;background:#fff7f5;color:#c64b4c}
.message-quick-reaction>span{display:block;transform:translateY(-.5px)}
.message-menu-backdrop{position:fixed;inset:0;z-index:190;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);background:#122126aa;touch-action:none}
.message-reaction-toolbar{display:flex;align-items:center;gap:8px;width:100%;white-space:nowrap}
.message-quick-reaction-picker{position:fixed;z-index:192;width:min(430px,calc(100vw - 16px));padding:0;border:0;background:transparent;box-shadow:none}
.message-quick-reaction-options{display:flex;align-items:center;justify-content:space-between;flex:1;min-width:0;padding:7px 5px;border-radius:12px;background:#fff;box-shadow:0 8px 28px #1221262b}
.message-quick-reaction-choice{display:grid;place-items:center;flex:1;min-width:0;height:39px;padding:0;border:0;border-radius:9px;background:transparent;font-size:28px;line-height:1}
.message-quick-reaction-choice:hover{background:#edf4ef;transform:translateY(-1px)}.message-quick-reaction-choice:focus-visible{background:#edf4ef;transform:translateY(-1px)}
.message-quick-reaction-choice.active{background:#e6f1ec}
.message-quick-reaction-more{color:#72817e}.message-quick-reaction-more .icon{width:28px;height:28px}
.message-quick-reaction-remove{flex:0 0 44px;width:44px;height:44px;border:0;border-radius:50%;background:#fff;color:#6c7877;box-shadow:0 8px 28px #1221262b}
.message-quick-reaction-remove .icon{width:26px;height:26px}
.message-quick-reaction-remove:disabled{color:#abb3b1;cursor:default}
.message-action-panel{position:fixed;z-index:192;display:flex;flex-direction:column;gap:9px;width:min(430px,calc(100vw - 24px));min-width:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}
.message-action-preview{flex-shrink:0;margin:0 14px;padding:12px 14px 7px;border-radius:14px;background:#fff;box-shadow:0 8px 28px #1221262b}
.message-action-preview-content{font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;max-height:min(20vh,140px);max-height:min(20dvh,140px);overflow-y:auto}
.message-action-preview-files{font-size:11px;color:#627a71;overflow-wrap:anywhere;margin-top:6px;max-height:45px;overflow-y:auto}
.message-action-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:3px 0 0;min-height:25px}.message-action-time{font-size:10px;white-space:normal;color:#81928b}.message-action-heading>.icon-button{flex-shrink:0;width:25px;height:25px}
.message-action-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;flex-shrink:0;margin:0;padding:12px 8px;border:0;border-radius:15px;background:#fff;box-shadow:0 8px 28px #1221262b}
.message-action-button.icon-button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;width:100%;height:70px;padding:7px 2px;gap:8px;background:transparent;color:#357b89}
.message-action-button.icon-button .icon{width:26px;height:26px}.message-action-button.icon-button span{font-size:11px;line-height:1.2;white-space:normal;color:#304b47}
.message-action-button:nth-child(2){color:#5689c8}.message-action-button:nth-child(3){color:#43a0b6}.message-action-button:nth-child(5){color:#d48c45}.message-action-button:last-child{color:#ad675d}
@media(max-width:360px){.message-reaction-toolbar{gap:6px}.message-quick-reaction-choice{height:36px;font-size:25px}.message-quick-reaction-options{padding:6px 3px}.message-quick-reaction-remove{flex-basis:40px;width:40px;height:40px}.message-quick-reaction-more .icon{width:25px;height:25px}.message-action-preview{margin:0 7px}.message-action-button.icon-button{height:66px}.message-action-button.icon-button span{font-size:10px}}
.composer{position:relative}
.composer.is-file-dragover{border-color:#80b5b1;box-shadow:0 0 0 4px #80b5b128}
.composer-drop-hint{position:absolute;inset:4px;z-index:3;display:flex;align-items:center;justify-content:center;border:1px dashed #80b5b1;border-radius:10px;background:#edf6f3f2;color:var(--green);font-size:12px;font-weight:650;pointer-events:none}

/* Call records are real timeline entries. Their whole surface recalls with
   the same medium, while status, duration and timestamp stay visible. */
#messages .message-bubble.call-history-bubble{padding:0;overflow:hidden}
.call-history-card{display:grid;grid-template-columns:38px minmax(120px,1fr) auto;align-items:center;gap:10px;width:min(340px,calc(100vw - 118px));min-height:72px;padding:11px 12px;border:0;background:transparent;color:var(--ink);text-align:left;touch-action:manipulation}
.call-history-card:hover{background:#f4f8f4}
.own .call-history-card:hover{background:#d8e9e4}
.call-history-card:focus-visible{outline:2px solid #80b5b1;outline-offset:-3px}
.call-history-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#dbeae5;color:var(--green)}
.call-history-icon .icon{width:20px;height:20px}
.call-history-copy{display:flex;min-width:0;flex-direction:column;gap:2px}
.call-history-copy strong{font-size:12px;line-height:1.35;font-weight:650}
.call-history-detail{font-size:10px;line-height:1.45;color:#6f8278}
.call-history-time{font-size:9px;line-height:1.4;color:#98a49d;font-variant-numeric:tabular-nums}
.call-history-action{align-self:center;color:var(--green);font-size:9px;font-weight:650;white-space:nowrap}
.call-history-card.missed .call-history-icon{background:#fae6e3;color:#b64f4a}
.call-history-card.missed .call-history-copy strong{color:#a44743}
@media(max-width:760px){.call-history-card{width:min(310px,calc(100vw - 58px));grid-template-columns:38px minmax(0,1fr);min-height:76px}.call-history-action{grid-column:2;font-size:10px;margin-top:1px}.call-history-copy strong{font-size:13px}.call-history-detail{font-size:11px}.call-history-time{font-size:10px}}

/* Administrator account-created notifications stay bounded and paint cached
   rows immediately while the newest page is refreshed in the background. */
.admin-notification-intro{margin:0 0 8px!important;color:#73867d!important}
.admin-notification-summary{margin:0 0 12px!important;color:var(--green)!important;font-size:12px!important;font-weight:700}
.admin-notification-list{display:grid;gap:8px;max-height:min(500px,52vh);max-height:min(500px,52dvh);padding:2px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.admin-notification-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:11px;padding:13px;border:1px solid #e0e8e1;border-radius:13px;background:#fff;min-width:0}
.admin-notification-card.unread{border-color:#9fc5bb;background:#f1f8f5;box-shadow:inset 3px 0 #4d8a7e}
.admin-notification-card>.avatar{width:40px;height:40px;border-radius:12px;font-size:12px}
.admin-notification-content{display:flex;min-width:0;flex-direction:column;gap:3px}
.admin-notification-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0}
.admin-notification-heading strong{font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.admin-notification-read-state{flex-shrink:0;padding:2px 6px;border-radius:8px;background:#edf1eb;color:#819083;font-size:9px;font-weight:650}
.admin-notification-card.unread .admin-notification-read-state{background:#d9ebe5;color:#356b63}
.admin-notification-account{color:#668078;font-size:11px;overflow-wrap:anywhere}
.admin-notification-inviter{margin:4px 0 0!important;color:#708179!important;font-size:11px!important;line-height:1.55!important;overflow-wrap:anywhere}
.admin-notification-inviter strong{color:#3f625c;font-weight:650}
.admin-notification-time{color:#98a59e;font-size:10px;font-variant-numeric:tabular-nums}
.admin-notification-read{align-self:center;min-height:36px;padding:7px;font-size:11px;white-space:nowrap}
.admin-notification-status{margin:10px 2px 0!important;padding:8px 10px;border-radius:9px;background:#eef4ef;color:#61786e!important;font-size:11px!important;line-height:1.55!important}
.admin-notification-status.error{background:#fbebeb;color:var(--danger)!important}
.admin-notification-empty{margin:0!important;padding:28px 16px;border:1px dashed #dce6dc;border-radius:12px;text-align:center}
.admin-notification-actions{display:flex;justify-content:center;gap:8px;margin-top:12px}
.admin-notification-actions .button{font-size:12px;min-height:40px;padding:9px 14px}
.admin-notification-skeleton{display:grid;grid-template-columns:40px 1fr;gap:11px;min-height:92px;padding:13px;border:1px solid #e5ebe3;border-radius:13px;background:#fff;overflow:hidden}
.admin-notification-skeleton span{display:block;border-radius:8px;background:linear-gradient(100deg,#edf1ec 25%,#f8faf6 42%,#edf1ec 60%);background-size:300% 100%;animation:admin-notification-shimmer 1.2s ease-in-out infinite}
.admin-notification-skeleton span:first-child{grid-row:1/4;width:40px;height:40px;border-radius:12px}.admin-notification-skeleton span:nth-child(2){height:14px}.admin-notification-skeleton span:nth-child(3){height:11px;width:72%}
@keyframes admin-notification-shimmer{to{background-position:-150% 0}}
@media(max-width:600px){.admin-notification-list{max-height:50vh;max-height:50dvh}.admin-notification-card{grid-template-columns:auto minmax(0,1fr);padding:12px 10px}.admin-notification-read{grid-column:2;justify-self:start;min-height:38px;padding:5px 0;font-size:12px}.admin-notification-heading{display:block}.admin-notification-read-state{display:inline-block;margin-top:3px}.admin-notification-account,.admin-notification-inviter{font-size:12px!important}.admin-notification-time{font-size:11px}}

/* Familiar text emoticons resolve locally at the caret. The suggestion sits
   above the composer, so opening it never shifts the message timeline. */
.composer-emoji-suggestions{position:absolute;z-index:24;left:54px;bottom:calc(100% + 8px);display:flex;width:min(260px,calc(100vw - 28px));padding:5px;border:1px solid #d8e5df;border-radius:15px;background:var(--paper,#fffdf8);box-shadow:0 12px 34px #173f4530}
.composer-emoji-suggestions[hidden]{display:none}
.composer-emoji-option{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:9px;width:100%;min-height:52px;padding:5px 10px 5px 6px;border:0;border-radius:11px;background:transparent;color:var(--ink);text-align:left;touch-action:manipulation}
.composer-emoji-option:hover{background:#edf5f1;outline:none}.composer-emoji-option:focus-visible{background:#edf5f1;outline:none}
.composer-emoji-option:focus-visible{box-shadow:inset 0 0 0 2px #80b5b1}
.composer-emoji-glyph{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:#f4f7f1;font-size:26px;line-height:1}
.composer-emoji-copy{display:flex;min-width:0;flex-direction:column;gap:2px}
.composer-emoji-copy strong{overflow:hidden;font-size:13px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.composer-emoji-copy small{color:var(--muted);font-size:10px;line-height:1.35}
@media(max-width:760px){.composer-emoji-suggestions{right:8px;left:8px;bottom:calc(100% + 6px);width:auto}.composer-emoji-option{min-height:56px}.composer-emoji-copy strong{font-size:14px}.composer-emoji-copy small{font-size:11px}}
.friend-request-target{border-radius:14px;background:#e7f1e8;box-shadow:0 0 0 3px #80b5b12e;transition:background .25s ease,box-shadow .25s ease}.friend-request-target:focus{outline:3px solid #80b5b1;outline-offset:3px}

/* One compact friendship affordance lives in the conversation header. Contact
   restrictions stay in the existing information menu. */
.conversation-add-friend{border:1px solid #dfe8e2;background:#f7faf7}
.conversation-add-friend[hidden]{display:none}
.conversation-communication-state{flex:0 0 auto;margin:4px 28px 2px;padding:8px 11px;border-radius:9px;background:#f8eae8;color:#924f4a;font-size:11px;line-height:1.5}
.active-conversation.communication-blocked .composer{background:#f4f4ef}
.conversation-block-note{margin:0 0 14px!important;color:#5f766c!important}
.conversation-block-status{padding:9px 11px;border-radius:9px;background:#edf4ef;color:#527165;font-size:12px;line-height:1.55}
.conversation-block-status.error{background:#fbebeb;color:var(--danger)}

.new-chat-email-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;margin-bottom:9px}
.new-chat-email-form label{display:flex;min-width:0;flex-direction:column;gap:7px;color:#526e62;font-size:12px;font-weight:600}
.new-chat-email-form input{width:100%;min-width:0;min-height:44px;padding:11px 12px;border:1px solid #dce5dd;border-radius:11px;background:#fff;color:var(--ink)}
.new-chat-email-form .button{min-height:44px;padding:10px 14px;white-space:nowrap}
.new-chat-email-help{margin:0 0 12px!important}
.new-chat-email-status{margin:5px 0 12px;color:#60796d;font-size:12px;line-height:1.55}
.composer-footer #pending-files-button{min-height:24px;margin-left:auto;padding:2px 5px;font-size:10px;white-space:nowrap}

@media(max-width:760px){
  html:has(.app-view.chat-open:not([hidden])),body:has(.app-view.chat-open:not([hidden])){overflow:hidden;overscroll-behavior:none}
  .app-view{height:var(--doho-visual-height,100vh);height:var(--doho-visual-height,100dvh);max-height:var(--doho-visual-height,100vh);max-height:var(--doho-visual-height,100dvh)}
  .app-view.chat-open.composer-focused{position:fixed;top:0;right:0;bottom:auto;left:0;width:100%;transform:translate3d(0,var(--doho-visual-top,0px),0)}
  .app-view.chat-open,.app-view.chat-open>.conversation,.active-conversation{min-height:0;height:var(--doho-visual-height,100vh);height:var(--doho-visual-height,100dvh);max-height:var(--doho-visual-height,100vh);max-height:var(--doho-visual-height,100dvh)}
  .messages-scroller{min-height:0}
  .composer-wrap{flex:0 0 auto}
  .app-view.composer-focused .composer-wrap{padding-bottom:4px}
  .app-view.composer-focused .composer-footer{display:none}
  .app-view.composer-focused .typing-indicator:empty{display:none;min-height:0;padding:0}
  .conversation-communication-state{margin:4px 10px 2px;font-size:12px}
  .new-chat-email-form{grid-template-columns:minmax(0,1fr)}
  .new-chat-email-form input{font-size:16px}
  .new-chat-email-form .button{width:100%}
}

/* File cards use a compact document badge, so the format stays recognizable
   without loading artwork or the protected file itself. */
.file-type-badge{position:relative;display:grid;place-items:center;flex:0 0 42px;width:42px;min-width:42px;height:48px;overflow:hidden;border-radius:8px;background:#627d75;color:#fff;box-shadow:inset 0 -1px 0 #143c3330;font-size:10px;font-weight:800;line-height:1;letter-spacing:.25px}
.file-type-badge::after{position:absolute;top:0;right:0;width:0;height:0;border-style:solid;border-width:0 0 10px 10px;border-color:transparent transparent #ffffff8c transparent;content:""}
.file-type-badge[data-file-kind="pdf"]{background:#c43f42}
.file-type-badge[data-file-kind="word"]{background:#2b579a}
.file-type-badge[data-file-kind="excel"]{background:#217346}
.file-type-badge[data-file-kind="slides"]{background:#d35230}
.file-type-badge[data-file-kind="archive"]{background:#856b3f}
.file-type-badge[data-file-kind="image"],.file-type-badge[data-file-kind="video"],.file-type-badge[data-file-kind="audio"]{background:#477a70}
.file-attachment.attachment-open-preview{box-sizing:border-box;width:min(300px,100%);min-height:76px;align-items:center;gap:12px}
.file-card-info{display:flex;min-width:0;flex:1;flex-direction:column;align-items:flex-start;gap:2px;text-align:left}
.file-card-name{display:-webkit-box!important;max-width:100%;overflow:hidden!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere;white-space:normal!important;text-overflow:ellipsis;line-height:1.35}
.file-card-meta{display:flex!important;max-width:100%;align-items:center;gap:0;margin-top:2px!important;color:#5d756b!important;font-size:10px!important;line-height:1.35;white-space:normal}
.file-card-format{color:#355f55;font-weight:700;letter-spacing:.1px}
.file-card-size{color:#71867d;font-variant-numeric:tabular-nums;white-space:nowrap}
.file-card-size::before{padding:0 5px;color:#a2afa9;content:"•"}
.file-card-hint{display:block!important;max-width:100%;margin-top:1px!important;overflow:hidden;color:#7e9088!important;font-size:10px!important;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.file-card-cache-state{color:#56786c!important}
.file-card-list-item{align-items:center!important;gap:11px!important;text-align:left!important}
.doho-admin-message-attachment.file-card-list-item{min-height:72px}
.moments-media.moments-file-card{height:auto;min-height:84px;justify-content:flex-start;padding:14px;background:#f4f8f5}
@media(max-width:760px){.file-type-badge{flex-basis:40px;width:40px;min-width:40px;height:46px}.file-attachment.attachment-open-preview{min-height:74px}.file-card-meta,.file-card-hint{font-size:11px!important}}

/* Document reader: closing controls remain above, sharing remains below. */
.file-preview-header{gap:10px}.file-preview-heading{flex:1}.file-preview-header .file-preview-back{flex:none;width:44px;height:44px;border:0;background:transparent;color:var(--green)}
.file-preview-done{flex:none;min-width:54px;min-height:44px;padding:8px;border:0;background:transparent;color:var(--green);font:inherit;font-size:15px;font-weight:600;cursor:pointer}

.file-preview-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;flex:none;padding:10px 20px;border-top:1px solid var(--line);background:var(--paper)}
.file-preview-share,.file-preview-footer .file-preview-download{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin:0;padding:8px 12px;border:0;border-radius:10px;background:transparent;color:var(--green);font:inherit;font-size:14px;text-decoration:none;cursor:pointer}
.file-preview-share .icon,.file-preview-footer .file-preview-download .icon{width:25px;height:25px}.file-preview-share:disabled{opacity:.6;cursor:wait}.file-preview-share-status{width:100%;margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.file-preview-back:focus-visible,.file-preview-done:focus-visible,.file-preview-share:focus-visible,.file-preview-download:focus-visible{outline:2px solid var(--green);outline-offset:2px}
@media(max-width:760px){.file-preview-header{gap:6px;padding-left:8px;padding-right:8px}.file-preview-done{font-size:16px}.file-preview-footer{padding:6px 10px max(6px,env(safe-area-inset-bottom))}.file-preview-footer .file-preview-download,.file-preview-share{font-size:13px}.file-preview-title{font-weight:600}}

/* Device storage is measured asynchronously after the settings shell paints. */
.local-storage-overview{padding:20px;border-radius:18px;background:var(--soft)}
.local-storage-overview>.eyebrow{display:block;color:var(--muted)}
.local-storage-total{display:block;font-size:30px;margin:8px 0;letter-spacing:-.6px}
.local-storage-note,.local-storage-row p,.local-storage-overview p{font-size:13px;line-height:1.7}
.local-storage-note{margin:20px 0;color:var(--muted)}
.local-storage-row{padding:22px 0;border-top:1px solid var(--line)}
.local-storage-row h3{font-size:16px;margin:0 0 6px}
.local-storage-row>strong{font-size:21px;display:block}
.local-storage-confirm{padding:12px 0}
.local-storage-keeper{padding:22px 0;border-top:1px solid var(--line)}
.local-storage-keeper h3{font-size:16px;margin:0 0 10px}
.local-storage-keeper p{font-size:13px;line-height:1.7}
.local-storage-keeper-switch{display:flex;align-items:center;gap:12px;min-height:44px;font-weight:600;cursor:pointer}
.local-storage-keeper-switch input{appearance:none;-webkit-appearance:none;flex:none;width:46px;height:28px;margin:0;border-radius:14px;background:var(--line);position:relative;cursor:pointer;transition:background .2s}
.local-storage-keeper-switch input::after{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s}
.local-storage-keeper-switch input:checked{background:var(--green)}
.local-storage-keeper-switch input:checked::after{transform:translateX(18px)}
.local-storage-keeper-switch input:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.local-storage-confirm>.button+.button{margin-left:8px}

/* Group membership uses bounded pages and one operation per row. */
.conversation-member-count{border:0;background:transparent;padding:0;color:var(--green);font:inherit;text-decoration:underline;text-underline-offset:3px;min-height:24px}.group-dialog .member-list{max-height:min(55vh,480px);max-height:min(55dvh,480px);overflow:auto;overscroll-behavior:contain}.group-member-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.group-member-row .member-info{min-width:0;flex:1}.group-member-row .member-info strong,.group-candidate-row .member-info strong{overflow-wrap:anywhere}.group-leader-label{color:var(--green)!important;font-weight:600}.group-member-remove{color:var(--danger);min-height:44px;flex:none}.group-remove-prompt{flex:1 0 100%;padding:10px;background:var(--soft);border-radius:10px;display:flex;flex-wrap:wrap;gap:8px}.group-remove-prompt p{flex-basis:100%;margin:0 0 4px;font-size:13px}.group-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}.group-pagination .button{min-height:40px;padding:8px 14px}.group-add-status,.group-member-status,.group-delete-status{min-height:24px}.group-add-status.error,.group-member-status.error,.group-delete-status.error,.group-delete-entry{color:var(--danger)}.group-candidate-row{display:flex;gap:12px;min-height:62px}.group-candidate-row .member-info{min-width:0;flex:1}.group-candidate-row input{width:20px;height:20px;flex:none;accent-color:var(--green)}.group-delete-note,.group-leave-note{line-height:1.7;overflow-wrap:anywhere}
.message-readers-preview{margin:0 0 10px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}.message-readers-body{margin:0 0 6px;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.message-readers-sent{display:block;font-size:12px;color:var(--muted)}.message-readers-heading{margin:16px 0 4px;font-size:13px;font-weight:650;color:var(--green-dark)}.message-reader-row .member-info{min-width:0;flex:1}.message-reader-time{flex-shrink:0;margin-left:auto;font-size:12px;color:var(--green);text-align:right}.message-reader-row.unread .member-info{opacity:.72}.message-readers-status.error{color:var(--danger)}.group-dialog .search-dialog-input{margin-bottom:4px}@media(max-width:760px){.group-dialog .member-list{max-height:48vh;max-height:48dvh}.group-dialog .modal-actions{flex-wrap:wrap}.group-dialog .modal-actions .button{flex:1}.conversation-member-count{font-size:11px}}
.pending-messages{margin-top:6px}.pending-message .message-bubble{opacity:.72}.pending-message .message-bubble.failed{opacity:1;border-color:var(--danger);background:#fbeeee}.pending-message .message-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:11px}.pending-message .pending-error{color:var(--danger)}.pending-message .text-button{border:0;background:none;padding:0;min-height:24px;font-size:11px;font-weight:600;color:var(--green)}
.call-dialog.video-call{width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;inset:0;border-radius:0;padding:0;background:#0c1f1b;flex-direction:column}.call-dialog.video-call[open]{display:flex}.call-dialog.video-call::backdrop{background:#0c1f1b;backdrop-filter:none}.call-dialog.video-call .call-top{position:absolute;top:0;left:0;right:0;z-index:3;padding:calc(env(safe-area-inset-top) + 12px) 18px 18px;background:linear-gradient(#000a,#0000)}.call-dialog.video-call .call-stage,.call-dialog.video-call .call-stage.has-video{flex:1;min-height:0;margin:0;border-radius:0}.call-dialog.video-call .call-actions{position:absolute;left:0;right:0;bottom:0;z-index:3;padding:22px 12px calc(env(safe-area-inset-bottom) + 18px);background:linear-gradient(#0000,#000b);flex-wrap:wrap}.call-dialog.video-call .call-output-help{position:absolute;left:16px;right:16px;bottom:calc(env(safe-area-inset-bottom) + 92px);z-index:3}.call-dialog.video-call .call-note{display:none}.call-dialog.video-call #local-video{top:calc(env(safe-area-inset-top) + 64px);right:14px;bottom:auto;width:min(30vw,180px);height:auto;aspect-ratio:3/4;border-radius:14px;box-shadow:0 6px 24px #0007;z-index:2}.call-dialog.video-call.self-hidden #local-video{display:none}.call-dialog.video-call .call-action{background:#0f2a2ecc;color:#fff}.call-dialog.video-call .call-action.off{background:#faf1e7;color:#735c43}.call-dialog.video-call .call-action.hangup{background:#d26057}

/* Desktop window: the rail's sections (contacts, wall, profile, invitations,
   install, notifications) open as pages inside the window, to the right of the
   rail, instead of floating dialogs. Phones keep their full-screen pages. */
:root{--doho-rail-width:76px;--doho-list-width:330px}
@media(min-width:1600px){:root{--doho-rail-width:88px;--doho-list-width:370px}}
@media(max-width:1050px){:root{--doho-rail-width:65px;--doho-list-width:280px}}
dialog.desktop-page{position:fixed;z-index:35}
/* Settings opened from the personal page sits above it; Back returns to it. */
.modal.desktop-page{z-index:36}
@media(min-width:761px){
dialog.desktop-page{inset:0 0 0 var(--doho-rail-width);width:auto;height:auto;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:#faf8f3;overflow:hidden}
dialog.desktop-page[open]{display:flex;flex-direction:column}
.modal.desktop-page>.modal-heading{flex-shrink:0;margin:0;padding:22px 32px 18px;border-bottom:1px solid #e6ebe0;background:#fffefa}
.modal.desktop-page>.modal-heading h2{font-size:22px}
.modal.desktop-page #modal-close,.modal.desktop-page>.mobile-section-nav{display:none}
.modal.desktop-page>.modal-body{flex:1;min-height:0;overflow:auto;padding:26px 32px 48px;overscroll-behavior:contain}
.modal.desktop-page:not(.contacts-page)>.modal-body>*{max-width:760px;margin-inline:auto}
.moments-dialog.desktop-page{background:#f5f7f1}
.moments-dialog.desktop-page .moments-close{display:none}
/* Contacts: menu column + list, like the contacts screen of other chat apps. */
.modal.desktop-page.contacts-page>.modal-heading{display:none}
.modal.desktop-page.contacts-page>.modal-body{display:grid;grid-template-columns:var(--doho-list-width) minmax(0,1fr);padding:0;overflow:hidden}
.contacts-nav{display:flex;flex-direction:column;gap:4px;min-height:0;overflow:auto;padding:26px 14px;background:#fff;border-right:1px solid var(--line)}
.contacts-nav-title{margin:0 10px 16px;font-size:24px;font-weight:650;letter-spacing:-.8px;color:var(--ink)}
.contacts-nav-entry{display:flex;align-items:center;gap:14px;width:100%;min-height:52px;padding:10px 14px;border:0;border-radius:12px;background:none;color:var(--ink);font-size:14px;font-weight:500;text-align:left}
.contacts-nav-entry svg{width:22px;height:22px;flex-shrink:0;color:#4c7965}
.contacts-nav-entry:hover{background:#f0f5ef}
.contacts-nav-entry.active{background:#e3efe9;font-weight:650}
.contacts-nav-label{flex:1;min-width:0}
.contacts-nav-badge{min-width:22px;padding:2px 7px;border-radius:999px;background:#d9534f;color:#fff;font-size:11px;font-weight:700;text-align:center}
.contacts-main{display:flex;flex-direction:column;min-width:0;min-height:0;background:#f4f6f1}
.contacts-main-header{display:flex;align-items:center;gap:12px;flex-shrink:0;min-height:68px;padding:0 28px;border-bottom:1px solid #e3e9dd;background:#fffefa}
.contacts-main-header svg{width:22px;height:22px;color:#4c7965}
.contacts-main-header h3{margin:0;font-size:16px;font-weight:650;outline:none}
.contacts-main-content{flex:1;min-height:0;overflow:auto;padding:22px 28px 40px;overscroll-behavior:contain}
.contacts-main-content>.friend-count-summary{margin:0 0 14px!important;padding:0;border:0;color:var(--ink)!important;font-size:14px!important;font-weight:650;text-align:left}
.contacts-friends-panel{max-width:980px;padding:16px 18px 10px;border:1px solid #e3e9dd;border-radius:14px;background:#fff}
.contacts-tools{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:12px;margin-bottom:6px}
.contacts-search-field{display:flex;align-items:center;gap:8px;min-height:42px;padding:0 12px;border:1px solid #dfe6da;border-radius:10px;background:#fbfcfa}
.contacts-search-field svg{width:18px;height:18px;color:#86958d;flex-shrink:0}
.contacts-search{flex:1;min-width:0;border:0;background:none;font:inherit;font-size:14px;color:var(--ink);outline:none}
.contacts-search-field:focus-within{border-color:#87b3a7;box-shadow:0 0 0 3px #87b3a733}
.contacts-sort{min-height:42px;padding:0 10px;border:1px solid #dfe6da;border-radius:10px;background:#fbfcfa;font:inherit;font-size:14px;color:var(--ink)}
.contacts-main-content .friend-directory{margin-top:0}
.contacts-main-content .friend-request-section{max-width:980px;padding:16px 18px;border:1px solid #e3e9dd;border-radius:14px;background:#fff}
.contacts-main-content .friend-request-section+.friend-request-section{margin-top:18px}
.contacts-main-content .contacts-options-panel{max-width:760px}
.contacts-main-content>.friend-empty-note{max-width:760px}
}
/* A, B, C… letter groups in the directory. */
.friend-contact-row.friend-letter-start{position:relative;margin-top:30px}
.friend-matches>.friend-contact-row.friend-letter-start:first-child{margin-top:26px}
.friend-contact-row.friend-letter-start::before{content:attr(data-letter);position:absolute;left:8px;top:-25px;font-size:13px;font-weight:700;color:var(--ink);pointer-events:none}
@media(max-width:760px){dialog.desktop-page{inset:0;margin:0}}
/* Loading notes appear only when loading is actually slow. A cached chat, page
   or picture that is ready within a few frames never flashes a placeholder. */
@keyframes doho-delayed-reveal{from{visibility:hidden}to{visibility:visible}}
.attachment-preview-status,.conversation-loading,.moments-posts-loading,.contacts-loading-note{animation:doho-delayed-reveal 0s linear .35s both}
/* 0.1.41 — groups and people read differently in the conversation list. A group
   without its own photo shows up to four member faces (or three and the member
   count); a group photo carries a small group badge. People stay a single face. */
.avatar.group-mosaic{position:relative;background:transparent;overflow:visible;border-radius:0}
.avatar-tile{position:absolute;width:57%;height:57%;border-radius:50%;display:flex;align-items:center;justify-content:center;overflow:hidden;font-size:.62em;font-weight:700;line-height:1;letter-spacing:0;box-shadow:0 0 0 1.5px var(--paper);background:#e3eeeb;color:#5f837f}
.avatar-tile .user-avatar-image{border-radius:50%}
.avatar.group-mosaic[data-tiles="2"] .avatar-tile:nth-child(1){top:0;left:0}
.avatar.group-mosaic[data-tiles="2"] .avatar-tile:nth-child(2){right:0;bottom:0}
.avatar.group-mosaic[data-tiles="3"] .avatar-tile:nth-child(1){top:0;left:21.5%}
.avatar.group-mosaic[data-tiles="3"] .avatar-tile:nth-child(2){left:0;bottom:0}
.avatar.group-mosaic[data-tiles="3"] .avatar-tile:nth-child(3){right:0;bottom:0}
.avatar.group-mosaic[data-tiles="4"] .avatar-tile:nth-child(1){top:0;left:0}
.avatar.group-mosaic[data-tiles="4"] .avatar-tile:nth-child(2){top:0;right:0}
.avatar.group-mosaic[data-tiles="4"] .avatar-tile:nth-child(3){left:0;bottom:0}
.avatar.group-mosaic[data-tiles="4"] .avatar-tile:nth-child(4){right:0;bottom:0}
.avatar-tile.tone-1{background:#f3e6d9;color:#a07657}
.avatar-tile.tone-2{background:#e2e8f5;color:#56679a}
.avatar-tile.tone-3{background:#f3e2ea;color:#985a74}
.avatar-tile.tone-4{background:#e6efda;color:#62804a}
.avatar-tile.tone-5{background:#ebe5f4;color:#735f98}
.avatar-tile.avatar-tile-count{background:#e8ece9;color:var(--ink);font-size:.68em}
.avatar.group-photo{position:relative;overflow:visible}
.avatar.group-photo .user-avatar-image{border-radius:inherit}
.avatar-group-badge{position:absolute;right:-4px;bottom:-4px;width:44%;height:44%;min-width:15px;min-height:15px;max-width:22px;max-height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#f3e6d9;color:#9b7558;box-shadow:0 0 0 2px var(--paper)}
.avatar-group-badge .icon{width:68%;height:68%;stroke-width:2}
.conversation-preview-sender{color:#6f7f78}
.conversation-preview-icon{width:13px;height:13px;margin:0 3px -2px 0;stroke-width:1.8;vertical-align:baseline}
.conversation-item.selected .avatar-tile,.conversation-item:hover .avatar-tile{box-shadow:0 0 0 1.5px #f6f8f2}
.conversation-item.selected .avatar-tile{box-shadow:0 0 0 1.5px #eaf2ef}
/* 0.1.41 — forwarding a chosen picture, file or passage shows what will go. */
.forward-form.has-preview{grid-template-rows:auto auto auto minmax(0,1fr) auto auto}
.forward-preview{display:grid;gap:7px;min-width:0;padding:10px 12px;border:1px solid #e2e9df;border-radius:13px;background:#f7faf7}
.forward-preview-label{color:#70877a;font-size:11px;font-weight:650}
.forward-preview-text{margin:0;padding-left:10px;border-left:3px solid #80b5b1;color:var(--ink);font-size:13px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.forward-preview-files{display:flex;align-items:flex-start;gap:8px;overflow-x:auto;padding-bottom:2px}
.forward-preview-file{display:grid;justify-items:center;gap:4px;width:74px;flex:0 0 auto;color:#5d7469;font-size:10px}
.forward-preview-file img{width:74px;height:74px;border-radius:10px;object-fit:cover;background:#e9efea}
.forward-preview-name{max-width:74px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.forward-preview-more{align-self:center;padding:0 6px;color:#5d7469;font-weight:700}
/* Right-click on a selected passage: copy, forward that passage, reply. */
.passage-action-backdrop{position:fixed;inset:0;z-index:193;background:transparent}
.passage-action-panel{position:fixed;z-index:194;display:grid;gap:2px;min-width:200px;max-width:min(300px,calc(100vw - 16px));padding:6px;border:1px solid #dfe7e1;border-radius:14px;background:#fff;box-shadow:0 18px 50px #163e332e}
.passage-action-quote{margin-bottom:2px;padding:6px 10px 8px;border-bottom:1px solid var(--line);color:#6b8276;font-size:12px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.passage-action{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:8px 10px;border:0;border-radius:9px;background:none;color:var(--ink);font-size:14px;text-align:left}
.passage-action:hover{background:var(--soft);outline:none}.passage-action:focus-visible{background:var(--soft);outline:none}
.passage-action .icon{width:18px;height:18px;color:#5f837f}
/* Conversation background themes (0.1.42): the picture stays still behind
   the scrolling messages; text that sits on it gets a soft halo or pill. */
.active-conversation[data-chat-theme] .messages-scroller{background:var(--chat-theme-color) var(--chat-theme-desktop) center/cover no-repeat}
@media (max-aspect-ratio:1/1){.active-conversation[data-chat-theme] .messages-scroller{background-image:var(--chat-theme-phone)}}
.active-conversation[data-chat-theme] .day-divider{width:fit-content;margin-inline:auto;padding:4px 12px;border-radius:999px;background:#fffdf8e0;color:#4d5e55}
.active-conversation[data-chat-theme] .day-divider:before,.active-conversation[data-chat-theme] .day-divider:after{display:none}
.active-conversation[data-chat-theme] :is(.message-meta,.message-author,.typing-indicator){color:#3f4f47;text-shadow:0 0 3px #fffdf8,0 0 6px #fffdf8}
.active-conversation[data-chat-theme] .read-indicator{color:#4f7a37}
.active-conversation.chat-theme-dark .day-divider{background:#0b1020c7;color:#e4e8f0}
.active-conversation.chat-theme-dark :is(.message-meta,.message-author,.typing-indicator){color:#e8ecf3;text-shadow:0 0 3px #05070d,0 1px 5px #05070d}
.active-conversation.chat-theme-dark .read-indicator{color:#b9dd9d}
/* "Có gì mới" in the update prompt, the settings card and after updating (0.1.42). */
/* 0.1.42 — documents read in a near-full-window viewer on a computer. */
.file-preview-dialog.document-preview{width:min(1480px,calc(100vw - 24px));height:calc(100vh - 24px);height:calc(100dvh - 24px);max-height:none}
.file-preview-content.document-content{display:flex;align-items:stretch;justify-content:stretch;padding:0;overflow:hidden;background:#fff}
.document-preview .file-preview-header{padding-top:12px;padding-bottom:12px}
.document-preview .file-preview-status:not([hidden]){border-bottom:1px solid var(--line)}
@media(max-width:760px){.file-preview-dialog.document-preview{width:100vw;height:100vh;height:100dvh}.document-preview .file-preview-header{padding-top:max(10px,env(safe-area-inset-top));padding-bottom:8px}}
/* 0.1.46 */
.message-reaction-control{width:auto;min-width:28px;gap:6px;align-items:center}
/* 0.1.47: a pill of emoji kinds and the total (who reacted), then the round
   button with the emoji you last sent (♡ before you react). */
.message-quick-reaction.active,.message-quick-reaction.mine{border-color:#dfe7e2;background:#fff;color:#3c4f4b}
.message-quick-reaction-emoji{font-size:15px;line-height:1}
.message-reaction-summary{display:inline-flex;align-items:center;gap:1px;height:24px;min-width:24px;padding:0 8px 0 6px;border:1px solid #e3eae5;border-radius:12px;background:#fff;color:#3c4f4b;box-shadow:0 2px 7px #244d5314;font-size:13px;line-height:1;touch-action:manipulation;cursor:pointer;white-space:nowrap}
.message-reaction-summary[hidden]{display:none}
.message-reaction-summary-emoji{font-size:14px;line-height:1}
.message-reaction-total{margin-left:4px;font-size:12px;font-weight:650;font-variant-numeric:tabular-nums}
.message-reaction-summary:hover{border-color:#bcd2ca;background:#f7fbf9;outline:none}.message-reaction-summary:focus-visible{border-color:#bcd2ca;background:#f7fbf9;outline:none}
.message-reaction-summary:focus-visible{box-shadow:0 0 0 2px #80b5b1}
.message-reply[role=button]{cursor:pointer;transition:background .15s}
.message-reply[role=button]:hover{background:#e3e9da}
.message-reply[role=button]:focus-visible{outline:2px solid #80b5b1;outline-offset:2px}
.scroll-highlight .message-bubble{outline:2px solid #80b5b1;outline-offset:4px;animation:doho-reply-target 1.6s ease-out}
@keyframes doho-reply-target{0%{box-shadow:0 0 0 8px #80b5b166}100%{box-shadow:0 0 0 0 #80b5b100}}
@media(prefers-reduced-motion:reduce){.scroll-highlight .message-bubble{animation:none}}
.composer #emoji-button{width:28px;flex-shrink:0}
#emoji-button[aria-expanded=true]{background:#e4eee0;color:#47794d}
.message-action-button.message-action-delete.icon-button,.message-action-button.message-action-delete.icon-button span{color:#b54142}
.message-action-button.message-action-erase.icon-button,.message-action-button.message-action-erase.icon-button span{color:#8f2f30}
.conversation-list-actions .conversation-erase-entry{display:flex;align-items:center;gap:14px;width:100%;min-height:54px;padding:14px 16px;border:1px solid #e8c4c0;border-radius:13px;background:#fbeeee;color:#8f2f30;text-align:left;font-size:15px;font-weight:650}.conversation-list-actions .conversation-erase-entry .icon{width:21px;height:21px;flex:none}.conversation-erase-entry:hover{background:#f6e0df;outline:2px solid #c56d6d;outline-offset:2px}.conversation-erase-entry:focus-visible{background:#f6e0df;outline:2px solid #c56d6d;outline-offset:2px}
/* 0.1.47: one emoji list without groups; sticker sets as fixed quarter-width tabs, leaving room for later sets. */
.sticker-tray .emoji-grid{border-top:1px solid #e1ebdd}
.sticker-tray .sticker-tab{flex:0 0 calc((100% - 12px) / 4)}
/* 0.1.48: Danh bạ — call buttons on every friend, quick contacts first, and
   the menu behind a hold with the held person lifted above a dimmed page. */
.friend-contact-row .contact-call-actions{display:flex;align-items:center;gap:2px;margin-left:auto;flex:none}
.contact-call-button{width:44px;height:44px;border-radius:12px;color:var(--ink)}
.contact-call-button .icon{width:22px;height:22px}
.contact-call-button:hover{background:#edf3f1}
.friend-contact-row{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.friend-contact-row.contact-row-held{visibility:hidden}
.contact-quick-section{margin-bottom:6px}
.contact-quick-title{margin:6px 8px 4px;font-size:13px;font-weight:700;color:var(--ink)}
.contact-menu-backdrop{position:fixed;inset:0;z-index:300;background:rgb(20 30 32 / 42%)}
.contact-menu-card{position:fixed;z-index:301;display:flex;align-items:center;gap:10px;box-sizing:border-box;min-height:64px;padding:8px 10px 8px 12px;border-radius:18px;background:#fff;box-shadow:0 12px 36px rgb(0 0 0 / 22%)}
.contact-menu-identity{display:flex;align-items:center;gap:12px;flex:1;min-width:0}
.contact-menu-identity .avatar{width:44px;height:44px;flex:none}
.contact-menu-identity strong{overflow:hidden;font-size:16px;font-weight:600;color:var(--ink);text-overflow:ellipsis;white-space:nowrap}
.contact-menu-card .contact-call-actions{display:flex;gap:2px;flex:none}
.contact-menu{position:fixed;z-index:301;display:flex;flex-direction:column;width:min(300px,calc(100vw - 16px));padding:6px;border-radius:18px;background:#fff;box-shadow:0 12px 36px rgb(0 0 0 / 22%)}
.contact-menu-entry{display:flex;align-items:center;gap:16px;width:100%;min-height:50px;padding:0 14px;border:0;border-radius:12px;background:transparent;color:#1f2a2c;font-size:16px;text-align:left}
.contact-menu-entry .icon{width:22px;height:22px;flex:none}
.contact-menu-entry:hover{background:#eef4f1;outline:none}.contact-menu-entry:focus-visible{background:#eef4f1;outline:none}
.contact-menu-entry.danger{color:#c43c3c}
.contact-common-list{display:grid;gap:8px;margin:6px 0 14px}
.contact-common-entry{display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;align-items:center;width:100%;padding:10px 12px;border:1px solid #e3e9e4;border-radius:14px;background:#fff;color:var(--ink);text-align:left}
.contact-common-entry .avatar{grid-row:1/3;width:44px;height:44px}
.contact-common-entry strong{font-size:15px;font-weight:600;overflow-wrap:anywhere}
.contact-common-entry small{font-size:12px;color:var(--muted)}
/* 0.1.48: the three selection actions are the same size; "Hủy" sits at the
   far left, away from "Xóa", which still asks for confirmation with the count. */
.conversation-bulk-toolbar .conversation-bulk-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.conversation-bulk-toolbar .conversation-bulk-actions>button{min-height:44px;padding:6px 8px;font-size:13px;line-height:1.25;white-space:normal;text-align:center}

/* 0.1.52: the app never zooms by itself. iOS zooms into any field under 16px
   on focus (prevented by maximum-scale=1 in the viewport and a 16px search
   field) and zooms on a double tap (touch-action). Pinch-zoom of the whole
   page is stopped in app.js; the picture, PDF and sheet viewers keep their
   own zoom. */
html{touch-action:manipulation}
@media(pointer:coarse){.search-field input{font-size:16px}}
/* 0.1.52: search suggestions replace the chat list while the Messages search has text. */
.search-clear{flex:none;width:22px;height:22px;border:0;border-radius:50%;background:#dfe5dc;color:#5f7068;font-size:15px;line-height:22px;padding:0;text-align:center}
.search-suggestions{flex:1;overflow-y:auto;padding:14px 12px 18px;overscroll-behavior:contain}
.search-section+.search-section{margin-top:12px}
.search-section-head{display:flex;align-items:center;justify-content:space-between;padding:6px 11px 6px}
.search-section-head h2{margin:0;font-size:13px;font-weight:650;color:var(--ink)}
.search-suggestion{display:flex;align-items:center;gap:4px;border-radius:12px;padding-right:6px}
.search-suggestion:hover{background:#f6f8f2}
.search-suggestion-main{display:flex;align-items:center;gap:12px;flex:1;min-width:0;border:0;background:none;padding:10px 11px;text-align:left;border-radius:12px;color:inherit}
.search-suggestion-text{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.search-suggestion-text strong{font-size:14px;font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-suggestion-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px;min-width:0}
.search-suggestion-top time{flex:none;font-size:11px;color:var(--muted)}
.search-suggestion-detail{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-suggestion-detail .icon,.search-message-item .icon{width:13px;height:13px;margin:0 3px -2px 0;vertical-align:baseline}
.search-suggestion .contact-call-actions{flex:none}
.search-hit{background:none;color:#1d7f95;font-weight:700}
.search-chips{display:flex;gap:8px;padding:2px 11px 8px}
.search-chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:5px 13px;font-size:12px;color:var(--ink)}
.search-chip[aria-pressed="true"]{background:var(--green);border-color:var(--green);color:#fff}
.search-more{display:block;width:calc(100% - 22px);margin:4px 11px 0;padding:9px;border:0;border-radius:10px;background:#f3f4ee;color:var(--green);font-size:13px;font-weight:600}
.search-more:disabled{opacity:.6}
.search-note{margin:0;padding:6px 11px 8px;font-size:13px;color:var(--muted)}
.search-message-results{margin:0 6px 6px 64px;border-left:2px solid var(--line)}
.search-message-item{display:block;width:100%;border:0;background:none;text-align:left;padding:8px 12px;border-radius:10px;color:inherit}
.search-message-item:hover{background:#f6f8f2}
.search-message-item p{margin:0 0 2px;font-size:13px;line-height:1.4;color:var(--ink);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.search-message-item>span{font-size:11px;color:var(--muted)}
/* 0.1.52: a message's translation sits under its text inside the bubble. */
.message-translation{margin-top:8px;padding:8px 10px;border-radius:10px;background:#00000009;font-size:inherit}
.message-row.own .message-translation{background:#ffffff1f}
.message-translation-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45}
.message-translation-note{font-size:13px;opacity:.8}
.message-translation-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin-top:6px;font-size:11.5px;opacity:.85}
.message-translation-meta .text-button{font-size:11.5px;color:inherit;text-decoration:underline;text-underline-offset:2px}

/* 0.1.54: files are sent as soon as they are chosen. The bubble shows the
   pictures (or a frame of each video, or the file card) with a thin progress
   bar per file while the message is on its way. */
.pending-message.pending-file-send .message-bubble{opacity:1}
#pending-messages .pending-file-bubble{padding:4px;max-width:100%}
.pending-file-bubble .message-reply{margin:6px 8px 6px}
.pending-file-grid{display:grid;grid-template-columns:1fr;gap:3px;width:min(300px,calc(100vw - 96px))}
.pending-file-grid:not([data-count="1"]){grid-template-columns:1fr 1fr}
.pending-file-list{display:grid;gap:3px;width:min(300px,calc(100vw - 96px))}
.pending-file-grid+.pending-file-list{margin-top:3px}
.pending-file-tile{position:relative;min-width:0;overflow:hidden;border-radius:10px;background:#00000014}
.pending-file-tile.is-image,.pending-file-tile.is-video{aspect-ratio:1/1}
.pending-file-grid[data-count="1"] .pending-file-tile.is-image,.pending-file-grid[data-count="1"] .pending-file-tile.is-video{aspect-ratio:var(--tile-ratio,4/3);max-height:380px}
.pending-file-picture{position:absolute;inset:0;display:block}
.pending-file-image,.pending-file-poster{display:block;width:100%;height:100%;object-fit:cover}
.pending-file-tile.is-card,.pending-file-tile.is-video-card{aspect-ratio:auto}
.pending-file-grid:not([data-count="1"]) .pending-file-tile.is-video-card{aspect-ratio:1/1}
.pending-file-tile.is-card .pending-file-picture,.pending-file-tile.is-video-card .pending-file-picture{position:static;display:flex;align-items:center;gap:10px;min-height:62px;padding:8px 10px 12px;background:#ffffff8c}
.pending-file-grid:not([data-count="1"]) .pending-file-tile.is-video-card .pending-file-picture{position:absolute;inset:0;flex-direction:column;justify-content:center;text-align:center;padding:8px}
.pending-file-grid:not([data-count="1"]) .pending-file-tile.is-video-card .pending-file-info{max-width:100%}
.pending-file-info{display:flex;flex-direction:column;gap:3px;min-width:0}
.pending-file-info .pending-file-name{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pending-file-size{font-size:11px;opacity:.75}
.pending-file-play{position:absolute;left:50%;top:50%;width:38px;height:38px;margin:-19px 0 0 -19px;border-radius:50%;background:#0b141299;pointer-events:none}
.pending-file-play::after{content:"";position:absolute;left:15px;top:11px;border-left:12px solid #fff;border-top:8px solid transparent;border-bottom:8px solid transparent}
.pending-file-bar{position:absolute;left:0;right:0;bottom:0;height:4px;background:#0000002e;transition:opacity .3s}
.pending-file-fill{display:block;width:0;height:100%;background:#2b6066;transition:width .25s linear}
.pending-file-tile.is-uploaded .pending-file-bar{opacity:0}
.pending-file-send .pending-meta{max-width:min(300px,calc(100vw - 96px));margin-left:auto;justify-content:flex-end}
.pending-file-send .pending-meta>span{white-space:normal;overflow-wrap:anywhere;text-align:right}
.pending-file-send .pending-file-status{font-variant-numeric:tabular-nums}
.pending-message .text-button:disabled{opacity:.45}
/* 0.1.57: a chat video is its picture (poster, length, play button); a tap plays it on the whole screen */
.message-attachment.is-video{--video-max-w:300px;--video-max-h:400px;width:min(var(--video-max-w),calc(var(--video-max-h) * var(--video-ratio,.5625)));max-width:100%;margin:3px 0}
.attachment-video-preview{position:relative;display:block;width:100%;aspect-ratio:var(--video-ratio,.5625);padding:0;border:0;border-radius:10px;overflow:hidden;background:#1d2524;color:#fff;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.attachment-video-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.attachment-video-play{position:absolute;left:50%;top:50%;width:52px;height:52px;margin:-26px 0 0 -26px;border-radius:50%;background:#0b141299;box-shadow:0 2px 10px #0003;pointer-events:none}
.attachment-video-play::after{content:"";position:absolute;left:20px;top:15px;border-left:17px solid #fff;border-top:11px solid transparent;border-bottom:11px solid transparent}
.attachment-video-badge{position:absolute;left:8px;bottom:8px;padding:2px 7px;border-radius:7px;background:#0b141299;font-size:11px;font-weight:600;letter-spacing:.2px;font-variant-numeric:tabular-nums;pointer-events:none}
.attachment-video-preview.is-pending .attachment-video-play{opacity:.45}
.attachment-video-state{position:absolute;left:0;right:0;top:calc(50% + 34px);text-align:center;font-size:12px;color:#e8efec;pointer-events:none}
#messages .message-bubble.image-bubble .message-attachment.is-video{margin:0}
@media(max-width:760px){.message-attachment.is-video{--video-max-w:min(260px,calc(100vw - 96px));--video-max-h:380px}}
.video-save-notice{display:flex;align-items:center;gap:12px;pointer-events:auto}
.video-save-notice-action{flex:none;min-height:34px;padding:6px 12px;border:0;border-radius:9px;background:#fff;color:#1d4035;font-size:12px;font-weight:650}
/* 0.1.57: the journal's Đăng becomes Hủy đăng while a post waits for its files */
.moments-post.moments-post-queued{background:var(--soft);border-color:transparent;color:var(--green)}
.moments-upload-status{font-variant-numeric:tabular-nums}
/* 0.1.60: on a computer the composer is laid out as in Zalo: a row of tools
   (tệp, chụp màn hình ▾, nhãn dán, biểu cảm) above a full-width writing row
   with the micro and Gửi. Phones keep the single row. */
@media(min-width:761px){.composer{display:grid;grid-template-columns:auto auto auto auto auto auto minmax(0,1fr) auto auto;grid-template-rows:auto auto;align-items:center;column-gap:2px;row-gap:0;padding:3px 8px 8px}.composer::before{content:"";grid-row:1;grid-column:1/-1;align-self:stretch;margin:0 -8px;border-bottom:1px solid #edf0e8;pointer-events:none}.composer>#attach-button{grid-row:1;grid-column:1}.composer>#camera-button{grid-row:1;grid-column:2}.composer>#capture-button{grid-row:1;grid-column:3}.composer>#capture-menu-button{grid-row:1;grid-column:4}.composer>#sticker-button{grid-row:1;grid-column:5;width:34px}.composer>#emoji-button{grid-row:1;grid-column:6;width:34px}.composer>#message-input{grid-row:2;grid-column:1/8;min-height:40px;margin-top:5px;padding:7px 6px 3px}.composer>#record-button{grid-row:2;grid-column:8;align-self:end}.composer>#send-button{grid-row:2;grid-column:9;align-self:end;margin-left:4px}.composer>.icon-button{height:32px}.composer-emoji-suggestions{left:8px}}
.composer>#capture-menu-button{width:16px;margin-left:-3px;padding:0;border-radius:6px}.composer>#capture-menu-button .icon{width:14px;height:14px}.composer>#capture-menu-button[aria-expanded="true"]{background:#edf5f1;color:var(--green)}
.capture-menu{position:absolute;z-index:30;left:8px;bottom:calc(100% + 8px);width:min(340px,calc(100vw - 32px));padding:6px;border:1px solid #d8e5df;border-radius:14px;background:var(--paper,#fff);box-shadow:0 12px 34px #173f4530}
@media(min-width:761px){.capture-menu{left:36px}}
.capture-menu-item{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;align-items:start;width:100%;padding:8px 10px;border:0;border-radius:10px;background:transparent;color:var(--ink);text-align:left;cursor:pointer}
.capture-menu-item:hover{background:#edf5f1;outline:none}.capture-menu-item:focus-visible{background:#edf5f1;outline:none}.capture-menu-item:focus-visible{box-shadow:inset 0 0 0 2px #80b5b1}
.capture-menu-check{display:grid;place-items:center;width:22px;height:22px;color:var(--green);visibility:hidden}.capture-menu-check .icon{width:16px;height:16px;stroke-width:2.2}.capture-menu-item[aria-checked="true"] .capture-menu-check{visibility:visible}
.capture-menu-copy{display:flex;flex-direction:column;gap:2px;min-width:0}.capture-menu-copy strong{font-size:13px;font-weight:650}.capture-menu-copy small{font-size:11px;line-height:1.35;color:var(--muted)}
.capture-menu-hint{margin:4px 10px 4px 40px;font-size:11px;line-height:1.45;color:var(--muted)}
.rail-button:disabled{opacity:.45;cursor:progress}
.capture-countdown{position:fixed;z-index:2147483000;top:18px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);padding:10px 18px;border-radius:999px;background:#163b40;color:#fff;font-size:14px;font-weight:600;box-shadow:0 10px 30px #0005;pointer-events:none}
.capture-target-dialog{width:min(440px,calc(100vw - 32px));max-width:none;height:min(600px,88vh);height:min(600px,88dvh);max-height:min(600px,88vh);max-height:min(600px,88dvh);padding:0;border:1px solid #dce5df;border-radius:18px;background:var(--paper,#fff);color:var(--ink);box-shadow:var(--shadow);overflow:hidden}
.capture-target-dialog[open]{display:flex;flex-direction:column}.capture-target-dialog::backdrop{background:#10282b66}
.capture-target-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 12px 8px 20px}.capture-target-heading h2{margin:0;font-size:17px}
.capture-target-preview{display:block;flex-shrink:0;align-self:flex-start;max-width:calc(100% - 40px);max-height:140px;margin:0 20px 10px;border:1px solid #e3ebe6;border-radius:10px;background:#f3f6f2;object-fit:contain}
.capture-target-search{flex-shrink:0;width:auto;min-height:40px;margin:0 20px 8px;padding:9px 12px}
/* 0.1.63: a definite height and an auto basis: Safari collapsed the list to
   nothing under a 0% basis (15/10). */
.capture-target-list{flex:1 1 auto;min-height:0;margin:0;padding:0 10px 12px;overflow-y:auto;overscroll-behavior:contain;list-style:none}.capture-target-dialog.searching .capture-target-preview{max-height:64px}.capture-target-row.opening{opacity:.6;cursor:progress}.capture-target-row.enter-target{background:#edf5f1}.capture-target-row.enter-target::after{content:'Enter' / '';margin-left:auto;padding:2px 7px;border:1px solid #cfe0d8;border-radius:6px;color:var(--muted);font-size:11px}
.capture-target-row{display:flex;align-items:center;gap:12px;width:100%;padding:8px 10px;border:0;border-radius:12px;background:transparent;color:inherit;text-align:left;cursor:pointer}
.capture-target-row:hover{background:#edf5f1;outline:none}.capture-target-row:focus-visible{background:#edf5f1;outline:none}.capture-target-row:focus-visible{box-shadow:inset 0 0 0 2px #80b5b1}
.capture-target-text{display:flex;flex-direction:column;gap:2px;min-width:0}.capture-target-text strong{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.capture-target-text small{font-size:12px;color:var(--muted)}
.capture-target-empty{margin:0 20px 16px;font-size:13px;color:var(--muted)}
/* 1.1: what another iPhone app shared, above the chats it can be sent to */
.share-target-summary{display:flex;flex-direction:column;gap:6px;flex-shrink:0;margin:0 20px 10px;padding:8px 10px;border:1px solid #e3ebe6;border-radius:12px;background:#f3f6f2}.capture-target-dialog.searching .share-target-summary{display:none}
.share-target-item{display:flex;align-items:center;gap:10px;min-width:0;font-size:13px}.share-target-item .file-type-badge{flex:0 0 26px;width:26px;min-width:26px;height:30px;border-radius:6px;font-size:8px}.share-target-name{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.share-target-item small,.share-target-more{flex-shrink:0;color:var(--muted);font-size:12px}
/* 0.1.61: an older address is stopped: a window that cannot be closed (blockOldAddress). */
.moved-dialog{width:min(460px,calc(100vw - 28px));max-width:none;max-height:calc(100vh - 28px);max-height:calc(100dvh - 28px);padding:26px 24px 22px;border:0;border-radius:22px;background:var(--paper,#fff);color:var(--ink);box-shadow:var(--shadow);overflow:auto;text-align:left}
.moved-dialog::backdrop{background:#10282bd9}
.moved-logo{display:block;width:56px;height:56px;margin:0 0 14px;border-radius:14px}
.moved-dialog h2{margin:0 0 8px;font-size:21px;line-height:1.25}
.moved-text{margin:0 0 12px;font-size:14px;line-height:1.55;color:#4c5f5b}
.moved-address{display:block;margin:0 0 14px;padding:10px 12px;border-radius:10px;background:var(--soft);font-size:14px;font-weight:650;color:var(--green);word-break:break-all;user-select:all;-webkit-user-select:all}
.moved-actions{display:flex;flex-wrap:wrap;gap:10px}
.moved-actions .button{flex:1 1 180px;min-height:44px;justify-content:center;text-align:center;text-decoration:none}
.moved-status{min-height:18px;margin:8px 0 4px;font-size:12px;color:var(--green)}
.moved-dialog h3{margin:8px 0 8px;font-size:15px}
.moved-steps{margin:0 0 12px;padding-left:22px;font-size:14px;line-height:1.55}
.moved-steps li+li{margin-top:6px}
.moved-note{margin:0;padding-top:12px;border-top:1px solid var(--line);font-size:12px;line-height:1.5;color:var(--muted)}
/* 0.1.61: on touch screens a long press never starts the device's own text selection, except where people type, read a post or read a file preview (14/10: holding a message or a heart tinted the whole screen blue under iOS's Copy/Look Up menu). Text in a message is selected through "Chọn văn bản" (.text-select-page, 0.1.65). */
@media(pointer:coarse){body{-webkit-user-select:none;user-select:none}input,textarea,select,[contenteditable]:not([contenteditable="false"]),.moments-text,.moments-comment-body,.file-preview-media,.text-select-content,.workbook-cell,.workbook-cell-detail-text{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}.message-menu-backdrop,.passage-action-backdrop{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}}
#messages .message-bubble.files-bubble{display:grid;gap:6px;padding:0;background:none;border:0;box-shadow:none}
#messages .message-bubble.files-bubble .file-attachment.attachment-open-preview{margin:0;background:#fff;border:1px solid #e7ebdf;box-shadow:0 1px 2px #29432803}
#messages .own .message-bubble.files-bubble .file-attachment.attachment-open-preview{background:#e2efeb;border-color:#e2efeb}
.message-context-list{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:6px}
.message-context-item{padding:8px 11px;border:1px solid #e7ebdf;border-radius:10px;background:#fff}
.message-context-item.own{background:#f1f7f4}
.message-context-item.target{border-color:#80b5b1;box-shadow:inset 3px 0 #2b6066}
.message-context-head{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#687559}
.message-context-head strong{color:var(--green);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.message-context-item p{margin:4px 0 0;font-size:14px;overflow-wrap:anywhere;white-space:pre-wrap}
/* 0.1.65: a link's preview card (Zalo-like), inside the bubble under the words; the Wall reuses it (moments.css). */
.link-preview{display:block;margin:8px 0 1px;color:inherit;text-decoration:none;border-radius:9px;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;cursor:pointer}
.link-preview:focus-visible{outline:2px solid #80b5b1;outline-offset:2px}
.link-preview-media{display:grid;gap:2px;overflow:hidden;border-radius:8px;background:#d5e5df;aspect-ratio:var(--link-preview-ratio,1.91)}
.link-preview-media.count-2{grid-template-columns:repeat(2,minmax(0,1fr));aspect-ratio:2}
.link-preview-media.count-3,.link-preview-media.count-4{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));aspect-ratio:1}
.link-preview-media.count-3 .link-preview-tile:first-child{grid-row:span 2}
.link-preview-tile{display:block;position:relative;min-width:0;min-height:0;overflow:hidden;background:#d5e5df}
.link-preview-image{display:block;width:100%;height:100%;object-fit:cover;-webkit-touch-callout:none}
.link-preview-footer{display:grid;gap:2px;min-width:0;padding:8px 1px 1px}
.link-preview.no-images{margin-top:4px}.link-preview.no-images .link-preview-footer{padding-top:0}
.link-preview-source{display:flex;align-items:center;gap:6px;min-width:0;color:#226b84;font-size:12px;line-height:16px}
.link-preview-icon{flex:0 0 16px;width:16px;height:16px;border-radius:3px;object-fit:contain}
.link-preview-symbol{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.link-preview-symbol .link-preview-pin{fill:#e5483b;stroke:#c23a2f;stroke-width:1.2}
.link-preview-symbol .link-preview-pin-dot{fill:#fff;stroke:none}
.link-preview-host{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.link-preview-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:var(--ink);font-size:14px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}
.link-preview-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;color:#5f6d68;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
@media (hover:hover) and (pointer:fine){.link-preview:hover .link-preview-title{text-decoration:underline;text-underline-offset:2px}}
#messages .message-bubble.has-link-preview{width:360px;max-width:100%}
@media(max-width:760px){#messages .message-bubble.has-link-preview{width:340px}}
.own .link-preview-media,.own .link-preview-tile{background:#cadcd5}
.own .link-preview-source{color:#235f73}
/* 0.1.65: "Chọn văn bản" on a touch screen — the message text on its own page (see textSelectionPage in app.js). */
.text-select-page{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;border:0;background:var(--paper,#fbfaf6);color:var(--ink,#203033);display:none;flex-direction:column;z-index:200}
.text-select-page[open]{display:flex}
.text-select-page::backdrop{background:#0000}
.text-select-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(env(safe-area-inset-top) + 10px) 14px 10px 18px;border-bottom:1px solid var(--line,#e3e7dc)}
.text-select-title{margin:0;font-size:17px;font-weight:600}
.text-select-done{min-height:40px;padding:0 16px;border:0;border-radius:20px;background:#244d53;color:#fff;font:inherit;font-weight:600}
.text-select-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:18px 22px 28px}
.text-select-help{margin:0 0 14px;font-size:13px;color:var(--muted,#6f7c78)}
.text-select-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:18px;line-height:1.6;-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
.text-select-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:nowrap;padding:12px 16px calc(env(safe-area-inset-bottom) + 12px);border-top:1px solid var(--line,#e3e7dc);background:inherit}
.text-select-actions .button{flex:1 1 0;min-width:0;max-width:150px;padding:10px 8px;white-space:nowrap}
/* 0.1.65 (owner's request, Zalo-like): "Đang hoạt động" under a friend's name in the chat header, a green dot on friends who have Doho open in Danh bạ, and the switch in Quyền riêng tư (presence.py). */
.conversation-heading p.presence-online{color:#2f9e5b;font-weight:600}
.friend-contact-row .member-avatar-link{position:relative}
.friend-contact-row.is-online .member-avatar-link::after{content:'';position:absolute;right:0;bottom:0;width:11px;height:11px;border:2px solid #fff;border-radius:50%;background:#34c46a;pointer-events:none}
.presence-setting-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:10px 14px;font-size:13px;font-weight:600;color:var(--ink,#203033);cursor:pointer}
.presence-setting-switch input{-webkit-appearance:none;appearance:none;position:relative;flex:0 0 46px;width:46px;height:28px;margin:0;border-radius:14px;background:#cfd8d4;transition:background .15s;cursor:pointer}
.presence-setting-switch input::after{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .15s}
.presence-setting-switch input:checked{background:#34c46a}
.presence-setting-switch input:checked::after{transform:translateX(18px)}
.presence-setting-switch input:focus-visible{outline:3px solid #80b5b1;outline-offset:2px}
.presence-setting-switch input:disabled{opacity:.6;cursor:default}
@media(prefers-reduced-motion:reduce){.presence-setting-switch input,.presence-setting-switch input::after{transition:none}}
.presence-setting-note{margin-top:8px}
/* 0.1.67 (owner's request): in a group chat every message from someone else
   shows the sender's picture, on a phone too, level with the top of the
   bubble (under the name on the first message of a run). */
#messages .message-row.group-row>.avatar{display:flex;visibility:visible;align-self:flex-start;margin:0}
#messages .message-row.group-row.group-start>.avatar{margin-top:18px}
#messages .message-row.group-row .message-author{line-height:14px;margin-bottom:4px}
#messages .message-sticker-run>.message-row.group-row>.avatar{display:none}
/* Tapping the picture: a sheet from the bottom (centred on a computer). */
.person-action-sheet{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0 10px max(10px,env(safe-area-inset-bottom));border:0;background:transparent;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:8px;overscroll-behavior:contain}
.person-action-sheet:not([open]){display:none}
.person-action-sheet::backdrop{background:#16302b59}
.person-action-card,.person-action-cancel{width:min(100%,430px);border-radius:16px;background:#fbfcfa;box-shadow:0 10px 40px #163e3326}
.person-action-card{overflow:hidden;animation:person-sheet-in .18s ease-out}
.person-action-head{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 16px 14px;border-bottom:1px solid var(--line)}
.person-action-head .avatar{width:48px;height:48px;border-radius:15px;font-size:16px}
.person-action-name{font-size:17px;color:var(--ink);text-align:center;overflow-wrap:anywhere}
.person-action-list{display:flex;flex-direction:column}
.person-action,.person-action-cancel{display:block;width:100%;min-height:54px;padding:14px 16px;border:0;background:transparent;font:inherit;font-size:17px;color:var(--green);text-align:center;cursor:pointer}
.person-action+.person-action{border-top:1px solid var(--line)}
.person-action.danger{color:var(--danger)}
.person-action:disabled{opacity:.5;cursor:default}
.person-action:focus-visible,.person-action-cancel:focus-visible{outline:2px solid #80b5b1;outline-offset:-4px}
.person-action-cancel{width:min(100%,430px);font-weight:600;background:#fff}
.person-action-note{margin:0;padding:14px 16px 4px;font-size:15px;color:var(--muted);text-align:center}
@media(hover:hover) and (pointer:fine){.person-action:hover:not(:disabled),.person-action-cancel:hover{background:#eef4f2}.person-action-sheet{justify-content:center}}
@keyframes person-sheet-in{from{transform:translateY(24px);opacity:.6}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.person-action-card{animation:none}}
/* 0.1.68: until the 40-day rule starts, a short note under the chat list. */
.retention-notice{margin:6px 12px 4px;padding:9px 12px;border:1px solid #edd3c4;border-radius:12px;background:#fdf4ee;color:var(--ink);display:flex;align-items:center;gap:10px}
.retention-notice-text{flex:1;min-width:0;margin:0;font-size:12.5px;line-height:1.45;color:#5d6b66}
.retention-notice-title{color:var(--ink)}
.retention-notice-close{flex-shrink:0;padding:6px 2px;color:var(--green)}
.retention-setting-note{margin-top:4px}
/* 0.1.70: focus rings only after keyboard navigation (data-input, app.js). */
html[data-input=pointer] :focus-visible{outline:none!important}
.windowed-list:focus-visible{outline:2px solid #80b5b1;outline-offset:-2px}
/* 0.1.71: "@" in group chats */
.composer-mention-suggestions{position:absolute;z-index:25;left:8px;right:8px;bottom:calc(100% + 6px);display:flex;flex-direction:column;gap:1px;max-height:min(296px,46vh);overflow-y:auto;overscroll-behavior:contain;padding:5px;border:1px solid #d8e5df;border-radius:15px;background:var(--paper,#fffdf8);box-shadow:0 12px 34px #173f4530}
.composer-mention-suggestions[hidden]{display:none}
@media (min-width:761px){.composer-mention-suggestions{right:auto;width:min(340px,calc(100% - 16px))}}
.composer-mention-option{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:10px;width:100%;min-height:48px;padding:5px 10px 5px 6px;border:0;border-radius:11px;background:transparent;color:var(--ink);text-align:left;touch-action:manipulation;flex-shrink:0}
.composer-mention-option:hover,.composer-mention-option.is-active{background:#edf5f1}
.composer-mention-option .avatar{width:36px;height:36px;min-width:36px;font-size:13px;border-radius:50%}
.composer-mention-everyone{display:flex;align-items:center;justify-content:center;background:#e2efeb;color:var(--green)}
.composer-mention-everyone .icon{width:19px;height:19px}
.composer-mention-copy{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.composer-mention-copy strong{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.composer-mention-copy small{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.message-mention{color:#1d6a9b;font-weight:600;cursor:default}
.message-mention[role=link]{cursor:pointer}
.message-mention[role=link]:hover{text-decoration:underline;text-underline-offset:2px}
.message-mention.is-me{background:#fdeec4;color:#8a4b08;border-radius:5px;padding:0 3px;margin:0 -1px}
.message-row.mentions-me .message-bubble{box-shadow:inset 3px 0 0 #e9a23b,0 1px 2px #29432803}
.conversation-mention-mark{color:#c2410c;font-weight:700;margin-right:5px;white-space:nowrap}
/* 0.1.72: Quản lý thiết bị đăng nhập (as on Zalo). */
.devices-page{display:flex;flex-direction:column;gap:18px}.devices-status.error-text{color:var(--danger)}
.devices-section{background:#fff;border:1px solid #e2e9db;border-radius:14px;overflow:hidden}
.devices-section-title{margin:0;padding:13px 14px 4px;font-size:14px;font-weight:650;color:var(--ink)}
.devices-list{display:flex;flex-direction:column}
.devices-empty{margin:0;padding:8px 14px 14px;font-size:12px;color:var(--muted)}
.device-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;min-height:76px;padding:11px 14px;border:0;background:transparent;text-align:left}
.device-row+.device-row{border-top:1px solid #edf1e7}
.device-row:hover{background:var(--soft)}.device-row:focus-visible{outline-offset:-3px}
.device-row-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;color:var(--ink)}
.device-glyph{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.device-row-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.device-row-name{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;min-width:0}
.device-row-name strong{font-size:15px;font-weight:600;overflow-wrap:anywhere}
.device-row-text small{font-size:12.5px;line-height:1.45;color:var(--muted)}
.device-row-place{overflow-wrap:anywhere}
.device-row-more{font-size:17px;letter-spacing:1px;color:var(--ink);padding:0 2px}
.device-badges{display:inline-flex;gap:6px}
.device-badge{display:inline-block;padding:1px 8px;border-radius:999px;background:#1aa3d9;color:#fff;font-size:10.5px;font-weight:600;letter-spacing:.4px;line-height:17px}
.device-badge.reported{background:#c4524f}
.devices-sign-out-all{display:flex;width:calc(100% - 28px);margin:6px 14px 14px;gap:9px;border-radius:999px;min-height:46px;font-size:14px}
.devices-see-all{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;border:0;border-top:1px solid #edf1e7;background:transparent;font-size:14px;font-weight:600;color:var(--ink)}
.devices-see-all:hover{background:var(--soft)}.devices-see-all-arrow{font-size:18px}
.devices-more{width:calc(100% - 28px);margin:0 14px 14px}
.devices-note{margin:0 4px!important;font-size:12px!important;line-height:1.7!important;color:#7d8c84!important}
.device-sheet-head{gap:6px}
.device-sheet-icon{display:flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:14px;background:#eef2f3;color:var(--ink)}
.device-sheet-icon .device-glyph{width:34px;height:34px}
.device-facts{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);gap:7px 16px;margin:0;padding:14px 18px 16px;font-size:15px}
.device-facts dt{color:var(--muted)}.device-facts dd{margin:0;color:var(--ink);overflow-wrap:anywhere}
.device-sheet .device-facts+.person-action-list{border-top:1px solid var(--line)}
.device-action{display:flex;align-items:center;gap:14px;text-align:left;color:var(--ink)}
.device-action.danger{color:var(--danger)}
.device-action .icon{width:22px;height:22px}
@media(max-width:760px){.device-row{min-height:78px}.device-row-name strong{font-size:16px}.device-row-text small{font-size:13px}.device-facts{font-size:15.5px}}
/* 0.1.74: Xóa tài khoản, Báo cáo, Hỗ trợ/Chính sách/Điều khoản */
.auth-terms-note{margin:4px 0 16px;font-size:11px;line-height:1.6;color:#708172}.auth-terms-note a,.auth-legal a{color:var(--green);text-underline-offset:3px}
.auth-legal{margin:14px 0 0;font-size:12px;color:#9aa59a;text-align:center}
.account-delete-facts{margin:0 0 18px;padding-left:20px;display:grid;gap:8px;font-size:14px;line-height:1.6}
.report-form{gap:14px}.report-reasons{border:1px solid var(--line);border-radius:12px;padding:4px 0;margin:0;display:grid}
.report-reason{display:flex;align-items:center;gap:12px;padding:12px 16px;font-size:15px;cursor:pointer;min-height:48px}.report-reason+.report-reason{border-top:1px solid var(--line)}
.report-reason input{width:20px;height:20px;margin:0;accent-color:var(--green);flex-shrink:0}
.report-form textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px;min-height:80px;resize:vertical;margin-top:6px;background:#fff;color:inherit}
.legal-page{font-size:15px;line-height:1.65;overflow-wrap:anywhere}.legal-page h2{font-size:17px;margin:24px 0 6px}.legal-page ul{padding-left:20px}.legal-page li{margin:5px 0}
.legal-page .updated{color:var(--muted);font-size:13px;margin:0 0 12px}.legal-page .contact{border:1px solid var(--line);border-radius:12px;padding:12px 16px}
.legal-page-language{margin-top:24px}
/* 0.1.75: the assistant's bot account (bot.py): its label and its draft cards. */
.bot-badge{display:inline-flex;align-items:center;vertical-align:1px;margin-left:5px;padding:1px 6px;border-radius:6px;background:#e7eefb;color:#3b5b98;font-size:9px;font-weight:700;letter-spacing:.2px;line-height:1.5;white-space:nowrap}
.message-author .bot-badge{font-size:8px;padding:0 5px}
.message-bubble.bot-draft-bubble{padding:0;min-width:min(300px,78vw);max-width:min(440px,82vw);overflow:hidden}
.bot-draft-card{display:flex;flex-direction:column;gap:8px;padding:12px 14px}
.bot-draft-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.bot-draft-head strong{font-size:12px;font-weight:700}
.bot-draft-target{font-size:11px;color:#5d6e64}.bot-draft-target strong{font-weight:650;color:var(--ink)}
.bot-draft-body{background:#f6f8f3;border:1px solid #e7ebdf;border-radius:10px;padding:9px 11px}.bot-draft-body .message-body{font-size:13px}
.bot-draft-note{font-size:11px;color:#6c7a62;line-height:1.6}.bot-draft-note span{font-weight:650}
/* 0.2.7: the files Nam attached, opened from the card before Duyệt. */
.bot-draft-files{display:flex;flex-direction:column;gap:6px}.bot-draft-files .message-attachment{margin:0;max-width:100%}
.bot-draft-original{font-size:11px;color:#6c7a62}.bot-draft-original summary{cursor:pointer;font-weight:600}.bot-draft-original-text{white-space:pre-wrap;padding:6px 0 0}
.bot-draft-status{font-size:11px;font-weight:650;color:#527a5b}.bot-draft-card.status-pending .bot-draft-status{color:#b06a28}.bot-draft-card.status-rejected .bot-draft-status,.bot-draft-card.status-withdrawn .bot-draft-status{color:#8a6d6d}
.bot-draft-actions{display:flex;gap:8px;flex-wrap:wrap}.bot-draft-actions .button{min-height:38px;padding:8px 16px;font-size:13px;flex:1}
.bot-draft-form{display:flex;flex-direction:column;gap:10px}.bot-draft-editor,.bot-draft-reason{width:100%;border:1px solid var(--line);border-radius:10px;padding:12px;font-size:14px;color:var(--ink);resize:vertical}
@media(max-width:760px){.bot-draft-editor,.bot-draft-reason{font-size:16px}}

/* 0.1.76: WebKit 15.0–15.3 (iOS 15.0–15.3) has no :has(). app.js then marks
   <html> with doho-no-has and sets these classes; the rules repeat the
   :has() ones above. Newer browsers never get the classes. */
html.doho-no-has .avatar.doho-has-image{overflow:hidden}
html.doho-no-has .composer-wrap.doho-has-stickers .composer-footer{display:none}
html.doho-no-has .forward-target-row.doho-has-checked{background:#e7f1ec;border-color:#96bdb1}
@media(max-width:760px){html.doho-no-has .composer-wrap.doho-has-stickers{padding-bottom:max(6px,env(safe-area-inset-bottom))}html.doho-no-has.doho-chat-open,html.doho-no-has.doho-chat-open body{overflow:hidden}}
/* 0.1.76: the <dialog> fallback of app.js for WebKit 15.0–15.3 (it marks <html>
   with doho-dialog-shim). The first three rules play the browser's own dialog
   style (no specificity, so every Doho rule wins as it does over the browser's);
   the dimmed layer stands in for ::backdrop. */
:where(html.doho-dialog-shim dialog){display:block;position:absolute;left:0;right:0;width:-webkit-fit-content;width:fit-content;height:-webkit-fit-content;height:fit-content;margin:auto;border:solid;padding:1em;background:#fff;color:#000}
:where(html.doho-dialog-shim dialog:not([open])){display:none}
:where(html.doho-dialog-shim dialog.doho-dialog-modal){position:fixed;top:0;bottom:0;max-width:calc(100% - 6px - 2em);max-height:calc(100% - 6px - 2em);overflow:auto}
.doho-dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f282252}
.doho-dialog-backdrop[data-kind~="text-select-page"],.doho-dialog-backdrop[data-kind~="video-viewer-dialog"]{background:transparent}
.doho-dialog-backdrop[data-kind~="capture-editor"],.doho-dialog-backdrop[data-kind~="video-call"]{background:#0c1f1b}
.doho-dialog-backdrop[data-kind~="image-viewer-dialog"],.doho-dialog-backdrop[data-kind~="moved-dialog"]{background:#10282bd9}
/* 0.1.79: a toast with one button (Hoàn tác after Ẩn khỏi Tường nhà). */
.toast-with-action{display:flex;align-items:center;gap:12px;pointer-events:auto;width:min(380px,calc(100vw - 35px))}.toast-with-action>span{flex:1;min-width:0}.toast-action{flex:none;min-height:34px;padding:6px 12px;border:0;border-radius:9px;background:#fff;color:#1d4035;font-size:12px;font-weight:650}
/* 0.1.79 (owner's reference): the voice call screen. The whole screen on a
   phone, a tall card on a computer; picture, name and time in the middle,
   Loa · Kết thúc · Mic as round buttons with their names at the bottom. */
.call-top-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;border-radius:50%;background:#ffffff1f;color:#fff;flex:none}.call-top-button .icon{width:22px;height:22px}.call-top-button:hover{background:#ffffff33}.call-top-tools{display:flex;gap:10px;margin-left:auto}
.call-timer{margin:6px 0 0;color:#8fe3a8;font-size:18px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:.5px}
#local-video.mirror-off{transform:none}
.call-dialog:not(.video-call){width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;inset:0;border-radius:0;padding:0;background:linear-gradient(180deg,#2f6c71 0%,#26585d 50%,#1d4245 100%);flex-direction:column}
.call-dialog:not(.video-call)[open]{display:flex}
.call-dialog:not(.video-call)::backdrop{background:#1d4245;backdrop-filter:none}
.call-dialog:not(.video-call) .call-top{padding:calc(env(safe-area-inset-top) + 14px) 18px 0;gap:10px}
.call-dialog:not(.video-call) .call-brand,.call-dialog:not(.video-call) #call-status,.call-dialog:not(.video-call) .call-note,.call-dialog:not(.video-call) #call-camera,.call-dialog:not(.video-call) #call-selfview{display:none}
.call-dialog:not(.video-call) .call-stage{flex:1;min-height:0;margin:0;padding:0 24px;align-items:flex-start;padding-top:min(12vh,96px)}
.call-dialog:not(.video-call) #call-identity{display:flex;flex-direction:column;align-items:center;max-width:100%}
.call-dialog:not(.video-call) #call-avatar{width:168px;height:168px;border-radius:50%;font-size:54px;margin:0 0 24px;box-shadow:0 0 0 4px #ffffff2e,0 18px 50px #0003;background:#4f8a86;color:#fff}
.call-dialog:not(.video-call) #call-avatar img{border-radius:50%}
.call-dialog:not(.video-call) #call-name{font-size:30px;line-height:1.25;font-weight:600;text-align:center;overflow-wrap:anywhere}
.call-dialog:not(.video-call) #call-description{margin:8px 0 0;color:#d6e6e2;font-size:14px;text-align:center}
.call-dialog.call-live:not(.video-call) #call-description{display:none}
.call-dialog:not(.video-call) .call-actions{justify-content:space-evenly;gap:0;padding:0 12px calc(env(safe-area-inset-bottom) + 52px)}
.call-dialog:not(.video-call) .call-action{position:relative;width:72px;height:72px;background:#ffffff26;color:#fff}
.call-dialog:not(.video-call) .call-action .icon{width:30px;height:30px}
.call-dialog:not(.video-call) .call-action[data-label]:after{content:attr(data-label);position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%);white-space:nowrap;color:#fff;font-size:15px;font-weight:500}
.call-dialog:not(.video-call) #call-speaker{order:1;min-width:72px;padding:0;border-radius:50%}
.call-dialog:not(.video-call) #call-speaker span{position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%);color:#fff;font-size:15px;font-weight:500}
.call-dialog:not(.video-call) #call-hangup{order:2;background:#e5675c}
.call-dialog:not(.video-call) #call-mic{order:3}
.call-dialog:not(.video-call) #call-speaker[aria-pressed=true],.call-dialog:not(.video-call) #call-mic[aria-pressed=true]{background:#fff;color:#1d4245}
.call-dialog:not(.video-call) #call-mic.off{background:#fff;color:#1d4245}
.call-dialog:not(.video-call) .call-output-help{position:absolute;left:16px;right:16px;bottom:calc(env(safe-area-inset-bottom) + 150px);margin:0 auto}
@media(min-width:761px){.call-dialog:not(.video-call){width:420px;height:min(760px,calc(100vh - 40px));height:min(760px,calc(100dvh - 40px));inset:0;margin:auto;border-radius:28px;box-shadow:0 30px 90px #0b1f2066}.call-dialog:not(.video-call)::backdrop{background:#0f282252;backdrop-filter:blur(5px)}}
/* The call minimized while Doho is used: one bar to go back to it. */
.call-pill{position:fixed;top:env(safe-area-inset-top,0px);left:0;right:0;z-index:260;display:flex;align-items:center;justify-content:center;gap:9px;width:100%;height:30px;margin:0;border:0;border-radius:0;padding:0 16px;background:#2b6066;color:#fff;font-size:13px;font-weight:600;cursor:pointer}.call-pill:focus-visible{outline:2px solid #8fe3a8;outline-offset:-3px}html.call-bar .app-view{margin-top:30px;height:calc(100vh - 30px);height:calc(100dvh - 30px)}html.call-bar .effects-camera{margin-top:30px;height:calc(100vh - 30px);height:calc(100dvh - 30px)}@media(max-width:760px){html.call-bar .moments-dialog,html.call-bar .modal.section-page,html.call-bar .modal.settings-screen,html.call-bar .file-preview-dialog{margin-top:30px;height:calc(100vh - 30px);height:calc(100dvh - 30px);max-height:calc(100vh - 30px);max-height:calc(100dvh - 30px)}}.call-pill span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.call-pill-dot{width:9px;height:9px;border-radius:50%;background:#8fe3a8;flex:none;animation:pulse 1.5s infinite}
/* The other side turned on its camera. */
.call-video-offer{position:absolute;left:16px;right:16px;bottom:calc(env(safe-area-inset-bottom) + 112px);z-index:4;display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 auto;max-width:420px;padding:12px 14px;border-radius:16px;background:#fffffff2;color:#1d4245;font-size:14px;box-shadow:0 10px 30px #0004}.call-video-offer span{flex:1 1 160px}.call-video-offer button{border:0;border-radius:10px;padding:8px 12px;font-weight:650;font-size:13px;background:#e8f0ee;color:#1d4245}.call-video-offer #call-video-accept{background:#2b6066;color:#fff}

/* 0.1.79: where to allow a refused permission. */
.permission-guide .permission-steps{margin:4px 0 14px;padding-left:22px;display:grid;gap:8px}.permission-guide .permission-steps li{padding-left:4px}.permission-guide .small-note{margin:0 0 14px}.permission-actions{display:flex;gap:10px;flex-wrap:wrap}.permission-actions .button{flex:1 1 140px}

/* 0.1.79: smart search — filters, pickers, recent searches, results, in-chat navigation. */
.search-filters{display:flex;flex-wrap:wrap;gap:6px;padding:0 11px 10px}
.search-filter{display:flex;align-items:center;flex:none;border:1px solid var(--line);background:#fff;border-radius:999px;overflow:hidden}
.search-filter-open{border:0;background:none;padding:6px 12px;font-size:12.5px;font-weight:600;color:var(--ink);white-space:nowrap;min-height:32px}
.search-filter-open::after{content:'▾';margin-left:5px;font-size:10px;color:var(--muted)}
.search-filter.active{background:var(--green);border-color:var(--green)}.search-filter.active .search-filter-open{color:#fff;padding-right:4px}.search-filter.active .search-filter-open::after{content:none}
.search-filter-clear{border:0;background:none;color:#fff;font-size:17px;line-height:1;padding:4px 10px 4px 4px;min-height:32px}
.search-picker{margin:0 11px 12px;padding:10px;border:1px solid var(--line);border-radius:14px;background:#fff;display:grid;gap:10px}
.search-picker-options{display:flex;flex-wrap:wrap;gap:6px;max-height:220px;overflow-y:auto}
.search-picker-option{border:1px solid var(--line);background:var(--soft);border-radius:999px;padding:6px 12px;font-size:12.5px;color:var(--ink);min-height:32px}
.search-picker-option[aria-pressed="true"]{background:var(--green);border-color:var(--green);color:#fff}
.search-picker-dates{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:12.5px;color:var(--muted)}.search-picker-dates input{border:1px solid var(--line);border-radius:9px;padding:5px 7px;font-size:13px;color:var(--ink);background:#fff;min-height:32px}
.search-picker-find{width:100%;border:1px solid var(--line);border-radius:10px;padding:7px 10px;font-size:13px;background:var(--cream)}
.search-recent{display:flex;align-items:center;gap:4px;padding:0 4px}.search-recent-open{flex:1;min-width:0;display:flex;align-items:center;gap:10px;border:0;background:none;padding:9px 7px;border-radius:10px;text-align:left;font-size:13.5px;color:var(--ink)}
.search-recent-open:hover{background:var(--soft)}.search-recent-open .icon{width:16px;height:16px;color:var(--muted)}.search-recent-open span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.search-recent-remove{border:0;background:none;color:var(--muted);font-size:18px;width:36px;height:36px;border-radius:10px}.search-recent-remove:hover{background:var(--soft)}
.search-inside{font-weight:600;color:var(--green)}.search-suggestion-detail .icon,.search-message-item .icon{width:14px;height:14px;vertical-align:-2px;margin-right:3px}
.search-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:3px;padding:0 11px}
.search-media-tile{position:relative;border:0;padding:0;aspect-ratio:1;background:var(--soft);border-radius:6px;overflow:hidden}.search-media-tile img{width:100%;height:100%;object-fit:cover;display:block}
.search-media-tile.video::after{content:'▶';position:absolute;right:6px;bottom:4px;color:#fff;font-size:12px;text-shadow:0 1px 3px #0009}
.search-number-result{padding:0 0 8px}.search-number-result .search-message-item p strong{font-weight:650}
.search-numbers{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px}.search-number{border:1px solid #cfe0db;background:#f2f8f6;color:var(--green);border-radius:999px;padding:4px 11px;font-size:12.5px;font-weight:650;min-height:30px;font-variant-numeric:tabular-nums}
.search-number-call{display:inline-flex;align-items:center;border-radius:999px;padding:4px 11px;font-size:12.5px;font-weight:650;background:var(--green);color:#fff;text-decoration:none;min-height:30px}
.search-nav{display:flex;align-items:center;gap:6px;padding:6px 10px 6px 16px;border-bottom:1px solid var(--line);background:#fffbea;font-size:12.5px;color:var(--ink)}
.search-nav-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.search-nav-count{color:var(--muted);font-variant-numeric:tabular-nums}
.search-nav-button{border:1px solid var(--line);background:#fff;border-radius:9px;width:34px;height:32px;font-size:15px;color:var(--ink)}.search-nav-button:disabled{opacity:.4}
::highlight(doho-search){background-color:#ffe27a;color:inherit}
.moments-compose-actions .moments-camera{margin-right:auto}.moments-compose-actions .moments-camera[hidden]{display:none}
html[data-i18n=loading] body{visibility:hidden}.auth-language{display:inline-flex;gap:2px;padding:3px;border-radius:999px;background:#eef2ec}.auth-language button{border:0;background:none;padding:5px 11px;border-radius:999px;font-size:11px;color:#6d7a72;min-height:30px}.auth-language button[aria-pressed=true]{background:#fff;color:var(--green);font-weight:650;box-shadow:0 1px 3px #0000001a}.language-choices{display:grid;gap:10px;margin:6px 0 4px}.language-choice{display:flex;align-items:center;justify-content:space-between;min-height:54px;padding:12px 16px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);font-weight:600;font-size:15px;text-align:left}.language-choice[aria-checked=true]{border-color:var(--green);box-shadow:0 0 0 2px #2b606626}.language-choice[aria-checked=true]:after{content:"✓";color:var(--green);font-weight:700}.language-choice:disabled{opacity:.6}
.doho-ios-app .install-help,.doho-android-app .install-help{display:none!important}/* 0.2.0 Bình chọn: the poll card in a message and its results */
.poll-bubble{width:min(320px,72vw);padding:12px 13px}
.poll-card{display:flex;flex-direction:column;gap:7px;min-width:0}
.poll-kicker{display:flex;align-items:center;gap:6px;color:#4c7d6e;font-size:10px;font-weight:700;letter-spacing:1px}
.poll-kicker .icon{width:15px;height:15px}
.poll-question{font-size:15px;font-weight:650;line-height:1.4;color:#1f4a45;overflow-wrap:anywhere}
.poll-meta{margin:0;font-size:11px;line-height:1.5;color:#7d8f80}
.poll-options{display:flex;flex-direction:column;gap:6px;margin-top:2px}
.poll-option{position:relative;display:flex;align-items:center;gap:9px;width:100%;min-height:42px;padding:8px 11px;overflow:hidden;border:1px solid #d9e4dc;border-radius:11px;background:#fbfcf8;color:#244b45;font:inherit;font-size:13px;text-align:left;cursor:pointer;isolation:isolate}
.poll-option:disabled{cursor:default;opacity:1}
.poll-option.chosen{border-color:#3f8a76}
.poll-bar{position:absolute;inset:0 auto 0 0;z-index:-1;width:var(--poll-share,0%);background:#e3f0e8;transition:width .25s ease}
.poll-option.chosen .poll-bar{background:#cfe6da}
.poll-mark{flex:0 0 18px;width:18px;height:18px;box-sizing:border-box;border:2px solid #9db3a6;border-radius:50%;background:#fff}
.poll-mark.multiple{border-radius:5px}
.poll-option.chosen .poll-mark{border-color:#2f7d6b;background:#2f7d6b;box-shadow:inset 0 0 0 3px #fff}
.poll-option.chosen .poll-mark.multiple{box-shadow:none;background:#2f7d6b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 4 4L19 6' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat}
.poll-text{flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.35}
.poll-count{flex:none;font-size:12px;font-weight:650;color:#3f6d60}
.poll-details{align-self:flex-start;padding:4px 0;font-size:12px}
.poll-card.closed .poll-option{cursor:default}
.poll-option:focus-visible,.poll-details:focus-visible{outline:3px solid #80b5b1;outline-offset:2px}
.poll-details-dialog .poll-question{display:block;margin-bottom:4px}
.poll-result{margin-top:16px}
.poll-result h3{margin:0 0 8px;font-size:13px;font-weight:650;color:#2f5a52}
@media(prefers-reduced-motion:reduce){.poll-bar{transition:none}}
/* 0.2.0 Album ảnh chung: a message's photos sent into an album */
.message-album-label{display:flex;align-items:center;gap:6px;margin:0 0 7px;padding:0;border:0;background:none;color:#3f7867;font:inherit;font-size:12px;font-weight:600;text-align:left;cursor:pointer}
.message-album-label .icon{width:15px;height:15px;flex:none}
div.message-album-label{cursor:default}
.image-bubble .message-album-label{padding:6px 8px 0}
/* 0.2.0: mã QR (kết bạn, nhóm, đăng nhập máy tính, quét mã) */
.scan-qr-button{width:36px;height:36px;border:1px solid #e3e9df;color:var(--green);border-radius:10px}
.qr-dialog,.qr-scanner,.qr-result,.qr-group,.qr-login-confirm{display:flex;flex-direction:column;gap:14px}
.qr-card{display:flex;flex-direction:column;align-items:center;gap:14px;padding:20px 18px;border:1px solid var(--line);border-radius:22px;background:#fff;text-align:center}
.qr-card-person{display:flex;align-items:center;gap:12px;align-self:stretch;text-align:left}
.qr-card-copy{display:flex;flex-direction:column;gap:2px;min-width:0;text-align:left}
.qr-card-copy strong{font-size:16px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}
.qr-card-copy small{font-size:12px;color:var(--muted)}
.qr-frame{display:grid;place-items:center;width:min(100%,280px);aspect-ratio:1;margin:0 auto;padding:6px;box-sizing:border-box;border:1px solid #e6ece6;border-radius:18px;background:#fff}
.qr-frame .qr-picture{display:block;width:100%;height:100%}
.qr-frame-spent .qr-picture{opacity:.15}
.qr-wait{padding:12px;font-size:13px;color:var(--muted);text-align:center}
.qr-note{margin:0;font-size:13px;line-height:1.55;color:#5d6f6b}
.qr-warning{color:#9a4b2f}
.qr-warning-box{margin:0;padding:12px 14px;border-radius:14px;background:#fdf1ea;color:#7a3e25;font-size:13px;line-height:1.5}
.qr-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.qr-actions .button{min-height:44px}
.qr-actions .qr-note{flex:1 1 100%}
.qr-status{margin:0;font-size:14px;line-height:1.5;color:var(--ink)}
.qr-camera{position:relative;width:100%;aspect-ratio:3/4;max-height:min(58vh,520px);max-height:min(58dvh,520px);overflow:hidden;border-radius:20px;background:#0f2629}
.qr-camera[hidden]{display:none}
.qr-camera video{display:block;width:100%;height:100%;object-fit:cover}
.qr-aim{position:absolute;inset:16% 12%;border:3px solid #ffffffe0;border-radius:24px;box-shadow:0 0 0 999px #0f262970;pointer-events:none}
.qr-pick,.qr-permission{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px}
.qr-pick .icon{width:18px;height:18px}
.qr-hint{margin:0}
.qr-result-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:14px}
.qr-result-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.qr-result-copy small{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.qr-result-copy strong{font-size:15px;word-break:break-all;color:var(--ink)}
.qr-link{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid var(--line);border-radius:14px}
.qr-link strong{font-size:15px;color:var(--ink)}
.qr-link span{font-size:12px;color:var(--muted);word-break:break-all}
.qr-text{box-sizing:border-box;width:100%;padding:12px;border:1px solid var(--line);border-radius:14px;font:inherit;font-size:14px;resize:vertical}
.qr-group-card{display:flex;align-items:center;gap:12px}
.qr-login-details{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 14px;margin:0;padding:12px 14px;border:1px solid var(--line);border-radius:14px}
.qr-login-details dt{font-size:12px;color:var(--muted)}
.qr-login-details dd{margin:0;font-size:14px;font-weight:600;word-break:break-word;color:var(--ink)}
.qr-login-form{display:flex;flex-direction:column;gap:10px}
/* 0.3.0: Face ID (a passkey) beside the password. */
.qr-login-form .qr-login-passkey{min-height:44px}
.qr-login-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--ink)}
.qr-done{margin:0;font-size:15px;font-weight:600;color:var(--ink)}
.qr-login-open{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:46px;margin-top:10px}
.qr-login-open .icon{width:18px;height:18px}
.qr-login-panel{display:flex;flex-direction:column;align-items:center;gap:12px;margin-top:6px}
.qr-login-panel .qr-frame{width:min(100%,240px)}
.qr-login-panel .qr-status{text-align:center}
.qr-login-steps{align-self:stretch;margin:0;padding-left:20px;font-size:13px;line-height:1.6;color:#5d6f6b}
.qr-login-refresh{min-height:44px}
.join-request-bar{border:0;border-bottom:1px solid var(--line);background:#fdf3ec;padding:10px 31px;text-align:left;font-size:12px;font-weight:600;color:#8a4a2c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.join-request-bar[hidden]{display:none}
@media(max-width:760px){.scan-qr-button{width:39px;height:39px}.join-request-bar{padding:10px 17px}.qr-frame{width:min(100%,260px)}}
/* 0.2.1: the Android app over the lock screen during a call shows the call only. */
.doho-locked body{visibility:hidden}
.doho-locked #call-dialog{visibility:visible}
/* 0.2.2 (anh Hoàng, 17/11): Doho on a computer from its browser, no installer.
   The sign-in page offers it under the welcome words; the install page gives
   this browser's steps, then how Doho opens at login and keeps its notices. */
.computer-install{margin:28px 0 0;max-width:380px}
.computer-install>.eyebrow{color:#b5d1cc;letter-spacing:2px;margin:0 0 12px}
.computer-install-button{display:inline-flex;align-items:center;gap:10px;min-height:46px;padding:11px 20px 11px 16px;border:0;border-radius:12px;background:#fff;color:var(--green-dark);font-size:14px;font-weight:600;box-shadow:0 12px 30px #0f282229}
.computer-install-button:hover{background:#f3efe6}
.computer-install-button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.computer-install-button:disabled{opacity:.7;cursor:progress}
.computer-install-button .icon{width:19px;height:19px;stroke-width:1.9}
.computer-install>p{font-size:12px;line-height:1.75;color:#c2d7d1;margin:12px 0 0;max-width:365px}
.install-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
.computer-install-status{padding:13px 15px;border-radius:11px;background:#edf3f1;color:var(--green-dark)!important}
.computer-install-panel .install-steps strong{color:var(--ink)}
.computer-install-panel .button .icon{width:18px;height:18px}
@media(max-width:1050px){.computer-install>p{font-size:11px}}
/* 0.2.3 (anh Hoàng, 18/11: đợt 1). The chips take the row of the label
   "TIN NHẮN", so the list does not start lower (rule 3: the main screen does
   not grow longer). */
.sidebar-label.has-chat-views{padding:10px 0 8px 16px;gap:8px}
.sidebar-label.has-chat-views .chat-views{padding-right:16px}
.sidebar-label.has-chat-views #conversation-list-label,.sidebar-label.has-chat-views #conversation-count{display:none}
.chat-views{display:flex;flex:1;min-width:0;gap:6px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:2px}
.chat-views::-webkit-scrollbar{display:none}
.chat-view-chip{display:inline-flex;align-items:center;gap:5px;flex:none;min-height:30px;padding:4px 11px;border:1px solid #e3e8df;border-radius:999px;background:#f6f7f2;color:#5f6f63;font-size:12.5px;font-weight:600;letter-spacing:0;white-space:nowrap}
.chat-view-chip:hover{background:#edf3f1;color:var(--green)}
.chat-view-chip.active{background:var(--green);border-color:var(--green);color:#fff}
.chat-view-count{min-width:17px;height:17px;padding:0 5px;border-radius:9px;background:#dfe9e5;color:var(--green-dark);font-size:10px;line-height:17px;text-align:center}
.chat-view-chip.active .chat-view-count{background:#ffffff33;color:#fff}
/* 0.2.8 (anh Hoàng, 25/11): the row slides sideways (finger, wheel, mouse drag), a
   soft edge shows more on that side, and "+" at its end adds a folder. */
.chat-views{overscroll-behavior-x:contain;scroll-padding-inline:16px}
.chat-views.more-end{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent)}
.chat-views.more-start{-webkit-mask-image:linear-gradient(to right,transparent,#000 28px);mask-image:linear-gradient(to right,transparent,#000 28px)}
.chat-views.more-start.more-end{-webkit-mask-image:linear-gradient(to right,transparent,#000 28px,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(to right,transparent,#000 28px,#000 calc(100% - 28px),transparent)}
.chat-views.dragging{cursor:grabbing}
.chat-views.dragging .chat-view-chip{pointer-events:none}
.chat-view-chip{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:pan-x}
.chat-view-add{justify-content:center;min-width:30px;padding:4px 7px;border-style:dashed;border-color:#c9d8d2;background:transparent;color:var(--green)}
.chat-view-add .icon{width:16px;height:16px;stroke-width:2.2}
.chat-folder-form{margin-top:4px}
.chat-folder-dialog .small-note{margin-top:14px}
.chat-folder-create{border-style:dashed;background:transparent}
.marked-unread-dot{min-width:11px;width:11px;height:11px;padding:0;border-radius:50%;align-self:center}
.conversation-item.has-unread .conversation-item-top strong{font-weight:700}
.conversation-scheduled-failed{color:var(--danger);font-weight:700;margin-right:5px;white-space:nowrap}
.conversation-archived-mark{display:inline-block;margin-right:5px;padding:0 5px;border-radius:5px;background:#eef0ea;color:#76806f;font-size:10px;font-weight:700;line-height:16px;vertical-align:1px}
.conversation-bulk-toolbar .conversation-bulk-actions.has-organize{grid-template-columns:repeat(4,minmax(0,1fr))}
.chat-folder-dialog .chat-folder-name{margin:0 0 6px;font-weight:600;color:var(--ink)}
.chat-folder-options{display:grid;gap:8px;margin-top:10px}
.chat-folder-option{display:flex;align-items:center;gap:13px;width:100%;min-height:50px;padding:12px 15px;border:1px solid #dce8e3;border-radius:13px;background:#f5f9f7;color:var(--green);text-align:left;font-size:14px;font-weight:600}
.chat-folder-option:hover{background:#eaf3ef}
.chat-folder-option span{flex:1}
.chat-folder-option.active{border-color:var(--green);background:#e6f0ec}
.chat-folder-option .icon{width:20px;height:20px;flex:none}
.message-saved-mark{display:inline-flex;color:#b7791f}
.message-saved-mark .icon{width:13px;height:13px}
.saved-list{flex:1;min-height:0;overflow-y:auto;padding:0 8px 12px;-webkit-overflow-scrolling:touch}
.saved-item{display:flex;align-items:center;gap:4px;border-radius:14px}
.saved-item:hover{background:#f5f8f6}
.saved-open{display:flex;align-items:center;gap:11px;flex:1;min-width:0;padding:10px;border:0;border-radius:14px;background:transparent;text-align:left;color:inherit}
.saved-open .avatar{width:42px;height:42px;flex:none}
.saved-copy{display:grid;gap:2px;min-width:0;flex:1}
.saved-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.saved-top strong{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.saved-top time{font-size:10px;color:#9aa491;flex:none}
.saved-text{font-size:12.5px;color:#6d7a70;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.saved-done{flex:none;min-height:40px;padding:6px 10px;font-weight:600}
.saved-more{display:block;margin:10px auto 0}
.conversation-list.saved-view-active{display:none!important}
.saved-list.search-hidden{display:none!important}
/* 0.2.3: Hẹn giờ gửi and Gửi khẩn from a held Gửi; the waiting messages' bar. */
#send-button{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.send-menu-backdrop{position:fixed;inset:0;z-index:70}
.send-menu{position:fixed;z-index:71;display:grid;gap:4px;min-width:250px;max-width:min(330px,calc(100vw - 16px));padding:6px;border:1px solid #dfe7e2;border-radius:15px;background:#fff;box-shadow:0 18px 50px #163e3330}
.send-menu-item{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border:0;border-radius:11px;background:transparent;text-align:left;color:var(--ink)}
.send-menu-item:hover:not(:disabled){background:#f1f6f4}.send-menu-item:focus-visible{background:#f1f6f4}
.send-menu-item .icon{width:20px;height:20px;color:var(--green);flex:none}
.send-menu-item[disabled] .icon{color:#a7b0a7}
.send-menu-copy{display:grid;gap:1px;min-width:0}
.send-menu-copy strong{font-size:14px;font-weight:600}
.send-menu-copy small{font-size:11.5px;color:var(--muted);line-height:1.35}
.scheduled-bar{display:flex;align-items:center;gap:8px;width:calc(100% - 24px);margin:0 12px 6px;padding:7px 12px;border:1px solid #dce8e3;border-radius:11px;background:#f2f7f5;color:var(--green);font-size:12.5px;font-weight:600;text-align:left}
.scheduled-bar .icon{width:17px;height:17px;flex:none}
.scheduled-bar.has-failed{border-color:#efd6d0;background:#fff4ef;color:var(--danger)}
/* Tin khẩn: the label of the bubble, the sender's "Chưa đọc · Gọi ngay". */
.message-urgent-label{display:flex;align-items:center;gap:6px;margin:-2px 0 6px;padding:5px 9px;border-radius:9px;background:#fdecea;color:#a3282b;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.message-urgent-label .icon{width:15px;height:15px;flex:none}
.message-urgent-label strong{font-weight:800;letter-spacing:.5px}
.message-row.urgent-message .message-bubble{box-shadow:0 0 0 2px #e5484d55}
.message-urgent-status{color:#b54142;font-weight:600}
.message-urgent-call{padding:0 4px;min-height:22px;color:#b54142;font-weight:700;font-size:inherit}
.urgent-call-dialog .urgent-call-row{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}
.urgent-call-row strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.urgent-call-row .avatar{width:40px;height:40px}
/* Mẫu tin nhanh ("/") */
.composer-template-mark{display:flex;align-items:center;justify-content:center;background:#edf3f1;color:var(--green)}
.composer-template-mark .icon{width:18px;height:18px}
.composer-template-company{margin-left:6px;padding:0 5px;border-radius:5px;background:#eef0ea;color:#76806f;font-size:10px;font-weight:700;vertical-align:1px}
.composer-template-empty{margin:6px 10px;color:var(--muted);font-size:12.5px}
.composer-template-manage{display:block;margin:4px 6px 2px;padding:6px 8px;font-size:12.5px;font-weight:600}
/* Trạng thái làm việc */
.work-status-mark{display:inline-block;margin-left:6px;padding:0 6px;border-radius:6px;background:#eef3f8;color:#3d5a80;font-size:10.5px;font-weight:600;line-height:17px;vertical-align:1px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.work-status-meeting{background:#fff1e6;color:#b45309}
.work-status-client{background:#eaf4ff;color:#1d5fa8}
.work-status-trip{background:#f3edff;color:#6b46c1}
.work-status-leave{background:#eef0ea;color:#5f6b5f}
#conversation-subtitle .work-status-mark{margin-left:0}
.member-info .work-status-mark{display:block;width:max-content;margin:3px 0 0}
.conversation-work-status{display:flex;align-items:center;gap:8px;margin:0 12px 6px;padding:7px 12px;border-radius:11px;background:#eef3f8;color:#3d5a80;font-size:12.5px}
.conversation-work-status .icon{width:16px;height:16px;flex:none}
.conversation-work-status.work-status-meeting{background:#fff1e6;color:#b45309}
.conversation-work-status.work-status-leave{background:#f2f4ee;color:#5f6b5f}
/* Gửi bản đã sửa */
.file-version-note{display:inline-flex;align-items:center;gap:5px;margin:5px 2px 0;padding:2px 4px;border:0;background:transparent;color:var(--green);font-size:11.5px;font-weight:600;text-align:left}
.file-version-note .icon{width:14px;height:14px}
.file-version-note.superseded{color:#a5453f}
.edited-version-names{font-weight:600;overflow-wrap:anywhere}
.edited-version-status{color:var(--muted)}
/* 0.2.3: the readers' find, print and "Gửi bản đã sửa" in the viewer. */
.file-preview-find{flex:none;width:44px;height:44px;border:0;background:transparent;color:var(--green)}
.file-preview-print,.file-preview-version{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin:0;padding:8px 12px;border:0;border-radius:10px;background:transparent;color:var(--green);font:inherit;font-size:14px;cursor:pointer}
.file-preview-print .icon,.file-preview-version .icon{width:23px;height:23px}
.file-preview-print:disabled{opacity:.6;cursor:wait}
.pdf-password-form{display:flex;flex-direction:column;gap:12px;width:min(420px,calc(100% - 32px));margin:40px auto;padding:20px;border:1px solid var(--line);border-radius:16px;background:#fff}
.pdf-password-label{display:flex;flex-direction:column;gap:10px;font-weight:600}
.pdf-password-label input{padding:11px 12px;border:1px solid var(--line);border-radius:10px;font-size:16px}
.doho-print-area{display:none}
@media print{
  html.doho-printing,html.doho-printing body{background:#fff!important;height:auto!important;overflow:visible!important}
  html.doho-printing body>*:not(.doho-print-area){display:none!important}
  html.doho-printing .doho-print-area{display:block!important}
  .doho-print-area>img{display:block;width:100%;height:auto;break-after:page;page-break-after:always}
  .doho-print-area>img:last-child{break-after:auto;page-break-after:auto}
  .doho-print-title{margin:0 0 8px;font:600 13pt/1.3 -apple-system,"Segoe UI",sans-serif;color:#000}
  .doho-print-area .workbook-print{border-collapse:collapse;border:0;table-layout:fixed;font:9pt/1.25 Calibri,Carlito,"Segoe UI",sans-serif;color:#000}
  .doho-print-area .workbook-print td{border:1px solid #bbb;padding:1px 4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;position:static!important;box-shadow:none!important}
  .doho-print-area .workbook-print tr.workbook-filtered-out,.doho-print-area .workbook-print tr[hidden]{display:none}
  .doho-print-area .workbook-print td.wrap{white-space:normal}
}

/* 0.2.9: a newer iPhone app on the App Store ("nhắc cập nhật app ngay trong Doho"). */
.ios-update-banner{display:flex;align-items:center;gap:10px;margin:0 16px 10px;padding:10px 10px 10px 14px;border:1px solid #d8e6dc;border-radius:14px;background:#f1f7f2}
.ios-update-text{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.ios-update-text strong{font-size:13px;color:var(--ink)}.ios-update-text span{font-size:11.5px;line-height:1.5;color:#6c8175}
.ios-update-open{min-height:38px;padding:8px 14px;font-size:13px;flex:none;text-decoration:none}.ios-update-close{flex:none;font-size:20px;width:36px;height:36px}
/* 0.3.3 (owner, 27/11/2026: "Độ dài hiển thị khung chat doho đang quá ngắn"): on a phone the four tools and
   voice typing left the words about 150 of 390 px, four lines for one sentence. Once something is written they
   fold into one "+" and Gửi stays, so the words take about 290 px (as Zalo and WhatsApp do); "+" brings the
   tools back until the next keystroke. Voice typing that is on keeps its button. */
.composer .composer-more{display:none}
@media(max-width:760px){.composer:not(.composer-tools-open):has(#message-input:not(:placeholder-shown)) .composer-more{display:inline-flex;width:34px}.composer:not(.composer-tools-open):has(#message-input:not(:placeholder-shown)) :is(#attach-button,#camera-button,#sticker-button,#emoji-button),.composer:not(.composer-tools-open):has(#message-input:not(:placeholder-shown)) #record-button:not(.recording){display:none}}
/* Its twin where :has() is missing (iOS 15.0–15.3: app.js puts doho-has-text on the composer while words are in it). */
@media(max-width:760px){html.doho-no-has .composer.doho-has-text:not(.composer-tools-open) .composer-more{display:inline-flex;width:34px}html.doho-no-has .composer.doho-has-text:not(.composer-tools-open) :is(#attach-button,#camera-button,#sticker-button,#emoji-button),html.doho-no-has .composer.doho-has-text:not(.composer-tools-open) #record-button:not(.recording){display:none}}
/* 0.3.3 (owner: "Khi thả cảm xúc nếu xuống dòng thì các biểu tượng cảm xúc này cũng nhảy dòng làm thao tác dễ bị
   bấm nhầm vào cảm xúc bên dưới"): on a phone the emoji and sticker tray sits below the message, where the
   keyboard was, so a message growing a line grows upwards and the tray under the finger stays put. */
@media(max-width:760px){.composer-wrap{display:flex;flex-direction:column}.composer-wrap>.sticker-tray{order:1}}
