/* PS-4440: light/dark intentionally styled using canonical tokens. */
.ps4440-mod-overlay{position:fixed;inset:0;z-index:11010;background:rgba(4,9,18,.78);display:grid;place-items:end center;padding:env(safe-area-inset-top) 10px env(safe-area-inset-bottom);box-sizing:border-box}
.ps4440-mod-sheet{--m-surface:#131c2a;--m-panel:#1c293a;--m-text:#f6f8fd;--m-muted:#b2c0d2;--m-line:#344357;--m-accent:var(--ps-accent,var(--ps-primary,#32d5a2));width:min(680px,100%);height:min(92dvh,840px);border:1px solid var(--m-line);border-radius:24px 24px 10px 10px;background:linear-gradient(155deg,rgba(64,90,124,.2),transparent 45%),var(--m-surface);color:var(--m-text);box-shadow:0 25px 75px rgba(0,0,0,.5);display:flex;flex-direction:column;overflow:hidden}
:root[data-theme="light"] .ps4440-mod-sheet,body.light .ps4440-mod-sheet,body[data-theme="light"] .ps4440-mod-sheet{--m-surface:#fff;--m-panel:#f0f5fa;--m-text:#112238;--m-muted:#4c6074;--m-line:#d6e1eb;box-shadow:0 20px 60px rgba(6,30,55,.18)}
.ps4440-mod-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;border-bottom:1px solid var(--m-line)}.ps4440-mod-header h2{font-size:clamp(20px,4vw,28px);margin:3px 0 0}.ps4440-mod-header small{font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:var(--m-accent)}.ps4440-mod-close{width:44px;height:44px;border:1px solid var(--m-line);border-radius:13px;background:var(--m-panel);color:var(--m-text);font-size:20px;cursor:pointer}
.ps4440-mod-scroll{flex:1;overflow-y:auto;padding:18px 20px;overscroll-behavior:contain}.ps4440-mod-group{margin-bottom:20px}.ps4440-mod-group h3{font-size:18px;margin:0 0 6px}.ps4440-mod-group>p{font-size:14px;color:var(--m-muted)}.ps4440-mod-option{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--m-line);min-width:0}.ps4440-mod-option img,.ps4440-mod-glyph{width:52px;height:52px;flex:none;object-fit:cover;border-radius:13px;background:var(--m-panel)}.ps4440-mod-glyph{display:grid;place-items:center;color:var(--m-accent);font-size:26px}.ps4440-mod-copy{flex:1;min-width:0;display:grid;gap:5px}.ps4440-mod-copy strong{font-size:15px;overflow-wrap:anywhere}.ps4440-mod-copy small{font-size:12px;color:var(--m-muted)}.ps4440-mod-stepper{display:flex;align-items:center;gap:5px}.ps4440-mod-stepper button{width:44px;height:44px;border:1px solid var(--m-line);border-radius:12px;background:var(--m-panel);color:var(--m-text);font-size:24px;cursor:pointer}.ps4440-mod-stepper output{text-align:center;min-width:20px;font-weight:800;font-variant-numeric:tabular-nums}.ps4440-mod-stepper button:disabled{opacity:.35;cursor:not-allowed}
.ps4440-mod-footer{padding:12px 22px calc(16px + env(safe-area-inset-bottom));border-top:1px solid var(--m-line);background:var(--m-surface)}.ps4440-mod-footer>div{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}.ps4440-mod-footer strong{font-size:24px}.ps4440-mod-confirm{width:100%;min-height:52px;border:0;border-radius:14px;background:var(--m-accent);color:#081621;font-weight:850;font-size:16px;cursor:pointer}.ps4440-mod-confirm:disabled{opacity:.55;cursor:not-allowed}.ps4440-mod-error{font-size:13px;color:#ffb6b6;min-height:0;margin:0 0 8px}.ps4440-mod-error:empty{display:none}.ps4440-mod-overlay :focus-visible{outline:3px solid var(--m-accent);outline-offset:2px}
@media(min-width:760px){.ps4440-mod-overlay{place-items:center;padding:24px}.ps4440-mod-sheet{border-radius:24px}}
@media(max-width:380px){.ps4440-mod-scroll{padding:12px}.ps4440-mod-option{gap:6px}.ps4440-mod-option img,.ps4440-mod-glyph{width:42px;height:42px}}
@media(prefers-reduced-motion:reduce){.ps4440-mod-sheet,.ps4440-mod-option{animation:none!important;transition:none!important}}
