/* Customer portal (portal.html): builds on the hub's styles (hub.css, theme-modern.css, theme-light.css). */
.btn[hidden], .hidden { display: none !important; }
#portal { flex-direction: column; }
#portal .panel { gap: 16px; }
.wide-card { width: min(640px, 100%); }
.auth-card textarea { resize: vertical; font: inherit; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.two label, .auth-card > label { display: flex; flex-direction: column; gap: 6px; }
form.busy { pointer-events: none; opacity: 0.85; }

.levels { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.levels legend { font-weight: 600; margin-bottom: 8px; }
.auth-card .level, .level { display: flex; flex-direction: row; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--stroke-soft); background: rgba(255, 255, 255, 0.06); cursor: pointer; }
.level input { margin-top: 3px; accent-color: var(--accent); flex: none; width: auto; }
.level > span { display: flex; flex-direction: column; gap: 2px; }
.level:has(input:checked) { border-color: var(--accent); background: rgba(125, 211, 252, 0.10); }

.portal-upcoming { padding: 12px 14px; border-radius: 16px; border: 1px solid var(--stroke-soft); background: rgba(255, 255, 255, 0.06); display: flex; flex-direction: column; gap: 6px; }
.portal-upcoming .up-row { font-size: 14px; }
.dash-stats { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }

/* one shop in full */
.portal-shop { width: min(920px, calc(100vw - 24px)); padding: 0; }
.portal-shop .dialog-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 22px; background: inherit; border-bottom: 1px solid var(--stroke-soft); backdrop-filter: blur(14px); }
.portal-shop .dialog-head h2 { margin: 0 0 4px; }
#shopBody { padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.shop-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.shop-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; flex: 1; min-width: 220px; }
.defect-text { color: var(--defect); font-weight: 600; }
.thumb { all: unset; cursor: zoom-in; display: inline-block; border-radius: 10px; overflow: hidden; border: 1px solid var(--stroke-soft); background: rgba(0, 0, 0, 0.2); }
.thumb img { display: block; width: 64px; height: 64px; object-fit: cover; }
.thumb.building img { width: 220px; height: 150px; }
.thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; flex: none; }
.asset-card { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--stroke-soft); background: rgba(255, 255, 255, 0.06); display: flex; flex-direction: column; gap: 10px; }
.asset-top { display: flex; gap: 14px; align-items: flex-start; }
.asset-top h3 { margin: 0 0 4px; font-size: 16px; }
.asset-top .thumb img { width: 84px; height: 84px; }
.pills { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; font-size: 14px; }
.checklist li.def { background: rgba(255, 155, 138, 0.10); }
.checklist li .pill { flex: none; min-width: 84px; text-align: center; }
.checklist .note { display: block; color: var(--text-2); font-size: 13px; margin-top: 2px; }
.checklist .thumb img { width: 48px; height: 48px; }
.asset-card details summary { cursor: pointer; color: var(--text-2); font-size: 13px; padding: 2px 0; }
.asset-card details[open] summary { margin-bottom: 8px; }

@media (max-width: 700px) {
  .two { grid-template-columns: 1fr; }
  .portal-shop .dialog-head { padding: 14px 16px; flex-wrap: wrap; }
  #shopBody { padding: 14px 16px 20px; }
  .asset-top { flex-direction: column; }
  .thumb.building img { width: 100%; height: auto; max-height: 220px; }
  .checklist li { flex-wrap: wrap; }
  .dash-row-head .btn.small { flex: 1 1 auto; }
}

/* the customer's logo(s) at the top (transparent; dark ones are inverted on the dark theme: /logos.css) */
.scope-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.scope-head h2 { margin: 0 0 4px; }
.scope-logos { display: flex; gap: 8px; align-items: center; flex: none; }
.scope-logos[hidden] { display: none; }
.scope-logos img { height: 64px; max-width: 150px; object-fit: contain; }
@media (max-width: 600px) {
  .scope-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .scope-logos img { height: 52px; max-width: 120px; }
}

