/* Native LPM conversation polls. */
.poll-thread.community-comment{padding:20px 0;border-bottom:1px solid #263b50}
.poll-card{position:relative;border:1px solid #365268;border-radius:18px;padding:24px;background:linear-gradient(135deg,#122b42,#0b1a2c);color:#f2f7fd;box-shadow:0 8px 28px #0002}
.poll-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:28px;margin-bottom:18px}
.poll-badges{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding-right:26px}
.poll-eyebrow{color:#82d9e9;font:800 10px/1.4 system-ui;letter-spacing:.14em;margin:0}
.poll-status,.poll-pinned{font:600 11px/1.4 system-ui;padding:4px 8px;border-radius:20px;background:#20394c;color:#c1d6e6}
.poll-status.open{background:#123e43;color:#a3efe0}.poll-status.scheduled{background:#39332a;color:#f5d781}.poll-pinned{background:transparent;color:#83dce9;padding-left:0}
.poll-card .poll-question{margin:0 0 8px;color:#fff;font:750 clamp(20px,2vw,25px)/1.3 system-ui;letter-spacing:-.025em;overflow-wrap:anywhere}
.poll-author{font:400 12px/1.5 system-ui;color:#a9bbce;margin:0 0 22px}
.poll-choices{display:grid;gap:10px;min-width:0;border:0;padding:0;margin:0}
.poll-option{position:relative;isolation:isolate;display:flex;align-items:center;gap:12px;overflow:hidden;min-height:54px;margin:0!important;padding:14px 16px;border:1px solid #456075;border-radius:11px;background:#0b1c2b;color:#eff7ff;font:500 15px/1.45 system-ui;cursor:pointer;box-sizing:border-box}
.poll-option:has(input):hover{border-color:#87dceb}.poll-option.is-selected,.poll-option.is-voted,.poll-option:has(input:checked){border-color:#85e0ed;background:#123846}
.poll-option input[type=radio]{appearance:auto!important;accent-color:#83dce9;flex:0 0 18px;width:18px;height:18px;min-height:0;margin:0;padding:0;position:relative;z-index:1}
.poll-option-label{flex:1;min-width:0;overflow-wrap:anywhere}.poll-percentage{flex:none;font-size:14px;font-variant-numeric:tabular-nums;color:#e7f8ff}
.poll-result-fill{position:absolute;z-index:-1;inset:0 auto 0 0;background:#285569;opacity:.6;pointer-events:none}
.poll-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:20px}.poll-info{display:grid;gap:4px;font:500 12px/1.5 system-ui;color:#b2c4d5}
.poll-primary{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 22px;border:1px solid #ffdf74!important;border-radius:10px;background:#f6ca39!important;color:#17212d!important;font:750 14px/1.4 system-ui;box-shadow:none;cursor:pointer;text-decoration:none;white-space:normal}
.poll-primary:hover{background:#ffdb60!important}.poll-primary:disabled{opacity:.5;cursor:default}
.poll-editor-note,.poll-timezone{font:400 12px/1.5 system-ui;color:#b4c7d8;margin:12px 0 0}.poll-error{font:500 13px/1.5 system-ui;color:#ffb9aa;margin:10px 0 0}.poll-error:empty{display:none}
.poll-menu.community-menu{top:16px;right:16px;z-index:5}.poll-menu .community-menu-options{min-width:170px}.poll-menu .community-menu-options button{background:transparent;border:0;color:#d8effa;font:600 13px/1.5 system-ui;cursor:pointer}
.poll-card :focus-visible,.poll-editor :focus-visible{outline:2px solid #b4f4ff;outline-offset:3px}
.poll-editor{box-sizing:border-box;width:min(560px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:1px solid #43617a;border-radius:22px;background:#0e2033;color:#f1f7ff;box-shadow:0 24px 90px #0008;overflow:auto;font:14px/1.5 system-ui}
.poll-editor::backdrop{background:#020914bc;backdrop-filter:blur(5px)}
.poll-editor-form{margin:0}.poll-editor-header{position:relative;padding:26px 58px 20px 26px;border-bottom:1px solid #2a4054}
.poll-editor-header h2{margin:5px 0 0;color:#fff;font:750 27px/1.2 system-ui;letter-spacing:-.03em}
.poll-editor .poll-close{position:absolute;top:16px;right:12px;display:grid;place-items:center;width:44px;height:44px;padding:10px;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer;box-shadow:none}
.poll-close svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.poll-editor-content{padding:22px 26px}.poll-field{display:grid;gap:8px;margin:0 0 20px!important}.poll-field>span,.poll-field-title,.poll-schedule-field legend{color:#eff6ff;font:650 13px/1.5 system-ui;margin:0 0 8px}
.poll-editor input[type=text],.poll-editor textarea,.poll-editor input[type=datetime-local]{box-sizing:border-box;display:block;width:100%;min-width:0;border:1px solid #49647b;border-radius:10px;background:#081827;color:#f4f8ff;padding:12px 14px;font:400 16px/1.45 system-ui;box-shadow:none;color-scheme:dark}
.poll-editor textarea{resize:vertical;min-height:88px}.poll-editor input:disabled,.poll-editor textarea:disabled{opacity:.7}
.poll-editor-choices{display:grid;gap:10px}.poll-editor-option{display:flex;align-items:center;gap:8px}.poll-editor .poll-remove-option{flex:0 0 36px;width:36px;height:44px;min-height:44px;border:0;background:transparent;color:#c0d7e9;font:400 24px/1 system-ui;padding:0;box-shadow:none;cursor:pointer}.poll-remove-option:disabled{opacity:.25}
.poll-editor .poll-add-option{border:0;background:transparent;color:#8be1ee;font:650 13px/1.5 system-ui;padding:12px 0;min-height:44px;box-shadow:none;cursor:pointer}.poll-add-option[hidden]{display:none}
.poll-schedule{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:12px}.poll-schedule-field{border:0;margin:0;padding:0;min-width:0}
.poll-segments{display:flex;gap:4px;padding:4px;background:#071625;border:1px solid #334e64;border-radius:10px;margin-bottom:10px}
.poll-editor .poll-segment{flex:1;min-height:36px;border:0;border-radius:7px;background:transparent;color:#c0d3e4;font:650 12px/1.4 system-ui;padding:6px 8px;box-shadow:none;cursor:pointer}.poll-editor .poll-segment[aria-pressed=true]{background:#245069;color:#fff}.poll-segment:disabled{opacity:.65;cursor:default}.poll-date[hidden]{display:none!important}
.poll-toggle{position:relative;display:flex;align-items:center;gap:12px;margin:22px 0 0!important;cursor:pointer;color:#eef5ff;font:500 13px/1.4 system-ui}
.poll-toggle input{position:absolute;opacity:0;width:40px;height:24px;margin:0}.poll-toggle-track{flex:0 0 40px;height:24px;background:#415569;border:1px solid #627a90;border-radius:20px;box-sizing:border-box}.poll-toggle-track:after{content:'';display:block;width:16px;height:16px;background:#fff;border-radius:50%;margin:3px;transition:transform .15s}.poll-toggle input:checked+.poll-toggle-track{background:#1e8395;border-color:#91e1eb}.poll-toggle input:checked+.poll-toggle-track:after{transform:translateX(16px)}.poll-toggle input:focus-visible+.poll-toggle-track{outline:2px solid #b4f4ff;outline-offset:3px}.poll-toggle input:disabled~span{opacity:.6}
.poll-editor-footer{position:sticky;bottom:0;padding:16px 26px calc(18px + env(safe-area-inset-bottom));border-top:1px solid #2a4054;background:#0e2033}.poll-editor-footer .poll-primary{width:100%}.poll-editor-footer .poll-error{margin:0 0 10px}
@media(max-width:767px){.poll-card{padding:18px;border-radius:15px}.poll-option{padding:12px;font-size:14px}.poll-footer{align-items:stretch;flex-direction:column;gap:12px}.poll-footer .poll-primary{width:100%}.poll-menu.community-menu{top:12px;right:10px}.poll-editor{width:100%;max-height:92dvh;max-width:100%;margin:auto 0 0;border-radius:22px 22px 0 0;border-bottom:0}.poll-editor-header{padding:22px 56px 18px 20px}.poll-editor-content{padding:20px}.poll-editor-footer{padding-left:20px;padding-right:20px}.poll-schedule{grid-template-columns:1fr;gap:16px}.poll-card .poll-question{font-size:21px}}
@media(prefers-reduced-motion:reduce){.poll-toggle-track:after{transition:none}}

/* Polls and the conversation are separate full-width sibling cards. */
.mobile-episode-detail .episode-community-inline{padding:0;border:0;background:none;box-shadow:none;overflow:visible}
.episode-community-inline .community-panel{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;width:100%}
.community-polls{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;min-width:0;width:100%}
.community-polls[hidden]{display:none}
.community-conversation-card{box-sizing:border-box;min-width:0;width:100%;padding:32px 30px;border:1px solid #8bcaf11f;border-radius:18px;background:linear-gradient(145deg,#122944c2,#071528d6);box-shadow:inset 0 1px 0 #ffffff09}
.community-poll-list>.poll-thread.community-comment{box-sizing:border-box;width:100%;max-width:none;margin:0;padding:0;border:0}
.community-poll-list>.poll-thread>.poll-card{box-sizing:border-box;width:100%;max-width:none;padding:32px 30px}
.poll-card>.community-comment-actions{margin-top:18px;padding-top:14px;border-top:1px solid #8bcaf126}
.poll-replies:empty,.poll-composer-slot:empty{display:none}
.poll-replies>.community-comment{box-sizing:border-box;max-width:none;width:100%}
.poll-replies>.community-comment.is-reply{margin-left:0;margin-top:18px}
.poll-card .community-compose{max-width:none;width:100%;box-sizing:border-box}
.poll-card .poll-choices,.poll-card .poll-option{width:100%;max-width:none;box-sizing:border-box}
@media(max-width:767px){
 .episode-community-inline .community-panel,.community-polls{gap:20px}
 .community-conversation-card,.community-poll-list>.poll-thread>.poll-card{padding:22px 16px;border-radius:16px}
}

.community-polls-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.community-polls-heading h2{margin:0;color:#eaf4ff;font-size:26px}
.community-polls-heading [data-create-poll]{border:0;border-radius:999px;padding:11px 20px;background:#f9ce35;color:#081627;font-weight:700;cursor:pointer}
.community-polls-heading [hidden]{display:none}
.community-poll-list{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;min-width:0}

/* The shared mount is layout only; each feature owns its card. */
body .mobile-episode-detail .desktop-episode-content > .episode-community-inline,
body .episode-community-inline {
 border:0;background:transparent;box-shadow:none;padding:0;border-radius:0;overflow:visible;
}
.episode-community-inline .community-polls {
 box-sizing:border-box;padding:32px 30px;border:1px solid #8bcaf11f;
 border-radius:18px;background:linear-gradient(145deg,#122944c2,#071528d6);
 box-shadow:inset 0 1px 0 #ffffff09;
}
.episode-community-inline .community-polls[hidden]{display:none}
.community-polls .community-poll-list>.poll-thread>.poll-card {
 padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;
}
.community-polls .community-poll-list>.poll-thread + .poll-thread {
 padding-top:24px;border-top:1px solid #8bcaf126;
}
@media(max-width:767px){
 .episode-community-inline .community-polls{padding:22px 16px;border-radius:16px}
}
