/* Library + builders (l-). Tokens only. Container queries so the builders also fit inside the client card. */

/* ---------- page + shared bits ---------- */
.l-page, .l-pb, .l-prb, .l-cib, .l-im { font-variant-numeric: tabular-nums; container-type: inline-size; min-width: 0; }
.l-page { display: flex; flex-direction: column; gap: var(--space-xl); }
.l-back { display: inline-flex; align-items: center; gap: var(--space-2xs); align-self: flex-start; min-height: 2.75rem; margin-left: calc(var(--space-xs) * -1); padding: 0 var(--space-xs); border-radius: var(--radius-sm); color: var(--color-muted); font-size: var(--text-sm); font-weight: 700; text-decoration: none; white-space: nowrap; }
.l-back:hover { color: var(--color-ink); background: var(--color-paper-3); }
.l-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.l-toolbar__search { flex: 1 1 16rem; max-width: 30rem; }
.stack > .l-toolbar__search { flex: none; }   /* in a column the 16rem basis became height (recipes page) */
.l-count { margin-bottom: var(--space-xs); }
.l-fs { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-xs); }
.l-fs > legend { padding: 0; margin-bottom: var(--space-xs); }
.l-xf-cue { resize: vertical; min-height: 2.75rem; line-height: 1.45; }
.l-xf-cue-add { align-self: flex-start; }
.l-chips { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.l-chips .chip { min-height: 2.25rem; }
.l-hide-sm { display: inline; }
@container (max-width: 34rem) { .l-hide-sm { display: none; } }

/* source badges */
.l-src { background: var(--color-paper-3); color: var(--color-muted); letter-spacing: 0.05em; }
.l-src--own { background: transparent; color: var(--color-ink-2); box-shadow: inset 0 0 0 1px var(--color-rule-strong); }

/* compact macros + deviation line */
.l-mini { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--space-xs); row-gap: 0; font-size: var(--text-xs); color: var(--color-muted); font-weight: 600; }
.l-mini b { color: var(--color-ink); font-weight: 800; font-size: var(--text-sm); }
.l-dv { display: inline-flex; align-items: center; gap: 0.2rem; white-space: nowrap; font-weight: 700; color: var(--color-ink); }
.l-dv .ic { flex: none; }
.l-dv__d { font-weight: 600; color: var(--color-muted); }
.l-dv--warn, .l-dv--warn .l-dv__d { color: var(--color-gold-ink); }
.l-dv--off, .l-dv--off .l-dv__d { color: var(--color-terra-ink); }
.l-dv__sep { color: var(--color-rule-strong); margin-inline: var(--space-xs); }
.l-dv__lab { font-weight: 800; color: var(--color-ink); margin-right: var(--space-2xs); }

/* compact stepper (core .stepper is sized for the client app) */
.stepper.l-stepper { flex: none; }
.stepper.l-stepper button { width: 2.5rem; min-height: 2.5rem; }
.stepper.l-stepper input { width: 3.75rem; font-family: var(--font-ui); font-size: var(--text-md); font-weight: 700; padding-top: 0; }

/* ---------- library tables (become rows on narrow containers) ---------- */
.l-tbl-wrap { overflow: hidden; }
.l-tbl tbody tr { cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.l-tbl tbody tr:hover { background: var(--color-paper-3); }
.l-tbl tbody tr:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; border-radius: 0; }
.l-tbl td { padding-block: var(--space-sm); }
.l-ftbl__name { min-width: 12rem; }
.l-ftbl__title { display: block; font-weight: 700; }
.l-ftbl__alias { display: block; }
.l-ftbl__m { width: 4.5rem; }
.l-ftbl__por { color: var(--color-ink-2); }
@container (max-width: 44rem) {
  .l-tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .l-tbl, .l-tbl tbody { display: block; }
  .l-ftbl tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-sm); row-gap: var(--space-2xs); padding: var(--space-sm) var(--space-md); border-bottom: var(--rule); }
  .l-ftbl tr:last-child { border-bottom: 0; }
  .l-ftbl td { display: block; padding: 0; border: 0; min-width: 0; }
  .l-ftbl__name { grid-column: 1 / 4; min-width: 0; }
  .l-ftbl__src { grid-column: 4; justify-self: end; }
  .l-ftbl__m { width: auto; text-align: left; font-weight: 700; }
  .l-ftbl__m::before { content: attr(data-k); display: block; font-size: var(--text-2xs); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); }
  .l-ftbl__por { grid-column: 1 / -1; }
}

/* ---------- pickers (sheet) ---------- */
.l-pick { container-type: inline-size; }
.l-pick form[role="search"] { position: sticky; top: 0; z-index: var(--z-base); background: var(--color-paper); padding-block: var(--space-2xs) var(--space-xs); }
.l-pick__filters { flex-wrap: wrap; }
@container (max-width: 30rem) {
  .l-pick .l-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--space-lg) * -1); padding-inline: var(--space-lg); }
  .l-pick .l-chips::-webkit-scrollbar { display: none; }
  .l-pick .l-chips .chip { flex: none; }
}
.l-pick__list { display: flex; flex-direction: column; border: var(--rule); border-radius: var(--radius-md); background: var(--color-paper-2); overflow: hidden; }
.l-pick__empty { padding: var(--space-lg); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
.l-fpr, .l-xpr, .l-rpr, .l-tpr {
  display: grid; align-items: center; column-gap: var(--space-sm); width: 100%; min-height: 3rem; padding: var(--space-xs) var(--space-md);
  border: 0; border-bottom: var(--rule); background: transparent; text-align: left; color: inherit; font-size: var(--text-sm);
  transition: background-color var(--dur-short) var(--ease-out);
}
.l-fpr:last-child, .l-xpr:last-child, .l-rpr:last-child, .l-tpr:last-child { border-bottom: 0; }
button.l-fpr:hover, .l-xpr:hover, .l-rpr:hover, .l-tpr:hover { background: var(--color-paper-3); }
.l-fpr:focus-visible, .l-xpr:focus-visible, .l-rpr:focus-visible, .l-tpr:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; border-radius: 0; }
.l-fpr { grid-template-columns: minmax(0, 1fr) repeat(4, 3.25rem); }
.l-fpr .num { text-align: right; font-weight: 600; }
.l-fpr--head { min-height: 2rem; font-size: var(--text-2xs); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); background: var(--color-paper-3); }
.l-fpr--head span:not(:first-child) { text-align: right; }
.l-fpr__name { display: flex; align-items: center; gap: var(--space-xs); min-width: 0; }
.l-fpr__title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@container (max-width: 30rem) {
  .l-fpr { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 0.1rem; }
  .l-fpr__name { grid-column: 1 / -1; }
  .l-fpr__title { white-space: normal; }
  .l-fpr .num { text-align: left; color: var(--color-muted); }
  .l-fpr--head { display: none; }
}
.l-rpr { grid-template-columns: 4rem minmax(0, 1fr) auto; padding-block: var(--space-sm); }
.l-rpr__img { width: 100%; }
.l-rpr__main, .l-xpr__main, .l-tpr__main { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.l-rpr__title, .l-xpr__title, .l-tpr__title { font-weight: 700; }
.l-rpr__m { display: flex; flex-direction: column; align-items: flex-end; gap: 0.1rem; }
.l-rpr__fit { display: flex; flex-wrap: wrap; align-items: center; row-gap: 0.1rem; }
.l-rpr__fit .l-dv__sep { margin-inline: var(--space-2xs); }
.l-rpr__st { justify-self: end; }
.l-rpg { padding: 0.4rem var(--space-md); border-bottom: var(--rule); background: var(--color-paper-3); font-size: var(--text-2xs); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); }
.l-rp__info { display: flex; flex-direction: column; gap: 0.15rem; }
@container (max-width: 30rem) {
  .l-rpr { grid-template-columns: 3.25rem minmax(0, 1fr); align-items: start; row-gap: var(--space-2xs); }
  .l-rpr__m, .l-rpr__st { grid-column: 2; justify-self: start; align-items: flex-start; }
  .l-rpr__st:empty { display: none; }
}

