:root {
  color-scheme: light;
  --bg: #fff;
  --surface: #fff;
  --surface-2: #f7f8fa;
  --text: #101827;
  --muted: #5b6472;
  --line: #051c3d;
  --soft-line: #2f77dc;
  --accent: #142b50;
  --accent-contrast: #fff;
  --chip: #f1f3f6;
  --shadow: 0 14px 40px rgba(16, 24, 39, 0.12);
  --radius: 16px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Arial,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

.hero-visual-image-small {
  display: block;
  width: 40px;
  height: 65px;
  object-fit: contain;
}

button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #668fc8;
  outline-offset: 2px;
}
.is-hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--muted);
  margin: 0 0 3px;
}
.btn,
.filter-button,
.header-select,
.theme-toggle,
.icon-btn,
.language-option,
.sort-wrap select {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  min-height: 44px;
}
.btn {
  padding: 10px 18px;
  font-weight: 700;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
}
.btn-wide {
  width: 100%;
  min-height: 50px;
}
.text-btn {
  border: 0;
  background: none;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 650;
}
.brand-mark {
  width: 54px;
  height: 54px;
  border: 2px solid var(--line);
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
  margin: auto;
}
.brand-mark.small {
  width: 40px;
  height: 40px;
  font-size: 19px;
  margin: 0;
  border-radius: 12px;
}
.language-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--surface-2);
}
.language-card {
  width: min(100%, 440px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow);
  text-align: center;
}
.language-card h1 {
  font-size: 30px;
  line-height: 1.1;
  margin: 6px 0 26px;
}
.language-card h2 {
  font-size: 22px;
  margin: 0;
}
.language-card .muted {
  margin: 8px 0 22px;
}
.language-options {
  display: grid;
  gap: 9px;
  margin-bottom: 20px;
}
.language-option {
  text-align: left;
  padding: 10px 14px;
  font-weight: 650;
}
.language-option.selected {
  background: var(--chip);
  box-shadow: inset 0 0 0 1px var(--line);
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}
.sidebar {
  border-right: 1px solid var(--soft-line);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: var(--surface);
}
.brand-lockup {
  display: flex;
  align-items: center;


  color: var(--text);
  text-decoration: none;
}
.brand-lockup b,
.brand-lockup strong {
  display: block;
  line-height: 1.15;
}
.brand-lockup b {
  font-size: 13px;
}
.brand-lockup strong {
  font-size: 22px;
}
.side-nav {
  display: grid;
  gap: 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  padding: 12px;
  border-radius: 10px;
  font-weight: 650;
  min-height: 48px;
}
.nav-item.active,
.nav-item:hover {
  border-color: var(--line);
  background: var(--surface-2);
}
.nav-icon {
  width: 24px;
  text-align: center;
  font-size: 20px;
}
.sidebar-note {
  margin-top: auto;
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
}
.sidebar-note p {
  margin: 6px 0 0;
  color: var(--muted);
}
.main-content {
  min-width: 0;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 36px;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  top: 15px;
  gap: 10px;
  border-bottom: 1px solid var(--soft-line);
  background-color: var(--bg);

  z-index: 4;
}

