:root {
  --admin-accent: #176b87;
  --admin-accent-strong: #0f4c6a;
  --admin-accent-soft: #e8f4f7;
  --admin-header-bg: rgba(255, 255, 255, 0.94);
  --admin-sidebar-bg: #ffffff;
  --admin-sidebar-tint: #f5f9fb;
  --admin-surface: #ffffff;
  --admin-surface-muted: #f4f7fa;
  --admin-border: #dce5eb;
  --admin-border-strong: #c9d6df;
  --admin-text: #172b3a;
  --admin-text-muted: #667b89;
  --admin-header-height: 4.5rem;
  --admin-sidebar-width: 17.5rem;
  --admin-shadow-sm: 0 1px 2px rgba(23, 43, 58, 0.04), 0 4px 14px rgba(23, 43, 58, 0.05);
  --admin-shadow-md: 0 16px 40px rgba(23, 43, 58, 0.14);
  --admin-shadow-card: 0 1px 2px rgba(23, 43, 58, 0.03), 0 10px 30px rgba(23, 43, 58, 0.065);
  --admin-radius-card: 1rem;
}

/* Shared visual language for authenticated page content. */
.admin-authenticated .admin-content-container {
  position: relative;
  min-height: calc(100vh - var(--admin-header-height));
  background:
    radial-gradient(circle at 96% 1%, rgba(23, 107, 135, 0.075), transparent 24rem),
    radial-gradient(circle at 8% 96%, rgba(37, 163, 111, 0.045), transparent 25rem);
}

.admin-authenticated #contentWrap {
  color: var(--admin-text);
  animation: admin-content-enter 240ms ease-out both;
}

@keyframes admin-content-enter {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-authenticated #contentWrap h1 {
  color: var(--admin-text);
  font-weight: 780;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.admin-authenticated #contentWrap h2,
.admin-authenticated #contentWrap h3 {
  color: var(--admin-text);
  letter-spacing: -0.012em;
}

.admin-authenticated #contentWrap > div > div:first-child h1,
.admin-authenticated #contentWrap > div > header:first-child h1 {
  position: relative;
  padding-left: 0.9rem;
}

.admin-authenticated #contentWrap > div > div:first-child h1::before,
.admin-authenticated #contentWrap > div > header:first-child h1::before {
  position: absolute;
  top: 0.12em;
  bottom: 0.12em;
  left: 0;
  width: 0.24rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--admin-accent), #25a36f);
  box-shadow: 0 0 0 4px rgba(23, 107, 135, 0.065);
  content: "";
}

.admin-authenticated #contentWrap :where(.bg-white.rounded, .bg-white.rounded-lg, .bg-white.rounded-xl, .bg-white.rounded-2xl, .rounded.bg-white, .rounded-lg.bg-white, .rounded-xl.bg-white, .rounded-2xl.bg-white) {
  border-color: var(--admin-border);
  box-shadow: var(--admin-shadow-card);
}

.admin-authenticated #contentWrap :where(.shadow, .shadow-sm) {
  box-shadow: var(--admin-shadow-card);
}

.admin-authenticated #contentWrap :where(.rounded.shadow, .rounded-lg.shadow, .rounded-xl.shadow, .rounded-2xl.shadow, .rounded.shadow-sm, .rounded-lg.shadow-sm, .rounded-xl.shadow-sm, .rounded-2xl.shadow-sm) {
  border: 1px solid var(--admin-border);
}

.admin-authenticated #contentWrap form.bg-white,
.admin-authenticated #contentWrap section.bg-white,
.admin-authenticated #contentWrap article.bg-white {
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-card);
}

.admin-authenticated #contentWrap table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--admin-text);
}

.admin-authenticated #contentWrap thead {
  background: linear-gradient(180deg, #f8fafc 0%, #f2f6f8 100%);
}

.admin-authenticated #contentWrap thead th {
  border-bottom: 1px solid var(--admin-border-strong);
  color: #526979;
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.admin-authenticated #contentWrap tbody td {
  border-bottom-color: var(--admin-border);
  transition: background-color 140ms ease;
}

.admin-authenticated #contentWrap tbody tr:last-child td {
  border-bottom: 0;
}

.admin-authenticated #contentWrap tbody tr:hover > td {
  background-color: rgba(23, 107, 135, 0.035);
}

