/* Agent tabs redesign (2026-10-14) — Overview, Onboarding, System, Pipelines. Loads last. */

/* rings: brand arc on a cool track */
.ring{background:conic-gradient(var(--c,var(--gold)) calc(var(--p)*1%),#e6eaf0 0)}
.ring.hero-ring{width:88px;height:88px;background:conic-gradient(var(--gold) calc(var(--p)*1%),rgba(255,255,255,.88) 0)}
.ring.hero-ring::before{width:68px;height:68px;background:#fff}
.ring.hero-ring b{font-size:19px;color:var(--ink)}

/* ---------- hero with mountain art ---------- */
.hero2{position:relative;overflow:hidden;border-radius:16px;background:var(--navy);color:#fff;padding:26px 30px;min-height:172px;display:flex;align-items:center;gap:24px;box-shadow:0 18px 40px -28px rgba(15,23,42,.7)}
.hero2 .hero-art{position:absolute;right:0;bottom:0;height:100%;width:min(78%,720px);pointer-events:none}
.hero2-l{position:relative;flex:1;min-width:0}
.hero2 .k{font-family:var(--mono);font-size:10.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-on-dark,var(--gold))}
.hero2 h2{margin:6px 0 0;font-size:34px;line-height:1.1;font-weight:800;color:#fff;text-wrap:balance}
.hero2 h2 em{font-style:normal;color:var(--gold-on-dark,var(--gold))}
.hero2 p{margin:10px 0 0;max-width:560px;font-size:14.5px;line-height:1.5;font-weight:600;color:#fff;text-wrap:pretty}
.hero2-r{position:relative;display:flex;align-items:center;gap:18px;flex:none;padding-left:22px}
.hero2-sp{border-left:1px solid rgba(255,255,255,.22);padding-left:18px;display:flex;flex-direction:column;gap:3px}
.hero2-sp b{font-size:20px;font-weight:800;color:#fff}
.hero2-sp span{font-size:13px;font-weight:600;color:#fff}
.hero2-sp strong{font-weight:800}
.hero2-prog{display:flex;align-items:center;gap:16px;margin-top:18px}
.hero2-prog b{display:block;font-size:19px;font-weight:800;color:#fff}
.hero2-prog span{display:block;font-size:13px;font-weight:600;color:#fff;margin-top:2px}
.hero2-quote{position:relative;flex:none;align-self:flex-end;width:250px;padding:16px 18px 18px;border-radius:14px;background:rgba(10,16,30,.55);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(4px)}
.hero2-quote span{display:block;width:26px;height:26px;color:var(--gold-on-dark,var(--gold))}
.hero2-quote span svg{width:26px;height:26px}
.hero2-quote p{margin:8px 0 0;font-size:15px;font-weight:700;line-height:1.4;color:#fff;max-width:none}
.hero2-quote i{display:block;width:36px;height:3px;border-radius:2px;background:var(--gold);margin-top:12px}
.hero2.onb{min-height:230px;align-items:stretch;padding:30px}
.hero2.onb .hero2-l{align-self:center}

/* ---------- Overview ---------- */
.ov-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.ov-stat{display:flex;align-items:flex-start;gap:10px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px 14px;transition:border-color .15s,box-shadow .15s}
.ov-stat:hover{border-color:#b8c2d3;box-shadow:0 8px 20px -16px rgba(15,23,42,.5)}
.ov-stat .ic{width:30px;height:30px;flex:none;display:grid;place-items:center}
.ov-stat .ic svg{width:24px;height:24px}
.ov-stat .ic.gold{color:#e8a400}.ov-stat .ic.blue{color:#3b6fe0}.ov-stat .ic.indigo{color:#4f46e5}.ov-stat .ic.slate{color:#475569}
.ov-stat .t{display:flex;flex-direction:column;min-width:0}
.ov-stat .k2{font-size:12px;font-weight:600;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ov-stat b{font-size:22px;font-weight:800;color:var(--ink);line-height:1.15}
.ov-stat em{font-style:normal;font-size:11px;color:var(--muted)}
.ov-panel{padding:16px 18px}
.ov-ph{display:flex;align-items:center;gap:9px;margin-bottom:12px}
.ov-ph .ic{width:22px;height:22px;color:var(--navy);flex:none}
.ov-ph .ic svg{width:20px;height:20px}
.ov-ph h4{margin:0;font-size:15px;font-weight:800;color:var(--ink);flex:1;min-width:0;text-wrap:balance}
.ov-ph .pill{flex:none}
.phase-cards2{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.pc2{display:block;border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#fff;transition:border-color .15s}
.pc2:hover{border-color:#b8c2d3}
.pc2.now{background:color-mix(in srgb,var(--gold) 13%,#fff);border-color:color-mix(in srgb,var(--gold) 45%,#fff)}
.pc2 .n{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13.5px;font-weight:800;color:var(--ink)}
.pc2 .n b{font-size:12px;font-weight:700;color:var(--muted);flex:none}
.pc2 .n b svg{width:16px;height:16px;color:var(--green)}
.pc2 .bar{margin-top:10px}
.pc2 .s{font-size:12px;color:var(--muted);margin-top:7px}
.ov-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.ov-kv{display:grid;grid-template-columns:22px 132px minmax(0,1fr);align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--hair);font-size:13.5px}
.ov-kv:last-child{border-bottom:0}
.ov-kv .ic{color:var(--muted);display:grid;place-items:center}
.ov-kv .ic svg{width:16px;height:16px}
.ov-kv .kk{color:var(--muted);font-weight:500}
.ov-kv .vv{color:var(--ink);font-weight:600;min-width:0;overflow-wrap:anywhere}
.ov-kv .vv a{color:var(--ink)}
.fams{display:flex;flex-wrap:wrap;gap:7px}
.fam{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px;border-radius:999px;background:var(--soft);font-size:13px;font-weight:600;color:var(--ink)}
.fam svg{width:14px;height:14px;color:var(--muted)}
.fam b{font-weight:600;color:var(--muted)}
.fam.spouse{background:color-mix(in srgb,var(--gold) 16%,#fff)}
.fam.spouse svg{color:#d9480f}
.fam.pet svg{color:#7c5cdb}
.ov-story{display:flex;flex-direction:column;gap:10px}
.ov-story span{display:block;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.ov-story p{margin:2px 0 0;font-size:13.5px;line-height:1.5;color:var(--ink);text-wrap:pretty}
.dg{display:flex;flex-direction:column;gap:6px}
.dg-r{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:10px;padding:8px 10px;font-size:13.5px;color:var(--ink)}
.dg-r>svg{width:15px;height:15px;color:var(--muted);flex:none}
.dg-r .t{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dg-r .tag{flex:none;font-size:10.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:3px 8px;border-radius:999px;background:var(--soft);color:var(--muted)}
.dg-r .tag.gold{background:color-mix(in srgb,var(--gold) 18%,#fff);color:var(--ink)}
.dg-r .tag.green{background:var(--green-soft);color:var(--green)}
#availPanel .ov-ph .btn{flex:none}
.hrow .d{display:inline-flex;align-items:center;gap:8px}
.hrow .d svg{width:15px;height:15px;color:var(--muted)}

/* ---------- System ---------- */
.sys-head{display:flex;align-items:center;gap:22px;padding:20px 22px}
.sys-t{flex:1;min-width:0}
.sys-t .k{font-family:var(--mono);font-size:10.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.sys-t h3{display:inline;margin:0 10px 0 0;font-size:22px;font-weight:800;color:var(--ink);vertical-align:middle}
.sys-t #sysStage{display:inline-block;vertical-align:middle}
.sys-t p{margin:8px 0 0;font-size:13.5px;color:var(--muted);text-wrap:pretty}
.sys-a{display:flex;flex-wrap:wrap;gap:6px;flex:none;align-self:flex-start}
.sys-a .btn svg{width:14px;height:14px}
.phase.sys2{border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}
.phase.sys2 .phase-h{padding:16px 18px;gap:14px}
.phase.sys2 .phase-h .num{width:36px;height:36px;border-radius:10px}
.phase.sys2 .phase-h .t b{font-size:16.5px}
.phase.sys2 .phase-h .t span{font-size:12.5px}
.phase.sys2 .phase-h .pct{font-size:13px;font-weight:700;color:var(--ink);flex:none;width:40px;text-align:right}
.phase.sys2 .phase-h .bar{width:130px}
.phase.sys2.open .phase-b{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:14px;padding:0 18px 18px}
.sys-groups{display:flex;flex-direction:column;gap:10px;min-width:0}
.sys-groups .area{background:#f6f8fb;border:1px solid var(--hair);border-radius:12px;padding:10px 10px 6px}
.sys-groups .area>.k{display:block;font-family:var(--mono);font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);padding:2px 6px 6px}
.sys-groups .item{min-height:40px;padding:7px 8px;border-radius:8px;background:transparent}
.sys-groups .item+.item{border-top:1px solid var(--hair);border-radius:0}
.sys-groups .item:hover{background:#fff}
.sys-groups .item.done .t{color:var(--muted);text-decoration:line-through;text-decoration-color:#9aa6b8}
.sys-groups .item .help{display:none}
.sys-groups .item.show-help .help{display:block}
.sys-groups .item .more{width:28px;height:28px;border:0;background:transparent;border-radius:7px;display:grid;place-items:center;color:var(--muted);flex:none;transition:transform .15s}
.sys-groups .item .more:hover{background:var(--soft);color:var(--ink)}
.sys-groups .item .more svg{width:15px;height:15px}
.sys-groups .item.show-help .more{transform:rotate(90deg)}
.sys-side{position:relative;overflow:hidden;background:#f6f8fb;border:1px solid var(--hair);border-radius:12px;padding:26px 24px 70px;text-align:center;display:flex;flex-direction:column;align-items:center}
.sys-side>.ic{width:52px;height:52px;border-radius:50%;background:#e6ebf3;color:var(--navy);display:grid;place-items:center}
.sys-side>.ic svg{width:24px;height:24px}
.sys-side.done>.ic{background:var(--green-soft);color:var(--green)}
.sys-side h4{margin:14px 0 0;font-size:16px;font-weight:800;color:var(--ink);text-wrap:balance}
.sys-side>p{margin:8px 0 0;font-size:13.5px;line-height:1.55;color:var(--body);max-width:340px;text-wrap:pretty}
.sys-call{display:flex;gap:10px;text-align:left;margin-top:18px;padding:14px;border-radius:12px;background:color-mix(in srgb,var(--gold) 12%,#fff);border:1px solid color-mix(in srgb,var(--gold) 35%,#fff);max-width:360px}
.sys-call>span{width:22px;height:22px;color:#e8a400;flex:none}
.sys-call>span svg{width:22px;height:22px}
.sys-call b{font-size:14px;color:var(--ink)}
.sys-call p{margin:4px 0 0;font-size:13px;line-height:1.5;color:var(--body);text-wrap:pretty}
.sys-peaks{position:absolute;left:0;right:0;bottom:0;width:100%;height:60px;color:#cfd8e6}

/* ---------- Onboarding ---------- */
.onb-first{padding:14px 16px}
.onb-first>.k{font-family:var(--mono);font-size:10.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.onb-first-g{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.onb-step{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#fff}
.onb-step .n{width:30px;height:30px;border-radius:50%;background:var(--gold);color:var(--on-gold,var(--ink));display:grid;place-items:center;font-weight:800;flex:none}
.onb-step .ic{width:34px;height:34px;border-radius:9px;border:1px solid var(--line);display:grid;place-items:center;color:var(--navy);flex:none}
.onb-step .ic svg{width:18px;height:18px}
.onb-step .t{font-size:14px;font-weight:700;color:var(--ink);line-height:1.35;text-wrap:pretty}
.onb-h h3{margin:0;font-size:19px;font-weight:800;color:var(--ink)}
.onb-h p{margin:2px 0 10px;font-size:13px;color:var(--muted)}
.onb-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.onb-tool{display:block;background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;transition:border-color .15s,box-shadow .15s}
.onb-tool:hover{border-color:#b8c2d3;box-shadow:0 8px 20px -16px rgba(15,23,42,.5)}
.onb-tool .top{display:flex;align-items:center;gap:10px}
.onb-tool .ic{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;flex:none}
.onb-tool .ic svg{width:20px;height:20px}
.onb-tool .ic.gold{background:#fff4d6;color:#d99a00}.onb-tool .ic.indigo{background:#ecebff;color:#4f46e5}.onb-tool .ic.green{background:#e6f6ee;color:#16865a}.onb-tool .ic.violet{background:#f1ebff;color:#6d4ad6}
.onb-tool b{flex:1;font-size:14.5px;font-weight:800;color:var(--ink)}
.onb-tool .go{width:18px;height:18px;color:var(--muted)}
.onb-tool .go svg{width:16px;height:16px}
.onb-tool p{margin:8px 0 0;font-size:13px;line-height:1.45;color:var(--body);text-wrap:pretty}
.onb-road{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:start}
.rm-col{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px}
.rm-col.now{background:color-mix(in srgb,var(--gold) 10%,#fff);border-color:color-mix(in srgb,var(--gold) 55%,#fff);box-shadow:0 0 0 1px color-mix(in srgb,var(--gold) 40%,#fff)}
.rm-h{display:flex;align-items:center;gap:9px}
.rm-n{width:28px;height:28px;border-radius:50%;background:var(--navy);color:#fff;font-weight:800;font-size:13px;display:grid;place-items:center;flex:none}
.rm-col.done .rm-n{background:var(--green)}
.rm-h b{flex:1;font-size:14.5px;font-weight:800;color:var(--ink);min-width:0}
.rm-c{font-size:11.5px;font-weight:700;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:2px 8px;background:#fff;flex:none}
.rm-col>p{margin:8px 0 6px;font-size:12.5px;line-height:1.45;color:var(--muted);text-wrap:pretty}
.rm-list{display:flex;flex-direction:column}
.rm-i{display:flex;align-items:flex-start;gap:8px;width:100%;border:0;background:transparent;padding:5px 2px;text-align:left;font:inherit;font-size:12.5px;line-height:1.35;color:var(--ink);cursor:pointer;border-radius:6px}
.rm-i:hover:not(:disabled){background:var(--soft)}
.rm-i:disabled{cursor:default;opacity:1}
.rm-i i{width:16px;height:16px;border:1.5px solid var(--line2);border-radius:4px;background:#fff;flex:none;margin-top:1px;display:grid;place-items:center}
.rm-i.on i{background:var(--navy);border-color:var(--navy)}
.rm-i.on i::after{content:"";width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg)}
.onb-open{margin-top:12px}
.onb-open svg{width:16px;height:16px}
.onb-ea{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.onb-card{display:flex;gap:14px;align-items:flex-start;padding:16px 18px}
.onb-card>.ic{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;flex:none}
.onb-card>.ic svg{width:24px;height:24px}
.onb-card>.ic.green{background:#e6f6ee;color:#16865a}.onb-card>.ic.gold{background:#fff4d6;color:#d99a00}
.onb-card .k{font-family:var(--mono);font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.onb-card .li{display:flex;align-items:flex-start;gap:8px;font-size:13.5px;line-height:1.45;color:var(--ink);padding:2px 0}
.onb-card .li svg{width:15px;height:15px;flex:none;margin-top:2px}
.onb-card .li.ok svg{color:var(--green)}.onb-card .li.go svg{color:#d99a00}

/* ---------- Pipelines ---------- */
.board.crm .col-h{position:relative;gap:8px}
.board.crm .col-h .dot{width:10px;height:10px;border-radius:50%;flex:none}
.board.crm .col-h .t{font-size:13.5px;font-weight:800;text-transform:none;letter-spacing:0;color:var(--ink)}
.board.crm .col-h .n{margin-left:auto}
.col-more{width:28px;height:26px;border:0;background:transparent;border-radius:7px;display:grid;place-items:center;color:var(--muted);flex:none}
.col-more:hover{background:#e3e8f0;color:var(--ink)}
.col-more svg{width:16px;height:16px}
.col-menu{position:absolute;right:6px;top:calc(100% + 4px);z-index:30;min-width:220px;background:#fff;border:1px solid var(--line2);border-radius:10px;box-shadow:0 18px 40px -16px rgba(15,23,42,.45);padding:4px}
.col-menu button,.col-menu a{display:flex;align-items:center;gap:8px;width:100%;border:0;background:transparent;padding:8px 10px;border-radius:7px;font:inherit;font-size:13px;font-weight:600;color:var(--ink);text-align:left}
.col-menu button:hover,.col-menu a:hover{background:var(--soft)}
.col-menu svg{width:15px;height:15px;color:var(--muted)}
.col-empty.rich{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;min-height:220px;border:1.5px dashed var(--line2);border-radius:10px;background:transparent;padding:18px;color:var(--muted)}
.col-empty.rich .ic{width:44px;height:44px;border-radius:50%;background:#e6ebf3;display:grid;place-items:center;color:var(--navy);margin-bottom:4px}
.col-empty.rich .ic svg{width:20px;height:20px}
.col-empty.rich b{font-size:14px;color:var(--ink)}
.col-empty.rich span{font-size:12px;line-height:1.45;max-width:180px;text-wrap:pretty}
.col-empty.quiet{min-height:40px;border:0;background:transparent}
.board.crm .col-b:has(.col-empty.rich){display:flex;flex-direction:column}
.pcard.crm .line2{display:flex;flex-wrap:wrap;gap:3px 12px;font-size:12px;color:var(--muted)}
.pcard.crm .line2 span{display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:100%}
.pcard.crm .line2 .i{width:12px;height:12px;flex:none;color:var(--faint)}
.rate{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 8px;border-radius:999px;font-size:10.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;background:var(--soft);color:var(--muted)}
.rate svg{width:11px;height:11px}
.rate.hot{background:#fdecea;color:#c8321e;border:1px solid #f6c3bb}
.rate.warm{background:#fff4d6;color:#a46b00}
.rate.cold{background:#e8f0fd;color:#2f5fbf}
.pcard.crm.won{background:color-mix(in srgb,var(--gold) 12%,#fff);border-color:color-mix(in srgb,var(--gold) 40%,#fff)}

/* phone: accordion of stages */
.pipe-acc{display:flex;flex-direction:column;gap:8px}
.acc{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.acc.open{background:#eef1f5}
.acc-h{display:flex;align-items:center;gap:10px;width:100%;border:0;background:#fff;padding:13px 14px;font:inherit;text-align:left}
.acc.open .acc-h{background:transparent}
.acc-h .dot{width:12px;height:12px;border-radius:50%;flex:none}
.acc-h .t{flex:1;font-size:15px;font-weight:800;color:var(--ink)}
.acc-h .n{font-family:var(--mono);font-size:11.5px;font-weight:700;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:999px;padding:1px 8px}
.acc-h .chev{width:20px;height:20px;color:var(--muted);transition:transform .2s}
.acc-h .chev svg{width:18px;height:18px}
.acc.open .acc-h .chev{transform:rotate(180deg)}
.acc-b{display:flex;flex-direction:column;gap:8px;padding:0 10px 10px}
.acc-empty{display:flex;align-items:center;gap:8px;padding:12px;font-size:13px;color:var(--muted)}
.acc-empty svg{width:16px;height:16px}
.acc-add{border:1.5px dashed var(--line2);background:transparent;border-radius:10px;height:44px;font:inherit;font-size:13.5px;font-weight:700;color:var(--body)}
.pc-more{position:relative;width:30px;height:28px;border-radius:7px;display:grid;place-items:center;color:var(--muted);flex:none;margin-left:2px}
.pc-more svg{width:16px;height:16px}
.pc-more select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}

/* ---------- narrow screens ---------- */
@media (max-width:1200px){
  .ov-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .onb-road{grid-template-columns:repeat(2,minmax(0,1fr))}
  .phase.sys2.open .phase-b{grid-template-columns:minmax(0,1fr)}
  .sys-side{padding-bottom:64px}
}
@media (max-width:900px){
  .hero2{flex-direction:column;align-items:flex-start;padding:22px 20px;gap:16px}
  .hero2 .hero-art{width:100%;opacity:.85}
  .hero2 h2{font-size:28px}
  .hero2-r{padding-left:0}
  .hero2-quote{display:none}
  .onb-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
  .onb-first-g,.onb-ea,.ov-grid2{grid-template-columns:minmax(0,1fr)}
  .phase-cards2{grid-template-columns:minmax(0,1fr)}
  .sys-head{flex-wrap:wrap;gap:14px}
  .sys-a{width:100%}
  .phase.sys2 .phase-h{flex-wrap:wrap}
  .phase.sys2 .phase-h .t span{display:none}
  .phase.sys2 .phase-h .pct{order:4;width:auto;text-align:left;margin-left:50px}
  .phase.sys2 .phase-h .bar{order:5;flex:1;width:auto}
  .phase.sys2 .phase-h .chev{order:3;margin-left:auto}
}
@media (max-width:640px){
  .ov-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .ov-stat{flex-direction:column;gap:4px;padding:10px}
  .ov-stat b{font-size:19px}
  .onb-road{grid-template-columns:minmax(0,1fr)}
  .ov-kv{grid-template-columns:22px 108px minmax(0,1fr)}
  .hero2-r{gap:14px}
  .hero2-sp{border-left:0;padding-left:0}
}
/* progress block on the hero: dark glass so white text never sits on the sunlit mountain */
.hero2-r{padding:14px 18px;border-radius:14px;background:rgba(10,16,30,.6);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(4px)}
@media (max-width:900px){.hero2-r{width:100%}}

@media (max-width:900px){
  .hero2-prog{align-self:stretch;padding:12px 14px;border-radius:14px;background:rgba(10,16,30,.6);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(4px)}
  .sys-t h3{display:block;margin:2px 0 6px;font-size:20px;text-wrap:balance}
}

/* ---------- the lead window: clean corners, movable, tidy scrolling ---------- */
.mbox.rec2{overflow:hidden;border-radius:18px;border:1px solid #dfe4ec;box-shadow:0 50px 100px -40px rgba(10,16,30,.6),0 18px 36px -24px rgba(10,16,30,.35)}
.mbox.rec2 .rec2-wrap{border-radius:inherit;min-height:0}
.mbox.rec2 .rec2-h{border-radius:18px 18px 0 0;padding-top:22px}
.mbox.movable .rec2-h{cursor:grab;user-select:none}
.mbox.movable .rec2-h :is(input,select,textarea,a,button,label){cursor:pointer}
.mbox.movable .rec2-h h3,.mbox.movable .rec2-h .sub{user-select:text;cursor:text}
.mbox.dragging-win{transition:none;box-shadow:0 60px 120px -40px rgba(10,16,30,.7),0 24px 48px -24px rgba(10,16,30,.45)}
.mbox.dragging-win .rec2-h{cursor:grabbing}
.mbox.recentre{transition:transform .24s cubic-bezier(.2,.8,.2,1)}
.win-grip{position:absolute;top:7px;left:50%;width:44px;height:5px;margin-left:-22px;border-radius:3px;background:#d3d9e3;opacity:.9;transition:background .15s}
.mbox.movable .rec2-h:hover .win-grip{background:#aab5c6}
/* scrollbars: slim, no arrow buttons */
.mbox.rec2 :is(.rec2-pane,.rec2-body){scrollbar-width:thin;scrollbar-color:#c9d1dd transparent}
.mbox.rec2 :is(.rec2-pane,.rec2-body)::-webkit-scrollbar{width:10px;height:10px}
.mbox.rec2 :is(.rec2-pane,.rec2-body)::-webkit-scrollbar-button{display:none;width:0;height:0}
.mbox.rec2 :is(.rec2-pane,.rec2-body)::-webkit-scrollbar-track{background:transparent}
.mbox.rec2 :is(.rec2-pane,.rec2-body)::-webkit-scrollbar-thumb{background:#c9d1dd;border-radius:10px;border:3px solid transparent;background-clip:padding-box}
.mbox.rec2 :is(.rec2-pane,.rec2-body)::-webkit-scrollbar-thumb:hover{background:#a9b4c4;background-clip:padding-box}
/* the bottom of each pane fades instead of cutting text off hard */
.mbox.rec2 .rec2-pane{padding-bottom:28px}
@media (max-width:900px){.mbox.rec2{border-radius:0;border:0}.mbox.rec2 .rec2-h{border-radius:0;padding-top:14px}.win-grip{display:none}}

/* ---------- Pipelines: minimal (10/14 pm) ---------- */
/* compact agent header on the Pipelines tab — more room for the board */
#agentWrap[data-tab="pipeline"] .ah{padding-top:10px;gap:12px}
#agentWrap[data-tab="pipeline"] .ah .av{width:44px;height:44px;font-size:15px}
#agentWrap[data-tab="pipeline"] .ah h1{font-size:19px}
#agentWrap[data-tab="pipeline"] .ah .k{font-size:9.5px}
#agentWrap[data-tab="pipeline"] .ah .sub{margin-top:2px}
#agentWrap[data-tab="pipeline"] .tabs{margin-top:4px}
#agentWrap[data-tab="pipeline"] #tabBody{padding-top:10px}
/* one slim toolbar row, no box around it */
.pipe-bar.crm{background:transparent;border:0;padding:0;gap:6px;min-height:36px}
.pipe-bar.crm .pipe-pick2,.pipe-bar.crm .pipe-search,.pipe-bar.crm .btn{height:34px}
.pipe-bar.crm .pipe-pick2 select{height:30px;font-size:13.5px}
.pipe-bar.crm .pipe-search{max-width:260px;flex:0 1 260px;background:#fff}
.pipe-bar.crm .btn{padding:0 11px;font-size:12.5px}
.pipe-bar.crm .btn.ib-only{width:34px;padding:0;justify-content:center}
.pipe-bar.crm .pipe-sum{font-size:12px}
.pipe-bar.crm .pipe-sum[hidden]{display:none}
.pipe-bar.crm #fuStrip:empty{display:none}
.pipe-bar.crm .fu-strip{margin:0;gap:4px}
.pipe-bar.crm .fu-chip{height:28px;padding:0 9px;font-size:12px}
#pipeRoot{gap:8px}
.board-wrap{margin-top:0}
/* cards: compact, no stacked pills */
.pcard.crm{padding:8px 10px}
.pcard.crm .lines{margin-top:4px;gap:1px}
.pcard.crm .line{min-height:0;font-size:12px}
.pcard.crm .line.pq{gap:6px;color:var(--muted);font-size:11.5px;padding-left:0}
.pcard.crm .line.pq .mono{font-family:var(--mono);font-size:11px;color:var(--body)}
.pcard.crm .line.pq i{font-style:normal;color:var(--faint)}
.pcard.crm .meta{margin-top:5px;gap:4px}
.mt{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:6px;background:var(--soft);font-size:11px;font-weight:600;color:var(--body);white-space:nowrap}
.mt.ok{background:var(--green-soft);color:var(--green)}
.mt.soon{background:color-mix(in srgb,var(--gold) 18%,#fff);color:var(--ink)}
.pcard.crm .rate,.pcard.crm .due{height:20px;font-size:10.5px;padding:0 7px}
.pcard.crm .next{font-size:11.5px;padding:4px 7px}
/* columns: tidy scrolling, nothing spills sideways */
.board.crm .col-b{overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#cfd6e1 transparent}
.board.crm .col-b::-webkit-scrollbar{width:8px}
.board.crm .col-b::-webkit-scrollbar-button{display:none;height:0}
.board.crm .col-b::-webkit-scrollbar-thumb{background:#cfd6e1;border-radius:8px;border:2px solid transparent;background-clip:padding-box}
.board.crm{scrollbar-width:thin;scrollbar-color:#cfd6e1 transparent}
.board.crm::-webkit-scrollbar{height:8px}
.board.crm::-webkit-scrollbar-button{display:none;width:0}
.board.crm::-webkit-scrollbar-thumb{background:#cfd6e1;border-radius:8px}
.pcard.crm,.pcard.crm *{min-width:0}
/* empty column: a light hint, not a poster */
.col-empty.slim{min-height:56px;display:grid;place-items:center;border:1.5px dashed #d7dde7;border-radius:9px;font-size:12px;font-weight:600;color:var(--faint);background:transparent}
/* the right-edge "more stages" fade: lighter */
.board-edge{width:34px!important}
.board-edge.r{background:linear-gradient(90deg,rgba(244,246,249,0),rgba(244,246,249,.95))!important}
.board-edge.l{background:linear-gradient(270deg,rgba(244,246,249,0),rgba(244,246,249,.95))!important}
@media (max-width:900px){
  .pipe-bar.crm .pipe-search{max-width:none;flex:1 1 100%}
}
.pcard.crm .line.pq{padding-left:18px}
@media (max-width:900px){
  /* Pipelines on a phone: name only up top — profile buttons live on Overview */
  #agentWrap[data-tab="pipeline"] .ah{padding-top:8px;gap:10px;flex-wrap:nowrap}
  #agentWrap[data-tab="pipeline"] .ah .av{width:38px;height:38px;font-size:13px}
  #agentWrap[data-tab="pipeline"] .ah .sub,#agentWrap[data-tab="pipeline"] .ah .acts{display:none}
  #agentWrap[data-tab="pipeline"] .ah h1{font-size:17px}
  /* actions on one row: Add keeps its label, the rest are icons */
  .pipe-bar.crm{row-gap:8px}
  .pipe-bar.crm .sp{display:none}
  .pipe-bar.crm #pipeAdd{order:10;flex:1 1 auto}
  .pipe-bar.crm #pipeImport,.pipe-bar.crm #pipeSelect,.pipe-bar.crm #pipeArch{order:11;flex:0 0 40px;width:40px;padding:0;justify-content:center}
  .pipe-bar.crm #pipeImport .lbl,.pipe-bar.crm #pipeSelect .lbl,.pipe-bar.crm #pipeArch .lbl{display:none}
  .pipe-bar.crm .pipe-search{order:5}
  .pipe-bar.crm #fuStrip{order:6;width:100%}
  .pipe-bar.crm .pipe-sum{order:7}
}
@media (max-width:900px){.pipe-bar.crm .btn,.pipe-bar.crm #pipeAdd{height:38px;min-height:38px}}

/* ---------- Wide and ultra-wide monitors (10/15) ----------
   Content sits in a centred column instead of hugging the left edge; the agent header, the tabs and the
   page all share the same edges. Pipelines keep the full width, with columns that stop growing at a
   readable size. Nothing changes below 1700px. */
@media (min-width:1700px){
  :root{--page-max:1680px;--page-pad:max(22px,calc((100% - var(--page-max)) / 2))}
  .content,.tabs,.ah{padding-left:var(--page-pad);padding-right:var(--page-pad)}
  .content>.stack{max-width:none}
  .set-main{max-width:1180px}
  .set-main.wide{max-width:none}
  .settings{grid-template-columns:240px minmax(0,1fr)}
  /* Pipelines: the board uses the whole width */
  #agentWrap[data-tab="pipeline"] .ah,#agentWrap[data-tab="pipeline"] .tabs,#agentWrap[data-tab="pipeline"] .content{padding-left:22px;padding-right:22px}
  .board.crm .col{max-width:460px}
  .hero2{min-height:200px}
  .hero2 .hero-art{width:min(70%,820px)}
}
@media (min-width:2600px){
  :root{--page-max:1960px}
  .ov-grid2{grid-template-columns:repeat(3,minmax(0,1fr))}
  .set-main{max-width:1440px}
  .onb-tools,.ov-stats{gap:14px}
}

/* ---------- Design kit (10/15) ---------- */
/* banner photo: on the right, fading into the brand colour where the text sits */
.hero2 .hero-photo{position:absolute;top:0;right:0;bottom:0;width:70%;background-size:cover;background-position:right center;background-repeat:no-repeat;pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 38%);mask-image:linear-gradient(90deg,transparent 0,#000 38%)}
.hero2.has-photo .hero2-l{max-width:58%}
.hero2.has-photo .hero2-l h2,.hero2.has-photo .hero2-l p{text-shadow:0 2px 14px rgba(5,10,20,.55)}
@media (max-width:900px){.hero2 .hero-photo{width:100%;opacity:.55;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 55%);mask-image:linear-gradient(180deg,transparent 0,#000 55%)}.hero2.has-photo .hero2-l{max-width:none}}

/* stage badges in colour */
.stage-pill{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;border:1px solid transparent;white-space:nowrap}
.stage-pill svg{width:12px;height:12px;stroke-width:3}
.stage-pill .sp-dot{width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block}
.stage-pill.tone-blue{background:#e8f0fe;color:#1d4ed8;border-color:#cddcfb}
.stage-pill.tone-indigo{background:#ecebff;color:#3f3cc9;border-color:#d6d4fb}
.stage-pill.tone-purple{background:#f3e8ff;color:#7a2fd0;border-color:#e6d3fd}
.stage-pill.tone-orange{background:#fff1e3;color:#c2510c;border-color:#fddcbc}
.stage-pill.tone-teal{background:#e2f6f4;color:#0f766e;border-color:#c3ebe6}
.stage-pill.tone-pink{background:#fde8f3;color:#be1866;border-color:#f9cfe4}
.stage-pill.tone-green{background:#e3f6ec;color:#15803d;border-color:#c5ebd4}

/* pipeline tiles: number with its trend */
.ov-stat .nr{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.trend{display:inline-flex;align-items:center;gap:2px;height:20px;padding:0 6px;border-radius:6px;font-size:11px;font-weight:800}
.trend svg{width:11px;height:11px}
.trend.up{background:#e3f6ec;color:#15803d}
.trend.down{background:#fdecea;color:#b42318}
.ov-stat .ic svg{width:26px;height:26px}

/* phase cards with icons */
.pc2 .n{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}
.pc2 .pi{width:34px;height:34px;border-radius:10px;background:#eef2f8;color:var(--navy);display:grid;place-items:center}
.pc2 .pi svg{width:18px;height:18px}
.pc2.now .pi{background:color-mix(in srgb,var(--gold) 26%,#fff);color:var(--ink)}
.pc2.done .pi{background:var(--green-soft);color:var(--green)}
.pc2 .pn{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pc2 .bar,.pc2 .s{margin-left:44px}

/* Your tools: dark cards like the kit (bold white text on the dark) */
.onb-tools.kit .onb-tool{background:linear-gradient(160deg,var(--navy2),var(--navy));border-color:transparent;color:#fff;box-shadow:0 14px 30px -22px rgba(10,16,30,.8)}
.onb-tools.kit .onb-tool:hover{box-shadow:0 0 0 2px var(--gold-on-dark,var(--gold)),0 18px 36px -22px rgba(10,16,30,.9)}
.onb-tools.kit .onb-tool .ic{width:46px;height:46px;border-radius:12px;background:rgba(255,255,255,.08)}
.onb-tools.kit .onb-tool .ic svg{width:26px;height:26px}
.onb-tools.kit .onb-tool .ic.gold{color:#ffc83d}.onb-tools.kit .onb-tool .ic.indigo{color:#8fa2ff}.onb-tools.kit .onb-tool .ic.green{color:#5fd39a}.onb-tools.kit .onb-tool .ic.violet{color:#c3a6ff}
.onb-tools.kit .onb-tool b{color:#fff;font-size:15.5px}
.onb-tools.kit .onb-tool p{color:#fff;font-weight:600;opacity:.92}
.onb-tools.kit .onb-tool .go{color:#fff}

/* roadmap: numbered steps with a gold ring, and the phase icon */
.rm-n{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--gold)}
.rm-ic{width:20px;height:20px;color:var(--muted);flex:none;display:grid;place-items:center}
.rm-ic svg{width:17px;height:17px}

/* System: "Your progress" banner */
.hero2.sys-hero{align-items:center;min-height:190px}
.sys-hero h2{font-size:32px}
.sys-bar{margin-top:14px;height:12px;max-width:360px;border-radius:999px;background:rgba(255,255,255,.18);overflow:hidden}
.sys-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--gold),color-mix(in srgb,var(--gold) 70%,#fff));transition:width .35s ease}
.sys-stage{margin-top:10px;font-size:14px;font-weight:700;color:#fff}
.sys-stage strong{font-weight:800}
.sys-hero p{font-size:13px;opacity:.95;max-width:520px}
.sys-hero .sys-a{position:relative;align-self:flex-start;display:flex;flex-wrap:wrap;gap:6px}
.btn.on-dark{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.28);color:#fff;font-weight:700}
.btn.on-dark:hover{background:rgba(255,255,255,.16);border-color:#fff}
.btn.on-dark svg{stroke:#fff}

/* sidebar tools */
.sb-tools a svg{width:16px;height:16px;flex:none;opacity:.9}

/* Brand page: banner boxes are wide and show the photo filling the box */
.wl-logos.banners .wl-drop.fixed{height:132px;padding:0}
.wl-logos.banners .wl-drop.fixed img{width:100%;height:100%;max-height:none;object-fit:cover}
.wl-pv-hero{min-height:62px}

/* other dark headers: a subtle contour-line pattern (from the kit's background patterns) */
.hero:not(.hero2){position:relative;overflow:hidden}
.hero:not(.hero2)::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.5;
  background:repeating-radial-gradient(ellipse at 88% 130%,rgba(255,255,255,.07) 0 1px,transparent 1.5px 16px);
  -webkit-mask-image:linear-gradient(90deg,transparent 20%,#000 70%);mask-image:linear-gradient(90deg,transparent 20%,#000 70%)}
.hero:not(.hero2)>*{position:relative;z-index:1}
/* banner with a photo: taller, the photo framed on the right, progress under the text (like the kit) */
.hero2.has-photo{min-height:236px;flex-direction:column;align-items:flex-start;justify-content:center;gap:14px}
.hero2.has-photo .hero-photo{width:min(64%,620px);background-position:center 28%}
.hero2.has-photo:not(.onb):not(.sys-hero) .hero2-r{background:transparent;border:0;backdrop-filter:none;padding:0;margin-top:4px}
.hero2.has-photo:not(.onb):not(.sys-hero) .hero2-sp{border-left-color:rgba(255,255,255,.3)}
.hero2.has-photo.sys-hero{flex-direction:row;align-items:center}
@media (max-width:900px){.hero2.has-photo .hero-photo{width:100%}}
/* trend: no change reads as neutral, not "up" */
.trend.flat{background:#eef1f6;color:var(--muted)}
/* phase names wrap to a second line instead of being cut */
.pc2 .pn{white-space:normal;overflow:visible;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.25}
.hero2.has-photo.onb{flex-direction:row;align-items:stretch;justify-content:flex-start}
.hero2.has-photo.onb .hero2-l{align-self:center}
@media (max-width:900px){.hero2.has-photo.onb{flex-direction:column}}
.tl-err{display:flex;flex-direction:column;align-items:center;gap:6px;padding:18px;text-align:center;font-size:13px;color:var(--muted)}
.tl-err b{color:var(--ink);font-size:14px}
/* the board's scrollbar: a proper grab handle, not a hairline */
.board.crm{scrollbar-width:auto;scrollbar-color:#9aa6b8 #e4e8ef}
.board.crm::-webkit-scrollbar{height:16px}
.board.crm::-webkit-scrollbar-track{background:#e4e8ef;border-radius:10px}
.board.crm::-webkit-scrollbar-thumb{background:#9aa6b8;border-radius:10px;border:3px solid #e4e8ef;min-width:60px}
.board.crm::-webkit-scrollbar-thumb:hover{background:#7d8aa0}
.board.crm::-webkit-scrollbar-thumb:active{background:var(--navy)}
/* Daily Stats · Goals · Dreams tabs: no empty toolbar row */
.vz-single .vz-top:has(#vzActs:empty){display:none}
.board.crm::-webkit-scrollbar-button{width:0;height:0;display:none}
.board.crm::-webkit-scrollbar-thumb{border-width:2px}
/* Chrome ignores the custom scrollbar once the standard properties are set — keep those for Firefox only */
.board.crm{scrollbar-width:auto;scrollbar-color:auto}
@supports (-moz-appearance:none){.board.crm{scrollbar-width:auto;scrollbar-color:#9aa6b8 #e4e8ef}}
.board.crm .col-b,.mbox.rec2 :is(.rec2-pane,.rec2-body){scrollbar-width:auto;scrollbar-color:auto}
.mbox.rec2 :is(.rec2-pane,.rec2-body)::-webkit-scrollbar-button,.board.crm .col-b::-webkit-scrollbar-button{width:0;height:0;display:none}
@supports (-moz-appearance:none){.board.crm .col-b,.mbox.rec2 :is(.rec2-pane,.rec2-body){scrollbar-width:thin;scrollbar-color:#c9d1dd transparent}}

/* onboarding hero (2026-10-16): the quote card stays left of the figure in the welcome photo */
.hero2.onb.has-photo{min-height:300px;align-items:flex-end;padding-bottom:28px}
.hero2.onb.has-photo .hero2-l{align-self:center;max-width:620px}
.hero2.onb.has-photo .hero2-quote{margin-right:clamp(180px,30%,420px);align-self:flex-end}
.hero2.onb.has-photo .hero-art{width:min(62%,640px);-webkit-mask-image:linear-gradient(90deg,transparent,#000 35%);mask-image:linear-gradient(90deg,transparent,#000 35%)}
@media (max-width:1100px){.hero2.onb.has-photo .hero2-quote{margin-right:clamp(90px,18%,220px)}}
@media (max-width:760px){.hero2.onb.has-photo .hero2-quote{margin-right:0;width:100%}}

