@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --surface: #fefefe;
  --surface-muted: #f4f4f4;
  --surface-chrome: #e5e5e5;
  --ink: #111111;
  --ink-secondary: #3d3d3d;
  --ink-muted: #595959;
  --border-hard: #111111;
  --border-hairline: #d4d4d4;
  --inverse-surface: #111111;
  --inverse-ink: #fefefe;
  --alert-bg: #fff1f2;
  --alert-ink: #9f1239;
  --alert-border: #9f1239;
  --ok-bg: #f0fdf4;
  --ok-ink: #14532d;
  --ok-border: #166534;
  --terminal-bg: #111111;
  --terminal-head: #1c1c1c;
  --terminal-ink: #fefefe;
  --terminal-muted: #a3a3a3;
  --terminal-border: #2e2e2e;
  --shadow-color: #111111;
  --shadow-sm: 3px 3px 0 var(--shadow-color);
  --shadow-md: 4px 4px 0 var(--shadow-color);
  --shadow-lg: 5px 5px 0 var(--shadow-color);

  /* Compatibility aliases */
  --paper: var(--surface);
  --card: var(--surface);
  --line: var(--border-hard);
  --muted-text: var(--ink-muted);

  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: "Space Grotesk", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --sans: "Inter", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  font-family: var(--sans);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) {
  color-scheme: dark;
}
:root:has(> head > meta[name="color-scheme"][content="light"]) {
  color-scheme: light;
}

html[data-theme="dark"] {
  --surface: #111111;
  --surface-muted: #191919;
  --surface-chrome: #252525;
  --ink: #f5f5f5;
  --ink-secondary: #cfcfcf;
  --ink-muted: #9e9e9e;
  --border-hard: #e5e5e5;
  --border-hairline: #333333;
  --inverse-surface: #f5f5f5;
  --inverse-ink: #111111;
  --alert-bg: #2a1218;
  --alert-ink: #fda4af;
  --alert-border: #be123c;
  --ok-bg: #0f2417;
  --ok-ink: #86efac;
  --ok-border: #22c55e;
  --terminal-bg: #0a0a0a;
  --terminal-head: #171717;
  --terminal-ink: #f5f5f5;
  --terminal-muted: #a3a3a3;
  --terminal-border: #333333;
  --shadow-color: #000000;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 280px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
}

main#main-content {
  flex: 1 0 auto;
}

::selection {
  background: var(--inverse-surface);
  color: var(--inverse-ink);
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button,
a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
}

:where(button, a, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

img,
svg {
  vertical-align: middle;
}

button[hidden],
[hidden] {
  display: none !important;
}

code,
pre,
kbd,
samp {
  font-family: var(--mono);
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
}

/* Fixed Top Scroll Progress Bar */
.scroll-track {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.scroll-bar {
  height: 100%;
  background: var(--ink);
  transform-origin: left center;
  transform: scaleX(0);
}

/* Skip link */
.skip {
  position: fixed;
  inset-inline-start: 1rem;
  top: -7rem;
  z-index: 1000;
  padding: 8px 14px;
  background: var(--inverse-surface);
  color: var(--inverse-ink);
  border: 1px solid var(--border-hard);
  font: 600 13px var(--mono);
  text-decoration: none;
}
.skip:focus {
  top: 1rem;
}

/* Shared Segmented Top Bar */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px 24px;
  background: var(--surface);
  color: var(--ink);
  border-bottom: 1px solid var(--border-hard);
  transition: background-color 140ms ease-out;
}
body.view-home .site-head:not(.scrolled) {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(8px);
  border-bottom-color: color-mix(in srgb, var(--border-hard) 20%, transparent);
}
.site-nav {
  position: relative;
  max-width: 1280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-inline: auto;
  min-height: 38px;
}
.site-nav a,
.site-foot a,
.head-menu a,
.nav-mobile {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border-hard);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 120ms ease-out;
}
.brand:hover {
  transform: translateY(-1px);
}
.brand img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.nav-center,
.nav-actions {
  display: flex;
  align-items: center;
}
.nav-center {
  gap: 4px;
}
.nav-center > a,
.nav-center .more-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-hairline);
  border-radius: 0;
  transition: border-color 120ms ease-out, background-color 120ms ease-out, color 120ms ease-out;
}
.nav-center > a:hover,
.more-trigger:hover,
.more-trigger[aria-expanded="true"] {
  border-color: var(--border-hard);
  background: var(--surface-muted);
}
.nav-center > a[aria-current="page"] {
  background: var(--inverse-surface);
  color: var(--inverse-ink);
  border-color: var(--border-hard);
  font-weight: 600;
}

