:root{--orange:#f66b0b;--ink:#242631;--muted:#777983;--line:#e4e3e6;--surface:#f5f4f3}*{box-sizing:border-box}body{margin:0;font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--surface);color:var(--ink)}header{height:78px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 max(24px,calc((100vw - 1380px)/2))}.brand{font-size:27px;font-weight:750;display:flex;align-items:center;gap:12px}.brand small{font-size:16px;font-weight:400;color:var(--muted);border-left:1px solid var(--line);padding-left:20px;margin-left:8px}.logo{color:var(--orange);font-size:38px;line-height:1}main{max-width:1430px;margin:auto;padding:30px 25px}h1{font-size:36px;line-height:1.2;margin:0 0 10px;letter-spacing:-1px}h2{font-size:23px;line-height:1.3;margin:0 0 24px;letter-spacing:-.5px}h3{font-size:16px;margin:0 0 3px}p{margin:8px 0 16px}.heading p{color:var(--muted);margin-bottom:27px}.layout{display:grid;grid-template-columns:minmax(310px, .8fr) minmax(0,1.5fr);gap:24px;align-items:start}.card{background:white;border:1px solid var(--line);border-radius:16px;padding:25px;box-shadow:0 3px 7px #24263106;margin-bottom:24px}.upload-row{display:flex;gap:18px;padding-bottom:23px;margin-bottom:23px;border-bottom:1px solid var(--line);align-items:center}.upload-row:nth-of-type(2){border:0;margin-bottom:0;padding-bottom:0}.thumb{width:132px;aspect-ratio:16/9;flex-shrink:0;background:#292b2e;border-radius:7px;overflow:hidden;display:grid;place-items:center;color:var(--orange);font-size:34px}.thumb img{width:100%;height:100%;object-fit:contain}.muted,.hint{color:var(--muted)}.hint{font-size:13px;margin:13px 0 0}.file-button{display:table;border:1px solid #cfd0d5;border-radius:7px;padding:6px 9px;margin-top:9px;font-size:12px;cursor:pointer;font-weight:500}.file-button:hover{background:var(--surface)}input[type=file]{position:absolute;width:1px;height:1px;opacity:0}.file-button:has(+input:focus-visible){outline:2px solid var(--orange)}small[id$="-name"]{font-size:11px;display:block;max-width:180px;overflow-wrap:anywhere;color:var(--muted)}label{font-size:14px;font-weight:550}input{border:1px solid #cdced4;border-radius:7px;padding:11px 12px;font:inherit;background:#fff;color:var(--ink);min-width:0}input:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--orange);outline-offset:3px}.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}.two input{display:block;width:100%;margin-top:6px}button{font:inherit;font-size:14px;cursor:pointer;border:1px solid #cdced4;border-radius:8px;padding:11px 18px;color:var(--ink);background:white;font-weight:600}button:hover{background:#f5f5f5}button:disabled{opacity:.45;cursor:not-allowed}.primary{background:var(--orange);color:white;border-color:var(--orange)}.primary:hover{background:#df5b00}.full{width:100%;margin-top:15px}.text{border:0;background:none}.danger{color:#c32d26;border-color:transparent}.section-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:23px}.section-top h2{margin:0}.badge{color:#af4a00;background:#fff0df;padding:5px 12px;border-radius:30px;font-size:12px;white-space:nowrap}.preview{aspect-ratio:16/9;background:#26282c;border-radius:9px;overflow:hidden;display:grid;place-items:center;position:relative}.preview>img{width:100%;height:100%;object-fit:contain}#empty{text-align:center;color:#ddd;padding:14px}#empty>span{font-size:45px;color:var(--orange)}#empty p{font-size:14px;color:#a8abb3}#empty h3{margin-top:12px}.progress-label{display:flex;justify-content:space-between;font-size:14px;margin:16px 0 8px}progress{width:100%;height:10px;border:0;border-radius:20px;display:block;overflow:hidden;background:#e5e5e8}progress::-webkit-progress-bar{background:#e5e5e8}progress::-webkit-progress-value{background:var(--orange);border-radius:20px}progress::-moz-progress-bar{background:var(--orange)}.controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:23px;margin-top:24px;font-size:14px}.controls input{width:82px}.controls .primary{margin-left:auto}.secondary-actions{display:flex;gap:15px;margin-top:22px;justify-content:space-between}.link-row{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:14px;align-items:center;margin:13px 0}.link-row input{font-size:13px;background:#f7f7f9;width:100%}footer{font-size:12px;color:var(--muted);padding:0 3px 15px}summary{font-weight:650;cursor:pointer}details p{font-size:14px}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f6f8;padding:16px;border-radius:8px;font-size:13px}code{overflow-wrap:anywhere}#notice{border-radius:9px;padding:12px 16px;margin-bottom:20px;background:#e9f6ec;color:#256138}#notice.error,.error{color:#ae2525}#notice.error{background:#ffeded}dialog{border:1px solid var(--line);border-radius:16px;max-width:480px;width:calc(100% - 40px);padding:28px;box-shadow:0 12px 90px #0002}dialog::backdrop{background:#191b2866}.dialog-buttons{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.login-page{min-height:100vh;display:grid;place-items:center}.login-card{width:min(440px,calc(100% - 32px));padding:34px}.login-card .brand{margin-bottom:30px}.login-card h1{font-size:26px}.login-card input{width:100%;margin:8px 0 12px}[hidden]{display:none!important}@media(max-width:1000px){.layout{grid-template-columns:1fr}.layout>form{display:grid;grid-template-columns:1fr 1fr;gap:20px}.upload-row{gap:12px}.thumb{width:100px}.preview-card{margin-top:0}}@media(max-width:650px){header{padding:0 18px;height:64px}.brand small{display:none}main{padding:24px 14px}h1{font-size:29px}.layout>form{display:block}.card{padding:20px;border-radius:12px;margin-bottom:18px}.layout{gap:0}.link-row{grid-template-columns:1fr auto;gap:8px}.link-row label{grid-column:1/-1}.link-row button{padding:10px}.controls{gap:9px}.controls .primary{margin-left:0}.controls label{font-size:13px}.badge{font-size:11px}.section-top h2{font-size:21px}}
