/*
 * Glass finish.
 *
 * Appearance only. This layer must never touch geometry: no padding, margin,
 * width, height, display, position or gap, so the compact layout and its measured
 * invariants (28rem entry, five columns at 1280, fixed rail width) stay exactly as
 * the recovered stylesheet set them. Loaded last, so it wins on everything it does
 * declare.
 *
 * The material is liquid glass in the Horizon OS sense: translucent layered
 * surfaces, a 1px light hairline, an inner top highlight, a soft ambient shadow,
 * and background blur on the chrome. Blur is applied only where the area is small
 * or static (rail, top bar, menus, popovers, opened dossier) because blurring
 * twenty photographic cards is a measurable frame cost for no legibility gain.
 */

/* ---------------------------------------------------------------- material tokens */
/*
 * Semantic tokens first, then four palettes. Values stay inside the Horizon OS
 * bounds: nothing brighter than #DADADA, nothing darker than #1A1A1A, and dark
 * themes sit a little lower in saturation than light ones.
 */
:root {
  --glass-blur: 18px;
  --glass-blur-sm: 10px;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 16px;
  --r-pill: 100px;

  --hairline: rgba(232, 234, 238, 0.12);
  --hairline-strong: rgba(232, 234, 238, 0.22);
  --highlight: rgba(236, 238, 241, 0.07);
  --lift: 0 18px 40px -26px rgba(16, 17, 20, 0.7), 0 1px 3px -2px rgba(16, 17, 20, 0.5);
  --glass-edge: inset 0 1px 0 var(--highlight);
  --glow: 0 0 0 1px rgba(240, 101, 111, 0.32), 0 8px 26px -14px rgba(240, 101, 111, 0.42);

  /* surfaces that are effectively "white" or "black" inside the material */
  --on-accent: #eceded;
  --thumb: #dcdde0;
}

/* ------------------------------------------------ charcoal (dark) */
:root[data-theme="charcoal"] {
  --menu-bg: #1f2228;
  --on-accent: #1a1c21;
  color-scheme: dark;

  --bg: #1a1c21;
  --panel: rgba(40, 43, 50, 0.74);
  --overlay-bg: rgba(30, 32, 38, 0.84);
  --overlay-border: rgba(232, 234, 238, 0.14);

  --text: #e7e9ed;
  --text-dim: #b6bcc6;
  --muted: rgba(231, 233, 237, 0.68);
  --border: rgba(232, 234, 238, 0.12);

  --accent: #ef6470;
  --accent-a: #ef6470;
  --accent-b: #f0855f;
  --accent-fill: rgba(239, 100, 112, 0.16);
  --accent-text: #f4919a;
  --danger: #ef7272;

  --shadow-1: 0 1px 0 rgba(16, 17, 20, 0.5);
  --focus-ring: 0 0 0 2px rgba(239, 100, 112, 0.5);
  --skel: rgba(232, 234, 238, 0.08);
  --item-hover: rgba(232, 234, 238, 0.07);
  --scrollbar-thumb: rgba(232, 234, 238, 0.24);
  --scrollbar-thumb-hover: rgba(232, 234, 238, 0.36);
  --scrollbar-thumb-active: rgba(232, 234, 238, 0.46);

  --wash-a: rgba(239, 100, 112, 0.13);
  --wash-b: rgba(122, 140, 232, 0.11);
}

/* ------------------------------------------------ ember (dark, warm) */
:root[data-theme="ember"] {
  --menu-bg: #241f1c;
  --on-accent: #1d1a18;
  color-scheme: dark;

  --bg: #1d1a18;
  --panel: rgba(48, 40, 37, 0.74);
  --overlay-bg: rgba(34, 28, 26, 0.86);
  --overlay-border: rgba(238, 232, 228, 0.14);

  --text: #ece5e1;
  --muted: rgba(236, 229, 225, 0.68);
  --border: rgba(238, 232, 228, 0.12);

  --accent: #f0704f;
  --accent-a: #f0704f;
  --accent-b: #f0a061;
  --accent-fill: rgba(240, 112, 79, 0.16);
  --accent-text: #f59a80;

  --skel: rgba(238, 232, 228, 0.08);
  --item-hover: rgba(238, 232, 228, 0.07);
  --focus-ring: 0 0 0 2px rgba(240, 112, 79, 0.5);

  --wash-a: rgba(240, 112, 79, 0.14);
  --wash-b: rgba(240, 160, 97, 0.1);
  --hairline: rgba(238, 232, 228, 0.13);
}