/* an admin's read-only preview of a customer's view */
.preview-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 16px 0; padding: 10px 14px; border-radius: 16px; font-size: 13px; color: var(--text); background: linear-gradient(90deg, rgba(251, 191, 36, 0.18), rgba(251, 191, 36, 0.06)); border: 1px solid rgba(251, 191, 36, 0.55); }
.preview-banner.hidden { display: none; }
.link-banner { background: linear-gradient(90deg, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0.05)); border-color: rgba(59, 130, 246, 0.5); }
.link-banner form { flex: 1 1 320px; align-items: center; }
.link-banner form .input { flex: 1; min-width: 200px; }
.link-banner form .error:empty { display: none; }
.link-banner form.hidden { display: none; }
.preview-banner .grow { flex: 1; min-width: 220px; }
.preview-tag { flex: none; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #3b2a00; background: #fbbf24; }
@media (max-width: 900px) { .preview-banner { margin: 10px 12px 0; } }

/* visits calendar (portal.js renderCalendar; day cells use the hub's month-grid styles) */
.portal-cal { padding: 14px; border-radius: 18px; border: 1px solid var(--stroke-soft); background: rgba(255, 255, 255, 0.04); display: flex; flex-direction: column; gap: 10px; }
.portal-cal .cal-nav { align-items: center; }
.portal-cal .cal-nav h3 { margin: 0; min-width: 150px; text-align: center; font-size: 16px; }
.portal-cal #calNext { margin: 2px 0 0; }
.portal-month { min-height: 0; grid-template-rows: auto repeat(var(--weeks, 5), minmax(84px, auto)); }
.portal-month .m-count { display: none; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 99px; background: var(--accent); color: #0b1222; }
.cal-day-list { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; border-top: 1px solid var(--stroke-soft); }
.cal-visit { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(128, 140, 200, 0.08); }
.cal-visit .grow { flex: 1; min-width: 0; }
.cal-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; background: var(--text-3); }
.cal-dot.booked { background: var(--accent); } .cal-dot.started { background: var(--progress); } .cal-dot.done { background: var(--clear); } .cal-dot.defects { background: var(--defect); }
@media (max-width: 700px) {
  /* phones: each day shows how many visits; tap it to list them */
  .portal-month { grid-template-rows: auto repeat(var(--weeks, 5), 48px); }
  .portal-month .m-jobs { display: none; }
  .portal-month .m-count { display: inline-block; }
  .portal-month .m-day-head { flex-direction: column; gap: 2px; }
  .portal-cal .cal-nav h3 { min-width: 0; }
}
.portal-cal .m-legend { display: inline-flex; } /* (the hub hides it on small screens) */
.portal-month .m-count.started { background: var(--progress); } .portal-month .m-count.done { background: var(--clear); } .portal-month .m-count.defects { background: var(--defect); color: #fff; }

/* Bookings tab (portal-bookings.js) */
.bk-form { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--stroke-soft); background: rgba(255, 255, 255, 0.04); }
.bk-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.bk-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-form label.bk-kind { flex-direction: row; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--stroke-soft); cursor: pointer; color: var(--text); }
.bk-kind:has(input:checked) { border-color: var(--accent); background: rgba(56, 189, 248, 0.10); }
.bk-kind > span { display: flex; flex-direction: column; gap: 2px; }
.bk-list { display: flex; flex-direction: column; gap: 8px; }
.bk-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--stroke-soft); background: rgba(255, 255, 255, 0.04); }
.bk-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
@media (max-width: 700px) { .bk-form .two, .bk-kinds { grid-template-columns: 1fr; } }

/* ── Overview: the schedule (week or month), booking requests, shops, surveys on one page ── */
#portal .portal-section { display: flex; flex-direction: column; gap: 14px; }
#portal .portal-section .section-title { margin: 0 0 4px; }
.head-actions { align-items: center; }
.cal-views { display: inline-flex; flex: none; padding: 3px; border-radius: 9px; background: var(--surface-2, rgba(255,255,255,0.06)); border: 1px solid var(--line, var(--stroke-soft)); }
.cal-views button { flex: none; padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 550; color: var(--text-2); }
.cal-views button.on { background: var(--surface, var(--glass-strong)); color: var(--text); box-shadow: var(--shadow, none); }
.portal-cal .cal-nav h3 { min-width: 170px; }

