:root {
  --bg: #eaf4ff;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #dbe5ef;
  --text: #102033;
  --muted: #53657a;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #dbeafe;
  --accent: #10b981;
  --accent-dark: #059669;
  --accent-soft: #dcfce7;
  --warning: #d97706;
  --danger: #dc2626;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

* {
  letter-spacing: 0;
}

html {
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(120deg, rgba(47, 110, 219, 0.18), transparent 34%),
    linear-gradient(240deg, rgba(16, 185, 129, 0.14), transparent 38%),
    linear-gradient(180deg, #edf7ff 0%, #dfeeff 52%, #eef8ff 100%) !important;
  background-size: 180% 180%, 220% 220%, 100% 100%;
  animation: calmBlueDrift 28s ease-in-out infinite alternate;
  color: var(--text) !important;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
}

a,
button,
input,
select,
textarea,
td,
th,
p,
strong,
span {
  overflow-wrap: anywhere;
}

@keyframes calmBlueDrift {
  0% {
    background-position: 0% 8%, 100% 20%, center;
  }
  50% {
    background-position: 70% 42%, 28% 76%, center;
  }
  100% {
    background-position: 100% 18%, 0% 55%, center;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
}

nav,
.panel,
.auth-container,
.setup-container,
.card,
.feature-card,
#log-hours-section {
  background: var(--surface) !important;
  border: 1px solid var(--line);
  border-radius: 8px !important;
  box-shadow: 0 18px 42px rgba(16, 32, 51, 0.09) !important;
}

nav {
  border-left: 0;
  border-right: 0;
  border-top: 0;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06) !important;
}

.logo,
h1,
h2,
h3 {
  color: var(--text) !important;
}

.logo {
  color: var(--primary) !important;
}

p,
.account-info,
.field-help,
.empty {
  color: var(--muted) !important;
  line-height: 1.6;
}

.hero {
  background: #eaf4ff !important;
}

.btn-primary,
.btn-login,
.home-btn,
.button-link,
.admin-btn,
button {
  background: var(--primary) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 7px !important;
  font-weight: 800 !important;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover,
.btn-login:hover,
.home-btn:hover,
.button-link:hover,
.admin-btn:hover,
button:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.setup-btn {
  background: var(--primary) !important;
}

.setup-btn:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.approve-btn {
  background: var(--accent-dark) !important;
}

.approve-btn:hover {
  background: #047857 !important;
}

.setup-btn.active,
.button-link.active,
.secondary-btn.active {
  background: #1e40af !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45), 0 8px 18px rgba(30, 64, 175, 0.18) !important;
}

.logout-btn {
  background: #64748b !important;
}

.reject-btn {
  background: var(--danger) !important;
}

.danger-action,
.danger-btn {
  background: var(--danger) !important;
}

.role-switch-link {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: #0f766e !important;
  color: #ffffff !important;
  font-size: 1.35rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  border: 3px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22), 0 0 0 3px rgba(15, 118, 110, 0.18) !important;
  transform: none !important;
  gap: 6px;
  position: relative !important;
}

.role-switch-link:hover {
  background: #115e59 !important;
  transform: none !important;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.28), 0 0 0 4px rgba(15, 118, 110, 0.24) !important;
}

.role-switch-link::after {
  content: attr(title);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  width: 230px;
  transform: translateY(-50%);
  padding: 10px 12px;
  border-radius: 8px;
  background: #102033;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 60;
  white-space: normal;
}

.role-switch-link:hover::after,
.role-switch-link:focus-visible::after {
  opacity: 1;
}

button:disabled,
button:disabled:hover,
.save-btn:disabled,
.save-btn:disabled:hover {
  background: #94a3b8 !important;
  color: #ffffff !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  opacity: 0.85 !important;
}

.print-btn,
.export-btn,
.settings-btn {
  color: #ffffff !important;
}

