/* БЛОКРЕЙН B2B — страница менеджера и приложение */
.bkr-b2b{
  --bkr-sticky-top:var(--header-height,0px);
  --bkr-bg:#f2f4f5;--bkr-surface:#fff;--bkr-sunk:#edf0f2;--bkr-ink:#14151c;--bkr-muted:#5f6272;--bkr-line:#e0e3e8;
  --bkr-accent:#db3e33;--bkr-accent-dark:#c33328;--bkr-accent-soft:#fbe8e6;--bkr-head:#2b2c36;
  --bkr-ok:#1d7f47;--bkr-ok-soft:#e2f3e9;--bkr-warn:#9a6212;--bkr-warn-soft:#fbefd8;--bkr-bad:#7c2a2a;--bkr-bad-soft:#f3e2e2;
  --bkr-info:#2c5aa0;--bkr-info-soft:#e4ecf8;
  --bkr-shadow:0 1px 2px rgba(20,21,28,.06),0 6px 24px rgba(20,21,28,.06);
  color:var(--bkr-ink);font-size:15px;line-height:1.5;max-width:1200px;margin:0 auto;padding:0 0 32px;
  font-variant-numeric:tabular-nums;box-sizing:border-box;
}
.bkr-b2b *,.bkr-b2b *::before,.bkr-b2b *::after{box-sizing:border-box}
.bkr-b2b [hidden]{display:none!important}
.bkr-b2b h1,.bkr-b2b h2,.bkr-b2b h3{margin:0;line-height:1.2;color:var(--bkr-ink);font-weight:700;letter-spacing:0;text-transform:none}
.bkr-b2b h1{font-size:24px}
.bkr-b2b h2{font-size:18px}
.bkr-b2b h3{font-size:15px}
.bkr-b2b p{margin:6px 0}
.bkr-b2b a{color:var(--bkr-accent)}
.bkr-muted{color:var(--bkr-muted)}
.bkr-small{font-size:13px}
.bkr-b2b :focus-visible{outline:2px solid var(--bkr-accent);outline-offset:2px}

/* кнопки */
.bkr-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--bkr-line);background:var(--bkr-surface);color:var(--bkr-ink)!important;padding:9px 16px;border-radius:8px;font:inherit;font-weight:600;font-size:14px;line-height:1.2;cursor:pointer;text-decoration:none!important;min-height:40px}
.bkr-btn:hover{border-color:var(--bkr-muted)}
.bkr-btn-pri{background:var(--bkr-accent);border-color:var(--bkr-accent);color:#fff!important}
.bkr-btn-pri:hover{background:var(--bkr-accent-dark);border-color:var(--bkr-accent-dark)}
.bkr-btn-wide{width:100%;padding:13px;font-size:15px}
.bkr-btn[disabled]{opacity:.6;cursor:default}

/* вход */
.bkr-auth{max-width:440px;margin:24px auto;background:var(--bkr-surface);border-radius:14px;box-shadow:var(--bkr-shadow);padding:28px 22px;text-align:center}
.bkr-auth-brand{display:flex;flex-direction:column;align-items:center;gap:6px;margin-bottom:18px}
.bkr-auth-brand b{font-size:22px;font-weight:800;letter-spacing:.06em}
.bkr-auth-brand span{font-size:12px;font-weight:800;letter-spacing:.2em;color:var(--bkr-accent)}
.bkr-auth .bkr-form{text-align:left;margin-top:16px}
.bkr-auth h2{margin-bottom:6px}
.bkr-auth > .bkr-btn{margin-top:14px}
.bkr-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}

/* формы */
.bkr-form{display:flex;flex-direction:column;gap:12px}
.bkr-grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:560px){.bkr-grid2{grid-template-columns:1fr}}
.bkr-fld{display:flex;flex-direction:column;gap:5px;min-width:0}
.bkr-fld label,.bkr-lb{font-size:13px;font-weight:600;color:var(--bkr-muted);margin:0}
.bkr-b2b .bkr-fld input,.bkr-b2b .bkr-fld textarea,.bkr-b2b .bkr-fld select{width:100%;min-width:0;border:1px solid var(--bkr-line);background:var(--bkr-surface);color:var(--bkr-ink);border-radius:8px;padding:10px 12px;font:inherit;font-size:16px;line-height:1.3;margin:0;box-shadow:none;height:auto;min-height:44px}
.bkr-b2b .bkr-fld input:focus,.bkr-b2b .bkr-fld textarea:focus{border-color:var(--bkr-accent);outline:none;box-shadow:0 0 0 3px var(--bkr-accent-soft)}
.bkr-seg{display:flex;background:var(--bkr-sunk);border-radius:9px;padding:3px;gap:3px}
.bkr-seg button{flex:1;border:0;background:transparent;color:var(--bkr-ink);padding:9px 8px;border-radius:7px;font:inherit;font-weight:600;font-size:14px;cursor:pointer;line-height:1.2}
.bkr-seg button.is-on{background:var(--bkr-surface);box-shadow:var(--bkr-shadow)}
.bkr-ac{position:relative}
.bkr-ac-list{position:absolute;top:100%;left:0;right:0;z-index:60;margin-top:4px;background:var(--bkr-surface);border:1px solid var(--bkr-line);border-radius:10px;box-shadow:0 10px 30px rgba(20,21,28,.14);max-height:320px;overflow-y:auto;padding:4px}
.bkr-ac-item{display:block;width:100%;text-align:left;border:0;background:transparent;padding:9px 10px;border-radius:7px;font:inherit;font-size:14px;color:var(--bkr-ink);cursor:pointer;line-height:1.3}
.bkr-ac-item b{display:block;font-weight:600}
.bkr-ac-item span{display:block;font-size:12px;color:var(--bkr-muted);margin-top:2px}
.bkr-ac-item:hover,.bkr-ac-item.is-active{background:var(--bkr-accent-soft)}
.bkr-b2b .bkr-fld input[readonly]{background:var(--bkr-sunk);color:var(--bkr-muted)}
.bkr-hint{font-size:13px;padding:8px 11px;border-radius:8px;background:var(--bkr-sunk)}
.bkr-hint-ok{background:var(--bkr-ok-soft);color:var(--bkr-ok)}
.bkr-hint-warn{background:var(--bkr-warn-soft);color:var(--bkr-warn)}
.bkr-note{font-size:13px;color:var(--bkr-muted);background:var(--bkr-sunk);border-radius:8px;padding:10px 12px}
.bkr-note b{color:var(--bkr-ink)}
.bkr-msg{font-size:14px;padding:9px 12px;border-radius:8px;background:var(--bkr-bad-soft);color:var(--bkr-bad)}
.bkr-msg.is-ok{background:var(--bkr-ok-soft);color:var(--bkr-ok)}