/* the week: seven tall days, every visit in full */
.portal-month.portal-week { grid-template-rows: auto minmax(200px, auto); }
.portal-week .m-day { padding: 8px; }
.portal-week .m-jobs { gap: 5px; }
.portal-week .m-job { white-space: normal; }
.m-wd { display: none; }
.m-free { font-size: 12px; color: var(--text-3); padding: 2px 4px; }
.m-day:hover .m-free { color: var(--accent); }

/* surveys and waiting requests on the calendar */
.m-job.requested { border-left: 3px dashed var(--accent) !important; background: var(--primary-soft, rgba(56,189,248,0.12)) !important; font-style: italic; }
.m-legend i.survey, .cal-dot.survey, .portal-month .m-count.survey { background: rgb(167, 139, 250); }
.m-legend i.requested, .cal-dot.requested { background: transparent; border: 2px dashed var(--accent); box-sizing: border-box; }
.portal-month .m-count.requested { background: transparent; color: var(--accent); border: 1.5px dashed var(--accent); line-height: 15px; }

/* the picked day, with Schedule Now */
.cal-day-head { align-items: center; padding: 6px 0 2px; }
.cal-day-head h4 { margin: 0 0 2px; font-size: 17px; font-weight: 650; }
.schedule-now { padding: 10px 22px; font-size: 15px; }

/* Schedule Now: the booking form */
.portal-book { width: min(680px, calc(100vw - 24px)); padding: 0; }
.portal-book .dialog-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 22px; background: inherit; border-bottom: 1px solid var(--stroke-soft); }
.portal-book .dialog-head h2 { margin: 0 0 4px; }
#bookBody { padding: 16px 22px 22px; }
#bookBody .bk-form { border: 0; box-shadow: none; padding: 0; background: none; }

@media (max-width: 700px) {
  /* phones: the week is a list of days, each with its visits */
  .portal-month.portal-week { grid-template-columns: 1fr; grid-template-rows: none; gap: 6px; }
  .portal-week .m-dow { display: none; }
  .portal-week .m-day { flex-direction: row; align-items: flex-start; gap: 12px; min-height: 54px; }
  .portal-week .m-day-head { flex-direction: column; align-items: flex-start; width: 46px; flex: none; }
  .portal-week .m-num { display: flex; flex-direction: column; line-height: 1.1; font-size: 18px; }
  .portal-week .m-wd { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-3); }
  .portal-week .m-jobs { display: flex !important; flex-direction: column; flex: 1; min-width: 0; }
  .portal-week .m-count { display: none !important; }
  .portal-week .m-job .m-time { display: inline; }
  .portal-cal .cal-nav { width: 100%; }
  .portal-cal .cal-nav h3 { flex: 1; min-width: 0; }
  .cal-views { order: 5; width: 100%; }
  .cal-views button { flex: 1; text-align: center; }
  .schedule-now { width: 100%; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1; }
}
.portal-week .m-job .m-title { white-space: normal; overflow: visible; text-overflow: clip; }

