.nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  font-weight: 600;
  color: rgb(51 65 85);
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: rgb(241 245 249);
}

.nav-btn.active {
  background: rgb(14 165 233 / 0.12);
  color: rgb(3 105 161);
}

.metric-card {
  border-radius: 1.75rem;
  background: white;
  border: 1px solid rgb(226 232 240);
  padding: 1.35rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.metric-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgb(100 116 139);
}

.metric-value {
  margin-top: 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 900;
  color: rgb(15 23 42);
}

.card {
  border-radius: 2rem;
  background: white;
  border: 1px solid rgb(226 232 240);
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: rgb(15 23 42);
}

.card-subtitle {
  margin-top: 0.25rem;
  font-size: 0.92rem;
  color: rgb(100 116 139);
}

.field {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgb(203 213 225);
  background: white;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field:focus {
  border-color: rgb(14 165 233);
  box-shadow: 0 0 0 4px rgb(14 165 233 / 0.12);
}

.primary-btn,
.secondary-btn,
.shortcut-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  font-weight: 700;
  transition: all 0.2s ease;
  min-height: 3rem;
  padding: 0.9rem 1.25rem;
}

.primary-btn {
  background: rgb(14 165 233);
  color: rgb(2 6 23);
}

.primary-btn:hover {
  background: rgb(56 189 248);
}

.secondary-btn {
  border: 1px solid rgb(203 213 225);
  background: white;
  color: rgb(15 23 42);
}

.secondary-btn:hover,
.shortcut-btn:hover {
  background: rgb(241 245 249);
}

.shortcut-btn {
  border: 1px dashed rgb(148 163 184);
  background: rgb(248 250 252);
  color: rgb(15 23 42);
}

.table-wrap {
  overflow: auto;
  border-radius: 1.25rem;
  border: 1px solid rgb(226 232 240);
}

.data-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid rgb(226 232 240);
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  position: sticky;
  top: 0;
  background: rgb(248 250 252);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgb(100 116 139);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-green {
  background: rgb(220 252 231);
  color: rgb(22 101 52);
}

.badge-slate {
  background: rgb(241 245 249);
  color: rgb(51 65 85);
}

.badge-red {
  background: rgb(254 226 226);
  color: rgb(153 27 27);
}

.activity-item {
  border-radius: 1.25rem;
  border: 1px solid rgb(226 232 240);
  padding: 1rem;
}

.prose h1,
.prose h2,
.prose h3 { color: rgb(15 23 42); }
.prose p, .prose li { color: rgb(51 65 85); }

.progress-track {
  position: relative;
  width: 100%;
  height: 0.7rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(226 232 240);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgb(14 165 233), rgb(56 189 248));
}

.progress-fill-amber {
  background: linear-gradient(90deg, rgb(245 158 11), rgb(251 191 36));
}

.progress-fill-emerald {
  background: linear-gradient(90deg, rgb(16 185 129), rgb(52 211 153));
}

.progress-fill-rose {
  background: linear-gradient(90deg, rgb(244 63 94), rgb(251 113 133));
}

.usage-strikes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.usage-slot {
  position: relative;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  border: 1px solid rgb(148 163 184);
  background: white;
}

.usage-slot.used {
  background: rgb(14 165 233 / 0.12);
  border-color: rgb(14 165 233 / 0.28);
}

.usage-slot.used::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -0.15rem;
  width: 2px;
  height: 1.9rem;
  border-radius: 999px;
  background: rgb(3 105 161);
  transform: translateX(-50%) rotate(40deg);
}

.usage-slot.infinite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 2.7rem;
  padding: 0 0.55rem;
  border-style: dashed;
  font-size: 0.8rem;
  font-weight: 800;
  color: rgb(51 65 85);
}

.client-cell-stack {
  min-width: 15rem;
}

.client-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.client-muted {
  font-size: 0.78rem;
  color: rgb(100 116 139);
}

.client-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.client-actions .secondary-btn {
  min-height: 2.25rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgb(15 23 42 / 0.55);
  backdrop-filter: blur(10px);
}

.modal-card {
  width: min(100%, 48rem);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: 2rem;
  border: 1px solid rgb(226 232 240);
  background: white;
  padding: 1.25rem;
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.35);
}

.history-item {
  border-radius: 1rem;
  border: 1px solid rgb(226 232 240);
  padding: 0.9rem 1rem;
}

.history-item strong {
  color: rgb(15 23 42);
}

.data-table {
  min-width: 1180px;
}


.primary-btn:disabled,
.secondary-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#globalToast {
  backdrop-filter: blur(10px);
}
