:root {
  --bg: #080d14;
  --bg-soft: #0b111b;
  --panel: #101722;
  --panel-soft: #151d2a;
  --panel-hover: #1a2332;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #e6edf7;
  --text-soft: #c7d0df;
  --muted: #8b98aa;
  --muted-2: #657286;

  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --accent-2: #8b5cf6;

  --success: #34d399;
  --warning: #fbbf24;
  --danger: #fb7185;
  --info: #60a5fa;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-card-hover: 0 18px 45px rgba(0, 0, 0, 0.38);

  /* Legacy aliases for JS/class hooks */
  --bg-card: var(--panel);
  --bg-elevated: var(--panel-soft);
  --text-muted: var(--muted);
  --text-dim: var(--muted-2);
  --teal: var(--accent);
  --teal-dim: rgba(45, 212, 191, 0.12);
  --purple: #a78bfa;
  --purple-dim: rgba(139, 92, 246, 0.15);
  --gold: #facc15;
  --amber: #fbbf24;
  --amber-bright: #fcd34d;
  --green: var(--success);
  --red: var(--danger);
  --radius: var(--radius-md);
}

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

body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.ref-number,
.model-number,
.row-number,
.cell-ref,
.nav-ref-num {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

/* ── Top notice + header ────────────────────────────────── */

.site-top {
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-soft);
  text-align: center;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.04) 100%);
  border-bottom: 1px solid rgba(251, 191, 36, 0.18);
}

.site-notice-label {
  flex-shrink: 0;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--warning);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.22);
}

.header {
  position: static;
  background: linear-gradient(180deg, rgba(16, 23, 34, 0.96) 0%, rgba(11, 17, 27, 0.92) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 1680px;
  margin: 0 auto;
}

.header-brand { min-width: 0; }

.header h1 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-brand {
  color: var(--text);
}

.site-tld {
  color: var(--accent);
}

.subtitle {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.header-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.stat-pill strong {
  color: var(--text);
  font-weight: 800;
  font-size: 0.78rem;
}

.stat-pill.stat-in strong { color: var(--success); }
.stat-pill.stat-unknown strong { color: var(--warning); }
.stat-pill.stat-notify strong { color: var(--accent-2); }

/* Status guide popover */
.status-guide-wrap {
  position: relative;
}

.status-guide-btn {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.status-guide-btn:hover,
.status-guide-wrap.is-open .status-guide-btn {
  background: var(--panel-hover);
  border-color: var(--border-strong);
  color: var(--text);
}

.status-guide-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 20rem;
  max-width: calc(100vw - 2rem);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card-hover);
  z-index: 60;
  text-align: left;
}

.status-guide-wrap.is-open .status-guide-panel {
  display: block;
}

.status-guide-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.5rem;
}

.status-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
}

.status-guide-item strong {
  color: var(--text-soft);
  font-weight: 650;
}

.status-guide-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.status-guide-dot.in-stock { background: var(--success); }
.status-guide-dot.out-of-stock { background: var(--danger); }
.status-guide-dot.stock-mismatch { background: var(--warning); }
.status-guide-dot.stock-unknown { background: var(--gold); }

.status-guide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.15rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.status-guide-icon::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 0.2em solid transparent;
  border-right: 0.2em solid transparent;
  border-bottom: 0.35em solid currentColor;
}

.status-guide-icon.stock-discrepancy-icon {
  color: var(--amber-bright);
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.status-guide-icon.catalog-sheet-icon {
  color: var(--info);
  background: rgba(96, 165, 250, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.4);
}

/* Legacy stock-legend (hidden, kept for a11y fallback) */
.stock-legend { display: none; }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; }
  .header-right { width: 100%; justify-content: space-between; }
  .header-stats { justify-content: flex-start; }
}

/* ── Layout ─────────────────────────────────────────────── */

.layout {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 0;
  min-height: calc(100vh - 72px);
}

@media (max-width: 1200px) {
  .layout { grid-template-columns: 220px 1fr; }
  .nav-sidebar { display: none; }
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: none;
  }
}

.sidebar,
.nav-sidebar {
  padding: 1rem 0.85rem;
  overflow-y: auto;
  max-height: calc(100vh - 72px);
  background: var(--bg-soft);
}

.sidebar {
  border-right: 1px solid var(--border);
}

.nav-sidebar {
  border-left: 1px solid var(--border);
}

.main {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  max-height: calc(100vh - 72px);
}

/* ── Panels ─────────────────────────────────────────────── */

.panel h2 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
}

.badge {
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

/* ── Notify list ────────────────────────────────────────── */

.watchlist { display: flex; flex-direction: column; gap: 0.45rem; }

.watch-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.75rem;
  transition: border-color 0.15s, background 0.15s;
}

.watch-item:hover {
  border-color: var(--border-strong);
  background: var(--panel-hover);
}

.watch-item .ref {
  font-weight: 800;
  color: var(--gold);
  font-size: 0.85rem;
}

