.member {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.member main { max-width: 640px; padding: 1.5rem 1rem calc(7rem + env(safe-area-inset-bottom)); }
.member h1 { font-size: clamp(1.4rem, 4.8vw, 2rem); line-height: 1.3; letter-spacing: -.045em; margin: 0; }
.member h2 { font-size: 1.18rem; margin: 1.3rem 0 .55rem; }
.member-header { background: white; }
.member-bar { max-width: 640px; margin: auto; height: 3.65rem; position: relative; display: grid; place-items: center; font-size: 1.22rem; }
.member-bar a { position: absolute; left: .8rem; display: grid; place-items: center; width: 44px; height: 44px; }
.member-bar a:last-child { left: auto; right: .8rem; }
.mi { width: 1.45em; height: 1.45em; flex: none; vertical-align: middle; }
.member-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 5;
  width: min(100%, 640px); display: grid; grid-template-columns: repeat(4, 1fr);
  background: white; border: 1px solid var(--line); border-radius: 18px 18px 0 0;
  padding: .45rem .25rem calc(.45rem + env(safe-area-inset-bottom)); box-shadow: 0 -4px 22px #123d4010;
}
.member-nav a { display: grid; justify-items: center; align-content: center; min-height: 46px; gap: .15rem; color: var(--muted); font-size: .8rem; text-decoration: none; }
.member-nav a[aria-current] { color: var(--accent); font-weight: 800; }
.member-nav .mi { width: 23px; height: 23px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 1rem; margin: .7rem 0; box-shadow: 0 3px 12px #16454a08; }
.greeting { margin: .25rem 0 1.25rem; color: var(--muted); }
.next { padding: 1.2rem; position: relative; isolation: isolate; overflow: hidden; }
.next::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 85% 200% at 139% 47%, #96d4cf 0 60%, transparent 61%), radial-gradient(ellipse 70% 190% at 132% 0%, #d1eeea 0 65%, transparent 66%); }
.next h2 { margin: 0; }
.badge { display: inline-block; vertical-align: middle; background: #d8efea; color: #075c55; padding: .15rem .55rem; border-radius: 20px; font-size: .72rem; }
.next-time { display: block; margin: .65rem 0; font-size: clamp(1.45rem, 5vw, 2rem); line-height: 1.3; }
.row, .record { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.row strong, .ticket strong { color: var(--accent); }
.mini { padding: .45rem .75rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.tickets { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .65rem; }
.ticket { margin: 0; }
.ticket strong { display: block; font-size: 2rem; line-height: 1.3; margin-top: .75rem; }
.ticket small, .record small { color: var(--muted); }
.primary { width: 100%; min-height: 52px; display: flex; gap: .6rem; align-items: center; justify-content: center; border: none; border-radius: 12px; background: var(--accent); color: white; text-decoration: none; font: inherit; font-weight: 750; cursor: pointer; }
.primary:disabled { background: #dce5e5; color: #4e6365; cursor: default; }
.primary .mi:last-child { margin-left: auto; }
a.primary { padding: .75rem 1rem; }
.notice-link { display: flex; align-items: center; gap: .6rem; color: var(--accent); text-decoration: none; }
.notice-link b { flex: none; }
.notice-link span { flex: 1; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.service-tabs { display: flex; gap: 4px; padding: 4px; background: #e2eaea; border-radius: 13px; }
.service-tabs a { flex: 1; border-radius: 10px; text-align: center; padding: .65rem; text-decoration: none; color: var(--ink); font-weight: 700; }
.service-tabs a[aria-current] { background: var(--accent); color: white; }
.balance { background: #e4f1ef; text-align: center; border-radius: 10px; padding: .45rem; margin: .6rem 0; }
.balance strong { color: var(--accent); }
.calendar-panel { padding: .8rem .55rem; }
.member .cal-wrap { margin: 0; }
.member .cal-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.member .cal-head a { padding: .5rem; font-size: .85rem; text-decoration: none; color: var(--accent); }
.member .cal-head a:last-child { text-align: right; }
.member .cal-day { align-items: center; border: 0; border-radius: 10px; min-height: 3.4rem; padding: .22rem .05rem; background: transparent; }
.member .cal-day small { max-width: 100%; }
.member .cal-day.disabled { color: #798988; }
.member .cal-day.sel { background: var(--accent); color: white; }
.member .cal-day.sel * { color: white; }
.member .cal-day.today:not(.sel) { background: #e4f1ef; }
.time-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .48rem; }
.time-option { display: block; position: relative; margin: 0; }
.time-option input, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.time-option span { display: grid; justify-items: center; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .1rem; background: white; cursor: pointer; }
.time-option small { font-size: .77rem; font-weight: 500; }
.time-option input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #e4f3f0; color: #045c5e; }
.time-option input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.time-option input:disabled + span { background: #e9eded; color: #617171; cursor: default; }
.selection { text-align: center; font-weight: 650; }
.selection .mi { color: var(--accent); }
@media (min-width: 720px) {
  .member main { padding-top: 2rem; }
  .panel { padding: 1.25rem; }
}

.login-page > header { background: white; }
.login-page .bar { max-width: 640px; min-height: 3.65rem; }
.login-page .brand { color: var(--accent); }
.login-page main { max-width: 30rem; padding: clamp(1.5rem, 8vh, 5rem) 1rem 2rem; }
.login-card { padding: 0; overflow: hidden; }
.login-heading {
  padding: 1.6rem clamp(1.2rem, 6vw, 2rem);
  background: radial-gradient(ellipse 76% 200% at 135% 20%, #addcd6 69%, transparent 70%),
              radial-gradient(ellipse 83% 210% at 139% 0%, #d4ede8 80%, transparent 81%), #eef7f5;
}
.login-mark { width: 2rem; height: 2rem; color: var(--accent); margin-bottom: .4rem; }
.login-form { display: grid; gap: 1.15rem; padding: clamp(1.2rem, 6vw, 2rem); }
.login-form label { margin: 0 0 .35rem; }
.login-form input:not([type=hidden]) { min-height: 48px; padding: .65rem .85rem; border-radius: 10px; }
.login-form .input-validation-error { border-color: var(--danger); }
.login-form .validation-summary-errors { border-radius: 10px; background: #fff2f0; padding: .5rem .8rem; }
.login-form .primary:hover { background: #075d5e; }
.login-register { margin: 0; padding: .5rem 1rem; text-align: center; color: var(--muted); border-top: 1px solid var(--line); }
.login-register a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .35rem; color: var(--accent); font-weight: 700; }