.admin-authenticated #contentWrap :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  min-height: 2.6rem;
  border-color: var(--admin-border-strong);
  border-radius: 0.72rem;
  background-color: var(--admin-surface);
  color: var(--admin-text);
  box-shadow: inset 0 1px 2px rgba(23, 43, 58, 0.025);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.admin-authenticated #contentWrap textarea {
  min-height: 5.5rem;
}

.admin-authenticated #contentWrap :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus {
  border-color: var(--admin-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.12);
}

.admin-authenticated #contentWrap :where(input, textarea)::placeholder {
  color: var(--admin-text-muted);
  opacity: 0.7;
}

.admin-authenticated #contentWrap input[type="checkbox"],
.admin-authenticated #contentWrap input[type="radio"] {
  border-color: var(--admin-border-strong);
  color: var(--admin-accent);
  accent-color: var(--admin-accent);
}

.admin-authenticated #contentWrap label {
  color: var(--admin-text-muted);
}

.admin-authenticated #contentWrap label.block,
.admin-authenticated #contentWrap label.font-medium,
.admin-authenticated #contentWrap label.font-semibold {
  font-weight: 680;
}

.admin-authenticated #contentWrap :where(button, a).border {
  border-color: var(--admin-border-strong);
  box-shadow: 0 1px 2px rgba(23, 43, 58, 0.035);
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.admin-authenticated #contentWrap :where(button, a).border:hover {
  border-color: color-mix(in srgb, var(--admin-accent) 52%, var(--admin-border));
  box-shadow: 0 5px 14px rgba(23, 43, 58, 0.08);
}

.admin-authenticated #contentWrap :where(button, a):focus-visible {
  outline: 3px solid rgba(23, 107, 135, 0.2);
  outline-offset: 2px;
}

.admin-authenticated #contentWrap :where(button, a).bg-blue-600,
.admin-authenticated #contentWrap :where(button, a).bg-indigo-600,
.admin-authenticated #contentWrap :where(button, a).bg-sky-600 {
  border-color: transparent;
  background-image: linear-gradient(135deg, #187596, #11536f);
  box-shadow: 0 8px 20px rgba(23, 107, 135, 0.2);
}

.admin-authenticated #contentWrap :where(button, a).bg-blue-600:hover,
.admin-authenticated #contentWrap :where(button, a).bg-indigo-600:hover,
.admin-authenticated #contentWrap :where(button, a).bg-sky-600:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.admin-authenticated #contentWrap :where(.bg-gray-50, .bg-slate-50) {
  border-color: var(--admin-border);
}

.admin-authenticated #contentWrap .overflow-x-auto {
  scrollbar-color: var(--admin-border-strong) transparent;
  scrollbar-width: thin;
}

.admin-authenticated #contentWrap .overflow-x-auto::-webkit-scrollbar {
  height: 7px;
}

.admin-authenticated #contentWrap .overflow-x-auto::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--admin-border-strong);
}

[data-theme="dark"] .admin-authenticated #contentWrap thead {
  background: linear-gradient(180deg, #162235 0%, #111b2c 100%);
}

[data-theme="dark"] .admin-authenticated #contentWrap thead th {
  color: #aec0cf;
}

[data-theme="dark"] .admin-authenticated #contentWrap tbody tr:hover > td {
  background-color: rgba(99, 196, 220, 0.055);
}

@media (prefers-color-scheme: dark) {
  [data-theme="system"] .admin-authenticated #contentWrap thead {
    background: linear-gradient(180deg, #162235 0%, #111b2c 100%);
  }
  [data-theme="system"] .admin-authenticated #contentWrap thead th { color: #aec0cf; }
  [data-theme="system"] .admin-authenticated #contentWrap tbody tr:hover > td { background-color: rgba(99, 196, 220, 0.055); }
}

@media (max-width: 767px) {
  .admin-authenticated .admin-content-container { padding: 1rem !important; }
  .admin-authenticated #contentWrap h1 { font-size: 1.45rem; }
  .admin-authenticated #contentWrap > div > div:first-child:has(h1) { gap: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-authenticated #contentWrap { animation: none; }
  .admin-authenticated #contentWrap * { scroll-behavior: auto !important; }
}

