/* ══════════════════════════════════════════════════════════════════
   Domainless shared chrome — liquid-glass shell.
   Top bar (#dl-chrome-bar) is the inter-site ecosystem header.
   Bottom nav (#dl-bottom-nav) is the per-site (intra-site) tab bar.
   Visually unified: same glass material, same gold accent (#c8a86e),
   same mono microtype on labels, same gradient hairline borders.
   Aesthetic mirrors jandgstudios.fun.
   ══════════════════════════════════════════════════════════════════ */

:root {
  /* ── THEME TOKENS ───────────────────────────────────────────────────
     LIGHT is the platform default (phase 2, 2026-06-16) — kept in :root so the
     bars paint light even before JS runs, and so no-cookie / JS-off visitors
     get the cohesive light brand with ZERO flash. DARK is opt-in via
     html[data-theme="dark"], stamped before paint by chrome-precheck.v1.js from
     the cross-subdomain dl_theme cookie (set in domainless.fun/#profile or the
     ☰ quick-switch). The chrome runs ENTIRELY on these --dlc-* tokens so it
     never inherits a site's content colors — that decoupling is what lets us
     theme without the 2026-05 menu-legibility leak. base.v1.css flips in
     lockstep so bars + body stay cohesive. Was dark-default 2026-06-15. */

  /* Accent (gold) — active/selection state. Deepened for legibility on the
     light bar (#c8a86e → #b8911e); dark restores the lighter smoke-gold. */
  --dlc-accent: #b8911e;
  --dlc-accent-2: #d4a838;
  --dlc-accent-tint: rgba(184, 145, 30, 0.16);
  --dlc-accent-glow: rgba(184, 145, 30, 0.24);
  /* Brand green — wordmark ".fun" hue (deepened to stay legible on light). */
  --dlc-green: #12996a;
  --dlc-green-soft: rgba(18, 153, 106, 0.85);
  /* Frosted off-white glass with a bright top sheen. */
  --dlc-bg-glass:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.55),
      rgba(255, 255, 255, 0.16) 60%,
      rgba(255, 255, 255, 0)
    ),
    rgba(243, 241, 250, 0.55);
  --dlc-bg-glass-soft:
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
    rgba(243, 241, 250, 0.72);
  --dlc-bg-solid: rgba(249, 248, 253, 0.98);
  --dlc-border: rgba(60, 56, 84, 0.15);
  --dlc-border-strong: rgba(184, 145, 30, 0.36);
  --dlc-text: #3a3848;
  --dlc-text-bright: #1c1a26;
  --dlc-text-dim: #6e6c7e;
  /* Theme-tuned bar rim (inset top highlight), drop shadow, content "pop"
     shadows, hover wash, and dropdown fill — see html[data-theme="dark"]. */
  --dlc-rim: rgba(255, 255, 255, 0.75);
  --dlc-bar-shadow: rgba(60, 56, 84, 0.16);
  --dlc-pop-text: none;
  --dlc-pop-icon: none;
  --dlc-hover-bg: rgba(40, 36, 60, 0.06);
  --dlc-dropdown-bg: rgba(250, 249, 253, 0.98);
  /* Top bar (#dl-chrome-bar) and bottom nav (#dl-bottom-nav) are
     intentionally the EXACT same height so neither dominates the
     page. To make divergence impossible, both heights derive from
     a single source-of-truth variable: change --dlc-bar-shared and
     both bars resize together. Do NOT replace either of the two
     vars below with a literal px value — that re-introduces the
     drift bug we keep hitting (last caught 2026-05-07).
     44 px = Apple HIG tap-target floor; "compact but tappable". */
  --dlc-bar-shared: 44px;
  --dlc-bar-h: var(--dlc-bar-shared);
  --dlc-bn-h: var(--dlc-bar-shared);
  --dlc-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --dlc-sans:
    "DM Sans", "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;
}

/* ── DARK theme (opt-in via dl_theme=dark) ─────────────────────────────
   Re-declares only the color tokens to the dark palette; structural tokens
   (bar heights, fonts) inherit from :root. Applied when chrome-precheck /
   chrome.v1.js stamps html[data-theme="dark"] from the dl_theme cookie. Dark
   lifts the mint green (#12996a → #6FFDB5) and gold back to the smoke-on-dark
   values so the breadcrumb/accents glow on the dark bar. */
