/* Tập Đều — app hội viên, bảng quản lý, lớp phủ */

/* ---------- lớp phủ: modal / sheet / drawer ---------- */
.layer { position: fixed; inset: 0; z-index: 70; display: grid; }
.layer.in-host { position: absolute; z-index: 30; }
.scrim { position: absolute; inset: 0; background: rgba(12, 12, 10, .5); opacity: 0; transition: opacity .3s var(--ease); }
.layer.in .scrim { opacity: 1; }
.dlg { position: relative; background: var(--card); color: var(--ink); outline: none; overflow: auto; overscroll-behavior: contain; }
.dlg > .x { position: absolute; right: 12px; top: 12px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--card) 88%, transparent); color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.layer.modal { place-items: center; padding: 20px; }
.layer.modal .dlg { width: min(560px, 100%); max-height: calc(100vh - 40px); border-radius: var(--r-l); padding: 32px; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .3s var(--ease), transform .4s var(--spring); }
.layer.modal.small .dlg { width: min(440px, 100%); }
.layer.in .dlg { opacity: 1; transform: none; }
.layer.out .dlg, .layer.out .scrim { opacity: 0; }
.layer.sheet { align-items: end; }
.layer.sheet .dlg { max-height: 92%; border-radius: 22px 22px 0 0; transform: translateY(100%); transition: transform .45s var(--ease); }
.layer.sheet.in .dlg { transform: none; }
.layer.sheet.out .dlg { transform: translateY(100%); }
body:not([data-mode=app]) .layer.sheet .dlg { width: min(560px, 100%); justify-self: center; padding: 28px 24px 32px; }
.layer.drawer { justify-items: end; }
.layer.drawer .dlg { width: min(520px, 100%); height: 100%; transform: translateX(100%); transition: transform .45s var(--ease); }
.layer.drawer.in .dlg { transform: none; }
.layer.drawer.out .dlg { transform: translateX(100%); }
.cf { display: grid; gap: 14px; }
.cf-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--tint); color: var(--accent-t); }
.cf h3 { font: 700 30px/1.05 var(--f-d); text-transform: uppercase; }
.cf p { color: var(--ink-2); }
.cf .row { margin-top: 10px; }

