/* Private-group polls share the conversation and composer fonts and colors. */
#poll-dialog { width: min(27rem, calc(100vw - 28px)); max-height: calc(100dvh - 32px); overflow: auto; }
#poll-form { display: grid; gap: .6rem; }
#poll-form h2, #poll-form p, #poll-form input { margin: 0; }
#poll-form label { display: grid; gap: .25rem; }
#poll-form .group-controls { margin-top: .25rem; }
#poll-status:empty { display: none; }
.poll-card { width: min(19rem, 68vw); max-width: 100%; overflow-wrap: anywhere; }
.poll-question { margin: .15rem 0; font-size: 1rem; line-height: 1.35; }
.poll-state, .poll-footer { font-size: .8rem; color: var(--muted); }
.poll-state { margin: .2rem 0 .6rem; }
.poll-choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem; }
.poll-choice { display: flex; align-items: center; justify-content: space-between; gap: .65rem; min-height: 44px; padding: .4rem .65rem; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--panel); text-align: left; white-space: normal; }
.poll-choice:hover:enabled { border-color: var(--accent); }
.poll-choice:disabled { opacity: 1; cursor: default; }
.poll-option-text { min-width: 0; overflow-wrap: anywhere; }
.poll-option-count { flex: none; color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 700; }
.poll-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .4rem; }
.poll-close { min-height: 36px; padding: .25rem; color: var(--accent); background: transparent; font-weight: 650; }

@media (max-width: 720px) { .poll-close { min-block-size: 44px; } }
#poll-form .poll-mode { display:flex; align-items:center; gap:.5rem; min-block-size:44px; }
#poll-multiple { flex:none; inline-size:1.1rem; block-size:1.1rem; }
#poll-duration {
  min-block-size:44px;
  inline-size:100%;
  padding:.4rem .55rem;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--panel);
  color:var(--text);
  font:inherit;
}
.poll-deadline { display:block; margin-block:0 .6rem; color:var(--muted); font-size:.8rem; }
.poll-choice[aria-pressed=true] { border-color:var(--accent); background:var(--raised); }
.poll-submit-votes { min-block-size:44px; white-space:normal; font-size:.8rem; }