html[data-theme="dark"] {
  --dlc-accent: #c8a86e;
  --dlc-accent-2: #e6cb87;
  --dlc-accent-tint: rgba(200, 168, 110, 0.14);
  --dlc-accent-glow: rgba(200, 168, 110, 0.22);
  --dlc-green: #6ffdb5;
  --dlc-green-soft: rgba(111, 253, 181, 0.85);
  --dlc-bg-glass:
    linear-gradient(
      180deg,
      rgba(232, 228, 240, 0.1),
      rgba(232, 228, 240, 0.02) 55%,
      rgba(232, 228, 240, 0)
    ),
    rgba(20, 20, 28, 0.4);
  --dlc-bg-glass-soft:
    linear-gradient(rgba(218, 214, 226, 0.06), rgba(218, 214, 226, 0.06)),
    rgba(20, 20, 28, 0.55);
  --dlc-bg-solid: rgba(14, 14, 18, 0.96);
  --dlc-border: rgba(255, 255, 255, 0.08);
  --dlc-border-strong: rgba(200, 168, 110, 0.24);
  --dlc-text: #f0eef8;
  --dlc-text-bright: #ffffff;
  --dlc-text-dim: #c4c2d0;
  --dlc-rim: rgba(255, 255, 255, 0.07);
  --dlc-bar-shadow: rgba(0, 0, 0, 0.4);
  --dlc-pop-text: 0 1px 2px rgba(0, 0, 0, 0.5);
  --dlc-pop-icon: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55));
  --dlc-hover-bg: rgba(255, 255, 255, 0.06);
  --dlc-dropdown-bg: rgba(26, 26, 32, 0.97);
}

/* Push page content down by the bar height. */
html.dl-chrome-present body {
  padding-top: var(--dlc-bar-h) !important;
}

/* ── Theme escape hatch ───────────────────────────────────────────
   Apply class="dl-no-theme" to any subtree that must stay readable
   regardless of which theme the user picked on domainless.fun. The
   ecosystem's themable vars (--bg, --card, --text, --bright, --dim,
   --accent, --border) are reset to fixed neutral defaults inside
   the subtree, so cascade-derived colors snap back to a known-good
   palette. Use on: code-editor textareas + previews + consoles,
   audio waveform widgets, video player chrome, financial / KYC
   forms, anywhere legibility outranks aesthetics.

   The chrome surfaces themselves (--dlc-* namespace) are NOT reset
   — the top bar / bottom nav / dropdown still follow theme so the
   shell stays consistent. Only site-defined surfaces flip back. */
.dl-no-theme {
  --bg: #0e0e14;
  --card: #16161e;
  --text: #c0c0cc;
  --bright: #f0f0f6;
  --dim: #7a7a88;
  --accent: #c8a86e;
  --border: rgba(255, 255, 255, 0.06);
}

/* ── Top bar (inter-site header) ──────────────────────────────────── */
#dl-chrome-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--dlc-bar-h);
  z-index: 10000;
  background: var(--dlc-bg-glass);
  backdrop-filter: blur(32px) saturate(160%) brightness(104%);
  -webkit-backdrop-filter: blur(32px) saturate(160%) brightness(104%);
  /* Single faint hairline — no gradient, no gold.  Restraint
     reads as luxury at this scale. */
  border-bottom: 1px solid var(--dlc-border);
  box-shadow:
    0 1px 0 var(--dlc-rim) inset,
    0 4px 18px -8px var(--dlc-bar-shadow);
  font-family: var(--dlc-sans);
  font-size: 14px;
  color: var(--dlc-text);
  -webkit-font-smoothing: antialiased;
}

/* 3-column grid: logo (left) | service pills (center) | right
   cluster. The pills fade to invisible on scroll but keep their
   layout slot so the right cluster never shifts. */
