.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.btn + .btn { margin-left: 8px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary {
  border-color: #d7e2ff;
  background: var(--secondary);
  color: #2247a9;
}

.input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.table {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.table th,
.table td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 10px 12px;
  font-size: 14px;
}
.table th {
  font-weight: 700;
  background: #fafbff;
}
.table tr:last-child td { border-bottom: 0; }

.badge {
  display: inline-block;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
}
.badge.success { color: #0b6d3f; background: #e8f8ef; }
.badge.error { color: #8f1f1f; background: #ffeaea; }

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.45);
}
.modal.is-open { display: flex; }
.modal-content {
  width: min(92vw, 360px);
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
}
.modal-content p { margin-bottom: 12px; }
