.navbar-desktop-popup {
  display: block;
  padding: 0.5rem;
}
.navbar-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.navbar-menu-grid[hidden],
.navbar-mobile-grid[hidden] {
  display: none;
}
.navbar-menu-link {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.navbar-menu-link:hover,
.navbar-menu-link:focus-visible {
  background: #f3f4f6cc;
  border-color: #e5e7eb;
}
.navbar-menu-link > svg,
.navbar-custom-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  color: var(--muted-foreground);
}
.navbar-custom-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.navbar-link-copy {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
  min-width: 0;
}
.navbar-link-copy strong {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
}
.navbar-link-copy > span {
  font-size: 0.75rem;
  line-height: 1.375;
  font-weight: 500;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.navbar-mobile-popup {
  display: block;
  width: auto;
  padding: 0;
  border-radius: 1.5rem;
  background: #f9fafb;
  border-color: #d1d5dbb3;
}
.navbar-mobile-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.navbar-highlighted {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding-bottom: 1rem;
}
.navbar-mobile-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 0.75rem;
  background: #f3f4f6;
  border: 1px solid #d1d5dbcc;
}
.navbar-mobile-card > span {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.25rem;
}
.navbar-mobile-card svg {
  width: 1.5rem;
  height: 1.5rem;
}
.navbar-mobile-card strong {
  font-size: 1rem;
}
.navbar-mobile-home,
.navbar-group-toggle {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
}
.navbar-group-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
  text-align: left;
}
.navbar-group-toggle svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
}
.navbar-group-toggle[aria-expanded='true'] svg {
  transform: rotate(180deg);
}
.navbar-mobile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
}
.navbar-mobile-grid .navbar-menu-link > svg,
.navbar-mobile-grid .navbar-custom-icon {
  width: 1.5rem;
  height: 1.5rem;
}
.navbar-mobile-grid .navbar-link-copy strong {
  font-size: 1rem;
}
.navbar-mobile-grid .navbar-link-copy > span {
  font-size: 0.875rem;
  font-weight: 400;
}
.navbar-mobile-home:hover,
.navbar-group-toggle:hover {
  background: #f3f4f6cc;
}
.navbar-profile-popup {
  width: min(18rem, calc(100vw - 2rem));
  padding: 0.75rem;
  gap: 0.25rem;
}
.navbar-profile-popup .navbar-profile-label {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
}
.navbar-profile-label strong,
.navbar-profile-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.navbar-profile-label strong {
  font-size: 0.875rem;
  font-weight: 600;
}
.navbar-profile-label span {
  font-size: 0.75rem;
  font-weight: 400;
}
.navbar-profile-popup .navbar-profile-link,
.navbar-debug-popup .navbar-profile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  min-height: 2.25rem;
  width: 100%;
  text-align: left;
}
.navbar-profile-link > svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.navbar-profile-link > span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  flex: 1;
}
.navbar-profile-link > span.navbar-feedback-dot {
  flex: 0 0 0.625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 100%;
  background: #ef4444;
}
.navbar-profile-popup hr {
  border: 0;
  border-top: 1px solid #d1d5db;
  margin: 0.625rem 0.5rem;
}
.navbar-profile-popup form {
  border: 0;
}
.navbar-admin-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
  padding: 0.25rem 0.8125rem;
  background: #fef3c7;
  color: #b45309;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.navbar-admin-label svg {
  width: 0.875rem;
  height: 0.875rem;
}
.navbar-profile-theme {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.75rem;
}
.navbar-profile-theme > svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.navbar-profile-theme > span {
  font-size: 0.875rem;
  font-weight: 500;
  flex: 1;
  color: var(--foreground);
}
.navbar-theme-options {
  display: flex;
  gap: 0.125rem;
}
.source-popup .navbar-theme-options button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.125rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
}
.navbar-theme-options svg {
  width: 1.125rem;
  height: 1.125rem;
}
.navbar-theme-options button[aria-pressed='true'] {
  background: #f3f4f6;
  border-color: #e5e7eb;
}
.navbar-theme-options .navbar-system-mobile {
  display: none !important;
}
.theme-popup {
  width: fit-content;
  padding: 0.5rem;
}
.navbar-logout,
.navbar-logout > span {
  color: #dc2626 !important;
}
.navbar-debug-popup {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(22.5rem, calc(100vw - 2rem));
  padding: 0.75rem;
  background: var(--background);
}
.navbar-debug-popup h3 {
  font-size: 1rem;
  padding: 0.375rem 0.75rem 0;
}
.navbar-debug-popup .navbar-debug-group {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.75rem 0.75rem 0.25rem;
}
.navbar-debug-group > span {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.navbar-debug-group strong {
  font-size: 1rem;
  color: var(--foreground);
}
.navbar-debug-group img {
  background: white;
  padding: 0.3125rem;
  border-radius: 100%;
}
.navbar-debug-popup p {
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0 0.75rem;
}
.navbar-debug-popup .navbar-debug-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.navbar-debug-contact svg {
  width: 1.25rem;
  height: 1.25rem;
}
.navbar-profile-link:focus-visible,
.navbar-menu-link:focus-visible,
.navbar-group-toggle:focus-visible {
  outline: 2px solid var(--ring, #60a5fa);
  outline-offset: 1px;
}
[data-theme='dark'] .navbar-menu-link:hover,
[data-theme='dark'] .navbar-menu-link:focus-visible {
  background: #44403c40;
  border-color: #44403c;
}
[data-theme='dark'] .navbar-mobile-popup {
  background: #292524;
  border-color: #44403c;
}
[data-theme='dark'] .navbar-mobile-card {
  background: #44403c;
  border-color: #57534e;
}
[data-theme='dark'] .navbar-mobile-home:hover,
[data-theme='dark'] .navbar-group-toggle:hover {
  background: #44403c80;
}
[data-theme='dark'] .navbar-theme-options button[aria-pressed='true'] {
  background: #44403c;
  border-color: transparent;
}
[data-theme='dark'] .navbar-admin-label {
  background: #78350f;
  color: #fcd34d;
}
[data-theme='dark'] .navbar-profile-popup hr {
  border-color: #44403c;
}
@media (min-width: 640px) {
  .navbar-mobile-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 768px) {
  .navbar-mobile-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 639px) {
  .navbar-theme-options .navbar-system-desktop {
    display: none !important;
  }
  .navbar-theme-options .navbar-system-mobile {
    display: flex !important;
  }
  .navbar-theme-options svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .navbar-mobile-popup {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .navbar-menu-link,
  .navbar-group-toggle svg {
    transition: none;
  }
}

.navbar-profile-link > .navbar-custom-icon {
  flex: 0 0 1.25rem;
}

.navbar-debug-mobile-title {
  display: none;
}
@media (max-width: 479px) {
  .navbar-profile-popup {
    width: calc(100vw - 2rem);
  }
}
@media (max-width: 639px) {
  .navbar-debug-desktop-title {
    display: none;
  }
  .navbar-debug-mobile-title {
    display: block;
  }
}

.navbar-profile-popup .navbar-profile-link,
.navbar-debug-popup .navbar-profile-link {
  flex-direction: row;
}
