/* Оценка гипотез (/hypotheses/). Базовые переменные, кнопки, поля и тосты — из /pi-planning/base.css (копия стилей трекера). */

:root {
  --data: #0e8f80;
  --data-light: #e6f6f3;
  --flag: #c2410c;
  --flag-light: #fff3eb;
  --ink: #141625;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
body {
  min-height: 100%;
  background:
    radial-gradient(900px 420px at 90% -140px, rgba(14, 143, 128, 0.10), transparent 70%),
    radial-gradient(760px 380px at -10% 6%, rgba(124, 58, 237, 0.08), transparent 70%),
    linear-gradient(rgba(20, 22, 37, 0.035) 1px, transparent 1px) 0 0 / 100% 28px,
    var(--bg);
  background-attachment: fixed;
}
a { color: inherit; }
a.btn { text-decoration: none; }
svg { width: 1em; height: 1em; flex: none; }
[hidden] { display: none !important; }

/* ── Шапка ── */
.hy-top {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2)); height: 60px;
  background: rgba(255, 255, 255, 0.84); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.hy-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 15px; white-space: nowrap; }
.hy-brand-mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 17px;
  background: linear-gradient(135deg, var(--data), var(--purple)); box-shadow: 0 4px 12px rgba(14, 143, 128, 0.3); }
