* { box-sizing: border-box }
:root { font-family: system-ui, sans-serif; color: #edf4f2; background: #101716; color-scheme: dark; --mint: #92f5d1; --muted: #a7bbb6; --line: #39514b }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(ellipse at 85% 0%, #16372e 0%, transparent 58%) }
header { padding: 21px clamp(20px, 8vw, 110px) }
header { border-bottom: 1px solid #293d37 }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; font-weight: 720; font-size: 1.15rem; color: inherit }
.brand strong { color: var(--mint); font-weight: 580 }
main { width: min(100% - 32px, 680px); margin: clamp(32px, 7vw, 72px) auto; padding: clamp(21px, 5vw, 46px); border: 1px solid var(--line); border-radius: 24px; background: #172321; box-shadow: 0 25px 80px #080f0e70 }
h1 { margin: 0 0 12px; font-size: clamp(1.9rem, 6vw, 3.2rem); line-height: 1.05; letter-spacing: -.05em }
h2 { margin: 26px 0 10px }
p { line-height: 1.5 }
.muted, small { color: var(--muted) }
form, .stack { display: grid; gap: 16px }
label { display: grid; gap: 6px; font-weight: 600 }
input, textarea, select, button { font: inherit; border-radius: 9px; min-height: 44px }
input, textarea, select { width: 100%; padding: 10px 12px; background: #101a18; color: inherit; border: 1px solid var(--line) }
textarea { min-height: 75px; resize: vertical }
.picker-label { position: relative; display: grid; place-items: center; padding: 18px; border: 1px dashed var(--line); border-radius: 18px; background: #101a18 }
.picker-label:focus-within { outline: 2px solid #d5fff2; outline-offset: 3px }
.picker-label input { position: absolute; inset: 0; height: 100%; opacity: 0; cursor: pointer }
.picker-text { background: #243f37; border-radius: 18px; padding: 9px 16px; color: var(--mint) }
#selection, .inventory-transfer ul { list-style: none; margin: 0; padding: 0 }
#selection { margin-top: -7px }
#selection li, .inventory-transfer li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; padding: 7px 0; overflow-wrap: anywhere }
#selection small, .inventory-transfer li small { white-space: nowrap }
#captcha { display: flex; justify-content: center; width: 100% }
#captcha-widget { display: flex; justify-content: center; width: 300px; max-width: 100% }
#captcha-widget.compact { width: 150px }
#captcha-widget:focus-within { outline: 2px solid #d5fff2; outline-offset: 3px }
button, .download, .result-actions a, #notice + a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 18px; text-align: center; text-decoration: none; padding: 10px 16px; border: 1px solid var(--mint); background: var(--mint); color: #09241a; font-weight: 720; cursor: pointer }
button.secondary, .result-actions a, #notice + a { background: transparent; color: var(--mint) }
button.danger { border-color: #ffb8b2; color: #ffb8b2 }
.result-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px }
.result-actions > * { padding-inline: clamp(5px, 2vw, 16px); overflow-wrap: anywhere }
button:disabled { opacity: .5; cursor: wait }
a { color: var(--mint) }
:focus-visible { outline: 2px solid #d5fff2; outline-offset: 3px }
.row { display: flex; flex-wrap: wrap; align-items: end; gap: 10px }
.row > label { flex: 1 1 190px }
progress { appearance: none; width: 100%; height: 13px; accent-color: var(--mint) }
progress::-webkit-progress-bar { background: #101a18; border-radius: 10px }
progress::-webkit-progress-value { background: var(--mint); border-radius: 10px }
progress::-moz-progress-bar { background: var(--mint); border-radius: 10px }
#upload:not([hidden]) + #progress { margin-top: 24px }
.progress-line { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px }
.notice { color: #ffe2aa; min-height: 1.5em; overflow-wrap: anywhere }
[hidden] { display: none !important }
#files, #accounts { padding: 0; list-style: none }
#files li, #accounts li { border-top: 1px solid var(--line); padding: 12px 0; overflow-wrap: anywhere }
#files li { display: flex; align-items: center; gap: 12px }
.inventory-heading { justify-content: space-between; align-items: center; margin-top: 24px }
.inventory-heading h2 { margin: 0 }
.inventory-transfer { border-block-start: 1px solid var(--line); padding-block: 10px }
.inventory-transfer h3 { font-size: 1rem; margin: 0 0 4px }
.thumbnail { width: 96px; height: 72px; flex: none; object-fit: contain; border-radius: 8px; background: #101a18 }
details { border-top: 1px solid var(--line); padding-top: 12px }
details > summary { cursor: pointer; margin-bottom: 10px }
