:root {
  --bg: #f8fafc;
  --fg: #0f172a;
  --border: #cbd5e1;
  --muted: #64748b;
  --surface: #ffffff;
  --primary: #2d8a4e;
  --primary-dark: #236b3d;
  --primary-soft: #dcfce7;
  --success: #059669;
  --success-soft: #d1fae5;
  --warning: #d97706;
  --warning-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --accent-looking: #7c3aed;
  --accent-looking-soft: #ede9fe;
  --touch-min: 48px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --font-body: 17px;
  --font-small: 14px;
  --font-heading: 22px;
  --font-title: 28px;
  --line: 1.45;
  --border-width: 1px;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 640px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: var(--font-body);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: var(--line);
  min-height: 100vh;
  min-height: 100dvh;
}

h1, h2, h3 {
  margin: 0 0 var(--space-md);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: var(--font-title); }
h2 { font-size: var(--font-heading); }
h3 { font-size: var(--font-body); }

p {
  margin: 0 0 var(--space-md);
}

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

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

input,
select,
textarea {
  width: 100%;
  padding: var(--space-md);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  min-height: var(--touch-min);
}

select {
  appearance: auto;
  -webkit-appearance: menulist;
  font-weight: 600;
  cursor: pointer;
}

label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  font-size: var(--font-small);
}

.field {
  margin-bottom: var(--space-lg);
}

.muted {
  color: var(--muted);
  font-size: var(--font-small);
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