input,
select,
textarea {
  background: #f9fbfd !important;
  border: 1px solid #b9c7d8 !important;
  border-radius: 7px !important;
  color: var(--text) !important;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  background: var(--surface) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.top-org-select {
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  min-height: 40px !important;
  margin-top: 0 !important;
  padding: 9px 12px !important;
  border: 2px solid #93c5fd !important;
  background: #f8fafc !important;
  color: var(--text) !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08) !important;
}

.org-id-copy-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.copyable-org-id {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 0;
  background: transparent !important;
  color: var(--primary) !important;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.copyable-org-id:hover,
.copyable-org-id:focus-visible {
  background: transparent !important;
  color: var(--primary-dark) !important;
  box-shadow: none !important;
  transform: none !important;
}

.org-id-popover {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 8px);
  z-index: 80;
  display: none;
  min-width: 0;
  padding: 6px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #64748b;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  transform: translateX(50%);
}

.org-id-popover.is-open {
  display: inline-flex;
}

.org-id-popover::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #64748b;
  border-right: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  transform: rotate(45deg);
  margin-left: -5px;
}

.org-id-popover-label {
  display: none;
}

.org-id-copy-button {
  min-height: 30px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 6px 10px !important;
  border-radius: 5px !important;
  background: #475569 !important;
  color: #ffffff !important;
  font-size: 0.86rem !important;
  white-space: nowrap;
}

.org-id-copy-button:hover {
  background: #334155 !important;
  transform: none !important;
  box-shadow: none !important;
}

label {
  color: #24364d !important;
  font-weight: 700;
}

table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  max-width: 100%;
}

th {
  background: var(--surface-soft) !important;
  color: #24364d;
}

td,
th {
  border-bottom: 1px solid #e8eef5 !important;
}

.feature-card {
  border: 1px solid #e2e8f0;
}

.feature-card:hover {
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.14) !important;
}

.icon-join,
.icon-workspace {
  background: var(--primary-soft) !important;
  color: var(--primary) !important;
}

.icon-hours {
  background: var(--accent-soft) !important;
  color: var(--accent-dark) !important;
}

.icon-create,
.icon-progress {
  background: #fef3c7 !important;
  color: var(--warning) !important;
}

.section-card {
  background: var(--surface-soft) !important;
  border: 1px solid var(--line) !important;
  border-left: 6px solid var(--primary) !important;
  width: 100% !important;
  box-shadow: none !important;
}

.section-card:hover {
  box-shadow: 0 14px 28px rgba(16, 32, 51, 0.1) !important;
}

.section-card.active {
  background: var(--primary-soft) !important;
  border-color: var(--primary) !important;
  color: var(--text) !important;
}

.section-card.add-card {
  background: #eff6ff !important;
  border-style: solid !important;
  border-left-style: solid !important;
  color: var(--primary) !important;
}

#add-section-card.section-card.add-card {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 38px !important;
  padding: 8px 12px !important;
  background: var(--primary) !important;
  border: 0 !important;
  border-left: 0 !important;
  border-radius: 7px !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

#add-section-card.section-card.add-card:hover {
  background: var(--primary-dark) !important;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.18) !important;
}

#add-section-card.section-card.add-card strong {
  color: #ffffff !important;
}

#add-section-card .add-org-info {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

.selected-section-info,
.hours-group {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
}

.hours-group-header {
  background: var(--surface-soft) !important;
  border-bottom: 1px solid var(--line) !important;
}

.hours-entry {
  border-bottom: 1px solid #eef2f7 !important;
}

.hours-total,
.hours-amount,
#total-approved,
.status-approved {
  color: #15803d !important;
}

.status-pending {
  color: var(--warning) !important;
}

.status-rejected {
  color: var(--danger) !important;
}

.auth-eyebrow,
.toggle-text span {
  color: var(--accent-dark) !important;
}

.avatar-preview svg,
.avatar svg {
  width: 56%;
  height: 56%;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.avatar-controls {
  display: grid;
  gap: 10px;
  min-width: min(100%, 320px);
}

.avatar-control-label {
  display: block;
  margin: 0 0 6px 0 !important;
  font-size: 0.84rem !important;
  color: #53657a !important;
  font-weight: 900 !important;
}

.icon-options,
.color-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.avatar-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.avatar-or,
.avatar-or-row {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 900;
}

.avatar-or-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -2px 0;
}