.dl-chrome-inner {
  height: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 4px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.dl-chrome-logo,
.dl-chrome-logo-split {
  justify-self: start;
}

.dl-chrome-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

/* Logo */
.dl-chrome-logo {
  flex-shrink: 0;
  font-family: var(--dlc-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--dlc-text-bright);
  text-decoration: none;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.dl-chrome-logo:hover {
  background: var(--dlc-accent-tint);
}
.dl-chrome-logo span {
  background: linear-gradient(180deg, var(--dlc-accent-2), var(--dlc-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Designed wordmark image (replaces the CSS text wordmark). Height matches
   the old 15px text; width auto keeps the 7.2:1 aspect. */
.dl-chrome-logo-img {
  height: 12px;
  width: auto;
  display: block;
  /* Pop off the transparent bar; theme-tuned (none in light, dark in dark). */
  filter: var(--dlc-pop-icon);
}

/* Logo + Beta wrapper. Single flex container so the parent 3-col
   grid (.dl-chrome-inner: 1fr auto 1fr) treats logo+badge as ONE
   column, not two. */
.dl-chrome-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-width: 0;
}

/* Beta badge — sits to the right of the logo on every host except
   search.domainless.fun + /search. Tiny, gold-tinted, pill-shaped,
   uppercase mono. The chrome.v1.js render decides when to emit. */
.dl-chrome-beta {
  flex-shrink: 0;
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--dlc-accent);
  background: var(--dlc-accent-tint);
  color: var(--dlc-accent);
  font-family: var(--dlc-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  cursor: help;
  user-select: none;
}

/* Split logo on subdomains: "<sub>.domainless" with each half clickable. */
.dl-chrome-logo-split {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  font-family: var(--dlc-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;
  padding: 0;
}
.dl-chrome-logo-sub,
.dl-chrome-logo-base {
  text-decoration: none;
  padding: 5px 0;
  border-radius: 5px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.dl-chrome-logo-sub {
  background: linear-gradient(180deg, var(--dlc-accent-2), var(--dlc-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-left: 8px;
}
.dl-chrome-logo-base {
  color: var(--dlc-text-bright);
  padding-right: 8px;
}
.dl-chrome-logo-sub:hover,
.dl-chrome-logo-base:hover {
  background-color: var(--dlc-accent-tint);
}
.dl-chrome-logo-dot {
  color: var(--dlc-text-dim);
  padding: 0 1px;
  font-weight: 600;
  user-select: none;
}

/* Service switcher pills — center column of the bar grid. Same
   row at all viewports; mono uppercase microtype matches the
   bottom nav.

   Behaviour: the pills fade to invisible when the user scrolls
   past the threshold (html.dl-chrome-condensed) AND the dropdown
   is closed. They "light up" again at scroll-top OR while the
   dropdown is open (html.dl-chrome-tabs-pinned). Layout slot is
   preserved during the fade so the right cluster (avatar + ☰)
   doesn't shift. */
.dl-chrome-tabs {
  justify-self: center;
  display: flex;
  gap: 4px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-width: 0;
  max-width: 100%;
  /* Edge-fade: nav items disappear smoothly under the brand on the left
     and under the avatar/hamburger on the right. Same fade depth both
     sides for symmetry. */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  opacity: 1;
  filter: none;
  transition:
    opacity 260ms ease,
    filter 320ms ease,
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(0);
  will-change: opacity, filter;
}
.dl-chrome-tabs::-webkit-scrollbar {
  display: none;
}

html.dl-chrome-condensed:not(.dl-chrome-tabs-pinned) .dl-chrome-tabs {
  opacity: 0;
  filter: blur(2px);
  transform: translateY(-2px);
  pointer-events: none;
}

/* "Light up" — when pills come back from hidden (scroll-top or
   ☰ click), they briefly glow so the reveal feels like glass
   un-fogging instead of a pop. The glow fades on its own. */
html.dl-chrome-light-up .dl-chrome-tab {
  animation: dl-chrome-light-up 540ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes dl-chrome-light-up {
  0% {
    text-shadow:
      0 0 14px var(--dlc-accent-glow),
      0 0 4px rgba(255, 255, 255, 0.3);
  }
  100% {
    text-shadow: 0 0 0 transparent;
  }
}

.dl-chrome-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 9px;
  border-radius: 14px;
  font-family: var(--dlc-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--dlc-text);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}
/* Icon-only pills (2026-06-14). The SVG glyph is 14px; the pill is the tap
   target. The text label is gone — title/aria-label carry the name, and the
   ☰ dropdown shows icon+label as the legend. */
.dl-chrome-tab .dl-bn-icon {
  width: 14px;
  height: 14px;
}
/* Quicksand — rounded geometric face self-hosted to match the wordmark.
   Used for the "/section" breadcrumb so it reads like the domainless.fun logo. */
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://domainless.fun/fonts/woff2/quicksand-500.woff2) format("woff2");
}
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://domainless.fun/fonts/woff2/quicksand-600.woff2) format("woff2");
}
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://domainless.fun/fonts/woff2/quicksand-700.woff2) format("woff2");
}
/* "/section" breadcrumb after the wordmark → brand reads domainless.fun/<x> */
.dl-chrome-section {
  flex-shrink: 0;
  font-family: "Quicksand", var(--dlc-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--dlc-green);
  letter-spacing: -0.01em;
  margin-left: -5px;
  text-shadow: var(--dlc-pop-text);
}
.dl-chrome-brand.has-section .dl-chrome-logo {
  padding-left: 0;
  padding-right: 0;
}
/* Dropdown ecosystem rows: icon + label = the legend for the bar icons. */
.dl-chrome-dropdown-svc {
  display: flex;
  align-items: center;
  gap: 11px;
}
.dl-chrome-dropdown-svc .dl-bn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--dlc-accent);
}
.dl-chrome-tab:hover {
  color: var(--dlc-text-bright);
  background: var(--dlc-hover-bg);
}
.dl-chrome-tab.active {
  color: var(--dlc-accent);
  background: var(--dlc-accent-tint);
  border-color: var(--dlc-border-strong);
}

/* User slot (right side) */
.dl-chrome-user {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.dl-chrome-signin {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  border-radius: 12px;
  font-family: var(--dlc-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--dlc-accent);
  text-decoration: none;
  border: 1px solid rgba(200, 168, 110, 0.2);
  background: transparent;
  transition: background 0.2s ease;
}
.dl-chrome-signin:hover {
  background: var(--dlc-accent-tint);
}

.dl-chrome-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--dlc-accent);
  font-family: var(--dlc-sans);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(200, 168, 110, 0.45);
  overflow: hidden;
  transition:
    transform 0.15s ease,
    border-color 0.2s ease;
}
.dl-chrome-avatar:hover {
  transform: scale(1.05);
  border-color: var(--dlc-accent);
}
.dl-chrome-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Menu toggle (☰) — anchors the dropdown */
.dl-chrome-menu {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--dlc-border);
  color: var(--dlc-text-dim);
  width: 26px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition:
    color 0.15s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}
.dl-chrome-menu:hover {
  color: var(--dlc-text-bright);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}
.dl-chrome-menu svg {
  display: block;
}
html.dl-chrome-collapsed .dl-chrome-menu {
  background: var(--dlc-accent);
  color: #0c0c12;
  border-color: var(--dlc-accent);
}

/* Collapsed state: hide site-specific in-app top headers */
html.dl-chrome-collapsed [data-chrome-hideable] {
  display: none !important;
}

/* ── Top-bar responsive scaling ───────────────────────────────────── */
@media (max-width: 900px) {
  .dl-chrome-inner {
    padding: 0 4px;
    gap: 10px;
    /* Below desktop, drop the centered layout: brand | scrollable icon row |
       menu. minmax(0,1fr) lets the icon row shrink + scroll inside its own
       track instead of overflowing onto the brand. */
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .dl-chrome-tabs {
    justify-self: stretch;
  }
}
@media (max-width: 640px) {
  :root {
    /* Both bars shrink together via the shared source-of-truth. */
    --dlc-bar-shared: 40px;
  }
  .dl-chrome-inner {
    padding: 0 4px;
    gap: 6px;
  }
  .dl-chrome-tab {
    height: 22px;
    padding: 0 9px;
    font-size: 10px;
    letter-spacing: 1.2px;
  }
  .dl-chrome-avatar {
    width: 24px;
    height: 24px;
  }
  .dl-chrome-signin {
    height: 22px;
    padding: 0 9px;
    font-size: 10px;
    letter-spacing: 1.2px;
  }
  .dl-chrome-menu {
    width: 24px;
    height: 22px;
  }
}
@media (max-width: 480px) {
  .dl-chrome-inner {
    padding: 0 4px;
  }
  .dl-chrome-logo {
    font-size: 12px;
    padding: 5px 8px;
  }
  .dl-chrome-logo-split {
    font-size: 12px;
  }
  .dl-chrome-logo-sub {
    padding-left: 8px;
  }
  .dl-chrome-logo-base {
    padding-right: 8px;
  }
}
@media (max-width: 360px) {
  /* very narrow: keep the wordmark + icons, drop only the /section text */
  .dl-chrome-section {
    display: none;
  }
}

/* ── Dropdown (inter-site menu) ───────────────────────────────────── */
.dl-chrome-dropdown {
  /* Viewport-anchored (NOT the narrow right cluster) so it can never be
     pushed off-screen. Sits just below the bar at the top-right. */
  position: fixed;
  top: calc(var(--dlc-bar-h) + 6px);
  right: 6px;
  /* Mostly opaque so the menu reads cleanly on ANY page background. */
  background: var(--dlc-dropdown-bg);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--dlc-border);
  border-radius: 10px;
  list-style: none;
  padding: 5px 0;
  margin: 0;
  width: 232px;
  max-width: calc(100vw - 12px);
  max-height: calc(100vh - 80px);
  /* Vertical scroll ONLY. Without an explicit overflow-x, setting overflow-y
     to auto makes the browser compute overflow-x to auto as well, so a too-wide
     row lets the whole menu pan sideways — pin it hidden. 2026-06-15. */
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 10002;
  box-shadow:
    0 18px 48px -16px rgba(0, 0, 0, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: none;
  font-family: var(--dlc-sans);
  font-size: 12.5px;
  -webkit-font-smoothing: antialiased;
}
.dl-chrome-dropdown.open {
  display: block;
}
.dl-chrome-dropdown-section {
  padding: 10px 16px 4px;
  font-family: var(--dlc-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dlc-accent);
  pointer-events: none;
  font-weight: 600;
}
.dl-chrome-dropdown-item {
  display: block;
  width: 100%;
  padding: 9px 16px;
  color: var(--dlc-text);
  text-decoration: none;
  background: transparent;
  border: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.dl-chrome-dropdown-item:hover,
.dl-chrome-dropdown-item:focus {
  background: var(--dlc-accent-tint);
  color: var(--dlc-text-bright);
  outline: none;
}
.dl-chrome-dropdown-action {
  color: var(--dlc-accent);
}
.dl-chrome-dropdown-separator {
  height: 1px;
  margin: 6px 14px;
  background: var(--dlc-border);
  list-style: none;
}

@media (max-width: 640px) {
  .dl-chrome-dropdown {
    /* Full-bleed sheet on phones — fixed + left/right are viewport margins,
       width auto so they define the width (not the desktop 232px). */
    top: calc(var(--dlc-bar-h) + 6px);
    right: 8px;
    left: 8px;
    width: auto;
    min-width: auto;
    max-width: none;
  }
}

/* ══════════════════════════════════════════════════════════════════
   Bottom nav (intra-site tabs) — same glass, same gold, sized
   slightly larger than the top so thumb targets feel right on mobile.
   ══════════════════════════════════════════════════════════════════ */
#dl-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--dlc-bn-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: 4px;
  padding-right: 4px;
  background: var(--dlc-bg-glass);
  backdrop-filter: blur(32px) saturate(160%) brightness(104%);
  -webkit-backdrop-filter: blur(32px) saturate(160%) brightness(104%);
  border-top: 1px solid var(--dlc-border);
  box-shadow:
    0 -1px 0 var(--dlc-rim) inset,
    0 -4px 18px -8px var(--dlc-bar-shadow);
  display: flex;
  justify-content: space-evenly;
  align-items: stretch;
  z-index: 999;
  font-family: var(--dlc-sans);
  overflow-x: auto;
  scrollbar-width: none;
}
#dl-bottom-nav::-webkit-scrollbar {
  display: none;
}
.dl-bn-tab {
  flex: 1 0 auto;
  min-width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 3px 8px;
  text-decoration: none;
  color: var(--dlc-text);
  font-family: var(--dlc-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  transition: color 150ms ease;
  position: relative;
  text-shadow: var(--dlc-pop-text);
}
.dl-bn-tab:hover {
  color: var(--dlc-text-bright);
}
.dl-bn-tab.active {
  color: var(--dlc-accent);
}
.dl-bn-tab.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--dlc-accent);
  border-radius: 0 0 2px 2px;
}
/* base.v1.css colors every non-chrome <a> gold via a high-specificity global
   rule whose exclusion list covers [class*="dl-chrome"] but NOT the bottom nav
   (dl-bn-*). Re-assert the chrome's own colors ID-scoped (#dl-bottom-nav →
   1,1,0 beats base's 0,8,2) so the bottom nav matches the top bar — white
   inactive, gold active — on every site regardless of base/site link styling.
   Icons follow via stroke: currentColor. 2026-06-15. */
