:root {
  --ink: #10213b;
  --muted: #65738a;
  --line: #e1eaf5;
  --paper: #f9fbff;
  --sand: #f1f6fd;
  --lime: #6dd4ff;
  --green: #2268ae;
  --forest: #0e2d5c;
  --orange: #5b89ff;
  --violet: #7e9cff;
  --white: #fff;
  --shadow: 0 12px 35px rgba(24, 33, 25, .07);
  font-family: Manrope, Arial, sans-serif;
  color: var(--ink);
  background: #eef5fc;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.auth-loading { min-height:100vh; display:grid; place-items:center; color:var(--muted); font-weight:700; background:var(--paper); }
.real-auth-shell { min-height:100vh; display:grid; grid-template-columns:1.08fr .92fr; background:var(--paper); }
.real-auth-brand { padding:clamp(30px,5vw,72px); background:var(--forest); color:white; display:flex; flex-direction:column; justify-content:space-between; position:relative; overflow:hidden; }
.real-auth-brand:after { content:''; position:absolute; width:430px; height:430px; right:-90px; top:80px; background:url('/optimize-mark.svg') center/contain no-repeat; opacity:.12; transform:rotate(-7deg); }
.real-auth-brand > * { position:relative; z-index:1; }
.real-auth-logo { display:flex; align-items:center; gap:11px; font-size:17px; font-weight:800; letter-spacing:1.7px; }
.real-auth-logo img { width:38px; height:38px; }
.real-auth-brand h1 { font-size:clamp(48px,6vw,86px); }
.real-auth-brand p { color:#c9d9ee; font-size:17px; line-height:1.65; max-width:520px; }
.real-auth-brand small { color:#a9bfdc; }
.real-auth-panel { display:grid; min-width:0; place-items:center; padding:clamp(28px,7vw,90px); }
.real-auth-card { width:100%; max-width:410px; min-width:0; }
.auth-card-mark { width:46px; height:46px; margin-bottom:16px; }
.real-auth-card h2 { margin:7px 0; font-size:30px; letter-spacing:-1.4px; }
.real-auth-card > p { margin:0 0 24px; color:var(--muted); font-size:13px; line-height:1.5; }
.real-auth-card label { display:block; margin-top:14px; }
.real-auth-card label span { display:block; font-size:11px; font-weight:800; margin-bottom:6px; }
.real-auth-card input { width:100%; padding:13px 14px; border:1px solid var(--line); border-radius:10px; outline:none; }
.real-auth-card input:focus { border-color:var(--green); box-shadow:0 0 0 3px rgba(34,104,174,.1); }
.auth-message { margin-top:14px; padding:10px 12px; border-radius:9px; background:#edf5ff; color:#174f89; font-size:11px; line-height:1.45; }
.auth-switch { display:block; margin:16px auto 0; border:0; background:transparent; color:var(--green); font-size:11px; font-weight:800; }
.auth-forgot { display:block; margin:9px 0 0 auto; padding:0; border:0; background:transparent; color:var(--green); font-size:11px; font-weight:800; }
.auth-forgot:hover, .auth-switch:hover { text-decoration:underline; }
.auth-success-mark { display:grid; place-items:center; width:58px; height:58px; margin:0 0 18px; border-radius:18px; background:#edf5ff; color:var(--green); font-size:27px; font-weight:900; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; background: var(--paper); }
.login-visual { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 70px); background: var(--forest); color: white; display: flex; flex-direction: column; justify-content: space-between; }
.login-visual:before { content: ''; position: absolute; width: 560px; height: 560px; border: 1px solid rgba(203,255,62,.45); border-radius: 50%; right: -180px; top: 80px; box-shadow: 0 0 0 55px rgba(203,255,62,.08), 0 0 0 118px rgba(203,255,62,.04); }
.login-visual:after { content: ''; position: absolute; width: 290px; height: 290px; background: var(--orange); border-radius: 50%; left: -80px; bottom: -135px; }
.brand { position:relative; z-index:1; display:flex; align-items:center; }
.brand-logo { display:inline-flex; align-items:center; gap:10px; }
.brand-symbol { width:34px; height:34px; display:block; filter:drop-shadow(0 7px 12px rgba(15,53,99,.16)); }
.brand-wordmark { color:var(--ink); font-size:17px; font-weight:800; letter-spacing:1.7px; line-height:1; }
.login-visual .brand-wordmark { color:white; }
.brand-logo.compact .brand-symbol { width:27px; height:27px; filter:none; }
.login-copy { position: relative; z-index: 1; max-width: 690px; }
.eyebrow { color: #8292a9; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 800; font-size: 10px; }
.login-copy .eyebrow { color: var(--lime); }
h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; letter-spacing: -2.4px; line-height: .98; font-size: clamp(50px, 6.1vw, 91px); margin: 18px 0 24px; }
.login-copy p { font-size: 18px; line-height: 1.65; max-width: 490px; color: #c9d9ee; }
.login-stats { position: relative; z-index: 1; display: flex; gap: 42px; font-size: 12px; color: #bbcee7; }
.login-stats strong { display: block; color: white; font-size: 28px; letter-spacing: -1.5px; }
.login-panel { padding: clamp(32px, 7vw, 95px); display: flex; align-items: center; justify-content: center; }
.login-card { width: 100%; max-width: 400px; }
.login-card h2 { font-size: 28px; letter-spacing: -1.4px; margin: 14px 0 7px; }
.login-card > p { font-size: 14px; color: var(--muted); margin: 0 0 28px; }
.role-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.role-btn { padding: 16px 11px; background: white; border: 1px solid var(--line); color: var(--ink); border-radius: 14px; text-align: left; font-weight: 800; line-height: 1.3; }
.role-btn small { display: block; font-weight: 500; color: var(--muted); margin-top: 3px; }
.role-btn.active { border-color: var(--green); background: #eef7ff; box-shadow: inset 0 0 0 1px var(--green); }
.field-label { font-size: 12px; font-weight: 800; display: block; margin: 18px 0 7px; }
.field, .input { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 13px 14px; outline: none; color: var(--ink); }
.field:focus, .input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,92,69,.1); }
.primary { border: 0; border-radius: 11px; color: var(--ink); background: var(--lime); padding: 13px 17px; font-weight: 800; display: inline-flex; justify-content: center; align-items: center; gap: 8px; transition: transform .18s, box-shadow .18s; }
.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(164,209,34,.24); }
.primary.full { width: 100%; margin-top: 24px; }
.ghost.full { width:100%; }
.ghost, .icon-btn { border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); padding: 11px 13px; font-weight: 700; }
.ghost:hover, .icon-btn:hover { background: var(--sand); }
.tiny-note { text-align: center; color: var(--muted); font-size: 11px; margin-top: 19px; line-height: 1.5; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 246px 1fr; background: var(--paper); }
.sidebar { border-right: 1px solid var(--line); padding: 26px 15px 18px; display: flex; flex-direction: column; background: #fcfdff; }
.sidebar .brand { margin: 0 8px 43px; color: var(--ink); }
.nav-group { margin-bottom: 22px; }
.nav-label { color: #90a0b7; font-size: 10px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; margin: 0 12px 7px; }
.nav-item { border: 0; background: transparent; display: flex; width: 100%; align-items: center; gap: 11px; color: #65738a; font-size: 13px; font-weight: 700; padding: 11px 12px; border-radius: 9px; text-align: left; margin: 1px 0; }
.nav-item:hover { background: var(--sand); color: var(--ink); }
.nav-item.active { background: var(--forest); color: white; }
.nav-icon { width:18px; height:18px; display:grid; place-items:center; flex:none; }
.nav-icon svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.nav-text { min-width:0; }
.sidebar-bottom { margin-top: auto; }
.coach-tip { padding: 13px; background: #eef6ff; border-radius: 12px; font-size: 11px; line-height: 1.5; color: #536d8f; margin: 0 2px 16px; }
.coach-tip strong { display: block; color: var(--ink); font-size: 12px; margin-bottom: 3px; }
.profile { padding: 10px 8px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.avatar { width: 33px; height: 33px; background: #dcecff; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 11px; color: #1c4f89; flex: none; }
.profile-info { line-height: 1.2; min-width: 0; }
.profile-info strong { font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-info span { font-size: 10px; color: var(--muted); }
.profile button { margin-left: auto; padding: 6px; border: 0; background: transparent; color: var(--muted); }
.main { min-width: 0; }
.topbar { height: 78px; padding: 0 clamp(20px, 3.5vw, 52px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: rgba(252,252,250,.86); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); }
.crumb { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.crumb .slash { color: #c6cac4; }
.crumb strong { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.topbar-logout { display:none; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--navy); padding:8px 10px; font-size:10px; font-weight:800; }
.date-chip { color: var(--muted); font-size: 12px; margin-right: 8px; }
.bell { position: relative; font-size: 16px; padding: 9px 11px; }
.bell:after { content: ''; width: 6px; height: 6px; background: var(--orange); border-radius: 50%; position: absolute; top: 7px; right: 8px; border: 1px solid white; }
.content { max-width: 1460px; margin: auto; padding: 34px clamp(20px, 3.5vw, 52px) 55px; }
.page-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 28px; }
.page-head h2 { margin: 4px 0 0; letter-spacing: -1.9px; font-size: 30px; }
.page-head p { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.head-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.hero { background: var(--forest); color: white; padding: clamp(23px, 3.4vw, 45px); position: relative; border-radius: 18px; overflow: hidden; min-height: 254px; display: flex; justify-content: space-between; align-items: end; }
.hero:after { content:''; position:absolute; width:260px; height:260px; right:7%; top:-4px; background:url('optimize-mark.svg') center/contain no-repeat; opacity:.16; transform:rotate(-6deg); filter:saturate(.8); }
.hero:before { content:''; position:absolute; width:360px; height:220px; right:1%; top:16px; background:radial-gradient(ellipse at center, rgba(109,212,255,.16), transparent 68%); pointer-events:none; }
.hero-text { position:relative; z-index: 1; max-width: 550px; }
.hero .eyebrow { color: var(--lime); }
.hero h2 { font-family: 'Playfair Display'; font-size: clamp(32px, 4vw, 53px); line-height: 1; letter-spacing: -1.8px; font-weight: 600; margin: 12px 0; }
.hero p { margin: 0 0 22px; color: #ccdbd2; font-size: 14px; }
.hero .primary { background: var(--lime); }
.hero-meta { position:relative; z-index: 1; min-width: 205px; border-left: 1px solid rgba(255,255,255,.22); padding: 8px 0 8px 25px; font-size: 12px; color: #bcd0e8; }
.hero-meta strong { display: block; color: white; font-size: 17px; margin: 4px 0 14px; }
.hero-meta .progressline { height: 5px; background: rgba(255,255,255,.2); width: 180px; border-radius: 10px; overflow:hidden; }
.hero-meta .progressline i { display:block; height:100%; width: 62%; background: var(--lime); border-radius:inherit; }
.dash-grid { margin-top: 21px; display:grid; grid-template-columns: 1.22fr .78fr; gap: 21px; }
.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.stat { border: 1px solid var(--line); border-radius: 13px; padding: 17px; background: white; }
.stat .stat-label { color: var(--muted); font-size: 11px; font-weight: 700; }
.stat .stat-number { font-size: 28px; letter-spacing: -1.3px; font-weight: 800; margin-top: 8px; }
.stat .stat-trend { font-size: 10px; color: var(--green); font-weight: 800; }
.stat .stat-trend.orange { color: #4876d2; }
.card { border: 1px solid var(--line); background: white; border-radius: 14px; }
.card-head { display:flex; align-items: center; justify-content:space-between; padding: 18px 19px 13px; }
.card-head h3 { font-size: 14px; margin: 0; letter-spacing: -.3px; }
.text-btn { padding: 0; border:0; background: transparent; color: var(--green); font-weight: 800; font-size: 11px; }
.schedule { margin-top: 21px; }
.workout-row { display:grid; grid-template-columns: 42px 1fr auto; gap: 11px; align-items:center; padding: 11px 18px; border-top: 1px solid #eff0ec; }
.day-badge { width:32px; height:32px; display:grid; place-items:center; border-radius: 9px; background: #eaf5ff; color: var(--green); font-size: 11px; font-weight: 800; }
.workout-row h4 { margin:0; font-size: 12px; }
.workout-row p { font-size:10px; color:var(--muted); margin:2px 0 0; }
.dashboard-program { margin-top:21px; overflow:hidden; }
.dashboard-program .card-head p { margin:4px 0 0; color:var(--muted); font-size:10px; }
.workout-row-action { width:100%; grid-template-columns:42px 1fr auto 22px; border:0; border-top:1px solid #eff0ec; background:#fff; color:var(--ink); text-align:left; cursor:pointer; transition:background .18s,transform .18s; }
.workout-row-action:hover { background:#f5f9ff; }
.workout-row-action:active { transform:scale(.995); }
.row-arrow { color:var(--green); font-size:16px; font-weight:900; text-align:right; }
.status { color: var(--muted); font-size:10px; font-weight:700; }
.status.done { color: var(--green); }
.status.now { color:#265da9; background:#eaf3ff; padding:5px 8px; border-radius:8px; }
.right-stack { display:grid; gap: 21px; }
.measure-mini { padding: 0 19px 18px; }
.measure-line { display:flex; align-items:end; justify-content:space-between; }
.measure-line b { font-size:33px; letter-spacing:-1.7px; }
.measure-line span { color:var(--muted); font-size:10px; margin-bottom:6px; }
.spark { width:100%; height:53px; margin:10px 0 5px; }
.legend { display:flex; gap:12px; font-size:10px; color:var(--muted); }
.legend i { display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--green); margin-right:4px; }
.legend i.violet { background:var(--violet); }
.reminder-list { padding: 0 19px 14px; }
.reminder { display:flex; gap:10px; padding: 10px 0; border-top:1px solid #eff0ec; align-items:center; }
.reminder-icon { width:30px; height:30px; display:grid; place-items:center; border-radius:8px; background:#edf5ff; font-size:14px; }
.reminder h4 { margin:0; font-size:11px; }
.reminder p { margin:2px 0 0; font-size:10px; color:var(--muted); }
.reminder .when { font-size:10px; font-weight:700; margin-left:auto; color:var(--green); white-space:nowrap; }
.program-grid { display:grid; grid-template-columns: repeat(5, minmax(150px,1fr)); gap:12px; }
.day-card { border:1px solid var(--line); background:white; border-radius:13px; padding:16px; min-height:190px; position:relative; transition:.2s; }
.day-card:hover { border-color:#a9b3a7; transform:translateY(-2px); box-shadow:var(--shadow); }
.day-card .program-day { color:var(--muted); text-transform:uppercase; font-size:9px; letter-spacing:1.2px; font-weight:800; }
.day-card h3 { font-size:14px; margin:8px 0 6px; letter-spacing:-.4px; }
.day-card p { font-size:10px; line-height:1.55; color:var(--muted); margin:0; }
.day-card .card-tag { position:absolute; bottom:14px; left:16px; font-size:9px; font-weight:800; background:#eaf5ff; color:var(--green); border-radius:5px; padding:4px 6px; }
.day-card.current { border-color:var(--orange); box-shadow:inset 0 0 0 1px var(--orange); }
.day-card.current .card-tag { color:#265da9; background:#e8f3ff; }
.day-card.completed-day { border-color:#9fc7eb; background:#f7fbff; }
.day-card .card-tag.done { color:#17629e; background:#dff1ff; }
.last-workout-summary { min-width:220px; padding:10px 13px; border:1px solid #d8e5f2; border-radius:11px; background:#f4f8fc; }
.last-workout-summary span,.last-workout-summary strong,.last-workout-summary small { display:block; }
.last-workout-summary span { color:var(--muted); font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.4px; }
.last-workout-summary strong { margin-top:3px; color:var(--navy); font-size:14px; }
.last-workout-summary small { margin-top:2px; color:var(--muted); font-size:10px; }
.session-layout { margin-top:24px; display:grid; grid-template-columns: 1fr 274px; gap:21px; align-items:start; }
.session-card { overflow:hidden; }
.session-heading { background:var(--forest); padding:25px; color:white; display:flex; justify-content:space-between; align-items:center; }
.session-heading h3 { margin:4px 0 0; font-size:23px; letter-spacing:-1px; }
.session-heading .eyebrow { color:var(--lime); }
.time-chip { font-family:'DM Mono'; font-size:11px; color:var(--lime); border:1px solid rgba(109,212,255,.45); padding:7px 9px; border-radius:8px; min-width:86px; text-align:center; }
.time-chip.rest-active { background:rgba(109,212,255,.14); animation:pulse 1.6s infinite; }
.time-chip.rest-done { color:#fff; background:#2f7fd0; border-color:#2f7fd0; }
.exercise { padding:18px 21px; border-bottom:1px solid var(--line); }
.exercise-top { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:13px; }
.exercise h4 { margin:0; font-size:13px; }
.exercise small { color:var(--muted); font-size:10px; }
.sets { display:grid; grid-template-columns: 34px 1.1fr 1fr 1fr .7fr .88fr; gap:8px; align-items:center; }
.set-row { grid-column:1 / -1; display:grid; grid-template-columns:34px 1.1fr 1fr 1fr .7fr .88fr; gap:8px; align-items:center; padding:4px 6px; margin:0 -6px; border-radius:9px; transition:background .2s, box-shadow .2s; }
.set-row.is-complete { background:#e7eef7; box-shadow:inset 3px 0 0 var(--green); }
.set-row.is-complete .set-input { background:#f3f7fc; border-color:#cbdced; }
.set-row.is-complete .set-number,.set-row.is-complete .last { color:#174f89; font-weight:800; }
.set-context { grid-column:1 / -1; display:flex; align-items:center; gap:12px; margin-top:9px; padding:7px 9px; border-radius:8px; background:#f4f8fc; color:#5f7187; font-size:10px; }
.set-context strong { color:#174f89; }
.set-context span:last-child { margin-left:auto; color:#334b67; font-weight:700; }
.set-head { font-size:9px; color:var(--muted); font-weight:800; text-transform:uppercase; letter-spacing:.5px; padding-bottom:3px; }
.set-number { font-family:'DM Mono'; font-size:11px; color:var(--green); font-weight:500; }
.set-input { min-width:0; border:1px solid #e6e8e2; background:#fbfcf9; border-radius:7px; padding:8px; font-size:11px; color:var(--ink); }
.set-input:focus::placeholder { color:transparent; }
.exercise-technique { display:flex; align-items:end; justify-content:space-between; gap:12px; margin:12px 0 15px; padding:10px 12px; border:1px solid #d8e5f2; border-radius:10px; background:#f5f9fe; }
.exercise-technique label { flex:1; }
.exercise-technique label > span { display:block; margin-bottom:5px; color:#526984; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.45px; }
.exercise-technique .input { padding:8px 10px; font-size:12px; }
.exercise-technique > small { max-width:240px; color:var(--muted); font-size:10px; line-height:1.45; }
.technique-badge { display:inline-block; margin:7px 0 0; padding:4px 7px; border-radius:6px; background:#e4f3ff; color:#17629e; font-size:9px; font-weight:800; }
.history-exercise h4 .technique-badge { margin:0 0 0 8px; vertical-align:middle; }
.last { color:var(--muted); font-size:10px; text-align:right; }
.set-confirm { border:0; border-radius:7px; background:#e9f5ff; color:var(--green); padding:8px 6px; font-size:10px; font-weight:800; white-space:nowrap; }
.set-confirm:hover { background:#d8edff; }
.set-confirm.is-saved { background:#d8eaff; color:#154f8e; box-shadow:inset 0 0 0 1px #91bce8; }
.set-confirm.is-saved:hover { background:#c9e2ff; }
.set-confirm.just-saved { background:#276eb7; color:white; }
.session-footer { padding:18px 21px; display:flex; justify-content:space-between; align-items:center; }
.session-footer .muted { font-size:10px; color:var(--muted); max-width:330px; }
.session-footer-actions { display:flex; align-items:center; gap:9px; }
.danger,.danger-ghost { border-radius:9px; padding:11px 14px; font-weight:800; }
.danger { border:1px solid #b42318; background:#b42318; color:#fff; }
.danger-ghost { border:1px solid #efc2be; background:#fff; color:#9f241c; }
.session-note { padding:19px; }
.session-note textarea { width:100%; min-height:104px; resize:vertical; border:1px solid var(--line); border-radius:9px; padding:11px; font-size:11px; outline:none; }
.session-note textarea:focus { border-color:var(--green); }
.exercise-note-editor { margin-top:16px; padding:13px; border:1px solid #dbe6f2; border-radius:10px; background:#f8fbff; }
.exercise-note-editor label { display:block; margin-bottom:6px; color:#344e6b; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.45px; }
.exercise-note-editor textarea { width:100%; min-height:70px; resize:vertical; border:1px solid #d8e2ed; border-radius:8px; padding:10px; background:#fff; color:var(--ink); font:inherit; font-size:12px; line-height:1.5; outline:none; }
.exercise-note-editor textarea:focus { border-color:var(--green); box-shadow:0 0 0 3px rgba(34,104,174,.1); }
.exercise-note-editor .text-btn { margin-top:8px; }
.preview-mode .session-heading { background:#173e70; }
.preview-exercise { background:#fbfdff; }
.preview-sets { display:grid; gap:6px; }
.preview-set { display:grid; grid-template-columns:60px repeat(3,1fr); gap:10px; align-items:center; padding:9px 11px; border:1px solid #dde8f4; border-radius:8px; background:white; color:var(--muted); font-size:10px; }
.preview-set strong { color:var(--ink); font-size:11px; }
.exercise-empty { padding:12px; border:1px dashed #cbd9e8; border-radius:8px; color:var(--muted); font-size:10px; line-height:1.5; }
.preview-help { padding:20px; }
.preview-help h3 { margin:0 0 7px; font-size:14px; }
.preview-help p { margin:0; color:var(--muted); font-size:11px; line-height:1.6; }
.previous-card { padding:4px 18px 15px; }
.prev-stat { padding:13px 0; border-bottom:1px solid #eff0ec; }
.prev-stat span { display:block; color:var(--muted); font-size:10px; }
.prev-stat strong { font-size:13px; margin-top:3px; display:block; }
.calendar-layout { display:grid; grid-template-columns: minmax(0, 1fr) 310px; gap:21px; }
.calendar-card { padding:21px; }
.month-nav { display:flex; align-items:center; justify-content:space-between; margin-bottom:17px; }
.month-nav h3 { margin:0; font-size:17px; letter-spacing:-.6px; }
.month-actions { display:flex; gap:4px; }
.month-actions button { border:0; background:#f1f2ec; border-radius:7px; width:28px; height:28px; font-weight:800; }
.month-actions button:disabled { cursor:default; opacity:.45; }
.plan-warning { margin:0 0 14px; padding:10px 12px; border-radius:9px; background:#edf5ff; color:#1c4f89; font-size:11px; line-height:1.45; font-weight:700; }
.calendar-grid { display:grid; grid-template-columns:repeat(7,1fr); border-top:1px solid var(--line); border-left:1px solid var(--line); }
.dow { color:var(--muted); text-align:center; font-size:9px; text-transform:uppercase; font-weight:800; letter-spacing:.8px; padding:10px 2px; border-bottom:1px solid var(--line); border-right:1px solid var(--line); }
.cal-day { position:relative; aspect-ratio: 1.25 / 1; padding:9px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); background:white; min-width:0; text-align:left; color:var(--ink); }
button.cal-day:hover { background:#f6f8f2; }
.cal-day.off { color:#bac0b8; background:#fcfcfb; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--green); z-index:1; }
.date-no { font: 500 10px 'DM Mono'; }
.event-dot { position:absolute; left:9px; bottom:8px; width:7px; height:7px; background:var(--green); border-radius:50%; box-shadow:10px 0 0 var(--violet); }
.event-dot.workout { box-shadow:none; }
.event-dot.measure { background:var(--violet); box-shadow:none; }
.event-dot.photo { background:#5fcdf5; box-shadow:none; }
.event-dot.rest { background:var(--lime); box-shadow:none; border:1px solid var(--green); }
.event-dot.rest-measure { background:var(--lime); box-shadow:10px 0 0 var(--violet); border:1px solid var(--green); }
.cal-day.selected { background:#eaf5ff; }
.event-detail { padding:20px; }
.detail-empty { color:var(--muted); font-size:12px; padding: 22px 0; line-height:1.6; }
.event-date { color:var(--muted); font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.7px; }
.event-detail h3 { font-size:19px; letter-spacing:-.8px; margin:6px 0 4px; }
.event-detail > p { margin:0 0 17px; color:var(--muted); font-size:11px; }
.detail-kpi { display:grid; grid-template-columns:1fr 1fr; background:var(--sand); border-radius:9px; overflow:hidden; margin:14px 0; }
.detail-kpi div { padding:11px; font-size:10px; color:var(--muted); }
.detail-kpi div+div { border-left:1px solid #dfe9f6; }
.detail-kpi strong { display:block; font-size:13px; color:var(--ink); margin-top:3px; }
.detail-list { list-style:none; padding:0; margin:0; }
.detail-list li { padding:9px 0; border-top:1px solid var(--line); display:flex; justify-content:space-between; font-size:11px; }
.detail-list small { color:var(--muted); }
.measure-layout { display:grid; grid-template-columns:1.1fr .9fr; gap:21px; }
.metric-card { padding: 21px; min-height: 300px; }
.metric-card .metric-main { display:flex; align-items:flex-end; gap:9px; margin:23px 0 12px; }
.metric-main b { font-size:42px; letter-spacing:-2px; line-height:1; }
.metric-main span { color:var(--muted); font-size:11px; padding-bottom:5px; }
.change { color:var(--green); font-size:11px; font-weight:800; }
.chart-wrap { height:150px; margin:15px -5px 0; position:relative; }
.measure-chart-empty { height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; border:1px dashed #dbe5f0; border-radius:10px; background:#fafcff; color:var(--muted); text-align:center; }
.measure-chart-empty strong { color:var(--ink); font-size:11px; }
.measure-chart-empty span { margin-top:4px; font-size:9px; }
.measure-chart-empty.compact { min-height:53px; margin:10px 0 5px; }
.chart-wrap:has(.measure-chart-empty) + .chart-labels { visibility:hidden; }
.big-chart { width:100%; height:100%; overflow:visible; }
.chart-labels { display:flex; justify-content:space-between; color:var(--muted); font:9px 'DM Mono'; margin:2px 4px; }
.circ-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:9px; margin-top:16px; }
.circ { padding:13px; border:1px solid var(--line); border-radius:10px; }
.circ span { display:block; font-size:10px; color:var(--muted); }
.circ b { display:block; margin-top:5px; font-size:16px; letter-spacing:-.6px; }
.circ em { color:var(--green); font-size:9px; font-style:normal; font-weight:800; }
.history-table { margin-top:21px; overflow:hidden; }
.table-row { display:grid; grid-template-columns:1.25fr repeat(4,1fr); border-top:1px solid var(--line); padding: 11px 18px; gap:8px; font-size:11px; }
.table-row.head { border-top:0; color:var(--muted); font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.5px; background:#fcfcfa; }
.table-row .up { color:var(--green); font-weight:800; }
.body-overview-grid { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(300px,.92fr); gap:21px; align-items:stretch; }
.body-overview-grid .card-head h3,.circumference-summary .card-head h3 { margin:0; }
.body-overview-grid .card-head p,.circumference-summary .card-head p { margin:4px 0 0; color:var(--muted); font-size:10px; }
.photo-overview { padding:21px; min-height:300px; }
.progress-photo-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:16px; }
.progress-photo-grid.compact { grid-template-columns:repeat(3,minmax(0,1fr)); }
.progress-photo { min-width:0; padding:0; aspect-ratio:4 / 5; overflow:hidden; border:1px solid #d7e4f2; border-radius:12px; background:#eef5fc; cursor:pointer; }
.progress-photo img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .2s; }
.progress-photo:hover img { transform:scale(1.025); }
.progress-photo.unavailable { display:grid; place-items:center; padding:10px; color:var(--muted); font-size:9px; text-align:center; }
.photo-empty { min-height:215px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:22px; border:1px dashed #cadaeb; border-radius:12px; background:#f8fbff; text-align:center; }
.photo-empty > span { display:grid; place-items:center; width:38px; height:38px; margin-bottom:10px; border-radius:12px; background:#e3f3ff; color:var(--green); font-size:22px; }
.photo-empty strong { font-size:13px; }
.photo-empty p { max-width:260px; margin:6px 0 15px; color:var(--muted); font-size:10px; line-height:1.5; }
.circumference-summary { margin-top:21px; padding-bottom:20px; }
.circumference-summary .circ-grid { padding:0 20px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.checkin-history { margin-top:30px; }
.section-title { display:flex; align-items:end; justify-content:space-between; margin-bottom:14px; }
.section-title h3 { margin:5px 0 0; font-size:20px; letter-spacing:-.6px; }
.section-title p { margin:4px 0 0; color:var(--muted); font-size:11px; }
.checkin-list { display:grid; gap:14px; }
.checkin-entry { padding:18px; }
.checkin-entry-head { display:flex; justify-content:space-between; align-items:start; gap:14px; }
.checkin-entry-head h3 { margin:5px 0 0; font-size:16px; }
.checkin-entry .progress-photo-grid { max-width:620px; grid-template-columns:repeat(auto-fill,minmax(112px,150px)); }
.checkin-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(105px,1fr)); gap:8px; margin-top:15px; }
.checkin-metrics > div { padding:10px 11px; border-radius:9px; background:#f3f7fc; }
.checkin-metrics span,.checkin-metrics strong { display:block; }
.checkin-metrics span { color:var(--muted); font-size:9px; }
.checkin-metrics strong { margin-top:3px; font-size:11px; }
.checkin-note { margin-top:14px; padding:10px 12px; border-left:3px solid #66c9f2; border-radius:0 8px 8px 0; background:#f5faff; }
.checkin-note p { margin:0; color:var(--muted); font-size:10px; line-height:1.55; }
.checkin-note p+p { margin-top:5px; }
.checkin-empty { min-height:170px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:28px; border:1px dashed #cadaeb; border-radius:13px; background:#fbfdff; color:var(--muted); text-align:center; }
.checkin-empty strong { color:var(--ink); font-size:13px; }
.checkin-empty span { max-width:380px; margin-top:5px; font-size:10px; line-height:1.5; }
.checkin-photo-field { margin-bottom:17px; }
.checkin-photo-field > label { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:125px; padding:18px; border:1px dashed #a9c9e8; border-radius:12px; background:#f4f9ff; color:var(--ink); text-align:center; cursor:pointer; }
.checkin-photo-field > label:hover { border-color:var(--green); background:#edf7ff; }
.photo-upload-icon { display:grid; place-items:center; width:34px; height:34px; margin-bottom:8px; border-radius:10px; background:var(--forest); color:#fff; font-size:19px; }
.checkin-photo-field small { margin-top:4px; color:var(--muted); font-size:9px; }
#measure-photo { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.photo-upload-preview { display:flex; align-items:center; gap:10px; min-height:36px; margin-top:8px; color:var(--muted); font-size:10px; }
.photo-upload-preview img { width:54px; height:54px; object-fit:cover; border-radius:9px; border:1px solid var(--line); }
.calendar-photo-block { margin-top:16px; padding-top:12px; border-top:1px solid var(--line); }
.calendar-photo-block .card-head { padding:0; }
.calendar-photo-block .card-head h4 { margin:0; font-size:11px; }
.calendar-photo-block .card-head span { color:var(--muted); font-size:9px; }
.calendar-photo-block .progress-photo-grid { grid-template-columns:repeat(3,1fr); gap:6px; }
.progress-photo-modal { width:min(760px,100%); }
.progress-photo-modal .modal-body > img { display:block; width:100%; max-height:68vh; object-fit:contain; border-radius:12px; background:#eff4fa; }
.training-stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:21px; }
.training-stat { min-width:0; padding:17px 18px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.training-stat > span { display:block; color:var(--muted); font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.5px; }
.training-stat strong { display:block; margin:8px 0 5px; color:var(--navy); font-size:27px; line-height:1; letter-spacing:-1.2px; }
.training-stat small { display:block; color:var(--muted); font-size:9px; line-height:1.4; }
.progress-layout { display:grid; grid-template-columns:1fr 1fr; gap:21px; }
.progress-card { min-width:0; padding:21px; }
.progress-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.progress-card-head h3,.training-insight h3 { margin:4px 0 0; font-size:16px; letter-spacing:-.5px; }
.mini-label { color:var(--muted); font-size:9px; font-weight:800; letter-spacing:.7px; text-transform:uppercase; }
.progress-badge { flex:0 0 auto; padding:5px 7px; border-radius:7px; background:#f0f4f9; color:var(--muted); font-size:9px; font-weight:800; }
.progress-badge.positive { background:#e8f5ff; color:var(--green); }
.exercise-filter { width:min(210px,48%); padding:8px 9px; font-size:10px; }
.progress-main-value { display:flex; align-items:baseline; gap:8px; margin:20px 0 8px; }
.progress-main-value strong { color:var(--navy); font-size:30px; letter-spacing:-1.4px; }
.progress-main-value span { color:var(--muted); font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.training-chart { width:100%; height:190px; overflow:visible; }
.training-chart-labels { display:flex; justify-content:space-between; min-height:12px; color:var(--muted); font:9px 'DM Mono'; }
.training-chart-empty { height:202px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; border:1px dashed var(--line); border-radius:11px; background:#fafcff; }
.training-chart-empty strong { font-size:12px; }
.training-chart-empty span { max-width:280px; margin-top:5px; color:var(--muted); font-size:10px; line-height:1.5; }
.progress-bottom { display:grid; grid-template-columns:.8fr 1.2fr; gap:21px; margin-top:21px; }
.training-insight { padding:22px; background:linear-gradient(145deg,#123868,#174b83); color:#fff; border:0; }
.training-insight .mini-label { color:#8ddcff; }
.training-insight p { margin:12px 0 19px; color:#d3e2f3; font-size:11px; line-height:1.65; }
.insight-legend { display:grid; gap:8px; color:#c2d4e8; font-size:9px; }
.insight-legend i { display:inline-block; width:6px; height:6px; margin-right:6px; border-radius:50%; background:var(--lime); }
.recent-training { overflow:hidden; }
.recent-training-row { width:100%; display:grid; grid-template-columns:1fr auto minmax(70px,auto); gap:15px; align-items:center; padding:12px 18px; border:0; border-top:1px solid var(--line); background:#fff; color:var(--ink); text-align:left; }
.recent-training-row:hover { background:#f5f9fe; }
.recent-training-row strong,.recent-training-row small { display:block; }
.recent-training-row strong { font-size:11px; }
.recent-training-row small,.recent-training-row > span:nth-child(2) { margin-top:3px; color:var(--muted); font-size:9px; }
.recent-training-row b { color:var(--green); font-size:11px; text-align:right; }
.training-list-empty { padding:28px 18px; border-top:1px solid var(--line); color:var(--muted); font-size:11px; text-align:center; }
.coach-layout { display:grid; grid-template-columns: 270px minmax(0,1fr); gap:21px; }
.coach-mobile-picker { display:none; }
.client-list { overflow:hidden; }
.client-search { padding:0 14px 14px; }
.client-search input { padding:9px 11px; font-size:11px; }
.client { width:100%; padding:13px 16px; border:0; border-top:1px solid #e9eff7; display:flex; gap:10px; align-items:center; cursor:pointer; text-align:left; background:white; color:var(--ink); }
.client:hover,.client.selected { background:#edf6ff; }
.client .avatar { width:30px; height:30px; }
.client strong { display:block; font-size:11px; }
.client span { font-size:10px; color:var(--muted); }
.client .online { margin-left:auto; width:6px; height:6px; background:#4f9df0; border-radius:50%; }
.coach-editor { padding:24px; }
.client-top { display:flex; justify-content:space-between; align-items:center; gap:14px; border-bottom:1px solid var(--line); padding-bottom:19px; }
.client-top-info { display:flex; gap:12px; align-items:center; }
.client-top h3 { margin:0; font-size:18px; letter-spacing:-.7px; }
.client-top p { margin:3px 0 0; color:var(--muted); font-size:10px; }
.coach-progress-tabs { display:flex; width:fit-content; gap:4px; margin:0 0 20px; padding:4px; border:1px solid #dbe7f4; border-radius:11px; background:#f3f7fc; }
.coach-progress-tabs.compact { flex:0 0 auto; margin:0; }
.coach-progress-tab { border:0; border-radius:8px; padding:9px 12px; background:transparent; color:var(--muted); font-size:10px; font-weight:800; white-space:nowrap; }
.coach-progress-tab:hover { color:var(--green); background:#e8f3ff; }
.coach-progress-tab.active { color:#fff; background:var(--green); box-shadow:0 4px 10px rgba(34,104,174,.18); }
.client-picker { display:flex; flex-wrap:wrap; gap:8px; margin:-8px 0 20px; }
.client-picker-item { display:flex; align-items:center; gap:8px; border:1px solid var(--line); background:white; color:var(--ink); border-radius:10px; padding:8px 10px; text-align:left; }
.client-picker-item:hover,.client-picker-item.selected { border-color:var(--green); background:#edf6ff; }
.client-picker-item .avatar { width:26px; height:26px; font-size:9px; }
.client-picker-item strong { display:block; font-size:10px; }
.client-picker-item small { color:var(--muted); display:block; font-size:9px; margin-top:2px; }
.coach-settings { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; margin:16px 0 2px; padding:14px; border-radius:10px; background:#f4f8fe; }
.coach-settings label { min-width:0; }
.coach-settings label span { display:block; color:var(--muted); font-size:9px; font-weight:800; letter-spacing:.5px; text-transform:uppercase; margin-bottom:5px; }
.coach-settings .input { padding:9px; font-size:11px; }
.edit-head { color:var(--muted); font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.5px; }
.tabs { display:flex; gap:4px; border-bottom:1px solid var(--line); padding-top:17px; overflow-x:auto; }
.tab { white-space:nowrap; padding:10px 11px; border:0; background:transparent; color:var(--muted); font-weight:800; font-size:10px; border-bottom:2px solid transparent; }
.tab.active { color:var(--green); border-bottom-color:var(--green); }
.editor-info { padding:17px 0 12px; display:flex; justify-content:space-between; align-items:center; }
.editor-info h4 { margin:0; font-size:14px; }
.editor-info p { margin:3px 0 0; font-size:10px; color:var(--muted); }
.edit-exercise { display:grid; grid-template-columns: 1.25fr .42fr .42fr .45fr .9fr 32px; gap:7px; margin:8px 0; }
.edit-exercise .input { padding:9px; border-radius:7px; font-size:11px; }
.remove-ex { border:0; background:#edf4ff; color:#396eb9; border-radius:7px; font-size:16px; }
.coach-exercise-list { display:grid; gap:13px; }
.coach-exercise-card { border:1px solid #dce7f2; border-radius:12px; padding:13px; background:#fbfdff; }
.coach-exercise-main { display:grid; grid-template-columns:minmax(180px,1.5fr) 105px 115px 34px; gap:8px; align-items:end; }
.coach-exercise-main label > span,.superset-config > span { display:block; margin:0 0 5px; color:var(--muted); font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.45px; }
.coach-exercise-main .input,.coach-set-config .input { padding:9px; border-radius:7px; font-size:11px; }
.coach-exercise-main .remove-ex { height:34px; }
.coach-set-list { margin-top:12px; border-top:1px solid #e3ebf4; padding-top:10px; }
.coach-set-head,.coach-set-config { display:grid; grid-template-columns:44px minmax(110px,.7fr) minmax(170px,1fr); gap:8px; align-items:center; }
.coach-set-head { margin-bottom:5px; color:var(--muted); font-size:8px; font-weight:800; text-transform:uppercase; letter-spacing:.45px; }
.coach-set-config { padding:6px 0; border-top:1px solid #eef3f8; }
.coach-set-number { display:grid; place-items:center; width:30px; height:30px; border-radius:8px; background:#e9f4ff; color:#17629e; font-family:'DM Mono'; font-size:10px; font-weight:700; }
.superset-config { display:none; grid-column:2 / -1; padding:9px; border-radius:8px; background:#eaf5ff; }
.superset-config.is-visible { display:block; }
.coach-insights { margin-top:20px; padding:15px; border-radius:10px; background:#eef6ff; display:grid; grid-template-columns:repeat(3,1fr); gap:15px; }
.coach-insights span { color:var(--muted); font-size:10px; display:block; }
.coach-insights b { margin-top:4px; display:block; font-size:13px; }
.coach-calendar-section { margin:24px -24px -24px; padding:24px; border-top:1px solid var(--line); background:#fbfdff; border-radius:0 0 14px 14px; }
.coach-calendar-section > .card-head { padding:0 0 18px; gap:16px; }
.coach-calendar-section > .card-head p { margin:4px 0 0; color:var(--muted); font-size:10px; }
.coach-agenda-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(220px,.65fr); gap:20px; align-items:start; }
.coach-agenda-layout .calendar-card { padding:0; }
.coach-dots { position:absolute; left:8px; bottom:7px; display:flex; gap:4px; }
.coach-dots i,.coach-calendar-legend i { width:6px; height:6px; border-radius:50%; display:inline-block; background:var(--green); }
.coach-dots i.measure,.coach-calendar-legend i.measure { background:var(--violet); }
.coach-dots i.photo-dot,.coach-calendar-legend i.photo-dot { background:#5fcdf5; }
.coach-dots i.rest-dot,.coach-calendar-legend i.rest-dot { background:var(--lime); box-shadow:inset 0 0 0 1px var(--green); }
.coach-dots i.reminder-dot,.coach-calendar-legend i.reminder-dot { background:var(--orange); }
.coach-calendar-legend { display:flex; flex-wrap:wrap; gap:12px; margin-top:10px; color:var(--muted); font-size:9px; }
.coach-calendar-legend span { display:flex; align-items:center; gap:5px; }
.coach-agenda-list { border:1px solid var(--line); border-radius:11px; background:#fff; padding:14px; }
.coach-agenda-list h4 { margin:0 0 8px; font-size:12px; }
.coach-day-detail { padding:13px; margin-bottom:15px; border-radius:10px; background:#edf5ff; border:1px solid #d8e7f6; }
.coach-day-detail h4 { margin:5px 0 4px; font-size:13px; }
.coach-day-detail p { margin:0 0 10px; color:var(--muted); font-size:10px; line-height:1.45; }
.coach-day-detail.empty { background:#fbfcfd; }
.coach-agenda-list .agenda-title { padding-top:13px; border-top:1px solid var(--line); }
.agenda-item { display:grid; grid-template-columns:44px 1fr; gap:9px; padding:10px 0; border-top:1px solid var(--line); }
.agenda-item > span { color:var(--green); font:600 9px 'DM Mono'; text-transform:uppercase; }
.agenda-item strong,.agenda-item small { display:block; }
.agenda-item strong { font-size:10px; }
.agenda-item small { color:var(--muted); font-size:9px; margin-top:2px; line-height:1.4; }
.modal-wrap { position:fixed; inset:0; background:rgba(13,28,21,.45); display:grid; place-items:center; z-index:20; padding:18px; backdrop-filter:blur(2px); animation: fade .15s; }
.modal { width:min(570px, 100%); max-height:calc(100vh - 36px); overflow:auto; background:white; border-radius:16px; box-shadow:0 25px 70px rgba(0,0,0,.25); }
.modal-head { padding:20px 21px 14px; display:flex; justify-content:space-between; align-items:start; }
.modal-head h3 { margin:0; font-size:19px; letter-spacing:-.8px; }
.modal-head p { margin:4px 0 0; color:var(--muted); font-size:11px; }
.close { border:0; background:#f1f2ec; border-radius:7px; width:28px; height:28px; font-size:17px; line-height:1; }
.modal-body { padding:0 21px 21px; }
.modal-info { margin-top:14px; padding:12px; border-radius:9px; background:#edf5ff; display:flex; justify-content:space-between; gap:12px; font-size:10px; color:var(--muted); }
.modal-info strong { color:var(--ink); }
.start-confirm-summary { display:flex; align-items:flex-start; gap:13px; padding:16px; border:1px solid #d7e5f3; border-radius:12px; background:#f5f9fe; }
.start-confirm-summary .day-badge { flex:0 0 auto; }
.start-confirm-summary strong { font-size:14px; }
.start-confirm-summary p { margin:4px 0 0; color:var(--muted); font-size:11px; line-height:1.55; }
.dashboard-workout-date { display:block; margin-top:14px; }
.workout-history-modal { width:min(720px, 100%); }
.history-exercise { margin-top:14px; }
.history-exercise h4 { margin:0 0 7px; font-size:12px; }
.history-set { display:grid; grid-template-columns:60px repeat(3,1fr); gap:10px; padding:9px 11px; border-top:1px solid var(--line); font-size:10px; color:var(--muted); }
.history-set strong { color:var(--ink); }
.history-set > span:first-child small,.preview-set > span:first-child small { display:block; margin-top:3px; color:#2268ae; font-size:8px; font-weight:800; line-height:1.3; }
.history-exercise-note { margin-top:9px; padding:10px 11px; border-left:3px solid #6dd4ff; border-radius:0 8px 8px 0; background:#f2f8fd; }
.history-exercise-note strong { font-size:9px; color:#174f89; text-transform:uppercase; letter-spacing:.4px; }
.history-exercise-note p { margin:4px 0 0; color:#536b84; font-size:10px; line-height:1.5; white-space:pre-wrap; }
.history-note { margin:16px 0; padding:12px; border-radius:9px; background:#f6f8fb; }
.history-note strong { font-size:11px; }
.history-note p { margin:4px 0 0; color:var(--muted); font-size:11px; line-height:1.5; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.form-grid .field-label { margin:3px 0 6px; }
.modal-footer { padding:15px 21px 20px; display:flex; justify-content:flex-end; gap:9px; }
.toast { position:fixed; right:20px; bottom:20px; z-index:30; background:var(--forest); color:white; border-radius:11px; padding:13px 16px; font-size:12px; font-weight:700; box-shadow:var(--shadow); animation: toast .25s; }
.empty-coach { min-height:430px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:14px; padding:56px 24px; }
.empty-coach > img { width:62px; height:62px; margin-bottom:8px; }
.empty-coach > h3 { margin:0; font-size:25px; color:var(--navy); }
.empty-coach > p { max-width:520px; margin:0 0 8px; color:var(--muted); line-height:1.7; }
.auto-connect-status { display:inline-flex; align-items:center; gap:7px; padding:8px 11px; border-radius:999px; background:#eaf5ff; color:var(--green); font-size:10px; font-weight:900; }
.auto-connect-status:before { content:''; width:7px; height:7px; border-radius:50%; background:var(--green); }
.awaiting-plan { min-height:420px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:54px 28px; background:linear-gradient(145deg,#fff 0%,#f4f8fe 100%); }
.awaiting-icon { display:grid; place-items:center; width:42px; height:42px; margin-bottom:18px; border-radius:13px; background:var(--forest); color:var(--lime); font-size:19px; font-weight:900; box-shadow:0 8px 18px rgba(14,45,92,.14); }
.awaiting-plan > h3 { margin:8px 0 10px; color:var(--forest); font-size:24px; }
.awaiting-plan > p { max-width:560px; margin:0; color:var(--muted); font-size:14px; line-height:1.65; }
.awaiting-actions { display:flex; gap:10px; margin-top:24px; }
.program-archive { margin:24px -24px 0; padding:22px 24px; border-top:1px solid var(--line); background:#f7faff; }
.program-archive > .card-head { padding:0 0 12px; }
.program-archive > .card-head p { margin:4px 0 0; color:var(--muted); font-size:10px; }
.archive-row { width:100%; display:grid; grid-template-columns:minmax(150px,1fr) auto auto; align-items:center; gap:18px; padding:12px 0; border:0; border-top:1px solid var(--line); background:transparent; color:var(--muted); font:inherit; font-size:10px; text-align:left; cursor:pointer; }
.archive-row:hover { color:var(--green); }
.archive-row strong,.archive-row small { display:block; }
.archive-row strong { color:var(--ink); font-size:11px; margin-bottom:3px; }
.archive-open { color:var(--green); font-weight:800; white-space:nowrap; }
.archive-period { white-space:nowrap; }
.archive-empty { padding:15px; border:1px dashed #c9d9ef; border-radius:9px; color:var(--muted); font-size:10px; text-align:center; }
.archive-list-modal { padding-top:8px; }
.archived-program-modal { width:min(820px,100%); }
.archive-program-days { display:grid; gap:13px; }
.archive-day-detail { display:grid; grid-template-columns:170px 1fr; gap:20px; padding:16px; border:1px solid var(--line); border-radius:12px; background:#f8fbff; }
.archive-day-detail > div:first-child > span { color:var(--green); font-size:9px; font-weight:900; letter-spacing:.8px; text-transform:uppercase; }
.archive-day-detail h4 { margin:5px 0 3px; font-size:15px; }
.archive-day-detail p { margin:0; color:var(--muted); font-size:10px; }
.archive-exercise-row { display:flex; justify-content:space-between; gap:14px; padding:8px 0; border-top:1px solid var(--line); font-size:10px; }
.archive-exercise-row:first-child { border-top:0; }
.archive-exercise-row span { color:var(--muted); text-align:right; }
.progress-scope { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:-3px 0 20px; padding:14px 16px; border:1px solid #dce8f7; border-radius:12px; background:#f7faff; }
.progress-scope > div:first-child { display:flex; flex-direction:column; gap:3px; }
.progress-scope strong { font-size:11px; }
.progress-scope span { color:var(--muted); font-size:10px; }
.progress-scope-tabs { display:flex; gap:5px; padding:4px; border-radius:9px; background:#eaf2fc; }
.progress-scope-tab { border:0; border-radius:7px; padding:8px 11px; background:transparent; color:var(--muted); font-size:10px; font-weight:800; cursor:pointer; white-space:nowrap; }
.progress-scope-tab.active { background:#fff; color:var(--navy); box-shadow:0 2px 8px rgba(18,50,91,.09); }
.sync-notice { position:fixed; right:20px; bottom:20px; z-index:40; border:0; border-radius:11px; padding:13px 16px; background:var(--navy); color:#fff; font-size:11px; font-weight:800; box-shadow:var(--shadow); cursor:pointer; animation:toast .25s; }
.mobile-nav { display:none; }

@media (max-width:1120px) { .progress-layout { grid-template-columns:1fr; } .training-stats-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px) { .progress-bottom { grid-template-columns:1fr; } .training-stat { padding:14px; } .training-stat strong { font-size:22px; } .progress-card { padding:17px; } .progress-card-head { flex-direction:column; } .exercise-filter { width:100%; } .recent-training-row { grid-template-columns:1fr auto; } .recent-training-row > span:nth-child(2) { display:none; } .progress-scope { align-items:flex-start; flex-direction:column; } .progress-scope-tabs { width:100%; overflow-x:auto; } .archive-row { grid-template-columns:1fr auto; gap:8px; } .archive-period { grid-column:1 / -1; grid-row:2; } .archive-open { grid-column:2; grid-row:1; } .archive-day-detail { grid-template-columns:1fr; gap:10px; } .archive-exercise-row { flex-direction:column; gap:3px; } .archive-exercise-row span { text-align:left; } }
@keyframes fade { from {opacity:0} to {opacity:1} }
@keyframes toast { from {transform:translateY(10px); opacity:0} to {transform:translateY(0); opacity:1} }
@keyframes pulse { 0%,100% { box-shadow:0 0 0 0 rgba(109,212,255,.25); } 50% { box-shadow:0 0 0 5px rgba(109,212,255,0); } }
@media (max-width: 1120px) { .program-grid { grid-template-columns:repeat(3,1fr); } .dash-grid,.measure-layout { grid-template-columns:1fr; } .right-stack { grid-template-columns:1fr 1fr; } }
@media (max-width: 1120px) { .body-overview-grid { grid-template-columns:1fr; } }
@media (max-width: 850px) {
  .app-shell { grid-template-columns:1fr; padding-bottom:calc(86px + env(safe-area-inset-bottom, 0px)); }
  .sidebar { display:none; }
  .content { padding:24px 18px 35px; }
  .topbar { padding:0 18px; height:64px; }
  .date-chip { display:none; }
  .mobile-nav { display:grid; grid-template-columns:repeat(var(--mobile-nav-count,5),minmax(0,1fr)); position:fixed; bottom:0; left:0; right:0; z-index:10; min-height:74px; padding:7px 6px max(7px,env(safe-area-inset-bottom,0px)); background:rgba(255,255,255,.97); border-top:1px solid var(--line); box-shadow:0 -10px 28px rgba(14,45,92,.08); backdrop-filter:blur(16px); }
  .mobile-nav .nav-item { width:100%; min-width:0; min-height:58px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:4px; margin:0; padding:4px 2px; border-radius:12px; color:#6b7890; font-size:12px; line-height:1; text-align:center; }
  .mobile-nav .nav-item:hover { background:transparent; color:var(--forest); }
  .mobile-nav .nav-item.active { background:transparent; color:var(--forest); }
  .mobile-nav .nav-icon { width:32px; height:30px; border-radius:10px; transition:background .18s,color .18s,transform .18s; }
  .mobile-nav .nav-icon svg { width:20px; height:20px; stroke-width:1.9; }
  .mobile-nav .nav-item.active .nav-icon { background:var(--forest); color:#fff; transform:translateY(-1px); box-shadow:0 5px 12px rgba(14,45,92,.18); }
  .mobile-nav .nav-text { width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:750; }
  .mobile-nav .nav-item.active .nav-text { font-weight:900; }
  .hero-meta { display:none; }
  .session-layout,.calendar-layout,.coach-layout { grid-template-columns:1fr; }
  .calendar-layout .event-detail { min-height:220px; }
  .coach-layout .client-list { display:none; }
  .coach-mobile-picker { display:block; }
}
@media (max-width: 760px) {
  .real-auth-shell { grid-template-columns:1fr; }
  .real-auth-brand { min-height:0; height:72px; padding:16px 20px; justify-content:center; gap:0; }
  .real-auth-brand:after { display:none; }
  .real-auth-brand > div:not(.real-auth-logo),.real-auth-brand small { display:none; }
  .real-auth-logo { gap:9px; font-size:14px; }
  .real-auth-logo img { width:30px; height:30px; }
  .real-auth-panel { display:block; padding:24px 20px 42px; }
  .real-auth-card { margin:0 auto; }
  .auth-card-mark { display:none; }
}
@media (max-width: 700px) { .coach-agenda-layout { grid-template-columns:1fr; } .coach-calendar-section > .card-head { align-items:flex-start; flex-direction:column; } }
@media (max-width: 850px) { .topbar-logout { display:inline-flex; } }
@media (max-width: 600px) {
  .login-shell { grid-template-columns:1fr; }
  .login-visual { min-height:360px; }
  .login-stats { gap:25px; }
  .login-panel { padding:30px 23px; }
  .content { padding:20px 14px 32px; }
  .topbar { height:60px; padding:0 12px; gap:7px; }
  .crumb { min-width:0; gap:6px; }
  .crumb .brand-wordmark,.crumb .slash { display:none; }
  .crumb strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .top-actions { flex:none; gap:6px; }
  .top-actions .avatar { width:30px; height:30px; }
  .bell { padding:8px 9px; }
  .topbar-logout { padding:8px; }
  .page-head { align-items:start; flex-direction:column; margin-bottom:20px; }
  .page-head h2 { font-size:27px; line-height:1.08; }
  .page-head p { font-size:12px; line-height:1.55; }
  .head-actions { width:100%; }
  .head-actions .primary,.head-actions .ghost { flex:1 1 140px; }
  .last-workout-summary { order:-1; width:100%; min-width:0; }
  .hero { min-height:0; padding:24px 20px; }
  .hero:after { display:none; }
  .hero h2 { max-width:85%; font-size:34px; }
  .dashboard-program { margin-top:16px; }
  .dashboard-program .card-head { align-items:flex-start; }
  .workout-row-action { grid-template-columns:38px minmax(0,1fr) auto 16px; padding:12px 13px; gap:9px; }
  .workout-row-action .status { max-width:88px; text-align:right; }
  .stats-row,.right-stack { grid-template-columns:1fr; }
  .program-grid { grid-template-columns:1fr 1fr; }
  .session-heading { padding:20px 16px; gap:10px; }
  .session-heading h3 { font-size:19px; }
  .exercise { padding:16px 12px; }
  .exercise-top { align-items:flex-start; flex-direction:column; gap:5px; }
  .session-footer { align-items:start; gap:12px; flex-direction:column; padding:16px; }
  .session-footer-actions { width:100%; flex-direction:column-reverse; }
  .session-footer-actions .primary,.session-footer-actions .danger-ghost { width:100%; }
  .sets,.set-row { grid-template-columns:25px 1fr 1fr minmax(65px,.9fr); gap:5px; }
  .set-context { align-items:flex-start; flex-wrap:wrap; gap:4px 10px; margin-top:11px; padding:8px 9px; font-size:11px; }
  .set-context span:last-child { flex:1 0 100%; margin-left:0; }
  .set-row { margin:0 -3px; padding:4px 3px; }
  .sets .set-head:nth-child(4),.sets .set-head:nth-child(5),.sets .set-rpe,.sets .last { display:none; }
  .set-input { padding:8px 6px; font-size:16px; }
  .exercise-technique { align-items:stretch; flex-direction:column; }
  .exercise-technique > small { max-width:none; }
  .set-confirm { padding:8px 4px; font-size:9px; }
  .calendar-card { padding:14px; }
  .cal-day { padding:6px; aspect-ratio:1 / 1.05; }
  .event-dot { left:5px; bottom:5px; }
  .preview-set,.history-set { grid-template-columns:48px repeat(3,1fr); gap:5px; }
  .table-row { grid-template-columns:1.3fr repeat(2,1fr); padding:11px 13px; }
  .table-row > :nth-child(n+4) { display:none; }
  .body-overview-grid { gap:14px; }
  .metric-card,.photo-overview { min-height:0; padding:17px; }
  .circumference-summary { margin-top:14px; }
  .circumference-summary .card-head { align-items:flex-start; gap:12px; }
  .circumference-summary .circ-grid { grid-template-columns:repeat(2,minmax(0,1fr)); padding:0 16px; }
  .checkin-history { margin-top:24px; }
  .checkin-entry { padding:15px; }
  .checkin-entry-head { flex-direction:column; gap:7px; }
  .checkin-entry .progress-photo-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .checkin-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .coach-editor { padding:16px; }
  .coach-insights { grid-template-columns:1fr; }
  .coach-settings { grid-template-columns:1fr; }
  .client-picker { flex-wrap:nowrap; overflow-x:auto; padding-bottom:4px; scroll-snap-type:x proximity; }
  .client-picker-item { flex:0 0 auto; scroll-snap-align:start; }
  .client-top { align-items:start; flex-direction:column; }
  .coach-progress-tabs,.coach-progress-tabs.compact { width:100%; overflow-x:auto; }
  .coach-progress-tab { flex:1; }
  .edit-exercise { grid-template-columns:repeat(3,minmax(0,1fr)) 34px; }
  .edit-exercise .input:first-child { grid-column:1 / 4; }
  .edit-exercise [data-exercise-technique] { grid-column:1 / 5; }
  .edit-exercise .remove-ex { grid-column:4; grid-row:1; }
  .coach-exercise-main { grid-template-columns:minmax(0,1fr) 72px 92px 34px; }
  .coach-set-head { display:none; }
  .coach-set-config { grid-template-columns:36px minmax(0,.72fr) minmax(0,1.28fr); }
  .coach-calendar-section { margin:22px -16px -16px; padding:18px 16px; }
  .modal-wrap { align-items:end; padding:0; }
  .modal { max-height:calc(100dvh - 10px); border-radius:18px 18px 0 0; }
  .modal-head { padding:18px 17px 12px; }
  .modal-body { padding:0 17px 17px; }
  .modal-footer { position:sticky; bottom:0; padding:13px 17px max(16px,env(safe-area-inset-bottom,0px)); background:#fff; border-top:1px solid var(--line); }
  .empty-coach { min-height:360px; padding:40px 20px; }
  .empty-coach > img { width:48px; height:48px; }
}
@media (max-width: 420px) {
  .real-auth-brand { min-height:0; height:68px; padding:14px 16px; }
  .program-grid { grid-template-columns:1fr; }
  .day-card { min-height:150px; }
  .form-grid { grid-template-columns:1fr; }
  .modal-footer { flex-direction:column-reverse; }
  .coach-exercise-main { grid-template-columns:1fr 1fr 34px; }
  .coach-exercise-main label:first-child { grid-column:1 / -1; }
  .coach-exercise-main .remove-ex { grid-column:3; grid-row:1; }
  .coach-set-config { grid-template-columns:32px 1fr; align-items:start; }
  .coach-set-config [data-set-technique] { grid-column:2; }
  .superset-config { grid-column:2; }
  .modal-footer .primary,.modal-footer .ghost,.modal-footer .danger { width:100%; }
}
@media (max-width: 600px) { .awaiting-plan { min-height:360px; padding:42px 20px; } .awaiting-actions { width:100%; flex-direction:column; } .awaiting-actions .ghost { width:100%; } }
