  :root {
    --sage: #6F7F5A; --sage-dark: #556043; --cream: #F5EFE0; --cream-soft: #FBF6EA;
    --terra: #A7623F; --charcoal: #2B2B2B; --muted: #5F5F5F; --rule: #E4DDCB; --chip: #EEF0E8;
  }
  @page { size: letter; margin: 0; }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { background: #E9E4D6; }
  body { font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; color: var(--charcoal); -webkit-print-color-adjust: exact; print-color-adjust: exact; padding: 24px 12px; }
  .sheet {
    width: 8.5in; height: 11in; margin: 0 auto;
    background: var(--cream-soft);
    padding: 0.45in 0.5in 0.4in;
    display: flex; flex-direction: column;
    box-shadow: 0 6px 30px rgba(60,50,30,.15);
  }
  @media print {
    html, body { background: none; padding: 0; }
    .sheet { box-shadow: none; margin: 0; }
    .screen-only { display: none !important; }
  }
  @media screen and (max-width: 860px) {
    .sheet { transform-origin: top left; }
  }

  header.top { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid var(--sage-dark); padding-bottom: 12px; }
  .eyebrow { font-size: 9pt; letter-spacing: .24em; text-transform: uppercase; color: var(--terra); font-weight: 600; }
  h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 300; font-size: 34pt; line-height: 1.02; color: var(--sage-dark); margin-top: 4px; }
  h1 em { font-style: italic; color: var(--sage); }
  .how { text-align: right; font-size: 9pt; line-height: 1.5; color: var(--muted); }
  .how b { display: block; font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: 15pt; color: var(--terra); }

  .grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 1fr); gap: 10px 14px; margin: 14px 0 12px; }
  .ex { background: #fff; border: 1px solid var(--rule); border-radius: 6px; display: grid; grid-template-columns: 1.25in 1fr; overflow: hidden; }
  .ex .art { background: var(--cream); display: flex; align-items: center; justify-content: center; position: relative; }
  .ex .art svg { width: 100%; height: 100%; max-height: 1.9in; }
  .ex .num { position: absolute; top: 6px; left: 8px; font-family: 'Fraunces', Georgia, serif; font-size: 11pt; color: var(--terra); }
  .ex .txt { padding: 9px 11px 8px; display: flex; flex-direction: column; }
  .ex h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: 14pt; color: var(--sage-dark); line-height: 1.1; }
  .ex .reps { font-size: 7.5pt; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--terra); margin: 3px 0 5px; }
  .ex p { font-size: 8.4pt; line-height: 1.4; color: var(--charcoal); }
  .ex ul { list-style: none; display: flex; flex-wrap: wrap; gap: 3px; margin-top: auto; padding-top: 6px; }
  .ex li { font-size: 7.2pt; background: var(--chip); color: var(--sage-dark); border-radius: 999px; padding: 2px 7px; }

  footer.bottom { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; border-top: 1px solid var(--rule); padding-top: 10px; font-size: 8.2pt; line-height: 1.45; color: var(--muted); }
  footer.bottom h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: 11pt; color: var(--sage-dark); margin-bottom: 2px; }
  .brand { text-align: right; }
  .brand .name { font-family: 'Fraunces', Georgia, serif; font-size: 14pt; color: var(--sage-dark); }
  .brand .kanji { font-family: 'Fraunces', Georgia, serif; font-style: italic; color: var(--terra); }

  svg .b { stroke: #556043; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
  svg .h { fill: #556043; }
  svg .band { stroke: #A7623F; stroke-width: 3; stroke-linecap: round; fill: none; }
  svg .gr { stroke: #CFC5AC; stroke-width: 2; stroke-linecap: round; }
  svg .mv { stroke: #A7623F; stroke-width: 1.6; fill: none; stroke-dasharray: 3 3; }
  svg .ah { fill: #A7623F; }

  .screen-only { max-width: 8.5in; margin: 0 auto 16px; display: flex; gap: 10px; flex-wrap: wrap; font-size: 14px; }
  .screen-only a, .screen-only button { font: inherit; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; padding: 10px 18px; border-radius: 3px; border: 1px solid var(--sage-dark); background: var(--sage-dark); color: #fff; text-decoration: none; cursor: pointer; }
  .screen-only a.ghost { background: transparent; color: var(--sage-dark); }

/* 6-exercise charts: 3 rows, roomier cards */
.grid.rows-3 { grid-template-rows: repeat(3, 1fr); gap: 12px 14px; }
.grid.rows-3 .ex { grid-template-columns: 1.55in 1fr; }
.grid.rows-3 .ex .art svg { max-height: 2.4in; }
.grid.rows-3 .ex h2 { font-size: 15.5pt; }
.grid.rows-3 .ex p { font-size: 9pt; }
.grid.rows-3 .ex li { font-size: 7.6pt; }
svg .chair { stroke: #B9AE93; stroke-width: 3.5; stroke-linecap: round; fill: none; }

  .grid { grid-template-rows: repeat(4, minmax(0, 1fr)); min-height: 0; }
  .grid.rows-3 { grid-template-rows: repeat(3, minmax(0, 1fr)); }
  .ex { min-height: 0; }
  .ex .art { min-height: 0; overflow: hidden; }
  .ex .art svg.deedee { height: 100%; width: auto; max-width: 100%; max-height: none; }


  /* Shrink the printable sheet to fit phone and tablet screens (print size is unchanged) */
  @media screen and (max-width: 860px) { .sheet { zoom: .85; } body { padding: 12px 6px; } }
  @media screen and (max-width: 700px) { .sheet { zoom: .7; } }
  @media screen and (max-width: 600px) { .sheet { zoom: .58; } }
  @media screen and (max-width: 480px) { .sheet { zoom: .46; } }
  @media screen and (max-width: 380px) { .sheet { zoom: .42; } }
  @media print { .sheet { zoom: 1; } }
