:root {
  --site-header-height: 68px;
}

html {
  scroll-padding-top: calc(var(--site-header-height) + 16px);
}

body.has-site-header {
  padding-top: var(--site-header-height);
}

body.site-header-menu-open {
  overflow: hidden;
}

#page-footer {
  margin: 0;
  padding: 0;
}

#page-footer .footer {
  width: auto;
  margin: 28px auto 10px;
  padding: 0 16px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: color-mix(in srgb, var(--foreground, var(--text-main, #111827)) 38%, transparent);
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
}

.site-header-shell {
  position: relative;
  z-index: 1200;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--site-header-height);
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.site-header-inner {
  width: min(1360px, 100%);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.site-header-brand {
  display: inline-flex;
  gap: 0;
  flex: 0 0 auto;
  color: #111827;
  text-decoration: none;
  font-family: var(--font-sans);
}

.logo-group {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.logo-main {
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.site-header-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.site-header-nav-link:hover {
  color: #111827;
  background: rgba(17, 24, 39, 0.04);
}

.site-header-nav-link.is-active {
  color: #c85f3d;
  background: rgba(231, 121, 85, 0.12);
}

.site-header-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 0;
}

.site-header-auth {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  max-width: 180px;
  flex: 0 1 auto;
}

.site-header-auth:hover {
  background: #f8fafc;
}

.site-header-auth-label {
  display: inline-block;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header-admin-link {
  min-height: 32px;
  padding: 0 12px;
  color: #c85f3d;
  border-color: rgba(231, 121, 85, 0.18);
  background: rgba(231, 121, 85, 0.08);
  max-width: none;
  flex: 0 0 auto;
}

.site-header-admin-link:hover {
  background: rgba(231, 121, 85, 0.14);
}

.site-header-auth-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(231, 121, 85, 0.12);
  color: #c85f3d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header-lang {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.site-header-lang-btn,
.site-header-menu-btn,
.site-header-drawer-close {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.site-header-lang-btn {
  min-width: 38px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.site-header-lang-btn.is-active {
  background: #e77955;
  color: #fff;
  box-shadow: 0 4px 10px rgba(231, 121, 85, 0.24);
}

.site-header-menu-btn,
.site-header-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.site-header-menu-btn {
  display: none;
  margin-left: 0;
  flex: 0 0 auto;
}

.site-header-menu-btn:hover,
.site-header-drawer-close:hover {
  background: #f3f5f7;
}

.site-header-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  z-index: 1198;
}

.site-header-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.site-header-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100vh;
  padding: 18px;
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: -18px 0 48px rgba(15, 23, 42, 0.12);
  transform: translateX(100%);
  transition: transform 180ms ease;
  z-index: 1199;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-header-drawer.is-open {
  transform: translateX(0);
}

.site-header-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-header-drawer-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.site-header-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-header-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  color: #111827;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  background: #f8fafc;
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.site-header-drawer-link.is-active {
  color: #c85f3d;
  background: rgba(231, 121, 85, 0.12);
  border-color: rgba(231, 121, 85, 0.18);
}

.site-header-drawer-link::after {
  content: "›";
  font-size: 16px;
  color: #9ca3af;
}

.site-header-drawer-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-header-drawer-account {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-header-drawer-auth-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.98);
  color: #111827;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  text-align: left;
  box-sizing: border-box;
  cursor: pointer;
}

.site-header-drawer-auth-link-admin {
  color: #c85f3d;
  background: rgba(231, 121, 85, 0.08);
  border-color: rgba(231, 121, 85, 0.18);
}

.site-header-drawer-auth-main {
  font-size: 15px;
  line-height: 1.2;
}

.site-header-drawer-auth-sub {
  font-size: 12px;
  line-height: 1.4;
  color: #6b7280;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-header-drawer-logout {
  appearance: none;
}

.site-header-auth-drawer {
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
}

.site-header-drawer-lang {
  display: none;
}

body.has-site-header .market-shell,
body.has-site-header .map-shell {
  min-height: calc(100vh - var(--site-header-height));
  height: calc(100vh - var(--site-header-height));
}

@media (max-width: 1120px) {
  .site-header-nav {
    display: none;
  }

  .site-header-menu-btn {
    display: inline-flex;
  }

  .site-header-inner {
    gap: 14px;
  }

  .site-header-auth {
    max-width: 160px;
  }

  .site-header-admin-link {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --site-header-height: 60px;
  }

  .site-header-inner {
    width: min(1360px, calc(100vw - 24px));
    gap: 12px;
  }

  .site-header {
    padding: 0 12px;
  }

  .logo-group {
    gap: 0;
  }

  .logo-main {
    font-size: 20px;
  }

  .site-header-lang {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .site-header-auth {
    display: none !important;
  }

  .site-header-auth-label {
    max-width: 0;
    overflow: hidden;
  }

  .site-header-auth-role {
    display: none;
  }

  .site-header-controls {
    gap: 8px;
    margin-left: auto;
    min-width: 0;
    flex: 0 0 auto;
  }

  .site-header-menu-btn {
    display: inline-flex;
    margin-left: 0;
    order: 2;
  }

  .site-header-lang {
    order: 1;
  }

  .site-header-admin-link {
    display: none !important;
  }

  .site-header-drawer-lang {
    display: inline-flex;
    align-self: flex-start;
  }

  .site-header-auth-drawer {
    display: inline-flex;
    max-width: none;
    min-width: 0;
    justify-content: space-between;
  }

  .site-header-auth-drawer .site-header-auth-label {
    max-width: none;
  }

  .site-header-admin-link-drawer {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
  }

  .site-header-brand {
    flex: 0 1 auto;
    min-width: 0;
  }

  .site-header-controls {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .site-header-auth,
  .site-header-admin-link {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .site-header-lang {
    display: none;
  }
}

/* ── Density Pass 2026-05-16 ── */
:root {
  --site-header-height: 64px;
}

html {
  scroll-padding-top: calc(var(--site-header-height) + 12px);
}

.site-header {
  padding: 0 18px;
}

.site-header-inner {
  gap: 16px;
}

.logo-main {
  font-size: 29px;
}

.site-header-nav {
  gap: 4px;
}

.site-header-nav-link {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
}

.site-header-controls {
  gap: 8px;
}

.site-header-auth {
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
}

.site-header-admin-link {
  min-height: 30px;
  padding: 0 10px;
}

.site-header-auth-role {
  min-height: 18px;
  padding: 0 7px;
  font-size: 9px;
}

.site-header-lang {
  min-height: 30px;
  padding: 3px;
}

.site-header-lang-btn {
  min-width: 34px;
  min-height: 24px;
  padding: 0 9px;
  font-size: 10px;
}

.site-header-menu-btn,
.site-header-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  :root {
    --site-header-height: 56px;
  }
}

/* ── V0 shell migration pass ──────────────────────────────────────────── */
:root {
  --site-shell-bg: var(--background, #fafafa);
  --site-shell-fg: var(--foreground, #1f2328);
  --site-shell-card: var(--card, #ffffff);
  --site-shell-muted: var(--muted, #f4f5f6);
  --site-shell-muted-fg: var(--muted-foreground, #68707c);
  --site-shell-border: var(--border, rgba(31, 35, 40, 0.10));
  --site-shell-primary: var(--primary, #1f2328);
  --site-shell-primary-fg: var(--primary-foreground, #fafafa);
  --site-shell-radius: var(--v0-radius-md, 6px);
  --site-shell-radius-lg: var(--v0-radius-lg, 8px);
  --site-shell-shadow: var(--v0-shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.04));
}

html[data-theme="dark"],
html.dark {
  --site-shell-bg: var(--background, #0f1114);
  --site-shell-fg: var(--foreground, #e8eaed);
  --site-shell-card: var(--card, #181b20);
  --site-shell-muted: var(--muted, #1a1d23);
  --site-shell-muted-fg: var(--muted-foreground, #9aa2af);
  --site-shell-border: var(--border, rgba(255, 255, 255, 0.08));
  --site-shell-primary: var(--primary, #e8eaed);
  --site-shell-primary-fg: var(--primary-foreground, #0f1114);
}

.site-header {
  background: color-mix(in srgb, var(--site-shell-bg) 94%, transparent);
  border-bottom: 1px solid var(--site-shell-border);
  box-shadow: none;
}

.site-header-inner {
  max-width: 1400px;
}

.site-header-brand {
  align-items: center;
  color: var(--site-shell-fg);
}

.logo-main {
  font-size: 17px;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.site-header-brand::after {
  content: "BETA";
  margin-left: 5px;
  color: #b08650;
  font-family: var(--v0-font-mono, ui-monospace, monospace);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.site-header-nav {
  justify-content: center;
}

.site-header-nav-link {
  min-height: 26px;
  padding: 0 9px;
  border-radius: var(--site-shell-radius);
  color: color-mix(in srgb, var(--site-shell-fg) 48%, transparent);
  font-size: 10.5px;
  font-weight: 600;
}

.site-header-nav-link:hover {
  color: color-mix(in srgb, var(--site-shell-fg) 76%, transparent);
  background: color-mix(in srgb, var(--site-shell-muted) 72%, transparent);
}

.site-header-nav-link.is-active {
  color: var(--site-shell-fg);
  background: var(--site-shell-muted);
}

.site-header-nav-link.is-active::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 6px;
  border-radius: 999px;
  background: #c4975e;
}

.site-header-controls {
  gap: 6px;
}

.site-header-auth,
.site-header-admin-link,
.site-header-lang,
.site-header-theme-btn,
.site-header-menu-btn,
.site-header-drawer-close {
  border-color: var(--site-shell-border);
  background: color-mix(in srgb, var(--site-shell-card) 88%, var(--site-shell-muted));
  color: var(--site-shell-fg);
  box-shadow: none;
}

.site-header-auth {
  min-height: 28px;
  padding: 0 9px;
  border-radius: var(--site-shell-radius);
  font-size: 10.5px;
  font-weight: 600;
  max-width: 172px;
}

.site-header-auth:hover,
.site-header-admin-link:hover,
.site-header-menu-btn:hover,
.site-header-drawer-close:hover,
.site-header-theme-btn:hover {
  background: var(--site-shell-muted);
}

.site-header-admin-link {
  color: #b08650;
  background: rgba(196, 151, 94, 0.10);
  border-color: rgba(196, 151, 94, 0.24);
}

.site-header-auth-role {
  min-height: 16px;
  padding: 0 6px;
  border-radius: var(--site-shell-radius);
  background: rgba(196, 151, 94, 0.12);
  color: #b08650;
  font-size: 8px;
}

.site-header-lang {
  gap: 1px;
  min-height: 26px;
  padding: 2px;
  border-radius: var(--site-shell-radius);
}

.site-header-lang-btn {
  min-width: 26px;
  min-height: 20px;
  padding: 0 6px;
  border-radius: calc(var(--site-shell-radius) - 2px);
  color: color-mix(in srgb, var(--site-shell-fg) 42%, transparent);
  font-family: var(--v0-font-mono, ui-monospace, monospace);
  font-size: 8.5px;
  font-weight: 700;
}

.site-header-lang-btn.is-active {
  background: var(--site-shell-card);
  color: var(--site-shell-fg);
  box-shadow: var(--site-shell-shadow);
}

.site-header-theme-btn,
.site-header-menu-btn,
.site-header-drawer-close {
  width: 28px;
  height: 28px;
  border-radius: var(--site-shell-radius);
}

.site-header-theme-btn {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-width: 1px;
  border-style: solid;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.site-header-theme-icon {
  display: block;
  width: 14px;
  height: 14px;
}

.site-header-theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .site-header-theme-icon-sun,
html.dark .site-header-theme-icon-sun {
  display: block;
}

html[data-theme="dark"] .site-header-theme-icon-moon,
html.dark .site-header-theme-icon-moon {
  display: none;
}

.site-header-backdrop {
  background: rgba(0, 0, 0, 0.54);
}

.site-header-drawer {
  width: min(300px, 92vw);
  padding: 0;
  gap: 0;
  background: var(--site-shell-bg);
  border-left: 1px solid var(--site-shell-border);
  box-shadow: -18px 0 48px rgba(0, 0, 0, 0.16);
}

.site-header-drawer-head {
  min-height: 42px;
  padding: 0 13px;
  border-bottom: 1px solid var(--site-shell-border);
}

.site-header-drawer-title {
  color: color-mix(in srgb, var(--site-shell-fg) 42%, transparent);
  font-family: var(--v0-font-mono, ui-monospace, monospace);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.site-header-drawer-links {
  padding: 7px;
  gap: 2px;
}

.site-header-drawer-link {
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--site-shell-radius);
  border-color: transparent;
  background: transparent;
  color: color-mix(in srgb, var(--site-shell-fg) 64%, transparent);
  font-size: 11.5px;
  font-weight: 600;
}

.site-header-drawer-link:hover {
  background: var(--site-shell-muted);
  color: var(--site-shell-fg);
}

.site-header-drawer-link.is-active {
  color: var(--site-shell-fg);
  background: var(--site-shell-muted);
  border-color: transparent;
}

.site-header-drawer-link.is-active::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 4px;
  border-radius: 999px;
  background: #c4975e;
}

.site-header-drawer-link::after {
  content: "›";
  color: color-mix(in srgb, var(--site-shell-fg) 28%, transparent);
}

.site-header-drawer-footer {
  padding: 10px;
  border-top: 1px solid var(--site-shell-border);
  gap: 8px;
}

.site-header-drawer-account {
  gap: 6px;
}

.site-header-drawer-auth-link {
  min-height: 40px;
  padding: 9px 11px;
  border-radius: var(--site-shell-radius);
  border-color: var(--site-shell-border);
  background: color-mix(in srgb, var(--site-shell-card) 70%, transparent);
  color: var(--site-shell-fg);
  font-weight: 600;
}

.site-header-drawer-auth-link:hover {
  background: var(--site-shell-muted);
}

.site-header-drawer-auth-link-admin {
  color: #b08650;
  background: rgba(196, 151, 94, 0.10);
  border-color: rgba(196, 151, 94, 0.24);
}

.site-header-drawer-auth-main {
  font-size: 12px;
}

.site-header-drawer-auth-sub {
  color: var(--site-shell-muted-fg);
  font-size: 10px;
}

@media (max-width: 720px) {
  .logo-main {
    font-size: 16px;
  }

  .site-header {
    padding: 0 12px;
  }

  .site-header-inner {
    width: 100%;
  }

  .site-header-controls {
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .site-header-drawer-lang {
    display: inline-flex;
  }
}

/* ── V0 mobile navigation parity ─────────────────────────────────────── */
@media (max-width: 980px) {
  :root {
    --site-header-height: 44px;
  }

  html {
    scroll-padding-top: calc(var(--site-header-height) + 8px);
  }

  .site-header {
    height: var(--site-header-height);
    padding: 0 14px;
    background: color-mix(in srgb, var(--site-shell-bg) 95%, transparent);
    border-bottom-color: color-mix(in srgb, var(--site-shell-border) 60%, transparent);
  }

  .site-header-inner {
    width: 100%;
    max-width: none;
    gap: 8px;
  }

  .site-header-brand {
    flex: 0 1 auto;
    min-width: 0;
  }

  .logo-main {
    font-size: 14px;
    font-weight: 620;
    letter-spacing: -0.015em;
  }

  .site-header-brand::after {
    margin-left: 5px;
    font-size: 7px;
    line-height: 1;
    letter-spacing: 0.13em;
  }

  .site-header-nav,
  .site-header-auth,
  .site-header-admin-link {
    display: none !important;
  }

  .site-header-controls {
    gap: 2px;
    margin-left: auto;
  }

  .site-header-controls > .site-header-lang {
    display: none !important;
  }

  .site-header-theme-btn,
  .site-header-menu-btn {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: color-mix(in srgb, var(--site-shell-fg) 60%, transparent);
  }

  .site-header-theme-btn:hover,
  .site-header-menu-btn:hover,
  .site-header-menu-open .site-header-menu-btn {
    background: color-mix(in srgb, var(--site-shell-muted) 56%, transparent);
    color: color-mix(in srgb, var(--site-shell-fg) 82%, transparent);
  }

  .site-header-theme-icon {
    width: 14px;
    height: 14px;
  }

  .site-header-menu-btn svg {
    width: 16px;
    height: 16px;
  }

  .site-header-backdrop {
    background: rgba(15, 23, 42, 0.30);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
  }

  .site-header-drawer {
    width: min(280px, 88vw);
    max-width: 280px;
    height: 100dvh;
    max-height: 100dvh;
    background: color-mix(in srgb, var(--site-shell-bg) 98%, transparent);
    border-left-color: color-mix(in srgb, var(--site-shell-border) 58%, transparent);
    box-shadow: -18px 0 44px rgba(0, 0, 0, 0.14);
    transition: transform 190ms cubic-bezier(0.22, 0.61, 0.36, 1);
    overflow: hidden;
  }

  .site-header-drawer-head {
    min-height: 44px;
    padding: 0 14px 0 16px;
    border-bottom-color: color-mix(in srgb, var(--site-shell-border) 50%, transparent);
  }

  .site-header-drawer-title {
    color: color-mix(in srgb, var(--site-shell-fg) 38%, transparent);
    font-size: 10px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: 0.12em;
  }

  .site-header-drawer-close {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: color-mix(in srgb, var(--site-shell-fg) 52%, transparent);
  }

  .site-header-drawer-links {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 8px 4px;
    gap: 1px;
  }

  .site-header-drawer-link {
    justify-content: flex-start;
    min-height: 38px;
    padding: 0 10px;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: color-mix(in srgb, var(--site-shell-fg) 60%, transparent);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
  }

  .site-header-drawer-link:hover {
    background: color-mix(in srgb, var(--site-shell-muted) 52%, transparent);
    color: color-mix(in srgb, var(--site-shell-fg) 82%, transparent);
  }

  .site-header-drawer-link.is-active {
    color: var(--site-shell-fg);
    background: color-mix(in srgb, var(--site-shell-muted) 58%, transparent);
    border-left-color: color-mix(in srgb, #c4975e 86%, transparent);
    font-weight: 560;
  }

  .site-header-drawer-link.is-active::before {
    display: none;
  }

  .site-header-drawer-link::after {
    margin-left: auto;
    color: color-mix(in srgb, var(--site-shell-fg) 26%, transparent);
    font-size: 15px;
  }

  .site-header-drawer-footer {
    flex: 0 0 auto;
    padding: 9px 10px calc(env(safe-area-inset-bottom, 0px) + 16px);
    border-top-color: color-mix(in srgb, var(--site-shell-border) 50%, transparent);
    gap: 8px;
  }

  .site-header-drawer-account {
    gap: 6px;
  }

  .site-header-drawer-auth-link {
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 6px;
    border-color: color-mix(in srgb, var(--site-shell-border) 62%, transparent);
    background: color-mix(in srgb, var(--site-shell-card) 48%, transparent);
    font-weight: 520;
  }

  .site-header-drawer-auth-link:hover {
    background: color-mix(in srgb, var(--site-shell-muted) 58%, transparent);
  }

  .site-header-drawer-auth-link-admin {
    background: color-mix(in srgb, #c4975e 8%, transparent);
    border-color: color-mix(in srgb, #c4975e 20%, transparent);
    color: color-mix(in srgb, #b08650 80%, var(--site-shell-fg));
  }

  .site-header-drawer-auth-main {
    font-size: 12px;
    line-height: 1.15;
  }

  .site-header-drawer-auth-sub {
    font-size: 10px;
    line-height: 1.25;
  }

  .site-header-drawer-lang {
    display: inline-flex;
    align-self: flex-start;
    min-height: 24px;
    padding: 2px;
    border-radius: 6px;
  }

  .site-header-drawer-lang .site-header-lang-btn {
    min-width: 28px;
    min-height: 20px;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 8.5px;
  }

  .site-header-theme-btn-drawer {
    align-self: flex-start;
    width: 28px;
    height: 28px;
    border: 1px solid color-mix(in srgb, var(--site-shell-border) 62%, transparent);
    background: color-mix(in srgb, var(--site-shell-card) 48%, transparent);
  }
}

/* ── Global V0 desktop navigation parity ─────────────────────────────── */
@media (min-width: 981px) {
  :root {
    --site-header-height: 50px;
  }

  html {
    scroll-padding-top: calc(var(--site-header-height) + 12px);
  }

  .site-header {
    height: var(--site-header-height);
    padding: 0 22px;
    background: color-mix(in srgb, var(--site-shell-bg) 96%, transparent);
    border-bottom-color: color-mix(in srgb, var(--site-shell-border) 52%, transparent);
  }

  .site-header-inner {
    width: min(1180px, 100%);
    max-width: 1180px;
    gap: 12px;
  }

  .site-header-brand {
    flex: 0 0 auto;
    min-width: 132px;
  }

  .logo-main {
    font-size: 17.5px;
    font-weight: 620;
    line-height: 1;
    letter-spacing: -0.01em;
  }

  .site-header-brand::after {
    margin-left: 5px;
    font-size: 8.5px;
    line-height: 1;
    letter-spacing: 0.13em;
  }

  .site-header-nav {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    gap: 0;
    overflow: visible;
  }

  .site-header-nav-link {
    min-height: 29px;
    padding: 0 8px;
    border-radius: calc(var(--site-shell-radius) - 1px);
    color: color-mix(in srgb, var(--site-shell-fg) 42%, transparent);
    font-size: 13.5px;
    line-height: 1;
    font-weight: 480;
    letter-spacing: 0;
  }

  .site-header-nav-link:hover {
    color: color-mix(in srgb, var(--site-shell-fg) 68%, transparent);
    background: color-mix(in srgb, var(--site-shell-muted) 34%, transparent);
  }

  .site-header-nav-link.is-active {
    color: color-mix(in srgb, var(--site-shell-fg) 82%, transparent);
    background: transparent;
    font-weight: 560;
  }

  .site-header-nav-link.is-active::after {
    width: 4px;
    height: 4px;
    margin-left: 6px;
    background: color-mix(in srgb, #c4975e 78%, transparent);
  }

  .site-header-controls {
    gap: 6px;
    margin-left: 0;
  }

  .site-header-auth {
    min-height: 29px;
    max-width: 172px;
    padding: 0 9px;
    border-radius: calc(var(--site-shell-radius) - 1px);
    border-color: color-mix(in srgb, var(--site-shell-border) 58%, transparent);
    background: transparent;
    font-size: 13px;
    line-height: 1;
    font-weight: 520;
    color: color-mix(in srgb, var(--site-shell-fg) 58%, transparent);
  }

  .site-header-auth-label {
    max-width: 124px;
  }

  .site-header-admin-link {
    display: inline-flex;
    min-height: 29px;
    padding: 0 9px;
    border-color: color-mix(in srgb, #c4975e 16%, transparent);
    background: transparent;
    color: color-mix(in srgb, #b08650 76%, var(--site-shell-fg));
    font-size: 12px;
    font-weight: 520;
  }

  .site-header-auth-role {
    min-height: 17px;
    padding: 0 5px;
    font-size: 9px;
    background: transparent;
  }

  .site-header-lang {
    min-height: 29px;
    padding: 2px;
    gap: 2px;
    border-color: color-mix(in srgb, var(--site-shell-border) 54%, transparent);
    background: color-mix(in srgb, var(--site-shell-muted) 22%, transparent);
  }

  .site-header-lang-btn {
    min-width: 29px;
    min-height: 23px;
    padding: 0 5px;
    font-size: 10.5px;
    font-weight: 620;
  }

  .site-header-theme-btn,
  .site-header-menu-btn,
  .site-header-drawer-close {
    width: 31px;
    height: 31px;
    border-radius: calc(var(--site-shell-radius) - 1px);
    border-color: color-mix(in srgb, var(--site-shell-border) 54%, transparent);
    background: transparent;
  }

  .site-header-theme-icon {
    width: 16px;
    height: 16px;
  }

  .site-header-menu-btn {
    display: none;
  }
}

@media (min-width: 981px) and (max-width: 1160px) {
  .site-header {
    padding: 0 18px;
  }

  .site-header-inner {
    width: 100%;
    gap: 9px;
  }

  .site-header-brand {
    min-width: auto;
  }

  .site-header-nav-link {
    padding: 0 6px;
    font-size: 12.5px;
  }

  .site-header-auth {
    max-width: 140px;
  }

  .site-header-auth-label {
    max-width: 92px;
  }
}
