[hidden]{display:none!important}
.app{padding-bottom:92px}
.screen{padding:25px var(--size-22)}
.screen h1{font-size:var(--space-6);margin-bottom:var(--space-2)}
.screen h2{font-size:var(--space-4);margin:25px 0 13px}
.screen .eyebrow{margin-bottom:var(--size-10)}
.muted{color:var(--muted);font-size:var(--space-3);line-height:1.8}
.welcome{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}
.avatar{width:44px;height:44px;border-radius:50%;background:var(--color-tone-27);color:var(--wine);display:grid;place-items:center;font-family:var(--font-display);font-size:var(--size-22)}
.hero{background:var(--color-tone-28);border-radius:13px;padding:25px 23px;position:relative;overflow:hidden;min-height:174px}
.hero:after{content:'';position:absolute;width:105px;height:170px;border:var(--space-6) solid var(--color-tone-29);border-radius:90px 90px 0 0;right:-30px;bottom:-54px;transform:rotate(-25deg);opacity:.65;pointer-events:none}
.hero p{font-family:var(--font-display);font-size:28px;line-height:1.35;margin:0 0 13px;color:var(--color-tone-30)}
.hero span{font-size:11px;color:var(--color-tone-31)}
.hero .primary{margin-top:20px;position:relative;z-index:1}
.card{border:1px solid var(--line);padding:18px;border-radius:11px;background:var(--color-surface-white);margin:var(--space-3) 0}
.next-card{display:flex;gap:17px;align-items:center}
.date-box{background:var(--rose);min-width:60px;border-radius:var(--space-2);padding:var(--space-3) var(--space-2);text-align:center;color:var(--wine);font-size:var(--size-10)}
.date-box strong{display:block;font:28px var(--font-display);margin:3px 0}
.card h3{font-size:var(--size-14);margin:5px 0 var(--space-2)}
.card p{font-size:11px;color:var(--muted);line-height:1.8;margin:3px 0}
.link-button{border:0;background:none;color:var(--wine);font-size:11px;padding:9px 0;text-align:left;min-height:34px}
.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--size-10)}
.stat{border:1px solid var(--line);background:var(--color-tone-05);border-radius:var(--size-10);padding:18px 15px;text-align:left;min-height:111px}
.stat span{display:block;font-size:11px;color:var(--muted)}
.stat strong{font-size:29px;font-weight:500;display:inline-block;margin:7px var(--space-1) 5px 0}
.stat small{font-size:11px}
.nav{position:fixed;z-index:6;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;background:var(--color-tone-32);border-top:1px solid var(--line);display:flex;padding:9px var(--size-10) calc(var(--size-10) + env(safe-area-inset-bottom));backdrop-filter:blur(15px)}
.nav button{width:25%;background:none;border:0;color:var(--color-tone-03);font-size:9px;min-height:44px}
.nav svg{width:21px;height:21px;display:block;margin:0 auto 6px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.nav button.active{color:var(--wine);font-weight:700}
.footer{bottom:70px}
.booking-view{padding-bottom:65px}
.row{width:100%;display:flex;align-items:center;justify-content:space-between;padding:17px 0;min-height:52px;background:none;border:0;border-bottom:1px solid var(--line);font-size:13px;color:var(--ink);text-align:left}
.row span:last-child{color:var(--muted);font-size:var(--space-4)}
.row small{display:block;font-size:var(--size-10);color:var(--muted);margin-top:6px}
.tabs{display:flex;background:var(--color-tone-04);padding:var(--space-1);border-radius:var(--space-2);margin:var(--size-22) 0 17px}
.tabs button{flex:1;border:0;background:none;border-radius:6px;min-height:39px;font-size:var(--space-3);color:var(--muted)}
.tabs button.active{background:white;color:var(--wine);box-shadow:0 2px 5px var(--color-tone-33)}
.status{display:inline-block;font-size:var(--size-10);padding:var(--space-1) 7px;background:var(--rose);color:var(--wine);border-radius:var(--space-1)}
.booking-card .actions{border-top:1px solid var(--line);padding-top:var(--space-3);margin-top:var(--space-3)}
.booking-card .actions button{min-height:36px;font-size:11px}
.pass{background:linear-gradient(130deg,var(--color-membership-start),var(--color-membership-end));color:white;border:0;padding:23px}
.pass .eyebrow,.pass p{color:var(--color-tone-36)}
.pass strong{font:42px var(--font-display)}
.pass small{margin-left:5px}
.pass .pass-line{border-top:1px solid var(--color-tone-37);margin-top:20px;padding-top:var(--size-14);display:flex;justify-content:space-between;font-size:11px}
.empty{padding:35px var(--space-3);text-align:center;color:var(--muted);font-size:13px;line-height:1.9}
.toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);z-index:20;background:var(--color-tone-38);color:white;padding:13px 19px;border-radius:9px;max-width:calc(100% - 30px);width:max-content;font-size:var(--space-3);box-shadow:0 6px 20px var(--color-tone-39)}
.form-label{font-size:var(--space-3);display:block;margin:var(--space-4) 0 6px}
.form-input{width:100%;padding:var(--space-3);border:1px solid var(--line);border-radius:7px;font:inherit;background:white}
.demo-note{font-size:var(--size-10);color:var(--muted);line-height:1.8;margin-top:25px}
.wide{width:100%;margin-top:var(--size-14)}
.back{border:0;background:none;color:var(--wine);padding:0 0 20px;font-size:var(--space-3)}
.screen:focus{outline:none}
/* A page/step heading focused by script (member-ui.js focusHeading) is not a control: no ring, even with a keyboard. Chromium and WebKit treat a script focus before any tap as :focus-visible, so a ring rule would outline the heading on app open. The reservation week/instructor h2 keep their :focus-visible ring: they take focus only after the member pages or picks (reservations-ui.css). The Checkout title has the same rule of its own (billing-checkout.css). */
.screen h1[tabindex="-1"]:focus{outline:none}
/* The same for an error box that took focus that fell to the page (member-ui.js focusError). */
.screen [data-tone][tabindex="-1"]:focus{outline:none}
@media(max-width:350px){.screen{padding:var(--size-22) var(--space-4)}
.hero{padding:var(--size-22) 18px}
.footer{bottom:70px}
.stat{padding:15px var(--space-3)}
}

