/* ATHRTY PX-10 | Shared display preferences.
 * Compatible with existing semantic PX-08 + PX-09 tokens; no additional palettes.
 * Scope: first-party site patterns, price catalog, apps and business systems.
 */
body:is(.as03-library,.v77-marketplace,.catalog-page,.athrty-hub-v14,
[data-v5="v5-marketplace"],.athrty-sales-v14,.v62-shell,.v393-operator) {
 --px10-radius:var(--px09-radius,var(--px08-radius-card,18px));
 --px10-border:var(--px08-edge,var(--px09-line,var(--line,var(--edge,var(--border,#444)))));
 --px10-foreground:var(--px08-text,var(--px09-ink,var(--text,var(--ink,#f4f4f2))));
 --px10-muted:var(--px08-muted,var(--px09-muted,var(--muted,#aab4b0)));
 --px10-panel:var(--px08-surface,var(--px09-panel,var(--panel,var(--surface,#1a1e20))));
 --px10-raised:var(--px08-raised,var(--px09-base,var(--panel2,var(--raised,#252a2b))));
 --px10-accent:var(--px08-focus,var(--px09-accent,var(--accent,var(--mint,#c3d4ca))));
}
.px10-display-controls{
 display:flex;align-items:center;justify-content:flex-end;
 gap:clamp(12px,2vw,22px);flex-wrap:wrap;
 min-width:0;max-width:100%;margin:clamp(12px,1.7vw,20px) 0;
 padding:10px 13px;
 background:var(--px10-panel);
 border:1px solid var(--px10-border);
 border-radius:var(--px10-radius);
 color:var(--px10-foreground);
}
.px10-display-label{display:grid;gap:2px;margin-right:auto;min-width:0}
.px10-display-label strong{font-size:.75rem;font-weight:720;line-height:1.25}
.px10-display-label small{font-size:.65rem;color:var(--px10-muted);line-height:1.3}
.px10-switch-group{display:flex;align-items:center;gap:8px;min-width:0}
.px10-group-name{font-size:.65rem;font-weight:690;color:var(--px10-muted)}
.px10-switch-set{display:flex;align-items:stretch;gap:3px;min-width:0;
 border:1px solid var(--px10-border);border-radius:11px;padding:3px;
 background:var(--px10-raised);
}
.px10-switch{
 appearance:none;border:1px solid transparent;border-radius:8px;
 min-height:44px;min-width:45px;padding:9px 11px;
 font-size:.7rem;font-weight:680;line-height:1.3;font-family:inherit;color:var(--px10-muted);background:transparent;
 text-align:center;cursor:pointer;white-space:nowrap;
}
.px10-switch[data-active="true"],.px10-switch[aria-pressed="true"]{
 color:var(--px10-foreground);
 background:var(--px10-panel);
 border-color:var(--px10-border);
 box-shadow:0 1px 3px rgba(0,0,0,.06);
}
.px10-switch:hover:not([aria-pressed="true"]){color:var(--px10-foreground)}
.px10-switch:focus-visible{outline:2px solid var(--px10-accent);outline-offset:3px}
/* One density contract for the Operator, without touching client site canvases. */
body.v393-operator .px10-display-controls{max-width:1260px}
body.v393-operator[data-px10-density="compact"] :is(.v33-card,.os-card,.v36-priority,.v33-fact){
 min-height:0!important;padding:var(--px10-card-pad)!important;gap:var(--px10-card-gap);
}
body.v393-operator[data-px10-density="comfortable"] :is(.v33-card,.os-card,.v36-priority,.v33-fact){
 min-height:0;max-width:100%;
}
body.v393-operator .v33-grid>*{min-width:0;max-width:100%}
body.v393-operator .px10-display-controls button{min-height:44px}
body[data-px10-density="compact"]{
 --px10-card-pad:clamp(13px,1.3vw,19px);
 --px10-card-gap:9px;
}
body[data-px10-density="comfortable"]{
 --px10-card-pad:clamp(19px,2vw,28px);
 --px10-card-gap:14px;
}
/* Per component family density, preserving every description, CTA, record and price. */
body.as03-library[data-px10-density="compact"] .cards>.pattern-card{
 min-height:0!important;padding:var(--px10-card-pad)!important;gap:var(--px10-card-gap)!important;
}
body.as03-library[data-px10-density="compact"] .cards>.pattern-card .summary{
 line-height:1.48!important;
}
body.as03-library[data-px10-density="compact"] :is(.v52-panel,.v52-output,.v51-pane){
 padding:clamp(15px,1.5vw,21px);
}
body.v77-marketplace[data-px10-density="compact"] .app-card{
 min-height:0!important;padding:var(--px10-card-pad)!important;
 gap:var(--px10-card-gap)!important;
}
body.v77-marketplace[data-px10-density="compact"] .app-card :is(p,.category){
 line-height:1.42!important;
}
body.catalog-page[data-px10-density="compact"] .catalog-card-content{
 padding:clamp(14px,1.5vw,19px)!important;
}
body.catalog-page[data-px10-density="compact"] .catalog-card-preview{aspect-ratio:2.5/1}
body.catalog-page[data-px10-density="compact"] .catalog-card-identity{padding-bottom:11px}
body.catalog-page[data-px10-density="compact"] .catalog-commercial{
 padding-block:11px 9px;gap:8px;
}
body.catalog-page[data-px10-density="compact"] .catalog-client{
 font-size:clamp(18px,1.6vw,23px);
}
body.catalog-page[data-px10-density="compact"] .catalog-headline{
 min-height:0;
}
body.athrty-hub-v14:has(#pattern-nav)[data-px10-density="compact"] :is(#catalog>.card,.record,.capture){
 padding:var(--px10-card-pad)!important;gap:var(--px10-card-gap)!important;
}
body.athrty-hub-v14:has(#pattern-nav)[data-px10-density="compact"] #catalog>.card h3{
 font-size:clamp(17px,1.55vw,22px);
}
body.athrty-hub-v14:has(#pattern-nav)[data-px10-density="compact"] #catalog>.card p{
 line-height:1.45;
}
body[data-v5="v5-marketplace"][data-px10-density="compact"] :is(.product-card,.panel,.kpi,.map-step){
 padding:var(--px10-card-pad)!important;
}
body[data-v5="v5-marketplace"][data-px10-density="compact"] .product-card{
 gap:var(--px10-card-gap);
}
body.athrty-sales-v14[data-px10-density="compact"] .builder-wrap :is(.builder-sidebar,.editor,.system-card){
 padding:var(--px10-card-pad)!important;
}
body.v62-shell[data-px10-density="compact"] :is(.module-card,.ladder-card){
 min-height:0!important;padding:var(--px10-card-pad)!important;
}
body.v62-shell[data-px10-density="compact"] .ladder-card .number{
 margin-bottom:clamp(12px,2vw,22px)!important;
}
/* List mode works through existing components rather than different renderers.
   Business data, onclick wiring and headings remain intact. */
body.as03-library[data-px10-view="list"] .cards{
 grid-template-columns:minmax(0,1fr)!important;
}
body.athrty-hub-v14:has(#pattern-nav)[data-px10-view="list"] #catalog.cards{
 grid-template-columns:minmax(0,1fr)!important;
 max-width:1150px;
}
body.v77-marketplace[data-px10-view="list"] .app-grid{
 grid-template-columns:minmax(0,1fr)!important;max-width:1150px;
}
body.v77-marketplace[data-px10-view="list"] .app-card{
 min-height:0!important;
}
body.catalog-page[data-px10-view="list"] #cards{
 grid-template-columns:minmax(0,1fr)!important;max-width:1200px;
}
@media(min-width:721px){
 body.catalog-page[data-px10-view="list"] .catalog-card{
  display:grid;grid-template-columns:minmax(185px,.4fr) minmax(0,1fr);
  align-items:stretch;
 }
 body.catalog-page[data-px10-view="list"] .catalog-card-preview{
  height:100%;aspect-ratio:auto;min-height:230px;
 }
 body.catalog-page[data-px10-view="list"] .catalog-card-content{justify-content:space-between}
 body.catalog-page[data-px10-view="list"] .catalog-commercial{margin-top:8px}
}
body[data-v5="v5-marketplace"][data-px10-view="list"] .product-grid{
 grid-template-columns:minmax(0,1fr)!important;
}
body.v62-shell[data-px10-view="list"] .modules-grid{
 grid-template-columns:minmax(0,1fr)!important;max-width:1150px;
}
@media(max-width:760px){
 .px10-display-controls{justify-content:flex-start;gap:10px;padding:12px}
 .px10-display-label{flex:1 1 100%;margin:0}
 .px10-switch-group{flex:1 1 auto;flex-wrap:wrap}
 .px10-switch-set{flex:1 1 auto}
 .px10-switch{flex:1;min-height:40px;padding:9px 8px}
 body.catalog-page[data-px10-view="list"] .catalog-card{
  display:flex;flex-direction:column;
 }
 body.catalog-page[data-px10-view="list"] .catalog-card-preview{
  height:auto;min-height:0;aspect-ratio:2.2/1;
 }
}
@media(max-width:370px){
 .px10-display-controls{padding:10px}
 .px10-switch-group{width:100%}
 .px10-group-name{flex:0 0 48px}
 .px10-switch-set{flex:1}
}
@media(prefers-reduced-motion:reduce){
 .px10-display-controls *,body[data-px10-density] .px10-switch{animation:none!important;transition:none!important}
}
@media print{.px10-display-controls{display:none!important}}