/* ============================================================
   SearchOS Web UI — dark glass aesthetic
   ============================================================ */

:root {
  --bg: #07080d;
  --bg-2: #0b0d15;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #e8eaf2;
  --text-2: #9aa1b5;
  --text-3: #5d6377;
  --accent: #7c6cff;
  --accent-2: #4cc9f0;
  --accent-grad: linear-gradient(135deg, #7c6cff 0%, #4cc9f0 100%);
  --good: #3ddc97;
  --warn: #ffb454;
  --bad: #ff6b6b;
  --radius: 14px;
  --radius-lg: 22px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --topbar-h: 62px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* CRITICAL: hidden attribute must always win over component display rules */
[hidden] { display: none !important; }

::selection { background: rgba(124, 108, 255, 0.35); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

button { font-family: var(--font); cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: var(--font); border: none; outline: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }

/* ============ Ambient background ============ */
.bg-orbs {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(124,108,255,0.12), transparent),
    radial-gradient(ellipse 60% 40% at 85% 10%, rgba(76,201,240,0.08), transparent),
    var(--bg);
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.5;
  animation: drift 26s ease-in-out infinite alternate;
}
.orb-1 { width: 520px; height: 520px; background: rgba(124,108,255,0.16); top: -160px; left: -100px; }
.orb-2 { width: 420px; height: 420px; background: rgba(76,201,240,0.12); top: 20%; right: -140px; animation-delay: -8s; }
.orb-3 { width: 380px; height: 380px; background: rgba(255,107,107,0.07); bottom: -120px; left: 35%; animation-delay: -16s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.12); }
}

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, black 30%, transparent 75%);
}

/* ============ Top bar ============ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--topbar-h);
  display: flex; align-items: center;
  background: rgba(7, 8, 13, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 18px rgba(124,108,255,0.4);
}
.brand-icon svg { width: 19px; height: 19px; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand-name em { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* search box in topbar */
.searchbox-wrap { position: relative; flex: 1; max-width: 640px; }
.searchbox {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  padding: 5px 6px 5px 18px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.searchbox:focus-within {
  border-color: rgba(124,108,255,0.55);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 4px rgba(124,108,255,0.14), 0 8px 30px rgba(124,108,255,0.12);
}
.sb-icon { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; transition: color 0.2s; }
.searchbox:focus-within .sb-icon { color: var(--accent); }
.searchbox input { flex: 1; font-size: 15.5px; padding: 8px 0; min-width: 0; }
.searchbox input::placeholder { color: var(--text-3); }
.sb-clear {
  width: 32px; height: 32px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  color: var(--text-3); transition: all 0.2s; flex-shrink: 0;
}
.sb-clear svg { width: 15px; height: 15px; }
.sb-clear:hover { background: var(--surface-2); color: var(--text); }
.sb-clear.visible { display: flex; }
.sb-go {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 3px 12px rgba(124,108,255,0.35);
  flex-shrink: 0;
}
.sb-go svg { width: 16px; height: 16px; }
.sb-go:hover { transform: scale(1.08); box-shadow: 0 5px 18px rgba(124,108,255,0.5); }
.sb-go:active { transform: scale(0.95); }

/* suggestions dropdown */
.suggest {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  background: rgba(13, 15, 23, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 60;
}
.suggest.open { opacity: 1; visibility: visible; transform: translateY(0); }
.suggest-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; font-size: 14.5px; color: var(--text-2);
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
}
.suggest-item:hover, .suggest-item.active { background: var(--surface-2); color: var(--text); }
.suggest-item svg { width: 15px; height: 15px; opacity: 0.6; flex-shrink: 0; }
.suggest-empty { padding: 14px 18px; font-size: 14px; color: var(--text-3); }

/* tabs */
.tabs {
  display: flex; gap: 2px; flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 3px;
}
.tab {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 16px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--text-2);
  transition: all 0.2s;
}
.tab svg { width: 15px; height: 15px; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface-3); color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }

.topbar-right { margin-left: auto; flex-shrink: 0; }
.status-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 500; color: var(--text-2);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); transition: background 0.3s; }
.status-dot.ok { background: var(--good); box-shadow: 0 0 8px rgba(61,220,151,0.5); }
.status-dot.down { background: var(--bad); }

