/* Eight Icons app — Vercel-faithful chassis, app-layout edition. */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  --bg:           #000;
  --bg-2:         #0a0a0a;
  --panel:        #0a0a0a;
  --panel-hover:  #111;
  --panel-2:      #131316;
  --line:         hsla(0, 0%, 100%, 0.10);
  --line-strong:  hsla(0, 0%, 100%, 0.18);
  --line-dim:     hsla(0, 0%, 100%, 0.06);
  --text:         #ededed;
  --text-2:       #a1a1a1;
  --muted:        #8c8c8c;
  --muted-2:      #666;
  --ink:          #fff;
  --on-ink:       #000;
  --accent:       #ffffff;
  --accent-magenta: #ff0080;
  --accent-cyan:    #50e3c2;
  --accent-blue:    #0070f3;

  --sans:  "Geist", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  --mono:  "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-sm: 5px;
  --radius:    8px;
  --radius-lg: 12px;

  --topbar-h: 56px;
  --rail-w:   72px;
  --side-w:   272px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* light mode */
html[data-mode="light"] {
  --bg:           #ffffff;
  --bg-2:         #fafafa;
  --panel:        #ffffff;
  --panel-hover:  #f6f6f7;
  --panel-2:      #f4f4f5;
  --line:         hsla(0, 0%, 0%, 0.10);
  --line-strong:  hsla(0, 0%, 0%, 0.18);
  --line-dim:     hsla(0, 0%, 0%, 0.06);
  --text:         #18181b;
  --text-2:       #3f3f46;
  --muted:        #71717a;
  --muted-2:      #a1a1a1;
  --ink:          #000;
  --on-ink:       #fff;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { color-scheme: dark; }
body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
  overflow: hidden;     /* main is the scroll container */
  height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
input { font: inherit; color: inherit; letter-spacing: inherit; outline: 0; }
::selection { background: var(--ink); color: var(--on-ink); }

/* ============================================================
   TOP NAV
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 20px;
}
.topbar-l { display: flex; align-items: center; gap: 14px; }
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand .mark-svg { width: 18px; height: 18px; }
.brand .domain { color: var(--muted); font-weight: 400; }
.version-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-2);
}
.version-pill::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

.nav-links {
  display: flex; gap: 2px; align-items: center;
  justify-self: center;
}
.nav-links a, .nav-links button {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px;
  font-size: 13px; font-weight: 400;
  color: var(--text-2);
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
.nav-links a:hover, .nav-links button:hover,
.nav-links button.is-open {
  color: var(--ink);
  background: var(--panel-hover);
}
.nav-pill {
  font-family: var(--mono); font-size: 9.5px;
  background: var(--accent-magenta);
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-left: 2px;
}
.nav-links svg { opacity: 0.55; }

.topbar-r {
  display: flex; align-items: center; gap: 6px;
}
.products-btn, .locale-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px;
  font-size: 13px; font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: background 0.12s;
}
.products-btn:hover, .locale-btn:hover { background: var(--panel-hover); }
.products-btn svg { opacity: 0.7; }
.locale-flag {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--text-2);
  letter-spacing: 0.04em;
}
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-magenta), var(--accent-blue));
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-left: 4px;
}

/* ============================================================
   APP BODY (rail + sidebar + main)
   ============================================================ */
.app-body {
  display: grid;
  grid-template-columns: var(--rail-w) var(--side-w) 1fr;
  height: calc(100vh - var(--topbar-h));
}

/* mode rail */
.rail {
  background: var(--bg);
  border-right: 1px solid var(--line);
  padding: 14px 8px;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 4px;
}
.rail-btn {
  width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px;
  border-radius: 8px;
  color: var(--muted);
  transition: all 0.12s;
}
.rail-btn:hover { background: var(--panel-hover); color: var(--text); }
.rail-btn.is-on { color: var(--ink); background: var(--panel-2); }
.rail-btn.is-on .rail-ico { color: var(--accent-cyan); }
.rail-ico {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
}
.rail-ico svg { width: 100%; height: 100%; }
.rail-lbl {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.rail-bottom { margin-top: auto; }

/* filter sidebar */
.fsidebar {
  background: var(--bg);
  border-right: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.fsidebar-scroll {
  height: 100%;
  overflow-y: auto;
  padding: 20px 18px 32px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.fsidebar-scroll::-webkit-scrollbar { width: 8px; }
.fsidebar-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.fsidebar-scroll::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }

.fsection {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.fsection:last-child { border-bottom: 0; }
.fsection-h {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.fsection-h--row {
  display: flex; justify-content: space-between; align-items: center;
}
.link-pill {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--muted);
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.link-pill:hover { color: var(--ink); border-color: var(--line-strong); }
.fsection-body {
  display: flex; flex-wrap: wrap; gap: 6px;
}

/* Style header tile */
.style-section { padding-top: 4px; }
.style-all {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.12s;
}
.style-all:hover { border-color: var(--line-strong); }
.style-all-emoji {
  display: inline-flex; position: relative;
  width: 36px; height: 32px;
}
.emoji-tile {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  position: absolute;
  left: 0; top: 5px;
}
.emoji-tile svg { width: 13px; height: 13px; }
.emoji-tile.alt {
  background: var(--panel);
  border-color: var(--line);
  left: 14px; top: 0;
  z-index: 1;
}
.style-all-label {
  flex: 1; text-align: left;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.style-all > svg { opacity: 0.5; }

/* filter chips */
.fchip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 8px;
  font-size: 12.5px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.12s;
}
.fchip:hover { border-color: var(--line-strong); }
.fchip.is-on {
  background: var(--panel-2);
  border-color: var(--ink);
  color: var(--ink);
}
.fchip-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
}
.fchip-ico svg { width: 100%; height: 100%; display: block; }
.tech-svg { width: 16px; height: 16px; display: block; }

.circle-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.circle-dot.outline {
  background: transparent;
  border: 1.5px solid currentColor;
}
.circle-dot.ring {
  background: transparent;
  border: 2px dashed currentColor;
}
.circle-dot.multi {
  background: conic-gradient(from 0deg, #ef4444 0deg, #f59e0b 90deg, #22c55e 180deg, #3b82f6 270deg, #ef4444 360deg);
}
.circle-dot.duo {
  background: linear-gradient(to right, currentColor 50%, transparent 50%);
  border: 1.5px solid currentColor;
}
.circle-dot.mono { background: currentColor; }
.circle-dot.grad {
  background: linear-gradient(135deg, var(--accent-magenta), var(--accent-blue));
}

.corner-ico {
  width: 14px; height: 14px;
  border: 2px solid currentColor;
}
.corner-ico.round { border-radius: 50% 0 0 0; border-right: 0; border-bottom: 0; }
.corner-ico.sharp { border-radius: 0; border-right: 0; border-bottom: 0; }

/* size tiles */
.size-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.size-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px 9px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 11.5px;
  color: var(--text-2);
  transition: all 0.12s;
}
.size-tile:hover { border-color: var(--line-strong); color: var(--text); }
.size-tile.is-on { border-color: var(--ink); background: var(--panel-2); color: var(--ink); }
.size-ico {
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
}
.size-ico svg { width: 100%; height: 100%; }
.size-small  { width: 14px; height: 14px; }
.size-medium { width: 18px; height: 18px; }
.size-large  { width: 24px; height: 24px; }

/* categories list */
.cat-list {
  flex-direction: column; gap: 1px;
  display: flex;
  width: 100%;
}
.cat-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  transition: background 0.12s;
}
.cat-link:hover { background: var(--panel-hover); }
.cat-link .dim {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
}

/* ============================================================
   MAIN (toolbar + grid + foot)
   ============================================================ */
.app-main {
  overflow-y: auto;
  background: var(--bg);
  position: relative;
}
.app-main::-webkit-scrollbar { width: 10px; }
.app-main::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; }
.app-main::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }

/* toolbar */
.toolbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}
.toolbar-l {
  display: flex; align-items: center; gap: 8px;
  min-width: 0;
}
.toolbar-r {
  display: flex; align-items: center; gap: 8px;
}