/* шапка приложения */
.bkr-top{position:fixed;top:var(--bkr-sticky-top,0px);left:0;right:0;width:100%;z-index:9985;display:flex;align-items:center;gap:12px;background:var(--bkr-head);color:#f3f4f7;border-radius:0;margin:0;padding:10px max(16px,calc(50vw - 600px));box-sizing:border-box;box-shadow:0 2px 12px rgba(20,21,28,.18)}
/* место под закреплённую шапку: высоту меряет front.js */
.bkr-b2b.has-top{padding-top:calc(var(--bkr-top-h,56px) + 12px)}
.bkr-brand{display:flex;align-items:center;gap:9px;min-width:0;color:#fff!important;text-decoration:none!important}
.bkr-brand b{font-weight:800;letter-spacing:.02em;font-size:16px;line-height:1.05}
.bkr-top-user{margin-left:auto;font-size:13px;opacity:.8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bkr-top-pay{display:inline-flex;align-items:center;justify-content:center;gap:6px;color:#fff!important;text-decoration:none!important;font-size:13px;font-weight:600;border:1px solid rgba(255,255,255,.25);border-radius:8px;padding:6px 10px;margin-left:auto}
.bkr-top-pay svg{width:18px;height:18px}
.bkr-top-pay.is-on{background:var(--bkr-accent);border-color:var(--bkr-accent)}
.bkr-top-user+.bkr-top-pay{margin-left:0}
.bkr-top-pay~.bkr-top-pay{margin-left:0}
/* Иконка «Руководство» из плагина blockrain-manual — приводим к виду соседних
   кнопок. !important: у того плагина свои стили этой кнопки. */
.bkr-top a.bkm-b2b-top,.bkr-top .bkm-b2b-top{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px;
  color:#fff!important;text-decoration:none!important;font-size:13px;font-weight:600;line-height:1;
  border:1px solid rgba(255,255,255,.25)!important;border-radius:8px!important;padding:6px 10px!important;
  margin:0!important;background:transparent!important;box-shadow:none!important;min-height:32px;box-sizing:border-box}
.bkr-top .bkm-b2b-top svg,.bkr-top .bkm-b2b-top img,.bkr-top .bkm-b2b-top i{display:none!important}
.bkr-top .bkm-b2b-top::before{content:"?";font-size:17px;font-weight:800;line-height:18px;display:block;width:18px;text-align:center}
.bkr-top .bkm-b2b-top:hover{background:rgba(255,255,255,.08)!important}
.bkr-top .bkm-b2b-top.is-on,.bkr-top .bkm-b2b-top[aria-current]{background:var(--bkr-accent)!important;border-color:var(--bkr-accent)!important}
.bkr-tile-link{display:block;text-decoration:none!important;color:#fff!important}
.bkr-tile-go{margin-top:8px;font-size:13px;font-weight:700;color:#fff}
.bkr-top-out{flex:none;margin:0;border:1px solid rgba(255,255,255,.25);background:transparent;color:#fff;border-radius:8px;padding:6px 10px;font:inherit;font-size:13px;line-height:1.2;white-space:nowrap;cursor:pointer}
.bkr-umb{flex:none;border-radius:50%}

/* вкладки: сверху на широком экране, снизу на телефоне */
.bkr-tabs{display:flex;gap:4px;background:var(--bkr-surface);border-radius:12px;box-shadow:var(--bkr-shadow);padding:4px;margin-bottom:16px;overflow-x:auto}
.bkr-tab{display:flex;align-items:center;gap:8px;padding:9px 14px;border-radius:9px;color:var(--bkr-muted)!important;text-decoration:none!important;font-weight:600;font-size:14px;white-space:nowrap}
.bkr-tab-ic{display:inline-flex;width:20px;height:20px}
.bkr-tab-ic svg{width:20px;height:20px}
.bkr-tab[aria-current="page"]{background:var(--bkr-accent-soft);color:var(--bkr-accent)!important}
.bkr-tab-add{margin-left:auto;background:var(--bkr-accent);color:#fff!important}
.bkr-tab-add[aria-current="page"]{background:var(--bkr-accent-dark);color:#fff!important}
@media (max-width:760px){
  .bkr-b2b{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
  .bkr-mgr-acts{flex-direction:column;align-items:stretch;width:100%}
  .bkr-mgr-acts>*{width:100%;justify-content:center}
  .bkr-mgr-card .bkr-btn{display:flex;align-items:center;justify-content:center;text-align:center}
  .bkr-tabs{position:fixed;left:0;right:0;bottom:0;z-index:9990;overflow:visible;border-radius:0;margin:0;padding:6px 4px calc(8px + env(safe-area-inset-bottom,0px));display:grid;grid-auto-flow:column;grid-auto-columns:1fr;box-shadow:0 -1px 0 var(--bkr-line),0 -6px 20px rgba(20,21,28,.06)}
  .bkr-tab{flex-direction:column;gap:2px;padding:4px 0;font-size:10.5px;border-radius:8px;background:transparent!important;overflow:visible}
  .bkr-tab[aria-current="page"]{color:var(--bkr-accent)!important}
  .bkr-tab-add{margin:0;color:var(--bkr-accent)!important}
  .bkr-tab-add .bkr-tab-ic{width:42px;height:42px;border-radius:50%;background:var(--bkr-accent);color:#fff;align-items:center;justify-content:center;margin-top:-20px;box-shadow:0 4px 12px rgba(219,62,51,.4)}
  .bkr-tab-add .bkr-tab-ic svg{width:22px;height:22px}
  .bkr-top{padding:8px 10px;gap:6px}
  .bkr-top-user{display:none}
  .bkr-brand{gap:8px;flex:1 1 auto;min-width:0}
  .bkr-brand b{font-size:13.5px;line-height:1.02;letter-spacing:0}
  .bkr-top .bkr-umb{width:30px;height:30px}
  .bkr-top-pay span,.bkr-top .bkm-b2b-top span{display:none}
  .bkr-top-pay{margin-left:auto;padding:6px 7px}
  .bkr-top-pay~.bkr-top-pay{margin-left:0;padding:6px 7px}
  .bkr-top a.bkm-b2b-top,.bkr-top .bkm-b2b-top{margin:0!important;padding:6px 7px!important}
  .bkr-top-out{margin:0;padding:6px 8px;font-size:12.5px}
  .bkr-b2b h1{font-size:21px}
}

/* блоки */
.bkr-main{display:flex;flex-direction:column;gap:16px}
.bkr-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap}
.bkr-card{background:var(--bkr-surface);border-radius:12px;box-shadow:var(--bkr-shadow);padding:18px}
.bkr-card-form{max-width:720px}
.bkr-card-h{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.bkr-stack{display:flex;flex-direction:column;gap:16px}
.bkr-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px}
@media (max-width:960px){.bkr-grid{grid-template-columns:1fr}}
.bkr-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.bkr-tile{background:var(--bkr-surface);border-radius:12px;box-shadow:var(--bkr-shadow);padding:14px 16px}
.bkr-tile .k{font-size:12px;color:var(--bkr-muted);font-weight:600}
.bkr-tile .v{font-size:24px;font-weight:800;margin-top:2px;line-height:1.2}
.bkr-tile .s{font-size:12px;color:var(--bkr-muted)}
.bkr-tile-hero{background:var(--bkr-accent);color:#fff}
.bkr-tile-hero .k,.bkr-tile-hero .s{color:rgba(255,255,255,.88)}
.bkr-chips{display:flex;gap:6px;flex-wrap:wrap}
.bkr-chip{border:1px solid var(--bkr-line);background:var(--bkr-surface);border-radius:999px;padding:5px 12px;font-size:13px;font-weight:600;color:var(--bkr-ink)!important;text-decoration:none!important}
.bkr-chip[aria-current="true"]{background:var(--bkr-ink);border-color:var(--bkr-ink);color:#fff!important}
.bkr-pager{margin-top:12px}
.bkr-list{display:flex;flex-direction:column}
.bkr-li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--bkr-line)}
.bkr-li:last-child{border-bottom:0}
.bkr-li-r{text-align:right;flex:none}
.bkr-co b{display:block}
.bkr-co span{display:block;font-size:12.5px;color:var(--bkr-muted)}
.bkr-login{font-family:ui-monospace,Menlo,monospace;font-size:12.5px;background:var(--bkr-sunk);padding:1px 6px;border-radius:4px;color:var(--bkr-ink)}

.bkr-pill{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;padding:2px 9px;border-radius:999px;white-space:nowrap}
.bkr-pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.bkr-p-meeting,.bkr-p-open{background:var(--bkr-info-soft);color:var(--bkr-info)}
.bkr-p-registered,.bkr-p-pending,.bkr-p-closed{background:var(--bkr-warn-soft);color:var(--bkr-warn)}
.bkr-p-active,.bkr-p-approved,.bkr-p-paid{background:var(--bkr-ok-soft);color:var(--bkr-ok)}
.bkr-p-rejected{background:var(--bkr-bad-soft);color:var(--bkr-bad)}

/* таблицы: на телефоне превращаются в карточки */
.bkr-tw{overflow-x:auto}
.bkr-table{width:100%;border-collapse:collapse;font-size:14px;margin:0;border:0}
.bkr-table th{text-align:left;font-size:11.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--bkr-muted);font-weight:700;padding:8px 10px;border:0;border-bottom:1px solid var(--bkr-line);white-space:nowrap;background:transparent}
.bkr-table td{padding:11px 10px;border:0;border-bottom:1px solid var(--bkr-line);vertical-align:top;background:transparent}
.bkr-table tr:last-child td{border-bottom:0}
.bkr-table .num{text-align:right;white-space:nowrap}
@media (max-width:760px){
  .bkr-table-cards thead{display:none}
  .bkr-table-cards,.bkr-table-cards tbody,.bkr-table-cards tr,.bkr-table-cards td{display:block;width:100%}
  .bkr-table-cards tr{border:1px solid var(--bkr-line);border-radius:10px;padding:8px 12px;margin-bottom:10px}
  .bkr-table-cards td{border:0;padding:4px 0;display:flex;justify-content:space-between;gap:12px;text-align:right}
  .bkr-table-cards td::before{content:attr(data-l);font-size:12px;color:var(--bkr-muted);text-align:left;flex:none}
  .bkr-table-cards td.bkr-co{flex-direction:column;align-items:flex-end}
  .bkr-table-cards td.bkr-co::before{align-self:flex-start}
  .bkr-table-cards .num{text-align:right}
}

/* карточка приложения */
.bkr-appcard{background:var(--bkr-head);color:#f3f4f7;border-radius:12px;padding:18px;display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.bkr-appcard h2{color:#fff!important}
.bkr-appcard p{opacity:.8;font-size:14px;margin:4px 0 12px}
.bkr-appcard-t{flex:1;min-width:190px}
.bkr-appicon{display:flex;flex-direction:column;align-items:center;gap:4px;flex:none}
.bkr-appicon img{width:64px;height:64px;border-radius:15px;box-shadow:0 0 0 1px rgba(255,255,255,.18),0 4px 14px rgba(0,0,0,.35);display:block}
.bkr-appicon small{font-size:11px;font-weight:600;color:#fff;letter-spacing:.02em}

/* окно установки */
html.bkr-noscroll{overflow:hidden}
.bkr-modal{position:fixed;inset:0;background:rgba(10,11,16,.55);z-index:99999;display:flex;align-items:flex-start;justify-content:center;overflow-y:auto;padding:40px 16px}
.bkr-sheet{background:var(--bkr-surface);border-radius:14px;max-width:560px;width:100%;padding:22px;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.bkr-sheet-h{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.bkr-x{border:0;background:var(--bkr-sunk);width:34px;height:34px;border-radius:50%;font-size:20px;line-height:1;cursor:pointer;color:var(--bkr-ink)}
.bkr-steps{margin:0 0 8px;padding-left:20px}
.bkr-steps li{margin:4px 0}
.bkr-qr-row{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.bkr-qr{background:#fff;padding:8px;border-radius:8px;border:1px solid var(--bkr-line);min-width:144px;min-height:144px}
.bkr-qr img,.bkr-qr canvas{display:block}

.bkr-toast{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--bkr-ink);color:#fff;padding:10px 18px;border-radius:8px;font-weight:600;font-size:14px;z-index:99999;max-width:calc(100% - 32px);text-align:center}
.bkr-queue{background:var(--bkr-warn-soft);color:var(--bkr-warn);border-radius:10px;padding:10px 14px;font-size:14px;margin-bottom:12px}

/* в установленном приложении прячем шапку и подвал сайта */
@media (display-mode:standalone){
  .bkr-b2b{--bkr-sticky-top:0px}
  .bkr-b2b .bkr-appcard{display:none!important}
  body.bkr-b2b-page #page-header,body.bkr-b2b-page header.l-header,body.bkr-b2b-page #page-footer,body.bkr-b2b-page footer.l-footer,body.bkr-b2b-page .l-titlebar{display:none!important}
  body.bkr-b2b-page .l-main,body.bkr-b2b-page .l-section{padding-top:0!important}
  body.bkr-b2b-page .bkr-top{padding-top:calc(10px + env(safe-area-inset-top,0px))}
}
@media (prefers-reduced-motion:reduce){.bkr-b2b *{transition:none!important;animation:none!important}}
.bkr-b2b.is-app .bkr-appcard{display:none!important}

/* ---------- переписка ---------- */
.bkr-badge{position:absolute;top:-4px;right:-10px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:var(--bkr-accent);color:#fff;font-size:11px;font-weight:700;font-style:normal;line-height:17px;text-align:center}
.bkr-tab-ic{position:relative}
.bkr-badge-inline{position:static;display:inline-block}
.bkr-unread-bar{display:block;background:var(--bkr-accent-soft);color:var(--bkr-accent)!important;border-radius:10px;padding:10px 14px;font-size:14px;font-weight:600;text-decoration:none!important;margin-bottom:12px}
.bkr-li-link{color:var(--bkr-ink)!important;text-decoration:none!important}
.bkr-li-link:hover{background:var(--bkr-sunk)}
.bkr-chat{display:flex;flex-direction:column;gap:12px}
.bkr-b2b .bkr-chat-title{margin:0 0 18px;line-height:1.2}
.bkr-b2b-lk>.bkr-mgr-card{margin-top:4px}
.bkr-chat-lead{color:var(--bkr-muted);font-size:14px;margin:0 0 12px}
.bkr-chat-note{background:var(--bkr-ok-soft);color:var(--bkr-ok);border-radius:8px;padding:8px 12px;font-size:13px;font-weight:600}
.bkr-chat-feed{display:flex;flex-direction:column;gap:10px;max-height:60vh;overflow-y:auto;padding-right:2px}
.bkr-chat-empty{color:var(--bkr-muted);font-size:14px;margin:0}
.bkr-msg{background:var(--bkr-sunk);border-radius:12px;padding:10px 12px;max-width:min(560px,86%);align-self:flex-start}
.bkr-msg.is-mine{background:var(--bkr-accent-soft);align-self:flex-end}
.bkr-msg--admin{background:var(--bkr-warn-soft)}
.bkr-msg-head{display:flex;gap:10px;justify-content:space-between;align-items:baseline;font-size:12px;color:var(--bkr-muted);margin-bottom:3px}
.bkr-msg-head b{color:var(--bkr-ink);font-size:13px}
.bkr-msg-body{font-size:15px;line-height:1.45;overflow-wrap:anywhere}
.bkr-chat-form{display:flex;flex-direction:column;gap:8px;align-items:flex-end}
.bkr-b2b .bkr-chat-form textarea{width:100%;border:1px solid var(--bkr-line);border-radius:10px;padding:10px 12px;font:inherit;font-size:16px;background:var(--bkr-surface);color:var(--bkr-ink);resize:vertical}
.bkr-b2b .bkr-chat-form textarea:focus{border-color:var(--bkr-accent);outline:none;box-shadow:0 0 0 3px var(--bkr-accent-soft)}
.bkr-push-ask{display:flex;gap:14px;align-items:center;flex-wrap:wrap;background:var(--bkr-surface);border-radius:12px;box-shadow:var(--bkr-shadow);padding:14px 16px}
.bkr-push-ask p{margin:2px 0 0}
.bkr-push-ask>div{flex:1;min-width:180px}
/* карточка менеджера в кабинете компании */
.bkr-b2b-lk{max-width:820px;margin:14px 0 20px}
.bkr-mgr-card{display:flex;gap:14px;align-items:center;flex-wrap:wrap;background:var(--bkr-surface);border:1px solid var(--bkr-line);border-radius:12px;padding:16px}
.bkr-mgr-ava{width:48px;height:48px;border-radius:50%;background:var(--bkr-accent);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:18px;flex:none}
.bkr-mgr-t{flex:1;min-width:170px}
.bkr-mgr-lbl{font-size:12px;color:var(--bkr-muted);text-transform:uppercase;letter-spacing:.04em}
.bkr-mgr-name{font-weight:700;font-size:17px}
.bkr-mgr-sub{font-size:14px;color:var(--bkr-muted)}

/* ---------- «Помощь менеджера» ---------- */
.bkr-help-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--bkr-accent);background:var(--bkr-surface);color:var(--bkr-accent)!important;padding:9px 16px;border-radius:8px;font:inherit;font-weight:700;font-size:14px;line-height:1.2;cursor:pointer;min-height:40px}
.bkr-help-btn:hover{background:var(--bkr-accent-soft)}
.bkr-help-btn svg{width:18px;height:18px;flex:none}
.bkr-help-btn--wide{width:100%}
.bkr-mgr-acts{display:flex;gap:8px;flex-wrap:wrap}
.bkr-callback{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:space-between;background:var(--bkr-accent-soft);border-left:4px solid var(--bkr-accent);border-radius:10px;padding:12px 14px;margin-bottom:12px}
.bkr-callback-t b{display:block;color:var(--bkr-accent)}
.bkr-callback-t .bkr-small{color:var(--bkr-ink)}
.bkr-callback-a{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.bkr-callback-a form{margin:0}

/* Плавающая кнопка «Связаться с менеджером» в кабинете (телефон) */
.bkr-fab-wrap{padding:0!important;margin:0!important;max-width:none;position:fixed;right:14px;bottom:calc(76px + env(safe-area-inset-bottom,0px));z-index:9990;display:none;flex-direction:column;align-items:flex-end;gap:8px}
.bkr-fab-wrap>*{margin:0!important}
.bkr-fab{display:inline-flex;align-items:center;gap:8px;background:var(--bkr-accent);color:#fff!important;text-decoration:none!important;border-radius:26px;padding:12px 18px;font-weight:700;font-size:14px;line-height:1.1;box-shadow:0 8px 22px rgba(219,62,51,.35);position:relative}
.bkr-fab svg{width:20px;height:20px;flex:none}
.bkr-fab-n{position:absolute;top:-6px;right:-4px;min-width:20px;height:20px;border-radius:10px;background:#2b2c36;color:#fff;font-size:11px;font-style:normal;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 5px}
.bkr-help-btn.bkr-fab-help{background:var(--bkr-surface);box-shadow:0 6px 18px rgba(0,0,0,.18);border-radius:22px;padding:9px 14px;font-size:13px}
@media (max-width:900px){.bkr-fab-wrap{display:flex}}
@media (display-mode:standalone){.bkr-fab-wrap{bottom:calc(20px + env(safe-area-inset-bottom,0px))}}
/* кабинет компании на телефоне: кнопки во всю ширину, без запаса под панель приложения */
@media (max-width:760px){
  .bkr-b2b-lk{padding-bottom:0!important;margin:12px 0 18px}
}

/* ---------- База компаний (подготовка к встрече) ---------- */
.bkr-lead-search{display:flex;gap:8px;margin:0 0 12px;flex-wrap:wrap}
.bkr-lead-search input[type=search]{flex:1;min-width:180px;padding:10px 12px;border:1px solid var(--bkr-line);border-radius:9px;font:inherit;font-size:15px;background:var(--bkr-surface);color:var(--bkr-ink)}
.bkr-leads{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));margin-top:12px}
.bkr-lead{background:var(--bkr-surface);border:1px solid var(--bkr-line);border-left:4px solid var(--bkr-line);border-radius:12px;padding:14px;box-shadow:var(--bkr-shadow)}
.bkr-lead--new{border-left-color:var(--bkr-info)}
.bkr-lead--contacted{border-left-color:var(--bkr-warn)}
.bkr-lead--meeting{border-left-color:var(--bkr-accent)}
.bkr-lead--done{border-left-color:var(--bkr-ok)}
.bkr-lead--refused{border-left-color:var(--bkr-line);opacity:.72}
.bkr-lead-h{display:flex;gap:10px;align-items:flex-start;justify-content:space-between}
.bkr-lead-h b{font-size:16px;line-height:1.25}
.bkr-lead-m{font-size:13px;color:var(--bkr-muted);margin-top:2px}
.bkr-lead-adr{font-size:13px;color:var(--bkr-muted);margin-top:4px}
.bkr-lead-c{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px;font-size:14px}
.bkr-lead-c a{color:var(--bkr-accent)!important;text-decoration:none!important;font-weight:600}
.bkr-lead-tel{font-variant-numeric:tabular-nums}
.bkr-lead-note{margin-top:8px;font-size:14px;background:var(--bkr-sunk);border-radius:8px;padding:8px 10px}
.bkr-lead-next{margin-top:8px;font-size:13px;color:var(--bkr-muted)}
.bkr-lead-next.is-now{color:var(--bkr-accent)}
.bkr-lead-next.is-over{color:var(--bkr-bad)}
.bkr-lead-a{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:12px}
.bkr-lead-st{padding:8px 10px;border:1px solid var(--bkr-line);border-radius:8px;background:var(--bkr-surface);color:var(--bkr-ink);font:inherit;font-size:13px}
.bkr-btn-ghost{background:transparent;color:var(--bkr-muted)!important;border:1px solid var(--bkr-line)}
.bkr-pill.bkr-l-new{background:var(--bkr-info-soft);color:var(--bkr-info)}
.bkr-pill.bkr-l-contacted{background:var(--bkr-warn-soft);color:var(--bkr-warn)}
.bkr-pill.bkr-l-meeting{background:var(--bkr-accent-soft);color:var(--bkr-accent)}
.bkr-pill.bkr-l-done{background:var(--bkr-ok-soft);color:var(--bkr-ok)}
.bkr-pill.bkr-l-refused{background:var(--bkr-sunk);color:var(--bkr-muted)}
@media (max-width:760px){
  .bkr-leads{grid-template-columns:1fr}
  .bkr-lead-a{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .bkr-lead-a .bkr-lead-st{grid-column:1/-1;width:100%}
  .bkr-lead-a .bkr-btn{width:100%;justify-content:center;text-align:center}
}
.bkr-head-a{display:flex;gap:8px;flex-wrap:wrap}
.bkr-geo-t{width:100%;border-collapse:collapse;font-size:14px;margin-top:8px}
.bkr-geo-t th{text-align:left;font-size:12px;color:var(--bkr-muted);font-weight:600;padding:6px 8px;border-bottom:1px solid var(--bkr-line)}
.bkr-geo-t td{padding:9px 8px;border-bottom:1px solid var(--bkr-line)}
.bkr-geo-t tr:last-child td{border-bottom:0}
.bkr-geo-t td:first-child a{color:var(--bkr-accent)!important;text-decoration:none!important;font-weight:600}
.bkr-geo-t td+td,.bkr-geo-t th+th{text-align:center;width:56px}
@media (max-width:760px){
  .bkr-geo-t th,.bkr-geo-t td{padding:8px 4px;font-size:13px}
  .bkr-geo-t td+td,.bkr-geo-t th+th{width:44px}
  .bkr-head-a{width:100%}
  .bkr-head-a .bkr-btn{flex:1;justify-content:center;text-align:center}
}

/* ---------- договор с менеджером ---------- */
.bkr-offer-screen{max-width:560px;margin:0 auto;background:var(--bkr-surface);border:1px solid var(--bkr-line);border-radius:14px;padding:24px;box-shadow:var(--bkr-shadow);text-align:left}
.bkr-offer-screen .bkr-auth-brand{display:flex;align-items:center;gap:10px;margin-bottom:14px;font-size:18px}
.bkr-offer-screen h2{margin:0 0 6px;font-size:20px}
.bkr-offer-sum{margin:14px 0;padding:0 0 0 18px;font-size:14px;line-height:1.55}
.bkr-offer-sum li{margin:0 0 6px}
.bkr-offer-link{display:inline-block;margin:4px 0 14px;color:var(--bkr-accent)!important;font-weight:700;text-decoration:none!important}
/* Своя галочка: темы часто перекрывают нативный checkbox и клик не проходит. */
.bkr-b2b .bkr-check{display:flex!important;gap:10px;align-items:flex-start;font-size:14px;line-height:1.45;margin:10px 0 14px;cursor:pointer;position:relative;user-select:none}
.bkr-b2b .bkr-check input[type="checkbox"]{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;border:0!important;pointer-events:none!important;clip:rect(0 0 0 0);clip-path:inset(50%)}
.bkr-b2b .bkr-check .bkr-box{flex:none;display:block;width:24px;height:24px;margin-top:0;border:2px solid var(--bkr-line);border-radius:7px;background:var(--bkr-surface);position:relative;transition:background .15s,border-color .15s}
.bkr-b2b .bkr-check .bkr-box::after{content:"";position:absolute;left:7px;top:2px;width:7px;height:13px;border:solid #fff;border-width:0 2.5px 2.5px 0;transform:rotate(45deg) scale(.6);opacity:0;transition:opacity .15s,transform .15s}
.bkr-b2b .bkr-check:hover .bkr-box{border-color:var(--bkr-accent)}
.bkr-b2b .bkr-check input:checked+.bkr-box{background:var(--bkr-accent);border-color:var(--bkr-accent)}
.bkr-b2b .bkr-check input:checked+.bkr-box::after{opacity:1;transform:rotate(45deg) scale(1)}
.bkr-b2b .bkr-check input:focus-visible+.bkr-box{outline:2px solid var(--bkr-accent);outline-offset:2px}
.bkr-b2b .bkr-check .bkr-check-t{flex:1}
.bkr-b2b .bkr-check a{color:var(--bkr-accent)!important;text-decoration:underline}
.bkr-offer-screen .bkr-btn{margin-top:8px}
.bkr-offer{max-width:860px;margin:0 auto;line-height:1.6}
.bkr-offer h3{margin:22px 0 8px}
@media (max-width:760px){.bkr-offer-screen{padding:18px;border-radius:12px}}

/* ---------- памятка о проверке встреч ---------- */
.bkr-notice{display:flex;gap:14px;align-items:flex-start;background:var(--bkr-warn-soft);border:1px solid rgba(154,98,18,.22);border-left:4px solid var(--bkr-warn);border-radius:12px;padding:16px 18px;margin:0 0 16px}
.bkr-notice-ic{flex:none;width:34px;height:34px;border-radius:50%;background:var(--bkr-warn);color:#fff;font-weight:800;font-size:20px;line-height:34px;text-align:center}
.bkr-notice-t{min-width:0}
.bkr-notice-t h2{margin:4px 0 8px;font-size:17px;color:var(--bkr-warn)}
.bkr-notice-t p{margin:0 0 8px;font-size:13.5px;line-height:1.5}
.bkr-notice-t ul{margin:0 0 8px;padding-left:18px;font-size:13.5px;line-height:1.5}
.bkr-notice-t li{margin:0 0 4px}
.bkr-notice-end{color:var(--bkr-muted)}
.bkr-check-hint{display:flex;gap:8px;align-items:flex-start;margin-top:10px;line-height:1.45}
.bkr-check-hint b{flex:none;width:18px;height:18px;border-radius:50%;background:var(--bkr-warn);color:#fff;font-size:12px;line-height:18px;text-align:center}
@media (max-width:760px){
  .bkr-notice{gap:12px;padding:14px;border-radius:10px}
  .bkr-notice-ic{width:30px;height:30px;font-size:18px;line-height:30px}
  .bkr-notice-t h2{font-size:16px;margin-top:2px}
}

/* ---------- раскрывающееся пояснение «За что бонус» ---------- */
.bkr-expl{display:inline-block;vertical-align:middle;margin-left:6px;font-weight:400}
.bkr-expl>summary{display:inline-flex;align-items:center;gap:6px;cursor:pointer;list-style:none;color:var(--bkr-accent);font-size:13px;font-weight:600}
.bkr-expl>summary::-webkit-details-marker{display:none}
.bkr-expl-ic{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;border:1.5px solid currentColor;font-size:12px;font-weight:800;line-height:1}
.bkr-expl[open]>summary .bkr-expl-ic{background:var(--bkr-accent);border-color:var(--bkr-accent);color:#fff}
.bkr-expl-b{margin-top:8px;background:var(--bkr-sunk);border-radius:10px;padding:12px 14px;font-size:13.5px;line-height:1.55;color:var(--bkr-ink);font-weight:400}
.bkr-expl-b b{display:block;margin-bottom:4px}
.bkr-expl-b p{margin:0 0 6px}
.bkr-expl-b ol{margin:0 0 8px;padding-left:20px}
.bkr-expl-b li{margin:0 0 4px}
.bkr-expl-b p:last-child{margin-bottom:0;color:var(--bkr-muted)}
.bkr-expl-row{margin:-4px 0 16px}
.bkr-expl--sm{display:block;margin-left:0}
@media (max-width:760px){
  .bkr-expl{display:block;margin:6px 0 0}
  .bkr-expl-b{padding:11px 12px;font-size:13px}
}

/* ---------- обзвон ---------- */
.bkr-timer{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:var(--bkr-surface);border:1px solid var(--bkr-line);border-radius:14px;padding:16px 18px;margin-bottom:16px;box-shadow:var(--bkr-shadow)}
.bkr-timer.is-on{background:var(--bkr-head);border-color:var(--bkr-head);color:#f3f4f7}
.bkr-timer-k{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--bkr-muted)}
.bkr-timer.is-on .bkr-timer-k{color:rgba(255,255,255,.65)}
.bkr-timer-v{font-size:30px;font-weight:800;line-height:1.1;font-variant-numeric:tabular-nums}
.bkr-timer-s{font-size:13px;color:var(--bkr-muted);margin-top:2px}
.bkr-timer.is-on .bkr-timer-s{color:rgba(255,255,255,.7)}
.bkr-timer-a{display:flex;gap:8px;flex-wrap:wrap}
.bkr-btn-dark{background:#fff;color:var(--bkr-head)!important;border-color:#fff}
.bkr-live-bar{display:flex;align-items:center;gap:8px;background:var(--bkr-head);color:#fff!important;text-decoration:none!important;border-radius:10px;padding:10px 14px;margin-bottom:12px;font-size:14px;font-weight:600}
.bkr-live-bar b{font-variant-numeric:tabular-nums}
.bkr-live-dot{width:9px;height:9px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 0 rgba(74,222,128,.7);animation:bkrPulse 1.8s infinite}
@keyframes bkrPulse{70%{box-shadow:0 0 0 7px rgba(74,222,128,0)}100%{box-shadow:0 0 0 0 rgba(74,222,128,0)}}
.bkr-tel-row{display:flex;gap:8px}
.bkr-tel-row input{flex:1;min-width:0}
.bkr-btn-tel{flex:none;white-space:nowrap}
.bkr-btn-tel.is-off{opacity:.45;pointer-events:none}
.bkr-seg-wrap{flex-wrap:wrap}
.bkr-calls{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));margin-top:10px}
.bkr-call{background:var(--bkr-surface);border:1px solid var(--bkr-line);border-left:4px solid var(--bkr-line);border-radius:12px;padding:13px 14px}
.bkr-call--meeting{border-left-color:var(--bkr-ok)}
.bkr-call--callback{border-left-color:var(--bkr-warn)}
.bkr-call--talked{border-left-color:var(--bkr-info)}
.bkr-call--refused,.bkr-call--wrong{border-left-color:var(--bkr-line);opacity:.78}
.bkr-call--no_answer{border-left-color:var(--bkr-muted);opacity:.85}
.bkr-call-h{display:flex;gap:10px;align-items:flex-start;justify-content:space-between}
.bkr-call-h b{font-size:15px;line-height:1.3}
.bkr-call-m{font-size:13px;color:var(--bkr-muted);margin-top:3px}
.bkr-call-m a{color:var(--bkr-accent)!important;text-decoration:none!important;font-weight:600}
.bkr-call-meet{margin-top:8px;background:var(--bkr-ok-soft);color:var(--bkr-ok);border-radius:8px;padding:8px 10px;font-size:13.5px;line-height:1.5}
.bkr-call-note{margin-top:8px;background:var(--bkr-sunk);border-radius:8px;padding:8px 10px;font-size:13.5px;line-height:1.5}
.bkr-call-a{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.bkr-pill.bkr-r-meeting{background:var(--bkr-ok-soft);color:var(--bkr-ok)}
.bkr-pill.bkr-r-callback{background:var(--bkr-warn-soft);color:var(--bkr-warn)}
.bkr-pill.bkr-r-talked{background:var(--bkr-info-soft);color:var(--bkr-info)}
.bkr-pill.bkr-r-refused,.bkr-pill.bkr-r-wrong,.bkr-pill.bkr-r-no_answer{background:var(--bkr-sunk);color:var(--bkr-muted)}
@media (max-width:760px){
  .bkr-timer{padding:14px;gap:10px}
  .bkr-timer-v{font-size:26px}
  .bkr-timer-a{width:100%}
  .bkr-timer-a .bkr-btn{width:100%;justify-content:center}
  .bkr-calls{grid-template-columns:1fr}
  .bkr-call-a .bkr-btn{flex:1;justify-content:center;text-align:center}
}

/* ---------- выбор строкой (итог звонка) ---------- */
.bkr-choice{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.bkr-choice-i{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:var(--bkr-surface);border:1px solid var(--bkr-line);border-radius:10px;padding:11px 13px;font:inherit;font-size:14.5px;color:var(--bkr-ink);cursor:pointer;transition:border-color .15s,background .15s}
.bkr-choice-i:hover{border-color:var(--bkr-accent)}
.bkr-choice-d{flex:none;width:20px;height:20px;border-radius:50%;border:2px solid var(--bkr-line);position:relative;transition:border-color .15s}
.bkr-choice-d::after{content:"";position:absolute;left:50%;top:50%;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:var(--bkr-accent);transform:scale(0);transition:transform .15s}
.bkr-choice-i.is-on{border-color:var(--bkr-accent);background:var(--bkr-accent-soft)}
.bkr-choice-i.is-on .bkr-choice-d{border-color:var(--bkr-accent)}
.bkr-choice-i.is-on .bkr-choice-d::after{transform:scale(1)}
.bkr-choice-i.is-on .bkr-choice-t{font-weight:700}
.bkr-choice-t{flex:1;line-height:1.35}

/* ---------- плитка обзвона с кнопкой старта ---------- */
.bkr-tile-call{display:flex;flex-direction:column}
.bkr-tile-call.is-live{border-color:var(--bkr-accent);box-shadow:0 0 0 1px var(--bkr-accent) inset}
.bkr-tile-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin-top:12px;width:100%;padding:11px 14px;font-size:14px}
.bkr-tile-btn .bkr-live-dot{width:8px;height:8px;background:#fff}
.bkr-tile-call .bkr-tile-go{margin-top:8px;display:inline-block;color:var(--bkr-accent)!important;text-decoration:none!important;font-weight:600;font-size:13px}
.bkr-btn-big{padding:12px 20px;font-size:15px;display:inline-flex;align-items:center;gap:8px}
@media (max-width:760px){
  .bkr-tile-call{grid-column:1/-1}
  .bkr-tile-btn{padding:12px 14px;font-size:15px}
}

/* ---------- проверка связи ---------- */
.bkr-diag{background:var(--bkr-surface);border:1px solid var(--bkr-line);border-radius:10px;padding:10px 14px;margin-bottom:12px}
.bkr-diag>summary{cursor:pointer;font-size:13.5px;color:var(--bkr-muted);font-weight:600;list-style:none}
.bkr-diag>summary::-webkit-details-marker{display:none}
.bkr-diag[open]>summary{margin-bottom:8px;color:var(--bkr-ink)}
.bkr-diag-out{margin:10px 0 0;background:var(--bkr-sunk);border-radius:8px;padding:10px;font-size:12px;line-height:1.5;white-space:pre-wrap;word-break:break-word;font-family:ui-monospace,Menlo,Consolas,monospace}
