:root {
  --bg: oklch(98.5% 0.004 240);
  --surface: oklch(100% 0 0);
  --tint: oklch(96% 0.02 264);
  --text: oklch(22% 0.02 260);
  --text-muted: oklch(48% 0.02 260);
  --text-soft: oklch(55% 0.02 260);
  --border: oklch(90% 0.006 250);
  --primary: oklch(52% 0.16 264);
  --primary-dark: oklch(40% 0.15 264);
  --accent: oklch(58% 0.16 25);
  --success: oklch(40% 0.14 145);
  --success-bg: oklch(55% 0.14 145 / 15%);
  --warn: oklch(45% 0.16 25);
  --warn-bg: oklch(58% 0.16 25 / 14%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration: none; font-weight: 600; }
a:hover { color: var(--primary-dark); }

ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.5em; }

code {
  background: var(--tint);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9em;
}

/* Layout shells */
.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 40px 100px;
}

.shell-wide {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px;
}

.auth-shell {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auth-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.auth-card-header p { color: var(--text-muted); margin-top: 4px; }

.auth-card-footer {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* Buttons */
.btn-primary, button[type="submit"], input[type="submit"] {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  display: inline-block;
}
.btn-primary:hover, button[type="submit"]:hover, input[type="submit"]:hover { background: var(--primary-dark); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 22px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  display: inline-block;
}

button[type="submit"], input[type="submit"] { width: 100%; }

/* Forms */
form div { margin-bottom: 16px; }
label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }

input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

input[type="checkbox"], input[type="radio"] { width: 15px; height: 15px; margin-right: 6px; vertical-align: middle; }

.validation-summary-errors, .field-validation-error {
  color: var(--warn);
  font-size: 13px;
}
.validation-summary-errors ul { padding-left: 1.1em; margin: 0 0 16px; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 16px 0; }
th { text-align: left; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; padding: 0 10px 10px 0; }
td { font-size: 14px; padding: 12px 10px 12px 0; border-top: 1px solid var(--border); }

/* Pills / badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.pill-success { background: var(--success-bg); color: var(--success); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-neutral { background: var(--tint); color: var(--primary-dark); }

/* Callouts */
.callout {
  background: var(--surface);
  border: 1px solid oklch(58% 0.16 25 / 30%);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.callout-icon { flex-shrink: 0; margin-top: 2px; color: var(--accent); }

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand span { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 600; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.nav-links a { font-size: 14px; color: var(--text-muted); font-weight: 600; }
.nav-links a.current { color: var(--text); }
.nav-links form { display: inline; margin: 0; }
.nav-links button[type="submit"] {
  background: transparent; color: var(--text); border: 1px solid var(--border);
  padding: 8px 16px; font-size: 13.5px; width: auto;
}
.nav-links button[type="submit"]:hover { background: var(--tint); }
.nav-email { font-size: 14px; color: var(--text-muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 40px; }
.site-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand span { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-muted); font-weight: 600; }

.status-message { background: var(--success-bg); color: var(--success); border-radius: 8px; padding: 12px 16px; font-size: 14px; font-weight: 600; }
.muted { color: var(--text-muted); }
