/* Community voting: warm paper, quiet gold accents, and the store's navy ink. */
#store-tab-polls[hidden],
.community-polls [hidden] { display: none !important; }

.community-polls { min-width: 0; }
.polls-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 3px 0 24px; }
.polls-eyebrow { color: #98702c; font-size: 10px; font-weight: 700; letter-spacing: .19em; }
.polls-heading h3 { margin: 9px 0 8px; color: var(--ink); font-size: 23px; font-weight: 700; letter-spacing: .03em; line-height: 1.5; }
.polls-heading p, .polls-empty p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.polls-refresh { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: #626b75; background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.polls-refresh:hover:not(:disabled) { color: var(--ink); border-color: #b79861; background: #fffcf5; }
.polls-refresh:disabled { cursor: wait; opacity: .5; }
.polls-list { display: grid; gap: 24px; }
.poll-card { min-width: 0; overflow: hidden; border: 1px solid #e5daca; border-radius: 20px; background: var(--paper); box-shadow: 0 8px 26px rgba(46, 48, 42, .035); }
.poll-card-header { padding: 26px 28px 0; }
.poll-card-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 17px; }
.poll-card-number { color: #9b7b42; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.poll-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid #d8e4db; border-radius: 999px; color: #48715c; background: #f5f8f3; font-size: 11px; font-weight: 600; }
.poll-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.poll-status.is-closed { color: #7a7a75; border-color: #e3e0d8; background: #f5f3ee; }
.poll-card h4 { margin: 0; color: var(--ink); font-size: 20px; line-height: 1.65; font-weight: 700; overflow-wrap: anywhere; }
.poll-card-description { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.poll-deadline { margin: 10px 0 0; color: #8c8171; font-size: 11px; line-height: 1.7; }
.poll-reward { margin: 0 0 24px; padding: 22px 26px; border: 1px solid #e9ddc4; border-radius: 16px; background: #faf6ed; }
.poll-reward-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
.poll-reward-title { display: grid; gap: 7px; color: #795c2c; font-size: 17px; font-weight: 650; }
.poll-reward-eyebrow { color: #9b8252; font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.poll-reward-status { color: #8b7650; font-size: 11px; }
.poll-reward-progress-label { margin: 17px 0 8px; color: #796647; font-size: 12px; font-variant-numeric: tabular-nums; }
.poll-reward-progress { display: block; width: 100%; height: 5px; appearance: none; border: 0; border-radius: 99px; overflow: hidden; background: #eae4d8; accent-color: #c49d4b; }
.poll-reward-progress::-webkit-progress-bar { background: #eae4d8; border-radius: 99px; }
.poll-reward-progress::-webkit-progress-value { background: #c49d4b; border-radius: 99px; }
.poll-reward-progress::-moz-progress-bar { background: #c49d4b; border-radius: 99px; }
.poll-reward-message { margin: 7px 0 0; color: #827968; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.poll-reward.is-completed { border-color: #dce5d7; background: #f5f8f1; }
.poll-reward.is-completed .poll-reward-title, .poll-reward.is-completed .poll-reward-status { color: #4c7057; }
.poll-reward.is-duplicate_identity, .poll-reward.is-disabled, .poll-reward.is-unavailable { border-color: #e6e2d9; background: #f7f5f0; }
.poll-reward-delivery { margin: 11px 0 0; color: #59705d; font-size: 11px; line-height: 1.8; }
.poll-reward-elements { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 13px 0 0; padding: 0; list-style: none; }
.poll-reward-element { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 3px 8px; min-width: 0; padding: 8px 10px; border: 1px solid rgba(163, 146, 108, .16); border-radius: 7px; color: #8a806f; background: rgba(255, 255, 255, .6); font-size: 11px; }
.poll-reward-element strong { color: #4e5965; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.poll-claim { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; margin-top: 14px; padding: 8px 16px; border: 1px solid #d6bc83; border-radius: 8px; color: #795c2c; background: #fffaf0; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.poll-claim:hover:not(:disabled) { border-color: #b8924b; background: #fff5df; }
.poll-claim:disabled { opacity: .55; cursor: default; }
.poll-claim:focus-visible { outline: 2px solid #ad7d26; outline-offset: 3px; }
.poll-form { margin: 0; }
.poll-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; min-width: 0; margin: 0; padding: 24px 28px; border: 0; }
.poll-options--text { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.poll-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.poll-choice { position: relative; display: block; min-width: 0; cursor: pointer; }
.poll-choice input { position: absolute; z-index: 1; top: 11px; right: 11px; width: 14px; height: 14px; margin: 0; accent-color: #b88423; cursor: pointer; }
.poll-choice-content { display: flex; justify-content: center; align-items: baseline; gap: 5px; min-height: 84px; height: 100%; padding: 29px 14px 17px; border: 1px solid #e8e1d5; border-radius: 12px; background: #fffcf7; color: #334051; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.poll-choice:hover .poll-choice-content { border-color: #cfb475; background: #fff9eb; }
.poll-choice input:checked + .poll-choice-content { color: #815819; border-color: #d0a144; background: #fff5db; box-shadow: inset 0 0 0 1px rgba(208, 161, 68, .13); }
.poll-choice input:focus-visible + .poll-choice-content { outline: 2px solid #ad7d26; outline-offset: 3px; }
.poll-choice-number { font-family: "Segoe UI", Arial, sans-serif; font-size: 27px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.poll-choice-unit { font-size: 12px; color: #86785f; }
.poll-choice-label { align-self: center; text-align: center; font-size: 14px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.poll-options:disabled .poll-choice { cursor: default; }
.poll-options:disabled input { cursor: default; }
.poll-options:disabled .poll-choice-content { background: #f8f6f1; color: #8b8d8f; }
.poll-options:disabled .poll-choice:hover .poll-choice-content { border-color: #e8e1d5; }
.poll-card-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; min-height: 76px; padding: 16px 28px; border-top: 1px solid #eee6d9; background: #fcfaf5; }
.poll-selection { margin: 0; color: #7b7466; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.poll-selection.has-selection { color: #8b6528; }
.poll-submit { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-width: 138px; min-height: 42px; padding: 10px 20px; border: 1px solid #dfb453; border-radius: 10px; color: #302c23; background: linear-gradient(180deg, #f5d370, #ebc15b); box-shadow: 0 4px 12px rgba(172, 131, 39, .12); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.poll-submit:hover:not(:disabled) { background: #f4ce69; border-color: #c49432; }
.poll-submit:disabled { color: #928a7a; background: #eee8dc; border-color: #e3dbcc; box-shadow: none; cursor: default; }
.poll-submit:focus-visible, .polls-refresh:focus-visible { outline: 2px solid #ad7d26; outline-offset: 3px; }
.poll-results-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 24px 28px 0; color: #867758; font-size: 12px; }
.poll-results-heading strong { color: var(--ink); font-weight: 600; }
.poll-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin: 0; padding: 22px 28px 26px; list-style: none; }
.poll-result { min-width: 0; }
.poll-result-heading { display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px; font-size: 13px; }
.poll-result-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; min-width: 0; flex: 1; color: #4e5965; overflow-wrap: anywhere; }
.poll-result.is-mine .poll-result-label { color: #8b6528; font-weight: 700; }
.poll-result-mine { flex-shrink: 0; color: #926d30; font-size: 10px; font-weight: 500; }
.poll-result-share { flex-shrink: 0; color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.poll-result-track { display: block; height: 6px; overflow: hidden; border-radius: 99px; background: #eeeae2; }
.poll-result-fill { display: block; height: 100%; border-radius: inherit; background: #b8c0c5; }
.poll-result.is-mine .poll-result-fill { background: linear-gradient(90deg, #d4aa4a, #ebc76d); }
.poll-result-count { display: block; margin-top: 6px; color: #8b867b; font-size: 10px; }
.poll-results-summary { color: #536b5a; font-size: 12px; }
.poll-results-summary::before { content: '✓'; margin-right: 7px; }
.polls-note { margin: 20px 0 0; color: #928779; text-align: center; font-size: 11px; line-height: 1.8; }
.polls-feedback { margin: 0 0 18px; padding: 12px 15px; border: 1px solid #dae5d7; border-radius: 10px; color: #4c7057; background: #f4f8ef; font-size: 13px; line-height: 1.7; }
.polls-feedback.is-error { color: #a14635; background: #fff3ed; border-color: #efcdbb; }
.polls-loading, .polls-empty { padding: 46px 24px; border: 1px solid #e5daca; border-radius: 18px; color: var(--muted); background: var(--paper); text-align: center; font-size: 13px; }
.polls-empty h4 { margin: 14px 0 8px; color: var(--ink); font-size: 18px; font-weight: 600; }

@media (max-width: 720px) {
    .polls-heading h3 { font-size: 20px; }
    .poll-card-header { padding: 22px 20px 0; }
    .poll-card h4 { font-size: 18px; }
    .poll-reward { padding: 18px 20px; }
    .poll-reward-elements { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .poll-options { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 20px; }
    .poll-options--text { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .poll-results-heading { margin: 20px 20px 0; }
    .poll-results { grid-template-columns: 1fr; padding: 20px; }
    .poll-card-footer { padding: 16px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .poll-choice-content { transition: none; }
}
