/* Стили модуля js/categories/psy-business.js. До 19.09.2026 скрипт вставлял их тегом <style>;
   с 19.09.2026 CSP сайта без 'unsafe-inline' такие теги не применяет, поэтому стили — здесь.
   Правите стили раздела — правьте этот файл и поднимайте его ?v=N в index.html. */

    .psyb{color:#e8f0ef;}
    .psyb-hero{display:flex;align-items:center;gap:14px;padding:16px;border-radius:18px;
      background:linear-gradient(135deg,rgba(79,214,160,.14),rgba(230,200,119,.10));
      border:1px solid rgba(79,214,160,.22);margin-bottom:14px;}
    .psyb-hero__badge{flex:0 0 auto;width:46px;height:46px;border-radius:14px;display:grid;place-items:center;
      font-size:20px;color:#062018;background:linear-gradient(135deg,#4fd6a0,#39b98b);}
    .psyb-hero__title{font-weight:800;font-size:18px;}
    .psyb-hero__sub{font-size:12.5px;opacity:.78;margin-top:2px;line-height:1.35;}
    .psyb-pro{margin-left:auto;align-self:flex-start;font-size:11px;font-weight:700;color:#e6c877;
      border:1px solid rgba(230,200,119,.4);border-radius:999px;padding:3px 9px;white-space:nowrap;}
    .psyb-subtabs{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap;}
    .psyb-subtab{flex:1 1 auto;min-width:96px;padding:10px 12px;border-radius:12px;cursor:pointer;
      background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.09);color:#cfe0dc;font-size:13px;font-weight:600;
      transition:.18s;display:flex;align-items:center;justify-content:center;gap:7px;}
    .psyb-subtab:hover{background:rgba(255,255,255,.09);}
    .psyb-subtab.is-active{background:linear-gradient(135deg,#4fd6a0,#39b98b);color:#062018;border-color:transparent;}
    .psyb-note{font-size:12.5px;opacity:.82;line-height:1.4;margin-bottom:12px;padding:10px 12px;border-radius:12px;
      background:rgba(79,214,160,.08);border:1px solid rgba(79,214,160,.16);}
    .psyb-note i{color:#4fd6a0;margin-right:6px;}
    .psyb-card{border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);
      padding:12px;margin-bottom:14px;}
    .psyb-card__head{display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:14px;margin:2px 4px 10px;}
    .psyb-linklike{background:none;border:none;color:#4fd6a0;font-size:12.5px;cursor:pointer;font-weight:600;}
    .psyb-linklike:hover{text-decoration:underline;}
    .psyb-tests{display:flex;flex-direction:column;gap:8px;}
    .psyb-test{display:flex;gap:11px;align-items:flex-start;padding:11px;border-radius:12px;cursor:pointer;
      background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07);transition:.16s;}
    .psyb-test:hover{background:rgba(255,255,255,.06);}
    .psyb-test.is-checked{border-color:rgba(79,214,160,.5);background:rgba(79,214,160,.09);}
    .psyb-test input{position:absolute;opacity:0;width:0;height:0;}
    .psyb-test__box{flex:0 0 auto;width:22px;height:22px;border-radius:7px;display:grid;place-items:center;margin-top:1px;
      border:2px solid rgba(255,255,255,.25);color:transparent;font-size:11px;transition:.16s;}
    .psyb-test.is-checked .psyb-test__box{background:#4fd6a0;border-color:#4fd6a0;color:#062018;}
    .psyb-test__name{display:block;font-weight:700;font-size:14px;}
    .psyb-test__desc{display:block;font-size:12px;opacity:.72;margin-top:2px;line-height:1.35;}
    .psyb-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;}
    .psyb-count{font-size:13px;opacity:.8;}
    .psyb-count b{color:#4fd6a0;font-size:15px;}
    .psyb-btn{display:inline-flex;align-items:center;gap:8px;justify-content:center;padding:11px 16px;border-radius:12px;
      border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#eaf2f0;font-size:13.5px;font-weight:700;
      cursor:pointer;transition:.16s;}
    .psyb-btn:hover{background:rgba(255,255,255,.11);}
    .psyb-btn:disabled{opacity:.45;cursor:not-allowed;}
    .psyb-btn--primary{background:linear-gradient(135deg,#4fd6a0,#39b98b);color:#062018;border-color:transparent;}
    .psyb-btn--primary:hover{filter:brightness(1.05);}
    /* блок входа (функция привязана к аккаунту) */
    .psyb-login-gate{text-align:center;padding:26px 18px;}
    .psyb-login-gate__ic{width:56px;height:56px;margin:0 auto 12px;border-radius:16px;display:grid;place-items:center;
      font-size:24px;color:#062018;background:linear-gradient(135deg,#4fd6a0,#39b98b);}
    .psyb-login-gate__title{font-weight:800;font-size:16px;margin-bottom:8px;}
    .psyb-login-gate__text{font-size:12.5px;opacity:.78;line-height:1.45;max-width:360px;margin:0 auto 16px;}
    .psyb-login-gate__btn{width:100%;max-width:320px;}
    .psyb-linkbox{border-radius:14px;padding:14px;background:rgba(79,214,160,.08);border:1px solid rgba(79,214,160,.22);}
    .psyb-linkbox__ok{font-weight:700;color:#7be3b8;margin-bottom:8px;font-size:13.5px;}
    .psyb-linkbox__ok i{margin-right:6px;}
    .psyb-linkbox__url{font-size:12px;word-break:break-all;opacity:.85;background:rgba(0,0,0,.25);
      padding:9px 11px;border-radius:9px;margin-bottom:11px;font-family:ui-monospace,monospace;}
    .psyb-linkbox__btns{display:flex;gap:9px;flex-wrap:wrap;}
    .psyb-linkbox__btns .psyb-btn{flex:1 1 auto;}
    /* results */
    .psyb-results__head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;flex-wrap:wrap;}
    .psyb-seg{display:inline-flex;background:rgba(255,255,255,.05);border:none;border-radius:11px;padding:3px;}
    .psyb-seg__b{padding:8px 14px;border:none;background:none;color:#cfe0dc;border-radius:8px;cursor:pointer;font-size:13px;font-weight:600;}
    .psyb-seg__b.is-active{background:linear-gradient(135deg,#4fd6a0,#39b98b);color:#062018;}
    .psyb-date{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.05);
      border:1px solid rgba(255,255,255,.09);border-radius:11px;padding:8px 12px;color:#cfe0dc;font-size:13px;}
    .psyb-date input{background:none;border:none;color:#eaf2f0;font-size:13px;color-scheme:dark;}
    .psyb-results__list{display:flex;flex-direction:column;gap:14px;}
    .psyb-empty{text-align:center;padding:26px 14px;opacity:.7;font-size:13px;}
    .psyb-empty i{margin-right:7px;}
    /* Группа результатов = коллектив / адресат ссылки (с редактируемым названием) */
    .psyb-group{border-radius:15px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.07);padding:10px 11px;}
    .psyb-group__head{display:flex;align-items:center;gap:9px;padding:2px 4px 10px;}
    .psyb-group__ic{color:#e6c877;font-size:14px;flex:0 0 auto;}
    .psyb-group__title{font-weight:800;font-size:14.5px;color:#eef4f2;flex:1 1 auto;min-width:0;
      overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
    .psyb-group__edit{flex:0 0 auto;width:30px;height:30px;border-radius:8px;cursor:pointer;font-size:12.5px;
      border:1px solid rgba(230,200,119,.28);background:rgba(230,200,119,.08);color:#e6c877;
      display:grid;place-items:center;line-height:1;padding:0;}
    .psyb-group__edit:hover{background:rgba(230,200,119,.18);}
    .psyb-group__count{flex:0 0 auto;min-width:24px;height:24px;padding:0 8px;border-radius:12px;display:inline-grid;
      place-items:center;font-size:12px;font-weight:800;color:#062018;background:linear-gradient(135deg,#e6c877,#d0ad55);}
    .psyb-group__people{display:flex;flex-direction:column;gap:9px;}
    /* Поле названия коллектива при формировании ссылки */
    .psyb-namebox{padding:14px 15px;}
    .psyb-namebox__lbl{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:700;color:#eaf2f0;margin-bottom:9px;}
    .psyb-namebox__lbl i{color:#e6c877;}
    .psyb-nameinput{width:100%;padding:11px 13px;border-radius:11px;font-size:14.5px;color:#eef4f2;
      border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);}
    .psyb-nameinput::placeholder{color:#8aa0a8;}
    .psyb-nameinput:focus{outline:none;border-color:#e6c877;box-shadow:0 0 0 3px rgba(230,200,119,.16);}
    .psyb-namebox__hint{font-size:11.5px;opacity:.62;margin-top:7px;line-height:1.4;}
    .psyb-person{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:12px;border-radius:13px;cursor:pointer;
      background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);color:#eaf2f0;transition:.16s;}
    .psyb-person:hover{background:rgba(255,255,255,.08);}
    .psyb-person__ava{flex:0 0 auto;width:40px;height:40px;border-radius:11px;display:grid;place-items:center;font-weight:800;
      color:#062018;background:linear-gradient(135deg,#e6c877,#d0ad55);}
    .psyb-person__ava--lg{width:52px;height:52px;font-size:22px;border-radius:14px;}
    .psyb-person__body{flex:1 1 auto;min-width:0;}
    .psyb-person__name{display:block;font-weight:700;font-size:14.5px;}
    .psyb-person__meta{display:block;font-size:12px;opacity:.7;margin-top:2px;}
    .psyb-del{flex:0 0 auto;width:36px;height:36px;border-radius:10px;border:1px solid rgba(231,127,174,.3);
      background:rgba(231,127,174,.1);color:#e77fae;cursor:pointer;font-size:14px;transition:.15s;
      display:grid;place-items:center;line-height:1;padding:0;}
    .psyb-del:hover{background:rgba(231,127,174,.22);}
    /* поиск + сброс даты */
    .psyb-search{display:flex;align-items:center;gap:9px;background:rgba(255,255,255,.05);
      border:1px solid rgba(255,255,255,.09);border-radius:11px;padding:10px 13px;margin-bottom:11px;}
    .psyb-search i{opacity:.6;}
    .psyb-search input{flex:1;background:none;border:none;outline:none;color:#eaf2f0;font-size:13.5px;}
    .psyb-date{position:relative;}
    .psyb-date__clear{margin-left:2px;width:22px;height:22px;border-radius:6px;border:none;cursor:pointer;
      background:rgba(255,255,255,.1);color:#cfe0dc;font-size:11px;
      display:grid;place-items:center;line-height:1;padding:0;}
    .psyb-date__clear:hover{background:rgba(255,255,255,.2);}
    .psyb-collective-cta{margin-bottom:12px;}
    .psyb-collective-cta .psyb-btn{width:100%;}
    /* агрегат: метрики, сводка, блоки диаграмм */
    .psyb-agg-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px;}
    .psyb-metric{text-align:center;padding:14px 8px;border-radius:14px;
      background:linear-gradient(135deg,rgba(79,214,160,.12),rgba(230,200,119,.09));border:1px solid rgba(79,214,160,.18);}
    .psyb-metric__val{font-weight:800;font-size:22px;color:#7be3b8;line-height:1;}
    .psyb-metric__lbl{font-size:11px;opacity:.78;margin-top:6px;line-height:1.3;}
    .psyb-agg-summary{font-size:13px;line-height:1.5;background:rgba(255,255,255,.04);
      border:1px solid rgba(255,255,255,.08);border-radius:13px;padding:13px;margin-bottom:14px;}
    .psyb-agg-summary p{margin:0 0 7px;}
    .psyb-agg-summary p:last-child{margin-bottom:0;}
    .psyb-agg-summary i{color:#4fd6a0;margin-right:7px;width:16px;text-align:center;}
    .psyb-agg-block{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);
      border-radius:14px;padding:14px;margin-bottom:12px;}
    .psyb-agg-block__title{font-weight:700;font-size:14px;color:#7be3b8;margin-bottom:12px;}
    .psyb-agg-chart{position:relative;height:220px;}
    .psyb-agg-chart--tall{height:300px;}
    /* bottom sheet / portrait */
    .psyb-sheet{position:fixed;inset:0;z-index:9999;display:flex;align-items:flex-end;justify-content:center;
      background:rgba(4,10,9,.55);opacity:0;transition:.2s;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);}
    .psyb-sheet.is-open{opacity:1;}
    .psyb-sheet__panel{position:relative;width:100%;max-width:520px;background:#10201c;border:1px solid rgba(255,255,255,.1);
      border-radius:22px 22px 0 0;padding:12px 16px 20px;transform:translateY(24px);transition:.22s;}
    .psyb-sheet.is-open .psyb-sheet__panel{transform:translateY(0);}
    .psyb-sheet__grab{width:40px;height:4px;border-radius:99px;background:rgba(255,255,255,.25);margin:2px auto 12px;}
    .psyb-sheet__title{font-weight:800;font-size:16px;text-align:center;margin-bottom:14px;}
    .psyb-sheet__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px;}
    .psyb-mess{display:flex;flex-direction:column;align-items:center;gap:7px;padding:13px 6px;border-radius:14px;cursor:pointer;
      background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.09);color:#eaf2f0;font-size:12px;font-weight:600;text-decoration:none;}
    .psyb-mess:hover{background:rgba(255,255,255,.1);}
    .psyb-mess__ic{font-size:24px;}
    .psyb-sheet__close{width:100%;justify-content:center;}
    .psyb-portrait{align-items:center;}
    .psyb-portrait__panel{border-radius:20px;max-height:86vh;display:flex;flex-direction:column;padding:0;overflow:hidden;transform:translateY(24px);}
    .psyb-portrait__top{display:flex;align-items:center;gap:13px;padding:18px 56px 14px 18px;border-bottom:1px solid rgba(255,255,255,.08);}
    .psyb-portrait__name{font-weight:800;font-size:17px;}
    .psyb-portrait__meta{font-size:12.5px;opacity:.7;margin-top:2px;}
    /* Единый стандарт крестика закрытия: круг 34px, правый верхний угол 14/14 */
    .psyb-x{position:absolute;top:14px;right:14px;z-index:5;margin:0;width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,255,255,.14);
      background:rgba(255,255,255,.08);color:#eaf2f0;cursor:pointer;font-size:15px;
      display:grid;place-items:center;line-height:1;padding:0;}
    .psyb-x:hover{background:rgba(255,255,255,.16);color:#fff;}
    .psyb-portrait__scroll{overflow-y:auto;padding:16px 18px 22px;}
    .psyb-portrait__lead{font-size:13px;opacity:.78;margin-bottom:14px;}
    .psyb-block{border-radius:13px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);padding:13px;margin-bottom:11px;}
    .psyb-block__title{font-weight:700;font-size:14.5px;color:#7be3b8;margin-bottom:7px;}
    .psyb-block__text{font-size:13px;line-height:1.5;opacity:.9;}
    .psyb-block__text p{margin:0 0 7px;}
    /* кольцевая инфографика команды */
    .psyb-ring__card{margin-bottom:14px;}
    .psyb-ring__grid{display:grid;grid-template-columns:minmax(min(180px,100%),1fr) minmax(min(240px,100%),340px);gap:16px;align-items:center;}
    @media(max-width:600px){.psyb-ring__grid{grid-template-columns:1fr;}}
    .psyb-ring__legend{display:flex;flex-direction:column;gap:8px;}
    .psyb-ring__item{display:flex;align-items:center;gap:10px;padding:8px 11px;border-radius:10px;
      background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);font-size:13px;}
    .psyb-ring__num{flex:0 0 auto;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;
      font-weight:800;font-size:11.5px;color:#0b1418;}
    .psyb-ring__lbl{flex:1 1 auto;min-width:0;line-height:1.3;}
    .psyb-ring__val{color:#7be3b8;font-size:13.5px;}
    .psyb-ring__chart svg{width:100%;height:auto;display:block;}
    .psyb-ring__hint{font-size:11.5px;opacity:.6;margin-top:10px;line-height:1.45;}
    /* карточка личности: чипы выводов и оси-бары */
    .psyb-portrait__kicker{font-size:11px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:#7be3b8;margin-bottom:2px;}
    .psyb-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px;}
    .psyb-chip{display:inline-flex;align-items:center;gap:5px;padding:7px 11px;border-radius:999px;font-size:12px;
      background:rgba(79,214,160,.09);border:1px solid rgba(79,214,160,.25);}
    .psyb-chip span{opacity:.75;}
    .psyb-chip b{color:#7be3b8;}
    .psyb-axis{margin-bottom:9px;}
    .psyb-axis:last-child{margin-bottom:0;}
    .psyb-axis__head{display:flex;justify-content:space-between;font-size:12.5px;margin-bottom:4px;}
    .psyb-axis__head b{color:#7be3b8;}
    .psyb-axis__track{height:8px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden;}
    .psyb-axis__fill{height:100%;border-radius:99px;background:linear-gradient(90deg,#4fd6a0,#e6c877);}
    .psyb-toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,20px);z-index:10000;
      background:#173029;border:1px solid rgba(79,214,160,.4);color:#eaf2f0;padding:11px 18px;border-radius:12px;
      font-size:13px;font-weight:600;opacity:0;pointer-events:none;transition:.22s;max-width:90vw;text-align:center;}
    .psyb-toast.is-on{opacity:1;transform:translate(-50%,0);}
    @media(max-width:400px){.psyb-sheet__grid{grid-template-columns:repeat(3,1fr);}}
    