#dl-bottom-nav .dl-bn-tab {
  color: var(--dlc-text);
}
#dl-bottom-nav .dl-bn-tab:hover {
  color: var(--dlc-text-bright);
}
#dl-bottom-nav .dl-bn-tab.active {
  color: var(--dlc-accent);
}
.dl-bn-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: var(--dlc-pop-icon);
}
.dl-bn-label {
  white-space: nowrap;
}
.dl-bn-badge {
  position: absolute;
  top: 6px;
  right: 14px;
  width: 8px;
  height: 8px;
  background: #ff5c5c;
  border-radius: 50%;
  display: none;
  box-shadow: 0 0 8px rgba(255, 92, 92, 0.6);
}
.dl-bn-badge.has-unread {
  display: block;
}
html.dl-bn-present body {
  padding-bottom: calc(
    var(--dlc-bn-h) + env(safe-area-inset-bottom, 0px)
  ) !important;
}

@media (max-width: 480px) {
  /* Heights stay equal at 40px from the @640 breakpoint above —
     do NOT override --dlc-bn-h here, only shrink internal contents. */
  .dl-bn-tab {
    min-width: 48px;
    padding: 2px 4px;
    font-size: 8.5px;
    letter-spacing: 1px;
  }
  .dl-bn-icon {
    width: 16px;
    height: 16px;
  }
}

