/* Partner program (/partners/) in the painted theme (template-parts/painted/pages/partners.php): only what its windows
   alone draw, the header's directory profile beside the agency's booking page, the plan split over the workspaces with
   the agency's invoice, the client's sign-in page, the invite email, the Admin panel's clients, the referrals and the
   way in. The rows, the people, the chips, the strips and the buttons are the kit's, and so is the app at the agency's
   own address (assets/css/lines.css: .pp-card, .pp-who, .pp-btn, .ag-win, .ag-who). */

/* a page in a browser: its bar with the dots and the address */
.ptn-br { overflow: hidden; }
.ptn-bar { gap: 12px; }
.ptn-dots { display: inline-flex; flex: none; gap: 6px; }
.ptn-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(70, 52, 40, .18); }
.ptn-url { display: inline-flex; align-items: center; flex: 1 1 auto; min-width: 0; height: 30px; padding: 0 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-radius: 999px; background: rgba(255, 255, 255, .7); font: 500 12px/1 var(--mono); color: var(--mute); }
.ptn-foot { padding: 12px 16px 16px; }
.ptn-foot .pp-who { margin: 0; }
/* a button in the agency's own colours, on its pages and in its emails */
.ptn-lp-btn, .ptnh-ok { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 10px; background: #15171E; color: #C8F051; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.ptn-lp-btn svg.i { width: 15px; height: 15px; }
.ptn-web { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 13px; border-radius: 999px; box-shadow: inset 0 0 0 1.3px rgba(22, 22, 26, .16); font-weight: 600; font-size: 12.5px; color: var(--ink); white-space: nowrap; }

/* ---------- the header's piece: the directory's profile, an arrow, the agency's own booking page ---------- */
.ptnh { display: grid; grid-template-columns: minmax(0, 1.15fr) 44px minmax(0, 1fr); align-items: center; gap: 0 10px; text-align: left; }
.ptnh-to { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--cd); box-shadow: 0 6px 16px -8px rgba(80, 52, 40, .5); }
.ptnh-to svg.i { width: 18px; height: 18px; }
.ptn-dir { display: grid; gap: 16px; padding: 20px 22px; background: #fff; }
.ptn-top { display: flex; align-items: center; gap: 14px; }
.ptn-top img.ag-mk { flex: none; width: 46px; height: 46px; border-radius: 12px; }
.ptn-top > span { display: grid; justify-items: start; gap: 6px; }
.ptn-cat { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--ct); font-weight: 600; font-size: 11.5px; color: var(--cd); }
.ptn-top b { font-weight: 600; font-size: 21px; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.ptn-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 12px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); list-style: none; }
.ptn-facts li { display: grid; gap: 5px; min-width: 0; }
.ptn-facts small { font: 600 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.ptn-facts span { font-weight: 600; font-size: 13px; line-height: 1.3; color: var(--ink); }
.ptn-svc { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ptn-svc li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); }
.ptn-svc svg.i { flex: none; width: 14px; height: 14px; stroke-width: 2.4; color: var(--ai-d); }
.ptn-act { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-btn.ptnh-go { box-shadow: 0 0 0 4px var(--ct); }
.ptnh-cal { overflow: hidden; }
.ptnh-in { display: grid; gap: 10px; padding: 18px 20px 20px; background: #fff; }
.ptnh-who { display: flex; align-items: center; gap: 10px; margin: 0; }
.ptnh-who img.ag-mk { flex: none; width: 30px; height: 30px; border-radius: 8px; }
.ptnh-who b { display: block; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.ptnh-who small { display: block; font-size: 12px; color: var(--mute); }
.ptnh-k { margin: 4px 0 0; font: 600 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.ptnh-days, .ptnh-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ptnh-slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ptnh-day, .ptnh-slot { display: grid; place-items: center; gap: 3px; padding: 8px 0; border-radius: 10px; background: var(--sunk); font-weight: 600; font-size: 13px; color: var(--ink); }
.ptnh-day small { font: 600 9px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.ptnh-day.on, .ptnh-slot.on { background: #15171E; color: #C8F051; }
.ptnh-day.on small { color: rgba(200, 240, 81, .75); }
.ptnh-ok { justify-self: stretch; margin-top: 4px; }
.ptnh-cap { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; font-weight: 600; font-size: 14px; color: var(--ink); }
.ptnh-cap svg.i { width: 15px; height: 15px; color: var(--cd); }

/* ---------- 1. the plan over the workspaces, and the agency's own invoice ---------- */
.pp-card.ptn-alloc > li { grid-template-columns: minmax(0, 1fr) 62px 50px 64px; }
.ptn-alloc > li > .ptn-n, .ptn-alloc > li.pp-th > span:nth-child(n+2) { justify-self: end; }
.ptn-n { font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--ink); }
.pp-card.ptn-alloc > li.ptn-on { margin: 0 -12px; padding: 0 12px; background: var(--ct); }
.ptn-inv { margin: 10px 0 0; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(70, 50, 36, .06), 0 10px 22px -16px rgba(80, 52, 40, .4); }
.ptn-inv p { margin: 0; }
.ptn-inv-h { display: flex; align-items: baseline; gap: 8px; }
.ptn-inv-h img.ag-mk { align-self: center; width: 22px; height: 22px; border-radius: 6px; }
.ptn-inv-h b { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.ptn-inv-h small { margin-left: auto; font: 500 11px/1 var(--mono); color: var(--mute); }
.ptn-inv-r { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px !important; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink); }
.ptn-inv-r b { font-weight: 600; color: var(--cd); }

/* ---------- 2. the page the client opens from the sign-in link ---------- */
.ptn-link-pg { display: grid; justify-items: center; gap: 10px; padding: 28px 26px 22px; background: #fff; text-align: center; }
.ptn-link-pg img.ag-mk { width: 40px; height: 40px; border-radius: 11px; }
.ptn-lp-h { font-weight: 600; font-size: 18px; letter-spacing: -.02em; color: var(--ink); }
.ptn-lp-p { max-width: 340px; margin: 0; font-size: 13.5px; line-height: 1.45; color: #4A4953; }
.ptn-lp-f { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 12px; color: var(--mute); }
.ptn-lp-f svg.i { width: 13px; height: 13px; }

/* ---------- 3. the invite email under the agency's brand ---------- */
.ptn-m { padding: 16px 18px 14px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(70, 50, 36, .06), 0 10px 22px -16px rgba(80, 52, 40, .4); }
.ptn-m p { margin: 0; }
.ptn-m-to { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; color: var(--mute); }
.ptn-m-to small { font: 600 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.ptn-m .ptn-m-s { margin-top: 10px; font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -.02em; color: var(--ink); }
.ptn-m .ptn-m-l { margin: 6px 0 14px; font-size: 14px; color: #4A4953; }
.ptn-m .ptn-m-ft { display: flex; align-items: center; gap: 7px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-2); font-weight: 600; font-size: 12px; color: var(--ink); }
.ptn-m-ft img.ag-mk { width: 14px; height: 14px; border-radius: 4px; }
.ptn-m-ft span { margin-left: auto; font: 500 11px/1 var(--mono); color: var(--mute); }

/* ---------- 4. the Admin panel's clients: the registrations, one opened ---------- */
.ptn-regs-h { display: flex; align-items: baseline; gap: 8px; margin: 2px 2px 8px; }
.ptn-regs-h b { font-weight: 600; font-size: 14px; color: var(--ink); }
.ptn-regs-h span { font: 600 12px/1 var(--mono); color: var(--cd); }
.ptn-regs-h small { margin-left: auto; font: 500 11px/1 var(--mono); color: var(--mute); }
.pp-card.ptn-reg { margin: 0; }
.pp-card.ptn-reg > li { grid-template-columns: minmax(0, 1fr) max-content; }
.pp-card.ptn-reg > li.ptn-on { margin: 0 -12px; padding: 0 12px; background: var(--ct); }
.pp-card.ptn-ws { display: grid; gap: 8px; padding: 12px 14px; }
.ptn-ws-h { display: flex; align-items: center; gap: 10px; margin: 0; }
.ptn-ws-h .av { width: 26px; height: 26px; border-radius: 7px; font-size: 9px; }
.ptn-ws-h b { display: block; font-weight: 600; font-size: 13.5px; color: var(--ink); }
.ptn-ws-h small { display: block; font-size: 11.5px; color: var(--mute); }
.ptn-ws-h .st { margin-left: auto; }
.ptn-ws-s { margin: 0; font: 500 12px/1.3 var(--mono); color: var(--ink); }
.ptn-ws-a { display: flex; justify-content: flex-end; gap: 8px; margin: 0; }

/* ---------- 5. the referral link, the two numbers that matter, the teams referred ---------- */
.ptn-link { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 9px 9px 14px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(70, 50, 36, .06), 0 10px 22px -16px rgba(80, 52, 40, .4); }
.ptn-link > svg.i { flex: none; width: 15px; height: 15px; color: var(--cd); }
.ptn-link code { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 500 12.5px/1 var(--mono); color: var(--ink); }
.ptn-sts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0 0; }
.ptn-sts p { display: grid; gap: 7px; margin: 0; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(70, 50, 36, .06), 0 10px 22px -16px rgba(80, 52, 40, .4); }
.ptn-sts small { font: 600 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.ptn-sts b { font-weight: 600; font-size: 24px; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.ptn-sts b.ptn-rec { font-size: 19px; line-height: 24px; color: var(--ai-d); }
.pp-card.ptn-teams > li { grid-template-columns: minmax(0, 1fr) max-content; }
.ptn-when { font: 500 11.5px/1 var(--mono); color: var(--mute); }

/* ---------- 6. the way in: three steps, the last one marked soon ---------- */
.pp-card.ptn-steps { counter-reset: none; }
.pp-card.ptn-steps > li { grid-template-columns: 18px 34px minmax(0, 1fr); gap: 12px; min-height: 66px; }
.ptn-sn { font: 600 12px/1 var(--mono); color: var(--cd); }
.ptn-steps .disc { width: 34px; height: 34px; background: var(--ct); color: var(--cd); }
.ptn-steps .disc svg.i { width: 16px; height: 16px; }
.ptn-steps b { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink); }
.ptn-steps small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--mute); }
.st.ptn-soon { height: 20px; padding: 0 8px; background: color-mix(in srgb, #D9880A 15%, #fff); font-size: 11px; color: #B45309; }

/* a narrower screen: the profile over the booking page, the arrow turned down */
@media (max-width: 1100px) {
  .ptnh { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ptnh-to { justify-self: center; transform: rotate(90deg); }
}
@media (max-width: 760px) {
  .ptn-dots { display: none; }
  .ptn-dir { padding: 16px; }
  .ptn-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ptn-facts li:last-child { grid-column: 1 / -1; }
  .ptnh-days { gap: 4px; }
  .ptnh-day, .ptnh-slot { font-size: 12px; }
  .ptn-link .pp-btn { padding: 0 11px; }
  .pp-card.ptn-alloc > li { grid-template-columns: minmax(0, 1fr) 46px 40px 54px; gap: 6px; }
}