.watch-item .label {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.watch-item .stock {
  font-size: 0.75rem;
  margin-top: 0.3rem;
}

.watch-item .stock.in { color: var(--success); }
.watch-item .stock.out { color: var(--muted-2); }

.watch-item .remove {
  float: right;
  background: none;
  border: none;
  color: var(--muted-2);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.1rem;
  border-radius: 4px;
  transition: color 0.15s;
}

.watch-item .remove:hover { color: var(--danger); }

.empty-state {
  color: var(--muted);
  text-align: center;
  padding: 2rem 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.82rem;
  line-height: 1.5;
}

.empty-state-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.empty-state-title {
  color: var(--text-soft);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

/* ── Search panel ───────────────────────────────────────── */

.ref-search-panel {
  background: linear-gradient(180deg, rgba(21, 29, 42, 0.95), rgba(16, 23, 34, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.15rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
}

.ref-search-panel h2 {
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
}

.ref-search-row {
  display: flex;
  gap: 0.5rem;
}

.ref-input { flex: 1; font-size: 0.9rem; }

.hint {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.65rem;
}

.hint code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85em;
}

.search-results {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.search-header {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.divider {
  text-align: center;
  color: var(--muted-2);
  font-size: 0.75rem;
  margin: 1rem 0;
  position: relative;
}

.divider span {
  background: var(--bg);
  padding: 0 0.85rem;
  position: relative;
  z-index: 1;
}

.divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--border);
}

/* ── Store tabs ─────────────────────────────────────────── */

.store-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.tab {
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: #141b28;
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  transition: all 0.15s;
}

.tab:hover {
  border-color: var(--border-strong);
  color: var(--text-soft);
  background: var(--panel-hover);
}

.tab.active.all {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(139, 92, 246, 0.18));
  color: #fff;
  border-color: rgba(139, 92, 246, 0.45);
}

.tab.active.tow {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.22), rgba(45, 212, 191, 0.08));
  color: var(--accent);
  border-color: rgba(45, 212, 191, 0.45);
}

.tab.active.andiot {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0.08));
  color: var(--purple);
  border-color: rgba(139, 92, 246, 0.45);
}

/* ── Toolbar ────────────────────────────────────────────── */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.search {
  flex: 1;
  min-width: 180px;
  padding: 0.55rem 0.85rem;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.5);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.filter {
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.filter input[type="checkbox"] {
  accent-color: var(--accent);
}

.stats {
  font-size: 0.75rem;
  color: var(--muted-2);
  margin-left: auto;
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-soft);
}

.view-toggle-btn {
  padding: 0.35rem 0.7rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.view-toggle-btn + .view-toggle-btn {
  border-left: 1px solid var(--border);
}

.view-toggle-btn:hover {
  color: var(--text-soft);
}

.view-toggle-btn.active {
  background: rgba(45, 212, 191, 0.15);
  color: var(--accent);
}

.nav-view-toggle {
  width: 100%;
  margin-bottom: 0.65rem;
}

.nav-view-toggle .view-toggle-btn {
  flex: 1;
  padding: 0.4rem 0.5rem;
}

.group-mode-hint {
  font-weight: 400;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  margin-left: 0.35rem;
}

/* ── Factory sections / groups ──────────────────────────── */

.factory-section {
  margin-bottom: 1.25rem;
  background: rgba(16, 23, 34, 0.68);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.factory-section.verify-factory,
.factory-section.accessories-factory,
.factory-section.unknown-all-section {
  border-color: var(--border);
  background: rgba(16, 23, 34, 0.68);
  padding: 0;
}

.factory-section.verify-factory .factory-title {
  color: #ffb347;
}

.factory-section.accessories-factory .factory-title {
  color: #9ec5ff;
}

.factory-section.unknown-all-section .factory-title {
  color: var(--gold);
}

.factory-section.unknown-all-section .factory-title .hint-inline {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted-2);
  margin-left: 0.5rem;
}

.factory-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border);
  font-weight: 850;
  font-size: 0.88rem;
  color: var(--text);
  scroll-margin-top: 1rem;
  user-select: none;
}

.factory-toggle {
  color: var(--muted-2);
  font-size: 0.65rem;
  width: 0.85rem;
  flex-shrink: 0;
}

.factory-title.is-collapsed {
  border-bottom: none;
}

.factory-section.is-collapsed .row-group {
  display: none;
}

.row-group {
  padding: 0.75rem 0.9rem 0.9rem;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 1rem;
}

.row-group:last-child { border-bottom: none; }

.row-group-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.factory-title .count,
.row-group-title .count {
  font-weight: 500;
  color: var(--muted-2);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  margin-left: 0.25rem;
}

.section { margin-bottom: 1.25rem; }

.section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

/* ── Watch cards / grid ─────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 16px;
}

.cell {
  background: linear-gradient(180deg, #171d27 0%, #111722 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
  position: relative;
  scroll-margin-top: 1rem;
}

/* Subtle accent stripe instead of loud borders */
.cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 2;
  pointer-events: none;
}

.cell.in-stock::before { background: var(--success); opacity: 0.7; }
.cell.out-of-stock::before { background: var(--danger); opacity: 0.55; }
.cell.stock-mismatch::before { background: var(--warning); opacity: 0.7; }
.cell.stock-unknown::before { background: var(--info); opacity: 0.55; }

.cell:hover:not(.watched) {
  transform: translateY(-2px);
  border-color: rgba(88, 166, 255, 0.35);
  box-shadow: var(--shadow-card-hover);
}

