/* Admin sidebar nav layout — shared across all admin pages */

.admin-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top right, rgba(255, 226, 187, 0.16), transparent 28%),
    linear-gradient(180deg, #6b3118 0%, #9f5526 52%, #d18c47 100%);
  color: #fff;
}

.admin-brand {
  padding: 0 18px 18px;
  border-bottom: 1px solid rgba(255, 245, 232, 0.14);
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  flex-shrink: 0;
}

.admin-brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  margin-top: 3px;
  color: rgba(255, 245, 233, 0.72);
}

.admin-nav {
  flex: 1;
  padding: 4px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255, 245, 233, 0.86);
  font-size: 13px;
  font-weight: 700;
  transition: background 160ms, color 160ms;
}

.admin-nav-item:hover {
  background: rgba(255, 248, 239, 0.12);
  color: #fff;
}

.admin-nav-item.active {
  background: rgba(255, 250, 244, 0.18);
  color: #fff;
}

.admin-nav-sub {
  padding-left: 12px;
}

.admin-nav-sub .admin-nav-item {
  font-size: 12px;
  padding: 8px 12px;
  font-weight: 600;
}

.admin-nav-wip {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 245, 232, 0.14);
  border: 1px solid rgba(255, 244, 232, 0.16);
  color: rgba(255, 244, 232, 0.76);
  flex-shrink: 0;
}

.admin-sidebar-foot {
  padding: 14px 10px 0;
  border-top: 1px solid rgba(110, 66, 38, 0.10);
  margin-top: 8px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-sidebar-user {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 248, 239, 0.12);
}

.admin-sidebar-user-label {
  font-size: 11px;
  color: rgba(255, 245, 233, 0.72);
  margin-bottom: 4px;
}

.admin-sidebar-user-name {
  font-size: 14px;
  font-weight: 800;
}

.admin-sidebar-logout {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 244, 232, 0.16);
  background: transparent;
  color: rgba(255, 245, 233, 0.82);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background 160ms, color 160ms;
}

.admin-sidebar-logout:hover {
  background: rgba(255, 248, 239, 0.14);
  color: #fff;
}

.admin-sidebar-security {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 245, 233, 0.72);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background 160ms, color 160ms;
}

.admin-sidebar-security:hover,
.admin-sidebar-security.active {
  background: rgba(255, 248, 239, 0.12);
  color: #fff;
}

.admin-main {
  min-width: 0;
}

@media (max-width: 960px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    padding: 12px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .admin-brand {
    padding: 0;
    border-bottom: 0;
    margin-bottom: 0;
  }

  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    flex: none;
  }

  .admin-nav-item {
    padding: 7px 10px;
    font-size: 12px;
  }

  .admin-sidebar-foot {
    padding: 0;
    border-top: 0;
    margin-top: 0;
    margin-left: auto;
    flex-direction: row;
    align-items: center;
  }

  .admin-sidebar-user {
    display: none;
  }

  .admin-sidebar-security {
    display: none;
  }
}

/* Admin visual polish layer — keep pages visually cohesive without changing page logic. */
:root {
  --admin-bg: #f6ede7;
  --admin-ink: #392315;
  --admin-muted: #8b6a56;
  --admin-line: rgba(110, 66, 38, 0.13);
  --admin-panel: rgba(255, 250, 245, 0.88);
  --admin-card: rgba(255, 253, 249, 0.94);
  --admin-brand: #c77434;
  --admin-brand-deep: #8f461f;
  --admin-brand-soft: rgba(199, 116, 52, 0.12);
  --admin-shadow-sm: 0 10px 24px rgba(91, 53, 28, 0.06);
  --admin-shadow: 0 20px 42px rgba(91, 53, 28, 0.10);
  --admin-radius-lg: 24px;
  --admin-radius-md: 16px;
}

html {
  background: var(--admin-bg);
}

body {
  color: var(--admin-ink) !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(237, 182, 118, 0.18), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(255, 223, 183, 0.52), transparent 30%),
    linear-gradient(180deg, #fffaf6 0%, #f7eee4 48%, #f3e7db 100%) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.admin-shell {
  grid-template-columns: 224px minmax(0, 1fr);
  background: #f7f1ea;
}

.admin-sidebar {
  padding: 16px 12px;
  background: rgba(255, 250, 244, 0.94);
  color: var(--admin-ink);
  border-right: 1px solid rgba(110, 66, 38, 0.12);
  box-shadow: none;
}

.admin-brand {
  position: relative;
  margin: 0 4px 12px;
  padding: 12px 10px 15px 44px;
  border-bottom: 1px solid rgba(110, 66, 38, 0.10);
  letter-spacing: 0.02em;
  color: var(--admin-ink);
}

.admin-brand small {
  color: var(--admin-muted);
}

.admin-brand::before {
  content: "音";
  position: absolute;
  left: 0;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff5e8 0%, #ffd49b 100%);
  color: #8a431e;
  box-shadow: 0 10px 22px rgba(64, 30, 13, 0.18);
  font-size: 14px;
  font-weight: 900;
}

.admin-nav {
  gap: 4px;
}

.admin-nav-section {
  display: grid;
  gap: 3px;
}

.admin-nav-title {
  margin: 12px 10px 4px;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 800;
}

.admin-nav-item {
  position: relative;
  justify-content: flex-start;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  color: #5c3a27;
  letter-spacing: 0.01em;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.admin-nav-item::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(141, 84, 44, 0.28);
  box-shadow: none;
  flex: 0 0 auto;
}

.admin-nav-item:hover {
  transform: translateX(2px);
  background: rgba(199, 116, 52, 0.09);
  color: #8f461f;
}

.admin-nav-item.active {
  background: rgba(199, 116, 52, 0.13);
  color: #8f461f;
  box-shadow: inset 3px 0 0 #c77434;
}

.admin-nav-item.active::before {
  background: #c77434;
  box-shadow: none;
}

.admin-nav-sub {
  padding-left: 12px;
}

.admin-nav-sub .admin-nav-item {
  min-height: 32px;
  padding: 6px 10px;
  color: #73513c;
  font-size: 12px;
  font-weight: 700;
}

.admin-nav-wip {
  margin-left: auto;
}

.admin-sidebar-user,
.admin-sidebar-logout,
.admin-sidebar-security {
  border-radius: 10px;
}

.admin-sidebar-user {
  background: rgba(199, 116, 52, 0.08);
}

.admin-sidebar-user-label {
  color: var(--admin-muted);
}

.admin-sidebar-logout {
  border-color: rgba(110, 66, 38, 0.12);
  color: #7b553f;
}

.admin-sidebar-security {
  color: var(--admin-muted);
}

.admin-sidebar-security:hover,
.admin-sidebar-security.active {
  background: rgba(199, 116, 52, 0.09);
  color: var(--admin-brand-deep);
}

.admin-main {
  min-height: 100vh;
  padding: 0;
  background: #f7f1ea;
}

.wrap,
.page,
.dash-wrap {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 18px 20px 42px !important;
}

.topbar,
.dash-header {
  position: relative;
  padding: 4px 0 16px;
  margin-bottom: 12px !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.crumb,
.eyebrow,
.dash-subtitle,
.desc,
.sub,
.metric span,
.metric-label,
.metric-sub,
.todo-item-sub,
.info span,
.panel p,
.alert-card p,
.city-meta,
.hint,
.empty,
.status-line,
.status {
  color: var(--admin-muted) !important;
}

h1,
.dash-title {
  letter-spacing: -0.03em;
}

.metric,
.metric-card,
.todo-panel,
.student-card,
.teacher-card,
.order-card,
.card,
.panel,
.alert-card,
.city-card,
.info,
.table-wrap {
  border-color: var(--admin-line) !important;
  border-radius: 12px !important;
  background: var(--admin-card) !important;
  box-shadow: var(--admin-shadow-sm) !important;
}

.metric,
.metric-card,
.alert-card,
.student-card,
.teacher-card,
.order-card,
.todo-item,
.btn,
.btn-link,
button,
a {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.metric:hover,
.metric-card:hover,
.alert-card:hover,
.student-card:hover,
.teacher-card:hover,
.order-card:hover,
.todo-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--admin-shadow) !important;
  border-color: rgba(199, 116, 52, 0.24) !important;
}

.teacher-card.active,
.order-card.active {
  border-color: rgba(199, 116, 52, 0.48) !important;
  box-shadow: 0 0 0 4px rgba(199, 116, 52, 0.10), var(--admin-shadow-sm) !important;
}

.metric strong,
.metric-value,
.info strong,
.name,
.city-name,
.alert-title {
  letter-spacing: -0.02em;
}

.btn,
.btn-link,
button,
.input,
.select,
textarea,
td input,
td select {
  border-radius: 10px !important;
}

