.community-toolbar { width: var(--content); margin: 22px auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.community-toolbar .controls { margin-left: 0; flex-wrap: wrap; }
.community-toolbar select { max-width: 340px; }
.poll-state { color: var(--accent); font-size: 13px; white-space: nowrap; }
.poll-actions { display: flex; align-items: center; gap: 24px; }
.ballot-jump { display: none; color: var(--accent); font-size: 13px; text-underline-offset: 4px; }
.community-notice { width: var(--content); margin: 0 auto 24px; color: var(--muted); font-size: 14px; }
.community-main { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(340px,.8fr); gap: 56px; align-items: start; }
.community-total { margin: 16px 0; color: var(--muted); font-size: 13px; }
.community-table { table-layout: fixed; }
.community-table th { padding: 13px 5px; border-bottom: 1px solid var(--rule-strong); font-size: 12px; line-height: 1.4; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.community-table th:first-child { width: 11%; }
.community-table th:nth-child(2) { width: 64%; }
.community-table th:nth-child(3) { width: 25%; }
.community-table td { padding: 14px 5px; border-bottom: 1px solid var(--rule); font-size: 18px; line-height: 1.35; }
.community-table :is(th,td):nth-child(n+3) { text-align: right; }
.community-table td:nth-child(2) { font-weight: 600; overflow-wrap: anywhere; }
.community-table tbody tr:hover { background: var(--surface-hover); }
.community-table.admin-table th:first-child { width: 9%; }
.community-table.admin-table th:nth-child(2) { width: 37%; }
.community-table.admin-table th:nth-child(n+3) { width: 18%; }
.poll-method { padding: 20px 0; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
.poll-method summary { cursor: pointer; color: var(--text); font-weight: 500; }
.poll-method p { margin-top: 14px; }
.poll-method summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.ballot-panel { min-width: 0; border-top: 1px solid var(--rule-strong); padding-top: 16px; }
.ballot-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.ballot-heading h2 { font-family: var(--display); font-size: 36px; font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
#ballot-count { color: var(--accent); font-size: 13px; white-space: nowrap; }
.account-intro,.account-identity { color: var(--muted); font-size: 14px; }
.account-tabs { display: flex; gap: 28px; margin: 20px 0; }
.account-tabs .division-tab { padding: 6px 0 9px; font-size: 15px; }
.account-identity { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.account-identity strong { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.ballot-panel input { display: block; width: 100%; min-width: 0; min-height: 44px; margin: 6px 0 16px; padding: 10px 12px; background: var(--page); border: 1px solid #817765; border-radius: 4px; color: var(--text); font: inherit; font-size: 15px; }
.ballot-panel input::placeholder { color: var(--muted); opacity: .8; }
.ballot-panel input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ballot-panel label { display: block; font-size: 11px; letter-spacing: .1em; }
.field-help { margin: 10px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.primary-button,.secondary-button,.text-button,.ballot-actions button { font: inherit; cursor: pointer; transition: background 150ms ease,color 150ms ease; }
.primary-button { min-height: 44px; padding: 11px 18px; border: 1px solid var(--accent); border-radius: 3px; background: var(--accent); color: var(--page); font-size: 14px; font-weight: 600; }
.primary-button:hover { background: #e0c69c; }
.primary-button:disabled { opacity: .45; cursor: not-allowed; }
#auth-submit,#submit-ballot { width: 100%; }
.secondary-button { min-height: 42px; padding: 8px 12px; border: 1px solid var(--rule-strong); border-radius: 3px; background: transparent; color: var(--text); font-size: 12px; }
.secondary-button:hover { background: var(--surface-hover); }
.text-button { min-height: 32px; padding: 5px 0; border: 0; background: transparent; color: var(--accent); font-size: 12px; text-underline-offset: 4px; }
.text-button:hover { text-decoration: underline; }
#forgot-password,#back-to-login,#restore-ballot { margin-top: 10px; }
.verify-notice { margin-top: 18px; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 13px; }
.form-message { margin: 14px 0; color: var(--accent); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.form-message:empty { display: none; }
.form-message.is-error,.community-notice.is-error { color: #d7a7a4; }
.preview-email { margin: 12px 0; padding: 10px; border: 1px dashed var(--rule-strong); color: var(--muted); font-size: 12px; }
.preview-email a { color: var(--accent); }
.ballot-start { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0; }
.team-picker { display: flex; align-items: center; gap: 10px; margin: 6px 0 16px; }
.team-picker select { width: 100%; min-width: 0; max-width: none; font-size: 14px; flex: 1; }
.team-picker button { flex-shrink: 0; }
.personal-ballot { list-style: none; margin: 20px 0; padding: 0; }
.personal-ballot li { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 60px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.ballot-position { color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.2; }
.ballot-position small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.ballot-team { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.ballot-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
.ballot-actions button { min-height: 32px; padding: 4px 5px; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.ballot-actions button:hover { color: var(--accent); }
.ballot-actions button:disabled { opacity: .3; cursor: default; }
@media(max-width:1100px) { .community-main { gap: 32px; grid-template-columns: minmax(0,1fr) minmax(320px,1fr); } .community-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; } }
@media(max-width:800px) { .community-main { grid-template-columns: 1fr; gap: 40px; } .community-toolbar .controls { width: 100%; } .community-toolbar .controls > div { flex: 1; } .community-toolbar select { max-width: none; } .community-table td { font-size: 16px; } .ballot-panel { padding-top: 22px; } .personal-ballot li { min-height: 58px; } .ballot-jump { display: inline-block; min-height: 32px; padding: 5px 0; } }
@media(max-width:500px) { .community-toolbar .controls { flex-direction: column; align-items: stretch; gap: 12px; } .community-table th { font-size: 10px; letter-spacing: 0; text-transform: none; } .community-table td { font-size: 14px; } .community-table th:first-child { width: 12%; } .community-table th:nth-child(2) { width: 61%; } .community-table th:nth-child(3) { width: 27%; } .ballot-heading h2 { font-size: 32px; } }
