:root { color-scheme: light; font: 16px/1.5 system-ui, sans-serif; color: #201b29; background: #f6f4f8; --muted: #62586e; --accent: #5632a8; --line: #ded7e8; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 1120px; margin: auto; padding: 0 clamp(20px, 5vw, 48px); }
header { min-height: 82px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.brand-mark, .drop-icon { display: grid; place-items: center; color: #fff; background: var(--accent); border-radius: 10px; width: 34px; height: 34px; }
.badge { margin-left: auto; color: #4e2b93; background: #eee6ff; padding: 6px 12px; border-radius: 20px; font-size: .8rem; font-weight: 700; }
.hero { margin: clamp(42px, 7vw, 82px) 0 32px; }
.eyebrow, footer span { color: var(--accent); font: 700 .75rem/1.5 ui-monospace, monospace; letter-spacing: .11em; }
h1 { font-size: clamp(2.7rem, 7vw, 5.5rem); line-height: .99; max-width: 780px; letter-spacing: -.065em; margin: 14px 0 20px; }
h1 em { color: var(--accent); font-style: normal; }
.hero > p:last-child { color: var(--muted); max-width: 560px; }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .45fr); gap: 16px; }
.workspace, form { border: 1px solid var(--line); border-radius: 20px; padding: clamp(15px, 3vw, 24px); background: #fff; min-width: 0; }
.drop { display: grid; position: relative; min-height: 260px; align-content: center; justify-items: center; gap: 6px; padding: 18px; border: 2px dashed #bda9df; border-radius: 13px; text-align: center; background: #fbf8ff; color: var(--muted); cursor: pointer; }
.drop:focus-within, .drop:hover, .drop.active { border-color: var(--accent); background: #f0e8ff; }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop-icon { width: 44px; height: 44px; margin-bottom: 5px; font-size: 1.4rem; }
.drop strong { color: #292035; }
.drop small { font-size: .72rem; letter-spacing: .12em; margin-top: 7px; }
form { display: flex; flex-direction: column; gap: 12px; align-self: start; }
h2 { font-size: 1.1rem; margin: 0 0 3px; }
form label { display: grid; grid-template-columns: 1fr auto; gap: 5px; font-size: .86rem; font-weight: 650; }
select, input[type=number] { grid-column: 1 / -1; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #faf9fc; color: inherit; padding: 9px; }
input, select, button { font: inherit; }
form small { color: var(--muted); margin-top: -7px; }
input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); }
button, .download { cursor: pointer; }
.primary { display: flex; justify-content: space-between; background: var(--accent); color: #fff; border: 0; border-radius: 9px; padding: 10px 13px; margin-top: 3px; font-weight: 700; }
.primary:disabled { opacity: .55; cursor: default; }
.file-head, li, footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.file-head { margin-top: 16px; }
.link, .download { border: 0; background: none; color: var(--accent); text-decoration: underline; padding: 4px; }
ul { margin: 0; padding: 0; list-style: none; }
li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
li > span { overflow-wrap: anywhere; min-width: 0; }
li small { display: block; color: var(--muted); }
#status { min-height: 24px; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 18px 0 28px; color: var(--muted); font-size: .8rem; }
@media (max-width: 680px) { .tool { grid-template-columns: 1fr; } .drop { min-height: 190px; } }