/* ============ Hero ============ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--topbar-h) + 40px) 24px 60px;
}
.hero-inner {
  width: 100%; max-width: 720px;
  display: flex; flex-direction: column; align-items: center;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.035em;
  text-align: center; margin-bottom: 18px;
}
.grad-text { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 17px; color: var(--text-2); font-weight: 400; margin-bottom: 48px; text-align: center; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  padding: 9px 18px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  transition: all 0.2s;
}
.chip:hover {
  border-color: rgba(124,108,255,0.5); color: var(--text);
  background: rgba(124,108,255,0.1);
  transform: translateY(-1px);
}

/* ============ Results view ============ */
.results-view {
  padding-top: calc(var(--topbar-h) + 4px);
  min-height: 100vh;
  animation: fadeIn 0.35s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* filter bar */
.filterbar {
  position: sticky; top: var(--topbar-h); z-index: 25;
  background: rgba(7, 8, 13, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.filterbar-inner {
  max-width: 860px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.fgroup {
  display: flex; gap: 2px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 3px;
}
.fbtn {
  padding: 6px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  transition: all 0.18s;
}
.fbtn:hover { color: var(--text); }
.fbtn.active { background: var(--surface-3); color: var(--text); }
.fsep { width: 1px; height: 22px; background: var(--border-2); }
.domain-filter {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 7px 14px;
  transition: border-color 0.2s;
  flex: 1; min-width: 160px;
}
.domain-filter:focus-within { border-color: rgba(124,108,255,0.5); }
.domain-filter svg { width: 15px; height: 15px; color: var(--text-3); flex-shrink: 0; }
.domain-filter input { font-size: 13px; width: 100%; }
.domain-filter input::placeholder { color: var(--text-3); }

/* image-to-image bar */
.img2img-bar {
  max-width: 860px; margin: 0 auto; padding: 14px 24px 0;
}
.img2img-inner {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px 6px 6px 16px;
}
.img2img-inner > svg { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; }
.img2img-inner input { flex: 1; font-size: 14px; padding: 8px 0; min-width: 0; }
.img2img-inner input::placeholder { color: var(--text-3); }
.img2img-btn {
  padding: 9px 20px; border-radius: 10px;
  background: var(--accent-grad); color: #fff;
  font-size: 13.5px; font-weight: 600;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 3px 12px rgba(124,108,255,0.3);
  flex-shrink: 0;
}
.img2img-btn:hover { transform: scale(1.03); box-shadow: 0 5px 18px rgba(124,108,255,0.45); }

/* meta row */
.metarow {
  max-width: 860px; margin: 0 auto; padding: 14px 24px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 13px; color: var(--text-3);
}
.meta-right { display: flex; gap: 8px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 11.5px; font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2);
}
.badge.warn { border-color: rgba(255,180,84,0.35); color: var(--warn); background: rgba(255,180,84,0.08); }
.badge.info { border-color: rgba(76,201,240,0.3); color: var(--accent-2); background: rgba(76,201,240,0.07); }

/* result list */
.results { max-width: 860px; margin: 0 auto; padding: 8px 24px 60px; }
.result-list { display: flex; flex-direction: column; gap: 4px; }

.result-card {
  display: block; padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  animation: cardIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.result-card:hover { background: var(--surface); border-color: var(--border); }

.rc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rc-favicon {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--text-2);
  flex-shrink: 0; overflow: hidden;
}
.rc-favicon img { width: 100%; height: 100%; object-fit: cover; }
.rc-domain { font-size: 13px; color: var(--text-2); font-weight: 500; }
.rc-url { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.rc-score {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  color: var(--text-3); flex-shrink: 0;
  padding: 2px 8px; border-radius: 6px;
  background: var(--surface);
}

.rc-title {
  font-size: 17.5px; font-weight: 650; letter-spacing: -0.01em;
  margin-bottom: 6px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.result-card:hover .rc-title { color: var(--accent-2); }

.rc-snippet {
  font-size: 14px; color: var(--text-2); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.rc-snippet mark { background: rgba(124,108,255,0.3); color: var(--text); border-radius: 3px; padding: 0 2px; }

.rc-actions { display: flex; gap: 6px; margin-top: 10px; opacity: 0; transition: opacity 0.15s; }
.result-card:hover .rc-actions { opacity: 1; }
.rc-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 8px;
  font-size: 12.5px; font-weight: 500; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--border);
  transition: all 0.15s;
}
.rc-action svg { width: 13px; height: 13px; }
.rc-action:hover { color: var(--text); border-color: var(--border-2); background: var(--surface-3); }

/* skeletons */
.skeleton-grid { display: flex; flex-direction: column; gap: 4px; }
.skel {
  padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid transparent;
}
.skel-line { height: 12px; border-radius: 6px; background: var(--surface-2); margin-bottom: 10px; position: relative; overflow: hidden; }
.skel-line:last-child { margin-bottom: 0; }
.skel-line::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  animation: shimmer 1.4s infinite;
}
.skel-line.w40 { width: 40%; } .skel-line.w90 { width: 90%; }
.skel-line.w70 { width: 70%; } .skel-line.w55 { width: 55%; }
.skel-line.h18 { height: 18px; width: 60%; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* empty state */
.empty-state { text-align: center; padding: 90px 20px; }
.empty-icon {
  width: 72px; height: 72px; margin: 0 auto 22px;
  border-radius: 22px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
}
.empty-icon svg { width: 30px; height: 30px; }
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { font-size: 14.5px; color: var(--text-2); }

/* load more */
.loadmore-wrap { display: flex; justify-content: center; padding: 30px 0 10px; }
.loadmore-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 32px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border-2);
  font-size: 14px; font-weight: 600; color: var(--text);
  transition: all 0.2s;
}
.loadmore-btn svg { width: 16px; height: 16px; transition: transform 0.2s; }
.loadmore-btn:hover { background: var(--surface-2); border-color: rgba(124,108,255,0.4); }
.loadmore-btn:hover svg { transform: translateY(2px); }
.loadmore-btn:disabled { opacity: 0.5; cursor: default; }

/* ============ Images view ============ */
.images-view { max-width: 1100px; margin: 0 auto; padding: 8px 24px 60px; }
.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.img-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  cursor: pointer;
  animation: cardIn 0.4s ease both;
  display: flex; flex-direction: column;
}
.img-card:hover {
  transform: translateY(-4px); border-color: var(--border-2);
  box-shadow: var(--shadow);
}
.img-thumb {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  background: var(--surface-2);
}
.img-meta { padding: 12px 14px; }
.img-alt { font-size: 13.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.img-src { font-size: 12px; color: var(--text-3); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.img-score { font-family: var(--mono); font-size: 11px; color: var(--accent-2); margin-top: 6px; }

/* ============ Reader modal ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 5, 9, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 60px 20px;
  overflow-y: auto;
  animation: fadeIn 0.2s ease both;
}
.modal {
  width: 100%; max-width: 760px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: modalIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.modal-url { font-size: 13px; color: var(--text-2); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-close {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: all 0.15s; flex-shrink: 0;
}
.modal-close svg { width: 17px; height: 17px; }
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-body {
  padding: 28px 32px 40px;
  font-size: 15px; line-height: 1.75; color: var(--text);
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}
.modal-body h1, .modal-body h2, .modal-body h3 { margin: 24px 0 12px; line-height: 1.3; letter-spacing: -0.01em; }
.modal-body h1 { font-size: 26px; }
.modal-body h2 { font-size: 21px; }
.modal-body h3 { font-size: 17px; }
.modal-body p { margin-bottom: 14px; color: var(--text-2); }
.modal-body ul, .modal-body ol { margin: 0 0 14px 22px; color: var(--text-2); }
.modal-body li { margin-bottom: 6px; }
.modal-body code {
  font-family: var(--mono); font-size: 13px;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 6px;
}
.modal-body pre {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px; overflow-x: auto;
  margin-bottom: 14px;
}
.modal-body pre code { background: none; border: none; padding: 0; }
.modal-body a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.modal-body img { max-width: 100%; border-radius: 10px; margin: 10px 0; }

.reader-loading { padding: 60px; text-align: center; color: var(--text-2); font-size: 14px; }
.reader-loading .spinner {
  width: 32px; height: 32px; margin: 0 auto 16px;
  border: 3px solid var(--surface-3); border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Toast ============ */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 200;
  padding: 12px 24px; border-radius: 12px;
  background: rgba(20, 22, 32, 0.95);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(16px);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
  max-width: 90vw;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(14px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.toast.hide { animation: toastOut 0.25s ease both; }
@keyframes toastOut {
  to { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* ============ Responsive ============ */
@media (max-width: 720px) {
  .hero-title { font-size: 40px; }
  .topbar-inner { padding: 0 16px; gap: 12px; }
  .tabs .tab { padding: 7px 12px; font-size: 13px; }
  .tabs .tab svg { display: none; }
  .status-text { display: none; }
  .metarow { flex-direction: column; align-items: flex-start; gap: 8px; }
  .modal-body { padding: 20px; }
  .img-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .fsep { display: none; }
  .domain-filter { width: 100%; }
  .img2img-inner { flex-wrap: wrap; }
  .img2img-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
