:root {
  --ink: #07162f;
  --ink-soft: #10264b;
  --paper: #eee8dc;
  --paper-bright: #f8f6f0;
  --gold: #c9a86a;
  --line: rgba(7, 22, 47, .2);
  --white: #f9f7f2;
  --muted: #536070;
  --mono: "DM Mono", monospace;
  --sans: "DM Sans", sans-serif;
  --serif: "Playfair Display", serif;
}

* { box-sizing: border-box; }
html { background: var(--ink); }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 9px 12px; transform: translateY(-150%); background: var(--white); color: var(--ink); }
.skip-link:focus { transform: translateY(0); }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(125deg, var(--paper) 0 71%, #e5ddcf 71% 100%); }
.app-top { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(20px, 5vw, 68px); background: var(--ink); color: var(--white); }
.app-brand img { display: block; width: 106px; height: auto; }
.app-top__actions { display: flex; align-items: center; gap: 16px; }
.text-btn { padding: 8px 0; border: 0; border-bottom: 1px solid rgba(249,247,242,.65); background: transparent; color: inherit; font-size: .78rem; }
.app-main { width: min(100% - 40px, 800px); flex: 1; margin: 0 auto; padding: clamp(46px, 9vw, 88px) 0 46px; }
.kicker, .meta { margin: 0 0 20px; color: var(--muted); font-family: var(--mono); font-size: .71rem; letter-spacing: .08em; text-transform: uppercase; }
.kicker { color: #a87141; }
.mark { display: block; width: 88px; height: 88px; margin: 0 0 26px; }
h1, h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.55rem, 9vw, 5rem); font-weight: 500; letter-spacing: -.055em; line-height: .96; }
h2 { font-size: clamp(2.2rem, 7vw, 3.9rem); }
h1 em, h2 em { font-weight: 500; }
.lead { max-width: 600px; margin: 27px 0 35px; color: var(--muted); font-size: 1.04rem; line-height: 1.65; }
.stack { display: grid; gap: 12px; }
.choice { display: grid; gap: 7px; width: 100%; padding: 23px 22px; border: 1px solid var(--line); background: rgba(249,247,242,.6); color: var(--ink); text-align: left; transition: background .2s ease, transform .2s ease; }
.choice:hover, .choice:focus-visible { background: var(--white); transform: translateY(-2px); outline: 2px solid var(--gold); outline-offset: 2px; }
.choice strong { font-family: var(--serif); font-size: 1.65rem; font-weight: 500; letter-spacing: -.035em; }
.choice small { color: var(--muted); font-size: .87rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { min-height: 47px; padding: 12px 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--white); font-size: .84rem; font-weight: 600; }
.btn:hover, .btn:focus-visible { background: var(--ink-soft); outline: 2px solid var(--gold); outline-offset: 2px; }
.btn--ghost { background: transparent; color: var(--ink); }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 27px; }
.chip, .slot { min-height: 40px; padding: 9px 11px; border: 1px solid var(--line); background: rgba(249,247,242,.72); color: var(--ink); font-family: var(--mono); font-size: .72rem; }
.chip.is-on, .slot.is-on { border-color: var(--ink); background: var(--ink); color: var(--white); }
.slot:disabled { border-color: transparent; background: rgba(7,22,47,.1); color: #7b8490; cursor: not-allowed; text-decoration: line-through; }
.field { max-width: 500px; margin-top: 8px; }
.field label { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--ink); }
.field input:focus, .field select:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-card { display: grid; gap: 18px; max-width: 650px; padding: clamp(20px, 4vw, 34px); border: 1px solid var(--line); background: rgba(249,247,242,.72); }
.form-card .field { max-width: none; margin: 0; }
.extras { display: grid; gap: 10px; margin: 0; padding: 17px; border: 1px solid var(--line); }
.extras legend { padding: 0 6px; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.extras .field-help { margin: 0; }
.extras .check-field { color: var(--ink); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dashboard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.role-badge, .status { display: inline-flex; padding: 7px 9px; border: 1px solid var(--line); font-family: var(--mono); font-size: .65rem; letter-spacing: .05em; text-transform: uppercase; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 650px; }
.metric { display: grid; gap: 4px; padding: 22px; border: 1px solid var(--line); background: rgba(249,247,242,.6); }
.metric strong { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; }
.metric span { color: var(--muted); font-size: .82rem; }
.booking { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.booking > div { display: grid; gap: 7px; }
.status { width: fit-content; padding: 4px 6px; color: #536070; }
.status--reserved { border-color: #7c875c; color: #53603d; }
.text-btn--dark { color: var(--ink); }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.field-help { max-width: 620px; margin: -8px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.check-field { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: .82rem; line-height: 1.5; cursor: pointer; }
.check-field input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
code { padding: 2px 5px; background: rgba(7,22,47,.08); font-family: var(--mono); font-size: .82em; }
.notice, .empty { max-width: 620px; padding: 17px; border-left: 3px solid #a87141; background: rgba(249,247,242,.7); color: var(--muted); line-height: 1.55; }
.booking { display: grid; gap: 6px; margin: 0 0 12px; padding: 19px; border: 1px solid var(--line); background: rgba(249,247,242,.7); }
.booking strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; letter-spacing: -.03em; }
.booking .meta { margin: 0; color: var(--muted); font-size: .72rem; letter-spacing: .03em; text-transform: none; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.time-alert { display: grid; gap: 8px; max-width: 650px; margin: 0 0 18px; padding: 20px; border: 1px solid var(--gold); background: #fff8e8; }
.time-alert strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.time-alert span { color: var(--muted); font-size: .88rem; }
.time-alert .btn { justify-self: start; margin-top: 4px; }
.ios-hint { max-width: 620px; margin: 34px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.app-foot { margin: 0; padding: 22px clamp(20px, 5vw, 68px); border-top: 1px solid rgba(249,247,242,.23); background: var(--ink); color: #bbc3cf; font-family: var(--mono); font-size: .69rem; letter-spacing: .06em; text-transform: uppercase; }

@media (max-width: 480px) {
  .app-top { min-height: 70px; padding: 12px 20px; }
  .app-brand img { width: 92px; }
  .app-top__actions { gap: 12px; }
  .text-btn { font-size: .72rem; }
  .app-main { width: min(100% - 32px, 800px); padding-top: 43px; }
  .choice { padding: 19px 17px; }
  .choice strong { font-size: 1.42rem; }
  .field-pair { grid-template-columns: 1fr; }
  .dashboard-head { display: grid; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .booking { align-items: flex-start; }
}
.legal-page { background: var(--paper); color: var(--ink); min-height: 100vh; }
.legal-document { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 96px; }
.legal-document h1 { margin: 12px 0 8px; }
.legal-document h2 { margin: 36px 0 10px; font-size: clamp(1.4rem, 4vw, 2rem); }
.legal-document p { line-height: 1.7; }
.legal-status { color: var(--ink-soft); font-size: .85rem; }
.check-field a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.captcha-widget { min-height: 65px; }
