:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #1c2730;
  --muted: #60717f;
  --line: #d9e0e6;
  --accent: #146c72;
  --accent-strong: #0e555a;
  --warning: #9a6a00;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 750;
  color: var(--ink);
}

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

.nav form {
  margin: 0;
}

.page {
  width: min(1160px, calc(100vw - 32px));
  margin: 32px auto;
}

.section-header {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent-strong);
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 32px;
  line-height: 1.15;
}

h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

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

.auth-layout {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
}

.auth-panel,
.panel,
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(35, 48, 60, 0.06);
}

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

.primary-action,
button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button.secondary {
  background: #eef3f5;
  color: var(--ink);
}

.primary-action {
  width: 100%;
  margin: 18px 0 4px;
}

.notice,
.message {
  padding: 12px 14px;
  border-radius: 6px;
  background: #fff7db;
  color: var(--warning);
  border: 1px solid #ecd98e;
}

.messages {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.qa-panel {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.two-column {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 20px;
}

.panel {
  padding: 22px;
}

.stacked-form,
.qa-panel {
  display: grid;
  gap: 14px;
}

label,
.field-group {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.text-input,
input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
}

.checkbox-list {
  display: grid;
  gap: 6px;
  padding: 0;
  list-style: none;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.metric {
  padding: 18px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.metric strong {
  font-size: 22px;
  line-height: 1.2;
}

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

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

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

.plain-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

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

  .topbar {
    gap: 10px;
    padding: 18px;
  }

  .two-column,
  .metric-grid {
    grid-template-columns: 1fr;
  }
}