/* amount step */
.l-amt__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-md) var(--space-lg); }
.l-amt__field { flex: 0 1 12rem; }
.l-amt__field .input { max-width: 12rem; }
.l-amt__prev { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs); min-height: 2.75rem; padding-bottom: var(--space-xs); }
.l-amt__g { font-weight: 800; font-size: var(--text-md); }
.l-amt .chip .muted { font-weight: 600; }
.l-amt .chip[aria-pressed="true"] .muted { color: var(--color-paper-4); }

/* own-product form */
.l-ff__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); }
@container (max-width: 30rem) { .l-ff__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.l-ff { container-type: inline-size; }
.l-ff__calc { min-height: 1.25rem; font-weight: 600; }
.l-ff__calc .ic, .l-im .ic { display: inline-block; vertical-align: -2px; }
.l-por { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem auto; gap: var(--space-xs); align-items: center; }
.l-por--one { grid-template-columns: minmax(0, 1fr) 7.5rem; }
.l-ff__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@container (max-width: 30rem) { .l-ff__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.l-ff__ctx { padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-sm); background: var(--color-paper-3); overflow-wrap: anywhere; }

/* inline icons inside text (core makes svg display:block) */
:is(.l-page, .l-pb, .l-prb, .l-cib, .l-im, .l-pick, .l-amt, .l-ff, .l-sheet) :is(p, span, li, strong, small) > .ic { display: inline-block; vertical-align: -0.15em; }
.l-cq { container-type: inline-size; }


/* ---------- plan builder ---------- */
.l-pb { display: flex; flex-direction: column; gap: var(--space-xl); }
.l-pb__head, .l-prb__head { display: flex; flex-direction: column; gap: var(--space-2xs); }
.l-pb__titlebar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-md); }
.l-pb__title { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; flex: 1 1 22rem; }
.l-pb__status .badge { vertical-align: 1px; }
.l-title {
  width: 100%; min-width: 0; margin-left: calc(var(--space-xs) * -1); padding: 0.1rem var(--space-xs);
  border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--color-ink);
  font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2;
  transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.l-title:hover { border-color: var(--color-rule-strong); }
.l-title:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; background: var(--color-paper-2); }
/* phones: a long plan name ends in an ellipsis (tap to edit the whole name); a hairline shows it can be edited */
@media (max-width: 39.99rem) { .l-title { font-size: var(--text-xl); text-overflow: ellipsis; } }
@media (pointer: coarse) { .l-title { border-bottom-color: var(--color-rule-strong); } }
.l-pb__actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.l-pb__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
.l-pb__main { display: flex; flex-direction: column; gap: var(--space-xl); min-width: 0; container-type: inline-size; }
.l-pb__side { display: flex; flex-direction: column; gap: var(--space-lg); min-width: 0; container-type: inline-size; }
@container (max-width: 34rem) { .l-title { font-size: var(--text-xl); } }
@container (min-width: 56rem) {
  .l-pb__grid { grid-template-columns: minmax(0, 1fr) 20rem; }
  .l-pb__side { position: sticky; top: calc(var(--demobar-h) + 3.75rem + var(--space-md)); max-height: calc(100dvh - var(--demobar-h) - 3.75rem - var(--space-xl)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}

/* day targets */
.l-dt__head { flex-wrap: wrap; }
.l-dt__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-sm); }
@container (max-width: 34rem) { .l-dt__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.l-dt__check { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2xs) var(--space-md); }

/* supplements (30.11.2026): a long Kahunas text grows with its content where the browser can (rows="4" elsewhere) */
.l-supp__in { field-sizing: content; min-height: 6rem; max-height: 28rem; }
/* the list (Aku's Loom 30.11.2026): a row = the supplement (tap to edit: name, dose · timing, note, shop) + up / down /
   remove; narrow editors put the tools under the text */
.l-spl { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; }
.l-spl__list { list-style: none; margin: 0; padding: 0; border: var(--rule); border-radius: var(--radius-md); background: var(--color-paper); overflow: hidden; }
.l-spr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 var(--space-xs); padding-right: var(--space-xs); border-bottom: var(--rule); }
.l-spr:last-child { border-bottom: 0; }
.l-spr__main { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; min-width: 0; min-height: 3rem; padding: var(--space-sm) var(--space-md); border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.l-spr__main:hover { background: var(--color-paper-3); }
.l-spr__main:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.l-spr__name { font-size: var(--text-base); font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.l-spr__facts { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-2); overflow-wrap: anywhere; }
.l-spr__note { font-size: var(--text-xs); color: var(--color-muted); white-space: pre-line; overflow-wrap: anywhere; }
.l-spr__link { display: inline-flex; align-items: center; gap: 0.25rem; max-width: 100%; font-size: var(--text-xs); font-weight: 700; color: var(--color-ink-2); overflow-wrap: anywhere; }
.l-spr__link .ic { flex: none; }
.l-spr__tools { display: flex; gap: 2px; }
.l-spr__tools .btn[aria-disabled="true"] { opacity: 0.35; cursor: default; }
@container (max-width: 30rem) {
  .l-spr { grid-template-columns: minmax(0, 1fr); padding-right: 0; }
  .l-spr__main { padding-bottom: 0; }
  .l-spr__tools { justify-self: end; padding: 0 var(--space-xs) var(--space-2xs); }
}
.l-spl__add { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); }
/* the library page, the picker and the form */
.l-sprow__link { display: inline-flex; align-items: center; gap: 0.2rem; font-weight: 700; color: var(--color-ink-2); }
.l-sprow__link .ic { display: block; flex: none; }
.l-sppr { min-height: 3.25rem; }
.l-sppr__st { display: flex; flex-direction: column; align-items: flex-end; gap: 0.1rem; }
.l-sppr__on { display: inline-flex; align-items: center; gap: 0.2rem; font-size: var(--text-xs); font-weight: 800; color: var(--color-good-ink); }
@container (max-width: 30rem) { .l-sppr__st { flex-direction: row; align-items: center; gap: var(--space-sm); } .l-sppr__st:empty { display: none; } }
.l-spf__times { margin-top: var(--space-2xs); }
.l-spf__times .chip { white-space: normal; text-align: left; line-height: 1.25; padding-block: 0.35rem; }
@media (pointer: coarse) { .l-spf__times .chip { min-height: 2.75rem; } }
.l-spf__note { resize: vertical; min-height: 4.5rem; line-height: 1.45; }

