.search-row #backButton span {
  width: 13px;
  height: 13px;
  font-size: 0;
}

.search-row #backButton span::before {
  display: block;
  width: 10px;
  height: 10px;
  border-bottom: 3px solid currentColor;
  border-left: 3px solid currentColor;
  border-radius: 2px;
  content: "";
  transform: rotate(45deg) translate(2px, -2px);
}

#closeDialog span {
  font-size: 0;
}

#closeDialog span::before,
#closeDialog span::after {
  position: absolute;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

#closeDialog span::before {
  transform: rotate(45deg);
}

#closeDialog span::after {
  transform: rotate(-45deg);
}

.round-button.hidden {
  display: none;
}

.search-band {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 6;
  margin: 0 -16px 4px;
  padding: 6px 16px 4px;
  background: transparent;
  border-block: 1px solid transparent;
  backdrop-filter: none;
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease, margin var(--ios-spring), padding var(--ios-spring);
}

.app-shell.home-title .search-band,
.app-shell.saved-route .search-band {
  padding-top: 2px;
}

.app-shell.settings-route .search-band {
  display: none;
}

.app-shell.criteria-route #screenEyebrow,
.app-shell.criterion-detail-route #screenSubtitle {
  display: none;
}

.app-shell.criteria-route:not(.criterion-detail-route) #screenTitle {
  font-size: clamp(1.5rem, 7.6vw, 2rem);
  text-wrap: nowrap;
  white-space: nowrap;
}

.app-shell.criterion-detail-route .topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "criteria-nav beta"
    "title title";
  align-items: center;
  column-gap: 10px;
  row-gap: 14px;
  padding-right: 0;
  padding-bottom: 10px;
}

.app-shell.criterion-detail-route .title-lockup {
  grid-area: title;
}

.app-shell.criterion-detail-route #screenTitle {
  margin-bottom: 0;
  overflow: visible;
  text-wrap: nowrap;
  white-space: nowrap;
}

.app-shell.criterion-detail-route .beta-badge {
  position: static;
  grid-area: beta;
  align-self: center;
}

.app-shell.criterion-detail-route .criterion-bookmark {
  position: relative;
  grid-area: beta;
  align-self: center;
}

.criteria-subpage-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.criteria-header-nav {
  grid-area: criteria-nav;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
}

.criteria-header-nav[hidden] {
  display: none;
}

.criteria-header-nav .criteria-location-pill {
  flex: 0 0 auto;
  width: max-content;
  max-width: none;
}

.criteria-header-nav .criteria-back-button,
.criteria-header-nav .criteria-location-pill {
  min-height: 26px;
  border-radius: 10px;
  padding: 0 9px;
  font-size: 0.68rem;
}

.criteria-header-nav .criteria-back-button > span:first-child {
  width: 10px;
  height: 10px;
  margin-right: 4px;
}

.criteria-header-nav .criteria-back-button > span:first-child::before {
  width: 6px;
  height: 6px;
}

body.scroll-resetting .search-band,
body.scroll-resetting .search-row,
body.scroll-resetting .crumbs,
body.scroll-resetting .home-tools,
body.scroll-resetting .sticky-context-title {
  transition: none;
}

body.scrolled .search-band,
.search-band.is-stuck,
.search-band.is-compact {
  margin: 0 -16px 2px;
  padding: 5px 16px 3px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(7, 11, 14, 0.72);
  border-block-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(145%);
}

.search-band.is-stuck:not(.is-compact) {
  margin: 0 -16px 4px;
  padding: 5px 16px 4px;
}

.app-shell.variant-route .search-band {
  position: relative;
  top: auto;
}

.app-shell.variant-route .search-band.is-stuck,
.app-shell.variant-route .search-band.has-floating-title {
  margin: 0 -16px 4px;
  padding: 6px 16px 4px;
  background: transparent;
  border-block-color: transparent;
  backdrop-filter: none;
}

