/* HUB-PX-v1: the parts Team, Work and Agenda share that house.css does not have yet. Own vocabulary (hb-px-*), the house tokens only.
   Stat tiles, count chips, the access matrix, stage pickers, the offboarding sheet, plan cards, the people rows of the agenda and
   the "needs a day" cards. Everything sits on the same surfaces as the rest of the hub (--ta-tile, --hb-fill, --ta-chip). */

/* ── a row of small numbers ───────────────────────────────────────────── */
.hb-px-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:22px 0 0}
.hb-px-stat{display:flex;flex-direction:column;gap:2px;min-width:0;padding:16px 20px 15px;border-radius:18px;background:var(--ta-tile)}
.hb-px-stat b{font-size:26px;line-height:32px;font-weight:600;letter-spacing:.2px;font-variant-numeric:tabular-nums;color:var(--ta-ink)}
.hb-px-stat span{font-size:13px;line-height:18px;color:var(--hb-mute)}
.hb-px-stat.warn b{color:var(--ta-amber)}
.hb-px-stat.bad b{color:var(--ta-red)}
html[data-wp] .hb-px-stat{background-color:var(--lg-pane,var(--ta-tile))}

/* ── a bar of controls: chips on the left, actions on the right ───────── */
.hb-px-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;margin:22px 0 14px}
.hb-px-bar .hb-tabs{margin:0}
.hb-px-tag{display:inline-flex;align-items:center;gap:5px;height:20px;padding:0 8px;margin-left:8px;border-radius:10px;background:var(--ta-chip);color:var(--hb-mute);font-size:11px;line-height:1;font-weight:600;letter-spacing:.01em;white-space:nowrap;vertical-align:middle}
.hb-px-tag.ok{background:rgba(48,209,88,.14);color:var(--ta-green)}
.hb-px-tag.bad{background:rgba(255,69,58,.14);color:var(--ta-red)}
.hb-px-tag.wait{background:rgba(255,159,10,.14);color:var(--ta-amber)}
.hb-px-mute{color:var(--hb-mute)}

/* ── the access matrix ────────────────────────────────────────────────── */
.hb-px-mx{border-collapse:collapse;width:100%;font-size:14px;line-height:20px}
.hb-px-mx th,.hb-px-mx td{padding:10px 8px;border-top:1px solid var(--ta-line-2);text-align:center;vertical-align:middle;white-space:nowrap}
.hb-px-mx thead th{border-top:0;padding-top:16px;padding-bottom:12px;font-weight:400}
.hb-px-mx th:first-child,.hb-px-mx td:first-child{text-align:left;padding-left:24px;min-width:190px}
.hb-px-mx th:last-child,.hb-px-mx td:last-child{padding-right:24px}
.hb-px-mx th:first-child,.hb-px-mx td:first-child{position:sticky;left:0;z-index:1;background:var(--ta-tile)}
.hb-px-mx .hb-px-scr{display:flex;align-items:center;gap:8px;font-weight:600}
.hb-px-mx .hb-px-scr small{font-weight:400}
.hb-px-col{display:inline-flex;flex-direction:column;align-items:center;gap:4px;min-width:64px;padding:6px 8px;border:0;border-radius:12px;background:transparent;color:var(--ta-ink);font:inherit;cursor:pointer}
.hb-px-col:hover{background:var(--hb-fill)}
.hb-px-col .hb-p{width:30px;height:30px;margin:0;font-size:11px;box-shadow:none}
.hb-px-col b{font-size:13px;line-height:16px;font-weight:600}
.hb-px-col small{font-size:11px;line-height:14px;color:var(--hb-mute)}
.hb-px-col[aria-pressed="true"]{background:var(--hb-fill);box-shadow:inset 0 0 0 1.5px var(--ta-link)}
.hb-px-mx td.is-focus,.hb-px-mx th.is-focus{background:color-mix(in srgb,var(--ta-blue) 7%,transparent)}
.hb-px-mx .hb-switch:disabled{opacity:.5}
.hb-px-mx tfoot td{font-size:13px;color:var(--hb-mute);font-variant-numeric:tabular-nums}
.hb-px-mx tr[hidden]{display:none}

