/*
 * UI/UX-Designsystem (Mirko 2026-10-08) - gemeinsame Bausteine, unabhängig von Stil und Navigation:
 *   1. UI/UX-Fenster mit Reitern (includes/header.php, assets/js/ws.js initUx)
 *   2. Typografie-Tokens: Textrollen display … kpi (Briefing §9); „Standard“ = die bisherigen Werte, also keine Änderung.
 *      Voreinstellungen über <html data-type="editorial|technical|premium">.
 *   3. Symbole: Strichstärke zentral über <html data-icons="fine|bold">
 *   4. Bewegung: <html data-motion="reduced"> wie prefers-reduced-motion (Überblenden statt Bewegung)
 * Bewegungs-Tokens nach der Recherche docs/reports/UIUX Designsystem Recherche 2026-10.md (IBM Carbon / Material):
 * Hover 120–200 ms, Panels 220–400 ms, Navigation 250–450 ms, ruhige Kurve.
 */

:root {
  --ease-calm: cubic-bezier(.2, 0, .38, .9);
  --ease-move: cubic-bezier(.65, 0, .3, 1);
  --dur-hover: 160ms; --dur-panel: 300ms; --dur-nav: 420ms;
  --cube-halo: rgba(28, 30, 34, .35); --cube-halo-wide: transparent; /* Würfel mit anderen Stilen als Pure Minimal */

  /* Textrollen: Größe / Gewicht / Zeilenhöhe / Laufweite / Schreibweise */
  --t-display-fs: clamp(2.25rem, 5vw, 4rem); --t-display-fw: 700; --t-display-lh: 1.04; --t-display-ls: -.02em; --t-display-tt: none;
  --t-h1-fs: var(--fs-6); --t-h1-fw: 700; --t-h1-lh: 1.2; --t-h1-ls: -.01em; --t-h1-tt: none;
  --t-h2-fs: var(--fs-5); --t-h2-fw: 700; --t-h2-lh: 1.2; --t-h2-ls: -.01em; --t-h2-tt: none;
  --t-h3-fs: var(--fs-4); --t-h3-fw: 700; --t-h3-lh: 1.2; --t-h3-ls: -.01em; --t-h3-tt: none;
  --t-label-fs: var(--fs-1); --t-label-fw: 700; --t-label-ls: .06em; --t-label-tt: uppercase;
  --t-nav-ls: 0; --t-nav-tt: none; --t-nav-fw: 600;
  --t-kpi-fs: 2.5rem; --t-kpi-fw: 700; --t-kpi-ls: -.02em;
  --t-body-lh: 1.5;
  --t-num: normal;
}
:root[data-type="editorial"] {
  --t-display-fw: 300; --t-display-ls: -.035em;
  --t-h1-fs: 2.25rem; --t-h1-fw: 300; --t-h1-lh: 1.08; --t-h1-ls: -.025em;
  --t-h2-fs: 1.5rem; --t-h2-fw: 400; --t-h2-lh: 1.15; --t-h2-ls: -.015em;
  --t-h3-fs: 1.0625rem; --t-h3-fw: 600; --t-h3-ls: 0;
  --t-label-ls: .14em; --t-nav-ls: .02em;
  --t-kpi-fw: 300;
  --t-body-lh: 1.55;
}
:root[data-type="technical"] {
  --t-display-fw: 600; --t-display-ls: -.01em; --t-display-tt: uppercase;
  --t-h1-fs: 1.375rem; --t-h1-fw: 600; --t-h1-ls: .03em; --t-h1-tt: uppercase;
  --t-h2-fs: 1rem; --t-h2-fw: 600; --t-h2-ls: .05em; --t-h2-tt: uppercase;
  --t-h3-fs: .9375rem; --t-h3-fw: 600; --t-h3-ls: .02em;
  --t-label-ls: .1em; --t-nav-ls: .04em; --t-nav-tt: uppercase; --t-nav-fw: 600;
  --t-kpi-fw: 600; --t-kpi-ls: 0;
  --t-num: tabular-nums;
}
:root[data-type="premium"] {
  --t-display-fw: 200; --t-display-ls: -.01em;
  --t-h1-fs: 2rem; --t-h1-fw: 300; --t-h1-lh: 1.15; --t-h1-ls: .005em;
  --t-h2-fs: 1.3125rem; --t-h2-fw: 400; --t-h2-ls: .005em;
  --t-h3-fw: 500; --t-h3-ls: .01em;
  --t-label-ls: .18em; --t-nav-ls: .03em; --t-nav-fw: 500;
  --t-kpi-fw: 200;
  --t-body-lh: 1.65;
}
/* Rollen auf die Elemente legen - in „Standard“ exakt die bisherigen Werte aus app.css. */
h1 { font-size: var(--t-h1-fs); font-weight: var(--t-h1-fw); line-height: var(--t-h1-lh); letter-spacing: var(--t-h1-ls); text-transform: var(--t-h1-tt); }
h2 { font-size: var(--t-h2-fs); font-weight: var(--t-h2-fw); line-height: var(--t-h2-lh); letter-spacing: var(--t-h2-ls); text-transform: var(--t-h2-tt); }
h3 { font-size: var(--t-h3-fs); font-weight: var(--t-h3-fw); line-height: var(--t-h3-lh); letter-spacing: var(--t-h3-ls); text-transform: var(--t-h3-tt); }
/* Voreinstellungen erfassen auch die Titel der Startseiten und Karten (in „Standard“ behalten diese ihre eigenen Maße). */
:root[data-type] .ws-home__title, :root[data-type] .cube-title, :root[data-type] .og-top__title, :root[data-type] .pl-head h1 {
  font-size: var(--t-h1-fs); font-weight: var(--t-h1-fw); line-height: var(--t-h1-lh); letter-spacing: var(--t-h1-ls); text-transform: var(--t-h1-tt);
}
:root[data-type] .card__title, :root[data-type] .ws-home__sub { font-weight: var(--t-h2-fw); letter-spacing: var(--t-h2-ls); text-transform: var(--t-h2-tt); }
:root[data-type] body { line-height: var(--t-body-lh); font-variant-numeric: var(--t-num); }
:root[data-type] .ws-home__kicker, :root[data-type] .navacc__head, :root[data-type] .ux-menu__title, :root[data-type] .cube-crumb, :root[data-type] .field > label {
  letter-spacing: var(--t-label-ls);
}
:root[data-type] .ws-area__label, :root[data-type] .chip, :root[data-type] .ws-tool, :root[data-type] .og-nav__item, :root[data-type] .pl-nav__item, :root[data-type] .admin-side__link {
  letter-spacing: var(--t-nav-ls); text-transform: var(--t-nav-tt); font-weight: var(--t-nav-fw);
}

