:root {
  --bg: #f6f7f9; --surface: #fff; --text: #1b1f24; --muted: #667085;
  --border: #e3e6ea; --accent: #4f46e5; --accent-text: #fff; --danger: #c0392b;
  --wishlist: #a855f7; --collection: #b45309; --backlog: #64748b; --playing: #0ea5e9; --completed: #16a34a; --abandoned: #dc2626;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111318; --surface: #1a1d24; --text: #e7e9ee; --muted: #9aa3b2; --border: #2a2f39; --accent: #818cf8; --accent-text: #0b0d12; }
}
/* Themes (menu bar > Theme; app/themes.py). Classic is the two blocks above, following the device. */
:root { color-scheme: light dark; }
html[data-theme="midnight"] { color-scheme: dark;
  --bg: #0f172a; --surface: #1e293b; --text: #e2e8f0; --muted: #94a3b8; --border: #334155;
  --accent: #38bdf8; --accent-text: #0b1220; --danger: #f87171; }
html[data-theme="forest"] { color-scheme: light;
  --bg: #eef3ec; --surface: #ffffff; --text: #1c2a1e; --muted: #5d6d5f; --border: #d5e0d0;
  --accent: #2a7046; --accent-text: #ffffff; --danger: #b42318; }
html[data-theme="sunset"] { color-scheme: light;
  --bg: #fbf3ea; --surface: #fffaf4; --text: #2b1d16; --muted: #806353; --border: #eedccb;
  --accent: #c2410c; --accent-text: #ffffff; --danger: #b42318; }
html[data-theme="arcade"] { color-scheme: dark;
  --bg: #140f24; --surface: #211a3d; --text: #f1ecff; --muted: #a99cc9; --border: #3a2e63;
  --accent: #ff4fa3; --accent-text: #140f24; --danger: #ff6a4d; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); }
main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 1.5rem; margin: 0 0 16px; }
h2 { font-size: 1rem; margin: 0 0 12px; }
.muted { color: var(--muted); } .small { font-size: .85em; }
.topbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.brand { font-weight: 700; text-decoration: none; color: var(--text); }
.btn, button { font: inherit; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; }
.btn { background: var(--accent); color: var(--accent-text); border-color: var(--accent); text-decoration: none; }
button.link { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; }
button.link.danger { color: var(--danger); }
input, select, textarea { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); width: 100%; }
/* iPhone Safari zooms the page into any text box smaller than 16px; keep phones at 16px. */
@media (pointer: coarse), (max-width: 720px) { input, select, textarea { font-size: 16px; } }
.flash { padding: 10px 14px; margin-bottom: 16px; border-radius: 8px; background: var(--surface); border-left: 4px solid var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.filters input[type=search] { flex: 1 1 220px; width: auto; }
.filters select { width: auto; }
.steam-profile { align-items: flex-end; }
.steam-profile label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.steam-profile label:first-of-type { flex: 1 1 160px; }
.steam-profile label:nth-of-type(2) { flex: 3 1 300px; }
.games { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 10px; overflow: hidden; }
.games th, .games td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.games th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.actions { white-space: nowrap; display: flex; gap: 12px; }
.actions form { margin: 0; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .8rem; color: #fff; background: var(--backlog); }
.badge.wishlist { background: var(--wishlist); } .badge.playing { background: var(--playing); }
.badge.completed { background: var(--completed); } .badge.abandoned { background: var(--abandoned); }
.empty { padding: 48px; text-align: center; background: var(--surface); border-radius: 10px; color: var(--muted); }
.game-form { display: grid; gap: 14px; max-width: 720px; }
.game-form label { display: grid; gap: 4px; font-weight: 500; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.error { color: var(--danger); font-size: .85rem; font-weight: 400; }
.form-actions { display: flex; gap: 16px; align-items: center; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tile, .card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.tile { color: var(--muted); } .tile-n { display: block; font-size: 1.6rem; font-weight: 700; color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 32px; gap: 8px; align-items: center; margin: 6px 0; }
.bar { height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); }
.bar-n { text-align: right; color: var(--muted); }
.phone-meta { display: none; }
/* Phones: each game is a card - box art, title, one summary line, then Edit / Delete */
@media (max-width: 720px) {
  .games { background: none; border-radius: 0; }
  .games thead, .games td.wide-col { display: none; }
  .games tbody { display: grid; gap: 8px; }
  .games tr { display: grid; grid-template-columns: 56px 1fr; grid-template-areas: "cover title" "cover actions";
    column-gap: 12px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
  .games td { border: 0; padding: 0; }
  .games td.cover-col { grid-area: cover; width: auto; }
  .games td.cover-col .cover-thumb { width: 56px; height: 75px; }
  .games td.title-col { grid-area: title; min-width: 0; }
  .games td.title-col .title-link { display: block; font-size: 1.02rem; line-height: 1.3; overflow-wrap: anywhere; }
  .phone-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 4px;
    color: var(--muted); font-size: .85rem; }
  .games td.title-col .notes { margin-top: 2px; }
  .games td.actions { grid-area: actions; align-self: end; justify-content: flex-end; gap: 8px; margin-top: 8px; }
  .games td.actions a, .games td.actions button.link { display: inline-block; padding: 6px 14px; border-radius: 8px;
    border: 1px solid var(--border); text-decoration: none; font-size: .9rem; }
}

.cover-col { width: 64px; }
.cover-thumb { display: block; width: 48px; height: 64px; object-fit: cover; border-radius: 4px;
  border: 1px solid var(--border); background: var(--bg); }
.cover-empty { display: flex; align-items: center; justify-content: center; font-size: 1.2rem; opacity: .4; }
.cover-field { display: grid; gap: 8px; }
.cover-preview { max-width: 180px; max-height: 240px; border-radius: 6px; border: 1px solid var(--border); }
.game-form label.checkbox { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.game-form label.checkbox input { width: auto; }
.platform-picks { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 16px; }
.platform-picks legend { padding: 0 4px; font-weight: 600; }
.platform-picks label:first-of-type { grid-column: 1 / -1; }
input[type=file] { padding: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.page-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.btn.secondary { background: var(--surface); color: var(--accent); }
.error-flash { border-left-color: var(--danger); }
.moby-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.moby-results li { display: flex; gap: 14px; align-items: center; }
.moby-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.moby-info .badge { justify-self: start; }
.review-form { max-width: none; }
.review td { vertical-align: top; }
.review-text { white-space: pre-line; max-height: 12em; overflow: auto; }
.small-preview { max-width: 120px; max-height: 160px; }
pre { background: var(--bg); padding: 8px 12px; border-radius: 6px; overflow-x: auto; }
.wiki-lookup { display: grid; gap: 8px; margin-top: -4px; }
.wiki-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
#wiki-status.error { color: var(--danger); }
.wiki-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.wiki-pick { width: 100%; text-align: left; display: grid; gap: 2px; padding: 8px 12px; }
.wiki-pick:hover:not(:disabled) { border-color: var(--accent); }
.wiki-pick:disabled { opacity: .6; cursor: wait; }
input.filled, select.filled, textarea.filled { border-color: var(--completed); box-shadow: 0 0 0 1px var(--completed); }
.wiki-cover { display: grid; gap: 6px; }

.narrow { max-width: 360px; }
.btn.big { font-size: 1.15rem; padding: 14px 22px; }
.scan-actions { display: grid; gap: 12px; justify-items: start; margin-bottom: 16px; }
.manual { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.manual label { display: grid; gap: 4px; }
.scan-status { min-height: 1.5em; margin: 8px 0 12px; }
.scan-status.error { color: var(--danger); }
.scan-status.warn { color: var(--muted); }
#reader { width: min(100%, 480px); }
.result { margin-bottom: 16px; }
.found { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.found .cover-preview { max-width: 140px; }
.phone-card { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.qr svg { display: block; width: 150px; height: 150px; }
@media (max-width: 720px) {
  .found { grid-template-columns: 1fr; }
  .found .cover-preview { max-width: 120px; }
  .scan-actions .btn.big { width: 100%; }
  .phone-card { display: none; }
}

.wiki-platforms { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: -6px; }
.chip { padding: 3px 10px; border-radius: 999px; font-size: .85rem; }
.chip.active { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

.now-playing { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center;
  padding: 8px 16px; background: var(--completed); color: #fff; font-weight: 600; }
.now-playing a { color: #fff; }
.now-playing form { margin: 0; }
.now-playing .btn.stop { background: #fff; color: var(--completed); border-color: #fff; padding: 4px 12px; }
.btn.stop { background: var(--danger); border-color: var(--danger); color: #fff; }
.badge.playing { background: var(--completed); }
.title-link { color: var(--text); text-decoration: none; }
.title-link:hover strong { text-decoration: underline; }
.game-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.game-head .cover-preview { max-width: 160px; }
.game-head-info { display: grid; gap: 8px; }
.game-head-info h1 { margin: 0; }
.game-head-info p { margin: 0; }
.play-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.play-controls form { margin: 0; }
.playing-clock { font-weight: 600; font-variant-numeric: tabular-nums; }
[data-elapsed] { font-variant-numeric: tabular-nums; }
.detail-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; }
.add-box { margin-bottom: 14px; }
.add-box summary { cursor: pointer; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.photo-preview { max-width: 220px; max-height: 160px; border-radius: 6px; margin-top: 6px; }
.score-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.score-list li { display: flex; gap: 12px; align-items: center; }
.score-list form { margin: 0 0 0 auto; }
.score-thumb { display: flex; align-items: center; justify-content: center; width: 64px; height: 48px;
  object-fit: cover; border-radius: 4px; border: 1px solid var(--border); background: var(--bg); }
.score-info { display: grid; }
.score-value { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.sessions td { padding: 6px 8px; }
.sessions form { margin: 0; }
.inline-edit { display: flex; gap: 6px; align-items: center; }
.inline-edit input { width: 4.5em; padding: 3px 6px; }
@media (max-width: 720px) {
  .game-head { flex-direction: column; }
  .game-head .cover-preview { max-width: 120px; }
  .detail-grid { grid-template-columns: 1fr; }
}

.link-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.link-list a { font-weight: 600; }
.guides form { margin: 0; }

.steps li { margin-bottom: 10px; }
.steam-toolbar { display: grid; gap: 12px; margin-bottom: 14px; position: sticky; top: 0; z-index: 1; }
.steam-toolbar p { margin: 0; }
.steam-art { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.steam-select { display: flex; flex-wrap: wrap; gap: 8px; }
.steam-select input { flex: 1 1 200px; width: auto; }
.steam-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.steam-list label { display: flex; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border); cursor: pointer; }
.steam-list input[type=checkbox] { width: auto; }
.steam-list img, .steam-icon { width: 32px; height: 32px; border-radius: 4px; background: var(--bg); flex: none; }
.steam-name { flex: 1; min-width: 0; }
.steam-list li.existing label { opacity: .6; cursor: default; }
progress { width: 100%; max-width: 420px; }

.achievements { grid-column: 1 / -1; }
.ach-summary { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 1.1rem; }
.ach-bar { height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; margin: 8px 0 12px; }
.ach-bar span { display: block; height: 100%; background: var(--completed); }
.ach-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ach-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ach-list li { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 8px; border: 1px solid var(--border); }
.ach-list li.locked { opacity: .65; }
.ach-list img, .ach-icon { width: 40px; height: 40px; border-radius: 4px; flex: none; background: var(--bg); }
.ach-info { display: grid; flex: 1; min-width: 0; }
.ach-meta { display: grid; text-align: right; white-space: nowrap; }
.ach-meta .rare { color: var(--wishlist); font-weight: 600; }
.achievements:not(.show-all) .ach-list li.extra { display: none; }
.achievements[data-filter="unlocked"] .ach-list li.locked,
.achievements[data-filter="locked"] .ach-list li.got { display: none; }
.ach-foot { margin-top: 10px; }
@media (max-width: 720px) { .ach-list { grid-template-columns: 1fr; } }

.fill-setup { margin-bottom: 16px; display: grid; gap: 10px; }
.fill-setup p { margin: 0; }
.fill-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fill-head h2 { margin: 0; }
.fill-head form { margin: 0; }
.fill-log { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; max-height: 420px; overflow: auto; }
.fill-log li.skipped a { color: var(--muted); }

.auth-box { max-width: 420px; margin: 24px auto; }
.auth-box h1 { margin-bottom: 12px; }
.danger-zone { border-color: var(--danger); }

.compare label { display: grid; gap: 4px; max-width: 320px; margin-bottom: 12px; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.compare-table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.compare-table tbody th { color: var(--muted); font-weight: 500; width: 34%; }
.compare-table td.ahead { color: var(--completed); font-weight: 700; }

.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; object-fit: cover;
  background: var(--accent); color: var(--accent-text); font-weight: 700; flex: none; vertical-align: middle; }
.avatar-xs { width: 22px; height: 22px; font-size: .7rem; }
.avatar-sm { width: 32px; height: 32px; font-size: .9rem; }
.avatar-md { width: 48px; height: 48px; font-size: 1.2rem; }
.avatar-lg { width: 112px; height: 112px; font-size: 2.6rem; }
.profile-head { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.profile-head h1 { margin: 0; }
.profile-head p { margin: 4px 0; }
.profile-notes { white-space: pre-line; margin: 0; }
.rank { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--border); font-weight: 700; font-size: .85rem; flex: none; }
.top-platforms, .top-games, .top-pick { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.top-platforms li { display: flex; gap: 10px; align-items: center; font-size: 1.05rem; }
.top-games li { display: flex; gap: 12px; align-items: center; }
.top-games .top-title { display: grid; }
.top-games-card { grid-column: 1 / -1; }
.top-games { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.top-pick { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); counter-reset: pick; }
.top-pick li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; counter-increment: pick; }
.top-pick li::before { content: counter(pick); display: inline-flex; width: 26px; height: 26px; border-radius: 50%;
  align-items: center; justify-content: center; background: var(--border); font-weight: 700; font-size: .85rem; }
.top-pick .error { grid-column: 2; }
.avatar-edit { display: flex; gap: 16px; align-items: flex-start; }
.profile-form > .form-actions { margin-top: 16px; }
.people-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.people-list a { display: flex; gap: 12px; align-items: center; color: var(--text); text-decoration: none; }
.people-list a span { display: grid; }

.section-head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.wishlist li { position: relative; }
.wishlist .got-it { margin: 0 0 0 auto; }
.wishlist-note { grid-column: 1 / -1; margin: 0; }

.completion.is-done { border-color: var(--completed); }
.completion-photo { display: block; max-width: 100%; max-height: 260px; border-radius: 8px; margin-bottom: 12px;
  border: 1px solid var(--border); }
.big-check { font-size: 1.1rem; font-weight: 600 !important; }
.big-check input { width: 20px; height: 20px; }
.completion-fields { display: grid; gap: 12px; }

.trophy-counts { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.trophy-counts li { display: flex; gap: 6px; align-items: center; font-variant-numeric: tabular-nums; }
.trophy-icon { font-size: 1.2rem; }
.psn-about { margin-top: 12px; }
.psn-about p { margin: 8px 0; }
.narrow-wide { max-width: 520px; }

/* Value */
.value-n { font-size: 1.8rem; font-weight: 700; margin: 0.2rem 0; }

.badge.collection { background: var(--collection); }
.danger-zone { margin-top: 24px; }
.danger-zone summary { cursor: pointer; font-weight: 600; }
.tidy .section-head p { margin: 0; }

/* Metascore badges (Metacritic's colours) */
.metascore { display: inline-block; min-width: 2.1em; padding: 1px 6px; border-radius: 6px; text-align: center;
  font-weight: 700; font-size: .85rem; color: #fff; text-decoration: none; }
.metascore.good { background: #00ce7a; color: #062b1a; }
.metascore.mixed { background: #ffbd3f; color: #3a2600; }
.metascore.bad { background: #ff6874; color: #3a0a0e; }
a.metascore:hover { filter: brightness(1.08); text-decoration: none; }

/* PlayStation connection card */
.psn-connected .form-actions form { margin: 0; }
.psn-auto { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }

/* Menu bar: places on the left, Add game and your menu on the right (base.html) */
.topbar { flex-wrap: nowrap; justify-content: flex-start; gap: 20px; }
.brand { white-space: nowrap; }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a { color: var(--text); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.main-nav a:hover { background: var(--bg); }
.main-nav a[aria-current] { color: var(--accent); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.bar-actions { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.split-btn { display: flex; }
.split-btn > .btn { border-radius: 8px 0 0 8px; }
.split-btn summary.btn { border-radius: 0 8px 8px 0; padding: 6px 9px; border-left: 1px solid rgba(255, 255, 255, .35); }
.btn.secondary.scan-quick { display: none; padding: 6px 10px; }
.menu { position: relative; }
.menu > summary { cursor: pointer; list-style: none; display: flex; gap: 6px; align-items: center; color: var(--text); white-space: nowrap; }
.menu > summary.btn { color: var(--accent-text); }
.menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary::after { content: "▾"; color: var(--muted); font-size: .8em; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; min-width: 230px;
  display: grid; gap: 1px; padding: 6px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.menu-panel.left { right: auto; left: 0; }
.menu-panel a, .menu-panel button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left;
  padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); text-decoration: none;
  font: inherit; white-space: nowrap; }
.menu-panel a:hover, .menu-panel button:hover, .menu-panel a:focus-visible, .menu-panel button:focus-visible { background: var(--bg); }
.menu-panel hr { border: 0; border-top: 1px solid var(--border); margin: 5px 4px; width: auto; }
.menu-panel form { margin: 0; display: grid; gap: 1px; }
.menu-label { padding: 4px 10px 2px; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.theme-list button[aria-current] { font-weight: 600; }
.theme-list .tick { color: var(--accent); margin-left: auto; }
.theme-swatches { display: flex; flex: none; border-radius: 5px; overflow: hidden; border: 1px solid var(--border); }
.theme-swatches i { display: block; width: 10px; height: 20px; }
.nav-menu { display: none; }
.nav-menu > summary { font-size: 1.3rem; line-height: 1; padding: 2px 4px; }
@media (max-width: 720px) {
  .topbar { gap: 10px; padding: 10px 12px; }
  .main-nav, .wide-only, .brand span { display: none; }
  .brand { font-size: 1.3rem; }
  .nav-menu { display: block; }
  .btn.secondary.scan-quick { display: inline-block; }
  .bar-actions { gap: 8px; }
}