.hy-tabs { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.hy-tabs::-webkit-scrollbar { display: none; }
.hy-tabs a { white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 13px; color: var(--text2); padding: 7px 14px; border-radius: 20px; transition: background .15s, color .15s; }
.hy-tabs a:hover { background: var(--bg4); color: var(--text); }
.hy-tabs a.active { background: var(--ink); color: #fff; }
.hy-back { white-space: nowrap; margin-left: auto; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--text2); padding: 7px 12px; border-radius: var(--r); }
.hy-back:hover { background: var(--bg4); color: var(--text); }

.hy-main { max-width: 1240px; margin: 0 auto; padding: 36px 24px 96px; }
.hy-loading, .hy-empty { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 80px 20px; color: var(--text2); text-align: center; }
.hy-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--purple-mid); border-top-color: var(--purple); animation: hy-spin .8s linear infinite; flex: none; }
@keyframes hy-spin { to { transform: rotate(360deg); } }
@keyframes hy-rise { from { opacity: 0; transform: translateY(12px); } }
.hy-kicker { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--data); }
.hy-h1 { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: clamp(28px, 3.8vw, 46px); line-height: 1.1; letter-spacing: -0.02em; margin: 10px 0 14px; }
.hy-h2 { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.hy-h2 svg { color: var(--data); font-size: 20px; }
.hy-lead { font-size: 16px; color: var(--text2); max-width: 680px; line-height: 1.6; }
.hy-muted { color: var(--text3); font-size: 12.5px; }
.hy-num { font-family: var(--mono); font-feature-settings: 'tnum'; }

/* ── Главная ── */
.hy-hero { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: end; margin-bottom: 36px; }
.hy-steps { display: grid; gap: 10px; counter-reset: s; }
.hy-step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); animation: hy-rise .45s both; animation-delay: calc(var(--i) * 80ms); }
.hy-step::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-family: 'Unbounded', sans-serif; font-size: 12px; font-weight: 600; }
.hy-step b { display: block; font-size: 13.5px; }
.hy-step span { color: var(--text2); font-size: 12.5px; line-height: 1.45; }
.hy-cta { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.hy-cta .btn { padding: 11px 20px; font-size: 14px; }

.hy-listbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.hy-seg { display: inline-flex; background: var(--bg4); border-radius: 20px; padding: 3px; }
.hy-seg button { border: none; background: none; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--text2); padding: 6px 14px; border-radius: 16px; cursor: pointer; }
.hy-seg button.active { background: var(--bg2); color: var(--text); box-shadow: var(--shadow-sm); }
.hy-list { display: grid; gap: 12px; }
.hy-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 20px; text-decoration: none;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s; animation: hy-rise .4s both; animation-delay: calc(var(--i) * 40ms); }
.hy-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border2); }
.hy-item h3 { font-size: 15.5px; font-weight: 700; margin: 6px 0 4px; }
.hy-item p { color: var(--text2); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hy-item-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hy-item-nums { display: flex; gap: 22px; text-align: right; }
.hy-item-nums b { display: block; font-family: 'Unbounded', sans-serif; font-size: 20px; font-weight: 600; line-height: 1.15; }
.hy-item-nums small { color: var(--text3); font-size: 11.5px; }

.hy-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: var(--bg4); color: var(--text2); white-space: nowrap; }
.hy-chip.data { background: var(--data-light); color: var(--data); }
.hy-chip.purple { background: var(--purple-light); color: var(--purple); }
.hy-chip.flag { background: var(--flag-light); color: var(--flag); }
.hy-chip.dark { background: var(--ink); color: #fff; }
.hy-chip.ok { background: #e8f8ef; color: #047a3c; }

/* ── Мастер ── */
.hy-wiz { max-width: 860px; }
.hy-src { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0 20px; }
.hy-src button { text-align: left; border: 1.5px solid var(--border); background: var(--bg2); border-radius: var(--r-lg); padding: 16px; cursor: pointer; font: inherit;
  display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.hy-src button:hover { border-color: var(--border2); transform: translateY(-1px); }
.hy-src button.active { border-color: var(--data); box-shadow: 0 0 0 3px rgba(14, 143, 128, 0.12); }
.hy-src button svg { font-size: 22px; color: var(--data); }
.hy-src b { font-size: 14px; }
.hy-src span { font-size: 12.5px; color: var(--text2); line-height: 1.45; }
.hy-field { display: grid; gap: 6px; margin-bottom: 14px; }
.hy-field label { font-size: 12.5px; font-weight: 700; color: var(--text2); }
.hy-field textarea { min-height: 160px; line-height: 1.55; font-size: 14px; }
.hy-pick { max-height: 360px; overflow: auto; border: 1px solid var(--border); border-radius: var(--r); background: var(--bg2); }
.hy-pick button { display: flex; width: 100%; gap: 10px; align-items: center; text-align: left; padding: 10px 14px; border: none; border-bottom: 1px solid var(--border); background: none; font: inherit; font-size: 13.5px; cursor: pointer; }
.hy-pick button:last-child { border-bottom: none; }
.hy-pick button:hover { background: var(--bg3); }
.hy-pick button.active { background: var(--data-light); }
.hy-pick button span { flex: 1; min-width: 0; }
.hy-pick small { color: var(--text3); font-size: 12px; white-space: nowrap; }

/* ── Уточнение ── */
.hy-refine { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 24px; }
.hy-panel { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); padding: 20px 22px; }
.hy-panel + .hy-panel { margin-top: 16px; }
.hy-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.hy-card-f { display: grid; gap: 4px; padding: 10px 0; border-top: 1px dashed var(--border); }
.hy-card-f:first-of-type { border-top: none; }
.hy-card-f label { font-size: 12px; font-weight: 800; color: var(--text2); display: flex; gap: 8px; align-items: center; }
.hy-card-f label .hy-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border2); }
.hy-card-f.filled label .hy-dot { background: var(--data); }
.hy-card-f textarea { min-height: 44px; font-size: 13.5px; line-height: 1.5; padding: 8px 12px; }
.hy-q { padding: 14px; border-radius: var(--r-lg); background: var(--bg3); border: 1px solid var(--border); animation: hy-rise .35s both; animation-delay: calc(var(--i) * 60ms); }
.hy-q + .hy-q { margin-top: 10px; }
.hy-q p { font-weight: 600; font-size: 13.5px; margin: 6px 0 10px; line-height: 1.5; }
.hy-q textarea { min-height: 60px; font-size: 13.5px; }
.hy-opts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.hy-opts button { border: 1.5px solid var(--border); background: var(--bg2); font: inherit; font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 16px; cursor: pointer; color: var(--text2); }
.hy-opts button:hover { border-color: var(--data); color: var(--data); }
.hy-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.hy-history { margin-top: 14px; display: grid; gap: 8px; }
.hy-history details { font-size: 13px; color: var(--text2); }
.hy-history summary { cursor: pointer; font-weight: 700; }
.hy-qa { padding: 8px 0 0 14px; border-left: 2px solid var(--border); margin-top: 6px; display: grid; gap: 6px; }
.hy-qa b { color: var(--text); font-weight: 600; }

