:root {
  --bg:         #0d0f15;
  --panel:      #131620;
  --panel-2:    #191d2c;
  --border:     #1f2438;
  --text:       #d4dced;
  --muted:      #a3aec7;
  --accent:     #5b9cf6;
  --accent-2:   #8b7cf8;
  --warn:       #e9a84c;
  --good:       #3dd68c;
  --bad:        #f06464;
  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono:  ui-monospace, SFMono-Regular, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

/* ── topbar ── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  height: 50px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5;
}
.topbar .brand {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.topbar nav { display: flex; align-items: center; }
.topbar nav a, .topbar nav button.link {
  color: var(--muted); padding: 5px 10px; border-radius: 6px;
  text-decoration: none; font-size: 13px;
  background: none; border: none; cursor: pointer; font: inherit;
  transition: color 0.15s, background 0.15s;
}
.topbar nav a:hover, .topbar nav button.link:hover {
  color: var(--text); background: var(--panel-2); text-decoration: none;
}

main { max-width: 1500px; margin: 0 auto; padding: 20px 24px; }
h1 { font-size: 22px; margin: 4px 0 14px; }
code {
  background: var(--panel-2); padding: 1px 6px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 12px;
}
a { color: var(--accent); }

.muted { color: var(--muted); }
.muted.small { font-size: 12px; }
.error { color: var(--bad); background: rgba(240,100,100,.07); padding: 8px 12px; border-radius: 8px; }
.banner {
  background: rgba(91,156,246,.08); border: 1px solid rgba(91,156,246,.22);
  padding: 9px 14px; border-radius: 8px; font-size: 13px;
}
.empty { color: var(--muted); text-align: center; padding: 64px 0; font-size: 15px; }

/* ── setup ── */
.setup { max-width: 860px; margin-left: auto; margin-right: auto; }
.setup .search-row { display: flex; align-items: center; gap: 12px; margin: 14px 0; flex-wrap: wrap; }
.setup .search-row input[type=search] {
  flex: 1; min-width: 220px; padding: 8px 12px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; font: inherit;
}
.setup .counter { color: var(--muted); }
.product-list {
  list-style: none; padding: 0; margin: 0 0 16px;
  max-height: 65vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.product-list::-webkit-scrollbar { width: 6px; }
.product-list::-webkit-scrollbar-track { background: transparent; }
.product-list::-webkit-scrollbar-thumb {
  background: var(--border); border-radius: 3px;
}
.product-list::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.product-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  border-top: 1px solid var(--border);
}
.product-list li:first-child { border-top: none; }
.product-list li[data-slug]:hover { background: var(--panel-2); }
.product-list .product-list-header {
  position: sticky; top: 0; z-index: 1;
  background: var(--panel-2); align-items: center;
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.product-list .col-check {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 0; cursor: pointer;
}
.product-list input[type=checkbox] { margin: 0; cursor: pointer; opacity: 0.45; }
.product-list .label-text {
  display: flex; flex-direction: column; min-width: 0;
  padding: 8px 14px 8px 4px; cursor: pointer;
}
.product-list .name {
  font-size: 14px; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-list .slug-sub {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted); line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  opacity: 0; transition: opacity 0.15s;
}
.product-list li[data-slug]:hover .slug-sub { opacity: 1; }
.setup .site-heading { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 24px 0 8px; border: none; }
@media (min-width: 640px) {
  .product-list { display: grid; grid-template-columns: 1fr 1fr; }
  .product-list .product-list-header { grid-column: 1 / -1; }
  .product-list li:first-child { border-top: none; border-bottom: 1px solid var(--border); }
  .product-list li[data-slug]:nth-child(even) { border-right: 1px solid var(--border); }
}

button.link, .link {
  background: none; border: none; color: var(--accent); cursor: pointer;
  font: inherit; padding: 0; text-decoration: none;
}
button.link:hover, .link:hover { text-decoration: underline; }

button.primary, .primary-link {
  background: var(--accent); color: #040e20; border: none;
  padding: 8px 18px; border-radius: 8px; cursor: pointer; font-weight: 600;
  text-decoration: none; display: inline-block; font-family: var(--font-sans);
}
button.primary:hover, .primary-link:hover { background: #74aff8; }
.actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; }

/* ── search ── */
.search-form input[type=search] {
  width: 100%;
  padding: 9px 18px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  font-family: var(--font-sans); font-size: 14px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-form input[type=search]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91,156,246,.12);
}
.search-form input[type=search]::placeholder { color: var(--muted); }
.search-input-wrap { position: relative; flex: 1; }
.search-submit { cursor: pointer; font: inherit; flex: 0 0 auto; }
.chip.search-submit { padding: 9px 18px; font-size: 14px; }
.clear-search  { cursor: pointer; flex: 0 0 auto; }
.search-history {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  z-index: 100;
  overflow: hidden;
}
.search-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  cursor: pointer;
}
.search-history-item:not(:last-child) { border-bottom: 1px solid var(--border); }
.search-history-item:hover { background: var(--panel-2); }
.search-history-query {
  flex: 1;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-history-item .remove-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  padding: 2px 4px;
  flex: 0 0 auto;
  line-height: 1;
}
.search-history-item .remove-btn:hover { color: var(--text); }
.search-result-count { margin: 2px 0 4px; }

