:root {
  color-scheme: light;
  --page: #f7f6fa;
  --paper: #fff;
  --ink: #2c2337;
  --muted: #695f76;
  --line: #e9e4ef;
  --rail: #f4eff9;
  --purple: #65469e;
  --purple-deep: #523580;
  --purple-soft: #eee7f9;
  --green: #24684c;
  --red: #a33f5e;
  --page-gutter: clamp(12px, 2vw, 24px);
  --attendance-date-width: 126px;
  --attendance-count-width: 24px;
  --sans: "Inter", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font: 14px/1.55 var(--sans);
  color: var(--ink);
  background: var(--page);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 3px solid #9b75dd; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 20; padding: .5rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
.shell { display: grid; grid-template-columns: 208px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; background: var(--rail); color: var(--ink); border-inline-end: 1px solid var(--line); padding: 14px 10px 10px; overflow: auto; }
.brand { display: flex; align-items: center; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.brand img { display: block; width: min(100%, 132px); height: auto; object-fit: contain; }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: .15em; }
.nav-group + .nav-group { margin-top: 10px; }
.nav-label { margin: 0 8px 3px; font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: .12em; }
.nav-item { display: flex; align-items: center; gap: 7px; min-height: 32px; margin: 1px 0; border-radius: 8px; padding: 4px 8px; color: var(--ink); font-size: 13px; }
.nav-item:hover { background: #ebe2f4; }
.nav-item[aria-current="page"] { background: var(--purple-deep); color: white; font-weight: 700; }
.nav-item[aria-current="page"] svg { color: #f0e5ff; }
.nav-item svg { color: var(--purple); }
.nav-count { margin-left: auto; font-size: 10px; border-radius: 20px; padding: 0 6px; background: #6a4c91; color: white; }
.profile { margin-top: auto; padding-top: 10px; }
.profile-card { display: flex; gap: 7px; align-items: center; border-top: 1px solid #ded3e8; padding: 8px 4px 0; }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; flex: none; border-radius: 50%; background: #4b3964; color: #f1e0ff; font-size: 12px; font-weight: 750; }
.profile-name { flex: 1; min-width: 0; line-height: 1.4; }
.profile-name strong, .profile-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-name small { color: var(--muted); font-size: 10px; }
.profile a { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 6px; color: var(--purple-deep); }
.profile a:hover { background: #ebe2f4; }
.workspace { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 9px; height: 46px; padding: 0 var(--page-gutter); border-bottom: 1px solid var(--line); background: #fff; }
#breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
#breadcrumb strong { color: var(--ink); }
main { max-width: 1600px; margin: auto; padding: 15px var(--page-gutter) 24px; }
.heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-bottom: 12px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(23px, 3vw, 32px); letter-spacing: -.045em; line-height: 1.3; }
h2 { font-size: 16px; line-height: 1.4; }
h3 { font-size: 14px; }
.heading p, .muted { color: var(--muted); }
.heading p { margin-top: 3px; }
.hero { position: relative; overflow: hidden; isolation: isolate; display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 16px 18px; margin-bottom: 12px; border-radius: 14px; background: radial-gradient(ellipse at 92% 14%, #76559c, transparent 53%), linear-gradient(125deg, #2b2040 5%, #483160 100%); color: #fff; }
.hero::before, .hero::after { position: absolute; content: ""; z-index: -1; pointer-events: none; border: 1px solid #e3c8ff35; width: 440px; height: 220px; top: -25px; right: -100px; border-radius: 50%; transform: rotate(-35deg); }
.hero::after { width: 510px; height: 270px; top: -31px; right: -138px; box-shadow: 0 0 0 25px #e4c8ff10, 0 0 0 55px #e4c8ff0a; }
.hero-mark { color: #ebd5ff; display: flex; align-items: center; gap: 5px; font-size: 11px; margin-bottom: 5px; letter-spacing: .1em; }
.hero h1 { font-size: clamp(29px, 4.6vw, 44px); }
.hero p { color: #e8dbf4; margin-top: 4px; }
.hero .button { color: #43265f; background: #f4eaff; border-color: #f4eaff; }
.hero .button:hover { background: white; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 7px; margin-bottom: 9px; }
@media (min-width: 901px) {
  .home-metrics:has(> :nth-child(2)) { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 9px; }
}
.metric { padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); min-width: 0; }
.metric-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.metric-top svg { color: var(--purple); }
.metric b { display: block; margin-top: 2px; font-size: 25px; line-height: 1.2; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.metric b small { color: var(--muted); font-size: 11px; font-weight: 500; margin-left: 3px; }
.grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 9px; align-items: start; }
.stack { display: grid; gap: 9px; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 3px 8px #39265506; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 11px; border-bottom: 1px solid var(--line); }
.card-body { padding: 10px 11px; }
.card-title { display: flex; align-items: center; gap: 8px; }
.card-title svg { color: var(--purple); }
.empty { padding: 13px 10px; text-align: center; color: var(--muted); }
.empty strong { display: block; margin: 8px 0 2px; color: var(--ink); }
.empty svg { color: var(--purple); }
.toolbar { display: flex; align-items: end; gap: 7px; flex-wrap: wrap; margin-bottom: 8px; }
.toolbar label { min-width: min(240px, 100%); }
.actions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; padding: 4px 8px; border: 1px solid #ddd4e8; border-radius: 8px; background: white; color: #503d63; font-size: 12px; font-weight: 700; white-space: nowrap; }
.button:hover { background: #f5f0fb; border-color: #c6b3dc; }
.primary { color: #fff; border-color: var(--purple); background: var(--purple); }
.primary:hover { color: white; border-color: var(--purple-deep); background: var(--purple-deep); }
.subtle { background: var(--purple-soft); border-color: transparent; color: var(--purple-deep); }
.danger { color: var(--red); }
.icon-button { width: 34px; height: 34px; min-height: 0; padding: 0; }
.icon { width: 17px; height: 17px; vertical-align: middle; flex: none; }
.form { display: grid; gap: 8px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; align-items: start; }
.event-date-row { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr) minmax(0, 9.5rem) 34px; align-items: end; gap: 6px; }
.event-date-row + .event-date-row { margin-top: 6px; }
.event-date-row:has(.event-reserve) { grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr) minmax(0, 9.5rem) max-content 34px; }
.event-reserve { white-space: nowrap; }
.event-date-row + .event-date-row :is(label span, .event-date-caption) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.event-date-row input { min-width: 0; }
.event-date-field { display: grid; gap: 3px; min-width: 0; font-size: 12px; font-weight: 700; }
.event-date-value { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 32px; width: 100%; padding: 4px 7px; border: 1px solid #ddd4e8; border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 400; text-align: left; white-space: nowrap; }
.event-date-value .icon { width: 15px; height: 15px; color: var(--purple); }
button.event-date-value:hover { background: var(--purple-soft); }
.event-actions { justify-content: space-between; }
.event-actions button[type="submit"] { margin-left: auto; }
@media (max-width: 480px) {
  .event-date-row:has(.event-reserve) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-date-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-date-row label:nth-child(2) { grid-row: 2; grid-column: 1 / -1; }
  .event-date-row:has(> .icon-button) label:nth-child(2) { margin-right: 40px; }
  .event-date-row > .icon-button { grid-row: 2; grid-column: 2; justify-self: end; }
  .event-date-row + .event-date-row { margin-top: 10px; }
}
.form-error { color: var(--red); }
.form-error:empty { display: none; }
label { display: grid; gap: 3px; font-size: 12px; font-weight: 700; }
input, select, textarea { width: 100%; max-width: 100%; min-height: 32px; color: var(--ink); border: 1px solid #ddd4e8; border-radius: 8px; padding: 4px 7px; background: white; }
textarea { resize: vertical; }
input[type="checkbox"] { width: 17px; min-height: 17px; height: 17px; padding: 0; accent-color: var(--purple); }
#applicationRows table:has(input[name="winner"]) :is(th, td):nth-last-child(2) { text-align: center; }
#applicationRows input[name="winner"] { display: block; margin: 0 auto; }
#applicationRows :is(th, td) { padding: 4px 5px; }
#applicationRows th { white-space: nowrap; }
#applicationRows tbody tr:nth-child(even),
.lottery-winners-panel tbody tr:nth-child(even) { background: #f7f3fa; }
.application-sort-arrows { display: inline-flex; gap: 2px; margin-inline-start: 4px; }
.application-sort-arrows button { min-height: 0; padding: 0 3px; border-radius: 4px; line-height: 1.3; }
.application-sort-arrows button[aria-pressed="true"] { background: var(--purple-soft); color: var(--purple); }
.lottery-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 27%); gap: 9px; align-items: start; }
.guest-warning-tag { display: inline-block; margin-inline-start: 4px; padding: 1px 4px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.guest-warning-caution { background: #fff2ac; color: #584100; }
.guest-warning-banned { background: #ffd6d6; color: #801323; }
.rotation-top { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 8px; }
.rotation-warnings { margin: 0 0 8px auto; padding-inline-start: 20px; color: var(--red); font-size: 12px; }
@media (min-width: 901px) {
  .lottery-winners-panel { position: sticky; top: 8px; min-width: 0; max-height: calc(100dvh - 16px); overflow: auto; }
}
@media (max-width: 900px) { .lottery-layout { grid-template-columns: minmax(0, 1fr); } }
.hint { font-size: 12px; color: var(--muted); }
.scroller { overflow: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.attendance-legend { color: var(--muted); padding: 5px 8px; font-size: 12px; }
.attendance-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.attendance-filters label:first-child { display: flex; align-items: center; white-space: nowrap; }
.choice input[type="radio"] { width: 17px; min-width: 0; height: 17px; min-height: 0; margin: 0; accent-color: var(--purple); }
main:has(.member-access-table) { max-width: none; padding-inline: clamp(6px, 1vw, 16px); }
.member-access-table :is(th, td) { padding: 3px 5px; border: 1px solid var(--line); }
.member-access-name { min-width: 135px; position: sticky; left: 0; background: var(--paper); z-index: 1; }
.member-access-generation { min-width: 60px; text-align: center; white-space: nowrap; }
.member-access-attributes { min-width: 175px; }
.member-access-table .access-feature { text-align: center; white-space: normal; line-height: 1.3; }
.member-access-table .access-option { min-width: 31px; text-align: center; }
.member-access-table .access-start { border-left: 2px solid #c9bed5; }
.access-option input { display: block; width: 14px; min-height: 0; height: 14px; margin: 0 auto; accent-color: var(--purple); cursor: pointer; }
td .choice input[type="checkbox"] { min-width: 0; margin: 0; }
.instance-choices { flex-wrap: nowrap; white-space: nowrap; }
.assignment-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 9px; margin-top: 9px; }
.assignment-layout > * { min-width: 0; }
.assignment-editor .card-head { position: sticky; top: 8px; z-index: 2; background: var(--paper); border-radius: 13px 13px 0 0; }
.assignment-save { min-height: 42px; padding: 7px 18px; font-size: 14px; }
.assignment-layout tbody tr:nth-child(even) { background: #f7f3fa; }
.assignment-roster :is(th, td) { padding-inline: 5px; }
.assignment-roster :is(th, td):is(:nth-child(2), :nth-child(3), :nth-child(4), :nth-child(5), :nth-child(6)) { text-align: center; }
.assignment-roster td:nth-child(4) .instance-choices { justify-content: center; }
.assignment-roster td input.assignment-role { display: block; min-width: 0; margin: auto; }
#assignmentResult { position: sticky; top: 8px; }
#assignmentResult .card { display: flex; flex-direction: column; max-height: calc(100dvh - 16px); }
#assignmentResult .card-head { flex: none; }
#assignmentResult .card-body { min-height: 0; overflow: auto; }
.assignment-result-table table { table-layout: fixed; }
.assignment-result-table thead th:first-child { width: 34%; }
.assignment-result-table thead th:nth-child(2) { background: #ffebd9; }
.assignment-result-table thead th:nth-child(3) { background: #e8f1e4; }
.assignment-result-table :is(th, td) { padding: 4px 5px; border: 1px solid #d1c4da; white-space: normal; overflow-wrap: anywhere; }
.assignment-result-table :is(th, td):not(:first-child) { text-align: center; }
.assignment-result-table tbody tr:last-child td { border-bottom: 1px solid #d1c4da; }
.assignment-result-table tbody th { background: transparent; }
.assignment-result-table .assignment-section-start > * { border-top: 2px solid #766384; }
.attendance-scroll { min-width: 0; padding-bottom: 6px; }
.attendance-table { --attendance-header-size: 11px; width: 1px; table-layout: fixed; text-align: center; line-height: 1.25; }
.attendance-date-col { width: var(--attendance-date-width); }
.attendance-count-col { width: var(--attendance-count-width); }
.attendance-name-col { width: calc(5 * var(--attendance-header-size) + 8px); }
.attendance-table thead th { font-size: var(--attendance-header-size); }
.attendance-table th, .attendance-table td { padding: 4px 3px; border: 1px solid #e5ddea; white-space: normal; overflow-wrap: anywhere; }
.attendance-table tbody tr:last-child > * { border-bottom: 1px solid #e5ddea; }
.attendance-table .attendance-day { position: sticky; left: 0; z-index: 1; background: #faf8fc; text-align: left; padding-inline: 5px; }
.attendance-name-link { border: 0; background: none; padding: 0; color: var(--purple-deep); text-decoration: underline; text-underline-offset: 2px; max-width: 100%; font: inherit; }
.attendance-table .attendance-mark { font-size: 14px; }
.attendance-day strong, .attendance-day small, .attendance-edit-row strong, .attendance-edit-row small { display: block; }
.attendance-day strong { color: var(--ink); font-size: 11px; }
.attendance-day small, .attendance-edit-row small { font-weight: 400; }
.attendance-year { font-size: 10px; color: var(--muted); }
.attendance-table .attendance-self { background: var(--purple-soft); }
.attendance-table .attendance-selected .attendance-day { background: var(--purple-soft); }
.attendance-reminder { color: var(--purple-deep); }
.attendance-reminder .icon { width: 12px; height: 12px; }
.attendance-count { font-variant-numeric: tabular-nums; color: var(--muted); }
.attendance-mark { font-size: 16px; font-weight: 700; color: var(--muted); }
.attendance-mark:is(.yes, .no) { display: inline-grid; place-items: center; min-width: 26px; height: 23px; border-radius: 4px; color: white; }
.attendance-mark.yes { background: #42d582; color: #103522; }
.attendance-mark.no { background: #ff5277; color: #4b1121; }
.attendance-edit-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.attendance-choices { display: flex; flex-wrap: wrap; gap: 4px; }
.attendance-choices label { position: relative; cursor: pointer; }
.attendance-choices input { position: absolute; width: 1px; min-height: 0; height: 1px; opacity: 0; }
.attendance-choices span { padding: 5px 7px; border: 1px solid var(--line); border-radius: 7px; }
.attendance-choices input:checked + span { background: var(--purple-soft); color: var(--purple-deep); border-color: var(--purple); }
.attendance-choices input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 1px; }
.room-settings-panel { justify-self: start; max-width: 100%; min-width: 0; }
.room-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.room-settings > .scroller { min-width: 0; max-width: 100%; }
.rooms-table { width: max-content; max-width: 100%; text-align: center; white-space: nowrap; }
.rooms-table th, .rooms-table td { border: 1px solid #e5ddea; padding: 1px 3px; }
.rooms-table .room-count { padding-inline: 7px; background: #f7f3fb; font-variant-numeric: tabular-nums; }
.rooms-table tbody tr:last-child td { border-bottom: 1px solid #e5ddea; }
.room-toggle { display: grid; place-items: center; position: relative; width: 23px; height: 23px; margin: auto; cursor: pointer; }
.room-toggle input { position: absolute; inset: 0; opacity: 0; min-width: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.room-toggle span { display: grid; place-items: center; width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 4px; color: transparent; }
.room-toggle input:checked + span { color: var(--red); background: #fae9ef; border-color: var(--red); }
.room-toggle input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 1px; }
.rotation-boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; align-items: start; }
.rotation-unplaced { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; font-size: 12px; }
.rotation-unplaced { margin-top: 7px; }
.rotation-board table { table-layout: fixed; }
.rotation-board th:first-child { width: 44px; }
.rotation-board :is(th, td) { padding: 2px 4px; text-align: center; border: 1px solid #d1c4da; }
.rotation-board tbody tr:last-child td { border-bottom: 1px solid #d1c4da; }
.rotation-board thead th { background: #e9e0f4; }
.rotation-board .rotation-group-a { background: #e6eefb; }
.rotation-board .rotation-group-b { background: #f7e7ef; }
main:has(.rotation-history-list) { max-width: none; padding-inline: clamp(6px, 1vw, 16px); }
.rotation-history-boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rotation-history-boards h3 { margin: 0 0 3px; font-size: 13px; }
.rotation-history-board table { table-layout: fixed; }
.rotation-history-label { width: clamp(38px, 5vw, 64px); }
.rotation-history-board :is(th, td) { padding-inline: 2px; }
.rotation-history-board .rotation-guest-name { background: transparent; padding: 0; }
.rotation-history-board td.rotation-single-service { background: #fff4c2; }
@media (max-width: 850px) { .rotation-history-boards { grid-template-columns: minmax(0, 1fr); } }
.rotation-history-board :is(th, td, .name) { white-space: normal; overflow-wrap: anywhere; }
.rotation-history-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 2px 4px 5px; }
.ticket-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 8px; }
.ticket-columns > .card { min-width: 0; }
main:has(.reward-points-table) { max-width: none; padding-inline: clamp(6px, 1vw, 16px); }
.scroller:has(> .reward-points-table) { padding-bottom: 10px; }
.reward-points-table { table-layout: fixed; width: 1px; }
.reward-date-col { width: 126px; }
.reward-title-col { width: 135px; }
.reward-member-col { width: 58px; }
.reward-action-col { width: 56px; }
.reward-points-table :is(th, td) { border: 1px solid var(--line); padding: 2px 3px; white-space: nowrap; }
.reward-points-table :is(thead th:nth-child(n+3), tbody td) { text-align: center; }
.reward-points-table thead th:nth-child(n+3) { padding-inline: 1px; }
.reward-points-table thead th:nth-child(n+3) .name { display: block; white-space: normal; overflow-wrap: anywhere; }
.reward-points-table tbody th { white-space: normal; overflow-wrap: anywhere; }
.reward-point-inputs input { min-height: 26px; padding: 2px 3px; }
.reward-points-table .reward-point-inputs td:nth-child(n+3) { padding-inline: 1px; }
.reward-point-inputs input[data-reward-field="points"] { width: 100%; min-width: 0; text-align: center; }
.reward-point-inputs input[data-reward-field="title"] { width: 100%; }
.reward-point-inputs select { min-height: 26px; padding: 2px; }
.reward-recipients { margin: 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.reward-exchange { background: #eee7f9; }
.application-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: start; }
.application-chart { display: block; width: 100%; max-height: 300px; }
.application-chart text { fill: var(--muted); font-size: 12px; }
.application-chart :is(path, polyline) { fill: none; }
.chart-grid { stroke: var(--line); }
.chart-axis { stroke: var(--muted); }
.chart-reference { stroke: #9c6726; stroke-dasharray: 5 4; }
.chart-trend { stroke: var(--purple); stroke-width: 2; }
.application-chart circle { fill: var(--purple); cursor: help; }
.application-chart circle:is(:hover, :focus-visible) { fill: var(--purple-deep); stroke: var(--purple-deep); stroke-width: 3; }
@media (max-width: 750px) { .application-charts { grid-template-columns: minmax(0, 1fr); } }
.ticket-columns :is(th, td) { padding-inline: 4px; }
.ticket-columns :is(th, td):nth-child(-n+5) { white-space: nowrap; }
@media (max-width: 1050px) { .ticket-columns { grid-template-columns: minmax(0, 1fr); } }
.rotation-board tr:nth-child(7) > * { border-top: 2px solid #766384; }
.rotation-board .rotation-unused { background: #f4eff6; color: var(--muted); }
.rotation-person, .rotation-open-slot { min-height: 25px; border: 1px solid transparent; border-radius: 5px; padding: 2px 5px; font-size: 12px; }
.rotation-person { background: #eee7f9; color: var(--purple-deep); cursor: grab; }
.rotation-person[data-phase="guest"], .rotation-guest-name { background: #fff6cd; }
.rotation-guest-name { border-radius: 5px; padding: 2px 5px; }
.rotation-person[aria-pressed="true"] { background: var(--purple-deep); color: white; }
.rotation-slot .rotation-person, .rotation-open-slot { width: 100%; }
.rotation-open-slot { background: transparent; color: var(--muted); }
.rotation-slot:hover, .rotation-open-slot:focus-visible { background: #f7f3fb; }
@media (max-width: 1050px) { .rotation-boards { grid-template-columns: 1fr; } }
table { border-collapse: collapse; width: 100%; font-size: 13px; text-align: left; }
th, td { padding: 6px 8px; vertical-align: middle; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 11px; font-weight: 750; background: #faf8fc; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td input, td select { min-width: 96px; }
td .button { min-height: 29px; padding: 3px 8px; }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; padding: 2px 8px; background: #f0edf3; color: #665970; font-size: 11px; font-weight: 750; white-space: nowrap; }
.pill.yes, .pill.won { background: #e3f4eb; color: var(--green); }
.pill.no, .pill.lost { background: #fae9ef; color: var(--red); }
.pill.accent { background: var(--purple-soft); color: var(--purple-deep); }
.notice { display: flex; align-items: flex-start; gap: 9px; padding: 11px 14px; border-radius: 9px; color: #523580; background: #eee6fa; margin-bottom: 13px; }
.notice .icon { margin-top: 2px; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 11px; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.date { display: block; font-variant-numeric: tabular-nums; color: var(--purple-deep); font-weight: 750; font-size: 12px; }
.choice { display: inline-flex; align-items: center; gap: 4px; padding: 4px 5px; min-height: 27px; background: #f7f3fb; border-radius: 8px; font-weight: 600; }
.winner-list { display: flex; flex-wrap: wrap; gap: 6px; }
.winner-list:empty { display: none; }
.name { white-space: pre-wrap; overflow-wrap: anywhere; }
.setup { max-width: 540px; }
.request-form-layout { margin-inline: auto; }
.loading { color: var(--muted); }
.toast { position: fixed; z-index: 4; right: 24px; bottom: 24px; max-width: min(480px, calc(100% - 48px)); padding: 11px 15px; border-radius: 9px; color: white; background: #372649; box-shadow: 0 6px 22px #32184332; }
.toast.error { background: #8d3050; }
dialog { max-width: min(510px, calc(100% - 24px)); width: 100%; max-height: calc(100% - 24px); border: 1px solid var(--line); border-radius: 14px; padding: 0; color: var(--ink); }
dialog::backdrop { background: #211a3270; }
dialog .card-head { background: #faf8fc; }
#eventCalendar { max-width: min(320px, calc(100% - 24px)); }
.calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.calendar-nav button { min-width: 36px; font-size: 18px; }
.calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.calendar-days > span { font-size: 12px; color: var(--muted); }
.calendar-days button { min-height: 34px; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink); }
.calendar-days button:hover { background: var(--purple-soft); }
.calendar-days button[aria-current="date"] { border-color: var(--purple); }
.calendar-days button[aria-pressed="true"] { background: var(--purple-deep); color: white; }
.calendar-clear { margin-top: 8px; }
.ticket-used { background: #efedf0; color: #615b66; }
.ticket-used .pill { background: #e3e0e5; color: #615b66; }
.ticket-x-link { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 950px) {
  .assignment-layout { grid-template-columns: 1fr; }
  #assignmentResult { position: static; }
  #assignmentResult .card { max-height: none; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 180px minmax(0, 1fr); }
  .sidebar { padding-inline: 8px; }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; padding: 7px 9px; overflow: visible; border-inline-end: 0; border-block-end: 1px solid var(--line); }
  .brand { align-items: flex-start; margin: 0 0 4px; }
  .brand img { width: 64px; }
  .brand small, .nav-label { display: none; }
  #nav { display: flex; gap: 4px; overflow-x: auto; }
  .nav-group { display: flex; gap: 2px; flex-shrink: 0; }
  .nav-group + .nav-group { margin: 0; }
  .nav-item { min-height: 32px; white-space: nowrap; gap: 4px; padding: 4px 7px; font-size: 11px; }
  .nav-item .icon { width: 13px; height: 13px; }
  .profile { position: absolute; top: 7px; right: 12px; padding: 0; }
  .profile-card { border: 0; padding: 0; }
  .profile-name { max-width: 90px; }
  .topbar { height: 40px; }
  main { padding-top: 10px; }
  .hero { align-items: flex-start; flex-direction: column; padding: 12px; }
  .heading { align-items: flex-start; flex-wrap: wrap; }
}