/* Watched: subtle gold ring instead of hazard stripes */
.cell.watched {
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.35), var(--shadow-card);
}

.cell.watched::after {
  content: "★";
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  font-size: 0.65rem;
  color: var(--gold);
  background: rgba(8, 13, 20, 0.78);
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250, 204, 21, 0.3);
  backdrop-filter: blur(8px);
}

.cell.watched:hover {
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.5), var(--shadow-card-hover);
}

.cell-row-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(8, 13, 20, 0.78);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-family: "JetBrains Mono", monospace;
}

.cell-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center center;
  background: #f4f6f8;
  display: block;
}

.cell-img.clickable { cursor: zoom-in; }
.cell-img.clickable:hover { opacity: 0.92; }

.cell-img.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--muted-2);
  background: #f4f6f8;
}

.cell-img.placeholder small {
  font-size: 0.62rem;
  color: var(--muted-2);
  margin-top: 0.25rem;
}

.cell-body {
  padding: 0.7rem 0.75rem 0.8rem;
}

.cell-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.cell-brand {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple);
}

.cell-ref {
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--gold);
  min-height: 1.1em;
  margin-top: 0.15rem;
}

.cell-ref.unset {
  color: var(--muted-2);
  font-weight: 400;
  font-style: italic;
  font-family: inherit;
}

.cell-ref.catalog-title {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text);
  font-family: inherit;
  font-weight: 650;
}

.cell-label {
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-top: 0.2rem;
  line-height: 1.35;
  font-weight: 650;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cell-section,
.cell-meta {
  font-size: 0.68rem;
  color: var(--muted);
  margin: 0.15rem 0;
  line-height: 1.3;
}

.cell-qty {
  font-size: 0.72rem;
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.cell.in-stock .qty,
.cell.in-stock .cell-qty { color: var(--success); }
.cell.stock-unknown .cell-qty,
.nav-ref.stock-unknown .nav-ref-qty { color: var(--gold); }
.cell.stock-mismatch .cell-qty,
.nav-ref.stock-mismatch .nav-ref-qty { color: var(--amber-bright); }
.cell.out-of-stock .qty,
.cell.out-of-stock .cell-qty { color: var(--muted-2); }

/* Status pills */
.status {
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-in {
  background: rgba(52, 211, 153, 0.14);
  color: var(--success);
}

.status-out {
  background: rgba(251, 113, 133, 0.14);
  color: var(--danger);
}

.status-mismatch {
  background: rgba(251, 191, 36, 0.14);
  color: var(--warning);
}

.status-site-only {
  background: rgba(96, 165, 250, 0.14);
  color: var(--info);
}

.status-unknown,
.status-manual {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

.cell-actions {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.45rem;
  flex-wrap: wrap;
}

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  border: none;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
}

.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.98); }

.btn.primary {
  background: linear-gradient(135deg, #14b8a6, #2dd4bf);
  color: #04111a;
  font-weight: 800;
}

.btn.secondary {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  border: 1px solid var(--border);
}

.btn.small { padding: 0.3rem 0.5rem; font-size: 0.68rem; }
.btn.watched {
  background: rgba(250, 204, 21, 0.15);
  color: var(--gold);
  border: 1px solid rgba(250, 204, 21, 0.35);
}
.btn.full { width: 100%; }

.buy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: filter 0.15s ease, box-shadow 0.2s ease;
}

.cell-actions .buy-link { flex: 1; min-width: 5.5rem; }
.search-card .buy-link { width: 100%; margin-bottom: 0.3rem; }
.search-card .buy-link + .btn.full { margin-top: 0; }
.buy-link:hover { filter: brightness(1.08); }

a.btn.buy-link {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

a.btn.buy-link.tow {
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent);
  border-color: rgba(45, 212, 191, 0.35);
}

/* ── Factory filters / chips ────────────────────────────── */

.factory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  align-items: center;
}

.factory-filter-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  margin-right: 0.1rem;
}

.factory-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.factory-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-soft);
  background: var(--panel-hover);
}

.factory-chip.active {
  background: rgba(45, 212, 191, 0.15);
  border-color: rgba(45, 212, 191, 0.45);
  color: var(--accent);
}

.factory-chip .count {
  font-weight: 600;
  font-size: 0.65rem;
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  min-width: 1.1rem;
  text-align: center;
}

.factory-chip.active .count {
  background: rgba(45, 212, 191, 0.18);
  opacity: 1;
}

.hint-inline {
  display: block;
  font-size: 0.72rem;
  color: var(--muted-2);
  margin-top: 0.2rem;
}

.affiliate-meta {
  margin-top: 0.35rem;
  line-height: 1.35;
}

.affiliate-warning {
  margin-top: 0.35rem;
  color: #e8a317;
  font-weight: 700;
  font-size: 0.82rem;
}

.manual-link-url-label {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--muted-2);
}

.manual-link-url {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.82rem;
  font-family: ui-monospace, monospace;
}

.manual-link-url:focus {
  outline: none;
  border-color: var(--accent);
}

