:root {
  --bg: #eff7ec;
  --surface: #ffffff;
  --ink: #14221a;
  --muted: #637367;
  --line: #d6e2d8;
  --green: #12624f;
  --green-dark: #0b4336;
  --lime: #dfff4f;
  --amber: #f2b84b;
  --red: #d94f45;
  --shadow: 0 24px 70px rgba(20, 34, 26, .12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at top right, #def5d7, transparent 32rem), var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select { font: inherit; }
.shell { width: min(1120px, 100%); margin: 0 auto; padding: 28px 18px 42px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: end;
  min-height: 34svh;
  padding: 24px 0 28px;
}
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: 0; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 16px; font-size: clamp(44px, 7vw, 82px); line-height: .98; letter-spacing: 0; }
h2 { margin-bottom: 0; font-size: 28px; line-height: 1.08; }
.subtitle { max-width: 660px; margin-bottom: 0; color: var(--muted); font-size: 20px; line-height: 1.45; }
.summaryCard {
  padding: 22px;
  border: 1px solid rgba(18, 98, 79, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow);
}
.summaryCard strong { display: block; margin-top: 14px; font-size: 42px; line-height: 1; }
.summaryCard p { margin: 12px 0 0; color: var(--muted); line-height: 1.35; }
.riskPill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--lime);
  font-size: 13px;
  font-weight: 900;
}
.riskPill.tight { background: #ffe29a; }
.riskPill.over { color: white; background: var(--red); }
.planner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 18px;
}
.tripForm, .budgetBoard, .insightPanel {
  border: 1px solid rgba(20, 34, 26, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
}
.tripForm {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.4fr .7fr 1fr .7fr;
  gap: 10px;
  padding: 14px;
}
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 800; }
input, select {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
}
.budgetBoard, .insightPanel { padding: 18px; }
.boardHeader { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 16px; }
#resetButton {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--ink);
  background: white;
  cursor: pointer;
}
.categoryList { display: grid; gap: 12px; }
.category {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 92px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}
.category strong { font-size: 15px; }
.category small { display: block; margin-top: 4px; color: var(--muted); font-weight: 650; }
.category input[type="range"] { padding: 0; accent-color: var(--green); }
.category input[type="number"] { min-height: 40px; text-align: right; }
.totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.totals div {
  padding: 14px;
  border-radius: 8px;
  background: #edf4ea;
}
.totals span { display: block; color: var(--muted); font-size: 12px; font-weight: 850; }
.totals strong { display: block; margin-top: 6px; font-size: 22px; }
.insightPanel { align-self: start; position: sticky; top: 18px; }
.insightPanel p { color: var(--muted); line-height: 1.5; }
.tipBox {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  padding: 14px;
  border-radius: 8px;
  background: #edf4ea;
}
.tipBox span { color: var(--muted); line-height: 1.4; }
.primary {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: white;
  background: linear-gradient(180deg, #17725c, var(--green));
  cursor: pointer;
  font-weight: 850;
}
.copyStatus { margin: 10px 0 0; color: var(--green); text-align: center; font-weight: 800; }
@media (max-width: 820px) {
  .hero, .planner, .tripForm { grid-template-columns: 1fr; }
  .summaryCard strong { font-size: 36px; }
  .category { grid-template-columns: 1fr; }
  .totals { grid-template-columns: 1fr; }
  .insightPanel { position: static; }
}
