.reservation-view{min-width:0;font-size:var(--size-base);line-height:1.8;color:var(--color-text-primary);overflow-wrap:anywhere}
.reservation-view h1{font-size:1.5rem;line-height:1.5}
.reservation-view h2{font-size:1.125rem;margin:var(--space-6) 0 var(--space-3);line-height:1.6}
.reservation-view p{margin:var(--space-3) 0}
.reservation-view .reservation-help,.reservation-instructor,.reservation-status{font-size:var(--size-support);color:var(--color-text-secondary)}
.reservation-card{padding:var(--space-4);margin:var(--space-4) 0;border:1px solid var(--color-border-default);border-radius:var(--radius-card);background:var(--color-surface-white)}
.reservation-card h2:first-child{margin-top:0}
.reservation-date{font-weight:600;font-variant-numeric:tabular-nums}
.reservation-view .reservation-wide{display:block;width:100%;min-height:var(--control-height);margin:var(--space-3) 0;padding:var(--space-3) var(--space-4);font-size:var(--size-base);line-height:1.6;white-space:normal}
.reservation-slot{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-1);width:100%;min-width:0;min-height:var(--control-height);margin:var(--space-2) 0;padding:var(--space-4);text-align:left;background:var(--color-surface-white);color:var(--color-text-primary);border:1px solid var(--color-tone-53);border-radius:var(--radius-card);font-size:var(--size-support);line-height:1.7;white-space:normal;overflow-wrap:anywhere}
.reservation-slot strong{font-size:var(--size-base);font-variant-numeric:tabular-nums}
.reservation-slot:hover:not(:disabled){background:var(--color-surface-selected);border-color:var(--color-action-primary)}
.reservation-slot-action{color:var(--color-action-primary);text-decoration:underline;text-underline-offset:.2em}
.reservation-slot:disabled{opacity:.6;cursor:default}
.reservation-empty{padding:var(--space-4);background:var(--color-tone-51);border-radius:var(--radius-card);color:var(--color-text-secondary);font-size:var(--size-support)}
/* The credit a booking uses (or a change keeps): the server's decision, in the body text's colour (docs/63). As #173's
   cards: a white row with the card's edge and the warning's radius, below the lesson card and above any notice. */
