:root {
  --ink: #172033;
  --muted: #718096;
  --line: #e4eaf2;
  --canvas: #f7fafc;
  --soft-blue: #e8f1ff;
  --mint: #e7faf2;
  --teal: #38cbd8;
  --teal-dark: #168c9b;
  --blue: #2f80ff;
  --amber: #f0b454;
  --orange: #d87636;
  --white: #fff;
}

@font-face {
  font-family: "Noto Sans SC";
  src: url("/assets/fonts/NotoSansSC-VF.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

* { box-sizing: border-box; }
html { background: #e7efef; }
body { margin: 0; color: var(--ink); background: #e8eef5; font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; font-size: 14px; line-height: 1.32; }
button, input { font: inherit; }
button { cursor: pointer; }
.icon { width: 20px; height: 20px; }
.app { position: relative; width: min(100%, 600px); min-height: 100vh; margin: auto; padding: env(safe-area-inset-top) 0 calc(82px + env(safe-area-inset-bottom)); background: var(--canvas); }

.topbar { display: flex; min-height: 64px; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid #a9c7ec; background: #b7d2f7; }
.brand { display: flex; gap: 10px; align-items: center; }
.mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 8px; color: #fff; background: var(--teal); font-size: 17px; font-weight: 850; }
.brand b, .brand small { display: block; }
.brand b { font-size: 16px; line-height: 1.2; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 11px; line-height: 1.2; }
.icon-btn { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: #fff; }
.icon-btn .icon { width: 19px; }

.page { padding: 18px 16px 28px; }
.home-page { padding-top: 14px; }
.welcome { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 12px; }
.welcome span { color: var(--muted); font-size: 12px; }
.welcome h1 { margin: 0; font-size: 27px; line-height: 1.15; letter-spacing: 0; }
.user-dot { width: 44px; height: 44px; border: 3px solid #fff; border-radius: 50%; color: #fff; background: #e4935d; box-shadow: 0 0 0 1px #ead9cf; font-weight: 750; }
.user-dot.large { width: 58px; height: 58px; font-size: 18px; }

.hero-wrap { position: relative; width: min(100%, 340px); height: 140px; }
.hero { display: block; position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 8px; color: #fff; background: #415c58; }
.hero > img { width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }
.hero-dots { position: absolute; right: 11px; bottom: 11px; display: flex; gap: 4px; }
.hero-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: #ffffff99; }
.hero-dots button.active { width: 18px; border-radius: 5px; background: #fff; }

.quick { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 8px; margin: 14px 0; border: 0; border-radius: 8px; background: transparent; }
.quick > button { position: relative; min-width: 0; min-height: 118px; overflow: hidden; border: 0; padding: 16px 9px 13px; color: #17334b; background: #7fe8f3; text-align: center; }
.quick > button::after { position: absolute; right: -12px; bottom: -17px; width: 55px; height: 55px; border-radius: 50%; background: #ffffff30; content: ""; }
.quick > button.quick-book { border-radius: 9px 9px 24px 9px; text-align: left; }
.quick > button.quick-wallet { border-radius: 9px 22px 9px 9px; background: #ffed91; }
.quick > button.quick-library { border-radius: 22px 9px 9px 9px; background: #8deccb; }
.quick-icon { display: grid; width: 43px; height: 43px; place-items: center; margin: auto auto 8px; border-radius: 10px; transform: rotate(-3deg); }
.quick-book .quick-icon { width: 52px; height: 52px; margin-left: 0; }
.quick-icon .icon { width: 22px; height: 22px; }
.quick-icon { color: currentColor; background: #ffffff33; }
.quick b, .quick small { position: relative; z-index: 1; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick b { font-size: 16px; line-height: 1.18; }
.quick small { margin-top: 4px; color: #49667a; font-size: 10px; line-height: 1.2; }

.notice { display: grid; grid-template-columns: 22px 1fr auto; gap: 9px; align-items: center; margin: 12px 0 18px; padding: 10px 12px; border-left: 3px solid var(--amber); border-radius: 4px; color: #5f594d; background: #fff8e9; }
.notice > .icon { width: 18px; color: #a87320; }
.notice b, .notice span { display: block; }
.notice b { font-size: 13px; line-height: 1.2; }
.notice span { margin-top: 1px; color: #8b8171; font-size: 11px; line-height: 1.25; }
.notice button { border: 0; color: #8c641f; background: transparent; font-size: 12px; font-weight: 700; }

.content-block { margin-top: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 9px; }
.section-head h2 { margin: 1px 0 0; font-size: 20px; line-height: 1.18; letter-spacing: 0; }
.eyebrow, .page-heading > span, .page-heading > div > span, .sheet-head span { color: var(--teal); font-size: 10px; font-weight: 850; letter-spacing: .7px; }
.text-action { display: inline-flex; gap: 2px; align-items: center; min-height: 32px; border: 0; color: var(--muted); background: transparent; font-size: 12px; }
.text-action .icon { width: 14px; height: 14px; }

.featured-teacher { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.teacher-main { display: grid; width: 100%; grid-template-columns: 132px 1fr; gap: 15px; border: 0; padding: 14px; color: var(--ink); background: transparent; text-align: left; }
.avatar { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid #cae6df; border-radius: 50%; color: var(--teal-dark); background: #dff2eb; font-weight: 800; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar span { display: none; place-items: center; width: 100%; height: 100%; }
.avatar.large { width: 132px; height: 158px; border-radius: 8px; font-size: 26px; }
.avatar.portrait { width: 78px; height: 96px; border-radius: 7px; font-size: 25px; }
.avatar.profile-avatar { width: 86px; height: 106px; border-radius: 8px; font-size: 29px; }
.teacher-name { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.teacher-name h1, .teacher-name h3 { margin: 0; letter-spacing: 0; }
.teacher-name h3 { font-size: 18px; }
.teacher-name h1 { font-size: 24px; }
.teacher-name > span { padding: 3px 6px; border-radius: 3px; color: #3d6f68; background: #edf6f3; font-size: 9px; }
.teacher-main p, .teacher-meta { margin: 8px 0 7px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.teacher-meta-line { margin: 7px 0; color: #64748b; font-size: 10px; line-height: 1.45; }
.rating { display: flex; gap: 4px; align-items: center; color: #cc791f; font-size: 11px; font-weight: 750; }
.rating .icon { width: 13px; height: 13px; fill: #f0a744; stroke: #f0a744; }
.rating span { color: var(--muted); font-weight: 400; }
.availability { display: grid; grid-template-columns: 1fr .75fr auto; gap: 11px; align-items: center; padding: 11px 13px; border-top: 1px solid var(--line); background: #f9fbfb; }
.availability span, .availability b { display: block; }
.availability span { color: var(--muted); font-size: 9px; }
.availability b { margin-top: 3px; font-size: 12px; }
.primary { min-height: 44px; border: 0; border-radius: 8px; padding: 9px 14px; color: #fff; background: var(--blue); font-size: 12px; font-weight: 750; }
.primary:hover { background: var(--teal-dark); }
.teacher-rail { margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.teacher-showcase { margin-right: -16px; margin-left: -16px; padding: 16px 0 14px 16px; border: 1px solid var(--line); border-right: 0; border-left: 0; background: #fff; }
.teacher-showcase .section-head { padding-right: 16px; }
.home-teacher-rail { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 7px 0; scroll-padding-left: 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.home-teacher-rail::-webkit-scrollbar { display: none; }
.home-teacher-card { flex: 0 0 142px; min-width: 0; scroll-snap-align: start; border: 0; padding: 0; color: var(--ink); background: transparent; text-align: left; }
.avatar.home-portrait { width: 142px; height: 164px; border-radius: 8px; background: #e8f1ff; }
.home-teacher-card > strong, .home-teacher-card > span, .home-teacher-card > small, .home-teacher-card > b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-teacher-card > strong { margin-top: 7px; font-size: 17px; line-height: 1.18; }
.home-teacher-card > span { margin-top: 3px; color: #64748b; font-size: 11px; line-height: 1.2; }
.home-teacher-card > small { margin-top: 2px; color: #94a3b8; font-size: 10px; line-height: 1.2; }
.home-teacher-card > b { margin-top: 6px; color: #ff4d57; font-size: 17px; line-height: 1.15; }
.home-teacher-card > b em { margin-left: 2px; color: #94a3b8; font-size: 10px; font-style: normal; font-weight: 400; }
.compact-teacher { display: flex; width: 100%; gap: 10px; align-items: center; border: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; color: var(--ink); background: transparent; text-align: left; }
.compact-teacher:last-child { border-bottom: 0; }
.compact-teacher > div:nth-child(2) { min-width: 0; margin-right: auto; }
.compact-teacher b, .compact-teacher span { display: block; }
.compact-teacher b { font-size: 13px; }
.compact-teacher span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.compact-teacher > strong { color: var(--orange); font-size: 12px; }
.compact-teacher > .icon { width: 15px; color: #9eafac; }

.course-row { display: grid; width: 100%; grid-template-columns: 72px 1fr 18px; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px; color: var(--ink); background: #fff; text-align: left; }
.cover-img { display: block; width: 100%; aspect-ratio: 3 / 4; border: 1px solid #dce4e2; border-radius: 4px; background: #e9eeee; object-fit: cover; object-position: center; }
.course-row .cover-img { width: 72px; }
.course-row strong, .course-row p, .course-row span { display: block; }
.course-row strong { font-size: 16px; line-height: 1.2; }
.course-row p { margin: 3px 0; color: var(--muted); font-size: 11px; line-height: 1.2; }
.course-row span { color: var(--teal-dark); font-size: 11px; line-height: 1.2; }
.course-row > .icon { width: 16px; color: #9caeaa; }
.cover-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.cover-strip button { min-width: 0; border: 0; padding: 0; color: var(--ink); background: transparent; text-align: left; }
.cover-strip .cover-img { aspect-ratio: 3 / 4; }
.cover-strip span { display: -webkit-box; overflow: hidden; margin-top: 5px; font-size: 9px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.page-heading { margin-bottom: 14px; }
.page-heading h1 { margin: 2px 0 3px; font-size: 28px; line-height: 1.15; letter-spacing: 0; }
.page-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.28; }
.page-heading.with-back { display: flex; gap: 8px; align-items: flex-start; }
.back { display: grid; width: 34px; height: 34px; place-items: center; border: 0; padding: 0; color: var(--ink); background: transparent; }
.back .icon { width: 21px; }
.search { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 7px; padding: 10px 11px; background: #fff; }
.search .icon { width: 17px; color: #829591; }
.search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.filters, .tabs { display: flex; gap: 7px; overflow: auto; margin: 13px 0; scrollbar-width: none; }
.filters::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
.filters button, .tabs button { flex: 0 0 auto; min-height: 36px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: #617773; background: #fff; font-size: 12px; line-height: 1.15; }
.filters button.active, .tabs button.active { border-color: var(--teal); color: #fff; background: var(--teal); }
.result-count { margin: 17px 0 8px; color: var(--muted); font-size: 10px; }
.teacher-list { display: grid; gap: 10px; }
.teacher-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.teacher-card-main { display: grid; width: 100%; grid-template-columns: 78px 1fr; gap: 12px; border: 0; padding: 12px; color: var(--ink); background: transparent; text-align: left; }
.teacher-meta { margin: 7px 0 6px; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.tags span { padding: 3px 6px; border-radius: 4px; color: #53746f; background: #f0f6f4; font-size: 9px; }
.teacher-footer { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); background: #fafcfc; }
.teacher-footer > div { margin-right: auto; }
.teacher-footer small, .teacher-footer b { display: block; }
.teacher-footer small { color: var(--muted); font-size: 9px; }
.teacher-footer b { margin-top: 2px; font-size: 11px; }
.price { color: var(--orange); font-size: 16px; }
.price small { display: inline; color: var(--muted); font-weight: 400; }

.detail-page { padding-bottom: 108px; }
.detail-hero { display: flex; gap: 14px; align-items: center; margin-top: 7px; padding: 8px 2px 12px; }
.detail-hero p { margin: 8px 0; color: var(--muted); font-size: 11px; }
.detail-tags { margin: 3px 0 20px; }
.teacher-bio { margin: 12px 1px; color: #516b66; font-size: 12px; line-height: 1.75; }
.video { position: relative; aspect-ratio: 16 / 8; overflow: hidden; border-radius: 8px; background: #4e6661; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .76; }
.video button { position: absolute; top: 50%; left: 50%; display: grid; width: 44px; height: 44px; place-items: center; transform: translate(-50%, -50%); border: 1px solid #ffffffaa; border-radius: 50%; color: #fff; background: #173b35b3; }
.video button .icon { width: 20px; fill: #fff; }
.video > span { position: absolute; right: 10px; bottom: 9px; color: #fff; font-size: 9px; }
.detail-materials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.detail-materials button, .material { min-width: 0; border: 0; padding: 0; color: var(--ink); background: transparent; text-align: left; }
.detail-materials b, .detail-materials small { display: block; }
.detail-materials b { overflow: hidden; margin: 6px 0 2px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.detail-materials small { color: var(--muted); font-size: 8px; }
.subtle { color: var(--muted); font-size: 10px; }
.slot-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.slot-list button { border: 1px solid var(--line); border-radius: 6px; padding: 9px 5px; color: var(--ink); background: #fff; font-size: 10px; }
.slot-list button span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.slot-list button.active { border-color: var(--teal); color: var(--teal-dark); background: #edf8f5; }

.library-note { display: flex; gap: 7px; margin: 16px 0; padding: 10px; border-radius: 6px; color: #627771; background: var(--soft-blue); font-size: 9px; line-height: 1.5; }
.library-note .icon { flex: 0 0 auto; width: 15px; }
.material-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
.material b { display: -webkit-box; overflow: hidden; min-height: 30px; margin: 7px 1px 3px; font-size: 11px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.material > div { display: flex; gap: 4px; flex-wrap: wrap; }
.material > div span { padding: 2px 4px; border-radius: 3px; color: #47766f; background: #eaf5f1; font-size: 8px; }
.material small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }

.wallet { position: relative; overflow: hidden; padding: 20px; border-radius: 8px; color: #fff; background: #138f7a; }
.wallet-buckets { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; }
.wallet-buckets > div { min-height: 92px; padding: 14px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.wallet-buckets span, .wallet-buckets small, .wallet-buckets strong, .wallet-buckets b { display: block; }
.wallet-buckets span { color: var(--muted); font-size: 10px; }
.wallet-buckets strong { margin: 8px 0 5px; color: var(--blue); font-size: 23px; }
.wallet-buckets b { margin: 10px 0 4px; color: var(--ink); font-size: 16px; }
.wallet-buckets small { color: var(--muted); font-size: 8px; line-height: 1.35; }
.wallet-total { background: #e8f1ff !important; border-color: #c7dcff !important; }
.wallet-rule { display: flex; gap: 7px; align-items: flex-start; margin: 12px 0 20px; padding: 11px 12px; border-radius: 7px; color: #43627f; background: #eef7ff; font-size: 10px; line-height: 1.5; }
.wallet-rule .icon { width: 15px; flex: 0 0 auto; color: var(--blue); }
.wallet-section-head { margin-top: 2px; }
.wallet > span, .wallet small, .wallet strong { display: block; }
.wallet > span, .wallet small { font-size: 10px; opacity: .9; }
.wallet strong { margin: 7px 0 9px; font-size: 31px; }
.soon { position: absolute; top: 17px; right: 17px; border: 1px solid #ffffff66; border-radius: 999px; padding: 5px 8px; font-size: 9px; }
.plans { display: grid; gap: 9px; margin-top: 13px; }
.plan { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; border: 1px solid var(--line); border-radius: 7px; padding: 13px; color: var(--ink); background: #fff; text-align: left; opacity: .74; }
.plan b, .plan small { display: block; }
.plan b { font-size: 14px; }
.plan small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.plan strong { font-size: 17px; }
.plan > span { grid-column: 1 / -1; color: #9a7740; font-size: 9px; }
.plan.selected { border-color: var(--blue); background: #f2f7ff; box-shadow: 0 0 0 2px #dbe9ff; }
.plan.selected > span { color: var(--blue); }
.topup-pay { width: 100%; margin-top: 14px; }
.topup-pay:disabled { color: #98a6b9; background: #e5ebf2; cursor: not-allowed; }
.ledger-link { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding: 15px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ledger-link b, .ledger-link span { display: block; }
.ledger-link b { font-size: 13px; }
.ledger-link span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.ledger-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--blue); background: #e8f1ff; }
.ledger-icon.locked { color: #d98928; background: #fff3dc; }
.ledger-row b, .ledger-row span, .ledger-row small { display: block; }
.ledger-row b { font-size: 12px; }
.ledger-row span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.ledger-row small { margin-top: 4px; color: #a0aec0; font-size: 9px; }
.ledger-row > strong { font-size: 14px; }
.ledger-row > strong.positive { color: #15966e; }
.ledger-row > strong.locked { color: #d98928; }

.empty { display: grid; min-height: 330px; place-content: center; justify-items: center; text-align: center; color: var(--muted); }
.empty > .icon { width: 42px; height: 42px; stroke-width: 1.2; }
.empty strong { margin: 11px 0 5px; color: var(--ink); font-size: 16px; line-height: 1.2; }
.empty small { max-width: 280px; font-size: 12px; line-height: 1.35; }
.empty .primary { margin-top: 16px; }
.profile-page { padding-top: 0; }
.profile { margin: 0 -16px; padding: 24px 18px 18px; color: #143d37; background: #d8f0e6; }
.profile-head { display: flex; justify-content: space-between; align-items: center; }
.profile-head > div > span { color: #568078; font-size: 12px; line-height: 1.2; }
.profile h1 { margin: 4px 0 3px; font-size: 28px; line-height: 1.15; }
.profile p { margin: 0; color: #64877f; font-size: 12px; line-height: 1.25; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; border-top: 1px solid #acd8cb; }
.stats button { border: 0; border-right: 1px solid #acd8cb; padding: 13px 4px 0; color: var(--ink); background: transparent; }
.stats button:last-child { border-right: 0; }
.stats b, .stats span { display: block; }
.stats b { font-size: 18px; line-height: 1.15; }
.stats span { margin-top: 3px; color: #61867d; font-size: 11px; line-height: 1.2; }
.menu { margin-top: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.menu button { display: grid; width: 100%; grid-template-columns: 22px 1fr auto 18px; gap: 8px; align-items: center; border: 0; border-bottom: 1px solid var(--line); padding: 14px 13px; color: var(--ink); background: transparent; text-align: left; }
.menu button:last-child { border-bottom: 0; }
.menu button > .icon { width: 18px; color: #66827d; }
.menu button > .icon:last-child { width: 14px; color: #9eafac; }
.menu button span { font-size: 14px; line-height: 1.2; }
.menu button em { color: var(--muted); font-size: 11px; font-style: normal; }

.tabbar { position: fixed; z-index: 4; bottom: 0; left: 50%; display: grid; width: min(100%, 600px); height: 72px; grid-template-columns: repeat(5, minmax(0, 1fr)); transform: translateX(-50%); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .97); }
.tabbar button { min-height: 44px; border: 0; color: #7a8e8a; background: transparent; font-size: 11px; line-height: 1.15; }
.tabbar .icon, .tabbar span { display: block; margin: auto; }
.tabbar .icon { width: 20px; height: 20px; margin-bottom: 4px; }
.tabbar button.active { color: var(--teal-dark); font-weight: 750; }
.tabbar button.book { color: #fff; }
.tabbar button.book .icon { box-sizing: content-box; width: 23px; height: 23px; margin-top: -29px; margin-bottom: 2px; padding: 13px; border: 5px solid var(--canvas); border-radius: 50%; background: var(--blue); }
.tabbar button.book span { color: var(--blue); }
.booking-bar { position: fixed; z-index: 5; bottom: 72px; left: 50%; display: flex; width: min(100%, 600px); justify-content: space-between; align-items: center; transform: translateX(-50%); padding: 10px 16px; border-top: 1px solid var(--line); background: #fff; }
.booking-bar small, .booking-bar b { display: block; }
.booking-bar small { color: var(--muted); font-size: 9px; }
.booking-bar b { margin-top: 2px; color: var(--orange); font-size: 17px; }

.modal { position: fixed; z-index: 8; inset: 0; background: rgba(22, 48, 44, .48); }
.sheet { position: absolute; right: 0; bottom: 0; left: 0; max-width: 600px; margin: auto; padding: 19px 16px calc(19px + env(safe-area-inset-bottom)); border-radius: 14px 14px 0 0; background: var(--canvas); }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; }
.sheet-head h2 { margin: 3px 0 0; font-size: 21px; }
.summary-teacher { display: flex; gap: 10px; align-items: center; margin-top: 17px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.summary-teacher > div:nth-child(2) { margin-right: auto; }
.summary-teacher b, .summary-teacher span { display: block; }
.summary-teacher b { font-size: 13px; }
.summary-teacher span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.summary-teacher > strong { color: var(--orange); }
.rows { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.row { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: 12px; font-size: 11px; }
.row:last-child { border-bottom: 0; }
.row span { color: var(--muted); }
.total { display: flex; justify-content: space-between; align-items: center; padding: 17px 2px 12px; }
.total span { font-size: 11px; }
.total b { color: var(--orange); font-size: 21px; }
.sheet > .primary { width: 100%; min-height: 43px; }
.disabled-action { background: #8ca7a2; }
.payment-note { margin: 9px 0 0; color: var(--muted); text-align: center; font-size: 9px; }

@media (min-width: 601px) {
  .app { box-shadow: 0 20px 50px rgba(26, 65, 58, .12); }
}
