/* Seatfold — wedding seating chart
   Calm stationery. Works from a local HTML file. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4efe4;
  --paper-deep: #ebe3d2;
  --ivory: #fbf7ef;
  --card: #fffdf8;
  --ink: #2f281f;
  --ink-soft: #5c5348;
  --rule: #cbbfa8;
  --gold: #8d7349;
  --gold-deep: #6e5936;
  --sage: #5f6d55;
  --blush: #9a6d68;
  --warn: #7a3b32;
  --warn-bg: #f3e4dc;
  --ok: #4e6148;
  --empty: #d8d0c0;
  --shadow: 0 10px 30px rgba(47, 40, 31, 0.08);
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, "Iowan Old Style", Georgia, serif;
  --font-ui: "Source Sans 3", "Segoe UI", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.45;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
}

button { cursor: pointer; }

h1, h2, h3, .brand {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* —— Demo banner —— */
.demo-banner {
  display: none;
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
  padding: 10px 18px 12px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
}
body.is-demo .demo-banner { display: block; }
.demo-banner strong {
  font-family: var(--font-display);
  font-size: 1.15em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}
.demo-banner a {
  color: #e8d7b0;
  text-underline-offset: 3px;
}
.demo-banner .fine {
  display: block;
  margin-top: 4px;
  color: #cfc4b2;
  font-size: 12px;
}

/* —— Vellum (venue) bar —— */
.venue-bar {
  display: none;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 22px 12px;
  background: #f7f3eb;
  border-bottom: 1px solid var(--rule);
}
body.is-venue .venue-bar { display: flex; }
body.is-venue {
  --ink: #2a241c;
  --gold: #8a7348;
}
body.is-venue .masthead {
  background: #fbf7ef;
}
body.is-venue .venue-bar {
  background: #fbf7ef;
}
body.is-venue .brand {
  letter-spacing: 0.04em;
}
.venue-bar label span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 4px;
}
.venue-bar input,
.venue-bar select {
  background: var(--card);
  border: 1px solid var(--rule);
  color: var(--ink);
  min-width: 200px;
  padding: 7px 9px;
}
.venue-name-wrap { flex: 0 1 240px; }
.event-switch-wrap { flex: 1 1 240px; }
.event-switch-wrap select { width: 100%; min-width: 220px; }
.venue-bar .venue-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
  align-items: center;
  padding-bottom: 1px;
}
.print-venue-line { display: none; }


/* —— Header —— */
.masthead {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 22px 12px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--ivory), var(--paper));
  flex-wrap: wrap;
}
.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}
.mark {
  width: 36px;
  height: 36px;
  flex: none;
}
.brand {
  font-size: 28px;
  line-height: 1;
  margin: 0;
}
.brand span {
  display: block;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
  font-weight: 600;
}
.event-fields {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 220px;
}
.event-fields input {
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 2px 0;
  outline: none;
}
#event-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}
#event-date {
  color: var(--ink-soft);
  max-width: 220px;
}
.event-fields input:hover,
.event-fields input:focus { border-bottom-color: var(--gold); }

.counts {
  display: flex;
  gap: 16px;
  align-items: baseline;
  font-size: 13px;
  color: var(--ink-soft);
}
.counts b {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  font-weight: 600;
  margin-right: 4px;
}
.counts .warn-count b { color: var(--warn); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}
.btn {
  background: var(--card);
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 7px 12px;
  border-radius: 2px;
  letter-spacing: 0.03em;
}
.btn:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-ink {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.btn-ink:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--ivory); }
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-soft);
  padding: 7px 8px;
}
.btn-ghost:hover { color: var(--warn); }
.btn-small { padding: 4px 8px; font-size: 12px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* —— Layout —— */
.workspace {
  display: grid;
  grid-template-columns: 300px 1fr 250px;
  flex: 1;
  min-height: 0;
}
@media (max-width: 1080px) {
  .workspace { grid-template-columns: 260px 1fr; }
  .tables-panel { grid-column: 1 / -1; max-height: 240px; }
}

.panel {
  background: var(--ivory);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.tables-panel {
  border-right: none;
  border-left: 1px solid var(--rule);
}
.panel-head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--rule);
}
.panel-head h2 {
  margin: 0 0 2px;
  font-size: 22px;
  font-weight: 600;
}
.panel-head p, .hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12.5px;
}
.panel-body {
  padding: 12px 14px 18px;
  overflow: auto;
  flex: 1;
}

.row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.row > input[type="text"],
.row > select,
.grow { flex: 1; min-width: 0; }

