/* Scoped component styles. All colors and fonts come from the host application. */
#pkFilterHost .visual-filter-actions .pp-review-button{margin-left:auto;white-space:nowrap;min-height:48px;flex:0 0 auto}
body #page-picker .pk-row.pp-selected:not(.wp-row):not(.pk-new){grid-template-columns:84px minmax(0,1fr);grid-template-areas:"pic sel" "actions actions";gap:12px}
body #page-picker .pp-row-actions{grid-area:actions;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(76px,.8fr);gap:8px;align-items:stretch;min-width:0}
body #page-picker .pp-row-actions .pk-eq-slot{width:100%;min-width:0;grid-area:auto;justify-self:stretch;display:flex}
body #page-picker .pp-row-actions .pk-eq-btn{width:100%;min-height:48px}
body #page-picker .pp-row-actions .pk-side{position:static;grid-area:auto;justify-self:stretch;display:flex;justify-content:center;align-items:center}
body #page-picker .pp-row-actions .pk-qty{display:flex;width:100%;min-height:48px;justify-content:space-between;align-items:center}
body #page-picker .pp-row-actions .pk-qty-b{min-width:38px;min-height:48px;padding-inline:4px}
body #page-picker .pp-row-actions>.pp-details-button{width:100%;min-height:48px;padding:8px;font-size:14px}
body #page-picker .pk-cardio .pp-row-actions{grid-template-columns:minmax(0,1fr) minmax(76px,1fr)}
.pp-intro{display:flex;gap:14px;align-items:center;margin-bottom:14px}.pp-intro strong{font-size:18px}
.pp-picture{width:88px;height:88px;object-fit:contain;border:1px solid var(--border);border-radius:var(--r-md,12px);background:var(--surface2)}
.pp-muted{color:var(--muted);font-size:14px;line-height:1.5}
.pp-plan-form,.pp-review{color:var(--text);font-family:inherit}
.pp-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.pp-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:14px;font-weight:600}
.pp-field input,.pp-field textarea{box-sizing:border-box;width:100%;min-height:48px;font:inherit;color:var(--text);background:var(--surface2);border:1px solid var(--border);border-radius:var(--r-sm,8px);padding:12px}
.pp-notes{margin-top:16px}.pp-mode{display:flex;gap:8px;margin:12px 0}
.pp-mode button[aria-pressed=true]{color:var(--on-accent);background:var(--accent)}
.pp-footer{display:flex;gap:10px}.pp-footer>button{flex:1;min-height:48px}
.pp-error{color:var(--red);min-height:1.4em;font-size:14px}
.pp-review-item{border:1px solid var(--border);border-radius:var(--r-md,12px);padding:14px;margin:12px 0;background:var(--surface)}
.pp-review-item h4{margin:0}.pp-target{font-size:14px;line-height:1.5}
.pp-review-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.pp-review-actions>button{min-height:48px}
.pp-instances{display:flex;gap:12px;align-items:center}.pp-instances button{min-height:48px;min-width:44px}
.pp-field[hidden]{display:none}
@media(max-width:360px){.pp-fields{grid-template-columns:1fr}.pp-review-actions>button{flex:1}.pp-review-actions .pp-instances{width:100%;justify-content:space-between}}

.pp-review-button[hidden]{display:none!important}

/* Three fixed, usable columns keep Review beside the image choices on phones. */
body #pkFilterHost .visual-filter-actions:has(.pp-review-button:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr);gap:8px}
body #pkFilterHost .visual-filter-actions:has(.pp-review-button:not([hidden]))>span{grid-column:1/-1;width:auto}
body #pkFilterHost .visual-filter-actions:has(.pp-review-button:not([hidden]))>button{width:100%;min-width:0;margin:0;padding-inline:6px;gap:4px;font-size:14px;min-height:48px}
body #pkFilterHost .visual-filter-actions:has(.pp-review-button:not([hidden]))>button svg{width:18px;height:18px;flex:0 0 18px}

/* Owner, 2026-11-10: Choose by image left the picker; its row now holds only Review (N), right-aligned, and is hidden
   with it (single-choice pickers). */
body #pkFilterHost .visual-filter-actions.pk-review-row,body #pkFilterHost .visual-filter-actions.pk-review-row:has(.pp-review-button:not([hidden])){display:flex;justify-content:flex-end;margin:0 0 10px}
body #pkFilterHost .visual-filter-actions.pk-review-row:not(:has(.pp-review-button:not([hidden]))){display:none}
body #pkFilterHost .visual-filter-actions.pk-review-row:has(.pp-review-button:not([hidden]))>button.pp-review-button{width:auto;flex:0 0 auto;padding-inline:14px;gap:6px}