.nav-actions {
  gap: 6px;
  flex-shrink: 0;
}
.nav-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.head-pop {
  position: relative;
}
.head-pop svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.locale-trigger,
.theme-trigger,
.nav-login,
.nav-register,
.nav-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-hairline);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  border-radius: 0;
  white-space: nowrap;
  line-height: 1.25;
  height: 36px;
  transition: border-color 120ms ease-out, background-color 120ms ease-out, transform 120ms ease-out;
}
.locale-trigger:hover,
.theme-trigger:hover,
.nav-login:hover,
.nav-mobile:hover {
  border-color: var(--border-hard);
  background: var(--surface-muted);
}
.locale-trigger {
  gap: 6px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 12px;
}
.theme-trigger {
  width: 36px;
  padding: 0;
}
.nav-login {
  padding: 0 13px;
  border-color: var(--border-hairline);
}
.nav-register {
  padding: 0 15px;
  background: var(--inverse-surface);
  border-color: var(--border-hard);
  color: var(--inverse-ink);
  font-weight: 600;
}
.nav-register:hover {
  background: var(--ink-secondary);
  color: var(--inverse-ink);
  transform: translateY(-1px);
}
.nav-register:active {
  transform: translateY(1px);
}
html[data-theme="dark"] .nav-register:hover {
  background: #d4d4d4;
  color: #111111;
}
.nav-mobile {
  display: none !important;
  width: 36px;
  padding: 0;
  font-size: 16px;
  border-color: var(--border-hard);
}
.chevron {
  font-weight: 400;
  color: var(--ink-muted);
}

/* Dropdown Menus (Retro Window Chrome) */
.head-menu {
  position: absolute;
  z-index: 55;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  border: 1px solid var(--border-hard);
  border-radius: 0;
  box-shadow: var(--shadow-md);
  background: var(--surface);
  color: var(--ink);
  padding: 4px;
}
.head-menu a,
.head-menu button {
  display: block;
  border: 1px solid transparent;
  text-align: start;
  background: transparent;
  border-radius: 0;
  padding: 8px 11px;
  font-size: 13px;
  text-decoration: none;
  transition: background-color 100ms ease-out, border-color 100ms ease-out;
}
.choice {
  min-width: 152px;
}
.choice button {
  width: 100%;
}
.head-menu a:hover,
.head-menu button:hover {
  background: var(--surface-muted);
  border-color: var(--border-hairline);
}
.head-menu a[aria-current="true"] {
  background: var(--inverse-surface);
  color: var(--inverse-ink);
  font-weight: 600;
}
.nav-mega {
  width: min(660px, 88vw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  inset-inline-end: -135px;
  padding: 8px;
  gap: 4px;
}
.nav-mega strong {
  display: block;
  font-weight: 600;
}
.nav-mega small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.45;
  margin-top: 3px;
}

/* Member trigger & menu */
.member-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px 0 6px;
  border: 1px solid var(--border-hard);
  background: var(--surface);
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
}
.member-trigger:hover,
.member-trigger[aria-expanded="true"] {
  background: var(--surface-muted);
}
.member-avatar {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 0;
  color: var(--inverse-ink);
  background: var(--inverse-surface);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}
.member-trigger-name,
.member-info strong,
.member-info small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-trigger-name {
  max-width: 8rem;
}
.public-member .head-menu {
  width: 14.5rem;
}
.member-info {
  display: grid;
  gap: 2px;
  padding: 8px 11px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border-hairline);
}
.member-info strong {
  font-size: 13px;
}
.member-info small,
[data-logout-error] {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 11px;
}
[data-public-logout] {
  color: var(--alert-ink);
}
.mobile-member {
  display: grid;
  width: 100%;
  gap: 4px;
}
.mobile-member > strong {
  overflow-wrap: anywhere;
  font-family: var(--display);
  padding: 4px 2px;
}
.mobile-member a,
.mobile-member button {
  text-align: start;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border-hairline);
  padding: 8px 10px;
  font-size: 14px;
}

/* Editorial Monochrome Footer */
.site-foot {
  background: var(--surface);
  color: var(--ink);
  padding: 48px 24px 0;
  border-top: 1px solid var(--border-hard);
}
.foot-wrap {
  max-width: 1280px;
  margin-inline: auto;
}
.foot-columns {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
}
.foot-columns p {
  font-size: 13px;
  color: var(--ink-muted);
  max-width: 22rem;
  line-height: 1.65;
  margin: 0.65em 0;
}
.foot-columns h2 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 12px;
}
.foot-columns section > a {
  display: block;
  color: var(--ink-secondary);
  font-size: 13.5px;
  line-height: 2;
  transition: color 120ms ease-out;
}
.site-foot a:hover,
.site-foot button:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.foot-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-hard);
  font-size: 16px;
  margin-top: 4px;
}
.foot-contact:hover {
  background: var(--inverse-surface);
  color: var(--inverse-ink) !important;
  text-decoration: none !important;
}
.foot-strip,
.foot-bottom {
  border-top: 1px solid var(--border-hairline);
  margin-top: 32px;
  padding: 18px 0;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 12px;
}
.foot-strip h2 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--ink-muted);
}
.foot-badges,
.foot-directory-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 8px 0 12px;
}
.foot-badges a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border: 1px solid var(--border-hairline);
  border-radius: 0;
  padding: 3px 10px;
  background: var(--surface-muted);
  color: var(--ink);
  font: 500 11px var(--mono);
}
.foot-badges a:hover {
  border-color: var(--border-hard);
  text-decoration: none;
}
.foot-directory-links a {
  font: 400 11px var(--mono);
  color: var(--ink-muted);
}
.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}
.foot-bottom button {
  background: transparent;
  border: 0;
  color: inherit;
  font-family: var(--mono);
  font-size: 12px;
  padding: 0;
}