/* ⌘K */
.layer.cmd { place-items: start center; padding-top: 12vh; }
.layer.cmd .dlg { width: min(600px, 100%); padding: 0; }
.layer.cmd .x { display: none; }
.ck-in { display: flex; align-items: center; gap: 12px; padding: 18px 22px; box-shadow: inset 0 -1px 0 var(--line); }
.ck-in input { flex: 1; border: 0; background: transparent; font-size: 18px; outline: none; min-height: 32px; }
.ck ul { list-style: none; margin: 0; padding: 8px; max-height: 52vh; overflow: auto; }
.ck li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; min-height: 52px; border-radius: 8px; cursor: pointer; }
.ck li span { flex: 1; display: grid; }
.ck li small { color: var(--ink-3); font-size: 13px; }
.ck li .go { opacity: 0; width: 16px; }
.ck li[aria-selected=true] { background: var(--bg-2); }
.ck li[aria-selected=true] .go { opacity: 1; }
.ck li.empty { color: var(--ink-3); cursor: default; }
.ck-ft { padding: 12px 22px; font-size: 13px; color: var(--ink-3); box-shadow: inset 0 1px 0 var(--line); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* form */
.form { display: grid; gap: 16px; }
.form h2, .sh-b h2, .dw-b h2 { font: 700 34px/1 var(--f-d); text-transform: uppercase; }
.form label, .note-in { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.form input, .form select, .note-in textarea { min-height: 50px; padding: 12px 14px; border-radius: var(--r); border: 0; background: var(--bg-2); color: var(--ink); font-size: 16px; font-weight: 400; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s; }
.form input:focus, .form select:focus, .note-in textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.note-in textarea { resize: vertical; min-height: 72px; font: 400 15px var(--f-b); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.err { color: var(--accent-t); font-size: 14px; font-weight: 600; }

/* =========================================================
   APP HỘI VIÊN
   ========================================================= */
body[data-mode=app] { background: var(--char); }
body[data-mode=app]::before { opacity: .4; }
.stage { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, 460px) auto; gap: clamp(40px, 7vw, 120px); align-items: center; justify-content: center; padding: 40px clamp(20px, 4vw, 64px); color: var(--lime); position: relative; }
.stage::before { content: ''; position: fixed; inset: 0; background: url(../img/spin.webp) center / cover; opacity: .16; filter: blur(2px) saturate(.6); z-index: -1; }
.stage-l .logo, .stage-l .logo span { color: var(--lime); }
.stage-l .logo svg { color: var(--lime); --bg: var(--char); }
.stage-l .kick { color: rgba(239, 235, 227, .62); margin: 44px 0 14px; }
.stage-l h1 { font: 800 clamp(48px, 5vw, 76px)/.9 var(--f-d); text-transform: uppercase; margin-bottom: 22px; }
.stage-l > p { color: rgba(239, 235, 227, .8); font-size: 16px; }
.stage-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 20px; }
.stage-links .btn.ghost { color: var(--lime); box-shadow: inset 0 0 0 1.5px rgba(239, 235, 227, .22); }
.stage-links .btn.ghost:hover { background: rgba(239, 235, 227, .08); }
.stage-p { display: flex; gap: 2px; margin-bottom: 24px; }
.stage .concept { color: rgba(239, 235, 227, .62); }
.stage .concept a { color: var(--lime); }

.phone { width: 390px; height: min(844px, calc(100vh - 48px)); min-height: 680px; border-radius: 54px; padding: 12px; background: #0b0b0a; box-shadow: inset 0 0 0 1.5px #3b3934, 0 50px 100px -40px rgba(0, 0, 0, .9); }
.ph-screen { position: relative; height: 100%; border-radius: 43px; overflow: hidden; background: var(--bg); color: var(--ink); display: flex; flex-direction: column; isolation: isolate; }
.ph-screen::before { content: ''; position: absolute; inset: 0; background: var(--grain); pointer-events: none; z-index: 0; }
.ph-status { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px 0; height: 46px; font: 600 15px var(--f-b); position: relative; z-index: 2; flex: none; }
.ph-isl { position: absolute; left: 50%; top: 10px; width: 112px; height: 32px; border-radius: 20px; background: #0b0b0a; transform: translateX(-50%); }
.ph-sig { font-size: 13px; display: flex; gap: 2px; align-items: end; }
.ph-sig i { display: block; width: 3px; background: currentColor; border-radius: 1px; }
.ph-sig i:nth-child(1) { height: 4px; } .ph-sig i:nth-child(2) { height: 6px; } .ph-sig i:nth-child(3) { height: 8px; } .ph-sig i:nth-child(4) { height: 10px; margin-right: 4px; }
.ph-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 12px 4px 8px; flex: none; position: relative; z-index: 2; }
.ph-top > span:not(.av) { font: 800 18px var(--f-d); letter-spacing: .08em; }
.av.sm { width: 36px; height: 36px; font-size: 14px; }
.av.lg { width: 84px; height: 84px; font-size: 30px; background: var(--accent); color: #fff; }
.ph-c { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 20px 28px; display: flex; flex-direction: column; gap: 24px; position: relative; z-index: 1; scrollbar-width: none; outline: none; }
.ph-c::-webkit-scrollbar { display: none; }
.ph-tabs { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 8px 24px; background: color-mix(in srgb, var(--bg) 92%, transparent); box-shadow: 0 -1px 0 var(--line); position: relative; z-index: 2; }
.ph-tabs a { display: grid; justify-items: center; gap: 4px; min-height: 52px; padding-top: 6px; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--ink-3); border-radius: 10px; transition: color .2s; }
.ph-tabs a .ic { width: 24px; height: 24px; transition: transform .3s var(--spring); }
.ph-tabs a.on { color: var(--accent-t); }
.ph-tabs a.on .ic { transform: translateY(-2px); }
.ph-tabs a:active .ic { transform: scale(.9); }

.card { background: var(--card); border-radius: var(--r-l); padding: 24px; box-shadow: var(--shadow); }
.m-hero { position: relative; border-radius: var(--r-l); overflow: hidden; height: 168px; flex: none; }
.m-hero img { width: 100%; height: 100%; object-fit: cover; }
.m-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 13, 11, .8), transparent 70%); }
.m-hero-t { position: absolute; left: 20px; bottom: 16px; z-index: 1; color: var(--lime); }
.m-hero-t span { font: 500 13px var(--f-m); letter-spacing: .04em; opacity: .85; }
.m-hero-t h1 { font: 800 44px/.95 var(--f-d); text-transform: uppercase; }
.m-head h1 { font: 800 40px/1 var(--f-d); text-transform: uppercase; }
.m-head p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.m-h2 { font: 700 20px/1 var(--f-d); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; color: var(--ink-2); }
.m-h3 { font: 700 18px var(--f-d); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); margin: 8px 0 -4px; }

.streak { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 20px; }
.ring { position: relative; width: 132px; height: 132px; }
.ring-v { animation: ringIn 1.2s var(--ease) both; }
@keyframes ringIn { from { stroke-dashoffset: var(--c); } }
.ring-n { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-n b { font: 800 56px/.85 var(--f-d); }
.ring-n span { font-size: 13px; line-height: 1.2; color: var(--ink-3); max-width: 76px; margin: 4px auto 0; }
.streak-r p { font-size: 15px; line-height: 1.45; }
.wk { list-style: none; padding: 0; margin: 14px 0 10px; display: flex; gap: 6px; }
.wk li { display: grid; justify-items: center; gap: 5px; font: 500 13px var(--f-b); color: var(--ink-3); }
.wk li i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); }
.wk li.done i { background: var(--accent); box-shadow: none; }
.wk li.now { color: var(--ink); font-weight: 700; }
.wk li.now:not(.done) i { box-shadow: inset 0 0 0 2px var(--accent); }
.streak-r small { font-size: 13px; color: var(--ink-3); }

