/* DCS-inspireret topbar — hvid, to rækker, vandret navigation */

/* Staff/intern topbar (ConnectingIT · Intern) + sticky clock chrome */
.cit-staff-chrome {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #0a1929;
}
.cit-staff-clock {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.55rem 1rem;
  padding-top: max(0.55rem, env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, #071421 0%, #0d2137 100%);
  color: #e8f4ff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cit-staff-clock-time {
  font-size: clamp(1.35rem, 5.5vw, 1.85rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  line-height: 1.1;
}
.cit-staff-clock-date {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.82;
  text-transform: capitalize;
}
.cit-topbar--staff {
  background: linear-gradient(90deg, #0d2137 0%, #1a2d4f 55%, #123a5c 100%);
  color: #d7e6f7;
  font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cit-topbar--staff .cit-topbar-inner {
  max-width: min(78rem, 100% - 2rem);
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.cit-topbar--staff .cit-topbar-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.cit-topbar--staff .cit-topbar-item--brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cit-topbar--staff .cit-topbar-item--user {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.9;
}
.cit-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.cit-topbar-menu {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #e8f4ff;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.cit-topbar-menu-label {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.cit-topbar--staff .cit-topbar-link {
  color: inherit;
  text-decoration: none;
  opacity: 0.95;
}
.cit-topbar--staff .cit-topbar-link:hover {
  text-decoration: underline;
}
.cit-topbar--staff .cit-topbar-cta {
  background: rgba(255, 255, 255, 0.14);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  min-height: 40px;
  box-sizing: border-box;
}
.cit-topbar--staff .cit-topbar-cta:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.22);
}
@media (min-width: 1024px) {
  .cit-staff-clock {
    justify-content: flex-start;
    padding: 0.3rem 1rem;
  }
  .cit-staff-clock-time {
    font-size: 1rem;
  }
  .cit-topbar-menu {
    display: none !important;
  }
  .cit-topbar--staff .cit-topbar-item--user {
    max-width: 16rem;
  }
}
@media (max-width: 1023px) {
  .site-header--staff.sticky {
    position: relative;
    top: auto;
    z-index: 50;
  }
  .site-header--staff .cit-staff-menu-in-header {
    display: none !important;
  }
}

.site-header--dcs {
  background: #fff !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none !important;
  border-bottom: 1px solid #e8edf3;
  color: #1a2d4f;
  overflow: visible;
}

.site-header--dcs.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
}

.cit-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.cit-header-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.cit-header-utils {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cit-header-utils > * {
  flex-shrink: 0;
}

.cit-header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  background: #fff;
  color: #444;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.cit-header-icon-btn:hover {
  border-color: #1565c0;
  color: #1565c0;
  background: #f8fafc;
}

.cit-header-icon-btn--cart {
  position: relative;
}

/* Wave171: translate toggle stays icon-only (40×40) — label in aria-label/title/panel */
.cit-header-icon-btn--translate {
  letter-spacing: 0.02em;
  font-size: 0.85rem;
}

.cit-translate-widget {
  position: relative;
  flex-shrink: 0;
}

.cit-header-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e65100;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cit-header-nav-row {
  border-top: 1px solid #eef2f7;
}

.cit-header-nav-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 0;
  min-height: 48px;
}
/* Pre-gap flex Safari: padding on .cit-nav-link already spaces items; keep display explicit */
.cit-header-nav-inner > a,
.cit-header-nav-inner > .cit-nav-item {
  flex: 0 0 auto;
}
/* Extra spacing fallback if padding is reset by page CSS */
.cit-header-nav-inner > a + a,
.cit-header-nav-inner > a + .cit-nav-item,
.cit-header-nav-inner > .cit-nav-item + a,
.cit-header-nav-inner > .cit-nav-item + .cit-nav-item {
  margin-left: 0;
}

.cit-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  min-height: 44px;
  box-sizing: border-box;
  font-size: 0.92rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.cit-nav-link:hover,
.cit-nav-link--active,
.cit-nav-link--open {
  color: #1565c0;
  border-bottom-color: #1565c0;
}

.cit-nav-chevron {
  font-size: 0.6rem;
  color: #888;
  margin-top: 1px;
}

.cit-nav-drop {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 228px;
  z-index: 60;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
}

.cit-nav-drop a {
  display: block;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: #333;
  text-decoration: none;
  outline: none;
}

.cit-nav-drop a:hover,
.cit-nav-drop a.active {
  background: #f0f7ff;
  color: #1565c0;
}

.cit-nav-drop a:focus-visible {
  background: #e8f1fc;
  color: #1565c0;
  box-shadow: inset 3px 0 0 #1565c0;
}

.cit-nav-item {
  position: relative;
}

.cit-header-login {
  display: none;
}

/* Legacy site.js nav under DCS header */
.site-header--dcs #nav {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  position: static !important;
  width: auto !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.site-header--dcs #nav > a {
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #333 !important;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.site-header--dcs #nav > a:hover,
.site-header--dcs #nav > a.active {
  color: #1565c0 !important;
  background: transparent !important;
  border-bottom-color: #1565c0;
}

