:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --surface-2: #f3ede3;
  --surface-3: #ebe4d8;
  --ink: #14213d;
  --ink-soft: #55607a;
  --line: #e6dfd2;
  --accent: #ff5a1f;
  --accent-ink: #ffffff;
  --accent-soft: #ffe6da;
  --danger: #c62828;
  --ok: #1b7f4b;
  --nav-bg: rgba(251, 247, 241, .82);
  --toast-bg: #14213d;
  --toast-ink: #fbf7f1;
  --ring: 0 0 0 3px rgba(255, 90, 31, .22);
  --shadow: 0 1px 2px rgba(20, 33, 61, .08), 0 6px 20px rgba(20, 33, 61, .08);
  --radius: 18px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0c0e13;
  --surface: #151821;
  --surface-2: #1d212c;
  --surface-3: #272c3a;
  --ink: #eef0f6;
  --ink-soft: #9ba3b7;
  --line: #2a2f3c;
  --accent: #ff7b47;
  --accent-ink: #1b0a02;
  --accent-soft: rgba(255, 123, 71, .16);
  --danger: #ff7a7a;
  --ok: #4cd08a;
  --nav-bg: rgba(12, 14, 19, .78);
  --toast-bg: #272c3a;
  --toast-ink: #eef0f6;
  --ring: 0 0 0 3px rgba(255, 123, 71, .3);
  --shadow: 0 0 0 1px rgba(255, 255, 255, .03), 0 12px 32px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0e13;
    --surface: #151821;
    --surface-2: #1d212c;
    --surface-3: #272c3a;
    --ink: #eef0f6;
    --ink-soft: #9ba3b7;
    --line: #2a2f3c;
    --accent: #ff7b47;
    --accent-ink: #1b0a02;
    --accent-soft: rgba(255, 123, 71, .16);
    --danger: #ff7a7a;
    --ok: #4cd08a;
    --nav-bg: rgba(12, 14, 19, .78);
    --toast-bg: #272c3a;
    --toast-ink: #eef0f6;
    --ring: 0 0 0 3px rgba(255, 123, 71, .3);
    --shadow: 0 0 0 1px rgba(255, 255, 255, .03), 0 12px 32px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); min-height: 100vh; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 2rem; text-align: center; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 12px 16px;
  padding: 10px clamp(12px, 2.2vw, 28px); background: var(--nav-bg); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.topbar.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .06); }
:root[data-theme="dark"] .topbar.scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; border-radius: 12px; }
.brand .logo { width: 36px; height: 36px; filter: drop-shadow(0 2px 6px rgba(255, 90, 31, .35)); }
.brand b { color: var(--accent); font-weight: 800; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 9px 16px; border-radius: 999px; font-weight: 650; color: var(--ink); transition: background .15s; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.search-wrap { position: relative; min-width: 0; width: 100%; max-width: 760px; justify-self: center; }
.search { position: relative; display: block; }
.search > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-soft); pointer-events: none; }
.search input[type="search"] { width: 100%; height: 46px; padding: 0 78px 0 44px; border-radius: 999px; border: 1px solid transparent; background: var(--surface-2);
  transition: background .15s, border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.search input[type="search"]::-webkit-search-cancel-button, .search input[type="search"]::-webkit-search-decoration { display: none; }
.search input[type="search"]:hover { background: var(--surface-3); }
.search input[type="search"]:focus { background: var(--surface); border-color: var(--accent); box-shadow: var(--ring); outline: none; }
.search-kbd { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); min-width: 24px; height: 24px; display: grid; place-items: center; padding: 0 6px;
  border-radius: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); font: 600 .8rem/1 var(--font); pointer-events: none; }