/* type select */
.type-select {
  position: relative;
  flex-shrink: 0;
}
.type-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 12px 9px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  min-width: 130px;
  transition: border-color 0.12s;
}
.type-trigger:hover { border-color: var(--line-strong); }
.type-trigger > span:nth-child(2) { flex: 1; text-align: left; }
.type-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  color: var(--muted);
}
.type-menu {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 20;
}
.type-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text);
  border-radius: 6px;
  text-align: left;
}
.type-item:hover { background: var(--panel-hover); }
.type-item.is-on { color: var(--ink); }
.type-item .check { color: var(--accent-cyan); }

/* search input */
.search-input {
  position: relative;
  flex: 1;
  min-width: 0;
}
.search-input::before {
  content: "";
  width: 18px; height: 18px;
  position: absolute;
  left: 14px; top: 50%; transform: translateY(-50%);
  background: var(--text);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='3'/><circle cx='9' cy='9' r='2'/><path d='M21 16l-5-5L5 21'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='3'/><circle cx='9' cy='9' r='2'/><path d='M21 16l-5-5L5 21'/></svg>") no-repeat center / contain;
  pointer-events: none;
}
.search-input input {
  width: 100%;
  padding: 10px 36px 10px 40px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--text);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.search-input input::placeholder { color: var(--muted-2); }
