/* Shared composer geometry: fixed circular controls cannot shrink around text. */
#messages-send,#hub-presidency-chat .hub-chat-compose-wrap{display:flex;align-items:flex-end;gap:8px;padding:12px;background:#fff;position:relative;flex-shrink:0}
#messages-send button,#hub-presidency-chat .hub-chat-compose-wrap>button{box-sizing:border-box;display:grid;place-items:center;flex:0 0 40px;width:40px;min-width:40px;height:40px;min-height:40px;padding:0;margin:0;border:0;border-radius:50%;box-shadow:none;transition:transform .16s,background .16s}
#messages-send button svg,#hub-presidency-chat .hub-chat-compose-wrap>button svg{width:22px;height:22px;display:block}
#messages-send button:active,#hub-presidency-chat .hub-chat-compose-wrap>button:active{transform:scale(.91)}
#messages-attach,#hub-presidency-chat #hub-chat-attach{background:#edf0f4!important;border:0!important;color:#687584!important}
#messages-text,#hub-presidency-chat #hub-chat-compose{flex:1;min-width:0;box-sizing:border-box;margin:0;padding:10px 13px;line-height:20px;min-height:42px;max-height:110px;border:1px solid #dce1e7;border-radius:22px;resize:none;background:#fff;font-size:16px}
.message-share-menu{padding:12px;display:flex;flex-direction:column;gap:3px}
.message-share-menu>button{display:grid;grid-template-columns:36px 1fr 12px;gap:12px;border:0;border-radius:14px;background:transparent;margin:0;padding:9px 10px;min-height:54px;color:#273747;transition:background .15s,transform .15s}
.message-share-menu>button:hover{background:#edf4fc}.message-share-menu>button:active{transform:scale(.98)}
.message-share-menu>button>span:first-child{width:36px;height:36px;border-radius:11px;background:#eaf2ff;color:#237bee;font-size:22px}
.message-share-menu>button:nth-of-type(2)>span:first-child{background:#fff0e9;color:#d57039}
.message-share-menu>button:nth-of-type(3)>span:first-child{background:#e8f6ee;color:#379461}
.message-share-menu>button:nth-of-type(4)>span:first-child{background:#f1ebfc;color:#8862b8}
.message-share-menu strong{font-size:15px;font-weight:600;letter-spacing:-.15px}.message-share-menu b{color:#a0aab6;font-weight:400}
.message-share-menu svg{width:21px;height:21px;display:block}
#messages-body{position:relative}
#message-action-sheet{position:absolute;bottom:76px;left:12px;right:12px;max-height:calc(100% - 90px);overflow:auto;background:#fffffff5;backdrop-filter:blur(16px);border:1px solid #e4e9ef;border-radius:22px;box-shadow:0 8px 30px #233f5d20;animation:message-sheet-in .18s ease-out;z-index:2}
.message-share-preview{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid #e2eaf3;border-radius:17px;background:#f4f8fd}.message-share-preview strong,.message-share-preview small{display:block}.message-share-preview small{font-size:12px;color:#7c8a99;margin-top:4px}
.message-share-menu>.message-compose-note{padding:8px 10px;font-size:12px}
.message-share-form{padding:20px 16px;gap:18px;background:#fff}
.message-share-form>label:has([name=title]){font-size:17px;color:#243748;gap:10px}
.message-share-form input,.message-share-form select,.message-share-form textarea{background:#f7f8fa;border-color:#e4e8ed;border-radius:13px;font-weight:400}
.message-share-form input:focus,.message-share-form select:focus,.message-share-form textarea:focus{border-color:#77b4ef;outline:2px solid #ddeeff!important;outline-offset:0!important}
.message-share-form>.messages-primary{border-radius:23px;min-height:46px;background:#1683f7}
.message-optional-details{border:1px solid #e8ecf0;border-radius:15px;background:#fafbfd}
.message-optional-details summary{padding:13px 14px;cursor:pointer;color:#3078b4;font-size:14px;font-weight:600;list-style:none}
.message-optional-details summary:after{content:'＋';float:right;font-size:18px}.message-optional-details[open] summary:after{content:'−'}
.message-optional-details summary span{display:block;font-size:12px;font-weight:400;color:#82909c;margin-top:3px}
.message-optional-details summary{position:relative;padding-right:40px}.message-optional-details summary:after{position:absolute;right:15px;top:50%;transform:translateY(-50%);float:none}
.message-share-form>.message-compose-back{display:none}
.message-optional-fields{display:flex;flex-direction:column;gap:15px;padding:4px 14px 16px}
.message-compose-back{padding:4px;min-height:32px;margin:0}
.message-share-form>.message-compose-note{font-size:13px;line-height:1.5}
.presidency-share-sheet{flex:0 1 auto;min-height:0;max-height:65%;overflow:auto;background:#fafbfd;border-top:1px solid #e7ebf0;animation:message-sheet-in .18s ease-out}
.presidency-share-sheet{position:absolute;bottom:76px;left:12px;right:12px;z-index:3;border:1px solid #e4e9ef;border-radius:22px;background:#fff;box-shadow:0 8px 30px #233f5d20}
.presidency-share-heading{display:flex;align-items:center;justify-content:space-between;padding:12px 16px 0;font-size:15px}
.presidency-share-heading button{width:32px;height:32px;border:0;border-radius:50%;background:#e9edf2;color:#6c7a89;font-size:22px;padding:0}
.presidency-share-sheet [hidden]{display:none!important}
#presidency-share-content:not(:empty){padding:14px 16px}
#presidency-share-content input{box-sizing:border-box;width:100%;font:inherit;font-size:16px;border:1px solid #e0e6ed;border-radius:12px;padding:10px 12px;margin:10px 0;background:white}
.presidency-share-people{max-height:210px;overflow:auto}
.presidency-share-people>button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:0;background:transparent;padding:10px 0;color:#26384b;font:inherit;font-size:14px}
.presidency-share-people strong{flex:1}.presidency-share-people .message-avatar{width:34px;height:34px;font-size:12px}
@keyframes message-sheet-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.presidency-share-sheet{animation:none}#messages-send button,#hub-presidency-chat .hub-chat-compose-wrap>button,.message-share-menu>button{transition:none}}
/* Invitations begin with the plan, not a calendar database dropdown. */
.message-invitation{gap:16px}.message-invitation>.message-form-pair{grid-template-columns:1fr}
.message-invitation>label:has([name=title]){font-size:18px;letter-spacing:-.25px}
.message-invitation>label:has([name=title]) input{font-size:18px;background:#fff;padding:14px;border-radius:15px}
.invitation-calendar-picker{order:0;border:1px solid #e3eaf3;border-radius:15px;background:#f7faff}
.invitation-calendar-picker summary{list-style:none;cursor:pointer;padding:13px 14px;color:#3678b2;font-size:14px;font-weight:600;display:flex;justify-content:space-between}
.invitation-calendar-picker[open] summary>span{transform:rotate(90deg)}
.invitation-calendar-content{padding:0 10px 10px}.invitation-calendar-items{max-height:245px;overflow:auto;margin-top:8px;overscroll-behavior:contain}
.invitation-calendar-items>button{display:flex;align-items:center;gap:11px;width:100%;padding:10px 4px;border:0;border-bottom:1px solid #e7edf5;background:transparent;color:#2c4055;text-align:left;cursor:pointer}
.invitation-calendar-items>button>span:nth-child(2){flex:1;min-width:0}.invitation-calendar-items strong{font-size:14px;display:block;overflow-wrap:anywhere}.invitation-calendar-items small{display:block;font-size:12px;color:#718295;margin-top:3px}
.invitation-date-tile{width:42px;flex:0 0 42px;text-align:center;background:#fff;border:1px solid #e0e8f0;border-radius:10px;padding:4px 0}.invitation-date-tile small{color:#d87956;text-transform:uppercase;font-size:10px;margin:0}.invitation-date-tile b{font-size:20px}
.invitation-more{border:0;background:transparent;color:#3678b2;font:inherit;font-size:13px;padding:12px;width:100%}
.invitation-time{border:1px solid #e4e9ee;border-radius:16px;background:#f8fafc;flex-shrink:0}
.invitation-time-toggle{display:flex;justify-content:space-between;align-items:center;gap:10px;border:0;background:none;width:100%;padding:14px;text-align:left;color:#31536e;font:inherit;font-size:14px;cursor:pointer}.invitation-time-toggle small{color:#69839b;font-size:12px}
.invitation-time-controls{padding:0 14px 14px}.invitation-dials{display:grid;grid-template-columns:1fr 1fr 64px;gap:12px;align-items:center;margin:0 0 10px}
.invitation-dial{display:grid;grid-template-rows:30px 44px 30px;text-align:center;background:white;border:1px solid #e2e8ef;border-radius:13px;overflow:hidden}
.invitation-dial button{border:0;background:transparent;font-size:22px;color:#6f93b2;cursor:pointer;padding:0}.invitation-dial button:hover{background:#eef5ff}
.invitation-dial [role=spinbutton]{display:grid;place-items:center;font-size:27px;font-weight:600;color:#2c5478;outline-offset:-3px!important}
.invitation-period{border:1px solid #d5e3ef;background:#e9f2fc;color:#3573aa;border-radius:12px;height:44px;font:inherit;font-weight:600;cursor:pointer}
.message-invitation .invitation-native-time{display:none}
@media(max-width:720px){.invitation-dials{display:none}.message-invitation .invitation-native-time{display:flex;margin-top:8px}.invitation-native-time input{background:#fff;min-height:48px}}
.message-invitation{gap:12px;padding:14px 16px}.invitation-dial{grid-template-rows:24px 36px 24px}.invitation-dial [role=spinbutton]{font-size:25px}
.message-invitation>.messages-primary{position:sticky;bottom:0;z-index:2;box-shadow:0 0 0 7px white,0 -8px 14px white}
.invitation-dial button{min-height:0;height:24px;line-height:24px;min-width:0;margin:0}.invitation-dial [role=spinbutton]{min-height:0}
.invitation-wheel-shell{position:relative;height:144px;min-width:0;border-radius:14px;background:linear-gradient(#f8fafc,#fff 40%,#fff 60%,#f8fafc);overflow:hidden}
.invitation-wheel-shell:before{content:'';position:absolute;left:4px;right:4px;top:54px;height:36px;border-radius:9px;background:#eaf2fb;border:1px solid #dce8f5;box-sizing:border-box;pointer-events:none}
.invitation-wheel{position:relative;height:144px;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:none;padding:54px 0;box-sizing:border-box;outline-offset:-3px!important;cursor:ns-resize;touch-action:pan-y;mask-image:linear-gradient(transparent,#000 22%,#000 78%,transparent)}
.invitation-wheel::-webkit-scrollbar{display:none}
.invitation-wheel-number{display:flex;align-items:center;justify-content:center;height:36px;min-height:36px;scroll-snap-align:center;flex-shrink:0;font-size:25px;font-weight:500;font-variant-numeric:tabular-nums;color:#7890a7;transform-origin:center;user-select:none}
.invitation-wheel-number.is-selected{color:#244e77;font-weight:650}
.invitation-wheel-shell:focus-within{box-shadow:0 0 0 2px #8fbced}
.message-reactions{display:flex;gap:5px;flex-wrap:wrap;margin-top:5px}.message-reactions:empty{display:none}.message-reactions button{border:1px solid #e1e6ed;border-radius:20px;background:#f4f6f9;padding:4px 8px;min-height:30px;font-size:17px;cursor:pointer}.message-reactions button[aria-pressed=true]{border-color:#8cbdf3;background:#eaf4ff}.message-reactions span{font-size:12px;color:#60758b}
.message-bubble-tools{display:flex;gap:3px;align-items:center;margin-top:3px}.hub-message.mine .message-bubble-tools{justify-content:flex-end}.message-bubble-tools button{border:0;background:transparent;color:#7890a6;width:34px;height:32px;padding:0;font-size:20px;border-radius:50%;cursor:pointer}.message-bubble-tools button:hover{background:#edf4fc;color:#237adb}
.message-reply-preview{display:block;width:100%;border:0;border-left:3px solid #83b8e9;border-radius:10px;background:#f0f5fa;padding:8px 10px;text-align:left;color:#58738c;cursor:pointer}.message-reply-preview strong,.message-reply-preview span{display:block;font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#messages-reply-draft{display:flex;gap:10px;align-items:center;border-top:1px solid #e6edf3;background:#f4f8fc;padding:10px 14px;flex-shrink:0}#messages-reply-draft>div{flex:1;min-width:0}#messages-reply-draft strong,#messages-reply-draft span{display:block;font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#messages-reply-draft button{width:36px;height:36px;border:0;border-radius:50%;background:#e8eff6;font-size:22px;color:#5b7590}
#messages-add-form{display:flex;flex-direction:column;min-height:0;flex:1}#messages-add-form>.message-compose-note{padding:0 16px 12px}.messages-group-tools{flex-shrink:0;max-height:220px;background:#f9fbfd}.messages-group-tools summary{font-size:14px;padding:8px 0}.messages-group-tools button{min-height:40px;padding:8px 12px;margin-top:8px}.messages-group-tools #messages-leave{color:#af4a48}.messages-group-tools form{gap:8px}.messages-group-tools form input{min-width:0}
@media(max-width:720px){#hub-search-sheet .hub-sheet-close{width:66px!important;min-width:66px;min-height:48px!important;border-radius:15px!important;background:#eaf2fa!important;color:#28699c!important;font-size:16px!important;display:grid;place-items:center;padding:8px!important}#hub-search-sheet .hub-sheet-head{padding:6px 0 14px!important;align-items:center}}
.hub-quick-morph{will-change:transform,opacity;box-shadow:0 16px 45px #183f5524}
@media(max-width:720px){
 #hub-fab>#hub-chat-button{width:52px!important;height:52px!important;min-width:52px!important;border-radius:50%!important;background:#2379ad!important;box-shadow:0 5px 16px #153e5830!important}
 #hub-fab>#hub-chat-button:before,#hub-fab>#hub-chat-button:after{content:none!important;display:none!important}
 #hub-fab>#hub-chat-button svg{visibility:visible!important;width:28px!important;height:28px!important;color:#fff;stroke-width:1.7}
 #hub-messages-panel:not(.hub-keyboard-open),#hub-presidency-chat.hub-companion-panel:not(.hub-keyboard-open){bottom:max(10px,env(safe-area-inset-bottom))!important;height:min(680px,calc(100dvh - 32px))!important;max-height:calc(100dvh - 32px)!important}
 #hub-quick-add-sheet-backdrop{backdrop-filter:none}
}
#messages-body{position:relative}
#hub-messages-panel .messages-heading{min-width:0;flex:1;text-align:center}
#hub-messages-panel #messages-identity{display:flex;flex-direction:column;gap:4px;width:100%;height:auto;min-height:84px;padding:2px 4px;color:#243346;border-radius:16px;font:inherit}
#messages-avatar,.messages-details-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:linear-gradient(145deg,#a2b8d0,#687f9c);color:white;font-size:17px;font-weight:650;box-shadow:inset 0 1px 1px #fff5}
#messages-avatar.is-group{background:linear-gradient(145deg,#91acf3,#6875bd)}
#messages-identity-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:650;line-height:1.3}
#messages-identity-subtitle{color:#76818d;font-size:11px;line-height:1.2}
#hub-messages-panel[data-screen=thread] .messages-head{padding:10px 12px;align-items:center}
#messages-details{position:absolute;inset:0;z-index:5;max-height:none;overflow:auto;padding:16px;background:#f3f4f8;border:0;box-sizing:border-box;animation:conversation-sheet-in .2s ease-out}
.messages-details-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.messages-details-top h3{font-size:16px;margin:0}.messages-group-tools .messages-details-top button{margin:0;min-width:54px;background:white;color:#087ff5;font-size:15px}
.messages-details-avatar{width:64px;height:64px;font-size:24px;margin:18px auto 10px}.messages-details-name{text-align:center;font-size:20px;margin:0 0 20px;overflow-wrap:anywhere}
#messages-details #messages-rename{padding:12px;background:white;border-radius:16px;align-items:center}#messages-details #messages-rename input{background:#f3f4f8;font-size:16px}#messages-details #messages-rename button{margin:0}
#messages-details #messages-add-members,#messages-details #messages-leave{width:100%;min-height:48px;text-align:left;background:white;border-radius:14px;padding:12px 16px;font-size:15px}
#messages-group-members{margin-top:18px;background:white;border-radius:16px;overflow:hidden}.messages-detail-person{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid #eef0f4;font-size:15px}.messages-detail-person:last-child{border:0}
#hub-messages-panel dialog.hub-emoji-in-chat{position:absolute;inset:0;margin:0;width:100%;height:100%;max-width:none;max-height:none;box-sizing:border-box;border:0;border-radius:0;padding:14px 16px;background:#f8f9fc;box-shadow:none;overflow:auto;overscroll-behavior:contain;z-index:8;animation:conversation-sheet-in .2s ease-out}
.hub-emoji-in-chat .hub-emoji-heading{margin:0 0 12px;align-items:center}.hub-emoji-in-chat .hub-emoji-heading h2{font-size:18px}.hub-emoji-in-chat .hub-emoji-heading button{min-width:44px;min-height:44px}.hub-emoji-in-chat .hub-emoji-search{font-size:16px;background:white}.hub-emoji-in-chat .hub-emoji-keyboard{margin:10px 0 4px}.hub-emoji-in-chat .hub-emoji-groups h3{font-size:13px;color:#65758b;margin:14px 0 8px}.hub-emoji-in-chat .hub-emoji-grid{grid-template-columns:repeat(auto-fill,minmax(40px,1fr));gap:5px}.hub-emoji-in-chat .hub-emoji-grid button{min-height:42px}.hub-emoji-in-chat .hub-emoji-groups>p{font-size:12px;line-height:1.5}
@keyframes conversation-sheet-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#messages-details,#hub-messages-panel dialog.hub-emoji-in-chat{animation:none}}
#hub-messages-panel dialog.hub-emoji-in-chat{font:inherit;color:#243346}
.hub-emoji-in-chat .hub-emoji-heading{position:sticky;top:-14px;z-index:2;background:#f8f9fc;padding:8px 0;margin-top:-8px}
.hub-emoji-in-chat .hub-emoji-grid{align-items:start;grid-template-columns:repeat(auto-fill,minmax(44px,1fr))}
.hub-emoji-in-chat .hub-emoji-option .hub-emoji-tone-trigger{min-height:24px;height:24px;font-size:12px}
/* A quiet layered inbox: the conversations remain the visual focus. */
#hub-messages-panel[data-screen=inbox]{background:linear-gradient(155deg,#f4f8ff 0%,#f4f5fa 48%,#eef4f8 100%)}
#hub-messages-panel[data-screen=inbox] .messages-head{background:transparent;padding:24px 18px 10px;gap:10px}
#hub-messages-panel[data-screen=inbox] .messages-heading{text-align:left}
#hub-messages-panel[data-screen=inbox] .messages-head h2{font-size:29px;letter-spacing:-.9px;color:#23354c}
#hub-messages-panel[data-screen=inbox] .messages-head p{font-size:13px;color:#708197;margin-top:5px}
#hub-messages-panel[data-screen=inbox] #messages-new{background:#fff;color:#087ff5;box-shadow:0 3px 12px #527baa16,inset 0 0 0 1px #e0e9f5;width:42px;height:42px;border-radius:15px}
#hub-messages-panel[data-screen=inbox] .messages-search{padding:12px 16px 16px}
#hub-messages-panel[data-screen=inbox] .messages-search input{background:#fff9;border:1px solid #dfe7f0;box-shadow:inset 0 1px 2px #354c6710;border-radius:14px;min-height:44px;font-size:16px}
.messages-inbox-section{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 20px 10px;color:#576b83;font-size:12px;font-weight:650;flex-shrink:0}.messages-inbox-section span:last-child{color:#7b889a;font-size:11px;font-weight:400}
#hub-messages-panel[data-screen=inbox] #messages-list{padding:0 10px 14px;scrollbar-gutter:stable}
#hub-messages-panel[data-screen=inbox] .message-thread{border:1px solid #e5eaf1;border-radius:18px;margin-bottom:7px;padding:15px 12px;background:#ffffffd9;box-shadow:0 2px 6px #263b5404;transition:background .16s,box-shadow .16s}
#hub-messages-panel[data-screen=inbox] .message-thread:hover{background:#fff;box-shadow:0 4px 12px #263b540c}
#hub-messages-panel[data-screen=inbox] .message-thread.unread{background:#f9fcff;border-color:#cbdff8;box-shadow:inset 3px 0 #2589ee}
#hub-messages-panel[data-screen=inbox] .message-avatar{box-shadow:inset 0 1px 1px #fff9,0 3px 6px #2948690a}
#hub-messages-panel[data-screen=inbox] .message-avatar.group{font-size:17px;background:linear-gradient(145deg,#e5e2fb,#d6dcf5);color:#6773a5}
#hub-messages-panel[data-screen=inbox] .message-snippet{color:#6d7c90}
#hub-messages-panel[data-screen=inbox] .messages-empty{margin:6px 0;background:#ffffff80;border:1px solid #e3eaf3;border-radius:20px}
@media(prefers-reduced-motion:reduce){#hub-messages-panel[data-screen=inbox] .message-thread{transition:none}}
#messages-details #messages-rename label{display:block;width:100%;color:#718196;font-size:12px;font-weight:600}#messages-details #messages-rename input{display:block;margin-top:7px;width:100%}
#messages-name-prompt{position:absolute;inset:0;z-index:10;background:#23364b35;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box;backdrop-filter:blur(3px)}
#messages-name-prompt>div{width:100%;max-width:300px;background:#f9fbff;border:1px solid #fff;border-radius:22px;box-shadow:0 12px 36px #243b5526;padding:20px;text-align:center}
#messages-name-prompt h3{font-size:18px;color:#24364a;margin:0 0 8px}#messages-name-prompt p{font-size:14px;margin:0 0 16px}#messages-name-prompt button{display:block;width:100%;min-height:44px;margin-top:8px;font:inherit;font-size:15px;border-radius:12px;background:#edf2f9}#messages-name-prompt [data-name-choice=save]{background:#1683f7;color:white;font-weight:600}#messages-name-prompt [data-name-choice=discard]{color:#b64b4b}
.messages-open-items{flex-shrink:0;border:0;border-bottom:1px solid #e7edf5;background:#f1f6ff;color:#2675c9;padding:10px 16px;text-align:left;font:inherit;font-size:13px;font-weight:600;min-height:42px}.message-open-list{padding:16px;background:#f4f6fa}.message-open-list .message-request-card{margin:0 0 14px;background:white;border:1px solid #e0e7f0;border-radius:18px;padding:16px}.message-member-actions{border:0;background:#edf4fd;color:#277ac9;border-radius:12px;padding:9px 12px;min-height:40px;margin:6px 0;font:inherit;font-size:13px}.message-bubble-tools [data-message-actions]{font-size:21px}.message-request-status{max-width:65%;text-align:right;overflow-wrap:anywhere}#message-workflow-form label{font-size:14px}#message-workflow-form input,#message-workflow-form select,#message-workflow-form textarea{font:inherit;font-size:16px;min-width:0;box-sizing:border-box;width:100%;border:1px solid #dae4ee;border-radius:13px;padding:12px;background:#fff}#message-workflow-form{overflow:auto;min-height:0}#message-workflow-form .message-form-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
/* Conversation polls: compact cards with visible, changeable votes. */
.message-poll{width:min(310px,100%);box-sizing:border-box;padding:18px;background:linear-gradient(145deg,#fff,#f3f7fc);border:1px solid #dce5f0;border-radius:20px;color:#19334e;box-shadow:0 3px 12px #173b6410}
.message-poll-label{font-size:11px;font-weight:750;letter-spacing:.08em;color:#52759c}.message-poll h3{font-size:18px;line-height:1.35;margin:8px 0 16px;overflow-wrap:anywhere}.message-poll-options{display:grid;gap:8px}.message-poll-options button{position:relative;display:flex;align-items:center;gap:8px;min-height:44px;text-align:left;border:1px solid #d6e3f2;border-radius:12px;padding:10px 12px;color:#244c76;background:linear-gradient(to right,#dceaff var(--vote-share),#ffffff var(--vote-share));font:inherit}.message-poll-options button span:first-child{flex:1;overflow-wrap:anywhere}.message-poll-options button[aria-pressed=true]{border-color:#3675b9;box-shadow:0 0 0 1px #3675b9}.message-poll small{display:block;line-height:1.5;margin:12px 0 4px;color:#55708b}.message-poll summary{padding:10px 0;cursor:pointer;font-weight:600}.message-poll-voters{display:grid;gap:3px;padding:8px 0;border-top:1px solid #e2e9f1;overflow-wrap:anywhere}.message-poll-voters span{font-size:13px;color:#55708b}.message-poll-intro h3{margin:0 0 6px;font-size:23px}.message-poll-intro p{margin:0 0 12px;color:#647a92}.message-poll-editor-heading{display:flex;justify-content:space-between;align-items:center}.message-poll-edit-option{display:flex;gap:6px;margin-bottom:8px}.message-poll-edit-option input{min-width:0;flex:1}.message-poll-edit-option button{width:44px;flex-shrink:0;font-size:22px}.message-poll-edit-option button:disabled{visibility:hidden}#message-poll-form button{min-height:44px}#message-poll-form .message-poll-multiple{display:flex;align-items:center;gap:10px}#message-poll-form [name=multiple]{width:20px;height:20px}#message-poll-form small{line-height:1.5;color:#65798e}#message-poll-form .messages-send-button{width:100%;border-radius:14px;margin-top:10px}#poll-yes-no,#poll-add-option{color:#2867a4;background:#eef5ff;border:0;border-radius:12px}#message-poll-form{gap:12px}
#message-poll-form .message-poll-multiple{flex-direction:row;justify-content:flex-start;margin:0;padding:10px 0;font-size:14px}#message-poll-form .messages-send-button{background:#187bea;color:#fff;border:0;font-weight:650;box-shadow:0 3px 10px #187bea25}#message-poll-form .messages-send-button:disabled{opacity:.55}#message-poll-form{padding-bottom:24px}.message-poll-edit-option:has(button:disabled) input{margin-right:-50px}.message-poll-edit-option:has(button:disabled) button{pointer-events:none}
/* Poll composition stays anchored to the conversation's attachment menu. */
#message-action-sheet.message-poll-popover{height:366px;max-height:calc(100% - 86px);padding:0;background:#f6f7fb;overflow:hidden}
#message-poll-form{padding:0;height:100%;display:flex;flex-direction:column;gap:0;overflow:hidden}
.message-poll-popover-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 10px;border-bottom:1px solid #e4e7ee;background:#ffffffc9;flex-shrink:0}
.message-poll-popover-head h3{margin:0;font-size:16px;font-weight:650}.message-poll-popover-head button{border:0;background:transparent;color:#087ff5;padding:8px;font-size:14px}.message-poll-popover-head .poll-send{font-weight:700}.message-poll-popover-head button:disabled{opacity:.5}
.message-poll-fields{padding:12px 14px;overflow:auto;min-height:0;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
#message-poll-form label{font-size:12px;gap:5px}#message-poll-form input:not([type=checkbox]){min-height:42px;padding:10px 12px;background:#fff;border:1px solid #e2e6ed;border-radius:11px;font-size:16px}
#message-poll-form .message-poll-editor-heading{font-size:12px}#message-poll-form #poll-yes-no{min-height:32px;padding:4px 10px;background:transparent;font-size:13px}#message-poll-form #poll-add-option{min-height:36px;text-align:left;padding:6px 10px;font-size:14px;background:transparent}#message-poll-form .message-poll-edit-option{margin-bottom:6px}#message-poll-form .message-poll-multiple{padding:4px 0;font-size:13px}#message-poll-form small{font-size:11px}#message-poll-form [name=multiple]{accent-color:#087ff5}
#messages-resize{display:none}
@media(min-width:721px){#hub-messages-panel{width:var(--chat-user-width,410px)!important;height:var(--chat-user-height,620px)!important;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px)}#messages-resize{display:grid;place-items:center;position:absolute;top:0;left:0;width:26px;height:26px;cursor:nwse-resize;touch-action:none;color:#8a9bb1;z-index:10;border-radius:20px 0 10px 0;background:#f1f5fa}#messages-resize svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6}#messages-resize:hover,#messages-resize:focus-visible{color:#087ff5;background:#e6f0ff}#hub-messages-panel.is-resizing{user-select:none;transition:none!important}}
.message-poll-fields{gap:6px;padding:10px 14px}.message-poll-fields>*{flex-shrink:0}#message-poll-form .message-poll-multiple input{min-height:20px;margin:0}#message-poll-form .message-poll-multiple{min-height:30px;margin:0}#message-poll-form .message-poll-edit-option button{background:transparent;border:0;color:#8b99a9}#message-poll-form small{margin:0}#message-poll-form .message-poll-editor-heading strong{font-weight:600}
.admin-calling-access{grid-column:1/-1;padding:18px;border:1px solid #d7e5f4;border-radius:18px;background:linear-gradient(140deg,#f1f7ff,#fff)}.admin-calling-access>label{display:grid;gap:7px;font-weight:650}.admin-calling-access select{width:100%;min-height:46px}.admin-calling-actions{display:flex;gap:8px;flex-wrap:wrap}.admin-calling-access [hidden]{display:none!important}#admin-calling-editor{margin-top:14px;padding-top:12px;border-top:1px solid #dce5ef}#admin-calling-editor label{display:grid;gap:6px}#admin-calling-editor button{margin:6px 6px 0 0}#admin-user-form fieldset:disabled{opacity:.78}#admin-calling-message:empty{display:none}
/* Cards fill a resized conversation while remaining readable. */
#hub-messages-panel .messages-detail-person small{display:block;color:#6c7e92;font-size:12px;margin-top:3px}
#hub-messages-panel .hub-message:has(.message-poll){width:88%;max-width:480px}#hub-messages-panel .message-poll{width:100%}
@media(min-width:721px){#message-action-sheet.message-poll-popover{height:clamp(320px,calc(var(--chat-user-height,620px) * .6),510px)}#hub-messages-panel .messages-head{flex-shrink:0}#hub-messages-panel .message-share-menu,#hub-messages-panel .message-poll-popover{max-width:540px}#hub-messages-panel .messages-heading{overflow:hidden}#messages-identity-name{overflow-wrap:anywhere}}
#admin-user-form [hidden]{display:none!important}

/* Keep poll actions inside the available chat area, independent of draft height. */
#message-action-sheet.message-poll-popover{top:8px;bottom:8px;height:auto;max-height:none;max-width:none}
#message-poll-form{min-height:0;box-sizing:border-box}
.message-poll-fields{flex:1;touch-action:pan-y}
.message-poll-popover-head button{min-height:44px}
#hub-messages-panel .message-bubble-tools{display:inline-flex;align-items:center;gap:0;padding:2px;border-radius:12px;background:rgba(120,130,145,.08);width:max-content}
#hub-messages-panel .message-bubble-tools button{display:grid;place-items:center;width:32px;height:30px;min-height:30px;margin:0;padding:6px;border:0;border-radius:9px;background:transparent;color:inherit;opacity:.72}
#hub-messages-panel .message-bubble-tools button:hover{background:rgba(120,130,145,.14);opacity:1}
#hub-messages-panel .message-bubble-tools svg{width:18px;height:18px;display:block}
@media(pointer:coarse){#hub-messages-panel .message-bubble-tools button{width:40px;height:40px}}

.message-delivery{display:block;font-size:11px;line-height:1.5;opacity:.85;margin-top:4px}.message-delivery button{border:0;background:transparent;color:inherit;text-decoration:underline;font:inherit;font-weight:650;padding:8px;min-height:36px}