.topbar-search {
  height: 76px;
  display: flex;
  align-items: center;
  top: 1px;
  gap: 10px;
  border-bottom: 1px solid var(--soft-line);
  background-color: var(--bg);
  position: sticky;
  z-index: 10;
}

 
.topbar-spacer {
  flex: 1;
}
.header-select {
  padding: 8px 12px;
  font-weight: 650;
}
.theme-toggle {
  width: 76px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  font-size: 20px;
  padding: 0;
}
.theme-toggle .moon {
  display: none;
}
.search-intro {
  padding: 34px 0 24px;
}
.search-intro h1 {
  font-size: clamp(27px, 3vw, 38px);
  letter-spacing: -0.035em;
  margin: 0 0 4px;
}
.search-intro > p {
  color: var(--muted);
  margin: 0 0 20px;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 5px 6px 5px 14px;
  min-height: 58px;
  box-shadow: 0 2px 8px rgba(10, 20, 40, 0.04);
}
.search-symbol {
  font-size: 26px;
}
.search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}
.search-submit {
  min-width: 110px;
}
.filter-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.filter-button {
  padding: 8px 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
}
.filter-count {
  font-size: 12px;
  font-weight: 800;
}
.chevron {
  margin-left: 3px;
}
.sort-wrap {
  margin-left: auto;
}
.sort-wrap select {
  padding: 9px 34px 9px 12px;
  font-weight: 650;
}
.results-section {
  padding: 4px 0 32px;
  min-height: 380px;
}
.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.results-heading h2 {
  font-size: 21px;
  margin: 0;
}
.results-heading p {
  font-size: 14px;
  margin: 2px 0 0;
}
.active-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 14px;
}
.active-chip,
.label-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--chip);
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
}
.active-chip button {
  border: 0;
  background: none;
  color: var(--text);
  font-size: 16px;
  padding: 0;
}
.results-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.website-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: start;
  background: var(--surface);
}
.category-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  grid-row: span 3;
  color: var(--text);
}
.category-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-heading {
  min-width: 0;
}
.site-heading h3 {
  font-size: 16px;
  margin: 0 0 1px;
  line-height: 1.3;
}
.site-domain {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.site-description {
  grid-column: 2/4;
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0 2px;
}
.card-labels {
  grid-column: 2/4;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.card-actions {
  grid-column: 2/4;
  display: flex;
  gap: 8px;
  margin-top: 9px;
}
.card-actions .btn {
  min-height: 40px;
  padding: 7px 14px;
}
.empty-state {
  text-align: center;
  padding: 48px 16px;
  border: 1px dashed var(--soft-line);
  border-radius: 14px;
}
.empty-symbol {
  font-size: 30px;
}
.empty-state h3 {
  margin: 8px 0 4px;
}
.empty-state p {
  color: var(--muted);
  margin: 0 0 16px;
}
.pagination-row {
  text-align: center;
  padding: 18px;
}
.site-footer {
  margin-top: auto;
  padding: 18px 0 24px;
  border-top: 1px solid var(--soft-line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(5, 12, 24, 0.48);
  display: grid;
  place-items: center;
  padding: 18px;
}
.dialog-card {
  width: min(100%, 520px);
  max-height: min(86vh, 760px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.dialog-head h2 {
  font-size: 22px;
  margin: 0;
}
.dialog-head p {
  margin: 4px 0 0;
  font-size: 14px;
}
.icon-btn {
  width: 44px;
  min-width: 44px;
  padding: 0;
  font-size: 23px;
  display: grid;
  place-items: center;
}
.dialog-search {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 13px;
  background: var(--surface);
  color: var(--text);
  margin-bottom: 12px;
}
.choice-list {
  max-height: 46vh;
  overflow: auto;
  border: 1px solid var(--soft-line);
  border-radius: 10px;
}
.choice-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--soft-line);
  min-height: 48px;
}
.choice-row:last-child {
  border-bottom: 0;
}
.choice-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.choice-row span {
  flex: 1;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.info-card {
  width: min(100%, 560px);
}
.info-description {
  color: var(--muted);
  margin: 16px 0;
}
.info-card h3 {
  font-size: 15px;
  margin: 16px 0 8px;
}
.label-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.destination-box {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-top: 18px;
}
.destination-icon {
  font-size: 22px;
}
.destination-box > div {
  flex: 1;
  min-width: 0;
}
.destination-box b {
  display: block;
  font-size: 13px;
}
.destination-box a {
  display: block;
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.external-notice {
  font-size: 13px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--soft-line);
  padding: 12px;
  border-radius: 10px;
  margin: 14px 0 0;
}
.toast {
  position: fixed;
  z-index: 130;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.toast.show {
  opacity: 1;
}
.mobile-menu,
.sidebar-scrim {
  display: none;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --surface: #111c2e;
  --surface-2: #172338;
  --text: #f4f6fa;
  --muted: #b4bfce;
  --line: #d4dbe6;
  --soft-line: #43516a;
  --accent: #f4f6fa;
  --accent-contrast: #101827;
  --chip: #202d42;
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .btn-primary {
  background: #f4f6fa;
  color: #101827;
  border-color: #f4f6fa;
}
html[data-theme="dark"] .theme-toggle .sun {
  display: none;
}
html[data-theme="dark"] .theme-toggle .moon {
  display: inline;
}
html[data-theme="dark"] .brand-mark {
  color: #f4f6fa;
}
@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .main-content {
    padding: 0 24px;
  }
  .results-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    z-index: 25;
    inset: 0 auto 0 0;
    width: min(82vw, 300px);
    transform: translateX(-105%);
    transition: transform 0.2s;
  }
  .sidebar.is-open {
    transform: translateX(0);
  }
  .sidebar-scrim.is-visible {
    display: block;
    position: fixed;
    z-index: 24;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
  }
  .main-content {
    padding: 0 16px;
  }
  .topbar {
    height: 64px;
  }

  .topbar-search {
    position: -webkit-sticky;
    position: sticky;
    min-height: 60px;
    height: auto;
    z-index: 20;
  }
  
  .mobile-menu {
    display: grid;
  }
  .search-intro {
    padding: 24px 0 18px;
  }
  .search-intro h1 {
    font-size: 28px;
  }
  .search-bar {
    min-height: 54px;
  }
  .search-submit {
    min-width: 84px;
    padding: 8px 12px;
  }
  .filter-toolbar {
    gap: 8px;
    flex-wrap: wrap;
  }
  .filter-button {
    flex: 1;
    justify-content: center;
    padding: 8px 9px;
  }
  .sort-wrap {
    width: 100%;
    margin: 0;
  }
  .sort-wrap select {
    width: 100%;
  }
  .results-heading h2 {
    font-size: 19px;
  }
  .website-card {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 13px;
    gap: 4px 10px;
  }
  .category-icon {
    width: 40px;
    height: 40px;
    grid-row: span 2;
  }
  .site-description,
  .card-labels,
  .card-actions {
    grid-column: 2;
  }
  .card-actions .btn {
    flex: 1;
  }
  .site-footer {
    flex-direction: column;
    gap: 5px;
  }
  .overlay {
    align-items: end;
    padding: 0;
  }
  .dialog-card {
    width: 100%;
    max-height: 88vh;
    border-radius: 18px 18px 0 0;
    padding: 20px 16px calc(60px + env(safe-area-inset-bottom));
  }
  .choice-list {
    max-height: 48vh;
  }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .results-list {
    grid-template-columns: 1fr;
  }
  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Compact SafeWeb identity and directory count */
.brand-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  margin: 18px 0 0;
  border: 1px solid var(--soft-line);
  border-radius: 14px;
  background: var(--surface-2);
}
.brand-banner-copy {
  min-width: 0;
}
.brand-banner h2 {
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}
.brand-banner-copy p {
  font-size: 13px;
  color: var(--muted);
  margin: 3px 0 0;
}
.brand-banner-count {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 750;
  color: var(--text);
  margin: 0;
  text-align: right;
}
@media (max-width: 560px) {
  .brand-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 12px 14px;
    margin-top: 12px;
  }
  .brand-banner h2 {
    font-size: 16px;
  }
  .brand-banner-copy p,
  .brand-banner-count {
    font-size: 12px;
  }
  .brand-banner-count {
    text-align: left;
  }
}

/* Premium SafeWeb visual system */
:root {
  font-family:
    "Satoshi",
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  --accent: #3568f5;
  --accent-contrast: #fff;
  --line: #dce3ee;
  --soft-line: #e6ebf2;
  --radius: 16px;
}
html[data-theme="dark"] {
  --accent: #4778ff;
  --accent-contrast: #fff;
  --line: #34445e;
  --soft-line: #2a3950;
}
body {
  letter-spacing: -0.012em;
}
.main-content {
  max-width: 1480px;
}
.brand-banner {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border-color: var(--soft-line);
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(20, 42, 82, 0.045);
}
.search-bar {
  border-color: var(--soft-line);
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(20, 42, 82, 0.055);
}
.search-bar:focus-within {
  border-color: #8aa8ff;
  box-shadow: 0 0 0 4px rgba(53, 104, 245, 0.1);
}
.btn,
.filter-button,
.header-select,
.theme-toggle,
.icon-btn,
.sort-wrap select {
  border-radius: 12px;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}
.btn-primary {
  background: #3568f5;
  border-color: #3568f5;
  color: #fff;
  box-shadow: 0 5px 13px rgba(53, 104, 245, 0.16);
}
.btn-primary:hover {
  background: #2859e5;
  border-color: #2859e5;
  box-shadow: 0 8px 18px rgba(53, 104, 245, 0.22);
  transform: translateY(-1px);
}
.btn-secondary {
  border-color: var(--soft-line);
}
.website-card {
  border: 1px solid var(--soft-line);
  border-radius: 18px;
  padding: 17px;
  box-shadow: 0 4px 16px rgba(18, 36, 68, 0.035);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.website-card:hover {
  border-color: var(--line);
  box-shadow: 0 10px 28px rgba(18, 36, 68, 0.075);
  transform: translateY(-2px);
}
.category-icon {
  border: 1px solid var(--soft-line);
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--text);
}
.category-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-actions .btn {
  border-radius: 11px;
  min-height: 42px;
}
.card-actions .info-card-btn {
  min-width: 84px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.category-tile {
  min-width: 0;
  min-height: 92px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--soft-line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 3px 12px rgba(18, 36, 68, 0.025);
  transition: all 0.16s ease;
}
.category-tile .category-icon {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  border-radius: 0;
  grid-row: auto;
}
.category-tile .category-icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.75;
}
.category-tile:hover,
.category-tile.is-active {
  border-color: #8daaff;
  background: rgba(53, 104, 245, 0.055);
  box-shadow: 0 5px 15px rgba(53, 104, 245, 0.08);
}
.category-tile.is-active {
  color: #3568f5;
}
html[data-theme="dark"] .category-tile.is-active {
  color: #8eaeff;
  background: rgba(71, 120, 255, 0.13);
  border-color: #547bd2;
}
html[data-theme="dark"] .btn-primary {
  background: #4778ff;
  color: #fff;
  border-color: #4778ff;
}
@media (max-width: 760px) {
  .main-content {
    padding: 0 13px;
  }
  .brand-banner {
    padding: 11px 13px;
    border-radius: 14px;
  }
  .search-intro {
    padding: 19px 0 14px;
  }
  .search-intro h1 {
    font-size: 25px;
  }
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 13px;
  }
  .category-tile {
    min-height: 78px;
    padding: 9px 5px;
    font-size: 11px;
    border-radius: 13px;
  }
  .category-tile .category-icon svg {
    width: 25px;
    height: 25px;
  }
  .website-card {
    padding: 13px;
    border-radius: 15px;
  }
  .card-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
  }
  .card-actions .launch-card-btn {
    flex: 1;
    min-width: 0;
    min-height: 42px;
    padding: 8px 12px;
    justify-content: center;
  }
  .card-actions .info-card-btn {
    flex: 0 0 70px;
    min-width: 70px;
    min-height: 42px;
    padding: 7px 8px;
    justify-content: center;
  }
  .card-actions .btn {
    font-size: 13px;
  }
  .category-icon {
    width: 38px;
    height: 38px;
  }
}

/* Category picker: compact rows with the same monochrome category glyphs */
.category-choice-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
}
.category-choice-row .category-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  grid-row: auto;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.category-choice-row .category-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.category-choice-row input {
  order: 2;
  margin-left: auto;
}
.category-choice-row span {
  order: 1;
  flex: 1;
}