/* Cookie Consent Bar */
.consent {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 49;
  background: var(--surface);
  border-top: 1px solid var(--border-hard);
  color: var(--ink);
  padding: 12px 24px;
}
.consent > div {
  max-width: 1280px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.consent p {
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
  color: var(--ink-secondary);
}
.consent a {
  font-weight: 600;
  margin-inline-start: 8px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent > div > div {
  display: flex;
  gap: 8px;
}
.consent button {
  border: 1px solid var(--border-hard);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font: 500 12px var(--mono);
  padding: 7px 14px;
  white-space: nowrap;
}
.consent button:hover {
  background: var(--surface-muted);
}
.consent button:last-child {
  color: var(--inverse-ink);
  background: var(--inverse-surface);
  border-color: var(--border-hard);
}
.consent button:last-child:hover {
  background: var(--ink-secondary);
  color: var(--inverse-ink);
}

/* 404 View */
.missing {
  max-width: 720px;
  margin: 12vh auto;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border-hard);
  box-shadow: var(--shadow-lg);
}
.missing span {
  display: inline-block;
  background: var(--inverse-surface);
  border: 1px solid var(--border-hard);
  color: var(--inverse-ink);
  padding: 4px 12px;
  font: 600 14px var(--mono);
}
.missing h1 {
  font-family: var(--display);
  margin: 16px 0 12px;
}
.missing a {
  font: 500 13px var(--mono);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Login Modal Base (Retro Desktop Window) */
#shell-login {
  width: min(400px, calc(100% - 2rem));
  max-height: 90svh;
  overflow-y: auto;
  padding: 0;
  margin: auto;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-hard);
  border-radius: 0;
  box-shadow: var(--shadow-lg);
}
#shell-login::backdrop {
  background: rgb(17 17 17 / 0.48);
}
.dialog-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--inverse-surface);
  color: var(--inverse-ink);
  font: 500 12px/1.4 var(--mono);
  border-bottom: 1px solid var(--border-hard);
}
.dialog-close {
  font-size: 20px;
  line-height: 1;
  background: none;
  border: 0;
  color: var(--inverse-ink);
  padding: 2px 4px;
}
.dialog-inner {
  padding: 22px 24px 24px;
}
.instance-note,
.social-line,
.register-link {
  display: block;
  text-align: center;
  color: var(--ink-muted);
  font-size: 13px;
}
#shell-login form {
  margin: 18px 0 14px;
}
#shell-login label {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.password-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-top: 14px;
}
#shell-login input {
  width: 100%;
  margin-top: 6px;
  height: 38px;
  background: var(--surface);
  border: 1px solid var(--border-hard);
  border-radius: 0;
  padding: 6px 10px;
  font-size: 14px;
}
.password-wrap {
  position: relative;
}
.password-wrap button {
  position: absolute;
  inset-inline-end: 4px;
  top: 9px;
  height: 32px;
  width: 32px;
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: var(--ink-muted);
}
.form-action,
.oauth-choice {
  background: var(--inverse-surface);
  border: 1px solid var(--border-hard);
  border-radius: 0;
  margin-top: 16px;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 14px;
  width: 100%;
  color: var(--inverse-ink);
  transition: transform 120ms ease-out, background-color 120ms ease-out;
}
.form-action:hover:not(:disabled) {
  background: var(--ink-secondary);
  transform: translateY(-1px);
}
.oauth-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  margin-top: 10px;
}
.oauth-choice:hover {
  background: var(--surface-muted);
}
.shell-error {
  color: var(--alert-ink);
  background: var(--alert-bg);
  border: 1px solid var(--alert-border);
  padding: 8px 10px;
  margin: 12px 0 0;
  font-size: 13px;
}
.register-link {
  margin-top: 16px;
}