[data-theme="dark"] {
  --admin-accent: #63c4dc;
  --admin-accent-strong: #9adced;
  --admin-accent-soft: rgba(38, 126, 151, 0.22);
  --admin-header-bg: rgba(11, 18, 32, 0.94);
  --admin-sidebar-bg: #0b1220;
  --admin-sidebar-tint: #0f1929;
  --admin-surface: #111b2c;
  --admin-surface-muted: #162235;
  --admin-border: #26364b;
  --admin-border-strong: #34465d;
  --admin-text: #e7eef5;
  --admin-text-muted: #9fb0c3;
  --admin-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.18), 0 4px 14px rgba(0, 0, 0, 0.14);
  --admin-shadow-md: 0 18px 46px rgba(0, 0, 0, 0.34);
  --admin-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.16), 0 12px 34px rgba(0, 0, 0, 0.2);
}

@media (prefers-color-scheme: dark) {
  [data-theme="system"] {
    --admin-accent: #63c4dc;
    --admin-accent-strong: #9adced;
    --admin-accent-soft: rgba(38, 126, 151, 0.22);
    --admin-header-bg: rgba(11, 18, 32, 0.94);
    --admin-sidebar-bg: #0b1220;
    --admin-sidebar-tint: #0f1929;
    --admin-surface: #111b2c;
    --admin-surface-muted: #162235;
    --admin-border: #26364b;
    --admin-border-strong: #34465d;
    --admin-text: #e7eef5;
    --admin-text-muted: #9fb0c3;
    --admin-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.18), 0 4px 14px rgba(0, 0, 0, 0.14);
    --admin-shadow-md: 0 18px 46px rgba(0, 0, 0, 0.34);
    --admin-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.16), 0 12px 34px rgba(0, 0, 0, 0.2);
  }
}