.input,
.select,
textarea,
td input,
td select {
  border-color: var(--admin-line) !important;
  background: rgba(255, 253, 249, 0.94) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.input:focus,
.select:focus,
textarea:focus,
td input:focus,
td select:focus {
  outline: none !important;
  border-color: rgba(199, 116, 52, 0.46) !important;
  box-shadow: 0 0 0 4px rgba(199, 116, 52, 0.12) !important;
}

.btn.primary,
.btn-primary,
.btn.btn-primary,
button#saveBtn {
  background: linear-gradient(135deg, var(--admin-brand-deep) 0%, #d58a45 100%) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(154, 83, 37, 0.18);
}

.btn:hover,
.btn-link:hover,
button:hover {
  transform: translateY(-1px);
}

.pill,
.badge,
.todo-badge,
.point {
  border-radius: 999px !important;
}

table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

th {
  background: rgba(154, 83, 37, 0.07) !important;
  color: var(--admin-muted) !important;
}

td,
th {
  border-color: var(--admin-line) !important;
}

tr:hover td {
  background: rgba(199, 116, 52, 0.045) !important;
}

.modal-bg {
  backdrop-filter: blur(8px);
}

.modal {
  border: 1px solid rgba(255, 244, 232, 0.80) !important;
  border-radius: 26px !important;
  background: rgba(255, 253, 249, 0.98) !important;
}

@media (max-width: 960px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    padding: 12px;
    box-shadow: 0 14px 34px rgba(86, 48, 25, 0.10);
  }

  .admin-brand {
    padding: 0 0 0 44px;
    min-height: 38px;
    display: grid;
    align-content: center;
    margin: 0 4px 0 0;
  }

  .admin-brand::before {
    top: 1px;
  }

  .admin-nav {
    width: 100%;
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .admin-nav-title {
    display: none;
  }

  .admin-nav-sub {
    display: grid;
    padding-left: 0;
    gap: 6px;
  }

  .admin-nav-item {
    justify-content: center;
    min-height: 38px;
    padding: 8px 6px;
    font-size: 12px;
    white-space: nowrap;
  }

  .admin-nav-item::before {
    display: none;
  }

  .wrap,
  .page,
  .dash-wrap {
    padding: 18px 14px 40px !important;
  }

  .topbar,
  .dash-header {
    padding: 16px;
    border-radius: 22px;
  }
}

/* Dark admin theme, aligned with projects/lechun-circle/web. */
:root {
  --admin-bg: #070b12;
  --admin-ink: #dce7f5;
  --admin-heading: #f6f9ff;
  --admin-muted: #93a4b8;
  --admin-muted-soft: #6f8198;
  --admin-line: #223047;
  --admin-line-strong: #33435c;
  --admin-card: #0d1420;
  --admin-card-soft: #111a28;
  --admin-brand: #3b82f6;
  --admin-brand-deep: #2563eb;
  --admin-brand-soft: rgba(59, 130, 246, 0.16);
  --admin-shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.28);
  --admin-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

html,
body,
.admin-shell,
.admin-main {
  background: var(--admin-bg) !important;
}

body,
.admin-shell {
  color: var(--admin-ink) !important;
}

body,
.admin-main {
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0, rgba(7, 11, 18, 0) 220px),
    var(--admin-bg) !important;
}

.admin-shell {
  grid-template-columns: 232px minmax(0, 1fr);
}

.admin-sidebar {
  padding: 18px 12px !important;
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0) 38%),
    #080d15 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  scrollbar-width: none;
}

.admin-sidebar::-webkit-scrollbar,
.admin-main::-webkit-scrollbar {
  display: none;
}

.admin-brand {
  min-height: 48px !important;
  margin: 0 4px 20px !important;
  padding: 5px 0 0 46px !important;
  border: 0 !important;
  color: #f8fafc !important;
  letter-spacing: 0 !important;
}

.admin-brand small {
  color: #a1aab8 !important;
}

.admin-brand::before {
  top: 0 !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: var(--admin-brand) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.admin-nav {
  gap: 3px;
}

.admin-nav-item {
  min-height: 40px !important;
  border-radius: 8px !important;
  color: #cbd5e1 !important;
  font-weight: 600 !important;
  transform: none !important;
}

.admin-nav-item::before {
  display: none !important;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.075) !important;
  color: #fff !important;
}

.admin-nav-item.active {
  background: rgba(59, 130, 246, 0.18) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.2) !important;
}

.admin-nav-item.active::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 3px;
  height: 20px;
  border-radius: 999px;
  background: var(--admin-brand);
}

.admin-nav-title,
.admin-sidebar-user-label,
.admin-sidebar-security {
  color: var(--admin-muted) !important;
}

.admin-nav-sub {
  position: relative;
  margin-bottom: 8px;
  padding: 4px 0 5px 30px !important;
}

.admin-nav-sub::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 10px;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.admin-nav-sub .admin-nav-item {
  min-height: 32px !important;
  color: #9ca7b7 !important;
  font-size: 12px !important;
}

.admin-sidebar-user,
.admin-sidebar-logout,
.admin-sidebar-security {
  border-color: var(--admin-line) !important;
  background: var(--admin-card-soft) !important;
  color: var(--admin-ink) !important;
}

.wrap,
.page,
.dash-wrap {
  padding: 22px 24px 34px !important;
}

.topbar,
.dash-header {
  padding: 15px 16px !important;
  margin-bottom: 16px !important;
  border: 1px solid var(--admin-line) !important;
  border-radius: 8px !important;
  background: rgba(10, 16, 26, 0.92) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px);
}

h1,
h2,
h3,
.dash-title,
.metric-value,
.metric strong,
.stat-value,
.stat strong,
.name,
.city-name,
.alert-title,
.todo-item-name,
.panel-head h2,
.card h3,
.dash-user,
.dash-user strong {
  color: var(--admin-heading) !important;
  letter-spacing: 0 !important;
}

.crumb,
.eyebrow,
.dash-subtitle,
.desc,
.sub,
.metric span,
.metric-label,
.metric-sub,
.metric small,
.stat-label,
.stat-sub,
.todo-item-sub,
.todo-empty,
.info span,
.panel p,
.alert-card p,
.city-meta,
.hint,
.empty,
.empty-cell,
.muted,
.status-line,
.status,
.breadcrumb,
label span {
  color: var(--admin-muted) !important;
}

.crumb a,
.back,
.todos-header a,
.todo-footer a {
  color: #93c5fd !important;
}

.metric,
.metric-card,
.stat,
.todo-panel,
.todo-item,
.student-card,
.teacher-card,
.order-card,
.card,
.panel,
.alert-card,
.city-card,
.info,
.toolbar,
.table-wrap,
.city-table-wrap,
.batch-bar,
.modal {
  border-color: var(--admin-line) !important;
  border-radius: 8px !important;
  background: var(--admin-card) !important;
  box-shadow: var(--admin-shadow-sm) !important;
  color: var(--admin-ink) !important;
}

.todo-head,
.panel-head,
.section,
.maint-row {
  border-color: var(--admin-line) !important;
}

.metric:hover,
.metric-card:hover,
.alert-card:hover,
.student-card:hover,
.teacher-card:hover,
.order-card:hover,
.todo-item:hover,
.city-card:hover {
  transform: none !important;
  box-shadow: var(--admin-shadow) !important;
  border-color: var(--admin-line-strong) !important;
}

.teacher-card.active,
.order-card.active {
  border-color: rgba(96, 165, 250, 0.42) !important;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.28), var(--admin-shadow-sm) !important;
}

.btn,
.btn-link,
button,
.config-tab {
  border-radius: 7px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.btn-primary,
.btn.primary,
.btn.btn-primary,
button#saveBtn,
.config-tab.active {
  border-color: var(--admin-brand) !important;
  background: var(--admin-brand) !important;
  color: #fff !important;
}

.btn-ghost,
.btn-light,
.btn-secondary,
.btn-link,
.config-tab {
  border: 1px solid var(--admin-line) !important;
  background: var(--admin-card-soft) !important;
  color: var(--admin-ink) !important;
}

.btn-danger,
button.danger {
  border: 1px solid rgba(248, 113, 113, 0.32) !important;
  background: rgba(248, 113, 113, 0.12) !important;
  color: #fecaca !important;
}

.input,
.select,
textarea,
input,
select,
td input,
td select,
.city-search {
  border-color: var(--admin-line) !important;
  border-radius: 7px !important;
  background: var(--admin-card-soft) !important;
  color: var(--admin-ink) !important;
  box-shadow: none !important;
}

.input:focus,
.select:focus,
textarea:focus,
input:focus,
select:focus,
td input:focus,
td select:focus,
.city-search:focus {
  outline: none !important;
  border-color: var(--admin-brand) !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18) !important;
}

table,
td {
  color: var(--admin-ink) !important;
  background: var(--admin-card) !important;
  border-color: var(--admin-line) !important;
}

th {
  background: #101827 !important;
  color: var(--admin-muted) !important;
  border-color: var(--admin-line) !important;
}

tr:hover td {
  background: #121d2d !important;
}

.pill,
.badge,
.todo-badge,
.point,
.status-tag,
.tag,
.city-summary span {
  border-radius: 999px !important;
  border-color: rgba(96, 165, 250, 0.28) !important;
  background: rgba(59, 130, 246, 0.12) !important;
  color: #bfdbfe !important;
}

.tag-approved,
.tag-completed,
.tag-bid-selected {
  color: #bbf7d0 !important;
  background: rgba(34, 197, 94, 0.11) !important;
  border-color: rgba(34, 197, 94, 0.28) !important;
}

.tag-submitted,
.tag-reviewing,
.tag-open,
.tag-pending {
  color: #fde68a !important;
  background: rgba(250, 204, 21, 0.12) !important;
  border-color: rgba(250, 204, 21, 0.28) !important;
}

