:root{font-family:Inter,Avenir Next,Segoe UI,Arial,sans-serif;color:#07131a;background:#f8f8f5;font-synthesis:none;--bg: #f8f8f5;--surface: #fff;--ink: #07131a;--muted: #626f79;--line: #dfe4e8;--blue: #256bff;--blue-soft: #eaf1ff;--shadow: 0 12px 36px #07131a0c;color-scheme:light}:root[data-theme=dark]{--bg: #07131a;--surface: #0e1d27;--ink: #f2f6fa;--muted: #9baebc;--line: #243642;--blue: #69a6ff;--blue-soft: #172e4d;--shadow: none;color-scheme:dark}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);min-width:320px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.35;cursor:default}a{color:inherit;text-decoration:none}input,select,textarea{min-width:0;max-width:100%;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);padding:11px 12px;min-height:43px;font-size:14px}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}input[type=checkbox]{accent-color:var(--blue);width:16px;height:16px;min-height:0;padding:0;flex-shrink:0}input[type=range]{width:100%;accent-color:var(--blue)}textarea{min-height:90px;resize:vertical}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(26px,2.5vw,38px);line-height:1.14;letter-spacing:-1.3px;margin-bottom:10px;font-weight:750}h2{font-size:21px;letter-spacing:-.5px}h3{font-size:15px;line-height:1.5}p{line-height:1.65}small{font-size:12px;color:var(--muted);line-height:1.5}.muted{color:var(--muted)}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--line);border-radius:9px;min-height:43px;padding:10px 15px;background:var(--surface);font-size:13px;line-height:1.3;font-weight:550;white-space:nowrap}.button:hover:not(:disabled){border-color:var(--blue);background:var(--blue-soft)}.button.primary{background:#256bff;border-color:#256bff;color:#fff}.button.primary:hover:not(:disabled){background:#1555d9}.button.active{color:var(--blue);background:var(--blue-soft);border-color:var(--blue)}.icon-button{display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:7px;min-width:32px;height:36px;color:var(--muted)}.icon-button:hover:not(:disabled){color:var(--blue);background:var(--blue-soft)}.icon-button[aria-pressed=true]{color:var(--blue)}.icon-button[aria-pressed=true] svg{fill:currentColor}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.field{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:550}.field small{font-weight:400}.field input,.field select,.field textarea{width:100%}.segmented{display:flex;border:1px solid var(--line);border-radius:9px;overflow:hidden}.segmented button{flex:1;border:0;background:var(--surface);min-height:40px;font-size:13px;color:var(--muted)}.segmented button[aria-pressed=true]{color:var(--blue);background:var(--blue-soft)}.sidebar{width:260px;position:fixed;inset:0 auto 0 0;background:var(--surface);border-right:1px solid var(--line);padding:28px 24px 20px;display:flex;flex-direction:column;z-index:20;overflow-y:auto}.brand{display:flex;align-items:center;gap:10px;font-size:25px;letter-spacing:-1px;font-weight:720;white-space:nowrap}.brand img{width:30px;height:43px;object-fit:contain}.brand-sport{color:var(--blue);font-weight:500}.builder{display:flex;flex-direction:column;gap:20px;margin-top:36px}.builder-fields{display:flex;flex-direction:column;gap:18px;min-width:0}.planning-mode legend{margin-bottom:8px}.builder-summary{font-size:12px;line-height:1.6;color:var(--ink);margin:-3px 0}.builder-summary span{display:block;color:var(--muted)}.distance-input{display:flex;border:1px solid var(--line);border-radius:9px;align-items:center;overflow:hidden}.distance-input input{font-size:22px;font-weight:550;border:0;width:100%;background:transparent;appearance:textfield}.distance-input input::-webkit-inner-spin-button{appearance:none}.distance-input:focus-within{outline:2px solid var(--blue);outline-offset:3px}.distance-unit{border:0;background:var(--blue-soft);color:var(--blue);font-size:12px;padding:5px 8px;border-radius:5px;margin-right:10px}.presets{display:flex;gap:6px;margin-top:-10px}.presets button{flex:1;min-width:0;border:1px solid var(--line);background:var(--surface);border-radius:7px;font-size:12px;min-height:31px;padding:5px}.presets button.selected{background:#256bff;border-color:#256bff;color:#fff}summary{cursor:pointer;list-style:none;font-size:14px;padding:3px 0;display:flex;justify-content:space-between}summary:after{content:"+";color:var(--muted)}details[open] summary:after{content:"−"}.advanced{display:flex;flex-direction:column;gap:16px;padding:20px 0 0}fieldset{border:0;padding:0;margin:0}legend{font-size:13px;margin-bottom:10px}.chips{display:flex;flex-wrap:wrap;gap:6px}.chips button{border:1px solid var(--line);background:var(--surface);border-radius:6px;font-size:11px;padding:6px 8px}.chips button[aria-pressed=true]{color:var(--blue);background:var(--blue-soft);border-color:var(--blue)}.generate{width:100%;min-height:45px;margin:0 0 24px}.sidebar nav{display:flex;flex-direction:column;gap:6px}.sidebar nav button{display:flex;align-items:center;gap:13px;min-height:46px;background:transparent;border:0;border-radius:8px;font-size:15px;padding:10px 12px;text-align:left}.sidebar nav button[aria-current=page]{background:var(--blue-soft);color:var(--blue);font-weight:600}.sidebar nav button:hover{background:var(--blue-soft)}.sidebar-bottom{margin-top:auto;padding-top:32px}.app main{margin-left:260px;padding:0 30px 50px;max-width:1900px}.topbar{height:83px;display:flex;align-items:center;justify-content:space-between;font-size:13px;margin-bottom:10px}.topbar time{text-transform:capitalize;color:var(--muted)}.identity{display:flex;align-items:center;gap:10px;background:none;border:0;font-size:13px}.avatar{display:flex;align-items:center;justify-content:center;background:#e4e9f4;color:#36415a;border-radius:50%;width:32px;height:32px;font-size:12px}.page-heading{display:flex;gap:18px;align-items:center;justify-content:space-between;margin-bottom:27px}.page-heading p{margin:0;color:var(--muted);font-size:16px}.page-heading .actions{justify-content:flex-end}.phase-overview{margin-bottom:25px}.phase-bar{display:flex;gap:2px;height:9px;border-radius:9px;overflow:hidden}.phase-0{background:#4486ff}.phase-1{background:#4fcbbb}.phase-2{background:#f5bc48}.phase-3{background:#b294ef}.phase-labels{display:grid;grid-template-columns:repeat(4,1fr);padding-top:12px;gap:15px}.phase-labels strong{font-size:12px;font-weight:550}.phase-labels small{display:block;margin:4px 0 0 13px}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:7px;vertical-align:middle}.program-table{background:var(--surface);border:1px solid var(--line);border-radius:11px;overflow:hidden}.table-toolbar{min-height:52px;padding:9px 16px;display:flex;justify-content:space-between;gap:10px;align-items:center;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.check-label{display:flex;align-items:center;gap:11px}.table-toolbar .button{min-height:32px;padding:6px 9px;font-size:12px}table{width:100%;border-collapse:collapse;table-layout:auto;font-size:13px}th{text-align:left;font-size:11px;font-weight:600;color:var(--muted);height:37px}td,th{padding:9px 7px}th:first-child,td:first-child{width:37px;padding-left:15px}thead th:last-child{width:155px}thead th:nth-child(2){width:91px}thead th:nth-child(3){width:77px}thead th:nth-child(5){width:57px}thead th:nth-child(6){width:53px}thead th:nth-child(7){width:50px}.phase-heading th{padding:8px 15px;color:var(--ink);font-size:12px;font-weight:650;height:36px}.phase-heading th>div{display:flex;align-items:center;justify-content:space-between}.phase-heading button{border:0;background:transparent;display:inline-flex;color:var(--muted)}.phase-tint-0{background:color-mix(in srgb,var(--surface) 88%,#4486ff)}.phase-tint-1{background:color-mix(in srgb,var(--surface) 88%,#4fcbbb)}.phase-tint-2{background:color-mix(in srgb,var(--surface) 88%,#f5bc48)}.phase-tint-3{background:color-mix(in srgb,var(--surface) 88%,#b294ef)}.phase-meter{font-weight:450;opacity:.8}.program-row{border-bottom:1px solid var(--line);cursor:pointer}.program-row:hover{background:color-mix(in srgb,var(--surface) 70%,var(--blue-soft))}.program-row.is-selected{background:var(--blue-soft)}.program-row td{padding-top:8px;padding-bottom:8px;vertical-align:middle}.series{white-space:nowrap;font-weight:600;font-variant-numeric:tabular-nums}.series button,.description button{border:0;padding:0;background:transparent;color:inherit;text-align:left;font-size:inherit;line-height:1.55}.series button{font-weight:600}.description{min-width:140px;line-height:1.55}.description button:hover{color:var(--blue)}.stroke,.interval,.row-meters{font-size:12px;color:var(--muted)}.interval,.row-meters{font-variant-numeric:tabular-nums;white-space:nowrap}.row-tools{white-space:nowrap;text-align:right}.row-tools .icon-button{min-width:26px;width:26px;height:28px;opacity:.55}.program-row:hover .row-tools .icon-button,.program-row.is-selected .row-tools .icon-button,.row-tools:focus-within .icon-button{opacity:1}.zone{display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;border-radius:6px;padding:4px 6px;background:var(--blue-soft);color:var(--blue);white-space:nowrap}.zone-T1{background:#e7f4f3;color:#2e7572}.zone-T2{background:#e8f0ff;color:#376cbd}.zone-T3{background:#fff1ce;color:#916012}.zone-T4{background:#ffeadb;color:#955820}.zone-T5{background:#ffe4e3;color:#ad4140}.zone-Mix{background:#eee9fc;color:#7857b0}.table-footer{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;color:var(--muted);font-size:12px}.notice{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--blue-soft);border-radius:9px;padding:10px 16px;margin-bottom:14px;font-size:13px}.empty{min-height:65vh;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:40px 20px}.empty>img{width:76px;height:110px;margin-bottom:32px}.empty p{color:var(--muted);max-width:430px}.empty.compact{min-height:40vh}.empty.compact>svg{color:var(--blue);margin-bottom:20px}.toast{position:fixed;bottom:22px;left:calc(50% + 100px);transform:translate(-50%);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;background:var(--ink);color:var(--surface);border-radius:10px;box-shadow:var(--shadow);z-index:60;font-size:13px;max-width:min(600px,90vw)}.toast .icon-button{color:inherit}.error{color:#b64343;background:#fff0ee;padding:12px;border-radius:8px;font-size:14px}.session-notice{margin-bottom:20px;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--blue-soft);display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:14px}.session-notice p{flex:1 1 320px;margin:0}.mobile-header{display:none}dialog{border:1px solid var(--line);border-radius:15px;background:var(--surface);color:var(--ink);padding:25px;width:min(580px,calc(100vw - 32px));box-shadow:0 20px 80px #0003;max-height:90dvh}dialog::backdrop{background:#07131a66;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}dialog header{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}dialog h2{margin:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:19px}.full{grid-column:1/-1}.history-symbol{display:flex;align-items:center;justify-content:center;width:43px;height:43px;border-radius:11px;background:var(--blue-soft);color:var(--blue)}.history-symbol.completed{background:#e4f4eb;color:#318b5b}.library-filters{display:flex;gap:12px;margin:24px 0}.search{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:0 12px;flex:1;color:var(--muted)}.search input{width:100%;border:0;background:transparent}.exercise-list{border-top:1px solid var(--line)}.exercise-list article{display:flex;align-items:center;gap:18px;padding:20px 0;border-bottom:1px solid var(--line)}.exercise-list article>div{flex:1}.exercise-list h3{margin:0 0 6px;font-weight:550}.exercise-list p{margin:0;font-size:12px;color:var(--muted)}.profile-page{max-width:950px}.profile-form{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:28px;margin-bottom:20px}.profile-form h2:not(:first-child){margin-top:35px}.profile-form p{font-size:14px;color:var(--muted)}.profile-form .primary{margin-top:28px}.check-grid{display:flex;flex-wrap:wrap;gap:17px 27px}.check-grid label{display:flex;align-items:center;gap:8px;font-size:14px}.file-input{position:absolute;width:1px;height:1px;opacity:0}.live-page{max-width:1000px;margin:auto}.live-progress{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);margin-top:28px}progress{width:100%;height:7px;accent-color:var(--blue);margin-top:10px}.live-card{text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:55px 35px;margin:30px 0}.live-card h1{font-size:55px;margin:22px 0}.live-card h2{font-size:22px;font-weight:550;max-width:650px;margin:0 auto 20px}.live-card .actions{justify-content:center}.timer{font-size:46px;font-variant-numeric:tabular-nums;color:var(--blue);margin:25px 0}.finish-panel{display:flex;gap:20px;align-items:center;flex-wrap:wrap}.finish-panel .field{flex:1;min-width:200px}@media(min-width:1550px){.app main{padding-left:40px;padding-right:40px}.program-row td{padding-top:16px;padding-bottom:16px}table{font-size:14px}.sidebar{width:280px}.app main{margin-left:280px}}@media(max-width:1200px){.page-heading{align-items:flex-start;flex-direction:column}.page-heading .actions{justify-content:flex-start}.sidebar{width:235px;padding:25px 18px}.app main{margin-left:235px;padding-left:22px;padding-right:22px}.program-editor thead th:last-child{width:90px}.brand{font-size:23px}.phase-labels strong{font-size:11px}.program-editor td,.program-editor th{padding-left:5px;padding-right:5px}}@media(max-width:1000px){.mobile-header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;background:var(--surface);border-bottom:1px solid var(--line);height:66px;padding:12px 20px;z-index:30}.mobile-header .brand{font-size:22px}.mobile-header .brand img{width:22px;height:33px}.sidebar{display:none;top:66px;width:100%;bottom:0;padding:22px;box-shadow:var(--shadow)}.sidebar>.brand{display:none}.menu-open .sidebar{display:flex}.builder{margin:0;gap:16px}.builder-fields{gap:16px}.sidebar input,.sidebar select{font-size:16px}.sidebar .distance-input input{font-size:24px}.presets button,.segmented button,.chips button,.sidebar summary{min-height:44px}.sidebar summary{align-items:center}.sidebar-bottom{padding-top:15px}.sidebar nav{display:flex;flex-direction:row;flex-wrap:wrap}.sidebar nav button{flex:1}.app main{margin-left:0;padding:0 18px 35px}.topbar{height:66px;font-size:12px}.topbar .identity{font-size:12px}.page-heading{gap:20px;margin-bottom:23px}.page-heading h1{font-size:29px;letter-spacing:-1px}.page-heading p{font-size:14px}.page-heading .actions{gap:7px}.page-heading .button{padding:10px 11px;font-size:12px}.phase-labels{gap:5px}.phase-labels strong{font-size:11px}.phase-labels small{font-size:12px;margin-left:0}.dot{display:none}.table-toolbar{padding:10px 12px;flex-wrap:wrap}.check-label{font-size:12px;min-height:44px}.table-toolbar .actions{margin-left:auto}.program-editor table,.program-editor tbody{display:block}.program-editor thead{display:none}.phase-heading,.phase-heading th{display:block}.phase-heading th{width:100%;height:auto;padding:11px 12px}.program-row{display:grid;grid-template-columns:26px 1fr auto auto;gap:7px 8px;padding:13px 12px}.program-row td{padding:0;min-width:0}.program-row td:first-child{grid-column:1;grid-row:1;display:flex;align-items:center;width:auto}.series{grid-column:2;grid-row:1;font-size:15px}.stroke{grid-column:2;grid-row:3;align-self:center}.description{grid-column:2/5;grid-row:2;font-size:13px;padding:2px 0 6px!important}.tempo{grid-column:3;grid-row:1;align-self:center}.interval{grid-column:4;grid-row:1;align-self:center}.row-meters{display:none}.row-tools{grid-column:3/5;grid-row:3;display:flex;gap:5px}.row-tools .icon-button{width:44px;height:44px;opacity:1}.row-tools .icon-button:nth-child(-n+2){display:inline-flex}.table-footer{padding:13px 12px}.toast{left:50%;bottom:15px;width:max-content;max-width:92vw}.library-filters{flex-wrap:wrap}.library-filters .search{flex-basis:100%}.exercise-list article{gap:9px}.exercise-list h3{font-size:14px}.profile-form{padding:20px}.form-grid{gap:17px}.check-grid{flex-direction:column}.live-card{padding:35px 20px}.live-card h1{font-size:42px}.live-card h2{font-size:19px}.notice{font-size:12px}.empty{min-height:65vh}.identity .avatar{width:27px;height:27px}}@media(max-width:400px){.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.page-heading .actions .button{font-size:11px;padding:9px}.page-heading .actions .button svg{width:15px}.row-tools{gap:0}.row-tools .icon-button{width:28px;min-width:28px}.sidebar nav button{font-size:13px}.phase-labels strong{font-size:11px}.phase-labels{grid-template-columns:repeat(2,1fr);gap:9px}.phase-labels small{display:inline;margin-left:6px}}@media(prefers-reduced-motion:no-preference){.button,.icon-button,nav button{transition:background .15s,border-color .15s}.toast{animation:appear .2s ease-out}@keyframes appear{0%{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}}@media print{@page{size:A4 landscape;margin:10mm}:root,:root[data-theme=dark]{--bg: #fff;--surface: #fff;--ink: #000;--muted: #555;--line: #ccc;--blue: #174fb5;--blue-soft: #f0f4fb;--shadow: none;color:#000;background:#fff;color-scheme:light}body{background:#fff}.sidebar,.mobile-header,.topbar,.page-heading .actions,.table-toolbar,.row-tools,.table-footer,.toast,.notice,.save-status,.program-more,.connection-banner,.skip-link,dialog{display:none!important}.app main{margin:0;padding:0;max-width:none}.page-heading{margin:0 0 10px}.page-heading h1{font-size:22px}.page-heading p{font-size:12px}.program-table{border-radius:0}.program-editor table{font-size:10px}.program-row td{padding-top:8px;padding-bottom:8px}.phase-heading{break-after:avoid}.program-row{break-inside:avoid}.phase-labels small{font-size:10px}.phase-overview{margin-bottom:15px}.program-row td:first-child,.program-editor thead th:first-child{display:none}.program-editor thead th:last-child{display:none}.zone{border:1px solid #aaa;background:none;color:#000}.phase-tint-0,.phase-tint-1,.phase-tint-2,.phase-tint-3{background:#eee!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.phase-bar{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.legacy-entry-notice{padding:16px clamp(16px,4vw,40px);background:var(--surface, #fff);color:var(--ink, #07131a);border-bottom:1px solid var(--line, #dfe4e8);font-size:14px;line-height:1.5}.legacy-entry-notice p{max-width:80ch;margin:8px 0}.legacy-entry-notice div{display:flex;flex-wrap:wrap;gap:12px 24px}.legacy-entry-notice a{color:var(--blue, #256bff)}.legacy-entry-notice a:focus-visible{outline:2px solid currentColor;outline-offset:3px}.auth-shell{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:clamp(16px,4vw,40px);background:var(--bg, #f8f8f5);color:var(--ink, #07131a)}.auth-panel{width:min(420px,100%);max-height:100%;overflow:auto;padding:clamp(22px,5vw,34px);border:1px solid var(--line, #dfe4e8);border-radius:16px;background:var(--surface, #fff);box-shadow:var(--shadow, 0 12px 36px #07131a0c)}.auth-brand{display:flex;align-items:center;gap:10px;margin-bottom:18px}.auth-brand img{display:block;width:40px;height:40px}.auth-wordmark{font-size:18px;font-weight:700;letter-spacing:-.6px}.auth-sport{color:var(--muted, #687680);font-weight:550}.auth-panel h1{font-size:clamp(24px,6vw,30px);letter-spacing:-.9px;margin-bottom:8px}.auth-intro{margin-bottom:20px;color:var(--muted, #687680);font-size:14px}.auth-actions{display:flex;flex-direction:column;gap:12px;margin-top:16px}.auth-actions .button{width:100%}.auth-divider{margin:2px 0;text-align:center;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted, #687680)}.auth-form{display:flex;flex-direction:column;gap:8px}.auth-form label{font-size:13px;font-weight:600}.auth-form input{width:100%;min-height:46px;font-size:16px}.auth-form small{margin-bottom:4px}.auth-form .button{margin-top:8px}.auth-form .auth-code{letter-spacing:.14em;font-variant-numeric:tabular-nums}.auth-secondary{display:flex;flex-wrap:wrap;gap:4px 18px}.auth-status+.auth-form{margin-top:12px}.auth-toggle{align-self:flex-start;padding:4px 0;border:0;background:transparent;color:var(--blue, #256bff);font-size:13px;font-weight:550;text-decoration:underline;text-underline-offset:3px}.auth-toggle:disabled{opacity:.5;cursor:default}.auth-status,.auth-error{margin:0;padding:11px 13px;border-radius:10px;font-size:13.5px;line-height:1.55}.auth-status{border:1px solid var(--line, #dfe4e8);background:var(--blue-soft, #eaf1ff)}.auth-error{border:1px solid #e5b3ae;background:#fdf0ef;color:#8a2418}:root[data-theme=dark] .auth-error{border-color:#6f2f27;background:#2a1512;color:#ffb9ae}.auth-hint,.auth-footnote{margin:0;color:var(--muted, #687680);font-size:12px;line-height:1.55}.auth-footnote{margin-top:18px}.auth-shell button:focus-visible,.auth-shell a:focus-visible,.auth-shell input:focus-visible,.auth-shell select:focus-visible{outline:2px solid var(--blue, #256bff);outline-offset:3px}@media(max-width:420px){.auth-shell{place-items:start center}.auth-panel{border-radius:14px}}@media(prefers-reduced-motion:reduce){.auth-shell *{transition:none!important;animation:none!important}}
