:root { color-scheme: dark; --bg:#101218; --panel:#191c24; --line:#2c3140; --text:#f4f6fb; --muted:#9ba3b5; --accent:#8df0c3; --accent-2:#8ca7ff; --danger:#ff8c99; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; background:radial-gradient(circle at 80% 0%, #27314f 0, transparent 34rem), var(--bg); color:var(--text); font:15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
main { width:min(1100px, calc(100% - 32px)); margin:0 auto; padding:56px 0 72px; }
.topbar { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.language-switch { display:inline-flex; padding:3px; border:1px solid var(--line); border-radius:10px; background:#10131b; }
.language-switch button { min-width:44px; padding:7px 10px; border-radius:7px; color:var(--muted); background:transparent; }
.language-switch button[aria-pressed="true"] { color:#0b2118; background:var(--accent); }
.language-switch button:focus-visible { outline:2px solid var(--accent-2); outline-offset:2px; }
.eyebrow { color:var(--accent); font-weight:700; letter-spacing:.12em; text-transform:uppercase; font-size:12px; }
h1 { margin:10px 0 12px; font-size:clamp(36px, 7vw, 72px); line-height:1; letter-spacing:-.06em; }
.intro { max-width:640px; color:var(--muted); font-size:17px; margin:0 0 34px; }
.grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.panel { background:color-mix(in srgb, var(--panel) 92%, transparent); border:1px solid var(--line); border-radius:20px; padding:22px; box-shadow:0 18px 70px #0002; }
.dropzone { min-height:210px; border:1px dashed #66718a; border-radius:14px; display:grid; place-items:center; text-align:center; padding:25px; cursor:pointer; transition:.2s; }
.dropzone:hover, .dropzone.dragover { border-color:var(--accent); background:#8df0c30d; }
.dropzone strong { display:block; font-size:18px; margin-bottom:5px; }
.dropzone span, .hint { color:var(--muted); }
input[type=file] { display:none; }
.file-info { display:none; margin-top:15px; padding:12px; background:#10131b; border-radius:10px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.file-info.visible { display:block; }
.fields { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.fields-spaced { margin-top:22px; }
label { display:block; color:var(--muted); font-size:13px; margin-bottom:7px; }
input[type=number] { width:100%; padding:12px 13px; color:var(--text); background:#10131b; border:1px solid var(--line); border-radius:10px; font:inherit; outline:none; }
input[type=number]:focus { border-color:var(--accent-2); }
.full { grid-column:1/-1; }
.range-line { display:flex; justify-content:space-between; align-items:center; color:var(--muted); font-size:13px; }
input[type=range] { width:100%; accent-color:var(--accent); }
button, .download { border:0; border-radius:11px; padding:12px 18px; font:700 14px inherit; cursor:pointer; transition:.2s; }
button.primary { width:100%; margin-top:20px; background:var(--accent); color:#0b2118; }
button.primary:hover:not(:disabled) { filter:brightness(1.08); transform:translateY(-1px); }
button:disabled { opacity:.4; cursor:not-allowed; }
.status { margin-top:20px; color:var(--muted); min-height:24px; }
.progress { height:7px; border-radius:99px; overflow:hidden; background:#0d1016; margin-top:9px; }
.progress i { display:block; width:0; height:100%; background:linear-gradient(90deg,var(--accent),var(--accent-2)); transition:width .2s; }
.result { min-height:100%; display:flex; flex-direction:column; }
.preview { flex:1; min-height:310px; border-radius:14px; background:#0e1016; display:grid; place-items:center; overflow:hidden; }
.preview img { max-width:100%; max-height:430px; display:none; }
.empty { color:#626b7c; text-align:center; padding:30px; }
.download { display:none; margin-top:18px; text-align:center; background:var(--accent-2); color:#0d1225; text-decoration:none; }
.download.visible { display:block; }
.privacy { margin-top:24px; color:var(--muted); font-size:13px; border-top:1px solid var(--line); padding-top:17px; }
.privacy b { color:var(--accent); }
.terms { margin-top:12px; padding:12px 13px; border-left:3px solid var(--danger); background:#ff8c990a; color:var(--muted); font-size:13px; }
.terms b { color:var(--text); }
.site-footer { margin-top:30px; padding-top:18px; border-top:1px solid var(--line); text-align:center; }
.site-footer a, .back-link { color:var(--accent); text-decoration:none; }
.site-footer a:hover, .back-link:hover { text-decoration:underline; }
.policy-page { max-width:900px; }
.policy { margin-top:30px; }
.policy h1 { margin-top:0; }
.policy h2 { margin:32px 0 10px; color:var(--accent); font-size:20px; letter-spacing:-.02em; }
.policy h3 { margin:24px 0 8px; color:var(--text); font-size:16px; }
.policy p, .policy li { color:var(--muted); }
.policy ul { padding-left:24px; }
.policy ol { padding-left:24px; }
.policy li + li { margin-top:6px; }
.policy-date { margin-bottom:28px; }
.policy-date strong { color:var(--text); }
.legal-emphasis { color:var(--text) !important; font-weight:800; }
@media (max-width:720px) { main { padding-top:32px; } .grid, .fields { grid-template-columns:1fr; } .full { grid-column:auto; } }