/* Update 11 (SH: »Teilen« + Trainingscode — spec §5, §7.2; SH owns it): the Geschafft pill (.sh-pill, top right of
   .fin, no animation), the share sheet (.sh-veil / .sh-sheet, the Repertoire sheet's tokens: paper, ≤ 430 px, scrolls
   inside only where the phone is short; the preview is the card's own canvas at min(100%, 46vh × 0.8), a --paper-2
   block until it has drawn) and Setup's share note (.share-note beside the kill note: its brush, the share icon, the
   red caps, a 64-px ✕; at ≤ 860 px tall the rhythm and at ≤ 820 px the dial, 176 px, give it room — the note is a
   .kill-note, so the dial's rule carries kit.css's specificity and comes later in the cascade; every intensity, length
   and kit fits 360 × 800 and the Pixel 7).
   The »zu leicht — Vollgas?« hint stays away while a shared recipe is on the dial (the recipe says the intensity).
   Kru Ink tokens only (css/style.css). Linked from index.html after kit.css. The sheet's classes stay clear of ON's
   ui/sheet.js (css/once.css: .sh-card, .sh-h, .sh-close, .sh-grab, .sh-foot); the veil alone is the same element in both
   (tests/unit/share-css.test.js). */

/* 1 · THE PILL */
.fin>.sh-pill{--btn-bg:var(--paper-3);position:absolute;z-index:4;top:max(8px,env(safe-area-inset-top));
  right:max(8px,env(safe-area-inset-right));min-height:64px;min-width:64px;padding:0 16px;gap:8px;font:800 18px/1 var(--sans)}
.fin>.sh-pill svg{width:24px;height:24px}

/* 2 · THE SHEET */
.sh-veil{position:fixed;inset:0;z-index:40;display:flex;align-items:flex-end;justify-content:center;background:rgba(26,25,23,.44)}
.sh-sheet{--bg:var(--paper);--fg:var(--ink);--fg-2:var(--ink-2);position:relative;width:100%;max-width:430px;
  max-height:calc(100dvh - 12px);overflow-y:auto;overscroll-behavior:contain;display:grid;gap:8px;align-content:start;
  padding:14px var(--gut) max(12px,env(safe-area-inset-bottom));border-radius:18px 18px 0 0;color:var(--fg);background:var(--bg);
  text-align:left;box-shadow:0 -6px 22px rgba(26,25,23,.22)}
@media (prefers-reduced-motion:no-preference){.sh-veil:not(.still) .sh-sheet{animation:sh-up 320ms var(--e-ink) both}}
@keyframes sh-up{from{opacity:0;transform:translateY(48px)}to{opacity:1;transform:none}}
.sh-title{margin:0}
.sh-title:focus{outline:none}
.sh-title:focus-visible{outline:3px solid var(--fg);outline-offset:4px}
.sh-prev{justify-self:center;width:min(100%,calc(46vh * .5625));border-radius:6px;background:var(--paper-2)} /* 12: 9:16, as high as the 4:5 one was */
/* the canvas sizes the row itself (a replaced element's content minimum: the sheet's grid never squeezes it) */
.sh-canvas{display:block;width:100%;height:auto;aspect-ratio:9/16;border-radius:6px;opacity:0}
.sh-sheet.drawn .sh-canvas{opacity:1}
.sh-line{margin:0;color:var(--fg-2)}
.sh-row{display:grid;grid-template-columns:1fr 1fr;gap:var(--gap)}
.sh-row>.btn{padding:0 10px;font-size:17px;gap:8px}
.sh-row>.btn svg{width:22px;height:22px}
.sh-link{min-height:64px;width:100%;box-sizing:border-box;padding:8px 12px;border:2px solid var(--line);border-radius:6px;
  font:600 15px/1.3 var(--mono);color:var(--ink);background:var(--paper-hi)}
.sh-status{margin:0;font-weight:700;color:var(--fg)}
.sh-status:empty{display:none}

/* 3 · SETUP'S SHARE NOTE (the kill note's brush, ui/share-note.js) */
.share-note{display:flex;align-items:center;gap:10px;padding:4px 4px 4px 12px}
.share-note .sh-ic{width:26px;height:26px;flex:none;color:var(--verm)}
.share-note.bad .sh-ic{color:var(--ink-2)}
.share-note .sh-nt{margin:0;flex:1 1 auto;min-width:0;display:grid;gap:2px;text-align:left}
.share-note .sh-tag{font:800 13px/1.15 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--verm-2)}
.share-note .sh-nl{font:650 15px/1.3 var(--sans);color:var(--ink)}
.share-note .sh-drop{min-width:64px;min-height:64px;padding:0;flex:none}
.share-note .sh-x{font:800 22px/1 var(--sans)}
.s-setup:has(.share-note) .int .easy{display:none}
@media (max-height:860px){
  .s-setup:has(.share-note) :is(.dur,.int){padding-top:6px}
  .s-setup:has(.share-note) .int-sub{margin-top:4px}
  .s-setup:has(.share-note) .kit-rows{margin-top:6px}
  .share-note{padding-block:0}
}
@media (max-height:820px){
  .s-setup:has(.share-note:not([hidden])){--dd:min(176px,calc(100vw - 2 * var(--gut) - 76px))}
  .share-note.bad .sh-ic{display:none} /* a bad link's longer line takes the icon's width */
}
