/* fbid-resolver public tool stylesheet, in the Vristo dashboard style:
 * #fafafa canvas, #0e1726 / #060818 dark mode, green #047857 accent (no
 * purple). The cards (search, result, formats, limits) are milky-white
 * "liquid glass"; header, footer and page background stay solid.
 * System font stack (the page CSP has font-src 'none'), no inline styles. */

:root {
  color-scheme: light;
  --bg: #fafafa;
  --panel: #ffffff;
  --panel-soft: #f6f8fa;
  --ink: #0e1726;
  --muted: #6b7192;
  --line: #e0e6ed;
  --line-soft: rgba(224, 230, 237, 0.6);
  --edge: #ebedf2;
  --soft: #f6f8fa;
  --accent: #047857;
  --accent-hover: #065f46;
  --accent-soft: #e6f6ef;
  --accent-ink: #047857;
  --link: #047857;
  --link-hover: #065f46;
  --ring: #059669;
  --danger: #e7515a;
  --danger-bg: #fff5f5;
  --danger-border: #e7515a;
  --danger-ink: #b8323b;
  --warn: #e2a03f;
  --warn-bg: #fff9ed;
  --warn-border: #e2a03f;
  --warn-ink: #8a5608;
  --success: #00ab55;
  --success-bg: #ddf5f0;
  --success-ink: #00703a;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-sm: 4px;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-pop: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-head: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --glow: 0 10px 20px -10px rgba(4, 120, 87, 0.55);
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.74) 100%);
  --glass-line: rgba(255, 255, 255, 0.85);
  --glass-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(14, 23, 38, 0.03), 0 0 0 1px rgba(14, 23, 38, 0.05), 0 2px 6px -2px rgba(14, 23, 38, 0.06), 0 14px 34px -16px rgba(14, 23, 38, 0.2);
  --glass-blur: blur(20px) saturate(180%);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #060818;
  --panel: #0e1726;
  --panel-soft: #121c2c;
  --ink: #e0e6ed;
  --muted: #888ea8;
  --line: #1b2e4b;
  --line-soft: #191e3a;
  --edge: #17263c;
  --soft: #1a2941;
  --accent: #047857;
  --accent-hover: #065f46;
  --accent-soft: rgba(16, 185, 129, 0.16);
  --accent-ink: #34d399;
  --link: #34d399;
  --link-hover: #6ee7b7;
  --ring: #34d399;
  --danger: #e7515a;
  --danger-bg: rgba(231, 81, 90, 0.16);
  --danger-border: #e7515a;
  --danger-ink: #ff8c93;
  --warn: #e2a03f;
  --warn-bg: rgba(226, 160, 63, 0.16);
  --warn-border: #e2a03f;
  --warn-ink: #f1bd6c;
  --success: #00ab55;
  --success-bg: rgba(0, 171, 85, 0.16);
  --success-ink: #3fd68a;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-pop: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-head: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --glow: 0 10px 20px -10px rgba(16, 185, 129, 0.45);
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(14, 23, 38, 0.72);
  --glass-line: rgba(255, 255, 255, 0.07);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 2px 6px -2px rgba(0, 0, 0, 0.4), 0 14px 34px -16px rgba(0, 0, 0, 0.75);
  --glass-blur: blur(20px) saturate(160%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #060818;
    --panel: #0e1726;
    --panel-soft: #121c2c;
    --ink: #e0e6ed;
    --muted: #888ea8;
    --line: #1b2e4b;
    --line-soft: #191e3a;
    --edge: #17263c;
    --soft: #1a2941;
    --accent: #047857;
    --accent-hover: #065f46;
    --accent-soft: rgba(16, 185, 129, 0.16);
    --accent-ink: #34d399;
    --link: #34d399;
    --link-hover: #6ee7b7;
    --ring: #34d399;
    --danger: #e7515a;
    --danger-bg: rgba(231, 81, 90, 0.16);
    --danger-border: #e7515a;
    --danger-ink: #ff8c93;
    --warn: #e2a03f;
    --warn-bg: rgba(226, 160, 63, 0.16);
    --warn-border: #e2a03f;
    --warn-ink: #f1bd6c;
    --success: #00ab55;
    --success-bg: rgba(0, 171, 85, 0.16);
    --success-ink: #3fd68a;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-pop: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --shadow-head: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --glow: 0 10px 20px -10px rgba(16, 185, 129, 0.45);
    --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(14, 23, 38, 0.72);
    --glass-line: rgba(255, 255, 255, 0.07);
    --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 2px 6px -2px rgba(0, 0, 0, 0.4), 0 14px 34px -16px rgba(0, 0, 0, 0.75);
    --glass-blur: blur(20px) saturate(160%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(at 50% 0%, rgba(16, 185, 129, 0.08) 0px, transparent 60%),
    radial-gradient(at 100% 30%, rgba(20, 184, 166, 0.04) 0px, transparent 45%);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 400 14px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--link); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--link-hover); text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.88em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.wrap { max-width: 820px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ---- Top Header ---- */

.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--panel);
  box-shadow: var(--shadow-head);
}
.top-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 60px;
}
.site {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 700; font-size: 20px;
  text-decoration: none;
}
.site:hover { text-decoration: none; }
.site-mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 55%), linear-gradient(to right, #047857, #0f766e);
  color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), var(--glow);
}
.site-mark svg { width: 18px; height: 18px; }
.site .logo { display: block; max-width: 150px; max-height: 32px; object-fit: contain; }