.cls { width: 100%; display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border: 0; border-radius: var(--r-l); background: var(--card); text-align: left; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s; animation: up .45s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }
@keyframes up { from { opacity: 0; transform: translateY(12px); } }
.cls:hover { transform: translateY(-2px); }
.cls:active { transform: scale(.98); }
.cls + .cls { margin-top: 10px; }
.cls.mine { box-shadow: inset 3px 0 0 var(--accent), var(--shadow); }
.cls-img img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.cls-m { display: grid; gap: 2px; min-width: 0; }
.cls-t { font: 500 13px var(--f-m); color: var(--ink-3); }
.cls-t b { color: var(--ink); font-weight: 600; }
.cls-n { font-size: 16px; font-weight: 600; line-height: 1.3; }
.cls-c { font-size: 13px; color: var(--ink-3); }
.cls-s { font-size: 13px; font-weight: 600; color: var(--ink-2); display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.cls-s .ic { width: 16px; height: 16px; }
.cls-s.ok { color: var(--ok); }
.cls-s.low { color: var(--warn); }
.cls-s.full { color: var(--ink-3); }
.cls-sk { display: grid; grid-template-columns: 64px 1fr; gap: 14px; height: 84px; padding: 10px; margin-top: 10px; background: var(--card); }
.cls-sk i { background: var(--bg-2); border-radius: 8px; }
.cls-sk span { display: grid; gap: 10px; align-content: center; }
.cls-sk em { height: 12px; border-radius: 4px; background: var(--bg-2); }
.cls-sk em + em { width: 60%; }

.prog-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; background: var(--char); color: var(--lime); border-radius: var(--r-l); text-decoration: none; transition: transform .2s var(--ease); }
.prog-card:active { transform: scale(.98); }
.prog-card .th { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.prog-card div { display: grid; gap: 2px; }
.prog-card b { font-size: 16px; }
.prog-card span { font-size: 13px; color: rgba(239, 235, 227, .7); }

.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { min-height: 60px; border: 0; border-radius: 10px; background: var(--card); display: grid; place-content: center; gap: 2px; text-align: center; transition: background .2s, color .2s, transform .15s; }
.day span { font: 500 13px var(--f-m); color: var(--ink-3); }
.day b { font: 700 22px/1 var(--f-d); }
.day.past { opacity: .55; }
.day.on { background: var(--ink); color: var(--bg); opacity: 1; }
.day.on span { color: inherit; opacity: .7; }
.day:active { transform: scale(.95); }
.day:disabled { opacity: .35; cursor: not-allowed; }
.days.sm .day { min-height: 52px; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: -8px -20px 0; padding: 0 20px; scrollbar-width: none; }
.chip { flex: none; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; padding: 0 16px; border: 0; border-radius: 22px; background: var(--card); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.chip .ic { width: 18px; height: 18px; }
.chip.on { background: var(--accent); color: #fff; }
.clist { margin-top: -6px; }
.empty { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 8px 0 20px; color: var(--ink-2); }
.empty img { width: 100%; max-width: 320px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-l); filter: grayscale(.4); }
.empty.sm img { max-width: 100%; aspect-ratio: 3 / 1; }

/* sheet trong phone */
.layer.in-host.sheet .dlg { width: 100%; padding: 0; }
.sh-img { height: 220px; overflow: hidden; }
.sh-img .big { width: 100%; height: 100%; object-fit: cover; transform-origin: top left; }
.sh-b { padding: 22px 22px 30px; display: grid; gap: 14px; }
.sh-b .tag { color: var(--accent-t); }
.meta { color: var(--ink-2); font-size: 15px; }
.fill { display: grid; gap: 8px; }
.fill-bar { height: 8px; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.fill-bar i { display: block; height: 100%; background: var(--ink); border-radius: 4px; animation: grow .8s var(--ease) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.fill span { font-size: 14px; color: var(--ink-2); }
.fill b { color: var(--ink); }
.coach-row { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 10px; background: var(--bg-2); }
.coach-row div { display: grid; }
.coach-row small { color: var(--ink-3); font-size: 13px; }
.note { font-size: 14px; color: var(--ink-3); }
.ptb { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 8px 12px 12px; background: var(--card); border-radius: var(--r-l); box-shadow: var(--shadow); }
.ptb + .ptb { margin-top: 10px; }
.ptb-d { display: grid; place-items: center; height: 56px; border-radius: 8px; background: var(--ink); color: var(--bg); font: 500 13px var(--f-m); }
.ptb-d b { font: 700 18px/1 var(--f-d); }
.ptb div { display: grid; }
.ptb small { font-size: 13px; color: var(--ink-3); }
.coaches { display: grid; gap: 10px; }
.coach { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 10px 12px 10px 10px; border: 0; border-radius: var(--r-l); background: var(--card); text-align: left; box-shadow: var(--shadow); transition: transform .2s var(--ease); animation: up .45s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.coach:active { transform: scale(.98); }
.co-img { position: relative; }
.co-img img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }
.co-img .av { position: absolute; right: -6px; bottom: -6px; width: 34px; height: 34px; font-size: 13px; background: var(--accent); color: #fff; box-shadow: 0 0 0 3px var(--card); }
.co-m { display: grid; gap: 2px; }
.co-m b { font-size: 16px; }
.co-m small { font-size: 13px; color: var(--ink-3); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { min-height: 48px; border: 0; border-radius: 8px; background: var(--bg-2); font: 600 15px var(--f-b); font-variant-numeric: tabular-nums; }
.slot.on { background: var(--accent); color: #fff; }
.slot:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }

/* giáo án */
.exs { display: flex; gap: 8px; overflow-x: auto; margin: -8px -20px 0; padding: 0 20px 2px; scrollbar-width: none; }
.ex { flex: none; display: grid; text-align: left; gap: 2px; min-height: 58px; padding: 10px 14px; border: 0; border-radius: 10px; background: var(--card); max-width: 168px; }
.ex b { font-size: 14px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex span { font: 500 13px var(--f-m); color: var(--ink-3); }
.ex.on { background: var(--ink); color: var(--bg); }
.ex.on span { color: inherit; opacity: .7; }
.ex.fin span { color: var(--ok); }
.bar-mini { position: relative; height: 210px; flex: none; border-radius: var(--r-l); overflow: hidden; background: radial-gradient(70% 70% at 50% 45%, #2a2420, #121110); color: var(--lime); }
.bar-mini canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bar-mini .bar-poster { inset: 0; height: 100%; opacity: .35; }
.bar-mini.ready .bar-poster { opacity: 0; }
.bar-mini.db img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.bm-read { position: absolute; left: 18px; top: 14px; display: flex; align-items: baseline; gap: 6px; z-index: 2; }
.bm-read b { font: 800 56px/.9 var(--f-d); color: #F08A6E; font-variant-numeric: tabular-nums; }
.bm-read span { font: 700 18px var(--f-d); opacity: .75; }
.bar-mini small { position: absolute; left: 18px; bottom: 12px; z-index: 2; font: 500 13px var(--f-m); letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.cue { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); margin-top: -8px; }
.cue .ic { color: var(--accent-t); }
.sets { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sets li { display: grid; grid-template-columns: 24px 1fr auto 48px; gap: 6px; align-items: center; padding: 6px 6px 6px 12px; border-radius: 10px; background: var(--card); transition: background .2s; }
.sets li.done { background: color-mix(in srgb, var(--ok) 12%, var(--card)); }
.sn { font: 700 18px var(--f-d); color: var(--ink-3); }
.step { display: flex; align-items: center; justify-content: center; }
.step b { min-width: 58px; text-align: center; font: 700 24px/1 var(--f-d); font-variant-numeric: tabular-nums; }
.step b small { font: 500 13px var(--f-m); color: var(--ink-3); margin-left: 2px; }
.step.r b { min-width: 46px; }
.step .ib { width: 36px; height: 44px; color: var(--ink-2); }
.step .ib .ic { width: 18px; height: 18px; }
.tick { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bg-2); color: var(--ink-3); transition: background .2s, color .2s, transform .3s var(--spring); }
.tick.on { background: var(--ok); color: #fff; transform: scale(1.06); }
.last { font-size: 13px; color: var(--ink-3); margin-top: -12px; }
.prog-foot { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; align-items: center; padding: 16px; border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow); }
.pf-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.pf-bar i { display: block; height: 100%; background: var(--accent); transition: width .5s var(--ease); }
.prog-foot span { font-size: 14px; color: var(--ink-2); }

/* tiến độ */
.big-num p { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 4px; }
.big-num p b { font: 800 64px/.9 var(--f-d); font-variant-numeric: tabular-nums; }
.big-num p span { font: 700 20px var(--f-d); color: var(--ink-3); }
.down { color: var(--ok); font-style: normal; font-weight: 600; font-size: 14px; }
.big-num em.down { margin-left: auto; }
.wline { width: 100%; height: auto; overflow: visible; }
.wline .draw { stroke-dasharray: 600; animation: draw 1.4s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
.wline .lbl { font: 700 14px var(--f-d); fill: var(--ink-3); }
.wline .lbl.b { fill: var(--accent-t); font-size: 16px; }
.wline .ax { font: 500 13px var(--f-m); fill: var(--ink-3); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duo .card { padding: 18px; display: grid; gap: 4px; }
.duo .n { font: 800 40px/1 var(--f-d); margin-top: 6px; }
.duo .n i { font: 700 16px var(--f-d); color: var(--ink-3); font-style: normal; margin-left: 2px; }
.bars-h { display: grid; grid-template-columns: repeat(auto-fit, minmax(28px, 1fr)); gap: 8px; height: 150px; align-items: end; margin-top: 16px; }
.bars-h div { height: 100%; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 4px; }
.bars-h div > i { order: 1; width: 100%; max-width: 30px; align-self: end; background: var(--bg-2); border-radius: 4px 4px 0 0; animation: rise .8s var(--ease) both; transform-origin: bottom; }
.bars-h i.hi { background: var(--accent); }
@keyframes rise { from { transform: scaleY(0); } }
.bars-h b { order: 0; font: 700 14px var(--f-d); color: var(--ink-2); }
.bars-h span { order: 2; font: 500 13px var(--f-m); color: var(--ink-3); }

/* QR */
.qr-b { justify-items: center; text-align: center; padding-top: 34px; }
.qr-b h2 { font-size: 28px; }
.qr { position: relative; width: 252px; height: 252px; display: grid; place-items: center; }
.qr > svg:first-child { width: 220px; height: 220px; }
.qr-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.qr-ring circle { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 30; transition: stroke-dashoffset 1s linear; stroke-linecap: round; }
.qr-t { font-size: 14px; color: var(--ink-3); }
.qr-t b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ok-anim { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; animation: pop .6s var(--spring) both; margin: 12px auto 0; }
.ok-anim .ic { width: 48px; height: 48px; stroke-width: 2.4; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.streak-pop { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 6px 0 10px; }
.streak-pop b { font: 800 72px/.9 var(--f-d); color: var(--accent-t); animation: pop .7s .15s var(--spring) both; }
.streak-pop span { color: var(--ink-2); }

/* =========================================================
   BẢNG QUẢN LÝ
   ========================================================= */
.adm { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 24px 16px; background: var(--bg-2); overflow-y: auto; }
.side > .logo { padding: 0 8px 18px; }
.side .branch { margin: 0 0 18px; width: 100%; }
.side .branch button { flex: 1; }
.ng { font: 500 13px var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 16px 12px 6px; }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 8px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; }
.side nav a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.side nav a.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.side nav a.on .ic { color: var(--accent-t); }
.side-f { margin-top: auto; display: grid; gap: 2px; padding-top: 20px; }
.side-l { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 8px; text-decoration: none; font-size: 14px; color: var(--ink-2); }
.side-l:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.side-f .row { gap: 0; padding-top: 6px; }
.acol { min-width: 0; display: flex; flex-direction: column; }
.atop { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 14px clamp(20px, 3vw, 44px); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); }
.at-t { font: 700 18px var(--f-d); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-right: auto; }
.kbtn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px 0 14px; border: 0; border-radius: 8px; background: var(--bg-2); color: var(--ink-3); font-size: 14px; min-width: 240px; }
.kbtn span { margin-right: auto; }
.amain { flex: 1; padding: 8px clamp(20px, 3vw, 44px) 48px; display: grid; gap: 28px; align-content: start; max-width: 1360px; width: 100%; outline: none; }
.afoot { padding: 20px clamp(20px, 3vw, 44px) 32px; }
.pg-h { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; padding-top: 12px; }
.pg-h h1 { font: 800 clamp(36px, 3.4vw, 48px)/1 var(--f-d); text-transform: uppercase; }
.pg-h p { color: var(--ink-2); margin-top: 6px; }
.more { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; min-height: 44px; padding: 0 4px; }
.more .ic { width: 16px; height: 16px; }
.card header { display: flex; justify-content: space-between; align-items: center; margin: -10px 0 8px; }

.strip { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 6px; height: 180px; border-radius: var(--r-l); overflow: hidden; margin-top: 8px; }
.strip > span img { width: 100%; height: 100%; object-fit: cover; }
.strip::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 13, 11, .82), rgba(14, 13, 11, .1) 70%); pointer-events: none; }
.strip-t { position: absolute; left: 28px; bottom: 22px; z-index: 2; color: var(--lime); opacity: 1 !important; transform: none !important; }
.strip-t span { font: 500 13px var(--f-m); letter-spacing: .04em; opacity: .85; }
.strip-t h1 { font: 800 clamp(40px, 4vw, 56px)/.95 var(--f-d); text-transform: uppercase; }

.ov { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; gap: 24px; }
.daily { display: flex; align-items: end; gap: 3px; height: 120px; margin-top: 28px; }
.daily i { flex: 1; background: var(--bg-2); border-radius: 2px 2px 0 0; animation: rise .8s var(--ease) both; transform-origin: bottom; min-height: 4px; }
[data-theme=dark] .daily i { background: #34322d; }
.daily i.pk { background: var(--ink-2); }
.daily i.now { background: var(--accent); }
.daily-l { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.focus { grid-row: span 1; }
.hero-n { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 10px 0 14px; }
.hero-n b { font: 800 clamp(56px, 5vw, 72px)/.85 var(--f-d); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.hero-n span { font: 600 20px var(--f-d); color: var(--ink-3); }
.hero-n.sm b { font-size: 52px; }
.hero-n.sm span { font: 500 14px var(--f-b); }
.hero-n .up, .sub.up { color: var(--ok); }
.hero-n .down { color: var(--accent-t); }
.goal { height: 10px; border-radius: 5px; background: var(--bg-2); overflow: hidden; }
.goal i { display: block; height: 100%; background: var(--accent); border-radius: 5px; animation: grow 1.1s var(--ease) both; transform-origin: left; }
.sub { font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 0; }
.split div { padding-top: 12px; box-shadow: inset 0 2px 0 var(--line); }
.split dt { font-size: 13px; color: var(--ink-3); }
.split dd { margin: 4px 0 0; font: 700 24px var(--f-d); }
.ov .focus { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; }
.ov .focus .split { margin-top: auto; padding-top: 24px; }
.ov .risk { grid-column: 2; grid-row: 1 / 3; }
.ov .today { grid-column: 3; grid-row: 1 / 3; }
.ov .ci-mini, .ov .pt-mini { display: flex; flex-direction: column; align-items: flex-start; }
.ov .ci-mini .btn, .ov .pt-mini .btn { margin-top: auto; }
.ov .ci-mini { grid-column: 1 / 2; }
.ov .pt-mini { grid-column: 2 / 4; }
.risk-n { font-size: 15px; color: var(--ink-2); margin-bottom: 8px; }
.risk-n b { font: 800 44px/1 var(--f-d); color: var(--accent-t); margin-right: 4px; }
.plist, .clsl, .ptl, .feed, .roster { list-style: none; padding: 0; margin: 0; display: grid; }
.plist li, .feed li { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; min-height: 64px; }
.plist li + li, .clsl li + li, .ptl li + li, .feed li + li { box-shadow: inset 0 1px 0 var(--line); }
.plist a { display: grid; text-decoration: none; min-width: 0; }
.plist a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.plist small, .clsl small, .ptl small, .feed small { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plist .ib { background: var(--bg-2); border-radius: 50%; }
.plist .ib.on { background: var(--ok); color: #fff; }
.empty-li { padding: 20px 0; color: var(--ink-3); }
.clsl li { display: grid; grid-template-columns: 48px 44px 1fr auto; gap: 12px; align-items: center; min-height: 64px; }
.clsl .t, .ptl .t { font: 700 17px var(--f-d); font-variant-numeric: tabular-nums; }
.clsl .th { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.clsl .n, .ptl .n { display: grid; min-width: 0; }
.clsl .n b, .ptl .n b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clsl .f { display: grid; justify-items: end; gap: 6px; font-size: 13px; }
.clsl .f b { font: 700 16px var(--f-d); }
.clsl .f i { display: block; width: 56px; height: 5px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.clsl .f em { display: block; height: 100%; background: var(--ink); }

/* bảng */
.tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 8px; background: var(--card); box-shadow: var(--shadow); }
.search input { flex: 1; border: 0; background: transparent; outline: none; min-height: 44px; font-size: 15px; }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.sel select { min-height: 48px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--card); box-shadow: var(--shadow); font-size: 15px; }
.tbl { background: var(--card); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 8px 0; overflow: hidden; }
.tr { display: grid; grid-template-columns: minmax(240px, 2.2fr) 1fr 1.1fr 1fr 110px; gap: 16px; align-items: center; min-height: 68px; padding: 8px 24px; text-decoration: none; transition: background .15s; }
a.tr:hover { background: var(--bg-2); }
.tr + .tr { box-shadow: inset 0 1px 0 var(--line); }
.tr.th { min-height: 48px; font: 500 13px var(--f-m); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.who { display: flex; gap: 14px; align-items: center; min-width: 0; }
.who > span:last-child { display: grid; min-width: 0; }
.who b { font-size: 15px; font-weight: 600; }
.who small { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .th { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; }
.num { text-align: right; justify-self: end; display: grid; justify-items: end; }
.num b { font: 700 20px var(--f-d); }
.num small { font-size: 13px; color: var(--ink-3); }
.tr .neg { color: var(--accent-t); font-weight: 600; }
.tr .warn { color: var(--warn); font-weight: 600; }
.tr .pl { font-size: 15px; }
.pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 14px; font-size: 13px; font-weight: 600; background: var(--bg-2); color: var(--ink-2); }
.pill.hi { background: var(--tint); color: var(--accent-t); }
.pill.mid { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }

/* drawer chi tiết */
.dw-h { position: relative; height: 180px; }
.dw-h .dw-img { width: 100%; height: 100%; object-fit: cover; }
.dw-h .av { position: absolute; left: 28px; bottom: -42px; box-shadow: 0 0 0 5px var(--card); }
.dw-b { padding: 28px; display: grid; gap: 16px; }
.dw-h + .dw-b { padding-top: 24px; }
.dw-h:has(.av) + .dw-b { padding-top: 60px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 0; padding: 18px; border-radius: 10px; background: var(--bg-2); }
.kv dt { font-size: 13px; color: var(--ink-3); }
.kv dd { margin: 2px 0 0; font-weight: 600; }
.vbar { display: grid; gap: 10px; }
.vb { display: grid; grid-template-columns: 120px 1fr 32px; gap: 12px; align-items: center; font-size: 14px; color: var(--ink-2); }
.vb i { height: 10px; border-radius: 5px; background: var(--stone); opacity: .5; animation: grow .8s var(--ease) both; transform-origin: left; }
.vb.now i { background: var(--accent); opacity: 1; }
.vb b { font: 700 18px var(--f-d); text-align: right; }
.cap { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 18px; background: var(--bg-2); border-radius: 10px; }
.cap .hero-n { margin: 6px 0 0; }
.stepper > div { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.stepper b { font: 700 28px var(--f-d); min-width: 36px; text-align: center; }
.stepper .ib { background: var(--card); }
.roster li { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 15px; }

/* lịch tuần */
.wk-days { display: none; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.wcol { display: grid; gap: 8px; align-content: start; padding: 12px 8px; border-radius: var(--r-l); }
.wcol.today { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.wcol h3 { font: 700 17px var(--f-d); text-transform: uppercase; letter-spacing: .03em; padding: 0 4px 6px; display: grid; }
.wcol h3 span { font: 500 13px var(--f-m); color: var(--ink-3); letter-spacing: 0; }
.wc { display: grid; gap: 6px; text-align: left; padding: 12px; min-height: 96px; border: 0; border-radius: 10px; background: var(--card); box-shadow: var(--shadow); transition: transform .2s var(--ease); position: relative; overflow: hidden; }
.wc::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--stone); }
.wc.t-spin::before { background: var(--char); }
.wc.t-yoga::before { background: var(--brass); }
.wc.t-strength::before { background: var(--accent); }
[data-theme=dark] .wc.t-spin::before { background: var(--lime); }
.wc:hover { transform: translateY(-2px); }
.wc:active { transform: scale(.98); }
.wc-t { font: 500 13px var(--f-m); color: var(--ink-3); }
.wc b { font-size: 14px; line-height: 1.3; font-weight: 600; }
.wc-f { display: flex; align-items: center; gap: 8px; font: 600 13px var(--f-b); color: var(--ink-2); }
.wc-f i { flex: 1; height: 4px; border-radius: 2px; background: var(--bg-2); overflow: hidden; }
.wc-f em { display: block; height: 100%; background: var(--ink-2); }
.wc-f em.full { background: var(--accent); }
.none { font-size: 14px; color: var(--ink-3); padding: 12px 4px; }

/* PT */
.pt-g, .ci-g { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
.ptl li { display: grid; grid-template-columns: 56px 1fr 44px; gap: 14px; align-items: center; min-height: 64px; }
.ptl li.done .n b { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.pt-t .tr { grid-template-columns: minmax(240px, 2fr) 90px 80px 160px; }

/* check-in */
.hours { display: grid; grid-template-columns: repeat(17, 1fr); gap: 4px; height: 200px; align-items: end; margin-top: 28px; }
.hours > div { position: relative; height: 100%; display: flex; align-items: end; justify-content: center; padding-bottom: 22px; }
.hours i { position: absolute; bottom: 22px; left: 10%; right: 10%; border-radius: 3px 3px 0 0; animation: rise .8s var(--ease) both; transform-origin: bottom; }
.hours i.avg { background: var(--bg-2); }
.hours i.today { left: 26%; right: 26%; background: var(--accent); }
.hours i.today b { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font: 700 13px var(--f-d); color: var(--accent-t); }
.hours span { position: absolute; bottom: 0; font: 500 13px var(--f-m); color: var(--ink-3); }
.hours em { position: absolute; top: -6px; font: 600 13px var(--f-b); color: var(--ink-2); white-space: nowrap; font-style: normal; }
.legend-inline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.sw { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.sw.today { background: var(--accent); }
.sw.avg { background: var(--bg-2); margin-left: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.hint { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 14px; border-radius: 10px; background: var(--bg-2); font-size: 14px; color: var(--ink-2); }
.hint .ic { color: var(--warn); }
.live { display: inline-flex; gap: 8px; align-items: center; font: 500 13px var(--f-m); text-transform: uppercase; letter-spacing: .06em; color: var(--ok); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.feed li > span:nth-child(2) { display: grid; min-width: 0; }
.feed time { font: 500 13px var(--f-m); color: var(--ink-3); }
.feed li.new { animation: slideIn .5s var(--ease) both; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-14px); } }

/* bán gói */
.pos { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.h2s { font: 700 22px var(--f-d); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); margin: 4px 0 14px; }
.h2s + .pgrid + .h2s, .pgrid + .h2s { margin-top: 28px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.prod { position: relative; display: grid; grid-template-rows: auto 1fr; padding: 0; border: 0; border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow); overflow: hidden; text-align: left; }
.prod img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pm { display: grid; gap: 4px; padding: 14px 16px 16px; }
.pm b { font-size: 15px; line-height: 1.3; }
.pm span { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.prod .add { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; transition: transform .3s var(--spring); }
.prod:hover .add { transform: scale(1.1) rotate(90deg); }
.prod:active { transform: scale(.97) !important; }
.retail .prod img { aspect-ratio: 4 / 5; }
.bill { position: sticky; top: 84px; display: grid; gap: 16px; }
.buyer { box-shadow: none; background: var(--bg-2); }
.buyer-i { font-size: 13px; color: var(--ink-3); margin-top: -8px; }
.lines { list-style: none; padding: 0; margin: 0; display: grid; }
.lines li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; }
.lines li + li { box-shadow: inset 0 1px 0 var(--line); }
.lines li > span { display: grid; }
.lines small { color: var(--ink-3); font-size: 13px; }
.qty { display: flex; align-items: center; gap: 2px; }
.qty b { min-width: 22px; text-align: center; font: 700 18px var(--f-d); }
.qty .ib { width: 40px; height: 44px; }
.pay { width: 100%; }
.pay button { flex: 1; padding: 0 8px; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; box-shadow: inset 0 2px 0 var(--ink); }
.total b { font: 800 40px/1 var(--f-d); font-variant-numeric: tabular-nums; }
.rev .rbars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; height: 220px; align-items: end; margin-top: 24px; }
.rbars > div { height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 8px; }
.rbars i { width: 100%; max-width: 72px; background: var(--bg-2); border-radius: 4px 4px 0 0; animation: rise .8s var(--ease) both; transform-origin: bottom; }
.rbars .cur i { background: var(--accent); }
.rbars b { font: 700 18px var(--f-d); }
.rbars span { font: 500 13px var(--f-m); color: var(--ink-3); }
.fly { position: fixed; z-index: 80; border-radius: 10px; object-fit: cover; pointer-events: none; }

/* hoá đơn */
.layer.receipt-m .dlg { width: min(400px, 100%); background: #FBFAF6; color: #151513; border-radius: 4px; padding: 32px 28px; -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 6.5px, #000 7px) 0 0 / 18px 100% repeat-x; mask: radial-gradient(circle 7px at bottom, transparent 6.5px, #000 7px) 0 0 / 18px 100%; }
.receipt { display: grid; gap: 14px; font-size: 14px; }
.rc-h { text-align: center; display: grid; justify-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1.5px dashed rgba(21, 21, 19, .25); }
.rc-h .logo { color: #151513; }
.rc-h .logo svg { color: #151513; --bg: #FBFAF6; }
.rc-h p { color: #57534C; font-size: 13px; }
.rc-m { display: flex; justify-content: space-between; font: 500 13px var(--f-m); color: #57534C; }
.receipt ul { list-style: none; padding: 12px 0; margin: 0; display: grid; gap: 10px; border-top: 1.5px dashed rgba(21, 21, 19, .25); border-bottom: 1.5px dashed rgba(21, 21, 19, .25); }
.receipt li { display: flex; justify-content: space-between; gap: 12px; }
.rc-t { display: flex; justify-content: space-between; align-items: baseline; }
.rc-t b { font: 800 34px var(--f-d); }
.rc-f { text-align: center; color: #57534C; font-size: 13px; padding-top: 8px; }
.layer.receipt-m .x { background: #fff; color: #151513; }

.more-l { display: grid; gap: 4px; padding-top: 24px; }
.more-l a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.more-l a:hover { background: var(--bg-2); }
.more-l .row { padding: 10px 4px 0; gap: 2px; }

.sk-page { display: grid; gap: 16px; padding-top: 12px; }
.sk-page .h { height: 180px; border-radius: var(--r-l); }
.sk-page .r { height: 68px; }
.abar { display: none; }

@media (max-width: 1240px) {
  .ov { grid-template-columns: 1fr 1fr; }
  .ov .focus { grid-column: 1; grid-row: auto; }
  .ov .risk { grid-column: 2; grid-row: auto; }
  .ov .today { grid-column: 1 / -1; grid-row: auto; }
  .ov .ci-mini { grid-column: 1; }
  .ov .pt-mini { grid-column: 2; }
  .week { grid-template-columns: 1fr; }
  .week .wcol { display: none; }
  .week .wcol.on { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .week .wcol.on h3 { grid-column: 1 / -1; }
  .wk-days { display: grid; max-width: 640px; }
  .pos { grid-template-columns: 1fr 340px; }
}
@media (max-width: 960px) {
  .stage { grid-template-columns: 1fr; justify-items: center; padding-top: 32px; }
  .stage-l { max-width: 560px; text-align: left; }
  .stage-l .kick { margin-top: 28px; }
  .adm { grid-template-columns: 1fr; }
  .side { display: none; }
  .abar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0; z-index: 40; padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); box-shadow: 0 -1px 0 var(--line); }
  .abar a, .abar button { display: grid; justify-items: center; gap: 3px; min-height: 56px; padding-top: 6px; border: 0; background: transparent; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--ink-3); }
  .abar .ic { width: 24px; height: 24px; }
  .abar .on { color: var(--accent-t); }
  .amain { padding-bottom: 110px; }
  .afoot { padding-bottom: 110px; margin-top: -90px; }
  .pos { grid-template-columns: 1fr; }
  .bill { position: static; }
  .pt-g, .ci-g { grid-template-columns: 1fr; }
  .kbtn { min-width: 0; }
}
@media (max-width: 560px) {
  body[data-mode=app] { background: var(--bg); }
  .stage { display: block; padding: 0; min-height: 100svh; }
  .stage::before { display: none; }
  .stage-l { display: none; }
  .phone { width: 100%; height: 100svh; min-height: 0; border-radius: 0; padding: 0; box-shadow: none; background: var(--bg); }
  .ph-screen { border-radius: 0; }
  .ph-status { display: none; }
  .ph-top { padding-top: 10px; }
  .ph-tabs { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .atop { padding: 10px 16px; gap: 8px; }
  .at-t { font-size: 16px; }
  .kbtn span, .kbtn kbd { display: none; }
  .kbtn { padding: 0 12px; }
  .atop .btn span { display: none; }
  .atop .btn { padding: 0 12px; }
  .amain { padding: 4px 16px 110px; gap: 20px; }
  .strip { grid-template-columns: 1fr 1fr; height: 150px; }
  .strip > span:nth-child(n+3) { display: none; }
  .ov { grid-template-columns: 1fr; }
  .ov > * { grid-column: 1 !important; }
  .card { padding: 20px; }
  .split { gap: 10px; }
  .split dd { font-size: 20px; }
  .tools .seg { width: 100%; overflow-x: auto; }
  .tools .seg button { flex: none; }
  .tr { grid-template-columns: 1fr auto; padding: 10px 16px; gap: 4px 12px; }
  .tr.th { display: none; }
  .tr > span:nth-child(2), .tr > span:nth-child(3) { display: none; }
  .tr > .num { display: none; }
  .pt-t .tr { grid-template-columns: 1fr auto; }
  .pt-t .tr > span:nth-child(2) { display: grid; }
  .pt-t .tr > span:nth-child(3) { display: none; }
  .pt-t .tr > span:nth-child(4) { grid-column: 1 / -1; justify-self: start; display: grid; padding-left: 70px; }
  .hours { gap: 2px; }
  .hours span { font-size: 13px; }
  .hours > div:nth-child(even) span { display: none; }
  .rev .rbars { gap: 8px; }
  .two { grid-template-columns: 1fr; }
  .layer.modal .dlg { padding: 24px 20px; }
  .dw-b { padding: 22px; }
  .kv { grid-template-columns: 1fr; }
  .vb { grid-template-columns: 96px 1fr 28px; }
  .pgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .week .wcol.on { grid-template-columns: 1fr; }
}
.ph-c > * { flex: none; }

.share { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.share li { display: grid; grid-template-columns: 110px 1fr 64px; gap: 12px; align-items: center; font-size: 14px; color: var(--ink-2); }
.share i { height: 10px; border-radius: 5px; background: var(--bg-2); overflow: hidden; }
.share em { display: block; height: 100%; background: var(--ink); border-radius: 5px; animation: grow .8s var(--ease) both; transform-origin: left; }
.share li:first-child em { background: var(--accent); }
.share b { font: 700 18px var(--f-d); text-align: right; color: var(--ink); }
