:root {
  --ink: #182230;
  --muted: #667085;
  --line: #d0d5dd;
  --paper: #ffffff;
  --wash: #eef4f1;
  --green: #157a5b;
  --blue: #2456a6;
  --yellow: #fee500;
  --naver: #03c75a;
  --amber: #b54708;
  --soft-green: #e7f6ef;
  --soft-blue: #edf4ff;
  --soft-amber: #fff4df;
  --booking-bg: #f7fafc;
  --booking-panel: #fbfcfe;
  --booking-shadow: 0 10px 24px rgba(24, 34, 48, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #e8efed;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  font-family:
    Inter, Pretendard, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
}

.brand-splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #ffffff;
  opacity: 1;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.brand-splash.is-hidden {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.brand-splash[hidden] {
  display: none !important;
}

.brand-splash img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-splash span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

button,
a,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  width: min(980px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--wash);
}

.login-screen[hidden],
.app-screen[hidden] {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 28px;
}

.brand p,
.topbar p {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.brand h1,
.topbar h1,
.section-title h2 {
  margin: 0;
}

.brand h1 {
  font-size: 32px;
}

.brand span,
.section-title span,
.login-card p,
.summary-grid small,
.cell small,
.cell span,
.request-card span {
  color: var(--muted);
}

.login-card,
.summary-grid article,
.form-card,
.request-card,
.history-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 18px rgba(24, 34, 48, 0.05);
}

.login-card {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.session-restoring {
  min-height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.session-restoring[hidden] { display: none !important; }
.session-restoring small { color: var(--muted); }
.session-restoring-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #d8e7e2;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: session-restoring-spin 0.8s linear infinite;
}
.member-session-restoring .login-card > :not(.session-restoring) { display: none !important; }
@keyframes session-restoring-spin { to { transform: rotate(360deg); } }

.login-card h2 {
  margin: 0 0 4px;
}

.provider,
.primary-button,
.small-button,
.upload-button,
.tab {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.provider.kakao {
  background: var(--yellow);
  color: #191919;
}

.provider.naver {
  background: var(--naver);
  color: white;
}

.provider.apple {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 140px;
  padding: 0 44px;
  overflow: hidden;
  background: #111111;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 19px;
  font-weight: 600;
}

.apple-signin-logo {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.provider.apple [data-apple-login-label] {
  white-space: nowrap;
}

.provider:disabled,
.provider.is-preparing {
  cursor: not-allowed;
  opacity: 0.64;
}

.provider.is-preparing {
  border: 1px dashed rgba(25, 25, 25, 0.2);
}

.email-login-panel {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.email-login-panel summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.email-login-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.email-login-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.email-login-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
}

.login-form-status {
  min-height: 20px;
  margin: 0;
  font-size: 13px;
}

.app-screen {
  min-height: 100vh;
  padding: 20px;
  animation: screenIn 180ms ease-out;
}

.member-pending-approval #appScreen > :not(.topbar):not(#pendingApprovalGate) {
  display: none !important;
}

.member-pending-approval #coachModeButton {
  display: none !important;
}

.pending-approval-gate[hidden] {
  display: none !important;
}

.pending-approval-gate {
  display: grid;
  min-height: calc(100vh - 112px);
  place-items: center;
}

.pending-approval-card {
  display: grid;
  width: min(100%, 560px);
  gap: 16px;
  border: 1px solid rgba(21, 122, 91, 0.18);
  border-radius: 8px;
  padding: 24px;
  background: white;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
}

.pending-approval-card h2,
.pending-approval-card p {
  margin: 0;
}

.pending-approval-card h2 {
  color: var(--ink);
  font-size: 24px;
}

.pending-approval-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.pending-approval-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pending-approval-steps span {
  min-height: 42px;
  border-radius: 8px;
  padding: 10px;
  background: var(--soft-green);
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.pending-approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.member-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.member-heading-copy {
  min-width: 0;
}

.member-heading-copy p,
.member-heading-copy h1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-avatar {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(21, 122, 91, 0.28);
  border-radius: 999px;
  color: white;
  background: var(--green);
  font-weight: 950;
}

.profile-avatar.is-empty {
  border-color: #d6dce3;
  color: transparent;
  background: #eef1f4;
}

.profile-avatar-placeholder {
  position: absolute;
  inset: 0;
}

.profile-avatar-placeholder::before,
.profile-avatar-placeholder::after {
  position: absolute;
  left: 50%;
  content: "";
  transform: translateX(-50%);
  background: #a8b0bb;
}

.profile-avatar-placeholder::before {
  top: 20%;
  width: 32%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.profile-avatar-placeholder::after {
  bottom: 12%;
  width: 62%;
  height: 34%;
  border-radius: 50% 50% 42% 42%;
}

.profile-avatar.small {
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.profile-avatar.large {
  width: 96px;
  height: 96px;
  font-size: 34px;
}

.profile-avatar img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.small-button {
  padding: 0 14px;
  color: var(--blue);
  background: var(--soft-blue);
}

.small-button.danger-button {
  color: #b42318;
  background: #fff0ed;
}

.install-button {
  color: #0f766e;
  background: #e7f8f1;
  border: 1px solid rgba(15, 118, 110, 0.22);
}

.install-button[hidden] {
  display: none;
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.summary-grid[hidden] {
  display: none !important;
}

.home-account-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  width: 100%;
  margin-bottom: 10px;
  border: 1px solid rgba(15, 132, 91, 0.2);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink);
  text-align: left;
  background: linear-gradient(100deg, #ecfdf5, #ffffff 70%);
  box-shadow: 0 8px 18px rgb(15 23 42 / 6%);
}

.home-account-summary[hidden] {
  display: none !important;
}

.home-account-eyebrow {
  grid-column: 1;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.home-account-summary strong {
  grid-column: 1;
  min-width: 0;
  font-size: 17px;
  line-height: 1.25;
}

.home-account-detail {
  grid-column: 1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.home-account-arrow {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  color: var(--green);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}

.summary-grid article {
  display: grid;
  gap: 5px;
  align-content: start;
  padding: 13px;
}

.summary-grid .summary-card.primary {
  background: linear-gradient(180deg, #ecfdf5, #ffffff);
  border-color: rgba(15, 132, 91, 0.22);
}

.summary-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.summary-grid strong {
  color: var(--green);
  font-size: 24px;
}

.summary-grid .small-button {
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  margin-top: 2px;
}

.summary-grid small:empty {
  display: none;
}

.today-action-panel {
  margin-bottom: 14px;
}

.today-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.today-card {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
  min-height: 176px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
}

.today-card.primary {
  border-color: rgba(43, 108, 176, 0.28);
  background: var(--soft-blue);
}

.today-card.wait {
  border-color: rgba(217, 119, 6, 0.32);
  background: #fff8eb;
}

.today-card.alert {
  border-color: rgba(185, 28, 28, 0.3);
  background: #fff1f2;
}

.today-card div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.today-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.today-card strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.today-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.today-card .primary-button,
.today-card .small-button {
  width: 100%;
  min-height: 38px;
}

.compact-title {
  margin-bottom: 8px;
}

.compact-title h2 {
  font-size: 18px;
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.tab {
  color: var(--muted);
  background: white;
}

.tab.is-active {
  color: white;
  background: var(--green);
}

.view {
  display: none;
}

.view.is-active {
  display: block;
  animation: viewIn 160ms ease-out;
}

.home-view {
  display: none;
}

.home-view.is-active {
  display: block;
}

.home-title {
  margin-bottom: 12px;
}

.home-title h2 {
  font-size: 23px;
}

.home-change-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 2px;
  border: 1px solid rgba(37, 87, 167, 0.2);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--ink);
  text-align: left;
  background: var(--soft-blue);
}

.home-change-button strong {
  color: var(--blue);
  font-size: 15px;
}

.home-change-button span {
  color: var(--blue);
  font-size: 28px;
  line-height: 1;
}

.makeup-due-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 12px;
  border: 1px solid rgba(200, 76, 41, 0.34);
  border-left: 4px solid #c84c29;
  border-radius: 8px;
  padding: 12px;
  background: #fff6f2;
}

.makeup-due-banner[hidden] {
  display: none;
}

.makeup-due-banner div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.makeup-due-banner strong {
  color: #8f2f18;
  font-size: 15px;
}

.makeup-due-banner span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.makeup-due-banner .primary-button {
  min-height: 42px;
  white-space: nowrap;
}

@media (max-width: 540px) {
  .makeup-due-banner {
    grid-template-columns: 1fr;
  }

  .makeup-due-banner .primary-button {
    width: 100%;
  }
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.section-title-with-action {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.section-title-with-action > div {
  display: grid;
  gap: 4px;
}

.section-shortcut {
  min-height: 36px;
  padding: 0 10px;
  white-space: nowrap;
}

.title-action {
  justify-self: start;
  min-height: 36px;
  margin-top: 4px;
}

.schedule-grid {
  overflow-x: auto;
}

.member-schedule-range-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 8px;
}

.member-schedule-filter {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 9px;
  color: var(--muted);
  background: white;
  font-size: 12px;
  font-weight: 900;
}

.member-schedule-filter.is-active {
  border-color: var(--green);
  color: white;
  background: var(--green);
}

.member-duration-schedule {
  display: grid;
  grid-template-columns: 58px repeat(var(--day-count, 7), minmax(172px, 1fr));
  grid-template-rows: 56px auto;
  gap: 3px;
  width: max-content;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: var(--booking-bg);
  box-shadow: none;
}

.member-duration-head,
.member-duration-time,
.member-slot-bg {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 1px solid #d9e2ea;
  border-radius: 6px;
  color: var(--muted);
  background: var(--booking-panel);
  font-size: 13px;
  font-weight: 900;
}

.member-duration-head {
  align-content: center;
  gap: 2px;
  min-height: 56px;
  color: #344054;
  background: #ffffff;
  text-align: center;
}

.member-day-head {
  grid-template-rows: 20px minmax(0, 1fr);
  place-items: stretch;
  gap: 3px;
  padding: 4px 0 0;
}

.member-day-head > strong {
  align-self: center;
  text-align: center;
}

.member-coach-head-row {
  display: grid;
  grid-template-columns: repeat(var(--coach-count, 1), minmax(64px, 1fr));
  gap: 3px;
  width: 100%;
  min-width: 0;
  border-top: 1px solid #e5eaf0;
}

.member-coach-head-row span {
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-coach-head-row span + span {
  border-left: 1px solid #e5eaf0;
}

.member-duration-head strong,
.member-duration-head small {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.1;
}

.member-duration-head small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.member-time-rail,
.member-day-column {
  display: grid;
  grid-template-rows: repeat(var(--slot-count, 17), 36px);
  gap: 3px;
}

.member-time-rail {
  --slot-count: 17;
  position: sticky;
  left: 7px;
  z-index: 12;
  background: var(--booking-bg);
  box-shadow: 5px 0 10px rgba(24, 34, 48, 0.1);
}

.member-duration-head.time-head {
  position: sticky;
  left: 7px;
  z-index: 14;
  background: #ffffff;
  box-shadow: 5px 0 10px rgba(24, 34, 48, 0.1);
}

.member-duration-time {
  color: var(--green);
  background: var(--soft-green);
  font-size: 12px;
}

.member-day-column {
  position: relative;
  grid-template-columns: repeat(var(--coach-count, 3), minmax(52px, 1fr));
  min-width: 0;
}

.member-slot-bg {
  z-index: 1;
  grid-template-rows: minmax(0, auto) minmax(0, auto);
  align-content: center;
  justify-items: center;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  padding: 4px 3px;
  color: #98a2b3;
  font-size: 10px;
  background: #fbfcfe;
  text-align: center;
}

.member-slot-bg.off {
  color: #b94b3e;
  border-color: #f0c8c2;
  background: #fff2ef;
}

.member-slot-bg.blocked {
  color: #9f2d25;
  border-color: #e8aaa2;
  background: #ffe8e4;
  box-shadow: inset 3px 0 0 #c24132;
}

.member-slot-bg.available {
  z-index: 2;
  color: #2557a7;
  border-color: #bfd2f5;
  background: #f1f6ff;
  box-shadow: inset 3px 0 0 #2557a7;
}

.member-slot-bg.needs-approval {
  color: #b7791f;
  border-color: #f2ce91;
  background: #fff8e7;
  box-shadow: inset 3px 0 0 #b7791f;
}

.member-duration-schedule.member-request-only .member-slot-bg:not(.available) {
  color: transparent;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.member-slot-bg span,
.member-slot-bg small {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.member-duration-lesson {
  z-index: 3;
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  align-content: stretch;
  gap: 1px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  border: 1px solid #34a77a;
  border-radius: 6px;
  padding: 4px 4px 4px 7px;
  background: #e7f8f0;
  box-shadow: inset 4px 0 0 var(--green);
  text-align: left;
  overflow: hidden;
}

.member-duration-lesson.occupied {
  border-color: #c8d2df;
  background: #eef1f5;
  box-shadow: inset 4px 0 0 #98a2b3;
}

.member-duration-lesson.requested {
  border-color: #f2ce91;
  background: #fff6df;
  box-shadow: inset 4px 0 0 #b7791f;
}

.member-duration-lesson.coach-color-no {
  border-color: #9bd8c2;
  background: #e7f8f0;
  box-shadow: inset 3px 0 0 #15935f;
}

.member-duration-lesson.coach-color-kang {
  border-color: #abc8ff;
  background: #eaf2ff;
  box-shadow: inset 3px 0 0 #2b6cb0;
}

.member-duration-lesson.coach-color-hwang {
  border-color: #f4c06d;
  background: #fff4dc;
  box-shadow: inset 3px 0 0 #b7791f;
}

.member-duration-lesson.coach-color-park {
  border-color: #d6b2f4;
  background: #f6efff;
  box-shadow: inset 3px 0 0 #7c3aed;
}

.member-duration-lesson.mine {
  border-color: #34a77a;
  background: #dff7ec;
  box-shadow: inset 3px 0 0 var(--green);
}

.member-duration-lesson.mine.requested {
  border-color: #f2ce91;
  background: #fff6df;
  box-shadow: inset 3px 0 0 #b7791f;
}

.member-duration-lesson strong,
.member-duration-lesson span,
.member-duration-lesson small {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.member-duration-lesson strong {
  color: var(--ink);
  font-size: 11px;
}

.member-duration-lesson span,
.member-duration-lesson small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.member-duration-lesson.lesson-source:is(.lesson-kind-regular, .lesson-kind-regular30, .lesson-kind-makeup, .lesson-kind-coupon, .lesson-kind-noShow),
.member-mobile-lesson.lesson-source:is(.lesson-kind-regular, .lesson-kind-regular30, .lesson-kind-makeup, .lesson-kind-coupon, .lesson-kind-noShow),
.member-duration-lesson.lesson-source[class*="lesson-kind-custom-"],
.member-mobile-lesson.lesson-source[class*="lesson-kind-custom-"] {
  border-color: color-mix(in srgb, var(--lesson-color, #2f6fc4) 38%, #d9e2ea);
  background: color-mix(in srgb, var(--lesson-color, #2f6fc4) 13%, #ffffff);
  box-shadow: inset 3px 0 0 var(--lesson-color, #2f6fc4);
}

.member-duration-lesson.lesson-source strong,
.member-mobile-lesson.lesson-source strong {
  color: var(--ink);
}

.member-duration-lesson.lesson-source span,
.member-duration-lesson.lesson-source small,
.member-mobile-lesson.lesson-source span,
.member-mobile-lesson.lesson-source small {
  color: var(--muted);
}

.week-switcher {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.week-switcher .schedule-week-arrow {
  width: 48px;
  min-width: 48px;
  padding-inline: 0;
  font-size: 22px;
  line-height: 1;
}

.week-switcher div {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: center;
}

.week-switcher strong,
.week-switcher span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.week-switcher strong {
  font-size: 16px;
}

.week-switcher span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.week-switcher .schedule-period-summary {
  display: grid;
  gap: 5px;
}

.week-switcher .schedule-month-controls {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.member-duration-lesson .schedule-card-note,
.member-mobile-lesson .schedule-card-note {
  color: #9a3412;
  font-weight: 900;
}

.member-duration-lesson .schedule-card-note.is-empty,
.member-mobile-lesson .schedule-card-note.is-empty,
.member-duration-lesson .schedule-card-round.is-empty,
.member-mobile-lesson .schedule-card-round.is-empty {
  visibility: hidden;
}

.grid-head,
.grid-time,
.cell {
  min-height: 64px;
  border-radius: 8px;
}

.grid-head,
.grid-time {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f8fafc;
  font-weight: 900;
}

.cell {
  display: grid;
  gap: 2px;
  align-content: center;
  min-width: 0;
  min-height: 74px;
  border: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  background: white;
}

.cell:disabled {
  cursor: not-allowed;
}

.cell b {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 7px;
  color: white;
  background: var(--blue);
  font-size: 11px;
}

.cell strong,
.cell span,
.cell small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cell strong {
  font-size: 13px;
  line-height: 1.25;
}

.cell span,
.cell small {
  font-size: 12px;
  line-height: 1.25;
}

.cell.scheduled,
.cell.my-lesson {
  border-color: #34a77a;
  background: #dff7ec;
  box-shadow: inset 4px 0 0 var(--green);
}

.cell.available {
  border-color: #7ba5e8;
  background: #e6f0ff;
  box-shadow: inset 4px 0 0 var(--blue);
}

.cell.auto-change {
  border-color: #7ba5e8;
  background: #e6f0ff;
  box-shadow: inset 4px 0 0 var(--blue);
}

.cell.needs-approval {
  border-color: #e79b44;
  background: #fff0d6;
  box-shadow: inset 4px 0 0 var(--amber);
}

.cell.available:hover,
.slot-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 86, 166, 0.12);
}

.cell.requested,
.cell.absence {
  border-color: #f3c98b;
  background: var(--soft-amber);
}

.cell.completed {
  opacity: 0.72;
}

.cell.occupied {
  color: var(--muted);
  background: #f2f4f7;
  opacity: 0.9;
}

.cell.lesson-continues {
  border-style: solid;
  opacity: 1;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.32) 0,
    rgba(255, 255, 255, 0.32) 6px,
    transparent 6px,
    transparent 12px
  );
}

.cell.occupied.lesson-continues {
  border-color: #c8d2df;
  background-color: #e9eef5;
}

.cell.my-lesson.lesson-continues {
  border-color: #34a77a;
  background-color: #dff7ec;
}

.cell.empty {
  color: #98a2b3;
  text-align: center;
  background: #f8fafc;
}

.form-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  background: white;
}

.profile-info {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.profile-info strong {
  font-size: 20px;
}

.profile-info span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.profile-info small {
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-settings-card {
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 18px rgba(24, 34, 48, 0.04);
}

.settings-heading {
  display: grid;
  gap: 3px;
  padding: 14px 16px 10px;
}

.settings-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.settings-heading strong {
  font-size: 16px;
}

.settings-row {
  display: grid;
  width: 100%;
  min-height: 64px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 0;
  border-top: 1px solid #edf0f2;
  border-radius: 0;
  padding: 10px 16px;
  color: var(--ink);
  background: white;
  text-align: left;
}

.settings-row[hidden] {
  display: none !important;
}

.settings-row:active {
  background: #f4f7f6;
}

.settings-row-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: var(--green);
  font-size: 14px;
  font-weight: 950;
}

.settings-row-icon.kakao-icon {
  color: #191919;
  background: var(--yellow);
}

.settings-row-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.settings-row-copy strong {
  font-size: 15px;
}

.settings-row-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-row-arrow {
  color: #98a2b3;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.settings-row-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--green);
  background: var(--soft-green);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.danger-settings-row .settings-row-icon {
  color: #b42318;
  background: #fff0ed;
}

.danger-settings-row .settings-row-copy strong {
  color: #b42318;
}

.push-settings-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid #b7dfd2;
  border-radius: 8px;
  background: #f2fbf7;
}

.push-settings-card > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.push-settings-card span,
.push-settings-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.push-settings-card strong {
  font-size: 15px;
}

.push-settings-card.is-enabled {
  border-color: #7fcab3;
  background: #e8f8f1;
}

.push-settings-card.is-denied {
  border-color: #f0b5a8;
  background: #fff4f1;
}

.account-settings-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  border: 1px solid #e3ddd7;
  border-radius: 8px;
  padding: 16px;
  background: #fffdfb;
}

.account-settings-card > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-settings-card span,
.account-settings-card small {
  color: var(--muted);
}

.account-settings-card strong {
  color: var(--ink);
}

.account-settings-card.is-pending {
  border-color: #f1c86b;
  background: #fffaf0;
}

.account-settings-card.is-completed {
  border-color: #cfd8d4;
  background: #f7faf9;
}

.account-deletion-form {
  display: grid;
  gap: 14px;
}

.account-deletion-confirm-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.account-deletion-confirm-row input {
  margin-top: 3px;
}

.upload-button {
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  color: white;
  background: var(--green);
  cursor: pointer;
}

.profile-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.identity-profile-grid {
  margin-bottom: 10px;
}

.nickname-check-panel,
.nickname-check-row {
  display: grid;
  gap: 6px;
  align-content: end;
  min-width: 0;
}

.nickname-check-panel small,
.nickname-check-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.nickname-check-panel small.is-available,
.nickname-check-row small.is-available {
  color: var(--green);
}

.nickname-check-panel small.is-unavailable,
.nickname-check-row small.is-unavailable {
  color: #b42318;
}

.ntrp-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ntrp-panel article {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.ntrp-panel article.is-requested {
  border-color: #e79b44;
  background: var(--soft-amber);
}

.ntrp-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.ntrp-panel strong {
  font-size: 15px;
}

.ntrp-panel small {
  color: var(--muted);
  line-height: 1.45;
}

.ntrp-survey {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.ntrp-survey .section-title h3 {
  margin: 0;
}

.ntrp-reference-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(0, 1fr);
  gap: 8px;
}

.ntrp-reference-grid article {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.ntrp-reference-button {
  display: grid;
  gap: 7px;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 12px;
  color: inherit;
  text-align: left;
  background: transparent;
}

.ntrp-reference-grid strong,
.ntrp-reference-grid span,
.ntrp-reference-grid small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ntrp-reference-grid strong {
  font-size: 13px;
}

.ntrp-reference-grid span,
.ntrp-reference-grid small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.ntrp-reference-button b {
  justify-self: start;
  border-radius: 999px;
  padding: 7px 12px;
  color: white;
  background: var(--green);
  font-size: 12px;
}

.ntrp-survey-list {
  display: grid;
  gap: 10px;
}

.ntrp-modal-card {
  width: min(900px, calc(100vw - 28px));
}

.ntrp-modal-image {
  width: 100%;
  max-height: 72vh;
  border-radius: 8px;
  object-fit: contain;
  background: #f2f4f7;
}

.ntrp-official-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ntrp-official-summary article {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
}

.ntrp-official-summary strong {
  color: var(--blue);
}

.ntrp-quick-guide {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.ntrp-quick-guide article {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: white;
}

.ntrp-quick-guide strong {
  color: var(--blue);
  font-size: 18px;
}

.ntrp-quick-guide span {
  font-size: 12px;
  font-weight: 950;
}

.ntrp-quick-guide small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.ntrp-question {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  margin: 0;
  background: white;
}

.ntrp-question legend {
  padding: 0 4px;
  font-weight: 950;
}

.ntrp-question label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.ntrp-question span {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.profile-summary article {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.profile-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.profile-summary strong {
  font-size: 14px;
  line-height: 1.35;
}

.schedule-request-card {
  margin-top: 12px;
}

.schedule-request-card h3 {
  margin: 0;
}

.policy-note {
  margin: 0;
  border-radius: 8px;
  padding: 10px;
  color: var(--amber);
  background: var(--soft-amber);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
}

.journal-fields {
  display: grid;
  gap: 12px;
}

.journal-fields[hidden] {
  display: none;
}

.inline-guide {
  margin: -2px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.slot-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 210px;
  margin-bottom: 12px;
  overflow: auto;
  padding-right: 2px;
}

.slot-card {
  display: grid;
  gap: 4px;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  text-align: left;
  background: white;
}

.slot-card.is-selected {
  border-color: var(--green);
  background: var(--soft-green);
}

.slot-card.auto-change {
  border-color: #8ac7ad;
}

.slot-card.needs-approval {
  border-color: #f3c98b;
  background: var(--soft-amber);
}

.slot-card strong {
  color: var(--ink);
}

.slot-card span,
.slot-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.list-heading {
  margin: 14px 0 8px;
}

.journal-calendar-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  background: white;
}

.journal-calendar-card h3,
.journal-calendar-card span {
  margin: 0;
}

.journal-calendar-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.journal-calendar-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.journal-calendar-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.journal-calendar-controls strong {
  min-width: 94px;
  text-align: center;
}

.journal-calendar-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.35fr);
  gap: 8px;
}

.journal-tools-disclosure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.journal-tools-disclosure summary {
  min-height: 42px;
  padding: 10px 12px;
  color: var(--blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.journal-tools-disclosure[open] summary {
  border-bottom: 1px solid var(--line);
}

.journal-tools-disclosure .journal-calendar-tools {
  padding: 10px;
}

.journal-calendar {
  display: grid;
  gap: 6px;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekdays b {
  display: grid;
  min-height: 26px;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.calendar-empty {
  min-height: 54px;
}

.journal-day {
  display: grid;
  gap: 2px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  text-align: left;
  background: #f8fafc;
}

.journal-day strong {
  color: var(--ink);
  font-size: 14px;
}

.journal-day span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.journal-day.has-lesson {
  background: var(--soft-blue);
}

.journal-day.has-record {
  border-color: #8ac7ad;
  background: var(--soft-green);
}

.journal-day.is-selected {
  border-color: #2563eb;
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.16);
}

.journal-day.matches-search {
  outline: 2px solid rgba(37, 99, 235, 0.2);
}

.journal-selected-panel {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.journal-selected-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.journal-selected-heading div,
.journal-selected-list,
.journal-selected-card,
.journal-selected-meta {
  display: grid;
  gap: 6px;
}

.journal-selected-heading strong {
  color: var(--ink);
}

.journal-selected-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.journal-selected-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.journal-selected-card.lesson {
  background: var(--soft-blue);
}

.journal-selected-card.practice {
  background: var(--soft-green);
}

.journal-selected-card-head {
  display: grid;
  gap: 4px;
}

.journal-selected-card-head span {
  color: var(--accent);
  font-size: 12px;
}

.journal-selected-card-head small,
.journal-selected-meta,
.journal-selected-card p {
  color: var(--muted);
  line-height: 1.5;
}

.journal-selected-card p {
  margin: 0;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: white;
  color: var(--ink);
}

textarea {
  width: 100%;
  min-height: 90px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  resize: vertical;
  color: var(--ink);
  font: inherit;
}

.primary-button {
  color: white;
  background: var(--green);
}

.request-list,
.history-list {
  display: grid;
  gap: 8px;
}

.ticket-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.member-alert-list {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.member-alert-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
}

.member-alert-card.alert {
  border-color: #f3b8aa;
  background: #fff0ee;
}

.member-alert-card.wait {
  border-color: #f3c98b;
  background: var(--soft-amber);
}

.member-alert-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.member-alert-card strong,
.member-alert-card span,
.member-alert-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.member-alert-card span,
.member-alert-card small {
  color: var(--muted);
  line-height: 1.45;
}

.member-alert-card b {
  border-radius: 999px;
  padding: 7px 10px;
  color: #8a1f16;
  background: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  white-space: nowrap;
}

.renewal-policy-panel,
.flow-guide {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.renewal-policy-panel {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
}

.flow-guide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.member-enrollment-status {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  border: 1px solid #b9d7ce;
  border-radius: 8px;
  padding: 13px 14px;
  background: #eef8f4;
}

.member-enrollment-status > span {
  grid-row: 1 / span 2;
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--green);
  background: white;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.member-enrollment-status strong,
.member-enrollment-status p {
  min-width: 0;
}

.member-enrollment-status p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.member-enrollment-status.wait {
  border-color: #f0c781;
  background: var(--soft-amber);
}

.member-enrollment-status.journal {
  border-color: #bfd3eb;
  background: var(--soft-blue);
}

.renewal-card,
.flow-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
}

.renewal-card.alert {
  border-color: #f3b8aa;
  background: #fff0ee;
}

.renewal-card span,
.flow-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.renewal-card strong,
.flow-card strong {
  color: var(--ink);
  line-height: 1.35;
}

.renewal-card p,
.flow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
}

.flow-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.flow-card div span {
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--soft-blue);
  color: var(--blue);
}

.ticket-card {
  display: grid;
  gap: 6px;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
}

.ticket-card.primary {
  border-color: #34a77a;
  background: #dff7ec;
}

.ticket-card.alert {
  border-color: #f3b8aa;
  background: #fff0ee;
}

.ticket-card.wait {
  border-color: #f3c98b;
  background: var(--soft-amber);
}

.ticket-action-card {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: auto;
}

.ticket-action-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ticket-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ticket-action-buttons .primary-button,
.ticket-action-buttons .small-button {
  align-self: center;
  white-space: nowrap;
}

.ticket-action-buttons .primary-button:disabled,
.ticket-action-buttons .small-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ticket-check-status {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  background: white;
}

.ticket-check-status.done {
  color: var(--green);
}

.ticket-check-status.alert {
  color: var(--danger);
}

.ticket-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.ticket-card strong {
  color: var(--ink);
  font-size: 22px;
}

.ticket-card small {
  color: var(--muted);
  font-weight: 800;
}

.lesson-status-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
}

.lesson-status-card.done {
  background: var(--soft-green);
}

.lesson-status-card.wait {
  background: var(--soft-amber);
}

.lesson-status-card div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.lesson-status-card strong,
.lesson-status-card span,
.lesson-status-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.lesson-status-card span,
.lesson-status-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.lesson-status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.notion-link {
  display: inline-grid;
  min-height: 34px;
  align-items: center;
  text-decoration: none;
}

.request-card,
.history-card {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.compact-log {
  gap: 7px;
}

.summary-log {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.summary-log:hover,
.curriculum-compact-card:hover {
  border-color: rgba(37, 99, 235, 0.34);
  transform: translateY(-1px);
}

.summary-log-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.summary-log-main strong,
.summary-log-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-log-status {
  display: inline-grid;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.compact-log .small-button {
  justify-self: start;
  min-height: 34px;
}

.request-card b {
  color: var(--amber);
  font-size: 13px;
}

.history-card.done {
  background: var(--soft-green);
}

.history-card.wait {
  background: var(--soft-amber);
}

.history-card.alert {
  border-color: #f3b8aa;
  background: #fff0ee;
}

.history-card strong,
.history-card b {
  font-size: 14px;
}

.history-card small {
  color: var(--muted);
  line-height: 1.5;
}

.list-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.list-pager span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.page-number-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-number {
  display: inline-grid;
  min-width: 34px;
  min-height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 950;
  cursor: pointer;
}

.page-number.is-current {
  border-color: rgba(21, 122, 91, 0.42);
  background: var(--green);
  color: white;
}

.pass-history-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
}

.pass-history-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pass-history-card b {
  justify-self: end;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green);
  font-size: 12px;
  white-space: nowrap;
}

.pass-history-card > small {
  grid-column: 1 / -1;
}

.form-help {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.journal-detail-card {
  display: grid;
  gap: 8px;
}

.journal-detail-card p {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.6;
}

.journal-detail-card strong {
  color: var(--ink);
}

.journal-entry-list {
  display: grid;
  gap: 8px;
}

.journal-entry-button {
  display: grid;
  gap: 4px;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  text-align: left;
  background: white;
}

.journal-entry-button strong {
  color: var(--green);
}

.journal-entry-button span,
.journal-entry-button small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 12px;
}

.split-panel h3 {
  margin: 0 0 8px;
}

.curriculum-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--soft-blue);
}

.curriculum-compact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.curriculum-compact-card span,
.curriculum-compact-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.curriculum-compact-card strong,
.curriculum-compact-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.curriculum-compact-card b {
  grid-row: 1 / span 3;
  grid-column: 2;
  display: inline-grid;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: white;
  color: var(--blue);
  font-size: 12px;
  white-space: nowrap;
}

.curriculum-main-card {
  margin-bottom: 12px;
}

.curriculum-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(21, 122, 91, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: white;
}

.curriculum-hero div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.curriculum-hero span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.curriculum-hero strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.curriculum-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.curriculum-hero-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.curriculum-summary {
  display: grid;
  gap: 6px;
}

.curriculum-summary > span,
.curriculum-stage span,
.journal-curriculum-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.curriculum-summary strong,
.curriculum-stage strong,
.journal-curriculum-card strong {
  color: var(--ink);
  line-height: 1.35;
}

.curriculum-card span,
.curriculum-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.curriculum-stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.curriculum-stage {
  display: grid;
  gap: 5px;
  min-height: 112px;
  border: 1px solid rgba(37, 87, 167, 0.18);
  border-radius: 8px;
  padding: 10px;
  background: white;
}

.curriculum-stage.current {
  border-color: rgba(21, 122, 91, 0.28);
  background: var(--soft-green);
}

.curriculum-stage.next {
  border-color: rgba(37, 87, 167, 0.28);
}

.curriculum-stage.review {
  background: #fff8eb;
}

.curriculum-stage small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.curriculum-full-list {
  display: grid;
  gap: 12px;
}

.curriculum-progress-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.curriculum-progress-board article {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
}

.curriculum-progress-board article.is-active {
  border-color: rgba(21, 122, 91, 0.28);
  background: var(--soft-green);
  box-shadow: inset 4px 0 0 var(--green);
}

.curriculum-progress-board article.is-waiting {
  background: #f8fafc;
}

.curriculum-progress-board span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.curriculum-progress-board strong {
  color: var(--ink);
  font-size: 18px;
}

.curriculum-progress-board small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.member-curriculum-toolbar {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
}

.member-curriculum-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.member-curriculum-search-row input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #f8fafc;
  font: inherit;
}

.member-curriculum-search-row b {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.curriculum-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.curriculum-filter {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  color: var(--muted);
  background: #f8fafc;
  font-weight: 900;
}

.curriculum-filter.is-active {
  border-color: var(--green);
  color: white;
  background: var(--green);
}

#memberCurriculumLibrary {
  display: grid;
  gap: 9px;
}

.curriculum-category {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
}

.curriculum-category-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.curriculum-track > summary {
  cursor: pointer;
  list-style: none;
}

.curriculum-track > summary::-webkit-details-marker {
  display: none;
}

.curriculum-track > summary::after {
  content: "+";
  display: grid;
  width: 26px;
  height: 26px;
  grid-column: 2;
  grid-row: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: white;
}

.curriculum-track[open] > summary::after {
  content: "−";
}

.curriculum-track .curriculum-category-heading b {
  margin-right: 34px;
}

.curriculum-track-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.curriculum-track-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.curriculum-category-heading div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.curriculum-category-heading strong {
  color: var(--ink);
  font-size: 18px;
}

.curriculum-category-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.curriculum-category-heading b {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--green);
  background: var(--soft-green);
  font-size: 12px;
  white-space: nowrap;
}

.curriculum-step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.curriculum-step {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(37, 87, 167, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.curriculum-step.is-current {
  border-color: rgba(21, 122, 91, 0.34);
  background: var(--soft-green);
  box-shadow: inset 4px 0 0 var(--green);
}

.curriculum-step div {
  display: grid;
  gap: 3px;
}

.curriculum-step span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.curriculum-step strong {
  color: var(--ink);
  line-height: 1.35;
}

.curriculum-step p {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.curriculum-step p b {
  color: var(--ink);
}

.curriculum-step .small-button {
  justify-self: start;
  min-height: 34px;
}

.curriculum-environment-note {
  border-left: 3px solid var(--amber);
  padding-left: 8px;
  color: #8a5a12;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.45;
}

.curriculum-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  background: white;
  text-align: center;
}

.journal-curriculum-card {
  display: grid;
  gap: 7px;
  margin-top: 4px;
  border: 1px solid rgba(37, 87, 167, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: var(--soft-blue);
}

.empty-text {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 720px) {
  .app-screen {
    padding: 14px;
  }

  .view > .section-title > span,
  .view > .section-title > div > span,
  .journal-calendar-head > div:first-child > span {
    display: none;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
  }

  .summary-grid article {
    gap: 5px;
    min-height: 116px;
    padding: 12px;
  }

  .home-view .summary-grid .summary-card.primary {
    grid-column: 1 / -1;
    grid-template-areas:
      "label action"
      "value action"
      "detail action";
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 118px;
  }

  .home-view .summary-card.primary > span {
    grid-area: label;
  }

  .home-view .summary-card.primary > strong {
    grid-area: value;
  }

  .home-view .summary-card.primary > small {
    grid-area: detail;
  }

  .home-view .summary-card.primary > button {
    grid-area: action;
    align-self: center;
  }

  .summary-grid span {
    font-size: 12px;
  }

  .summary-grid strong {
    font-size: 22px;
    line-height: 1.15;
  }

  .summary-grid small {
    font-size: 12px;
    line-height: 1.35;
  }

  .today-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-form-grid,
  .ntrp-panel,
  .ntrp-reference-grid,
  .ntrp-quick-guide,
  .profile-summary,
  .split-panel {
    grid-template-columns: 1fr;
  }

  .journal-calendar-head,
  .journal-calendar-tools,
  .journal-selected-heading {
    grid-template-columns: 1fr;
  }

  .journal-calendar-controls {
    justify-content: space-between;
  }

  .calendar-empty,
  .journal-day {
    min-height: 46px;
  }

  .journal-day {
    align-content: start;
    padding: 5px;
  }

  .journal-day strong {
    font-size: 13px;
  }

  .journal-day span {
    font-size: 9px;
  }

  .flow-guide,
  .renewal-policy-panel,
  .curriculum-progress-board,
  .curriculum-step-list,
  .curriculum-hero,
  .curriculum-category-heading {
    grid-template-columns: 1fr;
  }

  .slot-list {
    grid-template-columns: 1fr;
  }

  .brand h1 {
    font-size: 26px;
  }

  .tabbar {
    display: flex;
    overflow-x: auto;
    gap: 7px;
    margin-right: -14px;
    padding-right: 14px;
    scrollbar-width: none;
  }

  .tabbar::-webkit-scrollbar {
    display: none;
  }

  .tabbar .tab {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 13px;
    white-space: nowrap;
  }
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.channel-button {
  display: inline-grid;
  min-height: 44px;
  align-items: center;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--yellow);
  color: #191919;
  font-weight: 900;
  text-decoration: none;
}

.notice-dialog[hidden] {
  display: none;
}

.notice-dialog,
.change-request-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
}

.notice-dialog {
  --notice-inset-top: max(20px, env(safe-area-inset-top));
  --notice-inset-right: max(20px, env(safe-area-inset-right));
  --notice-inset-bottom: max(20px, env(safe-area-inset-bottom));
  --notice-inset-left: max(20px, env(safe-area-inset-left));
  z-index: 1000;
  isolation: isolate;
  padding: var(--notice-inset-top) var(--notice-inset-right) var(--notice-inset-bottom) var(--notice-inset-left);
  overscroll-behavior: contain;
}

.notice-backdrop,
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 34, 48, 0.38);
}

.notice-card,
.change-modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: white;
  box-shadow: 0 18px 42px rgba(24, 34, 48, 0.18);
}

.notice-card {
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  max-height: calc(100dvh - var(--notice-inset-top) - var(--notice-inset-bottom));
  padding: 0;
  overflow: hidden;
}

.notice-scroll-region {
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.change-request-modal[hidden] {
  display: none;
}

.change-modal-card {
  width: min(520px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
}

.identity-setup-modal {
  z-index: 60;
}

.identity-setup-card {
  width: min(460px, 100%);
}

.identity-setup-card > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.identity-setup-form {
  display: grid;
  gap: 12px;
}

.identity-setup-form label > span {
  color: var(--ink);
}

.identity-demographics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.identity-setup-form small {
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 420px) {
  .identity-demographics-grid {
    grid-template-columns: 1fr;
  }
}

.identity-setup-form .consent-row {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  line-height: 1.5;
}

.identity-setup-form .consent-row input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}

.identity-setup-form .consent-row a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.identity-setup-required {
  overflow: hidden;
}

.member-enrollment-modal-card {
  width: min(680px, 100%);
}

.member-enrollment-product {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  border-left: 4px solid var(--green);
  padding: 10px 12px;
  background: var(--soft-green);
}

.member-enrollment-product > span {
  grid-row: 1 / span 2;
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
}

.member-enrollment-product small {
  color: var(--muted);
}

.member-enrollment-form {
  display: grid;
  gap: 13px;
}

.member-enrollment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.member-enrollment-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.member-enrollment-form label > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.member-enrollment-form label > span b,
.member-enrollment-consents b {
  color: #b42318;
  font-size: 11px;
}

.member-enrollment-form label > span small {
  color: var(--muted);
  font-size: 11px;
}

.member-enrollment-form input,
.member-enrollment-form select,
.member-enrollment-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  color: var(--ink);
  background: white;
  font: inherit;
}

.member-enrollment-form textarea {
  resize: vertical;
  line-height: 1.5;
}

.member-enrollment-partner {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 1px solid #c7d5e4;
  border-radius: 8px;
  padding: 12px;
  background: #f5f8fb;
}

.member-enrollment-partner[hidden] {
  display: none;
}

.member-enrollment-partner legend {
  padding: 0 5px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
}

.member-enrollment-partner > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.member-enrollment-consents {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.member-enrollment-consents label {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.member-enrollment-consents input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}

.member-enrollment-consents a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.member-mobile-schedule {
  display: none;
}

.member-desktop-schedule {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 720px) {
  .member-desktop-schedule {
    display: none;
  }

  .member-mobile-schedule {
    display: grid;
    gap: 10px;
    min-width: 0;
  }

  .member-mobile-day-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
  }

  .member-mobile-day {
    display: grid;
    gap: 2px;
    place-items: center;
    min-width: 0;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 4px 1px;
    color: var(--muted);
    background: white;
  }

  .member-mobile-day strong {
    color: var(--ink);
    font-size: 12px;
  }

  .member-mobile-day span {
    font-size: 9px;
    font-weight: 850;
  }

  .member-mobile-day.is-active {
    border-color: var(--green);
    color: white;
    background: var(--green);
  }

  .member-mobile-day.is-active strong {
    color: white;
  }

  .member-mobile-segment {
    display: grid;
    gap: 6px;
    min-width: 0;
  }

  .member-mobile-segment-title {
    display: flex;
    gap: 6px;
    align-items: baseline;
    justify-content: space-between;
    min-width: 0;
    padding: 0 2px;
  }

  .member-mobile-segment-title strong {
    color: var(--ink);
    font-size: 13px;
  }

  .member-mobile-segment-title span {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .member-mobile-lane-board {
    display: grid;
    grid-template-columns: 52px repeat(var(--coach-count, 2), minmax(0, 1fr));
    grid-template-rows: 42px auto;
    gap: 3px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 5px;
    background: var(--booking-bg);
  }

  .member-mobile-lane-head {
    display: grid;
    place-items: center;
    min-width: 0;
    border: 1px solid #d9e2ea;
    border-radius: 6px;
    color: var(--ink);
    background: white;
    font-size: 11px;
    font-weight: 900;
  }

  .member-mobile-lane-head.time {
    color: var(--green);
    background: var(--soft-green);
  }

  .member-mobile-lane-head.coach-color-no { box-shadow: inset 0 -3px 0 #15935f; }
  .member-mobile-lane-head.coach-color-kang { box-shadow: inset 0 -3px 0 #2b6cb0; }
  .member-mobile-lane-head.coach-color-hwang { box-shadow: inset 0 -3px 0 #b7791f; }
  .member-mobile-lane-head.coach-color-park { box-shadow: inset 0 -3px 0 #7c3aed; }

  .member-mobile-time-rail,
  .member-mobile-coach-lane {
    display: grid;
    grid-template-rows: repeat(var(--slot-count, 30), 38px);
    gap: 3px;
    min-width: 0;
  }

  .member-mobile-time-rail span {
    display: grid;
    place-items: center;
    min-width: 0;
    border: 1px solid #d9e2ea;
    border-radius: 5px;
    color: var(--green);
    background: var(--soft-green);
    font-size: 10px;
    font-weight: 900;
  }

  .member-mobile-coach-lane {
    position: relative;
  }

  .member-mobile-slot,
  .member-mobile-lesson {
    box-sizing: border-box;
    grid-column: 1;
    width: 100%;
    min-width: 0;
    min-height: 0;
    border-radius: 5px;
  }

  .member-mobile-slot {
    z-index: 1;
    border: 1px solid #d9e2ea;
    color: transparent;
    background: #fbfcfe;
  }

  .member-mobile-slot.available {
    color: #2557a7;
    border-color: #bfd2f5;
    background: #f1f6ff;
    font-size: 15px;
    font-weight: 900;
  }

  .member-mobile-slot.off {
    border-color: #efc4bd;
    background: #fff2ef;
  }

  .member-mobile-schedule.member-request-only .member-mobile-slot:not(.available) {
    color: transparent;
    border-color: transparent;
    background: transparent;
  }

  .member-mobile-lesson {
    z-index: 3;
    display: grid;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    align-content: stretch;
    gap: 1px;
    overflow: hidden;
    border: 1px solid #c8d2df;
    padding: 4px 5px 4px 8px;
    background: #eef1f5;
    box-shadow: inset 3px 0 0 #98a2b3;
    text-align: left;
  }

  .member-mobile-lesson strong,
  .member-mobile-lesson span,
  .member-mobile-lesson small {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .member-mobile-lesson strong {
    color: var(--ink);
    font-size: 11px;
  }

  .member-mobile-lesson span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
  }

  .member-mobile-lesson.coach-color-no { border-color: #9bd8c2; background: #e7f8f0; box-shadow: inset 3px 0 0 #15935f; }
  .member-mobile-lesson.coach-color-kang { border-color: #abc8ff; background: #eaf2ff; box-shadow: inset 3px 0 0 #2b6cb0; }
  .member-mobile-lesson.coach-color-hwang { border-color: #f4c06d; background: #fff4dc; box-shadow: inset 3px 0 0 #b7791f; }
  .member-mobile-lesson.coach-color-park { border-color: #d6b2f4; background: #f6efff; box-shadow: inset 3px 0 0 #7c3aed; }

  .member-mobile-lesson.mine {
    border-color: #9bd8c2;
    background: #e7f8f0;
    box-shadow: inset 3px 0 0 #15935f;
  }

  .member-mobile-lesson.requested {
    border-color: #f2ce91;
    background: #fff6df;
    box-shadow: inset 3px 0 0 #b7791f;
  }

  .member-mobile-break {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid #efc4bd;
    border-left: 4px solid #c24132;
    border-radius: 6px;
    color: #8f2f27;
    background: #fff2ef;
    font-size: 11px;
  }

  .member-mobile-empty {
    margin: 0;
    border: 1px dashed var(--line);
    border-radius: 8px;
    padding: 18px 12px;
    color: var(--muted);
    background: #f8fafc;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
  }
}

.ticket-card.holding {
  border-color: #b9d7cf;
  background: #f4faf8;
}

.holding-modal-card {
  width: min(620px, calc(100vw - 24px));
}

.holding-request-form {
  display: grid;
  gap: 14px;
}

.holding-request-form label,
.holding-file-field {
  display: grid;
  gap: 7px;
}

.holding-date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.holding-evidence-fields {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #efc4c4;
  background: #fff8f8;
}

.holding-evidence-fields[hidden] {
  display: none;
}

.holding-consent-row {
  grid-template-columns: auto 1fr;
  align-items: start;
}

@media (max-width: 560px) {
  .push-settings-card {
    grid-template-columns: 1fr;
  }

  .push-settings-card .small-button {
    width: 100%;
  }

  .account-settings-card {
    grid-template-columns: 1fr;
  }

  .account-settings-card .small-button {
    width: 100%;
  }

  .holding-date-grid {
    grid-template-columns: 1fr;
  }
}

.change-modal-card .form-card {
  margin-bottom: 0;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.notice-card h2,
.notice-card p {
  margin: 0;
}

.notice-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.notice-meta {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.notice-image {
  display: block;
  width: 100%;
  max-height: min(36dvh, 280px);
  aspect-ratio: 16 / 8;
  border-radius: 8px;
  object-fit: cover;
  background: #f4f7fb;
}

.notice-image[hidden],
.notice-action[hidden] {
  display: none;
}

.notice-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 12px 18px max(12px, env(safe-area-inset-bottom));
  background: white;
}

.notice-action {
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  text-align: center;
  text-decoration: none;
}

.product-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.payment-gateway-status {
  margin-bottom: 12px;
}

.payment-status-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
  box-shadow: 0 8px 18px rgba(24, 34, 48, 0.05);
}

.payment-status-card.setup {
  border-color: #f3c98b;
  background: var(--soft-amber);
}

.payment-status-card.ready {
  border-color: rgba(21, 122, 91, 0.28);
  background: var(--soft-green);
}

.payment-status-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.payment-status-card strong {
  color: var(--ink);
  font-size: 15px;
}

.payment-status-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.payment-status-card b {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--green);
  background: white;
  font-size: 12px;
  white-space: nowrap;
}

.payment-method-selector {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.payment-method-selector-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.payment-method-selector-title strong {
  color: var(--ink);
  font-size: 14px;
}

.payment-method-selector-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.payment-method-segments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f5f7;
}

.payment-method-option {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 66px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 6px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.payment-method-option strong,
.payment-method-option small {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.payment-method-option strong {
  font-size: 13px;
}

.payment-method-option small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.payment-method-option.is-selected {
  border-color: rgba(15, 118, 110, 0.35);
  color: var(--green);
  background: white;
  box-shadow: 0 4px 10px rgba(24, 34, 48, 0.08);
}

.payment-method-option[data-select-payment-method="naverpay"].is-selected {
  border-color: #03c75a;
  color: #00883e;
  background: #f2fff7;
}

.payment-method-option[data-select-payment-method="kakaopay"].is-selected {
  border-color: #e2c900;
  color: #2f2810;
  background: #fffbe0;
}

.payment-method-option:disabled {
  color: #8a929c;
  cursor: not-allowed;
  opacity: 0.72;
}

.product-group {
  display: grid;
  gap: 8px;
}

.product-group h3 {
  margin: 0;
  font-size: 17px;
}

.product-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
  align-content: start;
}

.product-card div {
  display: grid;
  gap: 4px;
}

.product-card-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.product-card i {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--blue);
  background: var(--soft-blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.product-card span {
  color: var(--muted);
  line-height: 1.5;
}

.product-card > b {
  color: var(--green);
  font-size: 20px;
}

.product-meta-pills {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.product-meta-pills span {
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--soft-green);
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.product-price-panel {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgba(21, 122, 91, 0.14);
  border-radius: 8px;
  padding: 10px;
  background: var(--soft-green);
}

.product-price-panel.consult {
  grid-template-columns: 1fr;
  background: var(--soft-amber);
  border-color: rgba(160, 105, 38, 0.18);
}

.product-price-panel div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.product-price-panel span,
.product-price-panel small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
}

.product-price-panel strong {
  color: var(--green);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
}

.product-price-panel b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.product-flow-text {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.form-card h3 {
  margin: 0;
}

@media (max-width: 720px) {
  .tabbar,
  .product-grid,
  .product-group-grid,
  .ticket-overview,
  .member-alert-card,
  .notice-actions {
    grid-template-columns: 1fr;
  }

  .product-price-panel {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
  }

  .ntrp-official-summary {
    grid-template-columns: 1fr;
  }

  .profile-card {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
  }

  .profile-avatar.large {
    width: 72px;
    height: 72px;
    font-size: 26px;
  }

  .profile-info strong {
    font-size: 18px;
  }

  .lesson-status-card {
    grid-template-columns: 1fr;
  }

  .pass-history-card {
    grid-template-columns: 1fr;
  }

  .pass-history-card b {
    justify-self: start;
  }

  .member-alert-card b {
    justify-self: start;
  }

  .lesson-status-actions {
    justify-content: flex-start;
  }

  .curriculum-stage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .today-action-grid {
    grid-template-columns: 1fr;
  }

  .today-card {
    min-height: auto;
  }
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 900;
}

.check-row input {
  width: 18px;
  height: 18px;
}

input[type="file"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: white;
}

.media-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.journal-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 4px 0 8px;
}

.journal-media-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(118px, 160px));
  gap: 8px;
}

.journal-media-item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.journal-media-item img,
.journal-media-item video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #101828;
}

.journal-media-grid.compact .journal-media-item img,
.journal-media-grid.compact .journal-media-item video {
  aspect-ratio: 1 / 1;
}

.journal-media-item figcaption {
  overflow: hidden;
  padding: 7px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-chip {
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--blue);
  background: var(--soft-blue);
  font-size: 12px;
}

.legal-links,
.app-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.legal-links a,
.app-legal-links a {
  color: var(--muted);
  text-decoration: none;
}

.business-operator-info {
  flex-basis: 100%;
  display: grid;
  justify-items: center;
  max-width: 860px;
  gap: 2px 8px;
  margin: 4px auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.55;
}

.business-operator-info strong,
.business-operator-info span,
.business-operator-info .terms-notice-link {
  white-space: normal;
  text-align: center;
}

.business-operator-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px 12px;
  width: 100%;
}

.business-operator-contact {
  margin-top: 2px;
}

.business-operator-info strong {
  color: var(--ink);
}

.business-operator-info a {
  display: inline;
  min-height: 0;
  color: inherit;
  font-weight: 800;
}

.business-operator-info .terms-notice-link {
  margin-top: 4px;
  color: var(--blue);
  font-weight: 850;
  text-decoration: underline;
}

@media (max-width: 520px) {
  .business-operator-row {
    gap: 2px 8px;
  }

  .business-operator-contact {
    flex-direction: column;
  }
}

.support-modal-card h2,
.support-modal-card p {
  margin: 0;
}

.support-modal-card > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.support-hours {
  display: grid;
  gap: 3px;
  border-radius: 10px;
  padding: 12px;
  background: #f6f8f7;
}

.support-hours strong {
  color: var(--ink);
  font-size: 13px;
}

.support-hours span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.legal-links a:hover,
.app-legal-links a:hover {
  color: var(--green);
}

.app-legal-links {
  margin-top: 18px;
  padding: 18px 0 4px;
}

.release-version {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.member-heading-copy .release-version {
  display: block;
  margin-top: 2px;
}

.app-legal-links .release-version {
  flex-basis: 100%;
}

.coach-feedback,
.next-lesson-note {
  margin: 4px 0 0;
  color: var(--blue);
  font-weight: 800;
}
.product-card em {
  display: block;
  margin-top: 6px;
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.5;
}

.group-account-panel:empty {
  display: none;
}

.member-group-account-card {
  display: grid;
  gap: 12px;
  margin: 12px 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--paper);
}

.member-group-account-heading,
.member-group-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.member-group-account-heading > div,
.member-group-payment-status {
  display: grid;
  gap: 3px;
}

.member-group-account-heading span,
.member-group-account-heading small,
.member-group-payment-status span,
.member-group-payment-status small,
.member-group-people span,
.member-group-people small {
  color: var(--muted);
  font-size: 12px;
}

.member-group-account-heading b {
  color: var(--green);
  font-size: 12px;
}

.member-group-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.member-group-people > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--booking-panel);
}

.member-group-actions {
  justify-content: flex-start;
}

@media (max-width: 560px) {
  .member-group-people {
    grid-template-columns: 1fr;
  }
}

/* Android phone ergonomics: keep primary navigation reachable and text legible. */
input[type="text"],
input[type="date"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="email"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: white;
  font: inherit;
}

.title-action,
.curriculum-step .small-button,
.pagination button,
.journal-calendar-controls .small-button,
.member-schedule-filter,
.week-switcher button {
  min-height: 44px;
}

.member-schedule-filter {
  min-width: 44px;
}

select {
  min-height: 44px;
}

.page-number,
.notion-link,
.legal-links a,
.app-legal-links a {
  min-height: 44px;
}

.page-number {
  min-width: 44px;
}

.legal-links a,
.app-legal-links a {
  display: inline-flex;
  align-items: center;
}

.ntrp-question label {
  grid-template-columns: 20px minmax(0, 1fr);
  min-height: 44px;
  align-items: center;
  padding: 4px 0;
}

.ntrp-question input[type="radio"] {
  width: 20px;
  height: 20px;
}

.member-duration-schedule {
  min-width: 0;
}

.member-time-rail,
.member-day-column {
  grid-template-rows: repeat(var(--slot-count, 17), 44px);
}

.member-day-column {
  grid-template-columns: repeat(var(--coach-count, 3), minmax(64px, 1fr));
}

.member-slot-bg span,
.member-slot-bg small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: keep-all;
}

@media (max-width: 720px) {
  .member-time-rail,
  .member-day-column {
    grid-template-rows: repeat(var(--slot-count, 17), 44px);
  }

  .member-slot-bg.available {
    padding: 2px;
    font-size: 10px;
  }

  .member-slot-bg.available span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-screen {
    padding: 14px 14px calc(92px + env(safe-area-inset-bottom));
  }

  .tabbar {
    position: fixed;
    z-index: 50;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: min(calc(100% - 28px), 680px);
    display: grid;
    transform: translateX(-50%);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    margin: 0;
    border: 1px solid rgba(208, 213, 221, 0.9);
    border-radius: 14px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 28px rgba(24, 34, 48, 0.16);
    backdrop-filter: blur(12px);
  }

  .tabbar .tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 50px;
    padding: 5px 2px;
    font-size: 10px;
    line-height: 1.15;
    white-space: normal;
    word-break: keep-all;
  }

  .topbar {
    display: flex;
    align-items: stretch;
  }

  .calendar-weekdays,
  .calendar-days {
    gap: 2px;
  }

  .journal-day {
    min-width: 0;
    min-height: 58px;
    padding: 5px 4px;
  }

  .summary-grid .small-button,
  .today-card .primary-button,
  .today-card .small-button {
    min-height: 40px;
    padding: 0 10px;
    font-size: 13px;
  }

  .journal-calendar-card {
    padding: 6px;
  }

  .journal-day span {
    font-size: 10px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .notice-dialog,
  .change-request-modal {
    align-items: end;
    padding: 12px;
  }

  .notice-dialog {
    --notice-inset-top: max(12px, env(safe-area-inset-top));
    --notice-inset-right: max(12px, env(safe-area-inset-right));
    --notice-inset-bottom: max(12px, env(safe-area-inset-bottom));
    --notice-inset-left: max(12px, env(safe-area-inset-left));
    padding: var(--notice-inset-top) var(--notice-inset-right) var(--notice-inset-bottom) var(--notice-inset-left);
  }

  .notice-card,
  .change-modal-card {
    width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: 16px 16px 10px 10px;
    padding: 16px;
  }

  .notice-card {
    max-height: calc(100dvh - var(--notice-inset-top) - var(--notice-inset-bottom));
    padding: 0;
  }

  .notice-scroll-region {
    padding: 16px;
  }

  .member-enrollment-grid {
    grid-template-columns: 1fr;
  }

  .member-enrollment-status {
    grid-template-columns: 1fr;
  }

  .member-enrollment-status > span {
    grid-row: auto;
    width: fit-content;
  }

  .modal-actions,
  .notice-actions {
    grid-template-columns: 1fr 1fr;
  }

  .notice-action:not([hidden]) {
    grid-column: 1 / -1;
  }
}

body.sheet-open {
  overflow: hidden;
}

body.notice-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.journal-primary-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  border: 1px solid #b9d7ce;
  border-radius: 8px;
  padding: 14px;
  background: #f2fbf7;
}

.journal-primary-actions > div {
  display: grid;
  gap: 4px;
}

.journal-primary-actions strong {
  color: var(--green);
  font-size: 16px;
}

.journal-primary-actions span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.journal-primary-actions .primary-button {
  min-width: 100px;
}

.journal-curriculum-preview {
  margin-bottom: 12px;
}

.app-bottom-sheet[hidden] {
  display: none !important;
}

.app-bottom-sheet {
  position: fixed;
  z-index: 140;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(24, 34, 48, 0.48);
}

.sheet-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(100%, 680px);
  height: min(86dvh, 760px);
  max-height: min(86dvh, 760px);
  overflow: hidden;
  border: 1px solid rgba(208, 213, 221, 0.9);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: var(--wash);
  box-shadow: 0 -18px 48px rgba(24, 34, 48, 0.22);
}

.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: #b8c1c7;
}

.sheet-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--line);
  background: white;
}

.sheet-head > div {
  display: grid;
  gap: 3px;
}

.sheet-head h3,
.sheet-head p {
  margin: 0;
}

.sheet-head h3 {
  color: var(--ink);
  font-size: 20px;
}

.sheet-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.sheet-scroll {
  min-height: 0;
  overflow: auto;
  padding: 14px 14px calc(20px + env(safe-area-inset-bottom));
}

.journal-composer-form,
.profile-editor-form {
  margin: 0;
}

.profile-editor-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.membership-overview {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.membership-primary-card {
  display: grid;
  gap: 10px;
  border: 1px solid #9acbb9;
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(135deg, #f4fcf8, #ffffff 72%);
  box-shadow: 0 10px 22px rgba(24, 34, 48, 0.06);
}

.membership-primary-card.is-low {
  border-color: #efc77b;
  background: #fffaf0;
}

.membership-primary-card.is-pending {
  border-color: #e7c48c;
  background: var(--soft-amber);
}

.membership-primary-head,
.membership-remaining-row,
.membership-action-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.membership-primary-head span,
.membership-primary-head small,
.membership-period {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.membership-primary-card > strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.membership-remaining-row > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.membership-remaining-row b {
  color: var(--green);
  font-size: 30px;
  line-height: 1;
}

.membership-remaining-row em {
  margin-left: 2px;
  font-size: 16px;
  font-style: normal;
}

.membership-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ece9;
}

.membership-progress span {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: var(--green);
  transition: width 180ms ease-out;
}

.membership-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.membership-action-row button {
  width: 100%;
}

.membership-pending-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.membership-pending-actions button {
  width: 100%;
}

.membership-status-note {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cad6d1;
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font-weight: 850;
}

.membership-details {
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.membership-details summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.membership-details summary::-webkit-details-marker {
  display: none;
}

.membership-details summary::after {
  content: "›";
  color: #98a2b3;
  font-size: 26px;
  font-weight: 400;
  transition: transform 160ms ease;
}

.membership-details[open] summary {
  border-bottom: 1px solid #edf0f2;
}

.membership-details[open] summary::after {
  transform: rotate(90deg);
}

.membership-details > .history-list,
.membership-details > .list-pager,
.membership-details-body {
  margin: 12px;
}

.membership-details-body {
  display: grid;
  gap: 12px;
}

.profile-summary-menu {
  margin-bottom: 12px;
}

@media (max-width: 560px) {
  .journal-primary-actions {
    grid-template-columns: 1fr;
  }

  .journal-primary-actions .primary-button {
    width: 100%;
  }

  .sheet-card {
    height: 90dvh;
    max-height: 90dvh;
  }

  .membership-primary-card {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-screen,
  .view.is-active {
    animation: none;
  }

  .brand-splash {
    transition: none;
  }
}

@media (max-width: 380px) {
  .app-screen,
  .login-screen {
    padding-left: 10px;
    padding-right: 10px;
  }

  .tab {
    font-size: 10px;
  }

  .modal-actions,
  .notice-actions {
    grid-template-columns: 1fr;
  }
}

/* Tennis Note athletic visual system: presentation only, no member flow changes. */
:root {
  --ink: #12231f;
  --muted: #66766f;
  --line: #d8e2dd;
  --paper: #ffffff;
  --wash: #f3f7f4;
  --green: #087255;
  --blue: #1d6fa5;
  --amber: #a76011;
  --soft-green: #e7f5ee;
  --soft-blue: #edf6fb;
  --soft-amber: #fff5e6;
}

body {
  background: #eaf0ed;
  font-family: "Pretendard Variable", Pretendard, Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

.app-shell {
  background: var(--wash);
}

.member-topbar {
  position: relative;
  min-height: 68px;
  margin-bottom: 12px;
  border: 1px solid #dbe6e0;
  border-radius: 8px;
  padding: 11px 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(18, 35, 31, 0.05);
}

.member-topbar::after {
  position: absolute;
  right: 10px;
  bottom: -18px;
  width: 84px;
  height: 84px;
  content: "";
  opacity: 0.09;
  background: url("./assets/brand/app-icon-192.png") center / contain no-repeat;
  pointer-events: none;
}

.member-heading {
  position: relative;
  z-index: 1;
}

.summary-grid article,
.today-card,
.form-card,
.request-card,
.history-card {
  border-color: #dbe6e0;
  box-shadow: 0 5px 14px rgba(18, 35, 31, 0.045);
}

.summary-grid .summary-card.primary {
  position: relative;
  overflow: hidden;
  border-color: #a8d9c7;
  background: var(--soft-green);
}

.summary-grid .summary-card.primary::after {
  position: absolute;
  right: 12px;
  bottom: 8px;
  width: 62px;
  height: 62px;
  content: "";
  opacity: 0.14;
  background: url("./assets/brand/app-icon-192.png") center / contain no-repeat;
  pointer-events: none;
}

.summary-grid .summary-card.primary > * {
  position: relative;
  z-index: 1;
}

.summary-grid strong {
  color: #075b45;
}

.home-change-button {
  border-color: #0c7658;
  border-radius: 8px;
  background: #087255;
  box-shadow: 0 7px 16px rgba(8, 114, 85, 0.2);
}

.home-change-button strong,
.home-change-button span {
  color: #ffffff;
}

.tabbar {
  gap: 6px;
}

.tab {
  border: 1px solid #dbe6e0;
  background: #ffffff;
}

.tab.is-active {
  border-color: #087255;
  background: #087255;
}

@media (max-width: 720px) {
  .app-screen {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .member-topbar {
    min-height: 64px;
    margin-bottom: 10px;
  }

  .tabbar {
    position: fixed;
    z-index: 50;
    left: 50%;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: min(calc(100% - 20px), 560px);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    transform: translateX(-50%);
    gap: 3px;
    margin: 0;
    border: 1px solid #dbe6e0;
    border-radius: 8px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 24px rgba(18, 35, 31, 0.16);
  }

  .tabbar .tab {
    min-width: 0;
    min-height: 48px;
    padding: 4px 2px;
    border-color: transparent;
    font-size: 10px;
    line-height: 1.15;
    white-space: normal;
    word-break: keep-all;
  }
}
.member-schedule-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 12px;
  padding: 4px;
  border: 1px solid #d8e1e8;
  background: #f4f7f8;
}

.member-schedule-mode-button {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #52616b;
  font-weight: 700;
}

.member-schedule-mode-button.is-active {
  background: #13795b;
  color: #fff;
}

.member-own-schedule {
  border: 1px solid #d8e1e8;
  background: #fff;
  padding: 14px;
}

.member-own-schedule-head,
.member-own-lesson {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-own-schedule-head {
  justify-content: space-between;
  margin-bottom: 10px;
}

.member-own-lesson-list {
  display: grid;
  gap: 8px;
}

.member-own-lesson {
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid #d8e1e8;
  background: #f9fbfb;
  text-align: left;
}

.member-own-lesson-date {
  flex: 0 0 82px;
  color: #13795b;
  font-weight: 800;
}

.member-own-lesson-detail {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.member-own-lesson-detail small {
  color: #667780;
}

.member-own-lesson-action {
  color: #2f5fae;
  font-weight: 700;
}

.change-step-heading {
  margin: 4px 0 0;
  font-weight: 800;
}

.visually-hidden-select {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
}

@media (max-width: 520px) {
  .member-own-schedule {
    padding: 10px;
  }

  .member-mobile-lesson small {
    color: #9a3412;
    font-size: 9px;
    font-weight: 900;
  }

  .member-own-lesson {
    gap: 8px;
  }

  .member-own-lesson-date {
    flex-basis: 72px;
  }
}

/* Mobile navigation and dialogs share one stacking contract. */
body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.change-request-modal {
  z-index: 180;
  isolation: isolate;
  overscroll-behavior: contain;
}

.change-request-empty-state {
  border: 1px solid #b9d7ce;
  border-radius: 8px;
  padding: 14px;
  color: #425466;
  background: #f3faf7;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.change-request-empty-state[hidden] {
  display: none !important;
}

.change-request-modal.is-unavailable .schedule-request-card > label,
.change-request-modal.is-unavailable .change-step-heading,
.change-request-modal.is-unavailable .slot-list,
.change-request-modal.is-unavailable .policy-note {
  opacity: 0.62;
}

.change-request-modal button:disabled,
.change-request-modal textarea:disabled,
.change-request-modal select:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

@media (max-width: 720px) {
  :root {
    --tn-bottom-nav-height: 66px;
  }

  .app-screen {
    padding-bottom: calc(var(--tn-bottom-nav-height) + max(18px, env(safe-area-inset-bottom)));
  }

  .tabbar {
    right: max(10px, env(safe-area-inset-right));
    left: max(10px, env(safe-area-inset-left));
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 80;
    width: auto;
    transform: translateZ(0);
    isolation: isolate;
    background: #ffffff;
    backdrop-filter: none;
    -webkit-transform: translateZ(0);
  }

  .tabbar .tab,
  .tabbar .tab.is-active {
    position: relative;
    z-index: 1;
    opacity: 1;
    visibility: visible;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
  }

  .change-request-modal {
    z-index: 180;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .change-modal-card {
    max-height: calc(100dvh - max(24px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom)));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .change-modal-card .modal-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 0 -4px -4px;
    padding: 10px 4px max(4px, env(safe-area-inset-bottom));
    background: #ffffff;
  }
}

/* Compact mobile app chrome: identity and release details live in My Info. */
.compact-app-heading {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.compact-app-heading p,
.compact-app-heading h1 {
  margin: 0;
  letter-spacing: 0;
}

.compact-app-heading p {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.compact-app-heading h1 {
  margin-top: 2px;
  font-size: 20px;
  line-height: 1.15;
}

.compact-app-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: #087255;
  font-size: 13px;
  font-weight: 950;
}

.topbar-session-data[hidden],
.home-change-button[hidden] {
  display: none !important;
}

.onboarding-card {
  border-color: #a8d9c7;
  background: #f3faf7;
}

@media (max-width: 720px) {
  .member-topbar {
    min-height: 58px;
    padding: 9px 11px;
  }

  .member-topbar::after {
    width: 66px;
    height: 66px;
  }

  .section-title {
    margin-bottom: 10px;
  }

  .section-title h2 {
    font-size: 20px;
  }

  .summary-grid,
  .today-action-list,
  .card-list {
    gap: 8px;
  }

  .product-group-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .product-card {
    gap: 8px;
    padding: 12px;
  }

  .product-meta-pills {
    gap: 4px;
  }

  .product-meta-pills span {
    padding: 4px 6px;
  }

  .product-price-panel {
    padding: 8px;
  }

  .journal-calendar-card {
    padding: 12px;
  }

  .journal-calendar-controls {
    gap: 4px;
  }

  .journal-calendar-controls .small-button {
    min-height: 38px;
    padding-inline: 8px;
  }

  .app-legal-links {
    margin-top: 8px;
    padding-bottom: 4px;
  }
}

/* Mobile-first disclosure hierarchy: the primary action stays above optional detail. */
.journal-calendar-disclosure {
  display: block;
  padding: 0;
  overflow: hidden;
}

.journal-calendar-disclosure > summary,
.membership-help-disclosure > summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  cursor: pointer;
  list-style: none;
}

.journal-calendar-disclosure > summary::-webkit-details-marker,
.membership-help-disclosure > summary::-webkit-details-marker {
  display: none;
}

.journal-calendar-disclosure > summary::after,
.membership-help-disclosure > summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.journal-calendar-disclosure[open] > summary::after,
.membership-help-disclosure[open] > summary::after {
  content: "−";
}

.journal-calendar-disclosure > summary span {
  margin-left: auto;
  color: var(--green);
}

.journal-calendar-body,
.membership-help-body {
  display: grid;
  gap: 10px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}

.journal-selected-panel {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.journal-selected-panel:empty {
  display: none;
}

.journal-day {
  position: relative;
}

.journal-day.has-record::after {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.membership-help-disclosure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.membership-help-disclosure > summary {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.membership-help-body > :first-child {
  margin-top: 0;
}

@media (max-width: 560px) {
  .journal-calendar-disclosure > summary,
  .membership-help-disclosure > summary {
    min-height: 44px;
  }

  .journal-selected-panel {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}
/* Compact member UX: keep the primary curriculum action visible without a long link row. */
.curriculum-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.curriculum-hero-actions a:not(:first-child) {
  display: none;
}

.curriculum-hero-actions a:first-child::after {
  content: " · 전체 원본";
}

.payment-method-option:disabled {
  display: none;
}

.payment-method-selector-title span {
  display: none;
}
.profile-version-footer {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 calc(94px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.profile-version-footer .release-version {
  font-size: inherit;
}

.profile-contact-footer {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
}

.profile-contact-footer a {
  color: var(--green);
  font-weight: 800;
}
