/* ==========================================================================
   boxydot — main stylesheet
   Tokens → base → header → filter bar → sections → cards → wall → install →
   footer → tab bar → dialogs → single → prose → utilities
   ========================================================================== */

:root {
  --bxd-navy: #0F1B29;
  --bxd-navy-deep: #081018;
  --bxd-navy-soft: #18324A;
  --bxd-teal: #2D9F93;
  --bxd-teal-hover: #248278;
  --bxd-ivory: #F7F5EF;
  --bxd-sky: #A9D3E8;
  --bxd-amber: #E6B45C;

  --bxd-radius: 1.5rem;
  --bxd-radius-sm: .75rem;
  --bxd-ctl: 2.5rem;            /* one height for every filter control */
  --bxd-header-h: 4.5rem;
  --bxd-tabbar-h: 4.25rem;
  --bxd-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dark is the default (matches the mockup). */
html,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--bxd-navy);
  --bg-deep: var(--bxd-navy-deep);
  --surface: rgba(24, 50, 74, .6);
  --surface-solid: #142a3f;
  --field: var(--bxd-navy);
  --text: var(--bxd-ivory);
  --muted: rgba(169, 211, 232, .78);
  --faint: rgba(169, 211, 232, .62);
  --line: rgba(255, 255, 255, .12);
  --line-soft: rgba(255, 255, 255, .06);
  --hover: rgba(255, 255, 255, .1);
  --chip: rgba(255, 255, 255, .05);
  --accent-text: #3FB5A8;       /* teal text on navy */
  --amber-text: var(--bxd-amber);
  --on-accent: var(--bxd-navy-deep);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --header-bg: rgba(15, 27, 41, .9);
  --scrim: rgba(8, 16, 24, .82);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: var(--bxd-ivory);
  --bg-deep: #EFEBE0;
  --surface: #FFFFFF;
  --surface-solid: #FFFFFF;
  --field: #FFFFFF;
  --text: var(--bxd-navy-soft);
  --muted: #475E73;
  --faint: #5A7084;
  --line: rgba(24, 50, 74, .16);
  --line-soft: rgba(24, 50, 74, .08);
  --hover: rgba(24, 50, 74, .07);
  --chip: rgba(24, 50, 74, .05);
  --accent-text: #1E7A70;       /* darker teal: 5:1 on ivory */
  --amber-text: #8A5A00;
  --on-accent: var(--bxd-navy-deep);
  --shadow: 0 10px 28px rgba(24, 50, 74, .12);
  --header-bg: rgba(247, 245, 239, .92);
  --scrim: rgba(15, 27, 41, .6);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bxd-header-h) + 1rem);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--bxd-font);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--bxd-teal); color: #fff; }

:focus-visible { outline: 2px solid var(--bxd-teal); outline-offset: 2px; }
.bxd-card :focus-visible, .bxd-reel:focus-visible { outline-offset: -2px; }

.bxd-icon { width: 1.25rem; height: 1.25rem; flex: none; }
.bxd-fill { fill: currentColor; }
.bxd-amber { color: var(--bxd-amber); }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { position: fixed !important; top: .5rem; left: .5rem; width: auto; height: auto; margin: 0; padding: .75rem 1rem; clip: auto; clip-path: none; z-index: 1000; background: var(--bxd-teal); color: var(--on-accent); border-radius: .5rem; font-weight: 700; }