input[type="text"], input[type="number"], input[type="date"], select {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 7px 9px;
  border-radius: 2px;
  width: 100%;
}
input:focus, select:focus {
  outline: 2px solid rgba(141, 115, 73, 0.35);
  border-color: var(--gold);
}

.guest-form { margin-bottom: 12px; }
.guest-form .row { margin-bottom: 6px; }

.filter-row {
  display: flex;
  gap: 4px;
  margin: 8px 0 10px;
}
.chip {
  border: 1px solid var(--rule);
  background: transparent;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-soft);
}
.chip.on {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

.guest-list { list-style: none; margin: 0; padding: 0; }
.guest {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  padding: 8px 8px 8px 10px;
  margin-bottom: 6px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  cursor: grab;
  user-select: none;
  position: relative;
}
.guest.seated { border-left-color: var(--sage); opacity: 0.92; }
.guest.selected {
  outline: 2px solid var(--gold);
  background: #fff8ea;
}
.guest .name {
  font-weight: 600;
  font-size: 14px;
}
.guest .meta {
  grid-column: 1 / -1;
  font-size: 11.5px;
  color: var(--ink-soft);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.guest .tools {
  display: flex;
  gap: 2px;
  align-items: start;
}
.meal {
  display: inline-block;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
  color: var(--gold-deep);
}
.meal.veg { color: var(--sage); }
.meal.vegan { color: #3f5f4a; }
.meal.child { color: var(--blush); }
.meal.other { color: var(--ink-soft); }

.empty-note {
  padding: 18px 8px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
}

/* Keep-apart */
.keep-block {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
}
.keep-block h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.pair {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  padding: 6px 0;
  border-bottom: 1px solid var(--paper-deep);
}
.pair.conflict { color: var(--warn); font-weight: 600; }

.alert {
  display: none;
  margin: 0 22px;
  padding: 8px 12px;
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid #e0c4b8;
  font-size: 13px;
}
.alert.show { display: block; }
body.is-demo .alert { margin-top: 0; }

/* —— Floor —— */
.floor-wrap {
  position: relative;
  overflow: auto;
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,0.55), transparent 55%),
    var(--paper);
  min-height: 0;
}
.floor {
  position: relative;
  width: 1600px;
  height: 1200px;
  background-image:
    linear-gradient(rgba(203,191,168,0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203,191,168,0.28) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
}
.floor-hint {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--ink-soft);
  pointer-events: none;
  max-width: 360px;
}
.floor-hint h3 {
  font-size: 28px;
  margin: 0 0 6px;
}
.floor.has-tables .floor-hint { display: none; }

.table-wrap {
  position: absolute;
  z-index: 1;
}
.table-wrap.conflict .table-surface {
  box-shadow: 0 0 0 3px var(--warn), var(--shadow);
}
.table-surface {
  position: absolute;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.55), transparent 50%),
    linear-gradient(160deg, #f3ead8, #e4d6bc 55%, #d9c9ab);
  border: 1px solid #c3b191;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: grab;
  user-select: none;
  padding: 8px;
}
.table-wrap.round .table-surface,
.table-wrap.sweetheart .table-surface {
  border-radius: 50%;
}
.table-wrap.cabaret .table-surface {
  border-radius: 50% 50% 14% 14%;
  border-bottom: 2px dashed #b79d6e;
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,0.62), transparent 50%),
    linear-gradient(180deg, #f2e7d1, #ddccb0 55%, #f6f0e4 100%);
  box-shadow: inset 0 -20px 0 rgba(251, 247, 239, 0.88), var(--shadow);
}
.table-wrap.rect .table-surface,
.table-wrap.head .table-surface {
  border-radius: 6px;
}
.table-wrap.banquet .table-surface {
  border-radius: 8px;
  background: linear-gradient(180deg, #f0e4cc, #d4c09a 42%, #c8b184);
  border: 2px solid #b39664;
}
.table-wrap.long .table-surface {
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, #ead9b8 0 14px, #e0ceaa 14px 15px);
  border: 1px solid #b7a27a;
  box-shadow: 0 3px 0 #c3b191, var(--shadow);
}
.table-surface .t-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.15;
  max-width: 90%;
}
.table-surface .t-meta {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 2px;
}

