:root {
  --bg: #f6f3ee;
  --panel: #ffffff;
  --text: #171717;
  --muted: #66615b;
  --line: #ded8cf;
  --accent: #1e6f5c;
  --accent-dark: #164d42;
  --danger: #9b1c1c;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.brand {
  font-weight: 800;
}

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

.container {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 40px 0;
}

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

.auth-panel,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(24, 20, 16, 0.06);
}

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

.page-header {
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

h2 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}

.form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
}

.button,
.link-button {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.primary {
  background: var(--accent);
  color: white;
}

.link-button {
  background: transparent;
  color: var(--muted);
  padding: 0;
}

.user-chip {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.panel {
  padding: 24px;
}

.wide {
  margin-top: 16px;
}

.metric {
  margin-bottom: 10px;
  font-size: 1.75rem;
  font-weight: 850;
}

.credentials {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.credentials p {
  margin-bottom: 6px;
}

.flash {
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 20px;
  background: white;
  border: 1px solid var(--line);
}

.alert {
  color: var(--danger);
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

.task-list {
  margin-bottom: 0;
  padding-left: 20px;
}

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

  .topbar nav {
    flex-wrap: wrap;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