/* ---------- Symbole: Strichstärke zentral ---------- */
:root[data-icons="fine"] svg[stroke="currentColor"] { stroke-width: 1.25; }
:root[data-icons="bold"] svg[stroke="currentColor"] { stroke-width: 2.3; }

/* ---------- Bewegung reduziert (Konfigurator) - gleichwertig zu prefers-reduced-motion ---------- */
:root[data-motion="reduced"] *, :root[data-motion="reduced"] *::before, :root[data-motion="reduced"] *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important;
}

/* ---------- UI/UX-Fenster mit Reitern ---------- */
.ux-menu__panel { width: 400px; }
.ux-menu__legacy, .ux-menu__moderow #themeToggleSlot { display: none !important; } /* #themeToggleSlot bleibt als Anker; bedient wird über Hell/Dunkel/Auto */
.ux-sum { margin: 0; font-size: var(--fs-2); color: var(--c-ink-2); line-height: 1.4; }
.ux-sum b { color: var(--c-ink); }
.ux-sum__preset { color: var(--c-muted); white-space: nowrap; }
.ux-menu__moderow .person-menu__label { white-space: nowrap; }
.ux-menu__moderow { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.ux-seg, .ux-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ux-chip.is-on { background: var(--c-brand); color: var(--c-brand-ink); }
.ux-badge { display: inline-block; padding: 1px 7px; border-radius: var(--r-pill); background: var(--c-warn-soft); color: var(--c-warn); font-size: 11px; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; }
.ux-tabs { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--c-surface-2); }
.ux-tab { flex: 1 1 auto; min-height: 30px; padding: 0 8px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--c-ink-2); font: inherit; font-size: var(--fs-1); font-weight: 700; cursor: pointer;
  transition: background-color var(--dur-hover) var(--ease-calm), color var(--dur-hover) var(--ease-calm); }
