:root {
  --ink: #1c1612;
  --paper: #f4efe4;
  --card: #fffaf3;
  --line: #ddcbb6;
  --pine: #14352c;
  --pine-2: #0e241e;
  --copper: #c4511a;
  --flag: #8d1d1d;
  --sans: "Segoe UI", system-ui, sans-serif;
  --serif: Palatino, "Iowan Old Style", Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
}
a { color: var(--pine); }
h1, h2, .wordmark, .cash { font-family: var(--serif); letter-spacing: -0.02em; }
h1 { font-size: 2rem; line-height: 1.1; margin: 0.2rem 0 0.6rem; }
main { padding: 1rem 1rem 2rem; max-width: 46rem; margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 0.5rem; top: 0.5rem; background: white; z-index: 9; }
.topstack { position: sticky; top: 0; z-index: 20; }
.banner { margin: 0; padding: 0.5rem 0.7rem; background: var(--pine); color: #f4efe4; text-align: center; font-weight: 700; font-size: 1rem; }
.banner a { color: #fff; }
.site-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.35rem 0.8rem; align-items: center; padding: 0.6rem 0.8rem; background: var(--card); border-bottom: 1px solid var(--line); }
.wordmark { font-size: 1.4rem; font-weight: 700; text-decoration: none; color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; }
.nav a { text-decoration: none; font-weight: 700; }
.hero .lede { font-size: 1.15rem; }
.top-links { list-style: none; padding: 0; }
.top-links li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.quote, form { display: grid; gap: 0.75rem; }
label { display: grid; gap: 0.25rem; font-weight: 700; }
input, select, textarea, button, .button {
  font: inherit;
  min-height: 3.1rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  border: 2px solid var(--ink);
  background: white;
  color: var(--ink);
}
button, .button {
  background: var(--copper);
  color: white;
  border-color: var(--copper);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button.quiet { background: white; color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.chips, .actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { font-weight: 650; border: 2px solid var(--ink); border-radius: 999px; padding: 0.45rem 0.7rem; min-height: 2.8rem; display: flex; align-items: center; gap: 0.35rem; background: white; }
.chip input, .check input { min-height: 1.2rem; }
.check { font-weight: 650; }
.price { font-family: var(--serif); font-size: 1.8rem; margin: 0.2rem 0; }
.trip-line, .bundle { background: var(--card); border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.8rem; }
.flag { color: var(--flag); font-weight: 800; margin: 0.2rem 0; }
.amber { color: #7a4b00; background: #fff1d6; font-weight: 800; margin: 0.35rem 0; padding: 0.45rem 0.6rem; }
.fine { color: #3f382f; }
table.sheet { width: 100%; border-collapse: collapse; background: var(--card); margin: 0.5rem 0 1.2rem; }
table.sheet caption { text-align: left; font-weight: 800; padding: 0.4rem 0; }
table.sheet th, table.sheet td { border-bottom: 1px solid var(--line); padding: 0.55rem; text-align: left; vertical-align: top; }
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr 1.3fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--pine-2);
}
.dock a { color: white; text-decoration: none; text-align: center; padding: 0.9rem 0.2rem; font-weight: 800; min-height: 3.2rem; }
.dock a:last-child { background: var(--copper); }
.site-footer { padding: 1rem; color: #3f382f; }
.admin { padding-bottom: 1rem; background: #efe7da; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.8rem; background: var(--pine); color: white; position: sticky; top: 0; z-index: 20; }
.admin-bar a, .admin-bar summary { color: white; font-weight: 800; }
.see-all { position: relative; }
.see-all a { display: block; background: var(--pine-2); padding: 0.4rem 0.6rem; }
.card, .decision { background: white; border-radius: 0.9rem; padding: 0.8rem; margin: 0.7rem 0; border: 2px solid var(--ink); }
.card.hot { border-color: var(--flag); }
.cash { font-size: 2.6rem; margin: 0; line-height: 1; }
.actions form, .actions a, .actions button { flex: 1 1 9rem; }
.file input { position: absolute; opacity: 0; width: 0.1px; height: 0.1px; }
.bars { display: flex; align-items: end; gap: 0.25rem; height: 8rem; }
.bars div { flex: 1; display: flex; flex-direction: column; justify-content: end; align-items: center; height: 100%; }
.bars span { display: block; width: 100%; background: var(--pine); min-height: 2px; }
.checks { list-style: none; padding: 0; }
.checks form { display: flex; gap: 0.5rem; align-items: center; }
.checks button { min-width: 5rem; }
button.on { background: var(--pine); }
@media (max-width: 700px) {
  table.sheet thead { position: absolute; left: -9999px; }
  table.sheet, table.sheet tbody, table.sheet tr, table.sheet td { display: block; width: 100%; }
  table.sheet tr { border: 1px solid var(--line); margin-bottom: 0.7rem; border-radius: 0.6rem; background: white; }
  table.sheet td::before { content: attr(data-label); display: block; font-size: 0.8rem; font-weight: 800; }
}
@media (max-height: 520px) {
  body { font-size: 1rem; }
  .decision { position: sticky; top: 2.6rem; z-index: 5; }
  .cash { font-size: 2rem; }
  h1 { font-size: 1.4rem; }
  .banner, .site-header .nav { display: none; }
}
@media (min-width: 800px) {
  h1 { font-size: 2.7rem; }
  main { padding-top: 1.5rem; }
}

.lanes, .magnets { display: grid; gap: 0.5rem; margin: 0.4rem 0 1rem; }
.lanes .lane { padding: 0.55rem 0.7rem; }
.lanes .lane p { margin: 0 0 0.4rem; font-size: 0.95rem; }
.lanes .button { min-height: 2.8rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.lane { background: var(--card); border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.8rem; }
.lane h2, .lane h3 { margin: 0 0 0.2rem; font-size: 1.15rem; }
.lane p { margin: 0 0 0.6rem; }
.lane .button { display: block; text-align: center; text-decoration: none; }
.easy h3 { margin: 0.8rem 0 0.2rem; }
@media (min-width: 40rem) { .lanes { grid-template-columns: repeat(3, 1fr); } }
.pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.4rem 0; }
.pill { width: auto; min-height: 2.6rem; padding: 0.4rem 0.8rem; border-radius: 999px; background: white; color: var(--ink); border: 2px solid var(--ink); font-size: 0.95rem; }
.pill.on { background: var(--pine); color: white; border-color: var(--pine); }
a.button.quiet { background: white; color: var(--ink); }
.top-links span { white-space: nowrap; }
.check { display: flex; align-items: flex-start; gap: 0.5rem; }
.check input { width: auto; flex: none; margin-top: 0.25rem; }
table.sheet tr[hidden] { display: none !important; }