.tag-rejected,
.tag-disabled,
.tag-cancelled,
.tag-bid-closed {
  color: #fecaca !important;
  background: rgba(248, 113, 113, 0.12) !important;
  border-color: rgba(248, 113, 113, 0.32) !important;
}

.metric-value.warn,
.metric.warn strong,
.stat-value.warn {
  color: #fde68a !important;
  background: transparent !important;
  border: 0 !important;
}

.metric-value.danger,
.metric.danger strong,
.stat-value.danger {
  color: #fecaca !important;
  background: transparent !important;
  border: 0 !important;
}

.empty,
.empty-cell {
  border-color: var(--admin-line) !important;
  background: rgba(17, 26, 40, 0.72) !important;
}

.todo-empty {
  background: transparent !important;
  border: 0 !important;
}

.modal-bg {
  background: rgba(3, 7, 18, 0.68) !important;
}

.modal {
  background: var(--admin-card) !important;
  border-color: var(--admin-line) !important;
}

.modal p,
.modal label,
.admin-confirm-message {
  color: var(--admin-muted) !important;
}

@media (max-width: 960px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    height: auto;
    padding: 14px 12px !important;
  }

  .admin-brand {
    min-height: 38px !important;
    margin: 0 4px 0 0 !important;
    padding: 0 0 0 46px !important;
  }

  .admin-brand::before {
    top: 1px !important;
  }

  .admin-nav-sub {
    padding-left: 0 !important;
  }

  .admin-nav-sub::before,
  .admin-nav-item.active::after {
    display: none !important;
  }

  .wrap,
  .page,
  .dash-wrap {
    padding: 16px !important;
  }
}

/* =========================================================
   统一交互原语（AdminCommon）：toast / 确认弹窗 / 骨架 / 空状态
   仅追加，不修改上方既有规则
   ========================================================= */