/* meals */
.l-meals { display: flex; flex-direction: column; gap: var(--space-md); }
.l-meals__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-xs) var(--space-md); }
.l-meals__shares { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }
.l-meal__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "fold name fields tools"; align-items: center; gap: var(--space-xs); padding: var(--space-sm) var(--space-sm) var(--space-xs); }
.l-meal__fold { grid-area: fold; } .l-meal__head > .l-meal__name { grid-area: name; } .l-meal__fields { grid-area: fields; } .l-meal__tools { grid-area: tools; }
@container (max-width: 34rem) { .l-meal__head { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "fold name tools" ". fields fields"; } }
.l-meal__fields { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); min-width: 0; }
.l-meal__name { width: 100%; min-width: 0; min-height: 2.5rem; padding-inline: var(--space-xs); border-color: transparent; background: transparent; font-size: var(--text-lg); font-weight: 800; }
.l-meal__name:hover { border-color: var(--color-rule-strong); }
.l-meal__name:focus-visible { background: var(--color-paper); }
.l-meal__time .input { width: 7.25rem; }
.l-meal__share { display: inline-flex; align-items: center; gap: var(--space-2xs); }
.l-meal__share .input { width: 5.5rem; }
.l-meal__tools { display: flex; gap: 2px; }
.l-meal__tools .btn[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.l-fold { display: flex; flex-direction: column; gap: var(--space-2xs); padding: var(--space-sm) var(--space-md) var(--space-md); border-top: var(--rule); font-size: var(--text-sm); }
.l-fold__o { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem var(--space-xs); min-width: 0; }
.l-fold__n { color: var(--color-muted); min-width: 0; overflow-wrap: anywhere; }

/* meal target strip + inline target editor (Aku 13.11.: "tavoitelounaissa 35 g protskuu, 45 g hiilaria, rasvaa 15") */
.l-mtg { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-md); padding: 0 var(--space-md) var(--space-sm) calc(var(--space-sm) + 2.25rem + var(--space-xs)); }
.l-mtg__t { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-xs); row-gap: 0.15rem; min-width: 0; font-size: var(--text-sm); }
.l-mtg__act { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-xs); }
.l-own { background: var(--color-paper-3); color: var(--color-ink-2); }
.l-mte { display: flex; flex-direction: column; gap: var(--space-sm); margin: 0 var(--space-md) var(--space-md); padding: var(--space-md); border-radius: var(--radius-sm); background: var(--color-paper-3); }
.l-mte__h { font-size: var(--text-sm); }
.l-mte__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 8.5rem)) auto; align-items: end; gap: var(--space-sm); }
.l-mte__kcal { display: flex; align-items: baseline; gap: var(--space-2xs); min-height: 2.75rem; padding-bottom: 0.3rem; white-space: nowrap; }
.l-mte__big { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1; }
.l-mte__foot { display: flex; flex-direction: column; gap: var(--space-xs); }
@container (max-width: 34rem) {
  .l-mtg { padding-left: var(--space-md); }
  .l-mte { margin-inline: var(--space-sm); padding: var(--space-sm); }
  .l-mte__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .l-mte__kcal { grid-column: 1 / -1; min-height: 0; padding-bottom: 0; }
}

/* food photo thumbs (4:3, cropped; placeholder when the option has no photo) */
.l-thumb { display: block; flex: none; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); background: var(--color-paper-3); }
.l-thumb img { width: 100%; height: 100%; object-fit: cover; }
.l-thumb .placeholder-media { width: 100%; height: 100%; aspect-ratio: auto; padding: 0; border-radius: 0; }

/* options (Aku 13.11.: "Vaihtoehto 1, 2, 3 …", kuva + makrot) */
.l-opt__letter { width: 1.75rem; font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1; padding-top: 0.15rem; color: var(--color-ink); }
.l-opt__kind .seg__btn { min-height: 2rem; padding: 0.25rem 0.8rem; font-size: var(--text-xs); }
.l-opts { display: flex; flex-direction: column; padding: 0 var(--space-md) var(--space-md); border-top: var(--rule); }
.l-opts__add { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); padding-top: var(--space-md); }
.l-vo {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  grid-template-areas: "img head tools" "img sum sum" "img st st" ". body body";
  column-gap: var(--space-md); row-gap: var(--space-xs); padding: var(--space-lg) 0; border-bottom: var(--rule);
  scroll-margin-block: calc(var(--demobar-h) + 5rem);
}
.l-vo:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.l-vo__img { grid-area: img; align-self: start; width: 100%; }
.l-vo__head { grid-area: head; min-width: 0; align-self: center; }
.l-vo__title { display: flex; flex-direction: column; gap: 0.1rem; font-size: var(--text-base); font-weight: 800; line-height: 1.3; }
.l-vo__no { font-size: var(--text-2xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }
.l-vo__name { min-width: 0; overflow-wrap: anywhere; }
.l-vo__tools { grid-area: tools; display: flex; gap: 2px; align-self: start; }
.l-vo__tools .btn[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.l-vo__sum { grid-area: sum; display: flex; flex-wrap: wrap; align-items: center; row-gap: 0.15rem; min-width: 0; font-size: var(--text-sm); }
.l-vo__st { grid-area: st; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); min-width: 0; }
.l-vo__ok, .l-vo__warn { display: inline-flex; align-items: flex-start; gap: var(--space-2xs); min-width: 0; font-size: var(--text-sm); font-weight: 700; }
.l-vo__ok { color: var(--color-good-ink); }
.l-vo__warn { color: var(--color-terra-ink); }
:is(.l-vo__ok, .l-vo__warn) > .ic { display: block; flex: none; margin-top: 0.2rem; }
.l-vo__body { grid-area: body; display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; padding-top: var(--space-2xs); }
.l-vo__body > .seg { align-self: flex-start; }
@container (max-width: 34rem) {
  .l-opts { padding-inline: var(--space-sm); }
  .l-vo { grid-template-columns: 4.25rem minmax(0, 1fr) auto; grid-template-areas: "img head tools" "sum sum sum" "st st st" "body body body"; column-gap: var(--space-sm); padding-block: var(--space-md); }
  .l-vo__head { align-self: start; }
}
.l-opt__namef { display: flex; align-items: center; gap: var(--space-xs); max-width: 28rem; }
.l-opt__namef .input { flex: 1 1 auto; }

/* item rows */
.l-items { display: flex; flex-direction: column; }
.l-items__empty { padding: var(--space-xs) 0; }
.l-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name amount rm" "calc calc calc"; align-items: center; gap: var(--space-2xs) var(--space-sm); padding: var(--space-xs) 0; border-bottom: var(--rule); }
.l-item:last-child { border-bottom: 0; }
.l-item__name { grid-area: name; display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem var(--space-xs); min-width: 0; }
.l-item__amount { grid-area: amount; display: flex; gap: var(--space-2xs); }
.l-item__calc { grid-area: calc; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-xs); }
.l-item__rm { grid-area: rm; }
.l-item__title { font-weight: 600; font-size: var(--text-sm); min-width: 0; overflow-wrap: anywhere; }
.l-item__amt { width: 4.75rem; }
.l-item__unit { width: auto; max-width: 12rem; }
.l-item__g { font-size: var(--text-xs); font-weight: 800; }
@container (min-width: 52rem) {
  .l-item { grid-template-columns: minmax(0, 1fr) auto minmax(0, 15rem) auto; grid-template-areas: "name amount calc rm"; }
}
@container (max-width: 34rem) {
  .l-item { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name rm" "amount amount" "calc calc"; padding-block: var(--space-sm); }
  .l-item__amt { width: 5.5rem; }
  .l-item__unit { flex: 1 1 auto; max-width: none; }
}

/* recipe option */
.l-rcp { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-sm); }
.l-rcp__pick { display: flex; align-items: center; gap: var(--space-sm); flex: 1 1 16rem; min-width: 0; min-height: 3rem; padding: var(--space-xs) var(--space-sm); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-sm); background: var(--color-paper-2); color: inherit; text-align: left; transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.l-rcp__pick:hover { border-color: var(--color-muted); background: var(--color-paper); }
.l-rcp__pick > .ic { margin-left: auto; flex: none; color: var(--color-muted); }
.l-rcp__txt { display: flex; flex-direction: column; min-width: 0; }
.l-rcp__name { font-weight: 700; }
.l-rcp__serv { display: flex; flex-direction: column; gap: 0.15rem; }
.l-ingr { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.l-ingr li { display: grid; grid-template-columns: minmax(0, 1fr) 4rem minmax(0, auto); align-items: baseline; gap: var(--space-sm); padding: 0.3rem 0; border-bottom: var(--rule); font-size: var(--text-sm); }
.l-ingr li:last-child { border-bottom: 0; }
.l-ingr__g { text-align: right; font-weight: 700; }
@container (max-width: 34rem) {
  .l-ingr li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; }
  .l-ingr li .l-mini { grid-column: 1 / -1; }
}

