:root {
  color-scheme: light;
  --bg: #f4efe4;
  --card: rgba(255, 252, 245, 0.88);
  --text: #1c1b18;
  --muted: #66604f;
  --accent: #0e9f6e;
  --accent-strong: #0a7c55;
  --line: rgba(28, 27, 24, 0.08);
  --shadow: 0 20px 40px rgba(34, 27, 14, 0.08);
  font-family: "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 206, 130, 0.45), transparent 34%),
    linear-gradient(180deg, #f8f3e8 0%, var(--bg) 100%);
  color: var(--text);
}

.app-shell {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.hero,
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  padding: 24px;
  margin-bottom: 16px;
}

.hero h1,
.card h2 {
  margin: 0;
}

.hero p,
.hint,
.field span,
.summary p {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(14, 159, 110, 0.12);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 600;
}

.card {
  padding: 20px;
  margin-bottom: 16px;
}

.scope-grid {
  display: grid;
  gap: 10px;
}

.scope-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chip,
.primary-button {
  appearance: none;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font: inherit;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.chip {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(28, 27, 24, 0.08);
  color: var(--text);
}

.chip.is-active {
  background: linear-gradient(135deg, #0e9f6e, #0b7d58);
  color: #fff;
  box-shadow: 0 12px 24px rgba(14, 159, 110, 0.22);
}

.chip:active,
.primary-button:active {
  transform: scale(0.98);
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(28, 27, 24, 0.12);
  background: #fff;
  color: var(--text);
  font: inherit;
}

.summary {
  padding-bottom: 8px;
}

.primary-button {
  width: 100%;
  padding: 18px 20px;
  background: linear-gradient(135deg, #111827, #0e9f6e);
  color: #fff;
  box-shadow: 0 18px 30px rgba(17, 24, 39, 0.18);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 20px, 720px);
    padding-top: 16px;
  }

  .scope-grid,
  .date-grid {
    grid-template-columns: 1fr;
  }
}
