/* nyaa.net - dark theme */

:root {
  --bg: #0d1117;
  --surface: #151b23;
  --surface-2: #1c2530;
  --border: #2a3441;
  --border-soft: #222b36;
  --text: #dce3ea;
  --muted: #8b98a7;
  --link: #6cb2ff;
  --accent: #3d8bfd;
  --accent-soft: rgba(61, 139, 253, 0.15);
  --green: #3fb950;
  --red: #f85149;
  --yellow: #d29922;
  --orange: #e8843c;
  --radius: 8px;
}

/* Sukebei (NSFW) theme: pink accent plus a subtle pink cast on the dark
   surfaces so the whole site reads slightly warmer than the blue nyaa side. */
body[data-site="sukebei"] {
  --accent: #e05299;
  --accent-soft: rgba(224, 82, 153, 0.15);
  --link: #f08bc0;
  --bg: #140e13;
  --surface: #1d1520;
  --surface-2: #261c2b;
  --border: #3b2c40;
  --border-soft: #302435;
}
body[data-site="sukebei"] .navbar { background: rgba(29, 21, 32, 0.95); }
body[data-site="sukebei"] .logbox { background: #100a10; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

kbd {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
}

.muted { color: var(--muted); }
.icon { vertical-align: -2px; }

/* ---- navbar ---- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21, 27, 35, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.brand {
  font-size: 19px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.2px;
}
.brand:hover { text-decoration: none; }

.nsfw-pill {
  background: rgba(248, 81, 73, 0.16);
  color: var(--red);
  border: 1px solid rgba(248, 81, 73, 0.4);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  /* Shared metrics so Nyaa / Sukebei / Info sit on one baseline */
  --nav-link-h: 32px;
  --nav-link-pad-x: 11px;
  font-size: 14px;
  line-height: 1;
}
/* Plain links and the Info toggle share the exact same box */
.nav-links > a,
.nav-links .nav-drop-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-link-h);
  padding: 0 var(--nav-link-pad-x);
  border-radius: 6px;
  color: var(--muted);
  font-weight: 500;
  font-size: inherit;
  line-height: 1;
  box-sizing: border-box;
  vertical-align: middle;
}
.nav-links > a:hover,
.nav-links .nav-drop-toggle:hover {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}
.nav-links > a.active { color: var(--text); background: var(--accent-soft); }

.searchbar {
  display: flex;
  gap: 8px;
  margin-left: auto;
  align-items: center;
  padding: 8px 0;
  flex-wrap: wrap;
}

.input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  outline: none;
}
.input:focus { border-color: var(--accent); }
select.input { cursor: pointer; }
.select-cat { max-width: 210px; }
.search-input { width: 220px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled:hover { border-color: var(--border); }
.btn-accent { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.btn-danger:hover { border-color: var(--red); }
.btn-search { padding: 7px 12px; }

/* ---- layout ---- */

.container {
  max-width: 1200px;
  margin: 18px auto;
  padding: 0 16px;
  min-height: calc(100vh - 160px);
}

.footer {
  max-width: 1200px;
  margin: 24px auto;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border-soft);
}

.page-title { font-size: 20px; margin: 4px 0 8px; }
.help-sub { font-size: 15px; margin: 16px 0 6px; color: var(--text); }
.xmlns-tags { margin: 12px 0 0; padding-left: 1.25em; }
.xmlns-tags li { margin-bottom: 8px; }
.xmlns-tags code { font-size: 12.5px; }

/* Legacy Pantsu easter egg (renchon) */
.panel-header .renchon-egg {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  width: 18px;
  height: auto;
  opacity: 0.55;
  cursor: default;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.panel-header .renchon-egg:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* ---- listing ---- */

.chips { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; font-size: 13px; }
.chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px 10px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.chip a { color: var(--muted); font-weight: 700; }
.chip a:hover { color: var(--red); text-decoration: none; }

.listing-meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

.torrent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 900px;
}

.torrent-table th {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  background: var(--surface-2);
}
.torrent-table th a { color: var(--muted); }
.torrent-table th a:hover { color: var(--text); text-decoration: none; }
.sort-arrow { font-size: 9px; margin-left: 3px; color: var(--accent); }
.th-s { color: var(--green) !important; }
.th-l { color: var(--red) !important; }
.th-c { color: var(--muted) !important; }

.torrent-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.torrent-table tbody tr:last-child td { border-bottom: none; }
.torrent-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }

