.site-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Eén vaste onderste navigatie op desktop, tablet en telefoon. */
.site-navigation { position: relative; z-index: 400; }

.site-navigation__toggle {
  position: fixed;
  z-index: 430;
  top: max(70px, calc(var(--safe-top) + 66px));
  left: max(15px, calc(var(--safe-left) + 11px));
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--line) 78%, white 18%);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-raised) 88%, transparent);
  box-shadow: 0 12px 35px rgba(19, 48, 67, .18), inset 0 1px rgba(255,255,255,.72);
  color: var(--text);
  cursor: pointer;
  transition: left 210ms cubic-bezier(.2,.75,.2,1), transform 160ms ease;
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}

.site-navigation__toggle .material-symbols-outlined { font-size: 24px; }
.site-navigation__backdrop { position: fixed; z-index: 405; inset: 0; border: 0; background: rgba(7,22,34,.2); cursor: default; backdrop-filter: blur(2px); }

.site-sidebar {
  position: fixed;
  z-index: 420;
  inset: 0 auto 0 0;
  display: flex;
  width: 78px;
  flex-direction: column;
  padding: max(12px, var(--safe-top)) 10px max(16px, calc(var(--safe-bottom) + 12px));
  border-right: 1px solid color-mix(in srgb, var(--line) 72%, white 15%);
  background: radial-gradient(circle at 8% 2%, rgba(83,188,226,.17), transparent 230px), color-mix(in srgb, var(--surface-raised) 94%, transparent);
  box-shadow: 18px 0 50px rgba(14,45,64,.13);
  transition: width 210ms cubic-bezier(.2,.75,.2,1);
  backdrop-filter: blur(32px) saturate(145%);
  -webkit-backdrop-filter: blur(32px) saturate(145%);
}

.site-navigation.is-open .site-sidebar { width: min(310px, calc(100vw - 24px)); }
.site-navigation.is-open .site-navigation__toggle { left: 248px; }
.site-sidebar__brand { display: grid; height: 46px; place-items: center; overflow: hidden; }
.site-sidebar__logo { display: grid; width: 58px; height: 42px; place-items: center; text-decoration: none; }
.site-sidebar__logo img { display: block; max-width: 100%; height: auto; max-height: 100%; filter: drop-shadow(0 6px 12px rgba(2,4,8,.14)); }
.site-sidebar__logo-long { display: none !important; }
.site-navigation.is-open .site-sidebar__logo { width: 220px; }
.site-navigation.is-open .site-sidebar__logo-compact { display: none; }
.site-navigation.is-open .site-sidebar__logo-long { display: block !important; width: 216px; }
.site-sidebar__links { display: grid; align-content: start; gap: 4px; min-height: 0; margin-top: 55px; overflow-y: auto; }
.site-sidebar__section { margin: 19px 12px 7px; color: var(--muted); font-size: .58rem; font-weight: 850; letter-spacing: .14em; }
.site-sidebar__link { display: flex; min-height: 48px; align-items: center; gap: 13px; padding: 9px 12px; border: 1px solid transparent; border-radius: 15px; color: var(--text); text-decoration: none; }
.site-sidebar__link:hover { background: color-mix(in srgb, var(--sky) 9%, transparent); }
.site-sidebar__link.is-active { border-color: color-mix(in srgb, var(--sky) 22%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--sky) 16%, transparent), color-mix(in srgb, var(--violet) 10%, transparent)); box-shadow: inset 0 1px rgba(255,255,255,.55); }
.site-sidebar__link .material-symbols-outlined { width: 25px; color: var(--sapphire); font-size: 22px; text-align: center; }
.site-sidebar__link strong { font-size: .76rem; font-weight: 770; }
.site-sidebar__footer { display: grid; gap: 7px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.site-sidebar__footer > small { padding: 8px 12px 0; color: var(--muted); font-size: .56rem; }

.site-language-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 0 16px 8px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-muted) 82%, transparent);
}

.site-language-buttons button {
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 850 .56rem/1 var(--font-body);
}

.site-language-buttons button.is-active {
  background: linear-gradient(135deg, rgba(231, 248, 253, .98), rgba(255, 242, 215, .94));
  box-shadow: 0 3px 10px rgba(43, 87, 109, .1);
  color: #245f8a;
}

