:root {
  color-scheme: dark;
  --bg: #05090d;
  --rail: #071015;
  --panel: #101822;
  --panel-2: #142230;
  --line: rgba(98, 223, 240, 0.2);
  --text: #f8fafc;
  --muted: #a9b7c6;
  --cyan: #62dff0;
  --gold: #f8d85c;
  --danger: #ff6b6b;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

button {
  font: inherit;
}

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  border-right: 1px solid var(--line);
  background: var(--rail);
  padding: 18px;
}

.mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 7px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(98, 223, 240, 0.25);
}

.mark img {
  display: block;
  width: 100%;
  height: 100%;
}

nav {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.nav-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.nav-button.active {
  border-color: var(--line);
  background: #0d1820;
  color: var(--cyan);
}

.app-shell {
  margin-left: 230px;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.eyebrow,
.tag,
.metric span,
.mini-card span,
.payment-lanes span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 20px;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  font-weight: 800;
}

.status-pill span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.metric-grid,
.card-grid,
.station-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric,
.approval-card,
.table-card,
.mini-card,
.payment-lanes article,
.station-grid article,
.report-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.metric {
  min-height: 180px;
  padding: 18px;
}

.metric strong {
  display: block;
  margin: 12px 0;
  color: var(--gold);
  font-size: 40px;
}

.approval-board {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.approval-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.actions button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  padding: 10px 14px;
  background: var(--gold);
  color: #111;
  font-weight: 900;
  cursor: pointer;
}

.actions .secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.actions .danger {
  background: #2a1519;
  color: var(--danger);
}

.section-head {
  max-width: 760px;
  margin-bottom: 18px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

th,
td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  text-align: left;
}

th {
  color: var(--cyan);
  font-size: 12px;
  text-transform: uppercase;
}

.mini-card,
.station-grid article,
.report-card {
  padding: 20px;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payment-lanes {
  display: grid;
  gap: 12px;
}

.payment-lanes article {
  padding: 18px;
}

.payment-lanes strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.report-card ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

@media (max-width: 920px) {
  .rail {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail nav {
    display: flex;
    flex-wrap: wrap;
  }

  .nav-button {
    text-align: center;
  }

  .app-shell {
    margin-left: 0;
    padding: 18px;
  }

  .topbar,
  .approval-card {
    align-items: flex-start;
    flex-direction: column;
    display: flex;
  }

  .metric-grid,
  .card-grid,
  .station-grid {
    grid-template-columns: 1fr;
  }
}