/* ------------------------------------------------ cloud (light, cool) */
:root[data-theme="cloud"] {
  --menu-bg: #dfe2e7;
  --on-accent: #eceef1;
  color-scheme: light;

  --bg: #ccd0d7;
  --panel: rgba(212, 215, 221, 0.72);
  --overlay-bg: rgba(216, 219, 224, 0.86);
  --overlay-border: rgba(30, 33, 38, 0.14);

  --text: #1c1f24;
  --text-dim: #3d434c;
  --muted: rgba(28, 31, 36, 0.72);
  --border: rgba(30, 33, 38, 0.14);

  --accent: #b8262f;
  --accent-a: #c22a33;
  --accent-b: #d2612f;
  --accent-fill: rgba(184, 38, 47, 0.12);
  --accent-text: #9c1f28;

  --shadow-1: 0 1px 0 rgba(218, 221, 226, 0.7);
  --focus-ring: 0 0 0 2px rgba(184, 38, 47, 0.4);
  --skel: rgba(30, 33, 38, 0.09);
  --item-hover: rgba(30, 33, 38, 0.06);
  --scrollbar-thumb: rgba(30, 33, 38, 0.24);
  --scrollbar-thumb-hover: rgba(30, 33, 38, 0.36);

  --hairline: rgba(228, 231, 236, 0.78);
  --hairline-strong: rgba(232, 235, 240, 0.92);
  --highlight: rgba(232, 235, 240, 0.9);
  --lift: 0 18px 40px -28px rgba(28, 31, 36, 0.38), 0 1px 3px -2px rgba(28, 31, 36, 0.22);
  --wash-a: rgba(184, 38, 47, 0.09);
  --wash-b: rgba(92, 118, 208, 0.11);
  --thumb: #eceef1;
}

/* ------------------------------------------------ linen (light, warm) */
:root[data-theme="linen"] {
  --menu-bg: #e4e0d7;
  --on-accent: #eceef1;
  color-scheme: light;

  --bg: #d8d3c9;
  --panel: rgba(219, 214, 203, 0.72);
  --overlay-bg: rgba(224, 219, 209, 0.86);
  --overlay-border: rgba(30, 27, 23, 0.14);

  --text: #1f1b17;
  --muted: rgba(31, 27, 23, 0.72);
  --border: rgba(30, 27, 23, 0.14);

  --accent: #a83822;
  --accent-a: #b03c24;
  --accent-b: #b8763a;
  --accent-fill: rgba(168, 56, 34, 0.12);
  --accent-text: #8f2d19;

  --skel: rgba(30, 27, 23, 0.09);
  --item-hover: rgba(30, 27, 23, 0.06);
  --focus-ring: 0 0 0 2px rgba(168, 56, 34, 0.4);

  --hairline: rgba(226, 221, 211, 0.8);
  --hairline-strong: rgba(230, 226, 216, 0.94);
  --highlight: rgba(230, 226, 216, 0.92);
  --lift: 0 18px 40px -28px rgba(31, 27, 23, 0.34), 0 1px 3px -2px rgba(31, 27, 23, 0.2);
  --wash-a: rgba(168, 56, 34, 0.08);
  --wash-b: rgba(214, 168, 106, 0.12);
  --thumb: #eceef1;
}

/* ---------------------------------------------------------------- ambient field */
/* A fixed wash behind the sheet, which is what the glass has to refract. */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 620px at 12% -12%, var(--wash-a), transparent 62%),
    radial-gradient(1000px 560px at 88% -6%, var(--wash-b), transparent 58%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text);
}

/* ---------------------------------------------------------------- chrome */
.topbar {
  background: color-mix(in oklab, var(--panel), transparent 22%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--glass-edge), 0 8px 24px -20px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
}

.sidebar {
  background: color-mix(in oklab, var(--panel), transparent 30%);
  border-right: 1px solid var(--border);
  box-shadow: var(--glass-edge);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
}

/* the rail becomes an overlay on narrow screens, and it should float */
.sidebar.filters-open {
  background: color-mix(in oklab, var(--panel), transparent 12%);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

/* ---------------------------------------------------------------- bars and pills */
.bar {
  background: color-mix(in oklab, var(--panel), transparent 28%);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--glass-edge), var(--lift);
  backdrop-filter: blur(var(--glass-blur-sm)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--glass-blur-sm)) saturate(150%);
}

.btn {
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--panel), transparent 45%);
  box-shadow: var(--glass-edge);
  color: var(--text-dim, var(--muted));
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.btn:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--hairline-strong);
  background: color-mix(in oklab, var(--panel), transparent 28%);
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  border-color: var(--border);
  background: transparent;
  color: var(--muted);
}