.mobile-workspace-sheet > .site-language-buttons { margin: 10px 16px 2px; }
.mobile-language-select { display: flex; align-items: center; gap: 10px; margin: 8px 16px; color: var(--text); font-size: .85rem; }
.mobile-language-select > .material-symbols-outlined { color: var(--muted); font-size: 22px; }
.mobile-language-select select { flex: 1; min-width: 0; min-height: 44px; margin-left: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-strong); color: var(--text); font: inherit; font-size: 16px; }
.site-sidebar__start { display: grid; min-height: 44px; place-items: center; border-radius: 14px; background: linear-gradient(135deg,var(--sky),var(--sapphire)); color: #fff; font-size: .7rem; font-weight: 820; text-decoration: none; }
.site-sidebar__account-loading { display: grid; min-height: 48px; place-items: center; color: var(--muted); }
.site-sidebar__account-loading .material-symbols-outlined { font-size: 20px; animation: sidebar-account-loading 900ms linear infinite; }
@keyframes sidebar-account-loading { to { transform: rotate(360deg); } }
.site-navigation:not(.is-open) .site-sidebar__link { justify-content: center; gap: 0; padding-inline: 8px; }
.site-navigation:not(.is-open) .site-sidebar__link strong,
.site-navigation:not(.is-open) .site-sidebar__section,
.site-navigation:not(.is-open) .site-sidebar__footer > small,
.site-navigation:not(.is-open) .site-sidebar__start { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.mobile-site-dock,
.mobile-workspace-sheet { display: none; }

@media (min-width: 821px) {
  .site-navigation__backdrop { display: none; }
  .site-shell > main,
  .site-shell > footer { margin-left: 78px; transition: margin-left 210ms cubic-bezier(.2,.75,.2,1); }
  .site-shell:has(.site-navigation.is-open) > main,
  .site-shell:has(.site-navigation.is-open) > footer { margin-left: 310px; }
}

@media (min-width: 0px) {
  .site-shell > main,
  .site-shell > footer,
  .site-shell:has(.site-navigation.is-open) > main,
  .site-shell:has(.site-navigation.is-open) > footer {
    margin-left: 0;
  }

  .site-shell > main { padding-bottom: calc(106px + var(--safe-bottom)); }
  .site-shell > footer { padding-bottom: calc(96px + var(--safe-bottom)); }
  .site-navigation__backdrop { display: block; }
  .site-navigation__toggle,
  .site-navigation.is-open .site-navigation__toggle {
    display: none;
  }
  .site-sidebar,
  .site-navigation.is-open .site-sidebar {
    display: none;
    inset: auto 12px max(106px, calc(var(--safe-bottom) + 98px));
    width: calc(100% - 24px);
    max-width: 560px;
    margin-inline: auto;
    max-height: min(72dvh, 650px);
    padding: 18px 16px 16px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--line) 66%, white 22%);
    border-radius: 32px;
    background: color-mix(in srgb, var(--surface-raised) 78%, transparent);
    box-shadow: 0 28px 80px rgba(7,25,39,.28), inset 0 1px rgba(255,255,255,.86);
    transform: translateY(calc(100% + 110px)) scale(.96);
    transform-origin: center bottom;
    transition: transform 240ms cubic-bezier(.2,.8,.2,1);
    backdrop-filter: blur(34px) saturate(165%);
    -webkit-backdrop-filter: blur(34px) saturate(165%);
  }
  .site-navigation.is-open .site-sidebar { transform: translateY(0) scale(1); }
  .site-sidebar__brand { height: 56px; margin: 0 0 8px; }
  .site-sidebar__logo,
  .site-navigation.is-open .site-sidebar__logo { width: 202px; height: 58px; }
  .site-sidebar__logo-compact { display: none; }
  .site-sidebar__logo-long,
  .site-navigation.is-open .site-sidebar__logo-long { display: block !important; width: 198px; }
  .site-sidebar__links { margin-top: 0; }
  .site-navigation:not(.is-open) .site-sidebar__link { justify-content: flex-start; gap: 13px; padding-inline: 12px; }
  .site-navigation:not(.is-open) .site-sidebar__link strong,
  .site-navigation:not(.is-open) .site-sidebar__section,
  .site-navigation:not(.is-open) .site-sidebar__footer > small,
  .site-navigation:not(.is-open) .site-sidebar__start { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }

  .mobile-workspace-sheet {
    position: fixed;
    z-index: 425;
    right: max(10px, calc(var(--safe-right) + 10px));
    bottom: max(104px, calc(var(--safe-bottom) + 100px));
    left: max(10px, calc(var(--safe-left) + 10px));
    display: grid;
    width: min(650px, calc(100vw - var(--safe-left) - var(--safe-right) - 20px));
    max-height: min(68dvh, 570px);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    margin-inline: auto;
    padding: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 32px;
    background:
      radial-gradient(circle at 8% 0, rgba(97, 210, 244, .22), transparent 46%),
      linear-gradient(155deg, rgba(255, 255, 255, .97), rgba(235, 246, 252, .97));
    box-shadow: 0 28px 80px rgba(7, 25, 39, .3), inset 0 1px rgba(255, 255, 255, .96);
    opacity: 0;
    pointer-events: none;
    transform: translateY(28px) scale(.96);
    transform-origin: center bottom;
    visibility: hidden;
    transition: opacity 180ms ease, transform 240ms cubic-bezier(.2,.8,.2,1), visibility 240ms;
    backdrop-filter: blur(38px) saturate(180%);
    -webkit-backdrop-filter: blur(38px) saturate(180%);
  }

  .site-navigation.is-open .mobile-workspace-sheet {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
  }

  .mobile-workspace-sheet__header,
  .mobile-workspace-sheet__title,
  .mobile-workspace-sheet__link {
    display: flex;
    align-items: center;
  }
  .mobile-workspace-sheet__link { display: grid; grid-template-columns: 48px minmax(0, 1fr); }

  .mobile-workspace-sheet__header { justify-content: space-between; gap: 12px; padding: 1px 2px 0 5px; }
  .mobile-workspace-sheet__title { min-width: 0; gap: 11px; }
  .mobile-workspace-sheet__title > .material-symbols-outlined {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--sky) 24%, white), color-mix(in srgb, var(--violet) 12%, white));
    color: var(--sapphire);
    box-shadow: inset 0 1px rgba(255,255,255,.8);
  }
  .mobile-workspace-sheet__title div { display: grid; min-width: 0; gap: 1px; }
  .mobile-workspace-sheet__title small { color: var(--sapphire); font-size: .58rem; font-weight: 880; letter-spacing: .13em; }
  .mobile-workspace-sheet__title strong { overflow: hidden; color: var(--text); font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-workspace-sheet__close {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--line) 72%, white 18%);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-raised) 76%, transparent);
    color: var(--text);
    cursor: pointer;
  }
  .mobile-workspace-sheet__close .material-symbols-outlined { font-size: 22px; }
  .mobile-workspace-sheet__links { display: grid; gap: 8px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .mobile-workspace-sheet__link {
    min-height: 70px;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--line) 66%, rgba(255,255,255,.62));
    border-radius: 22px;
    background: color-mix(in srgb, var(--surface-raised) 68%, transparent);
    color: var(--text);
    box-shadow: inset 0 1px rgba(255,255,255,.68);
    text-decoration: none;
  }
  .mobile-workspace-sheet__link.is-active {
    border-color: color-mix(in srgb, var(--sapphire) 32%, var(--line));
    background: linear-gradient(135deg, color-mix(in srgb, var(--sky) 17%, white), color-mix(in srgb, var(--violet) 8%, white));
  }
  .mobile-workspace-sheet__icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 17px;
    background: color-mix(in srgb, var(--sapphire) 9%, rgba(255,255,255,.65));
    color: var(--sapphire);
  }
  .mobile-workspace-sheet__link > span:nth-child(2) { display: grid; min-width: 0; flex: 1; gap: 3px; }
  .mobile-workspace-sheet__link strong { font-size: .84rem; }
  .mobile-workspace-sheet__link small { overflow: hidden; color: var(--muted); font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-workspace-sheet__note { display: flex; min-height: 34px; align-items: center; gap: 7px; margin: 0 4px; color: var(--muted); font-size: .62rem; }
  .mobile-workspace-sheet__note .material-symbols-outlined { color: var(--sapphire); font-size: 18px; }

  .mobile-site-dock {
    position: fixed;
    z-index: 440;
    right: max(10px, calc(var(--safe-right) + 10px));
    bottom: max(10px, calc(var(--safe-bottom) + 8px));
    left: max(10px, calc(var(--safe-left) + 10px));
    display: grid;
    width: min(560px, calc(100vw - var(--safe-left) - var(--safe-right) - 20px));
    min-height: 82px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    margin-inline: auto;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 31px;
    background:
      linear-gradient(155deg, rgba(255, 255, 255, .76), rgba(239, 246, 251, .56)),
      color-mix(in srgb, var(--surface-raised) 70%, transparent);
    box-shadow: 0 20px 55px rgba(13, 39, 58, .24), inset 0 1px rgba(255, 255, 255, .95);
    transition: opacity 150ms ease, transform 180ms ease;
    backdrop-filter: blur(34px) saturate(180%);
    -webkit-backdrop-filter: blur(34px) saturate(180%);
  }

  .mobile-site-dock__item {
    display: flex;
    min-width: 0;
    min-height: 66px;
    align-items: center;
    justify-content: center;
    gap: 1px;
    flex-direction: column;
    padding: 5px 2px;
    border: 0;
    border-radius: 24px;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    text-decoration: none;
  }

  .mobile-site-dock__item .material-symbols-outlined { font-size: 1.55rem; }
  .mobile-site-dock__item strong { max-width: 100%; overflow: hidden; font-size: .61rem; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-site-dock__item.is-active {
    background: color-mix(in srgb, var(--sapphire) 10%, rgba(255, 255, 255, .48));
    color: var(--sapphire);
    box-shadow: inset 0 1px rgba(255, 255, 255, .78);
  }
  .mobile-site-dock__item--facade.is-active {
    background: color-mix(in srgb, #f2a326 16%, rgba(255, 255, 255, .5));
    color: #9b5d0b;
  }
  .mobile-workspace-sheet.is-facade .mobile-workspace-sheet__title > .material-symbols-outlined,
  .mobile-workspace-sheet.is-facade .mobile-workspace-sheet__icon {
    background: linear-gradient(135deg, #fff0c8, #ffe0a0);
    color: #9b5d0b;
  }
  .mobile-workspace-sheet.is-facade .mobile-workspace-sheet__link.is-active {
    border-color: rgba(222, 142, 36, .32);
    background: linear-gradient(135deg, rgba(255, 239, 202, .82), rgba(255, 221, 155, .56));
  }

  :root[data-theme="dark"] .mobile-site-dock {
    border-color: rgba(167, 211, 233, .18);
    background: linear-gradient(155deg, rgba(25, 38, 49, .82), rgba(9, 22, 34, .72));
    box-shadow: 0 22px 58px rgba(0, 4, 12, .46), inset 0 1px rgba(255, 255, 255, .1);
  }

  :root[data-theme="dark"] .mobile-workspace-sheet {
    border-color: rgba(167, 211, 233, .2);
    background:
      radial-gradient(circle at 8% 0, rgba(35, 139, 181, .22), transparent 48%),
      linear-gradient(155deg, rgba(25, 38, 49, .97), rgba(9, 22, 34, .97));
    box-shadow: 0 28px 80px rgba(0, 4, 12, .52), inset 0 1px rgba(255, 255, 255, .1);
  }

  :root[data-theme="dark"] .mobile-workspace-sheet__link.is-active {
    background: linear-gradient(135deg, rgba(31, 119, 159, .32), rgba(88, 75, 145, .2));
  }

  :root[data-theme="dark"] .mobile-workspace-sheet__link {
    border-color: rgba(119, 185, 228, .16);
    background: rgba(19, 31, 43, .76);
    box-shadow: inset 0 1px rgba(255,255,255,.06);
  }

  :root[data-theme="dark"] .mobile-workspace-sheet__title > .material-symbols-outlined,
  :root[data-theme="dark"] .mobile-workspace-sheet__icon {
    background: linear-gradient(135deg, rgba(44, 126, 168, .3), rgba(101, 79, 161, .22));
    box-shadow: inset 0 1px rgba(255,255,255,.07);
  }
  :root[data-theme="dark"] .mobile-site-dock__item--facade.is-active {
    background: rgba(190, 113, 37, .25);
    color: #ffc979;
  }
  :root[data-theme="dark"] .mobile-workspace-sheet.is-facade .mobile-workspace-sheet__title > .material-symbols-outlined,
  :root[data-theme="dark"] .mobile-workspace-sheet.is-facade .mobile-workspace-sheet__icon {
    background: linear-gradient(135deg, rgba(179, 105, 35, .36), rgba(123, 77, 38, .28));
    color: #ffc979;
  }
}

@media (max-width: 620px) {
  .mobile-site-dock {
    min-height: 70px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 5px;
    border-radius: 27px;
  }
  .mobile-site-dock__item {
    min-height: 58px;
    border-radius: 21px;
  }
}

@media (max-width: 390px) {
  .mobile-site-dock {
    grid-template-columns: minmax(44px, 1fr) minmax(60px, 1.25fr) minmax(44px, 1fr) minmax(66px, 1.4fr) minmax(44px, 1fr);
    gap: 2px;
    padding: 4px;
  }
}

@media (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) {
  .mobile-site-dock { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media print {
  .site-navigation,
  .mobile-site-dock { display: none !important; }
}

.site-shell > main {
  min-height: calc(100dvh - 74px);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: calc(84px + var(--safe-top));
  padding: calc(10px + var(--safe-top)) 0 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-header::after {
  display: none;
}

.site-header__inner {
  display: grid;
  min-height: 64px;
  grid-template-columns: minmax(165px, 1fr) auto minmax(165px, 1fr);
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  padding: 0 clamp(10px, 1.8vw, 22px);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  background: rgba(239, 250, 254, .7);
  box-shadow: 0 14px 38px rgba(44, 100, 130, .12), inset 0 1px rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
}

:root[data-theme="dark"] .site-header__inner {
  border-color: rgba(151, 208, 232, .18);
  background: rgba(8, 27, 42, .76);
  box-shadow: 0 18px 46px rgba(0, 5, 14, .34), inset 0 1px rgba(255, 255, 255, .1);
}

.brand {
  position: relative;
  display: block;
  width: clamp(190px, 18vw, 252px);
  height: 62px;
  overflow: hidden;
  text-decoration: none;
}

.brand img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: clamp(190px, 18vw, 252px);
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(2, 4, 8, 0.22));
  transform: translate(-50%, -50%);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.25vw, 34px);
}

.desktop-nav__link {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 5px;
  color: rgba(237, 240, 247, 0.68);
  font-size: clamp(0.68rem, 0.8vw, 0.76rem);
  font-weight: 720;
  white-space: nowrap;
  transition: color 160ms ease;
}

.desktop-nav__link small {
  color: #a9dfff;
  font-size: 0.48rem;
  letter-spacing: 0.08em;
}

.desktop-nav__link::after {
  position: absolute;
  right: 0;
  bottom: -15px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sky), var(--sapphire), var(--violet));
  content: "";
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 160ms ease, transform 160ms ease;
}

.desktop-nav__link:hover,
.desktop-nav__link.is-active {
  color: #fff;
}

.desktop-nav__link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

:root[data-theme="light"] .desktop-nav__link,
:root[data-theme="light"] .language-menu summary,
:root[data-theme="light"] .theme-toggle,
:root[data-theme="light"] .workplace-menu__trigger { color: #294655; }
:root[data-theme="light"] .desktop-nav__link:hover,
:root[data-theme="light"] .desktop-nav__link.is-active { color: #102f40; }
:root[data-theme="light"] .site-header .header-login { color: #294655; }
:root[data-theme="light"] .brand img { filter: drop-shadow(0 5px 13px rgba(30, 88, 112, .12)); }

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.language-menu,
.mobile-menu {
  position: relative;
}

.language-menu summary,
.theme-toggle {
  display: flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(240, 243, 249, 0.76);
  cursor: pointer;
  font-size: 0.71rem;
  font-weight: 750;
  list-style: none;
}

.workplace-menu {
  position: relative;
}

.workplace-menu__trigger {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(90, 178, 211, 0.22);
  border-radius: 999px;
  background: rgba(210, 241, 252, 0.12);
  cursor: pointer;
  color: rgba(240, 243, 249, 0.76);
  font: inherit;
}

.workplace-menu.is-active .workplace-menu__trigger,
.workplace-menu.is-open .workplace-menu__trigger {
  border-color: rgba(88, 193, 228, 0.45);
  background: rgba(168, 226, 246, 0.2);
}

.workplace-menu__popover {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  left: 50%;
  display: grid;
  width: 250px;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(115, 194, 222, 0.28);
  border-radius: 18px;
  background: rgba(238, 250, 255, 0.88);
  box-shadow: 0 20px 55px rgba(10, 43, 62, 0.2);
  backdrop-filter: blur(22px) saturate(145%);
  transform: translateX(-50%);
}

.workplace-menu__popover a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #183c50;
  text-decoration: none;
}

.workplace-menu__popover a:hover { background: rgba(88, 184, 218, 0.14); }
.workplace-menu__popover strong { font-size: .76rem; }
.workplace-menu__popover small { color: #638392; font-size: .58rem; }
.mobile-menu__section { padding: 8px 12px 2px; color: var(--muted); font-size: .58rem; font-weight: 850; letter-spacing: .13em; }

:root[data-theme="dark"] .workplace-menu__popover {
  border-color: rgba(108, 195, 227, 0.24);
  background: rgba(9, 24, 36, 0.9);
}
:root[data-theme="dark"] .workplace-menu__popover a { color: #e7f7ff; }
:root[data-theme="dark"] .workplace-menu__popover small { color: #8db0c1; }

.language-menu summary:hover,
.theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu .icon {
  width: 15px;
}

.chevron {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1px solid currentcolor;
  border-bottom: 1px solid currentcolor;
  transform: rotate(45deg);
}

.language-menu[open] .chevron {
  margin-top: 3px;
  transform: rotate(225deg);
}

.language-menu__popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 210px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow: var(--shadow);
  color: var(--text);
}

.desktop-topbar__language { z-index: 60; }
.desktop-topbar__language summary {
  min-height: 38px;
  padding-inline: 10px;
  border-color: rgba(67, 133, 163, .18);
  background: rgba(226, 244, 250, .58);
  color: #315f75;
}
.desktop-topbar__language summary strong { font-size: .57rem; }
.desktop-topbar__language summary .material-symbols-outlined { font-size: 18px; }

.language-option {
  text-decoration: none;
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  color: var(--text);
  text-align: left;
}

.language-option + .language-option {
  margin-top: 3px;
}

.language-option:hover,
.language-option.is-active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--violet) 12%, transparent), color-mix(in srgb, var(--sky) 12%, transparent));
}

.language-option strong,
.language-option small {
  display: block;
}

.language-option strong {
  color: var(--text);
  font-size: 0.74rem;
}

.language-option small {
  color: var(--muted);
  font-size: 0.62rem;
}

.language-option .icon {
  width: 16px;
  color: var(--turquoise);
  opacity: 0;
}

.language-option.is-active .icon {
  opacity: 1;
}

.theme-toggle {
  position: relative;
  display: block;
  width: 70px;
  height: 44px;
  min-width: 70px;
  min-height: 44px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  transition: transform 180ms ease;
}

.theme-toggle::before {
  position: absolute;
  top: 4px;
  left: 0;
  width: 70px;
  height: 36px;
  border: 1px solid rgba(87, 170, 205, .16);
  border-radius: 999px;
  background: rgba(216, 242, 251, .72);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, .68),
    0 5px 14px rgba(61, 125, 156, .1);
  content: "";
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.theme-toggle:hover {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transform: translateY(-1px);
}

.theme-toggle:hover::before {
  border-color: rgba(72, 166, 205, .26);
  background: rgba(225, 247, 253, .88);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, .72),
    0 7px 18px rgba(61, 125, 156, .14);
}

