/* Bitpin Kit (bk) — tokens from Bitpin Minions (light), scoped to .bk. Mobile-first; breakpoints 600px, 960px.
   No font-family on purpose: the academy theme forces "BPA Yekan" (YekanBakh VF, FaNum) on every element. */

/* ---------- tokens ---------- */
.bk{
 --bk-bg:#FFFFFF;--bk-surface:#FAFAFA;--bk-surface-2:#F4F4F4;--bk-surface-3:#E8E8E8;
 --bk-border:#E6E6E6;--bk-border-strong:#DADADA;--bk-divider:#F4F4F4;
 --bk-text:#080808;--bk-text-2:#505050;--bk-text-3:#6E6E6E;--bk-placeholder:#AAAAAA;--bk-disabled:#C8C8C8;
 --bk-brand:#00CC85;--bk-brand-hover:#0FD490;--bk-on-brand:#000000;--bk-brand-tonal:#F0FFF8;
 /* text colours reach AA (4.5:1) at small sizes; the bright brand/red stay for fills, bars and icons only */
 --bk-link:#006B44;
 --bk-pos:#006B44;--bk-pos-line:#00A069;--bk-pos-fill:#00CC85;--bk-pos-bg:#E6FAF3;
 --bk-neg:#FF3B58;--bk-neg-strong:#BE1E37;--bk-neg-bg:#FFEBEE;
 --bk-warn:#FFC53D;--bk-warn-text:#806117;--bk-warn-bg:#FFF3D6;
 --bk-info:#0091FF;--bk-info-text:#0064B9;--bk-info-bg:#F0F8FF;
 /* focus = ink (20:1 on white); green on white is only 2.1:1 */
 --bk-focus:#080808;--bk-select:#080808;--bk-sel-tonal:#E6E6E6;--bk-gold:#FFC53D;--bk-gold-line:#806117;
 --bk-ink:#080808;--bk-ink-2:#161616;--bk-ink-3:#222222;--bk-ink-line:rgba(245,245,245,.1);--bk-ink-text:#F5F5F5;--bk-ink-text-2:#B9B9B9;--bk-ink-pos:#70EBB0;--bk-ink-neg:#FF8A9D;
 --bk-r-xs:4px;--bk-r-sm:8px;--bk-r:12px;--bk-r-lg:16px;--bk-r-xl:32px;--bk-r-pill:9999px;
 --bk-s1:4px;--bk-s2:8px;--bk-s3:12px;--bk-s4:16px;--bk-s5:20px;--bk-s6:24px;--bk-s8:32px;--bk-s10:40px;--bk-s12:48px;
 --bk-ease:cubic-bezier(.4,0,.2,1);--bk-dur:150ms;
 --bk-shadow-sm:0 1px 2px rgba(0,0,0,.05);--bk-shadow-pop:0 10px 40px -10px rgba(0,0,0,.1);
 --bk-head:96px; /* fixed academy header + air: scroll-margin for anchors */
 color:var(--bk-text);background:var(--bk-bg);direction:rtl;text-align:right;font-size:16px;line-height:1.75;-webkit-text-size-adjust:100%;
 font-feature-settings:normal;font-variant-numeric:tabular-nums;overflow-wrap:break-word
}
html.bk-lock{overflow:hidden}

/* ---------- scoped reset (neutralises theme Tailwind preflight + custom.css leaks, only inside .bk) ---------- */
.bk *,.bk *::before,.bk *::after{box-sizing:border-box}
.bk :where(h1,h2,h3,h4,h5,h6,p,figure,blockquote,dl,dd,fieldset){margin:0}
.bk :where(h1,h2,h3,h4,h5,h6){font-size:inherit;font-weight:700;line-height:1.5;color:var(--bk-text)}
.bk :where(ul,ol,menu){list-style:none;margin:0;padding:0}
.bk :where(a){color:var(--bk-link);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.bk :where(b,strong){font-weight:600}
.bk :where(button,input,select,textarea){font:inherit;color:inherit;margin:0;letter-spacing:inherit;line-height:inherit}
.bk :where(button){background:none;border:0;padding:0;cursor:pointer;-webkit-appearance:none;appearance:none;text-transform:none}
.bk :where(img){max-width:100%;height:auto}
.bk :where(svg){overflow:visible}
.bk :where(table){border-collapse:separate;border-spacing:0;width:100%}
.bk :where(summary){display:block;list-style:none;cursor:pointer}
.bk summary::-webkit-details-marker{display:none}
.bk :where(input)::placeholder{color:var(--bk-placeholder);opacity:1}
.bk :where(output){display:inline}
.bk [hidden]:not([hidden=until-found]){display:none!important}
.bk [hidden=until-found]{display:block;content-visibility:hidden}
.bk :where(:focus-visible){outline:2px solid var(--bk-focus);outline-offset:2px}
.bk .bk-ic{display:inline-block;flex:none;vertical-align:middle}
.bk-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}

