:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f8;
  color: #17202a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: #1f7a4d;
  color: white;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 650;
}

button.secondary {
  background: #e7ecef;
  color: #1b2733;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfd8dc;
  border-radius: 6px;
  padding: 8px 10px;
  background: white;
}

label {
  display: grid;
  gap: 6px;
  color: #40515f;
  font-size: 14px;
  font-weight: 600;
}

h1 {
  margin: 0 0 18px;
  font-size: 22px;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.panel {
  background: white;
  border: 1px solid #dce3e8;
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(20, 35, 45, 0.04);
}

.auth-panel {
  width: min(420px, 100%);
}

.brand {
  margin-bottom: 12px;
  color: #1f7a4d;
  font-weight: 800;
}

.stack {
  display: grid;
  gap: 14px;
}

.hidden {
  display: none !important;
}

.message {
  min-height: 20px;
  margin: 14px 0 0;
  color: #b42318;
}

.topbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid #dce3e8;
  background: white;
}

.topbar div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar span {
  color: #64717c;
}

.page {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  align-items: start;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid #e8edf1;
  text-align: left;
}

th {
  color: #52616d;
  font-size: 12px;
  text-transform: uppercase;
}

.status-line {
  padding: 14px;
  border-radius: 6px;
  background: #eef6f2;
  color: #163f2c;
  font-weight: 650;
}

.qr-wrap {
  margin-top: 18px;
}

.qr-wrap img {
  width: 260px;
  height: 260px;
  border: 1px solid #dce3e8;
  border-radius: 8px;
}

@media (max-width: 760px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 0 14px;
  }

  .page {
    padding: 14px;
  }
}
