/* Герої, утворення слів і тексти з життя героїв — js/blocks3.js, 17.10.2026.
   Лише токени з css/theme.css — світла й темна тема, будь-який колір кабінету.
   Класи: hr-* — картки героїв, wf-* — word formation, ht-* — шаблони текстів, hx-* — спільна шапка блоку. */

.hx-head { margin: 0 0 12px; }
.hx-head h3 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; line-height: 1.2; margin: 0 0 4px; color: var(--ink); }
.hx-head .tiny { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

/* =====================================================================
   heroes — профілі героїв
   ===================================================================== */
.hr { margin: 18px 0; }
.hr-viewport { position: relative; margin: 0 -6px; }
.hr-track { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 6px 6px 18px; scrollbar-width: none; outline: none; }
.hr-track::-webkit-scrollbar { display: none; }
.hr-track:focus-visible { box-shadow: inset 0 0 0 2px var(--mag-line); border-radius: 28px; }

.hr-card { flex: 0 0 min(300px, 82%); scroll-snap-align: center; display: flex; flex-direction: column; border-radius: 28px;
  overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), box-shadow .35s, opacity .35s; cursor: default; }
.hr-card:not(.is-cur) { transform: scale(.955); opacity: .82; cursor: pointer; }
.hr-card.is-cur { box-shadow: var(--shadow-2), var(--glow); }

.hr-top { position: relative; aspect-ratio: 4 / 4.6; overflow: hidden; background: var(--surface-2); }
.hr-photo { position: absolute; inset: 0; }
.hr-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .4s; }
.hr-photo.is-loaded img { opacity: 1; }
.hr-photo.is-loaded .hr-fallback { opacity: 0; }
.hr-photo.is-broken img { display: none; }