.admin-toast-host {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.admin-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  max-width: 380px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--admin-card, #0d1420);
  border: 1px solid var(--admin-line, #223047);
  color: var(--admin-ink, #dce7f5);
  box-shadow: var(--admin-shadow, 0 18px 40px rgba(0, 0, 0, 0.42));
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.admin-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.admin-toast.leaving {
  opacity: 0;
  transform: translateX(16px);
}

.admin-toast-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--admin-brand, #3b82f6);
}

.admin-toast.success .admin-toast-icon { background: #34d399; }
.admin-toast.error .admin-toast-icon { background: #f87171; }
.admin-toast.info .admin-toast-icon { background: var(--admin-brand, #3b82f6); }

.admin-toast-msg { flex: 1 1 auto; }

.admin-toast-close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--admin-muted, #93a4b8);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.admin-toast-close:hover { color: var(--admin-ink, #dce7f5); }

/* 确认弹窗（复用 .modal/.modal-bg 深蓝样式）进出场 */
.admin-confirm-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.admin-confirm-bg.show { opacity: 1; }
.admin-confirm-bg.leaving { opacity: 0; }

.admin-confirm {
  width: min(420px, calc(100vw - 40px));
  padding: 24px;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.2s ease;
}
.admin-confirm-bg.show .admin-confirm { transform: translateY(0) scale(1); }

.admin-confirm-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--admin-heading, #f6f9ff);
  margin-bottom: 10px;
}

.admin-confirm-message {
  font-size: 14px;
  line-height: 1.6;
  color: var(--admin-muted, #93a4b8);
  margin-bottom: 20px;
  white-space: pre-wrap;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* 骨架屏 */
.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--admin-card-soft, #111a28);
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: admin-shimmer 1.3s infinite;
}
@keyframes admin-shimmer {
  100% { transform: translateX(100%); }
}

.skeleton-line { height: 12px; }
.skeleton-line.lg { height: 16px; width: 60%; }
.skeleton-line.sm { height: 10px; width: 40%; }

.skeleton-card {
  padding: 16px;
  border: 1px solid var(--admin-line, #223047);
  border-radius: var(--admin-radius-md, 16px);
  background: var(--admin-card, #0d1420);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}

/* 空状态里的操作按钮（如「清空筛选」） */
.admin-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.admin-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--admin-ink, #dce7f5);
}
.admin-empty-sub {
  font-size: 13px;
  color: var(--admin-muted, #93a4b8);
}
.empty-action {
  margin-top: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--admin-brand, #3b82f6);
  background: transparent;
  color: var(--admin-brand, #3b82f6);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.empty-action:hover {
  background: var(--admin-brand, #3b82f6);
  color: #fff;
}

/* 按钮 busy 态 */
.btn.is-busy,
button.is-busy {
  opacity: 0.7;
  cursor: progress;
}

.has-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.admin-action-icon,
.admin-action-icon svg {
  display: inline-grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
}

.btn-icon,
.icon-only,
.action-icon {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0 !important;
  border-radius: 8px;
  line-height: 1;
}

.btn-icon svg,
.icon-only svg,
.action-icon svg {
  width: 18px;
  height: 18px;
}

.btn-icon:hover,
.icon-only:hover,
.action-icon:hover {
  border-color: var(--admin-brand, #3b82f6);
  color: var(--admin-heading, #f6f9ff);
}

.btn-icon:focus-visible,
.icon-only:focus-visible,
.action-icon:focus-visible {
  outline: 2px solid var(--admin-brand, #3b82f6);
  outline-offset: 2px;
}

.btn-icon:disabled,
.icon-only:disabled,
.action-icon:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

/* 防闪屏：受保护后台框架在会话确认前保持隐藏，
   未登录时不再先渲染整套后台再跳登录（admin-common.js 的 guard 负责揭示）。
   规则写在 <head> 引入的 shared.css 中，保证首帧绘制前即生效。 */
.admin-shell {
  opacity: 0;
  transition: opacity 0.18s ease;
}
html.admin-ready .admin-shell {
  opacity: 1;
}

/* =========================================================
   深色后台体验层
   目标：统一管理端的深色 CRM 扫描路径、操作反馈和移动端可用性。
   ========================================================= */
:root {
  --admin-bg: #070b12;
  --admin-ink: #dce7f5;
  --admin-heading: #f6f9ff;
  --admin-muted: #93a4b8;
  --admin-muted-soft: #6f8198;
  --admin-line: #223047;
  --admin-line-strong: #33435c;
  --admin-card: #0d1420;
  --admin-card-soft: #111a28;
  --admin-brand: #3b82f6;
  --admin-brand-deep: #60a5fa;
  --admin-brand-soft: rgba(59, 130, 246, 0.16);
  --admin-good: #86efac;
  --admin-warn: #fde68a;
  --admin-danger: #fecaca;
  --admin-shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.28);
  --admin-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  --admin-radius: 8px;
}

html,
body,
.admin-shell,
.admin-main {
  background: var(--admin-bg) !important;
}

body,
.admin-shell {
  color: var(--admin-ink) !important;
}

body,
.admin-main {
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0, rgba(7, 11, 18, 0) 220px),
    var(--admin-bg) !important;
}

.admin-shell {
  grid-template-columns: 232px minmax(0, 1fr);
}

.admin-sidebar {
  padding: 16px 12px !important;
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0) 38%),
    #080d15 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

.admin-brand {
  min-height: 48px !important;
  margin: 0 4px 18px !important;
  padding: 5px 0 0 46px !important;
  border: 0 !important;
  color: var(--admin-heading) !important;
  letter-spacing: 0 !important;
}

.admin-brand small {
  color: var(--admin-muted) !important;
}

.admin-brand::before {
  top: 0 !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px !important;
  background: var(--admin-brand) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.admin-nav {
  gap: 4px;
}

.admin-nav-title,
.admin-sidebar-user-label,
.admin-sidebar-security {
  color: var(--admin-muted) !important;
}

.admin-nav-item {
  min-height: 40px !important;
  border-radius: var(--admin-radius) !important;
  color: #cbd5e1 !important;
  font-weight: 700 !important;
  transform: none !important;
}

.admin-nav-item::before {
  display: none !important;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.075) !important;
  color: #fff !important;
}

.admin-nav-item.active {
  background: rgba(59, 130, 246, 0.18) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.20) !important;
}

.admin-nav-item.active::after {
  display: none !important;
}

.admin-nav-sub {
  position: relative;
  margin-bottom: 8px;
  padding: 4px 0 5px 30px !important;
}

.admin-nav-sub::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 10px;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.admin-nav-sub .admin-nav-item {
  min-height: 32px !important;
  color: #9ca7b7 !important;
  font-size: 12px !important;
}

.admin-sidebar-user,
.admin-sidebar-logout,
.admin-sidebar-security {
  border-color: var(--admin-line) !important;
  background: var(--admin-card-soft) !important;
  color: var(--admin-ink) !important;
}

.admin-sidebar-logout:hover,
.admin-sidebar-security:hover,
.admin-sidebar-security.active {
  background: rgba(255, 255, 255, 0.075) !important;
  color: #fff !important;
}

.wrap,
.page,
.dash-wrap {
  padding: 22px 24px 40px !important;
}

.topbar,
.dash-header {
  padding: 16px 18px !important;
  margin-bottom: 16px !important;
  border: 1px solid var(--admin-line) !important;
  border-radius: var(--admin-radius) !important;
  background: rgba(10, 16, 26, 0.92) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px);
}

h1,
h2,
h3,
.dash-title,
.metric-value,
.metric strong,
.stat-value,
.stat strong,
.name,
.city-name,
.alert-title,
.todo-item-name,
.order-title,
.drawer-title,
.panel-head h2,
.panel-head h3,
.card h3,
.card h4,
.dash-user,
.dash-user strong {
  color: var(--admin-heading) !important;
  letter-spacing: 0 !important;
}

.crumb,
.eyebrow,
.dash-subtitle,
.desc,
.sub,
.metric span,
.metric-label,
.metric-sub,
.metric small,
.stat-label,
.stat-sub,
.todo-item-sub,
.todo-empty,
.info span,
.panel p,
.alert-card p,
.city-meta,
.hint,
.empty,
.empty-cell,
.muted,
.meta,
.status-line,
.status,
.breadcrumb,
label span {
  color: var(--admin-muted) !important;
}

.crumb a,
.back,
.todos-header a,
.todo-footer a {
  color: var(--admin-brand-deep) !important;
}

.metric,
.metric-card,
.stat,
.todo-panel,
.todo-item,
.student-card,
.teacher-card,
.order-card,
.card,
.panel,
.alert-card,
.city-card,
.info,
.toolbar,
.table-wrap,
.city-table-wrap,
.batch-bar,
.modal,
.crm-field,
.timeline-item,
.bid,
.follow-item,
.log-item,
.muted-box,
.next-step {
  border-color: var(--admin-line) !important;
  border-radius: var(--admin-radius) !important;
  background: var(--admin-card) !important;
  box-shadow: var(--admin-shadow-sm) !important;
  color: var(--admin-ink) !important;
}

.todo-head,
.panel-head,
.drawer-head,
.section,
.maint-row,
.pager {
  border-color: var(--admin-line) !important;
}

.metric:hover,
.metric-card:hover,
.alert-card:hover,
.student-card:hover,
.teacher-card:hover,
.order-card:hover,
.todo-item:hover,
.city-card:hover {
  transform: translateY(-1px) !important;
  box-shadow: var(--admin-shadow) !important;
  border-color: var(--admin-line-strong) !important;
}

.student-card.active,
.teacher-card.active,
.order-card.active {
  border-color: rgba(96, 165, 250, 0.42) !important;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.28), var(--admin-shadow-sm) !important;
}

.btn,
.btn-link,
button,
.ghost-btn,
.danger-btn,
.config-tab {
  border-radius: 7px !important;
  font-weight: 750 !important;
  box-shadow: none !important;
}

.btn:hover,
.btn-link:hover,
button:hover,
.ghost-btn:hover,
.danger-btn:hover,
.config-tab:hover {
  transform: translateY(-1px);
}

.btn-primary,
.btn.primary,
.btn.btn-primary,
.btn-pass,
button#saveBtn,
.config-tab.active {
  border-color: var(--admin-brand) !important;
  background: var(--admin-brand) !important;
  color: #fff !important;
}

.btn-ghost,
.btn-light,
.btn-secondary,
.btn-link,
.btn.ghost,
.ghost-btn,
.btn-reviewing,
.config-tab {
  border: 1px solid var(--admin-line) !important;
  background: var(--admin-card-soft) !important;
  color: var(--admin-ink) !important;
}

.btn-danger,
.btn-reject,
.danger-btn,
button.danger {
  border: 1px solid rgba(248, 113, 113, 0.32) !important;
  background: rgba(248, 113, 113, 0.12) !important;
  color: var(--admin-danger) !important;
}

.btn[disabled],
button[disabled],
.btn.is-busy,
button.is-busy {
  opacity: 0.56 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.input,
.select,
textarea,
input,
select,
td input,
td select,
.city-search {
  border-color: var(--admin-line) !important;
  border-radius: 7px !important;
  background: var(--admin-card-soft) !important;
  color: var(--admin-ink) !important;
  box-shadow: none !important;
}

.input::placeholder,
textarea::placeholder,
input::placeholder {
  color: var(--admin-muted-soft) !important;
}

.input:focus,
.select:focus,
textarea:focus,
input:focus,
select:focus,
td input:focus,
td select:focus,
.city-search:focus {
  outline: none !important;
  border-color: var(--admin-brand) !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18) !important;
}

table {
  width: 100%;
}

table,
td {
  color: var(--admin-ink) !important;
  background: var(--admin-card) !important;
  border-color: var(--admin-line) !important;
}

th {
  background: #101827 !important;
  color: var(--admin-muted) !important;
  border-color: var(--admin-line) !important;
}

tr:hover td {
  background: #121d2d !important;
}

.pill,
.badge,
.todo-badge,
.point,
.status-tag,
.tag,
.city-summary span {
  border-radius: 999px !important;
  border-color: rgba(96, 165, 250, 0.28) !important;
  background: rgba(59, 130, 246, 0.12) !important;
  color: #bfdbfe !important;
}

.tag-approved,
.tag-completed,
.tag-selected,
.tag-bid-selected,
.pill.enabled,
.pill.cool {
  color: var(--admin-good) !important;
  background: rgba(34, 197, 94, 0.11) !important;
  border-color: rgba(34, 197, 94, 0.28) !important;
}

.tag-submitted,
.tag-reviewing,
.tag-open,
.tag-pending,
.tag-closed,
.pill.warn,
.todo-badge.danger {
  color: var(--admin-warn) !important;
  background: rgba(250, 204, 21, 0.12) !important;
  border-color: rgba(250, 204, 21, 0.28) !important;
}

.tag-rejected,
.tag-disabled,
.tag-cancelled,
.tag-bid-closed,
.pill.hot,
.pill.disabled {
  color: var(--admin-danger) !important;
  background: rgba(248, 113, 113, 0.12) !important;
  border-color: rgba(248, 113, 113, 0.32) !important;
}

.metric-value.warn,
.metric.warn strong,
.stat-value.warn {
  color: var(--admin-warn) !important;
  background: transparent !important;
  border: 0 !important;
}

.metric-value.danger,
.metric.danger strong,
.stat-value.danger {
  color: var(--admin-danger) !important;
  background: transparent !important;
  border: 0 !important;
}

.empty,
.empty-cell,
.detail-empty {
  border-color: var(--admin-line) !important;
  background: rgba(17, 26, 40, 0.72) !important;
}

.todo-empty {
  background: transparent !important;
  border: 0 !important;
}

.drawer-backdrop,
.modal-bg {
  background: rgba(3, 7, 18, 0.68) !important;
  backdrop-filter: blur(8px);
}

.requirement-drawer,
.teacher-drawer,
.student-drawer {
  background: var(--admin-card) !important;
  border-left: 1px solid var(--admin-line) !important;
  box-shadow: -24px 0 52px rgba(0, 0, 0, 0.46) !important;
}

.drawer-head {
  background: #101827 !important;
}

.modal {
  background: var(--admin-card) !important;
  border-color: var(--admin-line) !important;
}

.admin-toast {
  background: var(--admin-card) !important;
  border-color: var(--admin-line) !important;
  color: var(--admin-ink) !important;
  box-shadow: var(--admin-shadow) !important;
}

.admin-toast-icon,
.admin-toast.info .admin-toast-icon {
  background: var(--admin-brand) !important;
}

.admin-toast.success .admin-toast-icon { background: var(--admin-good) !important; }
.admin-toast.error .admin-toast-icon { background: var(--admin-danger) !important; }
.admin-toast-close { color: var(--admin-muted) !important; }
.admin-toast-close:hover { color: var(--admin-heading) !important; }

.skeleton,
.skeleton-card {
  background: var(--admin-card-soft) !important;
  border-color: var(--admin-line) !important;
}

.skeleton::after {
  background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.06) 50%, transparent 100%) !important;
}

.admin-empty-title {
  color: var(--admin-heading) !important;
}

.admin-empty-sub {
  color: var(--admin-muted) !important;
}

.empty-action {
  border-color: var(--admin-brand) !important;
  color: var(--admin-brand-deep) !important;
}

.empty-action:hover {
  background: var(--admin-brand) !important;
  color: #fff !important;
}




.priority-link {
  border-color: var(--admin-line) !important;
  background: var(--admin-card) !important;
  box-shadow: var(--admin-shadow-sm) !important;
}

.priority-link:hover {
  border-color: var(--admin-line-strong) !important;
  box-shadow: var(--admin-shadow) !important;
  transform: translateY(-1px);
}

.priority-title {
  color: var(--admin-heading) !important;
}

.priority-sub {
  color: var(--admin-muted) !important;
}

.priority-arrow {
  color: var(--admin-brand-deep) !important;
}

.review-stat,
.chip {
  border-color: var(--admin-line) !important;
  background: var(--admin-card) !important;
  color: var(--admin-ink) !important;
  box-shadow: var(--admin-shadow-sm) !important;
}

.review-stat-label,
.detail-empty .detail-empty-sub {
  color: var(--admin-muted) !important;
}

.review-stat-value,
.detail-empty .detail-empty-title {
  color: var(--admin-heading) !important;
}

.chip.active {
  border-color: var(--admin-line-strong) !important;
  background: var(--admin-brand-soft) !important;
  color: var(--admin-brand-deep) !important;
}

.detail-empty svg {
  color: var(--admin-brand) !important;
  stroke: currentColor !important;
}

@media (min-width: 1180px) {
  .stats,
  .summary,
  .dash-metrics,
  .review-stats,
  .metrics {
    align-items: stretch;
  }
}

@media (max-width: 960px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    height: auto;
    padding: 12px !important;
    position: static;
  }

  .admin-brand {
    min-height: 38px !important;
    margin: 0 4px 0 0 !important;
    padding: 0 0 0 46px !important;
  }

  .admin-brand::before {
    top: 1px !important;
  }

  .admin-nav {
    width: 100%;
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .admin-nav-sub {
    display: grid;
    padding-left: 0 !important;
    gap: 6px;
  }

  .admin-nav-sub::before,
  .admin-nav-item.active::after {
    display: none !important;
  }

  .admin-nav-item {
    justify-content: center;
    min-height: 38px !important;
    padding: 8px 6px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }

  .wrap,
  .page,
  .dash-wrap {
    padding: 16px !important;
  }

  .topbar,
  .dash-header,
  .toolbar,
  .panel,
  .card {
    border-radius: var(--admin-radius) !important;
  }
}

@media (max-width: 640px) {
  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats,
  .summary,
  .dash-metrics,
  .student-grid,
  .detail-grid,
  .review-stats,
  .grid.metrics {
    grid-template-columns: 1fr !important;
  }

  .toolbar,
  .toolbar-top,
  .toolbar-group,
  .filters,
  .search,
  .pager,
  .pager-actions,
  .actions,
  .action-grid,
  .drawer-actions,
  .modal-actions {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .btn,
  .btn-link,
  button,
  .input,
  .select,
  input,
  select {
    width: 100%;
  }

  .admin-toast-host {
    left: 14px;
    right: 14px;
    top: 14px;
  }

  .admin-toast {
    min-width: 0;
    max-width: none;
  }
}

/* Final effective theme: deep black commercial admin. */
:root {
  --admin-bg: #070b12;
  --admin-ink: #dce7f5;
  --admin-heading: #f6f9ff;
  --admin-muted: #93a4b8;
  --admin-muted-soft: #6f8198;
  --admin-line: #223047;
  --admin-line-strong: #33435c;
  --admin-card: #0d1420;
  --admin-card-soft: #111a28;
  --admin-brand: #3b82f6;
  --admin-brand-deep: #60a5fa;
  --admin-brand-soft: rgba(59, 130, 246, 0.16);
  --admin-good: #34d399;
  --admin-warn: #fbbf24;
  --admin-danger: #f87171;
  --admin-shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.28);
  --admin-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  --admin-radius: 8px;
}

html,
body,
.admin-shell,
.admin-main {
  background: var(--admin-bg) !important;
}

body,
.admin-shell {
  color: var(--admin-ink) !important;
}

body,
.admin-main {
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0, rgba(7, 11, 18, 0) 220px),
    var(--admin-bg) !important;
}

.admin-sidebar {
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0) 38%),
    #080d15 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

.admin-brand {
  color: #f8fafc !important;
}

.admin-brand small,
.admin-nav-title,
.admin-sidebar-user-label,
.admin-sidebar-security {
  color: #a1aab8 !important;
}

.admin-brand::before {
  background: var(--admin-brand) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.admin-nav-item {
  color: #cbd5e1 !important;
}

.admin-nav-item:hover,
.admin-nav-item.active {
  background: rgba(59, 130, 246, 0.16) !important;
  color: #bfdbfe !important;
}

.admin-nav-item.active {
  box-shadow: inset 3px 0 0 var(--admin-brand) !important;
}

.admin-nav-sub::before {
  background: #223047 !important;
}

.admin-nav-sub .admin-nav-item {
  color: #b6c3d4 !important;
}

.admin-sidebar-user,
.admin-sidebar-logout,
.admin-sidebar-security,
.topbar,
.dash-header,
.metric,
.metric-card,
.stat,
.todo-panel,
.todo-item,
.student-card,
.teacher-card,
.order-card,
.card,
.panel,
.alert-card,
.city-card,
.info,
.toolbar,
.table-wrap,
.city-table-wrap,
.batch-bar,
.modal,
.crm-field,
.timeline-item,
.bid,
.follow-item,
.log-item,
.muted-box,
.next-step {
  border-color: var(--admin-line) !important;
  background: var(--admin-card) !important;
  box-shadow: var(--admin-shadow-sm) !important;
  color: var(--admin-ink) !important;
}

.topbar,
.dash-header,
.drawer-head {
  background: rgba(13, 20, 32, 0.88) !important;
  backdrop-filter: blur(12px);
}

h1,
h2,
h3,
.dash-title,
.metric-value,
.metric strong,
.stat-value,
.stat strong,
.name,
.city-name,
.alert-title,
.todo-item-name,
.order-title,
.drawer-title,
.panel-head h2,
.panel-head h3,
.card h3,
.card h4,
.dash-user,
.dash-user strong {
  color: var(--admin-heading) !important;
}

.crumb,
.eyebrow,
.dash-subtitle,
.desc,
.sub,
.metric span,
.metric-label,
.metric-sub,
.metric small,
.stat-label,
.stat-sub,
.todo-item-sub,
.todo-empty,
.info span,
.panel p,
.alert-card p,
.city-meta,
.hint,
.empty,
.empty-cell,
.muted,
.meta,
.status-line,
.status,
.breadcrumb,
label span {
  color: var(--admin-muted) !important;
}

.crumb a,
.back,
.todos-header a,
.todo-footer a,
.admin-sidebar-security:hover,
.admin-sidebar-security.active,
.admin-sidebar-logout:hover {
  color: var(--admin-brand-deep) !important;
}

.metric:hover,
.metric-card:hover,
.alert-card:hover,
.student-card:hover,
.teacher-card:hover,
.order-card:hover,
.todo-item:hover,
.city-card:hover {
  box-shadow: var(--admin-shadow) !important;
  border-color: var(--admin-line-strong) !important;
}

.student-card.active,
.teacher-card.active,
.order-card.active {
  border-color: rgba(59, 130, 246, 0.48) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12), var(--admin-shadow-sm) !important;
}

.btn-primary,
.btn.primary,
.btn.btn-primary,
.btn-pass,
button#saveBtn,
.config-tab.active {
  border-color: var(--admin-brand) !important;
  background: var(--admin-brand) !important;
  color: #fff !important;
}

.btn-ghost,
.btn-light,
.btn-secondary,
.btn-link,
.btn.ghost,
.ghost-btn,
.btn-reviewing,
.config-tab {
  border: 1px solid var(--admin-line) !important;
  background: var(--admin-card-soft) !important;
  color: var(--admin-ink) !important;
}

.btn-danger,
.btn-reject,
.danger-btn,
button.danger {
  border: 1px solid rgba(248, 113, 113, 0.32) !important;
  background: rgba(248, 113, 113, 0.12) !important;
  color: var(--admin-danger) !important;
}

.input,
.select,
textarea,
input,
select,
td input,
td select,
.city-search {
  border-color: var(--admin-line) !important;
  background: var(--admin-card-soft) !important;
  color: var(--admin-ink) !important;
  box-shadow: none !important;
}

.input::placeholder,
textarea::placeholder,
input::placeholder {
  color: #64748b !important;
}

.input:focus,
.select:focus,
textarea:focus,
input:focus,
select:focus,
td input:focus,
td select:focus,
.city-search:focus {
  border-color: var(--admin-brand) !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18) !important;
}

table,
td {
  color: var(--admin-ink) !important;
  background: var(--admin-card) !important;
  border-color: var(--admin-line) !important;
}

th {
  background: rgba(59, 130, 246, 0.08) !important;
  color: var(--admin-muted) !important;
  border-color: var(--admin-line) !important;
}

tr:hover td {
  background: rgba(59, 130, 246, 0.08) !important;
}

.pill,
.badge,
.todo-badge,
.point,
.status-tag,
.tag,
.city-summary span {
  border-color: rgba(59, 130, 246, 0.28) !important;
  background: rgba(59, 130, 246, 0.14) !important;
  color: var(--admin-brand-deep) !important;
}

.tag-approved,
.tag-completed,
.tag-selected,
.tag-bid-selected,
.pill.enabled,
.pill.cool {
  color: var(--admin-good) !important;
  background: rgba(52, 211, 153, 0.12) !important;
  border-color: rgba(52, 211, 153, 0.24) !important;
}

.tag-submitted,
.tag-reviewing,
.tag-open,
.tag-pending,
.tag-closed,
.pill.warn,
.todo-badge.danger {
  color: var(--admin-warn) !important;
  background: rgba(251, 191, 36, 0.12) !important;
  border-color: rgba(251, 191, 36, 0.24) !important;
}

.tag-rejected,
.tag-disabled,
.tag-cancelled,
.tag-bid-closed,
.pill.hot,
.pill.disabled {
  color: var(--admin-danger) !important;
  background: rgba(248, 113, 113, 0.12) !important;
  border-color: rgba(248, 113, 113, 0.26) !important;
}

.empty,
.empty-cell,
.detail-empty {
  border-color: var(--admin-line) !important;
  background: rgba(17, 26, 40, 0.72) !important;
}

.drawer-backdrop,
.modal-bg {
  background: rgba(0, 0, 0, 0.54) !important;
  backdrop-filter: blur(8px);
}

.requirement-drawer,
.teacher-drawer,
.student-drawer {
  background: var(--admin-card) !important;
  border-left: 1px solid var(--admin-line) !important;
  box-shadow: -24px 0 52px rgba(0, 0, 0, 0.36) !important;
}

.modal {
  background: var(--admin-card) !important;
  border-color: var(--admin-line) !important;
}

.admin-toast {
  background: var(--admin-card) !important;
  border-color: var(--admin-line) !important;
  color: var(--admin-ink) !important;
  box-shadow: var(--admin-shadow) !important;
}

.admin-toast-icon,
.admin-toast.info .admin-toast-icon {
  background: var(--admin-brand) !important;
}

.admin-toast.success .admin-toast-icon { background: var(--admin-good) !important; }
.admin-toast.error .admin-toast-icon { background: var(--admin-danger) !important; }
.admin-toast-close { color: var(--admin-muted) !important; }
.admin-toast-close:hover { color: var(--admin-heading) !important; }

.skeleton,
.skeleton-card {
  background: var(--admin-card-soft) !important;
  border-color: var(--admin-line) !important;
}

.skeleton::after {
  background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.06) 50%, transparent 100%) !important;
}

.admin-empty-title {
  color: var(--admin-heading) !important;
}

.admin-empty-sub {
  color: var(--admin-muted) !important;
}

.empty-action {
  border-color: var(--admin-brand) !important;
  color: var(--admin-brand-deep) !important;
}

.empty-action:hover {
  background: var(--admin-brand) !important;
  color: #fff !important;
}

/* Sidebar final effective polish. */
.admin-shell {
  grid-template-columns: 248px minmax(0, 1fr) !important;
}

.admin-sidebar {
  padding: 22px 12px 14px !important;
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.10) 0%, rgba(59, 130, 246, 0) 34%),
    #070c14 !important;
}