.bxd-site { min-height: 100vh; display: flex; flex-direction: column; }
.bxd-site > .bxd-footer { margin-top: auto; }
.bxd-wrap { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px)  { .bxd-wrap { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .bxd-wrap { padding-inline: 2rem; } }

.bxd-muted { color: var(--muted); }
.bxd-small { font-size: .8125rem; line-height: 1.55; }
.bxd-strong { font-weight: 700; margin: 0; }
.bxd-grow { flex: 1; }
.bxd-lead { margin: .25rem 0 0; max-width: 60ch; }
.bxd-note { margin: 0 0 1.25rem; color: var(--muted); font-size: .875rem; max-width: 62ch; }
.bxd-fineprint { margin: 0; font-size: .75rem; line-height: 1.5; color: var(--faint); }
.bxd-label { display: block; font-size: .75rem; font-weight: 700; color: var(--muted); margin-bottom: .25rem; }

/* ---------- Buttons ---------- */
.bxd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--bxd-ctl); padding: .5rem 1rem;
  border: 1px solid transparent; border-radius: .875rem;
  font-size: .875rem; font-weight: 700; line-height: 1.2; white-space: nowrap;
  background: none; transition: background-color .15s, border-color .15s, transform .15s;
}
.bxd-btn .bxd-icon { width: 1rem; height: 1rem; }
.bxd-btn--block { width: 100%; }
.bxd-btn--teal { background: var(--bxd-teal); color: var(--on-accent); }
.bxd-btn--teal:hover { background: var(--bxd-teal-hover); color: #fff; }
.bxd-btn--soft { background: rgba(45, 159, 147, .16); border-color: rgba(45, 159, 147, .4); color: var(--accent-text); }
.bxd-btn--soft:hover { background: rgba(45, 159, 147, .26); }
.bxd-btn--amber { background: linear-gradient(90deg, var(--bxd-amber), #d9a54a); color: var(--bxd-navy-deep); }
.bxd-btn--amber:hover { filter: brightness(1.06); }
.bxd-btn--ghost { background: var(--chip); border-color: var(--line); color: var(--text); }
.bxd-btn--ghost:hover { background: var(--hover); }

.bxd-iconbtn {
  position: relative; display: inline-grid; place-items: center;
  width: var(--bxd-ctl); height: var(--bxd-ctl); padding: 0;
  background: var(--chip); border: 1px solid var(--line); border-radius: .875rem;
  color: var(--text); transition: background-color .15s;
}
.bxd-iconbtn:hover { background: var(--hover); }
.bxd-iconbtn--sm { width: 2.25rem; height: 2.25rem; }
.bxd-iconbtn .bxd-icon { color: var(--bxd-sky); }
html[data-theme="light"] .bxd-iconbtn .bxd-icon { color: var(--bxd-navy-soft); }

.bxd-badge {
  position: absolute; top: -.4rem; right: -.4rem; min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--bxd-amber); color: var(--bxd-navy-deep); font-size: .6875rem; font-weight: 900; line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

/* ---------- Header ---------- */
.bxd-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform .25s ease;
}
.admin-bar .bxd-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bxd-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .bxd-header { top: 0; } }

.bxd-header__bar {
  height: var(--bxd-header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.bxd-header__actions { display: flex; align-items: center; gap: .625rem; }

.bxd-brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.bxd-brand__mark {
  width: 2.75rem; height: 2.75rem; flex: none; display: grid; place-items: center; overflow: hidden;
  border-radius: 1rem; background: linear-gradient(135deg, var(--bxd-teal), var(--bxd-sky));
  color: var(--bxd-navy-deep); box-shadow: 0 6px 16px rgba(45, 159, 147, .25);
}
.bxd-brand__mark .bxd-icon { width: 1.5rem; height: 1.5rem; }
.bxd-brand__img { width: 100%; height: 100%; object-fit: cover; }
.bxd-brand__text { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.bxd-wordmark { font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; line-height: 1; color: var(--text); }
.bxd-wordmark span { color: var(--accent-text); }
.bxd-pill {
  display: none; padding: .125rem .5rem; border-radius: 999px;
  background: rgba(45, 159, 147, .2); border: 1px solid rgba(45, 159, 147, .35);
  color: var(--accent-text); font-size: .6875rem; font-weight: 700; white-space: nowrap;
}
@media (min-width: 640px) { .bxd-pill { display: inline-block; } }

.bxd-search { position: relative; display: none; flex: 1; max-width: 28rem; margin-inline: 1rem; }
.bxd-search input {
  width: 100%; height: var(--bxd-ctl); padding: 0 1rem 0 2.5rem;
  background: var(--chip); border: 1px solid var(--line); border-radius: 999px;
  font-size: .875rem; color: var(--text);
}
.bxd-search input::placeholder { color: var(--faint); }
.bxd-search input:focus { outline: none; border-color: var(--bxd-teal); box-shadow: 0 0 0 3px rgba(45, 159, 147, .25); }
.bxd-search__icon { position: absolute; left: .875rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; color: var(--faint); pointer-events: none; }

.bxd-avatarbtn__initial, .bxd-tab__initial {
  display: grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--bxd-teal), var(--bxd-sky)); color: var(--bxd-navy-deep);
  font-size: .8125rem; font-weight: 900; line-height: 1;
}
.bxd-avatarbtn__icon { display: grid; place-items: center; }

.bxd-only-mobile { display: inline-grid; }
.bxd-only-desktop { display: none; }
.bxd-hide-sm { display: none; }

/* Mobile search row under the bar */
.bxd-header.is-searching .bxd-search {
  display: block; position: absolute; left: 0; right: 0; top: 100%; max-width: none; margin: 0;
  padding: .625rem 1rem; background: var(--header-bg); border-bottom: 1px solid var(--line);
}
.bxd-header.is-searching .bxd-search__icon { left: 1.875rem; }
.bxd-header.is-searching .bxd-search input { padding-left: 2.5rem; }

@media (min-width: 640px) { .bxd-hide-sm { display: inline; } }
@media (min-width: 860px) {
  .bxd-search { display: block; }
  .bxd-only-mobile { display: none; }
  .bxd-only-desktop { display: inline-flex; }
  .bxd-iconbtn.bxd-only-desktop { display: inline-grid; }
}

.bxd-header.is-hidden { transform: translateY(-100%); }
@media (min-width: 860px) { .bxd-header.is-hidden { transform: none; } }

/* ---------- Filter bar (fixed alignment) ----------
   One 40px control height for chips and the age select, one 8px gap, chips
   wrap on desktop and scroll with an edge fade on phones, and the age filter
   never scrolls out of reach: it drops to its own full-width row on phones. */
.bxd-filterbar { background: var(--bg-deep); border-bottom: 1px solid var(--line-soft); }
.bxd-filterbar__inner { display: flex; flex-direction: column; gap: .75rem; padding-block: .875rem; }

.bxd-chips {
  display: flex; gap: .5rem; align-items: center;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  scroll-snap-type: x proximity; padding-block: 2px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 .75rem, #000 calc(100% - 1.5rem), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 .75rem, #000 calc(100% - 1.5rem), transparent 100%);
  margin-inline: -1rem; padding-inline: 1rem; scroll-padding-inline: 1rem;
}
.bxd-chips::-webkit-scrollbar { display: none; }
.bxd-chip {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--bxd-ctl); padding: 0 1rem; border-radius: .875rem;
  background: var(--chip); border: 1px solid var(--line); color: var(--muted);
  font-size: .8125rem; font-weight: 700; line-height: 1; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.bxd-chip:hover { background: var(--hover); color: var(--text); }
.bxd-chip.is-active, .bxd-chip[aria-current="true"] {
  background: var(--bxd-teal); border-color: var(--bxd-teal); color: var(--on-accent);
}

.bxd-select {
  position: relative; display: flex; align-items: center; gap: .5rem; flex: none;
  height: var(--bxd-ctl); padding: 0 .75rem 0 1rem;
  background: var(--chip); border: 1px solid var(--line); border-radius: .875rem;
}
.bxd-select:focus-within { border-color: var(--bxd-teal); box-shadow: 0 0 0 3px rgba(45, 159, 147, .25); }
.bxd-select__label { font-size: .75rem; font-weight: 700; color: var(--muted); }
.bxd-select select {
  height: 100%; min-width: 0; flex: 1; padding: 0 1.25rem 0 0; border: 0; background: transparent;
  font-size: .8125rem; font-weight: 700; color: var(--text);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 7px) 55%, calc(100% - 2px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.bxd-select select:focus { outline: none; }
.bxd-select select option { background: var(--surface-solid); color: var(--text); }
.bxd-select--block { width: 100%; }

@media (min-width: 860px) {
  .bxd-filterbar__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 1.5rem; }
  .bxd-chips { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; margin-inline: 0; padding-inline: 0; flex: 1; }
}
@media (max-width: 859px) {
  .bxd-filterbar .bxd-select { width: 100%; }
}

/* ---------- Sections ---------- */
.bxd-main { padding-block: 2rem; display: flex; flex-direction: column; gap: 3rem; }
.bxd-main--narrow { max-width: 52rem; }
.bxd-section__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.bxd-h2 { display: flex; align-items: center; gap: .625rem; margin: 0; font-size: 1.25rem; font-weight: 900; letter-spacing: -.01em; line-height: 1.25; }
.bxd-h2--teal::before, .bxd-h2--amber::before { content: ""; width: .5rem; height: 1.5rem; border-radius: 999px; flex: none; }
.bxd-h2--teal::before { background: var(--bxd-teal); }
.bxd-h2--amber::before { background: var(--bxd-amber); }
.bxd-count { font-size: .75rem; font-weight: 600; color: var(--faint); }
.bxd-arrows { display: flex; gap: .25rem; }

/* ---------- Reels ---------- */
.bxd-reels {
  display: flex; gap: 1rem; overflow-x: auto; padding: 2px 2px 1.75rem; margin-bottom: -1rem; scroll-behavior: smooth; scroll-padding-inline: 2px;
  scroll-snap-type: x proximity; scrollbar-width: none;
}
.bxd-reels::-webkit-scrollbar { display: none; }
.bxd-reel {
  position: relative; flex: none; scroll-snap-align: start; width: 11rem; height: 18rem;
  border-radius: 1rem; overflow: hidden; border: 1px solid var(--line); background: var(--bxd-navy-soft);
  isolation: isolate; color: #F7F5EF;
}
@media (min-width: 640px) { .bxd-reel { width: 13rem; } }
.bxd-reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.bxd-reel:hover img { transform: scale(1.05); }
.bxd-reel .bxd-thumb__shade { z-index: 1; background: linear-gradient(to top, var(--bxd-navy-deep), rgba(8, 16, 24, .45) 45%, transparent); }
.bxd-reel__age {
  position: absolute; z-index: 2; top: .75rem; left: .75rem; padding: .125rem .5rem; border-radius: .375rem;
  background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .15); color: var(--bxd-sky);
  font-size: .625rem; font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.bxd-reel__body { position: absolute; z-index: 2; inset: auto 0 0 0; padding: 1rem; display: flex; flex-direction: column; gap: .25rem; }
.bxd-reel__cat { font-size: .625rem; font-weight: 700; color: #3FB5A8; }
.bxd-reel__title { font-size: .75rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bxd-reel__meta { font-size: .625rem; color: rgba(169, 211, 232, .85); }

/* ---------- Grid + cards ---------- */
.bxd-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px)  { .bxd-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bxd-grid { grid-template-columns: repeat(3, 1fr); } }

.bxd-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--bxd-radius);
  box-shadow: var(--shadow); transition: border-color .25s;
}
.bxd-card:hover { border-color: rgba(45, 159, 147, .55); }

.bxd-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; isolation: isolate; color: #F7F5EF;
}
.bxd-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: transform .5s; }
.bxd-card:hover .bxd-thumb img { transform: scale(1.04); }
.bxd-thumb__empty {
  position: absolute; inset: 0; display: grid; place-items: center; color: rgba(169, 211, 232, .5);
  background:
    radial-gradient(circle at 1px 1px, rgba(169, 211, 232, .16) 1.5px, transparent 1.6px) 0 0 / 18px 18px,
    linear-gradient(135deg, var(--bxd-navy-soft), var(--bxd-navy));
}
.bxd-thumb__empty .bxd-icon { width: 3rem; height: 3rem; stroke-width: 1.25; }
.bxd-thumb__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 16, 24, .8), transparent 55%); pointer-events: none; }
.bxd-thumb__tags { position: absolute; top: .75rem; left: .75rem; right: 5.5rem; display: flex; flex-wrap: wrap; gap: .375rem; }
.bxd-tag {
  display: inline-block; padding: .25rem .625rem; border-radius: .5rem; font-size: .625rem; font-weight: 700; line-height: 1.2;
  background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .15); color: var(--bxd-sky);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.bxd-tag--teal { color: #3FB5A8; border-color: rgba(45, 159, 147, .45); }
.bxd-tag--amber { background: var(--bxd-amber); border-color: var(--bxd-amber); color: var(--bxd-navy-deep); }
.bxd-thumb__badge {
  position: absolute; top: .75rem; right: .75rem; padding: .25rem .625rem; border-radius: .5rem;
  background: var(--bxd-amber); color: var(--bxd-navy-deep); font-size: .625rem; font-weight: 900; line-height: 1.2; box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.bxd-thumb__play {
  position: absolute; inset: 0; margin: auto; width: 3.5rem; height: 3.5rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--bxd-teal); color: var(--bxd-navy-deep); box-shadow: 0 10px 30px rgba(45, 159, 147, .5);
  opacity: 0; transition: opacity .2s;
}
.bxd-thumb__play .bxd-icon { width: 1.75rem; height: 1.75rem; margin-left: .125rem; }
.bxd-thumb__play--sm { width: 3rem; height: 3rem; z-index: 2; }
.bxd-thumb__play--sm .bxd-icon { width: 1.5rem; height: 1.5rem; }
.bxd-thumb:hover .bxd-thumb__play, .bxd-reel:hover .bxd-thumb__play, a:focus-visible > .bxd-thumb__play, .bxd-reel:focus-visible .bxd-thumb__play { opacity: 1; }
@media (hover: none) { .bxd-thumb__play { opacity: .9; width: 3rem; height: 3rem; } .bxd-reel .bxd-thumb__play { opacity: 0; } }
.bxd-thumb__meta {
  position: absolute; left: .75rem; right: .75rem; bottom: .625rem; display: flex; align-items: center; gap: .375rem;
  font-size: .75rem; font-weight: 600; color: rgba(247, 245, 239, .9);
}
.bxd-thumb__meta .bxd-icon { width: .875rem; height: .875rem; }

.bxd-card__body { flex: 1; display: flex; flex-direction: column; padding: 1.25rem 1.5rem 1.25rem; gap: .5rem; }
.bxd-card__title { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bxd-card__title a:hover { color: var(--accent-text); }
.bxd-card__notes { margin: 0; font-size: .8125rem; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bxd-card__foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.bxd-curator { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.bxd-curator__name { font-size: .75rem; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bxd-avatar {
  flex: none; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: rgba(45, 159, 147, .2); color: var(--accent-text); font-size: .625rem; font-weight: 800;
}
.bxd-avatar--lg { width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: linear-gradient(135deg, var(--bxd-teal), var(--bxd-sky)); color: var(--bxd-navy-deep); font-size: 1rem; font-weight: 900; }
.bxd-avatar--xl { width: 3.25rem; height: 3.25rem; border-radius: 1rem; background: linear-gradient(135deg, var(--bxd-teal), var(--bxd-sky)); color: var(--bxd-navy-deep); font-size: 1.25rem; font-weight: 900; }

.bxd-pin {
  flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0;
  background: var(--chip); border: 1px solid var(--line); border-radius: .75rem; color: var(--muted); transition: background-color .15s;
}
.bxd-pin .bxd-icon { width: 1rem; height: 1rem; }
.bxd-pin:hover { background: var(--hover); color: var(--text); }
.bxd-pin[aria-pressed="true"] { background: var(--bxd-amber); border-color: var(--bxd-amber); color: var(--bxd-navy-deep); box-shadow: 0 4px 10px rgba(230, 180, 92, .25); }
.bxd-pin[aria-pressed="true"] .bxd-icon { fill: currentColor; }

.bxd-more { display: flex; justify-content: center; margin-top: 1.75rem; }

.bxd-empty {
  display: flex; flex-direction: column; align-items: center; gap: .625rem; text-align: center;
  padding: 3.5rem 1.5rem; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--bxd-radius);
}
.bxd-empty > .bxd-icon { width: 2.75rem; height: 2.75rem; color: var(--faint); }
.bxd-empty h1, .bxd-empty h3 { margin: 0; font-size: 1.0625rem; font-weight: 700; }
.bxd-empty p { margin: 0 0 .5rem; max-width: 26rem; font-size: .8125rem; color: var(--muted); }

/* ---------- Appreciation wall ---------- */
.bxd-wall {
  padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.75rem;
  background: linear-gradient(135deg, var(--surface), var(--bg-deep));
}
@media (min-width: 640px) { .bxd-wall { padding: 2rem; } }
.bxd-wall__head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .bxd-wall__head { flex-direction: row; align-items: center; justify-content: space-between; } }
.bxd-wall__head p { margin: .25rem 0 0; font-size: .875rem; max-width: 56ch; }
.bxd-wall__group { margin: 1.5rem 0 .75rem; font-size: .8125rem; font-weight: 700; color: var(--muted); }
.bxd-wall__grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .bxd-wall__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bxd-wall__grid { grid-template-columns: repeat(4, 1fr); } }
.bxd-person { padding: 1.25rem; border-radius: 1rem; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .75rem; }
.bxd-person__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.bxd-person__badge { padding: .125rem .5rem; border-radius: 999px; background: rgba(230, 180, 92, .18); border: 1px solid rgba(230, 180, 92, .4); color: var(--amber-text); font-size: .625rem; font-weight: 700; text-align: right; }
.bxd-person h4 { margin: 0; font-size: .875rem; font-weight: 700; }
.bxd-person h4 a:hover { color: var(--accent-text); text-decoration: underline; }
.bxd-person p { margin: .125rem 0 0; font-size: .75rem; color: var(--muted); }
.bxd-wall__empty { margin: 0; }

/* ---------- Install banner ---------- */
.bxd-install {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.25rem;
  padding: 1.5rem; border: 1px solid rgba(45, 159, 147, .35); border-radius: 1.75rem;
  background: linear-gradient(90deg, rgba(45, 159, 147, .2), rgba(169, 211, 232, .08) 55%, transparent);
}
@media (min-width: 640px) { .bxd-install { flex-direction: row; align-items: center; padding: 2rem; } }
.bxd-install__lead { display: flex; align-items: center; gap: 1rem; }
.bxd-install__icon { flex: none; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: var(--bxd-teal); color: var(--bxd-navy-deep); box-shadow: 0 8px 20px rgba(45, 159, 147, .3); }
.bxd-install__icon .bxd-icon { width: 1.75rem; height: 1.75rem; }
.bxd-install h3 { margin: 0; font-size: 1.125rem; font-weight: 700; }
.bxd-install p { margin: .125rem 0 0; font-size: .75rem; color: var(--muted); max-width: 46ch; }
.bxd-install__help { margin-top: .5rem !important; color: var(--accent-text) !important; font-weight: 600; }

/* ---------- Footer ---------- */
.bxd-footer { margin-top: 4rem; background: var(--bg-deep); border-top: 1px solid var(--line); padding-block: 3rem; }
.bxd-footer__grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 768px) { .bxd-footer__grid { grid-template-columns: 1.2fr 1fr 1.2fr; align-items: center; } .bxd-footer__legal { text-align: right; } }
.bxd-footer__brand p { margin: .5rem 0 0; font-size: .75rem; color: var(--faint); max-width: 34ch; }
.bxd-footer__brand .bxd-wordmark { font-size: 1.25rem; }
.bxd-footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.bxd-footer__links a, .bxd-footer__links button { padding: 0; background: none; border: 0; font-size: .75rem; color: var(--muted); }
.bxd-footer__links a:hover, .bxd-footer__links button:hover { color: var(--accent-text); }
.bxd-footer__legal { margin: 0; font-size: .75rem; line-height: 1.6; color: var(--faint); }

/* ---------- Bottom app bar ---------- */
.bxd-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: block;
  background: var(--header-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); transition: transform .25s ease;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bxd-tabbar.is-hidden { transform: translateY(100%); }
.bxd-tabbar__list { display: flex; margin: 0; padding: 0; list-style: none; }
.bxd-tabbar__list li { flex: 1 1 0; min-width: 0; }
.bxd-tab {
  width: 100%; min-height: 3.5rem; padding: .375rem .25rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .125rem;
  background: none; border: 0; color: var(--muted); font-size: .6875rem; font-weight: 600; line-height: 1.1;
}
.bxd-tab span:not(.bxd-tab__icon):not(.bxd-badge) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bxd-tab .bxd-icon { width: 1.375rem; height: 1.375rem; }
.bxd-tab__icon { position: relative; display: grid; place-items: center; }
.bxd-tab__icon .bxd-badge { top: -.35rem; right: -.65rem; }
.bxd-tab.is-current, .bxd-tab[aria-current="page"] { color: var(--accent-text); }
.bxd-tab.is-current .bxd-icon, .bxd-tab[aria-current="page"] .bxd-icon { stroke-width: 2.4; }
.bxd-tab:hover { color: var(--text); }
body { padding-bottom: calc(var(--bxd-tabbar-h) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 860px) {
  body:not(.bxd-tabbar-always) { padding-bottom: 0; }
  body:not(.bxd-tabbar-always) .bxd-tabbar { display: none; }
  .bxd-tabbar-always .bxd-tabbar { left: 50%; right: auto; bottom: 1rem; width: min(28rem, calc(100% - 2rem)); transform: translateX(-50%); border: 1px solid var(--line); border-radius: 1.25rem; box-shadow: var(--shadow); padding-bottom: 0; }
  .bxd-tabbar-always .bxd-tabbar.is-hidden { transform: translate(-50%, 150%); }
}

/* ---------- Dialogs ---------- */
html.bxd-lock, html.bxd-lock body { overflow: hidden; }
.bxd-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; overflow-y: auto; }
.bxd-modal__scrim { position: fixed; inset: 0; background: var(--scrim); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: bxd-fade .18s ease; }
.bxd-modal__panel {
  position: relative; width: 100%; max-width: 32rem; max-height: calc(100vh - 2rem); overflow-y: auto;
  background: var(--surface-solid); border: 1px solid var(--line); border-radius: 1.5rem; box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; animation: bxd-pop .2s ease;
}
@media (min-width: 640px) { .bxd-modal__panel { padding: 2rem; } }
.bxd-modal__panel--wide { max-width: 64rem; padding: 0; gap: 0; overflow: hidden; }
.bxd-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.bxd-modal__head h2 { margin: 0; font-size: 1.25rem; font-weight: 900; line-height: 1.25; }
.bxd-modal__panel--wide .bxd-modal__head { align-items: center; padding: .875rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--bg); }
.bxd-modal__title { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.bxd-modal__title h2 { font-size: 1rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bxd-modal__title .bxd-tag { flex: none; background: rgba(45, 159, 147, .2); }

.bxd-player { display: grid; overflow-y: auto; max-height: calc(100vh - 6rem); }
@media (min-width: 1024px) { .bxd-player { grid-template-columns: 2fr 1fr; } }
.bxd-player__stage { background: #000; display: flex; align-items: center; justify-content: center; }
.bxd-player__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.bxd-player__frame iframe, .bxd-watch__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bxd-player__empty { margin: 0; padding: 2rem; text-align: center; color: var(--bxd-sky); font-size: .875rem; }
.bxd-player__side { padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; background: var(--surface); }
.bxd-player__info { display: flex; flex-direction: column; gap: 1rem; }
.bxd-player__info p { margin: 0; }
.bxd-player__actions { display: flex; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.bxd-tracks { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .375rem; max-height: 10rem; overflow-y: auto; }
.bxd-tracks li { display: flex; justify-content: space-between; gap: .75rem; padding: .5rem .625rem; border-radius: .75rem; background: var(--bg); border: 1px solid var(--line-soft); font-size: .75rem; }
.bxd-tracks li span:first-child { font-weight: 600; }
.bxd-btn--teal[aria-pressed="true"], .bxd-btn[data-pin-text][aria-pressed="true"] { background: var(--bxd-amber); color: var(--bxd-navy-deep); }
.bxd-btn[data-pin-text][aria-pressed="true"] .bxd-icon { fill: currentColor; }

/* Forms */
.bxd-form { display: flex; flex-direction: column; gap: 1rem; }
.bxd-field label { display: block; margin-bottom: .25rem; font-size: .75rem; font-weight: 700; color: var(--muted); }
.bxd-field input, .bxd-field select, .bxd-field textarea, .bxd-inline input {
  width: 100%; padding: .625rem 1rem; background: var(--field); border: 1px solid var(--line); border-radius: .875rem; font-size: .875rem; color: var(--text);
}
.bxd-field textarea { resize: vertical; min-height: 5.5rem; }
.bxd-field input::placeholder, .bxd-field textarea::placeholder, .bxd-inline input::placeholder { color: var(--faint); }
.bxd-field input:focus, .bxd-field select:focus, .bxd-field textarea:focus, .bxd-inline input:focus { outline: none; border-color: var(--bxd-teal); box-shadow: 0 0 0 3px rgba(45, 159, 147, .25); }
.bxd-field input[aria-invalid="true"], .bxd-field textarea[aria-invalid="true"] { border-color: #e5604d; }
.bxd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bxd-form__status { margin: 0; min-height: 1.25rem; font-size: .8125rem; font-weight: 600; }
.bxd-form__status.is-error { color: #ff8a78; }
html[data-theme="light"] .bxd-form__status.is-error { color: #b3261e; }
.bxd-form__status.is-ok { color: var(--accent-text); }

/* Support */
.bxd-goal { padding: 1.25rem; border-radius: 1rem; background: var(--bg); border: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: .625rem; }
.bxd-goal__row { display: flex; justify-content: space-between; gap: 1rem; font-size: .75rem; font-weight: 700; color: var(--muted); }
.bxd-goal__row strong { color: var(--amber-text); }
.bxd-goal__bar { height: .75rem; border-radius: 999px; background: var(--chip); overflow: hidden; }
.bxd-goal__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--bxd-teal), var(--bxd-amber)); }
.bxd-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.bxd-amount { display: flex; flex-direction: column; align-items: center; padding: .75rem .25rem; border-radius: .875rem; background: var(--bg); border: 1px solid var(--line); text-align: center; transition: background-color .15s; }
.bxd-amount:hover { background: var(--hover); }
.bxd-amount strong { font-size: 1.125rem; font-weight: 900; }
.bxd-amount span { font-size: .6875rem; color: var(--muted); }
.bxd-amount--featured { background: rgba(45, 159, 147, .16); border-color: rgba(45, 159, 147, .45); }
.bxd-amount--featured strong { color: var(--accent-text); }

/* Account drawer */
.bxd-modal--drawer { justify-content: flex-end; align-items: stretch; padding: 0; overflow: hidden; }
.bxd-drawer { max-width: 24rem; height: 100%; max-height: none; border-radius: 1.5rem 0 0 1.5rem; border-right: 0; padding: 0; gap: 0; animation: bxd-slide .22s ease; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.bxd-drawer .bxd-modal__head { padding: 1.25rem 1.25rem 1rem; align-items: center; border-bottom: 1px solid var(--line); }
.bxd-drawer__body { padding: 1.25rem; display: flex; flex-direction: column; gap: 1.25rem; overflow-y: auto; }
.bxd-lock { display: flex; gap: .625rem; margin: 0; padding: .75rem .875rem; border-radius: .875rem; background: rgba(45, 159, 147, .12); border: 1px solid rgba(45, 159, 147, .3); font-size: .75rem; line-height: 1.5; color: var(--muted); }
.bxd-lock .bxd-icon { width: 1rem; height: 1rem; margin-top: .125rem; color: var(--accent-text); }
.bxd-drawer__section { display: flex; flex-direction: column; gap: .5rem; }
.bxd-drawer__section--data { padding-top: 1rem; border-top: 1px solid var(--line); gap: .125rem; }
.bxd-profile { display: flex; align-items: center; gap: .875rem; margin-bottom: .5rem; }
.bxd-profile__text { display: flex; flex-direction: column; min-width: 0; }
.bxd-profile__text strong { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bxd-inline { display: flex; gap: .5rem; }
.bxd-inline input { flex: 1; min-width: 0; }
.bxd-rowlink { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-radius: .875rem; background: var(--chip); border: 1px solid var(--line); font-size: .875rem; font-weight: 700; }
.bxd-rowlink:hover { background: var(--hover); }
.bxd-rowlink > span:nth-child(2) { flex: 1; }
.bxd-rowlink .bxd-icon { width: 1.25rem; height: 1.25rem; color: var(--bxd-sky); }
html[data-theme="light"] .bxd-rowlink .bxd-icon { color: var(--bxd-navy-soft); }
.bxd-rowlink__count { min-width: 1.5rem; padding: .125rem .5rem; border-radius: 999px; background: var(--bxd-amber); color: var(--bxd-navy-deep); font-size: .75rem; font-weight: 900; text-align: center; }
.bxd-switchrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bxd-switchrow label { display: flex; flex-direction: column; cursor: pointer; }
.bxd-switchrow .bxd-label { margin: 0; color: var(--text); font-size: .875rem; }
.bxd-switch { position: relative; width: 2.75rem; height: 1.5rem; flex: none; }
.bxd-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.bxd-switch__track { position: absolute; inset: 0; border-radius: 999px; background: var(--hover); border: 1px solid var(--line); transition: background-color .2s; }
.bxd-switch__track::before { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.5rem - 6px); height: calc(1.5rem - 6px); border-radius: 50%; background: var(--text); transition: transform .2s; }
.bxd-switch input:checked + .bxd-switch__track { background: var(--bxd-teal); border-color: var(--bxd-teal); }
.bxd-switch input:checked + .bxd-switch__track::before { transform: translateX(1.25rem); background: #fff; }
.bxd-switch input:focus-visible + .bxd-switch__track { outline: 2px solid var(--bxd-teal); outline-offset: 2px; }
.bxd-linkbtn { display: flex; align-items: center; gap: .625rem; width: 100%; padding: .625rem .25rem; background: none; border: 0; font-size: .8125rem; font-weight: 600; color: var(--muted); text-align: left; cursor: pointer; border-radius: .5rem; }
.bxd-linkbtn:hover { color: var(--text); background: var(--chip); }
.bxd-linkbtn .bxd-icon { width: 1rem; height: 1rem; }
.bxd-linkbtn--danger { color: #ff8a78; }
.bxd-linkbtn--danger:hover { color: #ffb0a3; }
html[data-theme="light"] .bxd-linkbtn--danger { color: #b3261e; }
.bxd-drawer__section--data .bxd-fineprint { margin-top: .5rem; }
@media (max-width: 480px) { .bxd-drawer { border-radius: 0; max-width: none; } }

.bxd-toast {
  position: fixed; left: 50%; bottom: calc(var(--bxd-tabbar-h) + 1rem + env(safe-area-inset-bottom, 0px)); z-index: 200; transform: translateX(-50%);
  max-width: calc(100% - 2rem); padding: .75rem 1.25rem; border-radius: .875rem; background: var(--bxd-ivory); color: var(--bxd-navy-deep);
  font-size: .8125rem; font-weight: 700; box-shadow: var(--shadow); animation: bxd-pop .18s ease;
}
html[data-theme="light"] .bxd-toast { background: var(--bxd-navy-soft); color: var(--bxd-ivory); }
@media (min-width: 860px) { body:not(.bxd-tabbar-always) .bxd-toast { bottom: 1.5rem; } }

@keyframes bxd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bxd-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes bxd-slide { from { transform: translateX(100%); } to { transform: none; } }
.bxd-toast { animation-name: bxd-toast-in; }
@keyframes bxd-toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Single video ---------- */
.bxd-crumbs { display: flex; gap: .5rem; align-items: center; font-size: .8125rem; color: var(--muted); }
.bxd-crumbs a:hover { color: var(--accent-text); }
.bxd-watch { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .bxd-watch { grid-template-columns: 2fr 1fr; align-items: start; } }
.bxd-watch__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 1.25rem; overflow: hidden; background: #000; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.bxd-watch__title { margin: 1.25rem 0 .75rem; font-size: clamp(1.375rem, 2.5vw, 1.875rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.2; }
.bxd-watch__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.bxd-watch__tags .bxd-tag { background: var(--chip); color: var(--muted); border-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.bxd-watch__tags .bxd-tag--teal { color: var(--accent-text); border-color: rgba(45, 159, 147, .45); }
.bxd-watch__tags .bxd-tag--amber { background: var(--bxd-amber); color: var(--bxd-navy-deep); border-color: var(--bxd-amber); }
.bxd-sidecard { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 1.25rem; }
.bxd-sidecard p { margin: 0; }
.bxd-sidecard .bxd-player__actions { padding-top: 1.25rem; }

/* ---------- Prose (pages, descriptions) ---------- */
.bxd-article__title { margin: 0 0 1.25rem; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.bxd-article--list { margin-bottom: 2rem; }
.bxd-article--list .bxd-article__title { font-size: 1.375rem; }
.bxd-article--list .bxd-article__title a:hover { color: var(--accent-text); }
.bxd-prose { max-width: 68ch; line-height: 1.7; color: var(--text); }
.bxd-prose > * + * { margin-top: 1.1em; }
.bxd-prose h2, .bxd-prose h3, .bxd-prose h4 { line-height: 1.25; font-weight: 800; margin-top: 1.75em; letter-spacing: -.01em; }
.bxd-prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.bxd-prose ul, .bxd-prose ol { padding-left: 1.4em; }
.bxd-prose li + li { margin-top: .35em; }
.bxd-prose img { height: auto; border-radius: 1rem; }
.bxd-prose blockquote { margin-inline: 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--bxd-teal); color: var(--muted); }
.bxd-prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.bxd-prose th, .bxd-prose td { padding: .625rem .75rem; border-bottom: 1px solid var(--line); text-align: left; }
.bxd-prose code { padding: .1em .35em; border-radius: .35rem; background: var(--chip); font-size: .9em; }
.bxd-prose .wp-block-button__link { background: var(--bxd-teal); color: var(--on-accent); border-radius: .875rem; font-weight: 700; text-decoration: none; }
.has-teal-color { color: var(--bxd-teal); } .has-teal-background-color { background-color: var(--bxd-teal); }
.has-amber-color { color: var(--bxd-amber); } .has-amber-background-color { background-color: var(--bxd-amber); }
.has-navy-color { color: var(--bxd-navy-soft); } .has-navy-background-color { background-color: var(--bxd-navy-soft); }
.has-ivory-color { color: var(--bxd-ivory); } .has-ivory-background-color { background-color: var(--bxd-ivory); }
.has-sky-color { color: var(--bxd-sky); } .has-sky-background-color { background-color: var(--bxd-sky); }

/* ---------- Pagination ---------- */
.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: var(--bxd-ctl); height: var(--bxd-ctl); padding: 0 .75rem; border-radius: .875rem; background: var(--chip); border: 1px solid var(--line); font-size: .875rem; font-weight: 700; color: var(--muted); }
.pagination a.page-numbers:hover { background: var(--hover); color: var(--text); }
.pagination .page-numbers.current { background: var(--bxd-teal); border-color: var(--bxd-teal); color: var(--on-accent); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Slim scrollbars to match the brand */
* { scrollbar-width: thin; scrollbar-color: var(--bxd-teal) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--bxd-teal); border-radius: 3px; }