/* Keep dates visible while the whole page scrolls through every time slot. */
.calendar{overflow:visible}

.grid-scroll{max-height:none;overflow:visible}

.grid .day{top:0;z-index:4;box-shadow:0 1px 0 var(--line)}


.calendar-sticky{position:sticky;top:0;z-index:4;background:var(--color-surface-white);border-bottom:1px solid var(--line)}

.calendar-sticky .calendar-head{padding:var(--space-3) var(--space-1);margin:0}

.calendar-sticky .weeks{width:100%;justify-content:space-between}

.calendar-sticky .weeks button{font-size:11px;font-weight:600;padding:0 var(--space-3);min-height:38px;border-radius:5px}

.month-row{display:grid;grid-template-columns:40px 1fr;border-top:1px solid var(--line)}

.month-row>span{font-size:var(--size-10);display:grid;place-items:center;border-right:1px solid var(--line);color:var(--muted)}

.month-row h2{font-size:13px;text-align:center;margin:0;padding:6px;font-weight:600}

.date-head{display:grid;grid-template-columns:40px repeat(7,minmax(0,1fr))}

.date-head .day{height:52px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--space-1);border-top:1px solid var(--line);border-right:1px solid var(--line);background:var(--color-tone-13);font-size:15px}

.date-head .day:last-child{border-right:0}
.date-head .corner{font-size:0}
.date-head .sat{background:var(--color-tone-40)}
.date-head .sun{background:var(--color-tone-41)}

@media(max-width:350px){.month-row{grid-template-columns:36px 1fr}
.date-head{grid-template-columns:36px repeat(7,minmax(0,1fr))}
.calendar-sticky .weeks button{padding-inline:var(--space-2)}
}

/* Fluid layout: fixed dimensions are limited to minimum touch targets. */
html{font-size:100%}
/* Japanese line breaking: no line starts with a small kana, a long vowel mark or closing punctuation (line-break:strict). */
body{overflow-wrap:anywhere;line-break:strict}
.app{width:100%;max-width:var(--width-app);--gutter:clamp(var(--size-small),5vw,1.375rem);--time-column:clamp(2.25rem,10vw,var(--size-control))}

.screen,.section{padding-inline:var(--gutter)}
header,.heading{padding-inline:var(--gutter)}