.manual-link-card.save-error {
  outline: 2px solid var(--danger, #e74c3c);
  outline-offset: 2px;
}

.manual-link-card.is-focused {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Manual link cards: larger comparison thumbs, denser metadata */
.manual-link-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.65rem;
}

.manual-link-card .review-sheet-thumb-col {
  flex: 1 1 0;
  min-width: min(100%, 520px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.manual-link-card .review-card-main {
  flex: 0 0 500px;
  width: 500px;
  max-width: 500px;
  margin-left: auto;
  text-align: right;
}

.manual-link-card .review-thumb-pair {
  display: flex;
  gap: 1rem;
  width: 100%;
  align-items: flex-start;
}

.manual-link-card .review-sheet-thumb-side {
  flex: 0 1 auto;
}

.manual-link-card .review-affiliate-thumb {
  flex: 1 1 auto;
}

.manual-link-card .review-sheet-thumb-side img,
.manual-link-card .review-sheet-thumb-side .review-thumb-placeholder {
  width: clamp(200px, 24vw, 320px);
  height: clamp(200px, 24vw, 320px);
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  cursor: zoom-in;
}

.manual-link-card .review-affiliate-thumb img,
.manual-link-card .review-affiliate-thumb .review-thumb-placeholder {
  width: clamp(280px, 34vw, 460px);
  height: clamp(280px, 34vw, 460px);
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  cursor: zoom-in;
}

.manual-link-card .review-sheet-thumb:not(.review-sheet-thumb-side) img,
.manual-link-card .review-sheet-thumb:not(.review-sheet-thumb-side) .review-thumb-placeholder {
  width: clamp(240px, 32vw, 400px);
  height: clamp(240px, 32vw, 400px);
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  cursor: zoom-in;
}

.manual-link-card .review-card-title {
  justify-content: flex-end;
  gap: 0.25rem 0.5rem;
}

.manual-link-card .review-card-title strong {
  font-size: 0.98rem;
}

.manual-link-card .review-qq-category {
  margin-top: 0.3rem;
  padding: 0.35rem 0.45rem;
  text-align: right;
}

.manual-link-card .review-qq-category-title {
  margin-bottom: 0.2rem;
  font-size: 0.66rem;
}

.manual-link-card .review-qq-category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 0.7rem;
  font-size: 0.76rem;
  line-height: 1.25;
}

.manual-link-card .review-qq-category-grid > div {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  white-space: nowrap;
}

.manual-link-card .review-qq-k {
  min-width: 0;
  margin-right: 0;
  font-size: 0.68rem;
}

.manual-link-card .review-qq-k-wide {
  flex: 1 1 100%;
  white-space: normal;
}

.manual-link-card .review-qq-breadcrumb {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: right;
}

.manual-link-card .review-row-peers {
  margin-top: 0.4rem;
  padding: 0.4rem 0.5rem;
  text-align: right;
}

.manual-link-card .review-row-peers-title {
  margin-bottom: 0.3rem;
  font-size: 0.66rem;
  text-align: right;
}

.manual-link-card .review-row-peers-strip {
  justify-content: flex-end;
}

.manual-link-card .review-row-peer {
  width: 84px;
}

.manual-link-card .review-row-peer-img {
  width: 80px;
  height: 80px;
}

.manual-link-card .review-meta-row {
  margin-top: 0.25rem;
  gap: 0.25rem 0.45rem;
  font-size: 0.76rem;
  justify-content: flex-end;
}

.manual-link-card .manual-link-url-label {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  text-align: right;
}

.manual-link-card .andiot-search {
  margin-top: 0.35rem;
  text-align: right;
}

.manual-link-card .andiot-search-title,
.manual-link-card .andiot-search-status,
.manual-link-card .andiot-search-custom {
  text-align: right;
}

.manual-link-card .andiot-search-row {
  justify-content: flex-end;
}

.manual-link-card .andiot-search-results {
  text-align: left;
}

.manual-link-card .andiot-search-thumb {
  width: 112px;
  height: 112px;
}

.manual-link-card .review-actions-row {
  margin-top: 0.35rem;
  gap: 0.35rem;
  justify-content: flex-end;
}

.review-meta-pill.linked {
  color: var(--in);
}

.review-meta-pill.unlinked {
  color: #e8a317;
}

.review-meta-pill.not-on-store {
  color: var(--muted);
}

.review-meta-pill.find-later {
  color: #8a9bb5;
}

.affiliate-muted {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.review-qq-k-wide {
  grid-column: 1 / -1;
}

.affiliate-badge {
  font-weight: 700;
}

.affiliate-fresh .affiliate-badge {
  color: var(--in);
}

.affiliate-stale .affiliate-badge {
  color: #d4a017;
}

.affiliate-failed .affiliate-badge {
  color: var(--out);
}

.affiliate-none .affiliate-badge {
  color: var(--muted-2);
}

.affiliate-review .affiliate-badge {
  color: #7eb8ff;
}

.affiliate-not-on-store .affiliate-badge {
  color: var(--muted-2);
}

.review-panel {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.review-panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.review-panel-header h3 {
  margin: 0;
  font-size: 1rem;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: min(72vh, 900px);
  overflow-y: auto;
}

.link-affiliates-queue-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.andiot-search {
  margin: 0.65rem 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.andiot-search-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.andiot-search-results {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.5rem 0;
  max-height: 560px;
  overflow-y: auto;
}

.andiot-search-hit {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.75rem;
  text-align: left;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  overflow: hidden;
}

.andiot-search-hit-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0.55rem 0;
}

.andiot-search-store-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.andiot-search-store-link:hover {
  color: var(--accent, #7eb8ff);
}

.andiot-search-store-link:hover .andiot-search-pid {
  text-decoration: underline;
}

.andiot-search-use {
  flex: 0 0 5.5rem;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 0.75rem;
  border: none;
  border-left: 1px solid var(--border);
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(139, 92, 246, 0.22);
}

.andiot-search-use.btn.secondary {
  border: none;
  border-left: 1px solid var(--border);
  color: #ddd6fe;
}

.andiot-search-hit:hover .andiot-search-use {
  border-left-color: var(--accent);
  background: rgba(139, 92, 246, 0.32);
}

.andiot-search-thumb {
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  margin: 0.55rem 0 0.55rem 0.7rem;
  align-self: center;
}

.andiot-search-thumb.clickable {
  cursor: zoom-in;
}

.andiot-search-thumb.clickable:hover {
  box-shadow: 0 0 0 2px var(--accent, #7eb8ff);
}

.andiot-search-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.06);
}

.andiot-search-hit-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.andiot-search-hit:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.andiot-search-hit.is-linking {
  opacity: 0.6;
}

.andiot-search-hit.is-linking .andiot-search-use {
  cursor: wait;
}

.andiot-search-pid {
  font-size: 0.75rem;
  color: var(--in);
  font-weight: 600;
}

.andiot-search-name {
  font-size: 0.85rem;
  line-height: 1.3;
}

.andiot-search-custom {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.andiot-search-query {
  width: 100%;
  margin-top: 0.25rem;
}

.andiot-search-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.25rem;
}

.andiot-search-row .andiot-search-query {
  flex: 1;
  margin-top: 0;
}

.link-affiliates-bulk {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
}

.link-affiliates-bulk summary {
  cursor: pointer;
  font-weight: 600;
}

.link-affiliates-bulk-help {
  margin: 0.5rem 0;
}

.link-affiliates-bulk-text {
  width: 100%;
  min-height: 8rem;
  margin: 0.5rem 0;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

.review-row-bulk {
  margin: 0.5rem 0;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.review-row-bulk-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.row-pid-bulk {
  width: 100%;
  min-height: 4rem;
  margin: 0.4rem 0;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

.review-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
}

.review-sheet-thumb-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.review-thumb-pair {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.review-sheet-thumb-side img,
.review-sheet-thumb-side .review-thumb-placeholder {
  width: 120px;
  height: 120px;
}

.review-affiliate-thumb img,
.review-affiliate-thumb .review-thumb-placeholder {
  width: 200px;
  height: 200px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  cursor: zoom-in;
}

.review-row-peer-img.is-affiliate {
  object-fit: contain;
  background: #fff;
}

.review-sheet-thumb {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.review-sheet-thumb img,
.review-sheet-thumb .review-thumb-placeholder {
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
}

.review-thumb-placeholder {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-2);
  font-size: 1.4rem;
}

.review-sheet-label {
  font-size: 0.72rem;
  color: var(--muted-2);
  text-align: center;
}

.review-card-main {
  min-width: 0;
}

.review-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
}

.review-card-title strong {
  font-size: 1.02rem;
}

.review-qq-category {
  margin-top: 0.45rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(126, 184, 255, 0.22);
  border-radius: 8px;
  background: rgba(126, 184, 255, 0.06);
}

.review-qq-category-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7eb8ff;
  margin-bottom: 0.35rem;
}

.review-qq-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.25rem 0.75rem;
  font-size: 0.84rem;
}

.review-qq-k {
  display: inline-block;
  min-width: 4.5rem;
  color: var(--muted-2);
  margin-right: 0.35rem;
}

.review-qq-v {
  color: var(--text, #f2f2f5);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.andiot-quick-search {
  font-size: 0.75rem;
  padding: 0.12rem 0.5rem;
  line-height: 1.3;
  font-weight: 600;
}

.review-qq-breadcrumb {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted-2);
  line-height: 1.4;
}

.review-qq-breadcrumb a {
  color: var(--accent, #7eb8ff);
}

.review-row-peers {
  margin-top: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.review-row-peers-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.45rem;
}

.review-row-peers-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.review-row-peer {
  flex: 0 0 auto;
  width: 72px;
  text-align: center;
  opacity: 0.72;
}

.review-row-peer.is-current {
  opacity: 1;
}

.review-row-peer.is-current .review-row-peer-img {
  outline: 2px solid var(--accent, #7eb8ff);
  outline-offset: 1px;
}

.review-row-peer-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  display: block;
  margin: 0 auto 0.25rem;
  cursor: zoom-in;
}

.review-row-peer-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.review-row-peer-ref {
  font-size: 0.62rem;
  line-height: 1.2;
  color: var(--text, #e8e8ed);
  word-break: break-all;
}

.review-row-peer-pid {
  font-size: 0.58rem;
  color: var(--muted-2);
  margin-top: 0.1rem;
}

.review-row-peer-col {
  font-size: 0.58rem;
  color: var(--muted-2);
  margin-top: 0.1rem;
}

.review-movement-warn {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: #e8a87c;
}

.review-sheet-loc {
  margin-top: 0.35rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted-1, #c8c8d0);
}

.review-sheet-loc a {
  color: var(--accent, #7eb8ff);
}

.review-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted-2);
}

.review-meta-pill {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.review-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.review-candidates {
  margin-top: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.review-candidate {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.review-candidate-thumb img,
.review-candidate-thumb .review-thumb-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  cursor: zoom-in;
}

.review-candidate-body {
  min-width: 0;
}

.review-candidate-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}

.review-candidate .score {
  font-family: var(--mono, monospace);
  color: var(--muted-2);
  font-size: 0.82rem;
}

.review-candidate-title {
  font-size: 0.86rem;
  line-height: 1.4;
}

.review-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.3rem;
}

.review-breakdown span {
  font-size: 0.72rem;
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-2);
}

.review-breakdown span.positive {
  color: #7dcea0;
}

.review-breakdown span.negative {
  color: #e07a7a;
}

.review-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted-2);
}

.review-filter select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: inherit;
  border-radius: 6px;
  padding: 0.2rem 0.35rem;
}

.review-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
}