body.admin-shell {
  background:
    radial-gradient(circle at 88% 2%, rgba(23, 107, 135, 0.07), transparent 28rem),
    #f4f7fa;
  color: var(--admin-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--admin-header-height);
  border-bottom: 1px solid var(--admin-border);
  background: var(--admin-header-bg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 26px rgba(23, 43, 58, 0.05);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 1.25rem;
  gap: 1rem;
}

.admin-header-start,
.admin-header-actions,
.admin-brand,
.admin-account-button,
.admin-theme-button {
  display: flex;
  align-items: center;
}

.admin-header-start,
.admin-header-actions {
  min-width: 0;
  gap: 0.65rem;
}

.admin-brand {
  min-width: 0;
  gap: 0.75rem;
  color: var(--admin-text);
  text-decoration: none;
}

.admin-brand:hover .admin-brand-title {
  color: var(--admin-accent-strong);
}

.admin-brand-mark {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0.8rem;
  background: linear-gradient(145deg, #176b87, #0e4d67);
  box-shadow: 0 7px 18px rgba(15, 76, 106, 0.2);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.admin-brand-mark img {
  width: 100%;
  height: 100%;
  padding: 0.28rem;
  object-fit: contain;
  background: #fff;
}

.admin-brand-copy {
  min-width: 0;
  line-height: 1.1;
}

.admin-brand-eyebrow {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--admin-text-muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-brand-title {
  display: block;
  max-width: 18rem;
  overflow: hidden;
  color: var(--admin-text);
  font-size: 0.94rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 160ms ease;
}

.admin-header .admin-icon-button,
.admin-header .admin-theme-button,
.admin-header .admin-account-button {
  min-height: 2.55rem;
  border: 1px solid var(--admin-border);
  border-radius: 0.75rem;
  background: var(--admin-surface);
  color: var(--admin-text-muted);
  box-shadow: 0 1px 2px rgba(23, 43, 58, 0.02);
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.admin-header .admin-icon-button {
  position: relative;
  display: inline-grid;
  width: 2.55rem;
  place-items: center;
  padding: 0;
}

.admin-header .admin-icon-button:hover,
.admin-header .admin-theme-button:hover,
.admin-header .admin-account-button:hover {
  border-color: var(--admin-border-strong);
  background: var(--admin-surface-muted);
  color: var(--admin-accent-strong);
  box-shadow: var(--admin-shadow-sm);
}

.admin-header .admin-icon-button:active,
.admin-header .admin-account-button:active {
  transform: translateY(1px);
}

.admin-header .admin-icon-button:focus-visible,
.admin-header .admin-account-button:focus-visible,
.admin-header .admin-theme-button:focus-visible,
.admin-sidebar .admin-search-input:focus,
.admin-sidebar .admin-nav-item:focus-visible,
.admin-mobile-sidebar .admin-search-input:focus,
.admin-mobile-sidebar .admin-nav-item:focus-visible {
  outline: 3px solid rgba(23, 107, 135, 0.18);
  outline-offset: 2px;
}

.admin-notification-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border: 2px solid var(--admin-header-bg);
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 0.95rem;
  text-align: center;
}

.admin-theme-button {
  gap: 0.5rem;
  min-width: 7.4rem;
  justify-content: center;
  padding: 0 0.65rem;
}

.admin-theme-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.admin-theme-label {
  min-width: 3.4rem;
  color: var(--admin-text);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: left;
}

.admin-theme-chevron {
  width: 0.8rem;
  height: 0.8rem;
  flex: 0 0 auto;
  opacity: 0.55;
  transition: transform 160ms ease;
}

.admin-theme-button[aria-expanded="true"] .admin-theme-chevron {
  transform: rotate(180deg);
}

.admin-theme-menu {
  width: 15rem;
  padding: 0.4rem;
}

.admin-header .admin-theme-menu button {
  display: grid;
  width: 100%;
  min-height: 3.2rem;
  grid-template-columns: 2rem minmax(0, 1fr) 1rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.55rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--admin-text);
  text-align: left;
  transition: background 140ms ease, color 140ms ease;
}

.admin-header .admin-theme-menu button:hover,
.admin-header .admin-theme-menu button[aria-checked="true"] {
  background: var(--admin-accent-soft);
  color: var(--admin-accent-strong);
}

.admin-theme-option-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--admin-border);
  border-radius: 0.55rem;
  background: var(--admin-surface);
  color: currentColor;
}

.admin-theme-option-icon svg {
  width: 1rem;
  height: 1rem;
}

.admin-theme-menu strong,
.admin-theme-menu small {
  display: block;
}

.admin-theme-menu strong {
  font-size: 0.74rem;
  font-weight: 750;
}

.admin-theme-menu small {
  margin-top: 0.15rem;
  color: var(--admin-text-muted);
  font-size: 0.62rem;
}

.admin-theme-check {
  width: 0.9rem;
  height: 0.9rem;
  opacity: 0;
}

.admin-theme-menu button[aria-checked="true"] .admin-theme-check {
  opacity: 1;
}

.admin-account-button {
  gap: 0.62rem;
  padding: 0.28rem 0.65rem 0.28rem 0.32rem;
  text-align: left;
}

.admin-user-avatar {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.6rem;
  background: linear-gradient(145deg, var(--admin-accent), var(--admin-accent-strong));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.admin-user-copy {
  min-width: 0;
  line-height: 1.1;
}

.admin-user-name,
.admin-user-role {
  display: block;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-name {
  color: var(--admin-text);
  font-size: 0.77rem;
  font-weight: 700;
}

.admin-user-role {
  margin-top: 0.17rem;
  color: var(--admin-text-muted);
  font-size: 0.63rem;
}

.admin-header .admin-dropdown {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  overflow: hidden;
  border: 1px solid var(--admin-border);
  border-radius: 0.9rem;
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow-md);
  color: var(--admin-text);
}

.admin-user-menu {
  width: 13rem;
  padding: 0.4rem;
}

.admin-user-menu a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.68rem 0.75rem;
  border-radius: 0.62rem;
  color: var(--admin-text);
  font-size: 0.78rem;
  font-weight: 600;
}

.admin-user-menu a:hover {
  background: var(--admin-surface-muted);
  color: var(--admin-accent-strong);
}

.admin-user-menu a.admin-logout-link {
  color: #c83e43;
}

.admin-notification-dropdown {
  width: min(22rem, calc(100vw - 2rem));
}

.admin-notification-dropdown .bg-gray-50 {
  background: var(--admin-surface-muted);
}

.admin-main-layout {
  min-height: calc(100vh - var(--admin-header-height));
}

.admin-sidebar {
  width: var(--admin-sidebar-width) !important;
  height: calc(100vh - var(--admin-header-height));
  top: var(--admin-header-height) !important;
  border-right: 1px solid var(--admin-border);
  background: linear-gradient(180deg, var(--admin-sidebar-bg) 0%, var(--admin-sidebar-tint) 100%);
}

.admin-sidebar-inner {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  padding: 1rem 0.8rem 0.8rem;
}

.admin-sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0.25rem 0.7rem;
  color: var(--admin-text-muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-sidebar-context {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.45rem;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  background: var(--admin-surface);
  color: var(--admin-text-muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.admin-sidebar-context::before {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: #25a36f;
  box-shadow: 0 0 0 3px rgba(37, 163, 111, 0.12);
  content: "";
}

.admin-search {
  position: relative;
  margin-bottom: 0.7rem;
}

.admin-search svg {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  width: 0.95rem;
  height: 0.95rem;
  color: var(--admin-text-muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.admin-sidebar .admin-search-input,
.admin-mobile-sidebar .admin-search-input {
  width: 100%;
  height: 2.55rem;
  padding: 0 0.75rem 0 2.25rem;
  border: 1px solid var(--admin-border);
  border-radius: 0.72rem;
  background: var(--admin-surface);
  color: var(--admin-text);
  font-size: 0.76rem;
  box-shadow: inset 0 1px 2px rgba(23, 43, 58, 0.02);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.admin-search-input::placeholder {
  color: var(--admin-text-muted);
  opacity: 0.82;
}

.admin-sidebar .admin-search-input:focus,
.admin-mobile-sidebar .admin-search-input:focus {
  border-color: var(--admin-accent);
  background: var(--admin-surface);
  box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.1);
}

.admin-sidebar-nav {
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.05rem 0.15rem 1rem 0;
  scrollbar-color: var(--admin-border-strong) transparent;
  scrollbar-width: thin;
}

.admin-sidebar-nav::-webkit-scrollbar {
  width: 5px;
}

.admin-sidebar-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--admin-border-strong);
}

.admin-sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.admin-sidebar [hidden],
.admin-mobile-sidebar [hidden] {
  display: none !important;
}

.admin-nav-group + .admin-nav-group,
.admin-nav-group + .admin-nav-item,
.admin-nav-item + .admin-nav-group,
.admin-nav-item + .admin-nav-item {
  margin-top: 0.2rem;
}

.admin-sidebar .admin-nav-item,
.admin-mobile-sidebar .admin-nav-item {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 2.65rem;
  align-items: center;
  gap: 0.58rem;
  padding: 0.36rem 0.48rem;
  border: 1px solid transparent;
  border-radius: 0.62rem;
  background: transparent;
  color: var(--admin-text-muted);
  font-size: 0.76rem;
  font-weight: 590;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.admin-sidebar .admin-nav-item:hover,
.admin-mobile-sidebar .admin-nav-item:hover {
  border-color: var(--admin-border);
  background: var(--admin-surface);
  color: var(--admin-text);
}

.admin-sidebar .admin-nav-item.is-active,
.admin-mobile-sidebar .admin-nav-item.is-active {
  border-color: rgba(23, 107, 135, 0.14);
  background: var(--admin-accent-soft);
  color: var(--admin-accent-strong);
  font-weight: 720;
}

.admin-sidebar a.admin-nav-item.is-active::before,
.admin-mobile-sidebar a.admin-nav-item.is-active::before {
  position: absolute;
  top: 0.55rem;
  bottom: 0.55rem;
  left: -0.16rem;
  width: 0.18rem;
  border-radius: 999px;
  background: var(--admin-accent);
  content: "";
}

.admin-nav-icon {
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(23, 107, 135, 0.08);
  border-radius: 0.55rem;
  background: rgba(23, 107, 135, 0.07);
  color: var(--admin-accent-strong);
}

.admin-nav-icon svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 1.8;
}

.admin-nav-icon svg:not([fill="none"]) {
  fill: currentColor;
}

.admin-nav-icon svg[fill="none"] {
  fill: none;
}

.admin-nav-icon svg [fill]:not([fill="none"]),
.admin-nav-icon svg [style*="fill"] {
  fill: currentColor !important;
}

.admin-nav-icon svg [stroke]:not([stroke="none"]),
.admin-nav-icon svg [style*="stroke"] {
  stroke: currentColor !important;
}

.admin-nav-item.is-active .admin-nav-icon {
  border-color: rgba(23, 107, 135, 0.16);
  background: rgba(23, 107, 135, 0.13);
}

.admin-nav-fallback-icon {
  width: 0.9rem !important;
  height: 0.9rem !important;
  opacity: 0.78;
}

.admin-nav-label {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}

.admin-nav-chevron {
  width: 0.85rem;
  height: 0.85rem;
  flex: 0 0 auto;
  opacity: 0.65;
  transition: transform 180ms ease;
}

.admin-nav-children {
  margin: 0.22rem 0 0.3rem 0.72rem;
  padding-left: 0.62rem;
  border-left: 1px solid var(--admin-border);
}

.admin-nav-children .admin-nav-item {
  min-height: 2.1rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  font-size: 0.72rem;
}

.admin-nav-children .admin-nav-icon {
  width: 1.45rem;
  height: 1.45rem;
  border-color: transparent;
  background: transparent;
}

.admin-nav-children .admin-nav-icon svg {
  width: 0.8rem;
  height: 0.8rem;
}

.admin-nav-empty {
  margin: 1rem 0.35rem;
  padding: 0.85rem;
  border: 1px dashed var(--admin-border-strong);
  border-radius: 0.7rem;
  color: var(--admin-text-muted);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
}

.admin-sidebar-footer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
  padding: 0.72rem 0.65rem;
  border-top: 1px solid var(--admin-border);
  color: var(--admin-text-muted);
  font-size: 0.67rem;
  line-height: 1.3;
}

.admin-sidebar-footer-icon {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.52rem;
  background: var(--admin-accent-soft);
  color: var(--admin-accent-strong);
}

.admin-sidebar-footer strong {
  color: var(--admin-text);
  font-weight: 700;
}

.admin-overlay {
  z-index: 70 !important;
  background: rgba(11, 18, 32, 0.48);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.admin-mobile-sidebar {
  z-index: 80 !important;
  width: min(21rem, 88vw);
  border-right: 1px solid var(--admin-border);
  background: linear-gradient(180deg, var(--admin-sidebar-bg), var(--admin-sidebar-tint));
  box-shadow: 24px 0 60px rgba(11, 18, 32, 0.24);
  color: var(--admin-text);
}

.admin-mobile-sidebar-header {
  display: flex;
  min-height: var(--admin-header-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 0.85rem 0 1rem;
  border-bottom: 1px solid var(--admin-border);
}

.admin-mobile-sidebar-title {
  color: var(--admin-text);
  font-size: 0.82rem;
  font-weight: 750;
}

.admin-mobile-sidebar-subtitle {
  display: block;
  margin-top: 0.12rem;
  color: var(--admin-text-muted);
  font-size: 0.62rem;
  font-weight: 500;
}

.admin-mobile-sidebar .admin-mobile-close {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 1px solid var(--admin-border);
  border-radius: 0.7rem;
  background: var(--admin-surface);
  color: var(--admin-text-muted);
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.admin-mobile-sidebar .admin-mobile-close:hover {
  border-color: var(--admin-border-strong);
  background: var(--admin-surface-muted);
  color: var(--admin-text);
}

.admin-mobile-sidebar-body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 0.85rem;
}

@media (max-width: 1023px) {
  .admin-user-role,
  .admin-brand-eyebrow {
    display: none;
  }

  .admin-user-name {
    max-width: 6.5rem;
  }
}

@media (max-width: 767px) {
  :root {
    --admin-header-height: 4rem;
  }

  .admin-header-inner {
    padding: 0 0.75rem;
  }

  .admin-header-start,
  .admin-header-actions {
    gap: 0.4rem;
  }

  .admin-brand-mark {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.7rem;
  }

  .admin-brand-title {
    max-width: 9.25rem;
    font-size: 0.82rem;
  }

  .admin-user-copy,
  .admin-account-chevron,
  .admin-theme-label,
  .admin-theme-chevron {
    display: none;
  }

  .admin-header .admin-account-button {
    width: 2.55rem;
    justify-content: center;
    padding: 0;
  }

  .admin-theme-button {
    min-width: 2.55rem;
    width: 2.55rem;
    padding: 0;
  }
}

@media (max-width: 479px) {
  .admin-brand-copy,
  .admin-theme-wrap {
    display: none;
  }
}