.reservation-view .reservation-credit{margin:var(--space-4) 0;padding:var(--space-3) var(--space-4);border:1px solid var(--color-border-default);border-radius:var(--radius-md);background:var(--color-surface-white);font-weight:600;line-height:1.6;font-variant-numeric:tabular-nums}
.reservation-warning{padding:var(--space-3);background:var(--color-surface-selected);border:1px solid var(--color-brand-rose);border-radius:var(--radius-control);font-size:var(--size-support)}
.reservation-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-2);margin-top:var(--space-3)}
.reservation-actions .reservation-wide{margin:0}
.reservation-view button:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:3px}
.reservation-panel{min-width:0;margin:0;padding:0;border:0}
.reservation-booking-mode{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-2);margin:var(--space-4) 0}
.reservation-booking-mode button{min-width:0;min-height:var(--control-height);padding:var(--space-3) var(--space-2);font:inherit;font-size:var(--size-support);white-space:normal;line-height:1.6}
#member .reservation-booking-mode button[aria-pressed=true]:disabled{opacity:1;background:var(--color-surface-selected);color:var(--color-action-primary);border:1px solid var(--color-action-primary)}
@media(max-width:360px){.reservation-card,.reservation-slot{padding:var(--space-3)}}
.reservation-chosen{padding:var(--space-3) var(--space-4)}
.reservation-chosen-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-2) var(--space-3);min-width:0}
.reservation-view .reservation-chosen-row h2{flex:1 1 auto;min-width:0;margin:0}
.reservation-view .reservation-chosen-change{flex:0 1 auto;min-width:0;min-height:var(--control-height);margin:0;padding:var(--space-2) var(--space-3);font:inherit;font-size:var(--size-support);line-height:1.5;white-space:normal}
.reservation-view .reservation-chosen .reservation-help{margin:var(--space-2) 0 0}
@media(max-width:360px){.reservation-chosen{padding-inline:var(--space-3)}}
/* The 7-day grid of both booking routes. The whole page scrolls; the week controls and day headings stay on top. */
.reservation-filter{margin:var(--space-4) 0 var(--space-2)}
.reservation-view .reservation-filter-label{margin:0 0 var(--space-2);font-size:var(--size-support);font-weight:600}
.reservation-filter-options{display:flex;flex-wrap:wrap;gap:var(--space-2);min-width:0}
.reservation-view .reservation-chip{flex:0 1 auto;min-width:0;max-width:100%;min-height:var(--control-height);padding:var(--space-2) var(--space-4);border:1px solid var(--color-tone-53);border-radius:calc(var(--control-height) / 2);background:var(--color-surface-white);color:var(--color-text-primary);font:inherit;font-size:var(--size-support);line-height:1.5;white-space:normal}
.reservation-view .reservation-chip[aria-pressed=true]{padding:calc(var(--space-2) - 1px) calc(var(--space-4) - 1px);border:2px solid var(--color-action-primary);background:var(--color-surface-selected);color:var(--color-action-primary);font-weight:700}
.reservation-view .reservation-legend{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-4);margin:var(--space-3) 0 var(--space-2);font-size:var(--size-support);color:var(--color-text-secondary)}
.reservation-legend-open{color:var(--color-action-primary);font-weight:700}
.reservation-week{--reservation-time-column:clamp(2.5rem,12vw,3.25rem);--reservation-week-sticky-height:calc(var(--control-height) + 3 * var(--space-2) + 1.5rem + 3.25rem);min-width:0;margin:0 0 var(--space-4);border:1px solid var(--color-border-default);border-radius:var(--radius-card);background:var(--color-surface-white)}
.reservation-week-sticky{position:sticky;top:0;z-index:3;border-radius:var(--radius-card) var(--radius-card) 0 0;background:var(--color-surface-white);box-shadow:0 1px 0 var(--color-border-default)}
.reservation-week-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-2);padding:var(--space-2)}
.reservation-view .reservation-week-step{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-1);min-width:0;min-height:var(--control-height);margin:0;padding:var(--space-2);font:inherit;font-size:var(--size-support);line-height:1.4;white-space:normal}
.reservation-week-step img{width:1.25rem;height:1.25rem;flex-shrink:0}
.reservation-view .reservation-week-month{position:relative;margin:0;padding:0 var(--space-2) var(--space-2);font-size:var(--size-base);line-height:1.5;text-align:center;font-variant-numeric:tabular-nums}
.reservation-week-month:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:-3px}
.reservation-week-head,.reservation-week-grid{display:grid;grid-template-columns:var(--reservation-time-column) repeat(7,minmax(0,1fr));min-width:0}
.reservation-week-head>*{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:3.25rem;padding:var(--space-1) 0;border-top:1px solid var(--color-border-default);border-right:1px solid var(--color-border-default);background:var(--color-tone-13);font-size:var(--size-small);line-height:1.3;color:var(--color-text-secondary);overflow-wrap:normal}
.reservation-week-head>:last-child{border-right:0}
.reservation-week-day strong{font-size:var(--size-base);color:var(--color-text-primary);font-variant-numeric:tabular-nums}
.reservation-week-day.is-sat{background:var(--color-tone-40)}
.reservation-week-day.is-sat strong{color:var(--color-action-booking-hover)}
.reservation-week-day.is-sun{background:var(--color-tone-41)}
.reservation-week-day.is-sun strong{color:var(--color-action-primary-hover)}
.reservation-week-day.is-today{box-shadow:inset 0 -3px var(--color-action-primary)}
/* Focused cells keep clear of the sticky block (nav + month heading + day row) and the floating member nav (WCAG 2.4.11). */
.reservation-week-time,.reservation-week-cell{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:0;min-height:var(--control-height);border-right:1px solid var(--color-border-default);border-bottom:1px solid var(--color-border-default);scroll-margin-top:calc(var(--reservation-week-sticky-height) + var(--space-2));scroll-margin-bottom:calc(var(--height-nav) + var(--size-small) + env(safe-area-inset-bottom) + var(--space-2))}
.reservation-week-grid>:nth-child(8n){border-right:0}
.reservation-week-time{background:var(--color-tone-13);font-size:var(--size-small);color:var(--color-text-secondary);font-variant-numeric:tabular-nums;overflow-wrap:normal}
.reservation-view .reservation-week-open{margin:0;padding:0;border-top:0;border-left:0;border-radius:0;background:var(--color-surface-white);color:var(--color-action-primary);font:inherit;font-size:1.25rem;line-height:1;cursor:pointer}
.reservation-view .reservation-week-open:hover:not(:disabled){background:var(--color-surface-selected)}
.reservation-view .reservation-week-open:focus-visible{position:relative;z-index:1;outline-offset:-3px}
.reservation-week-none{background:var(--color-tone-51);color:var(--color-text-secondary);font-size:var(--size-support)}
.reservation-week-closed,.reservation-week-day.is-closed,.reservation-legend-swatch{background:repeating-linear-gradient(135deg,var(--color-tone-53) 0 1px,var(--color-surface-white) 1px 7px)}
.reservation-legend-closed{display:inline-flex;align-items:center;gap:var(--space-1)}
.reservation-legend-swatch{display:inline-block;width:1rem;height:1rem;border:1px solid var(--color-border-default)}
.reservation-week-note .reservation-empty{margin:0 0 var(--space-3)}
.reservation-week-note .reservation-empty:last-child{margin-bottom:var(--space-4)}
.reservation-week-chooser h2:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:3px}
.reservation-visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:360px){.reservation-view .reservation-week-step{padding:var(--space-1)}.reservation-view .reservation-chip{padding-inline:var(--space-3)}.reservation-view .reservation-chip[aria-pressed=true]{padding-inline:calc(var(--space-3) - 1px)}}
/* A week loading, or one that could not be read, in place of the grid (reservations-ui.js loadWeek, docs/97 §17.10): the height that was drawn is kept (inline min-height), and the message stays in sight under the week's sticky header. */
.reservation-week-status{box-sizing:border-box;padding:var(--space-3)}
.reservation-week-status-body{position:sticky;top:calc(var(--reservation-week-sticky-height) + var(--space-2))}
.reservation-week-status-body p{margin:0 0 var(--space-3)}
.reservation-week-status-body .wide{margin-top:0}
.reservation-week-alert{padding:0 var(--space-2) var(--space-2)}
.reservation-week-alert p{margin:0;font-size:var(--size-support);line-height:1.6}
.reservation-week.has-alert{--reservation-week-sticky-height:calc(var(--control-height) + 3 * var(--space-2) + 1.5rem + 3.25rem + 6.5rem)}
/* 2026-10 refinement (look only; tokens.css). Nothing here changes a height the sticky block sums (#158) or a scroll margin (#153). */
.reservation-card,.reservation-week{box-shadow:var(--shadow-card)}
.reservation-empty{background:transparent;border:1px dashed var(--color-tone-29)}
.reservation-slot{box-shadow:var(--shadow-card);border-radius:var(--radius-md)}
.reservation-slot:hover:not(:disabled){border-color:var(--color-action-primary)}
.reservation-slot-action{font-weight:600}
.reservation-slot:hover:not(:disabled) .reservation-slot-action{color:var(--color-text-on-selected)}
/* The two booking routes are one segmented switch: a white track with a 3:1 edge, the chosen half filled. */
.reservation-booking-mode{gap:.25rem;padding:.1875rem;border:1px solid var(--color-border-strong);border-radius:var(--radius-button);background:var(--color-surface-white)}
.reservation-booking-mode button{border-radius:calc(var(--radius-button) - .25rem)}
.reservation-booking-mode .secondary{border-color:transparent;background:transparent;color:var(--color-text-secondary)}
.reservation-booking-mode .secondary:hover:not(:disabled){background:var(--color-tone-05)}
#member .reservation-booking-mode button[aria-pressed=true]:disabled{color:var(--color-text-on-selected);font-weight:700}
.reservation-view .reservation-chip[aria-pressed=true]{color:var(--color-text-on-selected)}
/* Open cells come first to the eye: a larger wine ◎ on white; × is small on the tinted cell (still 5.3:1). */
.reservation-view .reservation-week-open{font-size:1.375rem}
.reservation-week-none{font-size:var(--size-small)}
.reservation-view .reservation-legend{align-items:center}
.reservation-warning{border-radius:var(--radius-md)}
.reservation-card>p{margin:var(--space-2) 0}
.reservation-card>p:first-child{margin-top:0}
.reservation-view .reservation-date{font-size:1.0625rem}
.reservation-view .reservation-status{display:inline-block;margin:var(--space-1) 0;padding:.125rem .625rem;border-radius:var(--radius-pill);background:var(--color-tone-27);color:var(--color-tone-55);font-weight:600}
/* Parts that must not break inside: the day and the time range of the several-instructors heading, and the two halves
   of the deadline line (reservations-view.js). */