.btn.ghost {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.btn.ghost:hover:not(:disabled) {
  border-color: var(--border);
  background: var(--item-hover);
}

.chip {
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--panel), transparent 40%);
  box-shadow: var(--glass-edge);
}

.chip.chipActive {
  border-color: color-mix(in oklab, var(--accent), transparent 40%);
  background: var(--accent-fill);
  color: var(--accent-text);
}

/* ---------------------------------------------------------------- selects */
.csel-trigger {
  border-radius: var(--r-pill);
  padding-inline: 10px;
  background: color-mix(in oklab, var(--panel), transparent 46%);
  border: 1px solid transparent;
  box-shadow: var(--glass-edge);
  transition: background 0.16s ease, border-color 0.16s ease;
}

.csel-trigger:hover {
  border-color: var(--border);
  background: color-mix(in oklab, var(--panel), transparent 30%);
}

.csel[aria-expanded="true"] .csel-trigger,
.csel-trigger[aria-expanded="true"] {
  border-color: var(--hairline-strong);
}

.csel-menu {
  border-radius: var(--r-md);
  border: 1px solid var(--overlay-border, var(--border));
  background: color-mix(in oklab, var(--overlay-bg), transparent 6%);
  box-shadow: var(--glass-edge), 0 24px 48px -24px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  padding: 6px;
}

.csel-option {
  border-radius: var(--r-sm);
}

.csel-option:hover {
  background: var(--item-hover);
}

.csel-option.csel-active {
  background: var(--accent-fill);
  color: var(--accent-text);
}

.csel-option.csel-active::after {
  border-radius: var(--r-pill);
}

/* ---------------------------------------------------------------- popovers */
.popup {
  border-radius: var(--r-lg);
  border: 1px solid var(--overlay-border, var(--border));
  background: color-mix(in oklab, var(--overlay-bg), transparent 4%);
  box-shadow: var(--glass-edge), 0 28px 56px -26px rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
}

/* ---------------------------------------------------------------- rail controls */
.viewTab {
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  padding-inline: 11px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.viewTab:hover:not(:disabled) {
  background: var(--item-hover);
}

.viewTab.active {
  color: var(--text);
  border-color: color-mix(in oklab, var(--accent), transparent 45%);
  background: var(--accent-fill);
  box-shadow: var(--glass-edge);
}

.ms {
  border-top: 1px solid var(--border);
}

.catTreeBox,
.msBox,
.freeOnlyCheck input,
.popup .fieldRow input {
  border-radius: var(--r-xs);
  border-color: color-mix(in oklab, var(--text), transparent 65%);
  transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.catTreeCheck.checked .catTreeBox,
.msBox.checked,
.freeOnlyCheck input:checked,
.popup .fieldRow input:checked {
  background: linear-gradient(140deg, var(--accent-a, var(--accent)), var(--accent-b, var(--accent)));
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.catTreeExpand,
.msToggle {
  border-radius: var(--r-xs);
}

.msToggle:hover,
.catTreeCheck:hover .catTreeLabel {
  color: var(--text);
}

/* the price range becomes a lit track */
.rsTrack {
  border-radius: var(--r-pill);
  background: color-mix(in oklab, var(--text), transparent 82%);
}

.rsFill {
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--accent-a, var(--accent)), var(--accent-b, var(--accent)));
  box-shadow: 0 0 12px -2px color-mix(in oklab, var(--accent), transparent 40%);
}

.rsInput::-webkit-slider-thumb {
  border-radius: var(--r-pill);
  background: var(--thumb);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.rsInput::-moz-range-thumb {
  border-radius: var(--r-pill);
  background: var(--thumb);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.6);
}

.input {
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--panel), transparent 55%);
  padding-inline: 9px;
  box-shadow: var(--glass-edge);
}

.input:focus {
  border-color: color-mix(in oklab, var(--accent), transparent 40%);
  box-shadow: var(--focus-ring);
}

.searchInput {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding-inline: 0;
}

/* ---------------------------------------------------------------- entries */
/*
 * Translucent, hairline, rounded. No blur here on purpose: twenty photographic
 * cards with backdrop filters is a real frame cost, and the plate carries the
 * colour anyway.
 */
.card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--panel), transparent 18%),
    color-mix(in oklab, var(--panel), transparent 40%)
  );
  box-shadow: var(--glass-edge), var(--lift);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-2px);
    border-color: var(--hairline-strong);
    box-shadow: var(--glass-edge), 0 26px 54px -28px rgba(0, 0, 0, 0.75);
  }
}

