:root {
  --bg: #f6f1e7;
  --surface: #ffffff;
  --surface-2: #efe8da;
  --text: #22303a;
  --muted: #66727b;
  --line: #ddd3c2;
  --accent: #1f7a8c;
  --accent-text: #ffffff;
  --danger: #c2413a;
  --shadow: 0 1px 2px rgba(34, 48, 58, 0.06), 0 6px 20px rgba(34, 48, 58, 0.08);
  --radius: 14px;
  --font: ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131b21;
    --surface: #1c262e;
    --surface-2: #24313a;
    --text: #e9eef1;
    --muted: #9aa8b2;
    --line: #2f3e48;
    --accent: #4fb3c6;
    --accent-text: #0d1a20;
    --danger: #ef7a72;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
}

.btn:hover {
  border-color: var(--accent);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.btn.small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.9rem;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

input[type='text'],
select {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
}

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