/* Self-hosted, not linked to Google's CDN - matches how the rest of the
   household's infrastructure avoids external runtime dependencies. */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/static/fonts/newsreader-normal.woff2') format('woff2-variations'), url('/static/fonts/newsreader-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('/static/fonts/newsreader-italic.woff2') format('woff2-variations'), url('/static/fonts/newsreader-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/ibmplexmono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/ibmplexmono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/ibmplexmono-600.woff2') format('woff2');
}

:root {
  /* Bunce Group identity - forest green, matching Scriptorium's Dog & Feather
     imprint (the closest real brand reference, per Geoff). Dark theme base
     with a brighter green than the literary #2d5a27 so it actually reads
     against a dark background - #2d5a27 survives as accent-deep for large
     fills/hovers where more saturation is wanted. */
  --bg: #12140f;
  --panel: #1a1f16;
  --panel-alt: #212819;
  --border: #2d3527;
  --text: #eef0e8;
  --text-dim: #9aab8f;
  --accent: #4a9440;
  --accent-deep: #2d5a27;
  --accent-dim: rgba(74, 148, 64, 0.16);
  --accent-ink: #08120a;
  --gold: #d8b45a;
  --gold-dim: rgba(216, 180, 90, 0.14);
  --danger: #d16969;
  --danger-dim: rgba(209, 105, 105, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  /* Specimen-tag tones - a warm manila/parchment note struck deliberately
     against the cool dark-green backdrop, the way a cream museum label
     reads against a dark cabinet. Used sparingly, on tags only, never as
     a background fill - the app stays dark-mode throughout. */
  --tag-bg: #e8dcc0;
  --tag-ink: #3d2f1a;
  --tag-border: #c9b98c;

  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
}

/* Login */

.login-screen {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at top, var(--panel) 0%, var(--bg) 70%);
}

.login-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  width: 340px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.login-brand {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.login-sub {
  color: var(--text-dim);
  margin-bottom: 1.75rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
}

.login-form { display: flex; flex-direction: column; gap: 0.85rem; }

.login-form input, .login-form button {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}

.login-form button {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.login-form button:hover { filter: brightness(1.1); }

.login-error, .form-error { color: var(--danger); font-size: 0.85rem; min-height: 1.2em; }
.form-success { color: var(--accent); font-size: 0.85rem; min-height: 1.2em; }

/* App shell */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.75rem;
  border-bottom: 3px double var(--border);
  background: var(--panel);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-brand { display: flex; align-items: baseline; gap: 0.85rem; }
.topbar-brand h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.topbar-user { color: var(--text-dim); font-size: 0.9rem; font-style: italic; font-family: var(--font-display); }

/* Primary collection sections - Coins / Stamps / Notes / Sets - styled as
   ledger/drawer tabs (square-topped, flush to a base rule) rather than
   pill buttons, echoing a card-catalog cabinet's labeled drawer fronts. */
.section-nav { display: flex; gap: 0.3rem; align-self: flex-end; }

.section-btn {
  background: none;
  border: 1px solid transparent;
  border-bottom: none;
  color: var(--text-dim);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.section-btn:hover { background: var(--panel-alt); color: var(--text); }
.section-btn.active {
  background: var(--accent-deep);
  color: var(--tag-bg);
  border-color: var(--border);
  font-weight: 600;
}

/* Sub-nav within a section (e.g. Coins: Series / Gap report / All coins) */
.sub-nav { display: flex; gap: 0.4rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border); }

.nav-btn {
  background: none;
  border: 1px solid transparent;
  border-bottom: none;
  color: var(--text-dim);
  padding: 0.55rem 1.1rem;
  margin-bottom: -1px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.nav-btn:hover { color: var(--text); }
.nav-btn.active {
  color: var(--accent);
  background: var(--panel);
  border-color: var(--border);
  border-bottom: 1px solid var(--panel);
  font-weight: 700;
}

.global-search { position: relative; }
.global-search input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  width: 200px;
}
.global-search input:focus { outline: none; border-color: var(--accent); }
.global-search-results {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  width: 320px;
  max-width: 90vw;
  max-height: 380px;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  z-index: 20;
}
.global-search-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.global-search-result:last-child { border-bottom: none; }
.global-search-result:hover { background: var(--panel-alt); }
.global-search-result-type {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-dim);
  flex-shrink: 0;
}

.logout-link {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
}
.logout-link:hover { color: var(--danger); }

.content { padding: 1.75rem; max-width: 1400px; margin: 0 auto; }

.view-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.view-header select, .filter-select {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.gap-toggle { display: flex; align-items: center; gap: 0.5rem; color: var(--text-dim); font-size: 0.95rem; }
.gap-toggle input { width: 18px; height: 18px; }

.series-btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.1rem; }
/* Grouped variant (coins, with category sub-headings) stacks its groups
   vertically - each .series-group inside still wraps horizontally. */
.series-btn-row.grouped { flex-direction: column; flex-wrap: nowrap; gap: 0.65rem; }
.series-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.group-by-row { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; }
.group-by-label { font-family: var(--font-display); font-style: italic; font-size: 0.9rem; color: var(--text-dim); }
.toggle-group { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-pill); overflow: hidden; }
.toggle-btn {
  background: var(--panel);
  border: none;
  color: var(--text-dim);
  padding: 0.4rem 1rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}