.ux-tab:hover { color: var(--c-ink); }
.ux-tab.is-on { background: var(--c-bg); color: var(--c-ink); box-shadow: 0 0 0 1px var(--c-line); }
.ux-tab:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 1px; }
.ux-pane { display: flex; flex-direction: column; gap: var(--sp-2); animation: ux-pane-in var(--dur-panel) var(--ease-calm); }
.ux-pane[hidden] { display: none; }
.ux-pane__lead { margin: 0; }
@keyframes ux-pane-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ux-sub { display: flex; flex-direction: column; gap: 6px; padding-top: var(--sp-2); border-top: 1px solid var(--c-line); }
.ux-sub[hidden] { display: none; }
.ux-sub.is-muted .ux-chips { opacity: .6; }
.ux-switch { display: flex; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-2); border-radius: var(--r-sm); cursor: pointer; }
.ux-switch:hover { background: var(--c-surface-2); }
.ux-switch input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--c-brand); flex: 0 0 auto; }
.ux-switch span { display: flex; flex-direction: column; gap: 2px; }
.ux-switch strong { font-size: var(--fs-3); }
.ux-switch small { font-size: var(--fs-1); color: var(--c-muted); line-height: 1.35; }
.ux-foot { display: flex; flex-wrap: wrap; gap: 6px; }
.ux-notes:empty { display: none; }
.ux-notes { display: flex; flex-direction: column; gap: 6px; }
.ux-note { margin: 0; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm); font-size: var(--fs-1); line-height: 1.45; color: var(--c-ink); background: var(--c-surface-2); }
.ux-note--limited { background: var(--c-warn-soft); }
.ux-rec { margin-left: 3px; font-weight: 900; }
.ux-pal__count.is-limited { box-shadow: inset 0 0 0 1px var(--c-warn); }
.ux-opt[data-limited] .ux-opt__body small { color: var(--c-muted); }
@media (max-width: 599px) {
  .ux-menu__panel { position: fixed; left: 8px; right: 8px; top: 60px; width: auto; max-width: none; max-height: calc(100vh - 72px); }
  .ux-tab { padding: 0 4px; }
}
@media (prefers-reduced-motion: reduce) { .ux-pane, .ux-tab { animation: none; transition: none; } }

/* ---------- Glas-Hintergründe (assets/js/ui_bg.js, 2026-10-09) ---------- */
/* Ebene hinter allem: eigenes Motiv der aktiven Hauptkategorie + Schleier in der Grundfarbe (Stärke nachgerechnet) */
#glBg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
#glBg[hidden] { display: none; }
.gl-bg__img { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 700ms var(--ease-calm); }
.gl-bg__img.is-on { opacity: 1; }
.gl-bg__scrim { position: absolute; inset: 0; background: var(--c-bg); opacity: 0; transition: opacity 500ms var(--ease-calm); }
@media (prefers-reduced-motion: reduce) { .gl-bg__img, .gl-bg__scrim { transition: none; } }
:root[data-motion="reduced"] .gl-bg__img { transition: opacity 150ms linear !important; }
/* Editor */
.bgx { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .45); }
.bgx[hidden] { display: none; }
body.bgx-open { overflow: hidden; }
.bgx__box { width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box; padding: var(--sp-5) var(--sp-6); border-radius: var(--r-md); background: var(--c-bg); color: var(--c-ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.bgx__box:focus { outline: none; }
.bgx__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.bgx__title { margin: 0; font-size: var(--fs-6); }
.bgx__lead { margin: var(--sp-3) 0 var(--sp-4); font-size: var(--fs-3); line-height: 1.5; color: var(--c-ink-2); }
.bgx__row { display: grid; grid-template-columns: 220px 1fr; gap: var(--sp-4); align-items: center; padding: var(--sp-3) 0; border-top: 1px solid var(--c-line); }
.bgx__thumb { aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: var(--c-surface-2); box-shadow: inset 0 0 0 1px var(--c-line); }
.bgx__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bgx__thumb--empty { display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse 70% 60% at 70% 30%, color-mix(in srgb, var(--c-bg) 88%, var(--c-brand)) 0%, var(--c-surface-2) 100%); }
.bgx__thumb--empty span { font-size: var(--fs-1); font-weight: 700; color: var(--c-ink-2); }
.bgx__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bgx__info strong { font-size: var(--fs-5); }
.bgx__info small { font-size: var(--fs-2); color: var(--c-muted); }
.bgx__btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-2); align-items: center; }
.bgx__up { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.bgx__up input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.bgx__up:focus-within { outline: 2px solid var(--c-brand); outline-offset: 2px; }
.bgx__crumb { margin: var(--sp-3) 0 var(--sp-2); font-size: var(--fs-1); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.bgx__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-sm); background: var(--c-surface-2); cursor: grab; touch-action: none; user-select: none; box-shadow: inset 0 0 0 1px var(--c-line); }
.bgx__frame.is-drag { cursor: grabbing; }
.bgx__frame:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; }
.bgx__img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.bgx__scrim { position: absolute; inset: 0; background: var(--c-bg); opacity: 0; pointer-events: none; }
.bgx__guides { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255, 255, 255, .45) 33.33%, transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255, 255, 255, .45) 66.66%, transparent calc(66.66% + .5px)),
  linear-gradient(0deg, transparent calc(33.33% - .5px), rgba(255, 255, 255, .45) 33.33%, transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255, 255, 255, .45) 66.66%, transparent calc(66.66% + .5px)); }