.lesson{margin-inline:var(--gutter)}
.steps{margin-inline:var(--gutter);gap:clamp(.2rem,1.5vw,var(--size-half))}

.step{font-size:clamp(.55rem,2.7vw,.69rem);gap:.25rem}
.step i{flex-shrink:0}

.welcome{gap:var(--size-small)}
.welcome>div:first-child,.next-card>div:last-child{min-width:0}
.avatar,.date-box{flex-shrink:0}

.screen h1{font-size:clamp(1.2rem,6vw,1.5rem)}
.hero p{font-size:clamp(1.4rem,7vw,1.75rem)}

.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.stat{min-width:0}
.row{gap:var(--size-small)}
.row>span:first-child{min-width:0}
.row>span:last-child{flex-shrink:0}

.calendar{margin-inline:clamp(.375rem,3vw,var(--size-support))}

.grid,.date-head{grid-template-columns:var(--time-column) repeat(7,minmax(0,1fr))}

.month-row{grid-template-columns:var(--time-column) minmax(0,1fr)}

.grid .time{font-size:clamp(.6rem,2.8vw,var(--size-small))}
.grid .slot{font-size:clamp(var(--size-base),5.6vw,1.5rem);min-width:0;padding:0}

.date-head .day{font-size:clamp(var(--size-small),3.8vw,var(--size-base));min-width:0}
.date-head .day small{font-size:clamp(.55rem,2.6vw,.69rem)}

.legend{margin-inline:var(--gutter);gap:var(--size-half);flex-wrap:wrap}
.notice{margin-inline:var(--gutter)}

.nav,.footer{width:100%;max-width:var(--width-app)}
.nav{height:calc(4.375rem + env(safe-area-inset-bottom));padding-bottom:calc(.625rem + env(safe-area-inset-bottom))}

.footer{bottom:calc(4.375rem + env(safe-area-inset-bottom));padding:var(--size-small) var(--gutter);gap:.625rem}

.footer .selection{min-width:0}
.footer .primary{min-width:0;flex:0 1 48%;padding-inline:clamp(var(--size-half),3vw,1.375rem);min-height:2.875rem}

.booking-view{padding-bottom:calc(5.5rem + env(safe-area-inset-bottom))}
.app{padding-bottom:calc(5.75rem + env(safe-area-inset-bottom))}

.dialog,dialog{width:min(24.375rem,calc(100% - 1.5rem));max-width:calc(100% - 1.5rem);max-height:calc(100dvh - 2rem);overflow:auto;padding:clamp(var(--size-base),5vw,1.5rem)}

.actions{flex-wrap:wrap}
.actions button{min-width:5rem;white-space:normal}
.toast{bottom:calc(5.5rem + env(safe-area-inset-bottom));max-width:calc(100% - 1.5rem)}

@media(max-width:360px){.next-card{gap:var(--size-small)}
.card{padding:var(--size-support)}
.staff button{padding-inline:.625rem}
.calendar-sticky .weeks button{font-size:.625rem;min-height:2.5rem}
.footer .primary{font-size:.65rem}
}

@media(max-height:500px){dialog{max-height:calc(100dvh - var(--size-base))}
.heading{padding-block:var(--size-base)}
.hero{min-height:0}
}


/* THOM website palette observed at https://thom-salon.com/.
   Originals: greige var(--color-brand-greige), sage var(--color-brand-sage), blue var(--color-brand-blue), rose var(--color-brand-rose).
   Dark variants support readable text and controls on white. */

.brand{color:var(--color-tone-30)}
.hero .primary{background:var(--color-action-booking)}
.primary{background:var(--color-action-primary)}
.primary:hover:not(:disabled){background:var(--color-action-primary-hover)}
.hero .primary:hover{background:var(--color-action-booking-hover)}

.avatar{color:var(--color-tone-50)}
.stat{background:var(--color-tone-51)}
.stat strong{color:var(--color-membership-end)}
.preview{background:var(--color-surface-page);color:var(--color-tone-31)}

/* DADS-inspired web UI: readable Japanese, clear controls, top navigation.
   Reference: https://design.digital.go.jp/dads/ (not a conformance claim). */

body{font-size:var(--text-body);line-height:1.7}