.admin-sidebar svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex: 0 0 18px !important;
}

.admin-brand {
  min-height: 52px !important;
  margin: 0 8px 18px !important;
  padding: 4px 0 0 48px !important;
  font-size: 17px !important;
  line-height: 1.2 !important;
}

.admin-brand small {
  margin-top: 5px !important;
  font-size: 12px !important;
}

.admin-brand::before {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%) !important;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.26) !important;
}

.admin-nav {
  padding: 2px 8px 12px !important;
  gap: 4px !important;
}

.admin-nav-section {
  display: grid !important;
  gap: 4px !important;
  margin: 6px 0 !important;
}

.admin-nav-title {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  color: #d7e2f0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.admin-nav-section.is-open > .admin-nav-title {
  color: #f8fafc !important;
}

.admin-nav-icon {
  display: inline-grid !important;
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  place-items: center !important;
  color: currentColor !important;
  opacity: 0.88 !important;
}

.admin-nav-icon svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
}

.admin-nav-label {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-nav-item {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-height: 42px !important;
  padding: 9px 12px !important;
  border-radius: 8px !important;
  color: #c8d3e2 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

.admin-nav-item:hover {
  background: rgba(148, 163, 184, 0.10) !important;
  color: #f8fafc !important;
}

.admin-nav-item.active {
  background: rgba(37, 99, 235, 0.20) !important;
  color: #eff6ff !important;
  box-shadow: inset 3px 0 0 #3b82f6, inset 0 0 0 1px rgba(96, 165, 250, 0.16) !important;
}

.admin-nav-item.active .admin-nav-icon {
  color: #93c5fd !important;
  opacity: 1 !important;
}

.admin-nav-item::before,
.admin-nav-item.active::after,
.admin-nav-sub::before {
  display: none !important;
}

.admin-nav-sub {
  display: grid !important;
  gap: 2px !important;
  margin: -2px 0 2px !important;
  padding: 0 0 0 28px !important;
}

.admin-nav-sub .admin-nav-item {
  min-height: 36px !important;
  padding: 8px 10px !important;
  color: #a9b7c9 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}

.admin-nav-sub .admin-nav-icon,
.admin-nav-sub .admin-nav-icon svg {
  width: 16px !important;
  height: 16px !important;
}

.admin-nav-sub .admin-nav-icon {
  flex-basis: 16px !important;
  opacity: 0.72 !important;
}

.admin-sidebar-foot {
  position: relative !important;
  margin: 8px 8px 0 !important;
  padding: 14px 0 0 !important;
  border-top: 1px solid rgba(148, 163, 184, 0.12) !important;
  gap: 8px !important;
}

.admin-sidebar-user {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) 32px !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 54px !important;
  padding: 10px !important;
  border: 1px solid rgba(148, 163, 184, 0.10) !important;
  border-radius: 8px !important;
  background: rgba(15, 23, 42, 0.74) !important;
  box-shadow: none !important;
}

.admin-sidebar-avatar {
  display: grid !important;
  width: 34px !important;
  height: 34px !important;
  place-items: center !important;
  border-radius: 8px !important;
  background: rgba(59, 130, 246, 0.20) !important;
  color: #bfdbfe !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.admin-sidebar-user-text {
  min-width: 0 !important;
}

.admin-sidebar-user-label {
  margin: 0 0 2px !important;
  color: #74849a !important;
  font-size: 11px !important;
}

.admin-sidebar-user-name {
  overflow: hidden !important;
  color: #f8fafc !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-sidebar-more {
  display: grid !important;
  width: 32px !important;
  height: 32px !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #94a3b8 !important;
}

.admin-sidebar-more:hover {
  background: rgba(148, 163, 184, 0.12) !important;
  color: #f8fafc !important;
}

.admin-sidebar-more svg {
  width: 18px !important;
  height: 18px !important;
  fill: currentColor !important;
}

.admin-sidebar-actions {
  display: none !important;
  gap: 6px !important;
}

.admin-sidebar-foot.is-actions-open .admin-sidebar-actions,
.admin-sidebar-foot:focus-within .admin-sidebar-actions {
  display: grid !important;
}

.admin-sidebar-security,
.admin-sidebar-logout {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  min-height: 38px !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(148, 163, 184, 0.10) !important;
  background: rgba(15, 23, 42, 0.64) !important;
  color: #c8d3e2 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  text-align: left !important;
}

.admin-sidebar-security:hover,
.admin-sidebar-security.active,
.admin-sidebar-logout:hover {
  background: rgba(37, 99, 235, 0.18) !important;
  color: #bfdbfe !important;
}

@media (max-width: 960px) {
  .admin-shell {
    grid-template-columns: 1fr !important;
  }

  .admin-sidebar {
    position: static !important;
    height: auto !important;
    padding: 12px !important;
  }

  .admin-brand {
    min-height: 40px !important;
    margin: 0 !important;
  }

  .admin-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    padding: 8px 0 0 !important;
  }

  .admin-nav-section,
  .admin-nav-sub {
    display: contents !important;
  }

  .admin-nav-title,
  .admin-nav-icon {
    display: none !important;
  }

  .admin-nav-item {
    min-height: 40px !important;
    justify-content: center !important;
    padding: 8px !important;
  }

  .admin-sidebar-foot {
    width: 100% !important;
    margin: 6px 0 0 !important;
    padding-top: 10px !important;
  }

  .admin-sidebar-user {
    max-width: 280px !important;
  }
}

@media (max-width: 640px) {
  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Final effective theme: warm orange admin.
   Keep this after historical theme experiments so the production admin stays
   aligned with the current product language. */
:root {
  --admin-bg: #f7f1ea;
  --admin-ink: #392315;
  --admin-heading: #24150c;
  --admin-muted: #876957;
  --admin-muted-soft: #a98a76;
  --admin-line: rgba(112, 69, 42, 0.14);
  --admin-line-strong: rgba(199, 116, 52, 0.34);
  --admin-card: rgba(255, 253, 249, 0.96);
  --admin-card-soft: rgba(255, 248, 241, 0.92);
  --admin-brand: #c77434;
  --admin-brand-deep: #8f461f;
  --admin-brand-soft: rgba(199, 116, 52, 0.12);
  --admin-good: #4f8b63;
  --admin-warn: #b27a34;
  --admin-danger: #c15e4f;
  --admin-shadow-sm: 0 10px 26px rgba(91, 53, 28, 0.07);
  --admin-shadow: 0 20px 42px rgba(91, 53, 28, 0.12);
  --admin-radius: 8px;
}

html,
body,
.admin-shell,
.admin-main {
  background: var(--admin-bg) !important;
}

body,
.admin-main {
  background:
    radial-gradient(circle at 14% 0%, rgba(237, 182, 118, 0.18), transparent 28%),
    radial-gradient(circle at 92% 6%, rgba(255, 223, 183, 0.46), transparent 30%),
    linear-gradient(180deg, #fffaf6 0%, #f7efe7 48%, #f4e8dc 100%) !important;
}

body,
.admin-shell {
  color: var(--admin-ink) !important;
}

.admin-shell {
  grid-template-columns: 232px minmax(0, 1fr) !important;
}

.admin-sidebar {
  padding: 16px 12px !important;
  background: rgba(255, 251, 246, 0.96) !important;
  border-right: 1px solid var(--admin-line) !important;
  box-shadow: 10px 0 34px rgba(86, 48, 25, 0.05) !important;
}

.admin-brand {
  min-height: 48px !important;
  margin: 0 4px 18px !important;
  padding: 5px 0 0 46px !important;
  border: 0 !important;
  color: var(--admin-heading) !important;
}

.admin-brand small,
.admin-nav-title,
.admin-sidebar-user-label,
.admin-sidebar-security {
  color: var(--admin-muted) !important;
}

.admin-brand::before {
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #fff0dd 0%, #f1b366 100%) !important;
  color: #7a3517 !important;
  box-shadow: 0 10px 20px rgba(126, 67, 31, 0.15) !important;
}

.admin-nav-item,
.admin-nav-sub .admin-nav-item {
  color: #66442f !important;
  font-weight: 700 !important;
}

.admin-nav-icon,
.admin-nav-icon svg {
  color: currentColor !important;
  stroke: currentColor !important;
}

.admin-nav-item:hover,
.admin-sidebar-security:hover,
.admin-sidebar-security.active,
.admin-sidebar-logout:hover {
  background: rgba(199, 116, 52, 0.09) !important;
  color: var(--admin-brand-deep) !important;
}

.admin-nav-item.active {
  background: rgba(199, 116, 52, 0.14) !important;
  color: var(--admin-brand-deep) !important;
  box-shadow: inset 3px 0 0 var(--admin-brand) !important;
}

.admin-nav-item.active .admin-nav-icon {
  color: var(--admin-brand) !important;
}

.admin-nav-sub::before {
  background: rgba(112, 69, 42, 0.14) !important;
}

.admin-sidebar-user,
.admin-sidebar-logout,
.admin-sidebar-security {
  border-color: var(--admin-line) !important;
  background: var(--admin-card-soft) !important;
  color: var(--admin-ink) !important;
}

.admin-sidebar-avatar {
  background: rgba(199, 116, 52, 0.14) !important;
  color: var(--admin-brand-deep) !important;
}

.admin-sidebar-user-name {
  color: var(--admin-heading) !important;
}

.admin-sidebar-more {
  background: transparent !important;
  color: var(--admin-muted) !important;
}

.admin-sidebar-more:hover {
  background: rgba(199, 116, 52, 0.10) !important;
  color: var(--admin-brand-deep) !important;
}

h1,
h2,
h3,
.dash-title,
.metric-value,
.metric strong,
.stat-value,
.stat strong,
.name,
.city-name,
.alert-title,
.todo-item-name,
.order-title,
.drawer-title,
.panel-head h2,
.panel-head h3,
.card h3,
.card h4,
.dash-user,
.dash-user strong {
  color: var(--admin-heading) !important;
}

.crumb,
.eyebrow,
.dash-subtitle,
.desc,
.sub,
.metric span,
.metric-label,
.metric-sub,
.metric small,
.stat-label,
.stat-sub,
.todo-item-sub,
.todo-empty,
.info span,
.panel p,
.alert-card p,
.city-meta,
.hint,
.empty,
.empty-cell,
.muted,
.meta,
.status-line,
.status,
.breadcrumb,
label span {
  color: var(--admin-muted) !important;
}

.crumb a,
.back,
.todos-header a,
.todo-footer a,
.priority-arrow {
  color: var(--admin-brand-deep) !important;
}

.metric,
.metric-card,
.stat,
.todo-panel,
.todo-item,
.student-card,
.teacher-card,
.order-card,
.card,
.panel,
.alert-card,
.city-card,
.info,
.toolbar,
.table-wrap,
.city-table-wrap,
.batch-bar,
.modal,
.crm-field,
.timeline-item,
.bid,
.follow-item,
.log-item,
.muted-box,
.next-step,
.priority-link,
.review-stat,
.chip {
  border-color: var(--admin-line) !important;
  background: var(--admin-card) !important;
  box-shadow: var(--admin-shadow-sm) !important;
  color: var(--admin-ink) !important;
}

.metric:hover,
.metric-card:hover,
.alert-card:hover,
.student-card:hover,
.teacher-card:hover,
.order-card:hover,
.todo-item:hover,
.city-card:hover,
.priority-link:hover {
  box-shadow: var(--admin-shadow) !important;
  border-color: var(--admin-line-strong) !important;
}

.student-card.active,
.teacher-card.active,
.order-card.active,
.chip.active {
  border-color: rgba(199, 116, 52, 0.48) !important;
  background: var(--admin-brand-soft) !important;
  color: var(--admin-brand-deep) !important;
  box-shadow: 0 0 0 3px rgba(199, 116, 52, 0.10), var(--admin-shadow-sm) !important;
}

.btn-primary,
.btn.primary,
.btn.btn-primary,
.btn-pass,
button#saveBtn,
.config-tab.active {
  border-color: var(--admin-brand) !important;
  background: linear-gradient(135deg, var(--admin-brand-deep) 0%, #d58a45 100%) !important;
  color: #fff !important;
}

.btn-ghost,
.btn-light,
.btn-secondary,
.btn-link,
.btn.ghost,
.ghost-btn,
.btn-reviewing,
.config-tab {
  border: 1px solid var(--admin-line) !important;
  background: var(--admin-card-soft) !important;
  color: var(--admin-ink) !important;
}

.btn-danger,
.btn-reject,
.danger-btn,
button.danger {
  border: 1px solid rgba(193, 94, 79, 0.28) !important;
  background: rgba(193, 94, 79, 0.12) !important;
  color: var(--admin-danger) !important;
}

.input,
.select,
textarea,
input,
select,
td input,
td select,
.city-search {
  border-color: var(--admin-line) !important;
  background: rgba(255, 253, 249, 0.96) !important;
  color: var(--admin-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

.input:focus,
.select:focus,
textarea:focus,
input:focus,
select:focus,
td input:focus,
td select:focus,
.city-search:focus {
  border-color: rgba(199, 116, 52, 0.56) !important;
  box-shadow: 0 0 0 3px rgba(199, 116, 52, 0.13) !important;
}

table,
td {
  color: var(--admin-ink) !important;
  background: var(--admin-card) !important;
  border-color: var(--admin-line) !important;
}

th {
  background: rgba(154, 83, 37, 0.07) !important;
  color: var(--admin-muted) !important;
  border-color: var(--admin-line) !important;
}

tr:hover td {
  background: rgba(199, 116, 52, 0.045) !important;
}

.pill,
.badge,
.todo-badge,
.point,
.status-tag,
.tag,
.city-summary span {
  border-color: rgba(199, 116, 52, 0.24) !important;
  background: rgba(199, 116, 52, 0.11) !important;
  color: var(--admin-brand-deep) !important;
}

.tag-approved,
.tag-completed,
.tag-selected,
.tag-bid-selected,
.pill.enabled,
.pill.cool {
  color: var(--admin-good) !important;
  background: rgba(79, 139, 99, 0.12) !important;
  border-color: rgba(79, 139, 99, 0.24) !important;
}

.tag-submitted,
.tag-reviewing,
.tag-open,
.tag-pending,
.tag-closed,
.pill.warn,
.todo-badge.danger {
  color: var(--admin-warn) !important;
  background: rgba(178, 122, 52, 0.13) !important;
  border-color: rgba(178, 122, 52, 0.24) !important;
}

.tag-rejected,
.tag-disabled,
.tag-cancelled,
.tag-bid-closed,
.pill.hot,
.pill.disabled {
  color: var(--admin-danger) !important;
  background: rgba(193, 94, 79, 0.12) !important;
  border-color: rgba(193, 94, 79, 0.26) !important;
}

.empty,
.empty-cell,
.detail-empty {
  border-color: rgba(112, 69, 42, 0.16) !important;
  background: rgba(255, 248, 241, 0.66) !important;
}

.drawer-backdrop,
.modal-bg {
  background: rgba(61, 36, 21, 0.34) !important;
  backdrop-filter: blur(8px);
}

.requirement-drawer,
.teacher-drawer,
.student-drawer {
  background: var(--admin-card) !important;
  border-left: 1px solid var(--admin-line) !important;
  box-shadow: -24px 0 52px rgba(91, 53, 28, 0.18) !important;
}

.drawer-head {
  background: rgba(255, 248, 241, 0.94) !important;
}

.admin-toast {
  background: var(--admin-card) !important;
  border-color: var(--admin-line) !important;
  color: var(--admin-ink) !important;
  box-shadow: var(--admin-shadow) !important;
}

.admin-toast-icon,
.admin-toast.info .admin-toast-icon {
  background: var(--admin-brand) !important;
}

.admin-toast.success .admin-toast-icon { background: var(--admin-good) !important; }
.admin-toast.error .admin-toast-icon { background: var(--admin-danger) !important; }
.admin-toast-close { color: var(--admin-muted) !important; }
.admin-toast-close:hover { color: var(--admin-heading) !important; }

.skeleton,
.skeleton-card {
  background: var(--admin-card-soft) !important;
  border-color: var(--admin-line) !important;
}

.skeleton::after {
  background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.72) 50%, transparent 100%) !important;
}

.admin-empty-title,
.priority-title,
.review-stat-value,
.detail-empty .detail-empty-title {
  color: var(--admin-heading) !important;
}

.admin-empty-sub,
.priority-sub,
.review-stat-label,
.detail-empty .detail-empty-sub {
  color: var(--admin-muted) !important;
}

.empty-action {
  border-color: var(--admin-brand) !important;
  color: var(--admin-brand-deep) !important;
}

.empty-action:hover {
  background: var(--admin-brand) !important;
  color: #fff !important;
}

@media (max-width: 960px) {
  .admin-shell {
    grid-template-columns: 1fr !important;
  }

  .admin-sidebar {
    position: static !important;
    height: auto !important;
    padding: 12px !important;
  }

  .admin-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .admin-nav-title,
  .admin-nav-icon {
    display: none !important;
  }
}

/* Final effective theme: deep black admin. */
:root {
  --admin-bg: #070b12;
  --admin-ink: #dce7f5;
  --admin-heading: #f6f9ff;
  --admin-muted: #93a4b8;
  --admin-muted-soft: #6f8198;
  --admin-line: #223047;
  --admin-line-strong: #33435c;
  --admin-card: #0d1420;
  --admin-card-soft: #111a28;
  --admin-brand: #3b82f6;
  --admin-brand-deep: #60a5fa;
  --admin-brand-soft: rgba(59, 130, 246, 0.16);
  --admin-good: #34d399;
  --admin-warn: #fbbf24;
  --admin-danger: #f87171;
  --admin-shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.28);
  --admin-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

html,
body,
.admin-shell,
.admin-main {
  background: var(--admin-bg) !important;
}

body,
.admin-main {
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0, rgba(7, 11, 18, 0) 220px),
    var(--admin-bg) !important;
}

body,
.admin-shell {
  color: var(--admin-ink) !important;
}

.admin-sidebar {
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0) 38%),
    #080d15 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

.admin-brand,
.admin-sidebar-user-name,
h1,
h2,
h3,
.dash-title,
.metric-value,
.metric strong,
.stat-value,
.stat strong,
.name,
.city-name,
.alert-title,
.todo-item-name,
.order-title,
.drawer-title,
.panel-head h2,
.panel-head h3,
.card h3,
.card h4,
.dash-user,
.dash-user strong {
  color: var(--admin-heading) !important;
}

.admin-brand::before {
  background: var(--admin-brand) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.admin-brand small,
.admin-nav-title,
.admin-sidebar-user-label,
.admin-sidebar-security,
.crumb,
.eyebrow,
.dash-subtitle,
.desc,
.sub,
.metric span,
.metric-label,
.metric-sub,
.metric small,
.stat-label,
.stat-sub,
.todo-item-sub,
.todo-empty,
.info span,
.panel p,
.alert-card p,
.city-meta,
.hint,
.empty,
.empty-cell,
.muted,
.meta,
.status-line,
.status,
.breadcrumb,
label span {
  color: var(--admin-muted) !important;
}

.admin-nav-item,
.admin-nav-sub .admin-nav-item,
.admin-sidebar-logout,
.admin-sidebar-security {
  color: #cbd5e1 !important;
}

.admin-nav-item:hover,
.admin-sidebar-security:hover,
.admin-sidebar-security.active,
.admin-sidebar-logout:hover {
  background: rgba(255, 255, 255, 0.075) !important;
  color: #fff !important;
}

.admin-nav-item.active {
  background: rgba(59, 130, 246, 0.18) !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 var(--admin-brand) !important;
}

.admin-nav-item.active .admin-nav-icon,
.crumb a,
.back,
.todos-header a,
.todo-footer a,
.priority-arrow {
  color: var(--admin-brand-deep) !important;
}

.admin-nav-sub::before {
  background: rgba(255, 255, 255, 0.08) !important;
}

.metric,
.metric-card,
.stat,
.todo-panel,
.todo-item,
.student-card,
.teacher-card,
.order-card,
.card,
.panel,
.alert-card,
.city-card,
.info,
.toolbar,
.table-wrap,
.city-table-wrap,
.batch-bar,
.modal,
.crm-field,
.timeline-item,
.bid,
.follow-item,
.log-item,
.muted-box,
.next-step,
.priority-link,
.review-stat,
.chip,
.admin-sidebar-user,
.admin-sidebar-logout,
.admin-sidebar-security {
  border-color: var(--admin-line) !important;
  background: var(--admin-card) !important;
  box-shadow: var(--admin-shadow-sm) !important;
  color: var(--admin-ink) !important;
}

.metric:hover,
.metric-card:hover,
.alert-card:hover,
.student-card:hover,
.teacher-card:hover,
.order-card:hover,
.todo-item:hover,
.city-card:hover,
.priority-link:hover {
  box-shadow: var(--admin-shadow) !important;
  border-color: var(--admin-line-strong) !important;
}

.student-card.active,
.teacher-card.active,
.order-card.active,
.chip.active {
  border-color: rgba(59, 130, 246, 0.48) !important;
  background: rgba(59, 130, 246, 0.12) !important;
  color: var(--admin-brand-deep) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.10), var(--admin-shadow-sm) !important;
}

.btn-primary,
.btn.primary,
.btn.btn-primary,
.btn-pass,
button#saveBtn,
.config-tab.active {
  border-color: var(--admin-brand) !important;
  background: var(--admin-brand) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.18) !important;
}

.btn-ghost,
.btn-light,
.btn-secondary,
.btn-link,
.btn.ghost,
.ghost-btn,
.btn-reviewing,
.config-tab {
  border: 1px solid var(--admin-line) !important;
  background: var(--admin-card-soft) !important;
  color: var(--admin-ink) !important;
}

.btn-danger,
.btn-reject,
.danger-btn,
button.danger {
  border: 1px solid rgba(248, 113, 113, 0.28) !important;
  background: rgba(248, 113, 113, 0.12) !important;
  color: var(--admin-danger) !important;
}

.input,
.select,
textarea,
input,
select,
td input,
td select,
.city-search {
  border-color: var(--admin-line) !important;
  background: var(--admin-card-soft) !important;
  color: var(--admin-ink) !important;
  box-shadow: none !important;
}

.input:focus,
.select:focus,
textarea:focus,
input:focus,
select:focus,
td input:focus,
td select:focus,
.city-search:focus {
  border-color: rgba(59, 130, 246, 0.56) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.13) !important;
}