.bgx__hint, .bgx__need, .bgx__msg { margin: var(--sp-2) 0 0; font-size: var(--fs-2); color: var(--c-muted); line-height: 1.45; }
.bgx__msg:empty { display: none; }
.bgx__msg { color: var(--c-ink); font-weight: 600; }
.bgx__ctrls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2) var(--sp-5); margin-top: var(--sp-3); }
.bgx__ctrl { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-2); font-weight: 600; color: var(--c-ink-2); }
.bgx__ctrl span { display: flex; justify-content: space-between; }
.bgx__ctrl output { font-variant-numeric: tabular-nums; color: var(--c-ink); }
.bgx__ctrl input[type="range"] { width: 100%; accent-color: var(--c-brand); min-height: 28px; }
@media (max-width: 640px) { .bgx__row { grid-template-columns: 1fr; } .bgx__ctrls { grid-template-columns: 1fr; } .bgx__box { padding: var(--sp-4); } }
/* Lokaler Schleier hinter der Arc-Schrift (Startseite): volle Stärke bis zum rechten Schriftrand, dann weich auslaufend */
@property --gl-local-x { syntax: '<length>'; inherits: true; initial-value: 900px; }
.gl-bg__local { position: absolute; inset: 0; opacity: 0; background: linear-gradient(90deg, var(--c-bg) 0, var(--c-bg) var(--gl-local-x), transparent calc(var(--gl-local-x) + 22vw));
  transition: opacity 500ms var(--ease-calm), --gl-local-x 400ms var(--ease-calm); }
@media (prefers-reduced-motion: reduce) { .gl-bg__local { transition: none; } }
/* Hinweiszeilen auf dem Motiv: als kleine Glasplakette */
:root[data-design="glass"] .alt-hint { padding: 4px 12px; border-radius: var(--r-pill); background: var(--gl-pane); -webkit-backdrop-filter: var(--gl-blur); backdrop-filter: var(--gl-blur); }