.toggle-btn + .toggle-btn { border-left: 1px solid var(--border); }
.toggle-btn.active { background: var(--accent); color: var(--accent-ink); }

.series-group-block { display: flex; flex-direction: column; gap: 0.5rem; }
.series-group-header-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.series-group-header-btn:hover { color: var(--text); border-color: var(--text-dim); }
.series-group-header-btn.open { color: var(--accent); border-color: var(--accent); }
.series-group-header-btn .chevron { font-style: normal; font-family: var(--font-ui); }
.series-group-header-btn .count { font-family: var(--font-mono); font-style: normal; }

.series-group-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-dim);
  min-width: 150px;
}

.series-btn {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.series-btn .count { font-family: var(--font-mono); font-weight: 400; opacity: 0.8; }
.series-btn:hover { color: var(--text); border-color: var(--text-dim); }
.series-btn.active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

.new-btn {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.new-btn:hover { filter: brightness(1.12); }

/* ── Card grid - replaces the old dense tables ─────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.item-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: hidden;
}

/* Specimen tag - every catalogued object gets one, exactly like a museum
   accession label pinned to a specimen drawer. Uses the real accession
   number where one has been curated (stamps), or the item's own record
   id otherwise - never an invented number. This is the one place the
   warm parchment tone appears as a solid fill, deliberately, so it reads
   as a physical label stuck onto a dark card rather than a UI chip. */
.specimen-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--tag-bg);
  color: var(--tag-ink);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.6rem 0.25rem;
  border-bottom-left-radius: var(--radius-sm);
  border-left: 1px solid var(--tag-border);
  border-bottom: 1px solid var(--tag-border);
}

.item-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.item-card.is-gap { opacity: 0.55; }
.item-card.is-gap:hover { opacity: 0.85; }

.card-thumb-row { display: flex; gap: 0.5rem; }

.card-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  flex: 1;
  min-width: 0;
}

.card-name { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.card-meta { font-size: 0.85rem; color: var(--text-dim); }
.card-meta .mono { font-family: var(--font-mono); color: var(--text); }
.card-value { font-family: var(--font-mono); font-size: 0.9rem; color: var(--gold); font-weight: 600; }

.card-checkbox-wrap {
  position: relative;
}
.card-checkbox {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  width: 26px;
  height: 26px;
  z-index: 2;
  accent-color: var(--accent);
  cursor: pointer;
}

.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }

.card-set-badge {
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(74, 148, 64, 0.12);
  border: 1px solid rgba(74, 148, 64, 0.3);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  align-self: flex-start;
}

.set-group { margin-bottom: 2rem; }
.set-group-header {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.set-group-count { font-family: var(--font-mono); font-weight: 400; color: var(--text-dim); font-size: 0.85rem; }

.report-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.report-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.report-card-total { border-color: var(--accent); grid-column: 1 / -1; }
.report-card-label { font-size: 0.85rem; color: var(--text-dim); text-transform: capitalize; font-family: var(--font-display); font-style: italic; }
.report-card-value { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 600; color: var(--gold); margin: 0.2rem 0; }
.report-card-meta { font-size: 0.8rem; color: var(--text-dim); }
.report-hint { font-size: 0.85rem; color: var(--text-dim); margin: -0.5rem 0 1rem; }

.dashboard-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.dashboard-tile {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.dashboard-tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.dashboard-tile-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--accent); }
.dashboard-tile-count { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-dim); margin-top: 0.3rem; }

