:root {
  --navy: #0b1f33;
  --navy-soft: #12304d;
  --copper: #c89f65;
  --champagne: #f3e4c7;
  --paper: #f7f8fb;
  --ink: #172033;
  --muted: #687386;
  --danger: #b42318;
  --success: #067647;
  --border: #d7dde8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 24px;
  background: var(--navy);
  color: white;
  border-bottom: 4px solid var(--copper);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--copper);
  color: var(--navy);
  border-radius: 8px;
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav button,
.nav a,
.btn {
  border: 1px solid transparent;
  background: var(--navy-soft);
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

.nav button:hover,
.nav a:hover,
.btn:hover {
  border-color: var(--copper);
}

.btn.primary {
  background: var(--copper);
  color: var(--navy);
  font-weight: 800;
}

.btn.ghost {
  background: white;
  color: var(--navy);
  border-color: var(--border);
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 48px;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #071829, #12304d);
}

.auth-card,
.panel,
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(12, 31, 51, 0.09);
}

.auth-card {
  width: min(460px, 100%);
  padding: 30px;
}

.panel {
  padding: 24px;
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.card {
  padding: 18px;
}

.metric {
  font-size: 32px;
  font-weight: 900;
  color: var(--navy);
}

.muted {
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  gap: 6px;
}

label {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef2f7;
  color: var(--navy);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--champagne);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.alert.error {
  color: var(--danger);
  background: #fff0ed;
}

.alert.success {
  color: var(--success);
  background: #ecfdf3;
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .shell {
    width: min(100% - 20px, 1180px);
  }
}