/* React mobile drawer (HeaderMobileDrawer) — override legacy white nav a from style.css */
.site-header--dcs nav a {
  color: #333 !important;
}
.site-header--dcs nav a:hover,
.site-header--dcs nav a:focus-visible {
  color: #1565c0 !important;
  background: transparent !important;
}
.site-header--dcs nav a.active,
.site-header--dcs nav a.cit-nav-link--active {
  color: #1565c0 !important;
  font-weight: 600;
}

/* Dedicated mobile drawer — unscoped so body.dark nav a cannot win */
.cit-mobile-drawer {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #fff !important;
}
.cit-mobile-drawer,
.cit-mobile-drawer a,
.cit-mobile-drawer p,
.cit-mobile-drawer span,
.cit-mobile-drawer button,
body.dark .cit-mobile-drawer,
body.dark .cit-mobile-drawer a,
body.dark .cit-mobile-drawer p,
body.dark .cit-mobile-drawer span,
body.dark .cit-mobile-drawer button {
  color: #1a2d4f !important;
}
.cit-mobile-drawer a:hover,
.cit-mobile-drawer a:focus-visible,
body.dark .cit-mobile-drawer a:hover,
body.dark .cit-mobile-drawer a:focus-visible {
  color: #1565c0 !important;
}

.site-header--dcs .nav-ydelser-knap {
  color: #333 !important;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 12px 16px;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.site-header--dcs .nav-ydelser-knap:hover,
.site-header--dcs .nav-ydelser-knap.active,
.site-header--dcs .nav-ydelser.open .nav-ydelser-knap {
  color: #1565c0 !important;
  background: transparent !important;
  border-bottom-color: #1565c0;
}

.site-header--dcs .nav-ydelser-drop {
  background: #fff;
  border: 1px solid #e8edf3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  min-width: 228px;
}

.site-header--dcs .nav-ydelser-drop a:focus-visible {
  background: #e8f1fc;
  color: #1565c0;
  box-shadow: inset 3px 0 0 #1565c0;
  outline: none;
}

.site-header--dcs .nav-tools {
  margin-left: auto;
  border-left: none;
  padding-left: 0;
}

.site-header--dcs .header-inner {
  display: block;
  max-width: min(80rem, 100% - 2rem);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Logo på DCS-header: lys tema = mørk logo, mørk tema = hvid logo */
.site-header--dcs .logo-img--on-light {
  display: block !important;
}
.site-header--dcs .logo-img--on-dark {
  display: none !important;
}
body.dark .site-header--dcs .logo-img--on-light {
  display: none !important;
}
body.dark .site-header--dcs .logo-img--on-dark {
  display: block !important;
}

.site-header--dcs .nav-tools,
.site-header--dcs .btn-login,
.site-header--dcs #darkToggle,
.site-header--dcs .dark-toggle,
.site-header--dcs .lang-switch {
  display: none !important;
}

/* Portal under-menu — matcher DCS topbar (Wave176: scrollable mobile tabs) */
.cit-portal-subnav {
  background: #fff;
  border-bottom: 1px solid #e8edf3;
}
.cit-portal-subnav-inner {
  display: flex;
  max-width: min(78rem, 100% - 2rem);
  margin: 0 auto;
  padding: 0 1rem;
}
.cit-portal-tab {
  flex: 1;
  min-height: 44px;
  padding: 12px 10px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #666;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}
.cit-portal-tab:hover { color: #1565c0; }
.cit-portal-tab--active {
  color: #1565c0;
  border-bottom-color: #1565c0;
}
.cit-portal-subnav-secondary {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border-top: 1px solid #eef2f7;
  background: #f8fafc;
  max-width: min(78rem, 100% - 2rem);
  margin: 0 auto;
  padding: 0 0.5rem;
  gap: 0;
}
.cit-portal-tab--sub {
  flex: 1 0 auto;
  min-width: 5.5rem;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #888;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.cit-portal-tab--sub:hover { color: #1565c0; }
.cit-portal-tab--sub.cit-portal-tab--active {
  color: #1565c0;
  border-bottom-color: #1565c0;
}
body.dark .cit-portal-subnav {
  background: #1a2535;
  border-color: #2a3a4a;
}
body.dark .cit-portal-subnav-secondary {
  background: #131f2c;
  border-color: #2a3a4a;
}
body.dark .cit-portal-tab { color: #99b0c8; }
body.dark .cit-portal-tab--active { color: #81d4fa; border-bottom-color: #81d4fa; }
body.dark .cit-portal-tab--sub { color: #7a94ad; }
body.dark .cit-portal-tab--sub.cit-portal-tab--active { color: #81d4fa; border-bottom-color: #81d4fa; }

.site-header--dcs .cit-header-top > .logo-link,
.site-header--dcs .cit-header-top > .logo-link--cit {
  display: inline-flex;
  margin: 0;
}

.site-header--dcs .header-inner > .logo-link,
.site-header--dcs .header-inner > .logo-link--cit {
  display: inline-flex;
  margin: 12px 0;
}

.site-header--dcs .nav-tools,
.site-header--dcs .btn-login {
  display: none !important;
}

.site-header--dcs .hamburger {
  display: none;
}

@media (max-width: 992px) {
  .site-header--dcs .cit-header-nav-row {
    border: none;
    height: 0;
    overflow: visible;
  }

  .cit-header-nav-inner {
    display: none;
  }

  .site-header--dcs .hamburger {
    display: flex;
  }

  .site-header--dcs #nav:not(.nav-open) {
    display: none !important;
  }

  .site-header--dcs #nav.nav-open {
    display: flex !important;
    flex-direction: column;
    position: fixed !important;
    inset: 0 0 0 auto;
    width: min(300px, 88vw) !important;
    background: #fff !important;
    z-index: 100;
    padding: 20px !important;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12) !important;
  }

  .site-header--dcs #nav.nav-open > a,
  .site-header--dcs #nav.nav-open .nav-ydelser-knap {
    color: #333 !important;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #f0f2f5;
  }
}

body.dark .site-header--dcs {
  background: #1a2535 !important;
  border-color: #2a3a4a;
  color: #d0dce8;
}

body.dark .cit-header-icon-btn {
  background: #131f2c;
  border-color: #2a3a4a;
  color: #d0dce8;
}

body.dark .cit-nav-link,
body.dark .site-header--dcs #nav > a {
  color: #d0dce8 !important;
}

body.dark .cit-header-nav-row {
  border-color: #2a3a4a;
}

/* Webshop: subnav hænger på under header */
.shop-subnav-attach {
  margin-top: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  box-shadow: none;
}

/* DCS konto-panel (👤 dropdown) */
.site-header--dcs .cit-header-top,
.site-header--dcs .cit-header-utils,
.cit-account-menu { position: relative; overflow: visible; }
.cit-account-backdrop {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: transparent;
}
.cit-account-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  display: flex;
  min-width: min(520px, 92vw);
  max-width: 520px;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.cit-account-panel[hidden] {
  display: none !important;
}
.cit-account-panel-side {
  width: 220px;
  flex-shrink: 0;
  padding: 16px;
  border-right: 1px solid #eef2f7;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cit-account-user { display: flex; gap: 10px; align-items: flex-start; }
.cit-account-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: #f0f4f8; border: 1px solid #e0e6ef;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.cit-account-user-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 0.8rem; color: #555; }
.cit-account-user-text strong { color: #1a2d4f; font-size: 0.88rem; font-weight: 700; word-break: break-word; }
.cit-account-login-link { color: #1565c0; font-weight: 600; text-decoration: none; font-size: 0.82rem; }
.cit-account-login-link:hover { text-decoration: underline; }
.cit-account-login-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}
.cit-account-login-form label { display: flex; flex-direction: column; gap: 3px; }
.cit-account-login-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #888;
}
.cit-account-login-form input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d0d8e8;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: inherit;
  box-sizing: border-box;
  background: #fff;
  color: #1a2d4f;
}
.cit-account-login-form input:focus {
  outline: none;
  border-color: #1565c0;
  box-shadow: 0 0 0 2px rgba(21, 101, 192, 0.15);
}
.cit-account-login-submit {
  width: 100%;
  padding: 10px 12px;
  margin-top: 2px;
  border: none;
  border-radius: 6px;
  background: #1565c0;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.cit-account-login-submit:hover:not(:disabled) { background: #1255a0; }
.cit-account-login-submit:disabled { opacity: 0.7; cursor: wait; }
.cit-account-mitid-btn {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: #006633;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.cit-account-mitid-btn:hover { background: #005528; }
.cit-account-login-feil { color: #c62828; font-size: 0.78rem; margin: 0; line-height: 1.35; }
.cit-account-login-info { color: #2e7d32; font-size: 0.78rem; margin: 0; line-height: 1.35; }
.cit-account-auth-title { margin: 0 0 4px; font-size: 0.82rem; font-weight: 700; color: #1a2d4f; }
.cit-account-auth-links { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.cit-account-auth-links .cit-account-login-link,
.cit-account-login-form > .cit-account-login-link {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.cit-header-nav-row { position: relative; }
.cit-header-mega-host {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 55;
  background: #fff;
}
.cit-header-mega-host--legacy {
  position: fixed;
  left: 0;
  right: 0;
  top: auto;
  margin-top: 0;
}
.site-header--dcs .nav-produkter-knap,
.site-header--dcs .nav-pc-knap {
  color: #333 !important;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 12px 16px;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.site-header--dcs .nav-produkter-knap:hover,
.site-header--dcs .nav-pc-knap:hover,
.site-header--dcs .nav-produkter-knap[aria-expanded="true"],
.site-header--dcs .nav-pc-knap[aria-expanded="true"] {
  color: #1565c0 !important;
  border-bottom-color: #1565c0;
}
body.dark .cit-account-login-form input {
  background: #131f2c;
  border-color: #2a3a4a;
  color: #e3edf7;
}
.cit-account-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  border: none;
  background: transparent;
  color: #1565c0;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 11px 0;
  text-align: left;
  box-sizing: border-box;
}
.cit-account-logout:hover { text-decoration: underline; }

/* Wave410: AccountMenu icon aligns with shop chrome nav height */
.shop-chrome .shop-chrome-account {
  display: inline-flex;
  align-items: center;
  margin-left: 0.15rem;
}
.shop-chrome .cit-header-icon-btn {
  width: 36px;
  height: 36px;
}
.cit-account-theme { margin-top: auto; padding-top: 8px; border-top: 1px solid #eef2f7; }
.cit-account-theme-label { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: #888; margin-bottom: 8px; }
.cit-account-theme-btns { display: flex; gap: 4px; }
.cit-account-theme-btn {
  flex: 1; min-height: 36px; border: 1px solid #e0e6ef; border-radius: 6px;
  background: #fff; color: #444; font-size: 0.95rem; cursor: pointer; padding: 4px 6px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.cit-account-theme-btn:hover { border-color: #1565c0; background: #f8fafc; }
.cit-account-theme-btn--active { background: #f0f4f8; border-color: #c5d0de; box-shadow: inset 0 0 0 1px #d8dee8; }
.cit-account-theme-auto { font-size: 0.65rem; font-weight: 600; color: #666; }
.cit-account-panel-nav {
  flex: 1; min-width: 0; padding: 8px 0; display: flex; flex-direction: column;
}
.cit-account-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 18px; font-size: 0.88rem; color: #333; text-decoration: none;
  border: none; background: transparent; text-align: left; cursor: pointer;
  min-height: 44px; box-sizing: border-box;
}
.cit-account-nav-link:hover { background: #f8fafc; color: #1565c0; }
.cit-account-nav-icon { width: 20px; text-align: center; opacity: 0.65; font-size: 0.95rem; flex-shrink: 0; }

body.dark .cit-account-panel { background: #1a2535; border-color: #2a3a4a; }
body.dark .cit-account-panel-side { border-color: #2a3a4a; }
body.dark .cit-account-user-text strong { color: #e3edf7; }
body.dark .cit-account-user-text { color: #99b0c8; }
body.dark .cit-account-nav-link { color: #d0dce8; }
body.dark .cit-account-nav-link:hover { background: #131f2c; }
body.dark .cit-account-theme-btn { background: #131f2c; border-color: #2a3a4a; color: #d0dce8; }
body.dark .cit-account-theme { border-color: #2a3a4a; }

@media (max-width: 520px) {
  .cit-account-panel {
    flex-direction: column;
    min-width: min(300px, 92vw);
    max-width: min(100vw - 16px, 520px);
    max-height: min(90dvh, 720px);
    overflow-y: auto;
    right: max(0px, env(safe-area-inset-right));
  }
  .cit-account-panel-side { width: 100%; border-right: none; border-bottom: 1px solid #eef2f7; }
  .cit-account-logout {
    padding: 11px 0;
    font-size: 0.88rem;
    min-height: 44px;
  }
  .cit-account-nav-link { padding: 12px 16px; }
}

@media (min-width: 521px) {
  .cit-account-panel {
    min-width: min(520px, 92vw);
    max-height: min(85vh, 640px);
  }
}