/* ── search bar ── */
.search-form { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; }

/* ── sidebar layout ── */
.list-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0 28px;
  align-items: start;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 66px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }
.sidebar-section { display: flex; flex-direction: column; gap: 5px; }
.sidebar-last-refresh { margin-top: 20px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.sidebar-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin: 0 0 3px;
  font-weight: 600;
}
.sidebar .filter-group {
  flex-direction: column;
  gap: 2px;
}
.sidebar .chip {
  border-radius: 7px;
  justify-content: space-between;
}
.list-main { min-width: 0; }

/* ── filters (top-bar mode, unused now but kept for other pages) ── */
.filter-group { display: flex; gap: 5px; flex-wrap: wrap; }
.list-actions { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted); text-decoration: none;
  font-size: 12.5px; font-family: var(--font-sans);
  background: transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  cursor: pointer;
}
.chip:hover { color: var(--text); border-color: #2e3a55; background: var(--panel); }
.chip.active { background: var(--panel-2); color: var(--text); border-color: var(--accent); }
.chip.excluded { opacity: 0.35; text-decoration: line-through; }
.chip .count { font-size: 11px; font-variant-numeric: tabular-nums; }
.chip.active .count { color: var(--accent); }
.chip.product { font-size: 12px; }

/* ── article list ── */
.articles { list-style: none; padding: 0; margin: 0; }

.article {
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  border-left: 3px solid transparent;
}
/* state-driven left bar: blue = unread */
.article:not(.read)  { border-left-color: var(--accent); }

.article-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 180px 110px 88px;
  align-items: center; gap: 8px;
  padding: 9px 14px 9px 11px;
  transition: background 0.1s;
}
.article-row:hover { background: var(--panel-2); }

/* align header with article rows (which have border-left: 3px) */
.articles-header { border-left: 3px solid transparent; }

