.admin-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: #0d1f1a;
  display: flex; flex-direction: column;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  padding: 0;
}
.admin-overlay.hidden { display: none; }

/* Header */
.admin-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(13,31,26,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(82,183,136,.15);
}
.admin-header h1 { font-size: 1.1rem; font-weight: 700; color: var(--green-light); display: flex; align-items: center; gap: 10px; }
.admin-version-badge {
  font-size: .65rem; font-weight: 600;
  color: var(--gold); background: rgba(212,163,115,.12);
  padding: 2px 8px; border-radius: 6px;
  letter-spacing: .3px;
}
.admin-header-actions { display: flex; gap: 8px; }

/* Buttons */
.admin-btn {
  padding: 7px 16px; border-radius: 8px;
  font-size: .82rem; font-weight: 600; font-family: inherit;
  cursor: pointer; border: none; transition: all .2s;
}
.admin-btn-primary { background: var(--green); color: #fff; }
.admin-btn-primary:hover { background: var(--green-light); }
.admin-btn-danger { background: rgba(212,115,115,.15); color: #d47373; }
.admin-btn-danger:hover { background: rgba(212,115,115,.25); }
.admin-btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid rgba(255,255,255,.1); }
.admin-btn-ghost:hover { background: rgba(255,255,255,.05); color: var(--text); }
.admin-btn-sm { padding: 4px 10px; font-size: .75rem; }
.admin-btn-add { background: rgba(82,183,136,.1); color: var(--green-light); border: 1px dashed rgba(82,183,136,.3); }
.admin-btn-add:hover { background: rgba(82,183,136,.2); }

/* Layout */
.admin-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.admin-tabs {
  width: 200px;
  min-width: 200px;
  flex-shrink: 0;
  background: rgba(0,0,0,.2);
  border-right: 1px solid rgba(82,183,136,.1);
  overflow-y: auto;
  padding: 12px 0;
}
.admin-tab-group {
  margin-bottom: 4px;
}
.admin-tab-group-label {
  padding: 6px 16px 3px;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: rgba(255,255,255,.3);
}
.admin-tab {
  display: block;
  width: 100%;
  padding: 8px 16px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  border-left: 2px solid transparent;
  transition: all .15s;
  text-align: left;
}
.admin-tab:hover { color: var(--text); background: rgba(255,255,255,.03); }
.admin-tab.active { color: var(--green-light); border-left-color: var(--green-light); background: rgba(82,183,136,.08); }

/* Main area */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* Content */
.admin-content { padding: 20px 24px 40px; max-width: 960px; overflow-y: auto; flex: 1; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.admin-section h2 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; color: var(--green-light); }
.admin-section-desc { font-size: .82rem; color: var(--text-muted); margin-bottom: 16px; }

/* Table */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th:first-child { width: 50px; }
.admin-table th {
  text-align: left; padding: 8px 12px; font-size: .72rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-table td {
  padding: 10px 12px; font-size: .85rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(255,255,255,.02); }

/* Toggle */
.admin-toggle {
  position: relative; width: 38px; height: 20px;
  background: rgba(255,255,255,.1); border-radius: 10px;
  cursor: pointer; transition: background .2s;
  border: none; padding: 0; flex-shrink: 0;
}
.admin-toggle.on { background: var(--green-light); }
.admin-toggle::after {
  content: ''; position: absolute;
  top: 2px; left: 2px; width: 16px; height: 16px;
  background: #fff; border-radius: 50%;
  transition: transform .2s;
}
.admin-toggle.on::after { transform: translateX(18px); }

/* Input */
.admin-input {
  width: 100%; padding: 8px 12px; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: var(--text); font-size: .85rem; font-family: inherit;
  outline: none; transition: border-color .2s;
}
.admin-input:focus { border-color: var(--green-light); }
.admin-input::placeholder { color: var(--text-muted); opacity: .5; }
.admin-textarea { resize: vertical; min-height: 60px; }
.admin-select {
  padding: 6px 10px; border-radius: 6px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  color: var(--text); font-size: .82rem; font-family: inherit; outline: none;
}
.admin-select:focus { border-color: var(--green-light); }
.admin-select option { background: #1a3c34; color: var(--text); }

/* Form row */
.admin-row {
  display: flex; gap: 10px; align-items: center; margin-bottom: 8px;
}
.admin-row label { font-size: .8rem; color: var(--text-muted); min-width: 70px; }
.admin-row .admin-input { flex: 1; }

/* Item row (for lists) */
.admin-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; margin-bottom: 6px;
  background: rgba(255,255,255,.03); border-radius: 10px;
  border: 1px solid rgba(255,255,255,.05);
  transition: background .15s;
}
.admin-item:hover { background: rgba(255,255,255,.05); }
.admin-item-info { flex: 1; min-width: 0; }
.admin-item-name { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-item-meta { font-size: .75rem; color: var(--text-muted); }
.admin-item-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* Password screen */
.admin-login {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100vh; gap: 16px;
}
.admin-login h1 { font-size: 1.3rem; color: var(--green-light); margin-bottom: 8px; }
.admin-login .admin-input { width: 280px; text-align: center; font-size: 1rem; }
.admin-login .admin-btn { width: 280px; padding: 10px; }
.admin-login-error { color: #d47373; font-size: .82rem; display: none; }
.admin-login-setup .admin-input + .admin-btn { margin-top: 4px; }
.admin-login-hint { font-size: .75rem; color: var(--text-muted); margin-top: 12px; }

/* Password toggle */
.admin-pw-wrap { display: flex; align-items: center; position: relative; width: 280px; }
.admin-pw-wrap .admin-input { width: 100%; padding-right: 40px; }
.admin-pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 1rem; padding: 4px; line-height: 1; color: var(--text-muted);
  transition: color .2s;
}
.admin-pw-toggle:hover { color: var(--text); }

/* Badge */
.admin-badge {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: .72rem; font-weight: 600;
}
.admin-badge-altai { background: rgba(82,183,136,.15); color: var(--green-light); }
.admin-badge-mari { background: rgba(212,163,115,.15); color: var(--gold); }
.admin-badge-mari-el { background: rgba(212,163,115,.15); color: var(--gold); }
.admin-badge-car { background: rgba(82,183,136,.15); color: var(--green-light); }
.admin-badge-transit { background: rgba(212,163,115,.15); color: var(--gold); }
.admin-badge-hiking { background: rgba(115,163,212,.15); color: #73a3d4; }
.admin-badge-mixed { background: rgba(190,115,212,.15); color: #be73d4; }

/* Modal dialog inside admin */
.admin-dialog-backdrop {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.6); display: flex;
  align-items: center; justify-content: center;
}
.admin-dialog {
  background: #142b23; border: 1px solid rgba(82,183,136,.2);
  border-radius: 12px; padding: 24px; width: 420px; max-width: 90vw;
}
.admin-dialog h3 { font-size: .95rem; margin-bottom: 14px; color: var(--green-light); }
.admin-dialog-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

/* Toast */
.admin-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 10001;
  padding: 10px 20px; border-radius: 10px;
  background: var(--green); color: #fff;
  font-size: .85rem; font-weight: 600;
  animation: adminToastIn .3s ease, adminToastOut .3s ease 2s forwards;
}
@keyframes adminToastIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes adminToastOut { from { opacity: 1; } to { opacity: 0; pointer-events: none; } }

/* Photo gallery */
.admin-photo-item {
  flex-direction: column; align-items: stretch; gap: 4px;
  padding: 8px; overflow: hidden;
}
.admin-photo-thumb {
  width: 100%; height: 100px; object-fit: cover;
  border-radius: 6px; background: rgba(255,255,255,.05);
  margin-bottom: 4px;
}

/* Hint blocks */
.admin-hint {
  background: rgba(82,183,136,.08);
  border: 1px solid rgba(82,183,136,.15);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .78rem;
  color: var(--green-light);
  margin-bottom: 16px;
  line-height: 1.5;
}
.admin-tab-hint {
  padding: 6px 24px;
  font-size: .72rem;
  color: var(--text-muted);
  background: rgba(82,183,136,.04);
  border-bottom: 1px solid rgba(82,183,136,.08);
}

/* Background items */
.admin-bg-item {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.admin-bg-item:hover { border-color: rgba(82,183,136,.3); box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.admin-bg-preview {
  width: 100%;
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: rgba(0,0,0,.3);
  position: relative;
  cursor: pointer;
  transition: transform .2s;
}
.admin-bg-preview-hover {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
  font-size: .85rem; font-weight: 600; letter-spacing: .5px;
  backdrop-filter: blur(2px);
}
.admin-bg-preview:hover .admin-bg-preview-hover { opacity: 1; }
.admin-bg-item--main { border-color: var(--gold) !important; box-shadow: 0 0 0 1px var(--gold), 0 4px 20px rgba(233,196,106,.2); }
.admin-bg-main-badge {
  position: absolute; top: 6px; left: 6px;
  background: var(--gold); color: #111;
  font-size: .75rem; font-weight: 700; padding: 2px 8px;
  border-radius: 6px; line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.admin-bg-main-preview {
  position: relative;
  transition: transform .2s;
}
.admin-bg-main-preview:hover { transform: scale(1.02); }
.admin-bg-status {
  position: absolute; top: 6px; right: 6px;
  display: flex; gap: 4px;
}
.bg-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.3);
  border: 1px solid rgba(0,0,0,.3);
}
.admin-bg-info {
  padding: 8px 10px 10px;
}
.admin-bg-name {
  display: block;
  font-size: .7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}
.admin-bg-regions {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}
.admin-bg-region {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: .65rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255,255,255,.06);
  color: var(--text-muted);
  transition: all .15s;
  user-select: none;
}
.admin-bg-region:hover { background: rgba(255,255,255,.1); }
.admin-bg-region.active { background: rgba(82,183,136,.2); color: var(--green-light); }
.admin-bg-region-altai.active { background: rgba(82,183,136,.2); color: var(--green-light); }
.admin-bg-region-mari.active { background: rgba(212,163,115,.2); color: var(--gold); }

/* Section selector */
.admin-bg-section-select {
  display: flex; gap: 3px; margin-top: 5px;
}
.bg-section-label {
  padding: 2px 8px; border-radius: 4px;
  font-size: .62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; cursor: pointer;
  background: rgba(255,255,255,.05);
  color: var(--text-muted);
  transition: all .15s; user-select: none;
}
.bg-section-label:hover { background: rgba(255,255,255,.1); }
.bg-section-label.active { background: rgba(82,183,136,.15); color: var(--green-light); }

/* Drop zone */
.bg-dropzone {
  border: 2px dashed rgba(82,183,136,.3);
  border-radius: 12px; padding: 40px;
  text-align: center; color: var(--text-muted);
  cursor: pointer; transition: all .2s;
}
.bg-dropzone:hover, .bg-dropzone.drag-over {
  border-color: var(--green-light);
  background: rgba(82,183,136,.05);
}

/* Photo management extras */
.admin-btn-xs { padding: 2px 6px; font-size: .72rem; }
.admin-photo-item .admin-btn-xs { position: absolute; top: 4px; right: 4px; opacity: 0; transition: opacity .2s; z-index: 1; }
.admin-photo-item:hover .admin-btn-xs { opacity: 1; }
.admin-photo-item { position: relative; }
.admin-photo-deleted { opacity: .4; }
.bg-cb { position: absolute; top: 6px; left: 6px; z-index: 2; accent-color: var(--green-light); }

/* ===== Route Editor Styles ===== */
.admin-routes-stats {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.admin-routes-stat {
  padding: 8px 14px; border-radius: 8px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  font-size: .8rem;
}
.admin-routes-stat strong { color: var(--green-light); font-size: 1rem; }
.admin-route-grid {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 12px;
}
.admin-route-card {
  display: flex; align-items: stretch; gap: 0;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; overflow: hidden;
  transition: border-color .2s, background .2s;
}
.admin-route-card:hover { border-color: rgba(82,183,136,.25); background: rgba(255,255,255,.05); }
.admin-route-card-preview {
  width: 170px; min-height: 105px; flex-shrink: 0;
  background-size: cover; background-position: center;
  background-color: rgba(0,0,0,.25);
  position: relative; display: flex; align-items: flex-end;
  padding: 8px;
}
.admin-route-card-preview .admin-badge {
  font-size: .65rem; padding: 1px 6px;
}
.admin-route-card-body {
  flex: 1; padding: 10px 14px;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.admin-route-card-body h4 {
  font-size: .85rem; font-weight: 700; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-route-card-meta {
  font-size: .72rem; color: var(--text-muted);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.admin-route-card-meta .admin-badge { font-size: .65rem; }
.admin-route-card-actions {
  display: flex; gap: 6px; align-items: center;
  padding: 0 14px 0 0; flex-shrink: 0;
}
/* Full editor modal */
.admin-route-editor-wrap {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.7); display: flex;
  align-items: center; justify-content: center;
}
.admin-route-editor {
  background: #0d1f1a; border: 1px solid rgba(82,183,136,.2);
  border-radius: 14px; width: 940px; max-width: 96vw; max-height: 92vh;
  display: flex; flex-direction: column;
  overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.admin-route-editor-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.admin-route-editor-header h2 {
  font-size: .95rem; font-weight: 700; margin: 0; color: var(--green-light);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 10px;
}
.admin-route-editor-body {
  flex: 1; overflow-y: auto; padding: 16px 20px;
}
.admin-route-editor-footer {
  display: flex; gap: 8px; justify-content: flex-end;
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,.06); flex-shrink: 0;
}
/* Editor sub-tabs */
.admin-editor-subtabs {
  display: flex; gap: 0; margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.06); flex-shrink: 0;
  overflow-x: auto;
}
.admin-editor-subtab {
  padding: 8px 16px; font-size: .8rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer; border: none; background: none;
  border-bottom: 2px solid transparent; transition: all .2s;
  font-family: inherit; white-space: nowrap;
}
.admin-editor-subtab:hover { color: var(--text); }
.admin-editor-subtab.active { color: var(--green-light); border-bottom-color: var(--green-light); }
.admin-editor-pane { display: none; }
.admin-editor-pane.active { display: block; }
/* Form fields */
.admin-field {
  margin-bottom: 12px;
}
.admin-field label {
  display: block; font-size: .73rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: .4px;
}
.admin-field-hint { font-size: .7rem; color: var(--text-muted); margin-top: 2px; }
.admin-row-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.admin-row-3 {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
}
/* Step editor */
.admin-step-list { display: flex; flex-direction: column; gap: 6px; }
.admin-step-item {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px; padding: 12px; transition: border-color .2s;
}
.admin-step-item:hover { border-color: rgba(82,183,136,.2); }
.admin-step-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.admin-step-num {
  font-size: .78rem; font-weight: 700; color: var(--green-light);
  min-width: 28px; font-variant-numeric: tabular-nums;
}
.admin-step-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.admin-step-grid .admin-field { margin-bottom: 0; }
.admin-step-grid .admin-field-full { grid-column: 1 / -1; }
/* Photo preview */
.admin-photo-slot {
  margin-top: 4px;
}
.admin-photo-slot-preview {
  position: relative; display: inline-block;
  width: 100%; max-width: 200px; height: 80px;
  border-radius: 6px; overflow: hidden;
  background: rgba(0,0,0,.2);
}
.admin-photo-slot-preview img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.admin-photo-slot-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  opacity: 0; transition: opacity .2s;
}
.admin-photo-slot-preview:hover .admin-photo-slot-overlay { opacity: 1; }
.admin-photo-upload-btn {
  font-size: .65rem; padding: 2px 8px; border-radius: 4px;
  background: rgba(82,183,136,.2); color: var(--green-light);
  border: none; cursor: pointer; transition: background .2s;
  font-family: inherit; font-weight: 600;
}
.admin-photo-upload-btn:hover { background: rgba(82,183,136,.35); }
.photo-upload-zone {
  border: 1px dashed rgba(82,183,136,.25);
  border-radius: 8px; padding: 6px 10px;
  text-align: center; font-size: .7rem; color: var(--text-muted);
  cursor: pointer; transition: all .2s;
  display: inline-block;
}
.photo-upload-zone:hover { border-color: var(--green-light); background: rgba(82,183,136,.04); }
.photo-upload-zone input { display: none; }
/* Variant items */
.admin-variant-item {
  background: rgba(212,163,115,.05);
  border: 1px solid rgba(212,163,115,.15);
  border-radius: 10px; padding: 14px; margin-bottom: 10px;
}
.admin-variant-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.admin-variant-header h5 { margin: 0; font-size: .82rem; color: var(--gold); flex: 1; }
/* Tips list */
.admin-tips-list { display: flex; flex-direction: column; gap: 4px; }
.admin-tip-item {
  display: flex; align-items: center; gap: 6px;
}
.admin-tip-item input { flex: 1; }
/* Photo management tab */
.admin-photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.admin-photo-grid-item {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px; overflow: hidden;
}
.admin-photo-grid-item img {
  width: 100%; height: 80px; object-fit: cover;
  display: block;
}
.admin-photo-grid-info {
  padding: 5px 7px; font-size: .65rem; color: var(--text-muted);
  word-break: break-all;
}
.admin-photo-grid-info small { display: block; }
/* Delay slider */
.admin-delay-row {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0;
}
.admin-delay-row label { font-size: .8rem; color: var(--text-muted); min-width: 80px; }
.admin-delay-row input[type=range] { flex: 1; accent-color: var(--green-light); }
.admin-delay-row span { font-size: .82rem; color: var(--text); min-width: 50px; font-weight: 600; }
/* New route card placeholder */
.admin-route-card-new .admin-route-card-preview {
  background: rgba(82,183,136,.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
/* Empty state */
.admin-empty-state {
  text-align: center; padding: 40px 20px; color: var(--text-muted);
}
.admin-empty-state p { font-size: .85rem; }

/* Collapsible region groups */
.admin-region-group {
  margin-bottom: 8px;
}
.admin-region-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
  color: var(--green-light);
  background: rgba(82,183,136,.06);
  border-radius: 8px;
  transition: background .15s;
  user-select: none;
}
.admin-region-header:hover {
  background: rgba(82,183,136,.12);
}
.admin-region-header[data-rg-region="mari-el"] {
  color: var(--gold);
  background: rgba(212,163,115,.06);
}
.admin-region-header[data-rg-region="mari-el"]:hover {
  background: rgba(212,163,115,.12);
}
.admin-rg-arrow {
  font-size: .65rem;
  transition: transform .15s;
  flex-shrink: 0;
}
.admin-rg-title {
  flex: 1;
}
.admin-rg-count {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,.06);
  padding: 1px 8px;
  border-radius: 10px;
}
.admin-rg-body {
  padding-left: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-body { flex-direction: column; }
  .admin-tabs {
    width: 100%; min-width: 0;
    display: flex; flex-wrap: nowrap;
    overflow-x: auto; gap: 0;
    border-right: none;
    border-bottom: 1px solid rgba(82,183,136,.1);
    padding: 0;
    background: rgba(0,0,0,.15);
  }
  .admin-tab-group {
    display: flex;
    margin-bottom: 0;
  }
  .admin-tab-group + .admin-tab-group {
    margin-left: 1px;
    padding-left: 1px;
    background: rgba(82,183,136,.08);
    background-clip: content-box;
  }
  .admin-tab-group-label { display: none; }
  .admin-tab {
    width: auto;
    padding: 10px 12px;
    font-size: .78rem;
    border-left: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }
  .admin-tab.active { border-left: none; border-bottom-color: var(--green-light); }
  .admin-main { overflow: visible; }
  .admin-content { padding: 14px 12px 30px; overflow: visible; }
  .admin-header { padding: 10px 14px; }
  .admin-table { font-size: .8rem; }
  .admin-table th, .admin-table td { padding: 8px 8px; }
}