/* без фото — велика літера на градієнті бренду */
.hr-ava { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .4s;
  background: radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--mag) 55%, var(--surface)) 0%, var(--mag) 55%, color-mix(in srgb, var(--mag) 55%, #000) 100%); }
.hr-g1 .hr-ava, .hr-g1.hr-ava { background: radial-gradient(120% 90% at 80% 10%, color-mix(in srgb, var(--warn) 70%, var(--mag)) 0%, var(--mag) 60%, color-mix(in srgb, var(--mag) 50%, #000) 100%); }
.hr-g2 .hr-ava { background: radial-gradient(120% 90% at 30% 90%, color-mix(in srgb, var(--mag) 40%, var(--solid)) 0%, color-mix(in srgb, var(--mag) 70%, var(--solid)) 60%, var(--solid) 100%); }
.hr-g3 .hr-ava { background: radial-gradient(120% 90% at 70% 20%, color-mix(in srgb, var(--mag) 30%, #fff) 0%, color-mix(in srgb, var(--mag) 75%, var(--warn)) 55%, var(--mag) 100%); }
.hr-ava span { font: 800 clamp(84px, 30vw, 132px)/1 var(--font); letter-spacing: -4px; color: var(--on-mag);
  text-shadow: 0 10px 40px color-mix(in srgb, #000 30%, transparent); opacity: .95; }
.hr-ava::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 75% 25%, color-mix(in srgb, #fff 22%, transparent) 0 2px, transparent 3px),
              radial-gradient(circle at 18% 62%, color-mix(in srgb, #fff 18%, transparent) 0 1.5px, transparent 2.5px),
              radial-gradient(circle at 62% 78%, color-mix(in srgb, #fff 14%, transparent) 0 1.5px, transparent 2.5px); }

.hr-shade { position: absolute; inset: auto 0 0 0; height: 58%; pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, #000 68%, transparent) 0%, color-mix(in srgb, #000 30%, transparent) 45%, transparent 100%); }
.hr-id { position: absolute; left: 18px; right: 74px; bottom: 16px; color: #fff; }
.hr-name { font: 800 27px/1.1 var(--font); letter-spacing: -.6px; text-shadow: 0 2px 12px color-mix(in srgb, #000 35%, transparent); }
.hr-age { font-weight: 500; opacity: .92; }
.hr-comma { margin-left: -4px; }
.hr-city { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 4px 11px 4px 8px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: #fff; background: color-mix(in srgb, #fff 18%, transparent);
  border: 1px solid color-mix(in srgb, #fff 30%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hr-city svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }

.hr-hello { position: absolute; right: 16px; bottom: 18px; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--mag); color: var(--on-mag); box-shadow: var(--shadow-mag);
  transition: transform .15s; }
.hr-hello svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.hr-hello:hover { transform: scale(1.07); }
.hr-hello:active { transform: scale(.94); }
.hr-hello.on { animation: hr-pulse 1.1s ease-in-out infinite; }
.hr-hello:focus-visible { outline: 3px solid color-mix(in srgb, #fff 80%, transparent); outline-offset: 2px; }

.hr-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.hr-tag { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mag); }
.hr-say { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; font-style: italic; color: var(--ink); line-height: 1.4;
  padding: 10px 12px; border-radius: 16px 16px 16px 6px; background: var(--mag-soft); border: 1px solid var(--mag-line); }
.hr-say svg { width: 16px; height: 16px; flex: none; fill: var(--mag); opacity: .7; margin-top: 1px; }
.hr-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.hr-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.hr-fi { flex: none; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.hr-fi svg { width: 14px; height: 14px; fill: var(--mag); }
.hr-likes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 2px; }
.hr-like { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line-strong); }

.hr-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 2px; }
.hr-arrow { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); box-shadow: var(--shadow-1); transition: border-color .15s, color .15s, opacity .15s; }
.hr-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hr-arrow:hover:not(:disabled) { border-color: var(--mag); color: var(--mag); }
.hr-arrow:disabled { opacity: .35; cursor: default; }
.hr-dots { display: flex; gap: 7px; align-items: center; }
.hr-dot { width: 8px; height: 8px; padding: 0; border-radius: 999px; border: 0; cursor: pointer; background: var(--line-strong); transition: width .25s, background .25s; }
.hr-dot.on { width: 24px; background: var(--mag); }

@keyframes hr-pulse { 0%, 100% { box-shadow: var(--shadow-mag), 0 0 0 0 var(--mag-line); } 50% { box-shadow: var(--shadow-mag), 0 0 0 10px transparent; } }

@media (max-width: 560px) {
  .hr-card { flex-basis: 84%; border-radius: 24px; }
  .hr-name { font-size: 24px; }
  .hr-track { gap: 12px; }
}

/* =====================================================================
   word_formation
   ===================================================================== */
.wf-body { margin-top: 14px; }
.wf-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wf-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 12px 0;
  border-bottom: 1px dashed var(--line-strong); }
.wf-item:last-child { border-bottom: 0; }
.wf-n { font-size: 13px; font-weight: 800; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.wf-s { font-size: 16.5px; line-height: 2.1; color: var(--ink); }
.wf-side { min-width: 92px; text-align: right; }
.wf-root { font: 800 13px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.wf-side .wf-root { display: inline-block; padding: 3px 0 3px 12px; border-left: 2px solid var(--line-strong); }

.wf-text { padding: 18px 20px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.wf-p { margin: 0 0 10px; font-size: 16.5px; line-height: 2.3; color: var(--ink); }
.wf-p:last-child { margin-bottom: 0; }
.wf-gap .wf-root { margin-left: 6px; font-size: 11.5px; vertical-align: 1px; }

.wf-gap { display: inline-flex; align-items: baseline; flex-wrap: nowrap; white-space: nowrap; }
.wf-in { font: 700 16px var(--font); color: var(--ink); min-width: 6ch; max-width: 100%; padding: 3px 8px 2px; margin: 0 2px;
  border: 0; border-bottom: 2px solid var(--line-strong); border-radius: 8px 8px 2px 2px; background: var(--surface);
  transition: border-color .15s, background .15s, box-shadow .15s; }
.wf-in:focus { outline: none; border-bottom-color: var(--mag); box-shadow: 0 6px 14px -10px var(--mag); background: var(--surface); }
.wf-in.right { border-bottom-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.wf-in.wrong { border-bottom-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.wf-in.shown { border-bottom-color: var(--ok-line); background: var(--ok-soft); color: var(--ink-soft); font-style: italic; }
.wf-ok .wf-root { color: var(--ok); }
.wf-shown .wf-root { color: var(--ok); opacity: .7; }
.wf-ok .wf-in { animation: wf-pop .35s cubic-bezier(.2, .9, .3, 1.5); }
.wf-shake { animation: wf-shake .32s; }
@keyframes wf-pop { 0% { transform: scale(1); } 45% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes wf-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

@media (max-width: 560px) {
  .wf-item { grid-template-columns: 22px minmax(0, 1fr); gap: 4px 10px; }
  .wf-side { grid-column: 2; text-align: left; min-width: 0; }
  .wf-side .wf-root { padding: 0; border-left: 0; }
  .wf-text { padding: 14px; }
  .wf-gap { white-space: normal; flex-wrap: wrap; }
}

/* =====================================================================
   hero_text — шаблони
   ===================================================================== */
.ht { margin: 18px 0; }
.ht p { margin: 0 0 10px; white-space: pre-line; }
.ht p:last-child { margin-bottom: 0; }
.ht [data-media] img { opacity: 0; transition: opacity .35s; }
.ht [data-media].is-loaded img { opacity: 1; }
.ht [data-media].is-broken img { display: none; }

/* спільний аватар */
.ht-ava { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--mag) 60%, var(--surface)), var(--mag)); color: var(--on-mag); }
.ht-ava b { font: 800 15px var(--font); }
.ht-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ht-ring { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--mag); }

/* ---------- post ---------- */
.ht-post { max-width: 440px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  overflow: hidden; box-shadow: var(--shadow-2); }
.ht-ph { display: flex; align-items: center; gap: 11px; padding: 13px 14px 11px; }
.ht-who { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.ht-who b { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.ht-who span { font-size: 12.5px; color: var(--ink-soft); }
.ht-more svg { width: 20px; height: 20px; fill: var(--ink-soft); display: block; }
.ht-photo { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(135deg, var(--surface-2), var(--mag-soft)); }
.ht-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ht-acts { display: flex; align-items: center; gap: 14px; padding: 10px 14px 4px; color: var(--ink); }
.ht-acts svg { width: 25px; height: 25px; display: block; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
.ht-save { margin-left: auto; }
.ht-like { padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); transition: transform .15s; }
.ht-like.on { color: var(--mag); }
.ht-like.on svg { fill: currentColor; animation: ht-beat .4s cubic-bezier(.2, .9, .3, 1.6); }
.ht-like:focus-visible { outline: 2px solid var(--mag); outline-offset: 3px; border-radius: 6px; }
.ht-likes { display: flex; align-items: center; gap: 6px; padding: 4px 14px 0; font-size: 14px; color: var(--ink); }
.ht-heart svg { width: 14px; height: 14px; fill: var(--mag); display: block; }
.ht-n { font-weight: 800; font-variant-numeric: tabular-nums; }
.ht-cap { padding: 6px 14px 0; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.ht-cap > b { font-weight: 800; margin-right: 4px; float: left; }
.ht-cap p { margin: 0 0 6px; }
.ht-hash { color: var(--mag); font-weight: 600; }
.ht-comments { list-style: none; margin: 6px 0 0; padding: 0 14px; display: flex; flex-direction: column; gap: 3px; font-size: 14px; line-height: 1.4; color: var(--ink); }
.ht-comments b { font-weight: 800; }
.ht-time { padding: 8px 14px 14px; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
.ht-post > :last-child:not(.ht-time) { padding-bottom: 14px; }
@keyframes ht-beat { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* ---------- letter ---------- */
.ht-letter { max-width: 620px; margin: 0 auto; border-radius: 22px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.ht-lhead { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.ht-lic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--mag-soft); border: 1px solid var(--mag-line); }
.ht-lic svg { width: 20px; height: 20px; fill: none; stroke: var(--mag); stroke-width: 1.8; stroke-linejoin: round; }
.ht-lmeta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ht-lrow { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.45; min-width: 0; }
.ht-lab { flex: none; width: 46px; color: var(--ink-faint); font-weight: 700; }
.ht-lv { color: var(--ink); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.ht-date { flex: none; font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; padding-top: 2px; }
.ht-paper { position: relative; padding: 22px 26px 24px; }
.ht-paper::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 24px; width: 3px; border-radius: 0 3px 3px 0; background: var(--mag); opacity: .55; }
.ht-subj { font-size: 19px; font-weight: 800; letter-spacing: -.3px; color: var(--ink); margin-bottom: 12px; }
.ht-body { font-size: 15.5px; line-height: 1.65; color: var(--ink); }
.ht-sign { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; font-size: 15.5px; color: var(--ink); }
.ht-so { font-style: italic; color: var(--ink-soft); }
.ht-sign b { font-weight: 800; }

/* ---------- menu ---------- */
.ht-menu { max-width: 520px; margin: 0 auto; padding: 26px 26px 22px; border-radius: 26px; background: var(--solid); color: var(--on-solid);
  box-shadow: var(--shadow-2); position: relative; overflow: hidden; }
.ht-menu::before { content: ""; position: absolute; inset: 10px; border: 1px solid color-mix(in srgb, var(--on-solid) 22%, transparent); border-radius: 18px; pointer-events: none; }
.ht-mtop { text-align: center; margin-bottom: 18px; }
.ht-orn svg { width: 18px; height: 18px; fill: var(--mag); display: inline-block; }
.ht-place { font: 800 26px/1.15 var(--font); letter-spacing: .02em; margin-top: 4px; }
.ht-rule { display: block; width: 64px; height: 2px; margin: 10px auto 0; border-radius: 2px; background: var(--mag); }
.ht-msecs { display: flex; flex-direction: column; gap: 18px; }
.ht-msec h4 { margin: 0 0 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--mag); }
.ht-msec ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ht-mline { display: flex; align-items: baseline; gap: 8px; font-size: 15.5px; }
.ht-mname { font-weight: 700; }
.ht-mline i { flex: 1; min-width: 16px; border-bottom: 2px dotted color-mix(in srgb, var(--on-solid) 35%, transparent); transform: translateY(-4px); }
.ht-price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ht-mdesc { font-size: 13px; line-height: 1.4; opacity: .72; margin-top: 2px; padding-right: 50px; }
.ht-mnote { margin-top: 18px; text-align: center; font-size: 13px; font-style: italic; opacity: .75; }

/* ---------- notice ---------- */
.ht-board { padding: 30px 22px 34px; border-radius: 24px; border: 1px solid var(--line);
  background-color: color-mix(in srgb, var(--warn) 22%, var(--surface-2));
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 10%, transparent) 1px, transparent 1.5px),
                    radial-gradient(color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1.5px);
  background-size: 14px 14px, 9px 9px; background-position: 0 0, 5px 7px; box-shadow: inset 0 2px 10px color-mix(in srgb, var(--ink) 10%, transparent); }
.ht-sheet { position: relative; max-width: 420px; margin: 0 auto; padding: 30px 26px 0; background: var(--surface); color: var(--ink);
  border-radius: 4px; box-shadow: var(--shadow-2); transform: rotate(-1.2deg); }
.ht-sheet > :last-child:not(.ht-tabs) { margin-bottom: 0; padding-bottom: 24px; }
.ht-pin { position: absolute; top: 10px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--mag) 40%, #fff) 0 18%, var(--mag) 55%, color-mix(in srgb, var(--mag) 60%, #000) 100%);
  box-shadow: 0 3px 5px color-mix(in srgb, #000 30%, transparent); }
.ht-ntitle { font: 800 26px/1.1 var(--font); letter-spacing: .02em; text-transform: uppercase; text-align: center; margin: 4px 0 12px; color: var(--mag); }
.ht-ntext { font-size: 15.5px; line-height: 1.55; text-align: center; }
.ht-nfoot { margin-top: 14px; padding-top: 10px; border-top: 1.5px dashed var(--line-strong); text-align: center; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.ht-tabs { display: flex; margin: 18px -26px 0; border-top: 1.5px dashed var(--line-strong); }
.ht-tab { flex: 1; min-width: 0; height: 104px; display: flex; align-items: center; justify-content: center; border-right: 1.5px dashed var(--line-strong);
  writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11.5px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; overflow: hidden; }
.ht-tab:first-child { border-left: 1.5px dashed var(--line-strong); }
.ht-tab.ht-torn { visibility: hidden; }

/* ---------- notes ---------- */
.ht-notes { position: relative; max-width: 520px; margin: 0 auto; padding-left: 0; }
.ht-rings { position: absolute; left: 10px; top: 26px; bottom: 26px; display: flex; flex-direction: column; justify-content: space-between; z-index: 1; }
.ht-rings i { display: block; width: 22px; height: 10px; border-radius: 10px; background: var(--page); border: 2px solid var(--line-strong);
  box-shadow: inset 0 1px 2px color-mix(in srgb, var(--ink) 20%, transparent); }
.ht-page { --lh: 34px; position: relative; padding: 22px 22px 26px 64px; border-radius: 6px 20px 20px 6px; border: 1px solid var(--line);
  box-shadow: var(--shadow-2); color: var(--ink);
  background-color: var(--surface);
  background-image: linear-gradient(90deg, transparent 50px, var(--mag-line) 50px, var(--mag-line) 51.5px, transparent 51.5px),
                    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--lh) - 1px), color-mix(in srgb, var(--mag) 16%, var(--line)) calc(var(--lh) - 1px), color-mix(in srgb, var(--mag) 16%, var(--line)) var(--lh));
  background-position: 0 0, 0 22px;
  font-family: "Bradley Hand", "Noteworthy", "Segoe Print", "Chalkboard SE", "Comic Sans MS", "Marker Felt", cursive; }
.ht-ntl, .ht-line { min-height: var(--lh); line-height: var(--lh); font-size: 19px; overflow-wrap: anywhere; }
.ht-ntl { font-weight: 700; font-size: 22px; color: var(--mag); }
.ht-line { transform: rotate(-.25deg); }
.ht-line:nth-child(odd) { transform: rotate(.2deg); }

/* ---------- review ---------- */
.ht-review { max-width: 560px; margin: 0 auto; padding: 20px 22px; border-radius: 22px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.ht-rtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ht-rplace { font-size: 18px; font-weight: 800; letter-spacing: -.2px; color: var(--ink); }
.ht-stars { display: inline-flex; gap: 2px; }
.ht-stars span svg { width: 20px; height: 20px; display: block; fill: var(--ghost); stroke: var(--line-strong); stroke-width: 1; }
.ht-stars span.on svg { fill: var(--warn); stroke: color-mix(in srgb, var(--warn) 70%, var(--ink)); }
.ht-rtext { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.ht-q { position: absolute; left: 0; top: 2px; }
.ht-q svg { width: 20px; height: 20px; fill: var(--mag); opacity: .45; }
.ht-rby { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.ht-rby .ht-ava { width: 32px; height: 32px; }
.ht-rby .ht-ava b { font-size: 13px; }
.ht-rby b { font-weight: 800; }
.ht-rby > span:last-child:not(.ht-ava) { margin-left: auto; font-size: 12.5px; color: var(--ink-faint); }

/* ---------- todo ---------- */
.ht-todo { max-width: 480px; margin: 0 auto; padding: 18px 18px 14px; border-radius: 22px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.ht-ttop { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ht-ttl { font-size: 18px; font-weight: 800; color: var(--ink); }
.ht-count { font-size: 12.5px; font-weight: 800; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.ht-bar { height: 5px; border-radius: 5px; background: var(--surface-2); margin: 10px 0 8px; overflow: hidden; }
.ht-bar i { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--mag); transition: width .35s cubic-bezier(.2, .9, .3, 1); }
.ht-todo.all .ht-bar i { background: var(--ok); }
.ht-todo ul { list-style: none; margin: 0; padding: 0; }
.ht-ti { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink); }
.ht-ti:last-child { border-bottom: 0; }
.ht-box { flex: none; width: 26px; height: 26px; padding: 0; border-radius: 9px; cursor: pointer; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--line-strong); color: transparent; transition: background .2s, border-color .2s, transform .12s; }
.ht-box svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ht-box:hover { border-color: var(--mag); }
.ht-box:active { transform: scale(.9); }
.ht-box:focus-visible { outline: 2px solid var(--mag); outline-offset: 2px; }
.ht-ti.done .ht-box { background: var(--mag); border-color: var(--mag); color: var(--on-mag); }
.ht-ti.done .ht-box svg { animation: ht-tick .3s ease-out; }
.ht-tt { min-width: 0; transition: color .2s; }
.ht-ti.done .ht-tt { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: var(--mag-line); text-decoration-thickness: 2px; }
@keyframes ht-tick { from { stroke-dasharray: 24; stroke-dashoffset: 24; } to { stroke-dasharray: 24; stroke-dashoffset: 0; } }

@media (max-width: 560px) {
  .ht-paper { padding: 18px 18px 20px; }
  .ht-lhead { flex-wrap: wrap; padding: 12px 14px; }
  .ht-date { width: 100%; padding-left: 50px; }
  .ht-menu { padding: 22px 18px 18px; }
  .ht-place { font-size: 22px; }
  .ht-mdesc { padding-right: 0; }
  .ht-board { padding: 22px 12px 26px; }
  .ht-sheet { padding: 28px 18px 0; }
  .ht-tabs { margin: 16px -18px 0; }
  .ht-tab { height: 92px; }
  .ht-page { padding-left: 56px; --lh: 32px; }
  .ht-ntl, .ht-line { font-size: 17.5px; }
  .ht-review, .ht-todo { padding: 16px; }
}

/* ---------- менше руху ---------- */
@media (prefers-reduced-motion: reduce) {
  .hr-track { scroll-behavior: auto; }
  .hr-card, .hr-card:not(.is-cur) { transition: none; transform: none; }
  .hr-hello.on, .wf-ok .wf-in, .wf-shake, .ht-like.on svg, .ht-ti.done .ht-box svg { animation: none; }
  .hr-photo img, .hr-ava, .ht [data-media] img, .ht-bar i, .hr-dot { transition: none; }
}
.hr-calm .hr-card, .hr-calm .hr-card:not(.is-cur) { transform: none; }