/* Grade labels - condition/ownership markers, styled after a graded-slab
   or index-card tab: a flat rectangle with a coloured spine on the left
   edge rather than a fully-rounded chip, so it reads as a label filed
   into a record rather than a status pill floating in a UI. */

.pill {
  display: inline-block;
  padding: 0.25rem 0.7rem 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid currentColor;
  background: var(--panel-alt);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.pill-circulated { color: var(--text-dim); }
.pill-bu { color: var(--accent); }
.pill-proof, .pill-mint { color: var(--gold); }
.pill-sealed_pack { color: #7ea0d8; }
.pill-owned { color: var(--accent); }
.pill-gap { color: var(--danger); }
.pill-near_mint { color: var(--accent); }
.pill-lightly_played, .pill-moderately_played { color: var(--gold); }
.pill-heavily_played, .pill-damaged { color: var(--danger); }
.pill-mint_nh, .pill-mint_h { color: var(--gold); }
.pill-used, .pill-fine_used { color: var(--text-dim); }
.pill-poor { color: var(--danger); }

/* All-items / Sets list - still a simple list, just bigger and cleaner */

.simple-list { display: flex; flex-direction: column; gap: 0.75rem; }

.list-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.list-row:hover { border-color: var(--accent); transform: translateX(2px); }
.list-row .thumb { flex-shrink: 0; }
.list-row-main { flex: 1; min-width: 0; }
.list-row-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.list-row-meta { font-size: 0.85rem; color: var(--text-dim); }
.list-row-action { flex-shrink: 0; }

.thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel-alt);
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 4, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2.25rem;
  width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.modal-card-wide { width: 620px; }

.modal-card h2 { margin-top: 0; color: var(--accent); font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.modal-card h3 { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.78rem; margin: 1.5rem 0 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; }

.modal-card form { display: flex; flex-direction: column; gap: 0.9rem; }

.modal-card form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  font-weight: 500;
}

.modal-card input, .modal-card select, .modal-card textarea {
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.modal-card input:focus, .modal-card select:focus, .modal-card textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.item-detail-grid { display: flex; flex-direction: column; gap: 0.9rem; }
.item-detail-grid label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.88rem; color: var(--text-dim); }

/* Read view - a record, not a form: label + value pairs, no borders or
   input chrome, nothing implying you can type into it. */
.detail-row { display: flex; flex-direction: column; gap: 0.2rem; }
.detail-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.detail-value { font-size: 0.98rem; color: var(--text); white-space: pre-wrap; }

.danger-btn { border-color: var(--danger) !important; color: var(--danger) !important; margin-right: auto; }

.event-list { list-style: none; padding: 0; margin: 0; font-size: 0.88rem; }
.event-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.event-list li:last-child { border-bottom: none; }

.inline-form { display: flex; flex-direction: row !important; gap: 0.5rem; margin-top: 0.5rem; }
.inline-form select, .inline-form input { flex: 1; min-width: 0; }
.inline-form button { flex-shrink: 0; }

.image-gallery { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.6rem; }
.image-gallery img { width: 90px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }

.image-thumb-wrap { position: relative; }
.image-remove-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--danger);
  background: var(--bg);
  color: var(--danger);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.image-remove-btn:hover { background: var(--danger); color: var(--bg); }

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

.modal-actions button {
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--panel-alt);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  transition: filter 0.15s ease, border-color 0.15s ease;
}
.modal-actions button:hover { border-color: var(--text-dim); }

.modal-actions button[type="submit"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.modal-actions button[type="submit"]:hover { filter: brightness(1.12); }

.pkmn-search-results {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.5rem 0;
}
.pkmn-result {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.pkmn-result:hover { border-color: var(--accent); }
.pkmn-result img { width: 40px; height: auto; border-radius: 4px; }
.pkmn-result-name { font-weight: 600; font-size: 0.9rem; }
.pkmn-result-meta { font-size: 0.78rem; color: var(--text-dim); }

.pkmn-search-selected {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
}
.pkmn-search-selected img { width: 40px; height: auto; border-radius: 4px; }
.pkmn-search-selected button { margin-left: auto; }

.pkmn-detail-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--panel-alt);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  grid-column: 1 / -1;
}
