/* the patcher page; loads after style.css */
.pt-head { padding: 64px 0 48px; background: var(--night); border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .pt-head { padding: 88px 0 56px; } }
.pt-head h1 { font-size: clamp(36px, 5vw, 56px); }
.preview-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 8px 12px; border: 1px dashed var(--line-2); border-radius: 4px; font: 400 11.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.preview-note::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--accent); }

.pt-main { padding: 48px 0 96px; }
.pt-grid { display: grid; gap: 48px; }
@media (min-width: 980px) { .pt-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; } }

/* the tool */
.tool { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); counter-reset: s; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 10px; padding: 16px 18px; font: 400 11.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.steps li + li { border-left: 1px solid var(--line); }
.steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); font: 500 10.5px/1 var(--sans); }
.steps li.on { color: var(--ink); }
.steps li.on::before { background: var(--accent); box-shadow: none; color: #fff; }
.steps li.done { color: var(--ink-2); }
.steps li.done::before { content: "✓"; background: var(--e-green); box-shadow: none; color: #fff; }
@media (max-width: 560px) { .steps li { flex-direction: column; gap: 6px; padding: 12px 4px; font-size: 10px; } }

.stage { padding: 28px; }
@media (max-width: 560px) { .stage { padding: 16px; } }
[hidden] { display: none !important; }

.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 320px; padding: 40px 24px; border: 1.5px dashed var(--line-2); border-radius: 10px; text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.drop:hover, .drop:focus-within { border-color: var(--muted); }
.drop.over { border-color: var(--accent); background: rgba(255, 61, 23, .06); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-icon { width: 52px; height: 64px; margin-bottom: 6px; color: var(--muted); transition: color .15s, transform .15s; }
.drop.over .drop-icon { color: var(--accent); transform: translateY(4px); }
.drop-title { font-size: 22px; font-weight: 300; color: var(--ink); }
.drop-sub { font: 400 11.5px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.drop .btn { margin-top: 10px; }
.under { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }

button.btn { background: none; cursor: pointer; }
.btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { background: none; color: var(--accent); }
.textbtn { padding: 0; border: 0; background: none; font: 400 11.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.textbtn:hover { color: var(--ink); }

/* the file, once chosen */
.file { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 18px 20px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; }
.file-icon { grid-row: span 2; width: 30px; height: 37px; color: var(--muted); }
.file-name { font-size: 17px; font-weight: 400; overflow-wrap: anywhere; }
.file-size { font: 400 12px var(--mono); color: var(--muted); white-space: nowrap; }
.file-hash { grid-column: 2 / -1; font: 400 11.5px/1.6 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.file-hash b { font-weight: 400; color: var(--ink-2); margin-right: 8px; }
.verdict { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.verdict p { font-size: 15px; color: var(--ink-2); }
.st-bad::before { background: var(--accent); }
.st-wait::before { box-shadow: inset 0 0 0 1.5px var(--muted); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .st-wait::before { animation: none; } }

.pack { margin-top: 26px; }
.pack .label { display: block; margin-bottom: 10px; font-size: 10.5px; color: var(--muted); }
.pack-opt { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; padding: 16px 18px; border: 1.5px solid var(--accent); border-radius: 10px; }
.radio { grid-row: span 2; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--accent), inset 0 0 0 4px var(--surface), inset 0 0 0 8px var(--accent); }
.pack-name { font: 500 12.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.pack-desc { font-size: 14.5px; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 24px; }

/* patching */
.run { list-style: none; padding: 0; margin-top: 22px; }
.run li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.run li span { font: 400 11px/2 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.run li.on { color: var(--ink); }
.run li.on span { color: var(--accent); }
.run li.done { color: var(--ink-2); }
.run li.done span { color: var(--e-green); }
.bar { height: 3px; margin-top: 22px; overflow: hidden; background: var(--line); border-radius: 2px; }
.bar i { display: block; width: 0; height: 100%; background: var(--accent); transition: width .35s ease-out; }

.result { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; padding: 22px; border: 1.5px solid var(--accent); border-radius: 10px; }
.result .file { border: 0; padding: 0; background: none; }
.result .note { margin-top: 2px; }

/* side */
.side { display: flex; flex-direction: column; gap: 36px; }
.need { list-style: none; padding: 0; }
.need li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.need li:first-child { padding-top: 0; }
.need a, .pt-text a, .under a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.facts { display: flex; flex-direction: column; gap: 14px; }
.facts div { display: flex; flex-direction: column; gap: 3px; }
.facts dt { font: 400 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts dd { font-size: 15px; color: var(--ink-2); }
.facts .hash { font: 400 12px/1.6 var(--mono); overflow-wrap: anywhere; }

/* install */
.pt-install { padding: 88px 0; background: var(--surface); border-top: 1px solid var(--line); }
.pt-install h2 { font-size: clamp(30px, 3.6vw, 42px); }
.pt-cols { display: grid; gap: 48px; margin-top: 40px; }
@media (min-width: 900px) { .pt-cols { grid-template-columns: 1fr 1fr; gap: 64px; } }
.pt-text { margin-top: 14px; font-size: 14px; color: var(--muted); }
.pt-about { padding: 88px 0 96px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .pt-about .trio { grid-template-columns: repeat(3, 1fr); } }
.pt-about .trio { margin-top: 0; }

/* the real run, the guide */
.run-note { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.result.fail { border-color: var(--line-2); }
.pt-head .pill { margin-top: 22px; }
.pt-install .lead { margin-top: 14px; }
.pt-intro, .pt-body { margin-bottom: 16px; font-size: 15px; color: var(--ink-2); }
.warn { margin-top: 18px; padding: 12px 14px; border-left: 2px solid var(--accent); background: rgba(255, 61, 23, .06); font-size: 14px; color: var(--ink-2); }
.pt-trio { margin-top: 56px; }
@media (min-width: 900px) { .pt-trio { grid-template-columns: repeat(3, 1fr); } }
.credits { margin-top: 32px; font-size: 13px; color: var(--muted); }
.credits a { color: var(--ink-2); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.facts .hash { font-size: 11.5px; }

/* before you start */
.before { max-width: 760px; margin-top: 28px; padding: 16px 20px; border: 1px solid var(--line-2); border-left: 2px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--surface); }
.before-label { margin-bottom: 8px; font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.before ol { list-style: none; padding: 0; counter-reset: b; display: flex; flex-direction: column; gap: 6px; }
.before li { counter-increment: b; position: relative; padding-left: 24px; font-size: 14.5px; color: var(--ink-2); }
.before li::before { content: counter(b); position: absolute; left: 0; top: 1px; font: 400 11px/1.8 var(--mono); color: var(--muted); }
.before b { color: var(--ink); font-weight: 500; }
.before a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
