/* Big Boy group decisions: compact plan chips and editorial poll cards. */
.plan-attendance{grid-column:1/-1;width:100%;padding:14px 0 0;margin-top:12px;border-top:1px solid rgba(211,184,121,.14)}
.plan-attendance-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px;font-size:12px;font-weight:700;color:#e4e5e8}
.plan-attendance-heading small{font-size:10px;font-weight:500;color:#92969f}
.plan-attendance-options{display:flex;gap:6px;flex-wrap:wrap}
.plan-attendance-options button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px;flex:1;padding:7px 9px;border:1px solid #35383c;border-radius:11px;background:#191d22;color:#aeb2ba;font:inherit;font-size:11px;cursor:pointer;transition:background .18s,border-color .18s,color .18s}
.plan-attendance-symbol{display:inline-grid;place-items:center;width:15px;height:15px;border:1px solid currentColor;border-radius:50%;font-size:10px}
.plan-attendance-options b{font-size:10px;font-weight:600;opacity:.65;margin-left:2px}
.plan-attendance-options button[aria-pressed=true]{color:#dbdbdb;background:rgba(153,153,153,.13);border-color:#8d8d8d}
.plan-attendance-options button:disabled{cursor:default;opacity:.6}.plan-attendance-options button[aria-pressed=true]:disabled{opacity:.9}
.plan-attendance-note{display:block;margin-top:6px;font-size:10px;color:#90949b}
.plan-attendance button:focus-visible{outline:2px solid #c6c6c6;outline-offset:3px}
.group-interaction-status{margin:9px 0 0;color:#e8b898;font-size:12px;line-height:1.4}.group-interaction-status[hidden]{display:none}.group-interaction-status button{border:0;background:none;color:#e4c98d;text-decoration:underline;font:inherit;cursor:pointer}
@media(prefers-reduced-motion:reduce){.plan-attendance-options button{transition:none}}
@media(max-width:360px){.plan-attendance-options button{gap:4px;padding:7px 5px;font-size:10px}}

/* ---- Polls ---------------------------------------------------------------
   Clean, neutral surfaces: a frosted notice pill in the chat, a bottom sheet
   with result bars that glide and numbers that count, and a composer whose
   option rows grow in and collapse out. Choice is shown with a filled check,
   never with a coloured halo. */
.group-poll-notice{display:inline-flex;align-items:center;gap:10px;max-width:min(100%,420px);margin:6px auto 4px;padding:7px 12px 7px 7px;border:.5px solid #ffffff1f;border-radius:999px;background:#1c1e23d9;-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);box-shadow:0 6px 20px #0005;color:#f2f3f5;font:inherit;text-align:left;cursor:pointer;animation:group-poll-pop .45s cubic-bezier(.2,.9,.25,1.2) both;transition:transform .15s ease-out}
.group-poll-notice:active{transform:scale(.97)}
.group-poll-notice-icon{position:relative;flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#ffffff1a}
.group-poll-notice-icon svg,.group-poll-badge svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.group-poll-notice.is-pending .group-poll-notice-icon::after{content:"";position:absolute;top:0;right:0;width:8px;height:8px;border:2px solid #1c1e23;border-radius:50%;background:#ff5a5f;animation:group-poll-ping 2s ease-out infinite}
.group-poll-notice-text{display:grid;min-width:0;gap:1px}
.group-poll-notice-text strong{overflow:hidden;font-size:13px;font-weight:600;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.group-poll-notice-text small{color:#9da1aa;font-size:11px;line-height:1.25}
.group-poll-notice-chevron{flex:none;width:16px;height:16px;fill:none;stroke:#8d919a;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
@keyframes group-poll-pop{from{opacity:0;transform:translateY(-6px) scale(.94)}to{opacity:1;transform:none}}
@keyframes group-poll-ping{0%{box-shadow:0 0 0 0 #ff5a5f80}70%,100%{box-shadow:0 0 0 7px #ff5a5f00}}

/* Viewer: a bottom sheet like the GIF picker. */
.group-poll-viewer{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;border:0;background:transparent;color:#f2f3f5;overflow:hidden}
.group-poll-viewer[open]{display:flex;align-items:flex-end;justify-content:center}
.group-poll-viewer::backdrop{background:#0000008c}
.group-poll-viewer-sheet{display:flex;flex-direction:column;width:min(520px,100%);max-height:min(86dvh,760px);padding:6px 0 0;border:.5px solid #ffffff1c;border-bottom:0;border-radius:26px 26px 0 0;background:linear-gradient(180deg,#24262bf2,#16171bf7 45%);-webkit-backdrop-filter:blur(30px) saturate(1.5);backdrop-filter:blur(30px) saturate(1.5);box-shadow:0 -16px 56px #0009,inset 0 .5px 0 #ffffff26;animation:group-poll-sheet-in .38s cubic-bezier(.2,.9,.25,1) both}
.group-poll-viewer-sheet:focus{outline:none}
@keyframes group-poll-sheet-in{from{transform:translateY(60px);opacity:0}to{transform:none;opacity:1}}
.group-poll-grabber{align-self:center;flex:none;width:36px;height:5px;margin:0 0 4px;border-radius:99px;background:#ffffff38}
.group-poll-viewer-heading{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;padding:6px 16px 6px 20px}
.group-poll-viewer-heading h2{margin:0;font:700 20px/1.2 -apple-system,system-ui,"Segoe UI",Roboto,sans-serif;letter-spacing:-.02em}
.group-poll-viewer-heading button,.group-poll-create-form>header button{flex:none;display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:#ffffff14;color:#d6d8dd;cursor:pointer}
.group-poll-viewer-heading button svg,.group-poll-create-form>header button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.group-poll-viewer-content{min-height:0;padding:4px 14px max(18px,env(safe-area-inset-bottom,0px));overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}

/* Card */
.group-poll-card{position:relative;margin-top:10px;padding:18px 16px 14px;border:.5px solid #ffffff14;border-radius:22px;background:#ffffff0a;text-align:left}
.group-poll-card>header{display:flex;align-items:center;gap:10px}
.group-poll-badge{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:linear-gradient(145deg,#ffffff24,#ffffff0d);color:#f2f3f5}
.group-poll-meta{display:grid;gap:2px;min-width:0}
.group-poll-eyebrow{color:#c9ccd2;font-size:12px;font-weight:600;line-height:1.2}
.group-poll-state{display:inline-flex;align-items:center;gap:5px;color:#8d919a;font-size:11px;line-height:1.2}
.group-poll-state::before{content:"";width:6px;height:6px;border-radius:50%;background:#34c759}
.group-poll-state.is-closed::before{background:#8d919a}
.group-poll-card h3{margin:14px 2px 14px;color:#f5f6f8;font:700 19px/1.3 -apple-system,system-ui,"Segoe UI",Roboto,sans-serif;letter-spacing:-.02em;overflow-wrap:anywhere}
.group-poll-options{display:grid;gap:8px}
.group-poll-option{--poll-ratio:0;position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;gap:11px;width:100%;min-height:52px;padding:10px 14px 10px 12px;border:0;border-radius:15px;background:#ffffff0d;color:#eceef1;font:500 15px/1.3 -apple-system,system-ui,"Segoe UI",Roboto,sans-serif;text-align:left;cursor:pointer;transition:transform .18s cubic-bezier(.2,.8,.2,1),background .2s}
.group-poll-option:active:not(:disabled){transform:scale(.98)}
.group-poll-option:disabled{cursor:default}
.group-poll-fill{position:absolute;z-index:-1;inset:0;transform:scaleX(var(--poll-ratio));transform-origin:left center;border-radius:inherit;background:#ffffff14;transition:transform .7s cubic-bezier(.22,1,.36,1)}
.group-poll-option.is-leading .group-poll-fill{background:#ffffff1f}
.group-poll-option.is-chosen .group-poll-fill{background:#ffffff2e}
.group-poll-radio{flex:none;display:grid;place-items:center;width:22px;height:22px;border:2px solid #ffffff59;border-radius:50%;transition:border-color .2s,background .2s}
.group-poll-radio svg{width:14px;height:14px;fill:none;stroke:#141519;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:20;stroke-dashoffset:20;transition:stroke-dashoffset .35s .08s cubic-bezier(.65,0,.35,1)}
.group-poll-option.is-chosen .group-poll-radio{border-color:#f2f3f5;background:#f2f3f5}
.group-poll-option.is-chosen .group-poll-radio svg{stroke-dashoffset:0}
.group-poll-option.just-chosen .group-poll-radio{animation:group-poll-check .45s cubic-bezier(.2,.9,.25,1.4)}
.group-poll-option.just-chosen .group-poll-radio svg{animation:group-poll-draw .38s .1s cubic-bezier(.65,0,.35,1) both}
@keyframes group-poll-draw{from{stroke-dashoffset:20}to{stroke-dashoffset:0}}
@keyframes group-poll-check{0%{transform:scale(.6)}60%{transform:scale(1.18)}100%{transform:scale(1)}}
.group-poll-option-label{flex:1;min-width:0;overflow-wrap:anywhere}
.group-poll-option.is-chosen .group-poll-option-label{font-weight:650}
.group-poll-voters{flex:none;display:flex;padding-left:6px}
.group-poll-voter{width:22px;height:22px;margin-left:-7px;border:2px solid #23252a;border-radius:50%;overflow:hidden;background:#3a3d44}
.group-poll-card.is-entering .group-poll-voter,.group-poll-option.just-chosen .group-poll-voter{animation:group-poll-pop .35s calc(var(--i,0)*60ms + 200ms) cubic-bezier(.2,.9,.25,1.2) both}
.group-poll-voter .avatar{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;border:0!important;box-shadow:none!important;font-size:9px!important}
.group-poll-voter img{width:100%;height:100%;object-fit:cover}
.group-poll-voter-initial{display:grid;place-items:center;width:100%;height:100%;color:#e6e7ea;font-size:9px;font-weight:700}
.group-poll-percent{flex:none;min-width:40px;color:#f2f3f5;font-size:15px;font-weight:650;font-variant-numeric:tabular-nums;text-align:right}
.group-poll-percent small{margin-left:1px;color:#9da1aa;font-size:11px;font-weight:600}
.group-poll-card:not(.has-voted) .group-poll-percent,.group-poll-card:not(.has-voted) .group-poll-voters{opacity:.55}
.group-poll-card footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:14px;padding:0 2px}
.group-poll-total{color:#9da1aa;font-size:12px}
.group-poll-actions{display:flex;gap:6px}
.group-poll-card footer button{height:30px;padding:0 13px;border:0;border-radius:999px;background:#ffffff14;color:#e4e6ea;font:600 12px/1 -apple-system,system-ui,sans-serif;cursor:pointer}
.group-poll-card footer button[data-poll-close]{color:#ff8a85}
.group-poll-empty{padding:28px 8px;text-align:center;color:#9da1aa;font-size:14px}
/* Entrance: the card rises, options follow one by one, then the bars grow. */
.group-poll-card.is-entering{animation:group-poll-rise .45s cubic-bezier(.2,.9,.25,1) both}
.group-poll-card.is-entering .group-poll-option{animation:group-poll-rise .45s calc(var(--i,0)*55ms + 90ms) cubic-bezier(.2,.9,.25,1) both}
.group-poll-card.is-entering .group-poll-fill{transition-delay:calc(var(--i,0)*55ms + 260ms)}
@keyframes group-poll-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

/* Composer: same frosted card; anchored at the top so the iOS keyboard never
   resizes it under the user (see the editor note below). */
.group-poll-composer{box-sizing:border-box;position:fixed;inset:max(16px,env(safe-area-inset-top,0px)) 0 auto;margin:0 auto;width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - max(16px,env(safe-area-inset-top,0px)) - max(16px,env(safe-area-inset-bottom,0px)));padding:0;border:.5px solid #ffffff1f;border-radius:26px;background:linear-gradient(180deg,#25272c,#18191d 55%);color:#f2f3f5;box-shadow:0 30px 90px #000a,inset 0 .5px 0 #ffffff26;overflow:auto;overscroll-behavior:contain;animation:group-poll-composer-in .32s cubic-bezier(.2,.9,.25,1) both}
.group-poll-composer::backdrop{background:#0000008c}
@keyframes group-poll-composer-in{from{opacity:0;transform:translateY(-10px) scale(.97)}to{opacity:1;transform:none}}
.group-poll-composer input,.group-poll-composer textarea{touch-action:manipulation;scroll-margin-block:16px}
.group-poll-create-form{padding:18px 18px 16px}
.group-poll-create-form>header{display:flex;align-items:center;gap:10px}
.group-poll-create-form h2{flex:1;margin:0;font:700 19px/1.2 -apple-system,system-ui,"Segoe UI",Roboto,sans-serif;letter-spacing:-.02em}
.group-poll-question-label{display:block;margin-top:16px}
.group-poll-question-label textarea{display:block;width:100%;box-sizing:border-box;min-height:64px;resize:none;padding:14px 16px;border:0;border-radius:16px;background:#ffffff0f;color:#f5f6f8;font:600 18px/1.35 -apple-system,system-ui,"Segoe UI",Roboto,sans-serif;letter-spacing:-.01em;outline:none;transition:background .2s,box-shadow .2s}
.group-poll-question-label textarea::placeholder{color:#7f838c}
.group-poll-question-label textarea:focus,.group-poll-edit-option:focus-within{background:#ffffff17;box-shadow:inset 0 0 0 1px #ffffff2e}
.group-poll-section{margin:18px 4px 8px;color:#8d919a;font-size:12px;font-weight:600;letter-spacing:.02em}
.group-poll-edit-options{display:grid;gap:8px}
.group-poll-edit-option{display:flex;align-items:center;gap:11px;height:50px;padding:0 6px 0 14px;border-radius:15px;background:#ffffff0d;overflow:hidden;transition:background .2s,box-shadow .2s}
.group-poll-edit-dot{flex:none;width:18px;height:18px;border:2px solid #ffffff40;border-radius:50%}
.group-poll-edit-option input{flex:1;min-width:0;height:100%;padding:0;border:0;outline:0;background:transparent;color:#f2f3f5;font:500 16px/1 -apple-system,system-ui,"Segoe UI",Roboto,sans-serif}
.group-poll-edit-option input::placeholder{color:#7f838c}
.group-poll-edit-option button{flex:none;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:#8d919a;cursor:pointer}
.group-poll-edit-option button[hidden]{display:none}
.group-poll-edit-option button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.group-poll-edit-option.is-adding{animation:group-poll-row-in .32s cubic-bezier(.2,.9,.25,1) both}
.group-poll-edit-option.is-removing{pointer-events:none;animation:group-poll-row-out .26s cubic-bezier(.4,0,.2,1) both}
@keyframes group-poll-row-in{from{height:0;opacity:0;transform:scale(.96)}to{height:50px;opacity:1;transform:none}}
@keyframes group-poll-row-out{from{height:50px;opacity:1}to{height:0;margin-top:-8px;opacity:0;transform:scale(.96)}}
.group-poll-add-option{display:flex;align-items:center;gap:11px;width:100%;height:46px;margin-top:8px;padding:0 14px;border:1.5px dashed #ffffff26;border-radius:15px;background:transparent;color:#c9ccd2;font:500 15px/1 -apple-system,system-ui,sans-serif;cursor:pointer}
.group-poll-add-option[hidden]{display:none}
.group-poll-add-option span{display:grid;place-items:center;width:18px;height:18px}
.group-poll-add-option svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.group-poll-add-option:active{background:#ffffff0a}
.group-poll-publish{display:flex;justify-content:center;align-items:center;width:100%;height:50px;margin-top:18px;padding:0 17px;border:0;border-radius:999px;background:#f2f3f5;color:#141519;font:650 16px/1 -apple-system,system-ui,"Segoe UI",Roboto,sans-serif;cursor:pointer;transition:transform .15s,opacity .2s}
.group-poll-publish:active:not(:disabled){transform:scale(.98)}
.group-poll-publish:disabled{opacity:.55;cursor:wait}
.group-poll-create-note{display:block;margin-top:10px;text-align:center;color:#7f838c;font-size:11px}
.group-poll-composer .sr-only,.group-poll-option .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.group-poll-notice:focus,.group-poll-viewer button:focus,.group-poll-composer button:focus{outline:none}
.group-poll-notice:focus-visible,.group-poll-viewer button:focus-visible,.group-poll-composer button:focus-visible{outline:2px solid #ffffff8c;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.group-poll-notice,.group-poll-viewer-sheet,.group-poll-composer,.group-poll-card.is-entering,.group-poll-card.is-entering .group-poll-option,.group-poll-voter,.group-poll-option.just-chosen .group-poll-radio,.group-poll-option.just-chosen .group-poll-radio svg,.group-poll-notice.is-pending .group-poll-notice-icon::after{animation:none}.group-poll-fill,.group-poll-option,.group-poll-radio svg{transition:none}}
@media(prefers-reduced-transparency:reduce){.group-poll-notice,.group-poll-viewer-sheet{background:#1c1e23;-webkit-backdrop-filter:none;backdrop-filter:none}}
@media(max-width:360px){.group-poll-create-form{padding:16px 14px}.group-poll-card{padding:16px 12px 12px}.group-poll-voters{display:none}}

/* Calendar comes first when a plan and a poll are active together. */
.group-event-notice{order:2;flex:0 0 auto;display:flex;justify-content:center;align-items:baseline;flex-wrap:wrap;gap:2px 7px;min-width:0;padding:8px 20px 4px;background:transparent;color:#d5c49e;font:inherit;font-size:11px;line-height:1.45;text-align:center}
.group-event-notice[hidden]{display:none}
.group-event-notice-title{font-weight:650;overflow-wrap:anywhere}
.group-event-notice-date{color:#a7a9ac;font-size:10px;font-variant-numeric:tabular-nums}
.calendar-chat-announcement{align-self:center;max-width:min(90%,420px);margin:8px auto 14px;padding:12px 17px;border:1px solid #ffffff0b;border-radius:14px;background:var(--chat-incoming,#171c22);color:var(--chat-text,#ede3cc);text-align:center}
.calendar-chat-announcement-label{display:block;margin-bottom:5px;color:var(--chat-muted,#b8a783);font-size:9px;letter-spacing:.7px;font-weight:600}
.calendar-chat-announcement p{margin:0;font-size:12px;line-height:1.5;overflow-wrap:anywhere}

/* Focused RSVP detail opened from the transparent chat notice. */
.group-event-notice{width:100%;border:0;border-radius:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.group-event-notice:focus-visible{outline:2px solid #c6c6c6;outline-offset:-3px}
.plan-detail-viewer{box-sizing:border-box;width:min(460px,calc(100vw - 28px));max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 40px);padding:24px;border:1px solid #464332;border-radius:24px;background:#14191e;color:#eee9dd;overflow:auto;overscroll-behavior:contain;box-shadow:0 25px 100px #0009}
.plan-detail-viewer::backdrop{background:#05080bc9;backdrop-filter:blur(8px)}
.plan-detail-close{display:grid;place-items:center;width:34px;height:34px;margin-left:auto;border:1px solid #373c40;border-radius:50%;background:#22282e;color:#ddd;font:inherit;font-size:22px;cursor:pointer}
.plan-detail-date{margin:9px 0 8px;color:#c6af7c;font-size:11px;line-height:1.6;text-transform:capitalize}
.plan-detail-content h2{margin:0 0 15px;font-size:25px;line-height:1.15;letter-spacing:-.6px;overflow-wrap:anywhere}
.plan-detail-location,.plan-detail-description{color:#b8bdc4;font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.plan-detail-description{color:#9ea5ae}
.plan-attendance-people{display:grid;gap:17px;margin-top:24px}
.plan-attendance-people section h3{display:flex;align-items:center;gap:8px;margin:0 0 9px;color:#d6d8db;font-size:12px;font-weight:650}
.plan-attendance-people h3>span{color:#9d9e9e;font-size:10px;font-weight:500}
.plan-attendance-people section>p{margin:0;color:#7f8792;font-size:11px}
.plan-attendance-people ul{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.plan-attendance-people li{display:flex;align-items:center;gap:10px;min-width:0;color:#d4d7dc;font-size:12px;overflow-wrap:anywhere}
.plan-attendance-people li>small{margin-left:auto;color:#a69c81;font-size:10px}
.plan-person-initial{display:grid;place-items:center;flex:0 0 27px;height:27px;border-radius:50%;background:#282d30;color:#d1bd8c;font-size:11px;font-weight:700}
.plan-detail-viewer button:focus-visible{outline:2px solid #c6c6c6;outline-offset:3px}