.screen{padding-block:1.5rem}
.screen h1{font-size:clamp(1.5rem,6vw,1.75rem);line-height:1.5}
/* A heading or label that needs two lines breaks between phrases into even lines, never one character alone on the
   last line (「…していま／す」「…回／数」). word-break:auto-phrase is Chromium (Android LINE); WebKit keeps its own breaks. */
.screen h1,.screen h2,.screen h3{text-wrap:balance;word-break:auto-phrase}
.screen dt{text-wrap:pretty;word-break:auto-phrase}
.screen h2{font-size:1.125rem;margin-top:2rem}

.muted,.card p,.subtitle,.hint,.notice,.demo-note,dialog p,.stat span,.stat small,.row small,.status,.tag,.date-box,.hero span,.pass .pass-line{font-size:var(--text-support);line-height:1.7}

.card h3,.lesson h2,.row,.form-label,.form-input,.summary{font-size:var(--text-body)}

.primary,.secondary,.link-button,.back,.staff button,.tabs button,.booking-card .actions button,.calendar-sticky .weeks button{min-height:var(--control-height);font-size:var(--size-support);border-radius:var(--radius-control);line-height:1.5}

.primary,.secondary{padding:var(--size-small) var(--size-base);font-weight:600}
.secondary{border-color:var(--color-tone-53)}
.link-button,.back{text-decoration:underline;text-underline-offset:.2em}

.card,.stat,.lesson{border-radius:var(--radius-card)}
.row{min-height:4rem;padding-block:var(--size-base)}
.status{font-size:var(--size-small)}

.staff{flex-wrap:wrap;overflow:visible;gap:var(--size-half)}
.staff button{flex:1 1 auto;padding-inline:var(--size-small)}
.staff button.selected{border-width:2px;padding-inline:calc(var(--size-small) - 1px)}

.steps{flex-wrap:wrap}
.step{font-size:var(--size-small)}
.step i{width:1.5rem;height:1.5rem}
.eyebrow{font-size:var(--size-small)}
.lesson p{font-size:var(--size-support)}

.nav{position:static;transform:none;width:100%;height:auto;min-height:4rem;padding:.25rem var(--gutter);gap:.25rem;border-top:0;border-bottom:1px solid var(--line);background:var(--color-surface-page);backdrop-filter:none}

.nav button{min-height:3.5rem;font-size:var(--size-small);border-radius:var(--size-half);padding:.375rem .125rem;color:var(--color-tone-54);line-height:1.4}

.nav button.active{background:var(--color-tone-28);color:var(--color-tone-55);box-shadow:inset 0 -3px var(--color-membership-start)}
.nav svg{width:1.25rem;height:1.25rem;margin-bottom:.25rem}

.footer{bottom:0;padding-bottom:calc(var(--size-small) + env(safe-area-inset-bottom))}
.footer .primary{font-size:var(--size-support);min-height:var(--size-control)}
.selection,.selection strong{font-size:var(--size-support)}

.app{padding-bottom:2rem}
.booking-view{padding-bottom:calc(7rem + env(safe-area-inset-bottom))}
.toast{bottom:calc(1.5rem + env(safe-area-inset-bottom))}

.form-input{min-height:var(--size-control);border-color:var(--color-tone-56)}
.form-input:focus-visible,button:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:3px}

.grid .slot:focus-visible{outline-offset:-3px}
.calendar-sticky .weeks button{font-size:var(--size-small);padding-inline:var(--size-half)}
.month-row h2{font-size:var(--size-base)}
.date-head .day small{font-size:var(--size-small)}
.grid .time{font-size:var(--size-small)}
.legend{font-size:var(--size-small)}

.card.next-card{align-items:flex-start}
.next-card>div:last-child{flex:1}
.hero{padding:1.5rem}
.hero:after{opacity:.4}
.hero .primary{margin-top:var(--size-base)}

@media(max-width:360px){.footer{flex-wrap:wrap}
.footer .selection{flex:1 1 100%}
.footer .primary{flex:1 1 100%}
.booking-view{padding-bottom:10rem}
.step{font-size:.6875rem}
.steps{gap:.25rem}
.step i{width:1.25rem;height:1.25rem}
.date-head .day small{font-size:.625rem}
.grid .time{font-size:.6875rem}
}

