/* =========================================================================
   Lotus Athlete: Tools (hub + individual calculators)
   Builds on the tokens defined in styles.css.
   ========================================================================= */
.tools-main { max-width: 1180px; margin: 0 auto; padding: 40px 28px 40px; min-height: 70vh; outline: none; }

/* ---------- hub ---------- */
.hub-hero { position: relative; padding: 18px 0 30px; }
.hub-hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 500; text-transform: uppercase; letter-spacing: -.01em; }
.hub-hero .lede { margin: 18px 0 0; }
.hub-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--faint); }
.hub-meta li { display: flex; align-items: center; gap: 8px; }
.hub-meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.hub-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 26px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tool-card { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); transition: border-color .25s, transform .25s, box-shadow .25s; animation: rise .35s ease both; }
.tool-card:hover { border-color: rgba(76,195,178,.45); transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgba(76,195,178,.5); }
.tool-card .tc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.tool-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; color: var(--teal); background: var(--teal-glow); border: 1px solid rgba(76,195,178,.25); }
.tool-ic svg { stroke-width: 1.7; }
.tool-card h2 { font-size: 21px; font-weight: 500; margin-bottom: 8px; }
.tool-card p { margin: 0 0 20px; font-size: 14.5px; color: var(--muted); flex: 1; }
.tool-card .open { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.tool-card:hover .open span { transform: translateX(3px); }
.tool-card .open span { transition: transform .2s; }
.tool-card .badge-local { position: absolute; top: 24px; right: 24px; }

.guide-banner { display: flex; align-items: center; gap: 18px; margin: 0 0 26px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid rgba(76,195,178,.3); background: linear-gradient(120deg, rgba(76,195,178,.12), rgba(29,69,150,.18)); transition: border-color .2s; }
.guide-banner:hover { border-color: var(--teal); }
.guide-banner div { flex: 1; }
.guide-banner b { display: block; font: 500 18px var(--font-display); margin-bottom: 4px; }
.guide-banner div span { font-size: 14px; color: var(--muted); }
.guide-banner .open { display: inline-flex; gap: 8px; font: 600 12px var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); white-space: nowrap; }
@media (max-width: 720px) { .guide-banner { flex-direction: column; align-items: flex-start; } }