.card.cardOpen {
  border-color: color-mix(in oklab, var(--accent), transparent 55%);
}

.cardMedia {
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg), transparent 20%);
}

.cardImg {
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1), filter 0.18s ease;
}

.cardBadge {
  border-radius: var(--r-xs);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: color-mix(in oklab, var(--overlay-bg), transparent 10%);
  border: 1px solid var(--overlay-border, var(--border));
  color: var(--text);
}

.cardBadge.adult {
  background: linear-gradient(140deg, var(--accent-a, var(--accent)), var(--accent-b, var(--accent)));
  border-color: transparent;
  color: var(--on-accent);
}

.cardFav {
  border-radius: var(--r-pill);
  border: 1px solid var(--overlay-border, var(--border));
  background: color-mix(in oklab, var(--overlay-bg), transparent 18%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cardFav.active {
  color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent), transparent 45%);
}

.cardSection {
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--panel), transparent 55%);
  box-shadow: var(--glass-edge);
  overflow: hidden;
}

.cardToggle {
  background: transparent;
  border-radius: 0;
}

.cardToggle:hover {
  background: var(--item-hover);
  color: var(--text);
}

.cardMetaPanel {
  border-radius: var(--r-sm);
  background: color-mix(in oklab, var(--overlay-bg), transparent 10%);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.card.cardOpen .cardMetaPanel {
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}

.cardMetaSection {
  border-bottom: 1px solid var(--border);
}

.cardQualityNote {
  border-top: 1px solid var(--border);
}

.cardFoot {
  border-top: 1px solid var(--border);
}

/* ---------------------------------------------------------------- pager */
.pagerBtn,
.pagerNum {
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.pagerBtn:hover:not(:disabled),
.pagerNum:hover {
  border-color: var(--border);
  background: var(--item-hover);
}

.pagerNum.active {
  border-color: color-mix(in oklab, var(--accent), transparent 45%);
  background: var(--accent-fill);
  color: var(--accent-text);
}

/* ---------------------------------------------------------------- states */
.toast {
  border-radius: var(--r-pill);
  border: 1px solid var(--overlay-border, var(--border));
  background: color-mix(in oklab, var(--overlay-bg), transparent 8%);
  color: var(--text);
  box-shadow: var(--glass-edge), 0 20px 40px -20px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.emptyState {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--panel), transparent 40%);
  box-shadow: var(--glass-edge);
}

.scrollSentinel[data-state="end"] {
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.skelBlock {
  border-radius: var(--r-sm);
  background: linear-gradient(
    90deg,
    var(--skel) 0%,
    color-mix(in oklab, var(--text), transparent 92%) 50%,
    var(--skel) 100%
  );
  background-size: 200% 100%;
  animation: glass-sheen 1.6s ease-in-out infinite;
}

@keyframes glass-sheen {
  0% {
    background-position: 140% 0;
  }
  100% {
    background-position: -40% 0;
  }
}

/* ---------------------------------------------------------------- focus */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-sm);
}

/* ---------------------------------------------------------------- fallbacks */
/* If the browser cannot blur, the panels become solid enough to stay readable. */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .topbar,
  .sidebar,
  .bar,
  .csel-menu,
  .popup,
  .toast,
  .cardMetaPanel,
  .sidebar.filters-open {
    background: var(--bg);
  }

  .card {
    background: color-mix(in oklab, var(--bg), var(--text) 5%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }

  .skelBlock {
    animation: none;
  }

  .cardImg {
    transition: none;
  }
}
/* ---------------------------------------------------------------- popup status */
/* a quiet status line inside the search settings popover */
.popupStatus {
  margin-top: 0.125rem;
  padding-top: 0.375rem;
  border-top: 1px solid var(--border);
  color: var(--accent-text);
  letter-spacing: 0;
  text-transform: none;
}

/* ---------------------------------------------------------------- layering */
/*
 * backdrop-filter makes an element its own stacking context with an automatic
 * z-index. That is why the sort menu painted underneath the search row once the
 * bar gained a blur. The chrome now declares its layers explicitly: content
 * lowest, then the rail, then the bar, then the top bar, with menus and popovers
 * on top of everything inside their own context.
 */
.topbar {
  z-index: 30;
}

.bar {
  position: relative;
  z-index: 20;
}

.sidebar {
  z-index: 15;
}

.content {
  position: relative;
  z-index: 0;
}

.searchline,
.searchStatsRow,
.resultbar,
.wrap,
.colophon,
.masthead {
  position: relative;
  z-index: 1;
}

