:root {
  --admin-primary: #0284c7;
  --admin-primary-hover: #0369a1;
  --admin-primary-light: #e0f2fe;
  --admin-bg: #f8fafc;
  --admin-card-bg: #ffffff;
  --admin-border: #e2e8f0;
  --admin-text-main: #0f172a;
  --admin-text-muted: #64748b;
  --admin-danger: #ef4444;
  --admin-danger-hover: #dc2626;
  --admin-success: #10b981;
  --admin-warning: #f59e0b;
  --skeleton-bg: #e2e8f0;
  --skeleton-highlight: #f1f5f9;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body.admin-body {
  background-color: var(--admin-bg);
  color: var(--admin-text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.skeleton {
  background: linear-gradient(90deg, var(--skeleton-bg) 25%, var(--skeleton-highlight) 50%, var(--skeleton-bg) 75%) !important;
  background-size: 200% 100% !important;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: 4px;
  color: transparent !important;
  text-shadow: none !important;
}
@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text { height: 1rem; width: 60%; }
.skeleton-text.short { width: 35%; }
.skeleton-text.long { width: 85%; }
.skeleton-title { height: 1.5rem; width: 50%; margin-bottom: 0.5rem; }
.skeleton-value { height: 2rem; width: 40%; font-size: 1.5rem; }
.skeleton-avatar { width: 2rem; height: 2rem; border-radius: 50%; }
.skeleton-badge { height: 1.25rem; width: 5rem; border-radius: 9999px; }
.skeleton-card { height: 100%; min-height: 120px; }
.skeleton-table-row { height: 3rem; }
.skeleton-table-cell { height: 1rem; }
.skeleton-stat-card { display: flex; align-items: center; gap: 16px; padding: 20px; }
.skeleton-stat-icon { width: 50px; height: 50px; border-radius: 14px; }
.skeleton-stat-details { flex: 1; }
.skeleton-stat-label { height: 0.875rem; width: 50%; margin-bottom: 4px; }
.skeleton-stat-value { height: 1.75rem; width: 35%; }
.skeleton-recent-item { display: flex; align-items: center; gap: 12px; padding: 12px; }
.skeleton-recent-avatar { width: 36px; height: 36px; border-radius: 6px; }
.skeleton-recent-text { flex: 1; }
.skeleton-recent-name { height: 1rem; width: 70%; margin-bottom: 4px; }
.skeleton-recent-meta { height: 0.875rem; width: 45%; }
.skeleton-diag-row { display: grid; grid-template-columns: 50px 1fr 1fr 1fr 1fr 120px; gap: 16px; padding: 14px 18px; }
.skeleton-diag-cell { height: 1rem; width: 80%; }
.skeleton-diag-cell.num { width: 30%; }
.skeleton-diag-cell.action { width: 50%; justify-self: end; }
.skeleton-table-row > td {
  height: 46px;
}
.skeleton-table-cell {
  height: 12px;
  width: 78%;
}
.skeleton-table-cell.w-95 { width: 95%; }
.skeleton-table-cell.w-90 { width: 90%; }
.skeleton-table-cell.w-70 { width: 70%; }
.skeleton-table-cell.w-60 { width: 60%; }
.skeleton-table-cell.w-50 { width: 50%; }
.skeleton-table-cell.w-40 { width: 40%; }
.skeleton-table-cell.w-30 { width: 30%; }
.skeleton-table-cell.w-100 { width: 100%; }
.skeleton-table-cell.round { border-radius: 9999px; }
.skeleton-table-cell.media { width: 36px; height: 36px; border-radius: 6px; }
.skeleton-table-cell.avatar { width: 34px; height: 34px; border-radius: 50%; }
.skeleton-table-cell.stack { height: 22px; }
.skeleton-table-cell.right { margin-left: auto; }
.skeleton-table-cell.right.w-50 { width: 80px; }
.skeleton-badge-inline {
  display: inline-block;
  min-width: 28px;
  height: 1rem;
  vertical-align: middle;
  color: transparent !important;
  border-radius: 4px;
}
.skeleton-stat-inline {
  display: inline-block;
  min-width: 110px;
  height: 1rem;
  vertical-align: middle;
  color: transparent !important;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation-duration: 3s; }
}
#adminDashboardView[hidden] {
  display: none !important;
}
.access-denied-view {
  position: fixed;
  inset: 0;
  background: var(--admin-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}
.access-denied-view[hidden] {
  display: none !important;
}
.access-denied-card {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 24px;
  padding: 40px 30px;
  max-width: 440px;
  text-align: center;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.1);
}
.access-denied-icon {
  width: 64px;
  height: 64px;
  background: #fee2e2;
  color: #ef4444;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  margin: 0 auto 20px;
}
.admin-navbar {
  height: 68px;
  background: #ffffff;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  padding: 6px 14px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}
.admin-brand img {
  height: 26px;
  width: auto;
  display: block;
}
.admin-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
}
.admin-badge-pill.superadmin {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.3);
}
.admin-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 1;
  min-width: 0;
}
@media (max-width: 768px) {
  .admin-navbar {
    padding: 0 12px;
  }
  .admin-badge-pill {
    display: none !important;
  }
  .admin-nav-right {
    gap: 6px;
  }
  .admin-nav-right .nav-btn-text {
    display: none !important;
  }
  .admin-nav-right .admin-user-info {
    display: none !important;
  }
  .admin-return-app-btn,
  #adminLogoutBtn {
    padding: 7px 10px !important;
  }
}
.admin-return-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--admin-primary);
  background: var(--admin-primary-light);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
}
.admin-return-app-btn:hover {
  background: #bae6fd;
  transform: translateY(-1px);
}
.admin-container {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 68px);
}
.admin-sidebar {
  width: 260px;
  background: #ffffff;
  border-right: 1px solid var(--admin-border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.admin-sidebar-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--admin-text-muted);
  letter-spacing: 0.8px;
  padding: 0 12px;
  margin-bottom: 12px;
}
.admin-nav-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--admin-text-muted);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}
.admin-tab-btn i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}
.admin-tab-btn:hover {
  background: #f1f5f9;
  color: var(--admin-text-main);
}
.admin-tab-btn.active {
  background: var(--admin-primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}
.tab-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #e2e8f0;
  color: var(--admin-text-main);
}
.admin-tab-btn.active .tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.admin-main {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  max-width: 1300px;
}
.admin-tab-content {
  display: none;
}
.admin-tab-content.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-section-header h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--admin-text-main);
  margin-bottom: 4px;
}
.admin-section-header p {
  color: var(--admin-text-muted);
  font-size: 14px;
}
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.admin-stat-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}
.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.stat-icon.blue { background: #e0f2fe; color: #0284c7; }
.stat-icon.teal { background: #ccfbf1; color: #0f766e; }
.stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.stat-icon.amber { background: #fef3c7; color: #d97706; }
.stat-details {
  display: flex;
  flex-direction: column;
}
.stat-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--admin-text-muted);
  margin-bottom: 4px;
}
.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--admin-text-main);
  line-height: 1;
}
.admin-overview-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}
@media (max-width: 991px) {
  .admin-overview-grid {
    grid-template-columns: 1fr;
  }
}
.admin-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}
.admin-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--admin-text-main);
}
.ai-diagnostics-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}
@media (max-width: 991px) {
  .ai-diagnostics-grid {
    grid-template-columns: 1fr;
  }
}
.class-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 20px;
}
.class-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--admin-text-main);
}
.class-chip.active-class {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0369a1;
}
.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}
.ai-test-stage {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.ai-test-stage video,
.ai-test-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
#diagnosticPlaceholder {
  color: #94a3b8;
  text-align: center;
  font-size: 14px;
}
.ai-result-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 14px 18px;
}
.ai-result-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--admin-primary);
}
.ai-result-meta {
  font-size: 12px;
  color: var(--admin-text-muted);
  margin-top: 2px;
}
.log-terminal {
  background: #0f172a;
  color: #38bdf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  height: 120px;
  overflow-y: auto;
  line-height: 1.6;
  margin-top: 6px;
}
.gesture-studio-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 992px) {
  .gesture-studio-grid {
    grid-template-columns: 1fr;
  }
}
.gesture-stage-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0f172a;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.2);
}
.gesture-stage-box video,
.gesture-stage-box canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
.recorder-countdown-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  display: grid;
  place-items: center;
  z-index: 10;
}
.recorder-countdown-number {
  font-size: 82px;
  font-weight: 900;
  color: #38bdf8;
  text-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
  animation: countdownPulse 0.85s ease infinite alternate;
}
@keyframes countdownPulse {
  from { transform: scale(0.9); opacity: 0.8; }
  to { transform: scale(1.15); opacity: 1; }
}
.recorder-progress-wrap {
  background: #f1f5f9;
  border-radius: 9999px;
  height: 10px;
  overflow: hidden;
  margin: 12px 0 6px;
}
.recorder-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-radius: 9999px;
  transition: width 0.05s linear;
}
.landmark-matrix-box {
  background: #0f172a;
  color: #a5f3fc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  padding: 12px;
  border-radius: 12px;
  height: 130px;
  overflow-y: auto;
  line-height: 1.5;
  border: 1px solid #1e293b;
}
.superadmin-lock-screen {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px dashed #cbd5e1;
  max-width: 540px;
  margin: 40px auto;
}
.superadmin-lock-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
  font-size: 32px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  box-shadow: 0 12px 28px -6px rgba(217, 119, 6, 0.25);
}
.admin-table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 8px 14px;
  min-width: 280px;
}
.admin-search-input input {
  border: 0;
  outline: none;
  font-size: 13.5px;
  width: 100%;
  color: var(--admin-text-main);
}
.admin-table-container {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}
.admin-table th {
  background: #f8fafc;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--admin-text-muted);
  border-bottom: 1px solid var(--admin-border);
  white-space: nowrap;
}
.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.admin-table tr:last-child td {
  border-bottom: 0;
}
.admin-table tr:hover td {
  background: #f8fafc;
}
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--admin-border);
}
.table-pagination .admin-btn {
  padding: 8px 16px;
  font-size: 13px;
}
.table-pagination .admin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.table-sign-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #f1f5f9;
  border: 1px solid var(--admin-border);
}
.table-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
}
.role-badge.superadmin {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
  border: 1px solid #fcd34d;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.15);
}
.role-badge.admin {
  background: #e0f2fe;
  color: #0369a1;
}
.role-badge.user {
  background: #f1f5f9;
  color: var(--admin-text-muted);
}
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.admin-btn.primary {
  background: var(--admin-primary);
  color: #ffffff;
}
.admin-btn.primary:hover {
  background: var(--admin-primary-hover);
  transform: translateY(-1px);
}
.admin-btn.secondary {
  background: #f1f5f9;
  color: var(--admin-text-main);
  border: 1px solid var(--admin-border);
}
.admin-btn.secondary:hover {
  background: #e2e8f0;
}
.admin-btn.danger {
  background: #fee2e2;
  color: #ef4444;
}
.admin-btn.danger:hover {
  background: #fecaca;
}
.admin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.admin-form-group {
  margin-bottom: 16px;
}
.admin-form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--admin-text-main);
}
.admin-form-input,
.admin-form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  background: #ffffff;
  color: var(--admin-text-main);
}
.admin-form-input:focus,
.admin-form-textarea:focus {
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.admin-form-textarea {
  min-height: 80px;
  resize: vertical;
}
.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999;
}
.admin-modal-backdrop[hidden] {
  display: none !important;
}
.admin-modal-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.25);
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.admin-logout-card {
  position: relative;
  max-width: 440px;
  text-align: center;
  padding: 38px 32px 30px;
}
.admin-logout-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: #f1f5f9;
  color: var(--admin-text-muted);
  display: grid;
  place-items: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.admin-logout-close:hover {
  background: #e2e8f0;
  color: var(--admin-text-main);
  transform: scale(1.05);
}
.admin-logout-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #ef4444;
  font-size: 28px;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -6px rgba(239, 68, 68, 0.3);
}
.admin-logout-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--admin-text-main);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.admin-logout-subtitle {
  color: var(--admin-text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 28px;
}
.admin-logout-actions {
  display: flex;
  gap: 12px;
}
.admin-logout-btn {
  flex: 1;
  padding: 12px 18px;
  font-size: 14px;
  border-radius: 14px;
  font-weight: 700;
}
.admin-confirm-card {
  position: relative;
  max-width: 460px;
  text-align: center;
  padding: 34px 28px 28px;
  border-radius: 24px;
}
.admin-confirm-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 26px;
  transition: all 0.2s ease;
}
.admin-confirm-icon.promote {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: #0284c7;
  box-shadow: 0 10px 24px -4px rgba(2, 132, 199, 0.3);
}
.admin-confirm-icon.demote {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #ef4444;
  box-shadow: 0 10px 24px -4px rgba(239, 68, 68, 0.3);
}
.admin-confirm-icon.danger {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #ef4444;
  box-shadow: 0 10px 24px -4px rgba(239, 68, 68, 0.3);
}
.admin-confirm-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--admin-text-main);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.admin-confirm-user-box {
  background: #f8fafc;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.admin-confirm-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-role-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px dashed var(--admin-border);
  font-size: 13px;
  font-weight: 700;
}
.admin-confirm-desc {
  color: var(--admin-text-muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 22px;
}
.admin-confirm-actions {
  display: flex;
  gap: 12px;
}
.admin-confirm-actions .admin-btn {
  flex: 1;
  padding: 12px 18px;
  font-size: 14px;
  border-radius: 14px;
  font-weight: 700;
}
@media (max-width: 768px) {
  .admin-container {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--admin-border);
    padding: 10px;
  }
  .admin-sidebar-title {
    display: none;
  }
  .admin-nav-tabs {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding-bottom: 2px;
  }
  .admin-nav-tabs::-webkit-scrollbar {
    display: none;
  }
  .admin-tab-btn {
    white-space: nowrap;
    padding: 8px 12px;
    flex-shrink: 0;
  }
  .admin-main {
    padding: 16px 12px;
  }
  .admin-navbar {
    padding: 0 14px;
    min-height: 60px;
  }
  .admin-search-input {
    min-width: 100%;
  }
}
.gesture-success-card {
  max-width: 460px;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 36px 30px 30px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 25px 60px -15px rgba(2, 132, 199, 0.25), 0 0 0 1px rgba(2, 132, 199, 0.1);
  animation: gestureCardPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes gestureCardPop {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(24px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.confetti-burst {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}
.confetti-dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: confettiFloat 1.8s ease-out infinite;
}
.confetti-dot.c1 { width: 8px; height: 8px; background: #38bdf8; top: 15%; left: 20%; animation-delay: 0.1s; }
.confetti-dot.c2 { width: 10px; height: 10px; background: #818cf8; top: 22%; right: 18%; animation-delay: 0.3s; }
.confetti-dot.c3 { width: 6px; height: 6px; background: #fbbf24; top: 35%; left: 14%; animation-delay: 0.5s; }
.confetti-dot.c4 { width: 9px; height: 9px; background: #34d399; top: 18%; right: 28%; animation-delay: 0.2s; }
.confetti-dot.c5 { width: 7px; height: 7px; background: #f472b6; top: 28%; left: 26%; animation-delay: 0.4s; }
.confetti-dot.c6 { width: 8px; height: 8px; background: #0284c7; top: 12%; right: 14%; animation-delay: 0.6s; }
@keyframes confettiFloat {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.5);
  }
  40% {
    opacity: 0.9;
    transform: translateY(-15px) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px) scale(0.8);
  }
}
.gesture-success-icon-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}
.gesture-success-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.2);
  animation: successPulseRing 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}
@keyframes successPulseRing {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.45);
    opacity: 0;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}
.gesture-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #075985 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 30px;
  box-shadow: 0 12px 28px -6px rgba(2, 132, 199, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 2;
  animation: iconSpring 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
@keyframes iconSpring {
  0% {
    transform: scale(0) rotate(-45deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}
.gesture-success-title {
  font-size: 23px;
  font-weight: 800;
  color: var(--admin-text-main);
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}
.gesture-success-subtitle {
  font-size: 13.5px;
  color: var(--admin-text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}
.gesture-success-details {
  background: #f8fafc;
  border: 1px solid var(--admin-border);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.gesture-success-details .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}
.gesture-success-details .detail-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--admin-text-muted);
  font-weight: 500;
}
.gesture-success-details .detail-label i {
  color: #0284c7;
  font-size: 13px;
}
.gesture-success-details .detail-value {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.gesture-success-details .detail-value.text-primary {
  color: #0284c7;
  font-size: 15px;
}
.gesture-success-details .detail-badge {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 8px;
  border: 1px solid #bae6fd;
}
.gesture-success-details .detail-sync-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #059669;
  font-size: 12.5px;
}
.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.6s infinite;
}
@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}
.gesture-success-actions {
  display: flex;
  gap: 12px;
}
.gesture-success-actions .admin-btn {
  padding: 12px 18px;
  font-size: 14px;
  border-radius: 14px;
  font-weight: 700;
}
.select-sign-card {
  max-width: 500px;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 34px 28px 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 25px 60px -15px rgba(245, 158, 11, 0.25), 0 0 0 1px rgba(245, 158, 11, 0.12);
  animation: gestureCardPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.select-sign-icon-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
}
.select-sign-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.22);
  animation: warningPulseRing 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}