/* Clear region visibility and legible website addresses */
.site-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  min-width: 0;
  margin-top: 3px;
}
.site-domain {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
  letter-spacing: 0;
}
.site-region {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 2px 9px;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.site-heading h3 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 750;
}
@media (min-width: 761px) {
  .site-domain {
    font-size: 15px;
  }
  .site-region {
    font-size: 11px;
  }
}
@media (max-width: 760px) {
  .site-heading h3 {
    font-size: 16px;
  }
  .site-domain {
    font-size: 14px;
    line-height: 1.5;
  }
  .site-meta {
    gap: 7px;
    margin-top: 4px;
  }
  .site-region {
    font-size: 10px;
    min-height: 22px;
    padding: 2px 8px;
  }
}
@media (max-width: 360px) {
  .site-domain {
    font-size: 13px;
  }
}

/* Language is a preference: default to English and open this panel only on request. */
#languageScreen.language-settings-open {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 18, 38, 0.48);
  backdrop-filter: blur(5px);
}
#languageScreen.language-settings-open .language-card {
  width: min(100%, 460px);
  max-height: 88vh;
  overflow: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}
#languageScreen.language-settings-open .language-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
#languageScreen.language-settings-open .language-option {
  min-height: 46px;
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 650;
}
#languageScreen.language-settings-open .language-option.selected {
  border-color: #3568f5;
  background: rgba(53, 104, 245, 0.08);
  color: #3568f5;
}

/* Selected category is shown in its own filter control, never mixed with label chips */
.category-filter-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.selected-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: var(--text);
}
.selected-category-icon .category-icon {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.selected-category-icon .category-icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.selected-category-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.category-filter-button .chevron {
  margin-left: auto;
}
@media (max-width: 760px) {
  .category-filter-button {
    max-width: min(62vw, 280px);
    min-height: 44px;
  }
  .selected-category-name {
    font-size: 13px;
  }
  .selected-category-icon {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
  }
}
