/* FormYou · Training journal. Local assets, fonts and application logic. */
:root{
 color-scheme:light;--bg:#f3f0e8;--surface:#fff;--ink:#20251f;--muted:#64695f;
 --line:#d8d8ca;--accent:#364636;--accent-hover:#202c21;--tint:#e9eecf;
 --good:#187553;--good-bg:#ebf7f1;--warn:#8a5817;--warn-bg:#fff5e5;
 --danger:#b33145;--danger-bg:#fff0f1;--radius:4px;--sidebar:0px;
 --shadow:0 4px 20px rgba(27,43,76,.035);
 font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif;
 font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;
}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:96px}body{margin:0;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.55;min-width:320px}
button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}
a{color:inherit;text-decoration:none}button,a{touch-action:manipulation}h1,h2,h3,h4,p{margin:0}h1,h2,h3,h4{line-height:1.2;letter-spacing:-.035em}h1{font-size:clamp(30px,3.1vw,44px);font-weight:730}h2{font-size:22px;font-weight:700}h3{font-size:17px;font-weight:700}h4{font-size:14px;margin-top:16px}small{font-size:12px}svg{display:block}button svg{flex-shrink:0}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
:focus-visible{outline:3px solid #6487f0;outline-offset:3px}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px #36463614}
[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip{position:fixed;left:20px;top:-80px;z-index:100;padding:12px 18px;background:var(--ink);color:white;border-radius:10px}.skip:focus{top:12px}
.row,.between{display:flex;align-items:center;gap:16px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.gap8{gap:8px}.stack{display:flex;flex-direction:column;gap:20px}.mt{margin-top:18px}.mb{margin-bottom:20px}.section-gap{margin-top:24px}.full{grid-column:1/-1}.no-wrap{white-space:nowrap}.muted,.subtle{color:var(--muted)}.accent{color:var(--accent)}.danger-text{color:var(--danger)}.eyebrow{font-size:10px;line-height:1.45;font-weight:750;letter-spacing:.13em;color:var(--muted);text-transform:uppercase}.separator{height:1px;background:var(--line);margin:22px 0}.description,.plan-description{font-size:14px;line-height:1.7;color:var(--muted);margin:12px 0 20px}.details-note,.chart-caption,.hint{font-size:12px;color:var(--muted);line-height:1.7}.legal{color:var(--muted);font-size:11px;margin-top:24px;text-align:center}
/* Shell */
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:var(--surface);border-right:1px solid var(--line);padding:34px 22px 24px;display:flex;flex-direction:column;z-index:20}.brand{padding:0 13px 33px}.wordmark{font-size:31px;line-height:1;letter-spacing:-2px;font-weight:900;color:var(--ink)}.wordmark span{color:var(--accent)}.brand .eyebrow{font-size:8px;letter-spacing:.19em;margin-top:11px}.nav{display:flex;flex-direction:column;gap:7px}.nav-link{display:flex;align-items:center;gap:12px;padding:13px 15px;border-radius:11px;font-weight:600;color:var(--muted);font-size:13px;transition:background .18s,color .18s}.nav-link:hover{background:var(--bg);color:var(--ink)}.nav-link.active{background:var(--tint);color:var(--accent)}.nav-link.active .icon{stroke-width:2}.sidebar-bottom{margin-top:auto;padding-top:36px}.plan-mini{background:var(--bg);border:1px solid var(--line);border-radius:13px;padding:16px}.plan-mini .eyebrow{font-size:8px}.plan-mini strong{display:block;font-size:12px;line-height:1.5;margin:9px 0}.plan-mini p{font-size:11px;color:var(--muted);line-height:1.8}.profile-mini{border-top:1px solid var(--line);margin-top:24px;padding:20px 5px 0;gap:11px}.profile-mini strong{display:block;font-size:12px}.profile-mini small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.avatar{display:grid;place-items:center;background:#e9edf8;color:#3c4d81;width:34px;height:34px;border-radius:50%;font-size:13px;font-weight:750}.layout{margin-left:var(--sidebar)}.topbar{height:80px;padding:0 38px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.9)}.topbar>.wordmark{display:none}.breadcrumbs{font-size:11px;color:var(--muted)}.breadcrumbs span{color:var(--ink);margin-left:8px}.top-date{font-size:9px;letter-spacing:.08em}.status{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #dbeae2;background:var(--good-bg);color:var(--good);border-radius:999px;padding:8px 11px;font-size:10px;font-weight:650;line-height:1.3;white-space:nowrap}.dot{width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0}.status.pending{background:var(--warn-bg);border-color:#f3e1c4;color:var(--warn)}.status.error{background:var(--danger-bg);border-color:#f2d7dc;color:var(--danger)}#main{max-width:1390px;padding:36px 38px 42px;margin:0 auto;min-height:calc(100vh - 80px)}.bottom-nav{display:none}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.page-heading .eyebrow{margin-bottom:10px}.page-heading p{font-size:13px;color:var(--muted);margin-top:11px;line-height:1.7}.page-heading>.btn{flex-shrink:0}
/* Controls */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:11px 17px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-size:12px;font-weight:650;line-height:1.35;transition:background .15s,box-shadow .15s,transform .15s}.btn:hover{background:#f9faff;box-shadow:0 3px 9px #18347708}.btn:active{transform:translateY(1px)}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 4px 12px #3646361a}.btn.primary:hover{background:var(--accent-hover)}.btn.quiet{background:var(--surface)}.btn.danger{color:var(--danger);border-color:#f0ced4;background:var(--danger-bg)}.btn.small{min-height:38px;padding:9px 12px;font-size:11px}.btn .icon{width:17px;height:17px}.text-btn{display:inline-flex;align-items:center;gap:7px;padding:4px 0;background:none;border:0;color:var(--accent);font-size:12px;font-weight:650;line-height:1.6;text-align:left}.text-btn .icon{width:15px;height:15px}.text-btn:hover{text-decoration:underline;text-underline-offset:4px}.icon-btn{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:10px;background:white;color:var(--muted);flex-shrink:0;font-size:11px;font-weight:700}.icon-btn:hover{color:var(--accent);border-color:#b9c8f9;background:var(--tint)}.pill{display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:10px;line-height:1.3;font-weight:650;border-radius:7px;padding:6px 9px;background:var(--bg);color:var(--muted);white-space:nowrap}.pill.lime{color:var(--accent);background:var(--tint)}.button-grid{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
/* Overview */
.card{border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);min-width:0}.card-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.card-head h2{font-size:17px;letter-spacing:-.02em}.card-head h3{font-size:15px}.hero-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:22px;margin-bottom:24px}.hero{position:relative;overflow:hidden;border:1px solid #dbe3fa;border-radius:var(--radius);background:linear-gradient(120deg,#e9eecf 0%,#eef4ff 70%,#e8f0fb 100%);padding:32px;display:flex;flex-direction:column;min-height:274px}.hero>.eyebrow{color:#4d65a6;position:relative;z-index:1;font-size:9px}.hero h2{font-size:clamp(26px,2.7vw,37px);max-width:410px;margin:16px 0 13px;line-height:1.18;position:relative;z-index:1}.hero p{color:#526285;max-width:360px;font-size:13px;line-height:1.7;position:relative;z-index:1}.hero-mark{position:absolute;right:-9px;top:0;line-height:1;font-size:240px;font-weight:900;letter-spacing:-22px;color:#36463608;transform:rotate(-8deg);user-select:none}.hero:after{content:"";position:absolute;width:180px;height:180px;right:-40px;bottom:-100px;border:30px solid #36463607;border-radius:50%}.hero-bottom{display:flex;align-items:center;gap:14px;justify-content:space-between;padding-top:25px;margin-top:auto;position:relative;z-index:1}.hero-bottom .btn{background:var(--accent);border-color:var(--accent);color:white}.hero-bottom .pill{background:#ffffff9e;color:#4d65a6;border:1px solid #dbe3fa}.hero-grid>.card{padding:24px 24px 17px}.week-list{display:flex;flex-direction:column;gap:4px}.week-item{display:flex;align-items:center;gap:11px;min-height:39px;border-radius:9px;padding:7px 8px}.week-item.today{background:#f2f5ff}.week-item strong{font-size:12px;font-weight:600}.week-day{width:20px;font-size:9px;letter-spacing:.05em;color:var(--muted);font-weight:750}.week-square{width:19px;height:19px;border:1.5px solid #dbe1ec;border-radius:6px;background:white;display:flex;align-items:center;justify-content:center}.week-square.done{color:var(--accent);background:var(--tint);border-color:#bac9fa}.week-square .icon{width:13px;height:13px;stroke-width:2.5}.week-item small{font-size:10px;color:var(--good)}.hero-grid .separator{margin:12px 0}.hero-grid .between .eyebrow{font-size:8px;letter-spacing:.06em}.hero-grid .between small{font-size:10px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat{padding:20px;box-shadow:none}.stat-top{display:flex;justify-content:space-between;align-items:center;gap:7px;font-size:11px;color:var(--muted);font-weight:550;min-height:25px}.stat-top .icon{width:16px;height:16px;stroke-width:1.6;color:#8b97ae}.value{font-size:36px;line-height:1.1;font-weight:700;letter-spacing:-1.3px;font-variant-numeric:tabular-nums;margin-top:13px}.value span{font-size:12px;font-weight:500;letter-spacing:0;color:var(--muted);margin-left:7px}.stat-foot{font-size:10px;color:var(--muted);margin-top:12px;line-height:1.65}.cols{display:grid;grid-template-columns:1.4fr 1fr;gap:22px;align-items:start}.cols.equal{grid-template-columns:1fr 1fr}.cols>.card{height:100%}.block-number{font-size:55px;line-height:1.1;font-weight:730;letter-spacing:-3px;color:var(--accent);margin:26px 0 12px}.block-number span{font-size:19px;letter-spacing:-.8px;font-weight:500;color:#9ba6bd}.block-card h3{font-size:19px}.block-card .plan-description{font-size:12px;margin:9px 0 20px}.phase-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.phase-steps span{height:5px;background:#e5e6da;border-radius:8px}.phase-steps .filled{background:var(--accent)}.block-card .between{font-size:11px}.block-card .details-note{font-size:11px}.block-card .separator{margin:21px 0}
/* Charts and tables */
.chart{width:100%;height:auto;overflow:visible;margin:18px 0 4px}.chart text{fill:var(--muted);font-size:11px;font-family:inherit}.gridline{stroke:#d8d8ca;stroke-width:1;stroke-dasharray:3 5}.line{fill:none;stroke:var(--accent);stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}.area{fill:#3646360a}.point{fill:white;stroke:var(--accent);stroke-width:2.5}.point:hover,.point:focus{fill:var(--accent);stroke-width:4}.chart-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.chart-top select{max-width:55%;font-size:11px;min-height:38px}.chart-caption{font-size:11px;margin-top:12px}.empty-chart{min-height:232px;display:grid;place-items:center}.empty{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:32px 16px;min-height:155px}.empty>.icon{width:38px;height:38px;background:var(--tint);color:#7188ca;border-radius:11px;padding:9px;stroke-width:1.5;margin-bottom:16px}.empty h3{font-size:14px;line-height:1.6;letter-spacing:-.01em;max-width:310px}.empty p{max-width:300px;color:var(--muted);font-size:11px;line-height:1.8;margin-top:7px}.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-size:8px;font-weight:750;color:var(--muted);letter-spacing:.1em;background:#eeeee4;padding:11px 12px;border-bottom:1px solid var(--line);white-space:nowrap}th:first-child{border-top-left-radius:7px}th:last-child{border-top-right-radius:7px}td{padding:15px 12px;border-bottom:1px solid #dedfd4;vertical-align:middle}tr:last-child td{border-bottom:0}.history-row .text-btn{font-size:12px}.history-meta{font-size:10px;color:var(--muted);margin-top:4px}.history-row .icon-btn{width:30px;height:30px;border:0}.history-row .icon{width:16px}
/* Forms */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:flex;flex-direction:column;gap:8px;min-width:0;color:#42493e;font-size:11px;font-weight:650;line-height:1.5}.field small{font-weight:400;color:var(--muted);font-size:11px}.field input,.field select,.field textarea,select,input:not([type=checkbox]):not([type=file]),textarea{width:100%;min-width:0;min-height:44px;background:#faf9f4;border:1px solid #cccec0;color:var(--ink);border-radius:9px;padding:11px 12px;outline:none;font-size:14px;font-weight:400;transition:border .12s,box-shadow .12s}input::placeholder,textarea::placeholder{color:#838977}textarea{resize:vertical;min-height:90px;line-height:1.6}input[type=checkbox]{accent-color:var(--accent);width:18px;height:18px;flex-shrink:0;margin:0}.check-label{display:flex;align-items:flex-start;gap:10px;color:var(--muted);font-size:12px;line-height:1.65}.check-label input{margin-top:1px}.error-msg{font-size:12px;color:var(--danger);line-height:1.65}.error-msg:empty{display:none}input[aria-invalid=true]{border-color:var(--danger)!important;background:var(--danger-bg)!important}.setting-section{margin-bottom:22px}.setting-section>h2{font-size:20px}.setting-section .description{max-width:740px;font-size:12px}.setting-section details{padding:12px 0;border-bottom:1px solid var(--line)}.setting-section details:last-child{border:0}.setting-section summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;font-size:13px;width:100%}.setting-section summary:after{content:'+';font-size:20px;font-weight:400}.setting-section details[open]>summary:after{content:'−'}.file-input{display:none}.split-info{display:flex;gap:22px;flex-wrap:wrap}.split-info>div{font-size:10px;color:var(--muted);flex:1;min-width:90px}.split-info strong{display:block;color:var(--ink);font-size:21px;font-weight:650;line-height:1.5;letter-spacing:-.6px;margin-bottom:3px}.compact-note{background:#eeeee4;border:1px solid var(--line);border-radius:11px;padding:15px;font-size:12px;line-height:1.75;color:var(--muted)}
/* Training */
.tabs{display:inline-flex;align-items:center;padding:4px;background:#e9e9de;border:1px solid #d8d8ca;border-radius:11px;gap:3px;max-width:100%;overflow-x:auto}.tab{border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:11px;font-weight:650;padding:10px 14px;white-space:nowrap;min-height:38px}.tab.active{background:white;color:var(--accent);box-shadow:0 2px 5px #1b2b4c09}.tab:hover{color:var(--accent)}.training-toolbar{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}.training-toolbar>.field{max-width:170px}.training-toolbar>.field input{padding:9px 11px;min-height:42px;font-size:12px}.exercise-preview{display:flex;align-items:center;gap:13px;padding:16px 0;border-bottom:1px solid #dedfd4}.exercise-preview:last-child{border-bottom:0}.exercise-number{font-size:10px;font-weight:700;color:#8896af;font-variant-numeric:tabular-nums;width:23px;flex-shrink:0}.exercise-preview>div:nth-child(2){flex:1;min-width:0}.exercise-preview strong{font-size:12px;line-height:1.5;display:block}.exercise-preview small{display:block;font-size:10px;line-height:1.5;color:var(--muted);margin-top:4px}.exercise-target{font-size:12px;font-weight:650;color:var(--accent);white-space:nowrap;font-variant-numeric:tabular-nums}.notice{display:flex;align-items:flex-start;gap:12px;border:1px solid #d0d5c0;background:#e9eecf;color:#4d5548;border-radius:12px;padding:17px;font-size:12px;line-height:1.75}.notice>.icon{margin-top:2px;width:18px;height:18px;color:#64724e}.notice.warn{background:var(--warn-bg);border-color:#f0e0c6;color:#73501f}.notice.warn>.icon{color:#aa7c35}.notice .btn{flex-shrink:0}.progress-track{width:100%;height:5px;background:#e5e6da;border-radius:99px;overflow:hidden}.progress-track progress{width:100%;height:5px;display:block;border:none;appearance:none;background:#e5e6da}.progress-track progress::-webkit-progress-bar{background:#e5e6da}.progress-track progress::-webkit-progress-value{background:var(--accent);border-radius:99px}.progress-track progress::-moz-progress-bar{background:var(--accent);border-radius:99px}.session-header{position:sticky;top:0;z-index:12;background:rgba(245,246,248,.97);padding:5px 0 19px;margin-bottom:20px;border-bottom:1px solid var(--line)}.session-header h2{font-size:26px;margin-top:7px}.session-header p{font-size:12px;color:var(--muted);margin-top:7px}.session-header .btn{margin-left:12px}.session-progress{margin-top:18px}.exercise-card{margin-bottom:20px;max-width:940px}.exercise-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.exercise-title h3{font-size:19px}.exercise-title p{color:var(--muted);font-size:11px;margin-top:8px}.previous{display:flex;align-items:center;gap:10px;background:#eeeee4;border:1px solid #dbdfcf;border-radius:9px;padding:10px 12px;font-size:11px;line-height:1.7;color:var(--muted);margin:20px 0 16px}.previous .icon{width:16px;height:16px;color:#76816a}.set-head,.set-row{display:grid;grid-template-columns:38px minmax(64px,1fr) minmax(64px,1fr) minmax(54px,.75fr) 48px 30px;gap:12px;align-items:center}.set-head{padding:4px 0 9px;font-size:9px;font-weight:650;color:var(--muted);letter-spacing:.055em;text-align:center}.set-head>span:first-child{text-align:left}.set-row{border-top:1px solid #dfe2d4;padding:10px 0;transition:background .15s}.set-row input{background:#f6f5ee!important;text-align:center;min-height:44px!important;font-size:16px!important;padding:8px 4px!important;border-color:#d3d6c8!important;font-variant-numeric:tabular-nums}.set-row input::-webkit-inner-spin-button,.set-row input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.set-row input[type=number]{-moz-appearance:textfield}.set-num{font-size:12px;font-weight:650;color:var(--muted);padding-left:3px}.set-done{display:flex;align-items:center;justify-content:center;width:44px;height:44px;background:#efefe5;border:1px solid #d8dacd;color:#7e8771;border-radius:10px}.set-done:hover{border-color:var(--accent);color:var(--accent)}.set-row.done .set-done{background:var(--accent);border-color:var(--accent);color:#fff}.set-row.done .set-num{color:var(--accent)}.set-row.done input{background:#e9eecf!important;border-color:#c6d4a4!important}.set-remove{background:none;border:0;width:30px;min-height:44px;display:flex;align-items:center;justify-content:center;color:#929db0}.set-remove .icon{width:15px;height:15px}.set-remove:hover{color:var(--danger)}.exercise-foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:15px;padding-top:12px;border-top:1px solid var(--line)}.exercise-foot .text-btn{font-size:11px}.exercise-card details{margin-top:18px}.exercise-card summary{font-size:11px;color:var(--muted);cursor:pointer;padding:4px 0}.exercise-card details textarea{margin-top:10px;min-height:70px;font-size:13px}.exercise-card .details-note{margin-top:12px}.exercise-card .hint{margin-top:12px}.record-exercise{padding:15px 0;border-bottom:1px solid var(--line)}.record-exercise strong{font-size:13px}.record-exercise p{font-size:12px;color:var(--muted);line-height:1.9;margin-top:7px}.record-exercise:last-child{border:0}
/* Dialogs, save errors and timers */
dialog{border:1px solid var(--line);border-radius:20px;padding:26px;max-width:650px;width:calc(100% - 36px);max-height:88dvh;overflow:auto;color:var(--ink);background:white;box-shadow:0 24px 100px #18284629}dialog::backdrop{background:#15233b55;backdrop-filter:blur(4px)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:23px}.modal-head h2{font-size:22px;line-height:1.3}.modal-head .icon-btn{border:0;background:var(--bg);width:34px;height:34px}.modal-copy{color:var(--muted);font-size:13px;line-height:1.8}.modal-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:24px;flex-wrap:wrap}.conflict-pre{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;line-height:1.6;max-height:230px;overflow:auto;background:var(--bg);border:1px solid var(--line);padding:12px;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere}.timer{position:fixed;bottom:24px;left:calc(var(--sidebar) + (100vw - var(--sidebar))/2);transform:translateX(-50%);z-index:28;display:flex;align-items:center;gap:15px;background:#20251f;color:#fff;border:1px solid #ffffff21;border-radius:16px;box-shadow:0 12px 35px #20251f2a;padding:13px 17px;max-width:calc(100vw - 32px)}.timer>div:first-child{background:#ffffff13;padding:10px;border-radius:10px}.timer small{display:block;font-size:8px;letter-spacing:.11em;color:#c5cee2}.timer strong{font-size:25px;font-weight:600;line-height:1.2;display:block;font-variant-numeric:tabular-nums}.timer .icon-btn{background:#ffffff12;border-color:#ffffff17;color:#fff;width:36px;height:36px}.timer .icon-btn:last-child{border:0;background:none}.timer>.icon{color:#bcc9ec}#toast{position:fixed;left:50%;bottom:30px;transform:translate(-50%,20px);padding:13px 18px;border-radius:12px;background:#20251f;color:#fff;font-size:12px;max-width:560px;width:max-content;max-width:min(560px,calc(100vw - 32px));box-shadow:0 8px 24px #18284622;opacity:0;pointer-events:none;z-index:99;transition:opacity .15s,transform .15s;line-height:1.65}#toast.visible{opacity:1;transform:translate(-50%,0)}#toast.error{background:#913148}#save-alert{max-width:1314px;margin:22px 38px 0;padding:17px;border:1px solid #f0ccd4;background:var(--danger-bg);border-radius:12px;display:flex;align-items:start;gap:12px;color:var(--danger);font-size:12px}#save-alert p{margin:6px 0 10px;color:#823242;line-height:1.6}
/* Welcome */
.login-layout{min-height:100dvh;display:grid;grid-template-columns:1.12fr 1fr;background:#fff}.login-story{position:relative;padding:50px 60px;display:flex;flex-direction:column;background:linear-gradient(140deg,#eef2ff,#e5edf9);overflow:hidden;border-right:1px solid #dce4f5}.login-story .wordmark{font-size:37px;position:relative;z-index:1}.login-statement{margin:auto 0;position:relative;z-index:1;padding:50px 0 80px}.login-statement h1{font-size:clamp(44px,5.7vw,88px);line-height:1.05;letter-spacing:-.06em;font-weight:750}.login-statement h1 span{color:var(--accent)}.login-statement p{font-size:15px;line-height:1.9;color:#586987;max-width:355px;margin-top:28px}.login-story>.eyebrow{font-size:9px;position:relative;z-index:1;color:#68799d}.login-lines{position:absolute;width:380px;height:380px;border:1px solid #b8c6e64f;border-radius:70px;right:-180px;top:36%;transform:rotate(30deg)}.login-lines:before,.login-lines:after{content:"";position:absolute;border:1px solid #b8c6e64f;border-radius:70px;inset:28px}.login-lines:after{inset:56px}.login-form-wrap{display:grid;place-items:center;padding:40px}.login-form{width:100%;max-width:370px}.login-form>.eyebrow{font-size:9px;color:var(--accent);margin-bottom:15px}.login-form h2{font-size:31px;margin-bottom:12px}.login-form>p{font-size:13px;line-height:1.8;color:var(--muted);margin-bottom:28px}.login-form .field{margin-bottom:19px}.login-form .field input{min-height:49px;font-size:14px}.login-form>.btn{width:100%;margin-top:19px}.login-form .check-label{font-size:11px}.login-form .error-msg{margin:15px 0 0;color:var(--danger)}.privacy-note{display:flex;align-items:flex-start;gap:9px;margin-top:24px;font-size:10px;line-height:1.8;color:var(--muted);border-top:1px solid var(--line);padding-top:20px}.privacy-note .icon{width:14px;height:14px;margin-top:3px}.boot{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:20px;min-height:100dvh;padding:40px;text-align:center}.boot p{font-size:13px;color:var(--muted);max-width:480px;line-height:1.8}.boot h1{font-size:26px;max-width:500px}.boot .wordmark{font-size:43px}
/* Laptop / tablet */
@media(min-width:1600px){:root{--sidebar:248px}.sidebar{padding-left:27px;padding-right:27px}.hero{min-height:290px}.hero-grid{grid-template-columns:1.7fr 1fr}.stat{padding:24px}.value{font-size:40px}}
@media(max-width:1180px){:root{--sidebar:208px}.sidebar{padding-left:16px;padding-right:16px}.topbar{padding:0 26px}#main{padding:30px 26px}.top-date{display:none}.hero{padding:26px}.card{padding:21px}.hero-grid{gap:18px;grid-template-columns:1.4fr 1fr}.hero h2{font-size:29px}.stat-grid{gap:12px}.stat{padding:16px}.stat-top{font-size:10px}.stat .value{font-size:31px}.stat-foot{font-size:9px}.cols{gap:18px;grid-template-columns:1.25fr 1fr}.hero-bottom .pill{font-size:9px;padding:5px 7px}.hero-bottom{gap:8px}.hero-bottom .btn{font-size:11px;padding:10px 12px}.card-head h2{font-size:16px}}
@media(max-width:960px){.hero-grid,.cols,.cols.equal{grid-template-columns:1fr}.hero-grid{grid-template-columns:1.3fr 1fr}.hero-bottom{align-items:flex-start;flex-direction:column}.stat-grid{grid-template-columns:repeat(2,1fr);gap:14px}.stat-top{font-size:11px}.stat .value{font-size:35px}.stat-foot{font-size:10px}.page-heading{align-items:flex-start}.page-heading h1{font-size:31px}.page-heading>.btn{font-size:11px}.card{padding:23px}.training-toolbar{align-items:start;flex-direction:column;gap:16px}.training-toolbar>.field{width:170px}.topbar{height:68px}.login-story{padding:40px}.login-form-wrap{padding:30px}.login-statement h1{font-size:58px}.set-head,.set-row{gap:9px}.hero-grid>.card{padding:22px 17px}.week-item{padding:6px 2px;gap:8px}.week-item strong{font-size:11px}}
/* Phone / PWA */
@media(max-width:760px){
 :root{--sidebar:0px;--radius:4px}body{font-size:14px}.sidebar{display:none}.layout{margin-left:0}.topbar{height:68px;padding:0 20px;background:#fff}.topbar>.wordmark{display:block;font-size:28px}.breadcrumbs{display:none}.topbar .row{gap:0}.status{font-size:9px;padding:7px 9px;max-width:238px;white-space:normal}.dot{width:5px;height:5px}#main{padding:25px 20px calc(102px + env(safe-area-inset-bottom));min-height:calc(100dvh - 68px)}.page-heading{display:block;margin-bottom:22px}.page-heading .eyebrow{font-size:9px;margin-bottom:9px}.page-heading h1{font-size:32px;line-height:1.13}.page-heading p{font-size:12px;margin-top:10px;line-height:1.65}.page-heading>.btn{margin-top:17px;font-size:11px;min-height:40px;padding:10px 13px}.hero-grid{grid-template-columns:1fr;gap:17px;margin-bottom:19px}.hero{min-height:240px;padding:24px}.hero h2{font-size:31px;max-width:290px;margin-top:13px}.hero p{font-size:12px;max-width:290px}.hero-mark{font-size:220px;right:0}.hero-bottom{flex-direction:row;align-items:center;gap:10px;padding-top:22px}.hero-bottom .btn{font-size:12px;padding:11px 14px}.hero-bottom .pill{font-size:9px}.hero-grid>.card{padding:20px}.week-list{display:grid;grid-template-columns:1fr 1fr;gap:7px 6px}.week-item{padding:7px 4px;gap:7px;min-height:41px}.week-day{font-size:8px;width:18px}.week-item strong{font-size:10px}.week-square{width:17px;height:17px;border-radius:5px}.week-item .subtle{display:none}.hero-grid .card-head{margin-bottom:11px}.hero-grid .separator{margin:15px 0 12px}.hero-grid .card-head h3{font-size:14px}.hero-grid .between .eyebrow{font-size:8px}.stat-grid{gap:11px;margin-bottom:19px}.stat{padding:17px 15px}.stat-top{font-size:10px;gap:4px}.stat-top .icon{width:15px;height:15px}.stat .value{font-size:32px;margin-top:12px}.value span{font-size:11px;margin-left:5px}.stat-foot{font-size:9px;line-height:1.65;margin-top:10px}.card{padding:20px}.card-head{gap:12px;margin-bottom:16px}.card-head h2{font-size:16px}.card-head .text-btn{font-size:10px;gap:4px}.card-head .text-btn .icon{width:13px}.cols{gap:18px}.section-gap{margin-top:19px}.block-card{display:block}.block-number{font-size:48px;margin-top:20px}.block-card .plan-description{font-size:12px}.empty-chart{min-height:190px}.empty{padding:24px 4px;min-height:140px}.empty h3{font-size:13px}.chart-caption{font-size:10px}.chart-top select{font-size:11px;max-width:57%}.chart-top .value{font-size:30px}.chart{margin-top:20px}table{font-size:11px}th{font-size:8px;padding:10px 8px}td{padding:13px 8px}.history-row .text-btn{font-size:11px}.history-meta{font-size:9px}.table-wrap{margin:0 -4px;padding:0 4px}.history-row td:last-child{padding-left:2px;padding-right:0}.table-wrap th:nth-child(4){font-size:7px;letter-spacing:0}.btn{font-size:12px}.btn,.icon-btn,.text-btn{min-height:40px}.text-btn{line-height:1.5}.notice{padding:15px;font-size:11px;gap:10px}.notice>.icon{width:17px;height:17px}.notice .btn{font-size:10px;padding:8px 10px;min-height:37px}.form-grid{gap:16px 13px}.field{font-size:11px}.field input,.field select,.field textarea,select,input:not([type=checkbox]):not([type=file]),textarea{font-size:16px;min-height:46px;padding:11px 10px}.field small{font-size:10px}.field textarea{min-height:85px}.split-info{gap:20px}.split-info strong{font-size:22px}.setting-section>h2{font-size:20px}.setting-section .description{font-size:12px}.setting-section summary{font-size:13px}.training-toolbar{margin-bottom:20px;gap:15px}.training-toolbar .tabs{width:100%;display:grid;grid-template-columns:repeat(4,1fr);gap:2px;padding:3px;overflow:visible}.tab{font-size:10px;padding:9px 8px;min-height:38px}.training-toolbar>.field{width:100%;max-width:none}.training-toolbar>.field input{font-size:16px;min-height:43px}.training-toolbar>.field{font-size:10px}.exercise-preview{gap:10px;padding:15px 0}.exercise-preview strong{font-size:12px}.exercise-number{width:18px;font-size:9px}.exercise-target{font-size:11px}.exercise-preview small{font-size:9px}.exercise-preview .icon-btn{width:34px;height:36px;min-height:36px}.session-header{padding:0 0 17px;margin-bottom:17px;top:0;background:#f3f0e8f8}.session-header .between{gap:8px}.session-header h2{font-size:24px}.session-header>.between>.btn{min-height:40px;margin-left:0;font-size:10px;padding:10px 12px;gap:6px}.session-header .eyebrow{font-size:8px}.session-header p{font-size:11px}.session-header .btn .icon{width:15px}.exercise-card{padding:19px 16px;margin-bottom:17px}.exercise-title h3{font-size:17px;line-height:1.3}.exercise-title p{font-size:10px;line-height:1.7}.exercise-title .eyebrow{font-size:8px}.exercise-title .icon-btn{width:36px;height:38px;min-height:38px}.previous{padding:10px;font-size:10px;margin:17px 0 14px}.previous .icon{width:14px;height:14px}.set-head,.set-row{grid-template-columns:24px minmax(0,1fr) minmax(0,1fr) minmax(0,.85fr) 40px 22px;gap:7px}.set-head{font-size:8px;letter-spacing:.01em}.set-head>span:last-of-type{display:none}.set-row{padding:10px 0}.set-row input{min-height:44px!important;padding:8px 2px!important}.set-num{font-size:11px;padding:0}.set-done{width:40px;height:44px;border-radius:9px}.set-done .icon{width:18px;height:18px}.set-remove{width:22px;min-height:44px;padding:0}.set-remove .icon{width:13px;height:13px}.exercise-foot{gap:8px}.exercise-foot .text-btn{font-size:10px;min-height:36px}.exercise-card details textarea{font-size:16px}.exercise-card .hint{font-size:10px}.bottom-nav{position:fixed;inset:auto 0 0;z-index:30;display:grid;grid-template-columns:repeat(5,1fr);background:rgba(255,255,255,.98);border-top:1px solid var(--line);padding:9px 8px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -3px 16px #26385b04}.bottom-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-height:45px;color:#76829a;font-size:9px;font-weight:550;border-radius:10px}.bottom-nav a>.icon{width:20px;height:20px}.bottom-nav a.active{color:var(--accent);background:var(--tint);font-weight:700}.bottom-nav a.active .icon{stroke-width:2}.timer{left:50%;bottom:calc(84px + env(safe-area-inset-bottom));width:320px;max-width:calc(100vw - 32px);gap:12px;padding:11px 13px;border-radius:14px}.timer>div:nth-child(2){flex:1}.timer small{font-size:8px}.timer strong{font-size:24px}.timer .icon-btn{width:34px;height:34px;min-height:34px}#toast{bottom:calc(89px + env(safe-area-inset-bottom));font-size:11px;padding:12px 15px}dialog{padding:21px;border-radius:18px;width:calc(100% - 24px);max-height:90dvh}.modal-head{gap:12px;margin-bottom:19px}.modal-head h2{font-size:21px}.modal-copy{font-size:12px}.modal-actions{gap:8px}.modal-actions .btn{flex:1;font-size:11px;padding:11px 12px}.modal-actions .btn .icon{width:15px}.compact-note{font-size:11px;padding:13px}.description,.plan-description{font-size:12px;line-height:1.8}.details-note{font-size:11px}.record-exercise strong{font-size:12px}.record-exercise p{font-size:11px}.button-grid{gap:8px}.button-grid .btn{font-size:11px}#save-alert{margin:18px 20px 0;padding:14px;font-size:11px}.legal{font-size:9px;line-height:1.8;margin-top:22px}.login-layout{grid-template-columns:1fr;min-height:100dvh}.login-story{padding:28px 26px 23px;min-height:250px;border-right:0;border-bottom:1px solid #dce4f5}.login-story .wordmark{font-size:29px}.login-statement{padding:35px 0 18px;margin:0}.login-statement h1{font-size:46px;line-height:1.04;letter-spacing:-.05em}.login-statement p{font-size:12px;line-height:1.75;margin-top:18px;max-width:280px}.login-story>.eyebrow{font-size:8px;margin-top:8px}.login-lines{width:240px;height:240px;right:-80px;top:70px}.login-form-wrap{padding:31px 26px 36px;place-items:start center}.login-form{max-width:440px}.login-form>.eyebrow{font-size:8px;margin-bottom:10px}.login-form h2{font-size:28px}.login-form>p{font-size:12px;margin-bottom:24px}.login-form .field input{font-size:16px}.login-form>.btn{min-height:47px;font-size:13px}.login-form .privacy-note{font-size:10px}.boot{padding:30px}.boot h1{font-size:24px}
}
@media(max-width:375px){#main{padding-left:15px;padding-right:15px}.topbar{padding:0 16px}.page-heading h1{font-size:29px}.hero{padding:22px}.hero h2{font-size:29px}.hero-bottom .pill{font-size:8px;padding:5px 6px}.hero-bottom .btn{font-size:11px;padding:10px 12px}.card{padding:18px}.exercise-card{padding:18px 12px}.set-head,.set-row{gap:5px;grid-template-columns:22px minmax(0,1fr) minmax(0,1fr) minmax(0,.8fr) 38px 20px}.set-done{width:38px}.set-remove{width:20px}.stat{padding:15px 12px}.stat-top{font-size:9px}.stat .value{font-size:29px}.stat-foot{font-size:8px}.week-item strong{font-size:9px}.week-item{gap:6px}.hero-grid>.card{padding:18px}.page-heading>.btn{font-size:10px}.session-header h2{font-size:21px}.session-header>.between>.btn{font-size:9px;padding:10px}.session-header .btn .icon{width:13px}.tabs>.tab{font-size:9px;padding:9px 8px}.card-head h2{font-size:14px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
@media print{.sidebar,.topbar,.bottom-nav,.timer,#toast,.btn,.icon-btn,.set-remove{display:none!important}.layout{margin:0}#main{padding:0}.card{box-shadow:none;break-inside:avoid}body{background:white}.session-header{position:static}dialog{position:static;max-height:none}.cols,.hero-grid{grid-template-columns:1fr 1fr}}

.update-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 32px;background:#eef2ff;border-bottom:1px solid #dce3fc;font-size:13px;color:#28429b}.update-banner[hidden]{display:none}@media(max-width:760px){.update-banner{padding:12px 20px;flex-wrap:wrap}}

/* Adaptive plans may contain one to six training days. */
.training-toolbar .tabs{flex-wrap:wrap;max-width:100%}
@media(max-width:760px){.training-toolbar .tabs{grid-template-columns:repeat(auto-fit,minmax(76px,1fr))}.training-toolbar .tab{white-space:normal}}
