/* _blanco convert – one drop zone, pick the format, done. */
:root {
  --bg: #0a0a0a; --card: #121212; --line: #1f1f1f; --line-strong: #2c2c2c;
  --text: #edeee7; --text-2: #a3a39b; --text-3: #6b6b64; --lime: #c8f841; --warn: #ff7a45;
  --font: Inter, system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; }

.top { padding: 22px 20px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 6vh 20px 60px; }

.drop {
  display: grid; place-items: center; align-content: center; gap: 8px; min-height: 280px; padding: 30px;
  border: 1px dashed var(--line-strong); border-radius: 22px; cursor: pointer; text-align: center;
  transition: border-color .25s cubic-bezier(.3, .7, 0, 1), background .25s, transform .25s cubic-bezier(.3, .7, 0, 1);
}
.drop b { font-size: clamp(34px, 7vw, 58px); font-weight: 900; letter-spacing: -0.045em; line-height: 1; }
.drop span { color: var(--text-3); font-size: 14px; }
.drop:hover { border-color: #3c3c3c; }
.drop.over { border-color: var(--lime); background: rgba(200, 248, 65, .04); transform: scale(1.01); }
.drop.over b { color: var(--lime); }
.drop.small { min-height: 110px; }
.drop.small b { font-size: 26px; }

.files { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.file { display: grid; gap: 12px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.file .head { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.file .name { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .size { color: var(--text-3); font: 500 12.5px var(--mono); white-space: nowrap; }
.file .x { width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--text-3); font-size: 15px; flex: none; }
.file .x:hover { color: var(--text); background: var(--line); }

.formats { display: flex; flex-wrap: wrap; gap: 6px; }
.formats button { height: 32px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line-strong); background: none; color: var(--text-2); font: 700 12.5px var(--mono); letter-spacing: .02em; }
.formats button:hover { color: var(--text); }
.formats button.on { background: var(--lime); border-color: var(--lime); color: #0a0a0a; }
.formats button:disabled { opacity: .35; cursor: default; }

.state { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.state .msg { flex: 1; min-width: 0; color: var(--text-2); font-size: 13px; }
.state .msg.err { color: var(--warn); }
.progress { flex: 1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--lime); transition: width .3s; }
.pct { font: 700 13px var(--mono); color: var(--lime); min-width: 46px; text-align: right; }

.go, .ghost, .dl {
  height: 40px; padding: 0 18px; border-radius: 99px; font-weight: 700; font-size: 14px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.go { border: 0; background: var(--lime); color: #0a0a0a; }
.go:active, .dl:active { transform: scale(.98); }
.ghost { border: 1px solid var(--line-strong); background: none; color: var(--text-2); }
.dl { border: 1px solid var(--lime); color: var(--lime); background: none; }
.dl:hover { background: rgba(200, 248, 65, .08); }

.bar[hidden] { display: none; }
.bar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.foot { margin: 40px 0 0; text-align: center; color: var(--text-3); font-size: 12.5px; }

@media (max-width: 560px) {
  .wrap { padding-top: 3vh; }
  .drop { min-height: 220px; }
  .state { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .drop, .progress i { transition: none; } }

/* sign-in */
.login { max-width: 360px; margin: 10vh auto 0; display: grid; gap: 14px; }
.login .wordmark { margin-bottom: 8px; }
.login p { margin: 0; color: var(--text-2); font-size: 14px; }
.login label { display: grid; gap: 6px; font-size: 12px; color: var(--text-3); }
.login input { height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--card); color: var(--text); font: inherit; font-size: 15px; }
.login input:focus { outline: none; border-color: var(--lime); }
.login .err { color: var(--warn); min-height: 1em; font-size: 13px; }
.login .go { justify-content: center; height: 44px; }
.engine { margin: 10px 0 0; text-align: center; font: 500 12px var(--mono); color: var(--text-3); }
.engine b { color: var(--lime); font-weight: 700; }

/* shared _blanco wordmark (same as the other tools) */
.blanco-workspace-brand { font-family: Arial, Helvetica, sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -1px; line-height: 1.2; white-space: nowrap; color: #edeee7; text-decoration: none; }
.blanco-workspace-brand b { font: inherit; color: inherit; }
.blanco-workspace-brand .blanco-workspace-name { color: var(--lime); }

/* link to share the results */
.link { display: flex; gap: 8px; margin-top: 12px; padding: 8px; border: 1px solid var(--lime); border-radius: 99px; }
.link[hidden] { display: none; }
.link input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border: 0; background: none; color: var(--lime); font: 600 14px var(--mono); outline: none; }
.dl[hidden], .go[hidden] { display: none; }
.dl:disabled { opacity: .5; cursor: default; }

/* download page */
.share-title { margin: 0 0 6px; font-size: clamp(30px, 6vw, 48px); font-weight: 900; letter-spacing: -0.045em; line-height: 1.05; word-break: break-word; }
.share-sub { margin: 0 0 18px; color: var(--text-3); font: 500 13px var(--mono); }
.file .state .name { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-info { margin: 8px 0 0; text-align: center; color: var(--text-3); font: 500 12px var(--mono); }

/* paste a link */
.fetch { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 6px 6px 16px; border: 1px solid var(--line-strong); border-radius: 99px; }
.fetch:focus-within { border-color: var(--lime); }
.fetch input { flex: 1; min-width: 0; height: 40px; border: 0; background: none; color: var(--text); font: inherit; outline: none; }
.fetch input::placeholder { color: var(--text-3); }
.fetch .formats { flex-wrap: nowrap; }
@media (max-width: 560px) { .fetch { flex-wrap: wrap; border-radius: 18px; padding: 8px; } .fetch input { flex-basis: 100%; padding: 0 8px; } .fetch .go { margin-left: auto; } }

/* download page: the paste field is the big box */
.drop.paste { cursor: default; gap: 16px; }
.drop.paste input { width: min(520px, 100%); height: 52px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--card); color: var(--text); font: 500 16px var(--font); text-align: center; outline: none; }
.drop.paste input:focus { border-color: var(--lime); }
.paste-row { display: flex; align-items: center; gap: 10px; }
.drop.paste.small { min-height: 0; padding: 22px; }