.search-input input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 14%, transparent);
}
.search-clear {
  position: absolute;
  right: 10px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.search-clear:hover { color: var(--ink); }

/* AI search toggle */
.ai-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--text);
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.toggle-swatch {
  position: relative;
  display: inline-block;
  width: 28px; height: 16px;
  background: var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s;
}
.toggle-swatch .toggle-knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s var(--ease-out);
}
html[data-mode="light"] .toggle-swatch { background: var(--line-strong); }
html[data-mode="light"] .toggle-swatch .toggle-knob { background: #fff; }
.toggle-swatch.is-on { background: var(--accent-cyan); }
.toggle-swatch.is-on .toggle-knob { transform: translateX(12px); background: var(--bg); }
.ai-config {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  color: var(--muted);
  margin-left: 2px;
}
.ai-config:hover { color: var(--ink); }
.ai-config svg { width: 100%; height: 100%; }

.recolor-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px 7px 8px;
  font-size: 13px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.12s;
}
.recolor-btn:hover { border-color: var(--line-strong); }
.recolor-orb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ef4444, #f59e0b, #22c55e, #3b82f6, #a855f7, #ef4444);
}

/* Theme switcher (sun / moon) in the toolbar — the canvas-color toggle. */
.theme-btn {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-2);
  transition: all 0.12s;
  flex-shrink: 0;
}
.theme-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.theme-btn svg { width: 16px; height: 16px; display: block; }

/* view toggle */
.view-toggle {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.view-toggle button {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: all 0.12s;
}
.view-toggle button + button { border-left: 1px solid var(--line); }
.view-toggle button:hover { color: var(--text); background: var(--panel-hover); }
.view-toggle button.is-on { color: var(--ink); background: var(--panel-2); }
.view-toggle svg { width: 14px; height: 14px; }

/* results header */
.results-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px 12px;
}
.results-h-l { display: flex; align-items: baseline; gap: 12px; }
.results-count {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.results-dim {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted);
}
.results-dim b { color: var(--text); font-weight: 500; }
.sort-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  font-family: var(--mono); font-size: 12px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.sort-btn:hover { border-color: var(--line-strong); }
.sort-btn b { font-weight: 500; }

/* ============================================================
   ICON GRID
   ============================================================ */
