/* 2694: the adjust sheet: bottom sheet on a phone, a dialog on a laptop */
html.pa-open { overflow: hidden; }
.pa { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; }
.pa-card { background: var(--bg, #fff); color: var(--ink, #1c1a17); width: 100%; max-width: 520px; max-height: 100dvh; overflow: auto; box-sizing: border-box; padding: 16px 16px max(16px, env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; }
@media (min-width: 700px) { .pa { align-items: center; } .pa-card { border-radius: 16px; } }
.pa-h { font-size: 1.125rem; margin: 0 0 12px; }
.pa-win { width: 100%; max-height: 56dvh; margin-inline: auto; overflow: hidden; border-radius: 8px; background: #e9e1d1; touch-action: none; cursor: grab; outline: 2px solid var(--ink, #1c1a17); }
.pa-win canvas { display: block; width: 100%; height: 100%; }
.pa-hint { margin: 10px 0; color: var(--muted, #6b655c); font-size: .9375rem; }
.pa-bar { display: flex; gap: 8px; align-items: center; }
.pa-bar button { min-height: 48px; min-width: 48px; border-radius: 12px; border: 1px solid var(--line, #cfc8bb); background: transparent; color: inherit; font: inherit; padding: 0 14px; }
.pa-bar .pa-pin { margin-inline-start: auto; }
.pa-bar .pa-pin[aria-pressed="true"] { border-color: currentColor; cursor: default; }   /* 3506: this is Pin's pick now: ticked, full strength */
.pa-bar .pa-pin[aria-pressed="true"]::before { content: "✓ "; }
.pa-bar button { white-space: nowrap; }
@media (max-width: 340px) { .pa-bar { gap: 6px; } .pa-bar button { min-width: 44px; padding: 0 10px; } }   /* 3506: at 320 "✓ Pin's pick" stays on one line beside −, + and Done */
.pa-bar .pa-ok { background: var(--ink, #1c1a17); color: var(--bg, #fff); border-color: transparent; font-weight: 650; }
.pa-bar button:focus-visible { outline: 3px solid var(--accent, #98241c); outline-offset: 2px; }
/* the way in: a small Move button under the photo */
.pa-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pa-mark { min-height: 44px; min-width: 64px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line, #cfc8bb); background: transparent; color: var(--ink, #1c1a17); font: inherit; font-size: .9375rem; cursor: pointer; align-self: center; margin-block: 6px; }
.pa-mark:focus-visible { outline: 3px solid var(--accent, #98241c); outline-offset: 2px; }
.pa-stage { position: relative; display: inline-block; line-height: 0; max-width: 100%; }
.pa-stage canvas { max-width: 100%; height: auto; }
.pa-ring { position: absolute; box-sizing: border-box; border: 3px solid var(--accent, #98241c); outline: 2px solid #fff; pointer-events: none; }
.pa-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-block: 6px; }   /* 3354: 8+ cells wrap on a 360 phone */
.pa-chips-l { color: var(--muted, #6b655c); font-size: .9375rem; }
.pa-chip { min-width: 44px; min-height: 44px; border-radius: 50%; border: 1px solid var(--line, #cfc8bb); background: transparent; color: var(--ink, #1c1a17); font: inherit; font-weight: 650; cursor: pointer; }
.pa-chip:focus-visible { outline: 3px solid var(--accent, #98241c); outline-offset: 2px; }
/* 2694 live review r3: the chip is the photo (64 px since 3506, big enough to tell which photo is which), and "Move" sits on the chips' centre line */
.pa-chips-l { display: inline-flex; align-items: center; min-height: 44px; line-height: 1; margin: 0; }
.pa-thumb { width: 64px; height: 64px; box-sizing: border-box; padding: 0; overflow: hidden; border-radius: 10px; border: 2px solid var(--line); }
.pa-chips .pa-thumb canvas { display: block; width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
/* a page's own button rules (frames: .fr button padding and margin-top) must not shift the chips off the label's line */
.pa-chips .pa-chip { margin: 0 !important; }
.pa-chips .pa-thumb { padding: 0 !important; }
.pa-chips .pa-chips-l { flex-basis: 100%; justify-content: center; min-height: 0; }   /* 3506: "Move" sits above its row (the maker column is phone-wide on a laptop too), so four 64 px photos share one line */
