@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme:dark;
  --bg:#0c0c0e; --sidebar:#121214; --surface:#161618; --surface-soft:#1c1c20; --surface-hover:#26262b;
  --ink:#f6f3ec; --muted:#b3aa9c; --subtle:#8a8276; --line:#3a342c;
  --accent:#e0b15a; --accent-ink:#1a1408; --accent-soft:#3a301c;
  --success:#9fd86a; --success-soft:#1c2a18; --success-line:#6f9a45;
  --danger:#ff8f7a; --danger-soft:#3a1f1c;
  --task:#ff4d57; --task-soft:#33181c; --task-ink:#fff;
  --coach:#e0b15a; --coach-soft:#2a2418; --coach-ink:#1a1408;
  --photo-bg:#0f1318;
  --shadow:0 22px 60px #00000066, 0 1px 0 #e0b15a14 inset;
  --glow:0 0 0 1px #e0b15a22, 0 18px 40px #00000055;
  --font:'Inter',system-ui,sans-serif;
  --display:'Inter',system-ui,sans-serif;
  --radius:16px;
  --figure:#3a342c; --muscle-idle:#6e6558; --muscle-warm:#e0b15a;
}
:root[data-theme='light'] {
  color-scheme:light;
  --bg:#f7f6f4; --sidebar:#ffffff; --surface:#ffffff; --surface-soft:#f4f2ee; --surface-hover:#ece8e0;
  --ink:#171614; --muted:#5e584e; --subtle:#8a8174; --line:#e4ddd0;
  --accent:#b88934; --accent-ink:#1a1408; --accent-soft:#f8f1df;
  --success:#3d6b1f; --success-soft:#e4f0d7; --success-line:#6a9444;
  --danger:#b33a28; --danger-soft:#ffe6e0;
  --task:#c62828; --task-soft:#fdecea; --task-ink:#fff;
  --coach:#b88934; --coach-soft:#f8f1df; --coach-ink:#1a1408;
  --shadow:0 18px 40px #1a140c1a, 0 1px 0 #ffffffaa inset;
  --glow:0 0 0 1px #1a140c0d, 0 14px 30px #1a140c14;
  --figure:#c5d0da; --muscle-idle:#8fa0b0; --muscle-warm:#e08962;
}
* {box-sizing:border-box}
html {scroll-behavior:smooth}
body {
  margin:0; color:var(--ink); font:14.5px/1.55 var(--font); -webkit-font-smoothing:antialiased;
  background:
    radial-gradient(980px 520px at 88% -12%, #e0b15a28, transparent 58%),
    radial-gradient(720px 480px at 8% 0%, #e0b15a10, transparent 46%),
    linear-gradient(180deg, #14120e 0%, var(--bg) 42%, #090908 100%);
  min-height:100dvh;
}
body::before {
  content:''; position:fixed; inset:0; pointer-events:none; z-index:0; opacity:.045;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  background-size:180px 180px;
}
body > * {position:relative; z-index:1}
@keyframes rise {from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes pop {from{transform:scale(.92)}to{transform:scale(1)}}
@keyframes sheen {0%{background-position:200% 0}100%{background-position:-200% 0}}
button,input,select,textarea {font:inherit}
button,a,input,select,textarea {-webkit-tap-highlight-color:transparent}
button {border:0;background:none;color:inherit;cursor:pointer}
button:disabled {cursor:wait;opacity:.6}
a {color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {outline:2px solid var(--accent);outline-offset:4px}
h1,h2,h3,p {margin:0}
h1,h2,h3 {line-height:1.15}
h1 {font:800 40px/1.05 var(--display);letter-spacing:-.03em;text-transform:uppercase}
h2 {font:700 22px/1.1 var(--display);letter-spacing:-.02em;text-transform:uppercase}
h3 {font:600 15px/1.25 var(--font)}
small {font-size:12px}
::selection {background:var(--accent);color:var(--accent-ink)}
.icon {width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.icon-definitions {position:absolute;width:0;height:0;overflow:hidden}
.muted,.caption {color:var(--muted)}
.caption {font-size:11px}
.eyebrow {font-size:11px;font-weight:700;line-height:1.4;letter-spacing:.14em;display:block;color:var(--accent);margin-bottom:8px;text-transform:uppercase}
.app-shell {display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}
.sidebar {
  position:sticky;top:0;height:100dvh;padding:28px 18px 20px;display:flex;flex-direction:column;
  border-right:1px solid var(--line);
  background:
    radial-gradient(180px 120px at 20% 0%, #e0b15a18, transparent 70%),
    linear-gradient(180deg, #16140f 0%, var(--sidebar) 40%, #0e0e10 100%);
  box-shadow:inset -1px 0 0 #e0b15a14;
}
.brand {display:flex;align-items:center;gap:12px;min-width:0;font:800 20px/1 var(--display);letter-spacing:-.03em;text-transform:uppercase}
.brand-lockup {display:flex;flex-direction:column;min-width:0;line-height:1}
.brand-name {font:800 20px/1 var(--display);letter-spacing:-.03em}
.brand-elite {margin-top:4px;font:800 11px/1 var(--display);letter-spacing:.18em;color:var(--accent)}
.brand-mark {
  flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:linear-gradient(160deg,#f6d98a,#e0b15a 55%,#b88934);
  color:#1a1408;display:grid;place-items:center;transform:none;
  box-shadow:0 10px 24px #e0b15a44, inset 0 1px 0 #ffffff88;
}
.brand > span:last-child {min-width:0;overflow:visible;white-space:nowrap}
.brand-mark .icon {width:22px;height:22px;fill:currentColor;stroke:none;transform:none}
.brand-period {color:var(--accent)}
.sidebar-caption {font-size:10px;letter-spacing:.16em;color:var(--subtle);margin:16px 0 34px;display:flex;align-items:center;gap:8px;white-space:nowrap;text-transform:uppercase;font-weight:700}
.sidebar-caption>span {width:8px;height:2px;background:var(--accent);box-shadow:0 0 10px #e0b15a88}
.navigation {display:flex;flex-direction:column;gap:6px}
.nav-item {
  position:relative;display:flex;align-items:center;gap:12px;width:100%;padding:13px 14px;border:1px solid transparent;
  text-align:left;border-radius:12px;color:var(--muted);font-size:13px;font-weight:600;
  transition:background .2s,color .2s,border-color .2s,transform .2s;
}
.nav-item:hover {background:var(--surface-soft);color:var(--ink);transform:translateX(2px)}
.nav-item.active {
  background:linear-gradient(180deg,#f2c56a,#d4a24a);
  color:#1a1408;font-weight:800;border-color:transparent;
  box-shadow:0 8px 18px #e0b15a33;
}
.nav-item .icon {width:19px;height:19px}
.nav-dot {display:none}
.sidebar-bottom {margin-top:auto;padding-top:24px}
.sidebar-message {
  position:relative;border:1px solid #ffffff12;border-radius:16px;padding:20px 16px;margin-bottom:18px;overflow:hidden;
  background:
    radial-gradient(120px 80px at 100% 0%, #e0b15a33, transparent 70%),
    linear-gradient(160deg, #1e1c18, #12110e);
  box-shadow:var(--glow);
}
.sidebar-message>.icon {color:var(--accent);width:28px;height:28px;margin-bottom:12px}
.sidebar-message .eyebrow {font-size:10px;letter-spacing:.16em}
.sidebar-message p {position:relative;z-index:1;font:400 22px/1.05 var(--display);letter-spacing:0;margin-bottom:12px;text-transform:uppercase;overflow-wrap:anywhere}
.sidebar-message strong {display:block;font-weight:400;font-size:15px;letter-spacing:0;line-height:1.05;color:var(--accent)}
.sidebar-message .caption {font-size:11px}
.sidebar-stripes {position:absolute;right:-28px;top:8px;width:48px;height:64px;background:repeating-linear-gradient(130deg,transparent 0 7px,#e0b15a22 7px 10px,transparent 10px 16px);opacity:.9;pointer-events:none}
.profile-button {border-top:1px solid var(--line);padding:20px 0 0;display:flex;align-items:center;width:100%;gap:10px;text-align:left}
.avatar {width:38px;height:38px;border-radius:12px;background:linear-gradient(160deg,#2c2820,var(--surface-hover));border:1px solid #ffffff14;display:grid;place-items:center;font-size:14px;font-weight:700;flex-shrink:0;overflow:hidden;box-shadow:0 6px 14px #00000044}.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.nav-badge{position:absolute;top:8px;right:10px;min-width:16px;height:16px;padding:0 4px;border-radius:99px;background:var(--accent);color:var(--accent-ink);font-size:10px;line-height:16px;text-align:center}
.avatar-picker{position:relative;cursor:pointer;display:inline-grid}
.avatar-file{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.avatar-badge{
  position:absolute;right:-2px;bottom:-2px;width:28px;height:28px;border-radius:9px;
  display:grid;place-items:center;pointer-events:none;
  background:linear-gradient(160deg,#f2c56a,var(--accent));color:var(--accent-ink);
  border:2px solid var(--surface);box-shadow:0 6px 14px #00000055;
}
.avatar-badge .icon{width:14px;height:14px}
.profile-button strong {display:block;font-size:12px;font-weight:550;max-width:115px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-button small {display:block;font-size:9px;color:var(--muted);margin-top:3px}
.profile-button>.icon {width:14px;height:14px;margin-left:auto;color:var(--subtle)}
.workspace {padding:0 42px;min-width:0;max-width:1580px;width:100%;margin:0 auto}
.topbar {height:78px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff0d;gap:18px;backdrop-filter:blur(8px)}
.topbar-label {font-size:11px;letter-spacing:.18em;color:var(--subtle);display:flex;align-items:center;gap:10px;font-weight:700;text-transform:uppercase}
.topbar-label::before {content:'';width:14px;height:10px;border-left:3px solid var(--accent);border-right:3px solid var(--accent);transform:skew(-18deg);box-shadow:0 0 12px #e0b15a66}
.topbar-actions {display:flex;align-items:center;gap:14px}
.topbar-date {color:var(--muted);font-size:12px;font-weight:600}
.theme-toggle {display:flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:8px 11px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--muted);font-size:10px;font-weight:700}
.theme-toggle:hover {color:var(--accent);border-color:var(--accent)}
.theme-toggle .icon {width:16px;height:16px}
.mobile-admin{display:none}
.lang-switch {display:flex;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface)}
.lang-button {min-height:36px;padding:0 11px;font-size:11px;font-weight:800;letter-spacing:.05em;color:var(--muted);background:transparent}
.lang-button.active {background:linear-gradient(180deg,#e8bc62,#d4a24a);color:var(--accent-ink)}
.video-note {margin:0 0 16px;font-size:13px;line-height:1.55;color:var(--muted)}
.place-chips {margin-top:-4px}
.mobile-profile {display:none}
main {padding:28px 0;min-height:calc(100vh - 158px);animation:rise .35s ease both}
.page-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.page-heading .eyebrow {color:var(--accent);font-size:11px;letter-spacing:.14em}
.page-heading h1 {font-size:clamp(28px,3.2vw,40px);line-height:1.05}
.page-heading p {color:var(--muted);margin-top:6px;font-size:14px;max-width:520px;line-height:1.45}
.hero {
  position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(120px,220px);gap:8px 18px;align-items:center;
  border:1px solid #e0b15a33;border-radius:18px;margin-bottom:18px;overflow:hidden;color:#f6f3ec;
  background:
    radial-gradient(420px 180px at 92% 0%, #e0b15a33, transparent 60%),
    linear-gradient(135deg, #1c1b18 0%, #12110f 55%, #100e0c 100%);
  box-shadow:var(--glow);
}
.hero-copy {padding:22px 0 22px 26px;z-index:1;min-width:0}
.hero .eyebrow {color:#c4ccd4;font-size:11px;letter-spacing:.16em;display:flex;align-items:center;gap:8px;font-weight:700}
.hero .eyebrow::before {content:'';width:8px;height:8px;background:var(--accent);transform:skew(-15deg);box-shadow:0 0 12px #e0b15a88}
.hero h1 {font:800 clamp(28px,3vw,40px)/1.05 var(--display);letter-spacing:-.03em;text-transform:uppercase;max-width:16ch}
.hero h1 span {color:var(--accent);text-shadow:0 0 24px #e0b15a55}
.hero p {color:#aeb6bf;font-size:13px;line-height:1.5;margin-top:10px;max-width:380px}
.diary-count {display:flex;flex-direction:column;justify-content:center;min-width:132px;padding:16px 18px;border-left:1px solid #ffffff12;border-right:1px solid #ffffff12;background:#ffffff06}
.diary-count strong {font:400 48px/.9 var(--display);color:var(--accent);font-variant-numeric:tabular-nums;letter-spacing:.02em;text-shadow:0 0 20px #e0b15a44}
.diary-count span {margin-top:6px;font-size:13px;font-weight:700;color:#f6f7f8}
.diary-count small {margin-top:2px;font-size:12px;color:#aeb6bf}
.hero-art {position:relative;align-self:end;min-width:0;padding:8px 8px 0 0}
.hero-art img {display:block;width:100%;height:118px;object-fit:contain;object-position:right bottom;filter:drop-shadow(0 14px 22px #0008)}
.hero-sticker {position:absolute;right:22px;bottom:20px;display:flex;align-items:center;gap:6px;border:1px solid #e0b15a55;border-radius:999px;background:#1a120ecc;color:#f0d7a4;padding:8px 12px;font-size:9px;font-weight:800;letter-spacing:.12em;transform:rotate(-6deg);backdrop-filter:blur(8px);box-shadow:0 8px 20px #0006}
.hero-sticker .icon {width:12px;height:12px}
.training-sequence {grid-column:1/-1;border-top:1px solid #ffffff10;display:grid;grid-template-columns:repeat(3,1fr);background:#00000033}
.training-sequence>span {display:flex;justify-content:center;align-items:center;gap:9px;padding:13px 8px;color:#b9c2ca;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;border-right:1px solid #ffffff0d}
.training-sequence>span:last-child {border-right:0}
.training-sequence b {color:var(--accent);font:400 20px/1 var(--display)}
.stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:25px}
.stats.single {grid-template-columns:minmax(160px,240px)}
.catalog-filters {display:flex;flex-direction:column;gap:8px;margin:0 0 14px;min-width:0;max-width:100%}
.filter-line {display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;width:100%}
.filter-name {flex:0 0 78px;font-size:12px;color:var(--muted);font-weight:650}
.chips-scroll {display:flex;align-items:center;gap:4px;min-width:0;width:100%}
.chips-nudge {flex:none;width:34px;height:34px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-size:18px;line-height:1}
.filter-line .chips {flex:1;width:auto;max-width:100%;min-width:0;margin:0;padding:0 2px;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;touch-action:pan-x;-webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory;scrollbar-width:none}
.filter-line .chips::-webkit-scrollbar {display:none}
.filter-line .gear-chips {flex-wrap:nowrap;overflow-x:auto}
.filter-line .chip {flex:none;scroll-snap-align:start}
.catalog-section {grid-column:1/-1;margin:8px 0 0;font-size:13px;font-weight:750;letter-spacing:.04em;color:var(--muted)}
.chip:focus-visible {outline:2px solid var(--accent);outline-offset:1px}
.filter-line .button {flex:none;min-height:36px;padding:8px 12px;font-size:13px}
.gear-panel {margin:2px 0 18px}
.gear-panel .caption {display:block;max-width:720px;margin:6px 0 12px;line-height:1.55}
.gear-panel .button {margin-top:8px}
.progress-stage {display:grid;grid-template-columns:minmax(150px,200px) minmax(0,1fr);gap:14px;margin-bottom:22px}
.progress-count {border:1px solid #ffffff12;border-radius:16px;padding:16px 18px;background:linear-gradient(180deg,#ffffff08,transparent 40%),linear-gradient(165deg,#1c1b18,var(--surface));display:flex;flex-direction:column;justify-content:flex-end;min-height:0;box-shadow:var(--glow)}
.progress-count strong {font:400 52px/.9 var(--display);color:var(--accent);letter-spacing:.02em;text-shadow:0 0 22px #e0b15a44}
.progress-count span {margin-top:8px;color:var(--muted);font-size:12px;font-weight:650}
.pr-strip {display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.pr-card {border:1px solid #ffffff10;border-radius:14px;padding:14px;background:linear-gradient(180deg,#ffffff06,transparent 50%),var(--surface);min-height:0;display:flex;flex-direction:column;box-shadow:0 10px 24px #00000028}
.pr-card .caption {margin-bottom:auto}
.pr-card b {display:block;margin:14px 0 4px;font:400 34px/1 var(--display);letter-spacing:.02em}
.pr-card small {color:var(--muted);font-size:11px}
.stat {padding:19px 21px 18px;background:linear-gradient(180deg,#ffffff08,transparent 40%),linear-gradient(165deg,#1c1b18,var(--surface));border:1px solid #ffffff10;border-radius:14px;position:relative;overflow:hidden;box-shadow:var(--glow)}
.stat::after {content:'';position:absolute;top:0;right:0;width:28px;height:3px;background:var(--subtle);opacity:.6}
.stat:first-child::after {background:var(--accent);opacity:1;width:48px;box-shadow:0 0 12px #e0b15a88}
.stat-label {font-size:11px;color:var(--muted);display:flex;align-items:center;gap:8px;font-weight:650}
.stat-label>.icon {width:15px;height:15px;color:var(--subtle)}
.stat:first-child .stat-label>.icon {color:var(--accent)}
.stat-value {font:400 42px/1.1 var(--display);margin-top:10px;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.stat-value small {font:600 11px var(--font);color:var(--muted);margin-left:7px}
.stat-arrow {position:absolute;right:18px;top:21px;color:var(--subtle);width:15px;height:15px}
.diary-grid {display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:22px;align-items:start}
.left-column {display:grid;gap:20px}
.card {
  background:
    radial-gradient(420px 120px at 100% 0%, #e0b15a14, transparent 55%),
    linear-gradient(165deg, #1c1b18, var(--surface) 58%);
  border:1px solid #e0b15a2e; border-radius:var(--radius); overflow:hidden;
  box-shadow:var(--glow);
}
.calendar-card {padding:22px 20px 16px}
.section-top {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.section-top h2 {font:800 26px/1.05 var(--display);letter-spacing:-.03em;text-transform:uppercase}
.section-top .text-button {font-size:10px}
.section-top>.icon {width:17px;height:17px;color:var(--subtle)}
.calendar-controls {display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:4px}
.month-name {font-size:14px;font-weight:700;text-transform:capitalize;padding:0;text-align:left}
.month-name:hover {color:var(--accent)}
.month-nav {display:flex;gap:5px;align-items:center}
.icon-button {width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft);flex-shrink:0;transition:transform .15s,border-color .15s,color .15s}
.icon-button:hover {background:var(--surface-hover);color:var(--accent);border-color:#e0b15a55;transform:translateY(-1px)}
.icon-button .icon {width:16px;height:16px}
.month-today {font-size:11px;color:var(--accent);margin-right:4px;padding:0;font-weight:700}
.weekdays,.calendar-days {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center}
.weekdays {margin-bottom:10px;color:var(--subtle);font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.calendar-days {row-gap:8px}
.day {
  width:34px;height:34px;justify-self:center;border-radius:50%;font-size:12px;font-weight:650;
  position:relative;font-variant-numeric:tabular-nums;padding:0;display:grid;place-items:center;
  transition:transform .15s,background .15s,box-shadow .15s,color .15s;
}
.day:hover {background:var(--surface-hover);transform:scale(1.06)}
.day.outside {color:var(--subtle);opacity:.45}
.day.today {font-weight:800;box-shadow:inset 0 0 0 1px #ffffff28}
.day.completed {box-shadow:inset 0 0 0 1.5px var(--success-line);background:linear-gradient(180deg,#2a3d22,var(--success-soft));color:var(--success)}
.day.planned:not(.selected) {box-shadow:inset 0 0 0 1.5px #d7a15a;color:#f0c48a}
.day.from-program{border-radius:50%}
.day.from-program:not(.selected):not(.completed):not(.assigned){color:#c9fff8;background:color-mix(in srgb,#1f8f8f 34%, transparent);box-shadow:inset 0 0 0 1.5px #3ec6c6}
.day.selected.from-program{border-radius:50%}
.legend-circle.program{border-radius:50%;border-color:#3ec6c6;background:#3ec6c640}
.badge.program{color:var(--e-gold-ink);background:var(--e-gold)}
.program-day-mark{margin:0 0 8px;color:var(--e-gold);font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.day.live:not(.selected) {box-shadow:inset 0 0 0 1.5px var(--accent);color:#f0d7a4}
.day.missed:not(.selected) {box-shadow:inset 0 0 0 1.5px #8a93a0;color:var(--muted)}
.day.selected {background:linear-gradient(160deg,#f2c56a,#c9963a);color:var(--accent-ink);font-weight:800;box-shadow:0 8px 18px #e0b15a55;animation:pop .18s ease}
.day.selected.completed {outline:2px solid var(--success);outline-offset:3px}
.day.assigned:not(.selected) {border-radius:50%;box-shadow:inset 0 0 0 1.5px #e07a9a;background:color-mix(in srgb,#e07a9a 28%, transparent);color:#ffd5e2}
.day.completed.assigned:not(.selected) {background:linear-gradient(180deg,#2a3d22,var(--success-soft));color:var(--success);box-shadow:inset 0 0 0 1.5px var(--task)}
.task-done-mark {margin-left:auto;color:var(--success);display:grid;place-items:center;flex:none}
.day.selected.assigned {background:linear-gradient(160deg,#ff6d74,#e22f3a);color:var(--task-ink);box-shadow:0 8px 18px #ff4d5755;outline:none}
.day.selected.completed:not(.assigned) {background:linear-gradient(160deg,#8fbf55,#5f8a35);color:#fff;outline:none;box-shadow:0 8px 18px #6f9a4555}
.legend-circle.assigned {border-radius:50%;border-color:#e07a9a;background:#e07a9a40}
.coach-assignment {margin:0 0 18px;padding:14px;border:1px solid var(--coach);border-radius:12px;background:var(--coach-soft)}
.task-picks {display:grid;gap:8px;margin:10px 0 12px}
.task-pick {
  display:flex;align-items:flex-start;gap:12px;width:100%;text-align:left;
  padding:10px 12px;border-radius:12px;border:1px solid #ffffff14;
  background:linear-gradient(180deg,#ffffff08,transparent 70%),var(--surface);
  color:var(--ink);
}
.task-pick.is-focus {border-color:var(--accent);box-shadow:0 0 0 1px #e0b15a44,0 10px 22px #00000044}
.task-pick.is-done {opacity:.72}
.task-pick:disabled {cursor:default}
.task-pick-num {
  width:28px;height:28px;border-radius:9px;flex:none;display:grid;place-items:center;
  background:var(--accent-soft);color:var(--accent);font:600 13px/1 var(--font);
}
.task-pick.is-done .task-pick-num {background:var(--success-soft);color:var(--success)}
.task-pick-num .icon {width:15px;height:15px}
.task-pick-copy {min-width:0;flex:1}
.task-pick-copy strong {display:block;font-size:14px;font-weight:700;line-height:1.3}
.task-pick-copy small {display:block;margin-top:2px;color:var(--muted);font-size:12px;font-weight:600}
.task-rx{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.task-rx span{
  display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;
  background:#ffffff0d;border:1px solid #ffffff16;color:var(--ink);font-size:12px;font-weight:700;
}
.task-rx span:first-child{color:var(--accent);border-color:#e0b15a55;background:var(--accent-soft)}
.task-rx span.is-rest{color:var(--muted);font-weight:650}
.rx-table{margin:4px 14px 10px;border:1px solid #ffffff12;border-radius:12px;overflow:hidden}
.rx-head,.rx-row{display:grid;grid-template-columns:88px 1fr 1fr;gap:8px;padding:9px 12px}
.rx-head{color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;background:#ffffff08}
.rx-row{border-top:1px solid #ffffff10;font-size:14px;font-weight:750}
.rx-row span:first-child{color:var(--accent)}
.task-focus-card .assigned-rest{padding:2px 14px 12px}
.coach-log {margin:0 0 8px;padding:14px 14px 2px;border:1px solid var(--coach);border-radius:12px;background:var(--coach-soft)}
.coach-log .saved-title {margin-top:0}
.coach-assignment-kicker {margin:0 0 6px;color:var(--coach);font-size:11px;font-weight:650;letter-spacing:.4px;text-transform:uppercase}
.exercise-entry>.assigned-rest {margin:0;padding:8px 14px 0;color:var(--muted);font-size:13px;font-weight:650}
.set-summary {margin:0;padding:12px 14px 4px;font-size:15px;font-weight:700;letter-spacing:-.01em}
.exercise-done {margin:4px 14px 14px auto}
.exercise-done.is-done {display:flex;align-items:center;gap:6px;width:fit-content;margin-left:auto;color:var(--success);font-weight:700}
.entry-rest {margin:8px 14px 0}
.progress-pair {display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
.progress-pair .progress-card,.record-card {padding:18px 18px 12px}
.progress-pair h2,.record-card h2 {font:500 28px/1 var(--display);letter-spacing:.04em;text-transform:uppercase;margin:0 0 10px}
.record-card {margin-top:16px}
.record-list {display:grid;margin-top:4px;max-height:220px;overflow:auto;padding-right:2px;scrollbar-gutter:stable}
.record-row {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-top:1px solid var(--line)}
.record-copy {min-width:0;flex:1}
.record-copy strong {display:block;font-size:14px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.record-copy span {display:block;margin-top:3px;color:var(--muted);font-size:12px;font-weight:600}
.record-actions {display:flex;align-items:center;gap:6px;flex:none}
.record-actions .icon-button {
  width:36px;height:36px;min-width:36px;min-height:36px;padding:0;border-radius:10px;
  border:1px solid #ffffff12;background:var(--surface-soft);color:var(--accent);
  display:grid;place-items:center;
}
.record-actions .icon-button .icon {width:16px;height:16px}
.record-picked {font-size:18px;font-weight:650;margin:0 0 14px}
.month-count {display:flex;align-items:baseline;gap:8px;color:var(--muted);font-size:12px;font-weight:600}
.month-count strong {font:400 36px/.9 var(--display);color:var(--accent);letter-spacing:.02em;text-shadow:0 0 18px #e0b15a55}
.profile-slim {
  display:grid;gap:0;padding:0;overflow:hidden;
  background:
    radial-gradient(320px 160px at 0% 0%, #e0b15a1f, transparent 65%),
    linear-gradient(165deg,#1c242e,var(--surface));
}
.profile-hero{
  display:flex;align-items:center;gap:18px;padding:22px 22px 18px;
  border-bottom:1px solid #ffffff10;
}
.profile-slim .avatar-picker .avatar{
  width:92px;height:92px;border-radius:28px;font:500 34px/1 var(--display);
  border:1px solid #ffffff18;box-shadow:0 14px 28px #00000055,0 0 0 4px #e0b15a18;
}
.profile-slim .avatar-picker:hover .avatar{border-color:#e0b15a66}
.profile-hero-copy{min-width:0;flex:1}
.profile-hero-copy .eyebrow{margin-bottom:6px}
.profile-name-field{margin:0}
.profile-name-field>span{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.profile-name-input{
  min-height:52px;padding:8px 12px;font:500 30px/1 var(--display);letter-spacing:.04em;
  background:transparent;border-color:transparent;
}
.profile-name-input:hover,.profile-name-input:focus{background:var(--surface-soft);border-color:#e0b15a55}
.profile-hero-copy .caption{margin-top:8px;font-size:12px;line-height:1.5;max-width:42ch}
.profile-fields{display:grid;gap:4px;padding:18px 22px 22px;min-width:0}
.profile-fields .field{margin-bottom:12px}
.profile-fields .field>span{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.profile-fields .input{
  min-height:48px;font-size:15px;font-weight:600;
  background:linear-gradient(180deg,#222a34,var(--surface-soft));
}
.profile-fields .two-fields{gap:12px;margin-top:2px}
.profile-fields .two-fields .field{min-width:0;margin-bottom:12px}
.field-hint{display:block;margin-top:6px;font-size:11px;color:var(--subtle);font-weight:500}
.profile-fields .button{width:100%;justify-content:center;min-height:48px;margin-top:4px;font-weight:800}
.guide {padding:0 28px 8px}
.guide-block {margin:0 0 18px}
.guide-block h3 {font-size:16px;margin:0 0 10px}
@media(max-width:900px){.progress-pair{grid-template-columns:1fr}}
@media(max-width:560px){
  .profile-hero{flex-direction:column;align-items:flex-start;gap:14px;padding:18px}
  .profile-name-input{font-size:26px}
  .profile-fields{padding:16px 18px 18px}
}
.coach-assignment h3 {margin:0 0 8px;font-size:18px}
.coach-assignment .exercise-entry {margin-bottom:12px}
.coach-assignment>.button {min-height:42px}
.day.has-note::after {content:'';position:absolute;bottom:3px;width:3px;height:3px;border-radius:50%;background:currentColor}
.calendar-legend {border-top:1px solid #ffffff10;margin-top:16px;padding-top:14px;font-size:11px;color:var(--muted);display:flex;align-items:center;gap:8px;font-weight:600}
.legend-circle {width:10px;height:10px;border-radius:50%;border:1.5px solid var(--success-line);background:var(--success-soft);box-shadow:0 0 8px #9fd86a33}
.recent-card {padding:22px 20px}
.recent-list {display:grid}
.recent-row {width:100%;display:flex;align-items:center;gap:11px;padding:13px 0;text-align:left;border-top:1px solid var(--line)}
.recent-row:first-child {border:0;padding-top:0}
.date-tile {width:40px;height:46px;border-radius:10px;background:linear-gradient(180deg,#2a261f,var(--surface-soft));border:1px solid #ffffff12;display:flex;flex-direction:column;align-items:center;justify-content:center;font:400 22px/1 var(--display)}
.date-tile small {font:700 9px var(--font);color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.recent-row strong {display:block;font-size:12px;font-weight:700}
.recent-row .caption {font-size:10px}
.recent-row>.icon {margin-left:auto;width:14px;height:14px;color:var(--subtle)}
.empty-small {color:var(--muted);font-size:12px;line-height:1.7;padding:4px 0 8px}
.workout-card {
  padding:26px;min-height:430px;
  border-top:0;
  background:
    linear-gradient(180deg, #e0b15a18, transparent 18%),
    linear-gradient(180deg, #ffffff08, transparent 30%),
    linear-gradient(165deg, #1c242e, var(--surface) 60%);
  box-shadow:var(--glow), inset 0 2px 0 #e0b15a;
}
.workout-header {display:flex;align-items:center;justify-content:space-between;gap:13px;margin-bottom:22px}
.workout-heading .eyebrow {font-size:11px;margin-bottom:6px;letter-spacing:.16em;color:var(--accent)}
.workout-heading h2 {text-transform:capitalize;font:400 34px/.95 var(--display);letter-spacing:.03em}
.badge {display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border:1px solid var(--line);border-radius:999px;padding:7px 12px;font-size:10px;font-weight:700;color:var(--muted);background:var(--surface-soft)}
.badge.green {color:var(--success);background:var(--success-soft);border-color:var(--success-line);box-shadow:0 0 16px #9fd86a22}
.badge.live {color:#f0d7a4;background:#e0b15a18;border-color:#e0b15a55}
.badge.warn {color:#f0c48a;background:#d7a15a18;border-color:#d7a15a55}
.badge.muted {color:var(--muted)}
.badge .icon {width:12px;height:12px}
.workout-empty {position:relative;min-height:305px;border:1px dashed #ffffff18;border-radius:14px;background:radial-gradient(circle at 50% 0%, #e0b15a14, transparent 55%), var(--surface-soft);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px 22px;overflow:hidden}
.workout-empty::before,.workout-empty::after {content:'';position:absolute;width:28px;height:28px;color:var(--accent);opacity:.55;pointer-events:none}
.workout-empty::before {left:12px;top:12px;border-left:2px solid;border-top:2px solid}
.workout-empty::after {right:12px;bottom:12px;border-right:2px solid;border-bottom:2px solid}
.empty-symbol {width:64px;height:64px;border:1px solid #ffffff14;background:linear-gradient(160deg,#2a261f,#141412);display:grid;place-items:center;border-radius:18px;margin-bottom:18px;box-shadow:0 12px 28px #00000044}
.empty-symbol .icon {width:30px;height:30px;color:var(--accent)}
.workout-empty h3 {font-size:18px;font-weight:700;letter-spacing:-.02em}
.workout-empty p {font-size:12px;color:var(--muted);max-width:280px;margin:12px 0 22px;line-height:1.7}
.button {
  display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:12px 18px;border-radius:12px;
  background:linear-gradient(180deg,#f2c56a,#c9963a 70%,#b88934); color:var(--accent-ink);
  font-size:12px;font-weight:800;border:1px solid #ffffff22;line-height:1.3;
  box-shadow:0 10px 22px #e0b15a33, inset 0 1px 0 #ffffff55;
  transition:filter .15s,transform .15s,box-shadow .15s;
}
.button:hover {filter:brightness(1.06);transform:translateY(-1px);box-shadow:0 14px 28px #e0b15a44, inset 0 1px 0 #ffffff66}
.button:active {transform:translateY(1px)}
.button .icon {width:16px;height:16px}
.button.secondary {background:linear-gradient(180deg,#2c2820,var(--surface-soft));border-color:var(--line);color:var(--ink);font-weight:700;box-shadow:inset 0 1px 0 #ffffff10}
.button.dark {background:linear-gradient(180deg,#f2c56a,#c9963a);color:var(--accent-ink)}
.button.danger {background:var(--danger-soft);color:var(--danger);box-shadow:none}
.button.wide {width:100%}
.text-button {font-size:12px;font-weight:700;color:var(--accent);display:inline-flex;align-items:center;gap:5px;padding:0}
.text-button:hover {text-decoration:underline;text-underline-offset:3px}
.text-button.danger {color:var(--danger)}
.text-button .icon {width:14px;height:14px}
.tip {display:flex;align-items:flex-start;gap:10px;color:var(--muted);font-size:10px;line-height:1.8;padding-top:19px}
.tip .icon {width:17px;height:17px;color:var(--accent);margin-top:2px}
.field {display:flex;flex-direction:column;gap:8px;margin-bottom:19px}
.field>span,.field>label {font-size:11px;color:var(--muted)}
.input,.textarea,.select {width:100%;border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:linear-gradient(180deg,#242018,var(--surface-soft));color:var(--ink);font-size:13px;line-height:1.45;min-width:0;box-shadow:inset 0 1px 0 #ffffff08}
select {color-scheme:dark}
select option {background:#1c242e;color:#f4f6f8}
.input::placeholder,.textarea::placeholder {color:var(--subtle);opacity:1}
.textarea {resize:vertical;min-height:92px}
.input:focus,.textarea:focus,.select:focus {border-color:#e0b15a88;outline:2px solid #e0b15a22;outline-offset:0}
.workout-title {font-size:18px;font-weight:700;padding:12px 0;background:none;border:0;border-bottom:1px solid #ffffff12;border-radius:0;margin-bottom:18px}
.exercise-entry {border:1px solid #ffffff10;border-radius:14px;margin-bottom:14px;overflow:hidden;background:linear-gradient(180deg,#1e1c18, #141412);box-shadow:0 10px 24px #00000033}
.exercise-entry-head {padding:14px;display:flex;gap:12px;align-items:center;background:linear-gradient(180deg,#232b35,#1c1b18)}
.exercise-thumb {width:56px;height:52px;object-fit:contain;background:var(--photo-bg);border-radius:10px;flex-shrink:0;border:1px solid #ffffff12;box-shadow:0 6px 14px #00000055}
.exercise-open{display:flex;align-items:center;gap:12px;flex:1;min-width:0;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}
.exercise-open-copy{min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.exercise-open-title{font-size:14px;font-weight:700;line-height:1.4}
.exercise-open-hint{margin-top:6px;font-size:11px;font-weight:800;color:var(--accent)}
.coach-preview-card{margin-top:12px}
.step-editor{display:flex;flex-direction:column;gap:8px}
.step-edit{display:flex;gap:8px;align-items:center}
.step-edit .input{flex:1}
.step-add{margin-top:8px}
.exercise-card-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.exercise-title-button {text-align:left;padding:0;font-size:14px;line-height:1.4;font-weight:700;overflow-wrap:anywhere}
.exercise-title-button:hover {text-decoration:underline;text-decoration-color:var(--accent)}
.exercise-muscles {font-size:11px;color:var(--muted);margin-top:4px;font-weight:600}
.exercise-entry-head>.icon-button {margin-left:auto;width:28px;height:28px;flex-shrink:0;border:0;color:var(--subtle)}
.previous-result {font-size:10px;line-height:1.85;color:var(--muted);background:var(--success-soft);padding:10px 14px;border-top:1px solid var(--line)}
.previous-result strong {font-weight:550;color:var(--success)}
.sets {padding:9px 14px 13px}
.set-row {display:grid;grid-template-columns:72px minmax(0,1fr) minmax(0,1fr) 28px;gap:8px;align-items:center;padding:5px 0;font-size:12px}
.set-row.header {font-size:9px;color:var(--muted);margin-bottom:4px}
.set-row.header span:nth-child(2),.set-row.header span:nth-child(3),.set-row>span:nth-child(2),.set-row>span:nth-child(3) {text-align:center}
.set-row .set-input {width:min(100%,120px);margin-inline:auto}
.set-index {width:25px;height:25px;display:grid;place-items:center;border-radius:5px;background:var(--accent-soft);color:var(--accent);font:500 15px/1 var(--display)}
.set-input {padding:9px 8px;text-align:center;font-size:13px;font-variant-numeric:tabular-nums}
.set-remove {color:var(--subtle);padding:4px;display:grid;place-items:center}
.set-remove:hover {color:var(--danger)}
.set-remove .icon {width:14px;height:14px}
.add-set {font-size:10px;color:var(--accent);padding:8px 0 0;display:flex;gap:6px;align-items:center}
.add-set .icon {width:14px;height:14px}
.add-exercise {width:100%;border:1px dashed var(--line);background:var(--surface-soft);color:var(--accent);margin:3px 0 19px;font-weight:500}
.workout-actions {display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:18px;margin-top:17px}
.workout-actions>div {display:flex;gap:9px}
.saved-title {font-size:15px;font-weight:600;margin:5px 0 19px}
.workout-note {white-space:pre-wrap;overflow-wrap:anywhere;border-top:1px solid var(--line);padding-top:15px;margin-top:15px;color:var(--muted);font-size:12px}
.day-notes {padding:18px 0 0;margin-top:22px;border-top:1px solid var(--line)}
.day-notes h3 {font-size:12px}
.day-note {padding-top:13px;text-align:left;display:block;width:100%}
.day-note strong {font-size:12px;font-weight:550}
.day-note p {font-size:11px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;margin-top:4px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.page-footer {padding:19px 0 24px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:15px;font-size:10px}
.page-footer .text-button {font-size:10px}
.page-footer .muted {margin-left:10px;color:var(--subtle)}
.loading {text-align:center;padding:100px 20px}
.loading-mark {margin:auto auto 20px;width:62px;height:62px;border:1px solid var(--line);border-top-color:var(--accent);border-radius:50%;display:grid;place-items:center;animation:breathe 1.8s ease-in-out infinite;color:var(--accent)}
.loading-mark .icon {width:33px;height:33px}
.loading h1 {font-size:28px;margin-bottom:13px}
.loading p {font-size:12px;color:var(--muted)}
@keyframes breathe {50%{opacity:.4}}
.error-state {padding:70px 20px;text-align:center;max-width:520px;margin:auto}
.error-state h1 {font-size:32px}
.error-state p {margin:20px 0;color:var(--muted);line-height:1.9}
.error-state>.icon {width:50px;height:50px;margin-bottom:25px;color:var(--accent)}
dialog {color:var(--ink);background:linear-gradient(180deg,#ffffff08,transparent 24%),linear-gradient(165deg,#1e1c18,var(--surface));border:1px solid #ffffff14;border-radius:18px;padding:0;max-height:90dvh;max-width:calc(100% - 32px);overflow:auto;box-shadow:0 28px 80px #00000088, var(--glow)}
dialog::backdrop {background:#030609cc;backdrop-filter:blur(10px)}
.dialog-head {display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:26px 28px 21px}
.dialog-head .eyebrow {font-size:11px;margin-bottom:8px;color:var(--accent);letter-spacing:.14em}
.dialog-head h2 {font:400 32px/.95 var(--display);letter-spacing:.03em;text-transform:uppercase}
.catalog-dialog {width:870px}
.catalog-dialog>.dialog-head {position:sticky;top:0;background:var(--surface);z-index:3;border-bottom:1px solid var(--line)}
#catalog-dialog-body {padding:20px 27px 28px}
.catalog-toolbar {display:flex;gap:12px;margin-bottom:19px;align-items:center}
.search-box {position:relative;flex:1;min-width:0}
.search-box .icon {position:absolute;left:14px;top:12px;width:18px;height:18px;color:var(--subtle)}
.search-box input {padding-left:41px}
.catalog-toolbar select {width:175px;height:43px;font-size:11px}
.chips {display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding:3px 2px 13px;margin-bottom:10px}
.chip {white-space:nowrap;border:1px solid var(--line);padding:8px 14px;border-radius:999px;font-size:11px;font-weight:650;color:var(--muted);background:var(--surface);transition:transform .15s,background .15s,border-color .15s,color .15s}
.chip:hover {border-color:#e0b15a66;color:var(--ink);transform:translateY(-1px)}
.chip.active {background:linear-gradient(180deg,#f2c56a,#c9963a);border-color:transparent;color:var(--accent-ink);font-weight:800;box-shadow:0 8px 18px #e0b15a44}
.results-caption {display:flex;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted);margin:6px 0 19px}
.catalog-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.exercise-card {background:linear-gradient(180deg,#1e1c18,var(--surface));border:1px solid #ffffff10;border-radius:16px;overflow:hidden;transition:transform .22s,border-color .22s,box-shadow .22s;display:flex;flex-direction:column;box-shadow:0 12px 28px #00000040}
.exercise-card:hover {transform:translateY(-5px);border-color:#e0b15a66;box-shadow:0 18px 40px #00000066, 0 0 0 1px #e0b15a22}
.exercise-visual {position:relative}
.favorite-toggle {position:absolute;left:10px;top:10px;z-index:2;width:34px;height:34px;display:grid;place-items:center;border-radius:11px;border:1px solid #ffffff28;background:#0e0e0ccc;color:#f3f5f7;backdrop-filter:blur(8px)}
.favorite-toggle .icon {width:16px;height:16px}
.favorite-toggle.on {color:#ffb15a;border-color:#ffb15a88;box-shadow:0 0 16px #ffb15a44}
.favorite-toggle.on .icon {fill:currentColor}
.exercise-visual>video.exercise-clip,.exercise-visual>img.exercise-still {width:100%;aspect-ratio:3/2;object-fit:contain;object-position:center;display:block;background:#161b22;pointer-events:none;transition:transform .28s ease}
.exercise-still.is-pending,.exercise-thumb.is-pending {background:radial-gradient(circle at 50% 40%, #2a3340, #101418)}
.exercise-card:hover .exercise-visual>video.exercise-clip,.exercise-card:hover .exercise-visual>img.exercise-still {transform:scale(1.045)}
.exercise-visual>.exercise-image-button {position:absolute;inset:0;z-index:1;width:100%;height:100%;aspect-ratio:auto;padding:0;background:transparent;display:block;overflow:hidden}
.exercise-image-button {width:100%;aspect-ratio:3/2;padding:0;background:radial-gradient(circle at 50% 40%, #2a3340, var(--photo-bg));display:block;position:relative;overflow:hidden}
.exercise-image-button>img,.exercise-image-button>video {width:100%;height:100%;object-fit:contain;display:block;padding:0;transition:transform .28s ease;background:#101418}
.exercise-image-button:hover>img {transform:scale(1.045)}
.exercise-image-button::after {content:'↗';position:absolute;right:10px;top:10px;font-size:14px;color:#f3f5f7;background:#0e0e0ccc;border:1px solid #ffffff28;border-radius:8px;width:28px;height:28px;line-height:26px;backdrop-filter:blur(6px)}
.exercise-info {padding:15px;border-top:2px solid #ffffff0d;display:flex;flex-direction:column;flex:1}
.exercise-card:hover .exercise-info {border-top-color:#e0b15a66}
.exercise-info .exercise-title-button {font-size:13px;min-height:38px;line-height:1.4;margin-bottom:7px;font-weight:700}
.exercise-info .caption {font-size:11px}
.exercise-card-bottom {display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:auto;padding-top:14px;font-size:10px;color:var(--muted);font-weight:600}
.exercise-card-bottom .button {font-size:10px;min-height:34px;padding:7px 12px;border-radius:10px}
.exercise-card-bottom .button .icon {width:13px;height:13px}
.load-more {display:flex;justify-content:center;margin-top:25px}
.catalog-pages {display:flex;align-items:center;justify-content:center;gap:10px;flex:0 0 auto}
.results-caption .catalog-pages {margin-left:auto}
.catalog-pages span {font-variant-numeric:tabular-nums;color:var(--muted);font-size:13px}
.catalog-empty {grid-column:1/-1;padding:50px 20px;text-align:center;color:var(--muted)}
.catalog-empty h3 {margin-bottom:12px;color:var(--ink)}
.detail-dialog {width:min(940px,calc(100% - 32px))}
.detail-tabs {display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0 28px 16px;padding:4px;background:var(--surface-soft);border:1px solid var(--line);border-radius:14px}
.detail-tab {border:0;background:transparent;color:var(--muted);border-radius:10px;min-height:42px;padding:8px 12px;font-size:13px;letter-spacing:.2px}
.detail-tab.active {background:linear-gradient(180deg,#f2c56a,#c9963a);color:var(--accent-ink);font-weight:800;box-shadow:0 8px 18px #e0b15a33}
.detail-pane {padding:0 28px 8px}
.detail-pane .detail-body {padding:18px 0 4px}
.detail-pane[hidden] {display:none}
.detail-pane .detail-images {background:transparent;border:0;padding:16px 0 0}
.muscle-panel {padding:0}
.figure-row {display:grid;grid-template-columns:1fr 1fr;gap:18px;background:#14171c;border-radius:16px;padding:22px 18px 12px}
.figure-row figure {margin:0}
.figure-row figcaption {text-align:center;font-size:11px;letter-spacing:.8px;text-transform:uppercase;color:#9aa8b5;margin-top:8px}
.body-figure {width:min(100%,280px);height:auto;display:block;max-height:420px;margin:0 auto}
.figure-body {fill:#e7edf2}
.muscle-zone {fill:#c5ced6;opacity:.85}
.muscle-zone.secondary {fill:#8ee0b0;opacity:1}
.muscle-zone.primary {fill:#3ddc78;opacity:1}
.muscle-legend {list-style:none;margin:12px 0 0;padding:0;display:grid;gap:6px}
.muscle-legend li {display:flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap}
.muscle-legend span {color:var(--subtle);font-size:10px;letter-spacing:.4px;text-transform:uppercase;min-width:62px}
.swatch {width:9px;height:9px;border-radius:50%;display:inline-block;flex:none}
.swatch.primary {background:#3ddc78;box-shadow:0 0 0 3px #3ddc7833}
.swatch.secondary {background:#8ee0b0}
.motion-panel {min-width:0}
.motion-card {width:min(100%,460px);margin:0 auto;background:#101418;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.motion-card.wide {width:min(100%,760px)}
.muscle-inset {position:relative;z-index:2;display:flex;align-items:flex-end;justify-content:center;gap:8px;padding:12px 12px 0;margin-bottom:-28px;pointer-events:none}
.muscle-inset .mini:not(.focus) .muscle-zone {fill:#c5ced6;filter:none}
.muscle-inset .mini {width:48px;opacity:.38}
.muscle-inset .mini.focus {width:68px;opacity:1;padding:4px 3px 2px;border-radius:12px;box-shadow:0 0 0 2px #3dff7a,0 0 18px rgba(61,255,122,.55);background:rgba(61,255,122,.08)}
.muscle-inset .body-figure {width:100%;max-height:none}
.muscle-inset .muscle-zone.primary {filter:drop-shadow(0 0 3px #3dff7a)}
.motion-loop {position:relative;width:min(100%,440px);aspect-ratio:4/3;height:auto;max-height:260px;margin:0 auto;border-radius:14px;overflow:hidden;background:#101418;border:1px solid var(--line)}
.motion-card .motion-loop {border:0;border-radius:0;margin:0;width:100%;background:transparent}
.motion-loop.figure {aspect-ratio:1;height:auto;max-height:none}
.exercise-image-button.figure {background:#14171c}
.exercise-image-button.figure>img {object-fit:contain;transform:none}
.exercise-image-button.figure:hover>img {transform:scale(1.02)}
.motion-loop img {position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.motion-loop img.b {animation:loopfade 2.6s ease-in-out infinite}
.motion-loop.custom-gif{width:min(100%,440px);max-height:none;height:auto;aspect-ratio:auto;background:#101418;border-color:var(--line)}
.motion-loop.custom-gif>img,.motion-loop.custom-gif>video{object-fit:contain;object-position:center;position:static;inset:auto;width:100%;height:auto;max-height:min(68dvh,560px);background:#101418;display:block}
.motion-video {width:100%;max-height:340px;border-radius:14px;background:#07090c;border:1px solid var(--line);display:block}
.motion-caption {margin:8px 2px 0;font-size:11px;color:var(--muted)}
.motion-caption a {color:var(--accent);text-decoration:underline}
@keyframes loopfade {0%,42%{opacity:0} 52%,92%{opacity:1} 100%{opacity:0}}
.detail-images {display:grid;grid-template-columns:1fr 1fr;gap:10px;width:min(100%,440px);margin:12px auto 0;background:transparent;padding:0;border:0}
.detail-figure {margin:0}
.detail-image-button {display:block;width:100%;padding:0;background:var(--photo-bg);border-radius:10px;overflow:hidden;cursor:zoom-in;border:1px solid var(--line)}
.detail-figure img {display:block;width:100%;height:132px;aspect-ratio:auto;object-fit:contain;background:var(--photo-bg)}
.detail-figure figcaption {font-size:12px;color:var(--muted);margin-top:6px;text-align:center}
.photo-hint {font-size:12px;color:var(--muted);margin:8px auto 0;width:min(100%,440px);text-align:center;line-height:1.4}
.photo-dialog {width:min(1100px,96vw);max-height:94dvh;background:var(--bg)}
.photo-dialog .dialog-head {padding:20px 23px 16px}
.photo-dialog .dialog-head h2 {font-size:19px}
.photo-stage {padding:0 22px;display:flex;align-items:center;justify-content:center;background:var(--bg)}
.photo-stage img {display:block;max-width:100%;max-height:68dvh;width:auto;height:auto;object-fit:contain;border-radius:7px}
.photo-controls {padding:17px 23px 21px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.photo-controls .caption {text-align:center;font-size:11px}
.photo-controls .icon-button {width:38px;height:38px}
.detail-body {padding:24px 28px}
.detail-facts {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 16px}
.detail-facts div {min-width:0;background:var(--surface-soft);border:1px solid var(--line);border-radius:10px;padding:8px 10px}
.detail-facts dt {margin:0;font-size:11px;color:var(--subtle)}
.detail-facts dd {margin:2px 0 0;font-size:14px;font-weight:600;line-height:1.3}
.detail-body h3 {font-size:14px;margin-bottom:14px}
.instructions {padding-left:18px;font-size:14px;line-height:1.5;color:var(--muted)}
.instructions li {padding:0 0 11px 7px}
.instructions li::marker {color:var(--accent);font-weight:600}
.source-link {font-size:10px;color:var(--subtle);margin-top:20px}
.source-link a {text-decoration:underline}
.detail-actions {display:flex;align-items:center;gap:10px;padding:0 28px 26px}
.detail-actions .favorite-toggle {position:static;background:var(--surface-soft);border-color:var(--line);color:var(--muted)}
.detail-actions .favorite-toggle.on {color:#e0872f;border-color:#e0872f;background:transparent}
.detail-actions .button.wide {width:auto;flex:1}
.form-dialog {width:470px}
.form-dialog form {padding:0 27px 27px}
.form-dialog .form-actions {display:flex;justify-content:flex-end;gap:10px;margin-top:24px}
.dialog-description {padding:0 27px;color:var(--muted);font-size:12px;line-height:1.9}
.form-dialog>.form-actions {padding:0 27px 27px}
.two-fields {display:grid;grid-template-columns:1fr 1fr;gap:15px}
.form-error {color:var(--danger);background:var(--danger-soft);padding:12px;border-radius:7px;font-size:11px;margin:15px 0;display:none}
.form-error.visible {display:block}
.toast {position:fixed;left:50%;bottom:30px;transform:translate(-50%,15px);background:linear-gradient(180deg,#2c2820,var(--surface-hover));color:var(--ink);border:1px solid #ffffff14;border-left:3px solid var(--accent);border-radius:14px;padding:14px 22px;font-size:13px;font-weight:650;box-shadow:var(--shadow);opacity:0;pointer-events:none;transition:.22s;z-index:10000;max-width:calc(100vw - 32px);text-align:center}
.toast.visible {opacity:1;transform:translate(-50%,0)}
.notes-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.note-card {display:flex;flex-direction:column;padding:23px;border:1px solid #ffffff10;border-top:3px solid var(--accent);border-radius:16px;background:linear-gradient(180deg,#ffffff06,transparent 40%),var(--surface);min-height:215px;box-shadow:0 12px 28px #00000033}
.note-card:nth-child(3n + 2) {border-top-color:var(--success-line)}
.note-card:nth-child(3n) {border-top-color:var(--subtle)}
.note-card h3 {font-size:17px;line-height:1.4;margin:18px 0 12px;overflow-wrap:anywhere}
.note-card p {font-size:12px;line-height:1.9;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}
.note-card-footer {display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:20px}
.note-card .caption {font-size:10px}
.note-card .icon-button {width:28px;height:28px}
.empty-page {padding:36px 20px;text-align:center;border:1px dashed #ffffff18;background:radial-gradient(circle at 50% 0%, #e0b15a12, transparent 55%),var(--surface);border-radius:16px}
.empty-page .empty-symbol {margin:0 auto 23px}
.empty-page h3 {font:400 34px/1.05 var(--display);letter-spacing:.03em;text-transform:uppercase}
.empty-page p {color:var(--muted);font-size:13px;line-height:1.7;margin:14px auto 24px;max-width:340px}
.profile-layout {display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:22px}
.paywall-banner{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  padding:16px 18px;margin-bottom:16px;border:1px solid #e0b15a44;
  background:linear-gradient(135deg,#e0b15a22,transparent 55%),var(--surface);
}
.paywall-banner p{margin:4px 0 0;color:var(--muted);font-size:13px;max-width:42ch}
.profile-card.profile-slim{margin-bottom:16px}
.profile-offer{
  display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.9fr);padding:0;overflow:hidden;
  background:
    radial-gradient(460px 200px at 0% 0%, #e0b15a1c, transparent 62%),
    linear-gradient(165deg,#1c242e,var(--surface));
}
.offer-sub,.offer-ref{padding:20px 22px 22px;min-width:0}
.offer-sub{border-right:1px solid #ffffff12}
.offer-price{margin:2px 0 8px;font:500 42px/.95 var(--display);color:var(--accent);letter-spacing:.02em}
.offer-price small{font:700 14px var(--font);color:var(--muted);letter-spacing:0;margin-left:2px}
.offer-sub .button,.offer-ref .button{width:100%;justify-content:center;min-height:46px}
.offer-actions{display:grid;gap:8px}
.balance-meta{display:flex;flex-wrap:wrap;gap:8px 16px;margin:0 0 10px;color:var(--muted);font-size:13px}
.balance-meta strong{color:var(--ink);font-weight:700}
.ref-history li.is-withdrawal_paid span:first-child,.ref-history li.is-subscription span:first-child{color:var(--ink)}
.admin-wd{padding:18px 20px 16px;margin-top:14px}
.admin-wd h2{font:500 28px/1 var(--display);letter-spacing:.04em;text-transform:uppercase}
.wd-card{padding:14px 0;border-top:1px solid var(--line)}
.wd-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.wd-top strong{font:500 24px/1 var(--display)}
.wd-card p{margin:6px 0 0;color:var(--muted);font-size:13px}
.wd-details{font:600 16px/1.4 ui-monospace,monospace;color:var(--ink);letter-spacing:.04em}
.wd-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.wd-actions .button{min-height:42px;width:auto}
.profile-billing{display:grid;grid-template-columns:1.1fr .9fr;gap:14px;margin-bottom:16px;align-items:stretch}
.profile-sub,.profile-referral{
  padding:18px;margin:0;height:100%;
  background:
    radial-gradient(280px 140px at 0% 0%, #e0b15a18, transparent 70%),
    linear-gradient(165deg,#1c242e,var(--surface));
}
.profile-sub-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.profile-sub-head h2{font:500 28px/1 var(--display);letter-spacing:.04em;text-transform:uppercase;margin:0}
.sub-status{
  display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border-radius:999px;
  font:700 11px/1 var(--font);letter-spacing:.08em;text-transform:uppercase;border:1px solid #ffffff14;
}
.sub-status.is-trial{color:var(--accent);background:var(--accent-soft);border-color:#e0b15a44}
.sub-status.is-active{color:var(--success);background:var(--success-soft);border-color:var(--success-line)}
.sub-status.is-expired{color:var(--danger);background:var(--danger-soft)}
.shop-block{margin-bottom:16px}.shop-block h2{margin:0 0 12px;font:500 28px/1 var(--display)}
.shop-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px;padding:6px;border-radius:18px;background:#100e0ccc;border:1px solid #ffffff10;width:fit-content;max-width:100%}
.shop-tools{display:grid;gap:10px;margin-bottom:14px}
.shop-tools .chips{flex-wrap:wrap;overflow:visible}
.shop-sorts{margin:0}
.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.shop-card{display:grid;gap:6px;padding:14px;border-radius:14px;border:1px solid #ffffff10;background:var(--surface-soft)}
.shop-product{display:grid;grid-template-columns:88px minmax(0,1fr);column-gap:12px;row-gap:8px;align-items:center;height:auto;padding:12px;overflow:hidden;background:linear-gradient(180deg,#1e1c18,var(--surface));box-shadow:0 8px 18px #00000030}
.shop-photo{width:88px;height:88px;aspect-ratio:1;max-height:none;border-radius:14px;overflow:hidden;background:#101318;display:grid;place-items:center}
.shop-photo img{width:100%;height:100%;object-fit:contain;display:block}
.shop-body{display:flex;flex-direction:column;gap:6px;flex:1;padding:14px 14px 16px}
.shop-brand{font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--accent)}
.shop-body strong{font:500 22px/1.1 var(--display);letter-spacing:.03em;text-transform:uppercase}
.shop-body p{color:var(--muted);font-size:12px}
.shop-meta{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-top:4px}
.shop-meta b{font:500 22px/1 var(--display);color:var(--accent)}
.shop-open{grid-column:1 / -1;display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px;align-items:center;width:100%;padding:0;text-align:left}
.shop-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.shop-open strong{font:500 16px/1.25 var(--display);letter-spacing:.02em;text-transform:uppercase;min-height:0;padding:0}
.shop-open .shop-brand,.shop-open .shop-meta{padding:0}
.shop-copy .shop-meta b{font-size:18px}
.shop-product>.button{grid-column:2;width:auto;min-height:40px;margin:0;justify-self:start}
.card.shop-detail{overflow:visible;padding:16px}
.shop-detail{display:grid;gap:12px}
.back-button{display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;min-height:48px;margin:0 0 12px;padding:0 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft);color:var(--ink);font-weight:800}
.back-button .icon{width:18px;height:18px}
.pay-history-toggle{min-height:40px}
.shop-detail .text-button{min-height:44px;justify-self:start}
.shop-detail img{width:100%;max-height:360px;object-fit:contain;border-radius:16px;background:#101318}
.shop-detail h2{margin:0;font:500 28px/1.15 var(--display);letter-spacing:.03em;text-transform:uppercase;overflow-wrap:anywhere}
.shop-detail p{margin:0;white-space:pre-wrap}
.shop-detail .button{width:100%}
.product-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;min-height:68px;padding:14px 16px;text-align:left}
.admin-product{padding:0}
.admin-product.is-open{border-color:#e0b15a66}
.admin-product.is-open h2,.admin-product.is-open .product-fields,.admin-product.is-open .admin-actions{padding-left:16px;padding-right:16px}
.admin-product.is-open h2{padding-top:16px}
.admin-product.is-open .admin-actions{padding-bottom:16px}
.goods-create{width:100%;margin-bottom:12px}
.admin-chips{flex-wrap:wrap;overflow:visible}
.grant-line{display:grid;grid-template-columns:minmax(88px,1fr) auto auto;gap:8px;align-items:end}
.grant-line .field{margin:0}
.grant-line .button{min-height:48px;padding:0 16px}
.grant-test{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}
.grant-test .text-button{min-height:36px}
@media(max-width:800px){.back-button{width:100%}.shop-grid{grid-template-columns:1fr}.shop-detail img{max-height:200px}.shop-detail h2{font-size:22px}.grant-line{grid-template-columns:1fr 1fr}.grant-line .field{grid-column:1 / -1}}
.shop-body .button{width:100%;justify-content:center;min-height:46px;margin-top:auto}
.shop-body strong{min-height:2.4em}
.shop-card strong{font:500 20px/1.15 var(--display)}
.shop-copy strong{font:500 16px/1.25 var(--display);min-height:0}
.shop-buy{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px}
.shop-buy .button{min-height:40px}
.cart-list{display:grid;gap:10px}
.cart-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:12px;border-radius:16px;border:1px solid #ffffff10;background:var(--surface-soft)}
.cart-copy{min-width:0}
.cart-copy strong{display:block;line-height:1.3}
.cart-qty{display:flex;align-items:center;gap:8px}
.cart-qty .button{width:40px;min-width:40px;height:40px;padding:0;border-radius:12px;justify-content:center}
.cart-line{min-width:5.5em;text-align:right;color:var(--accent)}
.cart-total{margin:16px 0 8px}
.cart-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cart-form .offer-actions{grid-column:1 / -1}
@media(max-width:700px){.cart-row{grid-template-columns:1fr auto}.cart-line{grid-column:2}.cart-form{grid-template-columns:1fr}}
.admin-stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.admin-stats>div{padding:14px;border-radius:14px;border:1px solid #ffffff10;background:linear-gradient(180deg,#ffffff08,transparent 46%),var(--surface-soft)}
.admin-stats strong{display:block;margin-top:6px;font:500 26px/1 var(--display)}
.admin-list{display:grid;gap:10px}
.admin-person{display:grid;gap:10px;padding:14px;border-radius:14px;border:1px solid #ffffff10;background:var(--surface-soft)}
.admin-person-copy{min-width:0}
.admin-person strong{display:block;font-size:15px;line-height:1.35}
.admin-person code,.user-id-line code{font:600 12px/1.4 ui-monospace,Consolas,monospace;color:var(--ink);user-select:all;overflow-wrap:anywhere}
.admin-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.admin-actions .button{min-height:36px;width:auto;padding:8px 10px}
.admin-actions .input,.admin-order .input{min-width:140px;flex:1}
.admin-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:14px}
.admin-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.admin-row,.admin-order,.admin-product{display:grid;gap:10px;padding:14px;border-radius:16px;border:1px solid #ffffff10;background:var(--surface-soft)}
.admin-row{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.admin-row.is-open{border-color:#e0b15a66;border-bottom-left-radius:0;border-bottom-right-radius:0}
.admin-row.is-open+.admin-panel{margin-top:-10px;border-top-left-radius:0;border-top-right-radius:0}
.admin-row-copy{min-width:0}
.admin-row-copy strong{display:block;font-size:16px;line-height:1.3}
.admin-row code{display:block;margin-top:4px;font-size:11px}
.admin-panel{display:grid;gap:16px;padding:14px;border-radius:16px;border:1px solid #e0b15a44;background:#e0b15a10}
.admin-panel h3{margin:0;color:var(--accent);font-size:12px;letter-spacing:.12em;text-transform:uppercase}
.admin-panel .field{margin-bottom:0}
.admin-order{grid-template-columns:minmax(0,1.2fr) minmax(120px,.7fr) minmax(120px,.7fr) auto;align-items:end}
.admin-product{grid-template-columns:1fr}
.product-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.product-fields .span-2{grid-column:1 / -1}
.admin-actions{display:flex;flex-wrap:wrap;gap:8px}
.id-line{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:6px 0 0}
.id-line code{font-size:12px}
.admin-product .admin-actions,.admin-order .button{align-self:end}
@media(max-width:700px){.product-fields{grid-template-columns:1fr}.product-fields .span-2{grid-column:auto}}
@media(max-width:800px){.admin-order,.admin-product{grid-template-columns:1fr}}
.user-id{display:block;max-width:148px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--subtle);font-size:10px;font-weight:650}
.user-id-line{display:flex;flex-wrap:wrap;gap:6px;align-items:baseline;margin:8px 0 0;color:var(--muted);font-size:12px}
.support-desk{display:grid;grid-template-columns:minmax(250px,340px) minmax(0,1fr);gap:14px;align-items:start}
.support-list,.support-pane{padding:16px}
.support-list .chips{display:flex;flex-wrap:wrap;gap:6px}
.support-list .chip{height:auto;white-space:nowrap}
.ticket-list{display:grid;gap:8px;margin-bottom:12px}
.ticket-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;text-align:left;padding:12px;border-radius:14px;border:1px solid #ffffff10;background:var(--surface-soft)}
.ticket-row.is-open{border-color:#e0b15a88;background:#e0b15a14}
.ticket-copy{min-width:0}
.ticket-copy strong{display:block;font-size:14px;line-height:1.35}
.support-pill{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;border:1px solid #ffffff14;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);white-space:nowrap}
.support-pill.is-new{color:var(--accent);background:var(--accent-soft);border-color:#e0b15a44}
.support-pill.is-in_progress,.support-pill.is-transferred{color:var(--coach);background:var(--coach-soft)}
.support-pill.is-waiting_user{color:#e7c56a;background:#3a3018;border-color:#e7c56a44}
.support-pill.is-resolved{color:var(--success);background:var(--success-soft);border-color:var(--success-line)}
.support-pill.is-closed{color:var(--subtle)}
.support-new{width:100%}
.support-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:14px;text-align:left}
.support-head>div{flex:1 1 100%}
.support-head h2{margin:0;text-align:left}
.support-thread{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-bottom:14px}
.support-events{display:grid;gap:4px;margin-top:4px}
.support-bubble{max-width:min(460px,92%);padding:12px 14px;border-radius:16px;border:1px solid #ffffff10;background:var(--surface-soft)}
.support-bubble p{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:4px}
.support-bubble.is-mine{margin-left:auto;background:#e0b15a18;border-color:#e0b15a44}
.support-bubble.is-them{margin-right:auto}
.support-event{text-align:left;color:var(--subtle);font-size:12px}
.support-reply{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.support-reply .button{justify-content:center;min-width:140px}
.support-tools{display:grid;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.support-tools .input,.support-tools select{width:100%}
.support-actions{display:flex;flex-wrap:wrap;gap:8px}
.support-actions .button{flex:1 1 160px;min-height:48px;justify-content:center}
.order-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;min-height:68px;padding:12px 14px;text-align:left}
.admin-order.is-open{border-color:#e0b15a66}
.order-details{display:grid;gap:10px;padding:0 14px 14px}
.staff-form{display:grid;gap:10px;margin-top:16px}
.staff-form .button{justify-self:start;min-width:220px}
.pay-history{margin-top:16px}
.pay-list{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:8px}
.pay-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:14px;border:1px solid #ffffff10;background:var(--surface-soft)}
.pay-row strong{display:block;font-size:16px}
.pay-pill{flex:0 0 auto;padding:5px 10px;border-radius:999px;border:1px solid #ffffff14;font-size:11px;letter-spacing:.04em;text-transform:uppercase}
.pay-pill.is-succeeded{color:#9ddeaf;background:#173224}
.pay-pill.is-pending,.pay-pill.is-waiting_for_capture{color:#ffc091;background:#3a2618}
.pay-pill.is-canceled{color:var(--subtle);background:#ffffff08}
.support-compose h2{margin-bottom:8px}
.support-compose .caption{margin-bottom:14px}
@media(max-width:800px){
  .support-desk{grid-template-columns:1fr}
  .support-desk.is-open .support-list{display:none}
  .support-reply{grid-template-columns:1fr}
}
:root[data-theme='light'] .support-pill.is-waiting_user{color:#8a6410;background:#fff4d4;border-color:#e4c56a}
.profile-sub-grid,.ref-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 14px}
.profile-sub-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.offer-actions .button{min-height:48px;justify-content:center}
.profile-sub-grid>div,.ref-stats>div{
  padding:12px;border-radius:12px;border:1px solid #ffffff10;background:var(--surface-soft);
}
.profile-sub-grid strong,.ref-stats strong{display:block;margin-top:6px;font:500 22px/1 var(--display)}
.sub-note{margin:0 0 14px;color:var(--muted);font-size:13px}
.profile-sub .button,.profile-referral .button{width:100%;justify-content:center;min-height:46px}
.ref-balance{font:500 36px/.9 var(--display);color:var(--accent)}
.ref-balance small{font:700 14px var(--font);color:var(--muted)}
.ref-history-wrap{margin-top:14px}
.ref-history{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:8px;max-height:180px;overflow:auto}
.ref-history li{
  display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;
  padding:10px 0;border-top:1px solid var(--line);font-size:12px;
}
.ref-history li span:first-child{font-weight:800;color:var(--accent);white-space:nowrap}
.ref-history small{color:var(--subtle)}
.pay-dialog{
  width:min(420px,calc(100vw - 28px));padding:0;border:1px solid #e0b15a55;border-radius:18px;
  background:linear-gradient(180deg,#2a201c,var(--surface));color:var(--ink);box-shadow:0 24px 60px #00000088;
}
.pay-dialog-body{padding:28px 26px 24px;text-align:center}
.pay-mark{
  width:64px;height:64px;margin:0 auto 14px;display:grid;place-items:center;border-radius:18px;
  border:1px solid #e0b15a55;background:#e0b15a18;color:var(--accent);
}
.pay-mark .icon{width:30px;height:30px}
.pay-dialog-body h2{font:500 32px/1 var(--display);letter-spacing:.04em;text-transform:uppercase;margin:8px 0 10px}
.pay-dialog-body p{color:var(--muted);font-size:14px;line-height:1.5;margin:0 auto 12px;max-width:34ch}
.pay-dialog-body .offer-price{margin:4px 0 14px}
.pay-actions{display:grid;gap:8px}
.pay-actions .button{width:100%;justify-content:center;min-height:48px}
@media(max-width:900px){.profile-billing,.profile-offer{grid-template-columns:1fr}.offer-sub{border-right:0;border-bottom:1px solid #ffffff12}}
@media(max-width:560px){
  .profile-sub-grid,.ref-stats{grid-template-columns:1fr}
  .ref-history li{grid-template-columns:auto 1fr;grid-template-rows:auto auto}
  .ref-history small{grid-column:2}
}
.profile-wallet {
  display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:stretch;
  padding:16px;margin-bottom:16px;
  background:
    radial-gradient(280px 140px at 0% 0%, #e0b15a22, transparent 70%),
    linear-gradient(180deg,#ffffff08,transparent 40%),
    linear-gradient(165deg,#1c242e,var(--surface));
}
.wallet-tile {
  display:flex;flex-direction:column;gap:8px;min-width:0;min-height:148px;
  padding:16px;border-radius:14px;border:1px solid #ffffff10;
  background:linear-gradient(180deg,#ffffff08,transparent 55%),var(--surface-soft);
}
.wallet-balance strong {display:block;margin-top:2px;font:500 44px/.9 var(--display);letter-spacing:.02em;color:var(--accent);text-shadow:0 0 22px #e0b15a44}
.wallet-balance strong small {font:700 15px var(--font);color:var(--muted);margin-left:4px}
.wallet-tile .caption {margin-top:auto;line-height:1.45;font-size:12px;font-weight:500}
.wallet-row {display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:auto}
.wallet-code {
  display:inline-flex;align-items:center;min-height:42px;padding:0 12px;border-radius:10px;
  border:1px solid #ffffff14;background:var(--surface);
  font:700 13px/1 var(--font);letter-spacing:.14em;color:var(--accent);
}
.wallet-row .button {min-height:42px;flex:1;justify-content:center}
@media(max-width:720px){.profile-wallet{grid-template-columns:1fr;padding:14px}.wallet-tile{min-height:0}.wallet-balance strong{font-size:40px}.wallet-row .button{width:100%;flex:1 1 100%}}
:root[data-theme='light'] .profile-offer{background:linear-gradient(180deg,#e0b15a10,transparent 42%),var(--surface)}
:root[data-theme='light'] .offer-sub{border-color:var(--line)}
:root[data-theme='light'] .task-rx span{background:#f4f6f8;border-color:#d7dee6;color:#1c2730}
:root[data-theme='light'] .task-rx span:first-child{color:#c2410c;background:#fff1ea;border-color:#ffb088}
:root[data-theme='light'] .rx-head{background:#f4f6f8}
:root[data-theme='light'] .rx-table,:root[data-theme='light'] .rx-row{border-color:var(--line)}
:root[data-theme='light'] .pay-dialog{background:#fff;color:#1c2730}
:root[data-theme='light'] .profile-wallet {background:linear-gradient(180deg,#e0b15a12,transparent 40%),var(--surface)}
:root[data-theme='light'] .wallet-tile {border-color:var(--line)}
:root[data-theme='light'] .wallet-code {border-color:var(--line);background:var(--surface-soft)}
.profile-card {padding:22px}
.profile-card.profile-slim {padding:0}
.profile-card h2 {font:500 28px/1 var(--display);letter-spacing:.04em;text-transform:uppercase;margin-bottom:13px}
.profile-card>p {color:var(--muted);font-size:13px;line-height:1.7;margin-bottom:25px}
.measurement-stats {display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:25px 0}
.measurement-stat {padding:20px;background:linear-gradient(180deg,#ffffff08,transparent 50%),var(--surface-soft);border:1px solid #ffffff10;border-radius:14px}
.measurement-stat span {font-size:11px;color:var(--muted);font-weight:650}
.measurement-stat strong {display:block;font:400 42px/1.1 var(--display);margin:10px 0 3px;letter-spacing:.02em}
.measurement-stat small {font:600 12px var(--font);color:var(--muted)}
.table-wrap {overflow:auto}
.data-table {width:100%;border-collapse:collapse;font-size:11px}
.data-table th {font-size:10px;color:var(--muted);text-align:left;font-weight:500;padding:12px 9px;border-bottom:1px solid var(--line)}
.data-table td {padding:14px 9px;border-bottom:1px solid var(--line);white-space:nowrap}
.data-table td:last-child {text-align:right}
.data-table .icon-button {width:27px;height:27px;border:0}
.profile-notice {display:flex;gap:12px;align-items:flex-start;padding:18px;background:var(--surface-soft);border:1px solid var(--line);border-radius:8px;font-size:11px;line-height:1.9;color:var(--muted);margin-top:22px}
.profile-notice .icon {margin-top:3px;width:18px;height:18px;color:var(--accent)}
.progress-card {padding:27px;margin-bottom:22px}
.progress-controls {display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}
.progress-controls .select {max-width:290px}
.progress-controls h2 {font:400 30px/1 var(--display);letter-spacing:.04em;text-transform:uppercase}
.chart {width:100%;height:235px;display:block;overflow:visible}
.chart text {font:600 10px var(--font);fill:var(--muted)}
.chart-grid {stroke:var(--line);stroke-dasharray:3 4;opacity:.7}
.chart-area {fill:var(--accent);opacity:.12}
.chart-line {stroke:var(--accent);stroke-width:2.5;filter:drop-shadow(0 0 6px #e0b15a66)}
.chart-point {fill:var(--accent);stroke:var(--surface);stroke-width:2;filter:drop-shadow(0 0 6px #e0b15a88)}
.chart-note {font-size:11px;color:var(--muted);margin-top:13px;font-weight:600}
.strength-list {display:grid;gap:10px;margin:4px 0 8px;max-height:168px;overflow:auto;padding-right:2px;scrollbar-gutter:stable}
.strength-list.is-open {max-height:240px}
.strength-row {display:grid;grid-template-columns:minmax(0,1fr) minmax(56px,.65fr) auto;gap:8px 10px;align-items:center}
.strength-copy {min-width:0}
.strength-copy strong {display:block;font-size:13px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
.strength-copy span {display:block;margin-top:3px;font-size:11px;color:var(--muted);font-weight:600}
.strength-meter {height:8px;border-radius:999px;background:var(--surface-hover);overflow:hidden;border:1px solid #ffffff10}
.strength-meter>span {display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#f2c56a,#c9963a);box-shadow:0 0 12px #e0b15a55}
.strength-row b {font:500 24px/.9 var(--display);letter-spacing:.02em;color:var(--accent);white-space:nowrap;text-align:right}
.strength-row b small {font:700 11px var(--font);color:var(--muted);margin-left:2px}
.strength-more {margin:2px 0 6px;font-size:12px;font-weight:700}
@media(max-width:720px){
  .strength-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}
  .strength-meter{grid-column:1/-1;order:3}
  .strength-row b{font-size:22px}
  .record-row{align-items:center}
  .record-actions{margin-left:auto}
}
.progress-tables {display:grid;grid-template-columns:1fr 1fr;gap:22px}
.progress-tables>.card {padding:24px}
.muscle-row {display:flex;align-items:center;gap:10px;margin-top:19px;font-size:10px;color:var(--muted)}
.muscle-row>span:first-child {width:96px;flex-shrink:0}
.muscle-track {flex:1;height:6px;border-radius:2px;background:var(--surface-hover);overflow:hidden}
.muscle-fill {display:block;height:100%;background:var(--accent);border-radius:2px}
.muscle-row>strong {font:500 16px var(--display);color:var(--ink);width:22px;text-align:right}
.about-copy {padding:0 28px 28px;font-size:12px;color:var(--muted);line-height:1.95}
.about-copy p {margin-bottom:15px}
.about-copy a {text-decoration:underline;color:var(--accent)}
.inline-error {padding:14px;border-radius:8px;color:var(--danger);background:var(--danger-soft);font-size:11px;margin-bottom:15px}
body.modal-open {position:fixed;left:0;right:0;width:100%;overflow:hidden}
.locked-page {position:relative;min-height:62vh}
.locked-blur {filter:blur(8px);pointer-events:none;user-select:none;opacity:.4;max-height:68vh;overflow:hidden}
.locked-veil {position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:16px;padding:28px 20px;pointer-events:auto}
.locked-veil h2 {margin:0;max-width:18ch;font:500 28px/1.15 var(--display);letter-spacing:.03em;text-transform:uppercase}
.locked-veil .button {min-height:48px}
:root[data-theme='light'] body {
  background:#f4f5f7;
}
:root[data-theme='light'] .card,
:root[data-theme='light'] .stat,
:root[data-theme='light'] .progress-count,
:root[data-theme='light'] .pr-card,
:root[data-theme='light'] .exercise-card,
:root[data-theme='light'] .exercise-entry,
:root[data-theme='light'] .note-card,
:root[data-theme='light'] dialog {
  background:#fff;
  border-color:var(--line);
  box-shadow:0 8px 24px #15171c0c;
}
:root[data-theme='light'] .workout-card,
:root[data-theme='light'] .profile-card {
  background:#fff;
  box-shadow:0 8px 24px #15171c0c;
}
:root[data-theme='light'] .exercise-entry-head,
:root[data-theme='light'] .input,
:root[data-theme='light'] .textarea,
:root[data-theme='light'] .select,
:root[data-theme='light'] .button.secondary,
:root[data-theme='light'] .date-tile,
:root[data-theme='light'] .empty-symbol {
  background:var(--surface-soft);
  box-shadow:none;
}
:root[data-theme='light'] .sidebar {
  background:#fff;
  border-right:1px solid var(--line);
}
:root[data-theme='light'] .hero {
  color:var(--ink);
  background:#fff;
  border-color:var(--line);
}
:root[data-theme='light'] .input,
:root[data-theme='light'] .textarea,
:root[data-theme='light'] .select {
  background:#fff;
  color:var(--ink);
  border-color:#d5d9e0;
}
:root[data-theme='light'] .chip {background:#fff;color:var(--ink);border-color:var(--line)}
:root[data-theme='light'] .chip.active {background:linear-gradient(180deg,#f2c56a,#c9963a);color:#1a1408;border-color:transparent}
:root[data-theme='light'] .chips-nudge {background:#fff;color:#15171c}
:root[data-theme='light'] .button {color:#1a1408}
:root[data-theme='light'] .button.secondary,
:root[data-theme='light'] .text-button {color:var(--ink);background:#fff}
:root[data-theme='light'] .topbar,
:root[data-theme='light'] .navigation {background:#fff}
:root[data-theme='light'] .sidebar-message {background:#15171c;color:#f4f1ea}
:root[data-theme='light'] .hero p,
:root[data-theme='light'] .hero .eyebrow,
:root[data-theme='light'] .diary-count small,
:root[data-theme='light'] .training-sequence>span {color:var(--muted)}
:root[data-theme='light'] .diary-count span {color:var(--ink)}
:root[data-theme='light'] .diary-count,
:root[data-theme='light'] .training-sequence {border-color:var(--line);background:#ffffff55}
:root[data-theme='light'] .day.completed {background:var(--success-soft)}
:root[data-theme='light'] .day.assigned:not(.selected) {background:var(--task-soft);color:var(--task)}
:root[data-theme='light'] .nav-item.active {color:#1a1408;background:linear-gradient(180deg,#f2c56a,#d4a24a)}

@media(min-width:1500px) {
  .workspace{padding:0 56px}.diary-grid{grid-template-columns:350px minmax(0,1fr)}.calendar-card{padding:26px}.day{width:35px;height:35px}
  .hero-copy{padding:22px 0 22px 28px}.hero h1{font-size:36px}.hero-art img{height:120px}.workout-card{padding:28px}
}
@media(max-width:1150px) {
  .app-shell{grid-template-columns:220px minmax(0,1fr)}.sidebar{padding:28px 16px 22px}.brand{font-size:22px;gap:10px}.brand-mark{flex-basis:34px;width:34px;height:34px}.sidebar-caption{font-size:9px;letter-spacing:.08em;white-space:normal}
  .workspace{padding:0 26px}.topbar-label{font-size:8px;letter-spacing:.8px}.topbar-actions{gap:12px}.topbar-date{font-size:10px}
  .theme-toggle>span:not(.theme-swatch){display:none}.theme-toggle{width:36px;padding:8px}.diary-grid{grid-template-columns:275px minmax(0,1fr);gap:17px}
  .calendar-card{padding:22px 14px 17px}.workout-card{padding:20px}.hero-copy{padding:18px 0 18px 20px}.hero h1{font-size:28px}
  .hero-art img{height:96px}.stat{padding:17px}.stat-value{font-size:35px}
  .notes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-grid{gap:12px}.exercise-info{padding:12px}
  .catalog-toolbar{flex-wrap:wrap}.catalog-toolbar .search-box{min-width:180px}.catalog-toolbar select{width:150px}.profile-layout{grid-template-columns:1fr}
}
@media(max-width:900px) {
  body{font-size:13px}.app-shell{display:block}
  .sidebar{position:fixed;top:auto;bottom:0;left:0;right:0;height:auto;z-index:80;padding:0 2px calc(env(safe-area-inset-bottom,0px) + var(--tg-safe-bottom,0px));border:0;border-top:1px solid #e0b15a33;background:#101010;box-shadow:0 -12px 30px #00000088;transform:none}
  .sidebar>.brand,.sidebar-caption,.sidebar-bottom{display:none}.navigation{flex-direction:row;justify-content:space-around;gap:0;height:68px}
  .navigation{overflow:hidden;justify-content:stretch;width:100%;height:68px;min-height:68px;touch-action:manipulation}
  .nav-item{flex:1 1 0;width:auto;min-width:0;max-width:none;padding:6px 1px 5px;flex-direction:column;gap:2px;font-size:9px;line-height:1.05;border-radius:0;color:var(--muted);justify-content:center;position:relative;border:0;transform:none}
  .nav-item span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;display:block;line-height:1.05}
  .nav-item:hover{transform:none;background:transparent}
  .nav-item.active{background:transparent;color:var(--accent);box-shadow:none;text-shadow:none}.nav-item .icon{width:20px;height:20px;margin:0 auto}.nav-item span{font-size:8px;letter-spacing:-.03em}
  .workspace{padding:0 clamp(12px,4vw,18px);margin:0;max-width:none}.topbar{height:auto;min-height:58px;gap:8px;padding:calc(8px + var(--tg-safe-top,0px)) 0 8px;overflow:hidden}
  .topbar-label{flex:0 0 auto;min-width:max-content;overflow:visible;text-overflow:clip;white-space:nowrap;font:800 clamp(14px,3.5vw,18px)/1 var(--display);letter-spacing:-.04em;color:var(--ink);text-transform:uppercase}.topbar-label::before{display:none}.topbar-actions{gap:8px;flex:0 0 auto}
  .topbar-date{flex:1 1 auto;min-width:0;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(9px,2.4vw,11px);color:var(--muted);text-align:right}.theme-toggle{min-height:36px;width:36px;padding:7px}.theme-toggle>span:not(.theme-swatch){display:none}.lang-button{min-height:36px;min-width:36px;padding:0 8px}
  .mobile-admin{display:none}
  .mobile-profile{display:grid;width:36px;height:36px;font-size:13px;flex:none}main{padding:16px 0 calc(92px + env(safe-area-inset-bottom,0px) + var(--tg-safe-bottom,0px));min-height:calc(100dvh - 58px - 74px)}
  .hero{grid-template-columns:minmax(0,1fr) auto;gap:0;border-radius:12px;margin-bottom:14px}.hero-copy{padding:16px 12px 16px 16px}
  .hero .eyebrow{font-size:11px;letter-spacing:.8px;gap:6px;margin-bottom:6px;white-space:normal}.hero .eyebrow::before{width:5px;height:5px}
  .hero h1{font-size:22px;line-height:1.15;max-width:none}.hero p{font-size:13px;line-height:1.4;margin-top:6px;width:auto;max-width:none}
  .diary-count{min-width:92px;padding:14px 14px 14px 10px;border-right:0;align-items:flex-end;text-align:right}
  .diary-count strong{font-size:32px}.diary-count span{font-size:12px}.diary-count small{font-size:11px}
  .hero-art{display:none}
  .stats{gap:8px;margin-bottom:19px}.stat{padding:13px 11px;border-radius:8px}.stat-label{font-size:8px;gap:5px}.stat-label .icon{width:12px;height:12px}
  .stat-value{font-size:32px;margin-top:9px}.stat-value small{font-size:8px;margin-left:4px}.stat-arrow{display:none}
  .diary-grid{display:flex;flex-direction:column;gap:18px}.left-column{width:100%}.calendar-card{padding:22px 20px 18px}
  .calendar-card .section-top{margin-bottom:10px}.calendar-card .section-top h2{font-size:26px}.calendar-controls{margin-bottom:12px}.month-name{font-size:16px}.calendar-days{row-gap:6px}
  .day{width:min(44px,100%);height:auto;aspect-ratio:1;font-size:clamp(12px,3.4vw,14px)}.weekdays{font-size:clamp(9px,2.6vw,11px)}.calendar-legend{font-size:12px}.recent-card{display:none}
  .workout-card{width:100%;padding:22px 18px;min-height:350px}.workout-heading h2{font:800 24px/1.05 var(--display);letter-spacing:-.03em}
  .elite-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.elite-stat{padding:12px}.elite-stat strong{font-size:22px}
  .catalog-stage{grid-template-columns:1fr;gap:14px}.workout-empty{min-height:280px}
  .workout-empty p{font-size:11px}.workout-empty h3{font-size:17px}.tip{font-size:10px}
  .page-footer{padding:17px 0 102px;font-size:11px;align-items:center}.page-footer .muted{display:block;margin:4px 0 0;font-size:11px}.page-footer .text-button{font-size:12px}
  .page-heading{align-items:center;gap:10px;margin-bottom:12px}.page-heading h1{font-size:24px}.page-heading p{font-size:13px;line-height:1.4;margin-top:4px}
  .page-heading .button{font-size:13px;padding:10px 12px;min-height:40px;margin-top:0;flex-shrink:0}.page-heading .eyebrow{font-size:11px;letter-spacing:.4px}
  .catalog-toolbar{gap:8px;margin-bottom:8px;flex-wrap:nowrap}.catalog-toolbar .search-box{flex:1;min-width:0;flex-basis:auto}.catalog-toolbar .select{width:168px;flex:none;height:42px;font-size:16px}
  .gear-panel .caption{display:none}
  .chips{gap:6px;padding-bottom:4px;margin-bottom:2px}.chip{font-size:clamp(12px,3.2vw,13px);padding:8px 12px}.catalog-filters{gap:10px;margin-bottom:10px}.filter-name{flex-basis:auto;font-size:12px}.filter-line{flex-direction:column;align-items:stretch;gap:4px}.filter-line .chips{padding:0 0 2px;margin:0}.filter-line .button{min-height:36px;font-size:13px;padding:8px 10px}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.support-list .chips,.admin-tabs{flex-wrap:wrap;overflow:visible}.support-list .chip,.admin-tabs .button{flex:none}
  .exercise-visual>img.exercise-still{aspect-ratio:16/10;object-fit:cover;object-position:center 40%}
  .exercise-info{padding:12px}.exercise-info .exercise-title-button{font-size:clamp(14px,3.8vw,16px);min-height:auto}
  .exercise-info .caption{font-size:12px}.exercise-card-bottom{flex-wrap:wrap;gap:9px;padding-top:12px}.exercise-card-bottom .button{margin-left:auto;font-size:12px}
  .exercise-card-bottom>span{font-size:12px}.results-caption{font-size:12px;margin:4px 0 10px}.notes-grid{grid-template-columns:1fr;gap:14px}.note-card{min-height:0}
  .note-card h3{font-size:18px}.note-card p{font-size:12px}.profile-layout{gap:17px}.profile-card{padding:23px 19px}.profile-card h2{font-size:19px}
  .measurement-stat{padding:16px}.profile-notice{font-size:13px}.progress-tables{grid-template-columns:1fr;gap:14px}.progress-card{padding:16px 14px}.progress-stage{grid-template-columns:112px minmax(0,1fr);gap:10px;margin-bottom:14px}.progress-count{min-height:0;padding:14px}.progress-count strong{font-size:36px}.pr-card{min-height:0;padding:12px}.pr-card b{font-size:24px;margin:8px 0 4px}.empty-page{padding:28px 16px}.empty-page h3{font-size:22px}.empty-page p{font-size:14px;line-height:1.45}
  .progress-controls{align-items:flex-start;flex-direction:column;gap:16px}.progress-controls h2{font-size:18px}.progress-controls .select{max-width:none}
  .chart{height:195px}.progress-tables>.card{padding:23px 19px}.button{font-size:11px;min-height:43px}
  .catalog-dialog{width:100%;height:94dvh;max-height:94dvh;margin:auto 0 0;max-width:100%;border-radius:16px 16px 0 0}
  .dialog-head{padding:23px 20px 20px}.dialog-head h2{font-size:21px}.dialog-head .eyebrow{font-size:8px}#catalog-dialog-body{padding:18px 17px 30px}
  .detail-dialog{width:100%;max-width:100%;max-height:94dvh;margin:auto 0 0;border-radius:16px 16px 0 0}.detail-tabs{margin:0 16px 14px;padding:4px}.detail-pane{padding-left:16px;padding-right:16px}.motion-loop{width:min(100%,440px);max-height:220px}.body-figure{max-height:250px}.figure-row{gap:8px;padding:12px 8px 8px}.detail-images{gap:8px;width:min(100%,440px);padding:0}.detail-figure img{height:108px}.detail-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .detail-image-button{border-radius:10px}.detail-figure figcaption{font-size:12px}.detail-body{padding:18px 0 4px}.instructions{font-size:14px;padding-left:18px;line-height:1.5}
  .photo-dialog{max-width:calc(100% - 12px);width:calc(100% - 12px)}.photo-dialog .dialog-head{padding:19px 16px 16px}
  .photo-dialog .dialog-head h2{font-size:17px}.photo-stage{padding:0 10px}.photo-controls{padding:16px}.photo-stage img{max-height:65dvh}
  .detail-actions{padding:0 20px 23px}.form-dialog{max-width:calc(100% - 24px);border-radius:12px}.form-dialog form{padding:0 20px 23px}
  .form-dialog>.form-actions{padding:0 20px 23px}.dialog-description{padding:0 20px}.workout-actions{align-items:flex-start}.workout-actions>div{gap:6px}
  .workout-actions .button{padding:11px 12px;font-size:10px}.exercise-entry-head{padding:12px;gap:9px}.exercise-thumb{width:46px;height:44px}
  .exercise-title-button{font-size:11px}.exercise-muscles{font-size:9px}.sets{padding:8px 12px 12px}.previous-result{font-size:10px}
  .set-row{grid-template-columns:64px minmax(0,1fr) minmax(0,1fr) 24px;gap:6px}.toast{bottom:calc(92px + env(safe-area-inset-bottom,0px));font-size:13px}
  .input,.textarea,.select,.set-input,.search-box input{font-size:16px}.workout-title{font-size:16px}.chip{min-height:36px}
}
@media(max-width:720px) {
  .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .exercise-info{padding:10px}
  .exercise-info .exercise-title-button{font-size:13px}
  .exercise-info .caption,.exercise-card-bottom>span{font-size:11px}
  .exercise-card-bottom{flex-wrap:wrap;gap:6px}
  .exercise-card-bottom .button{min-height:36px;font-size:12px;padding:8px 10px;flex:none}
  .support-bubble{max-width:100%}
  .my-order-toggle{grid-template-columns:auto minmax(0,1fr) auto;padding:14px}
  .my-order-toggle code{display:none}
  .ticket-row{grid-template-columns:1fr;align-items:flex-start;gap:8px}
  .support-pill{justify-self:start;white-space:normal;text-align:left;max-width:100%}
}
@media(max-width:370px) {
  .catalog-toolbar{flex-wrap:wrap}.catalog-toolbar .search-box{flex-basis:100%}.catalog-toolbar .select{width:100%}
  .workspace{padding:0 13px}.topbar-actions{gap:6px}.topbar-label{font-size:14px}.topbar-date{font-size:8px}.hero-copy{padding-left:14px}.hero h1{font-size:20px}
  .hero p{font-size:12px}.hero .eyebrow{font-size:10px}
  .diary-count{min-width:78px;padding-right:12px}.diary-count strong{font-size:28px}.stat{padding:12px 9px}.stat-label{font-size:11px}.stat-value{font-size:29px}.stat-value small{font-size:11px}
  .calendar-card{padding:21px 14px}.workout-card{padding:20px 14px}.catalog-grid{gap:9px}
}
.anatomy-panel{margin:0 0 8px;padding:4px 0 8px;border:0;border-radius:0;background:transparent;overflow:hidden}
.detail-pane .anatomy-views{background:#12110f;border:1px solid #ffffff14;border-radius:16px;padding:10px;gap:10px}
.anatomy-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px}
.anatomy-heading h3{font:500 21px var(--display);letter-spacing:-.4px;margin:4px 0 0;color:var(--ink)}
.anatomy-count{font-size:10px;color:var(--muted);border:1px solid var(--line);padding:6px 9px;border-radius:99px;white-space:nowrap}
.anatomy-views{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
.anatomy-figure{min-width:0;margin:0;border:1px solid #ffffff14;border-radius:12px;overflow:hidden;background:#12110f}
.anatomy-art{position:relative;width:100%;aspect-ratio:1024/1536;overflow:hidden}
.anatomy-art>img,.anatomy-art>svg{position:absolute;inset:0;width:100%;height:100%;display:block}
.anatomy-art>img{object-fit:contain}
.anatomy-art>svg{overflow:visible;pointer-events:none}
.anatomy-outline{fill:#c5ced8}
.anatomy-zone{fill:#9aa6b6;stroke:#12110f;stroke-width:1.6;stroke-linejoin:round}
.anatomy-zone.primary{fill:var(--tone);stroke:#12110f}
.anatomy-zone.secondary{fill:var(--tone);stroke:#12110f;opacity:.42}
.catalog-create{margin:0 0 14px}
.muscle-pick .anatomy-art>svg{pointer-events:auto}
.muscle-pick .anatomy-zone{cursor:pointer}
.anatomy-figure figcaption{text-align:center;padding:9px 8px;background:var(--surface-soft);border-top:1px solid var(--line);font-size:10px;letter-spacing:1.1px;text-transform:uppercase;color:var(--muted)}
.anatomy-legend{display:flex;flex-direction:column;gap:10px;margin:16px 0 0;padding:0}
.anatomy-role{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.anatomy-role-name{flex:0 0 132px;font-size:12px;color:var(--muted)}
.anatomy-role ul{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.anatomy-role li{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface-soft);font-size:13px;color:var(--ink)}
.anatomy-dot{width:9px;height:9px;border-radius:50%;flex:none;background:var(--tone,#e9a27c)}
.anatomy-dot.primary{box-shadow:0 0 0 3px color-mix(in srgb, var(--tone,#ed7955) 24%, transparent)}
.anatomy-empty{grid-column:1/-1;color:var(--muted)!important}
.anatomy-note{margin:13px 0 0;color:var(--muted);font-size:10px;line-height:1.5}
@media(max-width:600px){.anatomy-panel{margin:8px 0 16px;padding:0}.anatomy-views{gap:8px;padding:8px}.anatomy-art{transform:scale(1.08)}.anatomy-role{align-items:flex-start}.anatomy-role-name{flex-basis:100%;font-size:12px}.anatomy-role li{font-size:13px}.anatomy-heading h3{font-size:clamp(18px,5vw,22px)}}
:root[data-theme='light'] .detail-pane .anatomy-views,:root[data-theme='light'] .anatomy-figure{background:#f4f5f3;border-color:var(--line)}
:root[data-theme='light'] .anatomy-outline{fill:#3c4656}
:root[data-theme='light'] .anatomy-zone{fill:#7d8b9e;stroke:#f4f6f8}
:root[data-theme='light'] .anatomy-zone.primary,:root[data-theme='light'] .anatomy-zone.secondary{stroke:#f4f6f8}
.date-line{display:flex;align-items:center;gap:6px;min-width:min(100%,180px);flex:1}
.date-line .input{flex:1}
.date-popover{position:fixed;inset:unset;margin:0;z-index:40;width:min(276px,calc(100vw - 16px));padding:12px;border-radius:16px;border:1px solid #ffffff18;background:#1c1a16;color:var(--ink);box-shadow:0 18px 40px #00000066}
.date-line{flex-wrap:wrap}
.date-popover-inline{position:static;flex:1 0 100%;width:100%;margin-top:8px;z-index:2}
.date-popover[hidden]{display:none}
.cal-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.cal-head strong{font-size:14px;text-transform:capitalize}
.cal-head button,.cal-day{border:0;background:transparent;color:inherit}
.cal-week,.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}
.cal-week span{font-size:10px;color:var(--subtle);text-transform:uppercase}
.cal-day{height:32px;border-radius:10px}
.cal-day.is-on{background:var(--accent);color:#1a120c}
.cal-day:disabled{opacity:.3}
.adm-photo{position:relative;overflow:hidden;cursor:pointer}
.user-id-line .text-button{min-height:32px}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
.order-stack{display:grid;gap:12px}
.my-order{border-radius:22px;border:1px solid #ffffff14;background:linear-gradient(165deg,#221f1a,#141210 55%);box-shadow:0 16px 36px #00000040;overflow:hidden}
.my-order-toggle{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:16px;text-align:left}
.my-order-toggle b{font:500 18px/1 var(--display);color:#f0d7a4}
.my-order-toggle i{width:28px;height:28px;display:grid;place-items:center;border-radius:10px;background:#ffffff10;font-style:normal;color:var(--muted)}
.order-mark{width:10px;height:42px;border-radius:99px;background:#f2c56a}
.my-order.is-shipped .order-mark,.my-order.is-handed .order-mark{background:#7eb6ff}
.my-order.is-delivered .order-mark,.my-order.is-accepted .order-mark{background:#9fd86a}
.my-order.is-cancelled .order-mark{background:#ff8f7a}
.order-copy{min-width:0}
.order-copy strong{display:block;font:500 18px/1.2 var(--display);letter-spacing:.03em;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-sheet{display:grid;gap:12px;padding:0 16px 16px}
.order-lines{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.order-lines li{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:14px;background:#100e0c}
.order-total{margin:0;font:500 28px/1 var(--display);color:#f0d7a4}
.order-place{display:grid;gap:4px;color:var(--muted);font-size:13px}
.thread-order{margin:0 0 12px;padding:12px;border-radius:18px;background:#100e0c;border:1px solid #ffffff10}
.thread-order .order-sheet{padding:0}
.support-desk{border-radius:24px}
.support-pane{background:linear-gradient(180deg,#1c1b18,#12171c);border-radius:24px}
.support-bubble{max-width:min(100%,460px);border-radius:18px;padding:12px 14px}
.support-bubble.is-them{background:#202833;border-bottom-left-radius:6px}
.support-bubble.is-mine{margin-left:auto;background:linear-gradient(180deg,#f2c56a,#b88934);color:#1a120c;border-bottom-right-radius:6px}
.support-bubble.is-mine .caption{color:#3a2016}
.ticket-row.is-order{box-shadow:inset 3px 0 0 #f2c56a}
.chip{position:relative}
.chip-count{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:6px;padding:0 5px;border-radius:99px;background:#ff4d57;color:#fff;font-size:11px;font-weight:800;line-height:1}
.ticket-row.is-unread .ticket-copy strong::after{content:'';display:inline-block;width:8px;height:8px;margin-left:8px;border-radius:50%;background:#ff4d57;vertical-align:2px}
.admin-order .order-chat{margin:0 12px 12px}
.shop-tabs .button{border-radius:14px;min-height:40px}
.plan-list{display:grid;gap:10px;padding:0 27px 12px}
.plan-option{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;width:100%;text-align:left;padding:14px 16px;border-radius:16px;border:1px solid var(--line);background:var(--surface-soft);color:inherit}
.plan-option strong{font:500 28px/1 var(--display);grid-row:1 / span 2;align-self:center}
.plan-option small{color:var(--muted);font-size:12px}
.plan-option em{grid-column:1;font-style:normal;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--accent)}
.plan-option.is-best{border-color:#e0b15a88;box-shadow:inset 0 0 0 1px #e0b15a55}
.coach-preview{margin:8px 0 12px;padding-left:18px}
.coach-preview li{margin:4px 0}
.task-date{border:1px solid var(--line);border-radius:16px;margin:0 0 10px;background:var(--surface-soft);overflow:hidden}
.task-date>summary{display:flex;align-items:center;gap:8px;padding:14px 16px;cursor:pointer;list-style:none}
.task-date>summary::-webkit-details-marker{display:none}
.task-date>summary strong{font-size:16px}
.task-date>summary em{font-style:normal;color:var(--accent);font-size:13px;font-weight:700}
.task-date>summary span{margin-left:auto;min-width:22px;height:22px;display:grid;place-items:center;border-radius:99px;background:#ffffff14;font-size:12px}
.task-date .coach-row,.task-date .ticket-row,.task-date .my-order{margin:0 12px 12px}
.coach-inbox{display:flex;width:100%;margin:0 0 12px;padding:12px 14px;border:1px solid #e0b15a55;border-radius:14px;background:#e0b15a18;color:var(--ink);font-weight:700;text-align:left}
.elite-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 16px}
.elite-stat{position:relative;overflow:hidden;padding:16px 18px;border-radius:18px;border:1px solid #e0b15a33;background:radial-gradient(140px 90px at 100% 0%,#e0b15a38,transparent 68%),linear-gradient(165deg,#221f18,#12110f)}
.elite-stat span{display:block;color:var(--muted);font-size:12px;font-weight:650}
.elite-stat strong{display:block;margin-top:8px;font:800 30px/1 var(--display);letter-spacing:-.04em}
.elite-stat small{margin-left:6px;font-size:14px;font-weight:700;color:var(--accent)}
.workout-card{position:relative}
.workout-card::before{content:'';position:absolute;right:-80px;top:-70px;width:280px;height:280px;background:radial-gradient(circle,#e0b15a40,transparent 68%);pointer-events:none}
.calendar-card,.workout-card{border-color:#e0b15a3d}
.catalog-stage{display:grid;grid-template-columns:minmax(250px,320px) minmax(0,1fr);gap:18px;align-items:start}
.catalog-side{position:sticky;top:16px}
.muscle-board{display:grid;gap:8px;margin:0 0 14px}
.muscle-board>.muscle-row{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:52px;padding:12px 14px;border-radius:14px;border:1px solid #e0b15a28;background:linear-gradient(180deg,#1a1814,#12110f);color:var(--ink);font-weight:750;text-align:left}
.muscle-board>.muscle-row small{color:var(--muted);font-size:12px;font-weight:700}
.muscle-board>.muscle-row.active{background:linear-gradient(180deg,#f2c56a,#d4a24a);color:#1a1408;border-color:transparent;box-shadow:0 8px 18px #e0b15a33}
.muscle-board>.muscle-row.active small{color:#1a1408}

@media(max-width:900px){
  .catalog-stage{grid-template-columns:1fr}
  .catalog-side{position:static}
  .elite-stat strong{font-size:22px}
  .workout-card::before{width:160px;height:160px;right:-40px;top:-40px}
}