.search-grid { margin-top: 0.45rem; }
.search-card { cursor: default; }
.search-card .btn.full { margin-top: 0.4rem; }

.store-pill {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  margin-bottom: 0.3rem;
}

.store-pill.tow {
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent);
}

.store-pill.andiot {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple);
}

/* ── Stock discrepancy / catalog badges ─────────────────── */

.stock-discrepancy-warn,
.catalog-sheet-warn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  flex-shrink: 0;
  outline: none;
  isolation: isolate;
}

.stock-discrepancy-glyph,
.catalog-sheet-glyph {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  transition: box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.stock-discrepancy-glyph {
  color: var(--amber-bright);
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.45);
}

.catalog-sheet-glyph {
  color: var(--info);
  background: rgba(96, 165, 250, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.45);
}

.stock-discrepancy-glyph::before,
.catalog-sheet-glyph::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-top: -0.04em;
  border-left: 0.24em solid transparent;
  border-right: 0.24em solid transparent;
  border-bottom: 0.4em solid currentColor;
}

.stock-discrepancy-tip,
.catalog-sheet-tip {
  position: absolute;
  z-index: 2;
  left: calc(100% + 12px);
  top: 50%;
  width: max-content;
  max-width: 14rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  text-align: left;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(-6px) scale(0.97);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card-hover);
}