.top-nav { display: flex; align-items: center; gap: 8px; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius);
  color: var(--muted); font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all .15s ease;
}
.nav-btn:hover { background: var(--soft); color: var(--accent-ink); text-decoration: none; }
.nav-ic { width: 15px; height: 15px; opacity: 0.8; }

.theme-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 0; border-radius: var(--radius);
  background: var(--soft); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .15s ease;
}
.theme-toggle:hover { color: var(--accent-ink); }
.theme-ic { width: 15px; height: 15px; opacity: 0.8; }

/* ---- Main Content ---- */

.main-content { flex: 1; padding-top: 36px; padding-bottom: 60px; }

/* Hero */
.hero { text-align: center; margin-bottom: 32px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px; border-radius: 9999px;
  background: var(--accent-soft);
  color: var(--accent-ink); font-size: 12px; font-weight: 700;
  letter-spacing: 0.01em; margin-bottom: 16px;
}
.hero-badge svg { width: 14px; height: 14px; flex: none; }
.hero-title {
  font-size: 36px; font-weight: 800; line-height: 1.2;
  margin: 0 0 12px; color: var(--accent-ink);
}
.lead {
  max-width: 600px; margin: 0 auto;
  color: var(--muted); font-size: 15px; line-height: 1.6;
}

/* Search Card */
.search-card {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--glass-shadow);
}
.search-label {
  display: block; margin-bottom: 8px;
  font-size: 13px; font-weight: 700; color: var(--ink);
  letter-spacing: 0.01em;
}
.search-box {
  display: flex; align-items: center; gap: 8px;
  position: relative;
}
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none; display: flex;
}
.search-icon svg { width: 18px; height: 18px; }
input[type="text"] {
  flex: 1; min-width: 0; height: 50px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 600;
  outline: none;
  transition: all .15s ease;
}
input[type="text"]::placeholder { color: var(--muted); opacity: 0.7; font-weight: 400; }
input[type="text"]:focus { border-color: var(--accent-ink); }
#go {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 50px; padding: 0 24px; border: 0; border-radius: var(--radius);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 55%), linear-gradient(to right, #047857, #0f766e);
  color: #fff; font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  box-shadow: var(--glow);
  transition: box-shadow .15s ease;
}
#go:hover { background-image: linear-gradient(to right, #065f46, #115e59); box-shadow: none; }
#go .go-ic { width: 16px; height: 16px; }
#go[disabled] { opacity: 0.6; cursor: progress; box-shadow: none; }

/* Samples */
.try-samples {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin-top: 16px; font-size: 13px;
}
.try-label { color: var(--muted); font-weight: 500; font-size: 12px; }
.try-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sample-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border: 1px solid var(--line); border-radius: 9999px;
  background: var(--soft); color: var(--muted);
  font: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: all .15s ease;
}
.sample-chip:hover {
  background: var(--accent-soft); border-color: var(--accent-ink);
  color: var(--accent-ink);
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.6; }

.turnstile { margin-top: 16px; min-height: 0; }

/* Error Message */
.error-card {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent; border-left: 4px solid var(--danger-border);
  background: var(--danger-bg); color: var(--danger-ink);
  font-size: 14px; font-weight: 600;
  animation: fadeIn .2s ease-out;
}
.alert-ic { width: 18px; height: 18px; color: var(--danger); flex: none; }

