/* ============================================================
   Оболочка калькуляторов BUYHOLD по правилам R (BH_CALC_SHELL_2026_10_12)
   Меню слева · полоса сверху · общие поля, переключатели, кнопки, подсказки, таблицы.
   Правила R: текст от 13 px, без прописных, один зелёный #95ce5a, красный #f43f5e — только убыток,
   поверхности #0a0d12 / #121820, скругления 6/8, без теней, градиентов и свечения.
   ============================================================ */
.bhc-shell{--r-bg:#0a0d12;--r-s1:#121820;--r-s2:#171e28;--r-line:rgba(255,255,255,.07);--r-line2:rgba(255,255,255,.12);--r-t1:#e6e9ee;--r-t2:#b3b9c2;--r-t3:#949ca7;/* CIC_PRO4: мелкий текст светлее — t2 7,6→9,0:1, t3 4,8→6,4:1 на карточке #121820 (WCAG) */--r-g:#95ce5a;--r-g2:#a6d873;--r-red:#f43f5e;--r-gray:#787b86;--r-f:"IBM Plex Sans",-apple-system,"Segoe UI",Roboto,Arial,sans-serif;--bhc-stick:0px;
  display:grid;grid-template-columns:232px minmax(0,1fr);background:var(--r-bg);color:var(--r-t1);font:400 14px/1.45 var(--r-f);font-variant-numeric:tabular-nums;border-top:1px solid var(--r-line);-webkit-font-smoothing:antialiased}
.bhc-shell *,.bhc-shell *::before,.bhc-shell *::after{box-sizing:border-box}
.bhc-shell [hidden]{display:none!important}
.bhc-shell button{font-family:inherit}

/* ---------- меню слева ---------- */
.bhc-side{position:sticky;top:var(--bhc-stick);align-self:start;height:calc(100vh - var(--bhc-stick));display:flex;flex-direction:column;border-right:1px solid var(--r-line);padding:18px 12px 16px;overflow-y:auto}
.bhc-brand{display:none}
.bhc-side-head{display:flex;align-items:center;gap:10px;padding:0 10px 16px;font:600 16px/1.2 var(--r-f);color:#fff}
.bhc-side-head svg{width:20px;height:20px;color:var(--r-g);flex:none}
.bhc-nav{display:flex;flex-direction:column;gap:2px}
.bhc-nav-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:6px;font:500 14px/1.2 var(--r-f);color:var(--r-t2)!important;text-decoration:none!important}
.bhc-nav-item svg{width:18px;height:18px;flex:none}
.bhc-nav-item:hover{color:var(--r-t1)!important;background:rgba(255,255,255,.03)}
.bhc-nav-item.on{color:var(--r-t1)!important;background:rgba(255,255,255,.06)}
.bhc-nav-item.on svg{color:var(--r-g)}
.bhc-side-all{margin-top:auto;padding:12px;border-top:1px solid var(--r-line);font:500 14px/1.3 var(--r-f);color:var(--r-t2)!important;text-decoration:none!important}
.bhc-side-all:hover{color:var(--r-t1)!important}
.bhc-veil{display:none}

