.patcher-main { padding-block: 48px 64px; }
.patcher-content { max-width: 760px; margin-inline: auto; }
.patcher-heading { margin-bottom: 32px; }
.patcher-heading h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }
.back-link { display: inline-block; margin-bottom: 16px; font-size: 14px; }
.sub { color: var(--muted); max-width: 68ch; }
.notice { margin-top: 16px; padding-left: 16px; border-left: 2px solid var(--accent); color: var(--muted); max-width: 68ch; }
.card { margin-bottom: 32px; }
.card h2 { font-size: 20px; margin-bottom: 12px; }
.field { margin-bottom: 24px; }
fieldset { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; font-weight: 500; }
.choice { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.choice label { margin: 0; font-weight: 400; }
.choice input { width: auto; accent-color: var(--accent); }
#options select { width: 8rem; }
.note { color: var(--muted); font-size: 14px; margin-top: 8px; }
label { display: block; font-weight: 500; margin-bottom: 8px; }
input, select, button { font: inherit; }
input[type='file'], select { width: 100%; padding: 10px 12px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { padding: 12px 22px; border: 0; border-radius: 4px; background: var(--accent); color: var(--background); font-weight: 500; cursor: pointer; }
button:hover:not(:disabled) { background: #b5e8f1; }
button:disabled { opacity: 0.6; cursor: progress; }
.button { margin-top: 4px; }
.status { color: var(--muted); margin-bottom: 24px; }
.error { color: #ffaaa3; margin-bottom: 24px; max-width: 68ch; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 16px 0 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts dd.mono, code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.facts dd.mono { font-size: 14px; }
details { margin-top: 20px; }
summary { cursor: pointer; color: var(--accent); }
pre { margin: 12px 0 0; padding: 16px; overflow-x: auto; background: var(--surface); border-radius: 4px; font-size: 13px; line-height: 1.5; }
footer p { color: var(--muted); font-size: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
#result:focus { outline: none; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  .patcher-main { padding-block: 28px 48px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 10px; }
}
#session:focus { outline: none; }
#session form { margin-top: 32px; }