/*
 * The stats row is the only one of those that carries popovers: the trace report that opens on
 * the timing chip, and the search suggestions. A child z-index means nothing outside its parent's
 * stacking context, so the popup at 70 was still losing to the grid at 1, which is a later sibling
 * and therefore painted last. The row itself has to sit above the grid. It stays below the rail
 * (15), the bar (20) and the top bar (30), so drawers and menus still win.
 */
.searchStatsRow {
  z-index: 12;
}

.csel-menu {
  z-index: 60;
}

.popup {
  z-index: 70;
}

/* ---------------------------------------------------------------- menu surface */
/*
 * A backdrop-filter nested inside another backdrop-filter has nothing to sample in
 * Chromium, so dropdowns and popovers were letting card art read through the text.
 * They carry a near opaque surface instead. The glass read still comes from the
 * hairline, the inner highlight and the ambient shadow.
 */
.csel-menu,
.popup,
.toast {
  background: var(--menu-bg);
}

/* an item whose image has not been pulled yet: the mark sits on the plate quietly */
/* only while the real photo is missing; the attribute is removed once it arrives */
.cardImg[data-needs-image="1"] {
  object-fit: contain;
  padding: 18%;
  background: color-mix(in oklab, var(--bg), var(--text) 4%);
  opacity: 0.75;
}

/* the image quality note stays visible, not buried in a card's detail panel */
.colophon-note {
  flex: 1 1 100%;
  order: 3;
  margin-top: 0.25rem;
  padding-top: 0.375rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: 0;\n  text-transform: none;
  font-family: var(--font-body, inherit);
  font-size: 0.6875rem;
}


/* ---------------------------------------------------------------- image note */
/*
 * The dataset ships no images, so the plates are cached thumbnails. Saying so once,
 * under the grid, is cheaper than repeating it on every card and still honest.
 */
.imageNote,
.buildNote {
  margin: 0.5rem 0 0;
  font-family: var(--font-mono, ui-monospace, Consolas, monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: center;
}

.imageNote a {
  color: var(--accent-text);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--accent), transparent 55%);
}

.buildNote {
  margin-top: 0.25rem;
  font-size: 0.625rem;
  opacity: 0.75;
}

/* the same note, but where it is actually seen: directly above the plates */
.imageNoteInline {
  margin: 0 0 0.5rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono, ui-monospace, Consolas, monospace);
  font-size: 0.6563rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.imageNoteInline a {
  color: var(--accent-text);
  border-bottom: 1px solid color-mix(in oklab, var(--accent), transparent 55%);
}

/* ---------------------------------------------------------------- plate note */
/*
 * The quality note sits in the plate corner as a small mark rather than across the image.
 * The flyout carries the sentence, and appears on hover or keyboard focus, so it is
 * always reachable and never in the way.
 */
.thumbNote {
  position: absolute;
  right: 0.4375rem;
  bottom: 0.4375rem;
  z-index: 3;
  width: 1.375rem;
  height: 1.375rem;
  display: grid;
  place-items: center;
  border-radius: 100px;
  /* sits on photography, so it is dark and solid on every theme */
  border: 1px solid rgba(236, 238, 242, 0.45);
  background: rgba(16, 18, 23, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #eceef2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  opacity: 0.94;
  transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease,
    transform 0.15s ease;
}

.card:hover .thumbNote,
.thumbNote:focus-visible {
  opacity: 1;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.thumbNoteMark {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1;
  letter-spacing: 0;
}

.thumbNoteFly {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  width: max-content;
  max-width: 15rem;
  padding: 0.4375rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--overlay-border, var(--border));
  background: var(--menu-bg, var(--bg));
  color: var(--text);
  font-family: var(--font-body, inherit);
  font-size: 0.6563rem;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: left;
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(2px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.thumbNote:hover .thumbNoteFly,
.thumbNote:focus-visible .thumbNoteFly {
  opacity: 1;
  transform: translateY(0);
}

.thumbNoteGo {
  color: var(--accent-text);
}

@media (prefers-reduced-motion: reduce) {
  .thumbNote,
  .thumbNoteFly {
    transition: none;
  }
}

/* ---------------------------------------------------------------- price chip */
/*
 * The recovered sheet declares .cardPrice twice; the later rule paints it with
 * var(--accent-fill), a 16 percent wash, and keeps white text. On a pale product
 * photo that is almost invisible. The chip becomes solid and self contained, which
 * also survives any future theme, since it sits on photography rather than the page.
 */
.cardPrice {
  background: rgba(14, 16, 21, 0.88);
  color: #eef0f4;
  border: 1px solid rgba(236, 238, 242, 0.3);
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 700;
}
