:root {
  color-scheme:light;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei UI","PingFang SC",sans-serif;
  text-size-adjust:100%;
  --hs-page:#edf1f7;--hs-surface:#fff;--hs-surface-elevated:#e8edf4;
  --hs-text:#202b3d;--hs-text-secondary:#495a70;--hs-text-muted:#65768c;
  --hs-border:#d5dfec;--hs-brand:#246fcb;--hs-brand-hover:#1b5faf;--hs-brand-content:#fff;
  --hs-focus:#4389e1;--hs-success:#237347;--hs-danger:#b93048;--hs-danger-bg:#fff0f3;
  --hs-selected:#eaf2ff;--hs-disabled:#e9edf2;--hs-disabled-text:#78879a;
  --glass:rgba(255,255,255,.78);--glass-edge:rgba(255,255,255,.95);--shade:rgba(33,57,96,.13);
  --wave:#fff;
}
*{box-sizing:border-box}
body{margin:0;background:var(--hs-page);color:var(--hs-text);font-size:16px;line-height:24px}
button,input{font:inherit}button,a,label{-webkit-tap-highlight-color:transparent}button{appearance:none;cursor:pointer}a{color:inherit;text-decoration:none}button,a{touch-action:manipulation}
[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
button:focus-visible,a:focus-visible,label:focus-within{outline:3px solid var(--hs-focus);outline-offset:4px}
.ambient-wave{position:fixed;inset:18% -8% 0;z-index:-1;pointer-events:none;overflow:hidden}
.ambient-wave svg{width:100%;height:70%;fill:none;stroke:var(--wave);stroke-width:2;opacity:.7;filter:drop-shadow(0 8px 18px var(--shade))}
.ambient-wave path:nth-child(2){stroke-width:15;opacity:.22}.ambient-wave path:nth-child(3){stroke-width:32;opacity:.09}
.topbar{max-width:1240px;margin:auto;min-height:88px;padding:16px 32px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;gap:16px;align-items:center;font-size:23px;line-height:30px;font-weight:750;letter-spacing:.02em}.brand span{font-size:14px;line-height:22px;font-weight:400;color:var(--hs-text-muted);letter-spacing:0}
.ui-picker{position:relative;isolation:isolate;display:flex;padding:4px;margin:0;border:1px solid var(--glass-edge);border-radius:24px;gap:4px;background:var(--glass);box-shadow:inset 0 1px 0 var(--glass-edge),0 5px 18px var(--shade);backdrop-filter:blur(18px)}
.ui-lens{position:absolute;top:-1px;left:-1px;z-index:-1;border-radius:20px;background:var(--hs-surface);box-shadow:inset 0 1px 0 var(--glass-edge),0 2px 7px var(--shade);transition:transform .56s cubic-bezier(.2,.72,.16,1),width .56s cubic-bezier(.2,.72,.16,1)}
.ui-picker label{position:relative;min-height:44px;min-width:88px;display:grid;place-items:center;font-size:14px;line-height:22px;border-radius:20px;color:var(--hs-text-secondary);cursor:pointer}.ui-picker label:has(input:checked){font-weight:600;color:var(--hs-text)}.ui-picker input{position:absolute;opacity:0;width:1px;height:1px}
main{max-width:1240px;padding:24px 32px 0;margin:auto}.page-heading{display:flex;gap:24px;justify-content:space-between;align-items:center;margin-bottom:24px}.page-heading h1{font-size:32px;line-height:40px;font-weight:600;margin:0 0 8px}.page-heading p{margin:0;color:var(--hs-text-secondary)}.local-note{font-size:13px;line-height:20px;color:var(--hs-text-muted);white-space:nowrap}
#gallery-status{font-size:14px;line-height:22px;color:var(--hs-text-muted);margin:0 0 20px}.resume-job{margin:0 0 20px}
.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-bottom:32px}
.work-card{display:block;position:relative;width:100%;padding:0;border:0;border-radius:22px;background:transparent;color:var(--hs-text);text-align:left;perspective:1400px;aspect-ratio:4/3;isolation:isolate}
.card-inner{position:absolute;inset:0;display:block;transform-style:preserve-3d;transition:transform .65s cubic-bezier(.2,.72,.2,1)}
.card-front,.card-back{position:absolute;inset:0;display:flex;overflow:hidden;border-radius:22px;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:0 8px 24px var(--shade)}
.card-front{background:#151b25}.card-front>img{width:100%;height:100%;object-fit:contain;display:block}
.card-back{transform:rotateY(180deg);background:var(--hs-surface);padding:24px;flex-direction:column;justify-content:center;gap:10px;border:1px solid var(--hs-border)}
.card-back strong{font-size:21px;line-height:29px;font-weight:600}.card-back>span{font-size:13px;line-height:20px;color:var(--hs-text-muted)}.card-back .card-description{font-size:14px;line-height:22px;color:var(--hs-text-secondary)}.card-back .work-state{margin-top:6px;color:var(--hs-brand);font-size:15px;line-height:22px}
@media(hover:hover) and (pointer:fine){.work-card:hover .card-inner,.work-card:focus-visible .card-inner{transform:rotateY(180deg)}}
.cover-placeholder{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px;background:var(--hs-surface-elevated);font-size:24px;line-height:32px;font-weight:600;text-align:center}.cover-placeholder small{font-size:13px;line-height:20px;font-weight:400;color:var(--hs-text-muted)}
.storage-panel{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px 24px;border-top:1px solid var(--hs-border);padding:24px 0 28px}.storage-panel h2{font-size:17px;line-height:25px;font-weight:600;margin:0 0 4px}.storage-panel p{font-size:13px;line-height:20px;color:var(--hs-text-muted);margin:0}.storage-policy{grid-column:1/-1;max-width:800px}
footer{max-width:1176px;border-top:1px solid var(--hs-border);margin:auto;padding:20px 0;display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:13px;line-height:20px;color:var(--hs-text-muted)}footer a{min-height:44px;display:inline-flex;align-items:center;text-decoration:underline;text-underline-offset:3px}
.primary,.secondary,.text-button,.file-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border:1px solid var(--hs-border);border-radius:18px;font-size:15px;line-height:22px;font-weight:500;color:var(--hs-text-secondary);background:var(--glass);box-shadow:inset 0 1px 0 var(--glass-edge),0 3px 10px var(--shade);transition:background-color .16s,box-shadow .16s,transform .1s;white-space:nowrap}
.primary{background:linear-gradient(#ffffff26,#ffffff00 60%),var(--hs-brand);border-color:transparent;color:var(--hs-brand-content);box-shadow:inset 0 1px 0 #ffffff57,0 5px 12px var(--shade)}
.primary:hover{background-color:var(--hs-brand-hover)}.secondary:hover,.file-button:hover{background-color:var(--hs-surface)}.text-button{background:transparent;box-shadow:none;border-color:transparent;padding-inline:10px}.text-button:hover{background:var(--hs-surface-elevated)}
.primary:active,.secondary:active,.text-button:active,.file-button:active{transform:scale(.96)}
button:disabled,.disabled-link{pointer-events:none;cursor:not-allowed;background:var(--hs-disabled);color:var(--hs-disabled-text);box-shadow:none;border-color:transparent}
.dialog-open{overflow:hidden}
dialog{width:min(1120px,calc(100% - 40px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--glass-edge);border-radius:24px;background:var(--hs-surface);color:var(--hs-text);box-shadow:0 24px 80px #07172940;overflow:auto}
dialog::backdrop{background:#17253d66;backdrop-filter:blur(6px)}
.dialog-heading{position:sticky;top:0;z-index:2;display:flex;align-items:start;justify-content:space-between;gap:24px;padding:20px 24px;border-bottom:1px solid var(--hs-border);background:var(--glass);backdrop-filter:blur(20px);box-shadow:inset 0 1px 0 var(--glass-edge)}
.dialog-heading h2{font-size:22px;line-height:30px;font-weight:600;margin:0 0 6px;outline:none}.dialog-heading p{margin:0;max-width:760px;color:var(--hs-text-secondary);font-size:14px;line-height:22px}.dialog-heading button{flex:none}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 284px;align-items:start}
.patcher{min-width:0;padding:24px}.section-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:16px}.section-head h2{font-size:18px;line-height:26px;margin:0;font-weight:600}.section-head>span{font-size:13px;line-height:20px;color:var(--hs-text-muted)}
.file-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.file-field{min-width:0}.field-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}.field-heading label{font-size:15px;line-height:22px;font-weight:600}.field-heading>span{font-size:13px;line-height:20px;color:var(--hs-text-muted)}
.file-control{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0;padding:12px;border:1px solid var(--hs-border);border-radius:14px;background:var(--hs-page);box-shadow:inset 0 1px 3px var(--shade)}
.file-copy{min-width:0;width:100%}.file-copy strong{font-size:15px;line-height:22px;font-weight:400;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.file-copy small{display:block;margin-top:4px;font-size:13px;line-height:20px;color:var(--hs-text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.file-button{position:relative;cursor:pointer;margin-left:auto;padding-inline:14px;background:var(--hs-surface)}.file-button input{position:absolute;opacity:0;width:1px;height:1px}.dragging .file-control{background:var(--hs-selected);border-color:var(--hs-brand)}
.job-panel{margin-top:20px}.job-title,.job-detail{display:flex;align-items:start;justify-content:space-between;gap:12px}.job-title{font-size:15px;line-height:22px}.job-title #percent{font-variant-numeric:tabular-nums;font-size:14px}.job-detail{margin-top:8px;min-height:20px;font-size:13px;line-height:20px;color:var(--hs-text-muted)}#elapsed{font-variant-numeric:tabular-nums;white-space:nowrap}
progress{appearance:none;display:block;width:100%;height:7px;border:0;border-radius:8px;overflow:hidden;background:var(--hs-surface-elevated);margin:10px 0 0}progress::-webkit-progress-bar{background:var(--hs-surface-elevated)}progress::-webkit-progress-value{background:var(--hs-brand)}progress::-moz-progress-bar{background:var(--hs-brand)}
.actions,.result-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:16px}.footnote{font-size:13px;line-height:20px;color:var(--hs-text-muted);margin:16px 0 0}
.error{border-radius:12px;padding:12px;margin-top:16px;font-size:14px;line-height:22px;background:var(--hs-danger-bg);color:var(--hs-danger);overflow-wrap:anywhere}
.result{margin-top:20px}.result h3{font-size:20px;line-height:28px;margin:0;font-weight:600;color:var(--hs-success)}.result>p{font-size:13px;line-height:20px;color:var(--hs-text-muted);margin:8px 0 0;overflow-wrap:anywhere}.result .save-note{font-size:14px;line-height:22px;color:var(--hs-text-secondary);margin-top:12px}
/* Result replaces input area, rather than making the window grow downward. */
.patcher:has(.result:not([hidden])) .file-fields,.patcher:has(.result:not([hidden]))>.actions,.patcher:has(.result:not([hidden]))>.section-head,.patcher:has(.result:not([hidden]))>.footnote{display:none}
.patcher:has(.error:not([hidden])) .job-panel{display:none}.patcher:has(.error:not([hidden])) .result .save-note{display:none}
.game-info{min-width:0;align-self:stretch;background:var(--hs-page);border-left:1px solid var(--hs-border)}.game-cover{display:block;width:100%;height:130px;object-fit:contain;background:#141d2b}.game-body{padding:16px 20px}.game-body h2{display:none}.game-body>p{margin:0;color:var(--hs-text-muted);font-size:13px;line-height:20px}.game-body dl{display:grid;gap:6px;margin:12px 0}.game-body dl>div{display:flex;align-items:start;justify-content:space-between;gap:12px;font-size:14px;line-height:22px}.game-body dt{color:var(--hs-text-muted);flex-shrink:0}.game-body dd{margin:0;text-align:right;font-weight:500;overflow-wrap:anywhere}.game-body .identified{color:var(--hs-success);font-size:13px;line-height:20px;margin:0 0 10px}.game-body .credits{font-size:13px;line-height:20px;white-space:pre-line}
.workflow-note{display:flex;gap:16px;justify-content:space-between;padding:14px 24px;border-top:1px solid var(--hs-border);font-size:13px;line-height:20px;color:var(--hs-text-muted)}.workflow-note p{margin:0;color:var(--hs-text-secondary)}
.pending-note{padding:16px 24px;margin:0;color:var(--hs-text-secondary);font-size:14px;line-height:22px}.workspace:has(.patcher[hidden]){display:block}.workspace:has(.patcher[hidden]) .game-info{display:grid;grid-template-columns:1fr 1fr;border-left:0}.workspace:has(.patcher[hidden]) .game-cover{height:260px}.workspace:has(.patcher[hidden]) .game-info:has(.game-cover[hidden]){display:block}
.busy .file-button{pointer-events:none;background:var(--hs-disabled);color:var(--hs-disabled-text)}.busy .file-fields{opacity:.8}.busy .file-field{pointer-events:none}
@media(max-width:1100px){.gallery{gap:20px}.card-back{padding:20px;gap:8px}.card-back strong{font-size:19px;line-height:27px}.card-back .card-description{display:none}footer{margin-inline:32px}}
@media(max-width:959px){.gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace{grid-template-columns:minmax(0,1fr)}.game-info{display:grid;grid-template-columns:220px minmax(0,1fr);border-left:0;border-top:1px solid var(--hs-border)}.game-cover{height:165px}.game-body{padding:20px}.game-body dl{margin-top:0}.game-body>p:first-of-type{margin-bottom:8px}.workflow-note{flex-direction:column;gap:4px}}
@media(max-width:600px){.topbar{min-height:80px;padding:16px 20px;gap:12px}.brand{font-size:21px}.brand span{display:none}.ui-picker label{min-width:80px;font-size:13px}main{padding:16px 20px 0}.page-heading{display:block}.page-heading h1{font-size:28px;line-height:36px}.page-heading p{font-size:15px;line-height:24px}.local-note{display:block;margin-top:12px}.gallery{grid-template-columns:minmax(0,1fr);gap:24px}.card-back{padding:24px}.card-back .card-description{display:none}.storage-panel{gap:12px;align-items:start}.storage-panel button{padding-inline:12px}.storage-policy{grid-column:1/-1}footer{margin-inline:20px;align-items:start;flex-direction:column;gap:4px;padding-bottom:calc(20px + env(safe-area-inset-bottom))}dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);border-radius:22px}.dialog-heading{padding:16px;gap:12px}.dialog-heading h2{font-size:20px;line-height:28px}.dialog-heading .secondary{padding-inline:12px}.patcher{padding:20px 16px}.file-fields{grid-template-columns:minmax(0,1fr);gap:16px}.file-control{flex-wrap:nowrap}.file-copy{flex:1;width:auto}.file-copy small{white-space:normal}.file-button{flex:none;padding-inline:12px}.section-head{align-items:start;flex-direction:column;gap:4px}.game-info,.workspace:has(.patcher[hidden]) .game-info{display:block}.game-cover{height:180px}.workspace:has(.patcher[hidden]) .game-cover{height:220px}.game-body{padding:20px}.workflow-note,.pending-note{padding:16px}.result-actions .primary,.result-actions #download{width:100%}.result-actions{gap:8px}.result .save-note{font-size:14px}}
@media(max-width:380px){.file-control{flex-wrap:wrap}.file-copy{flex-basis:100%}.file-button{margin-left:auto}}
@media(min-width:960px) and (max-height:700px){.dialog-heading{padding:16px 24px}.patcher{padding:20px 24px}.game-cover{height:112px}.job-panel{margin-top:16px}.workflow-note{padding-block:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.work-card:hover .card-inner,.work-card:focus-visible .card-inner{transform:none}.work-card:hover .card-front,.work-card:focus-visible .card-front{visibility:hidden}.work-card:hover .card-back,.work-card:focus-visible .card-back{transform:none}}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){:root{--glass:var(--hs-surface)}.ui-picker,.dialog-heading,dialog::backdrop{backdrop-filter:none}.ambient-wave{display:none}.card-front,.card-back{box-shadow:none}}
@supports not (backdrop-filter:blur(1px)){.ui-picker,.dialog-heading{background:var(--hs-surface)}}

/* PSP-style cross media bar: category axis and focused vertical item axis. */
.xmb-screen{position:fixed;inset:88px 0 0;overflow:hidden;isolation:isolate;color:#fff;--anchor-x:24%;--focus-y:clamp(220px,43vh,430px)}
.xmb-wallpaper{display:none;position:fixed;inset:0;z-index:1;opacity:0;pointer-events:none;transition:opacity .32s ease}
:root[data-ui=psp] .xmb-wallpaper{display:block}
:root[data-ui=psp].xmb-art-ready .xmb-wallpaper{opacity:1}
.xmb-wallpaper img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.xmb-legibility{position:absolute;inset:0;background:linear-gradient(90deg,#07111f55,transparent 75%),linear-gradient(180deg,#07111f44,transparent 170px,transparent calc(100% - 110px),#07111f44)}
:root[data-ui=psp] .xmb-screen{z-index:2;text-shadow:0 1px 4px #000}
:root[data-ui=psp] .brand{text-shadow:0 1px 5px #000}
.xmb-topline{position:absolute;inset:0 4% auto;display:flex;justify-content:flex-end;gap:20px;font-size:14px;line-height:22px;color:#e5f2ff;text-shadow:0 1px 3px #082850}
.xmb-clock{font-variant-numeric:tabular-nums}.xmb-crossbar{position:absolute;left:var(--anchor-x);top:clamp(44px,10vh,100px);width:70%;height:96px}
.xmb-category-track{display:flex;width:max-content;gap:0;transform:translateX(calc(var(--category,1)*-112px - 56px));transition:transform .3s cubic-bezier(.2,.75,.25,1)}
.xmb-category{appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:start;gap:12px;flex:0 0 112px;width:112px;height:90px;padding:4px 0;border:0;background:none;box-shadow:none;border-radius:4px;color:#fff;opacity:.43;text-shadow:0 1px 4px #001b45;transition:opacity .25s,transform .25s;font-size:15px;line-height:22px;font-weight:400}
.xmb-category svg{width:42px;height:42px;stroke-width:1.5}.xmb-category[aria-selected=true]{opacity:1;transform:scale(1.13);filter:drop-shadow(0 0 8px #d8f2ff66)}
.xmb-category-panel{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.xmb-list{position:absolute;inset:0}
.xmb-row{position:absolute;top:var(--focus-y);transform:translateY(var(--offset));left:calc(var(--anchor-x) - 68px);width:min(74%,850px);height:102px;display:grid;grid-template-columns:136px minmax(0,1fr);align-items:center;gap:28px;padding:0;border:0;border-radius:4px;background:transparent;box-shadow:none;text-align:left;color:white;pointer-events:auto;text-shadow:0 1px 4px #002143;transition:transform .28s cubic-bezier(.2,.75,.25,1),opacity .25s;opacity:.42}
.xmb-row-media{display:flex;align-items:center;justify-content:center;width:136px;height:102px;transform:scale(.49);transform-origin:center;transition:transform .28s;filter:drop-shadow(0 4px 5px #041c4270)}
.xmb-row-media img{width:100%;height:100%;object-fit:contain;border-radius:4px}.xmb-row-media svg{width:64px;height:64px;stroke-width:1.25}
.xmb-row-copy{display:flex;flex-direction:column;gap:7px;min-width:0}.xmb-row-copy strong{font-size:17px;line-height:25px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.xmb-row-copy>span,.xmb-row-copy>small{display:none}
.xmb-row[aria-selected=true]{opacity:1}.xmb-row[aria-selected=true] .xmb-row-media{transform:scale(1)}.xmb-row[aria-selected=true] .xmb-row-copy strong{font-size:25px;line-height:33px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.xmb-row[aria-selected=true] .xmb-row-copy>span{display:block;font-size:14px;line-height:22px;color:#e0eeff;overflow-wrap:anywhere}.xmb-row[aria-selected=true] .xmb-row-copy>small{display:block;font-size:13px;line-height:20px;color:#d2e6ff}
.xmb-row:focus-visible,.xmb-category:focus-visible{outline:2px solid #e5f5ff;outline-offset:6px}
.xmb-bottomline{position:absolute;bottom:24px;left:4%;right:4%;display:flex;justify-content:space-between;align-items:center;gap:24px;font-size:13px;line-height:20px;color:#d9eaff}.xmb-bottomline p{margin:0}
:root[data-ui=psp] body{height:100dvh;overflow:hidden;color:#fff;background:radial-gradient(ellipse at 30% 65%,#3894bd 0%,#145582 40%,#162d61 100%)}
:root[data-ui=psp] .topbar{max-width:none;padding-inline:4%;position:relative;z-index:5}.topbar .ui-picker{flex-shrink:0}
:root[data-ui=psp] .brand span{color:#c3d8f2}:root[data-ui=psp] .ui-picker{background:#102e5a55;border-color:#e2efff30;box-shadow:inset 0 1px 0 #ffffff16,0 4px 20px #001a3326}
:root[data-ui=psp] .ui-picker label{color:#c1d6ef}:root[data-ui=psp] .ui-picker label:has(input:checked){color:white}:root[data-ui=psp] .ui-lens{background:#ffffff20;box-shadow:inset 0 1px 0 #ffffff40,0 2px 5px #00183135}
:root[data-ui=psp] main{max-width:none;padding:0}
:root[data-ui=psp] .page-heading,:root[data-ui=psp] #gallery-status,:root[data-ui=psp] .gallery,:root[data-ui=psp] #storage-slot,:root[data-ui=psp] main>#resume-job,:root[data-ui=psp] body>footer{display:none}
:root[data-ui=psp] .ambient-wave{inset:0 -12%;z-index:0;opacity:.7}:root[data-ui=psp] .ambient-wave svg{height:110%;stroke:#ccefff;opacity:.55;animation:xmb-wave 18s ease-in-out infinite alternate;filter:drop-shadow(0 0 8px #a6ecff66)}
:root[data-ui=psp] dialog{border-radius:12px}
@keyframes xmb-wave{from{transform:translate(-2%,3%) scaleY(.9)}to{transform:translate(2%,-3%) scaleY(1.1)}}
.page-hidden .ambient-wave svg{animation-play-state:paused!important}
.utility-dialog{width:min(660px,calc(100% - 32px))}.utility-dialog .storage-panel{padding:24px;border:0}.utility-dialog .dialog-heading h2{margin:0}.about-body{padding:24px}.about-body p{font-size:15px;line-height:24px;margin:0 0 16px}.about-body p:last-child{margin:0}.about-body code{overflow-wrap:anywhere;font-size:14px}.about-body a{text-decoration:underline;text-underline-offset:3px}
@media(min-width:1600px){.xmb-screen{--anchor-x:27%}}
@media(max-width:959px){.xmb-screen{--anchor-x:21%}.xmb-row{width:76%;gap:20px}.xmb-row[aria-selected=true] .xmb-row-copy strong{font-size:23px;line-height:31px}}
@media(prefers-reduced-motion:reduce){:root[data-ui=psp] .ambient-wave svg{animation:none!important}.xmb-row,.xmb-row-media,.xmb-category-track,.xmb-category,.xmb-wallpaper{transition:none!important}}
@media(prefers-contrast:more){:root[data-ui=psp] body{background:#10315b}.xmb-wallpaper{display:none}.xmb-row,.xmb-category{opacity:.8}.xmb-row[aria-selected=true],.xmb-category[aria-selected=true]{opacity:1}}

.xmb-row:focus-visible{outline:none}.xmb-row:focus-visible .xmb-row-media{outline:2px solid #e5f5ff;outline-offset:5px;border-radius:4px;filter:drop-shadow(0 0 8px #d1f3ff70)}
@media(max-height:560px){.xmb-screen{--focus-y:45%}.xmb-crossbar{top:16px}.xmb-category-panel{clip-path:inset(110px 0 60px)}.xmb-topline{display:none}.xmb-bottomline{bottom:12px}}

.dialog-open .ambient-wave svg{animation-play-state:paused!important}
@media(max-width:600px){.utility-dialog .storage-panel{padding:20px;grid-template-columns:minmax(0,1fr)}.utility-dialog .storage-policy{grid-column:auto}.about-body{padding:20px}}
@media(max-width:767px),(hover:none) and (pointer:coarse){.ui-picker{display:none!important}}

/* Long publishing copy has its own scroll area; patch controls keep their compact layout. */
.work-tabs{display:flex;gap:20px;padding:0 24px;border-bottom:1px solid var(--hs-border);background:var(--hs-surface)}
.work-tabs button{position:relative;min-height:48px;padding:10px 4px;border:0;border-radius:0;background:none;color:var(--hs-text-secondary);font-size:15px;line-height:24px;box-shadow:none}
.work-tabs button[aria-selected=true]{color:var(--hs-brand);font-weight:600}
.work-tabs button[aria-selected=true]::after{content:"";position:absolute;bottom:0;left:4px;right:4px;height:3px;border-radius:3px;background:var(--hs-brand)}
.release-panel{height:clamp(160px,calc(100dvh - 225px),560px);padding:24px;display:flex;flex-direction:column;min-height:0}
.release-state{display:flex;align-items:center;justify-content:center;gap:16px;min-height:120px;color:var(--hs-text-secondary);font-size:15px;line-height:24px}
.release-copy{width:100%;max-width:76ch;align-self:center;min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 16px 8px 0;outline-offset:4px;font-size:16px;line-height:1.9;overflow-wrap:anywhere}
.release-copy p{margin:0 0 1em;white-space:pre-wrap}.release-copy p:last-child{margin-bottom:0}
@media(max-width:600px){.work-tabs{padding-inline:16px}.release-panel{padding:20px 16px}.release-copy{padding-right:10px}}
@media(min-width:960px) and (max-height:700px){.work-tabs button{min-height:44px;padding-block:8px}.patcher{padding-block:16px}.section-head{margin-bottom:12px}.job-panel{margin-top:12px}.actions{margin-top:12px}}