.avatar-or-row::before,
.avatar-or-row::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #dbe5ef;
}

.choose-icon-btn {
  background: #2563eb !important;
  width: auto !important;
  min-width: 160px;
  margin-top: 0 !important;
  border: 0;
  border-radius: 7px;
  color: #ffffff !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  padding: 13px 18px;
  text-align: center;
  text-decoration: none;
  user-select: none;
}

.choose-icon-btn:hover {
  background: #1d4ed8 !important;
}

.avatar-action-row input[type="file"] {
  width: min(100%, 310px) !important;
  margin-top: 0 !important;
}

.initials-color-options {
  margin-top: 2px;
}

.avatar-picker-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  z-index: 1000;
}

.avatar-picker-backdrop.open {
  display: block;
}

.avatar-picker-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(620px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  z-index: 1001;
}

.avatar-picker-modal.open {
  display: block;
}

.avatar-picker-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.avatar-picker-header h2 {
  margin: 0;
}

.avatar-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 12px;
}

.animal-avatar-choice {
  width: 58px !important;
  height: 58px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: var(--avatar-choice-bg, #2563eb) !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 0 0 1px #b9c7d8 !important;
  color: #ffffff !important;
  display: inline-grid !important;
  place-items: center !important;
  font-size: 1.7rem !important;
}

.animal-avatar-choice img {
  width: 76%;
  height: 76%;
  display: block;
}

.animal-avatar-choice:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 0 0 3px #93c5fd, 0 10px 22px rgba(15, 23, 42, 0.14) !important;
}

.animal-avatar-choice.selected {
  box-shadow: 0 0 0 4px #102033 !important;
}

.avatar-icon-emoji {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 1.65em;
  line-height: 1;
}

.avatar-icon-image {
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
}

.icon-choice,
.color-choice {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px;
  padding: 0 !important;
  margin-top: 0 !important;
  border-radius: 999px !important;
  background: var(--avatar-choice-bg, #ffffff) !important;
  color: var(--avatar-choice-color, #2563eb) !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 0 0 1px #b9c7d8 !important;
  display: inline-grid !important;
  place-items: center !important;
}

.icon-choice svg {
  width: 21px;
  height: 21px;
}

.icon-choice:hover,
.color-choice:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 0 0 2px #93c5fd, 0 8px 18px rgba(15, 23, 42, 0.12) !important;
}

.icon-choice.selected,
.color-choice.selected {
  box-shadow: 0 0 0 3px #102033 !important;
}

.field-helper {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.info-dot {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: help;
}

.info-dot::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: min(280px, 80vw);
  padding: 10px 12px;
  border-radius: 8px;
  background: #475569;
  color: #ffffff;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 30;
}

.info-dot:hover::after,
.info-dot:focus::after {
  opacity: 1;
}

.input-feedback {
  display: block;
  min-height: 18px;
  margin-top: 5px;
  font-size: 0.84rem;
  font-weight: 800;
}

.input-feedback.valid {
  color: #15803d !important;
}

.input-feedback.invalid {
  color: #dc2626 !important;
}

.forgot-password-btn {
  border: 1px solid #bfdbfe !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-radius: 999px !important;
  padding: 10px 14px !important;
}

.forgot-password-btn:hover {
  background: #dbeafe !important;
  color: #1e40af !important;
  text-decoration: none !important;
}

.crop-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  z-index: 100;
}

.crop-backdrop.open {
  display: block;
}

.crop-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(430px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  z-index: 101;
}

.crop-modal.open {
  display: block;
}

.crop-modal h2 {
  margin: 0 0 8px 0;
}

.crop-preview-wrap {
  display: grid;
  place-items: center;
  margin: 14px 0;
}

.crop-canvas {
  width: 220px;
  height: 220px;
  border-radius: 999px;
  border: 5px solid #e8f0fb;
  background: #e2e8f0;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 0 0 1px #93c5fd, 0 12px 28px rgba(15, 23, 42, 0.12);
}

