/* alftech file bench — the shared look of the in-browser file tools
   (shrink, cut, convert, pdf, qr, traces). Same family as the developer
   workbench: cool paper, one ink, square edges, and the place your file goes
   as the one dark object on the page. Each tool sets only --acc.
   Loaded after the page's own <style>, so it restyles without rewriting it. */

@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url(/manrope-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url(/manrope-400-cyr.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url(/manrope-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url(/manrope-600-cyr.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url(/manrope-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url(/manrope-700-cyr.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'DM Mono'; font-weight: 400; font-display: swap; src: url(/dm-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'DM Mono'; font-weight: 500; font-display: swap; src: url(/dm-mono-500.woff2) format('woff2'); }

:root {
  --bg: #e9edf1; --card: #f7f9fa; --ink: #0b1622; --soft: #4a5966; --line: #c3ced8;
  --slab: #101c2a; --slab-line: #2b4054; --slab-ink: #e9eef3; --slab-soft: #8ea2b4;
  --accent: var(--ink); --accent-soft: #dfe6ec; --r: 0px;
  --acc: #ffd84a; --acc-ink: #0b1622;
  --sans: 'Manrope', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
html { background: var(--bg); }
body { background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }

/* top bar: the family's name, then the tool */
.bench-top { display: flex; align-items: center; gap: 10px; padding: 0 16px; min-height: 52px; border-bottom: 1px solid var(--line); font: 12px var(--mono); color: var(--soft); }
.bench-top a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font: 800 13px var(--sans); letter-spacing: .12em; }
.bench-top a i { width: 11px; height: 11px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px var(--ink); display: block; }
.bench-top .bench-note { margin-left: auto; text-align: right; }
@media (max-width: 420px) { .bench-top .bench-note { display: none; } }

.wrap { max-width: 1000px; padding: 26px 16px 72px; }
@media (min-width: 900px) { .wrap { padding: 44px 28px 80px; } .bench-top { padding: 0 28px; } }

.head { align-items: flex-end; margin-bottom: 14px; }
h1, .head h1 { font: 600 clamp(52px, 13vw, 92px)/.9 var(--sans); letter-spacing: -.065em; margin: 0; }
.lede { color: var(--soft); font-size: 17px; max-width: 58ch; margin: 0 0 26px; }
h2 { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin: 0 0 14px; }

/* language switch: two mono chips, not a pill */
.langs { background: transparent; border: 0; padding: 0; border-radius: 0; gap: 0; }
.langs button { font: 500 12px var(--mono); border-radius: 0; border: 1px solid var(--ink); color: var(--ink); padding: 6px 11px; background: transparent; }
.langs button + button { border-left: 0; }
.langs button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 0; padding: 18px; }

/* the dark object: where the file goes */
.card:has(> .drop) { background: var(--slab); border-color: var(--slab); padding: 14px; }
.drop { background: transparent; border: 1px dashed var(--slab-line); border-radius: 0; color: var(--slab-ink); padding: 34px 18px; }
.drop:hover, .drop.over { background: rgba(255,255,255,.04); border-color: var(--acc); }
.drop strong, .drop b { color: #fff; font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.drop .muted, .drop span, .drop > span { color: var(--slab-soft); }
.drop .choose-btn, .drop .choose button, .drop button { background: var(--acc); color: var(--acc-ink); border-radius: 0; font: 500 13px var(--mono); letter-spacing: .03em; border: 0; }
.drop .choose-btn { color: var(--acc-ink); }

label { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin-bottom: 6px; }
input, select, textarea { border-radius: 0; border: 1px solid var(--line); background: #fff; font-family: var(--sans); }
input[type=number], input[type=text], input[type=url] { font-family: var(--mono); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
input[type=range] { accent-color: var(--ink); background: transparent; border: 0; }
.hint, .muted { color: var(--soft); }

button { border-radius: 0; background: var(--ink); color: #fff; font: 500 13px var(--mono); letter-spacing: .03em; padding: 12px 18px; }
button:hover:not(:disabled) { background: #22323f; }
button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
button.ghost:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
a.dl, .dl, a[download].btn { border-radius: 0; }

.chip { border-radius: 0; border: 1px solid var(--ink); background: transparent; font: 500 13px var(--mono); color: var(--ink); }
.chip:hover { border-color: var(--ink); background: rgba(11,22,34,.05); }
.chip.on, .chip[aria-pressed="true"] { background: var(--acc); color: var(--acc-ink); border-color: var(--ink); }

.check input[type=checkbox] { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><rect x='1.5' y='1.5' width='17' height='17' fill='%23fff' stroke='%230b1622' stroke-width='1.5'/></svg>"); }
.check input[type=checkbox]:checked { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><rect x='1' y='1' width='18' height='18' fill='%230b1622'/><path d='M5.5 10.4l3 3 6-6.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }

.note { background: transparent; border-left: 3px solid var(--ink); border-radius: 0; padding: 4px 0 4px 14px; color: #22323f; }
.bar { border-radius: 0; height: 3px; background: var(--line); }
.bar i { background: var(--ink); }
.thumb { border-radius: 0; }
.fwarn, .warn { border-radius: 0; }
.summary b { font: 500 22px var(--mono); letter-spacing: -.02em; }

/* the family: a plain list, not a grid of cards */
.family { border-top: 1px solid var(--ink); margin-top: 36px; padding-top: 16px; }
.family h2 { font: 500 11px var(--mono); letter-spacing: .08em; color: var(--soft); }
.family ul { display: block; border-top: 1px solid var(--line); }
.family li { border-bottom: 1px solid var(--line); }
.family a { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border: 0; border-radius: 0; background: transparent; padding: 12px 0; min-height: 44px; box-sizing: border-box; }
.family a:hover { border: 0; background: transparent; }
.family a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.family b { font-size: 16px; min-width: 6.5em; }
.family span { font: 13px var(--mono); }
.family p { font-size: 13px; }

footer { border-top: 1px solid var(--line); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* buttons that share the dark slab with the drop zone */
.card:has(> .drop) button.ghost, .card:has(> .drop) .row button { background: transparent; color: var(--slab-ink); border: 1px solid var(--slab-line); }
.card:has(> .drop) button.ghost:hover:not(:disabled) { border-color: var(--acc); background: transparent; color: #fff; }
.card:has(> .drop) .muted, .card:has(> .drop) .hint { color: var(--slab-soft); }
