:root{color-scheme:dark;--paper:#000000;--white:#0b0b0b;--ink:#f5f5f3;--muted:#a5a5a5;--line:#2c2c2c;--accent:#eeeeee;--edited:#f5f5f3;--error:#ffb4a5;--radius:12px;font-family:Arial,Helvetica,sans-serif;color:var(--ink);font-synthesis:none;background:var(--paper)}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #ffffff;outline-offset:3px}input:focus,select:focus{outline:2px solid #ffffff;outline-offset:1px}input[type=checkbox]{accent-color:var(--ink);width:16px;height:16px;margin:0;cursor:pointer}input:not([type=checkbox]),select{height:38px;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:var(--white);padding:7px 10px;min-width:0}input[aria-invalid=true]{border-color:var(--error);background:#281612}.site-header,main,.site-footer{max-width:1220px;margin:auto;padding-left:32px;padding-right:32px}.site-header{height:92px;display:flex;align-items:center;gap:24px;border-bottom:1px solid var(--line)}.brand{font-size:38px;letter-spacing:-2.5px;font-weight:900;text-decoration:none;line-height:1}.brand-dot{color:var(--edited)}.header-label,.eyebrow,.chart-label,.site-footer{font-size:10px;letter-spacing:1.5px;font-weight:700}.header-tools{padding-left:24px;border-left:1px solid var(--line);display:flex;flex-direction:column;gap:7px}.coaching-link{font-size:11px;line-height:1.3;color:var(--muted);text-decoration:none;white-space:nowrap}.coaching-link:hover{text-decoration:underline;text-underline-offset:3px;color:var(--ink)}.intro{padding:48px 0 32px;display:flex;align-items:flex-end;gap:20px;justify-content:space-between}.eyebrow{color:var(--muted);margin:0 0 14px;font-size:10px}h1{font-size:clamp(28px,3.3vw,42px);letter-spacing:-1.8px;line-height:1.1;margin:0 0 12px;font-weight:600}.lede{margin:0;color:var(--muted);font-size:16px}.privacy-badge{font-size:11px;white-space:nowrap;display:flex;align-items:center;gap:7px;margin-bottom:4px}.status-dot,.preserved-dot{width:6px;height:6px;border-radius:50%;background:#d0d0d0;display:inline-block}.upload-layout{display:grid;grid-template-columns:1.25fr 1fr;border:1px solid var(--line);background:var(--white);border-radius:var(--radius);overflow:hidden;min-height:465px}.dropzone{text-align:center;margin:20px;border:1px dashed #444444;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 18px;background:#101010;transition:background .15s}.dropzone.dragging{background:#202020;border:2px dashed #eeeeee}.file-mark{height:70px;width:70px;background:#1b1b1b;border-radius:18px;padding:12px;margin-bottom:18px;transform:rotate(-5deg)}.file-mark svg{width:100%;height:100%}.dropzone h2{font-size:23px;letter-spacing:-.6px;margin:0 0 8px}.dropzone p{font-size:13px;color:var(--muted);margin:0 0 25px}.button{display:inline-flex;justify-content:center;align-items:center;gap:22px;white-space:nowrap;border:1px solid transparent;border-radius:7px;padding:13px 18px;font-size:13px;font-weight:600;transition:background .15s,transform .15s}.button:active{transform:translateY(1px)}.primary{background:var(--accent);color:#000}.primary:hover{background:#ffffff}.dark{background:var(--ink);color:#000}.quiet{border-color:var(--line);background:transparent;color:var(--ink)}.quiet:hover{background:#202020}.small{font-size:11px;padding:10px 12px;height:36px}.file-limit{font-size:10px;color:var(--muted);margin-top:14px}.demo-line{border-top:1px solid var(--line);margin-top:28px;padding-top:18px;font-size:11px;color:var(--muted)}.text-button{border:0;background:none;font-size:12px;font-weight:600;color:var(--ink);padding:4px 0;line-height:1.5;text-underline-offset:4px}.text-button:hover{text-decoration:underline}.demo-line .text-button{margin-left:6px;font-size:11px}.how-it-works{padding:38px 40px}.how-it-works h2{font-weight:500;font-size:28px;letter-spacing:-.8px;margin:0 0 28px}.how-it-works ol{list-style:none;padding:0;margin:0}.how-it-works li{display:flex;gap:16px;margin-bottom:22px}.how-it-works li>span{font-size:10px;color:var(--edited);font-weight:700;padding-top:3px}.how-it-works strong{font-size:13px;font-weight:600}.how-it-works li p{font-size:12px;line-height:1.6;color:var(--muted);margin:6px 0 0;max-width:300px}.local-note{color:var(--muted);font-size:10px;line-height:1.7;border-top:1px solid var(--line);padding-top:16px;margin-top:0}.site-footer{display:flex;justify-content:space-between;align-items:center;padding-top:28px;padding-bottom:26px;margin-top:25px;color:var(--muted);font-size:9px}.site-footer .text-button{font-size:10px;font-weight:400;letter-spacing:0}.file-heading{display:flex;align-items:center;justify-content:space-between;margin:10px 0 22px;gap:16px}.file-title{display:flex;align-items:center;gap:12px;min-width:0}.file-title>div{min-width:0}.file-title h2{font-size:17px;letter-spacing:-.35px;margin:0;overflow-wrap:anywhere}.file-title p{font-size:11px;color:var(--muted);margin:5px 0 0}.file-chip{font-size:10px;letter-spacing:1px;font-weight:700;border:1px solid #333333;border-radius:7px;padding:12px 8px;background:#171717}.stats{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);display:grid;grid-template-columns:1fr 1fr 1fr 1.5fr;margin-bottom:18px;padding:24px 0}.stats>div{padding:0 25px;border-right:1px solid var(--line)}.stats>div:last-child{border:0}.stats>div>span{display:block;color:var(--muted);font-size:11px}.stats strong{display:block;font-size:28px;letter-spacing:-1px;font-weight:500;margin:10px 0 8px;font-variant-numeric:tabular-nums}.stats strong em{font-size:13px;font-style:normal;letter-spacing:0;color:var(--muted)}.stats small{font-size:10px;color:var(--muted)}.chart-label{font-size:9px;letter-spacing:1px;display:flex;justify-content:space-between;color:var(--muted)}#change-count{letter-spacing:0;font-weight:400}.speed-chart{display:flex;align-items:flex-end;gap:4px;height:57px;margin-top:10px;border-bottom:1px solid var(--line)}.speed-bar{position:relative;flex:1;height:100%;min-width:1px;max-width:30px}.speed-bar i{position:absolute;bottom:0;left:0;width:100%;background:#383838;border-radius:2px 2px 0 0}.speed-bar i:last-child{left:20%;width:60%;background:#808080}.speed-bar.edited i:last-child{background:var(--edited)}.chart-key{display:flex;gap:5px;align-items:center;justify-content:flex-end;margin-top:8px;font-size:9px;color:var(--muted)}.chart-key i{width:6px;height:6px;background:#383838;border-radius:1px;margin-left:7px}.chart-key i:last-of-type{background:var(--edited)}.activity-details{border:1px solid var(--line);border-radius:8px;margin-bottom:30px;background:#101010}summary{cursor:pointer;list-style:none;font-size:12px;font-weight:600;display:flex;gap:12px;align-items:center;padding:15px 18px}summary::-webkit-details-marker{display:none}summary>span:not(.chevron){font-size:11px;font-weight:400;color:var(--muted)}.chevron{margin-left:auto;font-size:19px;line-height:14px;font-weight:400}details[open] .chevron{transform:rotate(45deg)}.details-body{padding:4px 18px 16px}.details-grid{display:grid;grid-template-columns:1.3fr .7fr 1fr 1.4fr;gap:16px}.details-grid label{font-size:10px;color:var(--muted);display:flex;flex-direction:column;gap:8px}.details-grid input,.details-grid select{width:100%;font-size:12px}.details-foot{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:18px}.checkbox-label{display:flex;align-items:center;gap:8px;font-size:11px}.checkbox-label span{color:var(--muted);font-size:10px}.fine-print{font-size:10px;line-height:1.6;color:var(--muted);margin:14px 0 0}.laps-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.laps-heading h2{font-size:20px;letter-spacing:-.5px;font-weight:500;margin:0}.laps-heading h2 span{font-size:11px;background:#252525;border-radius:12px;padding:3px 8px;vertical-align:middle;letter-spacing:0;margin-left:4px}.laps-heading p{font-size:11px;color:var(--muted);margin:7px 0 0}.laps-heading .text-button{font-size:11px}.lap-card{background:var(--white);border:1px solid var(--line);border-radius:10px;overflow:hidden}.bulk-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 16px;border-bottom:1px solid var(--line);background:#151515;flex-wrap:wrap}.selection-controls,.bulk-inputs{display:flex;gap:6px;align-items:center}#selected-count{font-size:11px;color:var(--muted);margin-right:8px;min-width:60px}.pill{background:transparent;border:1px solid #444444;padding:6px 9px;border-radius:5px;font-size:10px;color:var(--ink)}.pill:hover{background:#303030}.bulk-inputs select,.bulk-inputs input{height:36px;font-size:11px}.bulk-inputs input{width:75px;font-variant-numeric:tabular-nums}.bulk-inputs .button{margin-left:3px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}thead{background:#101010;color:var(--muted);font-size:10px;font-weight:400}th{text-align:left;padding:14px 10px;font-weight:500;border-bottom:1px solid var(--line)}th span{font-size:9px;font-weight:400;color:#a5a5a5}td{padding:12px 10px;border-bottom:1px solid #222222;font-variant-numeric:tabular-nums}tbody tr:last-child td{border-bottom:0}tbody tr.selected{background:#202020}tbody tr.edited .lap-number{color:var(--edited)}tbody tr:hover{background:#161616}.check-col{width:36px;padding-left:16px}.lap-number{font-weight:600}.edit-col{width:265px}.edit-controls{display:flex;gap:6px;align-items:center}.edit-controls select{font-size:11px;width:105px;height:34px}.edit-controls input{width:82px;font-size:12px;height:34px}.edit-controls .segment-button{border:1px solid var(--line);background:#222222;padding:8px;border-radius:5px;font-size:10px;height:34px;white-space:nowrap}.edit-controls .icon-button{width:25px;height:28px;font-size:16px;color:var(--muted)}.original-value{color:#a5a5a5}.new-pace{font-weight:600}.distance-cell small{display:block;font-size:9px;color:var(--muted);margin-top:4px}.row-error td{background:#281612;color:var(--error);font-size:11px;padding:8px 16px;white-space:normal}.rest-label{font-size:10px;color:var(--muted);width:82px;padding:0 4px}.table-foot{border-top:1px solid var(--line);padding:13px 16px;color:var(--muted);display:flex;justify-content:space-between;gap:12px;font-size:9px}.preserved-dot{width:5px;height:5px;margin-right:5px}.download-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:24px;background:#101010;color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:20px 23px}.download-bar strong{font-size:13px;font-weight:500}.download-bar p{font-size:10px;color:#b8b8b8;margin:6px 0 0;line-height:1.5}.download-bar .button{flex-shrink:0}.scope-note{font-size:10px;color:var(--muted);line-height:1.7;text-align:center;margin:14px auto 0;max-width:740px}.alert{border:1px solid #805044;background:#281612;color:#ffb4a5;padding:14px 18px;border-radius:8px;font-size:12px;line-height:1.5;margin-bottom:20px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}dialog{border:1px solid var(--line);padding:28px;border-radius:14px;background:var(--white);color:var(--ink);width:min(520px,calc(100% - 32px));max-height:90vh;box-shadow:0 20px 80px #00000080}dialog::backdrop{background:#000000b3;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.dialog-heading h2{font-size:23px;font-weight:500;letter-spacing:-.7px;margin:0}.dialog-heading .eyebrow{margin-bottom:10px;font-size:9px}.icon-button{padding:0;background:none;border:0;font-size:25px;width:26px;height:26px;color:var(--ink)}dialog p{font-size:12px;line-height:1.65;color:var(--muted)}dialog .fine-print{font-size:10px}.segment-row{display:flex;gap:10px;align-items:flex-end;margin:14px 0}.segment-row label{display:flex;flex-direction:column;gap:6px;font-size:10px;color:var(--muted);flex:1;min-width:0}.segment-row input{width:100%}.segment-row .icon-button{font-size:20px;margin-bottom:5px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.field-error{color:var(--error)!important;font-size:11px!important}.segment-remaining{height:38px;display:flex;align-items:center;font-size:13px;color:var(--ink)}
@media(min-width:1500px){.intro{padding-top:60px}.upload-layout{min-height:510px}.dropzone{margin:24px}.how-it-works{padding:44px 48px}}
@media(max-width:1000px){.site-header,main,.site-footer{padding-left:22px;padding-right:22px}.intro{align-items:flex-start;flex-direction:column;padding-top:35px;gap:18px}.privacy-badge{font-size:10px}.stats>div{padding:0 18px}.stats{grid-template-columns:1fr 1fr 1fr}.stats .profile-stat{display:none}.how-it-works{padding:34px 24px}.details-grid{grid-template-columns:1fr 1fr}.bulk-toolbar{gap:12px}.bulk-inputs{margin-left:auto}.table-foot{font-size:9px}th,td{padding-left:8px;padding-right:8px}}
@media(max-width:650px){.site-header,main,.site-footer{padding-left:16px;padding-right:16px}.site-header{height:73px;gap:16px}.brand{font-size:32px}.header-tools{padding-left:16px;gap:6px}.header-label{font-size:8px;letter-spacing:1px}.coaching-link{font-size:10px}.intro{padding-top:30px;padding-bottom:25px}h1{font-size:30px;letter-spacing:-1.2px;max-width:330px}.eyebrow{font-size:8px;letter-spacing:1.1px;line-height:1.5}.lede{font-size:14px}.upload-layout{grid-template-columns:1fr}.dropzone{margin:12px;padding:35px 12px}.dropzone h2{font-size:21px}.dropzone p{font-size:11px;line-height:1.5}.how-it-works{padding:28px 25px 18px}.how-it-works h2{font-size:24px}.file-heading{align-items:flex-start}.file-title h2{font-size:14px}.file-chip{display:none}.file-title p{font-size:10px;line-height:1.5}.stats{padding:18px 0}.stats>div{padding:0 11px}.stats strong{font-size:23px;letter-spacing:-.8px;margin:9px 0 6px}.stats>div>span{font-size:9px}.stats small{font-size:8px;line-height:1.4;display:block}.stats strong em{font-size:10px}.activity-details{margin-bottom:25px}summary{padding:13px;font-size:11px;gap:8px}summary>span:not(.chevron){font-size:9px;max-width:145px}.details-body{padding:4px 13px 14px}.details-grid{gap:12px}.details-foot{align-items:flex-start}.checkbox-label{flex-wrap:wrap;font-size:10px}.checkbox-label span{font-size:9px}.details-foot .text-button{font-size:10px;white-space:nowrap}.laps-heading h2{font-size:18px}.laps-heading p{font-size:10px;max-width:230px;line-height:1.5}.laps-heading .text-button{font-size:10px}.bulk-toolbar{padding:12px}.selection-controls{width:100%;gap:6px}#selected-count{margin-right:auto}.bulk-inputs{width:100%;margin:0}.bulk-inputs select{max-width:125px}.bulk-inputs input{width:65px}.bulk-inputs .button{margin-left:auto;font-size:10px;flex:1}.bulk-inputs select,.bulk-inputs input{font-size:10px}.table-foot{flex-direction:column;gap:6px;padding:12px}.download-bar{flex-direction:column;align-items:stretch;padding:18px;margin-top:18px;gap:16px}.download-bar .button{width:100%}.scope-note{font-size:9px}.site-footer{align-items:flex-start;gap:15px;margin-top:10px}.site-footer>span{font-size:8px;letter-spacing:.8px;line-height:1.6;max-width:150px}.site-footer .text-button{font-size:9px;padding:0;text-align:right}.file-heading>.button{font-size:10px}.details-grid input,.details-grid select{font-size:11px}.segment-row{gap:8px}dialog{padding:22px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:650px){.table-scroll{overflow:visible}table,tbody{display:block;white-space:normal}thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}tbody tr:not(.row-error){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:relative;padding:12px 10px;border-bottom:1px solid var(--line);gap:2px 0}tbody td{border:0;padding:5px 4px;min-width:0;font-size:12px}tbody td.check-col{position:absolute;left:14px;top:14px;padding:0;width:auto}tbody td.lap-number{grid-column:1/2;padding-left:27px;line-height:18px}tbody td:nth-child(3){grid-column:2/3;line-height:18px;text-align:center}tbody td:nth-child(4){grid-column:3/5;text-align:right;font-size:10px;line-height:18px}tbody td:nth-child(4)::before{content:'Original ';color:var(--muted)}tbody td:nth-child(5){grid-column:1/-1;padding-top:10px;padding-bottom:10px}.edit-controls{gap:8px}.edit-controls select{width:120px;height:38px}.edit-controls input{width:110px;height:38px}.edit-controls .icon-button{margin-left:auto}.rest-label{width:auto}.edit-controls .segment-button{height:38px}.new-pace,.distance-cell,tbody td:nth-child(8),tbody td:nth-child(9){padding-top:10px;border-top:1px solid #2c2c2c;font-weight:500}tbody td:nth-child(n+6)::before{display:block;font-size:8px;color:var(--muted);font-weight:400;margin-bottom:6px}tbody td:nth-child(6)::before{content:'PACE / MI'}tbody td:nth-child(7)::before{content:'DISTANCE / MI'}tbody td:nth-child(8)::before{content:'HR / BPM'}tbody td:nth-child(9)::before{content:'CADENCE / RPM'}.row-error{display:block}.row-error td{display:block;padding:10px 14px}.distance-cell small{font-size:8px}}

.bulk-heading{flex-basis:100%;display:flex;align-items:baseline;gap:12px}.bulk-heading h3{font-size:12px;font-weight:600;margin:0}.bulk-heading p{font-size:11px;color:var(--muted);margin:0;line-height:1.5}@media(max-width:650px){.bulk-heading{display:block}.bulk-heading p{font-size:10px;margin-top:4px}}

.segment-hint{padding:13px 16px;border-bottom:1px solid var(--line);display:flex;align-items:baseline;gap:12px;background:#101010}.segment-hint h3{font-size:12px;font-weight:600;margin:0;white-space:nowrap}.segment-hint p{font-size:11px;color:var(--muted);line-height:1.6;margin:0}.segment-hint p strong{color:var(--ink);font-weight:600}.segment-hint p span{color:var(--ink)}@media(max-width:650px){.segment-hint{display:block;padding:13px 12px}.segment-hint p{font-size:10px;margin-top:4px}}

.details-grid{grid-template-columns:1.3fr .7fr 1fr}.download-controls{display:flex;align-items:flex-end;gap:12px;flex-shrink:0}.download-filename{width:260px;min-width:0}.download-filename label{display:block;font-size:11px;margin-bottom:8px;color:var(--ink)}.download-filename label span{color:#b8b8b8;font-size:10px}.filename-input{display:flex;align-items:center;background:var(--white);border:1px solid var(--line);border-radius:7px;overflow:hidden}.filename-input input{border:0!important;border-radius:6px 0 0 6px!important;height:43px!important;width:100%;font-size:12px}.filename-input input:focus{outline-offset:-2px}.filename-input>span{font-size:12px;color:var(--muted);padding:0 12px 0 4px}.download-controls>.button{height:45px}@media(max-width:1000px){.download-bar{flex-wrap:wrap}.download-controls{width:100%}.download-filename{flex:1;width:auto}.details-grid{grid-template-columns:1fr 1fr}}@media(max-width:650px){.download-controls{flex-direction:column;align-items:stretch;gap:14px}.download-filename{width:100%}.download-controls>.button{width:100%}.details-grid label:last-child{grid-column:1/-1}}

/* Ritual's black/off-white palette is the default; light mode is opt-in. */
.header-actions{display:flex;align-items:center;gap:12px;margin-left:auto}.theme-toggle{background:transparent;border:1px solid var(--line);border-radius:5px;color:var(--ink);font-size:11px;white-space:nowrap;padding:8px 11px}.theme-toggle:hover{background:#202020}
:root[data-theme="light"]{color-scheme:light;--paper:#f5f5f3;--white:#ffffff;--ink:#111111;--muted:#666666;--line:#d8d8d5;--accent:#111111;--edited:#111111;--error:#a53625}
[data-theme="light"] button:focus-visible,[data-theme="light"] a:focus-visible,[data-theme="light"] summary:focus-visible,[data-theme="light"] input:focus,[data-theme="light"] select:focus{outline-color:#555}

[data-theme="light"] .dropzone{background:#f7f7f5;border-color:#bbb}
[data-theme="light"] .dropzone.dragging{background:#e9e9e6;border-color:#555}
[data-theme="light"] .file-mark{background:#e8e8e5}
[data-theme="light"] .primary,[data-theme="light"] .dark{color:#fff}
[data-theme="light"] .primary:hover{background:#333}
[data-theme="light"] .quiet:hover,[data-theme="light"] .theme-toggle:hover{background:#e8e8e6}
[data-theme="light"] .status-dot,[data-theme="light"] .preserved-dot{background:#555}
[data-theme="light"] .file-chip{background:#eee;border-color:#ccc}
[data-theme="light"] .speed-bar i,[data-theme="light"] .chart-key i{background:#ccc}
[data-theme="light"] .speed-bar i:last-child{background:#777}
[data-theme="light"] .speed-bar.edited i:last-child,[data-theme="light"] .chart-key i:last-of-type{background:#111}
[data-theme="light"] .activity-details{background:#eee}
[data-theme="light"] .laps-heading h2 span{background:#e4e4e1}
[data-theme="light"] .bulk-toolbar{background:#f0f0ed}
[data-theme="light"] .pill{border-color:#ccc}
[data-theme="light"] .pill:hover{background:#e1e1df}
[data-theme="light"] thead,[data-theme="light"] .segment-hint{background:#f7f7f5}
[data-theme="light"] th span,[data-theme="light"] .original-value{color:var(--muted)}
[data-theme="light"] td{border-bottom-color:#e4e4e1}
[data-theme="light"] tbody tr.selected{background:#eee}
[data-theme="light"] tbody tr:hover{background:#f4f4f1}
[data-theme="light"] .edit-controls .segment-button{background:#eee}
[data-theme="light"] .row-error td,[data-theme="light"] input[aria-invalid=true]{background:#fff0eb}
[data-theme="light"] .alert{border-color:#dcae9e;background:#fff0eb;color:#923c2a}
[data-theme="light"] .download-bar,[data-theme="light"] .download-filename label{color:#f5f5f3}
[data-theme="light"] .download-bar .primary{background:#eee;color:#000}
[data-theme="light"] .download-bar .primary:hover{background:#fff}
[data-theme="light"] .download-bar button:focus-visible{outline-color:#fff}
@media(max-width:650px){.header-actions{gap:0}.theme-toggle{font-size:10px;padding:7px 9px}[data-theme="light"] .new-pace,[data-theme="light"] .distance-cell,[data-theme="light"] tbody td:nth-child(8),[data-theme="light"] tbody td:nth-child(9){border-top-color:var(--line)}}

.privacy-row{display:flex;justify-content:flex-end;padding:22px 0}.privacy-row .privacy-badge{margin:0}@media(max-width:650px){.privacy-row{justify-content:flex-start;padding:20px 0}}

@media(max-width:360px){.site-header{gap:10px}.header-tools{padding-left:10px}.brand{font-size:29px}.theme-toggle{font-size:9px;padding:7px}}

/* Edits use a dedicated accent and a text label, including zero-speed rests. */
:root{--edit-highlight:#d5ed8a;--edit-tint:#d5ed8a18}
:root[data-theme="light"]{--edit-highlight:#41620e;--edit-tint:#41620e12}
.speed-bar.edited i:last-child,[data-theme="light"] .speed-bar.edited i:last-child,.chart-key i:last-of-type,[data-theme="light"] .chart-key i:last-of-type{background:var(--edit-highlight)}
.speed-bar.edited i:last-child::after{content:"";position:absolute;top:-6px;left:50%;transform:translateX(-50%);width:4px;height:4px;border-radius:50%;background:var(--edit-highlight)}
#change-count{padding:3px 7px;border-radius:4px;letter-spacing:0}
#change-count.has-edits{color:var(--edit-highlight);background:var(--edit-tint);font-weight:700}
tbody tr.edited .lap-number{color:var(--edit-highlight)}
.lap-edited-label{display:block;margin-top:3px;font-size:8px;font-weight:600;line-height:1.3}
tbody tr.edited>td:first-child{box-shadow:inset 3px 0 var(--edit-highlight)}
@media(max-width:650px){tbody tr.edited{box-shadow:inset 3px 0 var(--edit-highlight)}tbody tr.edited>td:first-child{box-shadow:none}}

.footer-links{display:flex;align-items:center;gap:22px;flex-wrap:wrap;justify-content:flex-end}
.feedback-fields{border:0;padding:0;margin:22px 0 0;min-width:0;display:grid;gap:17px}
.feedback-fields label{display:flex;flex-direction:column;gap:8px;font-size:11px;color:var(--ink)}
.feedback-fields label span{font-size:10px;color:var(--muted)}
.feedback-grid{display:grid;grid-template-columns:1fr 1.25fr;gap:14px}
.feedback-fields input,.feedback-fields select{width:100%;font-size:12px}
.feedback-fields textarea{font:inherit;font-size:13px;line-height:1.6;width:100%;min-height:125px;max-height:300px;resize:vertical;border:1px solid var(--line);border-radius:6px;background:var(--white);color:var(--ink);padding:10px}
.feedback-fields textarea:focus{outline:2px solid var(--ink);outline-offset:1px}
.feedback-fields:disabled{opacity:.65}
.feedback-status{min-height:20px;margin:14px 0;font-size:12px;line-height:1.5}
.feedback-status[data-state="success"]{color:var(--edit-highlight)}
.feedback-status[data-state="error"]{color:var(--error)}
.feedback-actions{display:flex;gap:16px;align-items:center;justify-content:space-between}
.feedback-email-link{font-size:11px;color:var(--muted);text-underline-offset:3px}
.feedback-email-link:hover{color:var(--ink)}
@media(max-width:650px){.site-footer{gap:18px;align-items:flex-start;flex-wrap:wrap}.footer-links{justify-content:flex-start;gap:12px 20px}.feedback-grid{grid-template-columns:1fr}.feedback-actions{align-items:flex-start;flex-direction:column-reverse}.feedback-actions .button{width:100%}}

.download-bar .download-feedback{display:block;margin-top:9px;color:#b8b8b8;font-size:10px;font-weight:400;text-align:left}.download-bar .download-feedback:hover{color:#fff}


/* Treadmill grade: independent of pace/speed correction. */
.grade-input{width:76px;min-width:76px;padding:9px 8px;font-variant-numeric:tabular-nums}.gain-cell{font-variant-numeric:tabular-nums}.elevation-summary{margin:20px 0;padding:16px 20px;border:1px solid var(--line,#333);border-radius:12px}.elevation-summary strong{display:flex;gap:20px;justify-content:space-between}.elevation-summary p{font-size:12px;line-height:1.6;color:var(--muted,#888);margin:8px 0 0}.elevation-summary span{white-space:nowrap}

/* Optional walkthrough: keep the upload action primary. */
.walkthrough-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;text-align:left;line-height:1.5}
.walkthrough-link>span{font-size:19px}
.walkthrough-dialog{width:min(960px,calc(100% - 32px));padding:22px}
.walkthrough-dialog .dialog-heading{align-items:center;margin-bottom:18px}
.walkthrough-dialog .dialog-heading h2{font-size:20px}
.walkthrough-dialog .icon-button{min-width:44px;min-height:44px}
.walkthrough-dialog video{display:block;width:100%;aspect-ratio:16/9;background:#000;border-radius:5px}
.walkthrough-dialog p{margin:14px 0 0}
@media(max-width:650px){.walkthrough-dialog{padding:14px}.walkthrough-dialog .dialog-heading{margin-bottom:10px}.walkthrough-dialog .dialog-heading h2{font-size:17px}}
