:root {
  --ink: #171715;
  --muted: #69675f;
  --line: #dedbd2;
  --soft-line: #ebe8df;
  --paper: #ffffff;
  --canvas: #f5f4ef;
  --stone: #ece8de;
  --gold: #897755;
  --gold-dark: #66583e;
  --green: #346848;
  --green-soft: #e7f0ea;
  --amber: #8a5a20;
  --amber-soft: #f8ead6;
  --red: #934e3c;
  --red-soft: #f7e9e5;
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; }
[hidden] { display: none !important; }

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 64px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  letter-spacing: -1px;
}
.brand > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.brand strong { font-size: 15px; letter-spacing: .18em; }
.brand small { color: var(--muted); font-size: 8px; letter-spacing: .16em; }
.location-chip { color: var(--muted); font-size: 12px; }

.booking-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 30px;
}
.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 34px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-row h1, .success-card h1, .manage-card h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.04;
}
.hero-row > div:first-child > p:last-child {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}
.booking-summary-mini {
  min-width: 255px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px;
  border-left: 2px solid var(--gold);
  background: var(--paper);
}
.booking-summary-mini span, .booking-summary-mini small {
  color: var(--muted);
  font-size: 11px;
}
.booking-summary-mini strong { font-size: 15px; }

.stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 12px 14px;
  color: #8a887f;
  border: 0;
  border-right: 1px solid var(--soft-line);
  background: transparent;
  text-align: left;
}
.step:last-child { border-right: 0; }
.step > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 11px;
}
.step small { font-size: 11px; font-weight: 600; }
.step.current { color: var(--ink); background: #f1eee6; }
.step.current > span { border-color: var(--ink); background: var(--ink); color: white; }
.step.done { color: var(--green); }
.step.done > span { border-color: var(--green); color: var(--green); }

.step-panel {
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  background: var(--paper);
}
.panel-heading { display: flex; gap: 20px; margin-bottom: 34px; }
.section-number {
  width: 38px;
  padding-top: 3px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  border-right: 1px solid var(--line);
}
.panel-heading h2, .booking-detail-panel h2, .email-modal h2,
.quote-modal h2, .inline-form h2, .capacity-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -.02em;
}
.panel-heading > div > p:last-child {
  max-width: 650px;
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.location-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 1px solid var(--soft-line);
  background: #faf9f6;
}
.location-card .pin { color: var(--gold); font-size: 10px; }
.location-card > div { display: flex; flex-direction: column; gap: 4px; }
.location-card strong { font-size: 13px; }
.location-card span, .location-card a { color: var(--muted); font-size: 11px; }
.location-card a { text-underline-offset: 3px; }

.date-time-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 20px;
}
.calendar-card, .times-card { padding: 22px; border: 1px solid var(--line); }
.calendar-head, .times-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.calendar-head button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-size: 20px;
}
.weekdays, .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.weekdays span { padding: 7px 0; color: var(--muted); font-size: 10px; text-align: center; }
.calendar-grid button, .calendar-grid .empty-day { min-height: 42px; }
.calendar-grid button {
  position: relative;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}
