/* transfergate · Value Rocket
   Konzept: Nachthimmel mit Flugbahn. Eine ruhige Fläche, eine Ladeliste der Dateien,
   und ein einziger lauter Moment: die Fortschrittsbahn mit glühender Spitze.
   Bewusst nur dunkel: die Marke lebt vom Nachthimmel. */

@font-face {
  font-family: "Sora";
  src: url("/static/fonts/Sora.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b0f19;
  --bg-soft: #111728;
  --surface: rgba(17, 23, 40, 0.78);
  --surface-2: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.075);
  --text: #f4f7ff;
  --muted: #becae0;
  --faint: #7d8aa6;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --accent: #ff6b00;
  --accent-2: #ffae70;
  --accent-soft: rgba(255, 107, 0, 0.16);
  --blue: #4ba3ff;
  --blue-soft: rgba(75, 163, 255, 0.16);
  --ok: #3ddc97;
  --ok-soft: rgba(61, 220, 151, 0.14);
  --warn: #ffb84d;
  --error: #ff6b6b;
  --error-soft: rgba(255, 107, 107, 0.14);

  --font: "Sora", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, monospace;

  --r-lg: 24px;
  --r-md: 14px;
  --r-sm: 9px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --wrap: 880px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 8% -8%, rgba(75, 163, 255, 0.20), transparent 60%),
    radial-gradient(760px 480px at 96% -4%, rgba(255, 107, 0, 0.17), transparent 62%),
    linear-gradient(180deg, #0b1423 0%, #0b1020 38%, #090d17 100%);
  background-attachment: fixed;
}

/* feines Korn wie auf der Website */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- Rahmen */

.shell {
  width: 100%;
  max-width: calc(var(--wrap) + 48px);
  margin: 0 auto;
  padding-inline: 24px;
  padding-block: 0 56px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
@media (max-width: 560px) { .shell { padding-inline: 16px; } }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 26px 34px;
}
.topbar .brand { display: flex; align-items: center; gap: 14px; color: var(--text); }
.topbar .brand:hover { text-decoration: none; }
.topbar .brand img { height: 26px; width: auto; }
.topbar .tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.topbar nav { display: flex; gap: 6px; align-items: center; }

.footer {
  margin-top: auto;
  padding-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--faint);
}
.footer a { color: var(--faint); }

/* ---------------------------------------------------------------- Typografie */