/* ---------- полоса сверху ---------- */
.bhc-main{min-width:0}
.bhc-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 24px;border-bottom:1px solid var(--r-line);min-height:64px}
.bhc-h1{margin:0!important;padding:0!important;font:600 20px/1.2 var(--r-f)!important;color:#fff!important;letter-spacing:0!important;text-transform:none!important;flex:0 1 auto}
.bhc-top-act{margin-left:auto;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.bhc-shell .bhc-burger{display:none;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--r-t1);width:40px;height:40px;min-height:0;padding:0;cursor:pointer;border-radius:6px}
.bhc-burger svg{width:22px;height:22px}
.bhc-work{padding:20px 24px 40px}

/* ---------- кнопки ---------- */
.bhc-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:36px;padding:0 14px;border:0;border-radius:6px;font:500 14px/1 var(--r-f);cursor:pointer;white-space:nowrap;text-decoration:none!important;text-transform:none;letter-spacing:0;box-shadow:none;transition:background .15s,color .15s}
.bhc-btn svg{width:16px;height:16px;flex:none}
.bhc-btn--primary{background:var(--r-g);color:#0c0f15!important}
.bhc-btn--primary:hover{background:var(--r-g2)}
.bhc-btn--ghost{background:rgba(255,255,255,.06);color:var(--r-t1)!important}
.bhc-btn--ghost:hover{background:rgba(255,255,255,.1)}
.bhc-btn--text{background:transparent;color:var(--r-t2)!important;padding:0 8px}
.bhc-btn--text:hover{color:var(--r-t1)!important}
.bhc-btn:focus-visible,.bhc-seg button:focus-visible,.bhc-nav-item:focus-visible,.bhc-burger:focus-visible,.bhc-i:focus-visible{outline:2px solid var(--r-g);outline-offset:2px}
.bhc-shell .bh-wn-trigger{height:36px;border:0!important;border-radius:6px;background:rgba(255,255,255,.06)!important;color:var(--r-t1)!important;font:500 14px/1 var(--r-f)!important;box-shadow:none!important}
.bhc-shell .bh-wn-trigger.bhc-btn--text{background:transparent!important;color:var(--r-t2)!important;padding:0 8px}
.bhc-shell .bh-wn-trigger.bhc-btn--text:hover{color:var(--r-t1)!important}
.bhc-shell .bh-wn-trigger:hover{background:rgba(255,255,255,.1)!important}

/* ---------- карточки ---------- */
.bhc-card{background:var(--r-s1);border-radius:8px;padding:20px}
.bhc-card-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.bhc-card-title{margin:0;font:600 16px/1.3 var(--r-f);color:var(--r-t1)}
.bhc-card-tools{margin-left:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* ---------- поля ---------- */
.bhc-group-title{margin:18px 0 4px;padding-top:16px;border-top:1px solid var(--r-line);font:600 14px/1.3 var(--r-f);color:var(--r-t1)}
.bhc-field{margin-top:16px}
.bhc-field:first-child{margin-top:0}
.bhc-shell .bhc-label{display:flex;align-items:center;gap:8px;margin:0 0 8px;font:500 13px/1.3 var(--r-f)!important;color:var(--r-t2);text-transform:none;letter-spacing:0}
.bhc-shell .bhc-label .bhc-hint{margin-left:auto;color:var(--r-t3);font-weight:400;font-size:13px!important}
.bhc-input{position:relative;display:flex;align-items:center}
.bhc-input input{width:100%;height:42px;padding:0 44px 0 14px;background:var(--r-bg);border:1px solid var(--r-line2);border-radius:6px;color:var(--r-t1);font:600 16px/1 var(--r-f);font-variant-numeric:tabular-nums;outline:none;box-shadow:none;-moz-appearance:textfield;appearance:none;margin:0}
.bhc-input input:hover:not(:focus){border-color:rgba(255,255,255,.24)}
.bhc-input input:focus{border-color:var(--r-g)}
.bhc-input input[aria-invalid="true"]{border-color:var(--r-red)}
.bhc-err{margin:6px 0 0;font:400 13px/1.4 var(--r-f);color:var(--r-t1)}
.bhc-err:empty{display:none}
.bhc-input .bhc-suf{position:absolute;right:14px;font:400 14px var(--r-f);color:var(--r-t2);pointer-events:none}
.bhc-input--sm input{height:36px;font-size:15px}
.bhc-range{display:block;width:100%;margin:12px 0 0;accent-color:var(--r-g);height:20px;cursor:pointer;background:transparent}
.bhc-range-scale{display:flex;justify-content:space-between;margin-top:2px;font:400 13px var(--r-f);color:var(--r-t3);font-variant-numeric:tabular-nums}
.bhc-range:focus-visible{outline:2px solid var(--r-g);outline-offset:4px;border-radius:4px}
.bhc-note-under{margin-top:8px;font:400 13px/1.45 var(--r-f);color:var(--r-t2)}

/* сегменты */
.bhc-seg{display:flex;gap:2px;padding:3px;background:var(--r-bg);border:1px solid var(--r-line);border-radius:8px}
.bhc-seg button{flex:1 1 0;min-width:0;height:34px;padding:0 10px;border:0;border-radius:6px;background:transparent;color:var(--r-t2);font:500 14px/1 var(--r-f);cursor:pointer;white-space:nowrap;text-transform:none;letter-spacing:0;box-shadow:none}
.bhc-seg button:hover{color:var(--r-t1)}
.bhc-seg button.active{background:#252e3a;color:#fff} /* CIC_SEG_2026_10_12: как выбранный период «Месяц» в финжурнале (#252e3a, белый текст) */
.bhc-seg--inline{display:inline-flex}
.bhc-seg--inline button{flex:none;padding:0 14px}
.bhc-seg--sm button{height:28px;font-size:13px;padding:0 10px}

/* переключатели */
.bhc-opt{border-top:1px solid var(--r-line);padding:12px 0}
.bhc-opt:last-child{padding-bottom:0}
.bhc-opt-head{display:flex;align-items:center;gap:10px}
.bhc-switch{display:flex;align-items:center;gap:12px;flex:1 1 auto;min-width:0;cursor:pointer;font:500 14px/1.3 var(--r-f);color:var(--r-t1);margin:0}
.bhc-switch input{position:absolute;opacity:0;width:1px;height:1px}
.bhc-switch-ui{position:relative;flex:none;width:36px;height:20px;border-radius:10px;background:rgba(255,255,255,.14);transition:background .15s}
.bhc-switch-ui::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#e6e9ee;transition:transform .15s}
.bhc-switch input:checked+.bhc-switch-ui{background:var(--r-g)}
.bhc-switch input:checked+.bhc-switch-ui::after{transform:translateX(16px);background:#0c0f15}
.bhc-switch:hover .bhc-switch-ui{background:rgba(255,255,255,.22)}
.bhc-switch:hover input:checked+.bhc-switch-ui{background:var(--r-g2)}
.bhc-switch input:focus-visible+.bhc-switch-ui{outline:2px solid var(--r-g);outline-offset:2px}
.bhc-opt-sub{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;margin-top:10px;padding-left:48px}
.bhc-opt-sub .bhc-input{width:120px}
.bhc-opt-sub .bhc-seg{flex:1 1 180px}
.bhc-opt-sub .bhc-note-under{flex-basis:100%;margin-top:0}

/* «i» — подсказка по нажатию и наведению */
.bhc-i{flex:none;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;min-height:0;padding:0;border:1px solid var(--r-line2);border-radius:50%;background:transparent;color:var(--r-t2);font:600 13px/1 var(--r-f);cursor:help;position:relative;box-shadow:none}
.bhc-i{position:relative}
.bhc-i::after{content:"";position:absolute;inset:-12px}   /* зона касания 44×44 при значке 20×20 */
.bhc-i:hover,.bhc-i[aria-expanded="true"]{color:var(--r-t1);border-color:rgba(255,255,255,.3)}
.bhc-i::before{content:"";position:absolute;inset:-12px}
.bhc-pop{position:fixed;z-index:10050;max-width:300px;padding:10px 12px;background:#1b2330;border:1px solid var(--r-line2);border-radius:6px;font:400 13px/1.45 "IBM Plex Sans",Arial,sans-serif;color:#e6e9ee;pointer-events:none}

/* ---------- таблица ---------- */
.bhc-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.bhc-table{width:100%;border-collapse:collapse;font:400 14px/1.3 var(--r-f);font-variant-numeric:tabular-nums}
.bhc-table th{padding:10px 8px;text-align:right;font:500 13px/1.3 var(--r-f);color:var(--r-t2);border-bottom:1px solid var(--r-line2);white-space:nowrap;background:transparent;text-transform:none;letter-spacing:0}
.bhc-table td{padding:10px 8px;text-align:right;color:var(--r-t1);border-bottom:1px solid var(--r-line);white-space:nowrap;background:transparent}
.bhc-table th:first-child,.bhc-table td:first-child{text-align:left;padding-left:0}
.bhc-table th:last-child,.bhc-table td:last-child{padding-right:0}
.bhc-table tbody tr:hover td{background:rgba(255,255,255,.025)}
.bhc-table .dim{color:var(--r-t3);margin-left:6px}
.bhc-table .pos{color:var(--r-g)}
.bhc-table .neg{color:var(--r-red)}
.bhc-table .strong{font-weight:600}
.bhc-more{margin-top:12px;text-align:center}

/* ---------- всплывающее сообщение ---------- */
.bhc-toast{position:fixed;left:50%;bottom:88px;z-index:10060;transform:translate(-50%,8px);opacity:0;padding:10px 16px;border-radius:6px;background:#e6e9ee;color:#0c0f15;font:500 14px/1.3 "IBM Plex Sans",Arial,sans-serif;pointer-events:none;transition:opacity .2s,transform .2s}
.bhc-toast.on{opacity:1;transform:translate(-50%,0)}
.bhc-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- телефон и планшет ---------- */
@media (max-width:899px){
  .bhc-shell{display:block}
  .bhc-side{position:fixed;left:0;top:0;bottom:0;width:280px;height:100vh;height:100dvh;max-height:none;z-index:10040;background:var(--r-bg);transform:translateX(-100%);transition:transform .2s ease;padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
  html.bh-pwa-standalone .bhc-side{padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
  .bhc-shell.is-open .bhc-side{transform:none}
  .bhc-shell.is-open .bhc-veil{display:block;position:fixed;inset:0;z-index:10030;background:rgba(0,0,0,.55)}
  .bhc-brand{display:block;padding:2px 10px 18px;line-height:0}
  .bhc-brand img{height:22px;width:auto}
  .bhc-shell .bhc-burger{display:inline-flex;align-items:center;justify-content:center;margin-left:-8px}
  .bhc-top{padding:10px 16px;gap:10px}
  .bhc-h1{font-size:17px!important;flex:1 1 0;min-width:0}
  .bhc-top-act{order:4;width:100%;margin:0;flex-wrap:wrap}
  .bhc-top-act>*{flex:1 1 0;min-width:0;padding:0 8px;height:40px}
  .bhc-top-act .bhc-btn--primary,.bhc-top-act .bhc-btn--wide{flex-basis:100%;order:3}
  .bhc-work{padding:14px 16px 32px}
  .bhc-card{padding:16px}
  .bhc-seg button{height:40px}
  .bhc-seg--sm button{height:32px}
  .bhc-opt-sub{padding-left:0}
}
@media (prefers-reduced-motion:reduce){
  .bhc-shell *,.bhc-toast,.bhc-side{transition:none!important;animation:none!important}
}

/* BH_TOOLS_ONE_ROW_HEADER_2026_10_12: шапка сайта в одну строку на ПК во всех инструментах (решение владельца 12.10, как в финжурнале).
   Строка меню разделов скрыта, меню сайта — за «≡», логотип ведёт на главную. Высоту шапки скрипт header.php меряет сам. */
@media (min-width:1025px){body.bhc-page nav.mega-menu-nav{display:none!important}}

/* CIC_TOP4_2026_10_12: «Что нового» в меню калькуляторов, над «Все инструменты BUYHOLD» */
.bhc-side .bhc-side-link,.bhc-side .bhc-side-link.bh-wn-trigger{display:flex;align-items:center;gap:8px;width:100%;margin-top:auto;padding:12px;background:transparent!important;border:0!important;box-shadow:none!important;border-top:1px solid var(--r-line)!important;border-radius:0;height:auto!important;font:500 14px/1.3 var(--r-f)!important;color:var(--r-t2)!important;text-align:left;cursor:pointer}
.bhc-side .bhc-side-link:hover,.bhc-side .bhc-side-link.bh-wn-trigger:hover{color:var(--r-t1)!important;background:transparent!important}
.bhc-side-link:focus-visible{outline:2px solid var(--r-g);outline-offset:-2px}
.bhc-side-link:not([hidden])+.bhc-side-all{margin-top:0}
/* CIC_NAV_2026_10_12: выбранный калькулятор в меню — как выбранный раздел в журналах: зелёные текст и значок, фон 8 % (полоски у края, как и в журналах, нет) */
.bhc-nav-item{position:relative;border-radius:8px}
.bhc-nav-item.on{color:var(--r-g)!important;background:rgba(149,206,90,.08)}

/* ============================================================
   BHC_COMMON_2026_10_12: общие блоки калькуляторов в оболочке — раскладка, карточка итога, ряд показателей,
   строка итога на телефоне, вывод, легенда, быстрый выбор, примечание. Повторяют принятый вид сложного процента
   (CIC_PRO10, CIC_TOP4): главный блок — тон --r-s2, рамка --r-line2 и размер суммы, одинаково во всех инструментах.
   Сложный процент пока на своих классах cic-*; перевод на общие — при общей доводке калькуляторов.
   ============================================================ */
.bhc-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:20px;align-items:start}
.bhc-panel.is-sticky{position:sticky;top:calc(var(--bhc-stick) + 16px)}
.bhc-result{display:flex;flex-direction:column;gap:16px;min-width:0}
.bhc-subhead{margin:16px 0 0;font:500 13px/1.3 var(--r-f);color:var(--r-t2)}
.bhc-subhead+.bhc-opt{border-top:0;padding-top:6px}
.bhc-group-title+.bhc-opt{border-top:0;padding-top:4px}
.bhc-rule{margin:8px 0 0;font:400 13px/1.45 var(--r-f);color:var(--r-t2)}
/* быстрый выбор значения под полем: выбранное — как «Месяц» в журналах */
.bhc-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.bhc-shell .bhc-chips button{height:30px;min-height:0;padding:0 10px;border:1px solid var(--r-line2);border-radius:6px;background:transparent;color:var(--r-t2);font:500 13px/1 var(--r-f);cursor:pointer;box-shadow:none;text-transform:none;letter-spacing:0}
.bhc-shell .bhc-chips button:hover{color:var(--r-t1);border-color:rgba(255,255,255,.24)}
.bhc-shell .bhc-chips button.on{background:#252e3a;border-color:#252e3a;color:#fff}
.bhc-chips button:focus-visible{outline:2px solid var(--r-g);outline-offset:2px}
/* карточка итога */
.bhc-sum{display:block;background:var(--r-s2);border:1px solid var(--r-line2);padding:24px;container-type:inline-size}
.bhc-sum-main{padding-bottom:20px}
.bhc-hero-label{font:500 14px/1.3 var(--r-f);color:var(--r-t2)}
.bhc-hero-value{margin-top:8px;font:600 40px/1.08 var(--r-f);color:#fff;letter-spacing:-.015em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bhc-hero-value.is-text{font-size:34px;line-height:1.12}
.bhc-hero-value .bhc-cur{margin-left:2px;font-size:22px;font-weight:500;letter-spacing:0;color:var(--r-t3)}
.bhc-hero-meta{margin-top:10px;font:400 14px/1.45 var(--r-f);color:var(--r-t2)}
.bhc-hero-meta b{color:var(--r-g);font-weight:600}
.bhc-hero-meta b.neg{color:var(--r-red)}
.bhc-hero-meta:empty{display:none}
.bhc-hero-note{margin:12px 0 0;font:500 14px/1.45 var(--r-f);color:var(--r-t1)}
.bhc-hero-caveat{margin:2px 0 0;font:400 13px/1.45 var(--r-f);color:var(--r-t3)}
.bhc-hero-note:empty,.bhc-hero-caveat:empty{display:none}
.bhc-hero-note:empty+.bhc-hero-caveat{margin-top:12px}
.bhc-metrics{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:18px 32px;margin:0;padding-top:20px;border-top:1px solid var(--r-line2);align-items:start}
.bhc-metrics:empty{display:none}
.bhc-metric{min-width:0;margin:0}
.bhc-metric dt{font:500 13px/1.3 var(--r-f);color:var(--r-t2)}
.bhc-metric dd{margin:6px 0 0;font:600 20px/1.2 var(--r-f);color:var(--r-t1);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bhc-metric dd.pos{color:var(--r-g)}
.bhc-metric dd.neg{color:var(--r-red)}
.bhc-metric dd.strong{color:#fff}
.bhc-metric dd.bhc-metric-sub{margin-top:4px;font:400 13px/1.35 var(--r-f);color:var(--r-t3)}
@supports (grid-template-rows:subgrid){
  .bhc-metric{display:grid;grid-row:span 3;grid-template-rows:subgrid;row-gap:0;align-content:start}
  .bhc-metric dt{align-self:end}
}
@container (min-width:880px){
  .bhc-sum-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,460px);gap:0 48px;align-items:start}
  .bhc-sum-main{padding-bottom:0}
  .bhc-metrics{display:block;padding:0 0 0 32px;border-top:0;border-left:1px solid var(--r-line2)}
  .bhc-metric,.bhc-metric:nth-child(n){display:grid;grid-row:auto;grid-template-rows:none;grid-template-columns:minmax(0,1fr) auto;column-gap:20px;align-items:baseline;padding:11px 0;border-top:1px solid var(--r-line)}
  .bhc-metric:first-child{padding-top:0;border-top:0}
  .bhc-metric:last-child{padding-bottom:0}
  .bhc-metric dt{grid-column:1;align-self:baseline;font-size:14px}
  .bhc-metric dd{grid-column:2;grid-row:1;margin:0;font-size:18px;text-align:right;white-space:nowrap}
  .bhc-metric dd.bhc-metric-sub{grid-column:1 / -1;grid-row:2;margin-top:2px;text-align:left;white-space:normal}
}
/* вывод под графиком, легенда, примечание, ссылка «что дальше» */
.bhc-insight{margin:14px 0 0;padding:2px 0 2px 12px;border-left:2px solid var(--r-g);font:400 14px/1.5 var(--r-f);color:var(--r-t1)}
.bhc-insight.is-neg{border-left-color:var(--r-red)}
.bhc-insight:empty{display:none}
.bhc-insight span{display:block}
.bhc-insight span+span{margin-top:4px;color:var(--r-t2)}
.bhc-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:-4px 0 10px;font:400 13px/1.3 var(--r-f);color:var(--r-t2)}
.bhc-leg{display:inline-flex;align-items:center;gap:8px}
.bhc-leg i{display:inline-block;width:16px;height:0;border-top:2px solid var(--bhc-leg,#95ce5a)}
.bhc-leg.is-dash i{border-top-style:dashed}
.bhc-leg.is-box i{width:10px;height:10px;border:0;border-radius:2px;background:var(--bhc-leg,#95ce5a)}
.bhc-note{margin:0;font:400 13px/1.55 var(--r-f);color:var(--r-t2)}
.bhc-note a{color:var(--r-t1)!important;text-decoration:underline!important;text-decoration-color:rgba(255,255,255,.3)!important}
.bhc-next{margin:0;font:500 14px/1.45 var(--r-f)}
.bhc-next a{color:var(--r-t1)!important;text-decoration:underline!important;text-decoration-color:rgba(255,255,255,.3)!important;text-underline-offset:3px}
.bhc-next a:hover{color:#fff!important;text-decoration-color:rgba(255,255,255,.6)!important}
.bhc-cmp-hint{margin:-6px 0 12px;font:400 13px/1.45 var(--r-f);color:var(--r-t2)}
.bhc-cmp-table td:nth-child(2){color:var(--r-t2)}
.bhc-cmp-table tr.is-head td{white-space:normal;font-size:13px;color:var(--r-t2)}
.bhc-cmp-table tr.is-head td.strong{color:var(--r-t1)}
/* полоса долей с подписями */
.bhc-compose{margin-top:16px;padding-top:14px;border-top:1px solid var(--r-line)}
.bhc-compose-title{font:500 13px/1.3 var(--r-f);color:var(--r-t1)}
.bhc-compbar{display:flex;height:10px;margin-top:10px;border-radius:4px;overflow:hidden;background:rgba(255,255,255,.06)}
.bhc-compbar>i{display:block;height:100%;background:var(--bhc-leg,#787b86);transition:width .32s cubic-bezier(.2,0,.38,.9)}
.bhc-compbar-cap{display:flex;flex-wrap:wrap;gap:4px 20px;margin-top:8px;font:400 13px/1.35 var(--r-f);color:var(--r-t1);font-variant-numeric:tabular-nums}
.bhc-compbar-cap span{display:inline-flex;align-items:center;gap:6px}
.bhc-compbar-cap span::before{content:"";width:8px;height:8px;border-radius:2px;background:var(--bhc-leg,#787b86)}
.bhc-compbar-cap span[hidden]{display:none}
/* строка итога на телефоне: над полями с первого экрана, при прокрутке закреплена сверху (как CIC_TOP4) */
.bhc-dock-slot,.bhc-dock{display:none}
/* верх без переключателя режима: на телефоне значки встают в строку с названием */
.bhc-m-only{display:none}
@media (max-width:1279px){
  .bhc-layout{grid-template-columns:330px minmax(0,1fr)}
}
@media (max-width:899px){
  .bhc-layout{grid-template-columns:1fr;gap:16px}
  .bhc-panel.is-sticky{position:static}
  .bhc-sum{padding:20px 16px}
  .bhc-hero-value{font-size:34px}
  .bhc-hero-value.is-text{font-size:30px}
  .bhc-hero-value .bhc-cur{font-size:20px}
  .bhc-metric dd{font-size:18px}
  .bhc-shell .bhc-chips button{height:36px;padding:0 12px}
  .bhc-dock-slot{display:block;min-height:46px;margin-bottom:12px}
  .bhc-dock{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:11px 14px;background:var(--r-s2);border:1px solid var(--r-line2);border-radius:8px;pointer-events:none}
  .bhc-dock.is-fixed{position:fixed;left:16px;right:16px;top:calc(var(--bhc-stick,0px) + 8px);z-index:10020;box-shadow:0 6px 16px rgba(0,0,0,.45);transform:translateY(calc(-100% - var(--bhc-stick,0px) - 16px));transition:transform .18s ease}
  .bhc-dock.is-fixed.on{transform:none}
  .bhc-dock-label{font:500 14px/1.3 var(--r-f);color:var(--r-t2);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .bhc-dock-value{font:600 18px/1.2 var(--r-f);color:#fff;font-variant-numeric:tabular-nums;white-space:nowrap}
  .bhc-m-only{display:inline-flex}
  .bhc-top .bhc-top-act .bhc-m-hide{display:none}
  /* значки «Сбросить», «Поделиться» 48×48, подписи скрыты для глаз (aria-label остаётся) — как CIC_TOP4 */
  .bhc-top .bhc-top-act .bhc-btn--ico{order:0;flex:none;width:48px;height:48px;padding:0;background:rgba(255,255,255,.06);color:var(--r-t1)!important}
  .bhc-top .bhc-top-act .bhc-btn--ico svg{width:18px;height:18px}
  .bhc-top .bhc-top-act .bhc-btn--ico .bhc-btn-txt{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
  .bhc-top--solo .bhc-h1{flex:1 1 0}
  .bhc-top--solo .bhc-top-act{order:0;width:auto;flex:none;flex-wrap:nowrap;gap:8px}
  .bhc-top--solo .bhc-top-act>*{flex:none}
}
@media (max-width:420px){
  .bhc-metrics{grid-template-columns:1fr 1fr;gap:16px 14px}
  .bhc-hero-value{font-size:32px}
  .bhc-metric dd{font-size:17px}
}
@media (prefers-reduced-motion:reduce){.bhc-dock,.bhc-compbar>i{transition:none}}
/* CANON_2026_10_13 — единый канон инструментов (решение владельца 13.10).
   Название в боковом меню в два цвета: первое слово белым, второе зелёным, как «ФинЖурнал».
   Партнёрская полоса под инструментом — плоская карточка, кнопка как главная: 14/600, r6. */
.bh-wm-accent{color:var(--r-g,#95ce5a);font-style:normal}
html:root body #bhc-shell .cc-favorite-remove{border-radius:6px}
html:root body .bh-tool-cta-in{background:#121820!important;border:0!important;box-shadow:none!important}
html:root body .bh-tool-cta-txt b{font-size:16px;font-weight:600}
html:root body .bh-tool-cta-txt span{color:#b3b9c2}
html:root body .bh-tool-cta .btn{font-weight:600;border-radius:6px;color:#0c0f15}
html:root body .bh-tool-cta .btn:hover{background:#a6d873}

/* ===== WN_ITEM22_2026_10_22: «Что нового» и «Сохранить прогресс» — обычные пункты меню (владелец 22.10, «Меню — пунктами
   в списке», разбор «Учёта»; переносится во все инструменты с левым меню: калькуляторы, «Учёт», живой график).
   Прежде «Что нового» был плашкой #171e28 внизу меню с текстом у края (24 px), а пункты — значок 24, текст 54;
   «Сохранить прогресс» — значок 22, текст 45–46. Теперь значок 18 в колонке значков, текст по краю пунктов, без плашки,
   кегль и отступы как у пунктов; сразу под разделами, отделены линией, как группа «Цели · Отчёт · Импорт · Настройки»;
   «Все инструменты» прижаты вниз. Живой график ставит «Сохранить прогресс» и «Мои активы» перед «Что нового» —
   порядок на экране задаёт order: разделы, «Что нового», «Сохранить прогресс», «Мои активы», «Все инструменты». ===== */
html body #bhc-shell#bhc-shell#bhc-shell .bhc-side{--bhc-wn-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9z'/%3E%3Cpath d='M19 17v4M17 19h4'/%3E%3C/svg%3E")}
html body #bhc-shell#bhc-shell#bhc-shell .bhc-side>.bh-wn-trigger.bhc-side-link{order:1;position:relative;display:flex;align-items:center;gap:12px;width:100%;height:auto!important;min-height:38px;margin:25px 0 0;padding:10px 12px;border:0!important;border-radius:8px;background:transparent!important;box-shadow:none!important;color:#b3b9c2!important;font:500 14px/1.2 var(--r-f,'IBM Plex Sans',sans-serif)!important;text-align:left}
html body #bhc-shell#bhc-shell#bhc-shell .bhc-side>.bh-wn-trigger.bhc-side-link::before{content:"";flex:none;width:18px;height:18px;background:currentColor;-webkit-mask:var(--bhc-wn-ico) center/18px no-repeat;mask:var(--bhc-wn-ico) center/18px no-repeat}
html body #bhc-shell#bhc-shell#bhc-shell .bhc-side>.bh-wn-trigger.bhc-side-link::after{content:"";position:absolute;left:0;right:0;top:-13px;height:1px;background:rgba(255,255,255,.07);pointer-events:none}
html body #bhc-shell#bhc-shell#bhc-shell .bhc-side>:is(.bhpf-sidesave,.lc-top-act){order:2;display:flex;flex-direction:column;align-items:stretch;gap:2px;margin:2px 0 0!important;padding:0!important}
html body #bhc-shell#bhc-shell#bhc-shell .bhc-side>:is(.bhpf-sidesave,.lc-top-act)>:is(button,a){display:flex;align-items:center;justify-content:flex-start;gap:12px!important;width:100%;height:auto!important;min-height:38px;margin:0!important;padding:10px 12px!important;border:0!important;border-radius:8px;background:transparent!important;box-shadow:none!important;color:#b3b9c2!important;font:500 14px/1.2 var(--r-f,'IBM Plex Sans',sans-serif)!important;text-align:left;text-decoration:none!important}
html body #bhc-shell#bhc-shell#bhc-shell .bhc-side>:is(.bhpf-sidesave,.lc-top-act)>:is(button,a) svg{width:18px!important;height:18px!important;flex:none;margin:0!important}
html body #bhc-shell#bhc-shell#bhc-shell .bhc-side>:is(.bhpf-sidesave,.lc-top-act)>:is(button,a)>span{margin:0;padding:0}
html body #bhc-shell#bhc-shell#bhc-shell .bhc-side>#lcmy-side{order:3}
html body #bhc-shell#bhc-shell#bhc-shell .bhc-side>.bhc-side-all{order:4;margin-top:auto}
@media (hover:hover){html body #bhc-shell#bhc-shell#bhc-shell .bhc-side>:is(.bh-wn-trigger.bhc-side-link,.bhpf-sidesave>:is(button,a),.lc-top-act>:is(button,a)):hover{background:rgba(255,255,255,.03)!important;color:#e6e9ee!important}}
html body #bhc-shell#bhc-shell#bhc-shell .bhc-side>:is(.bh-wn-trigger.bhc-side-link,.bhpf-sidesave>:is(button,a),.lc-top-act>:is(button,a)):focus-visible{outline:2px solid #95ce5a;outline-offset:-2px}
/* телефон: зона касания 44 (канон 0.9.3) */
@media (pointer:coarse){html body #bhc-shell#bhc-shell#bhc-shell .bhc-side>:is(.bh-wn-trigger.bhc-side-link,.bhpf-sidesave>:is(button,a),.lc-top-act>:is(button,a)){min-height:44px}}
/* /WN_ITEM22_2026_10_22 */

/* ============================================================
   BHC_SEL_2026_10_27 — выбранное «г» во всех калькуляторах (владелец 27.10 на кредитном: «правильный ли выбран дизайн для таких
   кнопок (цвет и эффекты) даже несмотря на канон? может везде надо поменять» → «г»; затем «переработай все остальные инструменты
   из вкладки калькуляторы по такому же принципу»). Замер прежнего вида: плитка к подложке 1,42:1, текст выбранного к невыбранному
   1,97:1, нажатия нет — признак состояния ниже 3:1 (WCAG 1.4.11). Цвет выбранного нейтральный #252e3a (зелёный занят деньгами
   и действием), невыбранное #949ca7, плитка одна на переключатель и едет к выбранному за 0,2 с (её ставит calc-shell.js),
   нажатие #1f2834, под курсором #171e28, отклик .15 с. Вкладки верхнего уровня — режим в полосе (.bhc-top .bhc-seg) и вкладки
   карточки (.bhc-tabs) — чертой #e6e9ee 2 px. Света у кнопок нет (канон 0.3). Светлая плитка отвергнута: белые плашки забирают взгляд.
   ============================================================ */
html:root body #bhc-shell#bhc-shell :is(.bhc-seg>button,.bhc-chips>button,.bhc-i){transition:background-color .15s ease-out,color .15s ease-out,border-color .15s ease-out!important}
html:root body #bhc-shell#bhc-shell :is(.bhc-seg>button.active,.bhc-chips>button.on,.bhc-chips>button.active),html:root body #bhc-shell#bhc-shell .bhc-seg-thumb{background-color:#252e3a!important;background-image:none!important;box-shadow:none!important;color:#fff!important;border-color:#252e3a!important}
html:root body #bhc-shell#bhc-shell :is(.bhc-seg>button:not(.active),.bhc-chips>button:not(.on):not(.active)){color:#949ca7!important}
html:root body #bhc-shell#bhc-shell .bhc-seg.bhc-seg-has{position:relative;isolation:isolate}
html:root body #bhc-shell#bhc-shell .bhc-seg.bhc-seg-has>button{position:relative;z-index:1}
html:root body #bhc-shell#bhc-shell .bhc-seg.bhc-seg-has>button.active{background:transparent!important;background-image:none!important;box-shadow:none!important}
.bhc-seg-thumb{position:absolute;left:0;top:0;z-index:0;width:var(--kw,0);height:var(--kh,0);transform:translate(var(--kx,0),var(--ky,0));border-radius:6px;pointer-events:none}
.bhc-seg-ready>.bhc-seg-thumb{transition:transform .2s cubic-bezier(.2,.8,.2,1),width .2s cubic-bezier(.2,.8,.2,1),height .2s cubic-bezier(.2,.8,.2,1),opacity .15s}
/* вкладки верхнего уровня — чертой под выбранным, без плитки; выбранная белая, невыбранные #949ca7 */
html:root body #bhc-shell#bhc-shell :is(.bhc-top .bhc-seg,.bhc-tabs){background:transparent!important}
html:root body #bhc-shell#bhc-shell :is(.bhc-top .bhc-seg,.bhc-tabs)>.bhc-seg-thumb{height:2px;transform:translate(var(--kx,0),calc(var(--ky,0px) + var(--kh,0px) - 2px));border-radius:1px;background-color:#e6e9ee!important}
@media (prefers-reduced-motion:reduce){.bhc-seg-ready>.bhc-seg-thumb{transition:none}}
/* нажатие — для пальца, у которого нет наведения */
html:root body #bhc-shell#bhc-shell :is(.bhc-seg>button:not(.active),.bhc-chips>button:not(.on):not(.active)):active{background-color:#1f2834!important;color:#e6e9ee!important}
html:root body #bhc-shell#bhc-shell :is(.bhc-top .bhc-seg,.bhc-tabs)>button:not(.active):active{background-color:transparent!important}
@media (hover:hover){
  html:root body #bhc-shell#bhc-shell .bhc-seg>button:not(.active):hover{background-color:#171e28!important;color:#e6e9ee!important}
  html:root body #bhc-shell#bhc-shell :is(.bhc-top .bhc-seg,.bhc-tabs)>button:not(.active):hover{background-color:transparent!important}
  html:root body #bhc-shell#bhc-shell .bhc-chips>button:not(.on):not(.active):hover{background-color:#1f2834!important;color:#e6e9ee!important}
  html:root body #bhc-shell#bhc-shell .bhc-i:hover{color:#e6e9ee!important}
}
/* SPACE27_2026_10_27: примечание о допущениях расчёта под полями ввода (sideNote в calc-shell.js, от 900 px) */
.bhc-side-note{margin:16px 0 0;padding:0 2px;font:400 13px/1.55 var(--r-f);color:var(--r-t2)}
