/* Fake family names, not real Google Fonts families — the PDF export's
   svg2pdf.js resolves a numeric font-weight on a custom font unreliably (and
   can't reliably tell two styles of one family apart either), so the cover
   page's Lato Light and Lato Bold text are each registered under their own
   dedicated family name instead of as weights/styles of "Lato" (see
   export.ts). These @font-face rules make the on-screen preview resolve
   those same fake names to the real vendored files they're paired with in
   the PDF, so both match — with no font-weight attribute needed anywhere. */
@font-face {
  font-family: "Lato Light";
  src: url("/assets/fonts/Lato-Light.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Lato Bold";
  src: url("/assets/fonts/Lato-Bold.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

/* Real family names, self-hosted from the same TTFs the PDF export already
   vendors (see EXPORT_FONTS in exportShared.ts) — single weight each, same
   as the PDF only ever uses. Lets the live export preview (which sets these
   as plain font-family attributes in the SVG, not via CSS classes) resolve
   them without Google Fonts. */
@font-face {
  font-family: "MonteCarlo";
  src: url("/assets/fonts/MonteCarlo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Ms Madi";
  src: url("/assets/fonts/MsMadi-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Klee One";
  src: url("/assets/fonts/KleeOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

/* Self-hosted so the site works offline — replaces the Google Fonts <link>
   that used to be in newHead.php. Only the weights actually used anywhere in
   the app: body text + h1-h6 need 400, .guestRow and browser-default bold
   headings need a second weight. No italic is used anywhere. */
@font-face {
  font-family: "Lato";
  src: url("/assets/fonts/Lato-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Lato";
  src: url("/assets/fonts/Lato-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/PlayfairDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/PlayfairDisplay-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

* {
  box-sizing: border-box;
  position: relative;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
}
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Lato", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
}
h1 span,
h2 span,
h3 span,
h4 span,
h5 span,
h6 span {
  font-family: "Playfair Display", serif;
}
h1 {
  font-size: 3.5rem;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  line-height: 2.8rem;
}
h3 {
  font-size: 1.5rem;
  line-height: 2.1rem;
}
h4 {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
h5 {
  font-size: 1rem;
  line-height: 1.4rem;
}
h6 {
  font-size: 0.8rem;
  line-height: 1.12rem;
}
p {
  font-size: 1rem;
  line-height: 1.4rem;
}
.bold {
  font-weight: 600;
}
.smallFont {
  font-size: 0.8rem;
  line-height: 1.12rem;
}
input {
  font-family: "Lato", sans-serif;
  font-size: 1rem;
  line-height: 1.4rem;
}
select {
  font-family: "Lato", sans-serif;
  font-size: 1rem;
  line-height: 1.4rem;
}
option {
  font-family: "Lato", sans-serif;
  font-size: 1rem;
  line-height: 1.4rem;
}

.checkboxRow,
.radioRow {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  cursor: pointer;
  margin: 8px 0;
}
.checkboxRow[hidden],
.radioRow[hidden] {
  /* display above would otherwise beat the hidden attribute */
  display: none;
}
.checkboxInput {
  position: absolute;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.checkboxIcon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--grey);
  border-radius: 4px;
  color: var(--onStrong);
  transition: 0.1s;
}
.checkboxIcon .smallIcon {
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: 0.1s;
}
.checkboxRow:hover .checkboxIcon {
  border-color: var(--strong);
}
.checkboxInput:checked ~ .checkboxIcon {
  background: var(--strong);
  border-color: var(--strong);
}
.checkboxInput:checked ~ .checkboxIcon .smallIcon {
  opacity: 1;
}
.checkboxInput:focus-visible ~ .checkboxIcon {
  outline: 2px solid var(--strong);
  outline-offset: 2px;
}
.checkboxInput:disabled ~ .checkboxIcon {
  opacity: 0.5;
  cursor: not-allowed;
}
.checkboxRow:has(.checkboxInput:disabled) {
  cursor: not-allowed;
}

/* A radio button: the same look as the checkbox, round, with a dot. The
   native input is invisible but still takes focus and arrow keys. */
.radioInput {
  position: absolute;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.radioIcon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--grey);
  border-radius: 50%;
  transition: 0.1s;
}
.radioIcon::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--strong);
  transform: scale(0);
  transition: 0.1s;
}
.radioRow:hover .radioIcon {
  border-color: var(--strong);
}
.radioInput:checked ~ .radioIcon {
  border-color: var(--strong);
}
.radioInput:checked ~ .radioIcon::after {
  transform: scale(1);
}
.radioInput:focus-visible ~ .radioIcon {
  outline: 2px solid var(--strong);
  outline-offset: 2px;
}

a {
  transition: 0.2s;
}
button {
  border: none;
  outline: none;
  font-family: "Lato Bold";
  cursor: pointer;
  transition: 0.2s;
}
button p {
  flex: 1;
}
button .smallIcon {
  margin: -2px 0;
}

/* The filled gold call-to-action (the paid PDF download). No small
   counterpart — the gold ring variant is *-quaternary. */
.button-big-gold {
  min-height: 58px;
  padding: 10px 24px;
  border-radius: 12px;
  font-family: "Lato Bold";
  font-size: 1rem;
  line-height: 1.4rem;
  font-weight: bold;
  background: var(--gradient-gold);
  color: var(--onAccent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.button-big-gold:hover {
  filter: brightness(1.1);
}
.button-big-gold p {
  font-size: 1rem;
  line-height: 1.4rem;
  font-weight: bold;
  text-align: center;
}

.button-big-primary {
  min-height: 58px;
  padding: 10px 24px;
  border-radius: 12px;
  font-family: "Lato Bold";
  font-size: 1rem;
  line-height: 1.4rem;
  font-weight: bold;
  background: var(--buttonPrimaryBg);
  color: var(--buttonPrimaryText);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.button-big-primary:hover {
  background: var(--buttonPrimaryBgHover);
}
.button-big-primary p {
  font-size: 1rem;
  line-height: 1.4rem;
  font-weight: bold;
  text-align: center;
}

.button-big-secondary {
  min-height: 58px;
  padding: 9px 23px;
  border-radius: 12px;
  font-family: "Lato Bold";
  font-size: 1rem;
  line-height: 1.4rem;
  font-weight: bold;
  background: none;
  border: 1px solid var(--buttonBorder);
  color: var(--buttonText);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.button-big-secondary:hover {
  border-color: var(--buttonBorderHover);
}
.button-big-secondary p {
  font-size: 1rem;
  line-height: 1.4rem;
  font-weight: bold;
  text-align: center;
}

.button-big-tertiary {
  min-height: 58px;
  padding: 10px 24px;
  border-radius: 12px;
  font-family: "Lato Bold";
  font-size: 1rem;
  line-height: 1.4rem;
  font-weight: bold;
  background: none;
  color: var(--buttonText);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.button-big-tertiary:hover {
  /*background: var(--grey2);*/
  color: var(--accent);
}
.button-big-tertiary p {
  font-size: 1rem;
  line-height: 1.4rem;
  font-weight: bold;
  text-align: center;
}

.button-big-quaternary {
  padding: 1px;
  border-radius: 12px;
  font-family: "Lato Bold";
  font-size: 1rem;
  line-height: 1.4rem;
  font-weight: bold;
  background: var(--gradient-gold);
}
.button-big-quaternary-inner {
  min-height: 58px;
  padding: 9px 23px;
  border-radius: 11px;
  background: var(--buttonInnerBg);
  color: var(--accent);
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.button-big-quaternary:hover .button-big-quaternary-inner {
  background: none;
  color: var(--onAccent);
}
.button-big-quaternary p {
  font-size: 1rem;
  line-height: 1.4rem;
  font-weight: bold;
  text-align: center;
}

.button-small-gold {
  min-height: 42px;
  padding: 6px 16px;
  border-radius: 8px;
  font-family: "Lato Bold";
  font-size: 0.8rem;
  line-height: 1.12rem;
  font-weight: bold;
  background: var(--gradient-gold);
  color: var(--onAccent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.button-small-gold:hover {
  filter: brightness(1.1);
}
.button-small-gold p {
  font-size: 0.8rem;
  line-height: 1.12rem;
  font-weight: bold;
  text-align: center;
}

.button-small-primary {
  min-height: 42px;
  padding: 6px 16px;
  border-radius: 8px;
  font-family: "Lato Bold";
  font-size: 0.8rem;
  line-height: 1.12rem;
  background: var(--buttonPrimaryBg);
  color: var(--buttonPrimaryText);
  display: flex;
  align-items: center;
  justify-content: center;
}
.button-small-primary:hover {
  background: var(--buttonPrimaryBgHover);
}
.button-small-primary p {
  font-size: 0.8rem;
  line-height: 1.12rem;
  text-align: center;
}

.button-small-secondary {
  min-height: 42px;
  padding: 5px 15px;
  border-radius: 8px;
  font-family: "Lato Bold";
  font-size: 0.8rem;
  line-height: 1.12rem;
  background: none;
  border: 1px solid var(--buttonBorder);
  color: var(--buttonText);
  display: flex;
  align-items: center;
  justify-content: center;
}
.button-small-secondary:hover {
  border-color: var(--buttonBorderHover);
}
.button-small-secondary p {
  font-size: 0.8rem;
  line-height: 1.12rem;
  text-align: center;
}

/* A segmented control: one track holding a group of .toolButtons of which
   exactly one is selected (.selectedTool, toggled by the code). A choice,
   not an action: the selected segment is a raised chip on a tinted track,
   never the primary button's fill. The export panel's options (export.css).
   .wraps lets many segments (the rooms) run onto more lines. */
.segmented {
  display: flex;
  padding: 4px;
  gap: 2px;
  border-radius: 8px;
  background: var(--segmentTrack);
}
.segmented > .toolButton {
  flex: 1;
  justify-content: center;
  padding: 8px 14px;
  border: none;
  border-radius: 5px;
  background: none;
  color: var(--textMuted);
}
.segmented > .toolButton:hover {
  color: var(--text);
}
.segmented > .toolButton.selectedTool {
  background: var(--segmentSelected);
  color: var(--text);
  box-shadow: var(--segmentShadow);
  cursor: default;
}
.segmented.wraps {
  flex-wrap: wrap;
}
/* Sized by their labels so a row holds as many as fit, then grown to fill
   the row's width. */
.segmented.wraps > .toolButton {
  flex: 1 1 auto;
}

.button-small-tertiary {
  min-height: 42px;
  padding: 6px 16px;
  border-radius: 8px;
  font-family: "Lato Bold";
  font-size: 0.8rem;
  line-height: 1.12rem;
  background: none;
  color: var(--buttonText);
  display: flex;
  align-items: center;
  justify-content: center;
}
.button-small-tertiary:hover {
  /*background: var(--grey2);*/
  color: var(--accent);
}
.button-small-tertiary p {
  font-size: 0.8rem;
  line-height: 1.12rem;
  text-align: center;
}

.button-small-quaternary {
  padding: 1px;
  border-radius: 8px;
  font-family: "Lato Bold";
  font-size: 0.8rem;
  line-height: 1.12rem;
  background: var(--gradient-gold);
}
.button-small-quaternary-inner {
  min-height: 40px;
  padding: 5px 15px;
  border-radius: 7px;
  background: var(--buttonInnerBg);
  color: var(--accent);
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.button-small-quaternary:hover .button-small-quaternary-inner {
  background: none;
  color: var(--onAccent);
}
.button-small-quaternary p {
  font-size: 0.8rem;
  line-height: 1.12rem;
  text-align: center;
}

.button-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

input {
  margin: 8px 0;
  outline: none;
  border: 1px solid var(--border);
  background: none;
  padding: 8px 12px;
  border-radius: 8px;
  width: 100%;
  background: var(--bg);
  font-size: 1rem;
  line-height: 1.4rem;
}
input:hover {
  border-color: var(--gold);
}
input:focus {
  border-color: var(--gold);
  outline: 1px solid var(--gold);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 20px;
  margin: 8px 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
/* Chrome/Safari/Edge have no built-in "filled portion" pseudo-element like
   Firefox's ::-moz-range-progress, so the fill is faked with a gradient that
   hard-stops at --range-progress — a CSS custom property JS sets on input,
   since CSS alone can't read the current value as a percentage. */
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--strong) var(--range-progress, 0%),
    var(--border) var(--range-progress, 0%)
  );
}
input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
}
input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--strong);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--strong);
  cursor: pointer;
  transition: 0.1s;
}
input[type="range"]::-moz-range-thumb {
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--strong);
  cursor: pointer;
  transition: 0.1s;
}
input[type="range"]:hover::-webkit-slider-thumb,
input[type="range"]:focus-visible::-webkit-slider-thumb {
  border-color: var(--gold);
}
input[type="range"]:hover::-moz-range-thumb,
input[type="range"]:focus-visible::-moz-range-thumb {
  border-color: var(--gold);
}
input[type="range"]:focus-visible {
  outline: none;
}
input[type="range"]:focus {
  outline: none;
}

#addGuestRow {
  padding: 0;
}
#addGuestRow input {
  min-width: 0;
  margin: 0;
  width: 350px;
}
#addGuestRow button {
  flex: 1;
  align-self: stretch;
  max-width: 150px;
}

textarea {
  margin: 8px 0;
  outline: none;
  border: 1px solid var(--border);
  background: none;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg);
  width: 350px;
  min-width: 350px;
  max-width: 100%;
  min-height: 100px;
  font-size: 0.84rem;
  line-height: 1rem;
}
textarea:hover {
  border-color: var(--gold);
}
textarea:focus {
  border-color: var(--gold);
  outline: 1px solid var(--gold);
}

/* Palette first, then the roles that components use (see the comments
   inside). */
:root {
  --headerHeight: 64px;

  /* ---- Palette ----
     Raw colours, named for what they are. Components don't use these
     directly where a role below fits; a theme changes the roles. Every
     translucent version is written relative to its base, so the colour
     lives in one place: rgb(from var(--base) r g b / opacity). */
  --black: #29303d;
  --grey22: #373d48;
  --grey21: #444a53;
  --grey20: #52565e;
  --grey19: #60636a;
  --grey18: #6d7075;
  --grey17: #7b7d80;
  --grey16: #88898b;
  --grey15: #969696;
  --grey14: #9d9d9d;
  --grey13: #a4a3a3;
  --grey12: #aaaaaa;
  --grey11: #b1b1b0;
  --grey10: #b8b7b7;
  --grey9: #bfbebd;
  --grey8: #c6c5c4;
  --grey7: #cccbca;
  --grey6: #d3d2d1;
  --grey5: #dad9d7;
  --grey4: #e1dfde;
  --grey3: #e8e6e4;
  --grey2: #eeedeb;
  --grey1: #f5f3f1;
  --white: #fcfaf8;
  --snowWhite: #ffffff;

  /* The dark theme's slate (see dark.css), cream text and brighter gold. */
  --night: #1b2029;
  --nightSoft: #222833;
  --nightRaised: #242b36;
  --nightDeep: #141922;
  --nightHover: #2c3441;
  --nightInset: #343c4a;
  --nightHighlight: #3b4556;
  --cream: var(--grey5); /*#f1efec;*/
  --goldBright: #e6b04a;
  --blackBright: #5f6a7d;

  /* Colours with the same Dark/Semi/Light family the table colours have
     (colors.ts builds these names from a ColorToken). */
  --greyDark: var(--grey20);
  --grey: var(--grey17);
  --greySemi: rgb(from var(--grey) r g b / 47%);
  --greyLight: rgb(from var(--grey) r g b / 20%);

  --blackDark: var(--black);
  --blackSemi: rgb(from var(--black) r g b / 47%);
  --blackLight: rgb(from var(--black) r g b / 20%);

  --redDark: #ed3958;
  --red: #fb5666;
  --redSemi: rgb(from var(--red) r g b / 47%);
  --redLight: rgb(from var(--red) r g b / 20%);

  --greenDark: #11b981;
  --green: #34d399;
  --greenSemi: rgb(from var(--green) r g b / 47%);
  --greenLight: rgb(from var(--green) r g b / 20%);

  --blueDark: #0ca5e9;
  --blue: #39bdf8;
  --blueSemi: rgb(from var(--blue) r g b / 47%);
  --blueLight: rgb(from var(--blue) r g b / 20%);

  --purpleDark: #8b5cf6;
  --purple: #a78bfa;
  --purpleSemi: rgb(from var(--purple) r g b / 47%);
  --purpleLight: rgb(from var(--purple) r g b / 20%);

  --goldDark: #c38720;
  --gold: #d99726;
  --goldSemi: rgb(from var(--gold) r g b / 47%);
  --goldLight: rgb(from var(--gold) r g b / 20%);

  --pinkDark: #db2777;
  --pink: #ec4899;
  --pinkSemi: rgb(from var(--pink) r g b / 47%);
  --pinkLight: rgb(from var(--pink) r g b / 20%);

  --orangeDark: #ea580c;
  --orange: #f97316;
  --orangeSemi: rgb(from var(--orange) r g b / 47%);
  --orangeLight: rgb(from var(--orange) r g b / 20%);

  --wineDark: #a61944;
  --wine: #be123c;
  --wineSemi: rgb(from var(--wine) r g b / 47%);
  --wineLight: rgb(from var(--wine) r g b / 20%);

  --tealDark: #12b4a6;
  --teal: #2dd4bf;
  --tealSemi: rgb(from var(--teal) r g b / 47%);
  --tealLight: rgb(from var(--teal) r g b / 20%);

  --indigoDark: #5244f6;
  --indigo: #6366f1;
  --indigoSemi: rgb(from var(--indigo) r g b / 47%);
  --indigoLight: rgb(from var(--indigo) r g b / 20%);

  --yellow: #ffd100;
  --yellowSemi: rgb(from var(--yellow) r g b / 47%);
  --yellowLight: rgb(from var(--yellow) r g b / 20%);

  --gradient-gold: linear-gradient(135deg, rgb(217 151 38) 0%, rgb(235 194 71) 100%);
  --gradient-subtle: linear-gradient(180deg, rgb(252 250 248) 0%, rgb(241 237 230) 100%);
  --gradient-color: linear-gradient(135deg, rgb(217 38 178) 0%, rgb(254 206 64) 100%);

  /* ---- Roles ----
     What components use. Dark.css gives these other values. The bg* family
     is the page background at 0%, 67%, 85% and 93% opacity, for fades into
     the page and translucent bars. */
  --bg: var(--white);
  --bgSoft: var(--grey1);
  --bgClear: rgb(from var(--white) r g b / 0%);
  --bgTranslucent: rgb(from var(--white) r g b / 67%);
  --bgMostly: rgb(from var(--white) r g b / 85%);
  --bgAlmost: rgb(from var(--white) r g b / 93%);
  --surface: var(--white);
  --paper: var(--snowWhite);
  /* The floating panels over the room: settings, preferences. */
  --panel: var(--white);
  --overlay: rgb(from var(--black) r g b / 60%);
  --text: var(--black);
  --textMuted: var(--greyDark);
  --textFaint: var(--grey);
  --border: var(--grey5);
  --accent: var(--gold);
  --accentDark: var(--goldDark);
  --accentLight: var(--goldLight);
  --onAccent: var(--white);
  /* Text on photographs, which stay dark behind it in every theme. */
  --onPhoto: var(--white);
  --onPhotoMuted: var(--grey3);
  --onPhotoSubtle: var(--grey2);
  --photoScrim: rgb(from var(--black) r g b / 75%);
  --photoScrimClear: rgb(from var(--black) r g b / 0%);
  --footerBg: var(--black);
  --footerText: var(--grey7);
  --footerTextHover: var(--white);
  --buttonPrimaryBg: var(--strong);
  --buttonPrimaryBgHover: var(--grey22);
  --buttonPrimaryText: var(--onStrong);
  --buttonText: var(--greyDark);
  --buttonBorder: var(--border);
  --buttonBorderHover: var(--grey10);
  --buttonInnerBg: var(--white);
  /* A segmented control (.segmented): the track behind the choices, and the
     raised chip on the chosen one. Deliberately not --strong, so a choice
     never looks like a primary button, which does something. */
  --segmentTrack: var(--grey2);
  --segmentSelected: var(--snowWhite);
  --segmentShadow: 0 1px 2px rgb(0 0 0 / 0.08);
  /* Filled controls and marks that stand out from the page: the active tab,
     checked checkbox, slider fill, primary button. */
  --strong: var(--greyDark);
  --onStrong: var(--white);
  --bgHover: var(--grey2);
  --bgInset: var(--grey4);
  --highlight: var(--grey7);
  --highlightBorder: var(--grey14);
  --textHint: var(--grey11);
  --textDisabled: var(--grey8);
  --gridLine: var(--grey4);
  --tableFill: rgb(from var(--grey1) r g b / 80%);
  --rowHighlight: rgb(from var(--grey6) r g b / 20%);
  /* The room chart's table and chair fill in the PDF. exportShared.ts reads
     this one, so it must stay in the form rgb(from var(--x) r g b / N%). */
  --exportFill: rgb(from var(--snowWhite) r g b / 80%);

  --shadow-soft: 0 4px 20px -4px rgb(41 48 61 / 0.08);
  --shadow-elevated: 0 12px 40px -8px rgb(41 48 61 / 0.12);
  --shadow-gold: 0 8px 30px -6px rgb(217 151 38 / 0.25);
  --shadow-media: 0 12px 32px rgb(0 0 0 / 0.08);
}

/*

/* Warm cream background /
  --background: 252 250 248;
  --foreground: 41 48 61;

  /* Cards slightly warmer /
  --card: 247 246 242;
  --card-foreground: 41 48 61;

  --popover: 247 246 242;
  --popover-foreground: 41 48 61;

  /* Deep charcoal primary /
  --primary: 41 48 61;
  --primary-foreground: 252 250 248;

  /* Soft sage secondary /
  --secondary: 226 233 230;
  --secondary-foreground: 51 76 64;

  /* Muted warm gray /
  --muted: 237 235 233;
  --muted-foreground: 103 111 126;

  /* Champagne gold accent /
  --accent: 217 151 38;
  --accent-foreground: 252 250 248;

  --destructive: 239 67 67;
  --destructive-foreground: 255 255 255;

  --border: 231 226 218;
  --input: 231 226 218;
  --ring: 217 151 38;


  /* Sidebar /
  --sidebar-background: 247 246 242;
  --sidebar-foreground: 41 48 61;
  --sidebar-primary: 217 151 38;
  --sidebar-primary-foreground: 252 250 248;
  --sidebar-accent: 239 236 231;
  --sidebar-accent-foreground: 41 48 61;
  --sidebar-border: 231 226 218;
  --sidebar-ring: 217 151 38;

  --radius: 0.75rem;
*/

/* --- header --- */
.header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--headerHeight);
  background: var(--bgTranslucent);
}
.header-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
}
#logoDark {
  display: none;
}
#logo,
#logoDark {
  height: 54px;
  width: 54px;
}
#languageButton {
  text-decoration: none;
  margin-right: 8px;
}
#logoTitle {
  padding-bottom: 4px;
  padding-left: 12px;
  padding-right: 64px;
  font-family: "Lato Light";
  font-weight: 400;
}
#projectNameInput {
  width: 250px;
  margin: 0 20px 0 4px;
  padding: 2px 8px;
  border-color: transparent;
  border-radius: 6px;
  font-family: "Lato Light";
  font-size: 1.2rem;
  line-height: 2rem;
  text-overflow: ellipsis;
}
/* The id above outranks the general input:hover / input:focus rules. */
#projectNameInput:hover,
#projectNameInput:focus {
  border-color: var(--gold);
}
.navigationButton {
  display: flex;
  background: none;
}
.navigationText {
  height: var(--headerHeight);
  display: flex;
  align-items: center;
  padding-left: 16px;
  padding-right: 10px;
  pointer-events: none;
  color: var(--textFaint);
  transition: 0.2s;
}
.leftTriangle {
  border-left: 12px solid transparent;
  border-top: calc(var(--headerHeight) / 2) solid transparent;
  border-bottom: calc(var(--headerHeight) / 2) solid transparent;
  pointer-events: none;
  margin-left: -6px;
  transition: 0.2s;
}
.rightTriangle {
  border-left: 12px solid transparent;
  border-top: calc(var(--headerHeight) / 2) solid transparent;
  border-bottom: calc(var(--headerHeight) / 2) solid transparent;
  pointer-events: none;
  margin-right: -6px;
  transition: 0.2s;
}
.navigationButton:hover .navigationText {
  background: var(--bgHover);
}
.navigationButton:hover .leftTriangle {
  border-top-color: var(--bgHover);
  border-bottom-color: var(--bgHover);
}
.navigationButton:hover .rightTriangle {
  border-left-color: var(--bgHover);
}
/* --- step and mode visibility ---
   The body carries a step class (buildStep / guestStep / placementStep /
   shareStep, set by navigateTo) and a room-mode class (buildMode / preferenceMode /
   placementMode, set by setRoomMode). Everything that depends on them is
   shown or hidden by CSS from those classes; no code toggles it. The room's
   mode buttons and the preferences panel follow the same pattern in room.css
   and preferences.css. */