.theme-toggle__icon {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 3px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #f8c62e;
  box-shadow: 0 3px 10px rgba(178, 126, 0, .2);
  color: #fff;
  font-size: 19px;
  font-variation-settings: "FILL" 1, "wght" 580, "GRAD" 0, "opsz" 24;
  line-height: 1;
  text-align: center;
  text-shadow: none;
  transform: translateX(0);
  transition: background 210ms ease, box-shadow 210ms ease, transform 230ms cubic-bezier(.2, .82, .2, 1);
}

:root[data-theme="dark"] .theme-toggle {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

:root[data-theme="dark"] .theme-toggle::before {
  border-color: rgba(38, 166, 222, .14);
  background: #0b3548;
  box-shadow:
    inset 0 1px 2px rgba(2, 14, 25, .5),
    0 6px 17px rgba(0, 5, 14, .28);
}

:root[data-theme="dark"] .theme-toggle__icon {
  background: #29afe8;
  box-shadow: 0 3px 11px rgba(17, 151, 211, .34);
  color: #fff;
  filter: none;
  transform: translateX(34px);
}

.site-header .header-login {
  color: rgba(245, 247, 252, 0.82);
}

.site-header .header-login:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.site-header .header-cta {
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 10px 25px rgba(5, 8, 14, 0.24), inset 0 1px rgba(255, 255, 255, 0.2);
}

.header-account-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--sapphire) 48%, var(--violet-deep));
  box-shadow: 0 9px 22px rgba(5, 8, 14, 0.28), inset 0 1px rgba(255, 255, 255, 0.38);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.mobile-menu,
