@font-face {
  font-family: 'Space Grotesk';
  src: url(/fonts/space-grotesk.woff2) format('woff2');
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Vietnamese letters (ă, đ, ơ, ư, ạ…ỹ): loaded only on pages that use them. */
@font-face {
  font-family: 'Space Grotesk';
  src: url(/fonts/space-grotesk-vi.woff2) format('woff2');
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  --bg: #fafaf7;
  --ink: #141414;
  --muted: #6b6a63;
  --line: #e5e4de;
  --edge: #8f8d85;   /* borders of form controls: 3:1 on white, as WCAG asks for controls */
  --card: #ffffff;
  /* One colour per group: fill + the dark ink that sits on it. */
  --image: #d7f75b; --image-ink: #2a3300;
  --video: #ff7a59; --video-ink: #3d1406;
  --audio: #b9a7ff; --audio-ink: #211552;
  --pdf: #8fd3ff;   --pdf-ink: #06324d;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.logo { font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.logo span { color: var(--video); }
.top-link { display: inline-flex; align-items: center; height: 34px; font-size: 15px; font-weight: 500; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 99px; }
.top-link:hover { background: var(--image); }
.top-right { display: flex; gap: 8px; align-items: center; }
.lang { font: inherit; font-size: 14px; font-weight: 500; width: 42px; height: 34px; border: 1.5px solid var(--line); border-radius: 99px; background: none; color: var(--ink); cursor: pointer; }
.lang:hover { border-color: var(--ink); }

/* Home: one 4-column grid. The slogan over two columns and the search over the other two, one group tile per
   column, and while searching the matches under their group's tile. The footer keeps to the bottom of the screen. */
.home { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.home main { flex: 1; }
.hero, .kinds, .results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hero { align-items: end; padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.hero h1 { grid-column: span 2; font-size: clamp(48px, 7vw, 96px); font-weight: 500; line-height: .92; letter-spacing: -.045em; }
.finder { grid-column: span 2; }
.hint { margin-top: 8px; padding-left: 16px; font-size: 14px; color: var(--muted); }

.search {
  display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 8px 0 16px;
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 12px;
}
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font: inherit; font-size: 16px; color: var(--ink); }
::placeholder { color: #75746d; opacity: 1; }
.search:focus-within { box-shadow: 0 0 0 4px var(--image); }
.pick:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
kbd { font: inherit; font-size: 12px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }

/* Group tiles: name and arrow on top, the count at the bottom */
.kind {
  display: grid; grid-template: auto 1fr auto / 1fr auto;
  min-height: clamp(160px, 17vw, 220px); padding: 24px; border-radius: 20px;
  background: var(--c); color: var(--c-ink); transition: transform .2s;
}
.kind > span { font-size: clamp(26px, 2.6vw, 32px); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; }
.kind i { grid-area: 1 / 2; font-style: normal; font-size: 20px; line-height: 1; transition: transform .2s; }
.kind small { grid-area: 3 / 1; font-size: 14px; }
.eg { grid-area: 2 / 1 / 3 / 3; align-self: end; margin-bottom: 4px; font-size: 15px; font-weight: 500; }
.kind:hover { transform: translateY(-3px); }
.kind:hover i { transform: translate(3px, -3px); }

.image { --c: var(--image); --c-ink: var(--image-ink); }
.video { --c: var(--video); --c-ink: var(--video-ink); }
.audio { --c: var(--audio); --c-ink: var(--audio-ink); }
.pdf   { --c: var(--pdf);   --c-ink: var(--pdf-ink); }

/* Search results: rows under each tile, the text lined up with the tile's */
.results { align-items: start; padding-top: 8px; }
.home:not(.searching) .results { display: none; }
.group h2 { display: none; align-items: center; gap: 8px; padding: 20px 0 4px; font-size: 14px; font-weight: 500; color: var(--muted); }   /* phones only */
.group h2::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.group .tools { display: grid; }
.tool { position: relative; display: grid; gap: 2px; padding: 12px 8px 12px 24px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; }
.tool small { font-size: 14px; font-weight: 400; color: var(--muted); }
.tool::before { content: ''; position: absolute; left: 8px; top: 21px; width: 8px; height: 8px; border-radius: 50%; background: var(--c); opacity: 0; transition: opacity .15s; }
.tool:hover::before { opacity: 1; }
.none { padding: 12px 24px; font-size: 14px; color: var(--muted); }
/* Not built yet: every tool is "Soon" until its page exists (an <a class="tool"> drops the badge). */
li.tool:not(.ready)::after {
  content: 'Soon'; position: absolute; top: 16px; right: 16px;
  font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 99px;
  background: color-mix(in srgb, var(--c) 45%, transparent); color: var(--c-ink);
}
li.tool { color: #3a3a36; }
:lang(vi) li.tool:not(.ready)::after { content: 'Sắp có'; }
.tool.ready { color: var(--ink); }
.tool.ready a::after { content: ''; position: absolute; inset: 0; }   /* the whole row is the link */

.empty { padding: 48px 0; font-size: 20px; color: var(--muted); }

/* Home sections under the tiles: favourites, tools by job, credits. Hidden while searching. */
.home.searching .band { display: none; }
.band { padding-top: clamp(56px, 7vw, 96px); }
.band-title { margin-bottom: 20px; font-size: clamp(26px, 2.6vw, 32px); font-weight: 500; letter-spacing: -.03em; }
.favs, .jobs, .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.jobs, .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fav, .job, .steps li { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 24px; }
.fav { position: relative; display: grid; gap: 4px; align-content: start; font-size: 17px; font-weight: 500; transition: border-color .15s; }
.fav::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.fav::before { margin-bottom: 12px; }
.fav small { font-size: 14px; font-weight: 400; color: var(--muted); }
.fav a::after { content: ''; position: absolute; inset: 0; }   /* the whole card is the link */
.fav:hover { border-color: var(--ink); }
.job { position: relative; display: grid; gap: 6px; align-content: start; padding: 12px 12px 20px; transition: border-color .15s; }
.job h3 a::after { content: ''; position: absolute; inset: 0; }   /* the whole card is the link */
.snd { position: absolute; z-index: 1; top: 22px; right: 22px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: var(--card); color: var(--ink); box-shadow: 0 2px 10px rgb(20 20 20 / .18); cursor: pointer; }
.snd:hover { background: var(--image); }
.snd[aria-pressed="false"] .on, .snd[aria-pressed="true"] .off { display: none; }
.job:hover { border-color: var(--ink); }
.job video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 10px; border-radius: 12px; background: var(--line); }
.job h3 { margin: 0; padding: 0 12px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.job p { padding: 0 12px; font-size: 14px; color: var(--muted); }
.steps { counter-reset: step; margin: 0 0 20px; padding: 0; list-style: none; }
.steps li { display: grid; gap: 6px; align-content: start; counter-increment: step; }
.steps li::before { content: counter(step); margin-bottom: 16px; font-size: 32px; font-weight: 500; line-height: 1; }
.steps b { font-size: 17px; font-weight: 500; }
.steps span { font-size: 14px; color: var(--muted); }

/* Inner pages: Send, Admin */
.page { padding-top: clamp(32px, 6vw, 72px); display: grid; gap: 16px; align-content: start; }
.page h1 { font-size: clamp(44px, 8vw, 96px); font-weight: 500; line-height: .95; letter-spacing: -.04em; }
.page h2 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 12px; }
.lede { max-width: 34em; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); margin-bottom: 8px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 28px); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.panel > .row + .row { margin-top: 16px; }
.note { font-size: 14px; color: var(--muted); }
.note a { text-decoration: underline; }
.error { min-height: 1.5em; color: var(--video-ink); font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px;
  background: var(--ink); color: var(--bg); border: 1.5px solid var(--ink); border-radius: 12px;
  font: inherit; font-weight: 500; cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: #2c2c29; }
.btn.ghost { background: none; color: var(--ink); }
.btn.ghost:hover { background: var(--image); }
.btn.small { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.field { flex: 1 1 220px; display: flex; }
.field input {
  width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 12px;
  background: var(--card); font: inherit; font-size: 17px; color: var(--ink); outline: none;
}
.field input:focus { box-shadow: 0 0 0 4px var(--image); }
#code { text-transform: uppercase; letter-spacing: .12em; }
#code::placeholder { text-transform: none; letter-spacing: 0; }

.code { font-size: clamp(56px, 13vw, 128px); font-weight: 500; letter-spacing: .06em; line-height: 1; margin: 4px 0 12px; }
.status { font-size: 16px; }
.drop {
  display: block; margin-top: 20px; padding: clamp(28px, 6vw, 56px) 20px; text-align: center; cursor: pointer;
  border: 2px dashed var(--edge); border-radius: 20px; font-size: 18px; color: var(--muted);
}
.drop strong { color: var(--ink); font-weight: 500; text-decoration: underline; }
.drop:hover, .drop.over { border-color: var(--ink); background: color-mix(in srgb, var(--image) 35%, transparent); }
.transfers { display: grid; gap: 8px; margin-top: 16px; }
.transfer {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px;
  padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line);
}
.transfer img { grid-column: 1 / -1; max-height: 240px; width: auto; border-radius: 10px; margin-bottom: 6px; }
.transfer .name { font-weight: 500; overflow-wrap: anywhere; }
.transfer .meta { grid-column: 1; font-size: 14px; color: var(--muted); }
.transfer .btn { grid-column: 2; grid-row: span 2; }
.transfer progress { grid-column: 1 / -1; width: 100%; height: 8px; accent-color: var(--ink); }
.transfer.in { border-left: 4px solid var(--image); }
.transfer.out { border-left: 4px solid var(--audio); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { display: flex; flex-direction: column; padding: 18px 20px; border-radius: 20px; background: var(--pdf); color: var(--pdf-ink); font-size: 15px; }
.stat:first-child { background: var(--image); color: var(--image-ink); }
.stat span { font-size: clamp(36px, 6vw, 56px); font-weight: 500; line-height: 1.05; letter-spacing: -.03em; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-weight: 400; font-size: 13px; color: var(--muted); padding: 0 8px 8px 0; }
td { padding: 10px 8px 10px 0; border-top: 1px solid var(--line); }
.mono { font-weight: 500; letter-spacing: .08em; }
.panel table + .note { margin-top: 8px; }

/* Image tools */
.tabs { display: grid; gap: 10px; }
/* Tool pages: hidden until the page script has picked the tool, so every tool's options never flash up first;
   shown after 2 s anyway in case the script failed. */
body.image:not(.ready) :is(main, .insp, .title) { visibility: hidden; animation: reveal 0s 2s forwards; }
@keyframes reveal { to { visibility: visible; } }
.groups { display: flex; flex-wrap: wrap; gap: 4px 18px; border-bottom: 1px solid var(--line); }
.groups button {
  padding: 6px 0 8px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--muted);
}
.groups button:hover { color: var(--ink); }
.groups button.on { color: var(--ink); border-bottom-color: var(--ink); }
.group-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 8px 16px; border-radius: 99px; font-weight: 500; border: 1.5px solid var(--edge); }
.tabs a:hover { border-color: var(--ink); }
.tabs a.on { background: var(--image); border-color: var(--image); color: var(--image-ink); }
.opts { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin: 16px 0 0; padding: 0; border: 0; }
.opts.common { margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: block; padding: 9px 18px; border-radius: 12px; border: 1.5px solid var(--ink); font-weight: 500; }
.chips input:checked + span { background: var(--ink); color: var(--bg); }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.opt { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.opt > span:first-child { color: var(--muted); }
.opt input[type=range] { width: 140px; accent-color: var(--ink); }
.opt output { min-width: 2ch; font-weight: 500; font-variant-numeric: tabular-nums; }
[data-tool=eq] .opt > span:first-child { min-width: 4.5em; }   /* the five bands line up */
.opt input[type=number], .opt select {
  height: 40px; padding: 0 10px; border: 1.5px solid var(--edge); border-radius: 10px; background: var(--card);
  font: inherit; color: var(--ink); width: 110px;
}
.opt select { width: auto; }
.opt input[type=color] { width: 40px; height: 32px; padding: 0; border: 1.5px solid var(--edge); border-radius: 8px; background: none; }
.opt.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.opt.check span { color: var(--ink); }

.image .drop { margin-top: 8px; padding: clamp(40px, 9vw, 96px) 20px; font-size: 20px; display: grid; gap: 6px; background: var(--card); }
.image .drop strong { font-size: clamp(24px, 3vw, 34px); text-decoration: none; letter-spacing: -.02em; }
.image .drop span { font-size: 15px; }
.image .drop.compact { padding: 18px 20px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.image .drop.compact strong { font-size: 18px; }
.bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bar #sum { flex: 1 1 auto; font-weight: 500; }
.items { display: grid; gap: 8px; }
.item {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center;
  padding: 10px 12px 10px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.thumb { width: 72px; height: 72px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--bg); cursor: zoom-in; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.info { display: grid; min-width: 0; }
.info .name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info .meta { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.info .note:not(:empty) { font-size: 14px; color: var(--video-ink); }
.info .note.info { color: var(--ink); overflow-wrap: anywhere; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; }
.item.failed .thumb img { visibility: hidden; }   /* no broken-image icon */
.one-out .item:first-child .tweak { visibility: hidden; }
.item.busy .acts { visibility: hidden; }
.item.busy .thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .6), transparent); animation: shine 1s infinite; }
@keyframes shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.item.failed .save, .item.failed .copy, .item.failed .tweak, .item.failed .open { display: none; }

/* Dashboard layout (tool pages move to it one by one, marked body.dash): tools on the left, the work in the middle,
   the open tool's options on the right, a taskbar along the bottom. Each column scrolls on its own. */
.menu { display: none; }
body.dash {
  display: grid; height: 100vh; height: 100dvh;
  grid-template: "top top top" auto "side title insp" auto "side main insp" 1fr "bar bar bar" auto / 248px minmax(0, 1fr) 340px;
}
.dash > .top { grid-area: top; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.dash .side { grid-area: side; overflow-y: auto; padding: 14px 12px 24px; border-right: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; align-content: start; }
.dash .title { grid-area: title; padding: 22px 28px 0; font-size: clamp(32px, 3.4vw, 48px); font-weight: 500; line-height: 1; letter-spacing: -.035em; }
.dash .work { grid-area: main; overflow-y: auto; padding: 18px 28px 28px; display: grid; gap: 14px; align-content: start; container-type: inline-size; }
.dash .work > .error:empty { display: none; }
@container (max-width: 640px) {   /* the middle column is narrow beside the sidebar and options: rows stack their buttons */
  .item { grid-template-columns: 56px 1fr; }
  .thumb { width: 56px; height: 56px; }
  .acts { grid-column: 1 / -1; }
}
.dash .insp { grid-area: insp; overflow-y: auto; padding: 22px 20px 28px; border-left: 1px solid var(--line); background: var(--card); }
.dash > .bar { grid-area: bar; padding: 10px 20px; border-top: 1px solid var(--line); background: var(--card); }

.dash.wide { grid-template: "top top" auto "side title" auto "side main" 1fr / 248px minmax(0, 1fr); }   /* no options panel (admin) */
.dash .work > section { display: grid; gap: 14px; align-content: start; }
.side .count { margin-left: 6px; padding: 0 7px; border-radius: 99px; background: var(--video); color: var(--video-ink); font-size: 12px; }
.adminpage .stats { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.adminpage .panel { overflow-x: auto; }

.find { width: 100%; min-width: 0; height: 40px; margin-bottom: 10px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); font: inherit; font-size: 15px; color: var(--ink); }
.find:focus { border-color: var(--ink); outline: none; }
.side .page { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-weight: 500; }
.side .page::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.side .page:not(.here):hover { background: color-mix(in srgb, var(--line) 70%, transparent); }
.side .tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 0 0 10px 15px; padding-left: 10px; border-left: 1px solid var(--line); }
.side .group-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
.side h2 { margin: 10px 0 2px 10px; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.side .group-tools a { padding: 6px 10px; border-radius: 9px; font-size: 15px; }
.side .group-tools a:hover { background: color-mix(in srgb, var(--line) 70%, transparent); }
.side .group-tools a.on { background: var(--here); color: var(--here-ink); font-weight: 500; }
.side a.out::after { content: ' ↗'; color: var(--muted); }
.dash { --here: var(--image); --here-ink: var(--image-ink); }   /* the page's own colour marks the open tool */
.dash.pdfpage { --here: var(--pdf); --here-ink: var(--pdf-ink); }
.dash.audiopage { --here: var(--audio); --here-ink: var(--audio-ink); }
.dash.videopage { --here: var(--video); --here-ink: var(--video-ink); }

.insp section > h1 { display: none; }   /* the tool's name is the title over the work */
.insp .lede { font-size: 15px; margin-bottom: 4px; }
.insp .opts { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 0; }
.insp .opts.common { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.insp .opt { justify-content: space-between; flex-wrap: wrap; }
.insp .opt input[type=range] { flex: 1 1 120px; width: auto; }
.insp .opt.check { justify-content: flex-start; }
.dash .work .drop { margin-top: 0; }

@media (max-width: 1180px) and (min-width: 861px) {   /* two columns: the options move above the work, the page scrolls as one */
  body.dash { height: auto; min-height: 100dvh; grid-template: "top top" auto "side title" auto "side insp" auto "side main" 1fr "bar bar" auto / 220px minmax(0, 1fr); }
  .dash > .top { position: sticky; top: 0; z-index: 15; background: var(--bg); }
  .dash .side { position: sticky; top: 59px; height: calc(100dvh - 59px); align-self: start; }
  .dash .insp { border: 0; background: none; padding: 16px 28px 0; overflow: visible; }
  .dash .insp .opts { flex-direction: row; align-items: center; gap: 10px 22px; }
  .dash .insp .opt { justify-content: flex-start; }
  .dash .insp .opts.common { margin-top: 12px; padding-top: 0; border-top: 0; }
  .dash .work { overflow: visible; }
  .dash > .bar { position: sticky; bottom: 0; z-index: 15; }
}
@media (max-width: 860px) {   /* one column; the tools in a drawer behind the menu button, the taskbar stuck to the bottom */
  body.dash { display: block; height: auto; }
  .dash > .top { position: sticky; top: 0; z-index: 15; background: var(--bg); padding: 10px 16px; gap: 10px; }
  .menu { display: grid; place-items: center; width: 40px; height: 34px; padding: 0; border: 1.5px solid var(--line); border-radius: 10px; background: none; cursor: pointer; }
  .menu span, .menu span::before, .menu span::after { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; }
  .menu span::before, .menu span::after { content: ''; position: absolute; left: 0; }
  .menu span::before { top: -5px; }
  .menu span::after { top: 5px; }
  .dash > .top .logo { margin-right: auto; }
  .dash .side { position: fixed; inset: 0 auto 0 0; z-index: 30; width: min(300px, 86vw); background: var(--bg); transform: translateX(-102%); transition: transform .2s; border-right: 1px solid var(--line); }
  .menu-open .side { transform: none; }
  .menu-open::after { content: ''; position: fixed; inset: 0; z-index: 25; background: rgb(20 20 20 / .35); }
  .dash .title { padding: 18px 16px 0; }
  .dash .insp { border: 0; background: none; padding: 14px 16px 0; }
  .dash .work { padding: 14px 16px 24px; }
  .dash > .bar { position: sticky; bottom: 0; z-index: 15; padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) { .dash .side { transition: none; } }

.overlay {
  position: fixed; inset: 12px; z-index: 10; display: none; place-items: center; pointer-events: none;
  border: 3px dashed var(--ink); border-radius: 28px; background: color-mix(in srgb, var(--image) 55%, transparent);
  font-size: clamp(28px, 5vw, 56px); font-weight: 500; letter-spacing: -.03em; color: var(--image-ink);
}
.dropping .overlay { display: grid; }

dialog { border: 0; padding: 20px; border-radius: 22px; background: var(--card); color: var(--ink); max-width: min(960px, calc(100% - 24px)); }
dialog::backdrop { background: rgb(20 20 20 / .55); }
.compare .row { margin-top: 12px; }
.compare input[type=range] { flex: 1; accent-color: var(--ink); }
.cmp-view { position: relative; display: grid; background: var(--bg); border-radius: 14px; overflow: hidden; }
.cmp-view img { grid-area: 1 / 1; width: 100%; max-height: 70vh; object-fit: contain; }
.cmp-view::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .25); }
/* Merge: rows are inputs (drag to reorder), the result sits above them. */
.one-out .item .save, .one-out .item .copy { display: none; }
.one-out .item { cursor: grab; }
.one-out .thumb { cursor: inherit; }
.item.moving { opacity: .45; }
.merged { display: grid; gap: 12px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.merged img { max-height: 60vh; width: auto; max-width: 100%; justify-self: center; border-radius: 10px; background: var(--bg); }
.merged .row .meta { flex: 1; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.merged:not(.alone) .need, .merged.alone img, .merged.alone .row { display: none; }
.merged .row .hint { font-size: 13px; }
.merged.failed img, .merged.failed .save, .merged.failed .copy, .merged.failed .hint, .merged.failed .open { display: none; }
.merged.busy img { opacity: .5; transition: opacity .2s; }
.merged.busy .save, .merged.busy .copy, .merged.busy .open { pointer-events: none; opacity: .4; }   /* the link still points at the previous result */
.rm {
  width: 34px; height: 34px; border: 0; border-radius: 9px; background: none; color: var(--muted);
  font: inherit; font-size: 20px; line-height: 1; cursor: pointer;
}
.rm:hover { background: var(--bg); color: var(--ink); }

[data-active=pdf] #merged img, [data-active=pdf] #merged .copy, [data-active=gif] #merged .copy { display: none; }   /* no clipboard for these */

/* Screenshot frame: each backdrop chip shows its gradient */
.backdrops span[style] { padding-left: 38px; background: linear-gradient(135deg, var(--a), var(--b)) 10px 50% / 20px 20px no-repeat, var(--card); }
.backdrops input:checked + span[style] { background: linear-gradient(135deg, var(--a), var(--b)) 10px 50% / 20px 20px no-repeat, var(--ink); }

/* PDF tools */
.thumb.doc { display: grid; place-items: center; background: var(--pdf); color: var(--pdf-ink); font-size: 14px; font-weight: 600; cursor: default; }
.thumb.doc img { position: absolute; inset: 0; }
.one-out .item .open, .pdfpage:not(.one-out) .item .tweak { display: none; }
.tabs a.out::after { content: ' ↗'; }
/* Audio tools */
.audiopage .thumb.doc { background: var(--audio); color: var(--audio-ink); }
.audiopage:not(.one-out) .item .tweak { display: none; }
.videopage .thumb.doc { background: var(--video); color: var(--video-ink); }
.videopage:not(.one-out) .item .tweak { display: none; }
.videopage .item.music .thumb.doc { background: var(--audio); color: var(--audio-ink); }
.videopage .item.music .tweak { display: none; }
.vstage video { display: block; width: 100%; max-height: 55vh; background: #000; transition: transform .2s; }
.screen { position: relative; overflow: hidden; border-radius: 12px; background: #000; }
.cropbox { position: absolute; box-shadow: 0 0 0 9999px rgb(0 0 0 / .6); outline: 2px solid var(--video); cursor: grab; touch-action: none; }
.cropbox:active { cursor: grabbing; }
.markview { position: absolute; pointer-events: none; }
.blurboxes { position: absolute; inset: 0; cursor: crosshair; touch-action: none; }
.blurboxes > div { position: absolute; outline: 2px dashed #fff; background: rgb(255 255 255 / .18); }
.blurboxes button { position: absolute; top: -12px; right: -12px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: var(--card); font-size: 15px; line-height: 24px; cursor: pointer; }
.videopage .item.subsfile .thumb.doc { background: var(--pdf); color: var(--pdf-ink); }
.videopage .item.subsfile .tweak { display: none; }
.videopage .item.picture .thumb.doc { background: var(--image); color: var(--image-ink); }
.videopage .item.picture .thumb img { object-fit: cover; }
.vstage .wave { height: 64px; }
.strip { position: absolute; inset: 0; overflow: hidden; border-radius: 12px; }
.strip canvas { position: absolute; top: 0; height: 100%; object-fit: cover; pointer-events: none; }
.vstage .wave .keep { background: color-mix(in srgb, var(--video) 30%, transparent); box-shadow: inset 0 0 0 2px var(--video); }
.vstage.cursor .wave .playhead { width: 4px; margin-left: -2px; background: var(--video); box-shadow: 0 0 0 1px var(--card); }
.vstage #span { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.wave { position: relative; height: 120px; border-radius: 12px; background: var(--bg); touch-action: none; cursor: ew-resize; }
.wave canvas { display: block; width: 100%; height: 100%; }
.wave .keep { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--audio) 45%, transparent); pointer-events: none; }
.wave .playhead { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none; }
.wave .handle { position: absolute; top: -6px; bottom: -6px; width: 16px; margin-left: -8px; padding: 0; border: 0; border-radius: 6px; background: var(--ink); cursor: ew-resize; }
.wave .handle::after { content: ''; position: absolute; left: 7px; top: 30%; bottom: 30%; width: 2px; background: var(--card); }
.recorder { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.recorder #rec-time { font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 4ch; }
.recorder .meter { flex: 0 1 220px; height: 10px; border-radius: 5px; background: var(--bg); overflow: hidden; border: 1px solid var(--line); }
.recorder .meter i { display: block; height: 100%; width: 0; background: var(--audio-ink); transition: width .08s; }
.recorder.on #rec { background: #d63c3c; border-color: #d63c3c; }
.live { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 16px; }
#tune-note { font-size: 56px; font-weight: 600; min-width: 3ch; line-height: 1; }
.tuner.quiet #tune-note, .tuner.quiet .cents i { opacity: .3; }
.cents { position: relative; flex: 1 1 220px; max-width: 420px; height: 12px; border-radius: 6px; background: color-mix(in srgb, var(--audio) 45%, transparent); }
.cents::after { content: ''; position: absolute; left: 50%; top: -5px; bottom: -5px; width: 2px; background: var(--muted); }
.cents i { position: absolute; left: 50%; top: -6px; width: 6px; height: 22px; margin-left: -3px; border-radius: 3px; background: var(--audio-ink); transition: left .1s; }
.tuner.ok .cents i { background: #1f9d55; }
#tune-hz, #tone-meta { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
#met-dots { display: flex; gap: 8px; }
#met-dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--audio-ink); }
#met-dots i.on { background: var(--audio-ink); }
#tone-save:not([href]) { pointer-events: none; opacity: .4; }
.item.info .note { font-size: 18px; font-weight: 500; color: var(--ink); }
.item.info .save, .item.info .open { display: none; }
.trimmer #span { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
[data-active=organize] .item .tweak { display: none; }
.item .pw { display: flex; gap: 6px; margin-top: 6px; }
.item .pw input { width: auto; flex: 1; min-width: 0; height: 36px; }
.item .fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; margin-top: 6px; }
.item .fields label { display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.item .fields input { min-width: 0; height: 36px; padding: 0 10px; border: 1.5px solid var(--edge); border-radius: 10px; background: var(--card); font: inherit; color: var(--ink); }
/* Sign: the pad (with a line to sign on), then the page with the signature to drag */
.pad {
  position: relative; width: 100%; max-width: 600px; aspect-ratio: 10 / 3; border: 1.5px dashed var(--edge); border-radius: 14px;
  background: linear-gradient(var(--edge), var(--edge)) 50% 80% / 84% 1px no-repeat, var(--card);
}
.pad canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.pad span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); pointer-events: none; }
.pad:not(.empty) span { display: none; }
.signer { display: grid; gap: 12px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.signer .hint { font-size: 13px; }
.stage { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; }
.stage canvas { display: block; max-width: 100%; max-height: 75vh; box-shadow: 0 1px 4px rgb(0 0 0 / .2); cursor: copy; }
.sig { position: absolute; cursor: move; outline: 1.5px dashed var(--ink); outline-offset: 3px; touch-action: none; }
.sig:focus-visible { outline-style: solid; }
.sig img { display: block; width: 100%; pointer-events: none; }
/* Write on PDF and Fill form: the page with a layer of marks or of the form's fields */
@font-face { font-family: 'PDF text'; src: url(/vendor/fonts/BeVietnamPro-Regular.ttf) format('truetype'); }
.layer { position: absolute; inset: 0; }
[data-active=write] .layer { cursor: crosshair; }
.mark { position: absolute; color: var(--c); }
.mark.on { outline: 1.5px dashed var(--ink); outline-offset: 2px; }
.mark .txt { font-family: 'PDF text', sans-serif; font-size: calc(var(--pt) * var(--k) * 1px); line-height: 1.25; white-space: pre; outline: none; cursor: text; min-width: 1ch; }
.mark.white { background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); cursor: move; }
.mark.highlight { background: rgb(255 227 77 / .55); mix-blend-mode: multiply; cursor: move; }
.mark.box { border: calc(1.5 * var(--k) * 1px) solid var(--c); cursor: move; }
.mark.tick, .mark.cross { cursor: move; }
.mark svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: .12; stroke-linecap: round; stroke-linejoin: round; }
.mark .grip, .mark .del, .mark .corner { position: absolute; display: none; }
.mark.on .grip, .mark.on .del, .mark.on .corner { display: block; }
.mark .grip { left: -22px; top: -4px; width: 18px; height: 18px; border-radius: 5px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='white'%3E%3Ccircle cx='6' cy='5' r='1.5'/%3E%3Ccircle cx='12' cy='5' r='1.5'/%3E%3Ccircle cx='6' cy='9' r='1.5'/%3E%3Ccircle cx='12' cy='9' r='1.5'/%3E%3Ccircle cx='6' cy='13' r='1.5'/%3E%3Ccircle cx='12' cy='13' r='1.5'/%3E%3C/svg%3E"); cursor: move; }
.mark .del { right: -22px; top: -4px; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: var(--card); font: 600 13px/18px sans-serif; cursor: pointer; }
.mark .corner { right: -7px; bottom: -7px; width: 12px; height: 12px; border: 2px solid var(--card); border-radius: 50%; background: var(--ink); cursor: nwse-resize; }
.layer .field { position: absolute; box-sizing: border-box; margin: 0; padding: 0 3px; border: 1px solid rgb(29 63 165 / .35); border-radius: 2px; background: rgb(221 230 255 / .55); font-family: 'PDF text', sans-serif; color: #111; }
.layer textarea.field { resize: none; line-height: 1.15; }
.layer input.field[type=checkbox], .layer input.field[type=radio] { padding: 0; accent-color: #1d3fa5; }
.grip { position: absolute; right: -11px; bottom: -11px; width: 18px; height: 18px; border: 2px solid var(--card); border-radius: 50%; background: var(--ink); cursor: nwse-resize; }
[data-active=organize] .item { cursor: auto; }
.pages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.merged.alone .pages { display: none; }
.tile { display: grid; gap: 4px; padding: 8px 8px 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; cursor: grab; }
.tile .pic { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.tile canvas { max-width: 100%; max-height: 100%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .18); transform: rotate(var(--r, 0deg)); transition: transform .2s; }
.tile b { position: absolute; left: 0; bottom: 0; padding: 1px 7px; border-radius: 7px; background: var(--card); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tile .pacts { display: flex; justify-content: space-between; }
.tile:first-child [data-act=left] { visibility: hidden; }
.tile.off { border-style: dashed; }
.tile.off canvas { opacity: .2; }
.tile.moving { opacity: .45; }

/* Palette */
.swatches { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.swatches:empty { display: none; }
.sw {
  min-width: 82px; height: 30px; padding: 0 8px 0 30px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  background: linear-gradient(90deg, var(--c) 24px, var(--card) 24px); font: inherit; font-size: 13px; color: var(--ink);
  font-variant-numeric: tabular-nums; text-transform: uppercase;
}
.sw:hover { border-color: var(--ink); }
[data-active=palette] .thumb { cursor: default; }

/* Watermark */
.opt.wide input[type=text], .opt.wide input[type=password], .item .pw input {
  width: 220px; height: 40px; padding: 0 12px; border: 1.5px solid var(--edge); border-radius: 10px;
  background: var(--card); font: inherit; color: var(--ink);
}
.logo-img { height: 40px; width: auto; max-width: 120px; object-fit: contain; border-radius: 6px; background: repeating-conic-gradient(#e5e4de 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.pos { display: grid; grid-template-columns: repeat(3, 24px); gap: 3px; }
.pos label { position: relative; }
.pos input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pos span { display: block; width: 24px; height: 24px; border-radius: 5px; border: 1.5px solid var(--edge); background: var(--card); }
.pos input:checked + span { background: var(--ink); border-color: var(--ink); }
.pos input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Crop editor: the box dims everything outside it with a huge shadow. */
.cropper { width: fit-content; }
/* The stage hugs the image: the box's percentages and drag maths are relative to it. */
.crop-stage { position: relative; width: fit-content; max-width: 100%; margin-inline: auto; overflow: hidden; border-radius: 12px; line-height: 0; touch-action: none; user-select: none; }
.crop-stage img { max-width: min(900px, calc(100vw - 64px)); max-height: 70vh; }
.crop-box { position: absolute; cursor: move; outline: 2px solid #fff; box-shadow: 0 0 0 9999px rgb(20 20 20 / .55); }
.crop-box:focus-visible { outline: 3px solid var(--image); }
.crop-box i { position: absolute; width: 22px; height: 22px; background: #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgb(0 0 0 / .3); }
.crop-box i::after { content: ''; position: absolute; inset: -11px; }   /* 44 px touch target */
.crop-box [data-h=nw] { left: 3px; top: 3px; cursor: nwse-resize; }
.crop-box [data-h=ne] { right: 3px; top: 3px; cursor: nesw-resize; }
.crop-box [data-h=sw] { left: 3px; bottom: 3px; cursor: nesw-resize; }
.crop-box [data-h=se] { right: 3px; bottom: 3px; cursor: nwse-resize; }
.crop-box span {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%); padding: 2px 8px; border-radius: 99px; line-height: 1.5;
  background: rgb(20 20 20 / .7); color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.cropper .row { margin-top: 12px; }
.cropper .note { flex: 1 1 200px; }
.sheet { width: min(520px, calc(100% - 24px)); }
.sheet-title { font-size: 22px; font-weight: 500; margin-bottom: 14px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

@media (max-width: 720px) {
  .group-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .group-tools a { flex: none; }
  .item { grid-template-columns: 56px 1fr; }
  .thumb { width: 56px; height: 56px; }
  .acts { grid-column: 1 / -1; }
  .acts .btn { flex: 1; }
}

.drop:focus-within, label:focus-within > .btn { outline: 2px solid var(--ink); outline-offset: 3px; }   /* the real file input is hidden */

/* Footer */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: clamp(64px, 9vw, 120px); padding: 24px 0 32px;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--muted);
}

.home .foot { margin-top: 48px; padding-right: 72px; }   /* clear of the feedback button */
.foot a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 640px); }
  .hero h1, .finder { grid-column: auto; }
  .favs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kind { min-height: 128px; padding: 16px 18px; }
  .kind > span { font-size: 22px; }
  .results { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .group h2 { display: flex; }
  .favs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .fav { padding: 16px 18px; }
  .jobs, .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .group:has(.none:not([hidden])) { display: none; }
  .top-link { padding: 0 11px; font-size: 14px; white-space: nowrap; }
  .home .foot { flex-direction: column; padding-right: 64px; }
  kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kind, .kind i, .fav, .job, .tool::before, .merged.busy img, .tile canvas { transition: none; }
  .item.busy .thumb::after { animation: none; }
}

.subview { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); max-width: 90%; padding: .15em .5em; border-radius: 4px; background: rgb(0 0 0 / .6); color: #fff; font: 600 clamp(12px, 2.6vw, 22px)/1.3 "Space Grotesk", sans-serif; text-align: center; white-space: pre-line; pointer-events: none; }
.subview.empty { display: none; }
.subedit { display: grid; gap: 10px; margin-top: 16px; }
.cues { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; max-height: 60vh; overflow: auto; }
.cues li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: start; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.cues .when { display: grid; gap: 4px; }
.cues input, .cues textarea, .subedit input[type=number] { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.cues .when input { width: 7.5em; font-variant-numeric: tabular-nums; }
.cues textarea { width: 100%; resize: vertical; min-height: 2.6em; }
.cues [aria-invalid] { border-color: #c0392b; }
.cues .cue-acts { display: flex; gap: 4px; }
.subedit input[type=number] { width: 6em; }
@media (max-width: 560px) { .cues li { grid-template-columns: 1fr auto; } .cues textarea { grid-column: 1 / -1; grid-row: 2; } }
.thumbview { display: block; width: 100%; max-width: 640px; margin-top: 16px; border-radius: 12px; aspect-ratio: 16 / 9; }
select.next { appearance: none; max-width: 10em; padding-right: 12px; cursor: pointer; text-overflow: ellipsis; }
.videopage .item:not(.busy) .save:not([href]) { display: none; }   /* a video another tool only reads (Edit subtitles, Photos to video) */

/* Accounts: the header button, the dialog, the admin's account table */
.acct-me { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; border: 1.5px solid var(--line); border-radius: 99px; background: var(--card); font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.acct-me:hover { border-color: var(--ink); }
.acct-me b { padding: 2px 9px; border-radius: 99px; background: var(--image); color: var(--image-ink); font-weight: 500; font-size: 13px; }
.acct-name { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.acct-dlg { width: min(420px, calc(100% - 24px)); }
.acct-form { display: grid; gap: 12px; }
.acct-form h3 { font-size: 16px; font-weight: 500; margin-top: 4px; }
.acct-field { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.acct-field input { height: 44px; padding: 0 12px; border: 1.5px solid var(--edge); border-radius: 10px; background: var(--card); font: inherit; font-size: 16px; color: var(--ink); }
.acct-field input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px var(--image); }
.acct-form .error:empty { display: none; }
.notes .msg { min-width: 18em; white-space: pre-wrap; overflow-wrap: anywhere; }
.notes small { display: block; white-space: nowrap; margin-top: 4px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.notes tr.done { opacity: .55; }
.acct-form textarea { padding: 10px 12px; border: 1.5px solid var(--edge); border-radius: 10px; background: var(--card); font: inherit; font-size: 16px; color: var(--ink); resize: vertical; }
.acct-form textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px var(--image); }
.fb-kind { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-kind label { padding: 8px 16px; border-radius: 99px; border: 1.5px solid var(--edge); font-weight: 500; cursor: pointer; }
.fb-kind label:has(:checked) { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.fb-kind label:has(:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.fb-kind input { position: absolute; opacity: 0; pointer-events: none; }
/* Feedback button: bottom right, above the tool pages' bar */
.fb-open { position: fixed; right: 20px; bottom: calc(var(--bar, 0px) + 16px); z-index: 20; display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); box-shadow: 0 4px 16px rgb(20 20 20 / .12); cursor: pointer; }
.fb-open:hover { border-color: var(--ink); }
.fb-open:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 860px) { .fb-open { right: 16px; width: 44px; height: 44px; } }
.users td { vertical-align: middle; }
.users .acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.users .delta { width: 72px; height: 34px; padding: 0 8px; border: 1.5px solid var(--edge); border-radius: 9px; font: inherit; font-size: 14px; }
.users tr.pending td:first-child { font-weight: 500; }
.users tr.pending td:nth-child(2) { color: var(--video-ink); font-weight: 500; }
.users tr.hist td { font-size: 13px; color: var(--muted); display: table-cell; }
.users tr.hist span { display: inline-block; margin: 0 14px 4px 0; }
.link { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.credits-set { margin-top: 16px; }
.credits-set input { width: 90px; }
@media (max-width: 720px) { .acct-name { display: none; } .users th:nth-child(4), .users td:nth-child(4), .users th:nth-child(5), .users td:nth-child(5) { display: none; } }