.hy-progress { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 72px 24px; text-align: center; }
.hy-progress-ring { width: 64px; height: 64px; border-radius: 50%; border: 4px solid var(--data-light); border-top-color: var(--data); animation: hy-spin 1s linear infinite; }
.hy-progress b { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 18px; }
.hy-progress p { color: var(--text2); max-width: 460px; }

/* ── Результат ── */
.hy-res-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hy-res-head .hy-h1 { font-size: clamp(24px, 3vw, 36px); margin: 8px 0 8px; max-width: 820px; }
.hy-res-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hy-res-tools select { width: auto; padding: 7px 34px 7px 12px; font-size: 12.5px; font-weight: 600; }

.hy-verdict { margin: 22px 0 18px; padding: 24px 26px; border-radius: var(--r-xl); background: var(--ink); color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.hy-verdict::after { content: ''; position: absolute; inset: auto -80px -120px auto; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 143, 128, 0.45), transparent 70%); pointer-events: none; }
.hy-verdict .hy-kicker { color: #7fe0d2; }
.hy-verdict p { font-size: 17px; line-height: 1.55; margin-top: 8px; max-width: 900px; position: relative; z-index: 1; }
.hy-verdict .hy-critic { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13.5px; color: rgba(255, 255, 255, 0.78); position: relative; z-index: 1; }
.hy-verdict .hy-critic b { color: #ffd2b8; }
.hy-warn { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; position: relative; z-index: 1; }
.hy-warn span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85); }