/* ---------- layout + type ---------- */
.bk .bk-wrap{max-width:1120px;margin-inline:auto;padding-inline:16px}
.bk .bk-sec{padding-block:32px 8px;scroll-margin-top:var(--bk-head)}
.bk [id]{scroll-margin-top:var(--bk-head)}
.bk .bk-h1{font-size:26px;line-height:1.5;font-weight:800;letter-spacing:0;color:var(--bk-text)}
.bk .bk-h2{font-size:21px;line-height:1.55;font-weight:700;margin:0 0 8px}
.bk .bk-h3{font-size:17px;line-height:1.6;font-weight:700;margin:20px 0 6px}
/* text blocks span the full .bk-wrap (same width as the tool card and tables); reading comfort comes from line height */
.bk .bk-answer{font-size:16px;line-height:1.85;color:var(--bk-text);margin:0 0 16px}
.bk .bk-prose{margin-inline:0}
.bk .bt-prose,.bk .bt-lede{max-width:none}
.bk .bk-prose > .bk-h2{margin-top:0}
.bk .bk-prose p{margin:0 0 14px;color:#1E1E1E;line-height:1.9}
.bk .bk-prose ul{list-style:disc;padding-inline-start:22px;margin:0 0 14px}
.bk .bk-prose ol{list-style:decimal;padding-inline-start:22px;margin:0 0 14px}
.bk .bk-prose li{margin-bottom:6px;line-height:1.85}
.bk .bk-prose li::marker{color:var(--bk-text-3)}
.bk .bk-foot{font-size:13px;line-height:1.8;color:var(--bk-text-3);margin-top:12px}
.bk .bk-n,.bk output,.bk .bk-tn,.bk input.bk-n{font-variant-numeric:tabular-nums}
/* no orphan words: paragraphs re-wrap their last lines, headings and short captions balance (no-op where unsupported) */
.bk :where(p,li,figcaption,.bt-faq-a){text-wrap:pretty}
.bk :where(h1,h2,h3,.bk-h1,.bk-h2,.bk-h3,.bk-res__cap,.bk-cmp__t,.bk-cmp__cap,.bk-chart__note,.bk-tbl__foot,.bk-field__help,.bk-rel__d,.bk-gauge__cap,.bk-cta__n,.bk-res__ctx,.bk-foot,.bk-note__x){text-wrap:balance}
.bk .bk-n{font-weight:inherit;white-space:nowrap}
.bk .bk-pos{color:var(--bk-pos)}.bk .bk-neg{color:var(--bk-neg-strong)}
.bk b.bk-n,.bk strong.bk-n{font-weight:600}

/* breadcrumb (markup from bpa_t_crumb) */
.bk .bk-crumb{margin:0 0 8px}
.bk .bt-crumb{display:flex;flex-wrap:wrap;gap:2px 0;list-style:none;margin:0;padding:0;font-size:12px;line-height:1.8;font-weight:500;color:var(--bk-text-3)}
.bk .bt-crumb li{display:inline-flex;align-items:center}
.bk .bt-crumb li+li::before{content:"/";margin:0 6px;color:var(--bk-disabled)}
.bk .bt-crumb a{position:relative;color:var(--bk-text-3);text-decoration:none;padding-block:4px}
.bk .bt-crumb a::after{content:"";position:absolute;inset:-8px -4px}
.bk .bt-crumb a:hover{color:var(--bk-text)}
.bk .bt-crumb [aria-current]{color:var(--bk-text)}

/* stamp */
.bk .bk-stamp{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-size:12px;line-height:1.8;color:var(--bk-text-3);margin-top:6px}
.bk .bk-stamp__dot{width:8px;height:8px;border-radius:50%;background:var(--bk-brand);box-shadow:0 0 0 3px var(--bk-pos-bg);flex:none}
.bk .bk-stamp__src::before{content:"";display:inline-block;width:3px;height:3px;border-radius:50%;background:var(--bk-disabled);margin-inline-end:8px;vertical-align:middle}

/* ---------- hero shell ---------- */
.bk .bk-hero{padding-top:12px}
.bk .bk-hero__sub{margin-top:6px;font-size:15px;line-height:1.85;color:var(--bk-text-2)}
.bk .bk-hero__sub .bk-n{color:var(--bk-text);font-weight:600}
.bk .bk-hero__tool{margin-top:16px}
.bk .bk-hero__kpis{margin-top:12px}

/* ---------- buttons (Minions ButtonV2) ---------- */
.bk .bk-b{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:var(--bk-r);font-weight:600;font-size:15px;line-height:1.4;text-decoration:none;white-space:nowrap;border:1px solid transparent;cursor:pointer;transition:background-color .3s var(--bk-ease),color .3s var(--bk-ease),border-color .3s var(--bk-ease);min-height:44px;padding:0 16px;outline:2px solid transparent;outline-offset:2px}
.bk .bk-b--lg{min-height:48px;padding:0 20px;font-size:16px}
.bk .bk-b--md{min-height:44px;padding:0 16px;font-size:14px}
.bk .bk-b--sm{min-height:32px;padding:0 12px;font-size:13px;border-radius:var(--bk-r-sm);position:relative}
.bk .bk-b--sm::after{content:"";position:absolute;inset:-6px 0}
.bk .bk-b--primary{background:var(--bk-brand);color:var(--bk-on-brand)}
.bk .bk-b--primary:hover{background:var(--bk-brand-hover)}
.bk .bk-b--dark{background:#000;color:#fff}
.bk .bk-b--dark:hover{background:#323232}
.bk .bk-b--tonal{background:var(--bk-surface-2);color:var(--bk-text)}
.bk .bk-b--tonal:hover{background:var(--bk-surface-3)}
.bk .bk-b--outline{background:var(--bk-bg);border-color:var(--bk-border-strong);color:var(--bk-text)}
.bk .bk-b--outline:hover{border-color:var(--bk-text-2)}
.bk .bk-b--ghost{background:transparent;color:var(--bk-text)}
.bk .bk-b--ghost:hover{background:var(--bk-surface-2)}
/* every button (incl. the green primary): ink ring with a 2px gap, so it never sits flush on a same-colour fill */
.bk .bk-b:focus-visible{outline-color:var(--bk-focus)}
.bk .bk-b[disabled],.bk .bk-b[aria-disabled=true]{background:var(--bk-surface-2);color:var(--bk-placeholder);pointer-events:none}
.bk .bk-b .bk-ic{margin-inline:-2px}

/* ---------- pills / tags ---------- */
.bk .bk-pill{display:inline-flex;align-items:center;gap:2px;height:24px;padding:0 8px;border-radius:var(--bk-r-sm);font-size:12px;line-height:1;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums;vertical-align:middle;flex:none}
.bk .bk-pill--sm{height:20px;padding:0 6px;font-size:11.5px}
.bk .bk-pill--pos{background:var(--bk-pos-bg);color:var(--bk-pos)}
.bk .bk-pill--neg{background:var(--bk-neg-bg);color:var(--bk-neg-strong)}
.bk .bk-pill--neutral{background:#EEEEEE;color:var(--bk-text-2)}
.bk .bk-pill--info{background:#E6F4FF;color:var(--bk-info-text)}
.bk .bk-pill--warn{background:#FFF9EC;color:var(--bk-warn-text)}

/* ---------- alert / note ---------- */
.bk .bk-note{display:flex;gap:12px;padding:16px;border-radius:var(--bk-r-sm);background:var(--bk-surface-2);font-size:13px;line-height:1.85;color:var(--bk-text-2)}
.bk .bk-note__ic{color:var(--bk-text);flex:none;line-height:0;padding-top:2px}
.bk .bk-note__t{font-size:14px;color:var(--bk-text);margin-bottom:2px}
.bk .bk-note__x p{margin:0}
.bk .bk-note--info{background:var(--bk-info-bg)}.bk .bk-note--info .bk-note__ic{color:var(--bk-info)}
.bk .bk-note--warn{background:var(--bk-warn-bg)}.bk .bk-note--warn .bk-note__ic{color:var(--bk-warn-text)}
.bk .bk-note--pos{background:var(--bk-brand-tonal)}.bk .bk-note--pos .bk-note__ic{color:var(--bk-pos)}
.bk .bk-note--neg{background:#FFF2F4}.bk .bk-note--neg .bk-note__ic{color:var(--bk-neg)}

/* ---------- tool card ---------- */
.bk .bk-tool{background:var(--bk-bg);border:1px solid var(--bk-border);border-radius:var(--bk-r-lg);padding:12px;position:relative}
.bk .bk-tool__head{margin-bottom:12px}
/* result first in the DOM and on phones (default result inside the first screen); form first column at ≥960 */
.bk .bk-split{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.bk .bk-split--form-first .bk-split__form{order:-1}
.bk .bk-split__form{display:grid;gap:16px;align-content:start;min-width:0;padding:4px}
.bk .bk-split__out{min-width:0}
.bk .bk-stack{display:grid;align-content:start;gap:16px}
.bk .bk-row2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
/* single-column grids must not grow to the min-content of a scrolling chip row */
.bk .bk-field,.bk .bk-stack,.bk .bk-split__form,.bk .bk-slider,.bk .bk-cta,.bk .bk-bd,.bk .bk-cmp,.bk .bk-chart,.bk .bk-dis__body,.bk .bk-kpi{grid-template-columns:minmax(0,1fr)}
.bk .bk-chips,.bk .bk-seg,.bk .bk-res,.bk .bk-tool{min-width:0}

/* ---------- segmented control ---------- */
/* Minions ButtonGroup: #FAFAFA track, radius 8, 2px inset; active item = neutral tonal fill, no shadow */
.bk .bk-seg__list{display:inline-grid;grid-auto-flow:column;grid-auto-columns:minmax(max-content,1fr);gap:2px;padding:2px;background:var(--bk-surface);border-radius:var(--bk-r-sm);max-width:100%;overflow-x:auto;scrollbar-width:none;vertical-align:top}
.bk .bk-seg__list::-webkit-scrollbar{display:none}
.bk .bk-seg--full .bk-seg__list{display:grid;width:100%;grid-auto-columns:minmax(0,1fr)}
.bk .bk-seg--full .bk-seg__btn{white-space:normal;padding:4px 8px}
.bk .bk-seg__btn{min-height:44px;padding:0 14px;border-radius:6px;font-size:14px;line-height:1.3;font-weight:500;color:var(--bk-text-2);white-space:nowrap;transition:background-color var(--bk-dur) var(--bk-ease),color var(--bk-dur) var(--bk-ease)}
.bk .bk-seg__btn:hover{color:var(--bk-text);background:var(--bk-surface-2)}
.bk .bk-seg__btn[aria-selected=true],.bk .bk-seg__btn[aria-pressed=true]{background:var(--bk-sel-tonal);color:var(--bk-text);font-weight:600;box-shadow:none}
.bk .bk-seg__btn:focus-visible{outline-offset:-2px}
.bk .bk-seg__btn--ic{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.bk .bk-seg__panel{padding-top:16px}
.bk .bk-seg__panel[hidden],.bk .bk-tabs__panel[hidden]{padding:0}
.bk .bk-seg--ink .bk-seg__list{background:var(--bk-ink-2)}
.bk .bk-seg--ink .bk-seg__btn{color:var(--bk-ink-text-2)}
.bk .bk-seg--ink .bk-seg__btn[aria-pressed=true],.bk .bk-seg--ink .bk-seg__btn[aria-selected=true]{background:#fff;color:#000;box-shadow:none;font-weight:500}

/* ---------- chips ---------- */
.bk .bk-chips{position:relative;margin-inline:-4px}
.bk .bk-chips__track{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;padding:4px;overscroll-behavior-x:contain}
.bk .bk-chips__track::-webkit-scrollbar{display:none}
.bk .bk-chips--wrap .bk-chips__track{flex-wrap:wrap;overflow:visible}
.bk .bk-chips[data-fade~=s] .bk-chips__track{-webkit-mask-image:linear-gradient(to left,transparent 0,#000 28px);mask-image:linear-gradient(to left,transparent 0,#000 28px)}
.bk .bk-chips[data-fade~=e] .bk-chips__track{-webkit-mask-image:linear-gradient(to right,transparent 0,#000 28px);mask-image:linear-gradient(to right,transparent 0,#000 28px)}
.bk .bk-chips[data-fade~=s][data-fade~=e] .bk-chips__track{-webkit-mask-image:linear-gradient(to right,transparent 0,#000 28px,#000 calc(100% - 28px),transparent 100%);mask-image:linear-gradient(to right,transparent 0,#000 28px,#000 calc(100% - 28px),transparent 100%)}
.bk .bk-chip{position:relative;flex:none;scroll-snap-align:start;display:inline-flex;align-items:center;justify-content:center;gap:4px;height:36px;padding:0 14px;border-radius:var(--bk-r-pill);border:1px solid var(--bk-border-strong);background:var(--bk-bg);color:#393939;font-size:13px;line-height:1;font-weight:500;white-space:nowrap;transition:background-color var(--bk-dur) var(--bk-ease),color var(--bk-dur) var(--bk-ease),border-color var(--bk-dur) var(--bk-ease)}
.bk .bk-chip::after{content:"";position:absolute;inset:-5px -2px}
.bk .bk-chip:hover{background:#F3F3F3}
.bk .bk-chip[aria-checked=true],.bk .bk-chip[aria-pressed=true]{background:var(--bk-select);border-color:var(--bk-select);color:#fff}
.bk .bk-chip:focus-visible{outline:2px solid var(--bk-text);outline-offset:2px}
.bk .bk-chip__sub{font-size:11px;color:var(--bk-text-3);font-weight:400}
.bk .bk-chip[aria-checked=true] .bk-chip__sub,.bk .bk-chip[aria-pressed=true] .bk-chip__sub{color:#C8C8C8}
.bk .bk-chip--custom{border-style:dashed}
.bk .bk-chip--ic{padding-inline-start:7px;gap:6px}
.bk .bk-chip[aria-checked=true] .bk-as,.bk .bk-chip[aria-pressed=true] .bk-as{box-shadow:0 0 0 1px rgba(255,255,255,.25)}
.bk .bk-chips--sm .bk-chip--ic{padding-inline-start:6px}
.bk .bk-chips--sm .bk-chip{height:32px;padding:0 12px;font-size:12px}
.bk .bk-chips--sm .bk-chip::after{inset:-6px -2px}

/* ---------- number field / input ---------- */
/* align-content:start: a field stretched by a parent grid row (two fields side by side) never grows its input row */
.bk .bk-field{display:grid;gap:8px;min-width:0;align-content:start}
.bk .bk-field__top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.bk .bk-field__label{font-size:14px;line-height:1.5;font-weight:400;color:var(--bk-text)}
.bk .bk-field__aside{font-size:12px;color:var(--bk-text-3)}
.bk .bk-input{display:flex;align-items:center;gap:8px;min-height:52px;padding:0 14px;background:var(--bk-surface-2);border:1px solid transparent;border-radius:var(--bk-r);transition:border-color .3s ease-out,background-color .3s ease-out}
.bk .bk-input:hover{border-color:var(--bk-text-2)}
.bk .bk-input:focus-within{border-color:var(--bk-focus);box-shadow:0 0 0 1px var(--bk-focus);background:var(--bk-bg)}
.bk .bk-input.is-err{border-color:var(--bk-neg)}
.bk .bk-input__el{flex:1;min-width:0;width:100%;height:50px;border:0;background:transparent;outline:none;font-size:18px;font-weight:500;color:var(--bk-text);text-align:right;padding:0;direction:ltr}
.bk .bk-input__el:focus-visible{outline:none}
.bk .bk-input__unit{flex:none;font-size:13px;color:var(--bk-text-2);white-space:nowrap}
.bk .bk-input__ic{flex:none;display:inline-flex;width:24px;height:24px}
.bk .bk-input__unit--as{display:inline-flex;align-items:center;gap:6px;height:32px;padding-inline:6px 10px;border-radius:var(--bk-r-pill);background:var(--bk-bg);border:1px solid var(--bk-border);color:var(--bk-text);font-weight:500}
.bk .bk-input--stepper{padding:0 4px}
.bk .bk-input--stepper .bk-input__el{text-align:center}
.bk .bk-step{flex:none;width:44px;height:44px;border-radius:var(--bk-r-sm);display:inline-flex;align-items:center;justify-content:center;color:var(--bk-text);background:var(--bk-bg);border:1px solid var(--bk-border);touch-action:manipulation;-webkit-user-select:none;user-select:none;transition:background-color var(--bk-dur) var(--bk-ease)}
.bk .bk-step:hover{background:var(--bk-surface)}
.bk .bk-step:active{background:var(--bk-surface-3)}
.bk .bk-step[disabled]{color:var(--bk-disabled);pointer-events:none}
.bk .bk-field__help{font-size:12px;line-height:1.7;color:var(--bk-text-2)}
.bk .bk-field__err{font-size:12px;line-height:1.7;color:var(--bk-neg-strong)}
.bk .bk-field__read{font-size:12px;line-height:1.5;color:var(--bk-text-3);min-height:18px;margin-top:-2px}
.bk .bk-field > .bk-chips{margin-top:-2px}

/* select (native, styled like the input) */
.bk .bk-select{width:100%;height:52px;padding:0 14px 0 40px;border-radius:var(--bk-r);background:var(--bk-surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23080808' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 16px 50%;border:1px solid transparent;-webkit-appearance:none;appearance:none;font-size:15px;color:var(--bk-text);cursor:pointer}
.bk .bk-select:hover{border-color:var(--bk-text-2)}
.bk .bk-select:focus-visible{outline:none;border-color:var(--bk-focus);box-shadow:0 0 0 1px var(--bk-focus);background-color:var(--bk-bg)}

/* ---------- slider ---------- */
.bk .bk-slider{display:grid;gap:4px;min-width:0;align-content:start}
.bk .bk-slider__head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.bk .bk-slider__val{font-size:16px;font-weight:600;color:var(--bk-text)}
.bk .bk-range{--p:50%;width:100%;height:44px;margin:0;background:transparent;-webkit-appearance:none;appearance:none;cursor:pointer;touch-action:pan-y}
.bk .bk-range:focus-visible{outline:none}
.bk .bk-range::-webkit-slider-runnable-track{height:6px;border-radius:var(--bk-r-pill);background:linear-gradient(to left,var(--bk-select) 0 var(--p),var(--bk-disabled) var(--p) 100%)}
.bk .bk-range::-moz-range-track{height:6px;border-radius:var(--bk-r-pill);background:var(--bk-disabled)}
.bk .bk-range::-moz-range-progress{height:6px;border-radius:var(--bk-r-pill);background:var(--bk-select)}
.bk .bk-range::-webkit-slider-thumb{-webkit-appearance:none;width:24px;height:24px;margin-top:-9px;border-radius:50%;background:var(--bk-select);border:0;box-shadow:0 0 0 4px transparent;transition:box-shadow var(--bk-dur) var(--bk-ease)}
.bk .bk-range::-moz-range-thumb{width:24px;height:24px;border-radius:50%;background:var(--bk-select);border:0}
.bk .bk-range:hover::-webkit-slider-thumb,.bk .bk-range:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 6px rgba(8,8,8,.2)}
.bk .bk-range:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 3px #fff,0 0 0 5px var(--bk-focus)}
.bk .bk-range:focus-visible::-moz-range-thumb{box-shadow:0 0 0 3px #fff,0 0 0 5px var(--bk-focus)}
.bk .bk-slider__marks{position:relative;height:20px;margin:-6px 12px 0;font-size:12px;color:var(--bk-text-3)}
.bk .bk-slider__marks span{position:absolute;top:0;inset-inline-start:calc(var(--at) * 100%);transform:translateX(50%);white-space:nowrap}

/* ---------- result card ---------- */
.bk .bk-res{--bk-res-h:auto;min-height:var(--bk-res-h);display:flex;flex-direction:column;gap:6px;padding:16px;background:var(--bk-surface);border:1px solid var(--bk-border);border-radius:var(--bk-r);scroll-margin-top:var(--bk-head);scroll-margin-bottom:24px}
.bk .bk-res:focus{outline:none}
.bk .bk-res__label{font-size:13px;line-height:1.6;color:var(--bk-text-2)}
.bk .bk-res__main{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:8px;row-gap:4px;min-height:48px}
.bk .bk-res__v{font-size:34px;line-height:1.3;font-weight:600;color:var(--bk-text);letter-spacing:0}
.bk .bk-res__v.bk-neg{color:var(--bk-neg-strong)}
.bk .bk-res__u{font-size:15px;color:var(--bk-text-2)}
.bk .bk-res__main .bk-pill{align-self:center;margin-inline-start:2px}
.bk .bk-res__s{font-size:14px;line-height:1.85;color:#1E1E1E}
.bk .bk-res__s .bk-n{font-weight:600}
.bk .bk-res__rows{display:grid;gap:0;margin-top:6px;border-top:1px solid var(--bk-border)}
.bk .bk-res__row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:10px 0;border-bottom:1px solid var(--bk-border);font-size:14px}
.bk .bk-res__row:last-child{border-bottom:0;padding-bottom:0}
.bk .bk-res__row dt{color:var(--bk-text-2)}
.bk .bk-res__row dd{font-weight:500;color:var(--bk-text);text-align:left}
.bk .bk-res__cap{font-size:12px;line-height:1.8;color:var(--bk-text-3);margin-top:4px}
.bk .bk-res__top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}
.bk .bk-res__q{font-size:14px;line-height:1.8;color:var(--bk-text-2)}
.bk .bk-res__q .bk-n{color:var(--bk-text);font-weight:600}
.bk .bk-res__asset{display:flex;align-items:center;gap:8px;flex:none;font-size:14px;font-weight:500}
.bk .bk-res__id{display:flex;align-items:center;min-height:40px;margin-bottom:6px;min-width:0}
.bk .bk-res__periods{margin-top:6px}
.bk .bk-res .bk-cta{margin-top:10px}
/* ink variant: the Bitpin app returns widget (a whole card, never a banner over a light form) */
.bk .bk-res--ink{background:var(--bk-ink);border-color:var(--bk-ink);color:var(--bk-ink-text);border-radius:var(--bk-r-lg)}
.bk .bk-res--ink .bk-res__label,.bk .bk-res--ink .bk-res__u,.bk .bk-res--ink .bk-res__q,.bk .bk-res--ink .bk-res__row dt,.bk .bk-res--ink .bk-res__cap{color:var(--bk-ink-text-2)}
.bk .bk-res--ink .bk-res__v,.bk .bk-res--ink .bk-res__q .bk-n,.bk .bk-res--ink .bk-res__s,.bk .bk-res--ink .bk-res__row dd,.bk .bk-res--ink .bk-res__asset{color:var(--bk-ink-text)}
.bk .bk-res--ink .bk-res__v,.bk .bk-res--ink .bk-n,.bk .bk-res--ink .bk-res__q .bk-n,.bk .bk-res--ink .bk-res__s .bk-n{font-weight:500}
.bk .bk-res--ink .bk-res__rows,.bk .bk-res--ink .bk-res__row{border-color:var(--bk-ink-line)}
.bk .bk-res--ink .bk-pos,.bk .bk-sum .bk-pos{color:var(--bk-ink-pos)}
.bk .bk-res--ink .bk-neg,.bk .bk-sum .bk-neg,.bk .bk-res--ink .bk-res__v.bk-neg{color:var(--bk-ink-neg)}
.bk .bk-res--ink .bk-pill--pos{background:rgba(0,204,133,.14);color:var(--bk-ink-pos)}
.bk .bk-res--ink .bk-pill--neg{background:rgba(255,59,88,.16);color:var(--bk-ink-neg)}
.bk .bk-res--ink .bk-pill--neutral{background:var(--bk-ink-3);color:var(--bk-ink-text-2)}
.bk .bk-res--ink .bk-chip{background:var(--bk-ink-2);border-color:var(--bk-ink-2);color:var(--bk-ink-text-2)}
.bk .bk-res--ink .bk-chip:hover{background:var(--bk-ink-3)}
.bk .bk-res--ink .bk-chip[aria-checked=true],.bk .bk-res--ink .bk-chip[aria-pressed=true]{background:#fff;border-color:#fff;color:#000}
.bk .bk-res--ink .bk-chip:focus-visible{outline-color:#fff}
.bk .bk-res--ink .bk-chips[data-fade] .bk-chips__track{-webkit-mask-image:none;mask-image:none}
.bk .bk-res--ink .bk-list__row{background:var(--bk-ink-2)}
.bk .bk-res--ink a{color:var(--bk-ink-pos)}
.bk .bk-res--ink .bk-b--ghost{color:var(--bk-ink-text)}
.bk .bk-res--ink .bk-b--outline{background:transparent;border-color:rgba(245,245,245,.28);color:var(--bk-ink-text)}
.bk .bk-res--ink .bk-b--outline:hover{border-color:var(--bk-ink-text-2)}
.bk .bk-res--ink .bk-b--ghost:hover{background:var(--bk-ink-3)}
.bk .bk-res--ink :focus-visible{outline-color:#fff}

/* ---------- profit result (bpa_k_profit_result / layout 'kpi'): one clean white card, no card in card ---------- */
.bk .bk-res--kpi{container:bk-pr / inline-size;gap:0;padding:16px;background:var(--bk-bg);border-radius:var(--bk-r-lg)}
.bk .bk-res--kpi .bk-res__top{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 12px;margin:0}
.bk .bk-res--kpi .bk-res__label{font-size:14px;color:var(--bk-text-2)}
.bk .bk-res__stamp{font-size:12px;line-height:1.6;color:var(--bk-text-3);white-space:nowrap}
.bk .bk-res--kpi .bk-res__main{flex-wrap:nowrap;align-items:baseline;column-gap:6px;min-height:50px;margin-top:4px}
.bk .bk-res--kpi .bk-res__v{font-size:34px;line-height:1.35;font-weight:600;color:var(--bk-text)}
.bk .bk-res--kpi .bk-res__v.is-long{font-size:28px}
.bk .bk-res--kpi .bk-res__u{font-size:15px;line-height:1.5;color:var(--bk-text-2);white-space:nowrap}
.bk .bk-res__ctx{display:flex;align-items:center;gap:6px;min-height:24px;font-size:13px;line-height:1.7;color:var(--bk-text-3)}
.bk .bk-res__ic{display:inline-flex;flex:none;width:20px;height:20px}
.bk .bk-res__kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:14px;padding-top:14px;border-top:1px solid var(--bk-border)}
.bk .bk-res__kpi{display:grid;align-content:start;gap:2px;min-width:0;padding-inline:12px}
.bk .bk-res__kpi:first-child{padding-inline-start:0}
.bk .bk-res__kpi:last-child{padding-inline-end:0}
.bk .bk-res__kpi + .bk-res__kpi{border-inline-start:1px solid var(--bk-border)}
.bk .bk-res__kl{font-size:12px;line-height:1.6;color:var(--bk-text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk .bk-res__kv{font-size:15px;line-height:1.5;font-weight:600;color:var(--bk-text);font-variant-numeric:tabular-nums}
.bk .bk-res__kn{white-space:nowrap}
.bk .bk-res__ku{display:inline-block;font-size:13px;font-weight:500;white-space:nowrap}
.bk .bk-res__kv.bk-pos,.bk .bk-res__kv.bk-pos .bk-res__ku{color:var(--bk-pos)}
.bk .bk-res__kv.bk-neg,.bk .bk-res__kv.bk-neg .bk-res__ku{color:var(--bk-neg-strong)}
.bk .bk-res__after{margin-top:12px}
.bk .bk-res--kpi .bk-ap{--bk-ring:var(--bk-bg)}
/* key/value rows reused below the card (inside «جزئیات محاسبه»): no extra top rule */
.bk .bk-dis__body > .bk-res__rows{margin-top:0;border-top:0}
/* narrow card (phones: ~285px inside): three columns stay, each unit drops under its number so every column has the same 2 lines */
@container bk-pr (max-width:419.98px){
 .bk .bk-res__kpi{padding-inline:10px}
 .bk .bk-res__kv{font-size:15px;line-height:1.45}
 .bk .bk-res__ku{display:block;font-size:12px;line-height:1.5;font-weight:500}
 .bk .bk-res__kl{font-size:11.5px}
}
/* very narrow (<260px, never at 375): same order as stacked rows, label right / value left */
@container bk-pr (max-width:259.98px){
 .bk .bk-res__kpis{grid-template-columns:minmax(0,1fr)}
 .bk .bk-res__kpi{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:6px 0}
 .bk .bk-res__kpi + .bk-res__kpi{border-inline-start:0;border-top:1px solid var(--bk-border)}
 .bk .bk-res__ku{display:inline}
}

/* asset avatar + picker trigger */
.bk .bk-av{width:32px;height:32px;border-radius:50%;flex:none;display:inline-flex;align-items:center;justify-content:center;background:var(--bk-surface-2);color:var(--bk-text);font-size:13px;font-weight:600;overflow:hidden;object-fit:cover}
.bk .bk-av svg{width:20px;height:20px}
.bk .bk-pick{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:52px;padding:0 12px;border-radius:var(--bk-r);background:var(--bk-surface-2);border:1px solid transparent;text-align:right;transition:border-color .3s ease-out}
.bk .bk-pick:hover{border-color:var(--bk-text-2)}
.bk .bk-pick__cur{display:flex;align-items:center;gap:8px;min-width:0}
.bk .bk-pick__l{font-size:15px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk .bk-pick__sub{font-size:12px;color:var(--bk-text-3);direction:ltr}
.bk .bk-res--ink .bk-pick{background:var(--bk-ink-2);color:var(--bk-ink-text)}
.bk .bk-res--ink .bk-av{background:var(--bk-ink-3);color:var(--bk-ink-text)}

/* ---------- asset icons (bpa_k_asset / BK.asset): fixed square boxes, circle, hairline ring ---------- */
.bk .bk-as{display:inline-block;flex:none;width:32px;height:32px;border-radius:50%;vertical-align:middle;object-fit:cover;overflow:hidden;box-shadow:0 0 0 1px rgba(8,8,8,.06)}
.bk img.bk-as{background:var(--bk-surface-2);max-width:none}
.bk .bk-as--20{width:20px;height:20px}.bk .bk-as--24{width:24px;height:24px}.bk .bk-as--32{width:32px;height:32px}.bk .bk-as--40{width:40px;height:40px}.bk .bk-as--48{width:48px;height:48px}
.bk .bk-as--mono{display:inline-flex;align-items:center;justify-content:center;background:#E8E8E8;color:#323232;font-size:11px;line-height:1;font-weight:600;letter-spacing:0;direction:ltr;white-space:nowrap}
.bk .bk-as--mono.bk-as--20{font-size:8px}.bk .bk-as--mono.bk-as--24{font-size:9px}.bk .bk-as--mono.bk-as--40{font-size:13px}.bk .bk-as--mono.bk-as--48{font-size:15px}
.bk .bk-as--none{visibility:hidden;box-shadow:none}
/* pair: first icon on top (start side), the second tucked under it with a ring in the surface colour */
.bk .bk-ap{--bk-ring:var(--bk-bg);display:inline-flex;align-items:center;flex:none;vertical-align:middle}
.bk .bk-ap > .bk-as{box-shadow:0 0 0 2px var(--bk-ring)}
.bk .bk-ap > .bk-as:first-child{position:relative;z-index:1}
.bk .bk-ap--20 > .bk-as + .bk-as{margin-inline-start:-6px}.bk .bk-ap--24 > .bk-as + .bk-as{margin-inline-start:-7px}.bk .bk-ap--32 > .bk-as + .bk-as{margin-inline-start:-10px}.bk .bk-ap--40 > .bk-as + .bk-as{margin-inline-start:-12px}.bk .bk-ap--48 > .bk-as + .bk-as{margin-inline-start:-14px}
/* label: icon + name over a small sub line (the app's coin row) */
.bk .bk-al{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:100%;vertical-align:middle;text-align:right}
.bk .bk-al__t{display:grid;min-width:0;line-height:1.4}
.bk .bk-al__n{font-size:14px;font-weight:500;color:var(--bk-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk .bk-al__s{font-size:12px;font-weight:400;color:var(--bk-text-3);text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk .bk-al--20{gap:6px}.bk .bk-al--20 .bk-al__n{font-size:13px}
.bk .bk-al--40,.bk .bk-al--48{gap:10px}.bk .bk-al--40 .bk-al__n{font-size:16px;font-weight:600}.bk .bk-al--48 .bk-al__n{font-size:17px;font-weight:600}.bk .bk-al--40 .bk-al__s,.bk .bk-al--48 .bk-al__s{font-size:12.5px}
.bk .bk-al--inline .bk-al__t{display:flex;align-items:baseline;gap:6px}
.bk .bk-al--cell .bk-al__n{font-weight:inherit}
.bk .bk-al--cell .bk-al__s{font-size:11.5px}
/* inside the result card (#FAFAFA) the pair ring takes the card colour; on ink the ink colour */
.bk .bk-res .bk-ap{--bk-ring:var(--bk-surface)}
.bk .bk-res--ink .bk-as,.bk .bk-sum .bk-as{box-shadow:0 0 0 1px rgba(255,255,255,.08)}
.bk .bk-res--ink .bk-as--mono{background:var(--bk-ink-3);color:var(--bk-ink-text)}
.bk .bk-res--ink .bk-ap{--bk-ring:var(--bk-ink)}
.bk .bk-res--ink .bk-ap > .bk-as{box-shadow:0 0 0 2px var(--bk-ring)}
.bk .bk-res--ink .bk-al__n{color:var(--bk-ink-text)}.bk .bk-res--ink .bk-al__s{color:var(--bk-ink-text-2)}
.bk .bk-res--ink .bk-list__row .bk-ap{--bk-ring:var(--bk-ink-2)}

/* ink list rows (returns list inside the ink card) */
/* grid: avatar | name (2 lines) | value over pill — every row the same height at 375 */
.bk .bk-list{display:grid;align-content:start;gap:6px;margin-top:4px}
.bk .bk-list__row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:10px;row-gap:2px;padding:10px 12px;border-radius:var(--bk-r);background:var(--bk-surface)}
.bk .bk-list__row > .bk-av{grid-row:1 / span 2}
.bk .bk-list__name{grid-row:1 / span 2;min-width:0;display:grid;line-height:1.4}
.bk .bk-list__name > span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk .bk-list__name small{font-size:11px;color:var(--bk-ink-text-2);direction:ltr;text-align:right}
.bk .bk-list__v{grid-column:3;font-size:15px;line-height:1.4;white-space:nowrap;justify-self:end}
.bk .bk-list__row > .bk-pill{grid-column:3;justify-self:end}

/* ---------- CTA ---------- */
.bk .bk-cta{display:grid;align-content:start;gap:10px}
.bk .bk-cta__t{font-size:14px;line-height:1.8;color:var(--bk-text-2)}
.bk .bk-cta__acts{display:flex;flex-wrap:wrap;gap:8px}
.bk .bk-cta__acts > .bk-b{flex:1 1 180px}
.bk .bk-cta__acts > .bk-b--primary{flex:1.35 1 220px}
.bk .bk-cta__n{font-size:12px;color:var(--bk-text-3);line-height:1.7}

/* ---------- disclosure ---------- */
.bk .bk-dis{border-top:1px solid var(--bk-border)}
.bk .bk-dis__sum{display:flex;align-items:center;gap:8px;min-height:48px;font-size:14px;font-weight:500;color:var(--bk-text)}
.bk .bk-dis__t{flex:none}
.bk .bk-dis__hint{flex:1;min-width:0;font-size:12px;font-weight:400;color:var(--bk-text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk .bk-dis__sum .bk-ic{margin-inline-start:auto;transition:transform .3s var(--bk-ease);color:var(--bk-text-2)}
.bk .bk-dis[open] > .bk-dis__sum .bk-ic{transform:rotate(180deg)}
.bk .bk-dis__body{display:grid;align-content:start;gap:16px;padding:4px 0 12px}
.bk .bk-dis__sum:focus-visible{outline-offset:-2px;border-radius:var(--bk-r-sm)}

/* ---------- sticky summary (fixed; theme breaks vertical sticky) ---------- */
/* bottom stays 0; the lift above the ad banner / keyboard is a transform (--bk-lift from kit.js), so nothing shifts layout.
   Hidden = pushed fully below the viewport + visibility:hidden after the slide, so no edge peeks out behind the banner. */
.bk-sum{position:fixed;inset-inline:8px;bottom:0;z-index:60;transform:translateY(calc(100% + 16px));visibility:hidden;transition:transform .22s var(--bk-ease),visibility 0s linear .22s;pointer-events:none;padding-bottom:max(8px,env(safe-area-inset-bottom))}
.bk-sum.is-on{transform:translateY(calc(-1 * var(--bk-lift,0px)));visibility:visible;transition:transform .22s var(--bk-ease),visibility 0s;pointer-events:auto}
.bk .bk-sum__btn{display:flex;align-items:center;gap:10px;width:100%;min-height:60px;padding:8px 14px;border-radius:var(--bk-r-lg);background:var(--bk-ink);color:var(--bk-ink-text);text-align:right;box-shadow:0 8px 28px -6px rgba(0,0,0,.35)}
.bk .bk-sum__txt{flex:1;min-width:0;display:grid;line-height:1.35}
.bk .bk-sum__l{font-size:11.5px;color:var(--bk-ink-text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk .bk-sum__line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk .bk-sum__v{font-size:19px;font-weight:500;color:#fff}
.bk .bk-sum__u{font-size:12px;color:var(--bk-ink-text-2)}
.bk .bk-sum .bk-pill--pos{background:rgba(0,204,133,.16);color:var(--bk-ink-pos)}
.bk .bk-sum .bk-pill--neg{background:rgba(255,59,88,.18);color:var(--bk-ink-neg)}
.bk .bk-sum .bk-pill--neutral{background:var(--bk-ink-3);color:var(--bk-ink-text-2)}
.bk .bk-sum__go{display:inline-flex;align-items:center;gap:2px;flex:none;font-size:12px;color:var(--bk-ink-text-2)}
.bk .bk-sum__btn:focus-visible{outline:2px solid var(--bk-focus);outline-offset:2px;box-shadow:0 0 0 2px #fff,0 8px 28px -6px rgba(0,0,0,.35)}
@media (min-width:960px){.bk-sum{display:none!important}}

/* ---------- breakdown bar ---------- */
.bk .bk-bd{display:grid;align-content:start;gap:10px}
.bk .bk-bd__head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:14px;color:var(--bk-text-2)}
.bk .bk-bd__total{font-size:15px;font-weight:600;color:var(--bk-text)}
.bk .bk-bd__bar{display:flex;gap:2px;height:12px;border-radius:var(--bk-r-pill);overflow:hidden;background:var(--bk-surface-2)}
.bk .bk-bd__seg{flex:0 0 var(--w);background:var(--c);min-width:0;transition:flex-basis .3s var(--bk-ease)}
.bk .bk-bd__legend{display:grid;grid-template-columns:10px minmax(0,1fr) max-content 44px;column-gap:8px;row-gap:2px}
.bk .bk-bd__item{display:grid;grid-column:1 / -1;grid-template-columns:subgrid;align-items:center;font-size:13px;min-height:30px}
@supports not (grid-template-columns:subgrid){.bk .bk-bd__item{grid-template-columns:10px minmax(0,1fr) 9.5em 44px;column-gap:8px}}
.bk .bk-bd__item i{width:10px;height:10px;border-radius:3px;background:var(--c)}
.bk .bk-bd__l{color:var(--bk-text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bk .bk-bd__v{font-weight:500;color:var(--bk-text)}
.bk .bk-bd__p{font-size:12px;color:var(--bk-text-3);text-align:left}

/* ---------- comparison bars ---------- */
.bk .bk-cmp{display:grid;align-content:start;gap:8px;container:bk-cmp / inline-size}
.bk .bk-cmp__t{font-size:15px;font-weight:600;color:var(--bk-text);line-height:1.6}
/* ONE column template for the whole list, rows are subgrids: every track starts and ends at the same x, numbers and
   pills line up in their own columns, also after BK.compare() rewrites values. A row may never set its own columns
   (per-row «auto» columns are what misaligned the bars). Narrow figure: label | value | pill, track full width below. */
.bk .bk-cmp__list{display:grid;gap:12px;grid-template-columns:minmax(0,1fr) max-content max-content;column-gap:8px}
.bk .bk-cmp__row{display:grid;grid-column:1 / -1;grid-template-columns:subgrid!important;align-items:center;row-gap:6px;column-gap:8px}
.bk .bk-cmp__l{grid-column:1;grid-row:1;font-size:14px;color:var(--bk-text);display:flex;flex-direction:column;align-items:flex-start;gap:0;line-height:1.5;min-width:0}
.bk .bk-cmp__l small{font-size:12px;color:var(--bk-text-3)}
.bk .bk-cmp__l--ic{flex-direction:row;align-items:center;gap:8px}
.bk .bk-cmp__lt{display:flex;flex-direction:column;align-items:flex-start;min-width:0;line-height:1.45}
.bk .bk-cmp__track{grid-column:1 / -1;grid-row:2;height:10px;border-radius:var(--bk-r-pill);background:var(--bk-surface-2);overflow:hidden}
.bk .bk-cmp__fill{display:block;height:100%;width:var(--w);border-radius:inherit;background:#C8C8C8;transition:width .3s var(--bk-ease)}
.bk .bk-cmp__row.is-hi .bk-cmp__fill{background:var(--bk-brand)}
.bk .bk-cmp__row.is-neg .bk-cmp__fill{background:var(--bk-neg)}
.bk .bk-cmp__row.is-hi .bk-cmp__l{font-weight:600}
.bk .bk-cmp__v{grid-column:2 / span 2;grid-row:1;display:grid;grid-template-columns:subgrid;align-items:center;column-gap:8px;font-size:14px;font-weight:500;white-space:nowrap}
.bk .bk-cmp__v > .bk-pill{justify-self:start}
/* wide figure (≥520px of its own width, not the viewport): label | track | value | pill on one line */
@container bk-cmp (min-width:520px){
 .bk .bk-cmp__list{grid-template-columns:fit-content(var(--bk-cmp-l,200px)) minmax(96px,1fr) max-content max-content;column-gap:12px}
 .bk .bk-cmp__row{column-gap:12px}
 .bk .bk-cmp__l{flex-direction:row;align-items:baseline;gap:6px}
 .bk .bk-cmp__l--ic{align-items:center;gap:8px}
 .bk .bk-cmp__track{grid-column:2;grid-row:1}
 .bk .bk-cmp__v{grid-column:3 / span 2;column-gap:12px}
}
/* browsers without subgrid: fixed value column, so the tracks still share one start and end */
@supports not (grid-template-columns:subgrid){
 .bk .bk-cmp__list{grid-template-columns:minmax(0,1fr)}
 .bk .bk-cmp__row{grid-template-columns:minmax(0,1fr) 12.5em!important;column-gap:10px}
 .bk .bk-cmp__v{grid-column:2;display:flex;gap:6px}
 @container bk-cmp (min-width:520px){
  .bk .bk-cmp__row{grid-template-columns:var(--bk-cmp-l,150px) minmax(0,1fr) 12.5em!important}
  .bk .bk-cmp__v{grid-column:3}
 }
}
.bk .bk-cmp__cap{font-size:12px;color:var(--bk-text-3);line-height:1.8}

/* ---------- gauge ---------- */
.bk .bk-gauge{display:grid;justify-items:center;gap:4px;width:100%;max-width:340px;margin-inline:auto}
.bk .bk-gauge__t{font-size:14px;color:var(--bk-text-2);text-align:center}
.bk .bk-gauge__dial{position:relative;width:100%;aspect-ratio:200/108}
.bk .bk-gauge__dial svg{display:block;width:100%;height:100%}
.bk .bk-gauge__arcs path{stroke-linecap:butt}
.bk .bk-gauge__needle{transform-origin:100px 100px;transform-box:view-box;transition:transform .6s var(--bk-ease);fill:var(--bk-text)}
.bk .bk-gauge__hub{fill:var(--bk-text);stroke:var(--bk-bg);stroke-width:3}
.bk .bk-gauge__end{position:absolute;bottom:-20px;font-size:12px;color:var(--bk-text-3);left:4%}
.bk .bk-gauge__end--max{left:auto;right:4%}
.bk .bk-gauge__read{display:grid;justify-items:center;gap:2px;margin-top:14px;min-height:78px}
.bk .bk-gauge__v{font-size:40px;line-height:1.2;font-weight:600;color:var(--bk-text)}
.bk .bk-gauge__z{display:inline-flex;align-items:center;gap:6px;font-size:15px;font-weight:500}
.bk .bk-gauge__z i{width:10px;height:10px;border-radius:50%;background:var(--c)}
.bk .bk-gauge__cap{font-size:12px;color:var(--bk-text-3);text-align:center;line-height:1.8}

/* ---------- KPI cards ---------- */
.bk .bk-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.bk .bk-kpi{position:relative;display:grid;align-content:start;gap:2px;padding:12px;border-radius:var(--bk-r);background:var(--bk-surface);border:1px solid transparent;min-width:0;transition:border-color var(--bk-dur) var(--bk-ease)}
.bk .bk-kpi--link:hover{border-color:var(--bk-brand)}
.bk .bk-kpi__a{color:inherit;text-decoration:none}
.bk .bk-kpi__a::after{content:"";position:absolute;inset:0;border-radius:inherit}
.bk .bk-kpi--link:focus-within{border-color:var(--bk-focus)}
.bk .bk-kpi__a:focus-visible{outline:none}
.bk .bk-kpi__l{font-size:12px;line-height:1.6;color:var(--bk-text-2)}
.bk .bk-kpi__l--ic{display:flex;align-items:center;gap:6px;margin-bottom:4px;font-size:13px;color:var(--bk-text)}
.bk .bk-kpi__v{font-size:17px;line-height:1.5;font-weight:600;color:var(--bk-text);overflow:hidden;text-overflow:ellipsis}
.bk .bk-kpi__s{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px;color:var(--bk-text-3)}

/* ---------- tabs (data hub; Minions underline tabs) ---------- */
.bk .bk-tabs__list{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--bk-divider);margin:4px -16px 0;padding:0 16px;scroll-snap-type:x proximity}
.bk .bk-tabs__list::-webkit-scrollbar{display:none}
.bk .bk-tab{position:relative;flex:none;min-height:48px;padding:0 14px;font-size:14px;font-weight:400;color:var(--bk-text-3);white-space:nowrap;scroll-snap-align:start;border-radius:var(--bk-r-xs) var(--bk-r-xs) 0 0;transition:color var(--bk-dur) var(--bk-ease)}
.bk .bk-tab:hover{color:var(--bk-text)}
.bk .bk-tab[aria-selected=true]{color:var(--bk-text);font-weight:500}
.bk .bk-tab[aria-selected=true]::after{content:"";position:absolute;bottom:0;left:50%;width:32px;height:4px;margin-left:-16px;border-radius:var(--bk-r-pill);background:var(--bk-brand)}
.bk .bk-tab:focus-visible{outline-offset:-3px}
.bk .bk-tabs__panel{padding-top:16px}

/* ---------- responsive data table ---------- */
.bk .bk-tbl{border:1px solid var(--bk-border);border-radius:var(--bk-r);background:var(--bk-bg);overflow:hidden}
.bk .bk-tbl__scroll{overflow-x:auto}
.bk .bk-tbl table{font-size:14px;line-height:1.6}
.bk .bk-tbl caption{caption-side:top;text-align:right;padding:12px 16px 4px;font-size:14px;font-weight:600;color:var(--bk-text)}
.bk .bk-tbl th,.bk .bk-tbl td{padding:12px 16px;text-align:right;vertical-align:middle;border-bottom:1px solid var(--bk-border);color:var(--bk-text);font-weight:400}
.bk .bk-tbl thead th{font-size:12px;color:#323232;border-bottom-color:var(--bk-border-strong);padding-block:10px;font-weight:500;background:var(--bk-surface)}
.bk .bk-tbl tbody th{font-weight:500}
.bk .bk-tbl tbody tr:last-child > *{border-bottom:0}
.bk .bk-tbl .bk-tn{font-variant-numeric:tabular-nums}
/* numeric columns end-aligned (left in RTL) so place values line up */
.bk .bk-tbl th.bk-tn,.bk .bk-tbl td.bk-tn{text-align:left}
.bk.bk-js .bk-tbl:not(.is-all) tr[data-more]{display:none}
.bk .bk-tbl__acts{display:flex;flex-wrap:wrap;gap:8px;padding:8px 12px;border-top:1px solid var(--bk-border)}
.bk .bk-tbl__allcols{display:none}
.bk .bk-tbl__foot{padding:8px 16px 12px;font-size:12px;color:var(--bk-text-3);line-height:1.8}
.bk:not(.bk-js) .bk-tbl__acts{display:none}
@media (max-width:599.98px){
 .bk .bk-seg--full .bk-seg__btn{font-size:13px}
 .bk .bk-tbl th,.bk .bk-tbl td{padding:10px 12px}
 .bk .bk-tbl--priority:not(.is-cards) .bk-p3{display:none}
 .bk .bk-tbl--priority .bk-tbl__allcols{display:inline-flex}
 .bk .bk-tbl--cards table,.bk .bk-tbl--cards tbody,.bk .bk-tbl--cards tr,.bk .bk-tbl--cards td,.bk .bk-tbl--cards tbody th,
 .bk .bk-tbl.is-cards table,.bk .bk-tbl.is-cards tbody,.bk .bk-tbl.is-cards tr,.bk .bk-tbl.is-cards td,.bk .bk-tbl.is-cards tbody th{display:block;width:100%}
 .bk .bk-tbl--cards thead,.bk .bk-tbl.is-cards thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 .bk .bk-tbl--cards caption,.bk .bk-tbl.is-cards caption{display:block}
 .bk .bk-tbl--cards tbody tr,.bk .bk-tbl.is-cards tbody tr{padding:10px 12px;border-bottom:1px solid var(--bk-border)}
 .bk .bk-tbl--cards tbody tr:last-child,.bk .bk-tbl.is-cards tbody tr:last-child{border-bottom:0}
 .bk .bk-tbl--cards tbody th,.bk .bk-tbl.is-cards tbody th{padding:0 0 4px;border:0;font-weight:600;font-size:14.5px}
 .bk .bk-tbl--cards td,.bk .bk-tbl.is-cards td{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:3px 0;border:0;font-size:14px}
 .bk .bk-tbl--cards td::before,.bk .bk-tbl.is-cards td::before{content:attr(data-label);color:var(--bk-text-3);font-size:12.5px;flex:none;max-width:55%}
 .bk .bk-tbl.is-cards .bk-p3{display:flex}
}

/* ---------- accordion (generic) + FAQ (bpa_t_faq markup) ---------- */
.bk .bk-acc{display:grid;align-content:start;gap:8px}
.bk .bk-acc__item{background:var(--bk-surface-2);border-radius:var(--bk-r-sm);transition:background-color var(--bk-dur) var(--bk-ease)}
.bk .bk-acc__item:not([open]):hover{background:var(--bk-surface-3)}
.bk .bk-acc__sum{display:flex;align-items:center;gap:10px;min-height:52px;padding:12px 16px;border-radius:var(--bk-r-sm)}
.bk .bk-acc__sum:focus-visible{outline-offset:-2px}
.bk .bk-acc__t{flex:1;min-width:0;font-size:15px;line-height:1.6;font-weight:500;margin:0;color:var(--bk-text)}
.bk .bk-acc__meta{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--bk-text-2);flex:none}
.bk .bk-acc__sum > .bk-ic{transition:transform .3s var(--bk-ease);color:var(--bk-text)}
.bk .bk-acc__item[open] > .bk-acc__sum > .bk-ic{transform:rotate(180deg)}
.bk .bk-acc__body{padding:0 16px 16px;font-size:14px;color:var(--bk-text-2);line-height:1.85}
.bk .bk-acc__body .bk-tbl{border-color:var(--bk-border)}
.bk .bk-faq .bt-sec{padding-block:32px 8px;scroll-margin-top:var(--bk-head)}
.bk .bk-faq .bt-in{max-width:1120px;margin-inline:auto;padding-inline:16px}
.bk .bk-faq h2{font-size:21px;line-height:1.55;font-weight:700;margin:0 0 12px}
.bk .bk-faq .bt-card{display:grid;gap:8px;background:none;border:0;padding:0}
.bk .bk-faq details{background:var(--bk-surface-2);border-radius:var(--bk-r-sm);border:0;transition:background-color var(--bk-dur) var(--bk-ease)}
.bk .bk-faq details:not([open]):hover{background:var(--bk-surface-3)}
.bk .bk-faq summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:12px 16px;border-radius:var(--bk-r-sm)}
.bk .bk-faq summary:focus-visible{outline-offset:-2px}
.bk .bk-faq summary h3{font-size:15px;line-height:1.7;font-weight:500;margin:0;color:var(--bk-text)}
.bk .bk-faq summary::after{content:"";flex:none;width:8px;height:8px;border-inline-start:1.8px solid var(--bk-text);border-bottom:1.8px solid var(--bk-text);transform:rotate(-45deg);margin-top:-4px;transition:transform .3s var(--bk-ease)}
.bk .bk-faq details[open] summary::after{transform:rotate(135deg);margin-top:4px}
.bk .bk-faq .bt-faq-a{padding:0 16px 16px;font-size:14.5px;line-height:1.9;color:var(--bk-text-2)}
.bk .bk-faq .bt-faq-a p{margin:0 0 8px}
.bk .bk-faq .bt-faq-a p:last-child{margin:0}

/* ---------- related tools ---------- */
.bk .bk-rel__list{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin:0 -16px;padding:4px 16px 8px}
.bk .bk-rel__list::-webkit-scrollbar{display:none}
.bk .bk-rel__list > li{flex:0 0 78%;scroll-snap-align:start;display:flex}
.bk .bk-rel__a{display:flex;gap:12px;align-items:flex-start;width:100%;padding:16px;border:1px solid var(--bk-border);border-radius:var(--bk-r);background:var(--bk-bg);text-decoration:none;color:var(--bk-text);transition:border-color var(--bk-dur) var(--bk-ease)}
.bk .bk-rel__a:hover{border-color:var(--bk-brand)}
.bk .bk-rel__ic{flex:none;width:40px;height:40px;border-radius:var(--bk-r);background:var(--bk-brand-tonal);color:var(--bk-pos);display:inline-flex;align-items:center;justify-content:center}
.bk .bk-rel__ic--as{width:auto;min-width:40px;background:none;border-radius:50%}
.bk .bk-rel__tx{display:grid;gap:2px;min-width:0}
.bk .bk-rel__t{font-size:15px;font-weight:600;line-height:1.6}
.bk .bk-rel__d{font-size:13px;line-height:1.7;color:var(--bk-text-2)}

/* ---------- line chart ---------- */
/* figcaption is a direct child of figure; title + range chips share a row when they fit, every other part is full width */
.bk .bk-chart{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;min-width:0}
.bk .bk-chart > *{flex:1 1 100%;min-width:0}
.bk .bk-chart > .bk-chart__t{flex:1 1 auto;width:auto}
.bk .bk-chart > .bk-chips{flex:0 1 auto;margin-inline:-4px;max-width:calc(100% + 8px)}
.bk .bk-chart__t{font-size:15px;font-weight:600;line-height:1.6}
.bk .bk-chart__legend{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:12px;color:var(--bk-text-2)}
.bk .bk-chart__legend li{display:inline-flex;align-items:center;gap:6px}
.bk .bk-chart__legend i{width:14px;height:3px;border-radius:2px;background:var(--c)}
.bk .bk-chart__legend i.is-2{background:repeating-linear-gradient(to left,var(--c) 0 4px,transparent 4px 7px)}
.bk .bk-chart__legend small{color:var(--bk-text-3);font-size:11px}
.bk .bk-chart__box{position:relative;height:208px;padding:8px 0 28px;direction:ltr}
.bk .bk-chart__plot{position:relative;height:100%;touch-action:pan-y;cursor:crosshair}
.bk .bk-chart__svg{display:block;width:100%;height:100%;overflow:visible}
.bk .bk-chart__grid line{stroke:var(--bk-divider);stroke-width:1;vector-effect:non-scaling-stroke}
.bk .bk-chart__grid line.is-zero{stroke:var(--bk-disabled)}
.bk .bk-chart__line{fill:none;stroke-width:2;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}
.bk .bk-chart__line.is-2{stroke-width:1.6;stroke-dasharray:4 3}
.bk .bk-chart__area{opacity:.08;stroke:none}
.bk .bk-chart__y span{position:absolute;left:0;direction:rtl;unicode-bidi:isolate;transform:translateY(-100%);font-size:11px;line-height:1.5;color:var(--bk-text-3);background:rgba(255,255,255,.85);padding:0 2px;border-radius:2px;pointer-events:none}
.bk .bk-chart__x{position:absolute;left:0;right:0;bottom:-26px;height:20px}
.bk .bk-chart__x span{position:absolute;transform:translateX(-50%);direction:rtl;unicode-bidi:isolate;font-size:11px;color:var(--bk-text-3);white-space:nowrap}
.bk .bk-chart__cross{position:absolute;top:0;bottom:0;width:1px;background:var(--bk-text);pointer-events:none}
.bk .bk-chart__dot{position:absolute;left:-5px;width:10px;height:10px;border-radius:50%;background:var(--bk-text);border:2px solid #fff;margin-top:-5px}
.bk .bk-chart__tip{position:absolute;top:-4px;z-index:2;display:block;padding:6px 10px;border-radius:var(--bk-r-sm);background:var(--bk-ink);color:#fff;font-size:12px;line-height:1.6;white-space:nowrap;pointer-events:none;direction:rtl;text-align:right;box-shadow:var(--bk-shadow-pop)}
.bk .bk-chart__tip b{font-weight:500}
.bk .bk-chart__tip[hidden]{display:none}
.bk .bk-chart__note{font-size:12px;color:var(--bk-text-3);line-height:1.8}

/* ---------- sheet / dialog ---------- */
.bk-sheet{position:fixed;inset:auto 0 0 0;margin:0;width:100%;max-width:100%;max-height:82vh;max-height:82dvh;padding:0;border:0;border-radius:var(--bk-r-xl) var(--bk-r-xl) 0 0;background:#fff;color:#080808;box-shadow:var(--bk-shadow-pop);overflow:hidden;direction:rtl}
.bk-sheet[open]{display:flex;animation:bk-up .22s var(--bk-ease)}
.bk-sheet::backdrop{background:rgba(0,0,0,.5);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.bk .bk-sheet__panel{display:flex;flex-direction:column;width:100%;max-height:inherit;min-height:0;padding:0 16px max(16px,env(safe-area-inset-bottom))}
.bk .bk-sheet__head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:20px 0 8px}
.bk .bk-sheet__grab{position:absolute;top:8px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:4px;background:var(--bk-border-strong)}
.bk .bk-sheet__t{font-size:17px;font-weight:600;line-height:1.5}
.bk .bk-sheet__x{width:44px;height:44px;border-radius:var(--bk-r);display:inline-flex;align-items:center;justify-content:center;margin-inline-end:-8px}
.bk .bk-sheet__x:hover{background:var(--bk-surface-2)}
.bk .bk-sheet__q{display:flex;align-items:center;gap:8px;min-height:48px;padding:0 12px;margin-bottom:8px;border-radius:var(--bk-r);background:var(--bk-surface-2);border:1px solid transparent;color:var(--bk-text-3)}
.bk .bk-sheet__q:focus-within{border-color:var(--bk-focus);box-shadow:0 0 0 1px var(--bk-focus);background:#fff}
.bk .bk-sheet__qin{flex:1;min-width:0;height:46px;border:0;background:transparent;outline:none;font-size:16px;color:var(--bk-text);-webkit-appearance:none;appearance:none}
.bk .bk-sheet__qin::placeholder{color:var(--bk-text-3)}
.bk .bk-sheet__list{overflow-y:auto;overscroll-behavior:contain;margin:0 -8px;padding:0 0 8px;min-height:0;flex:1}
.bk .bk-opt{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:6px 8px;border-radius:var(--bk-r);text-align:right}
.bk .bk-opt:hover{background:var(--bk-surface)}
.bk .bk-opt__l{font-size:15px;font-weight:500}
.bk .bk-opt__sub{font-size:12px;color:var(--bk-text-3);direction:ltr}
.bk .bk-opt__ok{margin-inline-start:auto;color:var(--bk-pos);visibility:hidden}
.bk .bk-opt[aria-selected=true]{background:var(--bk-surface-2)}
.bk .bk-opt[aria-selected=true] .bk-opt__ok{visibility:visible}
.bk .bk-opt:focus-visible{outline-offset:-2px}
.bk .bk-sheet__empty{padding:24px 0;text-align:center;font-size:14px;color:var(--bk-text-3)}
@keyframes bk-up{from{transform:translateY(24px);opacity:.4}to{transform:none;opacity:1}}

/* ---------- ≥600px ---------- */
@media (min-width:600px){
 .bk .bk-h1{font-size:30px}
 .bk .bk-h2{font-size:23px}
 .bk .bk-hero{padding-top:20px}
 .bk .bk-tool{padding:16px}
 .bk .bk-res{padding:20px}
 .bk .bk-res__v{font-size:38px}
 .bk .bk-res--kpi{padding:20px}
 .bk .bk-res--kpi .bk-res__v{font-size:38px}
 .bk .bk-res--kpi .bk-res__v.is-long{font-size:32px}
 .bk .bk-res__kv{font-size:16px}
 .bk .bk-kpis--3,.bk .bk-kpis--4{grid-template-columns:repeat(3,minmax(0,1fr))}
 .bk .bk-chart__box{height:288px}
 .bk .bk-rel__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;margin:0;padding:4px 0 0}
 .bk .bk-tbl__scroll{overflow-x:auto}
 .bk .bk-tabs__list{margin-inline:0;padding:0}
 .bk-sheet{inset:0;margin:auto;width:min(480px,calc(100% - 32px));max-height:min(640px,86vh);border-radius:var(--bk-r-lg)}
 .bk .bk-sheet__grab{display:none}
 .bk .bk-sheet__panel{padding:0 20px 20px}
}
/* ---------- ≥960px ---------- */
@media (min-width:960px){
 .bk .bk-h1{font-size:34px}
 .bk .bk-sec{padding-block:48px 8px}
 .bk .bk-hero__tool{margin-top:20px}
 .bk .bk-tool{padding:20px}
 .bk .bk-split{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px;align-items:start}
 .bk .bk-split__form{padding:4px 4px 4px 0;order:-1}
 .bk .bk-res__v{font-size:40px}
 .bk .bk-res--kpi .bk-res__v{font-size:40px}
 .bk .bk-res--kpi .bk-res__v.is-long{font-size:34px}
 .bk .bk-answer{line-height:1.95}
 .bk .bk-prose p,.bk .bk-prose li{line-height:2}
 .bk .bk-kpis--4{grid-template-columns:repeat(4,minmax(0,1fr))}
 .bk .bk-rel__list{grid-template-columns:repeat(3,minmax(0,1fr))}
 .bk .bk-chips__track{flex-wrap:wrap;overflow:visible}
 .bk .bk-chips[data-fade] .bk-chips__track{-webkit-mask-image:none;mask-image:none}
 .bk .bk-res--ink .bk-chips__track{flex-wrap:nowrap}
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion:reduce){
 .bk *,.bk *::before,.bk *::after,.bk-sum,.bk-sheet{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}