.buildStep #stepBuild .navigationText,
.guestStep #stepGuest .navigationText,
.placementStep #stepArrange .navigationText,
.shareStep #stepShare .navigationText {
  background: var(--strong) !important;
  color: var(--onStrong) !important;
}
.buildStep #stepBuild .leftTriangle,
.guestStep #stepGuest .leftTriangle,
.placementStep #stepArrange .leftTriangle,
.shareStep #stepShare .leftTriangle {
  border-top-color: var(--strong) !important;
  border-bottom-color: var(--strong) !important;
}
.buildStep #stepBuild .rightTriangle,
.guestStep #stepGuest .rightTriangle,
.placementStep #stepArrange .rightTriangle,
.shareStep #stepShare .rightTriangle {
  border-left-color: var(--strong) !important;
}

/* Narrow screens: the step buttons go first (the step panel's bottom bar is
   the way between steps then, step 4 included), the logo text and language
   switch on phones; the project's name stays and takes the room the steps
   left, beside the logo mark and the account button. */
@media (max-width: 1000px) {
  .header-content .navigationButton {
    display: none;
  }
}
@media (max-width: 700px) {
  .header-content {
    padding: 0 16px;
  }
  #logoTitle,
  #languageButton {
    display: none;
  }
  #projectNameInput {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    margin-right: 16px;
  }
}

