:root {
  --ink: #1c1915;
  --paper: #f4efe6;
  --paper-2: #ebe3d4;
  --cream: #f3e4c4;
  --clay: #c6532a;
  --moss: #1e3a32;
  --open: #6e8b5e;
  --road: #2a2724;
  --line: #d9d0c2;
  --muted: #6f675e;
  --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 0% -10%, #f8e6d2 0%, transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(40px, 6vw, 72px); margin: 0 0 12px; }
h2 { font-size: 32px; margin: 0 0 10px; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.page { padding: 28px 0 72px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lede { font-size: 20px; max-width: 38rem; }
.hint { color: var(--muted); font-size: 14px; }
.hint-list { color: var(--muted); font-size: 14px; padding-left: 18px; }

.mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
}
.mast-nav, .hero-actions, .row-head, .copy-row, .status-row, .plot-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mast-nav form { margin: 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-family: var(--serif);
  font-size: 26px;
  text-decoration: none;
}
.btn, .text-btn, .btn-ghost {
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
}
.btn-small { min-height: 38px; padding: 0 14px; }
.btn-ghost, .text-btn {
  background: transparent;
  color: var(--ink);
}
.btn-ghost {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}
.text-btn { padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.field, .sheet input, .sheet select, .card input, .card select, .copy-row input {
  width: 100%;
  min-height: 46px;
  margin: 4px 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf8;
  color: var(--ink);
}
input[type="color"].field, .colour { width: 64px; padding: 4px; }
label { display: block; font-size: 14px; font-weight: 600; }
.errorlist { margin: -8px 0 12px; padding: 0; color: var(--clay); list-style: none; }

.messages { width: min(1120px, calc(100% - 40px)); margin: 0 auto 8px; padding: 0; list-style: none; }
.message { padding: 12px 14px; background: #fff; border-left: 4px solid var(--moss); border-radius: 8px; }
.message-error { border-color: var(--clay); }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: end;
  padding: 18px 0 48px;
}
.hero-plan svg { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(28, 25, 21, 0.12)); }
.band { background: var(--moss); color: #f6f1e8; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 42px 0; }
.steps h2, .split h2 { color: inherit; }
.num { margin: 0; font-family: var(--serif); font-size: 28px; color: #e7b59a; }
.split {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 36px;
  padding: 64px 0;
}
.plain { padding-left: 18px; }
.ticket {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.ticket-figure, .ticket-total { font-family: var(--serif); }
.ticket-figure { font-size: 56px; margin: 0; line-height: 1; }
.ticket-total { font-size: 22px; }
.colophon {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 32px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.sheet { width: min(460px, calc(100% - 32px)); margin: 24px auto 64px; }
.page-head { margin-bottom: 18px; }
.row-head { justify-content: space-between; align-items: end; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; list-style: none; }
.checks li { padding: 6px 10px; border-radius: 999px; background: var(--paper-2); color: var(--muted); font-size: 14px; }
.checks .is-done { background: var(--moss); color: #f6f1e8; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start; }
.stack { display: grid; gap: 16px; }
.card, .plan-card {
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.plan-card { position: sticky; top: 16px; }
.plan-card svg { width: 100%; height: auto; background: #f7f1e6; border-radius: 10px; }
.failures { margin: 0 0 12px; padding: 0; list-style: none; }
.failures li { margin: 0 0 8px; padding-left: 14px; border-left: 3px solid var(--clay); }
.ok-note { padding: 10px 12px; background: #e7f0e2; border-radius: 10px; }
.pin-map { height: 280px; margin-bottom: 12px; border-radius: 12px; overflow: hidden; }
.logo-preview { width: 72px; height: 72px; object-fit: contain; background: white; border-radius: 8px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.thumbs img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.plot-table { max-height: 420px; overflow: auto; margin-top: 12px; }
.plot-row, .status-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.status-row { grid-template-columns: 1fr auto auto; }
.plot-row .field, .status-row .field { margin: 0; }
.copy-row .field { margin: 0; }
.bill { margin: 0 0 18px; }
.bill div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bill-total { font-family: var(--serif); font-size: 28px; }

.space-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.space-row {
  display: grid;
  grid-template-columns: 168px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 10px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
}
.space-plan svg { width: 168px; height: 108px; display: block; background: #f7f1e6; border-radius: 10px; }
.space-name, .space-org { display: block; }
.space-name { font-family: var(--serif); font-size: 28px; }
.space-org { color: var(--muted); }
.space-go { color: var(--clay); font-weight: 600; }
.empty { padding: 28px 0; }

@media (max-width: 860px) {
  .hero, .steps, .split, .editor-grid, .space-row, .row-head { grid-template-columns: 1fr; display: grid; }
  .row-head, .mast { display: flex; flex-wrap: wrap; }
  .plan-card { position: static; }
  .space-plan svg { width: 100%; }
}
