/* Clipxy: Vixxy's look (src/app.css tokens): Goth = true-black 1-bit screen,
   white ink, hairlines, magenta/cyan accents; Diet Goth (system light mode)
   is the same inverted. Text: Doto; numbers: Departure Mono (both SIL OFL 1.1). */
@font-face { font-family: 'Doto'; font-weight: 100 900; font-display: swap; src: url('/static/clipxy/doto-latin.woff2') format('woff2'); }
@font-face { font-family: 'Departure Mono'; font-weight: 400; font-display: swap; src: url('/static/clipxy/departure-mono.woff2') format('woff2'); }

:root {
  --ink: #000000;
  --line: rgba(255, 255, 255, 0.40);
  --line-strong: #ffffff;
  --text: #ffffff;
  --text-dim: #c8c8c8;
  --text-faint: #9a9a9a;
  --magenta: #ff2ab0;
  --cyan: #00e5ff;
  --blood: #ff2266;
  --acid: #b6ff1a;
  --accent: var(--magenta);
  --accent-text: var(--magenta);
  --cyan-text: var(--cyan);
  --acid-text: var(--acid);
  --warn: #ff2266;
  --font: 'Doto', ui-monospace, monospace;
  --font-num: 'Departure Mono', ui-monospace, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --ink: #ffffff;
    --line: rgba(0, 0, 0, 0.40);
    --line-strong: #000000;
    --text: #000000;
    --text-dim: #333333;
    --text-faint: #555555;
    --accent-text: #d92496;
    --cyan-text: #007c8c;
    --acid-text: #4a7d00;
    --warn: #d1003f;
    color-scheme: light;
  }
}

[hidden]:not(.toast) { display: none !important; }
*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; box-shadow: none !important; text-shadow: none !important; }
html, body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font); font-size: 14px; font-weight: 700;
  font-synthesis: none; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-text); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 400; }
.faint { color: var(--text-faint); }
.dim { color: var(--text-dim); }
code { font-family: var(--font-num); font-weight: 400; font-size: 12px; }

button, .btn {
  font: inherit; color: var(--text); background: var(--ink); border: 1px solid var(--line-strong);
  min-height: 32px; padding: 0 10px; cursor: pointer; touch-action: manipulation; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; user-select: none; -webkit-user-select: none;
}
button:hover:not(:disabled), .btn:hover { border-color: var(--accent); color: var(--accent-text); }
button:disabled { opacity: 0.4; cursor: default; }
button.on, .btn.on { background: var(--text); color: var(--ink); }
button.on:hover, .btn.on:hover { color: var(--ink); }
button.go, .btn.go { background: var(--accent); border-color: var(--accent); color: #000; }
button.go:hover:not(:disabled), .btn.go:hover { background: var(--text); border-color: var(--text); color: var(--ink); }
button.go:disabled { background: var(--ink); color: var(--text-faint); border-color: var(--line); opacity: 1; }
button.mini, .btn.mini { min-height: 24px; padding: 0 7px; font-size: 12px; }
input, select, textarea { font: inherit; color: var(--text); background: var(--ink); border: 1px solid var(--line-strong); padding: 6px 8px; }
input:focus, select:focus { outline: 1px solid var(--accent); outline-offset: -1px; }
input[type=file] { border-style: dashed; max-width: 100%; }

/* header: like Vixxy's top bar */
.top { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.word { font-weight: 600; font-size: 24px; letter-spacing: 1px; text-decoration: none; color: var(--text); margin-right: 6px; }
.xx { color: var(--accent-text); }
.tabs { display: flex; gap: 2px; }
.tabs .btn { min-width: 84px; letter-spacing: 0.06em; }
.sp { flex: 1; }
.who { font-size: 12px; color: var(--text-faint); }
@media (max-width: 640px) {
  .top { gap: 6px; }
  .tabs { order: 9; width: 100%; }
  .tabs .btn { flex: 1; min-width: 0; min-height: 40px; }
  .who { display: none; }
}

main { max-width: 1200px; margin: 0 auto; padding: 12px 10px 40px; }
.box { border: 1px solid var(--line); padding: 12px 14px; margin-bottom: 12px; }
.title { font-size: 18px; font-weight: 800; letter-spacing: 0.04em; margin: 0 0 6px; text-transform: uppercase; }
.lbl { font-size: 11px; letter-spacing: 0.08em; color: var(--text-faint); text-transform: uppercase; margin: 14px 0 4px; }
.lbl:first-child { margin-top: 0; }
p { line-height: 1.5; margin: 0 0 8px; }
.error { border: 1px solid var(--warn); color: var(--warn); padding: 6px 10px; margin: 8px 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* lists (SPLIT sources, CONVERT queue) */
.list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 6px 8px; min-height: 44px; }
.item:hover { border-color: var(--line-strong); }
.item .open { flex: 1; min-width: 0; text-decoration: none; color: var(--text); }
.item a.open:hover .nm { color: var(--accent-text); }
.nm { display: block; word-break: break-all; }
.meta { display: block; font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.folder { font-size: 11px; letter-spacing: 0.08em; color: var(--text-faint); text-transform: uppercase; margin: 12px 0 2px; }
.pill { font-family: var(--font-num); font-weight: 400; font-size: 11px; padding: 1px 6px; border: 1px solid currentColor; white-space: nowrap; }
.pill.done { color: var(--acid-text); }
.pill.todo { color: var(--accent-text); }
.item form { margin: 0; display: inline-flex; }
.drop { display: block; border: 1px dashed var(--line-strong); padding: 26px; text-align: center; cursor: pointer; margin: 8px 0; }
.drop.over, .drop:hover { border-color: var(--accent); color: var(--accent-text); }
.bar { height: 6px; border: 1px solid var(--line-strong); width: 120px; flex: none; }
.bar i { display: block; height: 100%; background: var(--accent); }
.cv-err { color: var(--warn); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--ink); padding: 8px 14px; z-index: 80; max-width: calc(100vw - 32px); transition: opacity .3s; }
.toast[hidden] { display: block; opacity: 0; pointer-events: none; }