.search input[type="search"]:focus ~ .search-kbd, .search input[type="search"]:not(:placeholder-shown) ~ .search-kbd { display: none; }
.search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: none; background: transparent; font-size: 1.4rem; line-height: 1; color: var(--ink-soft); }
.search-clear:hover { background: var(--surface-3); color: var(--ink); }
.suggest-panel { position: absolute; z-index: 45; left: 0; right: 0; top: calc(100% + 8px); padding: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow); max-height: min(70vh, 520px); overflow: auto; }
.sp-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 4px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.sp-link { border: none; background: none; color: var(--accent); font-weight: 700; font-size: .82rem; padding: 2px 6px; border-radius: 6px; text-transform: none; letter-spacing: 0; }
.sp-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 12px; border: none; border-radius: 12px; background: transparent; text-align: left; }
.sp-item[aria-selected="true"] { background: var(--surface-2); }
.sp-main { display: flex; flex-direction: column; min-width: 0; }
.sp-label { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-sub { font-size: .8rem; color: var(--ink-soft); }
.sp-x { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-soft); font-size: 1.15rem; }
.sp-x:hover { background: var(--surface-3); color: var(--ink); }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 12px 10px; }
.sp-empty { padding: 16px 12px; color: var(--ink-soft); }
.actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.create-btn { padding: 10px 18px 10px 14px; box-shadow: 0 4px 14px rgba(255, 90, 31, .28); }
.create-btn svg { width: 18px; height: 18px; }
.acct { display: grid; place-items: center; padding: 2px; border: 2px solid transparent; border-radius: 50%; background: transparent; }
.acct:hover, .acct[aria-expanded="true"] { border-color: var(--accent); }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-weight: 700; flex: none; }
.avatar.md { width: 44px; height: 44px; font-size: 1.1rem; }
.avatar.lg { width: 96px; height: 96px; font-size: 2.4rem; font-family: var(--display); }
.avatar.sm { width: 28px; height: 28px; font-size: .8rem; }
.menu-head { display: flex !important; gap: 12px; align-items: center; padding: 10px 12px 12px !important; margin: 0 0 6px; border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0 !important; }
.menu-head .who { display: flex; flex-direction: column; min-width: 0; }
.menu-head strong, .menu-head small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-head small { color: var(--ink-soft); font-weight: 500; }
.spacer { flex: 1; }
.search input[type="search"]::placeholder { color: var(--ink-soft); }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid transparent; background: var(--surface-2); font-weight: 700; line-height: 1.2; white-space: nowrap; }
.btn:hover { filter: brightness(.96); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.sm { padding: 6px 12px; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: none; background: transparent; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .92rem; }
.field .hint { color: var(--ink-soft); font-size: .85rem; }
.field .err { color: var(--danger); font-size: .88rem; min-height: 1em; }
input[type="text"], input[type="password"], input[type="search"], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 90px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; }