@media (max-width: 500px) {
  textarea {
    min-width: 100%;
  }
}

/* --- page layout: step panel on the left, room filling the rest --- */
.container {
  display: flex;
  flex-direction: row;
}
.innerContainer {
  display: flex;
  flex-direction: column;
  height: 100%;
}
#stepPanel {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 500px;
  flex: none;
  border-right: 1px solid var(--border);
}
/* Bottom bar of the step panel: back (secondary) and next (gold) for the
   current step, side by side; navigateTo swaps the body's step class. */
.stepButtons {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, var(--bgAlmost) 50%, var(--bgAlmost));
  display: flex;
  justify-content: space-between;
  padding: 20px;
  pointer-events: none;
  gap: 12px;
}
.stepButtons button {
  display: none;
  pointer-events: all;
}
#buildStepSpacer {
  display: none;
  width: 100px;
}
.buildStep #buildStepSpacer,
.buildStep #buildStepNextButton,
.guestStep #guestStepBackButton,
.guestStep #guestStepNextButton,
.placementStep #arrangeStepBackButton,
.placementStep #arrangeStepNextButton {
  display: flex;
}
/* The app hides every scrollbar (its panels scroll on their own); the landing
   and legal pages keep theirs. Scoped via the app page's <html class="app">.
   The second rule is Firefox's equivalent of the first. */