/* Compact UI labels still retain a readable var(--size-14)-equivalent minimum. */
.nav button,.status,.tag,.eyebrow,.step,.calendar-sticky .weeks button,.date-head .day small,.grid .time,.legend,.preview,.selection,.selection strong{font-size:var(--size-support)}

.steps .connector{display:none}
.steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--size-half)}
.step{white-space:normal}

.app{--time-column:var(--size-control)}
.nav button{overflow-wrap:normal;word-break:keep-all}
.date-head .day{font-size:var(--size-base)}
.nav{padding-inline:var(--size-half)}

.primary,.secondary,.staff button,.row,.tabs button,.booking-card .actions button,.form-label,.link-button,.back{font-size:var(--size-base)}

/* User preference: bottom navigation, with safe-area spacing. */
.nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);z-index:6;min-height:0;height:calc(var(--height-nav) + env(safe-area-inset-bottom));padding:.25rem var(--size-half) calc(.25rem + env(safe-area-inset-bottom));border-top:1px solid var(--line);border-bottom:0}

.footer{bottom:calc(var(--height-nav) + env(safe-area-inset-bottom));padding-bottom:var(--size-small)}

.app{padding-bottom:calc(6rem + env(safe-area-inset-bottom))}

.booking-view{padding-bottom:8rem}
.toast{bottom:calc(5.5rem + env(safe-area-inset-bottom))}

@media(max-width:360px){.booking-view{padding-bottom:11rem}
}

/* Flat bottom navigation: selection is indicated by text and icon weight/color. */
.nav button{border-radius:0;background:transparent;box-shadow:none}

.nav button.active{background:transparent;box-shadow:none;color:var(--color-action-primary);font-weight:700}

.nav button.active svg{stroke-width:2.2}

/* NameThatUI reference: one floating translucent tab bar, flat destinations. */
.nav{bottom:calc(var(--size-small) + env(safe-area-inset-bottom));width:calc(100% - 1.5rem);max-width:var(--width-floating);height:var(--height-nav);padding:.375rem var(--size-half);border:1px solid var(--color-tone-58);border-radius:2.25rem;background:var(--color-tone-59);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 6px var(--space-6) var(--color-tone-60)}

.nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.25rem;min-width:0;min-height:3.5rem;padding:.25rem 0;font-size:var(--size-small);line-height:1.3;background:transparent;border-radius:0;color:var(--color-text-secondary)}

.nav svg{width:1.5rem;height:1.5rem;margin:0;flex-shrink:0}
.nav button.active{background:transparent;color:var(--color-action-primary);box-shadow:none}

.nav button:focus-visible{outline-offset:-2px;border-radius:var(--size-half)}

.footer{bottom:calc(6rem + env(safe-area-inset-bottom));border:1px solid var(--line);border-radius:var(--size-small);left:50%;width:calc(100% - 1.5rem);max-width:var(--width-floating);padding:var(--size-small);box-shadow:0 2px var(--size-10) var(--color-tone-62)}

/* The page end clears the floating nav (its offset + height + safe area), so the last line is never under it. */
.app{padding-bottom:calc(var(--size-small) + var(--height-nav) + 1.75rem + env(safe-area-inset-bottom))}
.booking-view{padding-bottom:9rem}
.toast{bottom:calc(6rem + env(safe-area-inset-bottom))}

@media(max-width:360px){.booking-view{padding-bottom:12rem}
}

@media(prefers-reduced-transparency:reduce){.nav{background:var(--color-tone-63);backdrop-filter:none;-webkit-backdrop-filter:none}
}

/* Extend the app canvas behind the floating navigation at the page end. */
body{background:linear-gradient(var(--color-surface-white),var(--color-surface-white)) center top / min(100%,var(--width-app)) 100% no-repeat,var(--bg);min-height:100dvh}

.app{min-height:100dvh}

/* Dates, times and membership counts share the UI numeral style. */
.date-box strong,.pass strong,.stat strong{font-family:inherit;font-weight:700;font-variant-numeric:tabular-nums}

.card h3,.grid .time,.date-head .day,.selection strong{font-variant-numeric:tabular-nums}

.member-home-failures{display:grid;gap:var(--space-3);margin:var(--space-4) 0}