.mobile-tabs {
  display: none;
}

/* Shared footer: one compact layout across all public pages. */
.site-footer {
  margin-top: 12px;
  padding-block: 14px 12px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface-strong);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(160px, .8fr) minmax(0, 3.2fr);
  align-items: start;
  gap: 10px 20px;
  text-align: left;
}

.site-footer__brand {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.site-footer__brand .brand,
.site-footer__brand .brand img {
  width: min(180px, 100%);
}

.site-footer__brand p {
  max-width: 250px;
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.6;
}

.site-footer__copyright,
.site-footer__legal a {
  color: var(--muted);
  font-size: .72rem;
}

.site-footer__links {
  display: grid;
  grid-template-columns: .9fr 1.2fr 1.1fr .9fr;
  gap: 20px;
  min-width: 0;
}

.site-footer__group {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 0;
}

.site-footer__group h2 {
  display: flex;
  min-height: 24px;
  align-items: center;
  margin: 0;
  color: var(--text);
  font: 750 .74rem/1.4 var(--font-sans);
}

.site-footer__links a {
  display: flex;
  align-items: center;
  min-height: 26px;
  width: fit-content;
  max-width: 100%;
  padding-block: 3px;
  color: var(--text-soft);
  font-size: .78rem;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer a:hover {
  color: var(--sapphire);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer a:focus-visible,
.mobile-site-dock__item:focus-visible {
  outline: 2px solid var(--sapphire);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-footer__help a.site-footer__contact { color: var(--sapphire); }
.site-footer__help a.site-footer__email { font-size: .72rem; }

.site-footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding-top: 6px;
  border-top: 1px solid var(--line-soft);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-footer__languages {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  gap: 0 20px;
}

.site-footer__languages a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-soft);
  font-size: .78rem;
  text-underline-offset: 4px;
}

.site-footer__languages a[aria-current="page"] { font-weight: 750; }

.site-footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-decoration: none;
}

@media (max-width: 1080px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 8px; }
  .site-footer__brand { display: flex; align-items: center; gap: 24px; }
  .site-footer__brand p { max-width: 390px; }
}