html.app::-webkit-scrollbar,
html.app ::-webkit-scrollbar {
  display: none;
}
html.app,
html.app * {
  scrollbar-width: none;
}
.scrollContainer {
  padding: 16px;
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow-y: scroll;
}
#stepPanel .scrollContainer {
  padding: 16px 20px 110px 20px;
  padding-top: calc(var(--headerHeight) + 16px);
}
#containerDivider {
  display: none;
}
@media (max-width: 1000px) {
  #stepPanel {
    width: 100%;
    height: calc(90vh - var(--headerHeight));
    border-right: none;
  }
  /* Stacked, room first: the opposite of the DOM order, hence the reverse. */
  .container {
    flex-direction: column-reverse;
  }
  #containerDivider {
    display: block;
    width: 100%;
    height: var(--headerHeight);
    border-top: 1px solid var(--border);
  }
  #stepPanel .scrollContainer {
    padding-top: 16px;
  }
}

/* --- shared bits used across the panels --- */
.title {
  color: var(--text);
}
.faintText {
  color: var(--textFaint);
}
.step {
  color: var(--text);
  display: none;
}
.buildStep #step1,
.guestStep #step2,
.placementStep #step3 {
  display: block;
}
.unselectableText {
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+/Edge */
  user-select: none; /* Standard */
}
.spaceRow {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}
.pRow {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.pRow .smallIcon {
  width: 16px;
  height: 16px;
}
.smallIcon {
  width: 20px;
  height: 20px;
}
.goldIcon {
  color: var(--gold);
}
/* A few words of a title set in the gold gradient. */
.goldText {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.totalInfo {
  color: var(--textFaint);
  padding-right: 8px;
}
#totalNrOfChairs,
#totalNrOfGuest {
  padding-left: 8px;
}
/* After the button variants above so it overrides their background/colour. */
.deleteButton {
  background: none;
  color: var(--textMuted);
  width: 100%;
}
.deleteButton:hover {
  background: var(--redDark);
  color: var(--white);
}
.closeButton {
  position: absolute;
  top: 16px;
  right: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
}
.closeButton:hover {
  background: var(--bgHover);
}
.warning {
  border: 1px solid var(--yellow);
  background: var(--yellowLight);
  color: var(--textMuted);
  border-radius: 12px;
  padding: 12px;
  margin-top: 16px;
}
/* Colour swatches rendered into #test by room.ts (palette check). */
.colorBorder {
  height: 8px;
}

/* --- phone frame ---
   A phone-shaped frame around an iframe of the guests' page (seat/index.php):
   the export panel's preview (app/index.php) and the landing page's demo
   (index.php) both use it. Dark bezel in every theme — it is a phone. */
.guestPagePhone {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 390px;
  max-width: 100%;
  max-height: 844px;
  box-sizing: content-box;
  border: 10px solid #1b1b1b;
  border-radius: 40px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0px 8px 32px 4px #0003;
}
/* Pinned to the frame's edges rather than given a percentage height: Safari
   resolves that percentage against the wrong box here (a content-box frame
   with a border, sized by flex or by aspect-ratio) and makes the iframe
   taller than the frame, whose overflow then hides the page's bottom. */
.guestPagePhone iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

/* --- theme menu ---
   The theme choice as an icon button with a small panel holding the picker
   (include/themePicker.php, run by js/theme.js): under the button in the
   landing header, above it in the guests' page's bottom line
   (css/guestPage.css moves it). */
.themeMenu {
  position: relative;
}
.themeMenuPanel {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  padding: 16px 20px;
  background: var(--bgTranslucent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-elevated);
}
.themeMenuPanel[hidden] {
  display: none;
}
.themeMenuPanel h4 {
  margin-bottom: 12px;
}