.reservation-nowrap{white-space:nowrap}
.reservation-view .reservation-cutoff{margin:var(--space-2) 0 var(--space-4);font-size:var(--size-support);line-height:1.6;color:var(--color-text-secondary)}
/* Instructors as round photos (owner, 2026-10-07). The list (14): two to a row, a large round and the name under it;
   the whole is the button (its label 「…の空き枠を見る」). The filter and the several-instructors choice: a middle round
   before the name; the chosen filter is filled wine with a white ring. The review and the list: a small round. */
.reservation-people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-4) var(--space-3);margin:var(--space-4) 0 var(--space-6)}
.reservation-view .reservation-person{display:flex;flex-direction:column;align-items:center;gap:var(--space-3);min-width:0;min-height:var(--control-height);margin:0;padding:var(--space-3) var(--space-2);border:0;border-radius:var(--radius-lg);background:transparent;color:var(--color-text-primary);font:inherit;cursor:pointer}
/* The ring only for a pointer that hovers: after a tap on a phone the hover stays and would look like a choice. */
@media (hover:hover){.reservation-view .reservation-person:hover:not(:disabled) .instructor-avatar{box-shadow:0 0 0 3px var(--color-action-primary)}}
.reservation-person-name{font-size:var(--size-base);font-weight:600;line-height:1.5;text-align:center;overflow-wrap:anywhere}
.reservation-view .reservation-chip{display:inline-flex;align-items:center;gap:var(--space-2);padding-left:.375rem}
.reservation-view .reservation-chip[aria-pressed=true]{padding-left:calc(.375rem - 1px);border-color:var(--color-action-primary);background:var(--color-action-primary);color:var(--color-surface-white)}
.reservation-view .reservation-chip[aria-pressed=true] .instructor-avatar{box-shadow:0 0 0 2px var(--color-surface-white)}
.reservation-view .reservation-instructor{display:flex;align-items:center;gap:var(--space-2)}
.reservation-person-until{margin-top:calc(-1 * var(--space-2));font-size:var(--size-support);color:var(--color-text-secondary);font-variant-numeric:tabular-nums}
