/* ================= top bar: three zones, nav truly centred in the window ================= */
body .wrap{max-width:1600px;padding-left:32px;padding-right:32px}
#p-home,.page:not(#p-inbox):not(#p-home){max-width:none!important;margin-left:0!important;margin-right:0!important}
.top{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;column-gap:24px;height:72px}
.top .brand{gap:14px;justify-self:start;min-width:0;white-space:nowrap}
.top .nav{height:72px;gap:20px;justify-self:center;min-width:0;white-space:nowrap}
.top .nav button{height:72px;white-space:nowrap}
.top .nav button.on::after{bottom:16px}
.top .rt{display:flex;align-items:center;gap:10px;margin-left:0;justify-self:end}

/* three round icon buttons that match */
.top .sh-bell,.top .theme,.top .me{width:40px;height:40px;border-radius:50%;flex:none}
.top .sh-bell{border:1px solid var(--line);background:var(--card)}
.top .sh-bell svg{width:18px;height:18px}
.top .sh-bell .sh-dot{top:7px;right:8px}
.top .theme{border:1px solid var(--line);background:var(--card)}
@media (max-width:1560px){.top{column-gap:18px}.top .nav{gap:17px}}
@media (max-width:1400px){.top .nav{gap:15px}.top .brand{gap:10px}.top .brand .biz{padding:6px 8px;font-size:13.5px}}
@media (max-width:1300px){.top .nav button{font-size:14px}.top .nav{gap:13px}.top .brand .biz{font-size:13px}}
#p-settings{max-width:1240px!important}

/* ================= ask-your-team launcher (every page except Home) ================= */
/* Owner 5 Nov 2026 ("shrink dock"): closed, Ask your team is a 56 px round button with the three faces; it opens the same panel. */
:root{--ask-size:56px;--ask-off:16px;--ask-clear:calc(var(--ask-size) + var(--ask-off) + 12px)}/* ONE number for "keep clear of the Ask button": its size + offset + 12 px air. Page ends and side panels pad their last content by this. */
.tb-launch{position:fixed;right:20px;bottom:var(--ask-off);z-index:55;display:flex;align-items:center;justify-content:center;gap:0;width:var(--ask-size);height:var(--ask-size);padding:0;border-radius:50%;background:var(--card);border:1px solid var(--line);box-shadow:0 18px 40px -18px rgba(12,37,41,.5),0 2px 6px rgba(12,37,41,.08);font-weight:700;font-size:15px;color:var(--ink);transition:transform .18s,box-shadow .18s,border-color .18s}
.tb-launch:hover{transform:translateY(-2px);border-color:var(--teal);box-shadow:0 22px 44px -18px rgba(63,107,95,.55),0 2px 6px rgba(12,37,41,.08)}
.tb-launch .faces{display:flex;flex:none}
.tb-launch .faces img{width:24px;height:24px;border-radius:50%;object-fit:cover;border:2px solid var(--card);margin-left:-11px}
.tb-launch .faces img:first-child{margin-left:0}
.tb-launch .tb-lt{display:none}
.tb-launch .tb-lc{display:none}
body[data-page=home] .tb-launch,body.dockon .tb-launch,body.oncall .tb-launch,body[data-page=brain] .tb-launch{display:none}

/* corner chat: Call lives inside it */
.dock .dh .tb-dcall{width:auto;height:30px;padding:0 11px 0 9px;border-radius:9px;display:inline-flex;align-items:center;gap:6px;background:var(--tealsoft);color:var(--teal);font-size:13px;font-weight:700}
.dock .dh .tb-dcall svg{width:15px;height:15px}
.dock .dh .tb-dcall:hover{filter:brightness(.96);background:var(--tealsoft)}
.dock .dh .tb-dcall + button{margin-left:0}
.dock .db{min-height:0}
.tb-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.tb-chips button{font-size:12.5px;font-weight:600;padding:6px 11px;border-radius:999px;background:var(--soft);color:var(--ink2);text-align:left}
.tb-chips button:hover{background:var(--tealsoft);color:var(--teal)}

/* v13: a little room under the last row; the floating Ask bar sits in the corner and can be closed (owner 4 Nov: 96px read as empty space) */
body:not([data-page=home]):not([data-page=brain]) .page.on{padding-bottom:var(--ask-clear)}

/* ================= v13b: compact chrome so work fits on one screen ================= */
/* demo switches: a small corner chip that opens on hover, not a full row at the top */
.demo2{position:fixed;left:16px;bottom:16px;z-index:45;margin:0;padding:4px;gap:4px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 30px -14px rgba(12,37,41,.45)}
.demo2 > :not(:first-child){display:none}
.demo2:hover > *,.demo2:focus-within > *{display:inline-flex}
.demo2 > span:first-child{padding:5px 8px;font-weight:700;cursor:default}
/* slimmer top bar */
.top{height:60px}
.top .nav,.top .nav button{height:60px}
.top .nav button.on::after{bottom:10px}
.top .sh-bell,.top .theme,.top .me{width:36px;height:36px}
/* page titles: one tight row */
.ph2{margin:10px 0 14px;align-items:center}
.ph2 h1{font-size:24px;line-height:1.2}
.ph2 > div:first-child{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
.ph2 .sub{margin-top:0;font-size:13.5px}
.ix-hd,.ix-hd[class]{margin:10px 0 12px}
.ix-hd h1{font-size:24px}
/* stat tiles: compact single line */
.statrow{gap:10px;margin-bottom:12px}
.st1{padding:10px 16px;border-radius:14px}
.st1 .ici{width:32px;height:32px;border-radius:10px}
.st1 .ici svg{width:16px;height:16px}
.ix-hd > div:first-child{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}
.ix-hd{align-items:center}
.demo2{left:10px;bottom:10px;padding:2px;opacity:.55;transition:opacity .15s}
.demo2:hover,.demo2:focus-within{opacity:1}
.demo2 > span:first-child{padding:3px 7px;font-size:11.5px}

/* Owner 4 Nov: at 1280px the clinic name ran into Home. Keep it on one line and let it shorten instead. */
.top .brand{min-width:0;max-width:100%;overflow:hidden}
.top .brand b{flex:none}
.top .brand .biz{display:block;flex:0 1 auto;min-width:0;max-width:240px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
body:not([data-page=home]):not([data-page=brain]) #p-inbox.page.on{padding-bottom:0}
body[data-page=inbox] .wrap{padding-bottom:16px}