.sticky-context-title {
  display: grid;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 18;
  min-height: calc(env(safe-area-inset-top, 0px) + 42px);
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-width: 0 0 1px;
  border-radius: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 44px 9px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(12, 15, 20, 0.82);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.26), inset 0 1px rgba(255, 255, 255, 0.09);
  color: var(--ink);
  font-size: clamp(0.78rem, 3.8vw, 1.02rem);
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  text-wrap: balance;
  backdrop-filter: blur(28px) saturate(150%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-105%) scale(0.992);
  transition:
    opacity 160ms ease,
    transform var(--ios-spring);
}

.sticky-context-title.is-visible {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
  transform: translateY(0) scale(1);
}

.sticky-context-title.is-visible:active {
  transform: translateY(0) scale(0.992);
}

.search-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  max-height: 56px;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    max-height 260ms cubic-bezier(0.22, 1, 0.36, 1),
    min-height 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.search-row[hidden] {
  display: none;
}

.search-row[hidden] + .crumbs {
  padding-top: 0;
}

.search-row:has(#backButton.hidden):has(.section-glyph-control.hidden):has(.home-shortcut-button.hidden) {
  grid-template-columns: minmax(0, 1fr);
}

.search-row:has(#backButton.hidden):has(.section-glyph-control.hidden):has(.home-shortcut-button.hidden) .search-box {
  grid-column: 1;
}

.search-row:has(#backButton.hidden):has(.section-glyph-control.hidden):not(:has(.home-shortcut-button.hidden)) {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.search-row:has(#backButton.hidden):has(.section-glyph-control.hidden):not(:has(.home-shortcut-button.hidden)) .search-box {
  grid-column: 1;
}

.search-row:has(#backButton.hidden):has(.section-glyph-control.hidden):not(:has(.home-shortcut-button.hidden)) .home-reading-shortcut {
  grid-column: 2;
}

.search-row:has(#backButton.hidden):has(.section-glyph-control.hidden):not(:has(.home-shortcut-button.hidden)) .recent-toggle {
  grid-column: 3;
}

.search-row:has(.recent-toggle.hidden):has(.section-glyph-control.hidden):not(:has(#backButton.hidden)) {
  grid-template-columns: auto minmax(0, 1fr);
}

.search-row:has(.home-shortcut-button.hidden):has(.recent-toggle.hidden):not(:has(#backButton.hidden)):not(:has(.section-glyph-control.hidden)) {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.section-glyph-control,
.recent-toggle,
.home-shortcut-button {
  display: inline-grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(12, 18, 24, 0.55);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.16), 0 10px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(26px) saturate(160%);
  color: var(--ink);
  cursor: pointer;
}

.section-glyph-control {
  grid-column: 5;
}

.recent-toggle.hidden + .section-glyph-control {
  grid-column: 3;
}

.recent-toggle {
  grid-column: 4;
  color: #d8e5f3;
}

.home-reading-shortcut {
  grid-column: 3;
  color: #d8e5f3;
}

.home-shortcut-button .settings-glyph,
.home-criteria-shortcut .settings-glyph {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: currentColor;
}

.home-shortcut-button .settings-glyph::before,
.home-criteria-shortcut .settings-glyph::before {
  width: 22px;
  height: 22px;
}

.home-reading-shortcut .settings-glyph-reading-patterns::before {
  width: 20px;
  height: 20px;
}

body.oled-mode .home-criteria-shortcut {
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
  backdrop-filter: none;
  color: var(--muted);
}

body.oled-mode .home-reading-shortcut {
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
  backdrop-filter: none;
  color: var(--muted);
}

.search-row #backButton {
  grid-column: 1;
  width: 46px;
  height: 46px;
}

.search-row #backButton.hidden,
.home-shortcut-button.hidden,
.recent-toggle.hidden,
.section-glyph-control.hidden {
  display: none;
}

.section-glyph-control img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.search-box {
  grid-column: 2;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
    rgba(12, 18, 24, 0.45);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.16), 0 10px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(26px) saturate(160%);
}

