:root {
  --bg: #f6f5fa;
  --surface: #ffffff;
  --surface-2: #f1eff7;
  --border: #e4e1ee;
  --text: #16141f;
  --muted: #6c6881;
  --accent: #7c3aed;
  --accent-2: #db2777;
  --accent-3: #f59e0b;
  --on-accent: #ffffff;
  --danger: #dc2626;
  --ok: #059669;
  --grad: linear-gradient(120deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  --radius: 16px;
  --shadow: 0 1px 2px rgb(20 10 40 / 0.04), 0 8px 24px rgb(20 10 40 / 0.06);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0b14;
    --surface: #16131f;
    --surface-2: #1d1a29;
    --border: #2a2638;
    --text: #eceaf4;
    --muted: #9b97ae;
    --accent: #9b6bff;
    --accent-2: #f0529c;
    --accent-3: #fbb040;
    --danger: #f87171;
    --ok: #34d399;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px rgb(0 0 0 / 0.35);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw auto;
  height: 70vh;
  background: radial-gradient(40% 50% at 30% 30%, rgb(124 58 237 / 0.18), transparent 70%),
              radial-gradient(35% 45% at 75% 20%, rgb(219 39 119 / 0.13), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

main, .top, .foot { max-width: 960px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

.top { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 750; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand img { border-radius: 9px; }
.gh { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; font-size: 0.9rem; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.gh:hover { color: var(--text); }

.hero { text-align: center; padding: 48px 0 28px; }
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 16px; font-weight: 800; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 58ch; margin: 0 auto 14px; }
.stats { color: var(--muted); font-size: 0.9rem; margin: 0; }
.stats b { color: var(--text); font-variant-numeric: tabular-nums; }

.btn {
  font: inherit; font-weight: 600; border-radius: 10px; border: 1px solid transparent; padding: 9px 16px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; transition: transform 0.08s, filter 0.15s, background 0.15s; white-space: nowrap;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: var(--grad); color: var(--on-accent); box-shadow: 0 4px 14px rgb(124 58 237 / 0.28); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn.ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn.ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn.big { font-size: 1.05rem; padding: 13px 28px; border-radius: 12px; }
.btn.small { padding: 6px 12px; font-size: 0.85rem; border-radius: 8px; }

.drop {
  border: 2px dashed var(--border); border-radius: 22px; background: var(--surface);
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 44px 20px; box-shadow: var(--shadow);
  transition: padding 0.2s;
}
.drop.compact { flex-direction: row; justify-content: center; flex-wrap: wrap; padding: 18px 20px; gap: 14px; }
.drop.compact .drop-icon { display: none; }
.drop.compact .btn.big { font-size: 0.95rem; padding: 10px 20px; }
.drop-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.drop-hint { margin: 0; color: var(--muted); font-size: 0.9rem; text-align: center; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 16px; }

.queue-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.queue-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: 0.9rem; }

select, input[type="number"] {
  font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 7px 10px;
}
select:focus-visible, input:focus-visible, .btn:focus-visible, .rm:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; padding: 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.settings fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px 12px; margin: 0; background: var(--surface); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.settings legend { font-weight: 700; font-size: 0.85rem; padding: 0 4px; }
.settings label { display: flex; flex-direction: column; gap: 5px; font-size: 0.84rem; color: var(--muted); }
.settings label.inline { flex-direction: row; align-items: center; justify-content: space-between; }
.settings .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.settings .pair input { width: 100%; }
.settings input[type="range"] { accent-color: var(--accent); }
.settings input[type="color"] { width: 40px; height: 28px; border: 1px solid var(--border); border-radius: 6px; background: none; padding: 0 2px; }
.settings .lrow { display: flex; justify-content: space-between; gap: 8px; }
.settings .val { color: var(--text); font-variant-numeric: tabular-nums; }
.settings #resetSettings { align-self: end; justify-self: start; }

.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 156px 158px; align-items: center; gap: 14px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.row:last-child { border-bottom: none; }
.badge {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.02em;
  color: #fff; background: #64748b;
}
.badge[data-cat="image"] { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.badge[data-cat="video"] { background: linear-gradient(135deg, #ec4899, #be185d); }
.badge[data-cat="audio"] { background: linear-gradient(135deg, #fb923c, #ea580c); }
.badge[data-cat="document"] { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.badge[data-cat="spreadsheet"] { background: linear-gradient(135deg, #34d399, #059669); }
.badge[data-cat="data"] { background: linear-gradient(135deg, #facc15, #ca8a04); }
.badge[data-cat="archive"] { background: linear-gradient(135deg, #94a3b8, #475569); }
.info { min-width: 0; }
.name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub { display: flex; gap: 10px; font-size: 0.82rem; color: var(--muted); min-height: 1.3em; }
.sub .size { flex: none; white-space: nowrap; }
.sub .msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row[data-state="error"] .msg { color: var(--danger); white-space: normal; }
.row[data-state="done"] .msg { color: var(--ok); }
.bar { height: 4px; border-radius: 4px; background: var(--surface-2); margin-top: 6px; overflow: hidden; opacity: 0; transition: opacity 0.2s; }
.row[data-state="working"] .bar, .row[data-state="done"] .bar { opacity: 1; }
.bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: inherit; transition: width 0.2s; }
.row[data-state="done"] .bar i { background: var(--ok); }
.row[data-state="working"] .bar i { min-width: 6%; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }
.to { display: flex; align-items: center; gap: 8px; }
.to select { flex: 1; min-width: 0; }
.arrow { color: var(--muted); }
.nosupport { font-size: 0.85rem; color: var(--muted); }
.act { display: flex; align-items: center; gap: 6px; justify-content: flex-end; min-width: 36px; }
.rm { background: none; border: none; color: var(--muted); width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.rm:hover { background: var(--surface-2); color: var(--text); }

.queue-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border); }
.queue-actions #convertAll { min-width: 140px; justify-content: center; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 56px 0 0; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.feature h3 { margin: 12px 0 6px; font-size: 1.02rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.f-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--on-accent); background: var(--grad); }

.formats, .notes { margin-top: 56px; }
.formats h2, .notes h2 { font-size: 1.4rem; letter-spacing: -0.02em; margin: 0 0 16px; }
.format-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.fcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.fcard h3 { margin: 0 0 10px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.fcard h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: #64748b; }
.fcard[data-cat="image"] h3::before { background: #8b5cf6; }
.fcard[data-cat="video"] h3::before { background: #ec4899; }
.fcard[data-cat="audio"] h3::before { background: #fb923c; }
.fcard[data-cat="document"] h3::before { background: #3b82f6; }
.fcard[data-cat="spreadsheet"] h3::before { background: #10b981; }
.fcard[data-cat="data"] h3::before { background: #eab308; }
.frow { display: grid; grid-template-columns: 42px 1fr; gap: 8px; align-items: start; margin-top: 6px; }
.flabel { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-top: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }

.notes dl { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 20px; }
.notes dt { font-weight: 650; margin-top: 14px; }
.notes dd { margin: 4px 0 14px; color: var(--muted); font-size: 0.93rem; }
.notes dd:not(:last-child) { padding-bottom: 14px; border-bottom: 1px solid var(--border); }

.foot { padding-top: 40px; padding-bottom: 40px; color: var(--muted); font-size: 0.85rem; text-align: center; }
.foot p { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.foot img { border-radius: 5px; flex: none; }

.overlay {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; pointer-events: none;
  background: color-mix(in srgb, var(--bg) 75%, transparent); backdrop-filter: blur(4px);
}
.overlay div {
  border: 3px dashed var(--accent); border-radius: 24px; padding: 48px 64px; font-size: 1.3rem; font-weight: 700; background: var(--surface);
}

.top { gap: 12px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.tabs a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.9rem; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { background: var(--grad); color: var(--on-accent); }
.hero.small { padding: 36px 0 22px; }
.hero.small h1 { font-size: clamp(1.8rem, 4.6vw, 2.8rem); }

.promo {
  display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 16px 20px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.15s;
}
.promo:hover { border-color: var(--accent); }
.promo-ico { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #60a5fa, #2563eb); }
.promo-ico.shots { background: linear-gradient(135deg, #ec4899, #be185d); }
.promo-ico.split { background: linear-gradient(135deg, #34d399, #059669); }
.promo-go { margin-left: auto; font-size: 1.3rem; color: var(--muted); }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tool-card {
  display: block; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: transform 0.12s, border-color 0.15s;
}
.tool-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.tool-card h3 { margin: 14px 0 4px; font-size: 1.05rem; }
.tool-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.tool-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--on-accent); background: var(--grad); }

.tool { margin-top: 0; }
.tool-head { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tool-head h2 { margin: 0; font-size: 1.15rem; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 600; }
.back:hover { color: var(--text); }
.tool-root { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.picker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px; border: 2px dashed var(--border); border-radius: 14px; background: var(--surface-2); }
.tool-hint, .tool-file { margin: 0; font-size: 0.88rem; color: var(--muted); }
.tool-file { color: var(--text); font-weight: 600; }
.tool-work { display: flex; flex-direction: column; gap: 14px; }
.tool-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tool-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.tool-actions.sticky { position: sticky; bottom: 0; z-index: 5; margin: 0 -18px -18px; padding: 12px 18px; background: var(--surface); border-top: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); }
.tool-msg { margin-right: auto; font-size: 0.88rem; color: var(--muted); }
.tool-msg[data-kind="ok"] { color: var(--ok); }
.tool-msg[data-kind="error"] { color: var(--danger); }
.empty-note { padding: 20px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.empty-note p { margin: 0; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); flex-wrap: wrap; }
.seg button { font: inherit; font-size: 0.88rem; font-weight: 600; border: none; background: none; color: var(--muted); padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / 0.15); }

.text-in { font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px; width: 100%; max-width: 420px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.card-grid:empty { display: none; }
.tcard { position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; cursor: grab; user-select: none; }
.tcard:active { cursor: grabbing; }
.pages.selectable .tcard, .card-grid.pages:not(:has(.tc-actions)) .tcard { cursor: default; }
.pages.selectable .tcard { cursor: pointer; }
.tcard.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.tcard.selected::after { content: "✓"; position: absolute; top: 12px; left: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; color: #fff; background: var(--accent); }
.tcard.err { border-color: var(--danger); }
.tcard.err .tc-meta { color: var(--danger); }
.tcard.ghost { opacity: 0.4; }
.tc-thumb { aspect-ratio: 1; border-radius: 8px; background: color-mix(in srgb, var(--surface) 60%, transparent); display: grid; place-items: center; overflow: hidden; }
.tc-thumb img { max-width: 100%; max-height: 100%; box-shadow: 0 1px 4px rgb(0 0 0 / 0.25); transition: transform 0.2s; }
.tc-thumb img:not([src]) { display: none; }
.tc-info { display: flex; flex-direction: column; min-width: 0; }
.tc-name { font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-meta { font-size: 0.75rem; color: var(--muted); }
.tc-actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
.tcard:hover .tc-actions, .tcard:focus-within .tc-actions { opacity: 1; }
@media (hover: none) { .tc-actions { opacity: 1; } }
.icon-btn { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 3px rgb(0 0 0 / 0.2); }
.icon-btn:hover { background: var(--surface-2); }
.tcard > .btn { width: 100%; }

.result-list { display: flex; flex-direction: column; }
.result-list:empty { display: none; }
.result-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.result-row .ok { color: var(--ok); }
.result-row .err { color: var(--danger); }
.sj-pane { display: flex; flex-direction: column; gap: 14px; }

.viewer { display: flex; flex-direction: column; align-items: center; gap: 28px; overflow-x: auto; padding-bottom: 24px; }
.pv-page { position: relative; flex: none; background: #fff; box-shadow: 0 2px 12px rgb(0 0 0 / 0.25); color-scheme: light; }
.pv-page > img { display: block; width: 100%; height: 100%; }
.pv-num { position: absolute; bottom: -1px; left: 50%; transform: translate(-50%, 100%); font-size: 0.75rem; color: var(--muted); padding-top: 2px; }
.sign-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sig-tray { display: flex; gap: 6px; flex-wrap: wrap; }
.sig-chip { height: 38px; padding: 3px 8px; border-radius: 8px; border: 1px dashed var(--border); background: #fff; cursor: pointer; }
.sig-chip img { height: 100%; }
.ov { position: absolute; touch-action: none; cursor: move; outline: 1px dashed transparent; border-radius: 3px; }
.ov:hover, .ov.sel, .ov:focus-within { outline-color: #2563eb; }
.ov.sel { background: rgb(37 99 235 / 0.06); }
.ov img { width: 100%; height: 100%; display: block; pointer-events: none; }
.ov-text { padding: 3px; line-height: 1.25; white-space: pre; color: #111827; outline: none; min-width: 12px; cursor: text; }
.ov-text:empty::before { content: attr(data-placeholder); color: #9ca3af; }
.ov-del, .ov-handle { position: absolute; display: none; }
.ov.sel .ov-del, .ov.sel .ov-handle, .ov:focus-within .ov-del, .ov:focus-within .ov-handle { display: grid; }
.ov-del { top: -11px; right: -11px; width: 22px; height: 22px; border-radius: 50%; border: none; background: #ef4444; color: #fff; font-weight: 700; line-height: 1; place-items: center; cursor: pointer; }
.ov-handle { right: -6px; bottom: -6px; width: 12px; height: 12px; border-radius: 3px; background: #2563eb; border: 2px solid #fff; cursor: nwse-resize; }
.ff { position: absolute; margin: 0; padding: 1px 3px; border: 1px solid rgb(37 99 235 / 0.45); border-radius: 2px; background: rgb(219 234 254 / 0.55); color: #111; font-family: system-ui, sans-serif; resize: none; }
.ff:focus { outline: 2px solid #2563eb; background: rgb(219 234 254 / 0.85); }
.ff-check { accent-color: #2563eb; padding: 0; }
.ff:disabled { background: rgb(229 231 235 / 0.6); }

.sig-dialog { width: min(640px, calc(100vw - 32px)); border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); padding: 20px; box-shadow: 0 24px 64px rgb(0 0 0 / 0.4); }
.sig-dialog::backdrop { background: rgb(0 0 0 / 0.5); backdrop-filter: blur(3px); }
.sig-dialog h3 { margin: 0 0 14px; }
.sig-dialog > * + * { margin-top: 12px; }
.sig-panel { display: flex; flex-direction: column; gap: 10px; }
.sig-pad { width: 100%; aspect-ratio: 1000 / 320; background: #fff; border-radius: 12px; border: 1px solid var(--border); touch-action: none; cursor: crosshair; }
.font-list { display: grid; gap: 8px; }
.font-opt { font-size: 2rem; text-align: left; padding: 8px 16px; background: #fff; border: 2px solid var(--border); border-radius: 12px; cursor: pointer; line-height: 1.3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.font-opt[aria-pressed="true"] { border-color: var(--accent); }
.up-preview { max-height: 120px; max-width: 100%; align-self: flex-start; background: repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 0 0 / 16px 16px; border-radius: 8px; }
.up-preview:not([src]) { display: none; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; }

@media (max-width: 720px) {
  .top { flex-wrap: wrap; }
  .tabs { order: 3; width: 100%; justify-content: center; }
  .tabs a { flex: 1; text-align: center; }
  .gh span { display: none; }
  .tool-root { padding: 14px; }
  .tool-actions.sticky { margin: 0 -14px -14px; padding: 12px 14px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .features { grid-template-columns: 1fr; }
  .row { grid-template-columns: 40px minmax(0, 1fr) auto; row-gap: 10px; }
  .badge { width: 40px; height: 40px; }
  .to { grid-column: 2; grid-row: 2; }
  .act { display: contents; }
  .rm { grid-column: 3; grid-row: 1; justify-self: end; }
  .dl { grid-column: 3; grid-row: 2; }
  .queue-bar { flex-direction: column; align-items: stretch; }
  .queue-tools { justify-content: space-between; }
  .queue-tools select { flex: 1 1 100%; }
  .queue-actions { flex-direction: column-reverse; }
  .queue-actions .btn { justify-content: center; }
  .foot p { display: block; }
  .foot img { vertical-align: middle; margin-right: 6px; }
}
