:root {
  --ink: #171717;
  --muted: #66615a;
  --paper: #f8f7f3;
  --card: #ffffff;
  --line: #e5e1d9;
  --gold: #b6862d;
  --gold-dark: #8e651b;
  --green: #1f7a57;
  --red: #a43e37;
  --shadow: 0 12px 28px rgba(31,28,21,.08);
}
* { box-sizing: border-box; }
html { color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg,#f9f8f4,#f4f1ea); }
a { color: var(--gold-dark); }
button, input, select { font: inherit; cursor: pointer; }

.shell { width: min(1100px,calc(100% - 32px)); margin: 0 auto; padding: 32px 0 56px; }
.narrow { width: min(640px,calc(100% - 32px)); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 900; font-size: 15px; }
.brand-label strong { display: block; font-size: 15px; }
.brand-label span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.page-title { margin: 0 0 8px; font-size: clamp(28px,5vw,44px); letter-spacing: -1.5px; }
.lede { color: var(--muted); font-size: 17px; line-height: 1.55; margin: 0 0 20px; }
.card { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 18px; padding: 24px; }
.card + .card { margin-top: 16px; }
.card h2 { margin: 0 0 12px; font-size: 20px; letter-spacing: -.5px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 14px; }
.field small { color: var(--muted); font-size: 13px; line-height: 1.35; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], select {
  width: 100%; padding: 12px 14px; border: 1px solid #cfc8ba; border-radius: 11px;
  background: #fff; color: var(--ink); outline: none;
}
input:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(182,134,45,.13); }
input[readonly] { background: #f7f5ef; color: var(--muted); }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--ink); color: #fff; font-weight: 800; text-decoration: none;
  transition: transform .15s, opacity .15s;
}
.button:hover { transform: translateY(-1px); opacity: .92; }
.button.gold { background: var(--gold); color: #21180b; }
.button.outline { background: #fff; color: var(--ink); border-color: #beb7a9; }
.button.danger { background: var(--red); color: #fff; }
.button.sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.button[disabled] { opacity: .5; pointer-events: none; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.notice { border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; margin-bottom: 14px; }
.notice.info { background: #edf5fb; color: #174c70; border: 1px solid #c8e2f2; }
.notice.success { background: #e9f6ef; color: #145838; border: 1px solid #bfdfcc; }
.notice.error { background: #fceceb; color: #8a312b; border: 1px solid #efc6c2; }
.notice.warn { background: #fff8e6; color: #7a5500; border: 1px solid #f0d98a; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.fine-print { color: var(--muted); font-size: 12px; line-height: 1.5; }
.metric { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.metric strong { display: block; font-size: 32px; letter-spacing: -1px; }
.metric span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.link-box { display: flex; gap: 8px; }
.link-box input { min-width: 0; }
.qr-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.qr-wrap img { width: 150px; height: 150px; border-radius: 10px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 10px; border-bottom: 1px solid var(--line); }
td { padding: 12px 10px; border-bottom: 1px solid #eeeae2; vertical-align: top; }
.table-wrap { overflow-x: auto; }
.badge { display: inline-flex; border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 800; text-transform: capitalize; background: #eeeae3; color: #514a40; }
.badge.booked { background: #e5f0fa; color: #195c8a; }
.badge.completed { background: #e6f5ec; color: #1f7a57; }
.badge.cancelled,.badge.rejected { background: #fbe9e7; color: #a43e37; }
.badge.manual_review { background: #fff0cf; color: #835a00; }
.badge.processed { background: #e6f5ec; color: #1f7a57; }
.badge.ignored { background: #eeeae3; color: #514a40; }
.badge.failed,.badge.needs_mapping { background: #fbe9e7; color: #a43e37; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; color: #38342d; }
.consent input[type=checkbox] { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; cursor: pointer; }
.hero-panel { padding: clamp(22px,5vw,40px); background: radial-gradient(circle at top right,rgba(182,134,45,.22),transparent 40%),#171717; color: #fff; border-radius: 20px; margin-bottom: 18px; }
.hero-panel .lede { color: #d6d0c6; }
.perk-bar { background: #f0ece4; border-radius: 10px; height: 10px; overflow: hidden; margin-top: 6px; }
.perk-bar-fill { height: 100%; background: var(--gold); border-radius: 10px; transition: width .4s ease; }
.results { display: grid; gap: 6px; margin-top: 8px; }
.result-btn { text-align: left; width: 100%; border: 1px solid var(--line); background: #fff; padding: 10px 12px; border-radius: 10px; }
.result-btn:hover,.result-btn.selected { border-color: var(--gold); background: #fff8e8; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
footer.footer { color: var(--muted); font-size: 12px; margin-top: 24px; }
@media (max-width: 720px) {
  .grid.two,.grid.three,.grid.four { grid-template-columns: 1fr; }
  .link-box { flex-direction: column; }
  .button { width: 100%; }
  .button.sm { width: auto; }
  .topbar { flex-direction: column; align-items: stretch; }
}
