/* V61.10.534 Shared dynamic poll card & composer: dashed poll frame */
.pb-poll-insert{display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:36px;padding:7px 11px;border:1px solid #d7e4f4;border-radius:8px;background:#f7faff;color:#176bd7;font-size:12px;font-weight:500;cursor:pointer;font-family:inherit}
.pb-poll-insert:hover{border-color:#88b4ff;background:#edf5ff}
.pb-poll-draft[hidden]{display:none!important}.pb-poll-draft{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0;padding:12px 14px;border:1px dashed #a5c7ff;border-radius:10px;background:#f6faff;color:#22405d;flex-wrap:wrap}.pb-poll-draft>div:first-child{min-width:0;display:grid;gap:4px}.pb-poll-draft-label,.pb-poll-draft small{font-size:12px;color:#607b9a}.pb-poll-draft strong{font-size:14px}.pb-poll-draft>div:last-child{display:flex;gap:8px}.pb-poll-draft button{background:#fff;color:#1673db;border:1px solid #d5e4f5;border-radius:7px;padding:7px 12px;cursor:pointer;font:inherit;font-size:12px}
.pb-poll-card{margin:14px 0;padding:16px;border:1px dashed #dce7f5;border-radius:12px;background:#f8fbff;max-width:100%;box-sizing:border-box;color:#24415c;line-height:1.5}.pb-poll-kicker,.pb-poll-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px;color:#72869d}.pb-poll-kicker>span:first-child{color:#1a77dc;font-weight:600}.pb-poll-kicker .is-ended{color:#8a97a6}.pb-poll-card h4{margin:12px 0 14px;color:#193c60;font-size:16px;line-height:1.6;font-weight:650;overflow-wrap:anywhere}.pb-poll-options{display:grid;gap:9px}.pb-poll-option{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid #dae5f3;border-radius:9px;background:#fff;font-size:13px;cursor:pointer;overflow-wrap:anywhere}.pb-poll-option:has(input:checked){border-color:#3987ff;background:#eef5ff}.pb-poll-option input{accent-color:#1677ff;width:16px;height:16px;flex:none}.pb-poll-submit{margin-top:12px;width:100%;min-height:38px;border:0;border-radius:8px;background:#1977ff;color:#fff;font-size:13px;font-weight:600;cursor:pointer}.pb-poll-submit:disabled{opacity:.5;cursor:not-allowed}.pb-poll-hint{margin:10px 0 0;font-size:11px!important;color:#8192a9!important;line-height:1.6!important}.pb-poll-footer{border-top:1px solid #e1e9f3;padding-top:11px;margin-top:15px}.pb-poll-owner{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.pb-poll-owner button{border:0;background:none;padding:4px;color:#1977d2;font-size:12px;cursor:pointer}.pb-poll-owner button:last-child{color:#c75252}.pb-poll-owner button:disabled{color:#aab3c0;cursor:not-allowed}.pb-poll-result{display:grid;gap:7px}.pb-poll-result-head{display:flex;justify-content:space-between;gap:10px;font-size:13px}.pb-poll-result-head>span{min-width:0;overflow-wrap:anywhere}.pb-poll-result-head strong{flex:none;font-weight:650}.pb-poll-mine{color:#1977ff;font-size:11px}.pb-poll-track{height:9px;overflow:hidden;border-radius:99px;background:#e5edf7}.pb-poll-track>span{display:block;height:100%;background:#a7c8f5;border-radius:99px}.pb-poll-result.is-mine .pb-poll-track>span{background:#1977ff}
/* V61.11.024: same three-part scrolling behavior as the resume submission modal. */
.pb-poll-modal-overlay{position:fixed;inset:0;z-index:100000;background:rgba(23,38,56,.55);display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}
.pb-poll-modal{display:flex;flex-direction:column;box-sizing:border-box;position:relative;width:min(520px,100%);max-height:min(85vh,740px);max-height:min(85dvh,740px);min-height:0;overflow:hidden;background:#fff;border:1px solid #e2e8f2;border-radius:15px;box-shadow:0 18px 54px rgba(18,39,65,.24);padding:0;color:#213d5b}
.pb-poll-modal-head{display:flex;flex:none;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px 16px;border-bottom:1px solid #e8edf4}
.pb-poll-modal h3{font-size:20px;line-height:1.4;margin:0;text-align:left;color:#172a45}
.pb-poll-close{position:static;flex:none;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border:0;border-radius:7px;background:none;font-size:25px;line-height:1;color:#8293a8;cursor:pointer}
.pb-poll-close:hover{background:#f1f5fa}
.pb-poll-modal-body{flex:1;min-height:0;min-width:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 24px 22px;scrollbar-width:thin;scrollbar-color:#a9b0b8 #f6f8fb}
.pb-poll-modal-body::-webkit-scrollbar{width:7px}
.pb-poll-modal-body::-webkit-scrollbar-track{background:#f6f8fb;border-radius:10px}
.pb-poll-modal-body::-webkit-scrollbar-thumb{background:#a9b0b8;border-radius:10px}
.pb-poll-modal-footer{flex:none;padding:12px 24px 15px;border-top:1px solid #e8edf4;background:#fff}
.pb-poll-modal-footer .pb-poll-error{margin:0;min-height:0}
.pb-poll-modal-footer .pb-poll-error:empty{display:none}
.pb-poll-modal-footer .pb-poll-error:not(:empty){margin:0 0 8px}
.pb-poll-field{display:grid;gap:8px;margin:0 0 16px;font-size:13px;font-weight:600;color:#344f6b}.pb-poll-field span,.pb-poll-label span{font-size:11px;color:#8797ab;font-weight:400}.pb-poll-field>input,.pb-poll-field select,.pb-poll-edit-row input{width:100%;min-width:0;box-sizing:border-box;background:#fff!important;border:1px solid #d6e3f2!important;border-radius:9px;padding:11px 12px;color:#284665!important;font:inherit;font-size:13px;outline:0}.pb-poll-field>input:focus,.pb-poll-edit-row input:focus{border-color:#287cf5!important}.pb-poll-label{display:flex;justify-content:space-between;gap:8px}.pb-poll-edit-options{display:grid;gap:9px}.pb-poll-edit-row{display:flex;gap:8px;align-items:center}.pb-poll-edit-row button{border:0;background:none;color:#c85b63;font-size:21px;cursor:pointer}.pb-poll-edit-row button:disabled{opacity:.25}.pb-poll-add{border:1px dashed #bacfe8;border-radius:8px;padding:10px;background:#f7faff;color:#166ccc;cursor:pointer}.pb-poll-add:disabled{opacity:.45;cursor:not-allowed}.pb-poll-field-tip{font-size:12px;line-height:1.6;color:#8092a7;margin:0 0 14px}.pb-poll-error{min-height:18px;color:#bc3446;font-size:12px;margin:0 0 10px}.pb-poll-modal-actions{display:flex;justify-content:flex-end;gap:10px}.pb-poll-modal-actions button{border:0;border-radius:8px;padding:11px 22px;font-size:13px;font-weight:600;cursor:pointer}.pb-poll-cancel{background:#eef4fe;color:#1767d3}.pb-poll-save{background:#1977ff;color:#fff}.pb-poll-toast{position:fixed;z-index:110000;left:50%;bottom:36px;transform:translateX(-50%);padding:11px 20px;border-radius:8px;background:#23486d;color:white;box-shadow:0 4px 15px #0002;font-size:13px}
@media(max-width:700px){.pb-poll-modal-head{padding:15px 18px 13px}.pb-poll-modal-body{padding:18px 18px 20px}.pb-poll-modal-footer{padding:12px 18px 14px}.pb-poll-card{padding:12px;margin:12px 0}.pb-poll-card h4{font-size:14px}.pb-poll-insert{flex:0 0 auto}.pb-poll-draft{padding:10px}.pb-poll-footer{align-items:flex-start}}

/* V61.10.965: dynamic single/multiple voting, shared with all dynamic surfaces. */
.pb-poll-type-choices{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin-top:8px}.pb-poll-type-choices label{display:inline-flex;align-items:center;gap:7px;font-weight:500;cursor:pointer}.pb-poll-type-choices input{accent-color:#1977ff}.pb-poll-max-wrap[hidden]{display:none!important}.pb-poll-result-count{color:#8494a8;font-size:11px;margin-top:-3px}

/* Small screens follow the resume dialog: fixed title/actions, inner form is the only scrollbar. */
@media(max-width:600px){
 .pb-poll-modal-overlay{padding:0;align-items:stretch;justify-content:stretch}
 .pb-poll-modal{width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}
 .pb-poll-modal-footer{padding-bottom:max(14px,env(safe-area-inset-bottom))}
 .pb-poll-modal-actions button{flex:1;min-width:0}
}