.stock-discrepancy-tip::before,
.catalog-sheet-tip::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 7px;
  height: 7px;
  margin-right: -3px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--panel);
  border-left: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.stock-discrepancy-tip-title {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--amber-bright);
  margin-bottom: 0.15rem;
}

.catalog-sheet-tip-title {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--info);
  margin-bottom: 0.15rem;
}

.stock-discrepancy-tip-body,
.catalog-sheet-tip-body {
  display: block;
  font-size: 0.65rem;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 400;
}

.stock-discrepancy-warn:hover .stock-discrepancy-tip,
.stock-discrepancy-warn:focus-visible .stock-discrepancy-tip,
.catalog-sheet-warn:hover .catalog-sheet-tip,
.catalog-sheet-warn:focus-visible .catalog-sheet-tip {
  opacity: 1;
  visibility: visible;
  z-index: 3;
  transform: translateY(-50%) translateX(0) scale(1);
}

.stock-discrepancy-warn.nav,
.catalog-sheet-warn.nav { margin-left: 0.1rem; }

.stock-discrepancy-warn.nav .stock-discrepancy-glyph,
.catalog-sheet-warn.nav .catalog-sheet-glyph {
  width: 0.8rem;
  height: 0.8rem;
}

.stock-discrepancy-warn.nav .stock-discrepancy-tip,
.catalog-sheet-warn.nav .catalog-sheet-tip {
  left: auto;
  right: calc(100% + 12px);
  transform: translateY(-50%) translateX(6px) scale(0.97);
}

.stock-discrepancy-warn.nav .stock-discrepancy-tip::before,
.catalog-sheet-warn.nav .catalog-sheet-tip::before {
  right: auto;
  left: 100%;
  margin-right: 0;
  margin-left: -3px;
  border-left: none;
  border-bottom: none;
  border-right: 1px solid var(--border-strong);
  border-top: 1px solid var(--border-strong);
}

.stock-discrepancy-warn.nav:hover .stock-discrepancy-tip,
.stock-discrepancy-warn.nav:focus-visible .stock-discrepancy-tip,
.catalog-sheet-warn.nav:hover .catalog-sheet-tip,
.catalog-sheet-warn.nav:focus-visible .catalog-sheet-tip {
  transform: translateY(-50%) translateX(0) scale(1);
}

.modal-stock {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* ── Modals ─────────────────────────────────────────────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 1.35rem;
  width: 90%;
  max-width: 420px;
  box-shadow: var(--shadow-card-hover);
}

.modal-card h3 {
  margin-bottom: 0.85rem;
  font-size: 1rem;
  font-weight: 800;
}

.modal-card label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.modal-card input {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
}

.modal-card input:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.5);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.modal-preview {
  margin-bottom: 0.85rem;
  padding: 0.7rem;
  background: var(--panel-soft);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  border: 1px solid var(--border);
}

.modal-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 0.85rem;
}

.modal-img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #f4f6f8;
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
}