/* ── Universal footer ─────────────────────────────────────────────── */
#dl-footer {
  border-top: 1px solid transparent;
  border-image: linear-gradient(
      90deg,
      transparent,
      var(--dlc-border),
      transparent
    )
    1;
  padding: 32px 16px 36px;
  text-align: center;
  font-family: var(--dlc-sans);
  font-size: 13px;
  color: var(--dlc-text-dim);
  background: transparent;
  margin-top: 48px;
}
.dl-footer-row {
  line-height: 2;
}
.dl-footer-row a {
  color: var(--dlc-text-dim);
  text-decoration: none;
  transition: color 150ms ease;
}
.dl-footer-row a:hover {
  color: var(--dlc-accent);
}
.dl-footer-tagline {
  font-family: var(--dlc-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dlc-text-dim);
  margin-top: 8px;
  opacity: 0.6;
}
@media (max-width: 480px) {
  #dl-footer {
    padding: 24px 12px 28px;
    font-size: 12px;
  }
}

/* Reduced motion — kill all chrome transitions / animations. */
@media (prefers-reduced-motion: reduce) {
  .dl-chrome-tabs,
  #dl-chrome-bar,
  #dl-bottom-nav,
  .dl-chrome-tab,
  .dl-bn-tab,
  .dl-chrome-avatar,
  .dl-chrome-signin,
  .dl-chrome-menu {
    transition: none !important;
    animation: none !important;
  }
}
