:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #162033;
  background: #f3f6fb;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #135ad8; text-decoration: none; }
button, input, select { font: inherit; }

.topbar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: #fff;
  border-bottom: 1px solid #d9e1ee;
}

.brand { font-weight: 800; }
.topbar nav { display: flex; align-items: center; gap: 22px; }
.user-name { color: #667085; }
.inline-form { display: inline; margin: 0; }
.link-button { border: 0; background: none; color: #135ad8; cursor: pointer; padding: 0; }

.shell { max-width: 1500px; margin: 0 auto; padding: 34px; }
.page-heading { margin-bottom: 24px; }
.page-heading h1 { font-size: 2.4rem; margin: 4px 0 10px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; color: #135ad8; }
.lead { color: #667085; }

.card {
  background: #fff;
  border: 1px solid #d7e0ed;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 16px 35px rgba(30, 55, 90, .06);
}

.auth-card { max-width: 520px; margin: 70px auto; }
.form-grid { display: grid; gap: 20px; }
.form-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 650; }
.field input, .field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 0 13px;
  background: #fff;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.required-star { color: #dc2626; }
.form-actions { display: flex; gap: 10px; margin-top: 24px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  padding: 0 18px;
  background: #155bd7;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}
.button--secondary { background: #fff; color: #1f2a44; border: 1px solid #cbd5e1; }
.alert { border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; }
.alert--error { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.filter-card { margin-bottom: 22px; }
.table-card { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1150px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; background: #f8fafc; }
tbody tr:last-child td { border-bottom: 0; }
.nowrap { white-space: nowrap; }
.muted { color: #667085; font-size: .88rem; }
.empty-state { text-align: center; color: #667085; padding: 34px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }
.success-card { max-width: 700px; }

@media (max-width: 820px) {
  .shell { padding: 20px; }
  .topbar { padding: 0 20px; }
  .topbar nav { gap: 12px; }
  .form-grid--two, .form-grid--three { grid-template-columns: 1fr; }
}