/* Result Card */
.result-card {
  margin-top: 28px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--glass-shadow);
  animation: fadeIn .25s cubic-bezier(0.4, 0, 0.2, 1);
}
.result-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 16px; margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.result-title-group { display: flex; align-items: center; gap: 8px; }
.result-badge-icon {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--success-bg); color: var(--success);
}
.result-badge-icon svg { width: 14px; height: 14px; }
.result-card h2 { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.result-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge-type {
  display: inline-block; padding: 2px 10px; border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff; font-size: 12px; font-weight: 600;
}
.badge-meta {
  display: inline-block; padding: 2px 10px; border-radius: var(--radius-sm);
  background: var(--soft); color: var(--muted);
  font-size: 12px; font-weight: 600;
}

/* IDs List */
.ids-container { margin: 0; display: flex; flex-direction: column; gap: 10px; }

/* Main Primary ID Row */
.id-row.main {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  margin-bottom: 6px;
}
.id-row.main .id-label {
  display: block; width: 100%;
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--accent-ink);
}
.id-row.main .id-value {
  font-family: var(--mono); font-size: 22px; font-weight: 800;
  color: var(--ink); letter-spacing: -0.01em;
  overflow-wrap: anywhere; word-break: break-all;
}
.id-row.main .copy {
  padding: 8px 18px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff;
  border: 0; font-size: 13px; font-weight: 600;
  box-shadow: var(--glow);
}
.id-row.main .copy:hover { background: var(--accent-hover); color: #fff; box-shadow: none; }

/* Secondary ID Rows */
.id-row:not(.main) {
  display: grid; grid-template-columns: 130px minmax(0, 1fr) auto;
  align-items: center; gap: 12px 16px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  transition: background-color .15s ease;
}
.id-row:not(.main):hover { background: var(--soft); }
.id-label { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.id-value {
  margin: 0; font-family: var(--mono); font-size: 14px; font-weight: 600;
  color: var(--ink); overflow-wrap: anywhere; word-break: break-all;
}
.id-value a { font-family: var(--font); font-size: 13px; font-weight: 500; }
.id-act { margin: 0; }

/* Copy Button */
.copy {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel); color: var(--ink);
  font: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: all .15s ease;
}
.copy:hover {
  background: var(--soft); border-color: var(--line);
  color: var(--accent-ink); text-decoration: none;
}
.copy.done {
  background: var(--success); border-color: var(--success);
  color: #fff; box-shadow: none;
}

/* Warning */
.warn-card {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent; border-left: 4px solid var(--warn-border);
  background: var(--warn-bg); color: var(--warn-ink);
  font-size: 13px; font-weight: 600;
}
.warn-ic { width: 18px; height: 18px; color: var(--warn); flex: none; }

/* ---- Formats Section ---- */

.formats-section { margin-top: 48px; }
.section-head { margin-bottom: 20px; }
.section-head h2 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.section-head p { margin: 0; font-size: 14px; color: var(--muted); }

.formats-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.format-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px; border-radius: 14px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.format-card:hover {
  border-color: var(--accent-soft);
  box-shadow: var(--glass-shadow), var(--shadow-card);
}
.format-wide { grid-column: 1 / -1; }
.format-icon {
  display: inline-grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: var(--radius);
  background: var(--accent-soft); color: var(--accent-ink);
}
.format-icon svg { width: 18px; height: 18px; }
.format-body { flex: 1; min-width: 0; }
.format-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.format-desc { margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 16px; }
.format-body code {
  display: block; padding: 4px 8px; margin-bottom: 4px;
  border-radius: var(--radius-sm); background: var(--soft);
  color: var(--ink); font-size: 12px; overflow-wrap: anywhere;
}
.format-body code:last-child { margin-bottom: 0; }

/* ---- Limits Card ---- */

.limits-card {
  margin-top: 24px; padding: 18px 20px;
  border-radius: 14px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
}
.limits-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px; color: var(--ink);
}
.limits-head svg { width: 16px; height: 16px; color: var(--accent-ink); }
.limits-head h3 { margin: 0; font-size: 14px; font-weight: 700; }
.limits-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 20px; }
.limits-card b { color: var(--ink); }

/* ---- Footer ---- */

.foot {
  margin-top: auto;
  background: var(--panel); padding: 24px 0;
  box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, 0.05);
}
.foot-in {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
}
.foot-note { margin: 0; color: var(--muted); font-size: 12px; }
.foot-copy { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; }

