:root, [data-theme="sage"] { --brand:#3F4A3C; --brand-2:#2F382D; --accent:#C98B6B; --accent-soft:#F3E3D6; --bg:#F7F3EE; --card:#FFFDFA; --ink:#23261F; --muted:#6E7066; --line:#E6DED3; --ok:#4E7A55; --ok-bg:#E5EFE3; --warn:#A6662E; --warn-bg:#F8E8D6; --danger:#B4483C; }
[data-theme="clay"] { --brand:#8A4B36; --brand-2:#6E3A29; --accent:#D9A47A; --accent-soft:#F6E6D8; --bg:#FAF4EF; }
[data-theme="midnight"] { --brand:#1F2A44; --brand-2:#151D31; --accent:#C9A86A; --accent-soft:#F1E9D7; --bg:#F5F4F1; }
[data-theme="blush"] { --brand:#7A3E58; --brand-2:#5E2E43; --accent:#E3A3A9; --accent-soft:#F8E4E5; --bg:#FBF5F4; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 Inter, system-ui, -apple-system, Segoe UI, sans-serif; color: var(--ink); background: var(--bg); padding-bottom: calc(76px + env(safe-area-inset-bottom)); -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
h1, h2, h3, h4 { font-family: Fraunces, Georgia, serif; font-weight: 500; letter-spacing: -.01em; margin: 0 0 .35em; line-height: 1.15; }
h1 { font-size: clamp(28px, 6vw, 44px); }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 .8em; }
a { color: var(--brand); }
code { font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; } .center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 600; color: var(--accent); margin: 0 0 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lead { font-size: 16.5px; color: var(--muted); max-width: 560px; }

/* demo strip */
.demo-strip { display: flex; align-items: center; gap: 10px; padding: 6px 14px; background: var(--brand-2); color: #EDE6DC; font-size: 12px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.demo-strip::-webkit-scrollbar { display: none; }
.demo-pill { background: var(--accent); color: #fff; padding: 1px 8px; border-radius: 99px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 10.5px; }
.demo-text { opacity: .85; margin-right: auto; }
.demo-link { background: none; border: 1px solid rgba(255,255,255,.22); color: #F6F1EA; padding: 3px 10px; border-radius: 99px; font: inherit; cursor: pointer; text-decoration: none; }
.demo-link:hover { background: rgba(255,255,255,.08); }
#tierToggle[aria-pressed="true"] { border-color: var(--accent); }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 10px; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand b { font-family: Fraunces, serif; font-weight: 600; font-size: 19px; }
.brand small { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.topnav { display: none; gap: 4px; margin-left: 10px; }
.topnav a { text-decoration: none; color: var(--muted); padding: 7px 12px; border-radius: 99px; font-weight: 500; font-size: 14px; }
.topnav a.on, .topnav a:hover { color: var(--ink); background: var(--accent-soft); }
.top-account { margin-left: auto; }
.avatar-btn { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 500; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--brand); font-weight: 600; font-size: 13px; flex: none; }
.avatar.dark { background: var(--brand); color: #fff; }
.avatar.sm { width: 30px; height: 30px; font-size: 11.5px; }
.avatar.lg { width: 48px; height: 48px; font-size: 16px; font-family: Fraunces, serif; }
.hide-sm { display: none; }

/* bottom nav */
.bottomnav { position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-around; background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 24px rgba(30,30,20,.06); }
.bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 500; border-radius: 12px; }
.bottomnav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bottomnav a.on { color: var(--brand); }
.bottomnav a.on svg { stroke-width: 2.2; }

/* layout */
main { outline: none; }
.page { max-width: 1080px; margin: 0 auto; padding: 18px 16px 30px; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.section { margin-top: 30px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.sec-head h2 { margin: 0; }
.link { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; padding: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-top: 14px; box-shadow: 0 1px 2px rgba(40,30,20,.03); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 4px 0 12px; }
.page-head h1 { margin: 0; }
.sub { font-size: 18px; margin: 22px 0 10px; } .sub.tight { margin-top: 0; }
.back { display: inline-block; text-decoration: none; color: var(--muted); font-weight: 500; margin-bottom: 10px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--brand); background: var(--brand); color: #fff; font: 600 14.5px/1.1 Inter, sans-serif; text-decoration: none; cursor: pointer; transition: transform .1s, background .15s, opacity .15s; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--brand-2); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.small { min-height: 36px; padding: 7px 13px; font-size: 13.5px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.danger-text { color: var(--danger); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 14px; }
.row-btns.left { justify-content: flex-start; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; display: inline-grid; place-items: center; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.sm { width: 30px; height: 30px; font-size: 17px; }

/* pills, chips, tags */
.pill { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--brand); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.grey { background: #EEEBE6; color: #7A7A72; }
.tag { display: inline-block; font: 600 10.5px/1 Inter, sans-serif; letter-spacing: .04em; padding: 4px 7px; border-radius: 6px; background: #EEEBE6; color: var(--muted); text-transform: none; vertical-align: middle; }
.tag.upgrade { background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #fff)); color: #fff; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; margin: 6px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 500 13px Inter, sans-serif; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* hero */
.hero { display: grid; gap: 18px; align-items: center; }
.hero h1 { font-size: clamp(36px, 9vw, 60px); line-height: 1.02; margin-bottom: 14px; }
.hero-art { border-radius: 26px 26px 120px 26px; overflow: hidden; aspect-ratio: 5/4; box-shadow: 0 20px 50px -25px rgba(60,40,20,.45); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hello { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: linear-gradient(120deg, var(--card), var(--accent-soft)); }
.hello h2 { margin-bottom: 4px; }
.hello p { margin-bottom: 4px; }

/* class rows */
.list { display: flex; flex-direction: column; gap: 10px; }
.class-row, .booking { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.class-row:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: 0 8px 20px -14px rgba(60,40,20,.35); }
.class-row.dim { opacity: .55; }
.cr-time { width: 54px; flex: none; display: flex; flex-direction: column; }
.cr-time b { font-size: 16px; font-variant-numeric: tabular-nums; }
.cr-time span { font-size: 12px; color: var(--muted); }
.cr-dot { width: 4px; align-self: stretch; border-radius: 4px; flex: none; }
.cr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cr-main b { font-size: 15.5px; }
.cr-main span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-date { font-size: 12px !important; }
.cr-side { flex: none; }
.tone-clay { --t1:#C98B6B; --t2:#E9C3A6; } .tone-sand { --t1:#C9A97E; --t2:#EEDCC0; } .tone-sage { --t1:#7E8C73; --t2:#C9D2BE; } .tone-olive { --t1:#5E6B55; --t2:#AEB89F; } .tone-dusk { --t1:#7A6E8A; --t2:#D3C8DD; } .tone-blush { --t1:#C78A90; --t2:#F0CFD0; }
.cr-dot { background: var(--t1); }
.booking { justify-content: space-between; }
.bk-main { display: flex; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; flex: 1; }
.bk-main > div:last-child { display: flex; flex-direction: column; min-width: 0; }
.bk-main span { font-size: 13px; }

/* art */
.art { position: relative; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, var(--t2), color-mix(in srgb, var(--t2) 50%, #fff)); aspect-ratio: 16/8; }
.art svg { width: 100%; height: 100%; display: block; }
.art .a-sun { fill: #fff; opacity: .55; } .art .a-arch { fill: var(--t1); opacity: .55; } .art .a-arch2 { fill: var(--t1); } .art .a-ground { fill: var(--t1); opacity: .35; filter: brightness(.7); }
.art.small { aspect-ratio: 1; width: 64px; flex: none; border-radius: 14px; }

/* types & teachers */
.types { display: grid; grid-template-columns: 1fr; gap: 10px; }
.type-card { display: flex; gap: 14px; align-items: center; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); }
.type-card h3 { font-size: 16.5px; margin: 0 0 2px; }
.type-card p { margin: 0; }
.teachers { display: grid; gap: 10px; }
.teacher { display: flex; gap: 12px; align-items: flex-start; }
.teacher p { margin: 0; }
.teacher.inline { padding: 14px; border-radius: 14px; background: var(--bg); margin: 14px 0; }
.visit { display: grid; gap: 14px; }

/* timetable */
.week-nav { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14px; }
.day-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 6px 0; }
.day { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font: inherit; color: var(--ink); }
.day span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.day b { font-size: 18px; font-family: Fraunces, serif; font-weight: 500; }
.day i { font-style: normal; font-size: 9px; letter-spacing: 1px; color: var(--accent); height: 12px; line-height: 12px; }
.day.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.day.on span, .day.on i { color: rgba(255,255,255,.8); }
.day.past:not(.on) { opacity: .55; }
.day-title { font-size: 17px; margin: 14px 0 10px; }

/* class detail */
.class-detail { display: grid; gap: 16px; }
.class-detail .art { aspect-ratio: 16/9; border-radius: 22px; }
.cd-when { font-size: 16px; font-weight: 500; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 10px; }
.facts div { background: var(--card); border: 1px solid var(--line); padding: 10px 12px; border-radius: 12px; display: flex; flex-direction: column; }
.facts span { font-size: 12px; color: var(--muted); }
.meter { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 16px; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.cd-action { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); padding: 10px 0; display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.booked-note { text-align: center; font-weight: 600; color: var(--ok); }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; margin: 10px 0; }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.ok a { color: inherit; font-weight: 600; }

/* plans */
.plan-card { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: linear-gradient(135deg, var(--card), var(--accent-soft)); }
.pc-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pc-body b { font-family: Fraunces, serif; font-weight: 500; font-size: 19px; }
.pc-body span { font-size: 13.5px; color: var(--muted); }
.credits { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.credits i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--accent); }
.credits i.on { background: var(--accent); }
.plans { display: grid; gap: 12px; margin-top: 14px; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; }
.plan.popular { border: 2px solid var(--accent); }
.ribbon { position: absolute; top: -11px; left: 18px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.plan .price, .tier .price { font: 500 30px/1.1 Fraunces, serif; margin: 4px 0 8px; }
.price small { font: 400 14px Inter, sans-serif; color: var(--muted); }
.plan ul, .tier ul { list-style: none; padding: 0; margin: 4px 0 16px; flex: 1; }
.plan li, .tier li { padding: 5px 0 5px 24px; position: relative; font-size: 14px; }
.plan li::before, .tier li::before { content: '✓'; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
.locked { text-align: left; max-width: 640px; }

/* auth */
.auth { display: grid; gap: 14px; max-width: 920px; margin: 0 auto; }
.auth-card { margin-top: 0; }
.auth-card h1 { font-size: 28px; margin: 10px 0 14px; }
.seg { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 3px; margin-bottom: 14px; }
.seg button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 9px; font: 600 14px Inter, sans-serif; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.seg.mt { margin-top: 12px; }
.demo-accounts { margin-top: 0; background: linear-gradient(160deg, var(--card), var(--accent-soft)); }
.acct { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; font: inherit; color: var(--ink); }
.acct:hover { border-color: var(--accent); }
.acct > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; flex: 1; align-items: flex-start; }
.acct .go { font-size: 20px; color: var(--accent); }

/* forms */
.form { display: flex; flex-direction: column; gap: 12px; }
.form label, .grid2 label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink); }
input, select, textarea { font: 400 16px Inter, sans-serif; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; width: 100%; min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 1px; border-color: var(--accent); }
textarea { font: 13px/1.45 ui-monospace, Menlo, monospace; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.span2 { grid-column: 1 / -1; }
.form-err { color: var(--danger); font-size: 13.5px; font-weight: 500; margin: 0; }
.form-err[hidden] { display: none; }

/* modal sheet */
#modalRoot .backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(25,25,18,.42); opacity: 0; transition: opacity .2s; }
#modalRoot .sheet { position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; background: var(--card); border-radius: 22px 22px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); transform: translateY(30px); opacity: 0; transition: transform .25s ease, opacity .2s; }
#modalRoot.open .backdrop { opacity: 1; }
#modalRoot.open .sheet { transform: none; opacity: 1; }
.sheet::before { content: ''; display: block; width: 40px; height: 4px; background: var(--line); border-radius: 4px; margin: -10px auto 12px; }
.sheet-x { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; border: 0; background: var(--bg); border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.sheet h3 { font-size: 22px; padding-right: 36px; }
.opts { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer; font: inherit; }
.opt span { font-size: 13px; opacity: .85; }
.opt.alt { background: var(--card); color: var(--ink); border-color: var(--line); }
.hint { font-size: 13.5px; text-decoration: none; font-weight: 500; }
.test-banner { background: repeating-linear-gradient(45deg, #FFF3D6, #FFF3D6 10px, #FCEAC0 10px, #FCEAC0 20px); color: #7A5410; font: 700 12px Inter, sans-serif; letter-spacing: .06em; text-align: center; padding: 8px; border-radius: 10px; margin: 6px 36px 14px 0; }
.fill-test { align-self: center; }
.success { text-align: center; padding: 6px 0; }
.success h3 { padding: 0; }
.tick { width: 62px; height: 62px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-size: 30px; display: grid; place-items: center; margin: 4px auto 12px; animation: pop .35s ease; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.success .row-btns { justify-content: center; }
.spin { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* toasts */
#toastRoot { position: fixed; z-index: 60; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); opacity: 0; transform: translateY(8px); transition: all .25s; text-align: center; }
.toast.show { opacity: 1; transform: none; }
.toast.err { background: var(--danger); }
.toast.ok { background: var(--ok); }

/* empty */
.empty { text-align: center; padding: 26px 16px; border: 1.5px dashed var(--line); border-radius: 16px; background: color-mix(in srgb, var(--card) 60%, transparent); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.empty.big { margin-top: 30px; padding: 40px 18px; }
.empty-ic { font-size: 26px; color: var(--accent); }
.empty .btn { margin-top: 8px; }

/* account */
.pay-list { display: flex; flex-direction: column; }
.pay { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pay:last-child { border: 0; }
.pay > div { display: flex; flex-direction: column; }
.pay .refund { color: var(--ok); }

/* about */
.tiers { display: grid; gap: 14px; }
.tier { display: flex; flex-direction: column; margin-top: 0; }
.tier.featured { border: 2px solid var(--accent); }
.tier.current { box-shadow: 0 0 0 4px var(--accent-soft); }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp th:first-child, .cmp td:first-child { text-align: left; }
.cmp td:not(:first-child) { color: var(--ok); font-weight: 700; }
.try { display: grid; gap: 10px; }
.credit-line { text-align: center; color: var(--muted); font-size: 13px; margin-top: 26px; }

/* admin */
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px 6px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs a { flex: none; padding: 9px 12px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -7px; }
.admin-tabs a.on { color: var(--ink); border-color: var(--accent); }
.lock { font-size: 11px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.stat > span:first-child { font-size: 12.5px; color: var(--muted); }
.stat b { font: 500 28px/1.15 Fraunces, serif; }
.delta { font-size: 12px; font-weight: 600; }
.delta.up { color: var(--ok); } .delta.down { color: var(--warn); }
.admin-grid { display: grid; gap: 0; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 18px; margin-bottom: 10px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bar i { display: block; width: 100%; max-width: 34px; background: color-mix(in srgb, var(--accent) 55%, #fff); border-radius: 8px 8px 3px 3px; position: relative; min-height: 4px; transition: height .4s; }
.bar.today i { background: var(--brand); }
.bar em { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.bar span { font-size: 11.5px; color: var(--muted); }
.mini-class { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 4px; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.mini-class:last-child { border: 0; }
.mini-class span { flex: 1; display: flex; flex-direction: column; }
.mini-class small { color: var(--muted); }
.mini-class em { font-style: normal; font-weight: 600; font-size: 13px; }
.mini-class em.grey { color: var(--muted); }
.feed { display: flex; gap: 10px; padding: 8px 0; font-size: 14px; }
.feed > div { display: flex; flex-direction: column; }
.diary-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.diary-bar .search { flex: 1; min-width: 180px; }
.diary { display: block; margin-top: 10px; }
.dcol { display: none; flex-direction: column; gap: 8px; }
.dcol.on { display: flex; }
.dcol-h { display: none; }
.dclass { text-align: left; display: flex; flex-direction: column; gap: 1px; padding: 11px 12px 10px; border-radius: 12px; border: 1px solid var(--line); border-left: 4px solid var(--t1); background: var(--card); cursor: pointer; font: inherit; color: var(--ink); width: 100%; }
.dclass b { font-size: 14.5px; }
.dclass span { font-size: 12.5px; color: var(--muted); }
.dclass .dc-t { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.dc-n { position: relative; margin-top: 6px; padding-bottom: 6px; }
.dc-n i { position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--t1); }
.dclass.past { opacity: .6; }
.dclass.cancelled { opacity: .55; background: repeating-linear-gradient(-45deg, var(--card), var(--card) 6px, #F1EDE7 6px, #F1EDE7 12px); }
.dclass.cancelled b { text-decoration: line-through; }
.tone-b-clay { --t1:#C98B6B; } .tone-b-sand { --t1:#C9A97E; } .tone-b-sage { --t1:#7E8C73; } .tone-b-olive { --t1:#5E6B55; } .tone-b-dusk { --t1:#7A6E8A; } .tone-b-blush { --t1:#C78A90; }
.add-here { border: 1.5px dashed var(--line); background: none; border-radius: 12px; padding: 10px; color: var(--muted); font: 500 13px Inter, sans-serif; cursor: pointer; }
.add-here:hover { border-color: var(--accent); color: var(--brand); }
.dempty { padding: 6px 2px; margin: 0; }
.att-list { display: flex; flex-direction: column; margin: 10px 0; }
.att { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.att > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.att .chip { padding: 5px 10px; font-size: 12px; }
.add-att { display: flex; gap: 8px; margin-top: 10px; }
.add-att select { flex: 1; min-width: 0; }
.clients { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.client { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; font: inherit; text-align: left; color: var(--ink); width: 100%; }
.client:hover { border-color: var(--accent); }
.cl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cl-main .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.hist { display: flex; flex-direction: column; }
.hist > div { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.plan-admin { display: grid; gap: 12px; }
.pa { display: flex; flex-direction: column; gap: 10px; margin-top: 0; }
.pa h3 { margin-bottom: 2px; }
.pa p { margin: 0; }
.pa-fields { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.pa-fields label { display: flex; flex-direction: column; font-size: 12.5px; font-weight: 600; gap: 4px; flex: 1; min-width: 90px; }
.imp-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.file-btn { cursor: pointer; }
.card > label.small { display: flex; flex-direction: column; gap: 6px; font-weight: 600; margin-bottom: 12px; }
.mapping { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.map-chip { font-size: 12.5px; background: var(--bg); border: 1px solid var(--line); padding: 4px 9px; border-radius: 8px; }
.table-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 6px; border-bottom: 1px solid var(--line); }
.tbl tr.skip td, .tbl tr.dup td { color: var(--muted); }
.themes { display: flex; gap: 10px; flex-wrap: wrap; }
.theme { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); font: 500 13px Inter, sans-serif; cursor: pointer; color: var(--ink); }
.theme span { width: 46px; height: 46px; border-radius: 50%; }
.theme.on { border-color: var(--accent); }
.switch { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .knob { flex: none; width: 48px; height: 28px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; margin-top: 2px; }
.switch .knob::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + .knob { background: var(--ok); }
.switch input:checked + .knob::after { transform: translateX(20px); }
.switch input:focus-visible + .knob { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch p { margin: 2px 0 0; }

/* footer */
.site-footer { text-align: center; padding: 26px 16px 20px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); margin-top: 20px; }
.site-footer p { margin: 0 0 4px; }
.credit a { color: var(--muted); font-weight: 600; text-decoration: none; letter-spacing: .02em; }
.credit a:hover { color: var(--brand); }

/* larger screens */
@media (min-width: 640px) {
  .types { grid-template-columns: 1fr 1fr; }
  .teachers { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .visit { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1.1fr .9fr; align-items: start; }
  .plan-admin { grid-template-columns: 1fr 1fr; }
  .try { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 700px) {
  #modalRoot .sheet { left: 50%; right: auto; top: 50%; bottom: auto; width: min(480px, 92vw); border-radius: 22px; transform: translate(-50%, -46%); max-height: 88vh; padding: 24px; }
  #modalRoot .sheet.wide { width: min(640px, 94vw); }
  #modalRoot.open .sheet { transform: translate(-50%, -50%); }
  .sheet::before { display: none; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .bottomnav { display: none; }
  .topnav { display: flex; }
  .hide-sm { display: inline; }
  .page { padding: 28px 28px 40px; }
  .hero { grid-template-columns: 1.05fr 1fr; gap: 40px; padding: 18px 0 8px; }
  .types { grid-template-columns: repeat(3, 1fr); }
  .teachers { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(4, 1fr); }
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .class-detail { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .class-detail .cd-action { grid-column: 2; position: static; background: none; backdrop-filter: none; }
  .class-detail .art { position: sticky; top: 90px; grid-row: span 2; }
  .admin-grid { grid-template-columns: 1.2fr 1fr; gap: 0 14px; }
  .admin-grid section:last-child { grid-column: 1 / -1; }
  .admin-tabs { margin: 0 0 18px; padding: 0 0 6px; }
  .diary-strip { display: none; }
  .diary { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
  .dcol { display: flex; background: color-mix(in srgb, var(--card) 50%, transparent); border-radius: 14px; padding: 8px; }
  .dcol.today { background: var(--accent-soft); }
  .dcol-h { display: flex; justify-content: space-between; align-items: center; padding: 2px 2px 4px; font-size: 13px; }
  .dcol-h .pill { font-size: 10px; padding: 2px 6px; }
  .dclass { padding: 8px 9px; }
  .dclass b { font-size: 13px; }
  .dclass span { font-size: 11.5px; }
  #toastRoot { bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.show-xs { display: none; }
@media (max-width: 520px) {
  .hide-xs { display: none; } .show-xs { display: inline; }
  .demo-strip { gap: 6px; padding: 6px 10px; font-size: 11.5px; }
  .demo-link { padding: 3px 8px; }
  .table-wrap { margin: 0; padding: 0; }
  .tbl { min-width: 0; }
  .tbl thead { display: none; }
  .tbl tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .tbl td { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; border: 0; text-align: right; word-break: break-word; }
  .tbl td::before { content: attr(data-l); color: var(--muted); font-size: 12px; text-align: left; flex: none; }
}

/* Continue with Google (demo explainer) */
.btn.google { background: #fff; color: #1F1F1F; border-color: #DADCE0; font-weight: 500; }
.btn.google:hover { background: #F7F8F8; }
.g-mark { width: 18px; height: 18px; flex: none; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 14px 0 4px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gx { display: grid; gap: 14px; max-width: 920px; margin: 0 auto; }
.gx-card { margin-top: 0; }
.gx-card h1 { font-size: 30px; margin: 4px 0 6px; }
.g-steps { list-style: none; padding: 0; margin: 18px 0 6px; display: grid; gap: 12px; }
.g-step { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(120deg, var(--card), color-mix(in srgb, var(--accent-soft) 45%, var(--card))); }
.g-step p { margin: 3px 0 0; }
.g-n { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font: 600 15px Fraunces, Georgia, serif; }
.gx-btns { margin-top: 16px; }
.gx-owner { margin-top: 0; background: linear-gradient(160deg, var(--card), var(--accent-soft)); }
.boot { display: grid; place-items: center; min-height: 50vh; }
.spin.dark { border-color: var(--line); border-top-color: var(--brand); width: 26px; height: 26px; }
@media (min-width: 760px) { .gx { grid-template-columns: 1.5fr 1fr; align-items: start; } }