.crop-canvas:active {
  cursor: grabbing;
}

.crop-controls {
  display: grid;
  gap: 10px;
}

.crop-controls label {
  margin-top: 0 !important;
}

.crop-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 18px;
}

footer {
  background: #102033 !important;
  color: #cbd5e1 !important;
}

@media (max-width: 760px) {
  body {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .container,
  .page-shell,
  .setup-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .panel,
  .auth-container,
  .setup-container,
  .card,
  .feature-card,
  #log-hours-section {
    padding: 18px !important;
  }

  .top-bar,
  nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .actions,
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links a,
  .btn-logout {
    margin-left: 0 !important;
  }

  .features {
    width: 100% !important;
    padding: 24px 0 !important;
    gap: 14px !important;
  }

  .feature-card {
    width: 100% !important;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  th,
  td {
    white-space: normal;
  }
}

/* Shared top navigation buttons */
.top-bar .actions,
nav .actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
  min-height: 44px !important;
}

.top-bar .actions a.setup-btn,
.top-bar .actions a.button-link,
.top-bar .actions a.secondary-btn,
nav .actions a.setup-btn,
nav .actions a.button-link,
nav .actions a.secondary-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 10px 16px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #2563eb !important;
  color: #ffffff !important;
  font-size: 1.08rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color 0.15s ease, color 0.15s ease !important;
  position: relative !important;
}

.top-bar .actions a.setup-btn:hover,
.top-bar .actions a.button-link:hover,
.top-bar .actions a.secondary-btn:hover,
nav .actions a.setup-btn:hover,
nav .actions a.button-link:hover,
nav .actions a.secondary-btn:hover {
  background: #1d4ed8 !important;
  transform: none !important;
  box-shadow: none !important;
}

.top-bar .actions a.setup-btn.active,
.top-bar .actions a.button-link.active,
.top-bar .actions a.secondary-btn.active,
nav .actions a.setup-btn.active,
nav .actions a.button-link.active,
nav .actions a.secondary-btn.active {
  background: #1e40af !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45) !important;
  transform: none !important;
}

.top-bar .actions a.has-alert::after,
nav .actions a.has-alert::after {
  content: "!";
  position: absolute;
  top: -7px;
  right: -7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.22);
}

@media (min-width: 761px) {
  body > .container {
    width: 100% !important;
    max-width: 1120px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .top-bar {
    display: grid !important;
    grid-template-columns: minmax(260px, 1fr) auto !important;
    align-items: start !important;
    gap: 20px !important;
    position: relative !important;
  }

  .top-bar .actions {
    width: auto !important;
    justify-self: end !important;
    align-self: start !important;
    flex: 0 0 auto !important;
  }

  .top-bar .actions a.setup-btn,
  .top-bar .actions a.button-link,
  .top-bar .actions a.secondary-btn {
    flex: 0 0 auto !important;
  }

  .top-bar .actions a.role-switch-link {
    position: fixed !important;
    top: 28px !important;
    left: 18px !important;
    z-index: 50 !important;
  }

  nav {
    position: relative !important;
  }

  nav .role-switch-link {
    position: fixed !important;
    left: 18px !important;
    top: 28px !important;
    z-index: 50 !important;
  }
}

@media (max-width: 760px) {
  .top-bar .actions,
  nav .actions {
    width: 100% !important;
    align-items: stretch !important;
    flex-direction: column !important;
    flex-wrap: wrap !important;
  }

  .top-bar .actions a.setup-btn,
  .top-bar .actions a.button-link,
  .top-bar .actions a.secondary-btn,
  nav .actions a.setup-btn,
  nav .actions a.button-link,
  nav .actions a.secondary-btn {
    width: 100% !important;
    min-height: 46px !important;
  }

  .top-bar .actions a.role-switch-link,
  nav .role-switch-link {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    align-self: flex-start !important;
  }

  .role-switch-link::after {
    left: 0;
    top: calc(100% + 10px);
    transform: none;
    width: min(260px, calc(100vw - 28px));
  }
}