/* summary */
.l-sum__body { display: flex; flex-direction: column; gap: var(--space-lg); }
.l-set { display: flex; flex-direction: column; gap: var(--space-xs); }
.l-set + .l-set { padding-top: var(--space-md); border-top: var(--rule); }
.l-set__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2xs) var(--space-sm); }
.l-set__big { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1; }
.l-meter { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr) auto 2.5rem; align-items: center; gap: var(--space-xs); font-size: var(--text-xs); }
.l-meter__k { font-weight: 800; color: var(--color-muted); }
.l-meter__bar { position: relative; height: 0.75rem; border-radius: var(--radius-pill); background: var(--color-paper-3); }
.l-meter__band { position: absolute; top: 0; bottom: 0; left: calc(var(--a) * 100%); width: calc((var(--b) - var(--a)) * 100%); background: var(--color-paper-4); }
.l-meter__fill { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; width: calc(var(--p) * 100%); border-radius: var(--radius-pill); background: var(--color-ink); transition: width var(--dur-med) var(--ease-out); }
.l-meter--warn .l-meter__fill { background: var(--color-gold-deep); }
.l-meter--off .l-meter__fill { background: var(--color-terra); }
.l-meter__tick { position: absolute; top: -3px; bottom: -3px; left: calc(var(--t) * 100%); width: 2px; margin-left: -1px; border-radius: 1px; background: var(--color-ink); }
.l-meter__v { font-weight: 700; white-space: nowrap; }
.l-meter__d { justify-content: flex-end; }
.l-warn { display: flex; flex-direction: column; gap: var(--space-xs); padding-top: var(--space-md); border-top: var(--rule); }
.l-warn__h { font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); }
.l-warn__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2xs); }
.l-warn__i { display: flex; align-items: flex-start; gap: var(--space-xs); font-size: var(--text-sm); }
.l-warn__i > .ic { flex: none; margin-top: 0.2rem; display: block; }
.l-warn__i--off > .ic { color: var(--color-terra-ink); }
.l-warn__i--warn > .ic { color: var(--color-gold-ink); }
.l-warn__go { display: flex; align-items: flex-start; gap: var(--space-xs); width: calc(100% + 2 * var(--space-2xs)); margin: -0.2rem calc(var(--space-2xs) * -1); padding: 0.2rem var(--space-2xs); border: 0; border-radius: var(--radius-xs); background: transparent; color: inherit; font: inherit; font-size: var(--text-sm); text-align: left; transition: background-color var(--dur-short) var(--ease-out); }
.l-warn__go:hover { background: var(--color-paper-3); }
.l-warn__go > .ic { display: block; flex: none; margin-top: 0.2rem; color: var(--color-terra-ink); }
.l-sets { display: flex; flex-direction: column; gap: var(--space-xs); padding-top: var(--space-md); border-top: var(--rule); }
.l-sets__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-sm); }
.l-seti { display: flex; flex-direction: column; gap: 0.1rem; }
.l-seti__h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 var(--space-sm); font-size: var(--text-sm); }
.l-hist__list { list-style: none; margin: 0; padding: 0; }
.l-hist__i { display: flex; gap: var(--space-sm); padding: var(--space-sm) var(--space-lg); border-bottom: var(--rule); }
.l-hist__i:last-child { border-bottom: 0; }
.l-hist__v { min-width: 2.25rem; font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.1; }
.l-hist__t { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }

/* phone: sticky publish bar while a draft exists */
.l-pb__bar { display: none; }
@container (max-width: 55.99rem) {
  .l-pb__bar:not(:empty) { position: sticky; bottom: calc(var(--space-sm) + env(safe-area-inset-bottom)); z-index: var(--z-sticky); display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-night); color: var(--color-night-text); font-size: var(--text-sm); font-weight: 700; box-shadow: 0 10px 30px var(--color-shadow-2); }
}

/* sheets: publish, scale */
.l-chg { list-style: none; margin: var(--space-2xs) 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; font-size: var(--text-sm); }
.l-chg li { position: relative; padding-left: var(--space-md); }
.l-chg li::before { content: ""; position: absolute; left: 0.2rem; top: 0.55em; width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--color-rule-strong); }
.l-sc__top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-sm) var(--space-lg); }
.l-sc__kcal { flex: 0 1 12rem; }
.l-sc__k { flex: 1 1 16rem; padding-bottom: var(--space-xs); }
.l-sctbl th[scope="row"] { font-weight: 700; white-space: nowrap; }
.l-sctbl td strong { font-weight: 800; }
@container (max-width: 34rem) {
  .l-sctbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .l-sctbl, .l-sctbl tbody { display: block; }
  .l-sctbl tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xs) var(--space-sm); padding: var(--space-sm) var(--space-md); border-bottom: var(--rule); }
  .l-sctbl th[scope="row"], .l-sctbl td { display: block; padding: 0; border: 0; text-align: left; }
  .l-sctbl th[scope="row"] { grid-column: 1 / -1; }
  .l-sctbl td::before { content: attr(data-k) " "; font-size: var(--text-2xs); font-weight: 800; color: var(--color-muted); }
}

/* "Sovita tavoitteeseen" preview (C4): ennen → jälkeen per ingredient, macros vs target */
.l-fit { container-type: inline-size; }
.l-fit__top { display: flex; flex-direction: column; gap: var(--space-2xs); }
.l-fit__count { margin-right: auto; align-self: center; }
.l-fitc { display: flex; flex-direction: column; gap: var(--space-sm); padding-top: var(--space-md); border-top: var(--rule); }
.l-fitc--same { gap: var(--space-xs); }
.l-fitc__head { display: flex; align-items: center; gap: var(--space-sm); min-width: 0; }
.l-fitc__img { width: 4rem; }
.l-fitc__t { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.l-fitr__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: var(--rule); border-radius: var(--radius-sm); background: var(--color-paper-2); overflow: hidden; }
.l-fitr { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 1rem minmax(0, 1fr); grid-template-areas: "n a to b"; align-items: center; gap: var(--space-2xs) var(--space-xs); padding: var(--space-xs) var(--space-sm); border-bottom: var(--rule); font-size: var(--text-sm); }
.l-fitr:last-child { border-bottom: 0; }
.l-fitr > :nth-child(1) { grid-area: n; } .l-fitr > :nth-child(2) { grid-area: a; } .l-fitr > :nth-child(3) { grid-area: to; } .l-fitr > :nth-child(4) { grid-area: b; }
.l-fitr--head { padding-block: 0.35rem; background: var(--color-paper-3); font-size: var(--text-2xs); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); }
.l-fitr__n { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.l-fitr__a { color: var(--color-muted); }
.l-fitr__to { color: var(--color-muted); }
.l-fitr__to .ic { display: block; }
.l-fitr.is-changed .l-fitr__b { font-weight: 800; }
.l-fitr.is-removed .l-fitr__b { color: var(--color-terra-ink); }
.l-fitm { max-width: 34rem; font-size: var(--text-sm); }
.l-fitm tbody tr:last-child th { border-bottom: 0; }
.l-fitm th, .l-fitm td { padding: 0.35rem var(--space-xs); white-space: nowrap; vertical-align: top; }
.l-fitm tbody th[scope="row"] { font-size: var(--text-xs); font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--color-muted); }
.l-fitm__after td { font-weight: 800; }
.l-fitm .l-dv { display: block; font-size: var(--text-2xs); font-weight: 700; }
.l-fitm .l-dv:not(.l-dv--off) { color: var(--color-muted); }
@container (max-width: 30rem) {
  .l-fitr { grid-template-columns: auto 1rem minmax(0, 1fr); grid-template-areas: "n n n" "a to b"; }
  .l-fitr--head { display: none; }
  .l-fitm th, .l-fitm td { padding-inline: var(--space-2xs); }
}