.search-icon {
  position: relative;
  align-self: center;
  justify-self: center;
  width: 18px;
  height: 18px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  transform: translateY(-1px);
}

.search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--muted);
  content: "";
  transform: rotate(45deg);
}

.search-box input {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-box input::placeholder {
  color: var(--quiet);
  text-overflow: ellipsis;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  max-height: 56px;
  overflow-x: auto;
  padding-top: 8px;
  scrollbar-width: none;
  transition: max-height var(--ios-spring), opacity 180ms ease, padding var(--ios-spring), transform var(--ios-spring);
}

.crumbs.home-chrome {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  max-height: 108px;
}

.crumbs.home-chrome:empty {
  display: none;
}

.recent-searches {
  display: flex;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  padding: 0 0 1px;
  scrollbar-width: none;
  animation: recent-drop var(--ios-spring);
}

.recent-searches::-webkit-scrollbar {
  display: none;
}

.suggestion-chip-row {
  display: grid;
  gap: 7px;
  width: 100%;
  margin-top: 9px;
}

.did-you-mean {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  margin: 7px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.did-you-mean-kicker {
  display: block;
  color: color-mix(in srgb, var(--accent) 58%, #ffffff);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.did-you-mean-chip {
  display: grid;
  min-height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 15px;
  padding: 8px 11px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.035);
  color: #d9e3ee;
  font-size: 0.74rem;
  font-weight: 830;
  line-height: 1.16;
  text-align: center;
  cursor: pointer;
}

.did-you-mean-chip.primary-suggestion {
  border-color: color-mix(in srgb, var(--accent) 48%, rgba(255, 255, 255, 0.14));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 18%, transparent), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.055);
  color: color-mix(in srgb, var(--accent) 62%, #ffffff);
  font-weight: 900;
}

.did-you-mean-chip:active {
  transform: scale(0.985);
}

/* First-launch banner uses the same surface and controls as Home. */
.install-prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px 8px 10px 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent), var(--material);
  color: var(--muted);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}

.install-prompt > span { min-width: 0; }

.install-prompt strong,
.install-prompt-meta {
  display: block;
}

.install-prompt strong {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.install-prompt-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
}

.install-prompt button {
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 999px;
  padding: 0 12px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.install-prompt button[aria-label] {
  display: grid;
  width: 44px;
  padding: 0;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
  place-items: center;
  color: var(--muted);
  font-size: 1.35rem;
  font-weight: 500;
}

.install-prompt button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.recent-search-chip {
  flex: 0 0 auto;
  min-height: 27px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 999px;
  padding: 0 10px;
  background: color-mix(in srgb, var(--accent) 8%, rgba(255, 255, 255, 0.04));
  color: #c7d2df;
  font-size: 0.72rem;
  font-weight: 790;
  cursor: pointer;
}

@keyframes recent-drop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.crumbs::-webkit-scrollbar {
  display: none;
}

.crumb {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.crumb:last-child {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  color: var(--ink);
}

.crumb-spacer {
  flex: 1 1 auto;
}

.saved-view-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(18, 22, 28, 0.62);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px) saturate(135%);
}

.saved-view-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 36px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  cursor: pointer;
}