/* 2026-10 refinement (look only; tokens.css): white cards on a warm paper canvas, wine only for what is pressed or
   selected, one shape scale. Sizes that other rules measure (nav height and offset, page end clearance, control
   heights) are left as they are. */
body{background:var(--color-surface-canvas)}
.app{background:var(--color-surface-canvas)}
header{height:4rem;border-bottom:0}
.screen h1,.screen h2,.screen h3{font-weight:600;letter-spacing:var(--tracking-heading)}
.screen h2{margin-bottom:var(--space-3)}
.eyebrow{color:var(--color-text-accent);font-weight:600;letter-spacing:var(--tracking-eyebrow)}
.muted{color:var(--color-text-secondary)}

.card{border-color:var(--line);border-radius:var(--radius-card);box-shadow:var(--shadow-card)}
.card.empty{background:transparent;border:1px dashed var(--color-tone-29);box-shadow:none}
.card.next-card h3{font-size:1.0625rem}

.hero{border-radius:var(--radius-xl);background:linear-gradient(160deg,var(--color-tone-28),var(--color-tone-07))}
.hero:after{opacity:.3}
.hero span{color:var(--color-tone-30)}
.hero .primary{background:var(--color-action-primary)}
.hero .primary:hover:not(:disabled){background:var(--color-action-primary-hover)}

.stat{background:var(--color-surface-white);border-color:var(--line);box-shadow:var(--shadow-card)}
.stat strong{font-size:2rem;letter-spacing:.01em}

.primary,.secondary{border-radius:var(--radius-button);letter-spacing:.04em}
.secondary{background:var(--color-surface-white);border-color:var(--color-border-strong);color:var(--color-text-primary)}
.secondary:hover:not(:disabled){background:var(--color-tone-05)}
.back{color:var(--color-text-secondary)}

.status{border-radius:var(--radius-pill);padding:.125rem .625rem;color:var(--color-text-on-selected);font-weight:600}
.date-box{color:var(--color-text-on-selected);border-radius:var(--radius-md)}

/* A run of rows (my page, home) reads as one white list card, like a settings list. */
.row{background:var(--color-surface-white);padding-inline:var(--space-4);border:1px solid var(--line);border-top:0}
.row:not(.row+.row){border-top:1px solid var(--line);border-radius:var(--radius-card) var(--radius-card) 0 0;margin-top:var(--space-3)}
.row:not(:has(+.row)){border-radius:0 0 var(--radius-card) var(--radius-card)}
.row:not(.row+.row):not(:has(+.row)){border-radius:var(--radius-card)}
.row>.lucide{color:var(--color-text-secondary)}
/* A row that cannot be used yet stays part of the white list card: only its label and icon fade (not the card). */
#member .row:disabled{opacity:1}
#member .row:disabled .row-label,#member .row:disabled>.row-main>.lucide{color:var(--color-tone-17)}

.nav{background:var(--color-tone-20);border-color:var(--line);box-shadow:var(--shadow-raised)}
@media(prefers-reduced-transparency:reduce){.nav{background:var(--color-surface-white)}
}
.toast{border-radius:var(--radius-md)}
dialog{border-radius:var(--radius-xl);box-shadow:var(--shadow-raised)}
.demo-note{text-align:center}

/* Instructor icons at the owner's sizes (2026-10-07; the base rule is in ui-base.css): large in the instructor list,
   middle in the filter and the several-instructors choice, small beside a name. The 「指定なし」 round shows a swap mark. */
.reservation-person .instructor-avatar{--instructor-avatar-size:min(36vw,8.75rem)}
.reservation-chip .instructor-avatar{--instructor-avatar-size:2.25rem}
.instructor-avatar.is-any{display:inline-grid;place-items:center;background-image:none}
.instructor-avatar.is-any img{width:56%;height:56%;object-fit:contain;opacity:.6}

/* The home's membership card (owner, 2026-10-07): the login check's plate (02). The plan's colour and name for a
   monthly member, the standard sage card with the THOM mark for anyone else. White text on every plate (AA). */
.hero.member-card{--plate-start:var(--color-membership-start);--plate-end:var(--color-membership-end);display:flex;flex-direction:column;min-height:0;padding:1.25rem;border-radius:var(--radius-xl);color:var(--color-surface-white);
  background:radial-gradient(40% 80% at 100% 0,var(--color-plate-sheen) 0,transparent 75%),linear-gradient(150deg,var(--plate-start),var(--plate-end));box-shadow:var(--shadow-raised)}