.seat {
  position: absolute;
  width: 86px;
  min-height: 34px;
  padding: 4px 6px;
  background: var(--card);
  border: 1px dashed var(--empty);
  border-radius: 3px;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  color: var(--ink-soft);
}
.seat.filled {
  border-style: solid;
  border-color: var(--rule);
  color: var(--ink);
  background: #fffdf8;
  box-shadow: 0 1px 3px rgba(47,40,31,0.08);
}
.seat.filled .sn {
  font-weight: 600;
  font-size: 11.5px;
}
.seat .sm {
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.seat.drop-ok,
body.click-seat .seat:not(.filled) {
  border-color: var(--gold);
  background: #fff6e4;
  box-shadow: 0 0 0 2px rgba(141,115,73,0.25);
}
.seat.conflict-seat {
  border-color: var(--warn);
  background: var(--warn-bg);
}
.seat .unseat {
  display: none;
  position: absolute;
  top: -7px;
  right: -7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: var(--ivory);
  font-size: 10px;
  line-height: 16px;
  padding: 0;
}
.seat.filled:hover .unseat { display: block; }

/* —— Tables panel —— */
.add-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}
.table-card {
  border: 1px solid var(--rule);
  background: var(--card);
  padding: 8px 10px;
  margin-bottom: 8px;
}
.table-card header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 6px;
}
.table-card .tn {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
}
.table-card .t-type {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.seats-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.seats-row input { width: 64px; padding: 4px 6px; }

.help {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--paper-deep);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.help h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--ink);
}

/* Dialog */
dialog {
  border: 1px solid var(--rule);
  background: var(--ivory);
  padding: 0;
  max-width: 420px;
  width: calc(100% - 32px);
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(47, 40, 31, 0.35); }
.dlg-body { padding: 22px 24px 18px; }
.dlg-body h2 { margin: 0 0 12px; font-size: 26px; }
.dlg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.field { margin-bottom: 10px; }
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 4px;
}

.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: var(--ivory);
  padding: 10px 16px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 50;
  max-width: min(520px, 92vw);
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Place-card print sheet lives in the page, hidden on screen */
.placecard-root, .chart-print-extras { display: none; }

/* —— Print: seating chart —— */
@media print {
  @page { size: A3 landscape; margin: 12mm; }
  html, body { background: white; }
  .demo-banner, .venue-bar, .masthead .toolbar, .workspace > .panel,
  .alert, .toast, dialog, .floor-hint, .unseat { display: none !important; }
  .print-venue-line {
    display: block;
    width: 100%;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6f5e3d;
    margin-top: 4px;
  }
  .masthead {
    background: none;
    border: none;
    padding: 0 0 8px;
  }
  .workspace { display: block; }
  .floor-wrap { overflow: visible; background: none; }
  .floor {
    width: auto !important;
    height: auto !important;
    min-height: 0;
    background: none;
    transform-origin: top left;
  }
  .table-surface {
    box-shadow: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .seat { box-shadow: none; }
  .chart-print-extras {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    color: #333;
  }
  .brand span { color: #6e5936; }

  body.printing-placecards {
    background: white;
  }
  body.printing-placecards .demo-banner,
  body.printing-placecards .venue-bar,
  body.printing-placecards .masthead,
  body.printing-placecards .workspace,
  body.printing-placecards .alert,
  body.printing-placecards .toast,
  body.printing-placecards .chart-print-extras,
  body.printing-placecards dialog { display: none !important; }

  body.printing-placecards .placecard-root {
    display: block;
  }
  body.printing-placecards .placecard-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, 1fr);
    page-break-after: always;
    break-after: page;
    height: 190mm;
    gap: 4mm;
  }
  body.printing-placecards .placecard-page:last-child {
    page-break-after: auto;
    break-after: auto;
  }
  body.printing-placecards .placecard {
    border: 1px solid #cbbfa8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6mm;
  }
  body.printing-placecards .placecard .flourish {
    font-family: var(--font-display);
    color: #8d7349;
    letter-spacing: 0.4em;
    font-size: 11px;
  }
  body.printing-placecards .placecard .pn {
    font-family: var(--font-display);
    font-size: 26px;
    margin: 8px 0 4px;
    font-weight: 600;
  }
  body.printing-placecards .placecard .pt {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6e5936;
  }
}

@media print {
  @page placecards { size: A4 portrait; margin: 10mm; }
  body.printing-placecards { page: placecards; }
}