/* Schedule a visit: the organization cards and the dealer group / shop picker (portal-bookings.js) */
.bk-field { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bk-field legend { padding: 0; margin-bottom: 8px; font-size: 13px; color: var(--text-2); }
.bk-orgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.bk-form label.bk-org { flex-direction: row; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--stroke-soft); cursor: pointer; color: var(--text); }
.bk-org:has(input:checked) { border-color: var(--accent); background: var(--primary-soft, rgba(56, 189, 248, 0.10)); }
.bk-org input { accent-color: var(--accent); flex: none; margin: 0; }
.bk-inspectors { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.bk-avatar { width: 34px; height: 34px; flex: none; font-size: 13px; }
.bk-org .grow, .bk-pick .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#bookBody label.df-search { flex-direction: row; align-items: center; gap: 10px; color: var(--text-3); }
#bookBody .bk-pick { max-height: 360px; overflow: auto; padding: 2px 4px 2px 2px; gap: 6px; }
.bk-group .dash-chev { transition: transform .15s; }
.bk-group.open .dash-chev { transform: rotate(90deg); color: var(--accent); }
.bk-pick .df-shops { margin: 0 0 6px 24px; }
.bk-pick .df-shop .df-logos img { height: 30px; width: 42px; }
.bk-pick .df-shop .df-mono { height: 30px; width: 42px; }
.bk-other-head, .bk-none { margin: 6px 2px 0; }
.bk-plain { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 700px) { .bk-pick .df-shops { margin-left: 8px; } #bookBody .bk-pick { max-height: 50vh; } }

/* Schedule a visit: dealer group first, then its shops (as on the hub's New job form) */
.bk-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.bk-gtile { padding: 10px 12px !important; }
.bk-gtile:hover .dash-chev { color: var(--accent); }
.bk-chosen { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--accent); background: var(--primary-soft, rgba(56, 189, 248, 0.10)); }
.bk-chosen .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.bk-head { margin: 8px 2px 0; }
@media (max-width: 700px) { .bk-groups { grid-template-columns: 1fr; } .bk-chosen { flex-wrap: wrap; } .bk-chosen .btn { width: 100%; } }

/* Site history (portal.js openSiteHistory): every visit to a shop, newest first */
.hist-list { display: flex; flex-direction: column; gap: 10px; }
.hist-visit { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--stroke-soft); background: rgba(255,255,255,0.05); display: flex; flex-direction: column; gap: 10px; }
.hist-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hist-top .grow { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 4px; }
.hist-date { width: 110px; display: flex; flex-direction: column; gap: 2px; flex: none; }
.hist-repairs { margin: 0; }
@media (max-width: 600px) { .hist-date { width: auto; } }

