/* Customer portal IA v2: views inside a workspace, collapsed review groups, service entries and Settings. Needs opspilot-portal-shell.css. */
/* IA v2: second-level views, page heading, collapsed groups and service entries, Settings. Scoped to .rp-main; dark and phone rules follow. */
.rp-main.ps-shell>.ps-subnav{grid-column:2;display:flex;gap:6px;margin:-6px 0 14px;padding:0 0 2px;overflow-x:auto;border-bottom:1px solid #d9e2dc}
.rp-main.ps-shell>.ps-subnav[hidden]{display:none}
.ps-sublink{flex:none;padding:9px 14px;border-bottom:3px solid transparent;color:#2c4034;font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap}
.ps-sublink:hover{background:#eef4ef;border-radius:8px 8px 0 0}
.ps-sublink[aria-current=page]{border-bottom-color:#0b5f4f;color:#08493d;font-weight:750}
.ps-sublink:focus-visible,.rp-main .rp-gdetails>summary:focus-visible,.ps-conn-link:focus-visible{outline:3px solid #0b5f4f;outline-offset:2px}
.rp-main .ps-page-title{margin:0 0 12px;font-size:26px;letter-spacing:-.5px;color:#18261e}
.rp-main .ps-page-title:focus{outline:none}.rp-main .ps-page-title:focus-visible{outline:3px solid #0b5f4f;outline-offset:3px;border-radius:6px}
.ps-conn-link{color:#8f1d12;font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
/* Review groups: closed until opened or searched; one compact row per review */
.rp-main .rp-gdetails{margin:0 0 10px;border:1px solid #d9e2dc;border-radius:14px;background:#fff}
.rp-main .rp-gdetails>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;cursor:pointer;list-style:none;min-height:44px}
.rp-main .rp-gdetails>summary::-webkit-details-marker{display:none}
.rp-main .rp-gdetails>summary::after{content:"";width:9px;height:9px;flex:none;border-right:2px solid #566860;border-bottom:2px solid #566860;transform:rotate(45deg);transition:transform .15s}
.rp-main .rp-gdetails[open]>summary::after{transform:rotate(-135deg)}
.rp-main .rp-gdetails>summary h2{flex:1;margin:0;font-size:18px}
.rp-gcount{color:#4b5d53;font-size:13px;font-weight:600;white-space:nowrap}
.rp-main .rp-gdetails>p{margin:0;padding:0 16px 8px}
.rp-main .rp-gdetails .rp-cards{grid-template-columns:minmax(0,1fr);gap:0;padding:0 8px 8px}
.rp-main .rp-gdetails .rp-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 16px;align-items:center;padding:12px 8px;border:0;border-top:1px solid #e3eae5;border-radius:0;background:transparent;box-shadow:none}
.rp-main .rp-gdetails .rp-card:hover{transform:none;box-shadow:none;background:#f8faf8}
.rp-main .rp-gdetails .rp-card>*{grid-column:1}.rp-main .rp-gdetails .rp-card>.st-btn{grid-column:2;grid-row:1/span 4;align-self:center}
.rp-main .rp-gdetails .rp-art{display:none}
.rp-main .rp-gdetails .rp-card h3{font-size:16px}.rp-main .rp-gdetails .rp-card p{font-size:14px;line-height:1.45}
/* Service entries and the service filter */
.rp-service-filter{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.rp-service-filter[hidden]{display:none}
.rp-main .rp-chip{min-height:38px;padding:6px 14px;border-radius:999px;font-size:14px}
.rp-main .rp-chip[aria-pressed=true]{background:#0b5f4f;border-color:#0b5f4f;color:#fff}
.rp-main .rp-entry{margin:0 0 10px;padding:14px 16px;border:1px solid #d9e2dc;border-radius:14px;background:#fff}
.rp-main .rp-entry[hidden]{display:none}
.rp-entry-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.rp-entry-head h2{margin:0;font-size:18px}.rp-entry-head p{margin:4px 0 0;color:#4b5d53;font-size:14px}
.rp-entry-panel{margin-top:14px;padding-top:14px;border-top:1px solid #e3eae5}.rp-entry-panel[hidden]{display:none}
.rp-set{margin:0 0 22px;padding:22px;border:1px solid #d9e2dc;border-radius:18px;background:#fff}.rp-set h2{margin:0 0 6px;font-size:22px}
.rp-set-list{margin:10px 0 0;padding-left:20px;line-height:1.6}.rp-set-list li{margin:8px 0}.rp-set-actions{margin:12px 0}
.rp-set .rd-home{border:0;padding:0;margin:8px 0}
@media(max-width:820px){
  .rp-main.ps-shell>.ps-subnav{margin:0 0 12px}
  .rp-main .rp-gdetails .rp-card{grid-template-columns:minmax(0,1fr)}.rp-main .rp-gdetails .rp-card>.st-btn{grid-column:1;grid-row:auto;width:100%}
  .rp-entry-head{flex-direction:column;align-items:stretch}.rp-entry-head .st-btn{width:100%}
  .ps-link{padding:9px 10px}
}
@media(max-width:600px){.ps-rail .ps-tour-replay{display:none}}
@media(max-width:480px){.rp-main.ps-shell>.ps-rail{display:flex;justify-content:space-between}.rp-main.ps-shell>.ps-rail{padding:4px;gap:0}.rp-main .ps-link{flex:1 1 auto;padding:10px 4px;font-size:13px;text-align:center}.rp-main .ps-page-title{font-size:22px}.rp-set{padding:16px}}
@media print{.ps-subnav,.rp-service-filter{display:none}}
@media (prefers-color-scheme:dark){
  .rp-main.ps-shell>.ps-subnav{border-color:#2f3d36}.rp-main .ps-sublink{color:#e3ece7}.rp-main .ps-sublink:hover{background:#26342d}
  .rp-main .ps-sublink[aria-current=page]{border-bottom-color:#7dd3c7;color:#b8f0c5}
  .rp-main .ps-sublink:focus-visible,.rp-main .rp-gdetails>summary:focus-visible,.pchrome .ps-conn-link:focus-visible,.rp-main .ps-page-title:focus-visible{outline-color:#7dd3c7}
  .rp-main .ps-page-title{color:#f2f5f3}.pchrome .ps-conn-link,.rp-main .ps-conn-link{color:#ffaaa2}
  .rp-main .rp-gdetails,.rp-main .rp-entry,.rp-main .rp-set{border-color:#2f3d36;background:#1b2520}
  .rp-main .rp-gdetails>summary::after{border-color:#c4d0ca}.rp-gcount,.rp-entry-head p{color:#c4d0ca}
  .rp-main .rp-gdetails .rp-card{border-top-color:#2f3d36;background:transparent}.rp-main .rp-gdetails .rp-card:hover{background:#141d19}
  .rp-main .rp-chip[aria-pressed=true]{background:#7dd3c7;border-color:#7dd3c7;color:#101614}
  .rp-entry-panel{border-color:#2f3d36}
}
@media(prefers-reduced-motion:reduce){.rp-main .rp-gdetails>summary::after{transition:none}}
@media(forced-colors:active){.ps-sublink[aria-current=page]{border-bottom:3px solid Highlight}.rp-main .rp-chip[aria-pressed=true]{border:2px solid Highlight}}