.eyebrow {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffd0ad;
}
h1 {
  margin: 0;
  font-size: clamp(30px, 5.4vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
  text-wrap: balance;
}
h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
  font-weight: 650;
}
.lead { color: var(--muted); font-size: 16px; max-width: 62ch; margin: 14px 0 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Flächen */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.card-pad { padding: 30px; }
@media (max-width: 560px) { .card-pad { padding: 20px; } }

.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.hero { display: grid; gap: 0; padding-bottom: 28px; }

/* Kennzahlen unter dem Titel */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.fact .icon { width: 15px; height: 15px; color: var(--faint); }
.fact strong { color: var(--text); font-weight: 600; }

.note {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--blue-soft);
  border: 1px solid rgba(75, 163, 255, 0.22);
  color: #dbe9ff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.note .who { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }

/* ---------------------------------------------------------------- Knöpfe */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  text-decoration: none !important;
}
.btn:hover { background: var(--surface-hover); border-color: rgba(255, 255, 255, 0.2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn .icon { width: 17px; height: 17px; }

.btn-primary {
  border: 0;
  color: #1a0a00;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8a2a 55%, var(--accent-2) 100%);
  box-shadow: 0 10px 34px rgba(255, 107, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { background: linear-gradient(135deg, #ff7a14 0%, #ff9640 55%, #ffbd88 100%); box-shadow: 0 14px 40px rgba(255, 107, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: 13px; gap: 7px; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger:hover { border-color: rgba(255, 107, 107, 0.5); color: var(--error); background: var(--error-soft); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.icon-btn:hover { background: var(--surface-hover); color: var(--text); border-color: var(--line-soft); }
.icon-btn:disabled { opacity: 0.35; cursor: default; background: transparent; }

/* ---------------------------------------------------------------- Formular */

.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field .hint { font-size: 12.5px; color: var(--faint); }
.input, .textarea, .select {
  width: 100%;
  min-height: 46px;
  padding: 11px 15px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(6, 9, 17, 0.55);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #5f6b85; }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: rgba(255, 107, 0, 0.6);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: rgba(6, 9, 17, 0.55); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; justify-self: start; }
.seg::-webkit-scrollbar { display: none; }
.seg button {
  flex: none; border: 0; background: transparent; color: var(--muted); padding: 7px 13px; border-radius: 999px; cursor: pointer; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: #ffd0ad; box-shadow: inset 0 0 0 1px rgba(255, 107, 0, 0.45); }

/* ---------------------------------------------------------------- Ladeliste */

.manifest { display: grid; }
.manifest-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 0 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.files { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.file {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.file:hover { background: linear-gradient(90deg, transparent, var(--surface-2) 12%, var(--surface-2) 88%, transparent); }
.file .kind {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--muted);
}
.file .kind[data-kind="video"] { color: #ffb27a; background: var(--accent-soft); border-color: rgba(255, 107, 0, 0.22); }
.file .kind[data-kind="image"] { color: #8cc4ff; background: var(--blue-soft); border-color: rgba(75, 163, 255, 0.22); }
.file .kind[data-kind="audio"] { color: #b7a2ff; background: rgba(150, 120, 255, 0.13); border-color: rgba(150, 120, 255, 0.24); }
.file .kind[data-kind="doc"] { color: #e6ecf8; }
.file .kind[data-kind="archive"] { color: var(--warn); background: rgba(255, 184, 77, 0.1); border-color: rgba(255, 184, 77, 0.22); }
.file .name { min-width: 0; }
.file .name .n { display: block; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .name .dir { color: var(--faint); font-weight: 400; }
.file .name .sub { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--faint); margin-top: 2px; min-height: 18px; }
.file .size { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.file .actions { display: flex; gap: 2px; }
.file .bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px rgba(255, 107, 0, 0.6); transition: width 0.25s linear; }
.file.done .bar { background: var(--ok); box-shadow: none; }
@media (max-width: 560px) {
  .file { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 11px; }
  .file .kind { width: 36px; height: 36px; }
  .file .size { display: none; }
}

.state { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; }
.state .icon { width: 13px; height: 13px; stroke-width: 2.4; }
.state.ok { color: var(--ok); }
.state.run { color: #ffd0ad; }
.state.err { color: var(--error); }
.state.wait { color: var(--faint); }

/* ---------------------------------------------------------------- Flugbahn (Fortschritt) */

.flight {
  position: relative;
  padding: 22px 24px 20px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(500px 120px at 0% 0%, rgba(255, 107, 0, 0.12), transparent 70%),
    rgba(9, 13, 23, 0.86);
  border: 1px solid rgba(255, 107, 0, 0.25);
  box-shadow: var(--shadow);
}
.flight .headline { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.flight .pct { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.flight .pct small { font-size: 16px; color: var(--faint); font-weight: 600; margin-left: 2px; }
.flight .what { font-size: 13.5px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.track {
  position: relative;
  height: 8px;
  margin: 18px 0 14px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 10px),
    rgba(255, 255, 255, 0.04);
  overflow: visible;
}
.track .fill {
  position: absolute; inset: 0 auto 0 0; width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(75, 163, 255, 0.6), var(--accent) 70%, var(--accent-2));
  box-shadow: 0 0 22px rgba(255, 107, 0, 0.45);
  transition: width 0.3s linear;
}
.track .fill::after {
  content: "";
  position: absolute; right: -7px; top: 50%;
  width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%;
  background: #fff4e8;
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.35), 0 0 26px 6px rgba(255, 140, 50, 0.75);
}
.flight.done .track .fill { background: linear-gradient(90deg, rgba(61, 220, 151, 0.5), var(--ok)); box-shadow: 0 0 18px rgba(61, 220, 151, 0.35); }
.flight.done .track .fill::after { background: #eafff5; box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.3); }
.flight.failed { border-color: rgba(255, 107, 107, 0.4); }
.telemetry { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.telemetry div { min-width: 0; }
.telemetry dt { font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.telemetry dd { margin: 3px 0 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .telemetry { grid-template-columns: repeat(2, minmax(0, 1fr)); } .flight { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { .track .fill, .file .bar { transition: none; } }

/* ---------------------------------------------------------------- Ablagezone */

.drop {
  position: relative;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 44px 24px;
  text-align: center;
  border-radius: var(--r-lg);
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(420px 160px at 50% 0%, rgba(75, 163, 255, 0.09), transparent 75%),
    rgba(6, 9, 17, 0.4);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.drop.over { border-color: var(--accent); background: radial-gradient(420px 180px at 50% 0%, rgba(255, 107, 0, 0.16), transparent 75%), rgba(6, 9, 17, 0.55); transform: scale(1.005); }
.drop .orb {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 107, 0, 0.22), rgba(75, 163, 255, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffd0ad;
}
.drop .orb .icon { width: 28px; height: 28px; }
.drop h3 { margin: 0; font-size: 18px; letter-spacing: -0.01em; }
.drop p { margin: 0; color: var(--faint); font-size: 13.5px; }

.quota { display: grid; gap: 8px; }
.quota .meter { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.quota .meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--accent)); border-radius: 999px; transition: width 0.2s; }
.quota.over .meter span { background: var(--error); }

/* ---------------------------------------------------------------- Meldungen */

.banner {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface-2); font-size: 14px;
}
.banner .icon { margin-top: 2px; }
.banner.error { border-color: rgba(255, 107, 107, 0.35); background: var(--error-soft); color: #ffd6d6; }
.banner.ok { border-color: rgba(61, 220, 151, 0.35); background: var(--ok-soft); color: #d6ffe9; }
.banner.info { border-color: rgba(75, 163, 255, 0.3); background: var(--blue-soft); color: #dbe9ff; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.chip .icon { width: 12px; height: 12px; stroke-width: 2.4; }
.chip.ok { color: var(--ok); background: var(--ok-soft); border-color: rgba(61, 220, 151, 0.25); }
.chip.warn { color: var(--warn); background: rgba(255, 184, 77, 0.1); border-color: rgba(255, 184, 77, 0.25); }
.chip.err { color: var(--error); background: var(--error-soft); border-color: rgba(255, 107, 107, 0.25); }
.chip.accent { color: #ffd0ad; background: var(--accent-soft); border-color: rgba(255, 107, 0, 0.3); }
.chip.blue { color: #a9d1ff; background: var(--blue-soft); border-color: rgba(75, 163, 255, 0.28); }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px); opacity: 0;
  padding: 11px 18px; border-radius: 999px;
  background: #1a2238; border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 600; z-index: 100;
  transition: opacity 0.2s, transform 0.2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- Code-Eingabe */

.code-box { display: flex; gap: 10px; flex-wrap: wrap; }
.code-input {
  flex: 1 1 260px; min-width: 0;
  min-height: 60px; padding: 0 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(6, 9, 17, 0.6);
  font-family: var(--mono); font-size: 22px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #ffe2cc;
}
.code-input:focus { outline: none; border-color: rgba(255, 107, 0, 0.6); box-shadow: 0 0 0 5px var(--accent-soft); }
.code-input::placeholder { color: #47526b; letter-spacing: 0.14em; }

.code-chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 17px; letter-spacing: 0.12em;
  padding: 8px 14px; border-radius: 12px;
  background: rgba(255, 107, 0, 0.1); border: 1px dashed rgba(255, 107, 0, 0.45); color: #ffe2cc;
}

/* ---------------------------------------------------------------- Vorschau */

.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  background: rgba(4, 6, 12, 0.92);
  backdrop-filter: blur(8px);
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
}
.lightbox .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; }
.lightbox .bar .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lightbox .stage { display: grid; place-items: center; min-height: 0; }
.lightbox video, .lightbox img, .lightbox audio, .lightbox iframe { max-width: 100%; max-height: 100%; border-radius: 12px; background: #000; }
.lightbox iframe { width: 100%; height: 100%; border: 0; background: #fff; }

/* ---------------------------------------------------------------- Verwaltung */

.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(6, 9, 17, 0.55); border: 1px solid var(--line); overflow-x: auto; }
.tabs button { border: 0; background: transparent; color: var(--muted); padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tabs button[aria-selected="true"] { background: var(--surface-hover); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.tabs .count { font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: #ffd0ad; font-variant-numeric: tabular-nums; }

.list { display: grid; gap: 10px; }
.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  transition: border-color 0.15s, background 0.15s;
}
.item:hover { border-color: var(--line); background: rgba(255, 255, 255, 0.06); }
.item .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--faint); margin-top: 4px; align-items: center; }
.item .tools { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.item.gone { opacity: 0.55; }
@media (max-width: 560px) { .item { grid-template-columns: 1fr; } .item .tools { justify-content: flex-start; } }

.empty { text-align: center; padding: 44px 16px; color: var(--faint); }
.empty .icon { width: 30px; height: 30px; margin: 0 auto 12px; opacity: 0.7; }

.result {
  display: grid; gap: 14px;
  padding: 22px; border-radius: var(--r-lg);
  border: 1px solid rgba(61, 220, 151, 0.3);
  background: radial-gradient(400px 120px at 0% 0%, rgba(61, 220, 151, 0.12), transparent 70%), rgba(9, 13, 23, 0.8);
}
.copyline { display: flex; gap: 8px; align-items: stretch; }
.copyline .input { font-family: var(--mono); font-size: 13.5px; min-height: 44px; }

.divider { height: 1px; background: var(--line-soft); margin: 6px 0; }

.center-card { max-width: 520px; margin: 6vh auto 0; width: 100%; }

@keyframes pulse { 0%, 100% { opacity: 0.55 } 50% { opacity: 1 } }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
