:root { color-scheme: light; font-family: "Instrument Sans", system-ui, sans-serif; color: #251d3b; background: #f6f3fa; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: #4e3aa1; }
.frame { width: min(1040px, calc(100% - 32px)); margin-inline: auto; }
header { border-bottom: 1px solid #e3daed; background: #fbf9fd; }
.mast { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.identity { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 740; }
.identity img { width: 32px; height: 32px; }
h1 { margin: 46px 0 7px; font-size: clamp(2.1rem, 5vw, 3.9rem); letter-spacing: -.045em; line-height: 1.03; }
h2 { font-size: 1.15rem; margin: 0 0 17px; }
.intro { margin: 14px 0 27px; color: #605673; }
.editor { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.editor section { min-width: 0; padding: 21px; border: 1px solid #dfd6e9; background: #fff; border-radius: 16px; box-shadow: 0 2px 9px #37235d0a; }
.actions, .settings { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
button, .file, #download, select { min-height: 42px; background: #f4effb; color: #452e89; border: 1px solid #d9cbed; border-radius: 8px; font: inherit; padding: 9px 12px; font-weight: 650; }
button, .file, #download { cursor: pointer; text-decoration: none; }
#convert { background: #4e3aa1; color: #fff; border-color: #4e3aa1; }
#download { background: #ded2ff; color: #312266; }
button:disabled { opacity: .5; cursor: default; }
.file { position: relative; }
.file input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.file:focus-within { outline: 2px solid #4e3aa1; outline-offset: 2px; }
.hint, #status { font-size: .86rem; color: #615570; overflow-wrap: anywhere; }
.settings label { display: grid; align-items: start; gap: 6px; font-size: .9rem; font-weight: 650; }
.settings span { display: inline-flex; gap: 7px; align-items: center; border: 1px solid #d9cbed; border-radius: 8px; padding: 5px 9px; min-height: 42px; }
input[type=color] { width: 34px; height: 30px; border: 0; padding: 0; background: transparent; }
#hex { font: .8rem system-ui; font-variant-numeric: tabular-nums; }
.media { display: grid; place-items: center; min-height: 180px; border-radius: 9px; overflow: hidden; text-align: center; }
.checker { background-color: #ede6f5; background-image: conic-gradient(#e7ddef 25%,transparent 0 50%,#e7ddef 0 75%,transparent 0); background-size: 20px 20px; color: #615570; }
.output { background: #271d36; }
.media img, .media video { max-width: 100%; max-height: 330px; }
.media video { width: 100%; }
#empty { padding: 14px; }
#status { min-height: 1.2em; }
progress { width: 100%; accent-color: #4e3aa1; margin-bottom: 8px; }
footer { display: flex; gap: 18px; padding: 20px 0 32px; }
.legal { max-width: 690px; line-height: 1.6; }
.legal section { margin-bottom: 37px; }
@media (max-width: 720px) { .editor { grid-template-columns: 1fr; } h1 { margin-top: 28px; } }