.hy-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.hy-kpi { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 18px; box-shadow: var(--shadow-sm); animation: hy-rise .4s both; animation-delay: calc(var(--i) * 70ms); display: flex; flex-direction: column; gap: 4px; }
.hy-kpi > span { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); }
.hy-kpi b { font-family: 'Unbounded', sans-serif; font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.hy-kpi small { font-size: 12.5px; color: var(--text2); line-height: 1.45; }
.hy-kpi small strong { color: var(--text); font-weight: 800; }
.hy-kpi.accent { background: linear-gradient(140deg, #f3fbf9, #fff); border-color: #bfe7df; }
.hy-kpi.accent b { color: var(--data); }

.hy-sec { margin-top: 30px; }
.hy-sec > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.hy-sec > header p { color: var(--text2); font-size: 13px; max-width: 640px; }

.hy-krs { display: grid; gap: 12px; }
.hy-kr { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); overflow: hidden; }
.hy-kr-top { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; padding: 18px 20px; align-items: center; }
.hy-kr-top h4 { font-size: 14.5px; font-weight: 700; line-height: 1.45; margin-top: 6px; }
.hy-kr-range { display: grid; gap: 8px; }
.hy-kr-vals { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hy-kr-vals b { font-family: 'Unbounded', sans-serif; font-size: 22px; font-weight: 600; color: var(--data); }
.hy-kr-vals small { color: var(--text3); font-size: 12px; }
.hy-gap { position: relative; height: 10px; border-radius: 6px; background: var(--bg4); overflow: hidden; }
.hy-gap i { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.hy-gap .range { background: rgba(14, 143, 128, 0.25); }
.hy-gap .likely { background: var(--data); width: 3px !important; border-radius: 0; }
.hy-kr details { border-top: 1px solid var(--border); }
.hy-kr summary { cursor: pointer; padding: 10px 20px; font-size: 12.5px; font-weight: 700; color: var(--text2); list-style: none; display: flex; align-items: center; gap: 8px; }
.hy-kr summary::-webkit-details-marker { display: none; }
.hy-kr summary::before { content: '›'; font-size: 16px; transition: transform .15s; }
.hy-kr details[open] summary::before { transform: rotate(90deg); }
.hy-formula { padding: 0 20px 18px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.hy-factor { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px; display: flex; flex-direction: column; gap: 4px; position: relative; }
.hy-factor > span { font-size: 11px; font-weight: 800; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; }
.hy-factor b { font-family: var(--mono); font-size: 17px; font-weight: 600; }
.hy-factor p { font-size: 12px; color: var(--text2); line-height: 1.45; }
.hy-factor.flagged { border-color: #fdc9a8; background: var(--flag-light); }

.hy-edit { border: none; background: none; color: var(--text3); cursor: pointer; padding: 3px; border-radius: 6px; display: inline-grid; place-items: center; font-size: 14px; }
.hy-edit:hover { color: var(--purple); background: var(--purple-light); }
.hy-factor .hy-edit { position: absolute; top: 8px; right: 8px; }
.hy-flag { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--flag); line-height: 1.45; margin-top: 4px; }
.hy-flag svg { margin-top: 2px; }
.hy-ovr { font-size: 11.5px; color: var(--purple); font-weight: 600; }

.hy-table { width: 100%; border-collapse: collapse; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.hy-table th { text-align: left; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); padding: 10px 14px; background: var(--bg3); border-bottom: 1px solid var(--border); }
.hy-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: top; line-height: 1.5; }
.hy-table tr:last-child td { border-bottom: none; }
.hy-weight { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.hy-weight-bar { width: 70px; height: 6px; border-radius: 4px; background: var(--bg4); overflow: hidden; }
.hy-weight-bar i { display: block; height: 100%; background: var(--purple); border-radius: 4px; }
.hy-reach { display: flex; gap: 6px; flex-wrap: wrap; }

.hy-personas { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.hy-persona { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px 14px; box-shadow: var(--shadow-sm); }
.hy-persona.primary { border-color: var(--data); box-shadow: 0 0 0 3px rgba(14, 143, 128, 0.08); }
.hy-persona > b { font-size: 13.5px; display: block; margin: 6px 0 2px; }
.hy-persona p { font-size: 12.5px; color: var(--text2); line-height: 1.45; }
.hy-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 8px; padding: 8px 10px; border-radius: var(--r); background: var(--data-light); font-size: 12px; color: var(--text2); }
.hy-facts b { color: var(--data); font-weight: 700; }
.hy-facts .hy-muted { flex-basis: 100%; font-weight: 700; }

.hy-wsjf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hy-wgroup { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 16px; box-shadow: var(--shadow-sm); }
.hy-wgroup h4 { font-size: 13px; font-weight: 800; display: flex; justify-content: space-between; margin-bottom: 10px; }
.hy-wgroup h4 span { font-family: var(--mono); color: var(--text2); }
.hy-wc { padding: 10px 0; border-top: 1px solid var(--border); }
.hy-wc:first-of-type { border-top: none; padding-top: 0; }
.hy-wc-top { display: flex; align-items: center; gap: 8px; }
.hy-wc-top b { flex: 1; font-size: 13px; font-weight: 700; }
.hy-score { font-family: var(--mono); font-weight: 600; font-size: 14px; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 7px; display: inline-grid; place-items: center; background: var(--purple-light); color: var(--purple); }
.hy-wc p { font-size: 12.5px; color: var(--text2); line-height: 1.5; margin-top: 6px; }
.hy-refs { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.hy-refs span { font-family: var(--mono); font-size: 10.5px; padding: 1px 6px; border-radius: 5px; background: var(--data-light); color: var(--data); cursor: help; }

.hy-review { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hy-review > div { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.hy-review h4 { font-size: 13px; font-weight: 800; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.hy-review ul { padding-left: 18px; display: grid; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--text2); }
.hy-review .test { grid-column: 1 / -1; background: linear-gradient(140deg, #f3efff, #fff); border-color: var(--purple-mid); }
.hy-review .test p { font-size: 14px; line-height: 1.6; }

.hy-effort { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; align-items: start; }
.hy-effort-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 18px; box-shadow: var(--shadow-sm); }
.hy-effort-card b.big { font-family: 'Unbounded', sans-serif; font-size: 36px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.hy-effort-card p { font-size: 12.5px; color: var(--text2); line-height: 1.5; margin-top: 8px; }

.hy-details { margin-top: 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 4px 18px; }
.hy-details summary { cursor: pointer; font-weight: 700; font-size: 13.5px; padding: 12px 0; }
.hy-details dl { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 16px; padding-bottom: 16px; font-size: 13px; }
.hy-details dt { font-weight: 700; color: var(--text2); }
.hy-details dd { white-space: pre-wrap; line-height: 1.5; }
.hy-ovr-list { display: grid; gap: 8px; padding-bottom: 14px; }
.hy-ovr-list div { font-size: 12.5px; line-height: 1.5; color: var(--text2); }

/* ── Модальное окно правки ── */
.hy-modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(20, 22, 37, 0.45); display: grid; place-items: center; padding: 20px; animation: hy-fade .15s; }
@keyframes hy-fade { from { opacity: 0; } }
.hy-modal { width: min(480px, 100%); background: var(--bg2); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow-lg); animation: hy-rise .2s; }
.hy-modal h3 { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.hy-modal .hy-field textarea { min-height: 80px; }

/* ── Настройки ── */
.hy-money td input { width: 110px; padding: 6px 10px; font-family: var(--mono); }
.hy-money td .hy-muted { display: block; margin-top: 2px; }
.hy-money .hy-money-goal td { background: var(--bg3); font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 14px; padding-top: 14px; padding-bottom: 12px; }
.hy-money .hy-money-goal .hy-chip { font-family: 'Manrope', sans-serif; margin-right: 6px; vertical-align: 1px; }
.hy-money .hy-money-kr { padding-left: 30px; min-width: 260px; }

/* ── Выбор источника ── */
.hy-pick button em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--data); opacity: 0; transition: opacity .15s; }
.hy-pick button:hover em, .hy-pick button:focus-visible em { opacity: 1; }
.hy-picked { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--data); border-radius: var(--r-lg);
  background: linear-gradient(140deg, var(--data-light), var(--bg2)); box-shadow: 0 0 0 4px rgba(14, 143, 128, 0.08); animation: hy-rise .25s; }
.hy-picked > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hy-picked b { font-size: 14.5px; }
.hy-picked small { font-size: 12.5px; color: var(--text2); }
.hy-picked-ico { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--data); color: #fff; font-size: 16px; }

/* ── Ссылки в справочник и пояснения ── */
.hy-ref-hint { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 16px 0 18px; font-size: 13px; color: var(--text2); }
.hy-ref-hint svg { color: var(--data); font-size: 16px; }
.hy-ref-hint button { border: 1px dashed #9ed8ce; background: var(--data-light); color: var(--data); font: inherit; font-weight: 700; font-size: 12.5px; padding: 4px 10px; border-radius: 20px; cursor: pointer; }
.hy-ref-hint button:hover { border-style: solid; }
.hy-reflink { text-decoration: none; color: inherit; cursor: pointer; }
.hy-reflink:hover b, .hy-reflink:hover { text-decoration: underline; text-decoration-color: var(--data); text-underline-offset: 3px; }
.hy-refs .hy-reflink span { cursor: pointer; }
.hy-info { border: none; background: none; padding: 0 2px; margin-left: 4px; color: var(--data); cursor: pointer; font-size: 15px; line-height: 1; vertical-align: -2px; border-radius: 50%; }
.hy-info:hover { color: var(--ink); }
.hy-info:focus-visible { outline: 2px solid var(--data); outline-offset: 2px; }
.hy-kpi > span .hy-info { font-size: 14px; }
.hy-kr-vals .hy-info { font-size: 15px; }
.hy-verdict .hy-info { color: #9fe3d7; float: right; font-size: 17px; }
.hy-sec > header { justify-content: flex-start; }
.hy-sec > header p { flex: 0 0 100%; max-width: none; }
.hy-sec > header .btn-text { color: var(--data); font-weight: 700; }
.hy-x { position: absolute; top: 14px; right: 14px; border: none; background: var(--bg4); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--text2); font-size: 16px; }
.hy-x:hover { background: var(--border); color: var(--text); }

.hy-modal.hy-explain { width: min(680px, 100%); max-height: calc(100vh - 40px); overflow: auto; position: relative; padding: 26px 28px; }
.hy-explain h3 { font-size: 19px; margin: 6px 40px 8px 0; }
.hy-explain h4 { font-size: 13.5px; font-weight: 800; margin: 18px 0 6px; }
.hy-explain p { font-size: 13.5px; line-height: 1.6; color: var(--text2); margin-top: 6px; }
.hy-explain .hy-muted { font-size: 12.5px; }
.hy-steps-x { list-style: none; counter-reset: x; display: grid; gap: 10px; margin: 14px 0; padding: 0; }
.hy-steps-x li { counter-increment: x; position: relative; padding: 10px 12px 10px 44px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg3); display: flex; flex-direction: column; gap: 3px; font-size: 13px; line-height: 1.5; }
.hy-steps-x li::before { content: counter(x); position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; border-radius: 7px; background: var(--data); color: #fff; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.hy-steps-x li > span { color: var(--text2); }
.hy-why { margin: 2px 0 0 !important; padding-left: 10px; border-left: 2px solid #9ed8ce; color: var(--text) !important; font-size: 13px !important; }
.hy-calc-line { margin: 8px 0; padding: 10px 14px; border-radius: var(--r); background: var(--data-light); font-feature-settings: 'tnum'; font-size: 13px; line-height: 1.7; color: var(--text); overflow-wrap: anywhere; }
.hy-calc-line > span { font-weight: 800; }
.hy-calc-line b { color: var(--data); font-size: 14px; font-family: var(--mono); }
.hy-calc-line small { display: block; color: var(--text2); font-size: 12px; margin-top: 4px; }
.hy-ul { margin: 6px 0 0 18px; font-size: 13px; line-height: 1.6; color: var(--text2); display: grid; gap: 4px; }
.hy-scale { display: flex; gap: 6px; margin: 10px 0; }
.hy-scale span { width: 38px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; background: var(--bg4); color: var(--text3); }
.hy-scale span.on { background: var(--data); color: #fff; }

/* ── Справочник ── */
.hy-rtabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin: 20px 0 16px; }
.hy-rtabs button { border: none; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text2); padding: 10px 14px; border-bottom: 2.5px solid transparent; margin-bottom: -1px; cursor: pointer; }
.hy-rtabs button:hover { color: var(--text); }
.hy-rtabs button.active { color: var(--data); border-bottom-color: var(--data); }
.hy-ref-note { font-size: 13px; color: var(--text2); line-height: 1.55; max-width: 860px; margin-bottom: 12px; }
.hy-ref-tag { font-size: 13px; color: var(--text2); font-style: italic; margin: -4px 0 12px; }
.hy-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--text3); margin-bottom: 14px; }
.hy-legend b { color: var(--text2); }
.hy-ref-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.hy-ref-bar input { flex: 1; min-width: 180px; max-width: 360px; }
.hy-seg-wrap { flex-wrap: wrap; border-radius: 16px; }
.hy-rgoals { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.hy-rgoal { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.hy-rgoal > h3 { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 16px; margin: 8px 0 4px; }
.hy-rgoal > p { font-size: 13px; color: var(--text2); line-height: 1.55; }
.hy-rkrs { display: grid; gap: 8px; margin-top: 12px; }
.hy-rkr { padding: 10px 12px; border-radius: var(--r-lg); background: var(--bg3); border: 1px solid transparent; }
.hy-rkr p { font-size: 13px; line-height: 1.5; margin-top: 6px; }
.hy-rkr.cond { background: var(--bg2); border: 1px dashed var(--border); }
.hy-targets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hy-targets span { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--mono); font-size: 12px; padding: 4px 9px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--border); }
.hy-targets small { font-family: 'Manrope', sans-serif; font-weight: 700; color: var(--text3); font-size: 11px; }
.hy-targets b { color: var(--data); }
.hy-rlist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.hy-rrow { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.hy-rrow > summary { list-style: none; display: flex; gap: 14px; align-items: flex-start; padding: 12px 16px; cursor: pointer; }
.hy-rrow > summary::-webkit-details-marker { display: none; }
.hy-rrow[open] > summary { border-bottom: 1px solid var(--border); }
.hy-rrow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hy-rrow-main > b { font-size: 14px; }
.hy-rrow-main > p { font-size: 12.5px; color: var(--text2); line-height: 1.5; }
.hy-rrow-num { text-align: right; flex: none; display: flex; flex-direction: column; }
.hy-rrow-num b { font-size: 18px; color: var(--data); }
.hy-rrow-num small { font-size: 11.5px; color: var(--text3); }
.hy-more { flex: none; font-size: 12px; font-weight: 700; color: var(--data); align-self: center; }
.hy-rrow[open] .hy-more { visibility: hidden; }
.hy-rrow-body { padding: 12px 16px 16px; font-size: 13px; line-height: 1.55; color: var(--text2); }
.hy-rrow-body h4 { font-size: 12.5px; font-weight: 800; color: var(--text); margin: 14px 0 6px; }
.hy-mini { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12.5px; }
.hy-mini th { text-align: left; font-size: 11px; font-weight: 800; color: var(--text3); padding: 6px 8px; border-bottom: 1px solid var(--border); }
.hy-mini td { padding: 6px 8px; border-bottom: 1px solid var(--border); font-family: var(--mono); }
.hy-mini td:first-child { font-family: 'Manrope', sans-serif; font-weight: 700; }
.hy-rlinks { list-style: none; padding: 0; display: grid; gap: 8px; }
.hy-rlinks li { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.hy-rlinks li > span:last-child:not(.hy-muted) { flex-basis: 100%; font-size: 12.5px; }
.hy-rlinks a { font-weight: 700; color: var(--data); }
.hy-profile section { margin-top: 10px; }
.hy-profile h4 { margin-top: 0 !important; }
.hy-profile ul { margin-left: 18px; display: grid; gap: 3px; }
.hy-profile-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hy-profile-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.hy-profile-nums div { padding: 8px 10px; border-radius: var(--r); background: var(--data-light); display: flex; flex-direction: column; gap: 2px; }
.hy-profile-nums b { color: var(--data); font-weight: 800; }
.hy-profile-nums span { font-size: 12px; }
.hy-hl { animation: hy-hl 2.2s ease-out; }
@keyframes hy-hl { 0%, 40% { box-shadow: 0 0 0 3px var(--data); border-color: var(--data); } 100% { box-shadow: var(--shadow-sm); } }

.hy-drawer-bg { position: fixed; inset: 0; z-index: 90; background: rgba(20, 22, 37, 0.38); animation: hy-fade .15s; display: flex; justify-content: flex-end; }
.hy-drawer { width: min(760px, 100%); height: 100%; background: var(--bg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: hy-slide .22s ease-out; }
.hy-drawer > header { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 64px 0 22px; }
.hy-drawer > header h3 { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 16px; display: flex; gap: 8px; align-items: center; }
.hy-drawer > header h3 svg { color: var(--data); }
.hy-drawer > header .hy-x { top: 10px; }
.hy-drawer .hy-rtabs { margin: 10px 0 0; padding: 0 22px; }
.hy-drawer .hy-rbody { flex: 1; overflow: auto; padding: 16px 22px 40px; }
.hy-noscroll { overflow: hidden; }
@keyframes hy-slide { from { transform: translateX(40px); opacity: 0; } }

.hy-listtools { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.hy-sort { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--text2); }
.hy-sort select { width: auto; padding: 6px 30px 6px 10px; font-size: 12.5px; font-weight: 600; }
.hy-sort-hint { margin: -6px 0 12px; }

/* ── Файлы оценки ── */
.hy-drop { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px dashed #9ed8ce; border-radius: var(--r-lg); background: var(--data-light); cursor: pointer; transition: border-color .15s, background .15s; }
.hy-drop:hover, .hy-drop:focus-visible, .hy-drop.over { border-color: var(--data); background: #d9f1ec; outline: none; }
.hy-drop > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hy-drop b { font-size: 13.5px; }
.hy-drop span { font-size: 12.5px; color: var(--text2); line-height: 1.45; }
.hy-drop-ico { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--bg2); color: var(--data); font-size: 19px !important; box-shadow: var(--shadow-sm); }
.hy-drop.compact { padding: 10px 12px; }
.hy-drop.compact .hy-drop-ico { width: 30px; height: 30px; font-size: 16px !important; }
.hy-pdn { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; font-size: 12px; color: var(--text3); line-height: 1.45; }
.hy-pdn svg { color: var(--flag); font-size: 14px; margin-top: 1px; }
.hy-files { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.hy-files li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r); background: var(--bg2); }
.hy-files li.off { opacity: .55; }
.hy-files li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hy-files li a { text-decoration: none; }
.hy-files li a:hover b { text-decoration: underline; }
.hy-files b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hy-files small { font-size: 11.5px; color: var(--text3); }
.hy-file-ico { width: 34px; height: 34px; flex: none; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 9.5px; font-weight: 600; color: var(--data); background: var(--data-light); }
.hy-file-acts { display: flex; align-items: center; gap: 2px; flex: none; }
.hy-files .btn-text { color: var(--data); font-weight: 700; padding: 4px 8px; }
.hy-src-text > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hy-src-text > summary::-webkit-details-marker { display: none; }
.hy-src-text > summary::after { content: 'показать'; margin-left: auto; font-size: 12px; font-weight: 700; color: var(--data); }
.hy-src-text[open] > summary::after { content: 'свернуть'; }
.hy-fref { font-family: var(--mono); font-size: 10.5px; padding: 1px 5px; border-radius: 5px; background: #efe9fd; color: var(--purple); white-space: nowrap; }
.hy-x-sm { border: none; background: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--text3); cursor: pointer; font-size: 14px; flex: none; }
.hy-x-sm:hover { background: var(--bg4); color: var(--text); }
.hy-spin.sm { width: 10px; height: 10px; border-width: 2px; }
.hy-facts-list { list-style: none; padding: 0; display: grid; gap: 6px; margin-top: 6px; }
.hy-facts-list li { padding: 8px 12px; border-radius: var(--r); background: var(--bg3); border: 1px solid transparent; }
.hy-facts-list li p { margin: 2px 0 0 !important; color: var(--text) !important; }
.hy-facts-list li small { font-size: 11.5px; color: var(--data); font-weight: 700; }
.hy-facts-list li.hy-hl-on { border-color: var(--data); background: var(--data-light); }

@media (max-width: 1080px) {
  .hy-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hy-wsjf { grid-template-columns: 1fr; }
  .hy-formula { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hy-hero, .hy-refine, .hy-kr-top, .hy-effort, .hy-review { grid-template-columns: 1fr; }
  .hy-src { grid-template-columns: 1fr; }
  .hy-item { grid-template-columns: 1fr; }
  .hy-item-nums { text-align: left; }
  .hy-details dl { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hy-top { gap: 12px; padding: 0 14px; }
  .hy-brand > span:last-child, .hy-wide { display: none; }
  .hy-main { padding: 24px 14px 80px; }
  .hy-kpis { grid-template-columns: 1fr; }
  .hy-formula { grid-template-columns: 1fr; }
  .hy-table { display: block; overflow-x: auto; }
  .hy-verdict { padding: 20px; }
  .hy-verdict p { font-size: 15.5px; }
  .hy-profile-cols { grid-template-columns: 1fr; }
  .hy-modal.hy-explain { padding: 22px 18px; }
  .hy-rrow > summary { flex-wrap: wrap; }
  .hy-rrow-num { text-align: left; flex-direction: row; gap: 8px; align-items: baseline; }
  .hy-mini { display: block; overflow-x: auto; }
  .hy-listtools { margin-left: 0; }
  .hy-files li { flex-wrap: wrap; }
  .hy-file-acts { margin-left: 44px; }
}
