.yhsp-poll{margin:24px 0;padding:20px;background:#fff;border:1px solid #e4e7eb;border-radius:14px;box-shadow:0 5px 18px rgba(20,35,55,.08);color:#222;box-sizing:border-box;width:100%;max-width:100%;overflow:hidden}
.yhsp-poll *{box-sizing:border-box}
.yhsp-poll-question{font-size:20px;line-height:1.5;margin:0 0 14px;font-weight:800;color:#171b22}
.yhsp-poll-image-wrap{display:block;width:100%;max-width:100%;margin:0 auto 16px;overflow:hidden;border-radius:10px;background:#f2f3f5;text-align:center;line-height:0}
.yhsp-poll-image-wrap img.yhsp-image{display:block;width:100%!important;max-width:100%!important;height:auto!important;margin:0 auto!important;float:none!important;object-fit:contain}
.yhsp-poll-guide{font-size:13px;color:#667085;text-align:center;margin:0 0 10px}
.yhsp-poll-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.yhsp-vote-button{appearance:none;border:0;border-radius:9px;padding:14px 10px;font-size:17px;font-weight:800;cursor:pointer;transition:transform .15s,opacity .15s}
.yhsp-vote-button:hover{transform:translateY(-2px);opacity:.9}
.yhsp-vote-button:disabled{opacity:.6;cursor:wait}
.yhsp-vote-a{background:#202a38;color:#fff}.yhsp-vote-b{background:#e9edf2;color:#202a38}
.yhsp-poll-results{margin-top:8px}
.yhsp-result-row{margin:13px 0}
.yhsp-result-label{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:7px;font-size:14px}
.yhsp-result-name{font-weight:800}.yhsp-result-count{font-size:13px;white-space:nowrap}
.yhsp-result-track{height:12px;border-radius:20px;background:#edf0f3;overflow:hidden}
.yhsp-result-fill{display:block;height:100%;border-radius:20px;transition:width .35s ease}
.yhsp-fill-a{background:#26384f}.yhsp-fill-b{background:#e0a23b}
.yhsp-total{text-align:right;font-size:12px;color:#667085;margin:10px 0 0}
.yhsp-poll-message{text-align:center;font-size:13px;font-weight:700;color:#147a48;margin:12px 0 0}
.yhsp-poll-footnote{font-size:11px;color:#8a929c;text-align:right;margin:10px 0 0}
@media(max-width:600px){.yhsp-poll{padding:15px}.yhsp-poll-question{font-size:18px}.yhsp-poll-image-wrap{width:100%;margin-left:auto!important;margin-right:auto!important}.yhsp-poll-image-wrap img.yhsp-image{width:100%!important;max-width:100%!important}.yhsp-vote-button{font-size:15px;padding:13px 8px}.yhsp-result-label{font-size:13px}.yhsp-result-count{font-size:12px}}

/* 1.1.3: compact closed-poll archive */
.yhsp-poll-module{width:100%;max-width:100%;box-sizing:border-box}
.yhsp-history{margin:10px 0 0;padding:0 14px;background:#fff;border:1px solid #e4e7eb;border-radius:10px;box-sizing:border-box}
.yhsp-history-item{padding:9px 0 8px;border-bottom:1px solid #eceff2}
.yhsp-history-item:last-child{border-bottom:0}
.yhsp-history-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.yhsp-history-heading strong{font-size:13px;line-height:1.4;min-width:0;overflow-wrap:anywhere}
.yhsp-history-closed{flex:0 0 auto;padding:2px 6px;border-radius:4px;background:#f0f1f3;color:#69717c;font-size:10px;font-weight:700;white-space:nowrap}
.yhsp-history-result{display:flex;flex-wrap:wrap;gap:3px 12px;margin-top:4px;color:#68717c;font-size:11px;line-height:1.4}
.yhsp-history-total{margin-left:auto;color:#8a929c}

.yhsp-reference{margin:12px 0 0;padding-top:10px;border-top:1px solid #eceff2;font-size:12px;line-height:1.6;color:#667085}.yhsp-reference a{color:#2684c7;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}

/* 1.2.1: compact horizontal three-poll layout */
.yhsp-poll-list{display:flex;flex-direction:column;gap:12px;margin:14px 0}
.yhsp-poll-card{margin:0;padding:13px 14px;background:#fff;border:1px solid #e4e7eb;border-radius:11px;box-shadow:0 2px 9px rgba(20,35,55,.05);color:#222;box-sizing:border-box;width:100%;max-width:100%;overflow:hidden}
.yhsp-poll-card *{box-sizing:border-box}
.yhsp-poll-card-top{display:flex;align-items:flex-start;gap:13px;min-width:0}
.yhsp-poll-thumb-wrap{flex:0 0 100px;width:100px;height:100px;overflow:hidden;border-radius:8px;background:#f1f3f5;line-height:0}
.yhsp-poll-thumb{display:block;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover;margin:0!important}
.yhsp-poll-card-info{flex:1 1 auto;min-width:0}
.yhsp-poll-card .yhsp-poll-question{font-size:16px;line-height:1.45;font-weight:800;margin:0;color:#171b22;overflow-wrap:anywhere}
.yhsp-poll-card .yhsp-reference{margin:9px 0 0;padding:8px 0 0;border-top:1px solid #eceff2;font-size:11px;line-height:1.45;text-align:left;color:#77808b}
.yhsp-poll-card .yhsp-reference a{color:#2684c7;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.yhsp-poll-card .yhsp-poll-vote-area{margin-top:10px}
.yhsp-poll-card .yhsp-poll-guide{font-size:11px;text-align:left;margin:0 0 5px;color:#89919b}
.yhsp-poll-card .yhsp-poll-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.yhsp-poll-card .yhsp-vote-button{padding:10px 8px;font-size:14px;line-height:1.35;border-radius:7px;min-height:40px;overflow-wrap:anywhere}
.yhsp-poll-card .yhsp-poll-results{margin-top:9px}
.yhsp-poll-card .yhsp-result-row{margin:8px 0}
.yhsp-poll-card .yhsp-result-label{font-size:12px;margin-bottom:4px}
.yhsp-poll-card .yhsp-result-track{height:8px}
.yhsp-poll-card .yhsp-total{font-size:11px;margin-top:6px}
.yhsp-poll-card .yhsp-poll-message{font-size:11px;text-align:left;margin:7px 0 0}
.yhsp-poll-card .yhsp-poll-message:empty{display:none}
@media(max-width:600px){
  .yhsp-poll-list{gap:9px;margin:10px 0}
  .yhsp-poll-card{padding:10px 11px;border-radius:9px}
  .yhsp-poll-card-top{gap:10px}
  .yhsp-poll-thumb-wrap{flex-basis:76px;width:76px;height:76px}
  .yhsp-poll-card .yhsp-poll-question{font-size:14px;line-height:1.4}
  .yhsp-poll-card .yhsp-reference{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;margin-top:5px;line-height:1.4}
  .yhsp-poll-card .yhsp-vote-button{font-size:13px;padding:9px 6px;min-height:38px}
  .yhsp-poll-card .yhsp-poll-guide{font-size:10px}
}
