:root{--bg:#f3f5f0;--card:#fff;--ink:#192e2a;--muted:#6f7e75;--line:#e0e7df;--green:#163e32;--lime:#cdf578;--pale:#edf4e6;--orange:#c36c33;--red:#ab3c3c;--shadow:0 8px 30px #152e2208;--radius:20px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:15px}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:var(--green)}svg{flex:none;vertical-align:middle}h1,h2,h3,p{margin:0}h1{font-size:32px;font-weight:700;letter-spacing:-1px;line-height:1.15}h2{font-size:19px;letter-spacing:-.4px}h3{font-size:16px}p{line-height:1.65}.muted{color:var(--muted)}.small{font-size:12px;line-height:1.6}.tiny{font-size:11px}.eyebrow{font-size:11px;letter-spacing:1.9px;text-transform:uppercase;font-weight:700}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.skip-link{position:absolute;top:-80px;z-index:99;background:white;padding:15px}.skip-link:focus{top:0}:focus-visible{outline:3px solid #76a33b;outline-offset:3px}input,select,textarea{width:100%;background:#fff;border:1px solid #d2ded3;color:var(--ink);padding:12px 13px;border-radius:10px;min-width:0}input[type=checkbox]{width:18px;height:18px;accent-color:var(--green);flex:none}input[readonly]{background:#f4f6f1}label{display:grid;gap:7px;font-size:13px;font-weight:600}textarea{resize:vertical;min-height:90px}.field-help{font-size:11px;line-height:1.5;font-weight:400;color:var(--muted)}fieldset{border:0;padding:0;margin:0;min-width:0}legend{font-weight:700;font-size:15px;margin-bottom:14px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.span2{grid-column:1/-1}.checkline{display:flex;align-items:flex-start;gap:10px;font-weight:400;line-height:1.5}.checkline input{margin-top:2px}.form-error{padding:12px 14px;background:#fff0ec;color:#932f26;border-radius:10px;font-size:13px;line-height:1.6;margin-bottom:15px}.form-error:empty{display:none}.btn{border:1px solid var(--line);border-radius:11px;padding:11px 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;background:#fff;color:var(--ink);font-size:13px;font-weight:650;white-space:nowrap;min-height:42px;transition:background .15s,transform .15s}.btn:hover{background:#f1f6eb}.btn.primary{background:var(--green);color:#fff;border-color:var(--green)}.btn.primary:hover{background:#205640}.btn.lime{background:var(--lime);color:#163b2b;border-color:var(--lime)}.btn.ghost{background:transparent;border-color:transparent}.btn.danger{color:var(--red);border-color:#f0d7d0}.btn.compact{padding:7px 11px;min-height:34px;font-size:12px}.icon-btn{padding:9px;min-width:36px}.button-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.boot{padding:20vh 24px;text-align:center;font-weight:600}.app-shell{display:grid;grid-template-columns:236px 1fr;min-height:100vh}.sidebar{background:#142d27;color:#f0f5ed;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:236px;padding:32px 22px;z-index:20}.brand{display:flex;align-items:center;gap:10px;font-size:21px;letter-spacing:-.6px;font-weight:700}.brand-mark{width:35px;height:35px;border-radius:12px;background:var(--lime);display:grid;place-items:center;color:#173e2a}.brand-sub{font-size:10px;color:#90aaa0;letter-spacing:1.3px;margin:10px 0 39px 45px}.nav{display:grid;gap:7px}.nav button{color:#b7cac0;background:transparent;border:0;text-align:left;display:flex;align-items:center;gap:13px;padding:13px 15px;border-radius:12px;font-size:13px;font-weight:550}.nav button.active{background:#294b3b;color:var(--lime)}.nav button:hover{background:#234234}.sidebar-bottom{margin-top:auto;padding-top:35px}.personal-note{border:1px solid #355044;border-radius:15px;padding:16px;font-size:12px;color:#a6bcb0;line-height:1.7}.personal-note strong{display:block;color:#dfecdf;margin:10px 0 5px}.sidebar-account{display:flex;gap:10px;align-items:center;margin-top:24px;border-top:1px solid #2c483d;padding-top:20px}.avatar{width:36px;height:36px;border-radius:50%;background:#334f3d;color:#e1f2d3;display:grid;place-items:center;font-size:13px;font-weight:650;flex:none}.account-text{flex:1;min-width:0;font-size:12px;overflow:hidden;text-overflow:ellipsis}.account-text strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-account button{background:none;border:none;color:#a9bfb1;padding:6px}.content{grid-column:2;min-width:0;padding:0 36px 36px;max-width:1570px;width:100%;margin:auto}.topbar{display:flex;justify-content:space-between;align-items:center;min-height:87px;border-bottom:1px solid var(--line);gap:12px}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb b{font-weight:500;color:var(--ink)}.top-actions{display:flex;gap:9px;align-items:center}.sync-state{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:7px}.sync-dot{width:6px;height:6px;border-radius:50%;background:#6c9455}.demo-banner{margin:18px 0 0;padding:9px 14px;border:1px solid #dbe6bc;background:#f0f5df;font-size:12px;border-radius:10px;display:flex;justify-content:space-between;align-items:center;gap:8px}.demo-banner button{padding:0;border:none;background:none;font-size:12px;text-decoration:underline;color:var(--green)}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:30px 0 26px}.page-heading p{font-size:13px;color:var(--muted);margin-top:8px}.date-label{font-size:12px;color:var(--muted)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(285px,1fr);gap:22px}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:23px;box-shadow:var(--shadow);min-width:0}.card-header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px}.card-header p{font-size:12px;margin-top:4px;color:var(--muted)}.stack{display:grid;gap:22px;align-content:start}.hero{background:#173e32;color:#fff;padding:29px 30px;position:relative;overflow:hidden;border:0;min-height:217px}.hero:after{content:"";position:absolute;width:220px;height:220px;border:1px solid #ffffff10;border-radius:50%;right:-65px;top:-65px;box-shadow:0 0 0 40px #ffffff05,0 0 0 85px #ffffff03;pointer-events:none}.hero .eyebrow{color:#bddc99}.hero h2{font-size:27px;line-height:1.2;max-width:340px;margin:16px 0 8px;letter-spacing:-.8px}.hero p{font-size:13px;color:#c1d6c7;max-width:400px}.hero-footer{margin-top:24px;display:flex;align-items:center;gap:16px}.hero-footer .small{color:#b9d0c1}.hero .btn{position:relative;z-index:1}.mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:21px}.stat-card{padding:20px;border-radius:15px;border:1px solid var(--line);background:#fff;min-width:0}.stat-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px}.stat-number{font-size:29px;letter-spacing:-1px;font-weight:700;margin:13px 0 4px}.stat-number small{font-size:13px;font-weight:500;color:var(--muted);letter-spacing:0}.stat-caption{font-size:10px;color:var(--muted)}.progress-line{height:5px;background:#edf0e9;border-radius:8px;overflow:hidden;margin:12px 0 0}.progress-line span{height:100%;display:block;background:#9fc858;border-radius:8px}.week-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin-top:8px}.day-chip{border:1px solid transparent;background:#f3f6ef;border-radius:14px;display:grid;justify-items:center;padding:11px 4px;color:var(--muted);gap:7px;font-size:11px}.day-chip strong{font-size:17px;color:var(--ink)}.day-chip.today{background:#e5f0d2;border-color:#afce7d}.day-chip.selected{border-color:#487044}.dots{height:5px;display:flex;gap:3px}.dot{height:5px;width:5px;background:#376b4c;border-radius:50%}.dot.alt{background:#ae9577}.workout-list{display:grid;gap:11px}.workout{display:flex;gap:13px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:14px 15px;min-width:0;background:#fff}.sport-icon{width:41px;height:41px;border-radius:12px;display:grid;place-items:center;background:#eef5e1;color:#457033;flex:none}.sport-icon.strength{background:#f8eee4;color:#b27939}.sport-icon.cycle{background:#e6f0f4;color:#447a90}.sport-icon.walk{background:#f0edf7;color:#8370a3}.workout-info{min-width:0;flex:1}.workout-info strong{display:block;font-size:13px;line-height:1.45}.workout-meta{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.5}.workout-distance{font-size:18px;font-weight:700;white-space:nowrap}.workout-distance small{font-size:11px;font-weight:400;color:var(--muted)}.workout.done .sport-icon{background:#e7f4ea;color:#3c7d4f}.workout.done .workout-info strong{color:#58725e}.workout.held{background:#fff8f0}.workout.skipped{opacity:.75}.workout .btn{flex:none}.tag{display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:600;padding:4px 7px;border-radius:6px;background:#f0f4eb;color:#537143;line-height:1.2;white-space:nowrap}.tag.amber{background:#fff0dc;color:#9f641e}.tag.red{background:#ffe9e2;color:#a44132}.tag.muted{background:#f0f2ee;color:#798074}.tag.lime{background:#e6f7c6;color:#45672b}.tags{display:flex;gap:5px;margin-top:6px;flex-wrap:wrap}.list-day-label{font-size:11px;letter-spacing:.3px;color:var(--muted);margin:20px 0 10px;display:flex;justify-content:space-between}.list-day-label:first-child{margin-top:0}.coach-card{background:#f1f6e8}.coach-glyph{width:39px;height:39px;border-radius:12px;background:#dceebe;display:grid;place-items:center;margin-bottom:14px;color:#4e7236}.coach-card h3{margin-bottom:8px;line-height:1.5}.coach-card p{font-size:12px;color:#61745a;line-height:1.75}.coach-card .card-footer{margin-top:17px;padding-top:14px;border-top:1px solid #dce6ce;font-size:11px;color:#7a8a6b}.goal-icon{height:53px;width:53px;border-radius:50%;display:grid;place-items:center;background:#eff4e4;color:#688844}.goal-row{display:flex;gap:15px;align-items:center;margin:4px 0 20px}.goal-row h3{font-size:20px;letter-spacing:-.5px}.goal-row p{font-size:12px;color:var(--muted);margin-top:4px}.key-value{display:flex;justify-content:space-between;gap:12px;font-size:12px;padding:11px 0;border-top:1px solid #edf0e8}.key-value span{color:var(--muted)}.empty{padding:26px 15px;text-align:center;color:var(--muted);font-size:13px;line-height:1.7;background:#f7f9f4;border:1px dashed #dfe5d9;border-radius:13px}.notice{padding:15px 18px;background:#f4f7ed;border:1px solid #dfe7ce;border-radius:13px;font-size:12px;line-height:1.8;margin-bottom:16px}.notice.warning{background:#fff5e8;border-color:#ebd9bc;color:#775626}.notice.danger{background:#fff0e9;border-color:#edcec2;color:#95392d}.interval-notice{padding-bottom:12px}.interval-plan{display:grid;gap:7px;margin-top:14px}.interval-step{display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 11px;border-radius:10px;border:1px solid #dfe5dc;background:#fff;font-size:11px;line-height:1.35}.interval-step-no{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;background:#ffffffaa;font-weight:700}.interval-step div{display:flex;align-items:center;justify-content:space-between;gap:9px;min-width:0}.interval-step div span{color:var(--muted);white-space:nowrap}.interval-step>b{white-space:nowrap;font-size:11px}.interval-step.fast{background:#fff0e8;border-color:#efcdbb;color:#8d4326}.interval-step.recovery{background:#edf6e8;border-color:#d0e2c7;color:#42643b}.interval-step.warmup,.interval-step.cooldown{background:#eef3f5;border-color:#d6e0e3;color:#496069}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;flex-wrap:wrap}.toolbar .select-small{width:auto;max-width:190px;padding:9px 12px;font-size:12px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-left:1px solid var(--line);border-top:1px solid var(--line);border-radius:14px;overflow:hidden}.calendar-label{font-size:11px;font-weight:600;color:var(--muted);text-align:center;padding:11px;background:#f8faf4;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.calendar-cell{min-height:125px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:8px;background:white;min-width:0}.calendar-cell.outside{background:#f8f9f5}.calendar-cell.today{background:#f1f7e5}.cell-date{font-size:11px;width:24px;height:24px;display:grid;place-items:center;border-radius:8px;margin-bottom:7px}.today .cell-date{background:var(--green);color:#fff}.calendar-event{display:block;border:0;text-align:left;width:100%;padding:6px;border-radius:7px;background:#ecf3e0;color:#395d30;font-size:10px;line-height:1.5;margin-bottom:4px;overflow:hidden;word-break:break-word}.calendar-event.strength{background:#f7eddc;color:#936631}.calendar-event.done{opacity:.7}.calendar-event.held{background:#ffeadd;color:#9c5d33}.calendar-event .time{font-weight:650}.section-row{margin:24px 0 13px;display:flex;align-items:center;justify-content:space-between}.section-row h3{font-size:14px}.settings-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:22px;align-items:start}.slot-row{display:grid;grid-template-columns:90px 1fr 120px minmax(170px,1.2fr) 35px;gap:8px;align-items:end;background:#f6f8f2;border-radius:12px;padding:12px;margin-bottom:10px}.slot-row label{font-size:10px}.slot-row input,.slot-row select{font-size:12px;padding:10px 8px;border-radius:8px}.slot-kind{grid-column:1/-1;display:flex;align-items:center;gap:8px;font-size:11px}.audit{padding:18px 0;border-bottom:1px solid var(--line)}.audit:first-child{padding-top:0}.audit:last-child{border-bottom:0}.audit-head{display:flex;gap:10px;justify-content:space-between;align-items:flex-start}.audit-head h3{font-size:14px}.audit p{font-size:12px;color:var(--muted);margin:7px 0}.change{display:flex;justify-content:space-between;gap:12px;padding:8px 10px;background:#f5f7f0;font-size:11px;border-radius:7px;margin-top:5px}.change b{white-space:nowrap}.chart-bars{display:flex;align-items:flex-end;gap:12px;height:170px;padding:0 2px;margin:24px 0 30px}.bar-group{flex:1;position:relative;min-width:0;height:100%;display:flex;justify-content:center;align-items:flex-end;gap:5px}.bar{background:#254e37;width:28px;max-width:38%;min-height:2px;border-radius:5px 5px 0 0}.bar.planned{background:#d8e7c1}.bar-label{position:absolute;bottom:-24px;font-size:10px;color:var(--muted);white-space:nowrap}.bar-value{position:absolute;font-size:10px;font-weight:600;transform:translateY(-5px)}.legend{display:flex;gap:17px;font-size:11px;color:var(--muted)}.legend span{display:flex;align-items:center;gap:6px}.legend i{width:8px;height:8px;background:#254e37;border-radius:2px}.legend i.light{background:#d8e7c1}.progress-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:22px}.security-note{font-size:11px;line-height:1.8;color:var(--muted);display:flex;gap:8px;align-items:flex-start}.security-note svg{margin-top:2px}.footer-note{text-align:center;font-size:10px;color:#8a978a;margin-top:30px;line-height:1.7}.modal-overlay{position:fixed;inset:0;z-index:80;background:#0a201b99;backdrop-filter:blur(5px);display:flex;justify-content:center;align-items:center;padding:24px}.modal{background:var(--card);border-radius:22px;padding:27px;width:590px;max-width:100%;max-height:90dvh;overflow:auto;box-shadow:0 25px 90px #06171255}.modal.wide{width:760px}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:23px}.modal-head h2{font-size:23px;line-height:1.3}.modal-head p{font-size:12px;color:var(--muted);margin-top:6px}.modal .form-grid{gap:16px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:25px}.form-separator{height:1px;background:var(--line);margin:23px 0}.metric-banner{background:#edf4e2;padding:18px;border-radius:14px;display:flex;gap:22px;margin-bottom:21px}.metric-banner strong{font-size:25px;display:block;letter-spacing:-.8px}.metric-banner span{font-size:11px;color:var(--muted)}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#193c2f;color:#fff;box-shadow:0 8px 30px #12312230;border-radius:12px;padding:13px 20px;z-index:100;font-size:13px;max-width:90%;line-height:1.5;display:none}#toast.visible{display:block}.auth-layout{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr}.auth-story{background:#142f27;color:white;padding:50px clamp(35px,6vw,110px);display:flex;flex-direction:column;position:relative;overflow:hidden}.auth-story h1{font-size:clamp(40px,4.4vw,64px);line-height:1.12;letter-spacing:-2px;max-width:540px;margin-top:90px}.auth-story h1 em{color:var(--lime);font-style:normal}.auth-story>p{color:#abc6b5;font-size:15px;max-width:400px;margin-top:25px}.story-preview{margin-top:42px;border:1px solid #395647;background:#203f32;padding:21px;border-radius:18px;max-width:420px}.preview-strike{color:#819c89;text-decoration:line-through;font-size:16px}.preview-new{font-size:32px;font-weight:700;letter-spacing:-1px;color:var(--lime);margin-left:12px}.story-foot{margin-top:auto;padding-top:45px;font-size:11px;color:#8da996}.auth-form-wrap{display:flex;align-items:center;justify-content:center;padding:50px 32px}.auth-form{width:100%;max-width:365px}.auth-form .eyebrow{color:#91a376;margin-bottom:14px}.auth-form h2{font-size:31px;letter-spacing:-1px;margin-bottom:12px}.auth-form>p{font-size:13px;color:var(--muted);margin-bottom:28px}.auth-form form{display:grid;gap:18px}.auth-form .btn.primary{margin-top:5px;min-height:47px}.auth-bottom{border-top:1px solid var(--line);margin-top:24px;padding-top:23px;text-align:center}.auth-bottom p{font-size:11px;color:var(--muted);margin-top:12px}.mobile-brand{display:none}.week-title{min-width:125px;text-align:center;font-size:13px;font-weight:600}.segmented{display:flex;border:1px solid var(--line);border-radius:10px;background:#edf1e8;padding:3px;gap:2px}.segmented button{border:none;border-radius:7px;padding:7px 12px;background:transparent;color:var(--muted);font-size:12px}.segmented button.active{background:white;color:var(--ink);box-shadow:0 1px 5px #1327110a}.divider{height:1px;background:var(--line);margin:21px 0}.faq{font-size:12px;line-height:1.8;color:var(--muted)}.faq summary{color:var(--ink);cursor:pointer;font-weight:600}.faq p{margin-top:8px}.link-box{margin-top:15px}.link-box .button-row{margin-top:12px}.data-table{width:100%;border-collapse:collapse;font-size:12px}.data-table th{color:var(--muted);font-size:10px;text-align:left;padding:10px 6px;border-bottom:1px solid var(--line);font-weight:600}.data-table td{padding:12px 6px;border-bottom:1px solid #edf1e8}.data-table td:last-child{text-align:right}.scroll-x{overflow:auto}.mb{margin-bottom:20px}.mt{margin-top:20px}
@media(min-width:1600px){.content{padding-left:55px;padding-right:55px}}
@media(max-width:1200px){.sidebar{width:207px;padding:29px 16px}.app-shell{grid-template-columns:207px 1fr}.content{padding:0 24px 30px}.dashboard-grid{grid-template-columns:minmax(0,1.5fr) minmax(265px,1fr);gap:17px}.card{padding:20px}.hero{padding:25px}.hero h2{font-size:25px}.mini-stats{gap:10px}.stat-card{padding:16px}.settings-grid{grid-template-columns:1fr}.slot-row{grid-template-columns:100px 1fr 110px minmax(150px,1.1fr) 40px}}
@media(max-width:980px){.sidebar{width:80px;align-items:center;padding:25px 10px}.sidebar .brand>span:not(.brand-mark),.sidebar .brand-sub,.nav span,.sidebar-bottom .personal-note,.account-text,.sidebar-account .avatar{display:none}.nav{margin-top:40px}.nav button{padding:14px}.sidebar-account{padding:14px 0;border:0}.app-shell{grid-template-columns:80px 1fr}.dashboard-grid{grid-template-columns:1fr}.dashboard-grid>.stack:last-child{display:grid;grid-template-columns:1fr 1fr}.dashboard-grid>.stack:last-child>.card:first-child{grid-column:1/-1}.hero h2{max-width:500px}.hero p{max-width:500px}.progress-grid{grid-template-columns:1fr}.auth-story{padding:40px}.auth-story h1{margin-top:80px;font-size:45px}}
@media(max-width:640px){h1{font-size:26px}.app-shell{display:block}.sidebar{inset:auto 0 0;width:100%;height:72px;padding:5px 8px calc(5px + env(safe-area-inset-bottom)/2);background:#fff;border-top:1px solid var(--line);flex-direction:row;justify-content:center}.sidebar>.brand,.sidebar-bottom{display:none}.nav{display:grid;grid-template-columns:repeat(5,1fr);gap:2px;margin:0;width:100%}.nav button{display:flex;flex-direction:column;gap:5px;padding:9px 3px;color:#80907e;border-radius:10px;font-size:9px}.nav span{display:block;font-size:9px}.nav button.active{background:#edf4e3;color:#294e34}.nav button:hover{background:#f1f5eb}.nav svg{width:19px;height:19px}.content{padding:0 16px 95px}.topbar{min-height:68px;border-bottom:0}.breadcrumb{display:none}.mobile-brand{display:flex;font-size:18px}.mobile-brand .brand-mark{width:29px;height:29px;border-radius:9px}.top-actions{gap:5px}.top-actions>.btn{padding:9px;min-height:37px}.top-actions>.btn>span{display:none}.sync-state{display:none}.page-heading{margin:22px 0 20px;align-items:flex-start}.page-heading p{font-size:12px}.page-heading>.date-label{display:none}.demo-banner{font-size:10px;margin-top:0;padding:8px 10px;align-items:flex-start}.demo-banner button{font-size:10px}.dashboard-grid{gap:17px}.stack{gap:17px}.card{padding:19px;border-radius:17px}.hero{padding:24px;min-height:217px}.hero h2{font-size:26px;max-width:260px}.hero p{font-size:12px;max-width:270px}.hero-footer{gap:13px;margin-top:21px}.hero-footer .small{font-size:10px}.mini-stats{gap:8px;margin-top:14px}.stat-card{padding:13px 11px;border-radius:13px}.stat-top{font-size:9px;align-items:flex-start;gap:3px}.stat-top svg{width:13px;height:13px}.stat-number{font-size:25px;margin-top:12px}.stat-number small{font-size:10px}.stat-caption{font-size:9px;line-height:1.6}.workout{padding:12px;gap:10px;flex-wrap:wrap}.sport-icon{width:35px;height:35px;border-radius:10px}.sport-icon svg{width:18px}.workout-info strong{font-size:12px}.workout-meta{font-size:10px}.workout-distance{font-size:16px}.workout>.btn{font-size:10px;padding:7px 9px;min-height:31px}.workout .tags{gap:3px}.tag{font-size:9px}.dashboard-grid>.stack:last-child{grid-template-columns:1fr}.dashboard-grid>.stack:last-child>.card:first-child{grid-column:auto}.week-strip{gap:5px}.day-chip{padding:9px 2px;border-radius:11px;font-size:10px}.day-chip strong{font-size:16px}.card-header h2{font-size:17px}.card-header .btn{font-size:10px;padding:6px 8px}.form-grid{gap:15px}.form-grid label{font-size:12px}.settings-grid{gap:17px}.slot-row{grid-template-columns:1fr 1.25fr 34px;gap:8px;padding:10px}.slot-row label:nth-child(3){grid-column:1}.slot-row label:nth-child(4){grid-column:2}.slot-row>button{grid-column:3;grid-row:1/3;align-self:center}.modal-overlay{padding:12px;align-items:center}.modal{padding:21px;max-height:92dvh;border-radius:19px}.modal-head h2{font-size:21px}.modal .form-grid{gap:14px}.modal .form-grid .span-mobile{grid-column:1/-1}.modal-actions{margin-top:20px}.modal-actions .btn{flex:1}.calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));border-radius:10px}.calendar-cell{min-height:92px;padding:3px}.calendar-label{font-size:9px;padding:8px 2px}.calendar-event{font-size:8px;padding:4px 3px;line-height:1.4}.calendar-event .time{font-size:8px}.cell-date{font-size:10px;width:21px;height:21px;margin-bottom:3px}.toolbar{gap:8px}.toolbar .button-row{gap:5px}.week-title{font-size:12px;min-width:105px}.segmented button{font-size:11px;padding:6px 9px}.toolbar .btn{padding:8px 10px;font-size:11px}.auth-layout{display:block}.auth-story{padding:25px 28px 30px}.auth-story h1{margin-top:28px;font-size:38px;max-width:320px;letter-spacing:-1.5px}.auth-story>p{font-size:12px;margin-top:14px;max-width:310px}.story-preview,.story-foot{display:none}.auth-form-wrap{padding:35px 28px}.auth-form{max-width:410px}.auth-form h2{font-size:26px}.auth-form>p{margin-bottom:22px}.auth-form .eyebrow{font-size:10px}.auth-bottom{margin-top:21px}.form-grid .narrow-full{grid-column:1/-1}.change{font-size:10px}.page-heading .button-row .btn{font-size:11px;padding:9px 10px}.data-table{font-size:11px}.scroll-x{margin:0 -5px}.notice{font-size:11px;padding:12px 14px}.security-note{font-size:10px}.footer-note{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.brand-sub{font-size:9px;letter-spacing:1px;margin-left:45px;white-space:nowrap}
@media(max-width:360px){.mobile-brand{font-size:15px}.top-actions>.btn{padding:7px;min-height:33px}.top-actions{gap:3px}}

.interval-meta{color:#5e713d;font-weight:600;margin-top:4px}.calendar-event.run{border-left:3px solid #6f8f43}.brand-mark{background:linear-gradient(145deg,#d9f06f,#a6d650)!important;color:#15352b!important}

.logo-mark{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;padding:0;background:transparent!important}
.logo-mark img{display:block;width:30px;height:30px;border-radius:8px}
.pr-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:14px}
.pr-card{border:1px solid var(--border,#d9dfd8);border-radius:16px;padding:14px;background:rgba(255,255,255,.5);min-height:132px;display:flex;flex-direction:column;gap:6px}
.pr-card.has-pr{background:linear-gradient(180deg,rgba(217,240,111,.18),rgba(255,255,255,.65))}
.pr-card span{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted,#667066)}
.pr-card strong{font-size:25px;line-height:1.05;color:var(--ink,#18201c)}
.pr-card small{font-size:11px;color:var(--muted,#667066);min-height:30px}
.pr-card .btn{align-self:flex-start;margin-top:auto}
.pr-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.pr-summary>div{border-top:1px solid var(--border,#d9dfd8);padding-top:12px;display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.pr-summary span{color:var(--muted,#667066);font-size:13px}.pr-summary strong{font-size:17px}
@media(max-width:950px){.pr-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.pr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pr-summary{grid-template-columns:1fr}.pr-card strong{font-size:22px}}

/* v14: meldingen, aandachtsteller en app-badge */
.attention-btn{position:relative}
.attention-count{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:10px;background:#c74632;color:white;font-size:10px;font-weight:800;display:grid;place-items:center;border:2px solid var(--bg);line-height:1}
.attention-item{display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}
.attention-item:last-of-type{border-bottom:0}.attention-item p{font-size:11px;color:var(--muted);line-height:1.55;margin-top:3px}.attention-glyph{width:38px;height:38px;border-radius:12px;background:#eef5e1;color:#456f37;display:grid;place-items:center}
.notification-settings{display:grid;gap:14px}.notification-category{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(170px,.8fr);gap:14px;align-items:end;padding:14px;border:1px solid var(--line);border-radius:14px;background:#f8faf5}.notification-category label{margin:0}.notification-settings .notice .btn{margin-left:8px}
@media(max-width:640px){.attention-count{top:-4px;right:-4px}.attention-item{grid-template-columns:36px 1fr;align-items:start}.attention-item>.btn{grid-column:2;justify-self:start}.attention-glyph{width:34px;height:34px}.notification-category{grid-template-columns:1fr}.notification-settings .notice .btn{margin:9px 0 0;display:flex;width:max-content}}


/* v38: consistente mobiele uitlijning door de hele app */
@media(max-width:640px){
  html,body{max-width:100%;overflow-x:hidden}
  .content,.card,.stack,.settings-grid,.dashboard-grid,.progress-grid,.form-grid,fieldset,form{min-width:0;max-width:100%}

  /* Formulieren: op een telefoon altijd 1 duidelijke kolom. */
  .form-grid,.modal .form-grid{grid-template-columns:minmax(0,1fr)!important}
  .form-grid>.span2,.modal .form-grid>.span2,.form-grid .narrow-full,.modal .form-grid .span-mobile{grid-column:1!important}
  label,input,select,textarea{min-width:0;max-width:100%}
  input[type=date],input[type=time],input[type=number],input[type=text],input[type=password],select{width:100%;min-height:46px}
  .field-help{max-width:100%;overflow-wrap:anywhere}

  /* Modals mogen nooit breder worden dan het zichtbare scherm. */
  .modal-overlay{padding:10px;overflow:hidden}
  .modal,.modal.wide{width:min(100%,590px);max-width:100%;padding:20px;overflow-x:hidden}
  .modal-head{min-width:0}
  .modal-head>div{min-width:0}
  .modal-head h2,.modal-head p{overflow-wrap:anywhere}
  .modal-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:9px}
  .modal-actions .btn{width:100%;min-width:0;white-space:normal;text-align:center}
  .modal-actions .btn.danger{grid-column:1/-1}
  .modal-actions>*:only-child{grid-column:1/-1}

  /* De drie geplande/werkelijke hoofdwaarden blijven gelijkmatig verdeeld. */
  .metric-banner{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:14px}
  .metric-banner>div{min-width:0}
  .metric-banner strong{font-size:clamp(18px,6vw,23px);overflow-wrap:anywhere}
  .metric-banner span{display:block;line-height:1.35}

  /* Trainingskaarten: vaste kolommen voorkomen verspringende knoppen/afstanden. */
  .workout{display:grid;grid-template-columns:35px minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:7px 10px;flex-wrap:initial}
  .workout>.sport-icon{grid-column:1;grid-row:1/3}
  .workout>.workout-info{grid-column:2;grid-row:1/3}
  .workout>.workout-distance{grid-column:3;grid-row:1;align-self:end}
  .workout>.btn{grid-column:3;grid-row:2;justify-self:end;align-self:start}
  .workout-info,.workout-info strong,.workout-meta{min-width:0;overflow-wrap:anywhere}

  /* Kopregels en knoppen mogen omslaan zonder elkaar weg te drukken. */
  .page-heading,.card-header,.section-row,.audit-head,.key-value{min-width:0}
  .page-heading{flex-wrap:wrap}
  .page-heading>.button-row{width:100%;justify-content:flex-start}
  .card-header{flex-wrap:wrap}
  .section-row{gap:10px}
  .section-row h3{min-width:0}
  .key-value{align-items:flex-start;flex-wrap:wrap}
  .key-value strong{margin-left:auto;text-align:right;overflow-wrap:anywhere}
  .button-row{max-width:100%}
  .button-row>.btn{min-width:0;white-space:normal}

  /* Intervalstappen blijven leesbaar op smalle schermen. */
  .interval-step{grid-template-columns:26px minmax(0,1fr);gap:7px 9px}
  .interval-step div{min-width:0}
  .interval-step div strong{overflow-wrap:anywhere}
  .interval-step>b{grid-column:2;justify-self:start}
  .interval-step div span{white-space:normal}

  /* Instellingen en meldingen. */
  .notification-category{min-width:0}
  .notification-settings .notice{overflow-wrap:anywhere}
  .slot-row{min-width:0}
  .slot-row input,.slot-row select{width:100%;min-width:0}

  /* Tabellen/grafieken en records: voorkom dat tekst het scherm verbreedt. */
  .scroll-x{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .chart-bars{max-width:100%;overflow:hidden}
  .pr-card,.pr-summary>div{min-width:0}
  .pr-card small,.pr-summary strong{overflow-wrap:anywhere}
}
@media(max-width:420px){
  .content{padding-left:12px;padding-right:12px}
  .card{padding:16px}
  .modal{padding:18px 16px}
  .metric-banner{grid-template-columns:1fr 1fr}
  .metric-banner>div:nth-child(3){grid-column:1/-1}
  .mini-stats{grid-template-columns:1fr}
  .stat-card{padding:14px}
  .pr-grid{grid-template-columns:1fr}
  .modal-actions{grid-template-columns:1fr}
  .modal-actions .btn.danger{grid-column:auto}
  .workout{grid-template-columns:35px minmax(0,1fr)}
  .workout>.sport-icon{grid-column:1;grid-row:1/3}
  .workout>.workout-info{grid-column:2;grid-row:1}
  .workout>.workout-distance{grid-column:2;grid-row:2;justify-self:start}
  .workout>.btn{grid-column:1/-1;grid-row:3;width:100%;justify-self:stretch}
}


/* v40: voorkom iOS invoerzoom en houd formulierfocus stabiel */
@media(max-width:640px){
  input,select,textarea{font-size:16px!important}
}


/* v42: compacter en relevanter dashboard */
.dashboard-compact{display:grid;gap:16px}
.dashboard-hero{min-height:0;padding:22px 24px;display:flex;align-items:end;justify-content:space-between;gap:20px}
.dashboard-hero h2{font-size:24px;margin:10px 0 6px;max-width:560px}
.dashboard-hero p{max-width:720px}
.dashboard-hero-action{flex:none;position:relative;z-index:2}
.dashboard-kpis{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);overflow:hidden}
.dashboard-kpi{padding:14px 18px;min-width:0}
.dashboard-kpi+.dashboard-kpi{border-left:1px solid var(--line)}
.dashboard-kpi>span{display:block;font-size:10px;color:var(--muted);margin-bottom:4px}
.dashboard-kpi>strong{display:block;font-size:23px;line-height:1.15;letter-spacing:-.5px}
.dashboard-kpi>strong small{font-size:11px;color:var(--muted);font-weight:500;letter-spacing:0}
.dashboard-kpi>em{display:block;font-size:9px;color:var(--muted);font-style:normal;margin-top:4px}
.dashboard-progress{grid-column:1/-1;height:4px;background:#edf0e9}
.dashboard-progress span{display:block;height:100%;background:#9fc858}
.dashboard-card-header{margin-bottom:13px}
.dashboard-week-card,.dashboard-upcoming{padding:18px 20px}
.dashboard-week-card .week-strip{margin-top:0}
.dashboard-day-head{margin:14px 0 9px}
.dashboard-day-list{gap:8px}
.dashboard-day-list .workout,.dashboard-upcoming .workout{padding:10px 12px}
.dashboard-day-list .sport-icon,.dashboard-upcoming .sport-icon{width:35px;height:35px}
.dashboard-day-list .workout-distance,.dashboard-upcoming .workout-distance{font-size:15px}
.dashboard-empty{padding:14px}
.dashboard-secondary{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.dashboard-mini-card{padding:17px 18px}
.dashboard-mini-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.dashboard-mini-head .coach-glyph,.dashboard-mini-head .goal-icon{width:34px;height:34px;margin:0;flex:none}
.dashboard-mini-head>div{min-width:0}
.dashboard-mini-head span:not(.coach-glyph):not(.goal-icon){display:block;font-size:9px;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}
.dashboard-mini-head strong{display:block;font-size:13px;margin-top:2px;overflow-wrap:anywhere}
.dashboard-mini-card p{font-size:10px;line-height:1.55;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:10px}
.dashboard-goal-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;margin:8px 0 11px}
.dashboard-goal-grid span{font-size:10px;color:var(--muted)}
.dashboard-goal-grid b{color:var(--ink);font-weight:600;margin-left:3px}

@media(max-width:640px){
  .page-heading{margin:14px 0 12px}
  .page-heading h1{font-size:22px}
  .page-heading p{margin-top:3px;font-size:10px}
  .dashboard-compact{gap:11px}
  .dashboard-hero{padding:17px 18px;display:grid;gap:12px;border-radius:16px}
  .dashboard-hero h2{font-size:22px;margin:7px 0 4px;line-height:1.12}
  .dashboard-hero p{font-size:11px;line-height:1.5}
  .dashboard-hero .eyebrow{font-size:9px}
  .dashboard-hero-action .btn{width:auto;min-height:38px;padding:9px 14px}
  .dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr));border-radius:13px}
  .dashboard-kpi{padding:11px 10px}
  .dashboard-kpi+.dashboard-kpi{border-left:1px solid var(--line)}
  .dashboard-kpi>span{font-size:8px}
  .dashboard-kpi>strong{font-size:19px;white-space:nowrap}
  .dashboard-kpi>strong small{font-size:9px}
  .dashboard-kpi>em{font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .dashboard-week-card,.dashboard-upcoming{padding:15px}
  .dashboard-card-header{margin-bottom:10px}
  .dashboard-card-header h2{font-size:16px}
  .dashboard-card-header p{font-size:9px}
  .dashboard-week-card .day-chip{padding:7px 2px;gap:4px;border-radius:10px}
  .dashboard-week-card .day-chip strong{font-size:14px}
  .dashboard-week-card .day-chip span{font-size:8px}
  .dashboard-day-head{margin:11px 0 7px}
  .dashboard-day-head h3{font-size:13px}
  .dashboard-day-list .workout,.dashboard-upcoming .workout{padding:9px 10px}
  .dashboard-secondary{grid-template-columns:1fr 1fr;gap:10px}
  .dashboard-mini-card{padding:13px}
  .dashboard-mini-head{gap:8px;margin-bottom:7px}
  .dashboard-mini-head .coach-glyph,.dashboard-mini-head .goal-icon{width:30px;height:30px}
  .dashboard-mini-head strong{font-size:11px}
  .dashboard-mini-card p{font-size:9px;margin-bottom:8px}
  .dashboard-goal-grid{grid-template-columns:1fr;gap:4px;margin:6px 0 9px}
  .dashboard-mini-card .btn{width:100%;font-size:9px;padding:7px 8px}
}
@media(max-width:420px){
  .dashboard-kpi{padding:10px 7px}
  .dashboard-kpi>strong{font-size:17px}
  .dashboard-secondary{grid-template-columns:1fr 1fr}
}

/* v43: nog compacter dashboard + cache-refresh release */
@media(max-width:640px){
  .main:has(.dashboard-compact) .page-heading{margin:8px 0 8px}
  .main:has(.dashboard-compact) .page-heading h1{font-size:19px;line-height:1.1}
  .main:has(.dashboard-compact) .page-heading p{display:none}
  .dashboard-compact{gap:8px}
  .dashboard-hero{min-height:0;padding:13px 14px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}
  .dashboard-hero h2{font-size:18px;line-height:1.1;margin:5px 0 3px}
  .dashboard-hero p{font-size:9px;line-height:1.4;margin:0}
  .dashboard-hero .eyebrow{font-size:8px}
  .dashboard-hero-action{align-self:center}
  .dashboard-hero-action .btn{min-height:32px;padding:7px 10px;font-size:9px;white-space:nowrap}
  .dashboard-kpis{border-radius:11px}
  .dashboard-kpi{padding:8px 7px}
  .dashboard-kpi>span{font-size:7px;margin-bottom:2px}
  .dashboard-kpi>strong{font-size:16px;line-height:1.05}
  .dashboard-kpi>strong small{font-size:8px}
  .dashboard-kpi>em{font-size:7px;margin-top:2px}
  .dashboard-progress{height:3px}
  .dashboard-week-card,.dashboard-upcoming{padding:11px 12px}
  .dashboard-card-header{margin-bottom:7px}
  .dashboard-card-header h2{font-size:14px}
  .dashboard-card-header p{font-size:8px;margin-top:1px}
  .dashboard-week-card .week-strip{gap:4px}
  .dashboard-week-card .day-chip{padding:5px 1px;gap:2px;border-radius:8px}
  .dashboard-week-card .day-chip strong{font-size:12px}
  .dashboard-week-card .day-chip span{font-size:7px}
  .dashboard-day-head{margin:8px 0 5px}
  .dashboard-day-head h3{font-size:11px}
  .dashboard-day-head .btn{padding:6px 8px;font-size:8px}
  .dashboard-day-list,.dashboard-upcoming .workout-list{gap:6px}
  .dashboard-day-list .workout,.dashboard-upcoming .workout{padding:7px 8px;gap:8px}
  .dashboard-day-list .sport-icon,.dashboard-upcoming .sport-icon{width:29px;height:29px;border-radius:9px}
  .dashboard-day-list .workout-info strong,.dashboard-upcoming .workout-info strong{font-size:10px}
  .dashboard-day-list .workout-meta,.dashboard-upcoming .workout-meta{font-size:8px}
  .dashboard-day-list .workout-distance,.dashboard-upcoming .workout-distance{font-size:13px}
  .dashboard-day-list .btn,.dashboard-upcoming .btn{min-height:28px;padding:5px 7px;font-size:8px}
  .dashboard-secondary{gap:7px}
  .dashboard-mini-card{padding:10px}
  .dashboard-mini-head{gap:6px;margin-bottom:5px}
  .dashboard-mini-head .coach-glyph,.dashboard-mini-head .goal-icon{width:26px;height:26px}
  .dashboard-mini-head strong{font-size:10px}
  .dashboard-mini-card p{font-size:8px;line-height:1.35;margin-bottom:6px;-webkit-line-clamp:1}
  .dashboard-goal-grid{grid-template-columns:1fr 1fr;gap:3px 6px;margin:4px 0 6px}
  .dashboard-goal-grid span{font-size:8px}
  .dashboard-mini-card .btn{padding:6px 7px;font-size:8px}
}

/* v44: iets grotere dashboardtekst, compacte indeling behouden */
@media(max-width:640px){
  .main:has(.dashboard-compact) .page-heading h1{font-size:21px}
  .dashboard-hero h2{font-size:20px}
  .dashboard-hero p{font-size:10.5px}
  .dashboard-hero .eyebrow{font-size:9px}
  .dashboard-hero-action .btn{font-size:10px}
  .dashboard-kpi>span{font-size:8.5px}
  .dashboard-kpi>strong{font-size:18px}
  .dashboard-kpi>strong small{font-size:9px}
  .dashboard-kpi>em{font-size:8px}
  .dashboard-card-header h2{font-size:16px}
  .dashboard-card-header p{font-size:9px}
  .dashboard-week-card .day-chip strong{font-size:14px}
  .dashboard-week-card .day-chip span{font-size:8px}
  .dashboard-day-head h3{font-size:13px}
  .dashboard-day-head .btn{font-size:9px}
  .dashboard-day-list .workout-info strong,.dashboard-upcoming .workout-info strong{font-size:12px}
  .dashboard-day-list .workout-meta,.dashboard-upcoming .workout-meta{font-size:9.5px}
  .dashboard-day-list .workout-distance,.dashboard-upcoming .workout-distance{font-size:15px}
  .dashboard-day-list .btn,.dashboard-upcoming .btn{font-size:9px}
  .dashboard-mini-head strong{font-size:11.5px}
  .dashboard-mini-card p{font-size:9.5px}
  .dashboard-goal-grid span{font-size:9px}
  .dashboard-mini-card .btn{font-size:9px}
}


/* v45: doorlopende planning in Agenda */
.agenda-card{padding:18px 20px}
.agenda-toolbar{margin-bottom:16px}
.agenda-month-separator{margin:18px 0 8px;padding-top:4px;border-top:1px solid var(--line)}
.agenda-month-separator:first-child{margin-top:0;border-top:0;padding-top:0}
.agenda-month-separator span{font-size:18px;font-weight:650;text-transform:capitalize}
.agenda-week-separator{font-size:9px;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);margin:10px 0 6px;padding-left:62px}
.agenda-plan-day{display:grid;grid-template-columns:52px minmax(0,1fr);gap:10px;padding:7px 0 11px;border-bottom:1px solid var(--line)}
.agenda-plan-day:last-child{border-bottom:0}
.agenda-plan-date{display:grid;justify-items:center;align-content:start;padding-top:4px;color:var(--muted)}
.agenda-plan-date>span{font-size:9px;text-transform:uppercase}
.agenda-plan-date>strong{font-size:20px;color:var(--ink);line-height:1.1;margin-top:2px}
.agenda-plan-date>em{font-size:7px;font-style:normal;color:var(--green);margin-top:2px}
.agenda-plan-day.today .agenda-plan-date>strong{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#dcecc5;color:#214a32}
.agenda-plan-events{display:grid;gap:7px}
.agenda-plan-event{position:relative;width:100%;border:1px solid var(--line);border-radius:11px;background:#f8faf5;padding:10px 11px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;text-align:left;color:var(--ink)}
.agenda-plan-event.run{background:#eef6e4;border-color:#dbe9cc}
.agenda-plan-event.strength{background:#faf2e5;border-color:#eadbc2}
.agenda-plan-event.done{opacity:.88}
.agenda-plan-main{min-width:0}
.agenda-plan-main strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.agenda-plan-main span{display:block;font-size:9px;color:var(--muted);margin-top:3px}
.agenda-plan-side{text-align:right;white-space:nowrap}
.agenda-plan-side b{display:block;font-size:12px}
.agenda-plan-side span{display:block;font-size:8px;color:var(--muted);margin-top:2px}
.agenda-plan-status{grid-column:1/-1;justify-self:start;font-size:8px;font-weight:600;padding:3px 6px;border-radius:6px}
.agenda-plan-status.done{background:#def2dc;color:#416d44}
.agenda-plan-status.held{background:#ffe7d5;color:#9a633b}
.agenda-plan-empty{margin:8px 0}

@media(max-width:640px){
  .agenda-card{padding:13px 12px}
  .agenda-toolbar{margin-bottom:12px;gap:9px}
  .agenda-toolbar .week-title{font-size:12px}
  .agenda-toolbar .button-row{gap:6px}
  .agenda-toolbar .icon-btn{width:36px;height:36px}
  .agenda-toolbar .segmented button{padding:7px 10px;font-size:10px}
  .agenda-month-separator{margin:14px 0 7px}
  .agenda-month-separator span{font-size:16px}
  .agenda-week-separator{padding-left:48px;font-size:8px;margin:8px 0 4px}
  .agenda-plan-day{grid-template-columns:40px minmax(0,1fr);gap:8px;padding:5px 0 9px}
  .agenda-plan-date>span{font-size:8px}
  .agenda-plan-date>strong{font-size:18px}
  .agenda-plan-day.today .agenda-plan-date>strong{width:31px;height:31px}
  .agenda-plan-event{padding:9px 10px}
  .agenda-plan-main strong{font-size:11px}
  .agenda-plan-main span{font-size:9px}
  .agenda-plan-side b{font-size:11px}
  .agenda-plan-side span{font-size:8px}
}


/* v46: compactere Voortgang, Coach en Instellingen */
.progress-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow);overflow:hidden;margin-bottom:14px}
.progress-summary>div{padding:13px 15px;min-width:0}
.progress-summary>div+div{border-left:1px solid var(--line)}
.progress-summary span{display:block;font-size:9px;color:var(--muted);margin-bottom:4px}
.progress-summary strong{font-size:19px;line-height:1.1}
.progress-summary small{font-size:9px;color:var(--muted);font-weight:500}
.compact-head{margin-bottom:12px}
.compact-head h2{font-size:17px}
.compact-head p{font-size:10px;margin-top:2px}
.progress-records-card,.progress-chart-card,.progress-history-card{padding:17px 18px;margin-top:14px}
.progress-pr-list{display:grid;gap:6px}
.progress-pr-row{display:grid;grid-template-columns:110px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:#fbfcf9}
.progress-pr-row.has-pr{background:#f4f9e9}
.progress-pr-row>div:first-child{display:flex;align-items:baseline;gap:8px}
.progress-pr-row>div:first-child span{font-size:9px;font-weight:700;text-transform:uppercase;color:var(--muted)}
.progress-pr-row>div:first-child strong{font-size:19px}
.progress-pr-meta{min-width:0}
.progress-pr-meta>span{display:block;font-size:9px;color:var(--ink)}
.progress-pr-meta>small{display:block;font-size:8px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.progress-pr-row .btn{font-size:8px;padding:5px 8px;min-height:27px}
.progress-record-highlights{margin-top:9px;padding-top:9px;border-top:1px solid var(--line);font-size:9px;color:var(--muted)}
.progress-record-highlights b{color:var(--ink);margin-left:5px}
.compact-chart{height:120px;margin:14px 0 25px}
.compact-chart .bar-label{font-size:8px;bottom:-19px}
.compact-details{margin-top:10px;font-size:10px}
.progress-history-list{gap:7px}
.progress-history-list .workout{padding:9px 10px}
.history-more summary{margin-bottom:8px}

/* Overige pagina's: minder verticale ruimte zonder kleinere hoofdtekst */
@media(max-width:640px){
  .content>.page-heading:not(:has(+ .dashboard-compact)){margin:12px 0 12px}
  .content>.page-heading:not(:has(+ .dashboard-compact)) h1{font-size:22px}
  .content>.page-heading:not(:has(+ .dashboard-compact)) p{font-size:10px;margin-top:3px}
  .settings-grid{gap:11px}
  .settings-grid .stack{gap:11px}
  .settings-grid>.card,.settings-grid .stack>.card{padding:14px 15px}
  fieldset{margin-bottom:15px}
  legend{margin-bottom:9px}
  .form-separator{margin:15px 0}
  .form-grid{gap:10px}
  .form-grid label{font-size:11px}
  .field-help{font-size:9px;line-height:1.35}
  .slot-row{margin-bottom:7px}
  .audit{padding:11px 0}
  .audit-head h3{font-size:12px}
  .audit p{font-size:10px;line-height:1.45;margin:5px 0}
  .change{padding:6px 8px;font-size:9px}
  .key-value{padding:7px 0}
  .coach-card p{font-size:10px;line-height:1.5}
  .progress-summary{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:10px}
  .progress-summary>div{padding:10px 11px}
  .progress-summary>div:nth-child(3){border-left:0;border-top:1px solid var(--line)}
  .progress-summary>div:nth-child(4){border-top:1px solid var(--line)}
  .progress-summary span{font-size:8px}
  .progress-summary strong{font-size:17px}
  .progress-records-card,.progress-chart-card,.progress-history-card{padding:13px;margin-top:10px}
  .compact-head{margin-bottom:9px}
  .compact-head h2{font-size:15px}
  .compact-head p{font-size:9px}
  .progress-pr-row{grid-template-columns:88px minmax(0,1fr) auto;padding:8px 9px;gap:7px}
  .progress-pr-row>div:first-child{display:block}
  .progress-pr-row>div:first-child span{font-size:8px}
  .progress-pr-row>div:first-child strong{display:block;font-size:18px;margin-top:1px}
  .progress-pr-meta>span{font-size:8px}
  .progress-pr-meta>small{font-size:7.5px}
  .progress-pr-row .btn{font-size:8px;padding:5px 7px}
  .compact-chart{height:105px;margin:10px 0 22px}
  .progress-history-list .workout{padding:8px 9px}
}


/* v47: uniforme, iets grotere mobiele typografie */
@media(max-width:640px){
  body{font-size:12px}
  .content{font-size:12px}

  /* Algemene koppen en kaarttekst */
  .page-heading h1{font-size:23px!important;line-height:1.12}
  .page-heading p{font-size:11px!important;line-height:1.45}
  .card-header h2,.compact-head h2{font-size:16px!important}
  .card-header p,.compact-head p{font-size:10.5px!important;line-height:1.4}
  .card h3{font-size:14px}
  .small{font-size:10.5px!important}
  .tiny{font-size:9.5px!important}
  .muted{line-height:1.45}

  /* Knoppen, badges en navigatie */
  .btn{font-size:10.5px}
  .btn.compact{font-size:10px}
  .tag{font-size:9.5px}
  .nav button,.nav span{font-size:10px}
  .nav svg{width:20px;height:20px}
  .segmented button{font-size:11px}
  .toolbar .btn{font-size:10.5px}
  .week-title{font-size:12.5px}

  /* Dashboard */
  .main:has(.dashboard-compact) .page-heading h1{font-size:22px!important}
  .dashboard-hero h2{font-size:21px!important}
  .dashboard-hero p{font-size:11px!important}
  .dashboard-hero .eyebrow{font-size:9.5px!important}
  .dashboard-hero-action .btn{font-size:10.5px!important}
  .dashboard-kpi>span{font-size:9px!important}
  .dashboard-kpi>strong{font-size:19px!important}
  .dashboard-kpi>strong small{font-size:9.5px!important}
  .dashboard-kpi>em{font-size:8.5px!important}
  .dashboard-card-header h2{font-size:16px!important}
  .dashboard-card-header p{font-size:9.5px!important}
  .dashboard-week-card .day-chip strong{font-size:15px!important}
  .dashboard-week-card .day-chip span{font-size:8.5px!important}
  .dashboard-day-head h3{font-size:13.5px!important}
  .dashboard-day-head .btn{font-size:9.5px!important}
  .dashboard-day-list .workout-info strong,.dashboard-upcoming .workout-info strong{font-size:12.5px!important}
  .dashboard-day-list .workout-meta,.dashboard-upcoming .workout-meta{font-size:10px!important}
  .dashboard-day-list .workout-distance,.dashboard-upcoming .workout-distance{font-size:15.5px!important}
  .dashboard-day-list .btn,.dashboard-upcoming .btn{font-size:9.5px!important}
  .dashboard-mini-head strong{font-size:12px!important}
  .dashboard-mini-card p{font-size:10px!important}
  .dashboard-goal-grid span{font-size:9.5px!important}
  .dashboard-mini-card .btn{font-size:9.5px!important}

  /* Agenda */
  .agenda-month-separator span{font-size:17px!important}
  .agenda-week-separator{font-size:9px!important}
  .agenda-plan-date>span{font-size:9px!important}
  .agenda-plan-date>strong{font-size:19px!important}
  .agenda-plan-date>em{font-size:8px!important}
  .agenda-plan-main strong{font-size:12px!important}
  .agenda-plan-main span{font-size:10px!important}
  .agenda-plan-side b{font-size:12px!important}
  .agenda-plan-side span{font-size:9px!important}
  .agenda-plan-status{font-size:8.5px!important}
  .calendar-label,.calendar-event,.calendar-event .time{font-size:9px!important}
  .cell-date{font-size:10.5px!important}

  /* Coach */
  .coach-card p{font-size:11px!important;line-height:1.5}
  .audit-head h3{font-size:13px!important}
  .audit p{font-size:10.5px!important;line-height:1.5}
  .change{font-size:10px!important}
  .key-value{font-size:11px}
  .key-value span,.key-value strong{font-size:11px}

  /* Voortgang */
  .progress-summary span{font-size:9px!important}
  .progress-summary strong{font-size:18px!important}
  .progress-summary small{font-size:9.5px!important}
  .progress-pr-row>div:first-child span{font-size:9px!important}
  .progress-pr-row>div:first-child strong{font-size:19px!important}
  .progress-pr-meta>span{font-size:9px!important}
  .progress-pr-meta>small{font-size:8.5px!important}
  .progress-pr-row .btn{font-size:9px!important}
  .progress-record-highlights{font-size:9.5px!important}
  .legend{font-size:10px}
  .data-table{font-size:11px}
  .data-table th{font-size:9.5px}

  /* Instellingen / formulieren */
  .form-grid label,.slot-row label{font-size:11.5px!important}
  .field-help{font-size:9.5px!important;line-height:1.4}
  fieldset>legend,legend{font-size:13px}
  input,select,textarea{font-size:16px!important}
  .checkline span{font-size:11px}
  .notification-settings{font-size:11px}
  .notice{font-size:11px!important;line-height:1.5}

  /* Account / overige */
  .account-text strong,.account-text span{font-size:11px}
  .security-note{font-size:10.5px}
  .footer-note{font-size:9.5px}
}


/* v48: grotere mobiele typografie voor app-achtige leesbaarheid */
@media(max-width:640px){
  body,.content{font-size:13px}

  /* Algemene tekst */
  .page-heading h1{font-size:25px!important}
  .page-heading p{font-size:12px!important}
  .card-header h2,.compact-head h2{font-size:18px!important}
  .card-header p,.compact-head p{font-size:11.5px!important}
  .card h3{font-size:15px!important}
  .small{font-size:11.5px!important}
  .tiny{font-size:10.5px!important}

  /* Knoppen / navigatie */
  .btn{font-size:11.5px!important}
  .btn.compact{font-size:11px!important}
  .tag{font-size:10.5px!important}
  .nav button,.nav span{font-size:11px!important}
  .nav svg{width:21px;height:21px}
  .segmented button{font-size:12px!important}
  .toolbar .btn{font-size:11.5px!important}
  .week-title{font-size:13.5px!important}

  /* Dashboard */
  .main:has(.dashboard-compact) .page-heading h1{font-size:24px!important}
  .dashboard-hero h2{font-size:23px!important}
  .dashboard-hero p{font-size:12px!important}
  .dashboard-hero .eyebrow{font-size:10.5px!important}
  .dashboard-hero-action .btn{font-size:11.5px!important}
  .dashboard-kpi>span{font-size:10px!important}
  .dashboard-kpi>strong{font-size:21px!important}
  .dashboard-kpi>strong small{font-size:10.5px!important}
  .dashboard-kpi>em{font-size:9.5px!important}
  .dashboard-card-header h2{font-size:18px!important}
  .dashboard-card-header p{font-size:10.5px!important}
  .dashboard-week-card .day-chip strong{font-size:16px!important}
  .dashboard-week-card .day-chip span{font-size:9.5px!important}
  .dashboard-day-head h3{font-size:15px!important}
  .dashboard-day-head .btn{font-size:10.5px!important}
  .dashboard-day-list .workout-info strong,.dashboard-upcoming .workout-info strong{font-size:14px!important}
  .dashboard-day-list .workout-meta,.dashboard-upcoming .workout-meta{font-size:11px!important}
  .dashboard-day-list .workout-distance,.dashboard-upcoming .workout-distance{font-size:17px!important}
  .dashboard-day-list .btn,.dashboard-upcoming .btn{font-size:10.5px!important}
  .dashboard-mini-head strong{font-size:13px!important}
  .dashboard-mini-card p{font-size:11px!important}
  .dashboard-goal-grid span{font-size:10.5px!important}
  .dashboard-mini-card .btn{font-size:10.5px!important}

  /* Agenda */
  .agenda-month-separator span{font-size:19px!important}
  .agenda-week-separator{font-size:10px!important}
  .agenda-plan-date>span{font-size:10px!important}
  .agenda-plan-date>strong{font-size:21px!important}
  .agenda-plan-date>em{font-size:9px!important}
  .agenda-plan-main strong{font-size:13.5px!important}
  .agenda-plan-main span{font-size:11px!important}
  .agenda-plan-side b{font-size:13.5px!important}
  .agenda-plan-side span{font-size:10px!important}
  .agenda-plan-status{font-size:9.5px!important}
  .calendar-label,.calendar-event,.calendar-event .time{font-size:10px!important}
  .cell-date{font-size:11.5px!important}

  /* Coach */
  .coach-card p{font-size:12px!important}
  .audit-head h3{font-size:14px!important}
  .audit p{font-size:11.5px!important}
  .change{font-size:11px!important}
  .key-value,.key-value span,.key-value strong{font-size:12px!important}

  /* Voortgang */
  .progress-summary span{font-size:10px!important}
  .progress-summary strong{font-size:20px!important}
  .progress-summary small{font-size:10.5px!important}
  .progress-pr-row>div:first-child span{font-size:10px!important}
  .progress-pr-row>div:first-child strong{font-size:21px!important}
  .progress-pr-meta>span{font-size:10px!important}
  .progress-pr-meta>small{font-size:9.5px!important}
  .progress-pr-row .btn{font-size:10px!important}
  .progress-record-highlights{font-size:10.5px!important}
  .legend{font-size:11px!important}
  .data-table{font-size:12px!important}
  .data-table th{font-size:10.5px!important}

  /* Instellingen / formulieren */
  .form-grid label,.slot-row label{font-size:12.5px!important}
  .field-help{font-size:10.5px!important}
  fieldset>legend,legend{font-size:14px!important}
  .checkline span{font-size:12px!important}
  .notification-settings{font-size:12px!important}
  .notice{font-size:12px!important}
  input,select,textarea{font-size:16px!important}

  /* Overige */
  .security-note{font-size:11.5px!important}
  .footer-note{font-size:10.5px!important}
}