/* ---------- exercise bank + picker ---------- */
.l-xlist { list-style: none; margin: 0; padding: 0; }
.l-xlist > li { border-bottom: var(--rule); }
.l-xlist > li:last-child { border-bottom: 0; }
.l-xrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-md); width: 100%; min-height: 3.5rem; padding: var(--space-sm) var(--space-lg); border: 0; background: transparent; color: inherit; text-align: left; text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.l-xrow:hover { background: var(--color-paper-3); }
.l-xrow:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; border-radius: 0; }
.l-xrow > .ic { flex: none; color: var(--color-muted); }
.l-xrow--media { flex-wrap: nowrap; padding-left: var(--space-md); }
.l-xrow__img { width: 4.5rem; }
.l-xrow--media .l-xrow__main { flex: 1 1 auto; }
@container (max-width: 34rem) {
  .l-xrow--media { flex-wrap: wrap; display: grid; grid-template-columns: 3.75rem minmax(0, 1fr); column-gap: var(--space-sm); padding-inline: var(--space-sm); }
  .l-xrow--media .l-xrow__img { width: 100%; grid-row: span 2; align-self: start; }
  .l-xrow--media .l-xrow__meta { grid-column: 2; }
}
.l-xrow__main { display: flex; flex-direction: column; gap: 0.1rem; flex: 1 1 14rem; min-width: 0; }
.l-xrow__title { font-weight: 700; }
.l-xrow__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-sm); }
.l-xrow__video { display: inline-flex; align-items: center; gap: 0.2rem; font-weight: 700; color: var(--color-ink-2); }
.l-xrow__video .ic { display: block; }
@container (max-width: 34rem) { .l-xrow { padding-inline: var(--space-md); } .l-xrow > .ic { display: none; } }
.l-xpr { grid-template-columns: minmax(0, 1fr) auto; }
.l-xpr__meta { text-align: right; }
@container (max-width: 30rem) { .l-xpr { grid-template-columns: minmax(0, 1fr); row-gap: 0.1rem; } .l-xpr__meta { text-align: left; } }
.l-xform__video { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 14rem); gap: var(--space-sm); align-items: end; }
.l-xform__media { aspect-ratio: auto; min-height: 5.5rem; grid-template-columns: auto minmax(0, 1fr); text-align: left; justify-items: start; }
.l-xform__media .ic { display: block; }
.l-xform { container-type: inline-size; }
@container (max-width: 30rem) { .l-xform__video { grid-template-columns: minmax(0, 1fr); } }

/* ---------- program builder ---------- */
.l-prb { display: flex; flex-direction: column; gap: var(--space-xl); }
.l-pset__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-sm); }
@container (max-width: 34rem) { .l-pset__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .l-pset__grid > :first-child { grid-column: 1 / -1; } }
.l-wos { display: flex; flex-direction: column; gap: var(--space-sm); }
.l-wos__bar { display: flex; align-items: flex-end; gap: var(--space-sm); border-bottom: var(--rule); }
.l-wtabs { flex: 1 1 auto; min-width: 0; border-bottom: 0; gap: var(--space-md); }
.l-wtab { display: inline-flex; align-items: baseline; gap: var(--space-2xs); min-height: 2.75rem; cursor: pointer; }
.l-wtab__l { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; color: var(--color-ink); }
.l-wtab__n { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; }
.l-wtab__d { font-size: var(--text-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); }
.l-wos__bar > .btn { margin-bottom: var(--space-2xs); flex: none; }
@container (max-width: 34rem) { .l-wtab__n { display: none; } .l-wtabs { gap: var(--space-lg); } }
.l-wo__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "letter fields tools"; align-items: center; gap: var(--space-xs) var(--space-sm); padding: var(--space-sm) var(--space-md) var(--space-xs); }
.l-wo__head > .l-opt__letter { grid-area: letter; }
.l-wo__head > .l-wo__fields { grid-area: fields; }
@container (max-width: 34rem) { .l-wo__head { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "letter fields" ". tools"; } .l-wo__head > .l-meal__tools { justify-self: end; } }
.l-wo__fields { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); min-width: 0; }
.l-wo__day { display: inline-flex; align-items: center; gap: var(--space-xs); }
.l-wo__dayl { font-size: var(--text-xs); font-weight: 700; color: var(--color-muted); }
.l-wo__day .input { width: auto; min-width: 9rem; }
.l-wo__fields .l-meal__name { flex: 1 1 16rem; width: auto; }
.l-wo__dur { padding: 0 var(--space-md) var(--space-sm); }
.l-wo__foot { padding: var(--space-sm) var(--space-md) var(--space-md); }
.l-xrows { position: relative; display: flex; flex-direction: column; gap: var(--space-xs); padding: 0 var(--space-md); }
.l-xrows__empty { padding: var(--space-md) 0; }
.l-xr { --l-grip: 2.25rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); padding: var(--space-sm) var(--space-md); border: var(--rule); border-radius: var(--radius-sm); background: var(--color-paper-2); scroll-margin: calc(var(--demobar-h) + 4.5rem) 0 5rem; }
.l-xr__top { display: flex; align-items: center; gap: var(--space-xs); min-width: 0; }
/* drag & drop (Aku 15.11.): grip = pointer drag or arrow keys (program-dnd.js); touch-action only on the grip, the page scrolls elsewhere */
.l-xr__grip { flex: none; display: grid; place-items: center; width: var(--l-grip); min-height: 2.75rem; margin-left: calc(var(--space-2xs) * -1); padding: 0; border: 0; border-radius: var(--radius-xs); background: transparent; color: var(--color-muted); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.l-xr__grip:hover { background: var(--color-paper-3); color: var(--color-ink); }
.l-xr__grip:focus-visible { outline-offset: 0; color: var(--color-ink); }
.l-xr__grip--none { visibility: hidden; }
/* while dragging: every row shows only its name line (the workout fits on a phone), the row stays dimmed in place and a
   lifted copy follows the pointer; the line shows the drop slot */
.l-xrows.is-sorting .l-xr > :not(.l-xr__top) { display: none; }
.l-xrows.is-sorting .l-xr__tools { visibility: hidden; }
.l-xrows.is-dragging .l-xr:not(.is-origin) { pointer-events: none; }
.l-xr.is-origin { border-style: dashed; background: transparent; }
.l-xr.is-origin > * { opacity: 0.4; }
.l-xr--ghost { position: absolute; top: 0; z-index: calc(var(--z-base) + 1); border-color: var(--color-rule-strong); box-shadow: 0 12px 32px var(--color-shadow-2); pointer-events: none; }
.l-xr--ghost .l-xr__grip { background: var(--color-paper-3); color: var(--color-ink); }
.l-xrows__drop { position: absolute; top: 0; left: 0; right: 0; z-index: var(--z-base); height: 3px; margin-top: -1.5px; border-radius: var(--radius-pill); background: var(--color-ink); pointer-events: none; }
.l-xrows__drop::before { content: ""; position: absolute; left: -3px; top: 50%; width: 0.6rem; height: 0.6rem; margin-top: -0.3rem; border: 2px solid var(--color-ink); border-radius: 50%; background: var(--color-paper-2); }
.l-xr.is-moved { animation: l-moved var(--dur-long) var(--ease-out); }
@keyframes l-moved { from { background-color: var(--color-paper-4); } }
html.l-dragging, html.l-dragging * { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.l-xr__no { width: 1.5rem; flex: none; font-family: var(--font-display); font-size: var(--text-lg); line-height: 1; color: var(--color-muted); text-align: center; }
.l-xr__ex { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--space-xs); flex: 1 1 auto; min-width: 0; min-height: 2.75rem; padding: var(--space-2xs) var(--space-xs); border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: inherit; text-align: left; transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.l-xr__ex:hover { border-color: var(--color-rule-strong); background: var(--color-paper); }
.l-xr__ex > .ic { align-self: center; margin-left: auto; color: var(--color-muted); flex: none; }
.l-xr__exn { font-weight: 700; }
.l-xr__tools { display: flex; gap: 2px; flex: none; }
.l-xr__f { display: grid; grid-template-columns: 4.5rem 6rem 6.5rem 5.5rem 6rem; gap: var(--space-xs); padding-left: calc(var(--l-grip) + 1.5rem + var(--space-xs)); }
.l-fld { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.l-fld .input { width: 100%; }
.l-fld--note { padding-left: calc(var(--l-grip) + 1.5rem + var(--space-xs)); max-width: calc(36rem + var(--l-grip)); }
.l-xr__ss { min-height: 2.25rem; padding-left: calc(var(--l-grip) + 1.5rem + var(--space-xs)); }
@container (max-width: 34rem) {
  .l-xr { padding-inline: var(--space-sm); }
  .l-xr__f { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-left: 0; }
  .l-xr__f .input-suffix .input { padding-right: 1.6rem; }   /* "150 s" fits a third of a 320 px phone */
  .l-xr__f .input-suffix__unit { right: 0.55rem; }
  .l-fld--note, .l-xr__ss { padding-left: 0; }
}
.l-ss { position: relative; display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-lg) 0 0 var(--space-md); }
.l-ss::before { content: ""; position: absolute; left: 0; top: calc(var(--space-lg) + var(--space-sm)); bottom: var(--space-sm); width: 0.55rem; border: 2px solid var(--color-ink-2); border-right: 0; border-radius: var(--radius-xs) 0 0 var(--radius-xs); }
.l-ss__label { position: absolute; top: 0; left: var(--space-md); font-size: var(--text-2xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-ink-2); }

/* training days (Aku 15.11.): 'free' = the client picks her days, 'suggested' = a suggested weekday per workout */
.l-dm { min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: var(--space-xs); }
.l-dm > legend { padding: 0; margin-bottom: var(--space-2xs); }
.l-dm__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
@container (max-width: 30rem) { .l-dm__opts { grid-template-columns: minmax(0, 1fr); } }
.l-dm__opt { display: flex; align-items: center; gap: var(--space-sm); min-width: 0; min-height: 2.75rem; padding: var(--space-xs) var(--space-md); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-sm); background: var(--color-paper-2); font-size: var(--text-sm); font-weight: 700; line-height: 1.3; cursor: pointer; transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.l-dm__opt:hover { background: var(--color-paper-3); }
.l-dm__opt:has(.l-dm__in:checked) { border-color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-ink); }
.l-dm__opt:has(.l-dm__in:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.l-dm__in { flex: none; width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--color-ink); cursor: pointer; }
.l-dm__in:focus-visible { outline: none; }

/* week panel */
.l-week__free { display: flex; align-items: flex-start; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.l-week__free > .ic { flex: none; margin-top: 0.15rem; color: var(--color-muted); }
.l-week__days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-2xs); }
.l-week__d { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; padding: var(--space-xs) 0; border-radius: var(--radius-sm); background: var(--color-paper-3); }
.l-week__dn { font-size: var(--text-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-muted); }
.l-week__ws { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1; color: var(--color-subtle); }
.l-week__d.is-on { background: var(--color-night); }
.l-week__d.is-on .l-week__dn { color: var(--color-night-muted); }
.l-week__d.is-on .l-week__ws { color: var(--color-night-text); }
.l-week__d.is-clash { box-shadow: inset 0 0 0 2px var(--color-terra); }
.l-week__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.l-week__list li { display: flex; align-items: baseline; gap: var(--space-xs); padding: 0.35rem 0; border-bottom: var(--rule); font-size: var(--text-sm); }
.l-week__list li:last-child { border-bottom: 0; }
.l-week__l { width: 1.25rem; font-family: var(--font-display); font-size: var(--text-lg); line-height: 1; }
.l-week__nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }

/* ---------- templates hub ---------- */
.l-tlist { list-style: none; margin: 0; padding: 0; }
.l-trow { display: flex; align-items: center; gap: var(--space-sm); padding-right: var(--space-md); border-bottom: var(--rule); transition: background-color var(--dur-short) var(--ease-out); }
.l-trow:last-child { border-bottom: 0; }
.l-trow:hover { background: var(--color-paper-3); }
.l-trow__link { flex: 1 1 auto; min-width: 0; min-height: 3.5rem; display: flex; flex-direction: column; justify-content: center; gap: 0.1rem; padding: var(--space-sm) var(--space-lg); color: inherit; text-decoration: none; }
.l-trow__link:focus-visible { outline-offset: -2px; }
.l-trow__title { font-weight: 700; }
.l-tkind { margin-left: var(--space-xs); vertical-align: 2px; }
.l-trow__end { flex: none; display: flex; align-items: center; gap: var(--space-sm); }
@container (max-width: 34rem) {
  .l-trow { flex-wrap: wrap; padding: 0 var(--space-sm) var(--space-xs) 0; }
  .l-trow__link { flex-basis: 100%; padding: var(--space-sm) var(--space-md) 0; }
  .l-trow__end { width: 100%; justify-content: space-between; padding-left: var(--space-md); }
}