/* ---- Mode tabs (one link / many links) ---- */

.mode-tabs {
  display: inline-flex; gap: 4px; margin-bottom: 18px; padding: 4px;
  border-radius: var(--radius); background: var(--soft);
}
.mode-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--muted);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.mode-tab:hover { color: var(--accent-ink); }
.mode-tab[aria-selected="true"] { background: var(--panel); color: var(--accent-ink); box-shadow: var(--shadow); }
.mode-badge {
  padding: 1px 7px; border-radius: 9999px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 11px; font-weight: 700;
}

/* ---- Many links ---- */

.many-input {
  display: block; width: 100%; min-height: 150px; padding: 12px 14px; resize: vertical;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); color: var(--ink);
  font-family: var(--mono); font-size: 13px; font-weight: 500; line-height: 1.7;
  outline: none; transition: border-color .15s;
}
.many-input::placeholder { color: var(--muted); font-weight: 400; opacity: .8; }
.many-input:focus { border-color: var(--accent-ink); }
.many-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px; margin-top: 12px;
}
.many-count { color: var(--muted); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.many-count.over { color: var(--danger-ink); }
.many-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ghost-btn {
  padding: 9px 14px; border: 0; border-radius: var(--radius);
  background: var(--soft); color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: color .15s;
}
.ghost-btn:hover { color: var(--accent-ink); }
.go-many {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 22px; border: 0; border-radius: var(--radius);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 55%), linear-gradient(to right, #047857, #0f766e);
  color: #fff; font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap; box-shadow: var(--glow);
  transition: box-shadow .15s ease;
}
.go-many:hover { background-image: linear-gradient(to right, #065f46, #115e59); box-shadow: none; }
.go-many[disabled] { opacity: .6; cursor: progress; box-shadow: none; }
.go-many .go-ic { width: 16px; height: 16px; }
.many-note { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 18px; }
.sr-copy { position: fixed; left: -9999px; top: 0; opacity: 0; }

/* ---- Bulk result ---- */

.badge-err {
  display: inline-block; padding: 2px 10px; border-radius: var(--radius-sm);
  background: var(--danger-bg); color: var(--danger-ink); font-size: 12px; font-weight: 600;
}
.bulk-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tool-btn {
  padding: 8px 16px; border: 1px solid var(--accent); border-radius: var(--radius);
  background: transparent; color: var(--accent-ink);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.tool-btn:hover { background: var(--accent); color: #fff; }
.tool-btn.primary { background: var(--accent); color: #fff; box-shadow: var(--glow); }
.tool-btn.primary:hover { background: var(--accent-hover); box-shadow: none; }
.tool-btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.tool-btn.done { background: var(--success); border-color: var(--success); color: #fff; }
.bulk-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bulk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bulk-table thead tr { background: var(--soft); }
.bulk-table th { padding: 10px 10px; text-align: left; white-space: nowrap; font-weight: 600; color: var(--ink); }
.bulk-table th:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.bulk-table th:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.bulk-table td { padding: 10px 10px; vertical-align: middle; border-bottom: 1px solid var(--line-soft); }
.bulk-table tbody tr:last-child td { border-bottom: 0; }
.b-n { width: 36px; color: var(--muted); font-variant-numeric: tabular-nums; }
.b-link { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 12px; }
.b-type { white-space: nowrap; color: var(--muted); }
.b-id { white-space: nowrap; }
.b-id .id-value { margin-right: 8px; font-size: 13px; font-weight: 700; }
.b-id .copy { padding: 3px 9px; font-size: 11px; }
.b-uid { font-family: var(--mono); font-size: 12px; }
.b-status { min-width: 110px; }
.pill {
  display: inline-block; padding: 1px 8px; border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 700;
}
.pill.ok { background: var(--success-bg); color: var(--success-ink); }
.pill.err { background: var(--danger-bg); color: var(--danger-ink); }
.b-note { display: block; max-width: 280px; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 15px; white-space: normal; }
tr.is-err .b-link { color: var(--danger-ink); }

/* ---- FAQ (Vristo FAQ page) ---- */

.faq { margin-top: 56px; }
.faq-hero {
  padding: 36px 24px 28px; border-radius: var(--radius); text-align: center;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--panel) 100%);
  border: 1px solid var(--edge);
}
.faq-title { margin: 0 0 6px; font-size: 30px; font-weight: 700; color: var(--ink); }
.faq-title span { color: var(--accent-ink); }
.faq-sub { margin: 0 0 22px; color: var(--muted); font-size: 15px; font-weight: 600; }
.faq-search { position: relative; max-width: 580px; margin: 0 auto 18px; }
.faq-search input[type="search"] {
  width: 100%; height: 46px; padding: 0 96px 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 600; outline: none;
}
.faq-search input[type="search"]:focus { border-color: var(--accent-ink); }
.faq-search button {
  position: absolute; top: 4px; right: 4px; height: 38px; padding: 0 18px;
  border: 0; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.faq-search button:hover { background: var(--accent-hover); }
.faq-topics { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; }
.faq-topics-label { color: var(--ink); font-size: 14px; font-weight: 600; }
.faq-topic {
  padding: 4px 12px; border: 0; border-radius: 9999px; background: transparent;
  color: var(--link); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.faq-topic:hover { background: var(--accent-soft); }
.faq-topic.on { background: var(--accent); color: #fff; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; align-items: start; }
.faq-group {
  border-radius: var(--radius); background: var(--panel); border: 1px solid var(--edge);
  box-shadow: var(--shadow);
}
.faq-group-title { margin: 0; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); font-size: 20px; font-weight: 700; color: var(--ink); }
.faq-item { margin: 10px 14px; border-radius: var(--radius-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; list-style: none;
  color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.4;
  transition: background-color .15s, color .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--accent-soft); color: var(--accent-ink); }
.faq-item[open] > summary { background: var(--accent-soft); color: var(--accent-ink); }
.faq-ic { width: 22px; height: 22px; flex: none; }
.faq-minus { display: none; }
.faq-item[open] .faq-plus { display: none; }
.faq-item[open] .faq-minus { display: block; }
.faq-a { padding: 12px 12px 6px; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.65; }
.faq-a b { color: var(--ink); }
.faq-a code { padding: 1px 5px; border-radius: var(--radius-sm); background: var(--soft); color: var(--ink); }
.faq-empty { margin-top: 24px; text-align: center; color: var(--muted); font-weight: 600; }

/* ---- Reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---- Animations ---- */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top-in { min-height: 56px; }
  .nav-btn span, .theme-toggle .theme-txt { display: none; }
  .nav-btn, .theme-toggle { padding: 6px 8px; }
  .hero-title { font-size: 26px; }
  .lead { font-size: 14px; }
  .search-card { padding: 18px 16px; }
  .search-box { flex-direction: column; }
  input[type="text"] { flex: none; width: 100%; height: 46px; }
  .search-icon { top: 23px; }
  #go { width: 100%; height: 46px; }
  .result-card { padding: 18px 16px; }
  .id-row:not(.main) { grid-template-columns: 1fr auto; }
  .id-label { grid-column: 1 / -1; }
  .formats-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .bulk-table th:nth-child(3), .bulk-table td.b-type { display: none; }
  .b-link { max-width: 110px; }
  .faq-title { font-size: 24px; }
  .mode-tabs { display: flex; }
  .mode-tab { flex: 1; justify-content: center; padding: 8px 10px; }
  .many-actions { width: 100%; }
  .go-many { flex: 1; }
  .format-wide { grid-column: auto; }
}

/* ---- video download ---- */
.opt { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 13px; cursor: pointer; }
.opt input { width: 16px; height: 16px; accent-color: var(--accent-ink); flex: none; }
.dl-card { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel-soft); }
.dl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; }
.dl-title { font-weight: 700; color: var(--ink); }
.dl-note { color: var(--muted); font-size: 12px; }
.dl-rows { display: grid; gap: 8px; }
.dl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.dl-q { min-width: 40px; padding: 3px 8px; border-radius: 9999px; text-align: center; font-size: 12px; font-weight: 700; background: var(--accent-soft); color: var(--accent-ink); }
.dl-q.sd { background: var(--soft); color: var(--muted); }
.dl-info { flex: 1 1 140px; color: var(--muted); font-size: 12px; }
.dl-btn { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: var(--radius); background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; box-shadow: var(--glow); }
.dl-btn:hover { background: var(--accent-hover); box-shadow: none; color: #fff; }
.dl-none { margin: 0; color: var(--muted); font-size: 13px; }
.b-dl { white-space: nowrap; }
.dl-chip { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 9999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
.dl-chip.sd { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.dl-chip:hover { background: var(--accent-hover); color: #fff; }