.igrid {
  display: grid;
  gap: 0;
  padding: 4px 16px 24px;
}
.igrid.d-comfortable { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.igrid.d-dense       { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }

/* compact view: drop labels, tighten cells */
.igrid.v-compact .icell-lbl { display: none; }
.igrid.v-compact .icell { padding: 12px 6px; }
.igrid.v-compact .icell-art svg { width: 56%; max-width: 42px; }

.icell {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 22px 8px 18px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.12s var(--ease-out);
  aspect-ratio: 1;
  cursor: pointer;
}
.igrid.d-dense .icell { padding: 14px 6px 12px; }
.icell-art {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  color: var(--text);
}
.icell-art svg {
  width: 60%;
  max-width: 70px;
  height: auto;
  display: block;
  color: var(--text);
}
.igrid.d-dense .icell-art svg { width: 60%; max-width: 50px; }
.icell-lbl {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.icell:hover {
  background: var(--panel);
  border-color: var(--line);
}
.icell.is-selected {
  background: var(--panel-2);
  border-color: var(--line-strong);
}
html[data-mode="light"] .icell.is-selected {
  background: var(--panel-2);     /* #f4f4f5 — quiet gray */
  border-color: var(--line-strong);
}

/* hover actions */
.icell-actions {
  position: absolute;
  top: 6px; right: 6px;
  display: flex; gap: 3px;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.14s, transform 0.14s;
}
.icell:hover .icell-actions { opacity: 1; transform: translateY(0); }
.icell-actions button {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
}
.icell-actions button:hover { color: var(--ink); border-color: var(--line-strong); }
.icell-actions svg { width: 11px; height: 11px; }

/* tile background variants */
.icell.tile-dark-rounded .icell-art {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  aspect-ratio: 1;
  width: 70%;
  flex: 0 1 auto;
  padding: 14%;
}
html[data-mode="light"] .icell.tile-dark-rounded .icell-art {
  background: #18181b;
  color: #fff;
  border-color: transparent;
}
.icell.tile-dark-rounded .icell-art svg { width: 100%; max-width: none; }

.icell.tile-ink-rounded-md .icell-art {
  background: var(--ink);
  border-radius: 11px;
  width: 56%;
  aspect-ratio: 1;
  flex: 0 1 auto;
  padding: 14%;
}
.icell.tile-ink-rounded-md .icell-art svg { color: var(--on-ink); width: 100%; max-width: none; }
html[data-mode="light"] .icell.tile-ink-rounded-md .icell-art { background: #000; }
html[data-mode="light"] .icell.tile-ink-rounded-md .icell-art svg { color: #fff; }

.icell.tile-framed .icell-art {
  border: 1.5px solid var(--text);
  border-radius: 0;
  width: 60%;
  aspect-ratio: 1;
  flex: 0 1 auto;
  padding: 14%;
}
.icell.tile-framed .icell-art svg { width: 100%; max-width: none; }

/* grid foot */
.grid-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 24px 48px;
  border-top: 1px solid var(--line);
  margin: 0 8px;
  font-family: var(--mono); font-size: 12px;
  color: var(--muted);
}
.load-more {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  transition: all 0.12s;
}
.load-more:hover { border-color: var(--ink); background: var(--panel-2); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  :root { --side-w: 240px; }
  .nav-links a, .nav-links button { padding: 6px 8px; font-size: 12.5px; }
  .nav-links a[href="#"]:nth-of-type(5),   /* Collections */
  .nav-links a[href="#"]:nth-of-type(6) {  /* Forum */
    /* keep visible until tighter */
  }
}
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .recolor-btn span:nth-child(2) { display: none; }
  .ai-toggle span:nth-child(2) { display: none; }
}
@media (max-width: 880px) {
  :root { --rail-w: 60px; --side-w: 220px; }
  .rail-lbl { display: none; }
  .rail-btn { padding: 12px 6px; }
}
@media (max-width: 720px) {
  .app-body { grid-template-columns: var(--rail-w) 1fr; }
  .fsidebar { display: none; }
  .version-pill { display: none; }
  .topbar-r .products-btn span:nth-child(2), .topbar-r .locale-btn span { display: none; }
  .toolbar { padding: 12px 14px; }
  .results-head { padding-left: 14px; padding-right: 14px; }
  .igrid { padding-left: 10px; padding-right: 10px; }
}