@media (max-width: 700px) {
  .site-footer { margin-top: 8px; padding-top: 12px; }
  .site-footer__inner { gap: 6px; }
  .site-footer__brand .brand { height: 44px; }
  .site-footer__brand .brand,
  .site-footer__brand .brand img { width: 150px; }
  .site-footer__brand p { display: none; }
  .site-footer__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
  }
  .site-footer__group h2 { min-height: 24px; margin-bottom: 0; }
  .site-footer__links a,
  .site-footer__legal a { min-height: 32px; }
  .site-footer__bottom { gap: 0 16px; padding-top: 8px; }
}

@media (max-width: 1160px) {
  .desktop-nav {
    gap: 14px;
  }

  .site-header__inner {
    grid-template-columns: 175px auto 175px;
  }

  .language-menu summary > span:not(.chevron) {
    display: none;
  }
}

@media (max-width: 1080px) {
  .site-shell > main {
    min-height: calc(100dvh - 68px);
    padding-bottom: calc(70px + var(--safe-bottom));
  }

  .site-header {
    min-height: calc(76px + var(--safe-top));
  }

  .site-header__inner {
    display: flex;
    min-height: 58px;
    justify-content: space-between;
  }

  .brand {
    width: 164px;
    height: 58px;
  }

  .brand img {
    width: 176px;
  }

  .desktop-nav,
  .header-login,
  .header-cta,
  .header-account-avatar {
    display: none;
  }

  .site-header__actions {
    gap: 1px;
  }

  .language-menu summary {
    width: 44px;
    padding: 0;
  }

  .language-menu summary > span {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu__trigger {
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 6px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.065);
    color: #fff;
    cursor: pointer;
  }

  .mobile-menu__trigger span {
    width: 18px;
    height: 1.5px;
    border-radius: 2px;
    background: currentcolor;
    transition: transform 160ms ease;
  }

  .mobile-menu.is-open .mobile-menu__trigger span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .mobile-menu.is-open .mobile-menu__trigger span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .mobile-menu__backdrop {
    position: fixed;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(2, 4, 8, 0.42);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: default;
  }

  .mobile-menu__popover {
    position: fixed;
    z-index: 102;
    top: calc(76px + var(--safe-top));
    right: max(16px, var(--safe-right));
    display: grid;
    width: min(360px, calc(100vw - max(32px, var(--safe-left) + var(--safe-right))));
    max-height: calc(100dvh - 166px - var(--safe-top) - var(--safe-bottom));
    overflow-y: auto;
    gap: 3px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface-raised);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
    color: var(--text);
    animation: mobile-menu-in 170ms ease-out both;
  }

  .mobile-menu__popover > a:not(.button) {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 0 14px;
    border-radius: 14px;
    color: var(--text-soft);
    font-size: 0.83rem;
    font-weight: 690;
  }

  .mobile-menu__popover > a:not(.button):hover {
    background: var(--surface-subtle);
    color: var(--text);
  }

  .mobile-menu__popover .button {
    min-height: 48px;
    margin-top: 4px;
  }

  .mobile-tabs {
    position: fixed;
    z-index: 95;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: calc(64px + var(--safe-bottom));
    grid-template-columns: repeat(var(--mobile-tab-count, 5), minmax(0, 1fr));
    padding: 6px max(8px, var(--safe-right)) var(--safe-bottom) max(8px, var(--safe-left));
    border-top: 1px solid var(--line);
    background: var(--mobile-nav-bg);
    box-shadow: 0 -12px 34px rgba(8, 10, 16, 0.1);
    backdrop-filter: blur(26px) saturate(150%);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
  }

  .mobile-tabs--2 { --mobile-tab-count: 2; }
  .mobile-tabs--3 { --mobile-tab-count: 3; }
  .mobile-tabs--4 { --mobile-tab-count: 4; }
  .mobile-tabs--5 { --mobile-tab-count: 5; }

  .mobile-tabs__item {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 52px;
    place-content: center;
    justify-items: center;
    gap: 1px;
    border-radius: 14px;
    color: var(--muted);
  }

  .mobile-tabs__item::before {
    position: absolute;
    top: 2px;
    width: 24px;
    height: 2px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--sky), var(--violet));
    content: "";
    opacity: 0;
    transform: scaleX(0.45);
    transition: opacity 150ms ease, transform 150ms ease;
  }

  .mobile-tabs__item.is-active {
    background: color-mix(in srgb, var(--sapphire) 9%, transparent);
    color: var(--sapphire);
  }

  .mobile-tabs__item.is-active::before {
    opacity: 1;
    transform: scaleX(1);
  }

  .mobile-tabs .material-symbols-outlined {
    font-size: 21px;
    font-variation-settings: "FILL" 0, "wght" 360, "GRAD" 0, "opsz" 24;
  }

  .mobile-tabs small {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.6rem;
    font-weight: 720;
    line-height: 1.2;
    text-overflow: ellipsis;
  }

  .site-footer {
    margin-top: 36px;
  }

}