.calendar-grid button.available::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
}
.calendar-grid button:hover:not(:disabled) { border-color: var(--line); background: var(--canvas); }
.calendar-grid button.selected { border-color: var(--ink); background: var(--ink); color: white; }
.calendar-grid button.selected::after { background: white; }
.calendar-grid button:disabled { color: #c5c2b9; text-decoration: line-through; }
.calendar-key {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--soft-line);
  color: var(--muted);
  font-size: 10px;
}
.calendar-key span { display: inline-flex; align-items: center; gap: 7px; }
.key-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.selected-dot { background: var(--ink); }
.times-card { background: #fbfaf7; }
.times-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
.times-heading span { color: var(--muted); font-size: 11px; }
.times-heading strong { font-family: Georgia, serif; font-size: 22px; font-weight: 400; }
.time-slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.time-slots button {
  min-height: 42px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-size: 11px;
}
.time-slots button:hover, .time-slots button.selected { border-color: var(--ink); }
.time-slots button.selected { background: var(--ink); color: white; }
.time-slots button.soft-alert { border-color: #d6bb92; background: #fffaf1; }
.timezone-note { margin: 18px 0 0; color: var(--muted); font-size: 10px; }
.empty-state { grid-column: 1 / -1; margin: 8px 0; color: var(--muted); font-size: 12px; }
.empty-state.padded-empty { padding: 20px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field > span:first-child { color: #4e4c46; font-size: 11px; font-weight: 700; }
.field input, .field select, .field textarea, .search-box input,
.quote-toolbar input, .quote-toolbar select, .list-filters select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: white;
  color: var(--ink);
}
.field input, .field select { min-height: 44px; padding: 0 12px; }
.field textarea { resize: vertical; padding: 12px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus,
.search-box input:focus, .quote-toolbar input:focus, .list-filters select:focus {
  border-color: var(--gold-dark);
  outline: 2px solid #ece6da;
}
.field .invalid { border-color: var(--red); }
.quantity-field { display: grid; grid-template-columns: .7fr 1.3fr; }
.quantity-field select { border-left: 0; }
.check-row, .consent-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 24px;
  padding: 15px;
  border: 1px solid var(--line);
  background: #faf9f6;
}
.check-row input, .consent-row input { width: 16px; height: 16px; accent-color: var(--ink); }
.check-row span { display: flex; flex-direction: column; gap: 4px; }
.check-row strong, .consent-row span { font-size: 12px; }
.check-row small { color: var(--muted); font-size: 10px; }
.check-row.compact { margin: 18px 0; padding: 12px; }
.company-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.company-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  align-items: end;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--soft-line);
}
.remove-button {
  height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.add-company { align-self: flex-start; }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 22px; }
.review-card {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
}
.review-card.featured { background: #f3efe6; border-color: #d5c9b1; }
.review-card > span { color: var(--gold-dark); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.review-card strong { font-family: Georgia, serif; font-size: 18px; font-weight: 400; }
.review-card p, .review-card small { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.turnstile-container { min-height: 70px; display: grid; place-items: center; margin-top: 18px; }

.form-actions { display: flex; justify-content: space-between; padding: 22px 0; }
.primary-button, .secondary-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.primary-button { background: var(--ink); color: white; }
.primary-button:hover { background: #34342f; }
.primary-button span { margin-left: 12px; }
.secondary-button { background: white; color: var(--ink); }
.secondary-button:hover:not(:disabled) { background: var(--stone); }
.button-link { min-height: 44px; }
.danger-button { border-color: var(--red); color: var(--red); }
.danger-solid { border-color: var(--red); background: var(--red); color: white; }
.form-error {
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid #d8aaa0;
  background: var(--red-soft);
  color: #743829;
  font-size: 12px;
  line-height: 1.5;
}
.form-error.success-message-inline { border-color: #a8c6b2; background: var(--green-soft); color: var(--green); }
.privacy-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px 32px;
  color: #8a887f;
  font-size: 9px;
  line-height: 1.55;
  text-align: center;
}
.privacy-footer a { color: #5f5d56; margin-left: 4px; }
.privacy-footer .internal-link { width: 100%; margin-top: 12px; }

.success-shell {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: start center;
  padding: 58px 20px;
}
.success-card, .manage-card {
  width: min(660px, 100%);
  padding: clamp(30px, 6vw, 58px);
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
}
.success-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-size: 22px;
}
.success-card h1 { font-size: clamp(40px, 6vw, 54px); }
.success-intro { margin: 14px 0 28px; color: var(--muted); font-size: 16px; }
.reference-box { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 18px; border: 1px solid #d8ceb9; background: #f5f1e8; text-align: left; }
.reference-box span { color: var(--muted); font-size: 11px; }
.reference-box strong { font-size: 13px; letter-spacing: .04em; }
.success-details { margin: 24px 0; border-top: 1px solid var(--soft-line); }
.success-details div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--soft-line); text-align: left; }
.success-details dt { color: var(--muted); font-size: 11px; }
.success-details dd { margin: 0; font-size: 12px; font-weight: 700; }
.success-message { padding: 17px; border-left: 2px solid var(--gold); background: #faf9f6; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: left; }
.success-message p { margin: 0 0 8px; }
.success-message p:last-child { margin-bottom: 0; color: var(--ink); font-weight: 700; }
.success-actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }

.manage-shell { min-height: calc(100vh - 76px); display: grid; place-items: start center; padding: 58px 20px; }
.manage-card { text-align: left; }
.manage-card h1 { font-size: clamp(34px, 5vw, 48px); }
.manage-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.manage-current { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 28px 0; border: 1px solid var(--line); background: var(--line); }
.manage-current > div { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: white; }
.manage-current span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.manage-current strong { font-size: 13px; }
.manage-actions, .modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.inline-form { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.inline-form h2 { margin-bottom: 18px; }

.internal-body { background: #f2f1ed; }
.internal-loading { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 14px; background: #20211f; color: white; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); background: #f2f1ed; }
.admin-sidebar { min-height: 100vh; display: flex; flex-direction: column; padding: 28px 16px 18px; background: #20211f; color: white; }
.admin-title { display: flex; flex-direction: column; gap: 7px; padding: 0 10px 24px; border-bottom: 1px solid #3b3c39; color: white; text-decoration: none; }
.admin-label { color: #aaa99f; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.admin-title strong { font-family: Georgia, serif; font-size: 20px; font-weight: 400; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; }
.admin-sidebar nav button { min-height: 42px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 7px; padding: 0 11px; border: 0; background: transparent; color: #b9b9b1; font-size: 11px; text-align: left; }
.admin-sidebar nav button.active { background: #343530; color: white; }
.admin-sidebar nav button b { min-width: 22px; padding: 3px 5px; background: #56574f; font-size: 9px; text-align: center; }
.admin-user { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 14px 8px 0; border-top: 1px solid #3b3c39; }
.admin-user > span { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #6d6e66; border-radius: 50%; font-size: 9px; }
.admin-user div { display: flex; flex-direction: column; gap: 3px; }
.admin-user strong { font-size: 9px; }
.admin-user small { color: #9e9e96; font-size: 8px; }
.admin-main { min-width: 0; padding: 30px clamp(22px, 3vw, 42px) 46px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.admin-header h1 { margin: 0; font-family: Georgia, serif; font-size: 34px; font-weight: 400; }
.admin-header-actions { display: flex; gap: 8px; }
.admin-toast { position: fixed; z-index: 100; top: 18px; right: 18px; max-width: 420px; padding: 13px 16px; border: 1px solid #a8c6b2; background: var(--green-soft); color: var(--green); font-size: 12px; }
.admin-toast.error { border-color: #d8aaa0; background: var(--red-soft); color: #743829; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.stats-grid article { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; min-height: 86px; padding: 16px; border: 1px solid var(--line); background: white; }
.stats-grid span { color: var(--muted); font-size: 10px; }
.stats-grid strong { grid-row: 1 / 3; grid-column: 2; font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.stats-grid small { color: #949188; font-size: 9px; }
.stats-grid .alert-stat { border-color: #ddc29e; background: #fcf7ef; }
.stats-grid .alert-stat strong { color: var(--amber); }
.admin-workspace { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 690px; border: 1px solid var(--line); background: white; }
.booking-list-panel { border-right: 1px solid var(--line); background: #faf9f6; }
.list-toolbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line); }
.list-toolbar strong { font-size: 12px; }
.list-toolbar button, .section-title button, .more-button { border: 0; background: transparent; color: var(--muted); font-size: 9px; text-decoration: underline; text-underline-offset: 3px; }
.list-filters { display: grid; gap: 8px; padding: 12px; }
.search-box { display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); background: white; color: var(--muted); }
.search-box input { min-height: 36px; padding: 0; border: 0; font-size: 10px; }
.list-filters select { min-height: 36px; padding: 0 10px; font-size: 10px; }
.booking-list { border-top: 1px solid var(--soft-line); max-height: 620px; overflow: auto; }
.booking-list > button { width: 100%; min-height: 80px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--soft-line); background: transparent; color: var(--ink); text-align: left; }
.booking-list > button:hover, .booking-list > button.selected { background: white; }
.booking-list > button.selected { box-shadow: inset 3px 0 0 var(--gold); }
.list-date { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.list-date strong { font-family: Georgia, serif; font-size: 20px; font-weight: 400; }
.list-date small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.list-info { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.list-info strong { font-size: 11px; }
.list-info small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.status-dot.warning { background: #ba762c; }
.booking-detail-panel { min-width: 0; padding: 26px; }
.detail-placeholder { display: grid; place-items: start; min-height: 400px; align-content: center; justify-content: center; text-align: center; color: var(--muted); }
.detail-title-row { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.detail-title-row h2 { margin-top: 12px; font-size: 30px; }
.detail-title-row p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.status-row { display: flex; flex-wrap: wrap; gap: 5px; }
.status { padding: 5px 7px; background: #eee; color: #555; font-size: 8px; font-weight: 700; letter-spacing: .06em; }
.status.booked, .status.sent { background: var(--green-soft); color: var(--green); }
.status.new, .status.not-sent, .status.outdated { background: var(--amber-soft); color: var(--amber); }
.status.cancelled, .status.failed { background: var(--red-soft); color: var(--red); }
.detail-columns { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; margin-top: 14px; }
.detail-section { padding: 18px; border: 1px solid var(--soft-line); }
.section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-title > div { display: flex; flex-direction: column; gap: 4px; }
.section-title span { color: var(--gold-dark); font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.section-title strong { font-size: 11px; }
.detail-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.detail-form-grid .field > span:first-child { font-size: 9px; }
.detail-form-grid .field input, .detail-form-grid .field select { min-height: 38px; font-size: 10px; }
.customer-details dl { margin: 0; }
.customer-details dl div { display: grid; grid-template-columns: 100px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--soft-line); }
.customer-details dt { color: var(--muted); font-size: 9px; }
.customer-details dd { margin: 0; font-size: 10px; overflow-wrap: anywhere; }
.requirements-section, .review-notes { margin-top: 14px; }
.requirements-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.requirements-grid > div { padding: 12px; background: #faf9f6; }
.requirements-grid span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.requirements-grid p { margin: 6px 0 0; font-size: 10px; line-height: 1.5; }
.detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.capacity-badge { padding: 5px 7px; background: var(--amber-soft); color: var(--amber); font-size: 8px; }

.modal-backdrop { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(23,23,21,.58); overflow: auto; }
.email-modal { width: min(680px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 26px; border: 1px solid var(--line); background: white; }
.modal-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.modal-head > button { width: 34px; height: 34px; border: 1px solid var(--line); background: white; font-size: 18px; }
.email-meta { display: grid; gap: 8px; margin: 18px 0; padding: 14px; background: #faf9f6; }
.email-meta > div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.email-meta span { color: var(--muted); font-size: 9px; }
.email-meta strong { font-size: 10px; overflow-wrap: anywhere; }
.email-preview { padding: 24px; border: 1px solid var(--line); line-height: 1.6; font-size: 12px; }
.email-preview h3 { font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.email-preview .preview-details { padding: 14px; background: #f5f1e8; }

.capacity-panel, .quote-list-card { padding: 22px; border: 1px solid var(--line); background: white; }
.settings-intro p, .settings-note { color: var(--muted); line-height: 1.6; }
.capacity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.capacity-slot { padding: 15px; border: 1px solid var(--line); background: #faf9f6; }
.capacity-slot.alert { border-color: #ddc29e; background: #fcf7ef; }
.capacity-slot span { display: block; color: var(--muted); font-size: 9px; }
.capacity-slot strong { display: block; margin-top: 5px; font-family: Georgia, serif; font-size: 22px; font-weight: 400; }
.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.settings-card { padding: 20px; border: 1px solid var(--line); background: white; }
.settings-card h2 { margin: 0 0 14px; font-family: Georgia, serif; font-weight: 400; }
.settings-card dl { margin: 0; }
.settings-card dl div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--soft-line); }
.settings-card dt { color: var(--muted); font-size: 10px; }
.settings-card dd { margin: 0; font-size: 10px; font-weight: 700; }
.quote-toolbar { display: grid; grid-template-columns: 1fr 180px auto; gap: 8px; margin-bottom: 16px; }
.quote-toolbar input, .quote-toolbar select { min-height: 40px; padding: 0 11px; }
.table-scroll { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.data-table th { padding: 11px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 8px; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 12px 10px; border-bottom: 1px solid var(--soft-line); white-space: nowrap; }
.data-table button { border: 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; font-size: 9px; }

.quote-modal-backdrop { place-items: start center; }
.quote-modal { width: min(1180px, 100%); margin: 20px 0; padding: 26px; border: 1px solid var(--line); background: white; }
.quote-editor-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-top: 20px; }
.quote-editor-grid section { padding: 18px; border: 1px solid var(--soft-line); }
.quote-editor-grid h3, .quote-items-heading h3 { margin: 0 0 16px; font-family: Georgia, serif; font-size: 22px; font-weight: 400; }
.quote-items-heading { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 12px; }
.quote-items-heading h3 { margin: 0; }
.quote-items { display: grid; gap: 10px; }
.quote-item { display: grid; grid-template-columns: 1.4fr .75fr .75fr .65fr .65fr .55fr .55fr .75fr auto; align-items: end; gap: 8px; padding: 14px; border: 1px solid var(--line); background: #faf9f6; }
.quote-item .field > span:first-child { font-size: 8px; }
.quote-item .field input { min-height: 38px; padding: 0 8px; font-size: 9px; }
.quote-item .remove-button { height: 38px; }
.quote-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 16px; border: 1px solid var(--line); background: var(--line); }
.quote-summary > div { padding: 13px; background: white; }
.quote-summary > div:last-child { background: #eee6d5; }
.quote-summary span { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.quote-summary strong { display: block; margin-top: 5px; font-size: 12px; }
.quote-versions { margin-top: 22px; border-top: 1px solid var(--line); }
.quote-version { display: grid; grid-template-columns: 70px 1fr auto auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--soft-line); font-size: 10px; }
.quote-version a { text-underline-offset: 3px; }

@media (max-width: 1100px) {
  .admin-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .admin-workspace { grid-template-columns: 280px minmax(0, 1fr); }
  .detail-columns, .quote-editor-grid { grid-template-columns: 1fr; }
  .quote-item { grid-template-columns: repeat(4, 1fr); }
  .quote-item .field:first-child { grid-column: span 2; }
}

@media (max-width: 820px) {
  .hero-row { align-items: stretch; flex-direction: column; }
  .booking-summary-mini { min-width: 0; }
  .stepper { grid-template-columns: 1fr; }
  .step { min-height: 48px; border-right: 0; border-bottom: 1px solid var(--soft-line); }
  .step:not(.current):not(.done) { display: none; }
  .date-time-grid, .form-grid, .review-grid, .detail-columns,
  .requirements-grid, .settings-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .company-row { grid-template-columns: 1fr; }
  .quantity-field { grid-template-columns: 1fr 1fr; }
  .admin-shell { display: block; }
  .admin-sidebar { min-height: 0; padding: 12px; }
  .admin-title, .admin-user { display: none; }
  .admin-sidebar nav { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; }
  .admin-sidebar nav button { grid-template-columns: 1fr; justify-items: center; padding: 8px; text-align: center; }
  .admin-sidebar nav button span, .admin-sidebar nav button b { display: none; }
  .admin-main { padding: 20px 12px 36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-workspace { grid-template-columns: 1fr; }
  .booking-list-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .booking-list { max-height: 300px; }
  .capacity-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-toolbar { grid-template-columns: 1fr; }
  .quote-item { grid-template-columns: repeat(2, 1fr); }
  .quote-item .field:first-child { grid-column: span 2; }
  .quote-summary { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { min-height: 66px; padding: 12px 16px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand small { display: none; }
  .location-chip { font-size: 10px; }
  .booking-shell { width: min(100% - 24px, 1180px); padding-top: 32px; }
  .hero-row h1 { font-size: 40px; }
  .step-panel { padding: 24px 18px; }
  .panel-heading { gap: 12px; }
  .panel-heading h2 { font-size: 25px; }
  .location-card { grid-template-columns: auto 1fr; }
  .location-card a { grid-column: 2; }
  .calendar-card, .times-card { padding: 15px; }
  .calendar-grid button, .calendar-grid .empty-day { min-height: 38px; }
  .form-actions { gap: 8px; }
  .primary-button, .secondary-button { padding: 0 14px; }
  .success-actions, .manage-actions, .modal-actions { flex-direction: column; }
  .manage-current { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .detail-form-grid { grid-template-columns: 1fr; }
  .booking-detail-panel { padding: 16px; }
  .email-modal, .quote-modal { padding: 18px; }
  .capacity-grid { grid-template-columns: 1fr; }
}