table,
td {
  color: var(--admin-ink) !important;
  background: var(--admin-card) !important;
  border-color: var(--admin-line) !important;
}

th {
  background: rgba(59, 130, 246, 0.08) !important;
  color: var(--admin-muted) !important;
  border-color: var(--admin-line) !important;
}

tr:hover td {
  background: rgba(59, 130, 246, 0.055) !important;
}

.pill,
.badge,
.todo-badge,
.point,
.status-tag,
.tag,
.city-summary span {
  border-color: rgba(59, 130, 246, 0.24) !important;
  background: rgba(59, 130, 246, 0.13) !important;
  color: var(--admin-brand-deep) !important;
}

.tag-approved,
.tag-completed,
.tag-selected,
.tag-bid-selected,
.pill.enabled,
.pill.cool {
  color: var(--admin-good) !important;
  background: rgba(52, 211, 153, 0.12) !important;
  border-color: rgba(52, 211, 153, 0.24) !important;
}

.tag-submitted,
.tag-reviewing,
.tag-open,
.tag-pending,
.tag-closed,
.pill.warn,
.todo-badge.danger {
  color: var(--admin-warn) !important;
  background: rgba(251, 191, 36, 0.13) !important;
  border-color: rgba(251, 191, 36, 0.24) !important;
}