@keyframes warningPulseRing {
  0% {
    transform: scale(0.85);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.45);
    opacity: 0;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}
.select-sign-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: 0 12px 28px -6px rgba(217, 119, 6, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.35);
  position: relative;
  z-index: 2;
  animation: iconSpring 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
.select-sign-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto 10px;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
  border: 1px solid #fcd34d;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.select-sign-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--admin-text-main);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.select-sign-subtitle {
  font-size: 13.5px;
  color: var(--admin-text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}
.select-sign-body {
  background: #f8fafc;
  border: 1px solid var(--admin-border);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 22px;
  text-align: left;
}
.select-sign-divider {
  display: flex;
  align-items: center;
  margin: 12px 0 14px;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
}
.select-sign-divider::before,
.select-sign-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px dashed #cbd5e1;
}
.select-sign-divider span {
  padding: 0 10px;
}
.select-sign-input {
  border-color: #cbd5e1;
  background: #ffffff;
  transition: all 0.2s ease;
}
.select-sign-input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.quick-pick-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.quick-pick-title {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
}
.quick-pick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.quick-chip {
  padding: 5px 11px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.quick-chip:hover {
  background: #f0f9ff;
  border-color: #38bdf8;
  color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px -2px rgba(2, 132, 199, 0.15);
}
.quick-chip:active,
.quick-chip.is-selected {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  transform: scale(0.96);
}
.select-sign-actions {
  display: flex;
  gap: 12px;
}
.select-sign-btn {
  padding: 12px 18px;
  font-size: 13.5px;
  border-radius: 14px;
  font-weight: 700;
}
.select-sign-btn.primary {
  flex: 1.5;
}
.select-sign-btn.secondary {
  flex: 1;
}
.studio-warning-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
  box-shadow: 0 4px 14px -2px rgba(245, 158, 11, 0.15);
  animation: bannerSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes bannerSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.studio-warning-banner-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f59e0b;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.3);
}
.studio-warning-banner-text {
  font-size: 13px;
  color: #92400e;
  line-height: 1.45;
  flex: 1;
}
.studio-warning-banner-text strong {
  font-weight: 800;
  color: #78350f;
}
.studio-warning-banner-close {
  background: transparent;
  border: 0;
  color: #b45309;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
}
.studio-warning-banner-close:hover {
  background: rgba(245, 158, 11, 0.2);
  color: #78350f;
}
.input-warning-glow {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25), 0 4px 12px rgba(245, 158, 11, 0.15) !important;
  animation: inputShake 0.4s ease-in-out;
}
@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
.req-hand-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}
.req-hand-pill.hand-right {
  background: #f0f9ff;
  color: #0369a1;
  border-color: #bae6fd;
}
.req-hand-pill.hand-left {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}
.req-hand-pill.hand-both {
  background: #faf5ff;
  color: #7e22ce;
  border-color: #e9d5ff;
}
.custom-combobox {
  position: relative;
}
.custom-combobox-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  margin-top: 6px;
  display: none;
}
.custom-combobox-option {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14.5px;
  color: #1e293b;
  transition: background 0.15s;
  border-bottom: 1px solid #f1f5f9;
}
.custom-combobox-option:last-child {
  border-bottom: none;
}
.custom-combobox-option:hover {
  background: #f8fafc;
}
.custom-combobox-option strong {
  color: #0f172a;
}
.custom-combobox-option span {
  color: #64748b;
  font-size: 13px;
  margin-left: 6px;
}.recorder-countdown-overlay[hidden] { display: none !important; }
