:root { color-scheme: light; font-family: system-ui, sans-serif; font-size: 15px; color: #22272e; background: #fff; }
* { box-sizing: border-box; }
body { margin: 0; }
.app-header { border-bottom: 1px solid #aab0b7; background: #f5f6f7; }
.header-inner { max-width: 1008px; margin: 0 auto; padding: 15px 24px; }
h1 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.6; }
main { max-width: 1008px; margin: 28px auto; padding: 0 24px 32px; }
h2 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.6; }
p { margin: 12px 0; line-height: 1.7; overflow-wrap: anywhere; }
.description { color: #4b535c; margin: 10px 0 24px; }
section { padding: 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #aab0b7; padding-bottom: 8px; }
form { max-width: 740px; border-top: 1px solid #cbd0d5; }
.form-row { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid #e0e3e6; }
label { padding-top: 10px; font-weight: 500; }
.field { min-width: 0; }
input, select { width: 100%; max-width: 440px; min-height: 44px; padding: 9px 10px; border: 1px solid #8b939c; border-radius: 0; color: inherit; background: #fff; font: inherit; }
.form-actions { margin: 18px 0 0 164px; }
.note { color: #555e68; font-size: 13px; }
.field .note { margin: 6px 0 0; }
button { min-height: 44px; padding: 9px 15px; border: 1px solid #8b939c; border-radius: 0; background: #fff; color: #263544; font: inherit; cursor: pointer; }
button:hover { background: #f0f2f4; border-color: #596574; }
button.primary { color: #fff; border-color: #24465b; background: #24465b; }
button.primary:hover { background: #183447; }
button:disabled { opacity: .6; cursor: default; }
button:disabled:hover { background: #fff; border-color: #8b939c; }
.text-button { border: 0; padding: 6px 0 6px 12px; color: #344b60; background: none; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { background: none; color: #111; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #945718; outline-offset: 3px; }
a { color: #254f74; text-underline-offset: 3px; }
.information-list { display: grid; grid-template-columns: 148px minmax(0, 1fr); margin: 0; }
.information-list dt, .information-list dd { margin: 0; padding: 14px 12px; border-bottom: 1px solid #e0e3e6; line-height: 1.6; overflow-wrap: anywhere; }
.information-list dt { color: #555e68; background: #f7f8f9; }
.information-list dd { padding-left: 16px; }
#account-membership { font-weight: 600; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.result { margin-top: 28px; }
.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.data-table caption { text-align: left; font-weight: 600; padding-bottom: 10px; }
.data-table th, .data-table td { border-top: 1px solid #cbd0d5; border-bottom: 1px solid #e0e3e6; padding: 12px; text-align: left; vertical-align: top; line-height: 1.6; overflow-wrap: anywhere; }
.data-table th { width: 148px; background: #f7f8f9; color: #4b535c; font-weight: 500; }
.data-table .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.connection-check { margin-top: 48px; padding-top: 8px; border-top: 1px solid #d8dce0; color: #555e68; font-size: 13px; }
summary { width: fit-content; min-height: 44px; padding: 12px 0; cursor: pointer; }
.connection-check p { margin: 4px 0 12px; }
[role="status"]:empty { display: none; }
[hidden] { display: none !important; }
.button-link { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 15px; border: 1px solid #8b939c; text-decoration: none; color: #263544; }
.button-link:hover { background: #f0f2f4; }
h3 { font-size: 15px; margin: 0 0 12px; }
.filter-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; max-width: none; border: 0; margin: 24px 0; }
.filter-form label { display: block; padding: 0; margin-bottom: 6px; font-size: 13px; }
.search-field { flex: 1; min-width: 180px; }
.filter-form input { max-width: none; }
.choice-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-group legend { margin-bottom: 5px; padding: 0; font-size: 13px; }
.choice-options { display: flex; flex-wrap: wrap; gap: 6px; }
.choice-options label { display: flex; align-items: center; gap: 6px; min-height: 40px; margin: 0; padding: 4px 9px; border: 1px solid #a0aab4; font-size: 14px; cursor: pointer; }
.choice-options input { width: 16px; height: 16px; min-height: 0; flex: 0 0 16px; margin: 0; accent-color: var(--accent); }
.choice-options label:has(input:checked) { color: var(--accent); background: #e7f1f8; border-color: currentColor; box-shadow: inset 0 -2px currentColor; font-weight: 600; }
.choice-options label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice-options label:has(input:disabled) { opacity: .7; cursor: default; }
#event-type-label, #event-state-label { padding-top: 9px; font-weight: 600; }
@media (max-width: 600px) { #event-type-label, #event-state-label { padding-top: 0; } }
.table-scroll { width: 100%; overflow-x: auto; }
.member-list { table-layout: auto; min-width: 680px; }
.member-list th { width: auto; }
.member-list td { vertical-align: middle; }
.pagination { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: 13px; }
.member-detail { margin-top: 36px; border-top: 2px solid #8b939c; padding-top: 20px; }
.management-form { margin: 28px 0; padding-top: 16px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; padding: 0; margin: 16px 0; }
.checkbox-label input { width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; }
textarea { width: 100%; max-width: 440px; padding: 10px; border: 1px solid #8b939c; border-radius: 0; font: inherit; color: inherit; resize: vertical; }
textarea:focus-visible { outline: 2px solid #945718; outline-offset: 3px; }
.history-list { table-layout: auto; min-width: 560px; }
.history-list th { width: auto; }
.history-area { margin-top: 32px; }
.event-table-area { margin-top: 28px; }
.notification-list { table-layout: auto; min-width: 850px; }
.notification-list th { width: auto; }
.notification-list p { margin: 5px 0 0; }
.event-list, .option-list, .summary-list, .roster-list { table-layout: auto; }
.event-list { min-width: 580px; }
.option-list { min-width: 680px; }
.summary-list { min-width: 440px; }
.roster-list { min-width: 600px; }
.event-list th, .option-list th, .summary-list th, .roster-list th { width: auto; }
.option-list select { min-width: 110px; }
.response-form { max-width: none; margin-top: 24px; border-top: 0; }
.preserve-lines { white-space: pre-line; }
@media (max-width: 600px) {
  .header-inner { padding: 13px 16px; }
  main { margin-top: 22px; padding: 0 16px 24px; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 14px 0; }
  label { padding: 0; }
  input, select { max-width: none; }
  .form-actions { margin-left: 0; }
  .information-list { grid-template-columns: 100px minmax(0, 1fr); }
  .information-list dt, .information-list dd { padding: 12px 8px; }
  .data-table th { width: 100px; }
  .data-table th, .data-table td { padding: 10px 8px; }
}

/* ホームは業務ごとに罫線で区切る。 */
.home-account-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 30px; }
.home-account-bar h2 { font-size: 20px; }
.home-account-bar p { margin: 4px 0 0; color: #555e68; font-size: 13px; }
.home-membership { margin-left: 16px; font-weight: 400 !important; }
.home-section { border-top: 2px solid #344f62; padding-top: 14px; }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.home-section-heading h3 { font-size: 16px; margin: 0; }
.home-section-heading a { font-size: 13px; padding: 8px 0; white-space: nowrap; }
.home-event-list { margin: 0; padding: 0; list-style: none; }
.home-event-list li { border-bottom: 1px solid #e0e3e6; }
.home-event-list a:hover { background: #f5f7f8; }
.home-event-deadline { color: #555e68; font-size: 13px; text-align: right; }
.home-section-footer { color: #555e68; font-size: 12px; margin: 12px 0 0; }
.home-admin-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 36px; }
.home-member-counts { display: flex; gap: 48px; margin: 20px 0 12px; }
.home-member-counts dt { font-size: 13px; color: #555e68; }
.home-member-counts dd { margin: 4px 0 0; font-size: 32px; line-height: 1.3; font-variant-numeric: tabular-nums; color: #243e50; }
.home-member-counts small { margin-left: 6px; font-size: 13px; color: #555e68; }
.home-setting-list { display: grid; grid-template-columns: 1fr 1fr; margin: 8px 0; font-size: 14px; }
.home-setting-list dt, .home-setting-list dd { margin: 0; padding: 10px 0; border-bottom: 1px solid #e0e3e6; }
.home-setting-list dt { color: #555e68; }
.home-setting-list dd { text-align: right; }
.home-profile { margin-top: 32px; border-top: 1px solid #d8dce0; font-size: 13px; }
.home-profile summary { color: #4b535c; }
@media (max-width: 680px) {
  .home-admin-columns { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 28px; }
  .home-event-deadline { grid-column: 1 / -1; text-align: left; }
  .home-account-bar { margin-bottom: 22px; }
}

/* ページ間の移動と、ページ内の操作を区別する。 */
.event-navigation { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #cbd0d5; margin-bottom: 24px; }
.event-navigation a { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; min-height: 44px; padding: 12px 18px; border-bottom: 2px solid transparent; }
.event-navigation a[aria-current="page"] { color: #22272e; font-weight: 600; text-decoration: none; border-bottom: 2px solid #344f62; }
.event-page-content { margin-top: 24px; }

.date-time-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.date-time-fields input { width: auto; max-width: 100%; }

/* 共有URLはラベルと入力欄を一組ずつ縦に並べる。 */
.event-share { margin: 20px 0 28px; }
.share-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 12px 0 20px; }
.share-field label { padding: 0; font-size: 13px; }
.share-field input { width: 100%; max-width: none; min-width: 0; font-size: 13px; }
dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 28px; border: 1px solid #8b939c; color: inherit; }
dialog::backdrop { background: rgb(20 30 40 / .45); }
dialog form { border: 0; }
dialog label { display: block; margin: 20px 0 8px; padding: 0; }
dialog input { width: 100%; max-width: none; }
.delete-target { padding: 12px 0; border-block: 1px solid #e0e3e6; font-weight: 600; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.admission-section { margin-top: 40px; }
.admission-section + .admission-section { margin-top: 64px; padding-top: 32px; border-top: 2px solid #8b939c; }
.admission-section .filter-form { margin: 28px 0; }
.preapproval-history { margin-top: 28px; }
.preapproval-history[open] { padding-bottom: 12px; }
#notification-settings { margin-bottom: 0; padding-bottom: 28px; }
#notification-settings .form-row { border-bottom: 0; }
#notification-settings .settings-actions { margin-top: 24px; }
.notification-history { margin-top: 36px; padding-top: 28px; border-top: 2px solid #8b939c; }
@media (max-width: 600px) { dialog { padding: 20px; } .admission-section + .admission-section { margin-top: 48px; } }

.answer-option { margin: 0 0 28px; padding: 20px; border: 1px solid #cbd0d5; min-width: 0; }
.answer-option legend { padding: 0 8px; font-weight: 600; }
.answer-option p { margin: 0 0 12px; font-size: 13px; }
.answer-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 140px)); gap: 12px; }
.answer-choices label { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 16px; min-height: 52px; border: 1px solid transparent; cursor: pointer; }
.answer-choices input { width: 18px; min-height: 18px; height: 18px; margin: 0; }
.response-note-field { display: grid; gap: 8px; margin: 28px 0; }
.response-note-field textarea { max-width: 740px; }
#people-answer { min-width: 110px; }

/* 長い名称・URL・備考も省略せず折り返す。表の横幅はページ全体へ伝播させない。 */
main, section, form, fieldset, .table-scroll, .action-row > *, .section-header > *, .filter-form > *, .home-section-heading > * { min-width: 0; }
h1, h2, h3, legend, label, button, .button-link, summary, .delete-target { overflow-wrap: anywhere; }
input, select, textarea { max-width: 100%; min-width: 0; }
textarea { line-height: 1.7; }
button, .button-link { max-width: 100%; white-space: normal; text-align: center; justify-content: center; }
.table-scroll { max-width: 100%; overscroll-behavior-x: contain; }
.event-list { table-layout: fixed; }
.event-list th:first-child { width: 32%; }
.roster-list td:last-child { min-width: 220px; max-width: 360px; white-space: pre-line; }
.answer-option legend { max-width: 100%; line-height: 1.7; }
.answer-choices label:has(input:checked) { font-weight: 600; }
@media (max-width: 680px) {
  input, select, textarea, .share-field input { font-size: 16px; }
  .section-header { align-items: flex-start; flex-wrap: wrap; gap: 10px 16px; }
  .section-header > a { display: inline-flex; align-items: center; min-height: 44px; }
  .home-account-bar { align-items: flex-start; }
  .home-account-bar p { display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .home-membership { margin-left: 0; }
  .home-member-counts { gap: 24px; flex-wrap: wrap; }
  .home-setting-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .event-navigation { gap: 4px; }
  .event-navigation a { display: inline-flex; align-items: center; min-height: 44px; }
  .action-row { gap: 12px; }
  .action-row > button, .action-row > .button-link { flex: 1 1 140px; }
  .action-row > label, .action-row > select { flex: 1 1 100%; }
  .action-row > label { padding: 0; }
  .filter-form { align-items: stretch; gap: 16px; }
  .filter-form > div, .filter-form > button { flex: 1 1 100%; }
  .search-field { min-width: 0; }
  .pagination { align-items: flex-start; gap: 12px; }
  .pagination > div { display: flex; flex-wrap: wrap; gap: 8px; }
  .pagination button { padding-inline: 12px; }
  .date-time-fields input { width: 100%; max-width: 100%; min-width: 0; }
  .date-time-fields { display: grid; grid-template-columns: minmax(0, 1fr); }
  .answer-option { padding: 12px; margin-bottom: 24px; }
  .answer-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .answer-choices label { padding: 14px 12px; }
  .answer-choices input { flex: 0 0 18px; }
  .response-note-field textarea { width: 100%; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions button { width: 100%; }
  dialog { max-height: calc(100dvh - 32px); width: calc(100% - 24px); padding: 20px; }
  .admission-section + .admission-section { margin-top: 40px; padding-top: 24px; }
  /* 行を罫線で区切った項目一覧にし、名称と回答状態を同じ画面で読めるようにする。 */
  .mobile-records { display: block; min-width: 0; width: 100%; table-layout: auto; }
  .mobile-records thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mobile-records caption { display: block; padding-bottom: 12px; }
  .mobile-records tbody { display: block; width: 100%; }
  .mobile-records tbody tr { display: block; border-top: 2px solid #aab0b7; padding: 12px 0; margin-bottom: 16px; }
  .mobile-records td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; width: 100%; padding: 8px 0; border: 0; min-width: 0; }
  .mobile-records td[data-label]::before { content: attr(data-label); color: #555e68; font-size: 13px; }
  .mobile-records td[colspan] { display: block; }
  .mobile-records td > * { min-width: 0; max-width: 100%; }
  .mobile-records td > p { grid-column: 2; margin: 0; }
  .mobile-records td button, .mobile-records td .button-link { justify-self: start; }
  .mobile-records td > a { min-height: 44px; display: inline-flex; align-items: center; }
  .summary-list { min-width: 570px; table-layout: fixed; }
  .summary-list th:first-child { width: 180px; }
  .summary-list th:not(:first-child) { width: 78px; }
  .summary-list th, .summary-list td { font-size: 13px; padding: 10px 8px; }
  .roster-list { min-width: 680px; }
  .table-scroll:has(.summary-list)::after, .table-scroll:has(.roster-list)::after { content: '表は左右にスクロールできます'; display: block; position: sticky; left: 0; padding: 10px 0; color: #555e68; font-size: 12px; }
}
@media (max-width: 380px) {
  main { padding-inline: 12px; }
  .header-inner { padding-inline: 12px; }
  .information-list { grid-template-columns: minmax(0, 1fr); }
  .information-list dd { padding-left: 8px; }
  .mobile-records td { grid-template-columns: 80px minmax(0, 1fr); gap: 8px; }
}

.long-description { margin: 16px 0 24px; border-bottom: 1px solid #e0e3e6; }

.event-list-section { margin-top: 36px; padding-top: 20px; border-top: 2px solid #8b939c; }
.event-list-section > h3 { margin-bottom: 20px; font-size: 16px; }
.event-list-section caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.result-counts { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 24px 0; }
.result-counts > * { font-size: 17px; padding: 12px 16px; }
.result-counts [aria-pressed="true"] { background: #e9eff5; border-color: #233e58; font-weight: bold; }
.summary-list th:nth-child(2) { min-width: 210px; }
.summary-list .text-button { text-align: left; white-space: normal; min-height: 44px; }
@media (max-width: 640px) {
  .result-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .result-counts > * { padding: 12px 8px; text-align: center; }
  .summary-list { table-layout: auto; min-width: 650px; }
  .summary-list th:first-child { width: auto; }
  .summary-list th:nth-child(2) { width: 230px; }
}

:root { --accent: #175478; --yes-text: #17573b; --yes-bg: #e9f5ee; --maybe-text: #755000; --maybe-bg: #fff5d9; --no-text: #90332d; --no-bg: #fbeeea; --muted-text: #4b5563; --muted-bg: #eef0f3; }
.answer-yes { --answer-text: var(--yes-text); --answer-bg: var(--yes-bg); }
.answer-maybe { --answer-text: var(--maybe-text); --answer-bg: var(--maybe-bg); }
.answer-no { --answer-text: var(--no-text); --answer-bg: var(--no-bg); }
.answer-unanswered { --answer-text: var(--muted-text); --answer-bg: var(--muted-bg); }
.answer-tone { color: var(--answer-text); background: var(--answer-bg); }
.result-counts button { border-color: var(--answer-text); }
.result-counts button:hover { color: var(--answer-text); background: var(--answer-bg); outline: 1px solid currentColor; }
.result-counts button[aria-pressed="true"] { color: var(--answer-text); background: var(--answer-bg); box-shadow: inset 0 -4px currentColor; font-weight: 700; }
.summary-list .answer-tone .text-button { color: inherit; font-weight: 600; }
.summary-score { font-weight: 700; font-variant-numeric: tabular-nums; }
.top-candidate td:first-child { border-left: 4px solid var(--accent); color: var(--accent); font-weight: 700; }
.top-candidate .summary-score { background: #e7f1f8; color: #114c70; }
.answer-choices .answer-tone:has(input:checked) { background: var(--answer-bg); color: var(--answer-text); border-color: var(--answer-text); box-shadow: inset 0 -3px currentColor; font-weight: 700; }
.answer-choices input { accent-color: var(--answer-text, var(--accent)); }
.event-navigation [aria-current="page"] { color: #114c70; border-color: #175478; background: #e7f1f8; font-weight: 700; }

.site-navigation { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; }
.site-navigation a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; border-bottom: 3px solid transparent; }
.site-navigation [aria-current="page"] { color: #114c70; border-color: #175478; font-weight: 700; }
.settings-links { list-style: none; padding: 0; }
.settings-links a { display: block; padding: 20px 0; border-bottom: 1px solid #cbd0d5; }

.bulk-membership { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0; }
.member-list input[type="checkbox"] { width: 20px; height: 20px; min-height: 20px; accent-color: var(--accent); }
#bulk-targets { max-height: 40vh; overflow-y: auto; padding-left: 24px; }
.external-access { margin-top: 40px; padding-top: 24px; border-top: 1px solid #cbd0d5; }

#announcement-text { max-width: none; width: 100%; margin-top: 8px; }
#announcement-fallback { margin-top: 16px; }

.role-guide { margin: 24px 0 32px; }
.role-guide table { min-width: 600px; }
.role-guide td { text-align: center; }

.role-guide th:first-child { width: 55%; }
.role-guide thead th:not(:first-child) { width: 15%; text-align: center; }

#homepage-editor { margin-top: 36px; padding-top: 20px; border-top: 1px solid #cbd0d5; }

#availability-staff { margin-top:32px; }

.event-tabs { display:flex; gap:8px; margin:16px 0 24px; border-bottom:1px solid #cbd0d5; }
.event-tabs a { display:inline-flex; align-items:center; min-height:44px; padding:10px 18px; text-decoration:none; }
.event-tabs a[aria-current="page"] { background:#e7eff5; border-bottom:3px solid #285a75; font-weight:600; }

.event-summary-overview { border-left:4px solid var(--accent); padding:12px 16px; background:#f0f5f8; font-weight:600; margin:20px 0; }
.event-distribution { display:grid; grid-template-columns:repeat(100,minmax(0,1fr)); height:12px; background:#edf0f3; overflow:hidden; margin-bottom:12px; }
.event-distribution i { display:block; height:12px; background:var(--answer-text); }
.event-answer-counts { display:flex; flex-wrap:wrap; gap:8px; }
.event-answer-counts > * { padding:8px 12px; font-size:14px; min-height:40px; }
.summary-list th:nth-child(3) { min-width:250px; }
.summary-list td:nth-child(2) strong { display:block; line-height:1.7; }
#summary-people-details { margin-top:28px; border-top:1px solid #cbd0d5; padding-top:12px; }
#summary-people-details > summary { font-weight:600; }
@media(max-width:640px) {
 .summary-list { min-width:620px; table-layout:auto; }
 .summary-list th:nth-child(1) { min-width:48px; width:auto; }
 .summary-list th:nth-child(2) { min-width:205px; width:auto; }
 .summary-list th:nth-child(3) { min-width:270px; width:auto; }
}

.member-area-tabs,.member-detail-tabs { display:flex; flex-wrap:wrap; gap:4px; border-bottom:1px solid #cbd0d5; margin:20px 0 28px; }
.member-area-tabs a,.member-detail-tabs a { display:flex; align-items:center; min-height:44px; padding:10px 18px; text-decoration:none; }
.member-area-tabs a[aria-current="page"],.member-detail-tabs a[aria-current="page"] { background:#e7eff5; border-bottom:3px solid #285a75; font-weight:600; }
.member-state-summary { font-weight:600; color:#344b60; }
.member-profile-editor { margin:28px 0; }
.member-profile-editor > summary { font-weight:600; }
#member-history .history-area { margin-top:0; }
.member-detail-page > .management-form { margin-top:0; }
@media(max-width:600px){ .member-area-tabs a,.member-detail-tabs a { padding:10px 12px; } }

.event-distribution { height:18px; }
.event-distribution i { height:18px; }
.event-distribution .answer-yes { background:#007f80; }
.event-distribution .answer-maybe { background:#edb724; }
.event-distribution .answer-no { background:repeating-linear-gradient(135deg,#c65339 0 4px,#f3c8bb 4px 6px); }
.event-distribution .answer-unanswered { background:repeating-linear-gradient(90deg,#d8dce2 0 3px,#f5f6f8 3px 6px); }
#summary-member-filter { margin:24px 0; border-bottom:1px solid #cbd0d5; padding-bottom:16px; }
.summary-member-results { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:4px 16px; max-height:300px; overflow:auto; }
.summary-member-results label { display:flex; gap:10px; align-items:center; padding:12px 0; cursor:pointer; }
.summary-member-results input { width:20px; height:20px; min-height:20px; flex-shrink:0; }
.summary-selected-members { display:flex; flex-wrap:wrap; gap:8px; }

.event-answer-counts .answer-tone::before,#attendance-counts .answer-tone::before { content:''; display:inline-block; width:14px; height:14px; margin-right:6px; vertical-align:-2px; border:1px solid #fff; }
.event-answer-counts .answer-yes::before,#attendance-counts .answer-yes::before { background:#007f80; }
.event-answer-counts .answer-maybe::before,#attendance-counts .answer-maybe::before { background:#edb724; }
.event-answer-counts .answer-no::before,#attendance-counts .answer-no::before { background:repeating-linear-gradient(135deg,#c65339 0 4px,#f3c8bb 4px 6px); }
.event-answer-counts .answer-unanswered::before,#attendance-counts .answer-unanswered::before { background:repeating-linear-gradient(90deg,#d8dce2 0 3px,#f5f6f8 3px 6px); }


.candidate-list-area, .event-attendance-fields { margin: 18px 0; padding: 0; min-width: 0; border: 0; }
.candidate-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid #aab0b7; }
.candidate-list-heading h3 { margin: 0; }
.event-candidate-list { list-style: none; padding: 0; margin: 0; }
.event-candidate-list li { display: grid; grid-template-columns: minmax(105px, 1fr) minmax(0, 2fr) auto; align-items: center; gap: 4px 12px; padding: 5px 0; border-bottom: 1px solid #dce1e5; }
.event-candidate-list li > span { min-width: 0; overflow-wrap: anywhere; }
.event-candidate-list small { display: block; color: #4b535c; }
.candidate-row-actions, .candidate-list-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.candidate-row-actions button { min-height: 38px; padding: 4px 9px; }
.candidate-list-actions { margin-top: 12px; }
.event-attendance-fields legend { padding: 0; font-weight: 600; }
#attendance-extra { margin-top: 8px; }
#attendance-extra summary { color: var(--accent); cursor: pointer; }
#attendance-extra .event-candidate-form-grid { margin-top: 8px; }
.event-candidate-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 12px; }
.event-candidate-form-grid label { display: block; padding: 0; margin: 0; font-size: 13px; }
.event-candidate-form-grid input { display: block; min-width: 0; margin-top: 4px; }
.candidate-location { grid-column: 1 / -1; }
.candidate-dialog-heading, .candidate-calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.candidate-dialog-heading button, .candidate-calendar-heading button { min-width: 44px; min-height: 44px; padding: 4px; }
.candidate-calendar-days, .candidate-calendar-weekdays { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; text-align: center; }
.candidate-calendar-weekdays { color: #4b535c; font-size: 13px; margin-bottom: 4px; }
.candidate-calendar-days button { min-width: 0; min-height: 44px; padding: 0 2px; }
.candidate-calendar-days button[aria-pressed="true"] { border-color: #4b81a6; background: #d8eaf8; color: #174d74; font-weight: 700; }
#candidate-dialog-error, #candidate-batch-error { color: #8c3328; }
@media (max-width: 540px) {
  .event-candidate-list li { grid-template-columns: minmax(0,1fr) auto; }
  .event-candidate-list li > span { grid-column: 1; grid-row: 2; }
  .candidate-row-actions { grid-column: 2; grid-row: 1 / span 2; justify-content: end; }
  .candidate-row-actions button { min-height: 44px; }
  dialog.event-candidate-dialog { padding: 14px; }
  .event-candidate-dialog .dialog-actions { flex-direction: row; gap: 8px; margin-top: 14px; }
  .event-candidate-dialog .dialog-actions button { width: auto; }
}

.summary-list .summary-day-heading th {
  background: #e7eff5;
  color: #23445b;
  border-top: 2px solid #b3c5d2;
  font-weight: 700;
}
@media (max-width: 640px) {
  .summary-list.summary-by-date { min-width: 460px; }
  .summary-list.summary-by-date th:nth-child(2) { min-width: 120px; }
  .summary-list.summary-by-date th:nth-child(3) { min-width: 190px; }
}

.answer-day { margin-block: 24px 32px; }
.answer-day > h4 {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-top: 2px solid #b3c5d2;
  background: #e7eff5;
  color: #23445b;
}


@media (max-width: 680px) {
  #summary-table-area { overflow: visible; }
  #summary-table-area::after { display: none; }
  #summary-table-area .summary-list,
  #summary-table-area .summary-list tbody { display: block; width: 100%; min-width: 0; }
  #summary-table-area .summary-list caption { display: block; text-align: left; }
  #summary-table-area thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  }
  #summary-table-area tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start;
    gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid #cbd0d5;
  }
  #summary-table-area tbody .summary-day-heading { display: block; padding: 0; border: 0; }
  #summary-table-area .summary-day-heading th { display: block; width: 100%; }
  #summary-table-area td { min-width: 0; padding: 0; border: 0; font-size: 14px; }
  #summary-table-area td:nth-child(2) { grid-column: 1; grid-row: 1 / span 2; }
  #summary-table-area td:nth-child(2) p { margin: 4px 0; }
  #summary-table-area td:nth-child(3) { grid-column: 1 / -1; grid-row: 3; margin-top: 6px; }
  #summary-table-area .summary-score { grid-column: 2; grid-row: 1; padding: 4px 8px; font-size: 16px; text-align: right; }
  #summary-table-area .summary-rank { grid-column: 2; grid-row: 2; text-align: right; padding-inline: 8px; }
  #summary-table-area .event-answer-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #summary-table-area .event-answer-counts > * { min-height: 44px; padding-inline: 8px; text-align: center; }
}


.summary-top-counts { display: block; margin-top: 6px; font-weight: 400; }
.event-result-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.event-result-heading h3 { margin: 0; }
.summary-scope { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
#summary-help:empty { display: none; }
#summary-people-hint { margin-block: 8px; }
.roster-mobile { display: none; }
.roster-mobile article { border-top: 1px solid #cbd0d5; padding: 12px 0; overflow-wrap: anywhere; }
.roster-mobile h4 { margin: 0; }
.roster-mobile p { margin: 6px 0; }
.roster-mobile ul { padding-left: 20px; }
.roster-mobile li { margin-block: 8px; }
@media (max-width: 680px) {
  body[data-event-view="summary"] #event-meta { margin-block: 6px; }
  .event-summary-overview { margin-block: 12px; }
  #summary-member-filter { margin-block: 8px 16px; padding-bottom: 4px; }
  #summary-sort-area { margin-block: 12px; }
  .roster-desktop { display: none; }
  .roster-mobile { display: block; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.event-list-title { font-weight: 600; }
.event-list-action { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }
.home-event-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 16px; padding: 8px 0; }
.home-event-list li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; text-decoration: underline; overflow-wrap: anywhere; }
.notification-metadata summary { min-height: 32px; padding-block: 4px; font-size: 13px; }
@media (max-width: 680px) {
  .home-event-list li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .home-event-list li .home-event-deadline { grid-column: auto; }
  .event-list.mobile-records td:first-child:not([colspan]), .event-list.mobile-records td:last-child:not([colspan]) { display: block; }
  .event-list.mobile-records td:first-child::before, .event-list.mobile-records td:last-child::before { display: none; }
}

.weekly-calendar { margin: 18px 0 30px; }
.weekly-grid { display: grid; grid-template-columns: 46px repeat(7,minmax(0,1fr)); gap: 5px 0; margin: 10px 0 16px; text-align: center; }
.weekly-grid > strong { color: #244769; font-size: 14px; }
.weekly-scale, .weekly-column { height: 48rem; }
.weekly-scale { display: flex; flex-direction: column; justify-content: space-between; transform: translateY(-.55em); height: calc(48rem + 1.1em); font-size: 11px; }
.weekly-column { position: relative; cursor: crosshair; border: 1px solid #c4d2df; border-right-width: 0; touch-action: none; background: repeating-linear-gradient(to bottom,#e1e9ef 0 1px,#f8fafc 1px 3rem); }
.weekly-column:last-child { border-right-width: 1px; }
.weekly-column:nth-last-child(-n+2) { background: repeating-linear-gradient(to bottom,#e1e9ef 0 1px,#eef3f8 1px 3rem); }
.weekly-block { position: absolute; inset-inline: 2px; overflow: hidden; min-height: 0; background: #cfe9f5; color: #123c55; border: 1px solid #467c9e; padding: 0 2px; text-align: center; font-size: 11px; line-height: 1.1; }
button.weekly-block:hover { background: #b5dcf0; }
.weekly-preview { background: #89c6e7; pointer-events: none; }
.weekly-hover-time { position: absolute; z-index: 1; inset-inline: 0; border-top: 1px dashed #276589; pointer-events: none; }
.weekly-hover-time span { position: absolute; top: 0; right: 3px; transform: translateY(-50%); padding: 2px 5px; border-radius: 3px; background: #194962; color: #fff; font-size: 12px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.weekly-hover-time-start span { transform: none; }
.weekly-time-editor { margin: 18px 0; }
.weekly-days { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0; }
.weekly-days button { padding: 6px 9px; min-width: 38px; }
.weekly-days button[aria-pressed="true"], .weekly-editor-days button[aria-pressed="true"] { background: #d8eaf8; color: #174d74; border-color: #4b81a6; font-weight: 700; }
.weekly-editor-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; margin: 10px 0 16px; }
.weekly-editor-days button { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 48px; min-width: 0; padding: 3px 1px; }
.weekly-editor-days small { font-size: 11px; white-space: nowrap; }
.weekly-day-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding-bottom: 6px; border-bottom: 1px solid #c4d2df; }
.weekly-day-heading h4 { margin: 0; font-size: 15px; }
.weekly-time-editor .weekly-day-ranges { margin-top: 0; }
.weekly-time-editor .weekly-day-ranges li { font-variant-numeric: tabular-nums; font-weight: 600; }
.weekly-save-bar { position: sticky; z-index: 2; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 0 max(8px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #c4d2df; }
.weekly-save-bar p { margin: 0; }
.weekly-time-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.weekly-time-form label { margin: 0; }
.weekly-time-form input { display: block; min-width: 0; max-width: 100%; margin-top: 4px; }
#weekly-dialog-error { color: #8c3328; }
.weekly-day-ranges, #weekly-best { padding-left: 0; margin: 12px 0 0; }
.weekly-day-ranges li, #weekly-best li { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 5px 0; border-bottom: 1px solid #cfdae4; }
.weekly-day-ranges button, #weekly-best button { min-height: 38px; padding: 5px 10px; }
@media (max-width: 740px), (hover: none), (pointer: coarse) { .weekly-calendar { display: none; } }

@media (max-width: 640px) {
  .weekly-time-editor .weekly-day-ranges button { min-height: 44px; }
  #weekly-time-dialog .dialog-actions { flex-direction: row; margin-top: 14px; gap: 8px; }
  #weekly-time-dialog .dialog-actions button { width: auto; }
}
.weekly-heatmap-area { margin: 18px 0; }
.weekly-heatmap-area h3 { margin-bottom: 6px; }
.weekly-summary-view { margin: 10px 0; }
.weekly-offset-controls { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 2px 10px; max-width: 390px; margin: 10px 0; }
.weekly-offset-controls label { padding: 0; font-weight: 600; }
.weekly-offset-controls output { color: #174d74; font-variant-numeric: tabular-nums; }
.weekly-offset-controls input { grid-column: 1 / -1; min-height: 44px; padding: 0; border: 0; background: transparent; accent-color: #285a75; }
.weekly-heatmap-legend { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0; font-size: 12px; }
.weekly-heatmap-legend span { padding: 3px 7px; border: 1px solid #c0c9cc; }
.heat-0 { background: #f8fafb; color: #555e68; }
.heat-1 { background: #e4f0e8; color: #234d3d; }
.heat-2 { background: #c5e2d0; color: #173d2d; }
.heat-3 { background: #95c5ab; color: #163628; }
.heat-4 { background: #245f4d; color: #fff; }
.weekly-heatmap-scroll { max-height: min(70vh, 42rem); overflow: auto; border: 1px solid #c0c9cc; scroll-padding-top: 36px; }
.weekly-heatmap { width: 100%; table-layout: fixed; border-spacing: 0; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.weekly-heatmap thead th { position: sticky; top: 0; z-index: 1; padding: 6px 4px; background: #edf1f4; border-bottom: 1px solid #aab0b7; }
.weekly-heatmap th:first-child { width: 108px; }
.weekly-heatmap tbody th { background: #f5f6f7; color: #4b535c; font-weight: 400; }
.weekly-heatmap .heat-hour > * { border-top: 1px solid #9daeb7; }
.weekly-heatmap .heat-hour th { color: #22272e; font-weight: 700; }
.weekly-heatmap td { height: 22px; padding: 0; border-right: 1px solid rgb(0 0 0 / .08); }
.weekly-heatmap td button { display: block; width: 100%; min-height: 22px; padding: 1px 2px; border: 0; background: transparent; color: inherit; font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }
.weekly-heatmap:not(.weekly-heatmap-compact) td, .weekly-heatmap:not(.weekly-heatmap-compact) td button { min-height: 34px; height: 34px; }
.weekly-heatmap td button:hover { background: rgb(0 0 0 / .12); }
.weekly-heatmap td.weekly-heatmap-target { outline: 2px solid #235e86; outline-offset: -2px; }
.weekly-heatmap td.weekly-heatmap-target button:focus-visible { outline: 1px solid currentColor; outline-offset: -5px; }
#weekly-best .weekly-candidate-jump { padding-inline: 0; border: 0; background: transparent; color: #174d74; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.weekly-heatmap td button:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
@media (max-width: 640px) {
  .weekly-heatmap-scroll { max-height: 65vh; }
  .weekly-heatmap-mobile-week { font-size: 12px; }
  .weekly-heatmap-mobile-week th:first-child { width: 45px; }
  .weekly-heatmap-mobile-week thead th { padding: 0; }
  .weekly-heatmap-mobile-week thead button { width: 100%; min-height: 44px; padding: 0; border: 0; background: transparent; color: #174d74; text-decoration: underline; text-underline-offset: 3px; }
  .weekly-heatmap td, .weekly-heatmap td button,
  .weekly-heatmap:not(.weekly-heatmap-compact) td, .weekly-heatmap:not(.weekly-heatmap-compact) td button { min-height: 44px; height: 44px; }
}

.weekly-setup-steps button { border: 0; border-bottom: 3px solid transparent; }
.weekly-setup-steps button[aria-current="step"] { color: #174d74; border-bottom-color: #285a75; background: #e7eff5; font-weight: 700; }
.weekly-class-table { width: 100%; table-layout: fixed; border-spacing: 0; text-align: center; }
.weekly-class-table th, .weekly-class-table td { border-bottom: 1px solid #cfdae4; }
.weekly-class-table thead th { padding: 6px 0; background: #edf1f4; }
.weekly-class-table th:first-child { width: 112px; text-align: left; }
.weekly-class-table th small { display: block; font-weight: 400; color: #4b535c; font-size: 11px; }
.weekly-class-table td { padding: 0; border-right: 1px solid #e0e5e8; }
.weekly-class-table td label { display: grid; place-items: center; min-height: 44px; padding: 0; cursor: pointer; }
.weekly-class-table td label:has(input:checked) { background: #e1eaf0; }
.weekly-class-table input { width: 19px; height: 19px; min-height: 0; margin: 0; accent-color: #285a75; }
.weekly-class-block { background: #e0e4e8; border-color: #7a8793; color: #36424d; pointer-events: none; }
.weekly-presets { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,103px),1fr)); gap: 5px; }
.weekly-presets button { display: grid; justify-items: center; min-width: 0; padding: 5px 3px; }
.weekly-presets small { font-size: 11px; }
.weekly-presets button[aria-pressed="true"] { background: #d8eaf8; border-color: #4b81a6; color: #174d74; }
.weekly-class-conflict { margin: 12px 0; padding: 8px 12px; background: #fbf3df; border-left: 3px solid #997024; }
.weekly-class-conflict p { margin: 0 0 5px; }
@media (max-width: 480px) { .weekly-class-table th:first-child { width: 81px; } }

.weekly-mobile-calendar { display: none; }
@media (max-width: 740px), (hover: none), (pointer: coarse) {
  .weekly-mobile-calendar { display: block; margin: 12px 0 20px; }
  .weekly-mobile-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 12px; font-size: 12px; }
  .weekly-mobile-legend span::before { display: inline-block; width: 12px; height: 12px; margin-right: 5px; vertical-align: -2px; border: 1px solid; content: ''; }
  .weekly-mobile-free::before { background: #cfe9f5; border-color: #467c9e; }
  .weekly-mobile-class::before { background: #e0e4e8; border-color: #7a8793; }
  .weekly-mobile-grid { display: grid; grid-template-columns: 46px minmax(0,1fr); }
  .weekly-mobile-track { position: relative; height: 24rem; border: 1px solid #c4d2df; background: repeating-linear-gradient(to bottom,#e1e9ef 0 1px,#f8fafc 1px 3rem); }
  .weekly-mobile-scale { display: flex; height: calc(24rem + 1.1em); flex-direction: column; justify-content: space-between; transform: translateY(-.55em); font-size: 11px; color: #4b535c; }
  .weekly-mobile-track .weekly-block { inset-inline: 4px; text-align: left; padding-inline: 7px; font-weight: 600; }
}