/* ---------- tool view ---------- */
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding-right: 10px; font: 500 12px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
.back-link:hover { color: var(--teal); }
.tool-head { margin-bottom: 28px; }
.tool-head h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 500; text-transform: uppercase; margin-top: 14px; }
.tool-head .lede { margin: 14px 0 0; font-size: 17px; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.tool-layout.single { grid-template-columns: 1fr; }
.tool-layout > * { min-width: 0; } /* lets wide tables scroll inside their box instead of stretching the column */
.tool-layout.wide-left { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.panel { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.panel + .panel { margin-top: 18px; }
.panel-title { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 500 13px var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.panel-title .step { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 500 11px var(--font-mono); color: var(--teal); background: var(--teal-glow); }
.sticky-result { position: sticky; top: calc(var(--header-h) + 20px); }

/* ---------- form controls ---------- */
.t-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.t-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.t-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.t-grid .full { grid-column: 1 / -1; }
.t-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.t-label { font: 500 10.5px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.t-hint { font-size: 12px; color: var(--faint); }
.t-input { position: relative; display: flex; align-items: center; }
.t-input input, .t-input select, .t-field select, .t-field textarea, .t-field input[type="text"], .t-field input[type="date"], .t-field input[type="datetime-local"] {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 500 15px var(--font-body); outline: none; transition: border-color .2s, box-shadow .2s; -moz-appearance: textfield; }
.t-input input::-webkit-outer-spin-button, .t-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.t-field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aabc4' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
.t-field select option { background: var(--bg-2); }
.t-input input:focus, .t-field select:focus, .t-field textarea:focus, .t-field input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); }
.t-input em { position: absolute; right: 14px; font-style: normal; font-size: 13px; color: var(--faint); pointer-events: none; }
.t-input input.has-suffix { padding-right: 52px; }
.t-field textarea { min-height: 76px; resize: vertical; }
.t-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); }
.seg button { flex: 1 1 auto; padding: 9px 12px; border: 0; border-radius: 8px; background: none; font: 500 13px var(--font-body); color: var(--muted); transition: all .2s; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.is-on { background: linear-gradient(135deg, var(--teal), var(--teal-2)); color: #03201c; }
.seg.wrap button { flex: 1 1 calc(50% - 6px); white-space: normal; }

.t-range { display: flex; align-items: center; gap: 14px; }
.t-range input { flex: 1; accent-color: var(--teal); height: 4px; }
.t-range output { min-width: 64px; text-align: right; font: 500 15px var(--font-display); color: var(--teal); }

.t-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn-block { width: 100%; padding: 15px 22px; }
.btn-danger { border-color: rgba(242,120,108,.4); color: var(--coral); }
.btn-danger:hover { border-color: var(--coral); color: var(--coral); }
button.btn { cursor: pointer; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- results ---------- */
.result-hero { text-align: center; padding: 8px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.result-hero .label { font: 500 11px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.result-hero .big { display: block; margin: 10px 0 6px; font: 500 clamp(44px, 6vw, 64px)/1 var(--font-display); color: var(--teal); }
.result-hero .big small { font-size: .4em; color: var(--muted); margin-left: 6px; }
.result-hero .sub { color: var(--muted); font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 20px; }
.kpi { padding: 16px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); text-align: center; }
.kpi strong { display: block; font: 500 24px/1.1 var(--font-display); color: var(--text); }
.kpi strong.accent { color: var(--teal); }
.kpi span { display: block; margin-top: 6px; font: 400 10.5px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.kpi em { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: var(--muted); }
.empty-result { text-align: center; padding: 40px 10px; color: var(--faint); }
.empty-result svg { font-size: 34px; color: var(--line-2); margin-bottom: 12px; }
.callout { margin: 16px 0 0; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(29,69,150,.18); border: 1px solid rgba(95,168,245,.25); font-size: 14px; color: #cdd8e8; }
.callout.warn { background: rgba(242,120,108,.07); border-color: rgba(242,120,108,.3); color: #e8d4d1; }
.callout.good { background: var(--teal-glow); border-color: rgba(76,195,178,.35); color: #d4eee9; }
.callout b { color: var(--text); }
.mini-table { width: 100%; min-width: 0; font-size: 13.5px; }
.mini-table td, .mini-table th { padding: 10px 12px; }
.mini-table td.n-r, .mini-table th.n-r { text-align: right; font-variant-numeric: tabular-nums; }
.mini-table.nowrap-first td:first-child { white-space: nowrap; }
.mini-table tr.hl td { background: var(--teal-glow); color: var(--text); }
.bar-row { display: grid; grid-template-columns: 130px 1fr 52px; gap: 12px; align-items: center; margin: 10px 0; font-size: 13.5px; }
.bar-row .track { display: block; height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.bar-row .fill { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--teal-2), var(--teal)); transition: width .5s ease; }
.bar-row .fill.low { background: linear-gradient(90deg, #c4554a, var(--coral)); }
.bar-row .fill.mid { background: linear-gradient(90deg, #c68630, var(--amber)); }
.bar-row b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.bullets { margin: 0; padding-left: 18px; color: #cdd8e8; font-size: 14px; }
.bullets li { margin: 6px 0; }
.sec-label { margin: 22px 0 10px; font: 500 11px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.shop-chip { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(76,195,178,.06); border: 1px solid rgba(76,195,178,.25); transition: border-color .2s; }
.shop-chip:hover { border-color: var(--teal); }
.shop-chip img { width: 40px; height: 40px; border-radius: 8px; background: #fff; object-fit: contain; padding: 3px; }
.shop-chip div { flex: 1; min-width: 0; }
.shop-chip b { display: block; font: 500 14px var(--font-display); }
.shop-chip small { color: var(--faint); font-size: 12px; }
.shop-chip strong { color: var(--teal); font: 500 16px var(--font-display); }
.shop-list { display: grid; gap: 8px; }

/* gauge */
.gauge { position: relative; height: 12px; border-radius: 6px; display: flex; overflow: hidden; margin: 24px 0 8px; }
.gauge span { height: 100%; }
.gauge-marker { position: relative; height: 0; }
.gauge-marker i { position: absolute; top: -30px; width: 3px; height: 20px; background: var(--text); border-radius: 2px; transform: translateX(-50%); box-shadow: 0 0 8px rgba(255,255,255,.6); transition: left .5s; }
.gauge-labels { display: flex; justify-content: space-between; font: 400 10.5px var(--font-mono); color: var(--faint); }

/* syringe */
.syringe { width: 100%; height: auto; margin: 8px 0 4px; }
.syringe .barrel { fill: rgba(255,255,255,.04); stroke: var(--line-2); stroke-width: 1.5; }
.syringe .liquid { fill: url(#liq); transition: width .4s ease; }
.syringe .tick { stroke: var(--muted); stroke-width: 1; }
.syringe .tick-lab { fill: var(--faint); font: 9px var(--font-mono); }

/* charts */
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--faint); font: 10px var(--font-mono); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* quiz */
.quiz-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.quiz-progress .track { flex: 1; height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.quiz-progress .fill { height: 100%; background: linear-gradient(90deg, var(--teal-2), var(--teal)); transition: width .35s ease; }
.quiz-progress span { font: 500 12px var(--font-mono); color: var(--faint); white-space: nowrap; }
.quiz-cat { font: 500 11px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.quiz-q { margin: 10px 0 22px; font: 500 clamp(22px, 3vw, 28px)/1.25 var(--font-display); }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opts button { text-align: left; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); font: 500 15px var(--font-body); color: var(--text); transition: all .2s; display: flex; align-items: center; gap: 14px; }
.quiz-opts button::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--line-2); transition: all .2s; }
.quiz-opts button:hover { border-color: var(--teal); }
.quiz-opts button.is-on { border-color: var(--teal); background: var(--teal-glow); }
.quiz-opts button.is-on::before { border-color: var(--teal); background: radial-gradient(circle, var(--teal) 0 45%, transparent 50%); }
.quiz-opts.multi button::before { border-radius: 5px; }
.quiz-opts.multi button.is-on::before { background: var(--teal); box-shadow: inset 0 0 0 3px var(--bg-2); }
.quiz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }
.intro-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.intro-feats div { padding: 16px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); }
.intro-feats b { display: block; font: 500 15px var(--font-display); margin-bottom: 4px; }
.intro-feats span { font-size: 13px; color: var(--faint); }

/* selectable cards (recovery modalities, manual stack) */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pick { text-align: left; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); transition: all .2s; position: relative; }
.pick:hover { border-color: rgba(76,195,178,.5); }
.pick.is-on { border-color: var(--teal); background: linear-gradient(180deg, rgba(76,195,178,.12), var(--bg-2)); }
.pick .chk { position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 12px; color: transparent; }
.pick.is-on .chk { background: var(--teal); border-color: var(--teal); color: #03201c; }
.pick h3 { font-size: 17px; font-weight: 500; margin: 6px 30px 10px 0; }
.pick dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0 0 10px; font-size: 12.5px; }
.pick dt { font: 500 9.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.pick dd { margin: 0; color: var(--text); }
.pick ul { margin: 0; padding-left: 16px; font-size: 13px; color: var(--muted); }
.eff { display: inline-flex; gap: 3px; }
.eff i { width: 6px; height: 12px; border-radius: 2px; background: var(--line-2); }
.eff i.on { background: var(--teal); }

/* score ring */
.ring { width: 170px; height: 170px; margin: 0 auto 6px; display: block; }
.ring .bg { stroke: var(--bg-2); }
.ring .fg { stroke: var(--teal); transition: stroke-dashoffset .8s ease; }
.ring text { fill: var(--text); font: 500 40px var(--font-display); }
.ring .of { fill: var(--faint); font: 400 12px var(--font-mono); }

/* week schedule */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.week .day { padding: 10px 8px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); min-height: 110px; }
.week .day b { display: block; font: 500 11px var(--font-mono); letter-spacing: .1em; color: var(--faint); margin-bottom: 8px; }
.week .day span { display: block; font-size: 11.5px; line-height: 1.3; padding: 4px 6px; margin-bottom: 4px; border-radius: 6px; background: var(--teal-glow); color: #d4eee9; }

/* timelines */
.timeline { position: relative; display: flex; height: 26px; border-radius: 8px; overflow: hidden; background: var(--bg-2); margin: 10px 0 6px; }
.timeline .on { background: linear-gradient(90deg, var(--teal-2), var(--teal)); }
.timeline .off { background: repeating-linear-gradient(45deg, rgba(150,185,230,.08) 0 6px, rgba(150,185,230,.03) 6px 12px); }
.timeline .seg-lab { display: flex; align-items: center; justify-content: center; font: 500 10px var(--font-mono); color: #03201c; overflow: hidden; white-space: nowrap; border-right: 1px solid rgba(5,13,28,.5); }
.timeline .off.seg-lab { color: var(--faint); }
.timeline .today { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #fff; box-shadow: 0 0 8px #fff; }
.cycle-card { padding: 18px 20px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.cycle-card + .cycle-card { margin-top: 12px; }
.cycle-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cycle-top h3 { font-size: 18px; font-weight: 500; }
.cycle-top p { margin: 4px 0 0; font-size: 13px; color: var(--faint); }
.status { font: 500 10.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; white-space: nowrap; }
.status.on { color: var(--teal); background: var(--teal-glow); }
.status.off { color: var(--amber); background: rgba(240,168,74,.12); }
.status.done { color: var(--faint); background: rgba(255,255,255,.04); }
.status.soon { color: var(--sky); background: rgba(95,168,245,.12); }
.cycle-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; font: 500 12px var(--font-body); color: var(--faint); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--coral); }

/* timers */
.timer-tabs { margin-bottom: 22px; }
.timer-face { position: relative; width: min(300px, 80vw); aspect-ratio: 1; margin: 6px auto 20px; display: grid; place-items: center; }
.timer-face svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-face .bg { stroke: var(--bg-2); }
.timer-face .fg { stroke: var(--teal); transition: stroke-dashoffset .25s linear; }
.timer-face .time { font: 500 clamp(44px, 9vw, 60px)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.timer-face .phase { margin-top: 8px; font: 500 12px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); text-align: center; }
.breath-orb { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(143,240,226,.5), rgba(76,195,178,.18) 60%, transparent 72%); transform: scale(.55); transition: transform 1s ease-in-out; }
.timer-center { position: relative; text-align: center; }
.timer-ctrl { display: flex; justify-content: center; gap: 10px; }

/* compare */
.cmp-table th:first-child, .cmp-table td:first-child { width: 160px; color: var(--faint); font: 500 10.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.cmp-table td { font-size: 13.5px; }
.cmp-table thead th { color: var(--text); font: 500 17px var(--font-display); letter-spacing: 0; text-transform: none; }
.swipe-hint { display: none; margin: 0 0 10px; }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.preset-grid button { text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); transition: border-color .2s; }
.preset-grid button:hover { border-color: var(--teal); }
.preset-grid b { display: block; font: 500 15px var(--font-display); }
.preset-grid span { font-size: 12.5px; color: var(--faint); }

/* chips (side effects) */
.chip-set { display: flex; flex-wrap: wrap; gap: 8px; }

/* checklist (guide) */
.check-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, opacity .2s; }
.check-steps li:hover { border-color: rgba(76,195,178,.4); }
.check-steps li .box { width: 30px; height: 30px; border-radius: 9px; border: 1.5px solid var(--line-2); display: grid; place-items: center; font: 500 13px var(--font-mono); color: var(--teal); }
.check-steps li.done .box { background: var(--teal); border-color: var(--teal); color: #03201c; }
.check-steps li.done h3 { text-decoration: line-through; text-decoration-color: var(--faint); color: var(--muted); }
.check-steps h3 { font-size: 16px; font-weight: 500; margin: 4px 0 4px; }
.check-steps p { margin: 0; font-size: 14px; color: var(--muted); }

.tools-foot { text-align: center; padding: 50px 20px 60px; border-top: 1px solid var(--line); margin-top: 40px; }
.tools-foot img { width: 54px; margin: 0 auto 12px; }
.tools-foot .fine { max-width: 620px; margin: 14px auto 10px; }
.signoff-name { margin: 0; font: 300 22px/1 var(--font-display); letter-spacing: .32em; color: var(--ice); }
.signoff-name b { font-weight: 500; color: var(--teal); }
.signoff-tag { margin: 12px 0 0; color: var(--muted); }
.signoff-meta { margin: 0; font-size: 13px; color: var(--faint); }

/* print: pace cards only */
@media print {
  body { background: #fff !important; color: #000; }
  .site-header, .tools-foot, .back-link, .tool-head .lede, .no-print, .progress { display: none !important; }
  .tools-main { padding: 0; }
  .panel { border: 1px solid #ccc; background: #fff; }
  table, td, th { color: #000 !important; background: #fff !important; border-color: #ccc !important; }
  .tool-layout { display: block; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .tool-layout, .tool-layout.wide-left { grid-template-columns: 1fr; }
  .sticky-result { position: static; }
}
@media (max-width: 720px) {
  .tools-main { padding: 24px 16px 24px; }
  /* 16px stops iOS Safari zooming in when an input is focused */
  .t-input input, .t-field select, .t-field textarea, .t-field input[type] { font-size: 16px; }
  .back-link { margin-bottom: 14px; }
  .panel { padding: 20px 16px; }
  .t-grid, .t-grid.three { grid-template-columns: 1fr 1fr; }
  .t-grid.four { grid-template-columns: 1fr 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .intro-feats { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 100px 1fr 44px; gap: 8px; }
  .week { grid-template-columns: 1fr; }
  .week .day { min-height: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .week .day b { width: 40px; margin: 0; }
  .week .day span { margin: 0; }
  .cmp-table th:first-child, .cmp-table td:first-child { width: 96px; }
  .cmp-table td:not(:first-child), .cmp-table th:not(:first-child) { min-width: 210px; }
  .swipe-hint { display: block; }
  .seg button { padding: 9px 10px; font-size: 12.5px; }
}
@media (max-width: 420px) {
  .t-grid, .t-grid.three { grid-template-columns: 1fr; }
}