.modal-img.clickable { cursor: zoom-in; }

.modal-img.placeholder {
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  font-size: 0.82rem;
}

.modal-meta { font-size: 0.85rem; }
.modal-meta .in { color: var(--success); font-weight: 700; }
.modal-meta .out { color: var(--muted-2); }
.modal-meta .dim { color: var(--muted-2); font-size: 0.78rem; margin-top: 0.3rem; }

.modal-status {
  font-size: 0.82rem;
  min-height: 1.2em;
  margin-top: 0.4rem;
}

.modal-status.error { color: var(--danger); }

/* ── Lightbox ───────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox.hidden { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.lightbox-frame {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 98vw;
  max-height: 92vh;
}

.lightbox.is-compare .lightbox-frame {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
}

.lightbox-single {
  display: flex;
}

.lightbox-compare {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.lightbox.is-compare .lightbox-compare {
  width: 100%;
  height: 100%;
  gap: 0;
  align-items: stretch;
}

.lightbox-compare.hidden {
  display: none;
}

.lightbox-compare-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.lightbox.is-compare .lightbox-compare-pane {
  flex: 1;
  height: 100%;
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.lightbox.is-compare .lightbox-compare-pane + .lightbox-compare-pane {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.lightbox-compare-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lightbox.is-compare .lightbox-compare-label {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.lightbox-img {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
}

.lightbox.is-compare .lightbox-compare-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 768px) {
  .lightbox.is-compare .lightbox-compare {
    flex-direction: column;
  }

  .lightbox.is-compare .lightbox-compare-pane + .lightbox-compare-pane {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Empty / error states ───────────────────────────────── */

.empty {
  color: var(--muted-2);
  font-size: 0.85rem;
  padding: 2rem 1rem;
  text-align: center;
}

.empty.loading { opacity: 0.85; }
.empty.error, .error { color: var(--danger); }

body.public-mode .admin-only {
  display: none !important;
}

body.public-mode .layout {
  grid-template-columns: 1fr 280px;
}

@media (max-width: 1200px) {
  body.public-mode .layout {
    grid-template-columns: 1fr;
  }
}

.token-warning {
  background: rgba(251, 113, 133, 0.1);
  border-bottom: 1px solid rgba(251, 113, 133, 0.3);
  color: #fda4af;
  padding: 0.65rem 1.25rem;
  font-size: 0.82rem;
}

/* ── Filter sidebar ─────────────────────────────────────── */

.filter-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-section {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-section:last-child {
  border-bottom: none;
}

.sidebar-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.sidebar-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  margin-bottom: 0.45rem;
}

.sidebar-section details {
  border: none;
}

.sidebar-section details > summary {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0;
  user-select: none;
}

.sidebar-section details > summary::-webkit-details-marker { display: none; }

.sidebar-section details > summary::before {
  content: "▶";
  font-size: 0.55rem;
  color: var(--muted-2);
  transition: transform 0.15s;
}

.sidebar-section details[open] > summary::before {
  transform: rotate(90deg);
}

.sidebar-section details .details-body {
  padding-top: 0.5rem;
}

.nav-panel h2 { margin-bottom: 0.2rem; }

.nav-panel + .nav-panel,
.details-body .nav-panel {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.nav-hint {
  color: var(--muted-2);
  font-size: 0.72rem;
  margin-bottom: 0.55rem;
}

.nav-search {
  width: 100%;
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  padding: 0.4rem 0.55rem;
  height: 36px;
}

.browse-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-height: 200px;
  overflow-y: auto;
}

.browse-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: inherit;
}

.browse-item:hover {
  background: rgba(45, 212, 191, 0.06);
  color: var(--text-soft);
}

.browse-item.active {
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.3);
  color: var(--accent);
}

.browse-item.dimmed { opacity: 0.4; }

.browse-item .browse-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browse-item .browse-count {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
}

.browse-item.active .browse-count {
  color: var(--accent);
  background: rgba(45, 212, 191, 0.12);
}

.browse-clear { margin-bottom: 0.3rem; width: 100%; }

.nav-empty {
  padding: 0.75rem 0;
  text-align: left;
  font-size: 0.78rem;
}

.category-nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.nav-factory {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--panel);
}

.nav-factory-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  border: none;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}

.nav-factory-head:hover,
.nav-group:hover,
.nav-ref:hover {
  background: rgba(45, 212, 191, 0.06);
}

.nav-factory-head.active,
.nav-group.active,
.nav-ref.active {
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent);
}

.nav-factory-head .nav-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-chevron {
  flex-shrink: 0;
  width: 0.85rem;
  text-align: center;
  color: var(--muted-2);
  transition: transform 0.15s;
  font-size: 0.6rem;
}

.nav-factory.is-open .nav-chevron { transform: rotate(90deg); }

.nav-factory-count,
.nav-group-count {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
}

.nav-groups {
  display: none;
  flex-direction: column;
  padding: 0.2rem;
  gap: 0.1rem;
}

.nav-factory.is-open .nav-groups { display: flex; }

