#modal_vote { padding: 0 12px; }
#modal_vote .c-modal__dialog { max-width: 690px; margin: 20px auto; }
#modal_vote .vote-roster-panel {
    width: 100%; height: 920px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
    display: flex; flex-direction: column; border-radius: 12px; background: #fff;
    box-shadow: 0 20px 70px rgba(18, 35, 55, .25); overflow: hidden;
}
.vote-roster { color: #263449; font-size: 13px; line-height: 1.5; }
.vote-roster [hidden] { display: none !important; }
.vote-roster .vote-roster-header {
    display: flex; align-items: center; gap: 10px; flex-shrink: 0;
    padding: 14px 18px; background: #fff; border-bottom: 1px solid #e5eaf0;
}
.vote-roster .vote-roster-title { margin: 0; font-size: 18px; font-weight: 700; color: #263449; }
.vote-roster-brand { display: flex; align-items: center; gap: 5px; margin-left: auto; font-size: 12px; color: #657387; }
.vote-roster-brand img { width: 24px; height: 24px; }
.vote-roster button { font: inherit; cursor: pointer; }
.vote-roster .vote-roster-close { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: #f1f4f8; color: #657387; font-size: 22px; }
.vote-roster-top { flex-shrink: 0; padding: 14px 18px 10px; border-bottom: 1px solid #e5eaf0; }
.vote-roster-bill { margin: 0 0 9px; font-size: 15px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.vote-roster-meta { margin-bottom: 10px; color: #657387; font-size: 12px; }
.vote-roster-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 190px; align-items: center; gap: 12px; }
.vote-roster-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0; }
.vote-roster-summary span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; background: #f1f4f8; font-size: 12px; white-space: nowrap; }
.vote-roster-summary strong { color: #263449; font-size: 14px; }
.vote-roster-summary .vote-roster-yes { background: #eaf3ff; color: #286bad; }
.vote-roster-summary .vote-roster-no { background: #fff0f0; color: #b84448; }
.vote-roster-search { display: flex; align-items: center; gap: 10px; }
.vote-roster-search label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.vote-roster-search input { width: 100%; min-width: 0; height: 34px; padding: 6px 10px; border: 1px solid #d5deea; border-radius: 7px; background: #fff; color: #263449; font: inherit; }
.vote-roster-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 9px; font-size: 11px; color: #657387; }
.vote-roster-legend span { display: inline-flex; align-items: center; gap: 4px; }
.vote-roster-dot { width: 8px; height: 8px; border-radius: 50%; background: #8b95a3; }
.vote-roster .vote-roster-body { flex: 1; min-height: 0; padding: 0 18px 14px; overflow: auto; overscroll-behavior: contain; background: #fff; }
.vote-roster-group { margin: 0 0 12px; }
.vote-roster-group h4 { position: sticky; top: 0; z-index: 1; margin: 0 0 6px; padding: 10px 0 5px; background: #fff; color: #263449; font-size: 13px; font-weight: 600; }
.vote-roster-group h4 span { margin-left: 6px; color: #657387; font-size: 12px; font-weight: 400; }
.vote-roster-names { display: flex; flex-wrap: wrap; gap: 4px; }
.vote-roster .vote-roster-name {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    box-sizing: border-box; width: auto; min-width: 52px; height: 24px; padding: 0 4px;
    border-radius: 4px; background: #8b95a3; color: #fff; font-size: 12px; font-weight: 600;
    line-height: 24px; white-space: nowrap; text-decoration: none;
}
.vote-roster-name:hover { filter: brightness(.92); }
.vote-roster button:focus-visible, .vote-roster input:focus-visible, .vote-roster a:focus-visible { outline: 2px solid #268bdc; outline-offset: 2px; }
.vote-roster-empty { margin: 22px 0; text-align: center; color: #657387; }
.vote-roster-notice { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed #e0e6ee; font-size: 11px; color: #657387; }
.vote-roster-footer { flex-shrink: 0; padding: 10px 18px 12px; border-top: 1px solid #e5eaf0; background: #f8fafc; }
.vote-roster-footer p { margin: 0 0 8px; color: #657387; font-size: 11px; }
.vote-roster-actions { display: flex; gap: 6px; }
.vote-roster-actions button { flex: 1; min-height: 36px; padding: 6px 8px; border: 1px solid #d5deea; border-radius: 7px; background: #fff; color: #40536b; font-size: 12px; }
.vote-roster-actions button:hover { background: #edf4fb; }
.vote-roster-actions button:disabled { opacity: .5; cursor: default; }
.vote-roster-export { position: absolute; top: 0; left: -10000px; width: 690px; background: #fff; }
.vote-roster-export .vote-roster-panel { width: 100%; height: auto; max-height: none; overflow: visible; background: #fff; }
.vote-roster-export .vote-roster-toolbar { grid-template-columns: 1fr; }
.vote-roster-export .vote-roster-body { height: auto; max-height: none; overflow: visible; }
.vote-roster-export .vote-roster-group h4 { position: static; }
.vote-roster-export .vote-roster-name { height: 24px; line-height: 24px; }
.vote-roster-export .vote-roster-footer { padding: 10px 18px; color: #657387; font-size: 11px; }
@media (max-width: 600px) {
    #modal_vote .vote-roster-toolbar { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 480px) {
    #modal_vote { padding: 0 8px; }
    #modal_vote .c-modal__dialog { margin: 8px auto; }
    #modal_vote .vote-roster-panel { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
    #modal_vote .vote-roster-header { padding: 10px 12px; }
    #modal_vote .vote-roster-top { padding: 10px 12px 8px; }
    #modal_vote .vote-roster-body { padding-left: 12px; padding-right: 12px; }
    #modal_vote .vote-roster-name { height: 44px; line-height: 44px; }
    #modal_vote .vote-roster-footer { padding: 8px 12px; }
    #modal_vote .vote-roster-actions button, #modal_vote .vote-roster-close { min-height: 44px; }
    #modal_vote .vote-roster-search input { height: 38px; font-size: 16px; }
}
@media (max-height: 480px) {
    #modal_vote .c-modal__dialog { margin: 8px auto; }
    #modal_vote .vote-roster-panel { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
    #modal_vote .vote-roster-header { padding-top: 6px; padding-bottom: 6px; }
    #modal_vote .vote-roster-top { padding-top: 6px; padding-bottom: 6px; }
    #modal_vote .vote-roster-meta, #modal_vote .vote-roster-bill { margin-bottom: 4px; }
    #modal_vote .vote-roster-summary { margin-bottom: 6px; }
    #modal_vote .vote-roster-legend { display: none; }
    #modal_vote .vote-roster-footer p { display: none; }
}