/* Support Widget */
.mobile-account,
.mobile-prefs {
  display: none;
}
.support-widget {
  position: fixed;
  bottom: 20px;
  inset-inline-end: 20px;
  z-index: 37;
}
.support-bubble {
  width: 48px;
  height: 48px;
  display: grid;
  place-content: center;
  border: 1px solid var(--border-hard);
  border-radius: 0;
  color: var(--inverse-ink);
  background: var(--inverse-surface);
  box-shadow: var(--shadow-sm);
  transition: transform 120ms ease-out;
}
.support-bubble:hover {
  transform: translate(-1px, -1px);
}
.support-bubble svg {
  height: 20px;
  width: 20px;
}
.support-box {
  position: absolute;
  inset-inline-end: 0;
  bottom: 58px;
  width: min(340px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--border-hard);
  border-radius: 0;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  max-height: 72dvh;
  overflow: auto;
}
.support-box > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  background: var(--inverse-surface);
  color: var(--inverse-ink);
  border-bottom: 1px solid var(--border-hard);
}
.support-box h2 {
  margin: 0;
  font: 600 13px/1.3 var(--mono);
  text-transform: uppercase;
}
.support-box [data-dismiss-support] {
  border: 0;
  background: transparent;
  color: var(--inverse-ink);
  font-size: 20px;
  line-height: 1;
}
.support-box form {
  padding: 14px;
}
.support-box label {
  display: block;
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 600;
}
.support-box input,
.support-box textarea {
  display: block;
  width: 100%;
  padding: 7px 9px;
  margin-top: 4px;
  background: var(--surface);
  border: 1px solid var(--border-hard);
  border-radius: 0;
  font-size: 13.5px;
}
.support-box [type="submit"] {
  background: var(--inverse-surface);
  color: var(--inverse-ink);
  padding: 8px 16px;
  border: 1px solid var(--border-hard);
  border-radius: 0;
  font: 600 12px var(--mono);
}
.support-box > p {
  padding: 0 14px 14px;
  margin: 0;
  font-size: 13px;
}
body:has(#cookie-banner:not([hidden])) .support-widget {
  bottom: 74px;
}

/* Responsive Navigation & Footer */
@media (max-width: 1023px) {
  .site-head {
    padding: 10px 16px;
  }
  /* An open fixed menu needs the viewport as its containing block. */
  body.view-home .site-head:has(.nav-center.mobile-open) {
    background: var(--surface);
    backdrop-filter: none;
  }
  .nav-center {
    display: none;
  }
  .nav-mobile {
    display: inline-flex !important;
  }
  .nav-actions > *:not(.nav-mobile) {
    display: none;
  }
  .nav-center.mobile-open {
    display: flex;
    position: fixed;
    inset: 60px 0 0;
    z-index: 45;
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    background: var(--surface);
    border-top: 1px solid var(--border-hard);
    padding: 16px;
    overflow: auto;
  }
  .mobile-open > a,
  .mobile-open .more-trigger {
    font-size: 15px;
    padding: 10px 12px;
    text-align: start;
    justify-content: space-between;
    width: 100%;
  }
  .mobile-open .nav-mega {
    position: static;
    width: 100%;
    grid-template-columns: 1fr;
    box-shadow: none;
    border: 1px solid var(--border-hairline);
    margin-top: 4px;
    background: var(--surface-muted);
  }
  .mobile-open .nav-mega small {
    display: none;
  }
  .mobile-account {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-hairline);
  }
  .mobile-account a {
    text-align: center;
    height: auto;
    padding: 10px 12px;
    font-size: 14px;
  }
  .mobile-prefs {
    margin-top: auto;
    padding: 16px 0 24px;
    border-top: 1px solid var(--border-hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .mobile-prefs label,
  .mobile-prefs select,
  .mobile-prefs button {
    font-size: 13px;
  }
  .mobile-prefs select {
    margin-inline-start: 6px;
    background: var(--surface);
    color: var(--ink);
    padding: 6px 8px;
    border: 1px solid var(--border-hard);
    border-radius: 0;
  }
  .mobile-prefs button {
    border: 1px solid var(--border-hard);
    border-radius: 0;
    background: var(--surface);
    color: var(--ink);
    width: 34px;
    height: 32px;
    margin-inline-start: 4px;
  }
  body:has(.mobile-open) {
    overflow: hidden;
  }
  body:has(.mobile-open) .support-widget {
    display: none;
  }
  body:has(.mobile-open):has(#cookie-banner:not([hidden])) .mobile-prefs {
    padding-bottom: 110px;
  }
  .foot-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-columns > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .consent {
    padding: 12px 16px;
  }
  .consent > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .site-foot {
    padding: 36px 16px 0;
  }
  .foot-columns {
    gap: 24px;
  }
  .support-widget {
    bottom: 14px;
    inset-inline-end: 14px;
  }
  .support-bubble {
    width: 44px;
    height: 44px;
  }
  body:has(#cookie-banner:not([hidden])) .support-widget {
    bottom: 116px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