.article.read .title         { color: #7986a0; }
.article.read .title:visited { color: #7986a0; }
.article.read .product,
.article.read .date          { opacity: 0.6; }

.article .toggle {
  background: none; border: none; cursor: pointer;
  padding: 0; display: flex; align-items: center; justify-content: center;
  width: 32px;
}
.article .dot {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2.5px var(--panel), 0 0 0 3.5px var(--muted);
  transition: background 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.article.read .dot {
  background: transparent;
}

.article .title-cell {
  display: flex; align-items: center; gap: 8px;
  min-width: 0; flex-wrap: wrap;
}
.article .title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0;
  line-height: 1.4;
}
.article .title:hover { text-decoration: underline; color: #e8effe; }

.article .product {
  color: var(--muted); font-size: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.meta-cell { display: contents; }
.article .version-cell { display: flex; align-items: center; gap: 3px; min-width: 0; flex-wrap: wrap; }
.article .version {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--panel-2);
  color: var(--muted);
  border: 1px solid var(--border);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}
.article .version.version-matched {
  opacity: 0.45;
}
.article .date {
  color: var(--muted); font-size: 12px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.badge.updated {
  background: none; border: 1px solid rgba(233,168,76,.3);
  color: var(--warn); padding: 1px 7px; border-radius: 4px; font-size: 11px;
  flex: 0 0 auto; cursor: pointer; font-family: var(--font-sans); line-height: inherit;
  transition: background 0.1s;
}
.badge.updated:hover { background: rgba(233,168,76,.1); }
.badge.updated.seen {
  color: var(--muted); border-color: rgba(82,96,124,.3);
}
.badge.updated.seen:hover { background: rgba(82,96,124,.08); }

/* ── search results ── */
.article-snippet {
  flex: 0 0 100%;
  font-size: 13px; color: var(--muted); line-height: 1.65;
  margin-top: 4px;
}
.article-snippet mark {
  background: rgba(91,156,246,.18);
  color: var(--text);
  border-radius: 2px; padding: 0 2px;
}

.articles.search-mode .article-row,
.articles-header.search-mode {
  grid-template-columns: 32px minmax(0, 1fr) 110px 65px 88px;
}
.articles.search-mode .article-row    { align-items: start; }
.articles.search-mode .article .title { white-space: normal; overflow: visible; text-overflow: clip; }

/* ── article list header ── */
.articles-header {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 180px 110px 88px;
  gap: 8px;
  padding: 6px 14px 6px 11px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.articles-header > span { white-space: nowrap; }

/* Non-search mode: static labels */
.articles-header:not(.search-mode) > span {
  color: var(--muted);
  font-weight: 500;
}

/* Search mode: sortable columns */
.articles-header.search-mode {
  /* Slight visual cue that these columns are now interactive */
  background: rgba(255,255,255,0.015);
}
.articles-header.search-mode .sort-link {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
  padding: 2px 4px;
  margin: -2px -4px;
  border-radius: 4px;
  transition: color 0.1s, background 0.1s;
  cursor: pointer;
}
.articles-header.search-mode .sort-link:hover {
  color: var(--text);
  background: var(--panel-2);
}
.articles-header.search-mode .sort-link.active {
  color: var(--text);
  font-weight: 600;
}
.articles-header.search-mode .sort-indicator {
  opacity: 0.6;
  margin-left: 3px;
  font-size: 10px;
}

/* ── sections ── */
.sections-list { list-style: none; padding: 0; margin: 0; }
.section-item {
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.section-item:last-child { border-bottom: none; }
.section-item.changed, .section-item.new { color: var(--text); }

.section-heading {
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
  display: flex; align-items: baseline; gap: 8px;
  flex-wrap: wrap;
}
.section-item.h2 .section-heading { font-size: 17px; }
.section-item.h3 .section-heading { font-size: 14px; font-weight: 500; padding-left: 10px; }
.section-item.changed .section-heading,
.section-item.new     .section-heading { color: var(--text); }
.section-item.removed .section-heading { color: var(--bad); text-decoration: line-through; }

.section-heading a { color: inherit; text-decoration: none; }
.section-heading a:hover { text-decoration: underline; color: var(--accent); }

.section-tag { font-size: 10px; padding: 1px 6px; border-radius: 3px; font-weight: 500; }
.section-item.changed .section-tag { background: rgba(233,168,76,.12); color: var(--warn); }
.section-item.new     .section-tag { background: rgba(61,214,140,.12);  color: var(--good); }
.section-item.removed .section-tag { background: rgba(240,100,100,.12); color: var(--bad); }

.sections-loading { padding: 4px 0; margin: 0; font-size: 12px; }

.section-diff {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  padding-left: 0;
}
.section-item.h3 .section-diff { padding-left: 10px; }
.section-diff ins {
  background: rgba(61,214,140,.15); color: var(--good);
  text-decoration: none; border-radius: 2px; padding: 1px 2px;
}
.section-diff del {
  background: rgba(240,100,100,.12); color: var(--bad);
  text-decoration: line-through; border-radius: 2px; padding: 1px 2px;
}

/* ── sections modal ── */
.sections-modal-card  { width: min(720px, 95%); height: auto; max-height: 85vh; }
.sections-modal-body  { padding: 8px 28px 24px; overflow-y: auto; flex: 1; }

/* ── mobile ── */
@media (max-width: 740px) {
  main { padding: 12px 8px; }

  /* topbar */
  .topbar { padding: 0 14px; }
  .topbar .brand { font-size: 14px; white-space: nowrap; }
  .topbar nav { gap: 0; }
  .topbar nav .muted.small { display: none; }

  /* sidebar above articles, horizontally scrollable */
  .list-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    max-height: none;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
  }
  .sidebar-section {
    flex-direction: row;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sidebar-section::-webkit-scrollbar { display: none; }
  .sidebar-label { display: none; }
  .sidebar .filter-group { flex-direction: row; flex-wrap: nowrap; gap: 4px; padding: 2px 0; }
  .sidebar .chip { border-radius: 999px; justify-content: center; white-space: nowrap; }
  .sidebar-last-refresh { display: none; }

  /* articles */
  .articles-header { display: none; }
  .article-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 2px 8px;
    padding-left: 0; padding-right: 8px;
  }
  .article .title-cell  { grid-column: 2 / 4; grid-row: 1; }
  .article .product     { grid-column: 2; grid-row: 2; padding-bottom: 4px; }
  .meta-cell {
    display: flex; align-items: center; gap: 6px;
    overflow-x: auto; scrollbar-width: none;
    grid-column: 3; grid-row: 2;
    padding-bottom: 4px;
  }
  .meta-cell::-webkit-scrollbar { display: none; }
  .article .date { order: 1; text-align: right; white-space: nowrap; }
  .article .version-cell { order: 2; flex-wrap: nowrap; }

  /* touch targets */
  .article .toggle { min-width: 36px; min-height: 36px; }
  .article { border-left: none; }
  .articles-header { border-left: none; }
  .modal-toolbar { flex-wrap: wrap; }
  .modal-btn { min-width: 44px; min-height: 44px; }
}

/* ── progress ── */
.progress p { margin: 8px 0; }

/* ── modal ── */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.72);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
}
.modal-card {
  width: 95%; height: 95vh;
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.55);
}
.modal-toolbar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--panel);
  border-bottom: 1px solid rgba(255,255,255,.05);
  flex: 0 0 auto;
}
.modal-title {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 500;
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.modal-actions { display: flex; align-items: center; gap: 6px; }
.modal-btn {
  background: var(--panel-2); color: var(--muted);
  border: 1px solid var(--border);
  padding: 5px 10px; border-radius: 7px;
  cursor: pointer; font-family: var(--font-sans); font-size: 13px;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px;
  transition: background 0.1s, color 0.1s;
}
.modal-btn:hover { background: var(--border); color: var(--text); }
.modal-btn.close { background: transparent; }
.modal-btn.close:hover { background: rgba(240,100,100,.15); border-color: var(--bad); color: var(--bad); }
.modal-btn:disabled { opacity: 0.3; cursor: default; }
.modal-btn:disabled:hover { background: var(--panel-2); color: var(--muted); }
#modalFrame { flex: 1; width: 100%; background: white; border: none; }

/* ── pagination ── */
.pagination-info { margin: 8px 0 4px; }
.pagination {
  display: flex; align-items: center; gap: 4px;
  margin: 18px 0 28px; flex-wrap: wrap;
}
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 30px; padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: transparent; color: var(--muted);
  text-decoration: none; font-size: 13px; font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.page-btn:hover          { background: var(--panel-2); color: var(--text); }
.page-btn.current        { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.page-btn.disabled       { opacity: 0.3; cursor: default; }
.page-btn.disabled:hover { background: transparent; color: var(--muted); }
.page-ellipsis { color: var(--muted); padding: 0 4px; line-height: 30px; font-size: .85rem; }
.notice {
  border-radius: 4px;
  padding: 0.4rem 0.75rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  background: var(--panel);
  border: 1px solid var(--border);
  display: block;
}
.admin-users-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-users-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--border); padding: 0 12px 8px 0; }
.admin-users-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-users-table tr:last-child td { border-bottom: none; }
.danger-link { color: #e05c5c; }
.danger-link:hover { color: #ff7070; }

.is-readonly .product-list,
.is-readonly .actions {
  opacity: 0.45;
  pointer-events: none;
}
.is-readonly .search-row input {
  opacity: 0.45;
  pointer-events: none;
}

/* ── login / verify pages ── */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 50px);
  margin: -20px -24px;
  padding: 1rem 1rem 8rem;
}
.login-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.login-brand {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.login-box h1 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  color: var(--text);
}
.login-box .field { margin-bottom: 1.25rem; }
.login-box label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.login-box input[type="email"] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s;
}
.login-box input[type="email"]:focus { border-color: var(--accent); }
.login-box input[type="text"] {
  padding: 0.6rem 0.8rem;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1.4rem;
  letter-spacing: 0.25em;
  text-align: center;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s;
}
.login-box input[type="text"]:focus { border-color: var(--accent); }
.login-submit {
  width: 100%;
  padding: 0.65rem;
  font-size: 0.95rem;
  border-radius: 8px;
  margin-top: 0.25rem;
}

/* ── product overlay (mobile) ── */
.product-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 200;
  align-items: flex-end;
}
.product-overlay.open { display: flex; }
.product-overlay-card {
  width: 100%;
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}
.product-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.product-overlay-close {
  background: none; border: none; color: var(--muted);
  font-size: 16px; cursor: pointer; padding: 4px 8px;
}
.product-overlay-list {
  overflow-y: auto;
  padding: 12px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-overlay-list .chip {
  justify-content: flex-start;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  width: 100%;
}