/* ---------- Eigene Farben (ws.js initCustomPalettes, 2026-10-09) ---------- */
.ux-cp__slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.ux-cp__slot { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
.ux-cp__sw { height: 40px; border: 0; border-radius: var(--r-sm); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); color: var(--c-muted); font: inherit; font-size: 18px; font-weight: 300; }
.ux-cp__sw.is-empty { background: repeating-linear-gradient(45deg, var(--c-surface-2) 0 6px, var(--c-bg) 6px 12px); box-shadow: inset 0 0 0 1px var(--c-line); }
.ux-cp__sw:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; }
.ux-cp__native { position: absolute; left: 50%; top: 20px; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.ux-cp__tools { display: flex; justify-content: center; gap: 2px; }
.ux-cp__tool { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; padding: 0; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--c-ink-2); font: inherit; font-size: 15px; line-height: 1; cursor: pointer; }
.ux-cp__tool:hover { background: var(--c-surface-2); color: var(--c-ink); }
.ux-cp__tool:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 1px; }
.ux-cp__field { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-1); font-weight: 700; color: var(--c-ink-2); }
.ux-cp__field span { flex: 0 0 56px; }
.ux-cp__field input { flex: 1 1 auto; min-width: 0; min-height: 30px; padding: 0 8px; font-size: var(--fs-2); }
.ux-cp__status { margin: 0; font-size: var(--fs-1); color: var(--c-ink-2); line-height: 1.4; }
.ux-pal__cust { position: relative; display: flex; flex-direction: column; }
.ux-pal__cust .ux-pal__opt { flex: 1 1 auto; }
.ux-pal__custbtns { display: flex; gap: 2px; margin-top: 2px; }
.ux-pal__mini { flex: 1; min-height: 24px; padding: 0 4px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--c-ink-2); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.ux-pal__mini:hover { background: var(--c-surface-2); color: var(--c-ink); }
.ux-pal__mini:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 1px; }
.ux-pal__own { display: inline-block; padding: 0 5px; border-radius: var(--r-pill); background: var(--c-surface-2); color: var(--c-ink-2); font-size: 10px; font-weight: 700; vertical-align: 1px; }

/* ---------- Schnellzugriff verwalten (UI/UX → Mehr) ---------- */
.ux-fav { display: flex; flex-direction: column; gap: 6px; }
.ux-fav__on { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-2); }
.ux-fav__on li { display: flex; align-items: center; gap: 4px; }
.ux-fav__on li span { flex: 1 1 auto; font-weight: 600; }
.ux-fav__on .ux-pal__mini { flex: 0 0 auto; }
.ux-fav__grp { margin: 0; padding: 4px 0 0; border: 0; border-top: 1px solid var(--c-line); }
.ux-fav__grp legend { padding: 0 4px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.ux-fav__it { display: flex; align-items: flex-start; gap: 6px; padding: 3px 2px; font-size: var(--fs-2); cursor: pointer; }
.ux-fav__it input { margin-top: 2px; accent-color: var(--c-brand); }
.ux-fav__it small { color: var(--c-muted); }
.ux-fav__it.is-full { cursor: not-allowed; }
.ux-fav__it.is-full span { color: var(--c-muted); }

.bgx__scope { margin: 0 0 var(--sp-2); }

/* ---------- Palette: Vorschau hell | dunkel (ws.js paintPreview) ---------- */
.ux-pv:empty { display: none; }
.ux-pv { margin-top: var(--sp-2); }
.ux-pv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.ux-pv__col { display: flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: var(--r-sm); min-width: 0; }
.ux-pv__col p { margin: 0; }
.ux-pv__mode { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ux-pv__h { font-size: 15px; font-weight: 700; line-height: 1.2; }
.ux-pv__t { font-size: 12px; line-height: 1.35; }
.ux-pv__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ux-pv__btn { padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.ux-pv__link { font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ux-pv__chip { padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.ux-pv__card { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 5px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.ux-pv__chart { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.ux-pv__bar { flex: 1; min-width: 6px; border-radius: 2px 2px 0 0; }
.ux-pv__num, .ux-pv__adj { font-size: 11px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.ux-cp__field input::placeholder { color: var(--c-muted); font-weight: 400; opacity: 1; font-style: normal; }
/* Bildersammlung im Fenster Glas-Hintergründe (2026-10-09) */
.bgx__lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-top: var(--sp-2); }
.bgx__lib[hidden] { display: none; }
.bgx__libimg { display: flex; flex-direction: column; gap: 3px; padding: 4px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--c-ink-2); font: inherit; font-size: 11px; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1px var(--c-line); }
.bgx__libimg img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; }
.bgx__libimg:hover { box-shadow: inset 0 0 0 1px var(--c-muted); color: var(--c-ink); }
.bgx__libimg:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; }
