:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
  --bg: #1c1513;
  --surface: #2a211e;
  --surface-2: #332824;
  --surface-3: #3c2f2a;
  --text: #fff8f2;
  --muted: #baa9a0;
  --accent: #f3a184;
  --accent-2: #f6c5ad;
  --good: #88b59a;
  --warn: #e3b56e;
  --border: rgba(255,255,255,.085);
  --shadow: 0 18px 50px rgba(0,0,0,.25);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 80% -10%, #4b3028 0, transparent 35%), var(--bg); color: var(--text); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.app { width: min(100%, 620px); margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 16px calc(108px + env(safe-area-inset-bottom)); }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin: 2px 2px 20px; }
.brand { font-size:13px; letter-spacing:.13em; text-transform:uppercase; color:var(--accent-2); font-weight:800; }
.avatar { width:42px; height:42px; border-radius:50%; display:grid; place-items:center; background:linear-gradient(145deg,var(--accent),#8d5948); font-weight:800; box-shadow:var(--shadow); }
.hello { margin:0 0 5px; color:var(--muted); font-size:14px; }
h1 { margin:0; font-size:30px; line-height:1.12; letter-spacing:-.04em; }
h2 { margin:0; font-size:20px; letter-spacing:-.02em; }
h3 { margin:0; font-size:16px; }
p { line-height:1.45; }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:24px 2px 12px; }
.section-head small { color:var(--muted); }
.hero { padding:22px; border-radius:28px; background:linear-gradient(145deg,rgba(243,161,132,.19),rgba(55,40,34,.95)), var(--surface); border:1px solid rgba(246,197,173,.16); box-shadow:var(--shadow); overflow:hidden; position:relative; }
.hero::after { content:""; position:absolute; width:180px; height:180px; border-radius:50%; right:-85px; top:-75px; background:radial-gradient(circle,rgba(246,197,173,.22),transparent 68%); }
.hero-label { color:var(--accent-2); font-weight:800; font-size:13px; letter-spacing:.08em; text-transform:uppercase; }
.hero h2 { font-size:25px; margin:8px 0 7px; }
.hero p { color:var(--muted); margin:0 0 18px; max-width:400px; }
.progress-track { height:8px; border-radius:10px; background:rgba(255,255,255,.08); overflow:hidden; }
.progress-track > i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--accent),var(--accent-2)); }
.progress-meta { display:flex; justify-content:space-between; color:var(--muted); font-size:12px; margin-top:8px; }
.task-list, .stack { display:grid; gap:10px; }
.task { width:100%; display:grid; grid-template-columns:46px 1fr auto; align-items:center; gap:13px; padding:14px; border:1px solid var(--border); border-radius:20px; background:var(--surface); text-align:left; cursor:pointer; }
.task.done { opacity:.68; }
.task.done .task-icon { background:rgba(136,181,154,.2); color:#bce0c9; }
.task-icon { width:46px; height:46px; border-radius:15px; display:grid; place-items:center; background:rgba(243,161,132,.13); color:var(--accent-2); font-size:21px; }
.task b, .task small { display:block; }
.task small { color:var(--muted); margin-top:4px; }
.task-state { color:var(--accent-2); font-size:20px; }
.primary, .secondary { width:100%; min-height:52px; border-radius:17px; border:0; padding:14px 18px; font-weight:800; cursor:pointer; }
.primary { background:linear-gradient(135deg,var(--accent),#ee8f73); color:#2a1914; box-shadow:0 10px 24px rgba(238,143,115,.2); }
.secondary { background:var(--surface-2); border:1px solid var(--border); }
.compact { width:auto; min-height:40px; padding:9px 14px; border-radius:13px; }
.card { padding:18px; border:1px solid var(--border); border-radius:22px; background:var(--surface); }
.card p { margin:7px 0 0; color:var(--muted); }
.week { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.day { min-height:58px; border-radius:16px; display:grid; place-items:center; gap:2px; padding:8px 2px; background:var(--surface); color:var(--muted); border:1px solid var(--border); font-size:11px; }
.day b { font-size:14px; color:var(--text); }
.day.complete { background:rgba(136,181,154,.13); border-color:rgba(136,181,154,.22); }
.day.current { background:rgba(243,161,132,.18); border-color:var(--accent); }
.filter-row { display:flex; gap:8px; overflow:auto; padding:2px 0 8px; scrollbar-width:none; }
.chip { flex:0 0 auto; border:1px solid var(--border); background:var(--surface); border-radius:999px; padding:9px 13px; color:var(--muted); cursor:pointer; }
.chip.active { background:var(--accent); color:#2a1914; border-color:transparent; font-weight:800; }
.meal { display:grid; grid-template-columns:64px 1fr auto; gap:13px; align-items:center; }
.meal-art { width:64px; height:64px; display:grid; place-items:center; border-radius:18px; background:linear-gradient(145deg,#6a4739,#342620); font-size:28px; }
.meal strong, .meal small { display:block; }
.meal small { color:var(--muted); margin-top:4px; }
.form { display:grid; gap:18px; }
.field > label, .field > span { display:block; font-weight:750; margin-bottom:10px; }
.choice-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.choice { min-height:46px; border:1px solid var(--border); background:var(--surface-2); border-radius:14px; cursor:pointer; }
.choice.selected { border-color:var(--accent); background:rgba(243,161,132,.16); color:var(--accent-2); }
.scale { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; }
.scale button { aspect-ratio:1; border-radius:50%; border:1px solid var(--border); background:var(--surface-2); cursor:pointer; }
.scale button.selected { background:var(--accent); color:#24130f; border-color:transparent; font-weight:800; }
textarea { width:100%; min-height:88px; padding:13px; border-radius:15px; border:1px solid var(--border); background:var(--surface-2); color:var(--text); resize:vertical; }
.score-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.score { padding:18px; border-radius:21px; background:var(--surface); border:1px solid var(--border); }
.score strong { display:block; font-size:28px; color:var(--accent-2); }
.score span { color:var(--muted); font-size:12px; }
.chart { height:150px; display:flex; align-items:flex-end; gap:9px; padding-top:18px; }
.bar { flex:1; min-height:12px; border-radius:8px 8px 3px 3px; background:linear-gradient(var(--accent-2),var(--accent)); position:relative; opacity:.85; }
.bar::after { content:attr(data-label); position:absolute; bottom:-22px; width:100%; text-align:center; color:var(--muted); font-size:10px; }
.badges { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.badge-card { text-align:center; padding:14px 5px; border-radius:19px; background:var(--surface); border:1px solid var(--border); }
.badge-card span { display:grid; place-items:center; width:48px; height:48px; margin:0 auto 9px; border-radius:16px; background:rgba(243,161,132,.14); font-size:23px; }
.badge-card b { font-size:12px; }
.team-banner { background:linear-gradient(145deg,#5b3a30,#2b211e); }
.team-top { display:flex; align-items:center; gap:13px; }
.team-icon { width:58px; height:58px; border-radius:19px; display:grid; place-items:center; background:#f1b092; font-size:31px; }
.quest { margin-top:18px; padding-top:16px; border-top:1px solid var(--border); }
.list-button { width:100%; display:flex; justify-content:space-between; align-items:center; gap:12px; padding:17px; border-radius:18px; border:1px solid var(--border); background:var(--surface); cursor:pointer; text-align:left; }
.list-button small { display:block; color:var(--muted); margin-top:4px; }
.bottom-nav { position:fixed; z-index:20; bottom:0; left:50%; transform:translateX(-50%); width:min(100%,620px); display:grid; grid-template-columns:repeat(5,1fr); padding:9px 8px calc(9px + env(safe-area-inset-bottom)); background:rgba(28,21,19,.94); backdrop-filter:blur(18px); border-top:1px solid var(--border); }
.nav-item { border:0; background:transparent; color:var(--muted); min-height:54px; display:grid; place-items:center; align-content:center; gap:4px; cursor:pointer; }
.nav-item span { font-size:20px; line-height:1; }
.nav-item b { font-size:10px; }
.nav-item.active { color:var(--accent-2); }
.toast { position:fixed; z-index:30; left:50%; bottom:95px; transform:translate(-50%,20px); max-width:calc(100% - 32px); background:#fff1e8; color:#2b1b16; padding:12px 17px; border-radius:14px; box-shadow:var(--shadow); opacity:0; pointer-events:none; transition:.2s ease; font-weight:700; text-align:center; }
.toast.show { opacity:1; transform:translate(-50%,0); }
.empty { text-align:center; padding:34px 18px; color:var(--muted); }
.onboarding-mode .bottom-nav { display:none; }
.onboarding-mode .app { padding-bottom:24px; }
.onboarding { min-height:calc(100vh - 44px); display:flex; flex-direction:column; justify-content:center; gap:22px; }
.onboarding > div:nth-of-type(2) p { color:var(--muted); font-size:16px; margin-bottom:0; }
.onboarding-mark { width:82px; height:82px; display:grid; place-items:center; border-radius:28px; background:linear-gradient(145deg,var(--accent),#8d5948); color:#291610; font-size:14px; line-height:1.05; text-align:center; font-weight:900; box-shadow:var(--shadow); }
.onboarding-dots { display:flex; gap:7px; }
.onboarding-dots i { width:24px; height:5px; border-radius:5px; background:rgba(255,255,255,.1); }
.onboarding-dots i.active { background:var(--accent); }
.plan-choice { width:100%; padding:17px; border-radius:20px; border:1px solid var(--border); background:var(--surface); text-align:left; cursor:pointer; }
.plan-choice b,.plan-choice strong,.plan-choice small { display:block; }
.plan-choice strong { margin:7px 0; font-size:21px; color:var(--accent-2); }
.plan-choice small { color:var(--muted); line-height:1.45; }
.plan-choice.selected { border-color:var(--accent); background:rgba(243,161,132,.12); box-shadow:inset 0 0 0 1px rgba(243,161,132,.2); }
.tier-row { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:7px; }
.tier-row em { font-style:normal; color:var(--accent-2); font-size:12px; }
.pricing-onboarding { justify-content:flex-start; padding-top:10px; }
.tier-price { display:flex; align-items:baseline; gap:6px; margin-top:13px; }
.tier-price strong { font-size:22px; color:var(--text); }
.tier-price span { color:var(--muted); font-size:12px; }
.tier-saving { display:inline-block; margin-top:9px; padding:5px 9px; border-radius:999px; background:rgba(136,181,154,.14); color:#bce0c9; font-size:11px; font-weight:800; }
.recommended-label { align-self:flex-start; margin-bottom:-23px; margin-left:17px; z-index:2; padding:6px 10px; border-radius:999px; background:var(--accent); color:#281611; font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.05em; }
.payment-card { width:100%; display:block; padding:21px 17px 17px; border-radius:23px; border:1px solid var(--border); background:var(--surface); text-align:left; cursor:pointer; }
.payment-card.recommended { border-color:rgba(243,161,132,.55); background:linear-gradient(145deg,rgba(243,161,132,.14),var(--surface)); }
.payment-card.selected { box-shadow:inset 0 0 0 2px var(--accent),var(--shadow); }
.payment-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.payment-heading em { font-style:normal; color:#bce0c9; font-size:11px; font-weight:800; }
.payment-card > strong { display:block; margin:15px 0 3px; font-size:29px; color:var(--accent-2); }
.payment-card > strong small { font-size:13px; color:var(--muted); }
.payment-caption { display:block; color:var(--muted); font-size:13px; }
.payment-schedule { display:grid; gap:8px; margin-top:16px; padding:12px; border-radius:15px; background:rgba(0,0,0,.13); }
.payment-schedule i { display:flex; justify-content:space-between; gap:10px; font-style:normal; font-size:12px; color:var(--muted); }
.payment-schedule b { color:var(--text); }
.payment-total { display:block; margin-top:13px; font-size:13px; color:var(--muted); }
.payment-total b { color:var(--text); }
.saving-box { display:grid; gap:5px; padding:14px 16px; border-radius:18px; background:rgba(136,181,154,.11); border:1px solid rgba(136,181,154,.2); }
.saving-box span { color:var(--muted); font-size:12px; }
.saving-box strong { color:#bce0c9; }
.billing-note { margin:0; color:var(--muted); font-size:12px; }
.checkout-box { display:grid; gap:13px; padding:16px; border:1px solid var(--border); border-radius:20px; background:var(--surface); }
.payment-provider-choice { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.payment-provider-choice .choice { display:grid; gap:4px; padding:10px 8px; }
.payment-provider-choice small { color:var(--muted); font-size:9px; }
.checkout-box label { display:grid; gap:7px; color:var(--muted); font-size:12px; font-weight:700; }
.checkout-box input[type="email"] { width:100%; padding:13px 14px; border:1px solid var(--border); border-radius:14px; background:rgba(0,0,0,.16); color:var(--text); font:inherit; outline:none; }
.checkout-box input[type="email"]:focus { border-color:var(--accent); }
.consent-row { grid-template-columns:20px 1fr !important; align-items:start; font-weight:500 !important; line-height:1.45; }
.consent-row input { width:18px; height:18px; margin:1px 0 0; accent-color:var(--accent); }
.primary:disabled { opacity:.6; cursor:wait; }
.program-weeks { display:flex; gap:9px; overflow-x:auto; padding:2px 1px 10px; scroll-snap-type:x mandatory; scrollbar-width:none; }
.program-week { flex:0 0 118px; min-height:100px; display:flex; flex-direction:column; align-items:flex-start; gap:5px; padding:13px; border:1px solid var(--border); border-radius:18px; background:var(--surface); text-align:left; scroll-snap-align:start; cursor:pointer; }
.program-week span { width:27px; height:27px; display:grid; place-items:center; border-radius:9px; background:rgba(243,161,132,.13); color:var(--accent-2); font-weight:900; }
.program-week b { font-size:12px; line-height:1.25; }
.program-week small { margin-top:auto; color:var(--muted); font-size:10px; }
.program-week.active { border-color:var(--accent); background:rgba(243,161,132,.12); }
.program-week.future { opacity:.65; }
.week-hero { display:grid; grid-template-columns:1fr auto; gap:15px; margin-top:7px; padding:20px; border-radius:24px; background:linear-gradient(145deg,rgba(243,161,132,.18),var(--surface)); border:1px solid rgba(243,161,132,.18); }
.week-hero span { color:var(--accent-2); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.week-hero h2 { margin:7px 0; font-size:23px; }
.week-hero p { margin:0; color:var(--muted); }
.week-number { width:50px; height:50px; display:grid; place-items:center; border-radius:17px; background:var(--accent); color:#281611; font-size:22px; font-weight:900; }
.workout-row { display:grid; grid-template-columns:36px 1fr auto; align-items:center; gap:12px; }
.workout-row p { margin-top:4px; font-size:12px; }
.workout-index { width:34px; height:34px; display:grid; place-items:center; border-radius:12px; background:rgba(243,161,132,.13); color:var(--accent-2); font-weight:900; }
.training-note { display:grid; grid-template-columns:auto 1fr; gap:12px; align-items:center; margin-bottom:10px; padding:13px 15px; border-radius:17px; background:rgba(243,161,132,.1); border:1px solid rgba(243,161,132,.16); }
.training-note b { color:var(--accent-2); white-space:nowrap; }
.training-note span { color:var(--muted); font-size:11px; line-height:1.4; }
.draft-banner { display:grid; gap:7px; margin-bottom:10px; padding:14px 15px; border-radius:17px; background:rgba(227,181,110,.12); border:1px solid rgba(227,181,110,.28); }
.draft-banner b { color:#f0ce96; font-size:12px; letter-spacing:.06em; }
.draft-banner span { color:var(--muted); font-size:12px; line-height:1.45; }
.streak-card { display:grid; grid-template-columns:43px 1fr auto; gap:12px; align-items:center; margin-top:14px; padding:14px; border-radius:19px; background:linear-gradient(135deg,rgba(227,181,110,.17),var(--surface)); border:1px solid rgba(227,181,110,.22); }
.streak-flame { width:43px; height:43px; display:grid; place-items:center; border-radius:14px; background:rgba(227,181,110,.14); font-size:21px; }
.streak-card b,.streak-card span { display:block; }
.streak-card span { margin-top:3px; color:var(--muted); font-size:11px; }
.streak-card strong { color:#f0ce96; white-space:nowrap; }
.report-reward { margin:16px 0 0; }
.reward-card { display:grid; grid-template-columns:1fr auto; align-items:center; gap:15px; margin-top:16px; padding:18px; border-radius:22px; background:linear-gradient(145deg,rgba(243,161,132,.16),var(--surface)); border:1px solid rgba(243,161,132,.2); }
.reward-card h3 { margin:6px 0; }
.reward-card p { margin:0; color:var(--muted); font-size:12px; }
.reward-ring { width:58px; height:58px; display:grid; place-items:center; border-radius:50%; border:5px solid transparent; background:linear-gradient(var(--surface),var(--surface)) padding-box,conic-gradient(var(--accent) var(--reward-progress,288deg),rgba(243,161,132,.16) 0) border-box; color:var(--accent-2); font-size:12px; font-weight:900; }
.spark-rules { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.spark-rules article { display:grid; gap:3px; padding:14px; border:1px solid var(--border); border-radius:17px; background:var(--surface); }
.spark-rules b { color:var(--accent-2); font-size:18px; }
.spark-rules span { color:var(--muted); font-size:11px; }
.spark-ledger { display:grid; overflow:hidden; border:1px solid var(--border); border-radius:19px; background:var(--surface); }
.spark-ledger article { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px 15px; border-bottom:1px solid var(--border); }
.spark-ledger article:last-child { border-bottom:0; }
.spark-ledger span,.spark-ledger b,.spark-ledger small { display:block; }
.spark-ledger small { margin-top:3px; color:var(--muted); font-size:10px; }
.spark-ledger strong { flex:none; color:#f0ce96; font-size:13px; }
.focus-card { display:grid; grid-template-columns:42px 1fr; gap:12px; align-items:start; }
.focus-card > span { width:42px; height:42px; display:grid; place-items:center; border-radius:14px; background:rgba(243,161,132,.12); font-size:20px; }
.quest-card { display:grid; grid-template-columns:54px 1fr; gap:14px; align-items:center; margin-top:18px; background:linear-gradient(145deg,#4b352d,var(--surface)); }
.quest-icon { width:54px; height:54px; display:grid; place-items:center; border-radius:18px; background:rgba(243,161,132,.14); font-size:27px; }
.quest-card h3 { margin-top:4px; }
.quest-card p { font-size:12px; }
.body-plan { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-top:14px; padding:17px; border-radius:20px; background:rgba(246,197,173,.08); border:1px solid rgba(246,197,173,.15); }
.body-plan h3 { margin:5px 0; }
.body-plan p { margin:0; color:var(--muted); font-size:12px; }
.workout-details { padding:0; overflow:hidden; }
.workout-details summary { display:grid; grid-template-columns:36px 1fr auto; align-items:center; gap:12px; padding:17px; cursor:pointer; list-style:none; }
.workout-details summary::-webkit-details-marker { display:none; }
.workout-details summary p { margin:4px 0 0; color:var(--muted); font-size:12px; }
.workout-details ol { margin:0; padding:0 20px 5px 49px; color:var(--muted); }
.workout-details li { padding:7px 0; line-height:1.35; }
.workout-details .primary { width:calc(100% - 32px); margin:10px 16px 16px; }
.method-note { color:var(--muted); font-size:11px; margin:12px 3px 0; }
.body-type-choice { display:grid; grid-template-columns:46px 1fr; gap:13px; align-items:start; }
.body-symbol { width:46px; height:46px; display:grid; place-items:center; border-radius:15px; background:rgba(243,161,132,.13); color:var(--accent-2); font-size:21px; font-weight:900; }
.calculator-form { display:grid; gap:14px; }
.input-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.input-grid label,.wide-field { display:grid; gap:7px; color:var(--muted); font-size:12px; }
.input-grid input,.input-grid select,.wide-field input,.wide-field select { width:100%; min-height:46px; padding:11px; border:1px solid var(--border); border-radius:14px; background:var(--surface); color:var(--text); font-size:15px; }
.strategy-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.strategy-grid .choice { padding:11px; }
.strategy-grid small { color:var(--muted); }
.macro-settings { border:1px solid var(--border); border-radius:18px; background:var(--surface); padding:15px; }
.macro-settings summary { cursor:pointer; font-weight:800; }
.macro-settings p { color:var(--muted); font-size:12px; }
.calorie-result { padding:18px; border-radius:24px; background:linear-gradient(145deg,rgba(243,161,132,.16),var(--surface)); border:1px solid rgba(243,161,132,.18); }
.result-top { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.result-top span { padding:12px; border-radius:15px; background:rgba(0,0,0,.13); }
.result-top small,.result-top b { display:block; }
.result-top small { color:var(--muted); margin-bottom:5px; }
.target-calories { text-align:center; padding:22px 0 18px; }
.target-calories small,.target-calories strong,.target-calories span { display:block; }
.target-calories small,.target-calories span { color:var(--muted); }
.target-calories strong { font-size:34px; color:var(--accent-2); margin:4px 0; }
.macro-result { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.macro-result span { text-align:center; padding:12px 5px; border-radius:15px; background:rgba(0,0,0,.13); }
.macro-result b,.macro-result small { display:block; }
.macro-result small { color:var(--muted); margin-top:4px; }
.formula-check { margin-top:13px; padding:11px 13px; border-radius:14px; font-size:12px; line-height:1.4; }
.formula-check.ok { background:rgba(136,181,154,.13); color:#bce0c9; }
.formula-check.low,.formula-check.high { background:rgba(227,181,110,.13); color:#f0ce96; }
.photo-review { display:grid; grid-template-columns:48px 1fr; gap:13px; margin-top:18px; padding:16px; border-radius:21px; background:var(--surface); border:1px solid var(--border); }
.photo-review .secondary { grid-column:1/-1; }
.photo-review h3 { margin:5px 0; }
.photo-review p { margin:0; color:var(--muted); font-size:12px; }
.photo-review span { display:block; margin-top:9px; color:#f0ce96; font-size:11px; font-weight:800; }
.photo-icon { width:48px; height:48px; display:grid; place-items:center; border-radius:15px; background:rgba(243,161,132,.13); color:var(--accent-2); font-size:23px; }
.coach-entry { border-color:rgba(227,181,110,.35); background:linear-gradient(145deg,rgba(227,181,110,.12),var(--surface)); }
.staff-identity { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-bottom:12px; }
.staff-identity span { padding:13px 14px; border:1px solid var(--border); border-radius:17px; background:var(--surface); }
.staff-identity small,.staff-identity b { display:block; }
.staff-identity small { margin-bottom:4px; color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.06em; }
.staff-identity b { color:var(--accent-2); font-size:12px; overflow-wrap:anywhere; }
.participant-preview-card { display:grid; gap:13px; margin-top:13px; padding:17px; border:1px solid rgba(174,147,214,.26); border-radius:21px; background:linear-gradient(145deg,rgba(174,147,214,.13),var(--surface)); }
.participant-preview-card h3 { margin-top:5px; }
.participant-preview-card p { margin:5px 0 0; color:var(--muted); font-size:11px; }
.preview-controls { display:grid; grid-template-columns:1fr 90px; gap:9px; }
.preview-controls label { display:grid; gap:6px; color:var(--muted); font-size:10px; font-weight:800; }
.preview-controls select,.preview-controls input { width:100%; min-height:43px; padding:10px 11px; border:1px solid var(--border); border-radius:13px; background:var(--surface-2); color:var(--text); }
.staff-management { margin-top:13px; border:1px solid var(--border); border-radius:21px; background:var(--surface); overflow:hidden; }
.staff-management summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px; cursor:pointer; list-style:none; }
.staff-management summary::-webkit-details-marker { display:none; }
.staff-management summary b,.staff-management summary small { display:block; }
.staff-management summary small { margin-top:3px; color:var(--muted); font-size:10px; }
.staff-management > p { margin:0; padding:0 16px 16px; color:var(--muted); font-size:10px; }
.staff-list { display:grid; gap:8px; padding:0 12px 12px; }
.staff-row { display:grid; grid-template-columns:minmax(0,1fr) 130px auto; align-items:center; gap:8px; padding:10px; border-radius:15px; background:var(--surface-2); }
.staff-row span,.staff-row b,.staff-row small { min-width:0; display:block; }
.staff-row small { margin-top:3px; color:var(--muted); font-size:9px; overflow:hidden; text-overflow:ellipsis; }
.staff-row select { min-width:0; padding:9px 7px; border:1px solid var(--border); border-radius:11px; background:var(--surface); color:var(--text); font-size:10px; }
.staff-row button { padding:9px; border:0; border-radius:11px; background:rgba(243,161,132,.16); color:var(--accent-2); font-size:10px; font-weight:850; cursor:pointer; }
.preview-banner { position:sticky; z-index:19; top:max(8px,env(safe-area-inset-top)); display:flex; align-items:center; justify-content:space-between; gap:12px; margin:-5px 0 14px; padding:10px 12px; border:1px solid rgba(174,147,214,.34); border-radius:16px; background:rgba(56,43,67,.96); box-shadow:var(--shadow); }
.preview-banner span,.preview-banner b,.preview-banner small { display:block; }
.preview-banner small { margin-top:2px; color:#d7c4f0; font-size:10px; }
.preview-banner button { min-height:36px; padding:8px 11px; border:0; border-radius:11px; background:#d7c4f0; color:#2a2033; font-weight:850; cursor:pointer; }
.participant-preview-mode .bottom-nav { border-top-color:rgba(174,147,214,.32); }
.coach-topbar { align-items:center; }
.coach-overview { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.coach-overview article { padding:15px 9px; border-radius:19px; border:1px solid var(--border); background:var(--surface); text-align:center; }
.coach-overview strong,.coach-overview span { display:block; }
.coach-overview strong { font-size:27px; color:var(--accent-2); }
.coach-overview span { margin-top:4px; color:var(--muted); font-size:10px; }
.coach-alert { display:grid; grid-template-columns:42px 1fr; gap:12px; align-items:center; margin-top:13px; padding:15px; border-radius:20px; background:rgba(227,181,110,.12); border:1px solid rgba(227,181,110,.24); }
.coach-alert > span { width:42px; height:42px; display:grid; place-items:center; border-radius:14px; background:rgba(227,181,110,.13); color:#f0ce96; font-size:22px; }
.coach-alert p { margin:4px 0 0; color:var(--muted); font-size:12px; }
.cohort-control { display:grid; gap:13px; margin-top:13px; padding:16px; border-radius:21px; background:linear-gradient(145deg,rgba(136,181,154,.13),var(--surface)); border:1px solid rgba(136,181,154,.22); }
.cohort-control h3 { margin-top:5px; }
.cohort-control p { margin:5px 0 0; color:var(--muted); font-size:11px; }
.cohort-control label { display:grid; gap:7px; color:var(--muted); font-size:11px; font-weight:750; }
.cohort-control input { width:100%; padding:12px; border:1px solid var(--border); border-radius:13px; background:var(--surface-2); color:var(--text); }
.participant-list { display:grid; gap:10px; }
.participant-card { width:100%; display:grid; grid-template-columns:48px minmax(0,1fr); gap:12px; padding:14px; border:1px solid var(--border); border-radius:20px; background:var(--surface); color:var(--text); text-align:left; cursor:pointer; }
.participant-avatar { width:48px; height:48px; display:grid; place-items:center; border-radius:16px; background:linear-gradient(145deg,var(--accent),#865748); color:#2a1813; font-weight:900; }
.participant-avatar.large { width:52px; height:52px; border-radius:17px; }
.participant-main { min-width:0; }
.participant-title { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.participant-title em { color:var(--accent-2); font-style:normal; font-size:10px; font-weight:800; }
.participant-main small,.participant-meta { display:block; color:var(--muted); font-size:11px; margin-top:4px; }
.participant-meta { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.coach-status { grid-column:2; justify-self:start; display:inline-block; padding:5px 8px; border-radius:999px; font-size:10px; font-weight:850; }
.coach-status.attention { background:rgba(227,181,110,.15); color:#f0ce96; }
.coach-status.review { background:rgba(174,147,214,.16); color:#d7c4f0; }
.coach-status.ok { background:rgba(136,181,154,.14); color:#bce0c9; }
.coach-back { padding:0 0 5px; border:0; background:transparent; color:var(--accent-2); cursor:pointer; }
.profile-summary { display:grid; gap:13px; padding:18px; border:1px solid var(--border); border-radius:23px; background:linear-gradient(145deg,rgba(243,161,132,.13),var(--surface)); }
.profile-summary h2 { margin:7px 0; font-size:22px; }
.profile-summary p { margin:0; color:var(--muted); font-size:12px; }
.profile-summary .coach-status { grid-column:auto; }
.coach-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-top:12px; }
.coach-metrics article { padding:13px 8px; text-align:center; border:1px solid var(--border); border-radius:18px; background:var(--surface); }
.coach-metrics small,.coach-metrics strong,.coach-metrics span { display:block; }
.coach-metrics small,.coach-metrics span { color:var(--muted); font-size:10px; }
.coach-metrics strong { margin:3px 0; color:var(--accent-2); font-size:21px; }
.coach-nutrition,.photo-checkpoint { padding:17px; border:1px solid var(--border); border-radius:22px; background:var(--surface); }
.coach-calories { text-align:center; margin-bottom:14px; }
.coach-calories small,.coach-calories strong,.coach-calories span { display:block; }
.coach-calories small,.coach-calories span { color:var(--muted); font-size:11px; }
.coach-calories strong { margin:5px 0; color:var(--accent-2); font-size:29px; }
.coach-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:14px; }
.coach-actions .primary,.coach-actions .secondary { min-height:46px; padding:10px; font-size:12px; }
.coach-macro-editor { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:15px; padding-top:15px; border-top:1px solid var(--border); }
.coach-macro-editor label,.checkpoint-form label { color:var(--muted); font-size:11px; font-weight:750; }
.coach-macro-editor input,.checkpoint-form input,.checkpoint-form select { width:100%; margin-top:7px; padding:12px; border:1px solid var(--border); border-radius:13px; background:var(--surface-2); color:var(--text); }
.photo-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; }
.photo-slot { aspect-ratio:.75; display:grid; place-items:center; align-content:center; gap:7px; border-radius:15px; background:linear-gradient(145deg,#5b4037,#2a211e); border:1px solid var(--border); }
.photo-slot span { color:var(--accent-2); font-size:21px; }
.photo-slot small { color:var(--muted); font-size:8px; }
.photo-slot.empty-slot { border-style:dashed; background:rgba(255,255,255,.025); }
.photo-slot.has-photo { position:relative; overflow:hidden; background:#1b1513; }
.photo-slot.has-photo img { width:100%; height:100%; object-fit:cover; }
.photo-slot.has-photo small { position:absolute; left:5px; right:5px; bottom:5px; padding:4px; border-radius:8px; background:rgba(20,14,12,.76); color:#fff; text-align:center; }
.photo-info { margin:14px 0; }
.photo-info p { margin:5px 0 0; color:var(--muted); font-size:11px; }
.checkpoint-form { display:grid; gap:14px; }
.checkpoint-types { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.upload-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.upload-card { position:relative; min-height:132px; display:grid; place-items:center; align-content:center; gap:6px; padding:13px; border:1px dashed rgba(246,197,173,.32); border-radius:19px; background:var(--surface); text-align:center; cursor:pointer; overflow:hidden; }
.upload-card input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.upload-card > span { width:38px; height:38px; display:grid; place-items:center; border-radius:13px; background:rgba(243,161,132,.14); color:var(--accent-2); font-size:23px; }
.upload-card b { color:var(--text); font-size:13px; }
.upload-card small { width:100%; color:var(--muted); font-size:9px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.upload-card.ready { border-style:solid; border-color:var(--good); background:rgba(136,181,154,.08); }
.checkpoint-form .input-grid { margin-top:0; }
.checkpoint-form textarea { margin-top:7px; }
.privacy-note { padding:15px; border-radius:18px; background:rgba(136,181,154,.1); border:1px solid rgba(136,181,154,.2); }
.privacy-note b { font-size:12px; color:#bce0c9; }
.privacy-note p { margin:6px 0 0; color:var(--muted); font-size:11px; }
.waiting-room { min-height:calc(100vh - 48px); display:flex; flex-direction:column; justify-content:center; gap:20px; }
.waiting-room h1 { margin-top:8px; font-size:34px; }
.waiting-room p { color:var(--muted); }
.waiting-mark { width:76px; height:76px; display:grid; place-items:center; border-radius:26px; background:linear-gradient(145deg,var(--good),#557966); color:#102218; font-size:34px; font-weight:900; box-shadow:var(--shadow); }
.waiting-status { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.waiting-status span { padding:16px; border:1px solid var(--border); border-radius:19px; background:var(--surface); }
.waiting-status small,.waiting-status b { display:block; }
.waiting-status small { color:var(--muted); font-size:10px; }
.waiting-status b { margin-top:5px; color:var(--accent-2); }
.coach-checkpoint-tabs { margin-bottom:9px; }
.coach-photo-grid .photo-slot { min-height:126px; }
.checkpoint-loading { min-height:210px; display:grid; place-items:center; color:var(--muted); text-align:center; }
.measurement-summary { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; margin:14px 0; }
.measurement-summary span { padding:10px 7px; border-radius:13px; background:var(--surface-2); text-align:center; }
.measurement-summary small,.measurement-summary b { display:block; }
.measurement-summary small { color:var(--muted); font-size:9px; }
.measurement-summary b { margin-top:4px; color:var(--accent-2); font-size:12px; }
.measurement-summary p { grid-column:1/-1; color:var(--muted); font-size:12px; }
.participant-note { padding:12px; border-radius:14px; background:rgba(243,161,132,.09); color:var(--muted); font-size:11px; }
.review-field { display:grid; gap:8px; margin:14px 0; color:var(--muted); font-size:11px; font-weight:750; }
.review-field textarea { min-height:105px; }
.report-row { display:grid; grid-template-columns:52px 1fr auto; gap:11px; align-items:center; padding:14px; border:1px solid var(--border); border-radius:18px; background:var(--surface); }
.report-row > span,.report-row small { color:var(--muted); font-size:10px; }
.report-row small { display:block; margin-top:4px; }
.report-row em { color:#bce0c9; font-style:normal; font-weight:900; }
.subscription-summary { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding:20px; border:1px solid var(--border); border-radius:24px; background:linear-gradient(145deg,rgba(243,161,132,.13),var(--surface)); }
.subscription-summary h2 { margin:7px 0 5px; font-size:28px; }
.subscription-summary p { margin:0; color:var(--muted); }
.subscription-status { flex:0 0 auto; padding:7px 9px; border-radius:999px; font-size:9px; font-weight:850; text-align:center; }
.subscription-status.ok { background:rgba(136,181,154,.14); color:#bce0c9; }
.subscription-status.attention { background:rgba(227,181,110,.15); color:#f0ce96; }
.subscription-facts { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:12px; }
.subscription-facts article { padding:15px; border:1px solid var(--border); border-radius:18px; background:var(--surface); }
.subscription-facts small,.subscription-facts b { display:block; }
.subscription-facts small { color:var(--muted); font-size:10px; }
.subscription-facts b { margin-top:5px; color:var(--accent-2); font-size:13px; }
.renewal-management { margin-top:28px; color:var(--muted); font-size:11px; }
.renewal-management summary { cursor:pointer; padding:12px 0; list-style:none; border-top:1px solid var(--border); }
.renewal-management summary::-webkit-details-marker { display:none; }
.renewal-management > div { display:grid; gap:8px; padding-top:5px; }
.text-action { width:100%; padding:11px; border:0; background:transparent; color:var(--muted); font-size:11px; cursor:pointer; }
.cancellation-panel { margin-top:18px; padding:18px; border:1px solid var(--border); border-radius:22px; background:var(--surface); }
.cancellation-panel.danger { border-color:rgba(227,181,110,.3); }
.cancellation-panel h3 { margin:7px 0 8px; font-size:20px; }
.cancellation-panel p { margin:0 0 15px; color:var(--muted); font-size:12px; line-height:1.55; }
.retention-actions { display:grid; gap:8px; }
@media (min-width:700px) { body { padding:30px 0; } .app { border:1px solid var(--border); border-radius:34px 34px 0 0; min-height:880px; background:rgba(28,21,19,.78); } }
@media (max-width:430px) { .staff-row { grid-template-columns:minmax(0,1fr) 116px; } .staff-row button { grid-column:1/-1; } }
@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; transition:none!important; } }
