/* value-path, Э6: главная «Изучаю» — карта пути (B2), рабочая область шага (B3), правая колонка (B6–B9), инструменты (B5),
   мягкий режим. Макеты: docs/value-path/mockups/HomeStudy, PathMap, StepPanel, SummaryBlock, DocCard… Цвета — токены web/tokens.css.
   Только под html.v4. Телефон и вид партнёра — Э7 (01-ui § 4.5–4.6). */

html.v4 .hs-home{display:flex;flex-direction:column;gap:var(--v4-s6)}
html.v4 .hs-cols{display:flex;flex-direction:column;gap:var(--v4-s6)}
/* Карта пути (и карта этапов «Готовлюсь») — на всю ширину контента, правая колонка («Ваше решение» и др.) — под ней.
   #main занимает обе колонки оболочки и делит её сетку (subgrid): карта — первая строка целиком, шаг — слева, колонка — справа. */
@media(min-width:1200px){
  html.v4 .shell:has(> #main > .hs-home > .hs-map):has(> .v4-side:not([hidden])){grid-template-rows:auto auto;row-gap:var(--v4-s6)}
  html.v4 .shell:has(> .v4-side:not([hidden])) > #main:has(> .hs-home > .hs-map){grid-column:1 / -1;grid-row:1 / 3;display:grid;grid-template-columns:subgrid;grid-template-rows:subgrid}
  html.v4 .shell:has(> .v4-side:not([hidden])) > #main > .hs-home:has(> .hs-map){display:contents}
  html.v4 .shell:has(> .v4-side:not([hidden])) > #main > .hs-home > .hs-map{grid-column:1 / -1;grid-row:1}
  html.v4 .shell:has(> .v4-side:not([hidden])) > #main > .hs-home > .hs-cols{grid-column:1;grid-row:2}
  html.v4 .shell:has(> #main > .hs-home > .hs-map) > .v4-side:not([hidden]){grid-column:2;grid-row:2}
}
html.v4 .hs-main-col{display:flex;flex-direction:column;gap:var(--v4-s6);min-width:0}
html.v4 .hs-card{background:var(--v4-surface);border:1px solid var(--v4-line);border-radius:var(--v4-r-xl);padding:var(--v4-s6);box-sizing:border-box;display:flex;flex-direction:column;gap:var(--v4-s3);min-width:0}
html.v4 .hs-muted{color:var(--v4-muted);font-size:var(--v4-fs-sm);margin:0}
html.v4 .hs-k{font-size:var(--v4-fs-xs);letter-spacing:.06em;text-transform:uppercase;color:var(--v4-muted);font-weight:600;margin:0}
html.v4 .hs-cap{font-size:var(--v4-fs-xs);letter-spacing:.06em;text-transform:uppercase;color:var(--v4-muted);font-weight:600;margin:0}
html.v4 .hs-h2{margin:0;font-size:22px;line-height:30px;font-weight:600;color:var(--v4-ink)}
html.v4 .hs-h2.is-muted{color:var(--v4-muted)}
html.v4 .hs-side-h{margin:0;font-size:var(--v4-fs-md);line-height:24px;font-weight:600;color:var(--v4-ink)}

/* Метки */
html.v4 .hs-tag{display:inline-flex;align-items:center;gap:4px;font-size:12px;line-height:16px;padding:2px 8px;border-radius:var(--v4-r-pill);font-weight:500;white-space:nowrap;background:var(--v4-grey-bg);color:var(--v4-ink-2)}
html.v4 .hs-tag-now{background:var(--v4-gold-bg);color:var(--v4-gold-ink)}
html.v4 .hs-tag-ok{background:var(--v4-ok-bg);color:var(--v4-ok-ink)}
html.v4 .hs-tag-goal{background:rgba(255,255,255,.12);color:#F2D58A}

/* Кнопки */
html.v4 .hs-btn{display:inline-flex;align-items:center;justify-content:center;min-height:var(--v4-tap);padding:0 24px;border-radius:var(--v4-r-md);background:var(--v4-accent);color:var(--v4-accent-ink);font:600 var(--v4-fs-md) var(--v4-font);border:0;text-decoration:none;cursor:pointer}
html.v4 .hs-btn:hover{background:var(--v4-accent-dark);color:var(--v4-accent-ink)}
html.v4 .hs-btn-gold{background:#F2D58A;color:var(--v4-accent-dark)}
html.v4 .hs-btn-gold:hover{background:#E8C66C;color:var(--v4-accent-dark)}
html.v4 .hs-btn2{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 16px;border-radius:var(--v4-r-md);background:var(--v4-surface);color:var(--v4-accent);border:1px solid var(--v4-accent-line);font:500 15px var(--v4-font);text-decoration:none;cursor:pointer}
html.v4 .hs-btn2:hover{border-color:var(--v4-accent)}
html.v4 .hs-ghost,html.v4 .hs-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border-radius:var(--v4-r-md);background:transparent;color:var(--v4-accent);border:0;font:500 var(--v4-fs-sm) var(--v4-font);cursor:pointer;text-decoration:none}
html.v4 .hs-ghost:hover,html.v4 .hs-link:hover{background:var(--v4-accent-soft)}
html.v4 .hs-icon{flex:none;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:var(--v4-r-md);background:transparent;color:var(--v4-accent);cursor:pointer;font-size:20px;line-height:1}
html.v4 .hs-icon:hover{background:var(--v4-accent-soft)}
html.v4 .hs-acts{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin-top:var(--v4-s1)}

/* Кружок шага по роли (01-ui § 1.1) */
html.v4 .hs-dot{width:32px;height:32px;border-radius:var(--v4-r-pill);display:inline-flex;align-items:center;justify-content:center;font-weight:600;font-size:14px;flex:none;box-sizing:border-box;background:var(--v4-surface);color:var(--v4-muted);border:2px solid var(--v4-accent-line)}
html.v4 .hs-dot-sm{width:26px;height:26px;font-size:12px}
html.v4 .hs-dot.r-done{background:var(--v4-accent);color:#fff;border:0}
html.v4 .hs-dot.r-current{background:var(--v4-now);color:#fff;border:0;box-shadow:0 0 0 4px var(--v4-gold-bg)}
html.v4 .hs-dot.r-check{background:var(--v4-now);color:#fff;border:0}
html.v4 .hs-dot.r-work{border-color:var(--v4-now);color:var(--v4-now)}
html.v4 .hs-dot.r-not_needed{border-color:var(--v4-line);color:var(--v4-faint)}
html.v4 .hs-dot.r-goal,html.v4 .hs-dot.is-goal.r-done{background:var(--v4-accent-dark);color:#F2D58A;border:0;box-shadow:0 0 0 4px #F3E7C4;font-size:16px}
html.v4 .hs-dot-sm.r-goal,html.v4 .hs-dot-sm.r-current{box-shadow:none}

/* ── B2 «Карта пути» ── */
html.v4 .hs-map{background:var(--v4-surface);border:1px solid var(--v4-line);border-radius:var(--v4-r-xl);padding:24px 32px 20px;display:flex;flex-direction:column;gap:20px}
html.v4 .hs-map-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
html.v4 .hs-map-t{display:flex;flex-direction:column;gap:8px;min-width:0}
html.v4 .hs-map-h1{margin:0;font-size:var(--v4-fs-3xl);line-height:36px;font-weight:600;color:var(--v4-ink)}
html.v4 .hs-map-left{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:15px;color:var(--v4-ink-2)}
html.v4 .hs-nodes{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
html.v4 .hs-node{width:100%;height:100%;display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;padding:10px;border:0;border-radius:var(--v4-r-md);font:inherit;color:var(--v4-ink);background:transparent;cursor:pointer;box-sizing:border-box}
html.v4 button.hs-node:hover{box-shadow:inset 0 0 0 1px var(--v4-line)}
html.v4 .hs-node.is-static{cursor:default}
html.v4 .hs-node.is-sel{background:#EEF4F1}
html.v4 .hs-node.is-sel.r-current,html.v4 .hs-node.is-sel.r-check{background:#FFF8E6}
html.v4 .hs-node.is-sel.is-goal{background:#F3EEDD}
html.v4 .hs-node-row{display:flex;align-items:center;gap:8px;width:100%}
html.v4 .hs-line{flex:1;height:2px;background:var(--v4-track)}
html.v4 .hs-line.is-done{background:var(--v4-accent)}
html.v4 .hs-node-name{font-weight:600;font-size:15px;line-height:22px;color:var(--v4-ink)}
html.v4 .hs-node.r-none .hs-node-name,html.v4 .hs-node.r-not_needed .hs-node-name{color:var(--v4-ink-2)}
html.v4 .hs-node.is-goal .hs-node-name,html.v4 .hs-node.is-goal .hs-node-sub{color:var(--v4-accent-dark)}
html.v4 .hs-node-sub{font-size:13px;line-height:18px;color:var(--v4-ink-2)}
html.v4 .hs-node-sub.is-warn{color:var(--v4-gold-ink)}
html.v4 .hs-node-tags{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
html.v4 .hs-bridge{margin:-8px 0 0;display:flex;justify-content:flex-end;font-size:13px;color:var(--v4-muted)}
html.v4 .hs-panel>.hs-bridge{margin:0}
/* свёрнута */
html.v4 .hs-map.is-collapsed{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:8px 8px 8px 24px}
html.v4 .hs-map.is-collapsed .hs-map-h1{font-size:var(--v4-fs-md);line-height:24px;flex:0 1 auto;min-width:0}
html.v4 .hs-map .hs-short,html.v4 .hs-segs{display:none}
html.v4 .hs-cdots{list-style:none;margin:0;padding:0;display:flex;align-items:center;flex:none}
html.v4 .hs-cdots li{display:flex;align-items:center}
html.v4 .hs-cline{width:18px;height:2px;background:#DFE6E2}
html.v4 .hs-cline.is-done{background:var(--v4-accent)}
html.v4 .hs-mini{border:0;padding:0;background:transparent;cursor:pointer;border-radius:var(--v4-r-pill);display:inline-flex;font-family:inherit}
html.v4 .hs-mini[aria-pressed="true"]{outline:2px solid var(--v4-ink);outline-offset:4px}
html.v4 .hs-dot-mini{width:28px;height:28px;font-size:12px}
html.v4 .hs-segs{list-style:none;margin:0;padding:0;gap:3px;flex:none;width:104px}
html.v4 .hs-segs li{flex:1 1 0;display:flex}
html.v4 .hs-seg{flex:1;height:40px;border:0;padding:0;background:transparent;cursor:pointer;display:flex;align-items:center}
html.v4 .hs-bar{display:block;width:100%;height:8px;border-radius:var(--v4-r-pill);background:#DFE6E2}
html.v4 .hs-bar.s-done{background:var(--v4-accent)}
html.v4 .hs-bar.s-now{background:var(--v4-now)}
html.v4 .hs-bar.s-goal{background:#C9BE9C}
html.v4 .hs-bar.s-goal-done{background:var(--v4-accent-dark)}
html.v4 .hs-seg[aria-pressed="true"] .hs-bar{outline:2px solid var(--v4-ink);outline-offset:2px}
html.v4 .hs-space{flex:1 1 0}
/* скрыта настройкой */
html.v4 .hs-hidden-line{margin:0;display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-weight:600;color:var(--v4-ink-2)}

/* ── B3 «Рабочая область шага» ── */
html.v4 .hs-panel{display:flex;flex-direction:column;gap:var(--v4-s4)}
html.v4 .hs-head{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
html.v4 .hs-main.is-current{border:2px solid var(--v4-accent)}
html.v4 .hs-dl{display:grid;grid-template-columns:minmax(0,170px) minmax(0,1fr);margin:0}
html.v4 .hs-dl dt,html.v4 .hs-dl dd{margin:0;padding:9px 0;border-top:1px solid var(--v4-line-soft);font-size:15px;line-height:22px}
html.v4 .hs-dl dt{color:var(--v4-muted);padding-right:16px}
html.v4 .hs-res{display:flex;flex-direction:column;gap:6px}
html.v4 .hs-rows{display:grid;grid-template-columns:minmax(0,1fr) auto;margin:0}
html.v4 .hs-rows dt,html.v4 .hs-rows dd{margin:0;padding:8px 0;border-top:1px solid var(--v4-line-soft);font-size:15px;line-height:22px}
html.v4 .hs-rows dt{color:var(--v4-ink-2)}
html.v4 .hs-rows dd{text-align:right;font-weight:500}
html.v4 .hs-rows dd.is-total{font-weight:700}
html.v4 .hs-note{color:var(--v4-muted);font-weight:400;font-size:var(--v4-fs-sm)}
html.v4 .hs-plate{margin:0;display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;background:var(--v4-gold-bg);color:#6B4A10;border-radius:var(--v4-r-md);padding:8px 14px;font-size:15px;line-height:22px}
html.v4 .hs-uses{list-style:none;margin:0;padding:0}
html.v4 .hs-uses li{display:flex;gap:12px;align-items:center;padding:8px 0;border-top:1px solid var(--v4-line-soft);font-size:15px;line-height:22px;min-height:44px}
html.v4 .hs-uses-t{flex:1;min-width:0}
html.v4 .hs-preview{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;border:1px dashed var(--v4-accent-line);border-radius:var(--v4-r-md);padding:12px}
html.v4 .hs-ghost-tile{display:flex;flex-direction:column;gap:8px;font-size:var(--v4-fs-sm);color:var(--v4-muted)}
html.v4 .hs-ghostbar{display:block;height:10px;border-radius:5px;background:var(--v4-line-soft)}
html.v4 .hs-needs{display:flex;flex-direction:column;gap:6px}
/* «Итог шагов» */
html.v4 .hs-sum-h{justify-content:space-between}
html.v4 .hs-sum.is-collapsed{flex-direction:row;align-items:center;padding:4px 4px 4px 24px;gap:8px}
html.v4 .hs-sum-line{margin:0;flex:1;min-width:0;font-size:15px;line-height:22px}
html.v4 .hs-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
html.v4 .hs-tile{border-radius:var(--v4-r-md);padding:12px 14px;display:flex;flex-direction:column;gap:2px;min-width:0;background:var(--v4-sunk)}
html.v4 .hs-tile b{font-size:var(--v4-fs-lg);line-height:24px}
html.v4 .hs-tile.is-short{background:var(--v4-gold-bg);color:#6B4A10}
html.v4 .hs-tile.is-ok{background:var(--v4-ok-bg);color:var(--v4-ok-ink)}
html.v4 .hs-tile.is-was{background:var(--v4-gold-bg);color:#6B4A10}
html.v4 .hs-tile.is-was .hs-tile-s{color:#825700}
html.v4 .hs-plate-t{flex:1 1 260px}
html.v4 .hs-tile-k{font-size:12px;color:var(--v4-muted)}
html.v4 .hs-tile-s{font-size:12px;line-height:16px;color:var(--v4-muted)}
html.v4 .hs-ack{align-self:flex-start;display:inline-flex;align-items:center;min-height:44px;color:var(--v4-ok-ink);font-weight:600;text-decoration:none}
html.v4 .hs-ack:hover{text-decoration:underline}
/* ★ */
html.v4 .hs-goal{background:var(--v4-goal-bg);border-color:var(--v4-goal-bg);color:var(--v4-goal-ink)}
html.v4 .hs-goal .hs-k{color:#F2D58A}
html.v4 .hs-goal .hs-h2{color:#fff}
html.v4 .hs-goal .hs-plate{background:rgba(255,244,217,.92)}
html.v4 .hs-goal-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html.v4 .hs-gt{background:rgba(255,255,255,.08);border-radius:var(--v4-r-md);padding:12px 14px;display:flex;flex-direction:column;gap:2px;min-width:0;font-size:15px}
html.v4 .hs-gt b{color:#fff}
html.v4 .hs-gt-s{color:rgba(244,241,234,.6)}
html.v4 .hs-goal-left{font-size:var(--v4-fs-sm);color:rgba(244,241,234,.8)}
html.v4 .hs-goal-done{border:2px solid #D9C48A}
html.v4 .hs-next-t{margin:0;font-size:var(--v4-fs-lg);font-weight:600}

/* ── Правая колонка B6–B9 ── */
html.v4 .hs-doc-top{display:flex;gap:14px;align-items:flex-start}
html.v4 .hs-doc-t{display:flex;flex-direction:column;gap:4px;min-width:0}
html.v4 .hs-doc-h{margin:0;font-size:var(--v4-fs-lg);line-height:24px;font-weight:600}
html.v4 .hs-doc-thumb{flex:none;width:56px;height:72px;border:1px solid var(--v4-line);border-radius:6px;padding:10px 8px;box-sizing:border-box;display:flex;flex-direction:column;gap:6px;background:var(--v4-surface)}
html.v4 .hs-doc-thumb span{height:4px;border-radius:2px;background:var(--v4-line-soft)}
html.v4 .hs-doc-thumb span.is-on{background:var(--v4-accent)}
html.v4 .hs-bar{display:block;height:6px;border-radius:3px;background:var(--v4-track);overflow:hidden}
html.v4 .hs-bar>span{display:block;height:100%;background:var(--v4-accent)}
html.v4 .hs-att-list{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:4px}
html.v4 a.hs-refine{text-decoration:none;color:var(--v4-ink);gap:4px}
html.v4 a.hs-refine:hover{border-color:var(--v4-accent)}
html.v4 .hs-collab.is-mini{flex-direction:row;flex-wrap:wrap;align-items:center;gap:4px;padding:8px 8px 8px 20px}
html.v4 .hs-collab p{margin:0}

/* Подсказка (UI-1.6) */
html.v4 .hs-hint{display:flex;gap:8px;align-items:flex-start;background:var(--v4-info-bg);color:var(--v4-info-ink);border-radius:var(--v4-r-md);padding:10px 4px 10px 14px;font-size:var(--v4-fs-sm);line-height:20px}
html.v4 .hs-hint>span{flex:1;padding-top:6px}
html.v4 .hs-hint-x{flex:none;width:44px;height:44px;margin:-6px 0;border:0;border-radius:8px;background:transparent;color:var(--v4-info-ink);font-size:20px;line-height:1;cursor:pointer}
html.v4 .hs-hint-x:hover{background:rgba(49,95,138,.1)}

/* B5 */
html.v4 .hs-tools{display:flex;flex-direction:column;gap:var(--v4-s3)}

/* Мягкий режим */
html.v4 .hs-soft-h1{margin:0;font-size:var(--v4-fs-3xl);line-height:36px}
html.v4 .hs-soft{display:flex;flex-wrap:wrap;gap:24px;align-items:stretch}
html.v4 .hs-soft-task{flex:2 1 560px;border:2px solid var(--v4-accent);gap:16px}
html.v4 .hs-soft-look{flex:1 1 300px}
html.v4 .hs-soft-look p{margin:0;font-size:15px;line-height:22px;color:var(--v4-ink-2)}
html.v4 .hs-preview-map .hs-node{padding:6px 4px}

/* Э7: ♥ партнёра у названия шага (UI-4.5.1), разногласие в B8, панель согласования в рабочей области */
html.v4 .hs-heart{margin-left:6px;font-size:14px}
html.v4 .hs-heart-ok{color:var(--v4-accent)}
html.v4 .hs-heart-warn{color:var(--v4-gold-ink)}
html.v4 .hs-muted.is-warn{color:var(--v4-gold-ink)}
html.v4 .hs-panel .agree-bar{margin:0}
html.v4 .hs-panel .agree-bar .button,html.v4 .hs-panel .agree-bar button.link,html.v4 .hs-panel .agree-bar .ab-fold{min-height:44px}
html.v4 .hs-panel .agree-bar a.link-a{display:inline-flex;align-items:center;min-height:44px}

@media (max-width: 720px){
  /* UI-4.6.3: кнопки шага во всю ширину; рабочая область не прячется под шапку при прокрутке к ней (UI-4.6.2) */
  html.v4 .hs-main .hs-acts>.hs-btn,html.v4 .hs-main .hs-acts>.hs-btn2,html.v4 .hs-next .hs-acts>.hs-btn{flex:1 1 100%}
  html.v4 .hs-panel{scroll-margin-top:calc(var(--v4-header) + 8px)}
  html.v4 .hs-h2{font-size:20px;line-height:26px}
  html.v4 .hs-sum.is-collapsed{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 4px;padding:4px 2px 4px 16px}
  html.v4 .hs-sum.is-collapsed .hs-sum-line{grid-column:1;grid-row:1;font-size:14px;line-height:20px}
  html.v4 .hs-sum.is-collapsed .hs-icon{grid-column:2;grid-row:1}
  html.v4 .hs-sum.is-collapsed .hs-ack{grid-column:1 / -1;grid-row:2;min-height:36px}
  html.v4 .hs-panel{gap:var(--v4-s3)}
  html.v4 .hs-card{gap:var(--v4-s2)}
  html.v4 .hs-map.is-collapsed{flex-wrap:nowrap;gap:8px;padding:2px 2px 2px 12px}
  html.v4 .hs-map.is-collapsed .hs-map-h1{flex:1 1 auto;font-size:12px;line-height:16px;color:var(--v4-ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html.v4 .hs-map.is-collapsed .hs-full,html.v4 .hs-cdots,html.v4 .hs-ctag,html.v4 .hs-map.is-collapsed .hs-space{display:none}
  html.v4 .hs-map.is-collapsed .hs-short{display:inline}
  html.v4 .hs-map.is-collapsed .hs-segs{display:flex;width:auto;gap:0}
  /* Э7: отрезки — цели касания 28×44 (было 18×40), полоска внутри с отступами */
  html.v4 .hs-map.is-collapsed .hs-seg{flex:none;width:28px;height:44px;padding:0 2px;box-sizing:border-box}
  html.v4 .hs-nodes{grid-template-columns:minmax(0,1fr)}
  /* Телефон (макет PathMap): кружок и название — в одну строку, соединительной линии нет; подпись и метки — под названием. */
  html.v4 .hs-nodes .hs-node{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 12px;align-items:center}
  html.v4 .hs-nodes .hs-node-row{display:contents}
  html.v4 .hs-nodes .hs-line{display:none}
  html.v4 .hs-nodes .hs-node>:not(.hs-node-row){grid-column:2}
  html.v4 .hs-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.v4 .hs-dl{grid-template-columns:minmax(0,96px) minmax(0,1fr)}
  html.v4 .hs-map{padding:16px}
  html.v4 .hs-card{padding:16px}
}

/* ───────────── value-path, Э9: главная «Готовлюсь» (01-ui § 11, макеты HomePrepare и PrepMap) ───────────── */
/* Э13: шкала сроков (макет PrepMap) — строка этапа: подпись 210 px и дорожка с полосой; на телефоне дорожка под подписью. */
html.v4 .hp-scale{display:flex;flex-direction:column;gap:2px;margin-top:4px}
html.v4 .hp-months{position:relative;height:20px;margin-left:226px;font-size:var(--v4-fs-xs);line-height:20px;color:var(--v4-muted)}
html.v4 .hp-months span{position:absolute;top:0;transform:translateX(3px);white-space:nowrap}
html.v4 .hp-rows{list-style:none;margin:0;padding:0}
html.v4 .hp-row{display:grid;grid-template-columns:210px minmax(0,1fr);column-gap:16px;align-items:stretch}
html.v4 .hs-node.hp-lab{flex-direction:row;align-items:center;gap:10px;min-height:44px;padding:4px 8px 4px 4px;height:auto}
html.v4 .hp-lab .hs-dot{flex:none}
html.v4 .hp-lab-t{display:flex;flex-direction:column;min-width:0}
html.v4 .hp-lab .hs-node-name{font-size:var(--v4-fs-sm);line-height:18px}
html.v4 .hp-lab .hs-node-sub{font-size:var(--v4-fs-xs);line-height:16px}
html.v4 .hs-node.hp-lab.is-sel{box-shadow:inset 3px 0 0 var(--v4-accent)}
html.v4 .hp-track{position:relative;min-height:44px;border-left:1px solid var(--v4-line-soft)}
html.v4 .hp-gl{position:absolute;top:0;bottom:0;width:1px;background:#EEF1EE}
html.v4 .hp-bar{position:absolute;top:12px;height:20px;border-radius:6px;box-sizing:border-box;min-width:6px}
html.v4 .hp-bar.b-done{background:var(--v4-accent)}
html.v4 .hp-bar.b-current,html.v4 .hp-bar.b-work,html.v4 .hp-bar.b-check{background:#E2B04A;border:2px solid var(--v4-now)}
html.v4 .hp-bar.b-none{background:var(--v4-track);border:1px dashed var(--v4-accent-line)}
html.v4 .hp-bar.b-goal{background:var(--v4-accent-dark)}
html.v4 .hp-bar.is-late{background-image:repeating-linear-gradient(135deg,transparent 0 6px,rgba(138,62,25,.35) 6px 9px)}
html.v4 .hp-bar.is-unknown{background:transparent;border:1px dashed var(--v4-accent-line)}
html.v4 .hp-now{position:absolute;top:-2px;bottom:-2px;width:2px;margin-left:-1px;background:var(--v4-now);z-index:1}
html.v4 .hp-end{position:absolute;top:-2px;bottom:-2px;width:0;margin-left:-1px;border-left:2px dashed var(--v4-warn-ink);z-index:1}
html.v4 .hs-tag.hp-status{font-size:13px;line-height:18px;padding:3px 10px;font-weight:600}
html.v4 .hp-foot{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center;font-size:13px;line-height:18px;color:var(--v4-muted)}
html.v4 .hp-key{display:inline-flex;align-items:center;gap:6px}
html.v4 .hp-key-now{width:2px;height:14px;background:var(--v4-now)}
html.v4 .hp-key-end{width:0;height:14px;border-left:2px dashed var(--v4-warn-ink)}
@media (max-width:720px){
  html.v4 .hp-row{grid-template-columns:minmax(0,1fr)}
  html.v4 .hp-months{margin-left:40px}
  html.v4 .hp-track{min-height:26px;margin:0 0 6px 40px}
  html.v4 .hp-bar{top:6px;height:14px}
  html.v4 .hs-node.hp-lab{min-height:44px}
}
html.v4 .hp-map .hs-map-left{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
html.v4 .hp-total{font-weight:600}
html.v4 .hs-tag-warn{background:var(--v4-terra-bg);color:var(--v4-terra)}
/* «Что уже готово»: решение «Изучаю» со звездой, список выполненного. */
html.v4 .hp-dec{display:flex;gap:12px;align-items:flex-start}
html.v4 .hp-dec>div,html.v4 .hp-ready-list li>div{display:flex;flex-direction:column;gap:2px;min-width:0}
html.v4 .hp-dec .hs-dot{width:32px;height:32px;font-size:14px;box-shadow:none}
html.v4 .hp-ready-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
html.v4 .hp-ready-list li{display:flex;gap:12px;align-items:flex-start;padding:10px 0;border-top:1px solid var(--v4-line-soft)}
html.v4 .hp-ready-list li:first-child{border-top:0}
/* Карточка этапа. */
html.v4 .hp-stage-h{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
html.v4 .hp-stage-h .hs-h2{display:flex;flex-direction:column;gap:2px;flex:1 1 200px;margin:0}
html.v4 .hp-stage.is-goal{border:2px solid #C9A64A}
html.v4 .hp-stage .hs-tag-goal{background:#F3E7C4;color:var(--v4-goal-bg)}
html.v4 .hp-gives,html.v4 .hp-when,html.v4 .hp-done{margin:0}
html.v4 .hp-when{color:var(--v4-ink-2);font-size:var(--v4-fs-sm)}
html.v4 .hp-docs{display:flex;flex-direction:column;gap:8px}
html.v4 .hp-docs-h{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
html.v4 .hp-docs-h .hs-bar{max-width:240px;flex:1}
html.v4 .hp-docs-h .hs-bar>span{background:var(--v4-now)}
html.v4 .hp-ck{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
html.v4 .hp-ck li{display:flex;gap:8px}
html.v4 .hp-ck li.is-done{color:var(--v4-ok-ink)}
html.v4 .hp-ck i{font-style:normal;width:18px;flex:none;text-align:center}
html.v4 .hp-tasks{display:flex;flex-direction:column;gap:4px}
html.v4 .hp-task-list{list-style:none;margin:0;padding:0}
html.v4 .hp-task-list li{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:10px 0;border-top:1px solid var(--v4-line-soft)}
html.v4 .hp-task-list li:first-child{border-top:0}
html.v4 .hp-task-list li>div{display:flex;flex-direction:column;gap:2px;min-width:0}
@media (max-width:720px){
  html.v4 .hp-task-list li{flex-wrap:wrap}
  html.v4 .hp-task-list .hs-btn2{width:100%}
  html.v4 .hp-stage .hs-acts .hs-btn{width:100%}
}
html.v4 .hs-doc-thumb.is-dense{gap:2px;padding:8px}
html.v4 .hs-doc-thumb.is-dense span{height:3px;flex:none}
html.v4 .hp-note{margin:4px 0 0;font-size:var(--v4-fs-sm);color:var(--v4-ink-2)}
