/* CR-0008. Only a new vote section; never style existing board. */
:is(#v31-vote-entry-host,#v31-vote-section-host){margin-top:0}
:is(#v31-vote-entry-host,#v31-vote-section-host) > #v31-vote-entry-host{margin-top:0}
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-host-inner{
  border:1px solid #d5dde5;
  padding:14px;
  color:#4b5b67;
  background:#fff;
  font-size:14px
}

/* CR-0008: isolated vote UI; ALL selectors rooted in the vote host only. */
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-result-inner{
  margin-top:12px;padding:14px;border:1px solid #d5dde5;background:#fff
}
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-client{display:grid;gap:12px;font-size:15px}
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-intro,
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-notice,
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-results-notice{margin:0;line-height:1.6}
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-notice:empty{display:none}
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-controls{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px
}
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-label{display:grid;gap:6px;font-weight:700}
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-rank{
  width:100%;min-width:0;padding:10px 9px;border:1px solid #bbc9d6;
  border-radius:0;background:white;color:#162734;font-size:16px
}
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-submit,
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-refresh{
  width:fit-content;padding:10px 22px;border:1px solid #116b38;
  border-radius:0;background:#168244;color:white;font-size:15px;
  font-weight:700;cursor:pointer
}
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-refresh{
  margin-top:8px;padding:8px 16px
}
:is(#v31-vote-entry-host,#v31-vote-section-host) button:disabled,
:is(#v31-vote-entry-host,#v31-vote-section-host) select:disabled{opacity:.48;cursor:not-allowed}
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-selection{margin:0;font-weight:700}
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-results-title{
  margin:10px 0 0;font-size:17px;border-bottom:1px solid #d1dce7;padding-bottom:8px
}
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-results{display:grid;gap:12px}
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-result-group{
  display:grid;grid-template-columns:42px minmax(0,1fr) 60px;
  align-items:center;column-gap:9px;row-gap:8px;
  padding:12px;border:1px solid #d8e0e7
}
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-result-no{font-weight:700}
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-result-count{text-align:right;font-weight:800}
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-result-gauge{
  grid-column:1/-1;height:13px;background:#e9edf2;overflow:hidden
}
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-result-fill{display:block;height:100%;background:#3a85c7;transition:width .3s ease}
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-rank-2 .v31-vote-result-fill{background:#dca229}
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-rank-3 .v31-vote-result-fill{background:#259b7d}
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-withheld{grid-column:2/-1;color:#697887;text-align:right}
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-glass{
  position:relative;overflow:hidden;min-height:72px;
  background:linear-gradient(120deg,#f3f6f9,#e7ecf1);
  border:1px solid #cbd5df;display:grid;place-items:center
}
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-glass-placeholder{
  filter:blur(6px);letter-spacing:2px;color:#607589;
  user-select:none;pointer-events:none
}
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-glass::after{
  content:"非公開";position:absolute;inset:0;display:grid;place-items:center;
  background:rgba(246,250,253,.42);font-weight:700;color:#364e61
}
:is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-turnstile{width:100%;min-height:1px}
@media(max-width:480px){
  :is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-controls{grid-template-columns:1fr;gap:6px}
  :is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-label{grid-template-columns:72px 1fr;align-items:center}
  :is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-result-group{grid-template-columns:36px minmax(0,1fr) 54px}
}
@media(prefers-reduced-motion:reduce){
  :is(#v31-vote-entry-host,#v31-vote-section-host) .v31-vote-result-fill{transition:none}
}