tr.row-trusted { background: rgba(63, 185, 80, 0.06); }
tr.row-trusted:hover { background: rgba(63, 185, 80, 0.1) !important; }
tr.row-remake { background: rgba(248, 81, 73, 0.06); }
tr.row-remake:hover { background: rgba(248, 81, 73, 0.1) !important; }

.col-cat { width: 90px; white-space: nowrap; }
.col-link { width: 64px; white-space: nowrap; }
.col-size, .col-date { white-space: nowrap; color: var(--muted); width: 110px; }
.col-date { width: 130px; }
.col-num { width: 44px; text-align: right; white-space: nowrap; }

.num-s { color: var(--green); font-weight: 600; }
.num-l { color: var(--red); font-weight: 600; }
.num-c { color: var(--muted); }

.t-name { color: var(--text); font-weight: 500; }
.t-name:hover { color: var(--link); }

.comments-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 99px;
  vertical-align: 1px;
}
.comments-pill:hover { color: var(--text); text-decoration: none; border-color: var(--accent); }

.icon-btn {
  display: inline-flex;
  padding: 4px 5px;
  border-radius: 5px;
  color: var(--muted);
}
.icon-btn:hover { color: var(--accent); background: var(--surface-2); }

.cat-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  border: 1px solid;
}
.cat-badge:hover { text-decoration: none; filter: brightness(1.25); }
.cat-badge .cat-sub { font-weight: 500; opacity: 0.85; max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cat-1 { color: #e8a04c; background: rgba(232, 160, 76, 0.11); border-color: rgba(232, 160, 76, 0.35); }
.cat-2 { color: #6cb2ff; background: rgba(108, 178, 255, 0.11); border-color: rgba(108, 178, 255, 0.35); }
.cat-3 { color: #56d364; background: rgba(86, 211, 100, 0.11); border-color: rgba(86, 211, 100, 0.35); }
.cat-4 { color: #bc8cff; background: rgba(188, 140, 255, 0.11); border-color: rgba(188, 140, 255, 0.35); }
.cat-5 { color: #f778ba; background: rgba(247, 120, 186, 0.11); border-color: rgba(247, 120, 186, 0.35); }
.cat-6 { color: #ff7b72; background: rgba(255, 123, 114, 0.11); border-color: rgba(255, 123, 114, 0.35); }
.cat-0 { color: var(--muted); background: var(--surface-2); border-color: var(--border); }

/* ---- pagination ---- */

.pagination {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin: 18px 0;
  flex-wrap: wrap;
}
.pagination a, .pagination .current {
  min-width: 32px;
  text-align: center;
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}
.pagination a:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
.pagination .current { background: var(--accent-soft); border-color: var(--accent); color: var(--text); font-weight: 600; }

/* ---- panels / view page ---- */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}
.panel-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  background: var(--surface-2);
}
.panel-body { padding: 16px; }
.panel-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.panel-trusted { border-color: rgba(63, 185, 80, 0.45); }
.panel-trusted .panel-header { background: rgba(63, 185, 80, 0.09); }
.panel-remake { border-color: rgba(248, 81, 73, 0.45); }
.panel-remake .panel-header { background: rgba(248, 81, 73, 0.09); }

.view-title { font-size: 17px; margin: 0; font-weight: 600; line-height: 1.4; }

.info-grid {
  display: grid;
  grid-template-columns: 110px 1fr 110px 1fr;
  gap: 8px 14px;
  align-items: baseline;
}
.ig-label { color: var(--muted); font-size: 12.5px; }
.ig-value { min-width: 0; overflow-wrap: anywhere; }
.ig-span { grid-column: 2 / -1; }
.stats-note { margin-left: auto; font-size: 12px; }

/* ---- markdown content ---- */

.markdown { overflow-wrap: anywhere; }
.markdown img { max-width: 100%; height: auto; border-radius: 6px; }
.markdown pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  overflow-x: auto;
}
.markdown code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.markdown pre code { background: none; padding: 0; }
.markdown blockquote {
  border-left: 3px solid var(--border);
  margin: 8px 0;
  padding: 2px 12px;
  color: var(--muted);
}
.markdown table { border-collapse: collapse; max-width: 100%; }
.markdown th, .markdown td { border: 1px solid var(--border); padding: 5px 9px; }
.markdown h1, .markdown h2 { border-bottom: 1px solid var(--border-soft); padding-bottom: 4px; }
.markdown h1 { font-size: 19px; } .markdown h2 { font-size: 17px; }
.markdown h3 { font-size: 15.5px; } .markdown h4, .markdown h5, .markdown h6 { font-size: 14px; }
.markdown hr { border: none; border-top: 1px solid var(--border); }

/* ---- file list ---- */

.file-list { font-size: 13px; }
.tree { list-style: none; margin: 0; padding-left: 18px; }
.file-list > .tree { padding-left: 0; }
.tree li { padding: 2px 0; }
.tree summary { cursor: pointer; font-weight: 600; }
.tree summary:hover { color: var(--link); }
.file-size { color: var(--muted); font-size: 12px; }

/* ---- comments ---- */

.comment { display: flex; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--border-soft); }
.comment:first-of-type { border-top: none; }
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 3px; }
.comment-author { font-weight: 600; }
.comment-date { font-size: 12px; }
.comment-body { font-size: 13.5px; }
.comment-body p:first-child { margin-top: 0; }
.comment-body p:last-child { margin-bottom: 0; }

/* ---- admin ---- */

.admin-sub { margin-top: -2px; }
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 980px) { .admin-grid { grid-template-columns: 1fr; } }

.admin-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.admin-site-name .muted { font-weight: 400; font-size: 12px; margin-left: 4px; }

.state-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.state-running { color: var(--green); border-color: rgba(63, 185, 80, 0.5); background: rgba(63, 185, 80, 0.1); }
.state-paused { color: var(--yellow); border-color: rgba(210, 153, 34, 0.5); background: rgba(210, 153, 34, 0.1); }
.state-pausing, .state-stopping { color: var(--orange); border-color: rgba(232, 132, 60, 0.5); background: rgba(232, 132, 60, 0.1); }
.state-stopped { color: var(--muted); }

.activity { font-size: 13px; margin-bottom: 10px; color: var(--text); }
.activity::before { content: "▸ "; color: var(--accent); }

.counters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.counter {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 5px 4px;
  text-align: center;
}
.counter b { display: block; font-size: 15px; }
.counter span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }

.totals { font-size: 12.5px; margin-bottom: 12px; }

.controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.scrape-one { display: flex; gap: 8px; margin-bottom: 12px; }
.scrape-one .input { width: 190px; }

.settings { margin-bottom: 12px; border: 1px solid var(--border-soft); border-radius: 6px; padding: 8px 12px; background: var(--surface-2); }
.settings summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
/* min-width: 0 lets grid cells shrink below the intrinsic width of their
   inputs/selects - without it long option text pushes fields off-screen. */
.settings-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; }
.settings-grid label.check { flex-direction: row; align-items: center; gap: 8px; grid-column: 1 / -1; flex-wrap: wrap; }
.settings-grid .wide { grid-column: 1 / -1; min-width: 0; }
.settings-grid .input { width: 100%; min-width: 0; max-width: 100%; }
.mgr-add .input { min-width: 0; }
textarea.input.proxies-input { resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: 12px; min-height: 60px; }

.failed-box { margin-bottom: 12px; }
.failed-actions { display: flex; gap: 8px; align-items: center; margin: 10px 0; flex-wrap: wrap; }
.failed-list { max-height: 180px; overflow-y: auto; font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; }
.failed-row { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; border-bottom: 1px solid var(--border-soft); }
.failed-row a { flex-shrink: 0; font-weight: 600; }
.failed-meta { color: var(--yellow); flex-shrink: 0; }
.failed-reason { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settings-actions { display: flex; gap: 10px; align-items: center; }

.inline-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.inline-label .input { width: 80px; }
.check { font-size: 13px; display: inline-flex; align-items: center; gap: 7px; }

.logbox {
  background: #0a0e13;
  border: 1px solid var(--border);
  border-radius: 6px;
  height: 240px;
  overflow-y: auto;
  padding: 8px 10px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.55;
}
.log-line { white-space: pre-wrap; word-break: break-word; }
.level-info { color: #9fb0c0; }
.level-warn { color: var(--yellow); }
.level-error { color: var(--red); font-weight: 600; }
.level-cf_block { color: var(--orange); font-weight: 600; }
.level-rate_limit { color: var(--yellow); font-weight: 600; }

.tracker-card { margin-top: 16px; }
.tracker-controls { margin: 10px 0; }

.error-panel { max-width: 560px; margin: 40px auto; }

/* ---- nav info dropdown ---- */

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--nav-link-h);
}
/* CSS triangle caret — no unicode glyph, so text metrics match siblings */
.nav-drop-toggle::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  flex-shrink: 0;
}
.nav-drop-menu {
  display: none;
  position: absolute;
  /* Sit flush under the toggle; no gap (a margin gap kills :hover mid-move). */
  top: 100%;
  left: 0;
  min-width: 130px;
  /* Transparent hit-bridge above the visible panel so the pointer can travel
     from "Info" into Rules/Help without leaving .nav-dropdown:hover. */
  padding: 6px 0 0;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 60;
}
.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown:focus-within .nav-drop-menu { display: block; }
/* Visible panel lives on the items, not the outer hover bridge */
.nav-drop-menu a {
  display: block;
  padding: 6px 11px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.25;
  font-size: 14px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-decoration: none;
}
.nav-drop-menu a:first-child {
  border-top: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
}
.nav-drop-menu a:last-child {
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.nav-drop-menu a:only-child {
  border-radius: 8px;
}
.nav-drop-menu a:hover {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}

/* ---- category icons (listing) ---- */

.cat-icon-link { display: inline-block; line-height: 0; }
.cat-icon { width: 80px; height: 28px; object-fit: contain; border-radius: 3px; }
.cat-icon-link:hover .cat-icon { filter: brightness(1.2); }

/* ---- 404 page ---- */

.notfound { text-align: center; margin: 40px auto; max-width: 480px; }
.notfound-title { font-size: 34px; margin: 10px 0 22px; }
.notfound-box {
  position: relative;
  width: 320px;
  max-width: 90vw;
  aspect-ratio: 1 / 1;
  margin: 0 auto 18px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.nf-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.nf-img.visible { opacity: 1; }
.notfound-msg { margin: 0 0 16px; }

/* ---- info pages (rules / help) ---- */

.info-disclaimer { border-color: rgba(210, 153, 34, 0.55); }
.info-disclaimer .panel-header { background: rgba(210, 153, 34, 0.1); color: var(--yellow); }
.panel-body h3 { margin: 16px 0 6px; font-size: 14.5px; }
.help-trusted { color: var(--green); }
.help-remake { color: var(--red); }
.help-batch { color: var(--orange); }
.help-colors { list-style: none; padding-left: 0; }
.help-colors li { margin: 7px 0; }
.help-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  vertical-align: -2px;
  margin-right: 5px;
  border: 1px solid var(--border);
}
.swatch-trusted { background: rgba(63, 185, 80, 0.35); }
.swatch-remake { background: rgba(248, 81, 73, 0.35); }
.swatch-batch { background: rgba(232, 132, 60, 0.35); }
.help-table td { padding: 4px 12px 4px 0; vertical-align: top; }

/* ---- search suggest dropdown ---- */

.searchbar { position: relative; }
.suggest-box {
  position: absolute;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  z-index: 70;
}
.suggest-item {
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggest-item:hover, .suggest-item.active { background: var(--accent-soft); }

/* ---- report form ---- */

.report-form { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.report-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.report-form textarea.input { resize: vertical; min-height: 110px; }
.report-error {
  border: 1px solid var(--red, #e05252);
  background: rgba(224, 82, 82, 0.12);
  border-radius: 6px;
  padding: 8px 12px;
}
.captcha-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.captcha-img { border: 1px solid var(--border); border-radius: 6px; background: #f5f5f0; }
.captcha-input { width: 120px; text-transform: uppercase; letter-spacing: 3px; }
.report-actions { display: flex; gap: 8px; margin-top: 4px; }
.btn-report:hover { border-color: var(--red, #e05252); }

/* ---- responsive ---- */

@media (max-width: 860px) {
  .info-grid { grid-template-columns: 100px 1fr; }
  .ig-span { grid-column: 2 / -1; }
  .searchbar { width: 100%; }
  .search-input { flex: 1; width: auto; }
  .counters { grid-template-columns: repeat(3, 1fr); }
  .settings-grid { grid-template-columns: 1fr; }
}