/* ---------- recipe editor ---------- */
.l-re__basic { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: var(--space-lg) var(--space-xl); align-items: start; }
@container (max-width: 40rem) { .l-re__basic { grid-template-columns: minmax(0, 1fr); } }
.l-rimg { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; }
.l-rimg__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); background: var(--color-paper-3); }
.l-rimg__ph { aspect-ratio: 4 / 3; border-radius: var(--radius-md); }
.l-rimg__ph .ic { display: block; }
.l-rimg__act { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.l-rimg__btn { cursor: pointer; }
.l-rimg__btn:focus-within { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.l-tag { padding-right: 0.25rem; gap: 0.1rem; }
.l-tag__x { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 0; border-radius: 50%; background: transparent; color: var(--color-muted); }
.l-tag__x:hover { background: var(--color-paper-4); color: var(--color-ink); }
.l-tag__x .ic { display: block; }
.l-scale { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }
.l-scale .input { width: 4.5rem; }
.l-qo { display: flex; align-items: center; gap: var(--space-xs); }
.l-qo .input { flex: 1 1 auto; min-width: 0; }

/* ---------- check-in form builder ---------- */
.l-cib { display: flex; flex-direction: column; gap: var(--space-lg); }
.l-cib__head { display: flex; flex-direction: column; gap: var(--space-2xs); max-width: 48rem; }
.l-cib__desc { max-width: 32rem; }
.l-cib__qh { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2xs) var(--space-md); }
.l-cib__hint { display: inline-flex; align-items: center; gap: var(--space-2xs); font-weight: 700; }
.l-cib__hint > .ic { display: block; flex: none; }
.l-qs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-sm); }
.l-q { position: relative; display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-xs) var(--space-md) var(--space-md); border: var(--rule); border-radius: var(--radius-md); background: var(--color-paper-2); transition: opacity var(--dur-short) var(--ease-out); }
.l-q--drag { opacity: 0.45; }
.l-q--before::before, .l-q--after::after { content: ""; position: absolute; left: var(--space-sm); right: var(--space-sm); height: 3px; border-radius: 2px; background: var(--color-gold-deep); }
.l-q--before::before { top: calc(var(--space-sm) / -2 - 2px); }
.l-q--after::after { bottom: calc(var(--space-sm) / -2 - 2px); }
.l-q__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-sm); }
.l-q__grip { display: grid; place-items: center; width: 2rem; height: 2.5rem; margin-left: calc(var(--space-xs) * -1); border-radius: var(--radius-xs); color: var(--color-muted); cursor: grab; }
.l-q__grip:hover { background: var(--color-paper-3); color: var(--color-ink); }
.l-q__grip:active { cursor: grabbing; }
.l-q__grip .ic { display: block; }
.l-q__no { min-width: 1.25rem; font-family: var(--font-display); font-size: var(--text-xl); line-height: 1; }
.l-q__req { margin-left: auto; min-height: 2.25rem; }
.l-q__tools { display: flex; gap: 2px; }
.l-q__tools .btn[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.l-q__fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); max-width: 44rem; }
.l-q__row { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 8rem); gap: var(--space-sm); }
/* Aku 15.11.: the step (section) of a question, long / short text, the default form by gender */
.l-q__sec { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-xs) var(--space-md); }
.l-q__sec .field { flex: 0 1 20rem; }
.l-q__long { min-height: 2.75rem; }
.l-cib__def { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); margin-top: var(--space-xs); }
.l-cib__def .xs { flex-basis: 100%; }
.l-pq__sec { padding-top: var(--space-xs); border-top: var(--rule); font-size: var(--text-sm); font-weight: 800; }
.l-pq__sec:first-child { padding-top: 0; border-top: 0; }
@container (max-width: 34rem) { .l-q__req { margin-left: 0; } }
@media (pointer: coarse) { .l-q__grip { display: none; } }
.l-qadd { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.l-prev { display: flex; flex-direction: column; gap: var(--space-xs); }
.l-prev__col { display: flex; flex-direction: column; gap: var(--space-md); max-width: 24rem; padding: var(--space-lg); border: var(--rule); border-radius: var(--radius-lg); background: var(--color-paper); }
.l-pq { display: flex; flex-direction: column; gap: var(--space-2xs); }
.l-pq__l { font-size: var(--text-sm); font-weight: 700; }
.l-pq__in { display: flex; align-items: center; justify-content: space-between; min-height: 2.75rem; padding: 0 var(--space-sm); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-sm); background: var(--color-paper-2); color: var(--color-subtle); font-weight: 600; }
.l-pq__scale { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 2px; }
.l-pq__scale span { display: grid; place-items: center; min-height: 2.25rem; border-radius: var(--radius-xs); background: var(--color-paper-3); font-size: var(--text-xs); font-weight: 700; }
.l-pq__seg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: var(--radius-pill); background: var(--color-paper-3); }
.l-pq__seg span { display: grid; place-items: center; min-height: 2.25rem; border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 700; color: var(--color-muted); }
.l-pq__chips { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.l-pq__chips span { padding: 0.35rem 0.8rem; border: 1px solid var(--color-rule-strong); border-radius: var(--radius-pill); background: var(--color-paper-2); font-size: var(--text-sm); font-weight: 600; }
.l-pq__chips--multi span { display: inline-flex; align-items: center; gap: 0.3rem; }
.l-pq__chips--multi .ic { color: var(--color-muted); }
.l-pq__ta { min-height: 4.5rem; border: 1px solid var(--color-rule-strong); border-radius: var(--radius-sm); background: var(--color-paper-2); }
.l-pq__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); }
.l-pq__photos .photo-slot { align-content: center; gap: 0.2rem; }
.l-pq__photos .photo-slot .ic { display: block; }

/* ---------- PDF import ---------- */
.l-im { display: flex; flex-direction: column; gap: var(--space-lg); }
.l-drop { display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); padding: var(--space-xl) var(--space-lg); border: 1.5px dashed var(--color-rule-strong); border-radius: var(--radius-md); background: var(--color-paper); text-align: center; transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.l-drop > .ic { color: var(--color-muted); }
.l-drop.is-over { border-color: var(--color-ink); background: var(--color-paper-3); }
.l-drop__btn { cursor: pointer; }
.l-drop__btn:focus-within { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.l-files { list-style: none; margin: 0; padding: 0; border: var(--rule); border-radius: var(--radius-sm); background: var(--color-paper-2); }
.l-files li { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs) var(--space-2xs) var(--space-2xs) var(--space-sm); border-bottom: var(--rule); font-size: var(--text-sm); }
.l-files li:last-child { border-bottom: 0; }
.l-files li > .ic { display: block; flex: none; color: var(--color-muted); }
.l-files__n { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.l-steps { list-style: none; margin: 0; padding: var(--space-md) 0; display: flex; flex-direction: column; gap: var(--space-sm); }
.l-steps li { display: flex; align-items: center; gap: var(--space-sm); color: var(--color-subtle); font-weight: 600; }
.l-steps li > .ic { display: block; flex: none; }
.l-steps li.is-done { color: var(--color-ink); }
.l-steps li.is-done > .ic { color: var(--color-good-ink); }
.l-steps li.is-now { color: var(--color-ink); font-weight: 700; }
.l-steps li.is-now > .ic { animation: spin 1.2s linear infinite; }
.l-file { display: inline-flex; align-items: center; gap: 0.25rem; margin-right: var(--space-sm); white-space: nowrap; }
.l-legend { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); font-size: var(--text-sm); font-weight: 600; }
.l-legend > span { display: inline-flex; align-items: center; gap: var(--space-xs); }
.l-sw { display: inline-block; width: 1rem; height: 1rem; border-radius: var(--radius-xs); border: 1px solid var(--color-rule-strong); }
.l-sw--sure { background: var(--color-paper-2); }
.l-sw--unsure { background: var(--color-gold-soft); border-color: var(--color-gold-deep); }
.l-sw--missing { background: var(--color-terra-soft); border-color: var(--color-terra); }
.l-ig__sub { padding: var(--space-sm) var(--space-md) var(--space-md); border-bottom: var(--rule); }
.l-ig__sub:last-child { border-bottom: 0; }
.l-ig__h { margin-bottom: var(--space-xs); font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); }
.l-ig__add { margin-top: var(--space-xs); }
.l-irows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-xs); }
.l-irow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "st raw tools" "match match amt" "m m m"; align-items: center; gap: var(--space-xs) var(--space-sm); padding: var(--space-xs) var(--space-sm) var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-sm); background: var(--color-paper-2); }
.l-irow--unsure { background: var(--color-gold-soft); border-color: var(--color-gold-deep); }
.l-irow--missing { background: var(--color-terra-soft); border-color: var(--color-terra); }
.l-irow__st { grid-area: st; display: inline-flex; align-items: center; gap: 0.25rem; font-size: var(--text-2xs); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-good-ink); }
.l-irow__st .ic { display: block; }
.l-irow--unsure .l-irow__st { color: var(--color-gold-ink); }
.l-irow--missing .l-irow__st { color: var(--color-terra-ink); }
.l-irow__raw { grid-area: raw; min-width: 0; font-size: var(--text-sm); font-weight: 600; overflow-wrap: anywhere; }
.l-irow__match { grid-area: match; min-width: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.l-irow__match .input { flex: 1 1 14rem; width: auto; min-width: 0; }
.l-irow__own { flex: none; }
.l-irow__amt { grid-area: amt; }
.l-irow__g { display: inline-flex; width: 7.5rem; }
.l-irow__g .input { width: 100%; }
.l-irow__sr { display: inline-flex; align-items: center; gap: var(--space-2xs); }
.l-irow__sr .input { width: 4.25rem; }
.l-irow__m { grid-area: m; }
.l-irow__m:empty { display: none; }
.l-irow__tools { grid-area: tools; display: flex; justify-content: flex-end; gap: 2px; }
@container (max-width: 34rem) {
  .l-irow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "st tools" "raw raw" "match match" "amt amt" "m m"; }
}
.l-cmp th, .l-cmp td { padding: var(--space-xs) var(--space-2xs); white-space: nowrap; }
.l-cmp tbody th[scope="row"] { font-size: var(--text-sm); font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--color-ink); }
.l-cmp__pct { display: block; font-size: var(--text-2xs); font-weight: 600; color: var(--color-muted); }
.l-cmp__r--warn { background: var(--color-gold-soft); }
.l-cmp__r--off { background: var(--color-terra-soft); }

