html body :is(#timerCard,#stopwatchCard){box-sizing:border-box;width:100%;max-width:100%;margin:0;padding:24px 20px;background:#132c3d;border:1px solid #436779;border-radius:18px;color:#dcebf4;scroll-margin-top:calc(var(--nav-height,86px) + 16px)}
html body :is(#timerCard,#stopwatchCard) h2{margin:0 0 16px;font-size:24px;color:#acdcec;text-align:center}
html body :is(#timerCard,#stopwatchCard) .timer-title-icon{display:block;width:32px;height:32px;margin:0 auto 10px;color:#92c9e9}
html body :is(#timerCard,#stopwatchCard) .timer-intro{text-align:center;margin:0 auto 18px;max-width:480px;color:#adc3d3;font-size:14px}
html body :is(#timerCard,#stopwatchCard) button{position:static;box-sizing:border-box;min-height:40px;padding:8px 16px;border:1px solid #60859c;border-radius:10px;background:#203e54;color:#d9edf6;font:500 17px/1.3 Inter,system-ui,sans-serif;font-size:17px!important;cursor:pointer;transform:none;box-shadow:none}
html body :is(#timerCard,#stopwatchCard) button[aria-pressed=true]{background:#285b6b;border-color:#80c9d1;color:#efffff}
html body :is(#timerCard,#stopwatchCard) .timer-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:24px;margin:12px 0}
html body :is(#timerCard,#stopwatchCard) .timer-actions button{min-height:42px}
html body :is(#timerCard,#stopwatchCard) :is(#timerStart,#stopwatchStart){background:#245b64;border-color:#77cbd1;color:#efffff}
html body #timerCard #timerStart.timer-start-ready{border-color:#90e0e3;animation:none;box-shadow:0 0 12px #70d3d666}
@keyframes timer-start-cue{0%,100%{box-shadow:0 0 8px #79cbbb40}50%{box-shadow:0 0 0 2px #79cbbb55,0 0 19px #79cbbb80}}
@media(prefers-reduced-motion:reduce){html body #timerCard #timerStart.timer-start-ready{animation:none;box-shadow:0 0 10px #70d3d666}}
html body :is(#timerCard,#stopwatchCard) :is(#timerStart,#stopwatchStart):has(svg path[d^="M8 5"]){background:#264f76;border-color:#82b8ee;color:#edf6ff}

html body :is(#timerCard,#stopwatchCard) button:disabled{opacity:.45;cursor:default}
html body :is(#timerCard,#stopwatchCard) :is(button,input):focus-visible{outline:2px solid #97e2ee;outline-offset:3px}
html body :is(#timerCard,#stopwatchCard) .timer-display{display:grid;justify-content:center;align-items:baseline;column-gap:.24em;row-gap:clamp(8px,2vw,14px);box-sizing:border-box;width:min(calc(100% - 16px),6.9em);max-width:100%;padding:14px .34em;border:1px solid #365568;border-radius:24px;background:#0b1d2b;box-shadow:inset 0 2px 8px #020c1533;font:400 clamp(36px,6.5vw,58px)/1.2 Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums;text-align:center;color:#c1eaff;margin:18px auto 8px;overflow-wrap:anywhere;}
html body :is(#timerCard,#stopwatchCard) .timer-state{text-align:center;min-height:28px;margin:18px 0 0;font-size:20px;line-height:1.4;}
html body :is(#timerCard,#stopwatchCard) .timer-state.timer-state-complete{font-size:20px;line-height:1.4}

html body :is(#timerCard,#stopwatchCard) :is(:is(#timerCheckpoint,#stopwatchCheckpoint),:is(#timerStart,#stopwatchStart),:is(#timerReset,#stopwatchReset)){display:inline-flex;align-items:center;justify-content:center;gap:9px}
html body :is(#timerCard,#stopwatchCard) :is(:is(#timerCheckpoint,#stopwatchCheckpoint),:is(#timerStart,#stopwatchStart),:is(#timerReset,#stopwatchReset)) svg{width:20px;height:20px;flex-shrink:0}
html body :is(#timerCard,#stopwatchCard) :is(:is(#timerCheckpoint,#stopwatchCheckpoint),:is(#timerStart,#stopwatchStart),:is(#timerReset,#stopwatchReset)){min-height:50px;font-size:16px;padding:12px 18px}
html body :is(#timerCard,#stopwatchCard) .timer-actions button{width:140px;max-width:calc(50% - 12px)}

html body :is(#timerCard,#stopwatchCard) .timer-checkpoint-panel[hidden]{display:none}
html body :is(#timerCard,#stopwatchCard) .timer-checkpoint-card{display:grid;box-sizing:border-box;min-width:0;border:1px solid #527d96;background:#10283b;text-align:center;overflow-wrap:anywhere;animation:timer-checkpoint-in .2s ease-out;}
html body :is(#timerCard,#stopwatchCard) .timer-checkpoint-card span{color:#aecbdf}
html body :is(#timerCard,#stopwatchCard) .timer-checkpoint-card strong{font-weight:500;color:#99e0df}
@keyframes timer-checkpoint-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){html body :is(#timerCard,#stopwatchCard) .timer-checkpoint-card{animation:none}}
html body :is(#timerCard,#stopwatchCard) .timer-feedback{min-height:20px;margin:8px 0 0;text-align:center;color:#a9c7d8;font-size:13px;line-height:20px}
html body :is(#timerCard,#stopwatchCard) .timer-total{border-block:1px solid #47697c;}
html body :is(#timerCard,#stopwatchCard) .timer-total strong{font-weight:500;font-variant-numeric:tabular-nums}
html body :is(#timerCard,#stopwatchCard) .timer-fields{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
html body :is(#timerCard,#stopwatchCard) .timer-setup-label{margin:20px 0 6px;text-align:center;font-size:14px;color:#b9d8ee}
html body :is(#timerCard,#stopwatchCard) .timer-custom-divider{display:flex;align-items:center;justify-content:center;gap:12px;max-width:380px;margin:20px auto 14px;font-size:13px;color:#a9c2d6;text-align:center}
html body :is(#timerCard,#stopwatchCard) .timer-custom-divider::before,html body :is(#timerCard,#stopwatchCard) .timer-custom-divider::after{content:"";flex:1;border-top:1px solid #416174}
html body :is(#timerCard,#stopwatchCard) .timer-presets button[aria-pressed=true]{background:#2c608b;border-color:#83bcec;color:#edf7ff}
html body :is(#timerCard,#stopwatchCard) .timer-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:min(100%,340px);margin:12px auto}
html body :is(#timerCard,#stopwatchCard) .timer-presets button{min-width:0;min-height:36px;padding:7px 5px;font-size:13px;white-space:nowrap}
html body :is(#timerCard,#stopwatchCard) .timer-fields label{display:grid;gap:6px;text-align:center;color:#bad5e3;font-size:13px}
html body :is(#timerCard,#stopwatchCard) input[type=number]{box-sizing:border-box;width:80px;min-width:0;padding:8px;border:1px solid #57798e;border-radius:7px;background:#102737;color:#e1f3fa;font:16px Inter,system-ui,sans-serif}
html body :is(#timerCard,#stopwatchCard) .timer-alert-options{text-align:center;margin:38px auto 12px;max-width:440px}
html body :is(#timerCard,#stopwatchCard) .timer-alert-icon{display:block;width:25px;height:25px;margin:0 auto 9px;color:#91bfd5}
html body :is(#timerCard,#stopwatchCard) :is(#timerAlertToggle,#stopwatchAlertToggle){background:#294759;border-color:#6f94ab;color:#d1e5ef}
html body :is(#timerCard,#stopwatchCard) .timer-alert-panel{margin-top:12px;padding:18px;border:1px solid #436779;border-radius:14px;background:#102737;text-align:left}
html body :is(#timerCard,#stopwatchCard) .timer-alert-option{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:14px 0;font-size:14px;color:#c8dfea}
html body :is(#timerCard,#stopwatchCard) .timer-alert-option label{display:flex;align-items:center;gap:8px}
html body :is(#timerCard,#stopwatchCard) .timer-alert-option span{display:block;flex-basis:100%;padding-left:26px;font-size:12px;color:#9fb6c6}
html body :is(#timerCard,#stopwatchCard) .timer-alert-option input{width:18px;height:18px;margin:0;accent-color:#78badb}
html body :is(#timerCard,#stopwatchCard) .timer-alert-group{margin:14px 0;padding:14px;border:1px solid #365b73;border-radius:12px;background:#0c2132}
html body :is(#timerCard,#stopwatchCard) .timer-alert-group .timer-alert-option{margin:0 0 12px;font-size:16px;font-weight:500;color:#9aafc1;transition:color .18s ease}
html body :is(#timerCard,#stopwatchCard) .timer-alert-group .timer-alert-option:has(input:checked){color:#d0efff}
html body :is(#timerCard,#stopwatchCard) .timer-activity-field{display:grid;gap:8px;margin:0 0 24px;font-size:14px;color:#bed9e9}
html body :is(#timerCard,#stopwatchCard) :is(#timerActivity,#stopwatchActivity){box-sizing:border-box;width:100%;min-width:0;padding:10px 12px;border:1px solid #557c98;border-radius:8px;background:#0b2030;color:#e0eff8;font:16px/1.4 system-ui,sans-serif}
html body :is(#timerCard,#stopwatchCard) :is(#timerActivity,#stopwatchActivity)::placeholder{color:#91a9ba}
html body :is(#timerCard,#stopwatchCard) .timer-activity-display{max-width:480px;margin:20px auto -8px;font-size:18px;line-height:1.4;text-align:center;color:#b9dfe9;overflow-wrap:anywhere}
html body :is(#timerCard,#stopwatchCard) :is(#timerEndMessage,#stopwatchEndMessage),html body :is(#timerCard,#stopwatchCard) :is(#timerMessageSampleText,#stopwatchMessageSampleText){overflow-wrap:anywhere}
html body :is(#timerCard,#stopwatchCard) .timer-alert-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
html body :is(#timerCard,#stopwatchCard) .timer-alert-fields label,html body :is(#timerCard,#stopwatchCard) .timer-alert-select{display:grid;gap:6px;font-size:12px;color:#b5cada;min-width:0}
html body :is(#timerCard,#stopwatchCard) .timer-alert-fields label:first-child{grid-column:1/-1}
html body :is(#timerCard,#stopwatchCard) .timer-alert-group select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:8px;border:1px solid #557c98;border-radius:7px;background:#19384f;color:#dcecf7;font:14px/1.3 system-ui,sans-serif}
html body :is(#timerCard,#stopwatchCard) .timer-alert-group>button{min-height:36px;padding:7px 12px;font-size:13px}
html body :is(#timerCard,#stopwatchCard) .timer-complete{border-color:#7ef0e6;box-shadow:0 0 0 1px #7ef0e6,0 0 16px #62dbd02b}
html body :is(#timerCard,#stopwatchCard) .timer-alert-glow{border-color:#a0f7ee;box-shadow:0 0 18px #78cbd066}
html body :is(#timerCard,#stopwatchCard) .timer-end-alert{max-width:400px;margin:16px auto;padding:16px;border:1px solid #7bb9ce;border-radius:14px;background:#193b4d;text-align:center}
html body :is(#timerCard,#stopwatchCard) .timer-end-alert p:empty,html body :is(#timerCard,#stopwatchCard) :is(#timerPreviewStatus,#stopwatchPreviewStatus):empty{display:none}
html body :is(#timerCard,#stopwatchCard) .timer-alert-pulse{animation:timer-border-pulse 2.5s ease-in-out infinite}
@keyframes timer-border-pulse{0%,100%{border-color:#365568;box-shadow:0 0 0 0 #78cbd000}50%{border-color:#9bdde0;box-shadow:0 0 0 5px #78cbd030}}
html body :is(#timerCard,#stopwatchCard) .timer-complete.timer-alert-pulse{animation-name:timer-complete-pulse}
@keyframes timer-complete-pulse{0%,100%{border-color:#7ef0e6;box-shadow:0 0 0 1px #7ef0e6}50%{border-color:#bcfff7;box-shadow:0 0 0 5px #78cbd045,0 0 18px #78cbd040}}
@media(prefers-reduced-motion:reduce){html body :is(#timerCard,#stopwatchCard) .timer-alert-pulse,html body :is(#timerCard,#stopwatchCard) .timer-complete.timer-alert-pulse{animation:none;border-color:#9bdde0}}
html body :is(#timerCard,#stopwatchCard) h3{font-size:17px;color:#b8dee9;margin:0 0 10px;text-align:center}
html body :is(#timerCard,#stopwatchCard) table{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed;font-size:14px}
html body :is(#timerCard,#stopwatchCard) th,html body :is(#timerCard,#stopwatchCard) td{padding:10px 8px;border-bottom:1px solid #365365;text-align:right;vertical-align:middle;overflow-wrap:anywhere}
html body :is(#timerCard,#stopwatchCard) th:first-child,html body :is(#timerCard,#stopwatchCard) td:first-child{text-align:left;width:130px}
html body :is(#timerCard,#stopwatchCard) .timer-name{box-sizing:border-box;width:100%;min-width:0;background:#183747;border:1px solid #476b80;border-radius:5px;padding:7px;color:#dcebf4;font:inherit}
html body :is(#timerCard,#stopwatchCard) .timer-bar{overflow:hidden;min-height:12px;border-radius:4px;margin:12px 0;background:#0d2434}
html body :is(#timerCard,#stopwatchCard) .timer-bar span{min-width:0;height:12px}
html body :is(#timerCard,#stopwatchCard) .timer-bar span:nth-child(4n+1){background:#619dcc}
html body :is(#timerCard,#stopwatchCard) .timer-bar span:nth-child(4n+2){background:#5bb7b5}
html body :is(#timerCard,#stopwatchCard) .timer-bar span:nth-child(4n+3){background:#9c92c4}
html body :is(#timerCard,#stopwatchCard) .timer-bar span:nth-child(4n){background:#c3a573}
html body :is(#timerCard,#stopwatchCard) .timer-note{font-size:12px;color:#9fb6c6;text-align:center;margin:12px 0}
html body :is(#timerCard,#stopwatchCard) [hidden]{display:none!important}
@media(max-width:480px){html body :is(#timerCard,#stopwatchCard){padding:20px 12px;border-radius:0}
html body :is(#timerCard,#stopwatchCard) th,html body :is(#timerCard,#stopwatchCard) td{padding:9px 5px;font-size:12px}
html body :is(#timerCard,#stopwatchCard) .timer-fields{gap:8px}}
html body :is(#timerCard,#stopwatchCard) .timer-display>span{display:inline-flex;justify-content:center;align-items:baseline;gap:.086em;min-width:0;white-space:nowrap}
html body :is(#timerCard,#stopwatchCard) .timer-display>span>span{display:inline-block;flex:0 0 auto;min-width:2ch;text-align:right}
html body :is(#timerCard,#stopwatchCard) .timer-display small{display:inline-block;flex:0 0 .9em;width:.9em;margin:0;padding:0;text-align:left;font-size:.64em;font-weight:400;color:inherit}
html body :is(#timerCard,#stopwatchCard) .timer-display>span:nth-child(1){color:#a8caff}
html body :is(#timerCard,#stopwatchCard) .timer-display>span:nth-child(2){color:#90ded5}
html body :is(#timerCard,#stopwatchCard) .timer-display>span:nth-child(3){color:#9acfe9}
html body :is(#timerCard,#stopwatchCard) .timer-checkpoint-action{display:flex;box-sizing:border-box;padding:0;}
html body :is(#timerCard,#stopwatchCard) .timer-checkpoint-action[hidden]{display:none!important}
html body :is(#timerCard,#stopwatchCard) :is(#timerCheckpoint,#stopwatchCheckpoint){display:flex;}
html body :is(#timerCard,#stopwatchCard) .timer-checkpoint-panel{display:flex;flex-wrap:wrap;align-items:center;box-sizing:border-box;min-width:0;}
html body :is(#timerCard,#stopwatchCard) .timer-checkpoint-card{gap:2px;padding:5px 6px;border-radius:0;}
@media(max-width:480px){html body :is(#timerCard,#stopwatchCard) .timer-checkpoint-action{gap:7px}
html body :is(#timerCard,#stopwatchCard) :is(#timerCheckpoint,#stopwatchCheckpoint){flex-basis:82px}
html body :is(#timerCard,#stopwatchCard) .timer-checkpoint-card{flex-basis:82px}}
html body :is(#timerCard,#stopwatchCard) .timer-checkpoint-action{flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;width:100%;min-height:0;margin:12px auto 18px;text-align:center}
html body :is(#timerCard,#stopwatchCard) :is(#timerCheckpoint,#stopwatchCheckpoint){flex:0 0 auto;flex-direction:row;gap:8px;width:auto;min-width:0;min-height:42px;padding:8px 16px;font-size:14px;line-height:1.25;white-space:nowrap}
html body :is(#timerCard,#stopwatchCard) :is(#timerCheckpoint,#stopwatchCheckpoint) svg{width:18px;height:18px}

html body :is(#timerCard,#stopwatchCard) .timer-checkpoint-card{flex:0 1 96px}
html body :is(#timerCard,#stopwatchCard) :is(#timerCheckpoint,#stopwatchCheckpoint){background:#216b70;border-color:#73d0cf;color:#e2ffff;box-shadow:0 2px 8px #061b2538}
html body :is(#timerCard,#stopwatchCard) :is(#timerCheckpoint,#stopwatchCheckpoint):hover{background:#2b8083;border-color:#a1eeea}
html body :is(#timerCard,#stopwatchCard) .timer-breakdown{box-sizing:border-box;}
html body :is(#timerCard,#stopwatchCard) .timer-checkpoint-card span{font-size:12px}
html body :is(#timerCard,#stopwatchCard) .timer-checkpoint-card strong{font-size:13px}
html body :is(#timerCard,#stopwatchCard) .timer-checkpoint-action{margin-top:38px}
html body :is(#timerCard,#stopwatchCard) .timer-breakdown{width:min(100%,520px);max-width:520px;margin:22px auto 0;padding:16px clamp(12px,2.5vw,20px);border:1px solid #365b70;border-radius:14px;background:#10283a;box-shadow:none}
html body :is(#timerCard,#stopwatchCard) .timer-breakdown h3{margin:0 0 12px;text-align:center}
html body :is(#timerCard,#stopwatchCard) .timer-total{display:flex;align-items:center;justify-content:center;gap:12px;width:fit-content;max-width:100%;box-sizing:border-box;margin:16px auto 10px;padding:12px 18px;border:1px solid #4d788e;border-radius:14px;background:#173b50;color:#c1eaff;font-size:22px;flex-wrap:wrap;text-align:center}
html body :is(#timerCard,#stopwatchCard) .timer-total strong{font-size:28px}
html body :is(#timerCard,#stopwatchCard) .timer-current-segment{display:flex;align-items:center;justify-content:center;text-align:center;gap:10px;margin:8px auto 22px;padding:0;color:#a9c7d8;font-size:17px;flex-wrap:wrap}
html body :is(#timerCard,#stopwatchCard) .timer-current-segment[hidden]{display:none}
html body :is(#timerCard,#stopwatchCard) .timer-current-segment strong{font-size:20px;font-weight:500;color:#bfe6ed;font-variant-numeric:tabular-nums}
html body :is(#timerCard,#stopwatchCard) .timer-breakdown table{border-collapse:separate;border-spacing:0;width:100%}
html body :is(#timerCard,#stopwatchCard) .timer-checkpoint-panel{flex:0 1 auto;width:max-content;max-width:100%;min-height:68px;margin:0 auto;padding:8px;border:1px solid #355d73;border-radius:12px;background:#0c2334;justify-content:center;align-content:center;gap:7px}
html body :is(#timerCard,#stopwatchCard) .timer-checkpoint-action{margin-bottom:6px}
html body :is(#timerCard,#stopwatchCard) .timer-breakdown{margin-top:12px}
html body #stopwatchCard .timer-session-scroll{box-sizing:border-box;max-width:100%;overflow-x:scroll;border:1px solid #719bb5;border-radius:8px}
html body #stopwatchCard .timer-breakdown{box-sizing:border-box;padding:16px 12px;}
html body #stopwatchCard .timer-breakdown:not(.has-location-columns) .timer-session-scroll{width:min(100%,520px);margin-inline:auto}
html body #stopwatchCard .timer-breakdown.has-location-columns table{max-width:none;table-layout:fixed;margin-inline:auto;}
html body #stopwatchCard .timer-breakdown.has-location-columns :is(th,td){width:auto;padding:10px 7px;font-size:17px;white-space:normal;word-break:normal;overflow-wrap:normal;vertical-align:middle}
html body #stopwatchCard .timer-breakdown.has-location-columns .timer-name{width:124px;max-width:100%;padding:5px 2px}
html body #stopwatchCard .timer-breakdown.has-location-columns .timer-checkpoint-name{gap:4px}
html body #stopwatchCard .timer-breakdown.has-location-columns :is(th,td):nth-child(5){white-space:nowrap}
html body #stopwatchCard .timer-breakdown.has-location-columns .timer-session-place{min-width:110px;max-width:155px;overflow-wrap:anywhere;}
html body #stopwatchCard .timer-session-place a{color:#9cd9ff}
html body #stopwatchCard .timer-session-distance{min-width:74px;line-height:1.5}
html body :is(#timerCard,#stopwatchCard) .timer-breakdown th,html body :is(#timerCard,#stopwatchCard) .timer-breakdown td{padding:7px 5px;border-bottom:1px solid #294458}
html body :is(#timerCard,#stopwatchCard) .timer-breakdown tbody tr:last-child td{border-bottom:0}
html body :is(#timerCard,#stopwatchCard) .timer-bar{display:none}
html body #stopwatchCard{background:#132c3d;border-color:#426988;color:#dcecff}
html body #timerCard{background:#132c3d;border-color:#4f698d;color:#dce7f7}
html body #stopwatchCard .timer-display{background:#091a2c;border-width:1px;border-color:#5f819c;color:#b8d8ff}
html body #stopwatchCard .timer-display>span{color:#b8d8ff!important}
html body #timerCard .timer-display{background:#0e1c30;border-width:1px;border-color:#687f9f;color:#bdd5ff}
html body #timerCard .timer-display>span{color:#bdd5ff!important}
html body :is(#timerCard,#stopwatchCard) .timer-breakdown h3{font-size:22px;font-weight:650;color:#91d3f4;-webkit-text-fill-color:#91d3f4;line-height:1.3}
html body :is(#timerCard,#stopwatchCard) .timer-breakdown .timer-checkpoint-name{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0}
html body :is(#timerCard,#stopwatchCard) .timer-breakdown .timer-checkpoint-name>svg{display:block;flex:0 0 17px;width:17px;height:17px;color:#8fcaf0}
html body :is(#timerCard,#stopwatchCard) .timer-breakdown .timer-checkpoint-name>.timer-name{box-sizing:border-box;flex:0 0 124px;width:124px;max-width:100%;min-width:0;padding-inline:2px;text-align:center}
html body #timerCard #timerAlertToggle{background:#4c496a;border-color:#a397cb;color:#eee9ff}
html body #timerCard #timerAlertToggle:is(:hover,:focus-visible){background:#5b567c;border-color:#bdb0e7;color:#faf7ff}
html body #timerCard #timerReset{background:#344b68;border-color:#748eac;color:#edf5ff}
html body #timerCard #timerReset:is(:hover,:focus-visible){background:#415e80;border-color:#9ab6d6;color:#edf5ff}
html body :is(#timerCard,#stopwatchCard) .timer-display .timer-value-zero{color:#8295a3!important;-webkit-text-fill-color:#8295a3!important}
html body :is(#timerCard,#stopwatchCard) .timer-display .timer-value-active{color:#d8f3ff!important;-webkit-text-fill-color:#d8f3ff!important}
html body #timerCard .timer-display .timer-value-active{color:#bdd5ff!important;-webkit-text-fill-color:#bdd5ff!important}
html body #stopwatchCard .timer-display .timer-value-zero{color:#8295a3!important;-webkit-text-fill-color:#8295a3!important}
html body #stopwatchCard .timer-display .timer-value-active{color:#8fd7ff!important;-webkit-text-fill-color:#8fd7ff!important}
html body :is(#timerCard,#stopwatchCard) .timer-duration-readout{white-space:nowrap;font-variant-numeric:tabular-nums}
html body :is(#timerCard,#stopwatchCard) .timer-duration-field{display:inline-flex;align-items:baseline;gap:1px;white-space:nowrap}
html body :is(#timerCard,#stopwatchCard) .timer-duration-value{font-variant-numeric:tabular-nums;transition:color .16s ease}
html body :is(#timerCard,#stopwatchCard) .timer-duration-value.is-zero{color:#8295a3}
html body :is(#timerCard,#stopwatchCard) .timer-duration-value.has-value{color:#a8e8f8}
html body #timerCard .timer-duration-value.has-value{color:#bdd5ff}
html body :is(#timerCard,#stopwatchCard) .timer-duration-field>small{color:#a1b8c7;font-size:.82em;line-height:1}
html body #timerCard #timerPersistence{display:table;width:auto;max-width:100%;margin:12px auto 0;padding:0;border:0;border-radius:0;background:transparent;color:#a9c7d8;text-align:center}
html body #timerCard .timer-visual-option-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;margin-bottom:12px}
html body #timerCard .timer-visual-option-row>.timer-alert-option{flex:1 1 auto;min-width:0;margin:0}
html body #timerCard .timer-visual-mini-clock{display:flex;flex:0 0 auto;align-items:center;justify-content:center;gap:7px;box-sizing:border-box;min-width:124px;padding:7px 10px;border:1px solid #3d6176;border-radius:9px;background:#0b1e2c;color:#a9dff2;font:600 13px/1.2 Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums;transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease}
html body #timerCard .timer-visual-mini-clock>svg{display:block;flex:0 0 17px;width:17px;height:17px;color:#80bedc}
html body #timerCard .timer-visual-mini-clock.timer-visual-preview-pulse.is-previewing{animation:timer-mini-clock-pulse 1.15s ease-in-out infinite}
html body #timerCard .timer-visual-mini-clock.timer-visual-preview-glow.is-previewing{border-color:#88dce0;background:#123647;box-shadow:0 0 14px #78cbd066}
@keyframes timer-mini-clock-pulse{0%,100%{border-color:#3d6176;box-shadow:0 0 0 0 #78cbd000}50%{border-color:#9bdde0;box-shadow:0 0 0 4px #78cbd035,0 0 14px #78cbd044}}
@media(max-width:420px){html body #timerCard .timer-visual-option-row{align-items:flex-start;flex-wrap:wrap}
html body #timerCard .timer-visual-option-row>.timer-alert-option{flex-basis:100%}
html body #timerCard .timer-visual-mini-clock{margin-left:26px}}
@media(prefers-reduced-motion:reduce){html body #timerCard .timer-visual-mini-clock.timer-visual-preview-pulse.is-previewing{animation:none;border-color:#9bdde0;box-shadow:0 0 0 3px #78cbd035}}
html body :is(#timerCard,#stopwatchCard) :is(#timerReset,#stopwatchReset){background:#344b68;border-color:#748eac;color:#edf5ff}
html body :is(#timerCard,#stopwatchCard) :is(#timerReset,#stopwatchReset):is(:hover,:focus-visible){background:#415e80;border-color:#9ab6d6;color:#edf5ff}
html body #stopwatchCard #stopwatchCheckpoint{min-height:54px;padding:14px 20px;border-radius:18px;margin-bottom:4px;opacity:1;visibility:visible;transition:background-color .25s,color .25s,border-color .25s;}
html body #stopwatchCard .timer-checkpoint-action.has-started #stopwatchCheckpoint{opacity:1;visibility:visible;pointer-events:auto;}
html body #stopwatchCard .timer-checkpoint-action #stopwatchCheckpoint:disabled{opacity:1;background:#303c47;border-color:#576570;color:#94a0aa;-webkit-text-fill-color:#94a0aa;box-shadow:none;cursor:not-allowed;pointer-events:none;}
html body #stopwatchCard .timer-checkpoint-panel:empty{visibility:hidden;}
html body #stopwatchCard .timer-checkpoint-card{box-sizing:border-box;flex:0 0 auto;width:94px;max-width:100%;min-height:50px;line-height:18px;}
@media(prefers-reduced-motion:reduce){html body #stopwatchCard #stopwatchCheckpoint{transition:none;}}
/* Optional stopwatch location history; isolated from countdown and page tables. */
.page-time #stopwatchCard .stopwatch-location{width:min(100%,860px);margin:40px auto 0;color:#c1d8e9}
.page-time #stopwatchCard .location-panel{margin-top:14px;padding:0;border:0;background:transparent;text-align:left}
.page-time #stopwatchCard :is(.location-recording-settings,.location-breakdown){box-sizing:border-box;min-width:0;padding:20px 14px;border:1px solid #41627a;border-radius:16px;background:#122b3e}
.page-time #stopwatchCard .location-recording-settings{background:transparent;border:0;text-align:center;margin-bottom:18px}
.page-time #stopwatchCard .location-recording-settings .location-privacy summary{margin-inline:auto}
.page-time #stopwatchCard .location-panel[hidden]{display:none}
.page-time #stopwatchCard .location-panel h3{text-align:center;color:#a2d8f4}
.page-time #stopwatchCard .location-enable{display:flex;flex-direction:column;text-align:center;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;width:min(100%,340px);margin:0 auto 16px;padding:12px 16px;border:1px solid #8bbbd1;border-radius:12px;background:#31576b;font-size:22px;line-height:1.4;font-weight:600;color:#f1fbff;cursor:pointer;transition:background-color .25s,border-color .25s,color .25s,box-shadow .25s}
.page-time #stopwatchCard .location-switch-control{display:flex;align-items:center;gap:8px;flex:none;min-height:44px}
.page-time #stopwatchCard .location-enable input{appearance:none;-webkit-appearance:none;position:relative;width:60px;height:34px;min-height:34px;margin:0;padding:0;flex:none;border:1px solid #758da4;border-radius:999px;background:#2b3e52;cursor:pointer;box-shadow:none}
.page-time #stopwatchCard .location-enable input::before{content:"";position:absolute;left:3px;top:3px;width:26px;height:26px;border-radius:50%;background:#c6d4e0;transition:left .2s}

.page-time #stopwatchCard .location-enable input:checked::before{left:29px;background:#e0faff}
.page-time #stopwatchCard .location-enable input:focus-visible{outline:2px solid #a0dcff;outline-offset:4px}
.page-time #stopwatchCard .location-switch-state{min-width:44px;font-size:24px;font-weight:650;color:#effaff}
.page-time #stopwatchCard .location-enable-description{max-width:460px;margin:6px auto 14px;text-align:center;font-size:14px;line-height:1.5;color:#b5ccdc}
.page-time #stopwatchCard .location-privacy{margin:0 0 16px;font-size:13px;color:#a6c5d9}
.page-time #stopwatchCard .location-privacy summary{cursor:pointer;padding:6px 0;width:fit-content}
.page-time #stopwatchCard .location-privacy p{margin:6px 0 0;line-height:1.5}
.page-time #stopwatchCard .location-status{display:block;box-sizing:border-box;width:100%;height:2.5em;min-height:2.5em;overflow:auto;color:#8fc8ff;margin:16px auto 8px;font-size:17px;font-weight:500;line-height:1.25;text-align:center}
.page-time #stopwatchCard .location-table-scroll{overflow-x:auto;max-width:100%;margin:16px 0}
.page-time #stopwatchCard .location-table-scroll table{width:max-content;max-width:100%;margin:0 auto;border-collapse:collapse;font-size:13px;table-layout:auto}
.page-time #stopwatchCard .location-table-scroll th,.page-time #stopwatchCard .location-table-scroll td{padding:8px 5px;text-align:left;border-bottom:1px solid #365067;vertical-align:top;min-width:0;white-space:normal}
.page-time #stopwatchCard .location-table-scroll td:nth-child(4){min-width:125px;overflow-wrap:anywhere}
.page-time #stopwatchCard .location-table-scroll small,.page-time #stopwatchCard .location-table-scroll td:last-child span{display:block;margin-top:5px}
.page-time #stopwatchCard .location-table-scroll a{color:#9cd9ff}
.page-time #stopwatchCard .location-note,.page-time #stopwatchCard .location-table-scroll small{font-size:12px;color:#a2b9ca}
.page-time #stopwatchCard .stopwatch-finish{display:inline-flex;align-items:center;justify-content:center;gap:12px;background:#234a60;color:#d2eaf7;border:1px solid #6897b0;min-height:50px;padding:12px 18px}
.page-time #stopwatchCard .stopwatch-finish svg{width:20px;height:20px;flex-shrink:0}
.page-time #stopwatchCard .timer-actions{flex-wrap:wrap}
.page-time #stopwatchCard .location-clear{min-height:44px;padding:8px 16px}
.page-time #stopwatchCard .location-units{display:flex;align-items:center;justify-content:flex-end;gap:8px;color:#bcdce9;font-size:14px}
.page-time #stopwatchCard .location-units select{display:inline-block;width:110px;max-width:100%;margin:0;padding:6px 10px;color:#d7effb;background:#21465e;border:1px solid #7198b0;border-radius:8px}
.page-time #stopwatchCard .timer-session-tools{display:flex;justify-content:flex-end;grid-column:3;margin:0;justify-self:end}
html body #stopwatchCard .timer-session-summary-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;margin:8px 0 18px}
html body #stopwatchCard .timer-session-summary-row .timer-current-segment{grid-column:2;margin:0}
html body #stopwatchCard .timer-session-summary-row:has(.timer-current-segment[hidden]):has(.location-units[hidden]){display:none}
@media(max-width:760px){html body #stopwatchCard .timer-session-summary-row{display:flex;flex-wrap:wrap;justify-content:center}html body #stopwatchCard .timer-session-summary-row .timer-current-segment{flex:1 1 100%}html body #stopwatchCard .timer-session-summary-row .timer-session-tools{margin-left:auto}}
.page-time #stopwatchCard .timer-session-tools:has(.location-units[hidden]){display:none}
.page-time #stopwatchCard .timer-breakdown .location-breakdown{margin-top:16px;text-align:center}
.page-time #stopwatchCard .timer-breakdown .location-note{margin:0 0 14px;line-height:1.5;font-size:14px}
.page-time #stopwatchCard :is(.location-units,.location-total,.location-breakdown)[hidden]{display:none}
.page-time #stopwatchCard .location-table-scroll :is(th,td){width:auto!important;max-width:120px!important}
.page-time #stopwatchCard .location-table-scroll th{white-space:normal}

html body #timerCard .countdown-progress{width:min(100%,375px);height:8px;box-sizing:border-box;margin:12px auto 18px;border:1px solid #405d7b;border-radius:999px;overflow:hidden;background:#0c1a2a;}
html body #timerCard .countdown-progress>span{display:block;width:100%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#588bc8,#8dd9ed);transform:var(--runtime-transform,scaleX(0));transform-origin:left center;}


.page-time #stopwatchCard .location-table-scroll :is(th,td):first-child{max-width:60px!important;}
.page-time #stopwatchCard .location-table-scroll :is(th,td):nth-child(4){max-width:180px!important;}
.page-time #stopwatchCard .location-total{box-sizing:border-box;width:fit-content;max-width:100%;margin:16px auto;padding:13px 18px;border:1px solid #5b8b9b;border-radius:12px;background:#193c4a;color:#a5e5ed;font-size:18px;font-weight:600;line-height:1.5;text-align:center;}

html body #stopwatchCard .timer-breakdown.has-location-columns th{white-space:normal;line-height:1.3}
html body #stopwatchCard .timer-breakdown.has-location-columns :is(th,td):first-child{min-width:0;max-width:none;padding-inline:2px}
html body #stopwatchCard .timer-breakdown :is(th,td):nth-child(5){min-width:85px;max-width:100px}
html body #stopwatchCard .timer-breakdown :is(th,td):nth-child(2){min-width:80px;white-space:nowrap}

/* The optional device-location fields form one softly revealed color group. */
html body #stopwatchCard .timer-breakdown .timer-location-column{background:#192b3a;color:#d9e2ed}
html body #stopwatchCard .timer-breakdown td:not(.timer-location-column){background:#192b3a;color:#d9e2ed}
html body #stopwatchCard .timer-breakdown th:not(.timer-location-column){background:#233e56;color:#c5e4ff}

html body #stopwatchCard .timer-breakdown th.timer-location-column{background:#3d3d5c;color:#ebe5ff}
html body #stopwatchCard .timer-breakdown .timer-clock-line{white-space:nowrap}
html body #stopwatchCard .timer-breakdown .timer-place-line{display:block;white-space:normal;overflow-wrap:anywhere;width:100%;min-width:0}
html body #stopwatchCard .timer-breakdown .timer-place-line+ .timer-place-line{margin-top:0;color:#a8c8d2}
html body #stopwatchCard .timer-breakdown .timer-location-enter{animation:stopwatch-location-in 700ms ease-out both;animation-delay:var(--location-reveal-delay,0ms)}
@keyframes stopwatch-location-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){html body #stopwatchCard .timer-breakdown .timer-location-enter{animation:none}}

html body #stopwatchCard .timer-breakdown :is(th,td){text-align:center;vertical-align:middle}

html body #stopwatchCard .timer-breakdown table{table-layout:fixed;min-width:500px}
html body #stopwatchCard .timer-breakdown th{white-space:normal;line-height:1.3}

html body #stopwatchCard .timer-column-heading-line{display:block;white-space:nowrap}

/* Consistent readable typography and clear column boundaries. */
html body #stopwatchCard .timer-breakdown table{font-family:Inter,system-ui,sans-serif;font-size:17px;line-height:1.45}
html body #stopwatchCard .timer-breakdown :is(th,td){font-family:inherit;font-size:17px;line-height:1.45}
html body #stopwatchCard .timer-breakdown td :is(input,textarea,a,span,small,div){font-family:inherit;font-size:inherit}
html body #stopwatchCard .timer-breakdown :is(th,td)+:is(th,td){border-left:1px solid #42677a}
html body #stopwatchCard .timer-breakdown.has-location-columns .timer-session-place{position:relative;padding:0!important;transition:background-color 180ms ease}
html body #stopwatchCard .timer-breakdown .timer-location-bubble{position:relative;display:flex;flex-direction:column;justify-content:center;box-sizing:border-box;width:100%;min-height:59px;height:auto;overflow:visible;max-width:100%;margin:0;padding:3px 5px;border:0;border-radius:0;background:transparent;color:#c4eaf0;line-height:1.25;text-decoration:none}
html body #stopwatchCard .timer-breakdown .timer-session-place:has(a):is(:hover,:focus-within){background:#4a4969;color:#f4edff}
html body #stopwatchCard .timer-breakdown a.timer-location-bubble:is(:hover,:focus-visible){color:#effbff}
html body #stopwatchCard .timer-breakdown a.timer-location-bubble:focus-visible{outline:2px solid #a0d9f0;outline-offset:-3px}

html body #stopwatchCard .timer-breakdown .timer-start-label{display:inline-block;box-sizing:border-box;width:124px;max-width:100%;padding:5px 2px;background:#183747;border:1px solid #476b80;border-radius:5px;color:#dcebf4;font:inherit;text-align:center}

/* Reserve location-ready row geometry even while optional columns are hidden. */
html body #stopwatchCard .timer-breakdown tbody tr{height:59px}
html body #stopwatchCard .timer-breakdown:is(.has-location-columns,:not(.has-location-columns)) tbody td{padding-block:3px}
html body #stopwatchCard .timer-breakdown.has-location-columns th:nth-child(1){box-sizing:border-box;min-width:0;max-width:none;}
html body #stopwatchCard .timer-breakdown.has-location-columns th:nth-child(5){box-sizing:border-box;width:116px;min-width:0;max-width:none}
html body #stopwatchCard .timer-breakdown.has-location-columns th:nth-child(2){box-sizing:border-box;width:116px;min-width:0;max-width:none}
html body #stopwatchCard .timer-breakdown.has-location-columns th:nth-child(3){box-sizing:border-box;width:123px;min-width:0;max-width:none}
html body #stopwatchCard .timer-breakdown th:nth-child(4){width:68px}
html body #stopwatchCard .timer-breakdown.has-location-columns :is(th,td):nth-child(4){padding-inline:3px}
html body #stopwatchCard .timer-breakdown.has-location-columns th:nth-child(4){box-sizing:border-box;min-width:0;max-width:none;}
html body #stopwatchCard .timer-breakdown.has-location-columns th:nth-child(6){box-sizing:border-box;width:100px;min-width:0;max-width:none}
html body #stopwatchCard .timer-breakdown.has-location-columns th:nth-child(7){box-sizing:border-box;width:90px;min-width:0;max-width:none}
html body #stopwatchCard .timer-breakdown.has-location-columns th:nth-child(8){box-sizing:border-box;width:100px;min-width:0;max-width:none}
html body #stopwatchCard .timer-breakdown.has-location-columns th:nth-child(9){box-sizing:border-box;width:195px;min-width:0;max-width:none}

.page-time #stopwatchCard .location-target-icon{display:block;width:36px;height:36px;flex:none;color:#a8dbef}
.page-time #stopwatchCard .location-recording-settings:has(.location-enable input:checked){background:transparent;border:0}
.page-time #stopwatchCard .location-enable:has(input:checked){background:#376d7e;border-color:#b0f2f6;color:#f0ffff;box-shadow:0 0 16px #77d5e526}
.page-time #stopwatchCard .location-enable:has(input:checked) :is(.location-target-icon,.location-switch-state){color:#e4ffff}
.page-time #stopwatchCard .location-enable input:checked{background:#3d8a96;border-color:#b0f2f6}
.page-time #stopwatchCard .location-permission-settings{display:block;margin:12px auto 0;min-height:44px;padding:8px 16px;background:#23455e;border:1px solid #7098b4;color:#cce4f5}
.page-time #stopwatchCard .location-permission-help{max-width:480px;margin:14px auto 0;padding:14px;border:1px solid #5c869e;border-radius:12px;background:#183445;color:#c4dbe7;font-size:14px;line-height:1.5}
.page-time #stopwatchCard .location-permission-help[hidden]{display:none}
.page-time #stopwatchCard .location-permission-help p{margin:0 0 12px}
.page-time #stopwatchCard .location-permission-help .location-permission-result{margin:12px 0 0;min-height:1.5em}
@media(prefers-reduced-motion:reduce){.page-time #stopwatchCard :is(.location-recording-settings,.location-enable,.location-enable input::before){transition:none}}

html body #stopwatchCard .timer-breakdown.has-location-columns :is(th,td):is(:nth-child(6),:nth-child(7),:nth-child(8)){padding-inline:3px}

html body #stopwatchCard .timer-breakdown :is(th,td):nth-child(5){padding-inline:3px}

/* Time and distance summaries sit over their respective table sections. */
html body #stopwatchCard .timer-session-overview{margin:10px 0 18px}

html body #stopwatchCard .timer-breakdown.has-location-columns .timer-session-overview{align-items:stretch;}
html body #stopwatchCard .timer-session-overview .timer-total{margin:0 auto 10px}
html body #stopwatchCard .timer-session-overview .timer-current-segment{margin:0;gap:8px}
html body #stopwatchCard .timer-session-overview .location-total{margin:0 auto;font-size:18px;padding:12px}
html body #stopwatchCard .timer-session-tools{display:flex;justify-content:flex-end;margin:12px 0 0}
html body #stopwatchCard .timer-session-tools:has(.location-units[hidden]){display:none}


/* Matched summary bubbles and a compact footer below the session table. */
html body #stopwatchCard .timer-breakdown .timer-session-overview{display:flex;justify-content:space-between;align-items:stretch;gap:16px;margin:12px 0 20px}
html body #stopwatchCard .timer-session-overview :is(.timer-summary-main,.timer-summary-distance){flex:0 1 300px;min-width:0;display:flex}
html body #stopwatchCard .timer-session-overview :is(.timer-total,.location-total){display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;box-sizing:border-box;width:100%;max-width:none;min-height:86px;margin:0;padding:12px 14px;font-size:17px;font-weight:500;line-height:1.4}
html body #stopwatchCard .timer-session-overview :is(.timer-total,.location-total) strong{font-size:24px;font-weight:500;line-height:1.3}
html body #stopwatchCard .timer-session-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-top:12px}
html body #stopwatchCard .timer-session-footer .timer-current-segment{justify-content:center;text-align:center;margin:0;font-size:16px;min-width:0}
html body #stopwatchCard .timer-session-footer .timer-session-tools{margin:0;justify-self:stretch;justify-content:center}
html body #stopwatchCard .timer-summary-distance:has(.location-total[hidden]){display:none}
@media(max-width:480px){html body #stopwatchCard .timer-breakdown .timer-session-overview{gap:10px}html body #stopwatchCard .timer-session-overview :is(.timer-total,.location-total){padding:10px 8px;font-size:15px}html body #stopwatchCard .timer-session-overview :is(.timer-total,.location-total) strong{font-size:21px}}

html body #stopwatchCard .timer-breakdown.has-location-columns .timer-session-overview{display:grid;grid-template-columns:minmax(0,55fr) minmax(0,45fr);gap:0}
html body #stopwatchCard .timer-breakdown.has-location-columns .timer-summary-main{box-sizing:border-box;padding-right:6px}
html body #stopwatchCard .timer-breakdown.has-location-columns .timer-summary-distance{box-sizing:border-box;padding-left:6px}

html body #stopwatchCard .timer-breakdown textarea.timer-name{display:block;height:50px;min-height:50px;max-height:50px;resize:none;line-height:20px;overflow:auto;white-space:pre-wrap;font-family:inherit;font-size:16px;padding-block:4px}
html body #stopwatchCard .timer-breakdown .timer-start-label{white-space:pre-line;line-height:20px;height:50px;padding-block:4px}

html body #stopwatchCard .timer-breakdown.has-location-columns textarea.timer-name{padding:4px;line-height:20px;height:50px;overflow-x:hidden}

html body #stopwatchCard .timer-breakdown.has-location-columns .timer-session-footer{display:grid;grid-template-columns:minmax(0,515fr) minmax(0,385fr);gap:0}
html body #stopwatchCard .timer-session-footer .timer-current-segment{grid-column:1}
html body #stopwatchCard .timer-session-footer .timer-session-tools{grid-column:2;min-width:0;max-width:100%}
html body #stopwatchCard .timer-session-footer .location-units{flex-wrap:wrap;max-width:100%;justify-content:center;text-align:center;padding:0;border:0;border-radius:0;background:transparent;color:#c1c9d2}
html body #stopwatchCard .timer-breakdown:not(.has-location-columns) .timer-session-footer .timer-current-segment{flex:1}

.page-time #stopwatchCard .location-recording-settings .location-enable{margin-bottom:8px}

html body #stopwatchCard .timer-session-footer .location-units select{background:#343e49;color:#e0e5eb;border-color:#79838e}

.page-time #stopwatchCard .location-explanation-title{margin:0 0 10px;text-align:center;font-size:18px;font-weight:600;color:#bfdced}

.page-time #stopwatchCard .location-recording-settings .location-breakdown{margin:14px 0 0;padding:16px;text-align:center}
.page-time #stopwatchCard .location-recording-settings .location-breakdown .location-note{font-size:14px;line-height:1.5;margin:0 0 12px}

/* Keep the first checkpoint in reserved space and tighten the following gap. */
html body #stopwatchCard .timer-feedback:empty{display:none}
html body #stopwatchCard .timer-checkpoint-action{margin-bottom:0}
html body #stopwatchCard .timer-breakdown{margin-top:8px}

html body #stopwatchCard .timer-breakdown:not(.has-location-columns) .timer-session-overview{justify-content:center}

html body #stopwatchCard .timer-state{padding-bottom:8px}

html body #timerCard .timer-duration-group{box-sizing:border-box;width:min(100%,390px);margin:16px auto;padding:16px;border:1px solid #547da5;border-radius:14px;background:#1c324d}
html body #timerCard .timer-duration-group :is(.timer-custom-divider,.timer-setup-label){margin:0 auto 12px;text-align:center}
html body #timerCard .timer-duration-group .timer-custom-divider::before,html body #timerCard .timer-duration-group .timer-custom-divider::after{display:none}
html body #timerCard .timer-duration-group :is(.timer-fields,.timer-presets){margin:0 auto}

html body #timerCard #timerAlertToggle{font-size:18px;min-height:50px;padding:12px 24px;border-radius:14px}

/* Location controls are part of the stopwatch session, below its table. */
.page-time #stopwatchCard .timer-breakdown .stopwatch-location{width:100%;margin:24px auto 0}
.page-time #stopwatchCard .timer-breakdown .location-recording-settings{margin:0;padding:8px 0 0;border:0;border-radius:0;background:transparent}
.page-time #stopwatchCard .location-information-toggle{display:block;margin:16px auto 26px;padding:10px 18px;border:1px solid #8ecbe8;border-radius:10px;background:#2c5a78;color:#e3f6ff;font-size:15px;cursor:pointer}

/* Two equally sized time summaries in the same top bubble. */
html body #stopwatchCard .timer-session-overview .timer-summary-main{flex-basis:480px}
html body #stopwatchCard .timer-session-overview .timer-total{align-items:stretch;gap:10px;overflow-x:auto}
html body #stopwatchCard .timer-session-overview .timer-total :is(.timer-total-row,.timer-current-segment){flex-direction:row;flex-wrap:nowrap;justify-content:center;gap:8px;margin:0;padding:0;font-size:18px;line-height:1.4;}
html body #stopwatchCard .timer-session-overview .timer-total .timer-current-segment[hidden]{display:none}
html body #stopwatchCard .timer-session-overview .timer-total strong{font-size:22px;line-height:1.4;font-weight:500}
@media(max-width:700px){html body #stopwatchCard .timer-breakdown.has-location-columns .timer-session-overview{grid-template-columns:minmax(0,1fr);gap:10px}html body #stopwatchCard .timer-breakdown.has-location-columns :is(.timer-summary-main,.timer-summary-distance){padding:0}}

/* Keep location controls together beneath the recording toggle. */
html body #stopwatchCard .location-settings-actions{justify-content:center;gap:10px;margin:12px auto 0;}
html body #stopwatchCard .location-settings-actions button{flex:1 1 0;min-width:0;margin:0;padding:8px 12px;}
html body #stopwatchCard .location-recording-settings > .location-units{justify-content:center;margin:36px auto 0;padding:0;background:transparent;border:0;color:#c1c9d2}
html body #stopwatchCard .location-recording-settings > .location-units select{background:#343e49;color:#e0e5eb;border-color:#79838e}
html body #stopwatchCard .timer-session-tools:empty{display:none}

/* Draw attention to duration entry after an invalid countdown start. */
html body #timerCard .timer-duration-group{transition:background-color 900ms ease,border-color 900ms ease,box-shadow 900ms ease}
html body #timerCard.timer-duration-needed .timer-duration-group{background:#284d76;border-color:#a0ccff;box-shadow:0 0 16px #7cb4ff52,inset 0 0 8px #7cb4ff1a;}
@media(prefers-reduced-motion:reduce){html body #timerCard .timer-duration-group{transition:none}}

html body #stopwatchCard .timer-starting-point strong{display:flex;align-items:center;justify-content:center;height:18px}
html body #stopwatchCard .timer-starting-point strong svg{display:block;width:16px;height:16px;flex:none}

html body #stopwatchCard .location-settings-actions{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch}
html body #stopwatchCard .location-settings-actions button{box-sizing:border-box;width:100%;height:auto;min-height:44px;line-height:1.35;text-align:center;white-space:nowrap}

/* Shift the stopwatch's visual emphasis from Start to checkpoints. */
html body #stopwatchCard #stopwatchStart,html body #stopwatchCard #stopwatchCheckpoint{transition:box-shadow 800ms ease,background-color 800ms ease,border-color 800ms ease,color 800ms ease}
html body #stopwatchCard.stopwatch-awaiting-start #stopwatchStart{background:#245b64;border-color:#90e0e3;box-shadow:0 0 18px #70d3d66b,inset 0 0 7px #90e0e31f;color:#efffff}
html body #stopwatchCard.stopwatch-checkpoint-focus #stopwatchStart{box-shadow:none}
html body #stopwatchCard.stopwatch-checkpoint-focus #stopwatchCheckpoint:not(:disabled){background:#216b70;border-color:#8ce2da;color:#efffff;box-shadow:0 0 16px #65d4cb4d,inset 0 0 6px #8ce2da1a}
html body #stopwatchCard .stopwatch-finish{background:#182e49;border-color:#4f7099;color:#c4d8f1}
html body #stopwatchCard #stopwatchReset{background:#344b68;border-color:#748eac;color:#edf5ff}
html body #stopwatchCard .stopwatch-finish:not(:disabled):is(:hover,:focus-visible){background:#223f60;border-color:#7c9fca}
html body #stopwatchCard #stopwatchReset:is(:hover,:focus-visible){background:#415e80;border-color:#9ab6d6}
@media(prefers-reduced-motion:reduce){html body #stopwatchCard #stopwatchStart,html body #stopwatchCard #stopwatchCheckpoint{transition:none}}

html body #stopwatchCard .timer-session-overview .timer-total strong :is(.timer-duration-value.is-zero,.timer-duration-value.has-value,.timer-duration-field>small){color:#c5f1ff}

html body #stopwatchCard .location-enable .location-enable-icon{display:block;width:24px;height:24px;flex:none;margin:0 auto 4px;color:#b8e3ff}

html body #stopwatchCard .location-settings-actions{width:100%;max-width:360px}
html body #stopwatchCard .location-privacy[hidden]{display:none}

html body #stopwatchCard .location-recording-settings .location-enable{width:min(100%,420px);flex-direction:row;justify-content:space-between;gap:12px;text-align:left;font-size:18px;margin-bottom:12px}
html body #stopwatchCard .location-enable .location-switch-control{flex-shrink:0}

html body #stopwatchCard .location-enable :is(.location-switch-state,.location-auto-state){font-size:18px;font-weight:600;min-width:32px;color:#effaff}

html body #stopwatchCard :is(.location-simulate,.location-plot-toggle){display:block;width:min(100%,280px);min-height:44px;margin:12px auto;padding:10px 16px;border:1px solid #7eabc5;border-radius:10px;background:#254a65;color:#dcf2ff;font-size:15px;cursor:pointer}
html body #stopwatchCard .location-simulate[aria-pressed="true"]{background:#325c78;border-color:#b0dbed}
html body #stopwatchCard .location-demo-note{max-width:500px;margin:12px auto;color:#f3d58a;text-align:center;line-height:1.5}
html body #stopwatchCard .location-point-plot{box-sizing:border-box;max-width:640px;margin:12px auto;border-radius:12px;color:#bfdceb;}
html body #stopwatchCard .location-point-plot svg{display:block;width:100%;height:auto;max-height:none;aspect-ratio:640/380}
html body #stopwatchCard .location-point-plot p{font-size:14px;line-height:1.5;text-align:center;margin:8px 0}
html body #stopwatchCard :is(.location-point-plot,.location-demo-note)[hidden]{display:none}
html body #stopwatchCard .location-enable:has(input:disabled){opacity:.65;cursor:default}

html body #stopwatchCard .location-recording-modes{box-sizing:border-box;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:min(100%,420px);margin:0 auto 8px;padding:0;border:0;min-width:0}
html body #stopwatchCard .location-recording-modes legend{width:100%;padding:0;margin:0 0 8px;}
html body #stopwatchCard .location-mode-choice{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:96px;padding:12px 8px;border:1px solid #4d718b;border-radius:10px;font-size:15px;font-weight:500;line-height:1.35;text-align:center;cursor:pointer;}


html body #stopwatchCard .location-mode-choice input{appearance:auto;-webkit-appearance:radio;width:20px;height:20px;min-height:0;margin:0;padding:0;cursor:pointer;}
html body #stopwatchCard .location-mode-choice input:focus-visible{outline:2px solid #a0dcff;outline-offset:4px}
html body #stopwatchCard .location-mode-choice:has(input:disabled){opacity:.65;cursor:default}

html body #stopwatchCard .location-recording-settings > .location-status{margin:0 auto 0;height:2.2em;min-height:2.2em}

html body #stopwatchCard .location-expanded-panel{display:grid;grid-template-rows:0fr;opacity:0;width:100%;box-sizing:border-box;margin:0 auto;border:1px solid transparent;border-radius:14px;background:transparent;transition:grid-template-rows 700ms ease,opacity 500ms ease,margin 700ms ease,border-color 500ms ease,background-color 500ms ease}
html body #stopwatchCard .location-expanded-panel[data-expanded="true"]{grid-template-rows:1fr;opacity:1;margin:16px auto 0;border-color:#466f89;background:#152f43}
html body #stopwatchCard .location-expanded-clip{min-height:0;overflow:hidden}
html body #stopwatchCard .location-expanded-content{padding:20px 16px}

html body #stopwatchCard .location-expanded-content > .location-units{justify-content:center;margin:36px auto 0;padding:0;background:transparent;border:0;color:#c1c9d2}
html body #stopwatchCard .location-expanded-content > .location-units select{background:#343e49;color:#e0e5eb;border-color:#79838e}
@media(prefers-reduced-motion:reduce){html body #stopwatchCard .location-expanded-panel{transition:none}}

html body #stopwatchCard .timer-breakdown :is(th,td):first-child{width:138px}
html body #stopwatchCard .timer-breakdown.has-location-columns th:nth-child(1){width:138px}

html body #stopwatchCard .timer-breakdown .timer-checkpoint-name>.timer-name,html body #stopwatchCard .timer-breakdown .timer-start-label{width:132px;flex-basis:132px;max-width:100%;height:36px;padding:7px 4px;line-height:20px;white-space:nowrap;text-align:center}

html body #stopwatchCard .location-recording-group{box-sizing:border-box;}
html body #stopwatchCard .location-recording-group>.location-enable{margin:16px auto;padding:12px 16px;border:1px solid #526e85;border-radius:12px;background:#192f42;box-shadow:none;}
html body #stopwatchCard .location-recording-group>.location-enable:has(input:checked){border-color:#c2f7ff;}

html body #stopwatchCard .location-recording-group .location-expanded-panel{width:100%;margin:0;border:0;border-radius:0;background:transparent}
html body #stopwatchCard .location-recording-group .location-expanded-content{padding-top:0}

html body #stopwatchCard .location-recording-group>.location-enable>span:first-child{flex:1;min-width:0;text-align:center}

/* Both table modes use the same two-line header height and padding. */
html body #stopwatchCard .timer-breakdown:is(.has-location-columns,:not(.has-location-columns)) thead th{box-sizing:border-box;padding-block:10px;height:66px;line-height:1.3;}

/* Clear, two-line logging label in both toggle states. */
html body #stopwatchCard .location-enable .location-enable-title{font-weight:600;line-height:1.35;color:#fff;-webkit-text-fill-color:#fff;}
html body #stopwatchCard .location-enable .location-enable-title>span{display:block;white-space:nowrap;color:inherit;font:inherit;}
html body #stopwatchCard .location-enable .location-switch-control .location-switch-state{color:#fff;-webkit-text-fill-color:#fff;}
@media(max-width:480px){html body #stopwatchCard .location-enable .location-switch-control{flex-direction:column;gap:2px}html body #stopwatchCard .location-recording-group>.location-enable{padding-inline:10px;gap:8px}}

/* Logging state colors; permission/loading/error messages remain yellow. */
html body #stopwatchCard .location-status{color:#8fc8ff;-webkit-text-fill-color:#8fc8ff}

html body #stopwatchCard .location-total .location-total-value.logging-disabled-note{font-size:inherit;font-weight:400;line-height:1.4}

html body #stopwatchCard .location-tools-panel{box-sizing:border-box;width:min(100%,560px);margin:0 auto;border-radius:14px;}
html body #stopwatchCard .location-tools-panel>.location-units{justify-content:center;flex-wrap:wrap;width:100%;margin:0 auto;text-align:center;}

/* Separate time and location tables, each with its own narrow-screen scrolling. */

html body #stopwatchCard .timer-breakdown .timer-session-scroll{width:100%;overflow-x:auto}
html body #stopwatchCard .timer-breakdown.has-location-columns table{min-width:500px;width:100%}
html body #stopwatchCard .timer-breakdown.has-location-columns th{width:auto!important;min-width:0!important;max-width:none!important}
html body #stopwatchCard .timer-breakdown.has-location-columns th:first-child{width:130px!important}
html body #stopwatchCard .timer-breakdown.has-location-columns th:nth-child(4){width:72px!important}
html body #stopwatchCard .timer-session-overview{display:block!important;margin-bottom:14px}
html body #stopwatchCard .timer-session-overview .timer-summary-main{width:100%;padding:0!important}
html body #stopwatchCard .timer-distance-section{box-sizing:border-box;min-width:0;margin-top:24px;padding:0;border:0;border-radius:0;background:transparent}
html body #stopwatchCard .timer-distance-section h4{text-align:center;font-size:22px;font-weight:650;line-height:1.3;margin:0 0 12px;}
html body #stopwatchCard .timer-distance-section .timer-summary-distance{width:100%;padding:0;margin:0 0 14px}
html body #stopwatchCard .timer-distance-section .location-total{margin:0 auto;width:min(100%,300px);padding:10px 14px;background:#0b202b;border-color:#365867;font-size:17px}
html body #stopwatchCard .timer-distance-section .location-total strong{display:block;font-size:24px;font-weight:500;line-height:1.3}

html body #stopwatchCard .timer-breakdown .timer-distance-scroll th:nth-child(4){width:auto!important}
html body #stopwatchCard .timer-breakdown .timer-distance-scroll th:last-child{width:auto!important}
html body #stopwatchCard .timer-breakdown .timer-distance-scroll td{padding-inline:3px}

html body #stopwatchCard .timer-breakdown .session-summary-icon{display:block;width:26px;height:26px;margin:0 auto 9px;color:#91d3f4;flex:none}

html body #stopwatchCard .location-enable-title .location-enable-pin{display:block;width:26px;height:26px;margin:0 auto 7px;color:#c4eaff}

/* Compact numeric columns leave more room for checkpoint names and places. */
html body #stopwatchCard .timer-breakdown .timer-distance-scroll th:first-child{width:145px!important}
html body #stopwatchCard .timer-breakdown .timer-distance-scroll th:nth-child(2){width:140px!important}
html body #stopwatchCard .timer-breakdown .timer-distance-scroll th:nth-child(3){width:130px!important}
html body #stopwatchCard .timer-breakdown .timer-distance-scroll .timer-start-label{width:137px}
html body #stopwatchCard .timer-breakdown .timer-session-overview .timer-summary-main{width:min(100%,480px);margin-inline:auto}
html body #stopwatchCard .timer-breakdown .timer-session-overview .timer-total{min-height:0;padding:10px 14px;background:#0b1d2c;border-color:#355269}

html body #stopwatchCard .location-recording-group>.location-enable{width:min(100%,420px);flex-direction:column;align-items:center;gap:10px;}

html body #stopwatchCard .location-enable .location-switch-control{flex-direction:row;justify-content:center;gap:8px;}

/* Matching event colors in checkpoint cards and both session tables. */
html body #stopwatchCard [data-point-kind="start"]{--point-bg:#193e46;--point-border:#568f9a;--point-text:#c7f1ee}
html body #stopwatchCard [data-point-kind="checkpoint"]{--point-bg:#1a3d59;--point-border:#568cb3;--point-text:#d1ecff}
html body #stopwatchCard [data-point-kind="end"]{--point-bg:#303a53;--point-border:#7b8ba9;--point-text:#e0e7f5}
html body #stopwatchCard :is(.timer-checkpoint-card,.timer-breakdown .timer-checkpoint-name>.timer-name,.timer-breakdown .timer-start-label)[data-point-kind]{background:var(--point-bg);border:1px solid var(--point-border);color:var(--point-text)}
html body #stopwatchCard .timer-checkpoint-card[data-point-kind] :is(span,strong){color:var(--point-text)}

/* Align elapsed summaries as two compact label/value rows. */
html body #stopwatchCard .timer-session-overview .timer-total :is(.timer-total-row,.timer-current-segment){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:14px;align-items:center;white-space:normal;text-align:left;color:var(--summary-row-color);}
html body #stopwatchCard .timer-total-row{--summary-row-color:#bce7ff}
html body #stopwatchCard .timer-current-segment{--summary-row-color:#85afd2}
html body #stopwatchCard .timer-session-overview .timer-total :is(.timer-total-row,.timer-current-segment)>strong{text-align:right;justify-self:end;white-space:nowrap;color:var(--summary-row-color);}
html body #stopwatchCard .timer-session-overview .timer-total :is(.timer-total-row,.timer-current-segment) strong :is(.timer-duration-value,.timer-duration-field>small){color:var(--summary-row-color);}
@media(max-width:480px){html body #stopwatchCard .timer-session-overview .timer-total{padding:9px 8px}html body #stopwatchCard .timer-session-overview .timer-total :is(.timer-total-row,.timer-current-segment){font-size:clamp(11px,3vw,14px);column-gap:6px}html body #stopwatchCard .timer-session-overview .timer-total strong{font-size:clamp(14px,3.8vw,18px)}}

html body #stopwatchCard .timer-breakdown .timer-distance-scroll th:nth-child(5){width:110px!important}
html body #stopwatchCard .timer-breakdown{width:min(100%,800px);max-width:800px}

html body #stopwatchCard .timer-breakdown.has-location-columns > .timer-session-scroll th:nth-child(4){width:100px!important}
html body #stopwatchCard .timer-breakdown.has-location-columns > .timer-session-scroll th:nth-child(5){width:110px!important}

/* Compact mobile summaries; only the outer table wrapper scrolls. */
@media(max-width:600px){
html body #stopwatchCard .timer-breakdown.has-location-columns > .timer-session-scroll table{min-width:370px;table-layout:fixed}
html body #stopwatchCard .timer-breakdown .timer-distance-scroll table{min-width:472px;table-layout:fixed}
html body #stopwatchCard .timer-breakdown .timer-session-scroll :is(th,td){padding:6px 4px;font-size:14px}
html body #stopwatchCard .timer-breakdown .timer-session-scroll thead th{font-size:0!important;height:46px!important}
html body #stopwatchCard .timer-breakdown .timer-session-scroll th::after{font-size:13px;line-height:1.25;white-space:pre;display:block}
html body #stopwatchCard .timer-breakdown .timer-session-scroll th:first-child::after{content:'Check-\A point'}
html body #stopwatchCard .timer-breakdown.has-location-columns > .timer-session-scroll th:nth-child(2)::after{content:'Elapsed'}
html body #stopwatchCard .timer-breakdown.has-location-columns > .timer-session-scroll th:nth-child(3)::after{content:'Duration'}
html body #stopwatchCard .timer-breakdown.has-location-columns > .timer-session-scroll th:nth-child(4)::after{content:'% of\A Total'}
html body #stopwatchCard .timer-breakdown.has-location-columns > .timer-session-scroll th:nth-child(5)::after{content:'Time'}
html body #stopwatchCard .timer-breakdown .timer-distance-scroll th:nth-child(2)::after{content:'Dist. since\A last pt.'}
html body #stopwatchCard .timer-breakdown .timer-distance-scroll th:nth-child(3)::after{content:'Cumul.\A dist.'}
html body #stopwatchCard .timer-breakdown .timer-distance-scroll th:nth-child(4)::after{content:'Location'}
html body #stopwatchCard .timer-breakdown .timer-distance-scroll th:nth-child(5)::after{content:'Elapsed'}
html body #stopwatchCard .timer-breakdown .timer-session-scroll th:first-child{width:64px!important}
html body #stopwatchCard .timer-breakdown.has-location-columns > .timer-session-scroll th:nth-child(2),html body #stopwatchCard .timer-breakdown.has-location-columns > .timer-session-scroll th:nth-child(3){width:96px!important}
html body #stopwatchCard .timer-breakdown.has-location-columns > .timer-session-scroll th:nth-child(4){width:42px!important}
html body #stopwatchCard .timer-breakdown.has-location-columns > .timer-session-scroll th:nth-child(5){width:92px!important}
html body #stopwatchCard .timer-breakdown .timer-distance-scroll th:nth-child(2),html body #stopwatchCard .timer-breakdown .timer-distance-scroll th:nth-child(3){width:76px!important}
html body #stopwatchCard .timer-breakdown .timer-distance-scroll th:nth-child(4){width:160px!important}
html body #stopwatchCard .timer-breakdown .timer-distance-scroll th:nth-child(5){width:96px!important}
html body #stopwatchCard .timer-breakdown .timer-session-scroll :is(.timer-start-label,.timer-checkpoint-name>.timer-name){width:56px;max-width:100%;min-width:0;padding:6px 2px;font-size:14px}
html body #stopwatchCard .timer-breakdown .timer-start-label[data-mobile-label]{font-size:0!important}
html body #stopwatchCard .timer-breakdown .timer-start-label[data-mobile-label]::after{content:attr(data-mobile-label);font-size:14px}
html body #stopwatchCard .timer-checkpoint-name{position:relative}
html body #stopwatchCard .timer-checkpoint-name:not(:focus-within)>.timer-name{color:transparent!important;-webkit-text-fill-color:transparent!important}
html body #stopwatchCard .timer-checkpoint-name:not(:focus-within)::after{content:attr(data-mobile-label);position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;font-size:14px;color:var(--point-text,#d1ecff)}
html body #stopwatchCard .timer-breakdown .timer-session-scroll td.timer-session-distance{min-width:0;white-space:nowrap}
}

/* Checkpoint cells read as plain labels, without individual bubbles. */
html body #stopwatchCard .timer-breakdown .timer-session-scroll :is(.timer-start-label,.timer-checkpoint-name>.timer-name){background:transparent!important;border-color:transparent!important;border-radius:0;box-shadow:none!important;}

/* Keep setup available before Start without an empty session-summary card. */
.page-time .timer-breakdown.is-awaiting-session{background:transparent;border-color:transparent;padding:0;box-shadow:none;}
html body #stopwatchCard .timer-breakdown > [hidden],
.page-time .timer-distance-section[hidden],
.page-time .location-tools-panel[hidden]{display:none!important;}
.page-time .location-expanded-panel .timer-distance-section{width:100%;min-width:0;margin:20px 0;}

/* Mini points have one surface each, without a surrounding second box. */
html body #stopwatchCard .timer-checkpoint-panel{background:transparent;border:0;box-shadow:none;padding:0;}
html body #stopwatchCard .timer-starting-point[data-point-kind="start"]{--point-bg:#19334b;--point-border:#527b9c;--point-text:#c4e3fa;align-content:center;}

/* Location controls share the card surface instead of nested containers. */
html body #stopwatchCard .location-recording-group>.location-enable,
html body #stopwatchCard .location-recording-group>.location-enable:has(input:checked){background:transparent;border:0;box-shadow:none;margin:0 auto 8px;padding:4px 10px;}
html body #stopwatchCard .location-tools-panel{background:#0d2233;border:1px solid #a397d8;box-shadow:none;padding:20px clamp(12px,3vw,22px);}
html body #stopwatchCard .location-tools-panel>.location-tools-title{margin:0 0 18px;text-align:center;font-size:20px;line-height:1.3;color:#a9dcff;}
html body #stopwatchCard .timer-breakdown .stopwatch-location{margin-top:8px;}
html body #stopwatchCard .location-panel{margin-top:0;}
html body #stopwatchCard .timer-breakdown .location-recording-settings{padding-top:0;}

/* One shared container for the logging switch, modes, and status. */

html body #stopwatchCard .location-recording-settings>.location-tools-panel{margin-top:28px;}

/* End the logging panel directly after its status line. */
html body #stopwatchCard .location-recording-group .location-expanded-content{padding-bottom:0;}
html body #stopwatchCard .location-expanded-content > .location-status{height:auto;min-height:1.25em;margin-bottom:0;}

/* Separate countdown controls from duration entry. */
html body #timerCard .timer-actions{margin-bottom:26px;}

/* Compact two-line starting-point mini box. */
html body #stopwatchCard .timer-checkpoint-card.timer-starting-point{width:68px;}
html body #stopwatchCard .timer-starting-point>span{max-width:52px;margin-inline:auto;white-space:normal;}

/* Distance is a single-line companion to the main stopwatch display. */
html body #stopwatchCard .location-total.stopwatch-display-distance{display:flex;flex-direction:row;align-items:baseline;justify-content:center;gap:12px;width:fit-content;max-width:100%;min-height:0;position:relative;z-index:0;margin:-6px auto 12px;padding:14px 24px 9px;background:#0b1d2c;border:1px solid #a397d8;border-top:0;border-radius:0 0 12px 12px;color:#fff;line-height:1.25;white-space:nowrap;font-size:21px;}
html body #stopwatchCard .stopwatch-display-distance .location-total-value{font-size:28px;color:#cbb8ff;}
html body #stopwatchCard .stopwatch-display-distance .logging-disabled-note{font-size:12px;}
@media(max-width:480px){html body #stopwatchCard .location-total.stopwatch-display-distance{gap:8px;padding:14px 18px 9px;font-size:19px}html body #stopwatchCard .stopwatch-display-distance .logging-disabled-note{font-size:10px}}

/* Logging choices sit directly below the checkpoint mini boxes. */
html body #stopwatchCard .location-recording-group{margin:28px auto 20px;}
html body #stopwatchCard .location-recording-group > .location-enable{font-size:18px;}

html body #stopwatchCard .timer-distance-scroll .timer-trip-milestone td{background:#1e2e3d;color:#d0cedd;}

/* Single-row master switch with optional recording choices beneath it. */
html body #stopwatchCard .location-recording-group{width:min(100%,520px);padding:0;border:1px solid #a397d8;border-radius:12px;background:#172d3e;overflow:hidden;transition:background-color .25s,border-color .25s;}
html body #stopwatchCard .location-recording-group:has(.location-enable input:checked){background:#293d55;border-color:#c0b2ff;box-shadow:inset 0 0 0 1px #c0b2ff,0 0 14px #a89be630;}
html body #stopwatchCard .location-recording-group > .location-enable,html body #stopwatchCard .location-recording-group > .location-enable:has(input:checked){display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;width:min(100%,520px);padding:12px 14px;margin:0 auto;border:0;border-radius:0;background:transparent;}
html body #stopwatchCard .location-recording-group > .location-enable:has(input:checked){background:transparent;border:0;box-shadow:none;}
html body #stopwatchCard .location-enable .location-enable-title{font-size:clamp(11px,3.2vw,18px);white-space:nowrap;text-align:center;}
html body #stopwatchCard .location-expanded-content > .location-status{margin:2px auto 14px;}
html body #stopwatchCard .location-expanded-panel[hidden],html body #stopwatchCard .stopwatch-display-distance[hidden],html body #stopwatchCard .stopwatch-summary-prompt[hidden]{display:none!important;}
html body #stopwatchCard .stopwatch-summary-prompt{margin:5px auto 14px;text-align:center;color:#bce8ff;font-size:16px;}
html body #stopwatchCard #stopwatchReset.timer-reset-ready{background:#315f91!important;border-color:#9acaff!important;color:#f0f8ff!important;box-shadow:0 0 0 1px #9acaff55,0 0 18px 4px #68aaff55!important;animation:none!important;}
@keyframes stopwatch-reset-glow{to{filter:brightness(1.25)}}
@media(prefers-reduced-motion:reduce){html body #stopwatchCard #stopwatchReset.timer-reset-ready{animation:none;}}
@media(max-width:480px){html body #stopwatchCard .location-recording-group > .location-enable{padding:10px 8px;gap:6px;}html body #stopwatchCard .location-enable .location-switch-control{gap:4px;}html body #stopwatchCard .location-enable .location-switch-state{font-size:14px;min-width:22px;}html body #stopwatchCard .location-recording-group .location-enable input{width:44px;height:26px;min-height:26px;}html body #stopwatchCard .location-recording-group .location-enable input::before{width:18px;height:18px;}html body #stopwatchCard .location-recording-group .location-enable input:checked::before{left:21px;}}

html body #stopwatchCard #stopwatchCheckpoint[hidden],html body #stopwatchCard #stopwatchCheckpointPanel[hidden]{display:none!important;}
html body #stopwatchCard .timer-checkpoint-action > .stopwatch-summary-prompt{margin:0 auto 12px;}

html body #stopwatchCard .timer-time-total th{background:#192b3a!important;color:#d9e2ed!important;font-size:17px!important;font-weight:400;white-space:normal;}
html body #stopwatchCard .timer-time-total th::after{display:none!important;}
html body #stopwatchCard .timer-time-total strong{font-size:inherit;font-weight:400;}

html body #stopwatchCard .location-enable .location-enable-title{min-width:0;flex:none;}
html body #stopwatchCard .location-enable .location-enable-hint{display:block;margin-top:5px;max-width:340px;white-space:normal;font-size:12px;font-weight:400;line-height:1.4;color:#bed3e4;-webkit-text-fill-color:#bed3e4;}

/* Aqua identifies checkpoint timing; violet identifies location data. */
html body #stopwatchCard .timer-breakdown>.timer-session-scroll{border-color:#6088aa;}
html body #stopwatchCard .timer-breakdown>.timer-session-scroll :is(th,td){border-color:#344e65;}
html body #stopwatchCard .timer-distance-scroll{border-color:#a397d8;}
html body #stopwatchCard .timer-distance-scroll :is(th,td){border-color:#50516e;}
html body #stopwatchCard .timer-distance-scroll td:has(a):hover{background:#4a4969;}

html body #stopwatchCard .location-recording-group .location-enable:has(input:checked){box-shadow:none;}

html body #stopwatchCard .timer-breakdown>h3{color:#9ccfff;-webkit-text-fill-color:#9ccfff;}
html body #stopwatchCard .timer-distance-section h4{color:#d0c6ff;-webkit-text-fill-color:#d0c6ff;}

/* Keep table time values and their units clear, including zero values. */
html body #stopwatchCard .timer-session-scroll :is(.timer-duration-readout,.timer-clock-line){font-size:18px;font-weight:500;color:#e4f5ff;}
html body #stopwatchCard .timer-session-scroll :is(.timer-duration-value.is-zero,.timer-duration-value.has-value,.timer-duration-field>small){color:#e4f5ff;}
html body #stopwatchCard .timer-session-scroll .timer-duration-field>small{font-size:.88em;}
@media(max-width:480px){html body #stopwatchCard .timer-session-scroll :is(.timer-duration-readout,.timer-clock-line){font-size:15px;}}

html body #stopwatchCard .stopwatch-display-title,html body #timerCard .countdown-display-title{grid-column:1/-1;justify-self:center;white-space:nowrap;font-size:17px;font-weight:500;line-height:1.3;color:#b9d9ef;letter-spacing:0;}

@media(max-width:480px){html body #stopwatchCard .timer-time-total th{font-size:14px!important;}}

html body #stopwatchCard .timer-checkpoint-action>.timer-session-overview{width:min(100%,480px);}
html body #stopwatchCard .timer-checkpoint-action>.timer-session-overview[hidden]{display:none!important;}
html body #stopwatchCard .timer-checkpoint-action .timer-total{min-height:0;margin:0;box-shadow:none;}

html body #stopwatchCard .timer-breakdown>.timer-session-scroll .timer-time-total>:is(th,td){border-top:1px solid #344e65;}

html body #stopwatchCard .location-recording-group .location-expanded-content{padding:0 14px 18px;}

/* Separate the running clock controls from checkpoint controls. */
html body #stopwatchCard .stopwatch-main-controls,html body #stopwatchCard .timer-checkpoint-action{box-sizing:border-box;width:min(100%,560px);padding:18px 14px;border:1px solid #3e6178;border-radius:16px;background:#102b3c;}
html body #stopwatchCard .stopwatch-main-controls{margin:20px auto 0;}
html body #stopwatchCard .stopwatch-main-controls .timer-display{margin-top:0;}
html body #stopwatchCard .stopwatch-main-controls .timer-actions{margin-bottom:0;}
html body #stopwatchCard .timer-checkpoint-action{margin:10px auto 0;}

@media(max-width:480px){html body #stopwatchCard .stopwatch-main-controls,html body #stopwatchCard .timer-checkpoint-action{padding:16px 8px;}html body #stopwatchCard .stopwatch-main-controls .timer-actions{gap:12px;}}

/* Two separate sections: checkpoint controls and timing, then location controls and data. */
html body #stopwatchCard .stopwatch-location-section{margin-top:22px;padding-block:14px;}

html body #stopwatchCard .stopwatch-location-section:not(:has(.location-enable input:checked))>.location-recording-group{margin-bottom:0;}
html body #stopwatchCard .stopwatch-location-section .timer-distance-section{margin-top:30px;}
html body #stopwatchCard .stopwatch-location-section .location-tools-panel{width:min(100%,560px);}

html body #stopwatchCard .timer-session-overview .timer-total .timer-current-segment{grid-template-columns:auto auto;justify-content:center;column-gap:10px;}

html body #stopwatchCard .stopwatch-location-section:not(:has(.location-enable input:checked))>.stopwatch-location{display:block;}

html body #stopwatchCard #stopwatchBreakdown{margin-top:18px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;}

html body #stopwatchCard .timer-checkpoint-action:has(.timer-session-overview:not([hidden])){padding-bottom:10px;}

html body #stopwatchCard .location-simulation-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:min(100%,360px);margin:12px auto 0;}
html body #stopwatchCard .location-simulation-buttons .location-simulate{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:100%;min-width:0;min-height:66px;height:100%;margin:0;padding:10px 8px;white-space:normal;}

html body #stopwatchCard .stopwatch-main-controls:has(.stopwatch-display-distance:not([hidden])) .timer-display{position:relative;z-index:1;margin-bottom:0;}

html body #stopwatchCard .location-recording-modes legend{text-align:center;font-size:16px;margin-bottom:10px;}

html body #stopwatchCard .location-tools-panel button{background-image:none!important;}




html body #stopwatchCard .timer-checkpoint-action>.stopwatch-summary-prompt{flex-direction:column;margin:0;font-size:18px;}
html body #stopwatchCard .stopwatch-summary-prompt svg{width:30px;height:30px;color:#9ad9ed;}

html body #stopwatchCard .location-settings-actions .location-clear{width:min(100%,280px);justify-self:center;}
html body #stopwatchCard .location-settings-actions .location-permission-settings{white-space:normal;}

html body #stopwatchCard .stopwatch-subtitle,html body #timerCard .countdown-subtitle{width:min(100%,440px);margin:0 auto 12px;text-align:center;text-wrap:balance;font-size:16px;font-weight:500;line-height:1.4;color:#b8cce3;}

html body :is(#timerCard,#stopwatchCard) .timer-display{grid-template-columns:repeat(var(--time-visible-units,1),minmax(0,1.86em));}
html body :is(#timerCard,#stopwatchCard) .timer-display>span[hidden]{display:none!important;}
html body :is(#timerCard,#stopwatchCard) .timer-display>span>:is(span,small){color:#d8f3ff!important;-webkit-text-fill-color:#d8f3ff!important;}
html body :is(#timerCard,#stopwatchCard) .timer-duration-field>:is(span,small){color:inherit!important;-webkit-text-fill-color:inherit!important;}

html body :is(#timerCard,#stopwatchCard) .timer-display>span>:is(.timer-value-zero,.timer-value-active,small){color:#d8f3ff!important;-webkit-text-fill-color:#d8f3ff!important;}

html body #stopwatchCard .stopwatch-location-section[hidden]{display:none!important;}
html body #stopwatchCard .location-options-toggle{margin:22px auto 0;padding:13px 20px;border:1px solid #a397d8;border-radius:12px;background:#302b3e;color:#e1d9ff;font:inherit;cursor:pointer;max-width:100%;}
html body #stopwatchCard .location-options-toggle:hover{background:#3c3550;border-color:#c0b2ff;}

/* Countdown alert settings share the muted purple controls palette. */
html body #timerCard #timerAlertPanel{background:#211f30;border-color:#a397d8;color:#e2dbea;}
html body #timerCard #timerAlertPanel .timer-alert-group{background:#191d2c;border-color:#73688f;}
html body #timerCard #timerAlertPanel :is(h3,.timer-activity-field){color:#d6c7f3;}
html body #timerCard #timerAlertPanel :is(select,input[type="text"],button){background:#302b3e!important;background-image:none!important;border-color:#a397d8!important;color:#eee9f7!important;}
html body #timerCard #timerAlertPanel button:is(:hover,:focus-visible):not(:disabled){background:#40374f!important;border-color:#c6b6ff!important;color:#fff!important;}
html body #timerCard #timerAlertPanel .timer-alert-option{color:#bdb1ce;}
html body #timerCard #timerAlertPanel .timer-alert-option:has(input:checked){color:#f0e5ff;}
html body #timerCard #timerAlertPanel input[type="checkbox"]{accent-color:#aa91d3;}
html body #timerCard #timerAlertPanel :is(.timer-alert-fields label,.timer-alert-select,.timer-note){color:#beb2cf;}
html body #timerCard #timerAlertPanel :is(.timer-visual-mini-clock,.timer-end-alert){background:#292539;border-color:#a397d8;color:#ddcaff;}
html body #timerCard .timer-alert-icon{color:#c2aceb;}

html body #stopwatchCard .location-options-toggle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;}
html body #stopwatchCard .location-options-toggle>svg{width:26px;height:26px;flex:none;color:#c8b5ef;}


/* Session Summary: emphasize percentages while slightly reducing time values. */
html body #stopwatchCard #stopwatchBreakdown .timer-session-scroll :is(.timer-duration-readout,.timer-clock-line){font-size:16px;}
html body #stopwatchCard #stopwatchBreakdown .timer-session-scroll tbody td:nth-child(4){font-size:18px;}
@media(max-width:480px){html body #stopwatchCard #stopwatchBreakdown .timer-session-scroll :is(.timer-duration-readout,.timer-clock-line){font-size:14px;}html body #stopwatchCard #stopwatchBreakdown .timer-session-scroll tbody td:nth-child(4){font-size:15px;}}

@media(max-width:600px){
html body #stopwatchCard #stopwatchBreakdown>.timer-session-scroll th:first-child::after{content:'Check\A point';}
html body #stopwatchCard #stopwatchBreakdown>.timer-session-scroll th:first-child{width:54px!important;}
html body #stopwatchCard #stopwatchBreakdown>.timer-session-scroll :is(.timer-start-label,.timer-checkpoint-name>.timer-name){width:46px;}
html body #stopwatchCard #stopwatchBreakdown .timer-session-scroll :is(.timer-duration-readout,.timer-clock-line){font-size:13px;}
html body #stopwatchCard #stopwatchBreakdown .timer-session-scroll tbody td:nth-child(4){font-size:13px;}
html body #stopwatchCard #stopwatchBreakdown>.timer-session-scroll th:nth-child(4)::after{font-size:12px;}
}
@media(min-width:601px){html body #stopwatchCard #stopwatchBreakdown>.timer-session-scroll th:nth-child(4){width:112px!important;}}

html body #stopwatchCard .location-options-status{margin:8px auto 0;text-align:center;font-size:15px;line-height:1.4;color:#b9cfee;}
html body #stopwatchCard .location-options-status[hidden]{display:none!important;}

html body #stopwatchCard .stopwatch-summary-prompt{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:center;justify-items:center;width:100%;}
html body #stopwatchCard .stopwatch-summary-prompt[hidden]{display:none!important;}
html body #stopwatchCard .stopwatch-summary-prompt>button{width:100%;min-height:58px;border:1px solid #638aac;border-radius:12px;background:#19364f;color:#dcefff;font:inherit;font-size:16px;cursor:pointer;}
html body #stopwatchCard .stopwatch-summary-prompt>.stopwatch-distance-summary-link{background:#302b3e;border-color:#a397d8;color:#e1d9ff;}
html body #stopwatchCard .stopwatch-summary-prompt>svg{grid-column:1/-1;}
html body #stopwatchCard :is(#stopwatchBreakdown,.timer-distance-section){scroll-margin-top:110px;}
html body #stopwatchCard #stopwatchBreakdown .timer-session-tools{display:flex;flex-direction:column;gap:10px;width:100%;}
html body #stopwatchCard .timer-segment-explanation{font-size:13px;color:#aac3d8;margin:10px 0 0;text-align:center;}
html body #stopwatchCard #stopwatchExport{padding:10px 16px;border:1px solid #638aac;border-radius:10px;background:#19364f;color:#dcefff;font:inherit;cursor:pointer;}
@media(max-width:600px){html body #stopwatchCard #stopwatchBreakdown>.timer-session-scroll th:nth-child(3)::after{content:'Segment\A Time';}html body #stopwatchCard #stopwatchBreakdown>.timer-session-scroll th:nth-child(5)::after{content:'Clock\A Time';}}

html body #stopwatchCard .stopwatch-display-title,html body #timerCard .countdown-display-title{display:block;text-align:center;margin:0 auto 8px;}
html body #timerCard .countdown-display-title{margin-top:18px;}
html body :is(#timerCard,#stopwatchCard) :is(.stopwatch-display-title,.countdown-display-title)+.timer-display{margin-top:0;}

html body #stopwatchCard #stopwatchBreakdown>.timer-session-footer{display:flex;justify-content:center;width:100%;margin:14px auto 0;}
html body #stopwatchCard #stopwatchBreakdown .timer-session-tools{margin:0 auto;justify-content:center;align-items:center;}
html body #stopwatchCard #stopwatchExport{display:block;margin:0 auto;}

html body #stopwatchCard>#stopwatchExport{display:block;margin:18px auto 0;padding:10px 16px;border:1px solid #638aac;border-radius:10px;background:#19364f;color:#dcefff;font:inherit;cursor:pointer;}

html body #stopwatchCard .stopwatch-main-controls .timer-actions{display:grid;grid-template-columns:repeat(2,minmax(0,140px));justify-content:center;gap:14px 24px;}
html body #stopwatchCard .stopwatch-main-controls .timer-actions>button{width:100%;max-width:100%;}
html body #stopwatchCard .stopwatch-main-controls .timer-actions>#stopwatchStart{grid-column:1/-1;justify-self:center;width:140px;}
@media(max-width:480px){html body #stopwatchCard .stopwatch-main-controls .timer-actions{gap:12px;}}

html body #stopwatchCard .stopwatch-location-section>.location-recording-group{margin:0 auto 12px!important;}
html body #stopwatchCard .stopwatch-location-section>.location-expanded-panel{width:min(100%,520px);margin:0 auto;background:transparent;border:0;}
html body #stopwatchCard .stopwatch-location-section>.location-expanded-panel .location-expanded-content{padding:0 8px 8px;}

html body #stopwatchCard .stopwatch-main-controls>.timer-actions+.timer-state{margin:20px 0 0;}

html body #stopwatchCard .timer-checkpoint-action>.stopwatch-summary-prompt{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:12px;width:100%;}
html body #stopwatchCard .stopwatch-summary-prompt>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;max-width:100%;padding:12px 6px;line-height:1.35;}
html body #stopwatchCard .stopwatch-summary-prompt>button>span{white-space:nowrap;}
html body #stopwatchCard .stopwatch-summary-prompt>button>svg{width:22px;height:22px;color:inherit;}
@media(max-width:480px){html body #stopwatchCard .stopwatch-summary-prompt>button{font-size:clamp(11px,3.2vw,15px);}}

html body #stopwatchCard .timer-display>.stopwatch-display-title,html body #timerCard .timer-display>.countdown-display-title{grid-column:1/-1;justify-self:center;display:block;white-space:nowrap;margin:0;text-align:center;}

html body #stopwatchCard .stopwatch-main-controls .timer-actions>#stopwatchStart{margin-top:8px;}

html body #stopwatchCard #stopwatchStart:disabled{background:#29313b!important;background-image:none!important;border-color:#515d6b!important;color:#b9c1ca!important;opacity:1;box-shadow:none!important;animation:none!important;cursor:default;}

html body #stopwatchCard :is(.location-options-toggle,.stopwatch-summary-prompt>.stopwatch-distance-summary-link){background:#3c3d58;border-color:#aaa9d3;color:#eeeaff;}
html body #stopwatchCard :is(.location-options-toggle,.stopwatch-summary-prompt>.stopwatch-distance-summary-link):hover{background:#484963;border-color:#c0bde8;}
html body #stopwatchCard .location-options-toggle{font-size:19px;}

html body #stopwatchCard .stopwatch-location-section>.location-recording-group{width:min(100%,380px);}

html body #stopwatchCard .location-expanded-content>.location-status{color:#9aafc5;-webkit-text-fill-color:#9aafc5;}

html body #stopwatchCard .location-expanded-content>.location-recording-modes+.location-status{margin:12px auto 4px;}

html body #stopwatchCard .stopwatch-summary-prompt>button[hidden]{display:none!important;}
html body #stopwatchCard .stopwatch-summary-prompt:has(>.stopwatch-distance-summary-link[hidden]){grid-template-columns:minmax(0,240px);justify-content:center;}

html body #stopwatchCard .location-options-pin{display:flex;justify-content:center;margin:38px auto 14px;color:#b8a6e0;}
html body #stopwatchCard .location-options-pin svg{display:block;width:30px;height:30px;}
html body #stopwatchCard .location-options-pin+.location-options-toggle{margin-top:0;}
html body #stopwatchCard>#stopwatchExport{margin-top:36px;font-size:14px;}

html body #timerCard #timerStatus{padding-bottom:8px;}

html body #stopwatchCard .timer-checkpoint-panel>.timer-checkpoint-card{flex:0 0 auto;width:auto;min-width:52px;padding:5px 7px;}
html body #stopwatchCard .timer-checkpoint-panel>.timer-checkpoint-card :is(span,strong){white-space:nowrap;}

html body #timerCard .timer-fields input{background:#102338!important;border-color:#6084ad;color:#deedff;-webkit-text-fill-color:#deedff;}
html body #timerCard .timer-presets button{background:#31547d!important;background-image:none!important;border-color:#7ba4d1;color:#e1efff;-webkit-text-fill-color:#e1efff;}
html body #timerCard .timer-presets button:hover{background:#3c6695!important;border-color:#a0c6ef;}
html body #timerCard .timer-presets button[aria-pressed="true"]{background:#3f72aa!important;border-color:#b5d8ff;color:#fff;-webkit-text-fill-color:#fff;}

html body #stopwatchCard .stopwatch-main-controls>.timer-checkpoint-action{width:100%;max-width:100%;margin:12px auto 0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;}
html body #stopwatchCard .stopwatch-main-controls .timer-checkpoint-action>#stopwatchCheckpoint{padding:14px 22px;}
html body #stopwatchCard .stopwatch-main-controls>.timer-state{min-height:28px;margin:20px 0 0;}

@media(max-width:480px){html body #stopwatchCard .timer-session-overview .timer-total .timer-current-segment{font-size:clamp(12px,3.3vw,15px);}html body #stopwatchCard .timer-session-overview .timer-total .timer-current-segment>strong{font-size:clamp(15px,4vw,19px);}}

@media(max-width:480px){html body #stopwatchCard .timer-time-total .timer-total-elapsed-word{display:none;}}

html body #stopwatchCard .distance-total-short{display:none;}
@media(max-width:480px){html body #stopwatchCard .distance-total-full{display:none;}html body #stopwatchCard .distance-total-short{display:inline;}html body #stopwatchCard .timer-breakdown .timer-distance-scroll th:first-child::after{content:"Check\A point";}}

@media(max-width:480px){
html body #stopwatchCard>#stopwatchBreakdown,html body #stopwatchCard>.stopwatch-location-section{width:calc(100% + 16px);max-width:none;margin-left:-8px;margin-right:-8px;}
html body #stopwatchCard>.stopwatch-location-section{padding-left:4px;padding-right:4px;}
html body #stopwatchCard .timer-distance-section,html body #stopwatchCard .timer-breakdown .timer-session-scroll{width:100%;max-width:100%;margin-left:0;margin-right:0;}
}

html body #stopwatchCard .stopwatch-location-section>.location-recording-group{border:2px solid #65bdc6;background:#15343f;}
html body #stopwatchCard .stopwatch-location-section>.location-recording-group:has(.location-enable input:checked){background:#343650;border-color:#bcb2f1;box-shadow:0 0 12px #b6a1f433;}
html body #stopwatchCard .location-recording-group .location-enable-title{color:#b3f2ef!important;-webkit-text-fill-color:#b3f2ef!important;}
html body #stopwatchCard .location-recording-group .location-enable input{border-color:#7bd5dc;background:#244b59;}
html body #stopwatchCard .location-recording-group .location-enable input:checked{background:#716398;border-color:#cbbcf7;}
html body #stopwatchCard .location-recording-group .location-enable .location-switch-state{color:#b3f2ef;-webkit-text-fill-color:#b3f2ef;}
@media(max-width:480px){
html body #stopwatchCard .location-recording-group .location-enable-title{font-size:17px;line-height:1.35;white-space:normal;}
html body #stopwatchCard .location-recording-group .location-enable .location-switch-state{font-size:18px;}
html body #stopwatchCard .location-recording-group .location-enable input{width:52px;height:30px;min-height:30px;}
html body #stopwatchCard .location-recording-group .location-enable input::before{width:22px;height:22px;}
html body #stopwatchCard .location-recording-group .location-enable input:checked::before{left:25px;}
}

html body #stopwatchCard>.location-plot-toggle{margin:16px auto 12px;background-image:none!important;}


html body #stopwatchCard .location-recording-group>.location-enable{box-sizing:border-box;}
html body #stopwatchCard .location-recording-group .location-switch-state{width:3ch;min-width:3ch;flex:0 0 3ch;text-align:left;}
@media(max-width:480px){html body #stopwatchCard .location-recording-group>.location-enable,html body #stopwatchCard .location-recording-group>.location-enable:has(input:checked){padding:10px 8px;gap:6px;}}

html body #stopwatchCard .stopwatch-location-section>.location-recording-group:not(:has(.location-enable input:checked)){background:#142b37;border-color:#456674;box-shadow:none;}
html body #stopwatchCard .location-recording-group:not(:has(input:checked)) :is(.location-enable-title,.location-switch-state){color:#9fb9c3!important;-webkit-text-fill-color:#9fb9c3!important;}
html body #stopwatchCard .location-recording-group .location-enable input:not(:checked){background:#263e49;border-color:#567581;}
html body #stopwatchCard .location-recording-group .location-enable input:not(:checked)::before{background:#a5bdc6;}
html body #stopwatchCard .location-recording-group:has(input:checked) :is(.location-enable-title,.location-switch-state){color:#eee5ff!important;-webkit-text-fill-color:#eee5ff!important;}

html body #stopwatchCard .location-recording-group .location-enable input:checked::before{background:#f1eaff;}

html body #stopwatchCard .timer-checkpoint-notice{min-height:24px;margin:0 0 8px;font-size:17px;font-weight:600;line-height:24px;text-align:center;color:#85caff;opacity:0;transition:opacity 650ms ease;pointer-events:none;}
html body #stopwatchCard .timer-checkpoint-notice.is-visible{opacity:1;transition-duration:150ms;}
html body #stopwatchCard .timer-checkpoint-action.is-ended>.timer-checkpoint-notice{display:none;}
@media(prefers-reduced-motion:reduce){html body #stopwatchCard .timer-checkpoint-notice{transition:none;}}


/* Estimated location speeds: compact live values and horizontally scrollable detail. */
html body #stopwatchCard .stopwatch-live-speed{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 22px;margin:10px auto 4px;color:#c2bad8;font-size:14px;}
html body #stopwatchCard .stopwatch-live-speed[hidden]{display:none;}
html body #stopwatchCard .stopwatch-live-speed strong{display:inline-block;color:#e0d4ff;font-size:18px;font-variant-numeric:tabular-nums;}
html body #stopwatchCard .location-speed-extremes{flex-wrap:wrap;justify-content:center;color:#c2bad8;text-align:center;font-size:14px;}
html body #stopwatchCard .location-speed-extremes strong{display:block;color:#e0d4ff;font-size:18px;}
html body #stopwatchCard .location-speed-extremes small{display:block;margin-top:4px;}
html body #stopwatchCard .location-speed-note{flex-basis:100%;max-width:640px;margin:0;line-height:1.5;font-size:12px;color:#a5b4c5;}
html body #stopwatchCard .timer-breakdown .timer-distance-scroll table{min-width:805px;}
html body #stopwatchCard .timer-distance-scroll th.timer-speed-heading{width:100px!important;font-size:14px!important;}
@media(max-width:480px){html body #stopwatchCard .timer-breakdown .timer-distance-scroll table{min-width:552px;}html body #stopwatchCard .timer-distance-scroll th.timer-speed-heading{width:80px!important;}html body #stopwatchCard .timer-distance-scroll th.timer-speed-heading::after{content:none!important;}}

/* Paired live stopwatch and location panels, with shared controls below. */

html body #stopwatchCard .stopwatch-live-displays{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:16px;margin:0 auto 16px;}

html body #stopwatchCard .stopwatch-live-displays>.timer-display{margin:0 auto;align-content:center;}

html body #stopwatchCard .stopwatch-location-stats{min-width:0;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;gap:12px;padding:16px;border:2px solid #9e91bc;border-radius:24px;background:#171f32;}
html body #stopwatchCard .stopwatch-location-stats[hidden]{display:none;}
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-display-distance{display:flex;flex-direction:row;align-items:baseline;justify-content:center;margin:0;padding:0;background:transparent;border:0;border-radius:0;}

html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed{grid-template-columns:minmax(0,1fr);margin:0;}
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed>span{display:flex;flex-direction:row;align-items:baseline;justify-content:center;gap:5px;white-space:nowrap;}
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed strong{white-space:nowrap;}
@media(max-width:600px){
html body #stopwatchCard .stopwatch-live-displays.has-location-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
html body #stopwatchCard .has-location-stats>.timer-display{width:100%;font-size:clamp(22px,6vw,36px);padding:12px 2px;column-gap:.16em;border-radius:16px;}
html body #stopwatchCard .stopwatch-location-stats{width:100%;margin:0;padding:12px 4px;border-radius:16px;gap:10px;}
html body #stopwatchCard .has-location-stats .stopwatch-display-title{font-size:clamp(13px,3.5vw,18px);}
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-display-distance{font-size:clamp(12px,3.2vw,17px);gap:4px;}
html body #stopwatchCard .stopwatch-location-stats .location-total-value{font-size:clamp(16px,4.3vw,24px);}
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed{font-size:clamp(10px,2.7vw,14px);gap:4px;}
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed strong{font-size:clamp(12px,3.3vw,19px);}
}

/* Interval first, centered action, then saved checkpoints. Reserve confirmation space. */
html body #stopwatchCard .stopwatch-main-controls>.timer-checkpoint-action{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px 10px;}
html body #stopwatchCard .timer-checkpoint-action>.timer-session-overview{grid-column:1/-1;margin:4px auto 0;}
html body #stopwatchCard .timer-checkpoint-action>#stopwatchCheckpoint{grid-column:2;grid-row:2;justify-self:center;margin:0;}
html body #stopwatchCard .timer-checkpoint-action>.timer-checkpoint-notice{min-width:0;font-size:14px;}
html body #stopwatchCard .timer-checkpoint-action>.timer-checkpoint-panel{grid-column:1/-1;grid-row:3;}
html body #stopwatchCard .timer-checkpoint-action>.stopwatch-summary-prompt{grid-column:1/-1;grid-row:1;}
@media(max-width:600px){
html body #stopwatchCard .stopwatch-main-controls>.timer-checkpoint-action{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:6px;}
html body #stopwatchCard .timer-checkpoint-action>#stopwatchCheckpoint{grid-column:2;grid-row:2;font-size:clamp(12px,3.2vw,16px);padding-inline:8px;}
html body #stopwatchCard .timer-checkpoint-action>.timer-checkpoint-notice{grid-column:3;grid-row:2;min-height:36px;line-height:18px;text-align:left;font-size:clamp(10px,2.6vw,14px);}
html body #stopwatchCard .timer-checkpoint-action>.timer-checkpoint-panel{grid-row:3;}
}

@media(max-width:600px){html body #stopwatchCard .has-location-stats>.timer-display:has(>span:first-of-type:not([hidden])){font-size:clamp(18px,5vw,30px);}}

html body #stopwatchCard .timer-table-total{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:6px;margin:14px auto 8px;padding:0;border:0;background:transparent;text-align:center;font-size:16px;color:#bad8ef;}
html body #stopwatchCard .timer-table-total strong{font-size:18px;font-weight:500;color:#e4f5ff;}
html body #stopwatchCard .timer-distance-total{color:#c2bad8;}
html body #stopwatchCard .timer-distance-total strong{color:#e0d4ff;}

html body #stopwatchCard .stopwatch-main-controls>.timer-checkpoint-action.is-ended{align-content:start;align-items:start;margin-top:6px;}

html body #stopwatchCard>.timer-distance-section{box-sizing:border-box;margin:20px auto 0;padding:0;border:0;background:transparent;box-shadow:none;}
html body #stopwatchCard>.timer-distance-section[hidden]{display:none!important;}
@media(max-width:480px){html body #stopwatchCard>.timer-distance-section{width:calc(100% + 16px);max-width:none;margin-left:-8px;margin-right:-8px;}}



/* One aligned four-stat row outside the location table. */
html body #stopwatchCard .location-speed-extremes{grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:12px;}
html body #stopwatchCard .location-speed-extremes>div,html body #stopwatchCard .location-speed-extremes>.timer-distance-total{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;min-width:0;margin:0;padding:0;font-size:14px;text-align:center;}
html body #stopwatchCard .location-speed-extremes>*>span{display:flex;align-items:center;justify-content:center;min-height:40px;line-height:20px;}
html body #stopwatchCard .location-speed-extremes small{margin:0;overflow-wrap:anywhere;}
@media(max-width:480px){html body #stopwatchCard .location-speed-extremes{gap:6px;}html body #stopwatchCard .location-speed-extremes>div,html body #stopwatchCard .location-speed-extremes>.timer-distance-total{font-size:11px;}html body #stopwatchCard .location-speed-extremes>*>span{min-height:48px;line-height:16px;}html body #stopwatchCard .location-speed-extremes strong{font-size:13px;}html body #stopwatchCard .location-speed-extremes small{font-size:10px;}}

/* Size the six distance columns explicitly; Location gets the flexible reading space. */
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table{margin-inline:auto;table-layout:fixed;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll :is(th,td){min-width:0;max-width:none;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(1){font-size:17px!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(2){font-size:17px!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(3){font-size:17px!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(4){font-size:17px!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(5){font-size:17px!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(6){font-size:17px!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll .timer-session-place{min-width:0;max-width:none;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll .timer-place-line{overflow-wrap:normal;word-break:normal;}
@media(max-width:600px){
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table{width:560px;min-width:560px;max-width:560px;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(1){width:10%!important;font-size:0!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(2){width:14%!important;font-size:0!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(3){width:14%!important;font-size:0!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(4){width:31%!important;font-size:0!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(5){width:16%!important;font-size:0!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(6){width:15%!important;font-size:0!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(1)::after{content:"Check\A point"!important;font-size:13px;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(2)::after{content:"Dist. since\A last point"!important;font-size:13px;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(3)::after{content:"Cumulative\A distance"!important;font-size:13px;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(4)::after{content:"Location"!important;font-size:13px;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(5)::after{content:"Time\A elapsed"!important;font-size:13px;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(6)::after{content:"Avg.\A speed"!important;font-size:13px;}
}

html body #stopwatchCard #stopwatchBreakdown>.timer-table-title,html body #stopwatchCard .timer-distance-section>.timer-table-title{margin:0 0 12px;padding:0;font-size:16px;font-weight:600;line-height:1.4;text-align:center;color:#9fc9e8;-webkit-text-fill-color:currentColor;}
html body #stopwatchCard>.timer-distance-section{margin-top:32px;}




/* Borderless, compact distance statistics with aligned two-line labels. */
html body #stopwatchCard .location-speed-extremes{display:block;margin:14px auto;}
html body #stopwatchCard .location-stats-data{display:grid;gap:8px;margin:0;padding:0;border:0;background:transparent;text-align:center;}
html body #stopwatchCard .location-stats-data>div{min-width:0;}
html body #stopwatchCard .location-stats-data dt{margin:0 0 5px;font-size:14px;line-height:18px;color:#c2bad8;white-space:nowrap;}
html body #stopwatchCard .location-stats-data dd{margin:0;padding:0;}
html body #stopwatchCard .location-stats-data strong{font-size:18px;line-height:1.3;color:#e0d4ff;}
html body #stopwatchCard .location-stats-data small{margin-top:3px;font-size:11px;}
@media(max-width:480px){html body #stopwatchCard .location-stats-data{gap:4px;}html body #stopwatchCard .location-stats-data dt{font-size:10px;line-height:15px;}html body #stopwatchCard .location-stats-data strong{font-size:13px;}html body #stopwatchCard .location-stats-data small{font-size:10px;}}

/* Compact master control; recording choices and tools stay in Location Settings. */
html body #stopwatchCard .location-quick-controls{flex-wrap:wrap;margin:12px auto 18px;}
html body #stopwatchCard .location-quick-controls>.location-recording-group{max-width:100%;margin:0;box-shadow:none;}
html body #stopwatchCard .location-quick-controls .location-enable{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:10px;width:auto;min-width:0;margin:0;padding:0;border:0;background:transparent;box-shadow:none;}
html body #stopwatchCard .location-quick-controls .location-enable-title{font-size:15px;line-height:1.3;white-space:nowrap;}
html body #stopwatchCard .location-quick-controls .location-switch-control{margin:0;}
html body #stopwatchCard .location-quick-controls .location-switch-state{font-size:14px;}
html body #stopwatchCard .location-quick-controls .location-enable input{width:42px;height:24px;min-height:24px;}
html body #stopwatchCard .location-quick-controls .location-enable input::before{width:16px;height:16px;top:3px;left:3px;}
html body #stopwatchCard .location-quick-controls .location-enable input:checked::before{left:21px;}
html body #stopwatchCard .location-quick-settings{padding:6px 10px;border:1px solid #8e86ae;border-radius:8px;background:#2b3044;color:#d9d1ec;font:inherit;font-size:14px;cursor:pointer;}
html body #stopwatchCard .location-quick-controls>.location-options-status{flex-basis:100%;}
html body #stopwatchCard .location-quick-feedback{flex-basis:100%;margin:0;font-size:12px;color:#bcd6ec;}
html body #stopwatchCard .location-quick-controls [hidden]{display:none!important;}
html body #stopwatchCard .location-options-toggle{margin-top:26px;}
@media(max-width:380px){html body #stopwatchCard .location-quick-controls{column-gap:6px;}html body #stopwatchCard .location-quick-controls .location-enable-title{font-size:13px;}html body #stopwatchCard .location-quick-controls .location-enable{gap:6px;}html body #stopwatchCard .location-quick-settings{font-size:12px;padding:6px 8px;}}

html body #stopwatchCard .location-quick-controls{display:grid;justify-content:center;gap:6px 12px;}

html body #stopwatchCard .location-quick-controls>.location-quick-settings{grid-column:2;grid-row:1;white-space:nowrap;}

html body #stopwatchCard .location-quick-controls .location-switch-control{display:inline-flex;align-items:center;gap:5px;flex-wrap:nowrap;white-space:nowrap;}
html body #stopwatchCard .location-quick-controls .location-enable{flex-wrap:nowrap;}
@media(max-width:380px){html body #stopwatchCard .location-quick-controls{column-gap:6px;}}

html body #stopwatchCard .location-quick-controls>.location-recording-group>.location-enable{display:flex!important;flex-direction:row!important;align-items:center!important;margin:0!important;}

html body #stopwatchCard .location-quick-controls{position:relative;}
html body #stopwatchCard .location-quick-controls>.location-options-status{top:calc(100% + 3px);left:0;right:0;}




@media(max-width:380px){html body #stopwatchCard .location-quick-controls>.location-recording-group>.location-enable{padding:0 3px!important;}}

/* Group the location label and toggle in a compact bubble beside Settings. */

html body #stopwatchCard .location-quick-controls>.location-recording-group{width:auto;border:1px solid #596477;border-radius:14px;background:#172b3a;}
html body #stopwatchCard .location-quick-controls>.location-recording-group:has(input:checked){border-color:#a89bcf;background:#30354b;}
html body #stopwatchCard .location-quick-controls>.location-recording-group>.location-enable{width:auto!important;justify-content:center!important;padding:0!important;}
@media(max-width:380px){html body #stopwatchCard .location-quick-controls>.location-recording-group{padding:6px;}html body #stopwatchCard .location-quick-controls>.location-recording-group>.location-enable{gap:4px!important;}}

/* Permission feedback floats above the logging bubble without reserving layout space. */

html body #stopwatchCard .location-quick-controls>.location-recording-group{position:relative;overflow:visible;}
html body #stopwatchCard .location-quick-controls .location-recording-group>.location-options-status{position:absolute;z-index:20;top:auto;bottom:calc(100% + 6px);left:50%;right:auto;transform:translateX(-50%);box-sizing:border-box;width:max-content;max-width:min(280px,calc(100vw - 24px));margin:0;padding:7px 10px;border:1px solid #9b91bc;border-radius:9px;background:#202b40;color:#e4ddf6;-webkit-text-fill-color:#e4ddf6;box-shadow:0 4px 12px #0004;text-align:center;font-size:12px;line-height:1.4;white-space:normal;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .6s ease,visibility .6s;}
html body #stopwatchCard .location-quick-controls .location-recording-group>.location-options-status.is-visible{opacity:1;visibility:visible;transition:opacity .15s ease,visibility .15s;}
@media(prefers-reduced-motion:reduce){html body #stopwatchCard .location-quick-controls .location-recording-group>.location-options-status{transition:none;}}

/* Compact, equal-height logging and settings controls. */
html body #stopwatchCard .location-quick-controls{margin-bottom:8px;}
html body #stopwatchCard .location-quick-controls>.location-recording-group{box-sizing:border-box;display:flex;align-items:center;height:40px;padding:4px 10px;}
html body #stopwatchCard .location-quick-controls .location-switch-control{min-height:28px;}
html body #stopwatchCard .location-quick-controls>.location-quick-settings{box-sizing:border-box;height:40px;min-height:40px;padding:4px 12px;background:#233b4b;border-color:#607c90;color:#d5e5ef;-webkit-text-fill-color:#d5e5ef;}
html body #stopwatchCard .location-quick-controls>.location-quick-settings:hover{background:#2d485b;border-color:#86a6bb;}
html body #stopwatchCard .location-quick-controls+.stopwatch-main-controls{margin-top:10px;}
@media(max-width:380px){html body #stopwatchCard .location-quick-controls>.location-recording-group{padding-inline:6px;}html body #stopwatchCard .location-quick-controls>.location-quick-settings{padding-inline:8px;}}

/* Give Settings a larger share and overlay permission feedback on that button. */

html body #stopwatchCard .location-quick-controls>.location-quick-settings{width:100%;}
html body #stopwatchCard .location-quick-controls>.location-options-status{z-index:20;align-items:center;box-sizing:border-box;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:15px;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .6s ease,visibility .6s;}
html body #stopwatchCard .location-quick-controls>.location-options-status.is-visible{opacity:1;visibility:visible;transition:opacity .15s ease,visibility .15s;}
@media(max-width:380px){html body #stopwatchCard .location-quick-controls{grid-template-columns:max-content minmax(76px,1fr);column-gap:8px;}}
@media(prefers-reduced-motion:reduce){html body #stopwatchCard .location-quick-controls>.location-options-status{transition:none;}}

html body #stopwatchCard .location-expanded-content>.location-recording-modes+.location-status{margin-top:24px;}
html body #stopwatchCard .stopwatch-location-section .location-tools-panel{border:0;border-radius:0;background:transparent;box-shadow:none;padding:0;}

html body #stopwatchCard>.timer-distance-section>.timer-table-title{border-top:0;padding-top:16px;}
html body #stopwatchCard #stopwatchBreakdown>.timer-time-total{font-size:14px;}
html body #stopwatchCard #stopwatchBreakdown>.timer-time-total strong{font-size:16px;}

html body #stopwatchCard .location-speed-extremes{box-sizing:border-box;padding:14px 12px;border:1px solid #807397;border-radius:14px;}
@media(max-width:480px){html body #stopwatchCard .location-speed-extremes{padding:12px 6px;}}

html body #stopwatchCard>.location-plot-toggle{display:flex;align-items:center;justify-content:center;gap:10px;width:min(100%,360px);margin-bottom:28px;}

html body #stopwatchCard .location-plot-toggle>svg{width:20px;height:20px;flex:0 0 20px;}

html body #stopwatchCard .timer-checkpoint-action>#stopwatchCheckpoint,html body #stopwatchCard .timer-checkpoint-action>.timer-checkpoint-notice{grid-row:1;}


html body #stopwatchCard .stopwatch-location-section .location-tools-panel{margin-top:0;padding-top:0;}
html body #stopwatchCard .stopwatch-location-section .location-tools-panel>.location-units{margin-top:0;margin-bottom:18px;padding-top:0;}
html body #stopwatchCard>.location-options-toggle{flex-direction:row;gap:9px;margin-bottom:0;}
html body #stopwatchCard>.location-options-toggle>svg{width:20px;height:20px;}
html body #stopwatchCard>.location-options-toggle[aria-expanded="true"]{border-bottom-left-radius:0;border-bottom-right-radius:0;}
html body #stopwatchCard>.location-options-toggle+.stopwatch-location-section{margin-top:0;}

/* Center the logging toggle independently of its status. */
html body #stopwatchCard .location-quick-controls{width:100%;max-width:740px;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:10px;margin-inline:auto;align-items:center;}
html body #stopwatchCard .location-quick-controls>.location-recording-group{grid-column:2;grid-row:1;justify-self:center;}
html body #stopwatchCard .location-quick-controls>.location-options-status{grid-row:1;position:static;inset:auto;justify-content:flex-start;width:100%;max-width:220px;height:auto;padding:0;overflow-wrap:normal;}
@media(max-width:600px){
html body #stopwatchCard .location-quick-controls{column-gap:6px;}
html body #stopwatchCard .location-quick-controls>.location-recording-group{padding-inline:6px;}
html body #stopwatchCard .location-quick-controls .location-enable-title{font-size:15px!important;}
html body #stopwatchCard .location-quick-controls .location-switch-state{font-size:15px!important;}
html body #stopwatchCard .location-quick-controls>.location-options-status{font-size:11px;line-height:1.35;}
}

html body #stopwatchCard .location-quick-controls .location-enable-title,html body #stopwatchCard .location-quick-controls .location-switch-state{font-size:16px!important;}
@media(max-width:600px){html body #stopwatchCard .location-quick-controls .location-enable-title,html body #stopwatchCard .location-quick-controls .location-switch-state{font-size:15px!important;}}

/* Keep transient location feedback compact, including on narrow phones. */
html body #stopwatchCard .location-quick-controls>.location-options-status{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;min-height:0;max-height:2.7em;align-self:center;}

html body #stopwatchCard .location-quick-controls>.location-options-status{grid-column:1;justify-self:end;text-align:right;}
html body #stopwatchCard .location-quick-controls>.location-settings-gear{grid-column:3;grid-row:1;justify-self:start;display:flex;align-items:center;justify-content:center;border:1px solid #73899f;background:#253b4c;color:#caddec;cursor:pointer;}

html body #stopwatchCard .location-settings-gear:hover,html body #stopwatchCard .location-settings-gear:focus-visible{background:#345269;border-color:#b3cce1;}

/* Preserve the standalone clock height when distance logging is toggled. */
html body #stopwatchCard .stopwatch-live-displays{grid-auto-rows:var(--stopwatch-display-height);}
html body #stopwatchCard .stopwatch-live-displays>.timer-display,html body #stopwatchCard .stopwatch-live-displays>.stopwatch-location-stats{height:100%;min-height:var(--stopwatch-display-height);box-sizing:border-box;}

html body #stopwatchCard .location-quick-controls>.location-options-status{white-space:pre;line-height:1.35;}

html body #stopwatchCard .location-quick-controls>.location-settings-gear{box-sizing:border-box;width:40px;min-width:40px;max-width:40px;height:40px;min-height:40px;max-height:40px;aspect-ratio:1;border-radius:50%;flex-shrink:0;}
html body #stopwatchCard .location-settings-gear>svg{flex-shrink:0;aspect-ratio:1;}
html body #stopwatchCard .location-quick-controls>.location-settings-gear.is-logging{background:#42394f;border-color:#b69bd9;}
html body #stopwatchCard .location-quick-controls>.location-settings-gear.is-logging:hover,html body #stopwatchCard .location-quick-controls>.location-settings-gear.is-logging:focus-visible{background:#514461;border-color:#d0b5ef;}

/* Bare gear, positioned farther from the centered logging toggle. */
html body #stopwatchCard .location-quick-controls>.location-settings-gear,
html body #stopwatchCard .location-quick-controls>.location-settings-gear:hover,
html body #stopwatchCard .location-quick-controls>.location-settings-gear:focus-visible,
html body #stopwatchCard .location-quick-controls>.location-settings-gear.is-logging,
html body #stopwatchCard .location-quick-controls>.location-settings-gear.is-logging:hover,
html body #stopwatchCard .location-quick-controls>.location-settings-gear.is-logging:focus-visible{background:transparent;border:0;box-shadow:none;}
html body #stopwatchCard .location-quick-controls>.location-settings-gear{margin-left:12px;}
html body #stopwatchCard .location-quick-controls>.location-settings-gear:focus-visible{outline:2px solid #b69bd9;outline-offset:2px;}
@media(max-width:380px){html body #stopwatchCard .location-quick-controls>.location-settings-gear{margin-left:6px;}}

html body #stopwatchCard .location-quick-controls>.location-settings-gear{padding:3px;}
html body #stopwatchCard .location-settings-gear>svg{width:34px;height:34px;}

html body #stopwatchCard .timer-checkpoint-action .timer-total{border:1px solid #4d7189;border-radius:0;background:#172f40;margin-bottom:0;}
html body #stopwatchCard .stopwatch-main-controls>.timer-checkpoint-action{padding-bottom:0;}
html body #stopwatchCard .timer-checkpoint-action>.timer-session-overview{margin-bottom:0;}
html body #stopwatchCard .stopwatch-main-controls{padding-bottom:8px;}

html body #stopwatchCard .location-quick-controls>.location-recording-group{padding-inline:24px;}
@media(max-width:600px){html body #stopwatchCard .location-quick-controls>.location-recording-group{padding-inline:14px;}}

html body #stopwatchCard .location-go-to-switch{display:block;width:fit-content;max-width:100%;margin:10px auto 16px;padding:8px 14px;border:1px solid #9d8ab7;border-radius:10px;background:#302c40;color:#e0d1f2;font-size:14px;cursor:pointer;}
html body #stopwatchCard .location-go-to-switch:hover{background:#40374e;border-color:#c4a9e2;}

html body #stopwatchCard .timer-checkpoint-action .timer-total{width:fit-content;max-width:100%;margin-inline:auto;padding:6px 10px;}
html body #stopwatchCard .timer-session-overview .timer-total .timer-current-segment{font-size:16px;}
html body #stopwatchCard .timer-session-overview .timer-total .timer-current-segment>strong{font-size:20px;}
@media(max-width:480px){html body #stopwatchCard .timer-session-overview .timer-total .timer-current-segment{font-size:clamp(11px,3vw,14px);}html body #stopwatchCard .timer-session-overview .timer-total .timer-current-segment>strong{font-size:clamp(14px,3.7vw,18px);}}

html body #stopwatchCard>.timer-distance-section{width:min(100%,800px);max-width:800px;margin-inline:auto;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table{width:100%;max-width:none;}
@media(max-width:480px){html body #stopwatchCard>.timer-distance-section{width:calc(100% + 16px);max-width:none;margin-left:-8px;margin-right:-8px;}}

html body #stopwatchCard .location-speed-extremes{width:min(100%,600px);max-width:100%;margin-inline:auto;}
html body #stopwatchCard .location-stats-data{grid-template-columns:repeat(2,minmax(0,1fr));justify-content:center;column-gap:22px;}
@media(max-width:480px){html body #stopwatchCard .location-stats-data{column-gap:12px;}}
@media(max-width:350px){html body #stopwatchCard .location-stats-data{column-gap:8px;}}

/* Full-width clock with one compact distance/speed row underneath. */
html body #stopwatchCard .stopwatch-main-controls:has(.has-location-stats){width:min(100%,560px);}
html body #stopwatchCard .stopwatch-live-displays,
html body #stopwatchCard .stopwatch-live-displays.has-location-stats{grid-template-columns:minmax(0,1fr);grid-auto-rows:auto;gap:10px;}
html body #stopwatchCard .stopwatch-live-displays>.timer-display,
html body #stopwatchCard .has-location-stats>.timer-display{width:min(calc(100% - 16px),6.9em);height:var(--stopwatch-display-height);min-height:var(--stopwatch-display-height);font-size:clamp(36px,6.5vw,58px);padding:14px .34em;column-gap:.24em;border-radius:24px;}
html body #stopwatchCard .has-location-stats .stopwatch-display-title{font-size:17px;}
html body #stopwatchCard .stopwatch-live-displays>.stopwatch-location-stats{display:flex;flex-direction:row;align-items:baseline;justify-content:center;width:fit-content;max-width:100%;height:auto;min-height:0;margin-inline:auto;border-radius:12px;}
html body #stopwatchCard .stopwatch-live-displays>.stopwatch-location-stats[hidden]{display:none;}
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-display-distance{width:auto;font-size:16px;gap:5px;white-space:nowrap;}
html body #stopwatchCard .stopwatch-location-stats .location-total-value{font-size:18px;}
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed{display:flex;align-items:baseline;width:auto;white-space:nowrap;}
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed::before{color:#b8adc9;}

@media(max-width:600px){html body #stopwatchCard .has-location-stats>.timer-display:has(>span:first-of-type:not([hidden])){font-size:clamp(36px,6.5vw,58px);}}
@media(max-width:480px){
html body #stopwatchCard .stopwatch-live-displays>.stopwatch-location-stats{gap:6px;padding:9px 8px;}
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-display-distance,
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed{font-size:clamp(10px,3vw,14px);gap:5px;}
html body #stopwatchCard .stopwatch-location-stats .location-total-value,
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed strong{font-size:clamp(12px,3.5vw,16px);}
}

html body #stopwatchCard .stopwatch-live-displays>.stopwatch-location-stats{order:-1;}

html body #stopwatchCard .location-quick-controls>.location-recording-group,
html body #stopwatchCard .location-quick-controls>.location-recording-group:has(.location-enable input:checked){border-width:1px;box-shadow:none;}

html body #stopwatchCard .stopwatch-live-displays,html body #stopwatchCard .stopwatch-live-displays.has-location-stats{gap:5px;}
html body #stopwatchCard .stopwatch-live-displays>.stopwatch-location-stats{gap:16px;margin-block:0;}
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed::before{content:none;}
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed>span>span{color:#f1f5fa;-webkit-text-fill-color:#f1f5fa;}
html body #stopwatchCard .stopwatch-location-stats .location-total-value,
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed strong{color:#e0d4ff;-webkit-text-fill-color:#e0d4ff;}
html body #stopwatchCard .stopwatch-main-controls:has(.has-location-stats){padding-top:10px;}
@media(max-width:480px){html body #stopwatchCard .stopwatch-live-displays>.stopwatch-location-stats{padding:4px 8px;gap:10px;}}

html body #stopwatchCard .stopwatch-live-displays>.stopwatch-location-stats{border:1px solid #665f7a;}

html body #stopwatchCard .location-quick-controls .location-enable input.location-switch-highlight{outline:2px solid #d6b9ff;outline-offset:4px;box-shadow:0 0 10px 4px #bc91f580,0 0 24px 7px #b990ee55!important;}

html body #stopwatchCard .location-go-to-switch{margin-bottom:4px;}
html body #stopwatchCard .stopwatch-location-section>.location-expanded-panel .location-expanded-content{padding-bottom:0;}








html body #stopwatchCard .stopwatch-milliseconds-option{grid-column:1/-1;grid-row:3;display:flex;justify-content:center;align-items:center;gap:7px;margin:4px auto;font-size:13px;color:#b9cddd;cursor:pointer;}
html body #stopwatchCard .stopwatch-milliseconds-option input{width:16px;height:16px;margin:0;accent-color:#78cbd1;}
html body #stopwatchCard .stopwatch-live-displays>.timer-display.shows-milliseconds{grid-template-columns:repeat(var(--time-visible-units,1),max-content);font-size:clamp(24px,5.5vw,46px);}
html body #stopwatchCard .timer-display.shows-milliseconds #stopwatchDisplaySeconds{min-width:5ch;}

html body #stopwatchCard .stopwatch-milliseconds-option{margin-bottom:0;}
html body #stopwatchCard .stopwatch-main-controls:has(.stopwatch-milliseconds-option){padding-bottom:4px;}

html body #stopwatchCard fieldset.stopwatch-milliseconds-option{min-width:0;padding:0;border:0;flex-wrap:wrap;gap:8px 14px;}
html body #stopwatchCard .stopwatch-milliseconds-option label{display:inline-flex;align-items:center;gap:5px;cursor:pointer;white-space:nowrap;}

/* Keep the stopwatch bubble width independent of decimal precision. */
html body #stopwatchCard .stopwatch-live-displays>.timer-display,
html body #stopwatchCard .stopwatch-live-displays>.timer-display.shows-milliseconds{width:min(calc(100% - 16px),clamp(248.4px,44.85vw,400.2px));max-width:400.2px;}

@media(max-width:480px){html body #stopwatchCard .stopwatch-precision-label{font-size:0;}html body #stopwatchCard .stopwatch-precision-label::after{content:attr(data-mobile-label);font-size:13px;}}

html body :is(#timerCard,#stopwatchCard) .timer-state{--status-color:#86dedb;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--status-color);-webkit-text-fill-color:var(--status-color);}
html body :is(#timerCard,#stopwatchCard) .timer-state::before,html body :is(#timerCard,#stopwatchCard) .timer-state::after{content:'';flex:1 1 24px;max-width:70px;min-width:12px;height:1px;background:currentColor;opacity:.45;}

html body #stopwatchCard .location-expanded-content>.location-settings-toggle{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:12px;width:fit-content;max-width:100%;margin:10px auto 8px;border-radius:14px;color:#f1f5fa;font-size:16px;}

html body #stopwatchCard .location-settings-toggle .location-enable-title{font-size:16px;color:#f1f5fa;}
html body #stopwatchCard .location-settings-toggle .location-switch-control{display:flex;flex-direction:row;align-items:center;gap:6px;}

html body #stopwatchCard .location-settings-toggle input{width:42px;height:24px;min-height:24px;}
html body #stopwatchCard .location-settings-toggle input::before{width:16px;height:16px;top:3px;left:3px;}

html body #stopwatchCard .location-settings-toggle input:checked::before{left:21px;}

html body #stopwatchCard .stopwatch-live-displays>.stopwatch-location-stats{padding:7px 12px;}
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-display-distance,
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed{font-size:18px;}
html body #stopwatchCard .stopwatch-location-stats .location-total-value,
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed strong{font-size:21px;}
@media(max-width:480px){html body #stopwatchCard .stopwatch-live-displays>.stopwatch-location-stats{padding:7px 6px;gap:8px;}html body #stopwatchCard .stopwatch-location-stats>.stopwatch-display-distance,html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed{font-size:clamp(12px,3.4vw,16px);gap:4px;}html body #stopwatchCard .stopwatch-location-stats .location-total-value,html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed strong{font-size:clamp(14px,4vw,19px);}}

/* Neutral logging controls; use a subtle active state. */
html body #stopwatchCard .location-quick-controls>.location-recording-group,
html body #stopwatchCard .location-expanded-content>.location-settings-toggle{box-shadow:none;}
html body #stopwatchCard .location-quick-controls>.location-recording-group:has(.location-enable input:checked),
html body #stopwatchCard .location-expanded-content>.location-settings-toggle:has(input:checked){box-shadow:none;}
html body #stopwatchCard .location-quick-controls .location-enable-title,
html body #stopwatchCard .location-quick-controls .location-switch-state,
html body #stopwatchCard .location-settings-toggle .location-enable-title,

html body #stopwatchCard .location-quick-controls .location-enable input,
html body #stopwatchCard .location-settings-toggle input{background:#3b4d5e;border-color:#879aaa;}
html body #stopwatchCard .location-quick-controls .location-enable input:checked,
html body #stopwatchCard .location-settings-toggle input:checked{background:#52748d;border-color:#adc8db;}
html body #stopwatchCard .location-quick-controls .location-enable input::before,
html body #stopwatchCard .location-settings-toggle input::before{background:#edf3f8;}
html body #stopwatchCard .location-quick-controls>.location-settings-gear.is-logging{color:#d6e7f3;}

html body #stopwatchCard .stopwatch-location-stats>.stopwatch-display-distance,html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed{font-size:20px;}
html body #stopwatchCard .stopwatch-location-stats .location-total-value,html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed strong{font-size:23px;}
@media(max-width:480px){html body #stopwatchCard .stopwatch-location-stats>.stopwatch-display-distance,html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed{font-size:clamp(13px,3.8vw,18px);}html body #stopwatchCard .stopwatch-location-stats .location-total-value,html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed strong{font-size:clamp(15px,4.3vw,21px);}}

html body #stopwatchCard .stopwatch-main-controls .timer-actions>#stopwatchStart{margin-bottom:0;}
html body #stopwatchCard .stopwatch-main-controls .timer-actions>#stopwatchStatus{grid-column:1/-1;grid-row:1;margin:0;padding:0;min-height:28px;}



html body #stopwatchCard .stopwatch-main-controls .timer-checkpoint-action>#stopwatchCheckpoint{min-height:50px;padding-block:10px;}

/* Distinguish starting, resuming, pausing, and marking a checkpoint. */
html body :is(#timerCard,#stopwatchCard) .timer-actions :is(#timerStart,#stopwatchStart)[data-action='start']{background:#315f52;border-color:#82b6a2;color:#f0f7f5;}
html body :is(#timerCard,#stopwatchCard) .timer-actions :is(#timerStart,#stopwatchStart)[data-action='resume']{background:#345f83;border-color:#8db7d8;color:#f0f6fb;}
html body :is(#timerCard,#stopwatchCard) .timer-actions :is(#timerStart,#stopwatchStart)[data-action='pause']{background:#365b60;border-color:#8eb9ba;color:#effafa;}
html body #stopwatchCard.stopwatch-awaiting-start #stopwatchStart[data-action='start']{background:#315f52;border-color:#93c5af;box-shadow:0 0 18px #82b6a250,inset 0 0 7px #93c5af1f;}
html body #timerCard #timerStart.timer-start-ready[data-action='start']{border-color:#93c5af;box-shadow:0 0 12px #82b6a250;}


html body :is(#timerCard,#stopwatchCard) .timer-state,
html body :is(#timerCard,#stopwatchCard) .timer-state[data-state]{--status-color:#d0ebff;color:#d0ebff;-webkit-text-fill-color:#d0ebff;}

/* Give timer control rows more breathing room. */
html body #stopwatchCard .stopwatch-main-controls .timer-actions{row-gap:22px;}
html body #stopwatchCard .stopwatch-main-controls>.timer-checkpoint-action{margin-top:32px;}
html body #timerCard .timer-actions{row-gap:20px;margin-block:22px;}
html body #timerCard .timer-alert-options{margin-top:38px;}
html body #timerCard .timer-alert-group>button{margin-top:14px;margin-bottom:8px;}
html body #stopwatchCard .location-tools-panel button{margin-top:12px;margin-bottom:8px;}
html body #stopwatchCard .location-settings-actions{row-gap:16px;}

/* Button states change color immediately; retain movement/opacity transitions. */
html body :is(#timerCard,#stopwatchCard) button,
html body :is(#timerCard,#stopwatchCard) button :is(span,svg){transition-property:transform,opacity!important;}



html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed{gap:14px;}
html body #stopwatchCard .stopwatch-live-displays>.stopwatch-location-stats{flex-wrap:wrap;}








@media(max-width:600px){html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(7){font-size:0!important;}html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(7)::after{content:'Dir.'!important;font-size:13px;}}

html body #stopwatchCard .stopwatch-main-controls>#stopwatchStatus{display:flex;position:static;order:0;min-height:28px;margin:0 0 8px;padding:0;color:#d0ebff!important;-webkit-text-fill-color:#d0ebff!important;--status-color:#d0ebff;}
html body #stopwatchCard .stopwatch-main-controls .timer-actions>#stopwatchStart{grid-row:1;}
html body #stopwatchCard .stopwatch-main-controls .timer-actions>button:not(#stopwatchStart){grid-row:2;}

@media(max-width:600px){html body #stopwatchCard .stopwatch-location-stats [data-mobile-label]{font-size:0!important;}html body #stopwatchCard .stopwatch-location-stats [data-mobile-label]::after{content:attr(data-mobile-label);font-size:clamp(13px,3.8vw,18px);}}

html body #stopwatchCard .timer-checkpoint-action>.timer-checkpoint-notice{color:#85caff!important;-webkit-text-fill-color:#85caff!important;font-weight:400;}

/* Trim only the lower padding of the main time bubbles. */
html body #stopwatchCard .stopwatch-live-displays{--stopwatch-display-height:calc(48.1px + clamp(8px,2vw,14px) + clamp(43.2px,7.8vw,69.6px));}
html body #stopwatchCard .stopwatch-live-displays>.timer-display,
html body #timerCard .timer-display{padding-bottom:8px;}

html body #stopwatchCard .timer-display>.stopwatch-display-title,
html body #timerCard .timer-display>.countdown-display-title{color:#8fbce8;-webkit-text-fill-color:#8fbce8;}

@media(max-width:480px){
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(1){width:10%!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(2){width:16%!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(3){width:16%!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(4){width:27%!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(5){width:13%!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(6){width:10%!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(7){width:8%!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll :is(th,td):first-child{padding-inline:2px;}
html body #stopwatchCard .timer-distance-section .timer-start-label{width:100%;max-width:100%;}
}

html body #stopwatchCard .location-point-plot{padding:0;border:0;background:transparent;box-shadow:none;}
html body #stopwatchCard .location-point-plot-frame{padding:10px;border:1px solid #82769b;border-radius:12px;overflow:hidden;}
html body #stopwatchCard .location-point-plot>p{margin:12px 8px;color:#b5c3d3;}

html body #stopwatchCard .stopwatch-main-controls>.timer-checkpoint-action{position:relative;}
html body #stopwatchCard .timer-checkpoint-action>.timer-checkpoint-notice{grid-area:auto;top:-26px;left:0;right:0;white-space:nowrap;line-height:20px;}

html body #stopwatchCard .stopwatch-live-speed .stopwatch-direction-value{display:inline-block;box-sizing:content-box;width:2.4ch;min-width:2.4ch;max-width:2.4ch;flex:0 0 2.4ch;text-align:center;}

html body #stopwatchCard .location-point-plot-frame{background:#101e30;box-shadow:inset 0 0 24px #050e1933;}
html body #stopwatchCard .location-plot-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:2px 4px 10px;border-bottom:1px solid #43536b;}
html body #stopwatchCard .location-plot-controls>span{margin-right:auto;color:#c5d9ef;font-size:14px;}
html body #stopwatchCard .location-plot-controls>button{min-width:34px;min-height:34px;padding:5px 10px;border:1px solid #8996bd;border-radius:7px;font-size:15px;cursor:pointer;}
html body #stopwatchCard .location-point-plot-frame>svg{cursor:zoom-in;}

/* Compact location summary columns and normalize elapsed-time text. */

html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table{min-width:580px;}







html body #stopwatchCard .timer-distance-scroll .timer-start-label{width:100%;min-width:0;max-width:100%;white-space:normal;}
html body #stopwatchCard .timer-distance-scroll .timer-duration-readout{font-size:15px;font-weight:400;}
@media(max-width:480px){html body #stopwatchCard .timer-distance-scroll .timer-duration-readout{font-size:13px;}}

/* Location is the final column. */
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(1){width:12%!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(2){width:18%!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(3){width:18%!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(4){width:15%!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(5){width:8%!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(6){width:29%!important;}
@media(max-width:600px){
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(4)::after{content:'Time\A elapsed'!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(5)::after{content:'Dir.'!important;}
html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th:nth-child(6)::after{content:'Location'!important;}
}

html body #stopwatchCard>.location-options-toggle{margin-top:40px;}

html body #stopwatchCard .stopwatch-main-controls:has(.timer-checkpoint-action.is-ended){padding-bottom:4px;}
html body #stopwatchCard>#stopwatchBreakdown{margin-top:28px;}
html body #stopwatchCard .stopwatch-main-controls:has(.timer-checkpoint-action.is-ended)~#stopwatchBreakdown{margin-top:28px;}

html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th.timer-speed-heading{white-space:normal;line-height:1.25;}
@media(max-width:600px){html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th.timer-speed-heading{font-size:0!important;}html body #stopwatchCard .timer-distance-section.timer-breakdown .timer-distance-scroll table th.timer-speed-heading::after{content:'Avg.\A Speed'!important;display:block;white-space:pre;font-size:13px;line-height:1.25;}}

html body #stopwatchCard .timer-distance-scroll .timer-point-progress{display:block;margin-top:3px;color:#bdb2d3;font-size:.85em;line-height:1.25;}

html body #stopwatchCard .location-speed-extremes>.location-cities-visited{grid-column:1/-1;flex-basis:100%;margin-top:12px;padding-top:10px;border-top:1px solid #5e546e;text-align:center;}
html body #stopwatchCard .location-cities-visited h4{margin:0 0 5px;font-size:14px;font-weight:500;}
html body #stopwatchCard .location-cities-visited p{margin:0;color:#e0d4ff;font-size:14px;line-height:1.5;max-width:none;overflow-wrap:anywhere;}

html body #stopwatchCard #stopwatchBreakdown>.timer-time-total{display:none;}

/* Aqua/teal location summary, with ocean-blue checkpoint action. */
html body #stopwatchCard .timer-distance-section>.timer-table-title{color:#a5e5e1;border-top-color:#538b8d;-webkit-text-fill-color:#a5e5e1;}
html body #stopwatchCard .timer-distance-section .timer-distance-scroll{border-color:#6aa7a8;}
html body #stopwatchCard .timer-distance-section .timer-distance-scroll :is(th,td){border-color:#3d6069;}
html body #stopwatchCard .timer-distance-section .timer-distance-scroll th.timer-location-column{background:#244b53;color:#d0f4ef;}
html body #stopwatchCard .timer-distance-section .timer-distance-scroll td.timer-location-column{background:#192e3a;color:#d8e9eb;}
html body #stopwatchCard .timer-distance-section .timer-distance-scroll td:has(a):hover{background:#28525b;}
html body #stopwatchCard .timer-distance-section .timer-location-bubble,html body #stopwatchCard .timer-distance-scroll .timer-point-progress{color:#a9dedc;}
html body #stopwatchCard .location-speed-extremes{border-color:#588b91;background:#1b303b;}
html body #stopwatchCard .location-stats-data dt,html body #stopwatchCard .location-cities-visited h4{color:#add4d5;}
html body #stopwatchCard .location-stats-data strong,html body #stopwatchCard .location-cities-visited p{color:#d1f5ef;}
html body #stopwatchCard .location-speed-extremes>.location-cities-visited{border-top-color:#41666e;}
html body #stopwatchCard>.location-plot-toggle{background:#244952!important;border-color:#78b6bb!important;color:#d8f8f4!important;-webkit-text-fill-color:#d8f8f4!important;}
html body #stopwatchCard>.location-plot-toggle:hover{background:#315d65!important;border-color:#9bd4d5!important;}
html body #stopwatchCard .location-point-plot-frame{border-color:#63979c;}
html body #stopwatchCard .location-plot-controls>button{background:#253c50;border-color:#769cb5;color:#e1f3ff;}
html body #stopwatchCard .location-plot-controls>button:is(:hover,:focus-visible){background:#34556c;border-color:#a4cede;}
html body #stopwatchCard .stopwatch-live-displays>.stopwatch-location-stats{border-color:#6da5a8;background:#172c38;}
html body #stopwatchCard .stopwatch-location-stats .location-total-value,html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed strong{color:#c5f2ec;-webkit-text-fill-color:#c5f2ec;}
html body #stopwatchCard .stopwatch-main-controls .timer-checkpoint-action>#stopwatchCheckpoint:not(:disabled){background:linear-gradient(180deg,#396fb9 0%,#2453a3 48%,#1a3e7a 100%);border-color:#83b7ff;color:#f0f6ff;--stopwatch-button-rest-shadow:inset 0 2px 3px #e0f1ff66,inset 0 0 12px #81baff38,inset 0 -5px 9px #071d4d80,0 4px 0 #0a1825,0 6px 10px #00000033;}
html body #stopwatchCard .stopwatch-main-controls .timer-checkpoint-action>#stopwatchCheckpoint:not(:disabled):hover{background:linear-gradient(180deg,#477fc9 0%,#2e65bd 48%,#224b8b 100%);border-color:#aed1ff;}

/* Keep segment speed units on their own line in the location summary. */
html body #stopwatchCard .timer-distance-scroll td.timer-segment-speed{white-space:pre-line;line-height:1.35;}
/* Match Location Settings to the aqua location summary theme. */
html body #stopwatchCard>.location-options-toggle{background:#244952;border-color:#78b6bb;color:#d8f8f4;-webkit-text-fill-color:#d8f8f4;}
html body #stopwatchCard>.location-options-toggle:is(:hover,:focus-visible){background:#315d65;border-color:#9bd4d5;}
html body #stopwatchCard .stopwatch-location-section{background:#172c38;border-color:#63979c;}
html body #stopwatchCard .location-recording-modes legend{color:#addeda;-webkit-text-fill-color:#addeda;}
html body #stopwatchCard .location-mode-choice{background:#20353f;border-color:#567c83;color:#c0d8d8;-webkit-text-fill-color:#c0d8d8;}
html body #stopwatchCard .location-mode-choice:has(input:checked){background:#2a4b52;border-color:#86c4c5;color:#e4fcf6;-webkit-text-fill-color:#e4fcf6;}
html body #stopwatchCard .location-mode-choice:has(input:checked)>span{color:#e4fcf6;-webkit-text-fill-color:#e4fcf6;}
html body #stopwatchCard .location-mode-choice input{accent-color:#8bcac7;}
html body #stopwatchCard .location-mode-choice input:focus-visible{outline-color:#b3e6df;}
html body #stopwatchCard .location-tools-panel button{background:#203c46!important;border-color:#78aeb3!important;color:#d8f8f4!important;-webkit-text-fill-color:#d8f8f4;}
html body #stopwatchCard .location-tools-panel button:is(:hover,:focus-visible):not(:disabled){background:#315660!important;border-color:#a2d9d6!important;color:#f0fffc!important;}
html body #stopwatchCard .location-tools-panel button:is([aria-pressed="true"],[aria-expanded="true"]){background:#2b5159!important;border-color:#98d1cb!important;color:#e4fcf6!important;}
html body #stopwatchCard .location-tools-panel button:focus-visible{outline-color:#a2d9d6;}
/* Improve the top logging control's idle contrast without matching its active brightness. */
html body #stopwatchCard .location-quick-controls>.location-recording-group:not(:has(.location-enable input:checked)){border-color:#7ba5aa;}
html body #stopwatchCard .location-quick-controls>.location-recording-group:not(:has(.location-enable input:checked)) :is(.location-enable-title,.location-switch-state){color:#cce9e5!important;-webkit-text-fill-color:#cce9e5!important;}
/* Give the checkpoint button more breathing room above its timing readout. */

/* Keep the settings opener teal across inherited button and icon styles. */
html body #stopwatchCard button.location-options-toggle{background-image:none!important;color:#d8f8f4!important;-webkit-text-fill-color:#d8f8f4!important;}

html body #stopwatchCard button.location-options-toggle :is(svg,span){color:#d8f8f4!important;-webkit-text-fill-color:#d8f8f4!important;}
/* Distance units match the teal settings controls. */
html body #stopwatchCard .stopwatch-location-section .location-units{color:#addeda;}
html body #stopwatchCard .stopwatch-location-section .location-units select{background:#244952;color:#d8f8f4;border-color:#78b6bb;}
html body #stopwatchCard .stopwatch-location-section .location-units select:is(:hover,:focus-visible){background:#315d65;border-color:#9bd4d5;outline-color:#9bd4d5;}
html body #stopwatchCard .stopwatch-location-section .location-units select option{background:#244952;color:#d8f8f4;}
/* Emphasize the settings toggle and separate its status from frequency choices. */
html body #stopwatchCard .location-expanded-content>.location-settings-toggle{padding:10px 18px;border:2px solid #82b9bc;background:#24434d;}
html body #stopwatchCard .location-expanded-content>.location-settings-toggle:has(input:checked){background:#2d535b;border-color:#b0e5de;}
html body #stopwatchCard .location-settings-toggle .location-enable-title,
html body #stopwatchCard .location-settings-toggle .location-switch-state{font-size:18px;color:#edfffc!important;-webkit-text-fill-color:#edfffc!important;}
html body #stopwatchCard .location-expanded-content>.location-settings-toggle+.location-status{display:block;margin:8px auto 26px;text-align:center;}
/* Match the top logging status to the aqua location theme. */
html body #stopwatchCard .location-quick-controls>.location-options-status{color:#a5e5e1;-webkit-text-fill-color:#a5e5e1;}
/* Reserve the entire direction item, including during intrinsic flex sizing. */
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed>span:has(.stopwatch-direction-value){display:grid;grid-template-columns:max-content 2em;gap:7px;flex:0 0 auto;justify-content:start;}
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed strong.stopwatch-direction-value{display:block;box-sizing:border-box;width:100%!important;min-width:0!important;max-width:none!important;text-align:left;font-family:ui-monospace,Consolas,monospace;}
/* Keep the city heading aqua and give the settings opener a darker slate finish. */
html body #stopwatchCard .location-cities-visited h4{color:#addeda!important;-webkit-text-fill-color:#addeda!important;}
html body #stopwatchCard button.location-options-toggle{background:#172e3c!important;border-color:#728fa6!important;}
html body #stopwatchCard button.location-options-toggle:is(:hover,:focus-visible){background:#233e4e!important;border-color:#9eb8cd!important;}
/* Separate the top logging label and switch slightly. */
html body #stopwatchCard .location-quick-controls>.location-recording-group>.location-enable{gap:14px!important;}
@media(max-width:380px){html body #stopwatchCard .location-quick-controls>.location-recording-group>.location-enable{gap:12px!important;}}

html body #stopwatchCard #stopwatchCheckpointNotice{color:#85caff!important;-webkit-text-fill-color:#85caff!important;}
/* Reserve a confirmation row below the checkpoint action. */
html body #stopwatchCard .stopwatch-main-controls .timer-checkpoint-action>#stopwatchCheckpoint{margin-bottom:0;}
html body #stopwatchCard .timer-checkpoint-action>.timer-checkpoint-notice{position:static;grid-column:1/-1;grid-row:2;inset:auto;width:100%;height:20px;min-height:20px;margin:0;text-align:center;justify-self:center;}
html body #stopwatchCard .timer-checkpoint-action>.timer-session-overview{grid-row:3;}
html body #stopwatchCard .timer-checkpoint-action>.stopwatch-milliseconds-option{grid-row:4;}
/* Align both summary tables to the same available width. */
html body #stopwatchCard #stopwatchBreakdown>.timer-session-scroll,
html body #stopwatchCard .timer-distance-section>.timer-distance-scroll{width:100%;max-width:100%;margin-inline:auto;}
html body #stopwatchCard>.timer-distance-section{padding-inline:0;}
@media(max-width:480px){html body #stopwatchCard>.timer-distance-section{width:calc(100% + 16px);max-width:none;margin-left:-8px;margin-right:-8px;}}
/* Stack speed and units explicitly, independent of table whitespace rules. */
html body #stopwatchCard .timer-distance-scroll td.timer-segment-speed>.timer-speed-line{display:block!important;white-space:nowrap!important;line-height:1.35;text-align:center;}
/* Keep logging labels plain and prevent accidental text-selection highlights. */
html body #stopwatchCard :is(.location-enable-title,.location-switch-state){background:transparent!important;box-shadow:none!important;text-shadow:none!important;-webkit-user-select:none;user-select:none;}
html body #stopwatchCard :is(.location-enable-title,.location-switch-state)::selection{background:transparent;color:inherit;}
/* Use the same teal palette for both logging toggles in every state. */
html body #stopwatchCard .location-quick-controls>.location-recording-group,
html body #stopwatchCard .location-expanded-content>.location-settings-toggle{background:#203b45!important;border-color:#79a7ab!important;box-shadow:none!important;}
html body #stopwatchCard .location-quick-controls>.location-recording-group:has(input:checked),
html body #stopwatchCard .location-expanded-content>.location-settings-toggle:has(input:checked){background:#2a4e55!important;border-color:#a3d5d0!important;box-shadow:none!important;}
html body #stopwatchCard :is(.location-quick-controls,.location-settings-toggle) :is(.location-enable-title,.location-switch-state){color:#d3ede9!important;-webkit-text-fill-color:#d3ede9!important;}
html body #stopwatchCard :is(.location-recording-group,.location-settings-toggle):has(input:checked) :is(.location-enable-title,.location-switch-state){color:#effffb!important;-webkit-text-fill-color:#effffb!important;}
html body #stopwatchCard .location-quick-controls .location-enable input,
html body #stopwatchCard .location-settings-toggle input{background:#34515a!important;border-color:#82a9ad!important;}
html body #stopwatchCard .location-quick-controls .location-enable input:checked,
html body #stopwatchCard .location-settings-toggle input:checked{background:#4b8b91!important;border-color:#a7deda!important;}
/* Two-row live distance readout, with distance as the primary value. */
html body #stopwatchCard .stopwatch-live-displays>.stopwatch-location-stats{flex-direction:column;align-items:center;flex-wrap:nowrap;gap:7px;padding:10px 14px;}
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-display-distance{font-size:24px;gap:8px;}
html body #stopwatchCard .stopwatch-location-stats .location-total-value{font-size:28px;}
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed{font-size:17px;flex-wrap:nowrap;gap:16px;}
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed strong{font-size:18px;}
@media(max-width:480px){
html body #stopwatchCard .stopwatch-live-displays>.stopwatch-location-stats{padding:9px 8px;gap:6px;}
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-display-distance{font-size:22px;}
html body #stopwatchCard .stopwatch-location-stats .location-total-value{font-size:26px;}
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed{font-size:clamp(12px,3.5vw,16px);gap:10px;}
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed strong{font-size:clamp(13px,3.7vw,17px);}
}
/* Keep the live readout stable as direction and speed become available. */
html body #stopwatchCard .stopwatch-live-displays>.stopwatch-location-stats{box-sizing:border-box;width:360px;max-width:100%;min-width:0;padding-inline:12px;}
@media(max-width:480px){html body #stopwatchCard .stopwatch-live-displays>.stopwatch-location-stats{width:320px;padding-inline:8px;}}
/* Show checkpoint confirmation above the action without shifting the layout. */
html body #stopwatchCard .timer-checkpoint-action>.timer-checkpoint-notice{position:absolute;grid-area:auto;top:-26px;bottom:auto;left:0;right:0;transition:opacity 1400ms ease;}
html body #stopwatchCard .timer-checkpoint-action>.timer-checkpoint-notice.is-visible{transition-duration:150ms;}
@media(prefers-reduced-motion:reduce){html body #stopwatchCard .timer-checkpoint-action>.timer-checkpoint-notice{transition:none;}}
/* Reserve the left grid cell for the two-line checkpoint confirmation. */
html body #stopwatchCard .timer-checkpoint-action>.timer-checkpoint-notice{position:static;inset:auto;grid-column:1;grid-row:1;justify-self:end;align-self:center;transform:translateX(-8px);width:100%;max-width:110px;height:36px;min-height:36px;line-height:18px;white-space:pre;text-align:right;font-size:14px;}
@media(max-width:480px){html body #stopwatchCard .timer-checkpoint-action>.timer-checkpoint-notice{font-size:clamp(10px,2.7vw,13px);}}
/* Match checkpoint labels to the indigo action, including mobile labels. */
html body #stopwatchCard .timer-breakdown [data-point-kind="checkpoint"],
html body #stopwatchCard .timer-breakdown .timer-checkpoint-name:has([data-point-kind="checkpoint"]){--point-text:#8fc4ff;}
html body #stopwatchCard .timer-breakdown .timer-start-label[data-point-kind="checkpoint"]{color:#8fc4ff;-webkit-text-fill-color:#8fc4ff;}
html body #stopwatchCard .timer-breakdown .timer-checkpoint-name:has([data-point-kind="checkpoint"])::after{color:#8fc4ff;-webkit-text-fill-color:#8fc4ff;}
/* Slightly larger secondary live metrics. */
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed{font-size:19px;}
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed strong{font-size:20px;}
@media(max-width:480px){
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed{font-size:clamp(14px,3.8vw,18px);}
html body #stopwatchCard .stopwatch-location-stats>.stopwatch-live-speed strong{font-size:clamp(15px,4vw,19px);}
}
/* Neutral logging bubbles with a restrained active-state contrast. */
html body #stopwatchCard .location-quick-controls>.location-recording-group,
html body #stopwatchCard .location-expanded-content>.location-settings-toggle{background:#1f3142!important;border-color:#687d8e!important;}
html body #stopwatchCard .location-quick-controls>.location-recording-group:has(input:checked),
html body #stopwatchCard .location-expanded-content>.location-settings-toggle:has(input:checked){background:#2a3e50!important;border-color:#91a6b8!important;}
html body #stopwatchCard :is(.location-quick-controls,.location-settings-toggle) :is(.location-enable-title,.location-switch-state){color:#dce6ed!important;-webkit-text-fill-color:#dce6ed!important;}
html body #stopwatchCard :is(.location-recording-group,.location-settings-toggle):has(input:checked) :is(.location-enable-title,.location-switch-state){color:#f1f5f8!important;-webkit-text-fill-color:#f1f5f8!important;}
html body #stopwatchCard .location-quick-controls .location-enable input,
html body #stopwatchCard .location-settings-toggle input{background:#3b4d5e!important;border-color:#879aaa!important;}
html body #stopwatchCard .location-quick-controls .location-enable input:checked,
html body #stopwatchCard .location-settings-toggle input:checked{background:#607a8e!important;border-color:#b0c3d1!important;}
/* Ease the final container padding adjustment too. */
html body #stopwatchCard .stopwatch-main-controls{transition:none;}
@media(prefers-reduced-motion:reduce){html body #stopwatchCard .stopwatch-main-controls{transition:none;}}
/* Precision remains visible below End/Reset, outside the collapsing controls. */
html body #stopwatchCard .stopwatch-main-controls>.stopwatch-milliseconds-option{margin:14px auto 0;}
/* Gently round the current checkpoint timing box. */
html body #stopwatchCard .timer-checkpoint-action .timer-total{border-radius:10px;}
/* Drag/swipe the plot without scrolling the page during a gesture. */
html body #stopwatchCard .location-point-plot-frame>svg{touch-action:none;cursor:grab;user-select:none;}
html body #stopwatchCard .location-point-plot-frame>svg.is-panning{cursor:grabbing;}
/* Compass and full-width scale stay outside the draggable map. */
html body #stopwatchCard .location-point-plot-frame{padding:12px;background:#101e2d;border:1px solid #597f94;border-radius:16px;box-shadow:0 6px 20px #050d184d,inset 0 1px 0 #aacfe51a;}
html body #stopwatchCard .location-plot-controls{border-bottom:0;padding:0 0 10px;}
html body #stopwatchCard .plot-compass-frame{display:grid;grid-template-columns:24px minmax(0,1fr) 24px;grid-template-rows:26px auto 26px auto auto;align-items:center;}
html body #stopwatchCard .plot-compass{color:#b2d9ee;font-size:15px;font-weight:600;text-align:center;}
html body #stopwatchCard .plot-compass-n{grid-column:2;grid-row:1;}
html body #stopwatchCard .plot-compass-w{grid-column:1;grid-row:2;}
html body #stopwatchCard .plot-compass-e{grid-column:3;grid-row:2;}
html body #stopwatchCard .plot-compass-s{grid-column:2;grid-row:3;}
html body #stopwatchCard .plot-compass-frame>.plot-map{grid-column:2;grid-row:2;display:block;width:100%;height:auto;aspect-ratio:640/380;box-sizing:border-box;border:1px solid #88b5c5;border-radius:10px;background:radial-gradient(ellipse at center,#2b5064,#203b50);box-shadow:inset 0 0 24px #0c203433,0 0 0 3px #76b4c510;touch-action:none;cursor:grab;user-select:none;overflow:hidden;}
html body #stopwatchCard .plot-compass-frame>.plot-map.is-panning{cursor:grabbing;}
html body #stopwatchCard .plot-compass-frame>.plot-distance-scale{grid-column:2;grid-row:4;display:block;width:100%;height:auto;aspect-ratio:640/76;border:0;background:transparent;overflow:visible;}
html body #stopwatchCard .plot-scale-caption{grid-column:2;grid-row:5;color:#a9c9d4;font-size:12px;text-align:center;line-height:1.5;padding-bottom:4px;}
@media(max-width:480px){html body #stopwatchCard .location-point-plot-frame{padding:8px 4px;}html body #stopwatchCard .plot-compass-frame{grid-template-columns:18px minmax(0,1fr) 18px;}html body #stopwatchCard .plot-compass{font-size:13px;}html body #stopwatchCard .plot-scale-caption{font-size:11px;}}
/* Raised stopwatch buttons with an immediate pressed-down state. */
html body #stopwatchCard button:not(.location-settings-gear):not(:disabled){box-shadow:var(--stopwatch-button-rest-shadow,inset 0 1px 0 #ffffff26,0 4px 0 #0a1825,0 6px 10px #00000033)!important;transition:opacity .15s!important;}
html body #stopwatchCard button:not(.location-settings-gear):not(:disabled):active{transform:translateY(3px)!important;box-shadow:inset 0 2px 4px #00000040,0 1px 0 #0a1825!important;}
html body #stopwatchCard #stopwatchReset.timer-reset-ready{box-shadow:inset 0 1px 0 #ffffff26,0 4px 0 #0a1825,0 0 18px 4px #68aaff55!important;}
html body #stopwatchCard #stopwatchReset.timer-reset-ready:active{box-shadow:inset 0 2px 4px #00000040,0 1px 0 #0a1825,0 0 12px #68aaff44!important;}
html body #stopwatchCard .location-settings-gear:active{transform:translateY(2px)!important;filter:brightness(.85);}
/* Summary headings form folder-like tabs joined to their tables. */
html body #stopwatchCard #stopwatchBreakdown>.timer-table-title,
html body #stopwatchCard .timer-distance-section>.timer-table-title{position:relative;z-index:1;box-sizing:border-box;width:fit-content;max-width:calc(100% - 24px);margin:0 auto -1px;padding:9px 20px;border:1px solid #6088aa;border-bottom-color:#142c3e;border-radius:12px 12px 0 0;background:#142c3e;color:#b4d8f5;-webkit-text-fill-color:#b4d8f5;font-size:16px;line-height:1.4;}
html body #stopwatchCard .timer-distance-section>.timer-table-title{background:#142f38;border-color:#6aa7a8;border-bottom-color:#142f38;color:#b5e6e0;-webkit-text-fill-color:#b5e6e0;}
html body #stopwatchCard #stopwatchBreakdown>.timer-session-scroll,
html body #stopwatchCard .timer-distance-section>.timer-distance-scroll{margin-top:0;}
@media(max-width:480px){html body #stopwatchCard #stopwatchBreakdown>.timer-table-title,html body #stopwatchCard .timer-distance-section>.timer-table-title{font-size:14px;padding:8px 14px;}}
/* Consistent status icons and a steady paused-state Resume cue. */
html body #stopwatchCard .stopwatch-main-controls>#stopwatchStatus{position:relative;top:-5px;}
html body #stopwatchCard .stopwatch-status-content{display:inline-flex;align-items:center;gap:8px;}
html body #stopwatchCard .stopwatch-status-content>svg{width:20px;height:20px;flex:0 0 20px;}
html body #stopwatchCard #stopwatchStart[data-action="resume"]{border-color:#a5d3ff!important;animation:none!important;}

/* Simulation controls keep their feedback space even before a trip starts. */
html body #stopwatchCard .location-simulation-status{display:flex;flex-direction:column;justify-content:center;gap:5px;box-sizing:border-box;height:96px;max-width:360px;margin:0 auto;padding:8px 4px;text-align:center;color:#c4dbe7;font-size:14px;line-height:20px;}
html body #stopwatchCard .location-simulation-status strong{align-self:center;padding:5px 14px;border:1px solid #78b6bb;border-radius:10px;background:#203e48;color:#d8f8f4;-webkit-text-fill-color:#d8f8f4;font-size:15px;line-height:20px;}
html body #stopwatchCard .location-simulation-status strong:empty{visibility:hidden;}

html body #stopwatchCard .location-tools-panel .location-simulate[aria-pressed="false"]{background:#244952!important;border-color:#78b6bb!important;color:#d8f8f4!important;}
html body #stopwatchCard .location-tools-panel .location-simulate[aria-pressed="true"]{background:#315d65!important;border-color:#82d59b!important;color:#effff9!important;}

/* Point to both duration choices without moving their centered titles. */
html body #timerCard .timer-duration-heading{position:relative;display:inline-block;}
html body #timerCard .timer-duration-arrow{position:absolute;right:calc(100% + 9px);top:50%;transform:translateY(-50%);font-size:23px;line-height:1;color:#b1d6ff;-webkit-text-fill-color:#b1d6ff;visibility:hidden;pointer-events:none;}
html body #timerCard.timer-duration-needed .timer-duration-arrow{visibility:visible;}

html body #stopwatchCard>.location-plot-toggle[hidden]{display:none!important;}

/* Countdown uses a darker card and muted blue duration controls. */
html body #timerCard{background:#182236!important;}

html body #timerCard .timer-duration-group :is(.timer-custom-divider,.timer-setup-label){color:#bdd8f4;-webkit-text-fill-color:#bdd8f4;}

html body #timerCard .timer-fields input:focus{border-color:#a0caff;outline-color:#a0caff;}

html body #timerCard .timer-presets button:is(:hover,:focus-visible){background:#3c6695!important;border-color:#a0c6ef;}




html body #stopwatchCard .plot-details{margin:10px 12px 0;border-top:1px solid #36556b;padding:8px 0 0;text-align:center;color:#b5c3d3;font-size:14px;line-height:1.5;}
html body #stopwatchCard .plot-details>p{margin:8px 0;}

html body #stopwatchCard .location-tools-panel .location-simulate[data-simulation-state="finished"]{background:#29474f!important;border-color:#9bc9c8!important;color:#d8f8f4!important;}

html body #stopwatchCard .location-safari-help{box-sizing:border-box;width:min(100%,480px);margin:12px auto 18px;border:0;border-radius:12px;background:transparent;color:#d2e5ec;text-align:left;font-size:14px;line-height:1.55;}
html body #stopwatchCard .location-safari-help>summary{display:block;list-style:none;padding:12px 18px;border:1px solid #7da7ad;border-radius:10px;background:linear-gradient(#294b58,#203c49);box-shadow:inset 0 1px 0 #ffffff14,0 3px 0 #10232e;color:#d5eeef;font-size:15px;font-weight:500;text-align:center;cursor:pointer;}
html body #stopwatchCard .location-safari-help>summary::-webkit-details-marker{display:none;}
html body #stopwatchCard .location-safari-help>summary::marker{content:"";}
html body #stopwatchCard .location-safari-help>summary::after{content:none;}
html body #stopwatchCard .location-safari-help>summary:hover{background:linear-gradient(#325967,#294955);border-color:#a3c8cc;}
html body #stopwatchCard .location-safari-help>summary:active{transform:translateY(2px);box-shadow:inset 0 2px 4px #07182055;}
html body #stopwatchCard .location-safari-help>summary:focus-visible{outline:2px solid #a3dcd8;outline-offset:2px;border-radius:10px;}
html body #stopwatchCard .location-safari-help>div{margin-top:12px;padding:14px;border:1px solid #638f98;border-radius:10px;background:#172e3b;}
html body #stopwatchCard .location-safari-help p{margin:0 0 10px;}
html body #stopwatchCard .location-safari-help p:last-child{margin-bottom:0;}
html body #stopwatchCard .location-safari-help ol{margin:0 0 12px;padding-left:22px;}
html body #stopwatchCard .location-safari-help li+li{margin-top:9px;}
html body #stopwatchCard .location-safari-help a{color:#a9d5f5;text-decoration:underline;}

/* Distinct title/icon accents for the two timing tools. */
html body #stopwatchCard > :is(h2,.timer-title-icon){color:#86cfff;-webkit-text-fill-color:currentColor;}
html body #timerCard > :is(h2,.timer-title-icon){color:#a5baff;-webkit-text-fill-color:currentColor;}

html body #stopwatchCard .location-simulation-status[data-running="true"] strong{border-color:#82d59b;}