.hero.member-card.is-silver{--plate-start:var(--color-plan-silver-start);--plate-end:var(--color-plan-silver-end)}
.hero.member-card.is-gold{--plate-start:var(--color-plan-gold-start);--plate-end:var(--color-plan-gold-end)}
.hero.member-card.is-platinum{--plate-start:var(--color-plan-platinum-start);--plate-end:var(--color-plan-platinum-end)}
.hero.member-card:after{width:9rem;height:12rem;border:1.25rem solid var(--color-surface-white);border-radius:6rem 6rem 0 0;right:-3rem;bottom:-7rem;top:auto;transform:rotate(-25deg);opacity:.08}
.member-card .member-card-label{margin:0;font:600 var(--size-small)/1.5 var(--font-ui);letter-spacing:var(--tracking-eyebrow);color:inherit}
.member-card .member-card-plan{margin:var(--space-6) 0 0;font:500 clamp(1.75rem,8vw,2.25rem)/1.15 var(--font-display);letter-spacing:.14em;color:inherit}
.member-card .member-card-state{margin:var(--space-1) 0 0;font:600 var(--size-support)/1.6 var(--font-ui);color:inherit}
.member-card .member-card-logo{position:absolute;top:1.125rem;right:1.25rem;width:5rem;height:auto;filter:invert(1);opacity:.9}
.member-card .member-card-mark{display:flex;flex-direction:column;margin-top:var(--space-6)}
.hero.member-card{container-type:inline-size}
/* The lockup's wrapper is a span: the old hero caption colour (.hero span) must not reach it. */
.member-card .plate-mark{color:inherit}
.member-card .member-card-book{position:relative;z-index:1;align-self:flex-start;display:inline-flex;align-items:center;gap:var(--space-2);min-height:var(--control-height);margin-top:var(--space-6);padding:0 var(--space-6);border:0;border-radius:var(--radius-button);background:var(--color-surface-white);color:var(--color-text-primary);font:600 var(--size-base)/1.5 var(--font-ui);letter-spacing:.04em;word-break:keep-all}
.member-card .member-card-book:hover{background:var(--color-tone-05)}
/* A narrow screen gives the button the card's width, so 「レッスンを予約する」 stays on one line at 125% text. */
@media(max-width:360px){.member-card .member-card-book{align-self:stretch;justify-content:center;padding-inline:var(--space-4)}}
/* On a dark plate the usual navy ring would not show: a white one. */
.member-card .member-card-book:focus-visible{outline:3px solid var(--color-surface-white);outline-offset:3px}
.next-instructor{display:flex;align-items:center;gap:var(--space-2)}

/* A page's heading with its refresh at the right end of the line (owner, 2026-10-07, sketch on 42): a round arrow
   button read as its old label (「最新の状況に更新」…), 48px, turning while that page reloads. */
.page-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);margin:var(--space-4) 0 var(--space-2)}
.screen .page-head>h1{flex:1 1 auto;min-width:0;margin:0}
/* Every member page starts with its heading 20px under the header, the same on the four tabs (owner, 2026-10-09, after
   the English kicker above the heading was dropped): the empty message line above a reservation page takes no room, and a
   heading row with its 48px refresh button is pulled up by half the difference, so the heading's text (2.25rem line) starts
   where the other tabs' do. The bottom padding, the safe areas and the tab bar are left as they were. */
#member-screen{padding-top:1.25rem}
#member-screen .reservation-message:empty{margin:0}
#member-screen .reservation-view>.page-head:first-child{margin-top:calc((2.25rem - var(--control-height)) / 2)}
.refresh-button{flex:0 0 auto;display:inline-grid;place-items:center;width:var(--control-height);height:var(--control-height);margin:0;padding:0;border:1px solid var(--color-border-strong);border-radius:50%;background:var(--color-surface-white);cursor:pointer}
.refresh-button img{width:1.25rem;height:1.25rem;opacity:.8}
.refresh-button:hover:not(:disabled){background:var(--color-tone-05)}
.refresh-button.is-busy img,.membership-panel:disabled .refresh-button img{animation:refresh-turn 1s linear infinite}
@keyframes refresh-turn{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.refresh-button img{animation:none!important}}