@media (max-width: 520px) {
  .site-header .container {
    width: calc(100% - max(24px, var(--safe-left) + var(--safe-right)));
  }

  .brand {
    width: 172px;
  }

  .brand img {
    width: 172px;
  }

}

@keyframes mobile-menu-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu__popover,
  .desktop-nav__link::after,
  .mobile-tabs__item::before,
  .theme-toggle,
  .theme-toggle__icon {
    animation: none;
    transition: none;
  }
}

/* Public navigation: a real top bar on computers, while the compact dock and
   workspace sheet stay available on iPhone and tablet-sized screens. */
.desktop-topbar { display: none; }

@media (min-width: 1025px) {
  .site-shell > main {
    margin-left: 0 !important;
    padding-top: 88px;
    padding-bottom: 0;
  }

  .site-shell > footer {
    margin-left: 0 !important;
    padding-bottom: 18px;
  }

  .site-navigation__toggle,
  .site-navigation__backdrop,
  .site-sidebar,
  .mobile-workspace-sheet,
  .mobile-site-dock {
    display: none !important;
  }

  .desktop-topbar {
    position: fixed;
    z-index: 470;
    top: max(12px, calc(var(--safe-top) + 10px));
    right: max(16px, calc(var(--safe-right) + 14px));
    left: max(16px, calc(var(--safe-left) + 14px));
    display: grid;
    width: min(1390px, calc(100% - 32px));
    min-height: 66px;
    grid-template-columns: minmax(164px, .72fr) auto minmax(240px, .9fr);
    align-items: center;
    gap: clamp(14px, 2vw, 32px);
    margin-inline: auto;
    padding: 8px 10px 8px 18px;
    border: 1px solid rgba(100, 86, 166, .13);
    border-radius: 22px;
    background:
      linear-gradient(115deg, rgba(232, 248, 255, .78), rgba(255, 255, 255, .94) 34%, rgba(255, 249, 234, .86));
    box-shadow: 0 18px 52px rgba(44, 39, 88, .12), inset 0 1px rgba(255, 255, 255, .96);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
  }

  .desktop-topbar__brand {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    text-decoration: none;
  }

  .desktop-topbar__brand .desktop-topbar__logo.simple-home__logo {
    display: block;
    width: clamp(158px, 13vw, 202px);
    height: auto;
    filter: none;
  }

  .desktop-topbar__nav,
  .desktop-topbar__actions {
    display: flex;
    align-items: center;
  }

  .desktop-topbar__nav {
    justify-content: center;
    gap: 4px;
  }

  .desktop-topbar__actions {
    justify-content: flex-end;
    gap: 8px;
  }

  .desktop-topbar__link,
  .desktop-topbar__login,
  .desktop-topbar__account {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 11px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #514d62;
    cursor: pointer;
    font-size: .7rem;
    font-weight: 790;
    line-height: 1;
    list-style: none;
    text-decoration: none;
    white-space: nowrap;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
  }

  .desktop-topbar__link::-webkit-details-marker { display: none; }
  .desktop-topbar__link:hover,
  .desktop-topbar__link.is-active,
  .desktop-topbar__menu[open] > .desktop-topbar__link {
    background: rgba(87, 174, 224, .1);
    color: #266f9e;
  }

  .desktop-topbar__link > .material-symbols-outlined {
    font-size: 16px;
    transition: transform 160ms ease;
  }

  .desktop-topbar__menu[open] > summary .material-symbols-outlined { transform: rotate(180deg); }
  .desktop-topbar__menu { position: relative; }

  .desktop-topbar__dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    display: grid;
    width: 320px;
    gap: 5px;
    padding: 13px;
    border: 1px solid rgba(98, 83, 171, .14);
    border-radius: 22px;
    background:
      radial-gradient(circle at 100% 0, rgba(255, 195, 75, .17), transparent 38%),
      rgba(255, 255, 255, .97);
    box-shadow: 0 24px 65px rgba(42, 35, 85, .2), inset 0 1px #fff;
    transform: translateX(-50%);
  }

  .desktop-topbar__dropdown--arches { width: 350px; }
  .desktop-topbar__menu--facade[open] > .desktop-topbar__link {
    background: rgba(244, 167, 63, .13);
    color: #9b5d0b;
  }
  .desktop-topbar__dropdown--facade > a > .material-symbols-outlined {
    background: linear-gradient(140deg, #fff3d5, #ffd991);
    color: #9b5d0b;
  }

  .desktop-topbar__dropdown > small {
    padding: 4px 9px 7px;
    color: #8a77bf;
    font-size: .52rem;
    font-weight: 900;
    letter-spacing: .14em;
  }

  .desktop-topbar__dropdown > a {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 9px;
    border-radius: 15px;
    color: #3e3a4c;
    text-decoration: none;
  }

  .desktop-topbar__dropdown > a:hover {
    background: linear-gradient(135deg, rgba(219, 244, 255, .72), rgba(255, 240, 204, .56));
  }

  .desktop-topbar__dropdown > a > .material-symbols-outlined,
  .desktop-topbar__dropdown > a > .desktop-topbar__arch-symbol {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(140deg, #e4f6ff, #fff0c9);
    color: #427db3;
    font-size: 20px;
  }

  .desktop-topbar__arch-symbol .rampant-arch-icon {
    width: 24px;
    height: 21px;
    stroke-width: 1.35;
  }

  .desktop-topbar__dropdown > a > span:last-child { display: grid; gap: 3px; }
  .desktop-topbar__dropdown strong { font-size: .72rem; }
  .desktop-topbar__dropdown a small { color: #7a7587; font-size: .58rem; line-height: 1.35; }

  .desktop-topbar__login,
  .desktop-topbar__account { border: 1px solid rgba(96, 82, 163, .12); }
  .desktop-topbar__account .material-symbols-outlined { font-size: 18px; }

  .desktop-topbar__start {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid rgba(222, 133, 42, .2);
    border-radius: 14px;
    background: linear-gradient(135deg, #ffcf70, #f39a4a);
    box-shadow: 0 10px 26px rgba(218, 125, 35, .2), inset 0 1px rgba(255,255,255,.5);
    color: #58351f;
    font-size: .68rem;
    font-weight: 880;
    text-decoration: none;
    white-space: nowrap;
  }

  .desktop-topbar__start:hover { transform: translateY(-1px); }
}

@media (min-width: 1025px) and (max-width: 1170px) {
  .desktop-topbar {
    grid-template-columns: 150px auto 190px;
    gap: 8px;
    padding-left: 14px;
  }
  .desktop-topbar__brand .desktop-topbar__logo.simple-home__logo { width: 148px; }
  .desktop-topbar__link { padding-inline: 8px; font-size: .64rem; }
  .desktop-topbar__login { display: none; }
  .desktop-topbar__start { padding-inline: 12px; font-size: .63rem; }
}

@media (min-width: 1025px) {
  :root[data-theme="dark"] .desktop-topbar {
    border-color: rgba(117, 184, 230, .19);
    background:
      radial-gradient(circle at 7% 0, rgba(51, 151, 198, .18), transparent 32%),
      linear-gradient(115deg, rgba(18, 34, 46, .94), rgba(13, 20, 31, .96) 46%, rgba(37, 29, 38, .94));
    box-shadow: 0 22px 60px rgba(0, 4, 12, .5), inset 0 1px rgba(255, 255, 255, .1);
  }

  :root[data-theme="dark"] .desktop-topbar__link,
  :root[data-theme="dark"] .desktop-topbar__login,
  :root[data-theme="dark"] .desktop-topbar__account { color: #d3dce6; }

  :root[data-theme="dark"] .desktop-topbar__link:hover,
  :root[data-theme="dark"] .desktop-topbar__link.is-active,
  :root[data-theme="dark"] .desktop-topbar__menu[open] > .desktop-topbar__link {
    background: rgba(82, 174, 225, .17);
    color: #8dd6ff;
  }

  :root[data-theme="dark"] .desktop-topbar__dropdown {
    border-color: rgba(116, 183, 229, .2);
    background:
      radial-gradient(circle at 100% 0, rgba(232, 147, 63, .16), transparent 38%),
      rgba(15, 23, 34, .98);
    box-shadow: 0 28px 72px rgba(0, 2, 9, .62), inset 0 1px rgba(255,255,255,.08);
  }

  :root[data-theme="dark"] .desktop-topbar__dropdown > a { color: #e2e7ed; }
  :root[data-theme="dark"] .desktop-topbar__dropdown a small { color: #9da9b6; }
  :root[data-theme="dark"] .desktop-topbar__dropdown > a:hover {
    background: linear-gradient(135deg, rgba(47, 126, 166, .27), rgba(143, 91, 45, .2));
  }
  :root[data-theme="dark"] .desktop-topbar__dropdown > a > .material-symbols-outlined,
  :root[data-theme="dark"] .desktop-topbar__dropdown > a > .desktop-topbar__arch-symbol {
    background: linear-gradient(140deg, rgba(41, 123, 163, .34), rgba(156, 100, 49, .27));
    color: #8ad2f7;
  }
  :root[data-theme="dark"] .desktop-topbar__login,
  :root[data-theme="dark"] .desktop-topbar__account { border-color: rgba(118, 184, 229, .22); }
  :root[data-theme="dark"] .desktop-topbar__menu--facade[open] > .desktop-topbar__link {
    background: rgba(185, 111, 41, .22);
    color: #ffc979;
  }
  :root[data-theme="dark"] .desktop-topbar__dropdown--facade > a > .material-symbols-outlined {
    background: linear-gradient(140deg, rgba(178, 105, 39, .34), rgba(126, 79, 37, .28));
    color: #ffc979;
  }
}

@media (max-width: 1024px), (pointer: coarse), (hover: none) {
  .desktop-only-tool { display: none; }
}

/* The workshop shares the calculated preview drawings from the homepage. */
.workshop-name-list {display:grid;gap:3px;min-width:0;}
.workshop-name-list a {display:flex;align-items:center;gap:12px;min-height:56px;padding:4px 12px;border-radius:7px;color:inherit;font-size:14px;line-height:1.35;text-decoration:none;}
.workshop-name-list a:hover,.workshop-name-list a.is-active {background:#e7f1fa;color:#173f64;}
.desktop-topbar__dropdown--names {width:330px;max-height:75vh;overflow:auto;}
.mobile-site-panel .workshop-name-list a {padding:4px 12px;}
:root[data-theme="dark"] .workshop-name-list a:hover,:root[data-theme="dark"] .workshop-name-list a.is-active {background:#243f57;color:#fff;}
@media(max-width:1199px){.mobile-site-dock {grid-template-columns:repeat(3,minmax(0,1fr));}.mobile-site-dock__item strong {font-size:.8rem;}}

.workshop-name-list__preview {display:block;flex:0 0 84px;width:84px;height:48px;object-fit:contain;}
.workshop-name-list a > span {min-width:0;}
@media(max-width:1199px) {
  .mobile-workspace-sheet .workshop-name-list a {display:flex;align-items:center;gap:10px;min-height:52px;padding:3px 10px;}
  .mobile-workspace-sheet .workshop-name-list__preview {flex-basis:74px;width:74px;height:46px;}
}

/* Shared account navigation on desktop, expanded menu and iPhone. */
.desktop-topbar__register { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 9px; background: var(--sapphire); color: white; text-decoration: none; font-size: .8rem; font-weight: 650; }
.desktop-account-menu > summary { list-style: none; cursor: pointer; }
.desktop-account-menu > summary::-webkit-details-marker { display: none; }
.desktop-account-menu > .desktop-topbar__dropdown { right: 0; left: auto; width: 275px; min-width: 250px; padding: 10px; }
.account-navigation__links { display: grid; gap: 4px; }
.account-navigation__link { display: flex; align-items: center; gap: 10px; padding: 11px 12px; min-height: 44px; color: var(--text); text-decoration: none; font-size: .82rem; border-radius: 8px; }
.account-navigation__link > .material-symbols-outlined { font-size: 21px; color: var(--muted); }
.account-navigation__link > span:last-child { margin-left: auto; font-size: 17px; }
.account-navigation__link:is(:hover,.is-active) { background: var(--surface-blue); color: var(--sapphire); }
.account-navigation > p { margin: 8px 12px; font-size: .65rem; font-weight: 750; letter-spacing: .09em; color: var(--muted); }
.account-navigation__logout { display: flex; align-items: center; gap: 10px; padding: 12px; border: 0; color: var(--text-soft); background: none; font: inherit; cursor: pointer; }
.guest-navigation { padding: 14px; margin: 4px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-subtle); }
.guest-navigation > strong { font-size: .83rem; }
.guest-navigation > p { margin: 7px 0 12px; font-size: .72rem; line-height: 1.6; color: var(--text-soft); }
.guest-navigation > div { display: flex; flex-wrap: wrap; gap: 7px; }
.guest-navigation > div > a { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 8px 10px; font-size: .74rem; font-weight: 650; border: 1px solid var(--line); border-radius: 7px; text-decoration: none; color: var(--text); }
.guest-navigation > div > a > span { font-size: 18px; }
.guest-navigation > div > a.guest-navigation__register { background: var(--sapphire); color: white; border-color: transparent; }
@media(max-width:700px) { .mobile-workspace-sheet__links > .account-navigation { width: 100%; grid-column: 1 / -1; } .mobile-workspace-sheet .guest-navigation { grid-column: 1 / -1; } }

.masonry-guide__preview {display:block;width:100%;height:130px;object-fit:contain;margin-bottom:16px;}
