/*! Copyright 2014 The DM Sans Project Authors (https://github.com/googlefonts/dm-fonts)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded, 
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
*/
/*! Copyright 2017 The Barlow Project Authors (https://github.com/jpt/barlow)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded, 
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
*/
@font-face{font-family:"DM Sans";src:url("/_a/dm-sans.54a3316fba.woff2") format("woff2");font-weight:100 1000;font-display:swap}
@font-face{font-family:"Barlow Semi Condensed";src:url("/_a/barlow-semi-condensed-bold.7c0a2e6de6.woff2") format("woff2");font-weight:700;font-display:swap}
:root{--ink:#132235;--blue:#2459d3;--paper:#f5f7f8;--muted:#516273;--line:#ced7df;--display:"Barlow Semi Condensed","Arial Narrow",sans-serif;--sans:"DM Sans",Arial,sans-serif;color-scheme:light;scroll-padding-top:1rem}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);font:1rem/1.5 var(--sans);color:var(--ink);-webkit-text-size-adjust:100%}
a{color:var(--blue);text-underline-offset:3px}
button,input,select{font:inherit;color:inherit}
button,select{cursor:pointer}
button{touch-action:manipulation}
button:disabled{opacity:.48;cursor:default}
:focus-visible{outline:3px solid #1676dd;outline-offset:3px}
[hidden]{display:none!important}
.frame{max-width:1160px;width:calc(100% - clamp(32px,8vw,112px));margin-inline:auto}
.site-header{background:#fff;border-bottom:1px solid var(--line)}
.header-row{min-height:72px;display:flex;align-items:center;gap:2.5rem}
.wordmark{display:inline-flex;align-items:center;gap:10px;font-family:var(--display);font-size:2rem;line-height:1;font-weight:700;letter-spacing:-.045em;text-decoration:none;color:var(--ink)}
.brandmark{width:33px;height:30px;display:inline-flex;gap:3px;align-items:center;justify-content:center;overflow:hidden;transform:skewX(-19deg)}
.brandmark i{position:relative;display:block;width:6px;background:var(--blue);height:16px;align-self:flex-end; margin-bottom:2px}
.brandmark i:nth-child(2){height:22px}.brandmark i:last-child{height:28px}
.page-nav{display:flex;align-self:stretch;align-items:stretch;gap:1.75rem;margin-left:auto}
.page-nav a,.jump-card,.foot>a:last-child{display:inline-flex;align-items:center;text-decoration:none;color:var(--muted);font-size:.93rem;font-weight:640}
.page-nav a{border-bottom:3px solid transparent;padding-top:3px}
.page-nav a.active{color:var(--blue);border-bottom-color:var(--blue)}
.page-nav a:hover,.foot>a:hover{color:var(--blue)}
.jump-card{padding:0 1rem;min-height:40px;background:#edf2f9;border:1px solid #d4dfef;gap:9px;color:#264269;border-radius:5px}
.jump-card:hover{background:#dfeafa}
.card-icon{height:14px;width:18px;border:1.6px solid;border-radius:2px;position:relative}
.card-icon:after{content:"";position:absolute;left:3px;right:3px;top:3px;height:1.5px;background:currentColor;box-shadow:0 3.5px currentColor}
.intro{padding:clamp(34px,4.6vw,60px) 0 clamp(22px,2.4vw,32px)}
h1,h2,h3,p,dl,dd{margin:0}
.intro h1,.section-intro h2{font-family:var(--display);font-weight:700;letter-spacing:-.036em;line-height:1.01}
.intro h1{font-size:clamp(2.7rem,5.1vw,4.3rem);text-wrap:balance}
.blue-period{color:var(--blue)}
.intro p,.section-intro p{margin-top:10px;color:var(--muted);font-size:1.03rem}
.console{display:grid;grid-template-columns:.88fr 1.12fr;border:1px solid #bdcad7;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 4px 12px #13223506}
.input-panel,.result-panel{padding:clamp(22px,2.65vw,36px)}
.input-panel{display:flex;flex-direction:column;justify-content:center}
.section-label{font-weight:720;font-size:1rem;line-height:1.2}
.unit-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:3px;padding:4px;background:#edf0f4;border-radius:6px;margin:14px 0 16px}
.unit-tabs button{border:0;border-radius:4px;padding:.4rem .15rem;min-height:44px;font-size:.95rem;color:#425367;font-weight:640;background:transparent}
.unit-tabs button[aria-pressed=true]{color:white;background:var(--blue);box-shadow:0 1px 3px #142e7a30}
.unit-tabs button:hover:not([aria-pressed=true]){background:#dfe5ec}
.value-box{display:flex;align-items:baseline;gap:.75rem;border-bottom:2px solid #294366;padding:0 0 4px}
.value-box:focus-within{border-color:var(--blue)}
.value-box:has([aria-invalid=true]){border-color:#9a4316}
.value-box input{min-width:0;max-width:100%;width:100%;border:0;background:transparent;font:700 clamp(3rem,4.8vw,4.2rem)/1.12 var(--display);font-variant-numeric:tabular-nums;letter-spacing:-.025em;padding:0}
.value-box input:focus-visible{outline:0}
.value-box:has(input:focus-visible){box-shadow:0 2px var(--blue)}
.value-unit{color:#52657a;font-weight:620;font-size:1.2rem;white-space:nowrap}
.input-step-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}
#input-help{color:var(--muted);font-size:.9rem}
#input-help.is-error{color:#973e12;font-weight:600}
.nudge{display:flex;gap:3px}
.nudge button{border:1px solid #ccd6df;border-radius:5px;background:white;width:40px;min-height:36px;font-size:1.25rem;line-height:1}
.nudge button:hover{background:#edf3fb}
.result-panel{background:#143f92;color:white;position:relative;overflow:hidden;isolation:isolate;display:flex;align-items:stretch}
.result-panel:before{content:"";position:absolute;inset:0;z-index:-2;background-image:linear-gradient(118deg,#173d8c 15%,#164baf 83%)}
.track{position:absolute;width:284px;height:164px;right:-70px;top:-36px;transform:rotate(-32deg);z-index:-1;opacity:.75;pointer-events:none}
.track i{position:absolute;inset:0;border:1.4px solid #9bc9fd;border-radius:99px}
.track i:nth-child(2){inset:7px}.track i:nth-child(3){inset:14px}.track i:nth-child(4){inset:21px;border-color:#bafbc8;border-width:3px}.track i:nth-child(5){inset:28px}.track i:nth-child(6){inset:35px}.track i:nth-child(7){inset:42px}
.track b{position:absolute;top:0;left:43%;width:1px;height:43px;background:#b1d0f1}
.readings{position:relative;align-self:center;width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px}
.readings dt{font-size:.875rem;color:#e2edff;line-height:1.3}
.readings dd{margin-top:3px;font-variant-numeric:tabular-nums}
.readings dd b{font:700 clamp(1.5rem,2.1vw,2rem)/1.15 var(--display);overflow-wrap:anywhere}
.readings dd span{font-size:.875rem;color:#edf5ff;white-space:nowrap}
.readings>div:first-child{grid-column:1/-1;border-bottom:1px solid #ffffff48;padding-bottom:16px}
.readings>div:first-child dt{font-weight:720;font-size:1rem;color:#f0f5ff}
.readings>div:first-child dd{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;margin-top:7px}
.readings>div:first-child b{font-size:clamp(4.25rem,7vw,6rem);line-height:1;letter-spacing:-.045em;color:#d2f9ce}
.readings>div:first-child dd span{font-size:1.25rem;font-weight:550}
.result-panel:focus-visible{outline-offset:-4px;outline-color:#d2f9ce}
.machine-box{display:grid;grid-template-columns:minmax(235px,1.1fr) minmax(300px,1.55fr) auto;grid-template-areas:"heading fields action" "belt fields action" "warning warning warning";align-items:center;column-gap:24px;margin-top:14px;padding:20px clamp(18px,2.65vw,36px);background:white;border:1px solid var(--line);border-radius:10px}
.machine-caption{grid-area:heading;display:flex;align-items:center;gap:10px}
.belt-info{grid-area:belt;margin-top:7px}
.machine-fields{grid-area:fields;display:grid;align-items:end;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#add-conversion{grid-area:action;justify-self:end}
.machine-caption h2{font-family:var(--display);font-size:1.5rem;letter-spacing:-.02em;line-height:1.1}
.settings-icon{display:flex;width:24px;flex-direction:column;gap:5px}
.settings-icon i{height:2px;background:#516782;position:relative}
.settings-icon i:before{content:"";position:absolute;top:-2px;left:5px;width:4px;height:6px;background:#516782;border-radius:1px}.settings-icon i:nth-child(2):before{left:16px}.settings-icon i:last-child:before{left:9px}
.machine-fields label{display:flex;flex-direction:column;gap:4px;color:#405467;font-size:.875rem;font-weight:630;min-width:0}
.machine-fields select,.unit-field{background-color:#fff;border:1px solid #c3cdd7;border-radius:5px;height:44px}
select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#586d80 50%),linear-gradient(135deg,#586d80 50%,transparent 50%);background-position:calc(100% - 17px) 51%,calc(100% - 12px) 51%;background-size:5px 5px;background-repeat:no-repeat}
.machine-fields select{padding:0 28px 0 11px;color:var(--ink);font-size:1rem}
.unit-field{display:flex;align-items:center;gap:4px;padding:0 10px;font-weight:500;font-size:.875rem}
.unit-field:focus-within{outline:2px solid var(--blue);outline-offset:1px}
.unit-field input{width:100%;min-width:0;border:0;background:transparent;outline:none;color:var(--ink);font-size:1rem;padding:0;font-variant-numeric:tabular-nums}
.belt-heading{font-size:1.04rem;font-weight:550}.belt-heading strong{color:#15513c;font-weight:750}
#belt-detail{font-size:.875rem;color:var(--muted);margin-top:1px}
.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border:0;border-radius:6px;padding:8px 17px;background:var(--blue);color:white;font-size:.94rem;font-weight:650;white-space:nowrap}
.primary-button:hover:not(:disabled){background:#1948b2}
.primary-button span{font-size:1.25rem;line-height:1}
.warning{grid-area:warning;margin:12px 0 0;padding:8px 12px;color:#793600;background:#fff0d6;border-left:3px solid #a8540b;font-size:.94rem}
#builder,#pace-chart{padding-top:clamp(36px,4.4vw,60px)}
.section-intro{margin-bottom:20px}
.section-intro h2{font-size:clamp(2.2rem,3.4vw,2.85rem)}
.section-intro p{margin-top:7px}
.reference-layout{display:grid;grid-template-columns:1.04fr .96fr;gap:clamp(20px,4vw,56px);align-items:start}
.chart-references{min-width:0}
.chart-switch{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:3px;padding:4px;margin-bottom:12px;background:#e7ecf1;border-radius:7px}
.chart-switch button{min-height:44px;padding:4px;border:0;border-radius:4px;background:transparent;color:#425367;font-weight:650;font-size:.94rem}
.chart-switch button[aria-pressed=true]{background:var(--blue);color:white}
.chart-switch button:hover:not([aria-pressed=true]){background:#d7e0e8}
.chart-box+.chart-box{margin-top:12px}
.chart-switch:not([hidden])~.chart-box{margin-top:0}
.chart-box caption{text-align:left;font-weight:700;color:var(--ink);padding:12px clamp(9px,1.8vw,25px);line-height:1.3}
.chart-box{background:white;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.chart-box table{border-collapse:collapse;width:100%;text-align:right;font-variant-numeric:tabular-nums}
.chart-box th,.chart-box td{padding:8px clamp(9px,1.8vw,25px);border-bottom:1px solid #dfe5ea}
.chart-box thead{background:#eaf0f6;color:#324b68;font-size:.9rem}
.chart-box tr:last-child td,.chart-box tr:last-child th{border-bottom:0}
.chart-box tbody th{padding-block:0}
.chart-box tbody tr.current{background:#edf4ff}
.chart-box .chart-speed{border:0;background:none;color:var(--blue);padding:0;text-decoration:underline;text-underline-offset:3px;display:inline-flex;align-items:center;justify-content:flex-end;min-width:44px;min-height:44px;font-weight:700}
.chart-box .chart-speed[aria-current]{color:#153a85}
.static-note{margin-bottom:1rem}
.formula-note h3{font-size:1.2rem;line-height:1.3;letter-spacing:-.02em;margin:0 0 8px}
.formula-note p{font-size:1rem;color:#41546a;margin-bottom:10px}.formula-note p+h3{margin-top:24px}
.foot{margin-top:54px;padding:24px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}
.foot .wordmark{font-size:1.5rem}.foot .brandmark{transform:skewX(-19deg) scale(.76);transform-origin:left center;margin-right:-5px}
.skip,.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.skip:focus{width:auto;height:auto;padding:10px;margin:5px;clip-path:none;background:white;z-index:20}
@media(max-width:970px){.machine-box{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"heading action" "belt action" "warning warning" "fields fields"}.machine-fields{margin-top:14px;padding-top:12px;border-top:1px solid #dce3e9}}
@media(max-width:820px){.frame{width:calc(100% - 40px)}.header-row{gap:20px}.page-nav{gap:18px}.machine-fields{grid-template-columns:1fr 1fr 1fr;gap:12px}.readings>div:not(:first-child) dd span{display:block}.result-panel,.input-panel{padding:22px}.track{right:-125px;top:-48px}}
@media(max-width:620px){.frame{width:calc(100% - 32px)}.header-row{min-height:auto;display:grid;grid-template-columns:1fr auto;gap:0;padding-top:12px}.wordmark{font-size:1.8rem}.page-nav{grid-row:2;grid-column:1/-1;margin:6px 0 0;gap:24px}.page-nav a{min-height:44px;font-size:.89rem}.jump-card{min-height:40px;padding:0 10px}.intro{padding:27px 0 19px}.intro h1{font-size:clamp(2.35rem,8.5vw,3rem)}.intro p{font-size:1rem;max-width:34rem;line-height:1.45;margin-top:6px}.console{grid-template-columns:1fr}.input-panel{padding:18px 20px 13px}.unit-tabs{margin:10px 0}.value-box input{font-size:3rem}.nudge button{width:44px;min-height:44px}.result-panel{padding:18px 20px}.readings{row-gap:10px}.readings>div:first-child{padding-bottom:9px}.readings>div:first-child dd{margin-top:3px}.readings>div:first-child b{font-size:4.2rem}.readings>div:not(:first-child) dd span{display:inline}.track{width:220px;height:138px;top:-47px;right:-112px;opacity:.62}.machine-box{padding:16px 14px;grid-template-columns:minmax(0,1fr);grid-template-areas:"heading" "belt" "warning" "fields" "action";column-gap:0}.machine-fields{gap:10px}.machine-box .primary-button{justify-self:stretch;margin-top:12px}.machine-fields label{font-size:.82rem}.unit-field{padding:0 8px}.reference-layout{grid-template-columns:1fr}.foot{margin-top:34px}.intro p,.section-intro p{text-wrap:pretty}.section-intro{margin-bottom:15px}}
@media(max-width:365px){.readings>div:not(:first-child) dd span{display:block}.unit-field .machine-unit-label{font-size:.75rem}.machine-fields{gap:7px}.page-nav{gap:17px}.frame{width:calc(100% - 24px)}}
@media print{body{background:#fff;color:#111}.site-header,#converter,#pace-chart,.foot,.skip,#builder>.section-intro{display:none!important}.frame,main.frame,#builder,#workout-app{width:100%;max-width:none;padding:0;margin:0;border:0}}

#workout-app {
  --sd-ink: #132235;
  --sd-soft: #42566d;
  --sd-key: #2459d3;
  --sd-line: #cfd8e2;
  --sd-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  color: var(--sd-ink);
  container: workout / inline-size;
  line-height: 1.45;
}
#workout-app *, #workout-app *::before, #workout-app *::after { box-sizing: border-box; }
#workout-app [hidden] { display: none !important; }
#workout-app .sd-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sd-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 1.25rem; }
.sd-editor, .sd-card { min-width: 0; background: #fff; border: 1px solid var(--sd-line); border-radius: 10px; }
.sd-editor { padding: clamp(.875rem, 2.5vw, 1.625rem); }
.sd-editor-head, .sd-editor-foot, .sd-add, .sd-card-line, .sd-column-head {
  display: flex; justify-content: space-between; align-items: center; gap: .625rem;
}
.sd-editor-head { margin-bottom: .25rem; }
.sd-name-row, .sd-card-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.sd-name-row { min-height: 42px; }
.sd-name-row .sd-label { margin: 0; }
#sd-editor-title { scroll-margin-top: 1.5rem; }
#workout-app h3, #workout-app p { margin: 0; }
.sd-editor h3 { font-size: 1.25rem; letter-spacing: -.035em; }
#workout-app button, #workout-app select, #workout-app input, .sd-menu summary {
  font: inherit; color: var(--sd-ink); line-height: 1.25;
}
#workout-app :is(button, summary, a, select, input):focus-visible {
  outline: 3px solid var(--sd-key); outline-offset: 2px;
}
#workout-app input, #workout-app select {
  width: 100%; min-width: 0; min-height: 44px; border: 1px solid #b9c6d4;
  margin: 0; border-radius: 5px; background-color: #fff; font-size: 1rem; padding: .55rem .6rem;
}
#workout-app select {
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23384e67' stroke-width='1.7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .55rem center; background-size: .65rem auto;
  padding-right: 1.5rem; cursor: pointer;
}
.sd-label { display: block; color: var(--sd-soft); font-size: .875rem; font-weight: 600; margin-bottom: .25rem; }
#workout-app button, .sd-menu summary, .sd-jump {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  border: 1px solid var(--sd-line); border-radius: 5px; padding: .5rem .75rem;
  background: #fff; font-size: .9375rem; font-weight: 650; cursor: pointer;
}
#workout-app button:hover:not(:disabled), .sd-menu summary:hover, .sd-jump:hover { background-color: #eef4fb; }
#workout-app .sd-text-button, .sd-jump {
  border-color: transparent; color: var(--sd-key); padding: .4rem .5rem; text-decoration: none;
}
#sd-blocks { display: grid; gap: .625rem; margin: 1.125rem 0 .875rem; }
.sd-step { container: step / inline-size; min-width: 0; padding: .625rem .875rem .875rem; border: 1px solid var(--sd-line); border-radius: 6px; background: #fff; }
.sd-step-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .125rem; }
#workout-app .sd-role { width: auto; border-color: transparent; background-color: transparent; background-position: right .25rem center; padding-left: 0; padding-right: 1.25rem; font-weight: 750; }
.sd-menu { position: relative; display: inline-block; margin-left: auto; }
.sd-menu summary { list-style: none; border-color: transparent; width: 44px; padding: 0; }
.sd-menu summary span { font-size: 1.375rem; letter-spacing: .065em; line-height: 1; }
.sd-menu summary::-webkit-details-marker { display: none; }
.sd-menu-items { position: absolute; top: 100%; right: 0; z-index: 3; padding: .25rem; min-width: 9.5rem; background: #fff; border: 1px solid var(--sd-line); border-radius: 6px; box-shadow: 0 5px 13px #17294222; }
#workout-app .sd-menu-items button { display: flex; justify-content: start; width: 100%; border: 0; background: #fff; }
#workout-app button:disabled { cursor: default; opacity: .5; }
.sd-fields {
  display: grid; align-items: end; grid-template-columns: minmax(3.5rem, 1fr) minmax(4.5rem, .95fr) minmax(3.5rem, 1fr) minmax(4.5rem, .95fr);
  gap: 0;
}
.sd-group, .sd-unit-label, .sd-paired { display: block; min-width: 0; margin: 0; }
.sd-fields .sd-group:nth-child(3) { margin-left: .6rem; }
#workout-app .sd-fields input { font-family: var(--sd-mono); border-radius: 5px 0 0 5px; }
#workout-app .sd-fields select {
  border-radius: 0 5px 5px 0; border-left: 0; background-color: #f3f6f9; padding-left: .4rem;
  font-size: .875rem; background-position: right .4rem center; padding-right: 1.2rem;
}
#workout-app input[aria-invalid="true"] { border-color: #ad4c1c; box-shadow: inset 2px 0 #ad4c1c; }
#workout-app .sd-err { color: #923c11; margin-top: .5rem; font-size: .875rem; }
.sd-repeat { min-width: 0; border: 1px solid #a2b9e3; border-radius: 6px; background: #f1f6ff; }
.sd-repeat-head { display: flex; align-items: center; gap: .4rem; padding: .4rem .875rem; }
.sd-repeat-label { font-size: 1rem; font-weight: 750; }
#workout-app .sd-repeat-head input { width: 3.25rem; text-align: center; font-family: var(--sd-mono); }
.sd-repeat-times { font-size: .9375rem; }
.sd-repeat-head summary { background-color: transparent; }
.sd-repeat-body { display: grid; gap: .5rem; padding: .15rem .625rem .3rem; }
.sd-repeat-body .sd-step { padding-top: .3rem; }
.sd-repeat-body > .sd-text-button { justify-self: start; }
#workout-app .sd-repeat-err { margin: .1rem .875rem .5rem; }
.sd-add { flex-wrap: wrap; justify-content: flex-start; }
#workout-app .sd-add button { color: #204fa9; }
.sd-editor-foot { margin-top: .75rem; border-top: 1px solid var(--sd-line); padding-top: .6rem; flex-wrap: wrap; }
#sd-save { font-size: .8125rem; color: var(--sd-soft); }
#workout-app .sd-transfer-note {
  margin: 0 0 .65rem; padding: .45rem .65rem; color: #1f5544; background: #e5f5e9;
  border-left: 3px solid #4d997a; font-size: .875rem; font-weight: 600;
}
#workout-app .sd-empty { padding: 1rem .75rem; font-size: .9375rem; color: var(--sd-soft); background: #f3f6f9; border-radius: 5px; }
.sd-card-wrap { min-width: 0; }
.sd-card { scroll-margin-top: 1rem; overflow: hidden; }
.sd-card-head { background: #172c48; color: #fff; padding: 1.3125rem clamp(.9rem, 3vw, 1.5rem); border-top: 4px solid #8fdfac; }
.sd-card-kicker { color: #bfedce; font-family: var(--sd-mono); text-transform: uppercase; font-size: .8125rem; letter-spacing: .09em; font-weight: 650; }
#workout-app .sd-card-head h3 { color: #fff; font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere; margin: .4rem 0 .2rem; }
#workout-app .sd-total { font-family: var(--sd-mono); font-size: .875rem; margin-top: .6rem; color: #d2dfeb; }
#workout-app .sd-machine { padding: .7rem clamp(.875rem, 3vw, 1.5rem); font-size: .875rem; font-weight: 600; background: #eff5f4; color: #2c4e49; border-bottom: 1px solid #dce5e3; }
#workout-app .sd-card-message { color: #853a10; background: #fff5e9; padding: .75rem 1rem; }
#workout-app .sd-return { color: #d2eaff; background: transparent; }
#workout-app .sd-return:hover { background-color: #274058; }
#workout-app .sd-fix { min-height: 44px; margin-top: .3rem; border-color: #dbb48e; background: #fff; color: #783407; }
.sd-column-head { padding: .875rem clamp(.875rem, 3vw, 1.5rem) .3rem; color: var(--sd-soft); font-size: .8125rem; font-weight: 650; }
.sd-card-sequence { padding: 0 clamp(.875rem, 3vw, 1.5rem) .7rem; }
.sd-card-step { padding: .8rem 0; border-top: 1px dashed #becad7; }
.sd-card-line { align-items: start; }
.sd-card-line > div { min-width: 0; }
.sd-role-name, .sd-length { display: block; }
.sd-role-name { font-size: 1rem; font-weight: 750; }
.sd-length { color: var(--sd-soft); font-family: var(--sd-mono); font-size: .875rem; margin-top: .025rem; }
.sd-speed { color: #143d59; font-family: var(--sd-mono); font-size: 1.375rem; font-weight: 750; white-space: nowrap; line-height: 1.25; }
.sd-speed small { font-size: .8125rem; font-weight: 600; }
.sd-card-detail { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; color: #48596b; font-size: .8125rem; margin-top: .4rem; }
.sd-actual b { color: #273b50; font-weight: 650; }
#workout-app .sd-limit { color: #843600; padding: .375rem .5rem; border-left: 3px solid #b95713; background: #fff4e4; font-size: .875rem; margin-top: .4rem; }
.sd-card-repeat { border-left: 2px solid #86adab; background: #f7faf9; padding: .55rem .625rem 0; margin: .125rem 0 .375rem; }
#workout-app .sd-rounds { color: #245853; font-family: var(--sd-mono); font-size: .875rem; font-weight: 700; padding-bottom: .45rem; }
#workout-app .sd-print { display: flex; margin-top: .65rem; width: 100%; gap: .5rem; background: #2459d3; color: #fff; border-color: #2459d3; font-size: 1rem; }
#workout-app .sd-print:hover:not(:disabled) { background-color: #1848bb; }
@container workout (min-width: 900px) {
  .sd-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: clamp(1.125rem, 2.7vw, 2.5rem); }
  .sd-jump { display: none; }
}
@container step (max-width: 335px) {
  .sd-fields { grid-template-columns: minmax(0, 1fr) minmax(5.1rem, .85fr); row-gap: .45rem; }
  .sd-fields .sd-group:nth-child(3) { margin-left: 0; }
}
@media print {
  @page { margin: .55in .6in; }
  #workout-app { container-type: normal; color: #111; }
  #workout-app .sd-layout { display: block; }
  #workout-app .sd-editor, #workout-app .sd-print, #workout-app .sd-jump, #workout-app .sd-fix, #sd-feedback { display: none !important; }
  #workout-app .sd-card { overflow: visible; max-width: none; border: 0; border-radius: 0; }
  #workout-app .sd-card-head { background: white; color: #111; border-top: 2px solid #111; padding: .45rem 0; }
  #workout-app .sd-card-head h3, #workout-app .sd-card-kicker, #workout-app .sd-total,
  #workout-app .sd-speed, #workout-app .sd-limit { color: #111; }
  #workout-app .sd-card-head h3 { font-size: 21pt; }
  #workout-app .sd-machine { padding: .35rem 0; }
  #workout-app .sd-column-head { padding: .4rem 0 .15rem; }
  #workout-app .sd-card-sequence { padding: 0; }
  #workout-app .sd-card-step { break-inside: avoid; page-break-inside: avoid; padding: .35rem 0; }
  #workout-app .sd-card-repeat { border-color: #555; }
  #workout-app .sd-rounds, #workout-app .sd-column-head, #workout-app .sd-card-head { break-after: avoid; }
  #workout-app .sd-card-detail { font-size: 10pt; }
  #workout-app .sd-speed { font-size: 16pt; }
}