.tag-rejected,
.tag-disabled,
.tag-cancelled,
.tag-bid-closed,
.pill.hot,
.pill.disabled {
  color: var(--admin-danger) !important;
  background: rgba(248, 113, 113, 0.12) !important;
  border-color: rgba(248, 113, 113, 0.26) !important;
}

.empty,
.empty-cell,
.detail-empty {
  border-color: var(--admin-line) !important;
  background: rgba(17, 26, 40, 0.72) !important;
}

.drawer-backdrop,
.modal-bg {
  background: rgba(0, 0, 0, 0.54) !important;
  backdrop-filter: blur(8px);
}

.requirement-drawer,
.teacher-drawer,
.student-drawer {
  background: var(--admin-card) !important;
  border-left: 1px solid var(--admin-line) !important;
  box-shadow: -24px 0 52px rgba(0, 0, 0, 0.36) !important;
}

.drawer-head {
  background: var(--admin-card-soft) !important;
}

.admin-toast {
  background: var(--admin-card) !important;
  border-color: var(--admin-line) !important;
  color: var(--admin-ink) !important;
  box-shadow: var(--admin-shadow) !important;
}

.admin-toast-icon,
.admin-toast.info .admin-toast-icon {
  background: var(--admin-brand) !important;
}

.admin-toast.success .admin-toast-icon { background: var(--admin-good) !important; }
.admin-toast.error .admin-toast-icon { background: var(--admin-danger) !important; }
.admin-toast-close { color: var(--admin-muted) !important; }
.admin-toast-close:hover { color: var(--admin-heading) !important; }

.skeleton,
.skeleton-card {
  background: var(--admin-card-soft) !important;
  border-color: var(--admin-line) !important;
}

.skeleton::after {
  background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.08) 50%, transparent 100%) !important;
}

.admin-empty-title,
.priority-title,
.review-stat-value,
.detail-empty .detail-empty-title {
  color: var(--admin-heading) !important;
}

.admin-empty-sub,
.priority-sub,
.review-stat-label,
.detail-empty .detail-empty-sub {
  color: var(--admin-muted) !important;
}

.empty-action {
  border-color: var(--admin-brand) !important;
  color: var(--admin-brand-deep) !important;
}

.empty-action:hover {
  background: var(--admin-brand) !important;
  color: #fff !important;
}