/* ───────── the Schedule tab (portal-schedule.js): like the hub's Schedule ───────── */
.ps { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 8px; }
.ps-left { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ps-card { padding: 18px; border-radius: 22px; border: 1px solid var(--stroke-soft); background: var(--glass, rgba(255, 255, 255, 0.05)); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ps-card h2 { margin: 0; font-size: 20px; }
.ps-left .list { max-height: none; overflow: visible; }
.ps-legend { font-size: 12px; }
.ps-entry { text-align: left; }
.ps-entry .jobno, .ps-detail .jobno { margin-right: 6px; }
.ps-entry-foot { margin-top: 6px; align-items: center; }
.ps-right { min-height: 420px; }
.ps-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; min-height: 380px; padding: 20px; }
.ps-empty h2 { margin: 0; }
.ps-empty p { margin: 0; max-width: 440px; }
.ps-empty-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgba(99, 102, 241, 0.16); color: var(--accent); }
.ps-detail { display: flex; flex-direction: column; gap: 14px; }
.ps-detail h2 { margin: 0 0 4px; }
.ps-detail p { margin: 0; }
.ps-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ps-facts > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--stroke-soft); }
.ps-notes { white-space: pre-wrap; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
/* month */
.ps-month { display: flex; flex-direction: column; gap: 12px; }
.ps-month h2 { margin: 0; font-size: 20px; }
.ps-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ps-dow { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3, var(--text-2)); padding: 0 4px; }
.ps-mday { all: unset; box-sizing: border-box; cursor: pointer; min-height: 92px; padding: 6px; border-radius: 12px; border: 1px solid var(--stroke-soft); display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.ps-mday:hover { border-color: var(--accent); }
.ps-mday.other { opacity: .45; }
.ps-mday.sel { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ps-mday.today .ps-mnum { background: var(--accent); color: #fff; }
.ps-mnum { align-self: flex-start; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.ps-chip { font-size: 11px; line-height: 1.3; padding: 2px 5px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(59, 130, 246, 0.18); border-left: 3px solid #3b82f6; }
.ps-chip.survey { background: rgba(167, 139, 250, 0.18); border-left-color: #a78bfa; }
.ps-chip.repair { background: rgba(56, 189, 248, 0.16); border-left-color: #38bdf8; }
.ps-chip.done { border-left-color: #22c55e; }
.ps-chip.defects { border-left-color: #ef4444; }
.ps-chip.started { border-left-color: #f59e0b; }
/* Schedule a job */
.ps-form { display: flex; flex-direction: column; gap: 14px; }
.ps-form h2 { margin: 0; }
.ps-step { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; border: 1px solid var(--stroke-soft); background: rgba(255, 255, 255, 0.03); }
.ps-step-head { display: flex; align-items: center; gap: 10px; }
.ps-step-head h3 { margin: 0; font-size: 16px; }
.ps-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: rgba(99, 102, 241, 0.2); color: var(--accent); flex: none; }
.ps-step.done .ps-num { background: #22c55e; color: #fff; }
.ps-step p { margin: 0; }
.ps-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--stroke-soft); }
.ps-seg button { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: 10px 8px; border-radius: 10px; font-weight: 600; }
.ps-seg button.on { background: var(--grad, var(--accent)); color: #fff; }
.ps-seg button:focus-visible, .ps-who:focus-visible, .ps-slot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ps-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ps-two label, .ps-inline { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.ps-whos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.ps-who { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; border: 1px solid var(--stroke); min-width: 0; }
.ps-who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ps-who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-who:hover { border-color: var(--accent); }
.ps-who.on { border-color: var(--accent); background: rgba(99, 102, 241, 0.16); box-shadow: inset 0 0 0 1px var(--accent); }
.ps-defs { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.ps-def { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--stroke-soft); cursor: pointer; }
.ps-def input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.ps-def > span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.ps-def > span > span { color: var(--text-2); }
.ps-warn { padding: 10px 12px; border-radius: 12px; background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.4); }
.ps-weeknav { align-items: center; }
.ps-slots { display: flex; flex-direction: column; gap: 6px; }
.ps-slot-row { display: grid; grid-template-columns: 64px repeat(4, minmax(0, 1fr)); gap: 6px; align-items: center; padding: 3px; border-radius: 12px; }
.ps-slot-row.on { background: rgba(99, 102, 241, 0.08); }
.ps-slot-day { display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--text-2); line-height: 1.15; }
.ps-slot-day b { font-size: 16px; color: var(--text, inherit); }
.ps-slot { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: 10px 4px; border-radius: 10px; border: 1px solid var(--stroke); font-size: 14px; font-weight: 600; white-space: nowrap; }
.ps-slot:hover:not(:disabled) { border-color: var(--accent); }
.ps-slot.on { background: var(--grad, var(--accent)); color: #fff; border-color: transparent; }
.ps-slot:disabled { cursor: not-allowed; opacity: .4; font-weight: 400; }
.ps-summary { padding: 12px 14px; border-radius: 14px; background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.3); font-size: 14px; }
.ps-book { padding: 14px 18px; font-size: 16px; }
@media (max-width: 900px) {
  .ps { grid-template-columns: 1fr; }
  .ps-right { min-height: 0; }
  .ps-empty { min-height: 0; }
}
@media (max-width: 560px) {
  .ps-card { padding: 14px; border-radius: 18px; }
  .ps-two { grid-template-columns: 1fr; }
  .ps-slot-row { grid-template-columns: 46px repeat(4, minmax(0, 1fr)); gap: 4px; }
  .ps-slot { padding: 10px 2px; font-size: 12.5px; }
  .ps-mday { min-height: 54px; padding: 4px; }
  .ps-chip { display: none; }
  .ps-mday:has(.ps-chip)::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); align-self: center; }
  .ps-whos { grid-template-columns: 1fr; }
}
.ps-form label.ps-def { flex-direction: row; }

/* (each company's own start times: any number of them; a closed day says so) */
.ps-slot-row { grid-template-columns: 64px minmax(0, 1fr); }
.ps-slot-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.ps-slot-row.closed .ps-slot-day { opacity: .5; }
.ps-closed { display: block; padding: 10px; border-radius: 10px; border: 1px dashed var(--stroke-soft); text-align: center; color: var(--text-2); font-size: 13px; }
@media (max-width: 560px) {
  .ps-slot-row { grid-template-columns: 46px minmax(0, 1fr); }
  .ps-slot-times { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 4px; }
}
/* People tab (portal-people.js; cards share hub.css .co-*) */
.pp-panel { display: flex; flex-direction: column; gap: 12px; }
.pp-panel h2 { margin: 0 0 4px; }
.pp-panel h3 { margin: 8px 0 0; font-weight: 600; }
.pp-panel p { margin: 0; }
.pp-photo { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
