.night-roster { max-width: 1040px; min-width: 0; margin: 0 auto; color: var(--text, #1c3046); }
.night-roster .night-roster-heading { margin: 0 0 12px; }
.night-roster .night-roster-heading h1 { margin: 0; font-size: clamp(23px, 5vw, 30px); line-height: 1.2; letter-spacing: -.025em; }
.night-roster .night-roster-panel, .night-roster .night-roster-past-week { border: 1px solid var(--border, #d5e1ea); border-radius: 14px; background: var(--card, #fff); overflow: hidden; }
.night-roster .night-roster-week { padding: 14px; border-bottom: 1px solid var(--border, #d5e1ea); background: color-mix(in srgb, var(--primary, #267f8b) 7%, var(--card, #fff)); }
.night-roster .night-roster-week-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: 12px; font-weight: 600; color: var(--muted, #637888); }
.night-roster .night-roster-dates { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; }
.night-roster .night-roster-dates time { display: grid; gap: 4px; min-width: 0; }
.night-roster .night-roster-dates time:last-child { text-align: right; }
.night-roster .night-roster-dates time span { font-size: 11px; color: var(--muted, #637888); }
.night-roster .night-roster-dates strong { font-size: clamp(15px, 4vw, 19px); font-weight: 700; font-variant-numeric: tabular-nums; }
.night-roster .night-roster-to { color: var(--muted, #637888); font-size: 18px; }
.night-roster .night-roster-people { display: grid; grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; }
.night-roster .night-roster-people li { display: grid; grid-template-columns: 20px max-content minmax(0, 1fr); align-items: center; gap: 10px; min-height: 54px; padding: 10px 14px; box-sizing: border-box; border-bottom: 1px solid var(--border, #e2eaf0); }
.night-roster .night-roster-people li:last-child { border-bottom: 0; }
.night-roster .night-roster-serial { color: var(--muted, #637888); font-size: 11px; font-variant-numeric: tabular-nums; }
.night-roster .night-roster-token { border-radius: 6px; padding: 4px 6px; background: color-mix(in srgb, var(--primary, #267f8b) 9%, var(--card, #fff)); color: var(--text, #1c3046); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.night-roster .night-roster-name { min-width: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; line-height: 1.4; }
.night-roster .night-roster-empty { padding: 16px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted, #637888); }
.night-roster .night-roster-history { margin-top: 24px; }
.night-roster .night-roster-history > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.night-roster .night-roster-history h2 { margin: 0; font-size: 17px; }
.night-roster .night-roster-history > header > span { font-size: 12px; color: var(--muted, #637888); }
.night-roster .night-roster-past-week + .night-roster-past-week { margin-top: 8px; }
.night-roster .night-roster-past-week > summary { padding: 12px 14px; cursor: pointer; font-size: 13px; line-height: 1.5; }
.night-roster .night-roster-past-week[open] > summary { border-bottom: 1px solid var(--border, #d5e1ea); }
.night-roster .night-roster-past-dates { font-weight: 600; font-variant-numeric: tabular-nums; }
.night-roster .night-roster-past-count { display: block; margin-top: 2px; color: var(--muted, #637888); font-size: 11px; }
.night-roster .night-roster-past-week > summary:focus-visible { outline: 2px solid var(--primary, #267f8b); outline-offset: -3px; }
.night-roster .night-roster-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; font-size: 12px; }
@media (min-width: 720px) {
    .night-roster .night-roster-week { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 20px; }
    .night-roster .night-roster-week-top { display: grid; gap: 5px; margin: 0; }
    .night-roster .night-roster-week-top > span:first-child { font-size: 15px; color: var(--text, #1c3046); }
    .night-roster .night-roster-dates { width: 370px; }
    .night-roster .night-roster-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .night-roster .night-roster-people li { min-height: 60px; padding: 12px 20px; }
    .night-roster .night-roster-people li:nth-child(odd) { border-right: 1px solid var(--border, #e2eaf0); }
    .night-roster .night-roster-people li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
    .night-roster .night-roster-past-count { display: inline; margin-left: 12px; }
}