/* —— Vellum extras —— */
body.is-venue .privacy-line {
  margin: 0;
  padding: 6px 22px 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--ivory);
  border-bottom: 1px solid var(--rule);
}
.floor-toggle { display: flex; gap: 4px; align-items: flex-end; }
.floor-toggle .btn.on,
.venue-bar .btn.on {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.print-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  width: 100%;
  margin-top: 4px;
}
.print-menu .hint-inline {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-right: 4px;
}
.guest-extras { margin-top: 8px; }
.guest-extras input[type="text"] { margin: 6px 0; }
.flag-row, .allergen-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 6px 0;
}
.tiny {
  font-size: 11.5px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.allergen-grid .tiny { min-width: 46%; }
.allergen-flag { color: var(--warn); font-weight: 600; }
.extras-row { margin-top: 8px; }
.kitchen-tally, .speech-order {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
}
.kitchen-tally h3, .speech-order h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.tally-rows div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 2px 0;
}
.speech-list { margin: 0; padding-left: 1.2em; font-size: 13px; }
.floor-extra {
  position: absolute;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--gold);
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: grab;
  user-select: none;
}
.floor-extra.dance { border-style: dashed; background: transparent; }
.floor-extra.cake { border-radius: 50%; }
.floor-extra .unseat { display: none; }
.floor-extra:hover .unseat { display: block; }
.seat.wheel-seat { box-shadow: inset 0 0 0 1px var(--gold); }
body.cw-ivory { --paper: #f3eee3; --ivory: #fbf7ef; --ink: #2a241c; --gold: #8a7348; }
body.cw-sage { --paper: #e7eee6; --ivory: #f3f7f1; --ink: #243028; --gold: #5f6d55; --gold-deep: #4a5744; }
body.cw-blush { --paper: #f3e8e4; --ivory: #fbf4f1; --ink: #3a2a28; --gold: #9a6d68; --gold-deep: #7a524e; }
body.cw-navy { --paper: #e6e4df; --ivory: #f3f0e8; --ink: #1c2430; --gold: #3d4f6f; --gold-deep: #2c3b54; }
body.high-contrast { --ink: #111; --ivory: #fff; --paper: #fff; --gold: #000; --rule: #222; }
dialog { max-width: 520px; }
.print-docs { display: none; }

.room-templates {
  margin: 10px 0 12px;
  padding: 10px 0 4px;
  border-top: 1px dashed var(--rule);
}
.room-templates h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--ink);
}
.room-templates .row { margin-top: 6px; }
.room-templates select { width: 100%; }
.floor-toggle { flex-wrap: wrap; max-width: 360px; }


@media print {
  body.print-day .seat.evening-only .sn,
  body.print-day .seat.evening-only .sm { display: none !important; }
  body.print-day .seat.evening-only { border-style: dashed; color: transparent; }
  .privacy-line, .print-menu, .venue-actions, .floor-toggle, .guest-extras { display: none !important; }
  html, body {
    background: var(--ivory) !important;
    color: var(--ink);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body.high-contrast, body.high-contrast .seat, body.high-contrast .table-surface {
    background: #fff !important;
    color: #000 !important;
    border-color: #000 !important;
  }
  .floor-extra { box-shadow: none; }

  body.printing-docs .demo-banner,
  body.printing-docs .venue-bar,
  body.printing-docs .masthead,
  body.printing-docs .workspace,
  body.printing-docs .alert,
  body.printing-docs .toast,
  body.printing-docs .chart-print-extras,
  body.printing-docs .placecard-root,
  body.printing-docs dialog,
  body.printing-docs .privacy-line { display: none !important; }
  body.printing-docs .print-docs { display: block; }
  .print-doc-head { text-align: center; margin-bottom: 18px; border-bottom: 1px solid var(--gold); padding-bottom: 12px; }
  .print-kicker {
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-size: 11px;
    color: var(--gold);
    margin: 0 0 6px;
  }
  .print-doc-head h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 32px;
    margin: 0 0 4px;
  }
  .print-lead, .print-h {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.04em;
  }
  .print-table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .print-table th, .print-table td {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid var(--rule);
  }
  .print-table.tight td, .print-table.tight th { padding: 4px 6px; font-size: 12px; }
  .tablenum-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10mm;
  }
  .tablenum {
    border: 1px solid var(--gold);
    outline: 1px solid var(--rule);
    outline-offset: 6px;
    min-height: 108mm;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12mm 8mm;
    background: var(--ivory);
    page-break-inside: avoid;
  }
  .tn-kicker { letter-spacing: 0.32em; text-transform: uppercase; font-size: 12px; color: var(--gold); }
  .tn-name { font-family: var(--font-display); font-size: 56px; margin: 14px 0 10px; font-weight: 500; line-height: 1.05; }
  .tn-meta { letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px; color: var(--gold); }
  body.printing-placecards .placecard {
    border: 1px solid var(--gold);
    outline: 1px solid var(--rule);
    outline-offset: 3px;
    background: var(--ivory);
  }
  body.printing-placecards .placecard.large-print .pn { font-size: 34px; }
}