.nav-group {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.45rem 0.35rem 0.65rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.nav-group-wrap { border-radius: 6px; }
.nav-group-wrap.is-open > .nav-group .nav-chevron { transform: rotate(90deg); }
.nav-group-wrap.is-open > .nav-items { display: flex; }

.nav-items {
  display: none;
  flex-direction: column;
  gap: 0.08rem;
  padding: 0 0.2rem 0.3rem 1.25rem;
}

.nav-ref {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0.28rem 0.4rem;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.nav-ref-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.nav-ref-num {
  font-weight: 700;
  color: var(--gold);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
}

.nav-ref-label {
  font-size: 0.62rem;
  color: var(--muted-2);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nav-ref-row {
  font-size: 0.58rem;
  color: var(--muted-2);
  letter-spacing: 0.02em;
  font-family: "JetBrains Mono", monospace;
}

.nav-ref-qty {
  flex-shrink: 0;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--muted-2);
}

.nav-ref.in-stock .nav-ref-qty { color: var(--success); }
.nav-ref.active .nav-ref-num { color: var(--accent); }

.nav-group .nav-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.nav-actions .btn {
  flex: 1;
  font-size: 0.65rem;
  padding: 0.28rem 0.35rem;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 600px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .main { padding: 1rem; }
  .toolbar { padding: 0.6rem; }
}

/* ── Dedicated affiliates page ──────────────────────────── */

body.affiliates-page {
  min-height: 100vh;
  overflow-x: hidden;
}

.affiliates-page .affiliates-back {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.affiliates-page .affiliates-back:hover {
  color: var(--accent);
}

.affiliates-page .affiliates-header .header-brand h1 {
  font-size: 1.35rem;
}

.affiliates-page .affiliates-header-controls {
  align-items: flex-end;
}

.affiliates-page .affiliates-store-pick {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.affiliates-page .affiliates-store-pick select {
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}

.affiliates-shell {
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 1.25rem 1.5rem;
  min-height: calc(100vh - 8rem);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.affiliates-page .affiliates-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.affiliates-page .affiliates-metrics {
  flex: 1 1 240px;
  font-size: 0.85rem;
}

.affiliates-page .affiliates-workspace {
  flex: 1 1 auto;
  min-height: 0;
}

.affiliates-page .affiliates-workspace .manual-link-card {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(520px, 1.35fr);
  gap: 2rem;
  align-items: start;
  min-height: calc(100vh - 13rem);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.affiliates-page .affiliates-workspace .review-sheet-thumb-col {
  min-width: 0;
  flex: none;
}

.affiliates-page .affiliates-workspace .review-thumb-pair {
  gap: 1.25rem;
}

.affiliates-page .affiliates-workspace .review-sheet-thumb-side img,
.affiliates-page .affiliates-workspace .review-sheet-thumb-side .review-thumb-placeholder,
.affiliates-page .affiliates-workspace .review-sheet-thumb:not(.review-sheet-thumb-side) img,
.affiliates-page .affiliates-workspace .review-sheet-thumb:not(.review-sheet-thumb-side) .review-thumb-placeholder {
  width: clamp(280px, 28vw, 440px);
  height: clamp(280px, 28vw, 440px);
}

.affiliates-page .affiliates-workspace .review-affiliate-thumb img,
.affiliates-page .affiliates-workspace .review-affiliate-thumb .review-thumb-placeholder {
  width: clamp(280px, 28vw, 440px);
  height: clamp(280px, 28vw, 440px);
}

.affiliates-page .affiliates-workspace .review-card-main {
  width: auto;
  max-width: none;
  margin-left: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: calc(100vh - 15rem);
}

.affiliates-page .affiliates-workspace .review-card-title,
.affiliates-page .affiliates-workspace .review-qq-category,
.affiliates-page .affiliates-workspace .review-row-peers,
.affiliates-page .affiliates-workspace .review-meta-row,
.affiliates-page .affiliates-workspace .manual-link-url-label,
.affiliates-page .affiliates-workspace .andiot-search-title,
.affiliates-page .affiliates-workspace .andiot-search-status,
.affiliates-page .affiliates-workspace .andiot-search-custom,
.affiliates-page .affiliates-workspace .review-actions-row {
  text-align: left;
  justify-content: flex-start;
}

.affiliates-page .affiliates-workspace .review-qq-category-grid {
  justify-content: flex-start;
}

.affiliates-page .affiliates-workspace .review-qq-breadcrumb {
  text-align: left;
}

.affiliates-page .affiliates-workspace .review-row-peers-strip {
  justify-content: flex-start;
}

.affiliates-page .affiliates-workspace .review-row-peer {
  width: 96px;
}

.affiliates-page .affiliates-workspace .review-row-peer-img {
  width: 92px;
  height: 92px;
}

.affiliates-page .affiliates-workspace .andiot-search {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 12rem;
  margin-top: 0.35rem;
}

.affiliates-page .affiliates-workspace .andiot-search-results {
  flex: 1 1 auto;
  min-height: 10rem;
  max-height: calc(100vh - 30rem);
  overflow-y: auto;
  margin: 0.35rem 0;
}

.affiliates-page .affiliates-workspace .andiot-search-thumb {
  width: 96px;
  height: 96px;
}

.affiliates-page .affiliates-workspace .andiot-search-row {
  justify-content: flex-start;
}

.affiliates-page .link-affiliates-bulk {
  margin: 0;
}

.affiliates-page .link-affiliates-queue-nav.hidden {
  display: none;
}