.saved-view-toggle button.active {
  background: color-mix(in srgb, var(--accent) 82%, #ffffff 18%);
  color: #050608;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 12%, transparent);
}

.saved-view-toggle svg,
.saved-view-toggle img {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.saved-view-toggle svg {
  fill: currentColor;
}

.saved-view-toggle img {
  object-fit: contain;
  filter: grayscale(1) brightness(1.45);
}

.saved-view-toggle button.active img {
  filter: brightness(0);
}

.variant-key {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 999px;
  padding: 4px 10px 4px 6px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    color-mix(in srgb, var(--accent) 8%, rgba(16, 19, 24, 0.64));
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 820;
  white-space: nowrap;
}

.top-rec-toggle {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  box-sizing: border-box;
  justify-content: center;
  gap: 0;
  padding: 0;
}

.variant-jump-toggle {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  box-sizing: border-box;
  justify-content: center;
  gap: 0;
  padding: 0;
}

.legend-toggle {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  box-sizing: border-box;
  justify-content: center;
  gap: 0;
  padding: 0;
}

.density-toggle {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  box-sizing: border-box;
  justify-content: center;
  gap: 0;
  padding: 0;
}

.variant-key span:first-child {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #050608;
  font-weight: 950;
}

.legend-toggle {
  cursor: pointer;
}

.legend-toggle.active,
.top-rec-toggle.active {
  background: color-mix(in srgb, var(--accent) 14%, rgba(18, 22, 28, 0.68));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 8%, transparent);
}

.top-rec-toggle span:first-child,
.variant-jump-toggle span:first-child,
.legend-toggle span:first-child {
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.9rem;
  line-height: 1;
}

.variant-key.density-toggle .density-toggle-glyph {
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--accent);
}

.variant-key.density-toggle .density-toggle-glyph::before {
  width: 18px;
  height: 18px;
  background: var(--accent);
}

.density-glyph-comfortable {
  --settings-glyph-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='4' y='5' width='16' height='2.4' rx='1.2' fill='black'/%3E%3Crect x='4' y='10.8' width='16' height='2.4' rx='1.2' fill='black'/%3E%3Crect x='4' y='16.6' width='16' height='2.4' rx='1.2' fill='black'/%3E%3C/svg%3E");
}

.density-glyph-compact {
  --settings-glyph-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='5' y='4.8' width='14' height='2.4' rx='1.2' fill='black'/%3E%3Crect x='7' y='8.2' width='10' height='2.4' rx='1.2' fill='black'/%3E%3Crect x='5' y='11.6' width='14' height='2.4' rx='1.2' fill='black'/%3E%3Crect x='7' y='15' width='10' height='2.4' rx='1.2' fill='black'/%3E%3Crect x='5' y='18.4' width='14' height='2.4' rx='1.2' fill='black'/%3E%3C/svg%3E");
}

.density-glyph-ultra {
  --settings-glyph-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='4' y='5' width='16' height='2.4' rx='1.2' fill='black'/%3E%3Crect x='7' y='9.2' width='10' height='2.4' rx='1.2' fill='black'/%3E%3Crect x='4' y='13.4' width='16' height='2.4' rx='1.2' fill='black'/%3E%3Crect x='7' y='17.6' width='10' height='2.4' rx='1.2' fill='black'/%3E%3C/svg%3E");
}

.variant-jump-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linejoin: round;
}

.top-rec-toggle:not(.active) span:first-child,
.variant-jump-toggle:not(.active) span:first-child,
.legend-toggle:not(.active) span:first-child {
  border: 0;
  background: transparent;
  color: var(--accent);
}

.density-toggle.density-compact,
.density-toggle.density-ultra {
  border-color: color-mix(in srgb, var(--accent) 66%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, rgba(18, 22, 28, 0.68));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 8%, transparent);
}

.variant-jump-toggle.active {
  border-color: color-mix(in srgb, var(--accent) 66%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, rgba(18, 22, 28, 0.68));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 8%, transparent);
}

.home-tools {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  isolation: isolate;
  width: 100%;
  max-height: 46px;
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: top center;
  transition:
    max-height 300ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 220ms ease;
}

#stage > .home-tools {
  margin: -4px 0 2px;
}

.stage.home-stage {
  gap: 7px;
}