/* ---------- layout ---------- */
.page { padding: 18px 16px 80px; max-width: 1700px; margin: 0 auto; }
.narrow { max-width: 460px; margin: 6vh auto; background: var(--surface); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.narrow h1, .page h1 { font-family: var(--display); letter-spacing: -.02em; margin: 0 0 6px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; justify-content: center; margin: 4px 0 18px; flex-wrap: wrap; }
.tab { padding: 9px 16px; border-radius: 999px; font-weight: 700; border: none; background: transparent; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tab:not([aria-selected="true"]):hover { background: var(--surface-2); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: .9rem; font-weight: 600; border: 1px solid transparent; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.trending { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.trending::-webkit-scrollbar { display: none; }

/* ---------- masonry ---------- */
.masonry { display: flex; gap: 16px; align-items: flex-start; }
.mcol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.card .ph { width: 100%; background: var(--surface-2); }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card .shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 35%, transparent 60%, rgba(0,0,0,.45));
  opacity: 0; transition: opacity .15s; pointer-events: none; }
.card:hover .shade, .card:focus-within .shade { opacity: 1; }
.card .open { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card .acts { position: absolute; z-index: 2; top: 10px; right: 10px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.card .bottom { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; opacity: 0; transition: opacity .15s; }
.card:hover .acts, .card:hover .bottom, .card:focus-within .acts, .card:focus-within .bottom { opacity: 1; }
@media (hover: none) {
  .card .acts, .card .bottom { opacity: 1; }
  .card .shade { display: none; }
  .card .bottom { justify-content: flex-end; }
  .card .bottom .pill:first-child { display: none; } /* like lives on the meme page on touch screens */
  .card .pill { padding: 6px 11px; }
}
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px; border: none; font-weight: 700; font-size: .85rem;
  background: rgba(255,255,255,.95); color: #14213d; white-space: nowrap; }
.pill.hot { background: var(--accent); color: #fff; }
.pill svg { width: 16px; height: 16px; flex: none; }
.card .meta { padding: 8px 4px 0; }
.card-title { font-weight: 700; font-size: .92rem; margin: 8px 4px 0; line-height: 1.3; overflow-wrap: anywhere; }
.card-by { font-size: .8rem; color: var(--ink-soft); margin: 2px 4px 0; }
.gif-badge { position: absolute; z-index: 2; left: 10px; top: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: .72rem; font-weight: 800; }

.sentinel { height: 60px; display: grid; place-items: center; color: var(--ink-soft); }
.empty { text-align: center; padding: 70px 20px; color: var(--ink-soft); }
.empty h2 { font-family: var(--display); color: var(--ink); margin: 0 0 8px; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } * { scroll-behavior: auto !important; transition: none !important; } }

/* ---------- pin page ---------- */
.pin-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); max-width: 1100px; margin: 8px auto 40px; background: var(--surface);
  border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); }
.pin-img { background: var(--surface-2); display: grid; align-content: start; }
.pin-img img { width: 100%; height: auto; }
.pin-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pin-body h1 { font-family: var(--display); font-size: 1.9rem; line-height: 1.15; margin: 0; overflow-wrap: anywhere; letter-spacing: -.02em; }
.pin-desc { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.pin-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.author { display: flex; align-items: center; gap: 12px; }
.author .who { flex: 1; min-width: 0; }
.author .who strong, .author .who span { display: block; overflow: hidden; text-overflow: ellipsis; }
.stats { color: var(--ink-soft); font-size: .9rem; }
.comments { display: grid; gap: 12px; }
.comment { display: flex; gap: 10px; }
.comment .bubble { flex: 1; min-width: 0; }
.comment p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment small { color: var(--ink-soft); }
.comment-form { display: flex; gap: 8px; align-items: flex-end; }
.comment-form textarea { min-height: 44px; height: 44px; }
.removed-banner { background: var(--accent-soft); border: 1px solid var(--accent); padding: 10px 14px; border-radius: 12px; font-size: .92rem; }
@media (max-width: 800px) { .pin-wrap { grid-template-columns: 1fr; border-radius: 24px; } }

/* ---------- profile ---------- */
.profile { display: grid; justify-items: center; gap: 6px; padding: 18px 0 8px; text-align: center; }
.profile h1 { font-size: 2.2rem; }
.profile .stats strong { color: var(--ink); }
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.board-card { display: block; }
.board-cover { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; height: 170px; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.board-cover img { width: 100%; height: 100%; object-fit: cover; }
.board-cover img:first-child { grid-row: 1 / 3; }
.board-card h3 { margin: 8px 4px 0; font-size: 1rem; }
.board-card p { margin: 0 4px; color: var(--ink-soft); font-size: .85rem; }

/* ---------- modal / popover / toast ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(10, 14, 28, .55); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { width: min(480px, 100%); background: var(--surface); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); max-height: 92vh; overflow-y: auto; }
.modal h2 { font-family: var(--display); margin: 0 0 12px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; flex-wrap: wrap; }
.menu { position: absolute; z-index: 40; min-width: 220px; max-width: 320px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 8px; }
.menu button, .menu a { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: none; background: transparent; border-radius: 10px; text-align: left; font-weight: 600; }
.menu button:hover, .menu a:hover { background: var(--surface-2); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu .on::after { content: "✓"; margin-left: auto; color: var(--ok); }
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; width: min(420px, calc(100% - 24px)); }
.toast { background: var(--toast-bg); color: var(--toast-ink); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow); font-weight: 600; border: 1px solid var(--line); }
.toast.error { background: var(--danger); color: #fff; }

/* ---------- upload ---------- */
.upload { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; max-width: 980px; margin: 10px auto; background: var(--surface); padding: 28px; border-radius: 28px; box-shadow: var(--shadow); }
.drop { min-height: 380px; border: 2px dashed var(--line); border-radius: 22px; display: grid; place-items: center; text-align: center; padding: 20px; background: var(--surface-2); cursor: pointer; overflow: hidden; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop img { max-height: 520px; width: auto; margin: 0 auto; border-radius: 12px; }
.drop .big { font-family: var(--display); font-size: 1.3rem; font-weight: 700; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.progress > div { height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.tag-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tag-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tag-input input { flex: 1; min-width: 120px; border: none; padding: 6px; background: transparent; box-shadow: none !important; }
.tag-input .chip button { border: none; background: none; padding: 0 0 0 6px; font-weight: 800; }
.suggest { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 800px) { .upload { grid-template-columns: 1fr; padding: 18px; } }

/* ---------- onboarding ---------- */
.topics { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0; }
.topic { padding: 12px 20px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); font-weight: 700; }
.topic[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- moderation ---------- */
.mod-item { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 14px; background: var(--surface); border-radius: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.mod-item img { width: 120px; border-radius: 10px; }
.mod-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- responsive top bar ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .topbar { grid-template-columns: auto minmax(0, 1fr) auto; }
}
@media (max-width: 720px) {
  .topbar { grid-template-columns: 1fr auto; grid-template-areas: "brand actions" "search search"; padding: 8px 12px 10px; gap: 8px 10px; }
  .brand { grid-area: brand; }
  .actions { grid-area: actions; gap: 4px; }
  .search-wrap { grid-area: search; max-width: none; }
  .search input[type="search"] { height: 42px; padding-right: 40px; }
  .search-kbd { display: none; }
  .create-btn .lbl { display: none; }
  .create-btn { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
  .login-btn { display: none; }
  .suggest-panel { position: fixed; left: 10px; right: 10px; top: 108px; }
}

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .masonry, .mcol { gap: 10px; }
  .page { padding: 12px 10px 80px; }
  .pin-body { padding: 18px; }
  .pin-body h1 { font-size: 1.5rem; }
}

/* ---------- dark theme refinements ---------- */
::selection { background: var(--accent); color: var(--accent-ink); }
::placeholder { color: var(--ink-soft); opacity: .85; }
.pin-wrap, .narrow, .modal, .menu, .upload, .mod-item, .board-card .board-cover { border: 1px solid var(--line); }
input[type="text"], input[type="password"], input[type="search"], textarea, select { background: var(--surface-2); border-color: transparent; }
input[type="text"]:hover, input[type="password"]:hover, textarea:hover, select:hover { border-color: var(--line); }
input[type="text"]:focus, input[type="password"]:focus, textarea:focus, select:focus { background: var(--surface); box-shadow: var(--ring); }
.btn:hover { background: var(--surface-3); filter: none; }
.btn.primary:hover { background: var(--accent); filter: brightness(1.08); }
.btn.dark:hover { background: var(--ink); filter: brightness(.92); }
.btn.ghost:hover { background: var(--surface-2); }
.icon-btn:hover { background: var(--surface-3); }
.chip:hover { background: var(--surface-3); }
.chip[aria-pressed="true"]:hover { background: var(--accent); }
.tab:not([aria-selected="true"]):hover { background: var(--surface-2); }
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.tag-input, .drop { background: var(--surface-2); border-color: var(--line); }
.tag-input input { background: transparent; }
.drop.over { background: var(--accent-soft); }
.card { box-shadow: 0 0 0 1px var(--line); }
:root[data-theme="dark"] .card img { filter: brightness(.93) contrast(1.02); }
:root[data-theme="dark"] .card:hover img { filter: none; }
.removed-banner { background: var(--accent-soft); color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card img { filter: brightness(.93) contrast(1.02); }
  :root:not([data-theme="light"]) .card:hover img { filter: none; }
  :root:not([data-theme="light"]) .topbar.scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
}
