[x-cloak] { display: none !important; }
* { scrollbar-width: thin; scrollbar-color: rgba(100, 116, 139, .7) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, .55); border-radius: 999px; }
*::-webkit-scrollbar-track { background: transparent; }

html { text-rendering: optimizeLegibility; }
body { letter-spacing: -0.01em; }

.glass { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.field {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 225, .85);
  background: rgba(248, 250, 252, .8);
  padding: .7rem .85rem;
  color: #0f172a;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field:focus {
  border-color: rgba(20, 151, 97, .72);
  box-shadow: 0 0 0 4px rgba(32, 185, 120, .14);
  background: #fff;
}
.dark .field {
  border-color: rgba(255, 255, 255, .1);
  background: rgba(15, 23, 42, .72);
  color: #fff;
}
.dark .field:focus { background: rgba(15, 23, 42, .95); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #020617;
  color: #fff;
  font-weight: 600;
  padding: .65rem 1rem;
  transition: transform .16s ease, opacity .16s ease, background .16s ease;
}
.btn-primary:hover { transform: translateY(-1px); background: #0f172a; }
.btn-primary:disabled { opacity: .55; transform: none; }
.dark .btn-primary { background: #fff; color: #020617; }
.dark .btn-primary:hover { background: #dbeafe; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, .8);
  color: #475569;
  padding: .6rem .9rem;
  transition: background .16s ease, color .16s ease;
}
.btn-secondary:hover { background: #f8fafc; color: #0f172a; }
.dark .btn-secondary { border-color: rgba(255, 255, 255, .1); color: #cbd5e1; }
.dark .btn-secondary:hover { background: rgba(255, 255, 255, .06); color: #fff; }

.chip {
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, .78);
  padding: .42rem .7rem;
  color: #475569;
  background: rgba(255, 255, 255, .62);
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.chip:hover { background: #fff; color: #020617; }
.dark .chip { border-color: rgba(255,255,255,.1); color: #cbd5e1; background: rgba(15,23,42,.56); }
.dark .chip:hover { background: rgba(255,255,255,.08); color: #fff; }

.nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  border-radius: 14px;
  padding: .62rem .75rem;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.nav-item:hover { transform: translateX(1px); }
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
}
.nav-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}
.nav-active { background: #020617; color: #fff; }
.dark .nav-active { background: #fff; color: #020617; }
.nav-idle { color: #475569; }
.nav-idle:hover { background: rgba(241, 245, 249, .9); color: #0f172a; }
.dark .nav-idle { color: #cbd5e1; }
.dark .nav-idle:hover { background: rgba(255, 255, 255, .06); color: #fff; }

.panel,
.metric-card,
.info-card,
.table-card {
  border: 1px solid rgba(226, 232, 240, .95);
  background: rgba(255, 255, 255, .86);
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.dark .panel,
.dark .metric-card,
.dark .info-card,
.dark .table-card {
  border-color: rgba(255, 255, 255, .09);
  background: rgba(15, 23, 42, .66);
}

.metric-card { padding: 1.15rem; }
.metric-label { font-size: .75rem; color: #64748b; }
.dark .metric-label { color: #94a3b8; }
.metric-value { margin-top: .5rem; font-size: 2rem; line-height: 1; font-weight: 700; letter-spacing: -.04em; }

.info-card { padding: 1.2rem; }
.info-card h4 { margin-top: .75rem; font-weight: 650; color: #0f172a; }
.info-card p { margin-top: .4rem; color: #64748b; font-size: .875rem; line-height: 1.55; }
.dark .info-card h4 { color: #fff; }
.dark .info-card p { color: #94a3b8; }
.info-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f1f5f9;
  color: #0f172a;
}
.dark .info-icon { background: rgba(255,255,255,.08); color: #fff; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.section-head h3 { font-weight: 650; font-size: 1.15rem; letter-spacing: -.03em; }
.section-kicker {
  text-transform: uppercase;
  font-size: .68rem;
  letter-spacing: .08em;
  color: #64748b;
  margin-bottom: .15rem;
}
.dark .section-kicker { color: #94a3b8; }

.table-card { overflow: hidden; }
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .875rem;
}
.data-table thead { background: rgba(248, 250, 252, .88); }
.dark .data-table thead { background: rgba(255, 255, 255, .04); }
.data-table th {
  padding: .8rem 1rem;
  text-align: left;
  font-size: .72rem;
  font-weight: 650;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.dark .data-table th { color: #94a3b8; }
.data-table td {
  padding: .9rem 1rem;
  border-top: 1px solid rgba(226, 232, 240, .82);
}
.dark .data-table td { border-top-color: rgba(255,255,255,.08); }
.muted { color: #64748b; }
.dark .muted { color: #94a3b8; }
.badge {
  display: inline-flex;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  padding: .28rem .55rem;
  font-size: .72rem;
  font-weight: 600;
}
.dark .badge { background: rgba(255,255,255,.08); color: #cbd5e1; }
.empty-cell {
  padding: 2.25rem 1rem !important;
  text-align: center;
  color: #64748b;
}
.dark .empty-cell { color: #94a3b8; }

.link-action { color: #117951; font-size: .78rem; font-weight: 600; }
.link-action:hover { text-decoration: underline; }
.link-danger { color: #dc2626; font-size: .78rem; font-weight: 600; }
.link-danger:hover { text-decoration: underline; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 6, 23, .58);
}
.modal-card {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, .95);
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 24px 90px rgba(2, 6, 23, .22);
}
.dark .modal-card {
  border-color: rgba(255,255,255,.1);
  background: #0f172a;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fadeIn { animation: fadeIn .22s ease-out; }