.home-acr-source-strip {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(185, 196, 211, 0.16);
  border-radius: 9px;
  padding: 2px 8px;
  background: rgba(155, 166, 181, 0.075);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
  color: var(--accent);
  font-size: clamp(0.56rem, 2.35vw, 0.66rem);
  font-weight: 720;
  line-height: 1.15;
  text-decoration: none;
  transform: translateY(-2px);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.home-acr-source-strip sup {
  margin-left: 1px;
  font-size: 0.62em;
  line-height: 0;
}

.home-acr-source-action {
  flex: 0 0 auto;
  color: inherit;
  font-weight: 840;
  white-space: nowrap;
}

.home-acr-source-strip:hover {
  border-color: rgba(193, 203, 216, 0.26);
  background: rgba(164, 174, 188, 0.105);
}

.home-acr-source-strip:active {
  transform: translateY(-2px) scale(0.992);
}

.home-acr-source-strip:focus-visible {
  outline: 2px solid rgba(205, 215, 228, 0.78);
  outline-offset: 2px;
}

.home-tools::before {
  position: absolute;
  top: 50%;
  right: 78px;
  z-index: 2;
  width: 112px;
  height: 46px;
  background: linear-gradient(90deg, transparent 0%, rgba(5, 8, 10, 0.24) 42%, rgba(5, 8, 10, 0.7) 68%, rgba(5, 8, 10, 0.84) 100%);
  content: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 180ms ease;
}

.home-tools::after {
  position: absolute;
  top: 50%;
  right: 86px;
  z-index: 3;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, rgba(255, 255, 255, 0.1));
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg-soft) 94%, var(--accent) 6%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 3px 10px rgba(0, 0, 0, 0.22);
  color: var(--accent);
  content: "›";
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(2px);
  transition: opacity 160ms ease, transform 180ms ease;
}

.home-tools.can-scroll-right::after {
  opacity: 0.84;
  transform: translateY(-50%) translateX(0);
}

.home-tools.can-scroll-right::before {
  opacity: 0;
}

.quick-sections {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 1px 0 3px;
  scrollbar-width: none;
}

.home-tools.can-scroll-right .quick-sections {
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 0,
    #000 calc(100% - 112px),
    rgba(0, 0, 0, 0.72) calc(100% - 72px),
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    #000 0,
    #000 calc(100% - 112px),
    rgba(0, 0, 0, 0.72) calc(100% - 72px),
    transparent 100%
  );
}

.quick-sections::-webkit-scrollbar {
  display: none;
}

.quick-section {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  place-content: center;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(3, 5, 8, 0.78);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 8px 18px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  line-height: 0;
}

.quick-section img {
  display: block;
  width: 32px;
  height: 32px;
  margin: auto;
  object-fit: contain;
  object-position: center;
}

.view-switcher {
  position: relative;
  z-index: 4;
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
}

.view-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  line-height: 0;
}

.view-button.active {
  background: var(--accent);
  color: #051014;
}

.view-icon {
  position: relative;
  display: block;
  width: 17px;
  height: 17px;
}

.grid-icon {
  background:
    linear-gradient(currentColor 0 0) 0 0 / 7px 7px no-repeat,
    linear-gradient(currentColor 0 0) 10px 0 / 7px 7px no-repeat,
    linear-gradient(currentColor 0 0) 0 10px / 7px 7px no-repeat,
    linear-gradient(currentColor 0 0) 10px 10px / 7px 7px no-repeat;
}

.list-icon {
  background:
    linear-gradient(currentColor 0 0) 0 2px / 17px 3px no-repeat,
    linear-gradient(currentColor 0 0) 0 7px / 17px 3px no-repeat,
    linear-gradient(currentColor 0 0) 0 12px / 17px 3px no-repeat;
}

.crumbs.is-collapsed,
.search-band.is-compact .crumbs,
body.scrolled .crumbs {
  max-height: 0 !important;
  overflow: hidden;
  opacity: 0 !important;
  padding-top: 0 !important;
  pointer-events: none;
  transform: translateY(-6px) !important;
}