/* ---------- client food preferences in the diet editor (Aku 15.11.) ----------
 * right column on wide editors, a collapsible block above the day target on narrow ones (container l-pb) */
.l-pb { container-name: l-pb; }
.l-pf--top { display: none; }
@container l-pb (max-width: 55.99rem) {
  .l-pf--top { display: block; }
  .l-pf--side { display: none; }
}
.l-pf__body { display: flex; flex-direction: column; gap: var(--space-md); }
.l-pf--side .l-pf__body { padding: var(--space-md) var(--space-lg) var(--space-lg); }
.l-pf__g { display: flex; flex-direction: column; gap: 0.15rem; }
.l-pf__gh { display: flex; align-items: baseline; gap: var(--space-xs); font-size: var(--text-2xs); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); }
.l-pf__gh .num { letter-spacing: 0; }
.l-pf__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.l-pf__i { display: flex; align-items: center; gap: var(--space-xs); min-height: 2rem; padding: 0.15rem 0; border-bottom: var(--rule); font-size: var(--text-sm); }
.l-pf__i:last-child { border-bottom: 0; }
.l-pf__t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-xs); flex: 1 1 auto; min-width: 0; }
.l-pf__t > .ic { flex: none; align-self: center; color: var(--color-terra-ink); }
.l-pf__n { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.l-pf__k { font-size: var(--text-xs); font-weight: 600; color: var(--color-muted); }
.l-pf__i > .badge { flex: none; }
.l-pf__rm { flex: none; margin-block: -0.25rem; }
.l-pf__th { margin: 0; font: inherit; }
.l-pf__toggle {
  display: flex; align-items: center; gap: var(--space-sm); width: 100%; min-height: 3.25rem; padding: var(--space-sm) var(--space-md);
  border: 0; border-radius: var(--radius-md); background: transparent; color: inherit; font: inherit; text-align: left;
  transition: background-color var(--dur-short) var(--ease-out);
}
.l-pf__toggle:hover { background: var(--color-paper-3); }
.l-pf__toggle > .ic { flex: none; margin-left: auto; color: var(--color-muted); }
.l-pf__toggle[aria-expanded="true"] { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.l-pf__tt { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.l-pf__ttl { font-size: var(--text-base); font-weight: 800; }
.l-pf__sum { display: flex; flex-wrap: wrap; gap: 0 var(--space-sm); font-size: var(--text-xs); font-weight: 600; color: var(--color-muted); }
.l-pf__al { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 700; color: var(--color-ink); }
.l-pf__al > .ic { flex: none; color: var(--color-terra-ink); }
.l-pf--top .l-pf__body { padding: var(--space-md); border-top: var(--rule); }
.l-pf__rec { overflow-wrap: anywhere; }
.l-pf__res .l-tpr { grid-template-columns: minmax(0, 1fr) auto; }
/* "Kopioi pohjasta" sheets (plan-tools / program-tools): name + chevron on one row (the chevron wrapped under the name) */
.l-tpr { grid-template-columns: minmax(0, 1fr) auto; }
.l-pf__res .l-tpr > .ic { color: var(--color-muted); }
.l-pf__hits {
  display: flex; align-items: flex-start; gap: var(--space-xs); width: 100%; min-height: 2.25rem; padding: var(--space-xs) var(--space-sm);
  border: 0; border-radius: var(--radius-xs); color: var(--color-ink); font: inherit; font-size: var(--text-sm); font-weight: 700; text-align: left;
  transition: box-shadow var(--dur-short) var(--ease-out);
}
.l-pf__hits > .ic { display: block; flex: none; margin-top: 0.15rem; }
.l-pf__hits:hover { box-shadow: inset 0 0 0 1px var(--color-rule-strong); }
.l-pf__hits--danger { background: var(--color-terra-soft); }
.l-pf__hits--danger > .ic { color: var(--color-terra-ink); }
.l-pf__hits--warn { background: var(--color-gold-soft); }
.l-pf__hits--warn > .ic { color: var(--color-gold-ink); }
@media (pointer: coarse), (max-width: 40rem) { .l-pf__hits { min-height: 2.75rem; align-items: center; } .l-pf__hits > .ic { margin-top: 0; } }

/* the client's allergies and disliked foods in the plan: first in Huomiot and on the option itself */
.l-warn__pref { border-radius: var(--radius-xs); }
.l-warn__pref--danger { background: var(--color-terra-soft); }
.l-warn__pref--warn { background: var(--color-gold-soft); }
.l-warn__pref .l-warn__go { width: 100%; margin: 0; padding: var(--space-xs) var(--space-sm); color: var(--color-ink); }
.l-warn__pref .l-warn__go:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--color-rule-strong); }
.l-warn__pref--danger .l-warn__go > .ic { color: var(--color-terra-ink); }
.l-warn__pref--warn .l-warn__go > .ic { color: var(--color-gold-ink); }
.l-warn__pref strong { font-weight: 800; }
.l-warn__pref + .l-warn__i:not(.l-warn__pref) { margin-top: var(--space-2xs); }
.l-vo__pref { flex: 1 1 100%; display: flex; align-items: flex-start; gap: var(--space-2xs); padding: 0.3rem var(--space-xs); border-radius: var(--radius-xs); font-size: var(--text-sm); font-weight: 600; color: var(--color-ink); overflow-wrap: anywhere; }
.l-vo__pref > .ic { display: block; flex: none; margin-top: 0.2rem; }
.l-vo__pref strong { font-weight: 800; }
.l-vo__pref--danger { background: var(--color-terra-soft); }
.l-vo__pref--danger > .ic { color: var(--color-terra-ink); }
.l-vo__pref--warn { background: var(--color-gold-soft); }
.l-vo__pref--warn > .ic { color: var(--color-gold-ink); }


/* ---------- touch + narrow screens (keep last) ---------- */
@media (pointer: coarse), (max-width: 40rem) {
  /* core .input--sm (components.css:100) overrides the core 16px touch rule (components.css:77): restore 16px here */
  :is(.l-page, .l-pb, .l-prb, .l-cib, .l-im, .l-pick, .l-amt, .l-ff, .l-sheet) :is(.input, .input--sm, select, textarea) { font-size: var(--text-md); }
  :is(.l-page, .l-pb, .l-prb, .l-cib, .l-im, .l-pick, .l-amt, .l-ff, .l-sheet) :is(.seg__btn, .chip, .btn--sm, .tabs__tab) { min-height: 2.75rem; }
  :is(.l-page, .l-pb, .l-prb, .l-cib, .l-im, .l-pick, .l-amt, .l-ff, .l-sheet) .btn--icon.btn--sm { width: 2.75rem; min-width: 2.75rem; }
  :is(.l-page, .l-pb, .l-prb, .l-cib, .l-im, .l-pick, .l-amt, .l-ff, .l-sheet) :is(.input--sm, .l-title) { min-height: 2.75rem; }
  :is(.l-pb, .l-prb) .l-opt__kind .seg__btn { min-height: 2.75rem; padding-inline: 0.6rem; }
  .l-wtab { min-width: 2.75rem; justify-content: center; }
  .l-xr { --l-grip: 2.75rem; }
  .stepper.l-stepper button { width: 2.75rem; min-height: 2.75rem; }
  :is(.l-xr__ss, .l-q__req, .l-sheet .switch) { min-height: 2.75rem; }
  .l-tag__x { width: 2.75rem; height: 2.75rem; margin-block: -0.25rem; }
  .l-warn__go { min-height: 2.75rem; align-items: center; }
  .l-warn__go > .ic { margin-top: 0; }
  @container (max-width: 34rem) { .l-xr__ex > .ic { display: none; } }
}
