/* CBJP coach tools: shared styles (copied from the Engine Plan Builder). New coach pages link this file. */
/* Layout: brand-locked dark, client-facing utility. Macro inputs on top, a full day of meals with swaps, macro bars at the foot. */
:root {
  --ink:#070707; --panel:#111110; --line:#262522;
  --bone:#ECEAE4; --stone:#A69D90; --dust:#8a847a; --soft:#cfccc5;
  --display:"Exo 2","Arial Narrow",system-ui,sans-serif;
  --body:"Barlow","Helvetica Neue",Arial,sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--ink); color: var(--bone); font-family: var(--body); font-size: 17px; line-height: 1.6; }
.wrap { max-width: 720px; margin: 0 auto; padding-block: 24px 72px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 32px; }
.log { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.log img { height: 34px; width: auto; display: block; }
.log span { font-family: var(--display); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--dust); text-align: right; }
h1, h2, h3 { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(38px, 8.5vw, 68px); font-weight: 900; line-height: .92; }
h1 span, h2 span { color: var(--stone); }
h2 { font-size: clamp(28px, 6vw, 40px); }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; max-width: 62ch; }
.lede { font-size: 19px; color: var(--soft); }
.eyebrow { font-family: var(--display); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--stone); display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--stone); flex: none; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.section { display: flex; flex-direction: column; gap: 18px; padding-top: 28px; border-top: 1px solid var(--line); }
.section > p { color: var(--soft); }
.panel { background: var(--panel); border: 1px solid var(--line); padding: 20px; display: grid; gap: 18px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label, .lbl { font-family: var(--display); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); }
select, input { font: 500 18px var(--body); padding: 12px; border: 1px solid var(--line); background: var(--ink); color: var(--bone); width: 100%; border-radius: 0; min-width: 0; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--stone) 50%), linear-gradient(135deg, var(--stone) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
.time { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
.time div { position: relative; }
.time input { text-align: center; padding-right: 22px; }
.time small { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--dust); font-size: 12px; pointer-events: none; }
.seg { display: flex; border: 1px solid var(--line); width: max-content; max-width: 100%; flex-wrap: wrap; }
.seg button { appearance: none; border: 0; background: transparent; color: var(--dust); font: italic 700 13px var(--display); letter-spacing: .12em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; }
.seg button.on { background: var(--bone); color: var(--ink); }
.err { color: var(--bone); border-left: 2px solid var(--stone); padding-left: 12px; font-size: 15px; }
.btn { appearance: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; font-family: var(--display); font-weight: 700; font-style: italic; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--bone); background: var(--bone); color: var(--ink); transition: background .15s, border-color .15s; }
.btn:hover { background: var(--stone); border-color: var(--stone); }
.btn.ghost { background: transparent; color: var(--bone); }
.btn.ghost:hover { background: var(--panel); }
.btn:focus-visible, select:focus-visible, input:focus-visible, .seg button:focus-visible, a:focus-visible { outline: 2px solid var(--stone); outline-offset: 3px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.score { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 22px; align-items: end; }
.score .num { font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(80px, 18vw, 116px); line-height: .82; font-variant-numeric: tabular-nums; }
.score .band { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1.05; }
.score p { color: var(--soft); font-size: 16px; }
.compare { font-size: 14px; color: var(--dust); }
.paces { display: flex; flex-direction: column; border: 1px solid var(--line); }
.pace { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: 4px 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); align-items: baseline; }
.pace:last-child { border-bottom: 0; }
.pace .k { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 30px; color: var(--stone); line-height: 1; grid-row: span 2; }
.pace .n { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 18px; text-transform: uppercase; }
.pace .v { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 22px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pace .d { color: var(--soft); font-size: 15px; grid-column: 2 / -1; }
.pace .v small { font-size: .6em; color: var(--stone); font-weight: 500; margin-left: 3px; }
.note { border: 1px solid var(--line); border-left: 2px solid var(--stone); background: var(--panel); padding: 14px 16px; font-size: 16px; color: var(--soft); }
.gate { background: var(--panel); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.gate p { color: var(--soft); }
.gate .two { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.locked { filter: blur(4px); opacity: .5; pointer-events: none; user-select: none; display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 4px; }
.locked div { height: 70px; background: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--stone); }
.hint { font-size: 15px; color: var(--dust); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 6px; }
.day { background: var(--panel); border: 1px solid var(--line); padding: 12px 10px; display: grid; gap: 6px; align-content: start; min-height: 150px; min-width: 0; }
.day .dn { font-family: var(--display); font-size: 11px; letter-spacing: .24em; color: var(--dust); }
.day .s { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 15px; text-transform: uppercase; line-height: 1.1; }
.day .why { font-size: 13.5px; color: var(--soft); line-height: 1.45; }
.day.lift { border-top: 3px solid var(--bone); } .day.run { border-top: 3px solid var(--stone); } .day.off { border-top: 3px solid var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--dust); }
.legend i { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin-right: 8px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stats div { padding: 14px 12px; background: var(--panel); display: grid; gap: 4px; min-width: 0; }
.stats dt, .stats span { font-size: 13px; color: var(--dust); }
.stats strong { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums; }
.rules { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); }
.rules li { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--soft); }
.rules li:last-child { border-bottom: 0; }
.rules li span { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 24px; color: var(--stone); line-height: 1; }
.caveat { font-size: 14px; color: var(--dust); border-left: 2px solid var(--line); padding-left: 14px; }
.cta { border-top: 1px solid var(--line); padding-block: 48px 8px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.cta .eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--stone); }
.cta h2 { font-size: clamp(32px, 7vw, 52px); font-weight: 900; line-height: .95; }
.cta p { color: var(--soft); max-width: 46ch; }
.cta .row { justify-content: center; }
.textlink { color: var(--stone); text-decoration: underline; text-underline-offset: 4px; font-family: var(--display); font-style: italic; }
.textlink:hover { color: var(--bone); }
footer { border-top: 1px solid var(--line); padding-top: 24px; display: grid; gap: 12px; }
.tagline { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 20px; color: var(--stone); }
.links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.links a { display: inline-flex; align-items: center; gap: 10px; color: var(--soft); text-decoration: none; font-size: 15px; }
.links a:hover { color: var(--bone); }
.links svg { width: 20px; height: 20px; flex: none; color: var(--stone); }
@media (max-width: 760px) {
  .week { grid-template-columns: minmax(0,1fr); }
  .day { min-height: 0; grid-template-columns: 52px minmax(0,1fr); column-gap: 12px; }
  .day .dn { grid-row: span 2; padding-top: 3px; }
  .day .why { grid-column: 2; }
  .locked { grid-template-columns: minmax(0,1fr); } .locked div { height: 36px; }
  .locked div:nth-child(n+4) { display: none; }
}
@media (max-width: 520px) {
  .fields, .gate .two { grid-template-columns: minmax(0,1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .score { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .pace { grid-template-columns: 40px minmax(0,1fr) auto; padding: 14px; }
  .pace .k { font-size: 24px; }
  .links { flex-direction: column; }
  .log img { height: 28px; }
}

.fields.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.fields.two-col { grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); }
.kcal { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 26px; padding: 8px 0; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { appearance: none; cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--dust); font: italic 700 13px var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 10px 12px; }
.chip.on { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.chip:focus-visible, .link:focus-visible, .opt:focus-visible, summary:focus-visible { outline: 2px solid var(--stone); outline-offset: 3px; }
.btn.small { min-height: 42px; font-size: 13px; padding: 0 16px; }
.meals { display: flex; flex-direction: column; border: 1px solid var(--line); }
.meal { padding: 16px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.meal:last-child { border-bottom: 0; }
.meal .mh { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.meal .slot { font-family: var(--display); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); }
.meal .mk { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 14px; color: var(--soft); font-variant-numeric: tabular-nums; }
.meal .mn { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 20px; text-transform: uppercase; line-height: 1.1; }
.meal p { color: var(--soft); font-size: 15.5px; }
.meal p b { color: var(--bone); font-weight: 600; }
.link { background: none; border: 0; padding: 0; color: var(--stone); font: italic 600 15px var(--display); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.link:hover { color: var(--bone); }
details { color: var(--dust); font-size: 14px; }
summary { cursor: pointer; font-family: var(--display); font-style: italic; }
.opts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.opt { appearance: none; width: 100%; cursor: pointer; text-align: left; display: flex; justify-content: space-between; gap: 12px; background: var(--ink); border: 1px solid var(--line); color: var(--soft); padding: 8px 10px; font: 500 14px var(--body); }
.opt:hover { border-color: var(--stone); }
.opt.sel { border-color: var(--bone); color: var(--bone); }
.opt span { color: var(--dust); white-space: nowrap; font-variant-numeric: tabular-nums; }
.macros { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 24px; border: 1px solid var(--bone); padding: 18px; }
.mbar { display: grid; gap: 6px; min-width: 0; }
.mbar .ml { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.mbar .ml span { font-family: var(--display); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); }
.mbar .ml b { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.mbar .ml em { font-style: normal; font-weight: 500; font-size: 13px; color: var(--dust); }
.mbar .mt { height: 6px; background: var(--line); }
.mbar .mf { height: 100%; background: var(--bone); }
.mbar .mf.off { background: var(--stone); }
.mbar .md { font-size: 13px; color: var(--dust); }
@media (max-width: 640px) {
  .fields.four { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fields.two-col { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 420px) { .macros { grid-template-columns: minmax(0,1fr); } .opt { flex-direction: column; gap: 2px; } }
.lock { max-width: 520px; }
.lock h2 { font-size: clamp(26px, 5vw, 34px); }
.welcome { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 18px; color: var(--soft); display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; margin: 0; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.tool { display: grid; gap: 8px; align-content: start; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--bone); color: var(--bone); text-decoration: none; transition: border-color .15s; }
.tool:hover { border-color: var(--stone); border-top-color: var(--bone); }
.tool:focus-visible { outline: 2px solid var(--stone); outline-offset: 3px; }
.tool .slot { font-family: var(--display); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); }
.tool .tn { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1; }
.tool .td { color: var(--soft); font-size: 15.5px; }
.tool .go { font-family: var(--display); font-style: italic; font-weight: 700; color: var(--stone); }
.budget { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; border: 1px solid var(--bone); padding: 14px 18px; }
.budget span { font-family: var(--display); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); }
.budget strong { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums; }
.pick { color: var(--soft); font-size: 16px; }
.pick b { color: var(--bone); font-weight: 600; }
.opts-list { display: flex; flex-direction: column; border: 1px solid var(--line); }
.opt-row { padding: 14px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; border-left: 3px solid transparent; }
.opt-row:last-child { border-bottom: 0; }
.opt-row.fits { border-left-color: var(--bone); }
.opt-row.over { opacity: .55; }
.oh { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.on { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 19px; text-transform: uppercase; line-height: 1.15; }
.opt-row p { color: var(--soft); font-size: 15px; }
.om { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 14px; color: var(--stone); font-variant-numeric: tabular-nums; }
.badge { flex: none; font-family: var(--display); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line); color: var(--dust); }
.badge.fits { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.badge.close { border-color: var(--stone); color: var(--stone); }
.avoid { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.avoid li { color: var(--soft); font-size: 15.5px; padding-left: 22px; position: relative; }
.avoid li::before { content: "–"; position: absolute; left: 4px; color: var(--stone); }
.drinks { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); }
.drinks li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--soft); font-size: 15px; }
.drinks li:last-child { border-bottom: 0; }
.drinks b { font-family: var(--display); font-style: italic; color: var(--bone); font-weight: 700; white-space: nowrap; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.cgroups { display: grid; gap: 14px; }
.cg { display: grid; gap: 8px; }
.cgl { font-size: 13px; color: var(--dust); }
.time2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
.time2 div { position: relative; } .time2 input { padding-right: 26px; }
.time2 small { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--dust); font-size: 13px; }
.stats strong small { font-size: .55em; font-weight: 500; margin-left: 2px; color: var(--stone); }
.stats dd { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--soft); }
.timeline li:last-child { border-bottom: 0; }
.timeline b { font-family: var(--display); font-style: italic; color: var(--bone); font-variant-numeric: tabular-nums; }
.check { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); }
.check li { border-bottom: 1px solid var(--line); } .check li:last-child { border-bottom: 0; }
.check label { text-transform: none; letter-spacing: normal; font-family: var(--body); display: flex; gap: 14px; align-items: flex-start; padding: 13px 16px; cursor: pointer; color: var(--soft); font-size: 15.5px; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: #ECEAE4; }
.check input:checked + * , .check label:has(input:checked) { color: var(--dust); }
.due { color: var(--soft); } .due b { color: var(--bone); }
.poses { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pose { background: var(--panel); padding: 16px; display: grid; gap: 6px; align-content: start; }
.pose b { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 16px; }
.pose span { color: var(--soft); font-size: 15px; }
input[type=date] { color-scheme: dark; }
@media (max-width: 520px) { .poses { grid-template-columns: minmax(0,1fr); } }
.pdfbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border: 1px solid var(--line); padding: 14px 16px; }
.print-head { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  :root { --ink:#ffffff; --panel:#f4f2ee; --line:#d6d2ca; --bone:#111110; --stone:#6f675b; --dust:#6b665e; --soft:#2b2a27; color-scheme: light; }
  body { background: #fff !important; color: #111 !important; font-size: 11pt; padding: 0 !important; }
  .wrap { max-width: none; padding: 0 !important; gap: 14px; }
  .log, #welcome, #lock, #inputs, .pdfbar, footer, .lede, #tool > section:first-child { display: none !important; }
  .print-head { display: grid !important; gap: 6px; border-bottom: 2px solid #111; padding-bottom: 10px; margin-bottom: 4px; }
  .print-head img { height: 34px; width: auto; filter: invert(1); }
  .print-head h1 { font-size: 26pt; line-height: 1; }
  .print-head p { color: #444; font-size: 11pt; margin: 0; }
  .section { padding-top: 12px; }
  .stats div, .note, .timeline, .rules li { break-inside: avoid; }
  section { break-inside: auto; }
}
.rw { display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.rw h3 { font-size: 18px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 8px 12px; font-size: 14px; color: var(--soft); cursor: pointer; text-transform: none; letter-spacing: normal; font-family: var(--body); }
.checks input { accent-color: #ECEAE4; width: 16px; height: 16px; }
.checks label:has(input:checked) { border-color: var(--bone); color: var(--bone); }
input[type=time] { color-scheme: dark; }
.days { display: grid; gap: 8px; }
.day { border: 1px solid var(--line); }
.day { background: var(--panel); padding: 16px 18px; display: grid; gap: 8px; break-inside: avoid; }
.day .dh { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.day .dh b { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 18px; }
.day .dh span { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 14px; color: var(--stone); font-variant-numeric: tabular-nums; }
.day p { color: var(--soft); font-size: 15px; margin: 0; }
.meals2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.meals2 li { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 10px; font-size: 14.5px; color: var(--soft); }
.meals2 li b { color: var(--bone); font-weight: 600; }
.flag { border-left: 2px solid var(--bone); padding: 10px 14px; background: var(--panel); color: var(--soft); font-size: 15px; }
.flag b { color: var(--bone); }
@media print { .checks label { border: 0; padding: 0; } .day { background: #f4f2ee; } }
/* ---- Run plan builder ---- */
.lifts { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 6px; }
.lifts div { display: grid; gap: 4px; }
.lifts span { font-family: var(--display); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); text-align: center; }
.lifts select { font-size: 13px; padding: 8px 6px; background-image: none; text-align: center; }
.lifts .norun { display: flex; align-items: center; justify-content: center; gap: 4px; font-family: var(--body); font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--dust); cursor: pointer; }
.lifts .norun input { accent-color: #ECEAE4; width: 14px; height: 14px; margin: 0; }
.lifts .norun:has(input:checked) { color: var(--bone); }
.lifts div:has(.norun input:checked) select { opacity: .5; }
.warn { border-left: 2px solid #d6c27f; padding-left: 10px; color: var(--soft); }
.phrows { display: grid; gap: 8px; }
.phrow { display: grid; grid-template-columns: 1fr 110px; gap: 10px; align-items: center; border: 1px solid var(--line); padding: 8px 12px; }
.phrow b { font-family: var(--display); font-style: italic; font-size: 15px; }
.phrow small { display: block; color: var(--dust); font-size: 13px; }
.phrow .unit { position: relative; } .phrow .unit input { padding-right: 44px; font-size: 16px; padding-block: 8px; }
.phrow .unit small { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.paces { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.paces div { background: var(--panel); padding: 12px; display: grid; gap: 2px; align-content: start; }
.paces span { font-family: var(--display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); }
.paces strong { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 20px; line-height: 1.15; }
.paces small { font-size: 12px; color: var(--dust); line-height: 1.35; }
.phbar { display: flex; gap: 2px; }
.phbar div { padding: 8px 10px; font-size: 12px; background: var(--panel); border-top: 3px solid var(--stone); min-width: 0; overflow: hidden; }
.phbar div b { display: block; font-family: var(--display); font-style: italic; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phbar .p-base { border-color: #6f8f7a; } .phbar .p-thr { border-color: #c9a65a; } .phbar .p-vo2 { border-color: #c47a5a; } .phbar .p-spd { border-color: #b65a7a; }
.phbar .p-r10, .phbar .p-rhm, .phbar .p-rm { border-color: var(--bone); } .phbar .p-taper, .phbar .p-test { border-color: var(--dust); }
.phinfo { display: grid; gap: 8px; }
.phinfo p { font-size: 15px; color: var(--soft); } .phinfo b { color: var(--bone); }
.wk { border: 1px solid var(--line); background: var(--panel); break-inside: avoid; }
.wk header { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.wk header b { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 16px; }
.wk header span { font-size: 13px; color: var(--dust); }
.wk header em { font-style: normal; font-family: var(--display); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); border: 1px solid var(--line); padding: 1px 6px; margin-left: 6px; }
.dd { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.dd:last-child { border-bottom: 0; }
.dd > span { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); padding-top: 2px; }
.dd .s { color: var(--soft); } .dd .s b { color: var(--bone); }
.dd .s small { display: block; color: var(--dust); font-size: 13px; }
.dd .lift { display: inline-block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dust); border: 1px solid var(--line); padding: 0 6px; margin-left: 6px; vertical-align: 1px; }
.dd.hard .s b { color: var(--bone); } .dd.hard > span { color: var(--bone); }
.dd.rest .s { color: var(--dust); }
.dd.race { background: var(--ink); } .dd.race .s b { font-size: 17px; }
.weeks { display: grid; gap: 12px; }
.wnote { margin: 0; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--soft); background: var(--ink); }
.wnote b { color: var(--bone); }
.dd .wy { font-style: normal; color: var(--stone); }
.why { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.why div { background: var(--panel); padding: 10px 14px; }
.why dt { font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 14px; }
.why dd { margin: 2px 0 0; font-size: 14px; color: var(--soft); }
.outcome p { color: var(--soft); } .outcome p b { color: var(--bone); }
@media (max-width: 640px) { .why { grid-template-columns: minmax(0,1fr); } }
.coachnote { border-left: 2px solid var(--stone); padding: 10px 14px; background: var(--panel); white-space: pre-wrap; color: var(--soft); }
textarea { font: 500 16px var(--body); padding: 12px; border: 1px solid var(--line); background: var(--ink); color: var(--bone); width: 100%; min-height: 90px; resize: vertical; border-radius: 0; }
@media (max-width: 640px) { .paces { grid-template-columns: repeat(2, minmax(0,1fr)); } .lifts { gap: 3px; } .lifts select { font-size: 11px; padding: 8px 1px; } }
@media print {
  .wk, .paces div, .dd.race { background: #fff !important; }
  .phbar div { background: #f4f2ee !important; }
  .dd { font-size: 10pt; padding: 5px 10px; }
  .wk header { padding: 6px 10px; }
  .weeks { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dd.rest, .dd.liftonly { display: none; }
  .dd { grid-template-columns: 34px 1fr; gap: 6px; font-size: 9pt; padding: 4px 8px; line-height: 1.35; }
  .dd > span { font-size: 8pt; }
  .dd .s small { font-size: 8.5pt; }
  .wnote { font-size: 8.5pt; padding: 5px 8px; background: #f4f2ee !important; }
  .why div { background: #fff !important; } .why dd, .why dt { font-size: 9pt; }
  .wk header b { font-size: 10pt; } .wk header span { font-size: 8.5pt; }
  .paces strong { font-size: 15pt; }
}
/* ---- Engine plan builder ---- */
.dd .sh { margin: 0; color: var(--soft); } .dd .sh b { color: var(--bone); }
.dd .sl { margin: 4px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 1px 12px; font-size: 13px; }
.dd .sl dt { color: var(--stone); font-family: var(--display); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding-top: 2px; }
.dd .sl dd { margin: 0; color: var(--soft); }
@media print { .dd .sl { font-size: 8.5pt; } .dd .sl dt { font-size: 7.5pt; } }
.phbar .p-maint { border-color: #8fa3b3; }
.ztab { width: 100%; border-collapse: collapse; font-size: 14px; }
.ztab th, .ztab td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.ztab th { font-family: var(--display); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); font-weight: 500; background: var(--panel); }
.ztab td:first-child b { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; display: block; }
.ztab td small { color: var(--dust); font-size: 12px; display: block; }
.ztab td { background: var(--panel); color: var(--soft); }
.ztab td strong { color: var(--bone); font-weight: 600; }
.tabwrap { overflow-x: auto; }
.mtag { display: inline-block; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); color: var(--stone); padding: 0 6px; margin-left: 6px; vertical-align: 1px; }
.tests { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
@media (max-width: 760px) { .tests { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media print { .ztab td, .ztab th { background: #fff !important; font-size: 9pt; padding: 5px 7px; } .mtag { border-color: #bbb; } }
.field { min-width: 0; }