/* ── who owns what: a person picker, then one line per screen ─────────── */
.hb-px-own{display:flex;flex-wrap:wrap;gap:8px;padding:18px 24px 6px}
.hb-px-lines{padding:4px 0 6px}
.hb-px-line{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 16px;padding:11px 24px;border-top:1px solid var(--ta-line-2)}
.hb-px-line:first-child{border-top:0}
.hb-px-line b{font-size:15px;line-height:20px;font-weight:600}
.hb-px-line small{display:block;font-size:12px;line-height:16px;color:var(--hb-mute)}
.hb-px-stage button{min-width:40px;padding:0 10px}
.hb-px-empty{padding:26px 24px;color:var(--hb-mute);font-size:15px;line-height:22px}

/* ── offboarding ──────────────────────────────────────────────────────── */
.hb-px-off{display:grid;gap:2px;margin:0 -8px}
.hb-px-step{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:start;gap:10px;padding:9px 8px;border-radius:10px}
.hb-px-step:hover{background:var(--hb-fill)}
.hb-px-step .hb-check{margin-top:1px}
.hb-px-step b{display:block;font-size:14px;line-height:20px;font-weight:600}
.hb-px-step small{display:block;font-size:12px;line-height:16px;color:var(--hb-mute)}
.hb-px-step time{font-size:12px;line-height:20px;color:var(--hb-mute);white-space:nowrap;font-variant-numeric:tabular-nums}
.hb-px-head{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.hb-px-offrow{display:flex;align-items:center;gap:14px;padding:14px 24px;border-top:1px solid var(--ta-line-2)}
.hb-px-offrow:first-child{border-top:0}
.hb-px-offrow > div{flex:1;min-width:0}
.hb-px-offrow b{display:block;font-size:15px;line-height:20px}
.hb-px-offrow small{display:block;font-size:13px;line-height:18px;color:var(--hb-mute)}

/* ── first 90 days ────────────────────────────────────────────────────── */
.hb-px-plans{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:20px}
.hb-px-plan{display:flex;flex-direction:column;gap:12px;padding:22px 24px 20px;border-radius:18px;background:var(--ta-tile);min-width:0}
.hb-px-plan-hd{display:flex;align-items:center;gap:12px}
.hb-px-plan-hd .hb-p{width:36px;height:36px;margin:0;box-shadow:none}
.hb-px-plan-hd > div{flex:1;min-width:0}
.hb-px-plan-hd h3{margin:0;font-size:18px;line-height:22px;font-weight:600;letter-spacing:-.2px}
.hb-px-plan-hd small{display:block;font-size:13px;line-height:18px;color:var(--hb-mute)}
.hb-px-plan .hb-seg{align-self:flex-start}
.hb-px-plan .hb-seg button{min-width:64px}
.hb-px-when{display:flex;gap:8px;align-items:center;font-size:13px;color:var(--hb-mute)}
.hb-px-prob{display:grid;gap:2px;padding:10px 0 0;border-top:1px solid var(--ta-line-2)}
.hb-px-prob:first-of-type{border-top:0;padding-top:0}
.hb-px-prob b{font-size:14px;line-height:20px;font-weight:600;overflow-wrap:anywhere}
.hb-px-prob small{font-size:12px;line-height:17px;color:var(--hb-mute);overflow-wrap:anywhere}

/* ── the agenda: people rows, the list, the "needs a day" cards ───────── */
.hb-px-lanes{display:grid;grid-template-columns:minmax(96px,132px) repeat(7,minmax(112px,1fr));gap:10px;overflow-x:auto;padding-bottom:6px}
.hb-px-lanes > h3{margin:0;font-size:13px;line-height:18px;font-weight:600;color:var(--ta-ink-3);display:flex;align-items:baseline;gap:6px}
.hb-px-lanes > h3 b{font-size:22px;line-height:26px;color:var(--ta-ink)}
.hb-px-lanes > h3.today b{display:inline-grid;place-items:center;min-width:32px;height:32px;padding:0 4px;border-radius:16px;background:var(--ta-blue);color:var(--hb-on-blue,#fff)}
.hb-px-ln{display:flex;align-items:center;gap:8px;min-width:0;padding-top:8px;font-size:14px;line-height:18px;font-weight:600}
.hb-px-ln .hb-p{width:28px;height:28px;margin:0;box-shadow:none;flex:none}
.hb-px-ln span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hb-px-ln.co{color:var(--ta-ink-3)}
.hb-px-lanes .hb-wd-body{min-height:64px}
.hb-px-list{display:grid;gap:22px}
.hb-px-day{display:grid;gap:8px}
.hb-px-day h3{margin:0;font-size:15px;line-height:20px;font-weight:600;display:flex;align-items:baseline;gap:8px}
.hb-px-day h3 small{font-size:13px;font-weight:400;color:var(--hb-mute)}
.hb-px-day.today h3{color:var(--ta-blue)}
.hb-px-list .hb-bd{width:100%}
.hb-px-tray{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.hb-px-card{display:flex;flex-direction:column;gap:8px;min-width:0;padding:16px 18px 14px;border-radius:18px;background:var(--ta-tile)}
.hb-px-card.drag{opacity:.4}
.hb-px-card[draggable="true"]{cursor:grab}
.hb-px-card b{font-size:15px;line-height:20px;font-weight:600;overflow-wrap:anywhere}
.hb-px-card p{margin:0;font-size:13px;line-height:18px;color:var(--hb-mute);overflow-wrap:anywhere}
.hb-px-card .hb-act{margin-top:auto;padding-top:4px}
.hb-px-card .hb-btn{height:30px;padding:0 14px;font-size:13px}
.hb-px-kind{align-self:flex-start;display:inline-flex;height:20px;align-items:center;padding:0 8px;border-radius:10px;font-size:11px;font-weight:600;letter-spacing:.02em;background:var(--ta-chip);color:var(--hb-mute)}
.hb-px-kind.k-alert{background:rgba(255,69,58,.14);color:var(--ta-red)}
.hb-px-kind.k-proposal{background:rgba(255,159,10,.14);color:var(--ta-amber)}
.hb-px-kind.k-client{background:rgba(10,132,255,.14);color:var(--ta-blue)}

@media (max-width:640px){
  .hb-px-mx th:first-child,.hb-px-mx td:first-child{min-width:150px;padding-left:16px}
  .hb-px-plans{grid-template-columns:minmax(0,1fr)}
  .hb-px-own,.hb-px-line,.hb-px-offrow{padding-left:16px;padding-right:16px}
}

/* RSVP-v1 / MINUTES-v1: the "are you coming" row and the minutes inside a schedule block's sheet */
.hb-meet{display:grid;gap:12px;padding:14px;border-radius:14px;background:var(--hb-fill)}
.hb-meet[hidden]{display:none}
.hb-meet-rsvp{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hb-meet-rsvp b{margin-right:auto}
.hb-meet .hb-btn.on{background:var(--ta-accent,#0a84ff);color:#fff !important}


/* FILES-v1 */
.hb-filebtn{font:inherit;font-size:13px;padding:5px 12px;min-height:32px;border-radius:999px;border:0;background:var(--hb-fill);color:var(--ta-ink);cursor:pointer;white-space:nowrap}
.hb-filebtn:hover{background:var(--hb-fill-2)}
.hb-files li{display:flex;align-items:center;justify-content:space-between;gap:10px}
.hb-files small{opacity:.65}

/* WINS-v1 */
.hb-wins{padding:14px 18px}
.hb-wins-board{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:10px}
.hb-wins-board small{opacity:.65}
.hb-wins-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 12px 4px 6px;border-radius:999px;background:var(--hb-fill)}
.hb-wins-list li{display:flex;align-items:center;gap:10px}
.hb-wins-list li>span:not(.hb-p){flex:1;min-width:0}
.hb-wins-list .hb-p{flex:none}
.hb-wins-list small{opacity:.6;white-space:nowrap}
