:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #617067;
  --line: #d9e0db;
  --paper: #f7f8f5;
  --panel: #ffffff;
  --green: #2e7d61;
  --red: #b54444;
  --gold: #d8a735;
  --blue: #316f9f;
  --shadow: 0 18px 45px rgba(28, 38, 33, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 245, 0.94);
  backdrop-filter: blur(14px);
}

.topbar a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.topbar .brand {
  margin-right: auto;
  color: var(--ink);
  font-size: 18px;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.shell.narrow {
  width: min(760px, calc(100% - 32px));
}

.hero-board {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 32px;
  align-items: stretch;
  min-height: 460px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(46, 125, 97, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(216, 167, 53, 0.14), transparent 38%),
    #fff;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 20px;
}

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.actions.compact {
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.button.danger {
  border-color: rgba(181, 68, 68, 0.4);
  background: #faeeee;
  color: var(--red);
}

.button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.live-readiness {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.live-readiness-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.live-readiness-item > span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.live-readiness-item div {
  display: grid;
  gap: 3px;
}

.live-readiness-item small {
  color: var(--muted);
}

.live-readiness-item.is-ready > span {
  background: #e4f4ec;
  color: var(--green);
}

.live-readiness-item.is-blocked > span {
  background: #faeeee;
  color: var(--red);
}

.customer-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.customer-event-row:last-child {
  border-bottom: 0;
}

.customer-event-row > div {
  display: grid;
  gap: 4px;
}

.customer-event-row span {
  color: var(--muted);
}

@media (max-width: 640px) {
  .customer-event-row {
    align-items: stretch;
    flex-direction: column;
  }
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.site-header .brand-lockup {
  font-size: 22px;
  color: inherit;
  text-decoration: none;
}

.site-header-links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.site-header-links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer span,
.site-footer a {
  color: var(--muted);
  font-weight: 700;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.landing-page {
  --landing-eyebrow-size: 13px;
  --landing-headline-size: 76px;
  --landing-subline-size: 19px;
  --landing-feature-title-size: 38px;
  --landing-feature-text-size: 16px;
  --landing-cta-title-size: 42px;
  --landing-cta-text-size: 18px;
  display: grid;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 28px;
  align-items: stretch;
  min-height: min(680px, calc(100vh - 132px));
}

.landing-copy,
.landing-visual,
.landing-features article,
.landing-product,
.landing-packages,
.landing-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.landing-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px);
}

.landing-copy h1 {
  font-size: var(--landing-headline-size);
}

.landing-brand-mark {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 28px;
  font-weight: 950;
}

.landing-copy .eyebrow {
  font-size: var(--landing-eyebrow-size);
}

.landing-copy .lead {
  font-size: var(--landing-subline-size);
}

.demo-request-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.demo-request-form label {
  min-width: min(260px, 100%);
}

.demo-request-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.demo-modal {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.demo-modal::backdrop {
  background: rgba(7, 16, 12, 0.62);
  backdrop-filter: blur(4px);
}

.demo-modal-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.demo-modal-card h2,
.demo-modal-card p {
  margin: 0;
}

.demo-modal-card .demo-request-form {
  display: grid;
  align-items: stretch;
}

.demo-modal-card .demo-request-form label {
  min-width: 0;
}

.demo-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.demo-resend-form {
  margin-top: 12px;
}

.muted-text {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.landing-visual {
  position: relative;
  min-height: 480px;
  overflow: hidden;
}

.landing-visual img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.landing-live-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: min(340px, calc(100% - 48px));
  padding: 22px;
  border-radius: 8px;
  background: rgba(23, 33, 29, 0.88);
  color: #fff;
  backdrop-filter: blur(12px);
}

.landing-live-card span,
.landing-features span {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.landing-live-card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.05;
}

.landing-features,
.package-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.landing-features article,
.package-cards article {
  padding: 24px;
}

.landing-features h2,
.landing-product h2,
.landing-packages h2,
.landing-cta h2 {
  font-size: var(--landing-feature-title-size);
  line-height: 1.05;
}

.landing-cta h2 {
  font-size: var(--landing-cta-title-size);
}

.landing-features p,
.landing-product p,
.landing-packages p,
.landing-cta p,
.package-cards p {
  color: var(--muted);
  font-size: var(--landing-feature-text-size);
  line-height: 1.55;
}

.landing-guide {
  padding: clamp(28px, 5vw, 52px) clamp(24px, 4vw, 42px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.landing-guide header {
  max-width: 720px;
}

.landing-guide h2 {
  margin-bottom: 10px;
  font-size: var(--landing-guide-title-size);
  line-height: 1.08;
}

.landing-guide header > p:last-child,
.landing-guide-steps p {
  color: var(--muted);
  font-size: var(--landing-guide-text-size);
  line-height: 1.55;
}

.landing-guide-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.landing-guide-steps li {
  min-width: 0;
  padding: 0 22px;
  border-left: 1px solid var(--line);
}

.landing-guide-steps li:first-child {
  padding-left: 0;
  border-left: 0;
}

.landing-guide-steps li:last-child {
  padding-right: 0;
}

.landing-guide-steps > li > span {
  display: block;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.landing-guide-steps h3 {
  margin: 0 0 8px;
  font-size: var(--landing-guide-step-title-size);
  line-height: 1.2;
}

.landing-guide-steps p {
  margin-bottom: 0;
}

.landing-cta p {
  font-size: var(--landing-cta-text-size);
}

.landing-product {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1.25fr);
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
}

.landing-mini-presentation {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  overflow: hidden;
  border-radius: 8px;
  background: #07100c;
}

.landing-mini-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34%;
  gap: 12px;
  padding: 12px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.9s ease, transform 1.4s ease;
}

.landing-mini-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.landing-mini-photo {
  overflow: hidden;
  border-radius: 6px;
  background:
    radial-gradient(circle at 72% 22%, rgba(216, 167, 53, 0.86), transparent 18%),
    linear-gradient(135deg, #68465f, #223d79 54%, #1f4b3b);
}

.landing-mini-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.landing-mini-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px;
  border-radius: 6px;
  background: rgba(23, 33, 29, 0.92);
  color: #fff;
}

.landing-mini-panel span,
.landing-mini-status {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.landing-mini-panel strong {
  font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1.12;
}

.landing-mini-panel small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.landing-mini-status {
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(23, 33, 29, 0.76);
  font-size: 12px;
}

.landing-packages,
.landing-cta {
  padding: clamp(24px, 4vw, 42px);
}

.package-cards {
  margin-top: 18px;
}

.package-cards article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf8;
}

.package-cards strong {
  display: block;
  margin: 14px 0 6px;
  font-size: 28px;
}

.package-cards small {
  color: var(--muted);
  font-weight: 800;
}

.landing-cta {
  text-align: center;
}

.landing-cta .button {
  margin-top: 10px;
}

.legal-page .rich-content {
  color: var(--ink);
  line-height: 1.7;
}

.rich-content a {
  color: var(--green);
  font-weight: 800;
}

.rich-content figure {
  margin: 24px 0;
}

.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.rich-content figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9em;
}

.paypal-checkout {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf8;
}

.landing-editor {
  display: grid;
  gap: 18px;
}

.landing-image-control {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf8;
}

.landing-image-control img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.landing-image-control label {
  min-width: 0;
}

.native-rich-textarea {
  display: none;
}

.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.rich-editor-toolbar button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.rich-editor-box {
  min-height: 260px;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  line-height: 1.6;
}

.rich-editor-box:focus {
  outline: 2px solid color-mix(in srgb, var(--green) 42%, transparent);
  outline-offset: 2px;
}

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  min-height: 340px;
}

.photo-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 160px;
  padding: 18px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.54)),
    radial-gradient(circle at 30% 20%, #f7d469, transparent 28%),
    linear-gradient(135deg, #2e7d61, #316f9f 52%, #b54444);
}

.photo-card.tall {
  grid-row: span 2;
}

.photo-card span {
  font-size: 13px;
  font-weight: 800;
  opacity: 0.86;
}

.photo-card strong {
  margin-top: 4px;
  font-size: 24px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.status-grid article,
.panel,
.timeline,
.admin-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(28, 38, 33, 0.06);
}

.status-grid article {
  min-height: 150px;
  padding: 22px;
}

.status-grid p {
  color: var(--muted);
}

.status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-bottom: 18px;
  border-radius: 50%;
}

.status-dot.done {
  background: var(--green);
}

.status-dot.progress {
  background: var(--gold);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.link-grid a {
  min-height: 72px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
  text-decoration: none;
}

.panel,
.timeline {
  padding: 28px;
}

.success-panel {
  margin-bottom: 18px;
  border-color: rgba(46, 125, 97, 0.42);
}

.notice {
  padding: 12px 14px;
  border-radius: 8px;
  background: #eef6f1;
  color: var(--green);
  font-weight: 800;
}

.notice.error {
  background: #faeeee;
  color: var(--red);
}

.notice.muted {
  background: #eef2ee;
  color: var(--muted);
}

.panel.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: center;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.auth-panel .form-grid {
  margin-top: 20px;
}

.inline-form {
  margin-top: 12px;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.font-preview-select {
  font-size: 17px;
  font-weight: 800;
}

.font-preview-select option {
  font-size: 17px;
}

.native-font-select {
  display: none;
}

.font-picker {
  position: relative;
}

.font-picker.is-open {
  z-index: 60;
}

.font-picker-button {
  position: relative;
  width: 100%;
  min-height: 46px;
  padding: 11px 42px 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.font-picker-button::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
}

.font-picker-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  width: min(360px, 100vw - 48px);
  max-height: 360px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(18, 26, 22, 0.18);
}

.font-picker.is-open .font-picker-menu {
  display: grid;
  gap: 3px;
}

.font-picker-option {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  text-align: left;
  cursor: pointer;
}

.font-picker-option:hover,
.font-picker-option.is-selected {
  background: #eef2ee;
}

[data-background-color-field][hidden],
[data-gradient-color-field][hidden] {
  display: none;
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

.timeline {
  margin-top: 18px;
}

.timeline li {
  margin: 10px 0;
  color: var(--muted);
}

.qr-box {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 18px;
  border: 2px dashed var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 46%, rgba(23, 33, 29, 0.1) 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 46%, rgba(23, 33, 29, 0.1) 46% 54%, transparent 54%),
    #fff;
  text-align: center;
}

.qr-box img {
  width: min(210px, 100%);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-box span {
  font-size: 42px;
  font-weight: 900;
}

.settings-form {
  margin-top: 16px;
}

.action-panel .actions {
  justify-content: center;
}

.manage-tabs {
  display: grid;
  gap: 14px;
}

.manage-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.manage-tab-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.manage-tab-button span {
  display: inline-flex;
  min-width: 26px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2ee;
  color: var(--ink);
  font-size: 13px;
}

.manage-tab-button.is-active {
  border-color: var(--green);
  background: var(--ink);
  color: #fff;
}

.manage-tab-button.is-active span {
  background: var(--gold);
}

.manage-tab-panel[hidden] {
  display: none;
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.date-grid,
.package-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.package-fields .wide {
  grid-column: 1 / -1;
}

.package-table .table-row {
  grid-template-columns: 1.3fr 0.7fr 0.6fr 0.6fr 0.6fr 0.6fr;
}

.package-edit-row {
  align-items: start;
}

.package-edit-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.package-edit-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf8;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payment-table .table-row {
  grid-template-columns: 0.7fr 1.2fr 1.1fr 1fr 0.75fr 0.75fr;
}

.table-action {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.invoice-template-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.invoice-template-layout h2:not(:first-child) {
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.invoice-preview-panel {
  position: sticky;
  top: 18px;
}

.invoice-preview-panel h2 {
  margin-bottom: 12px;
}

.invoice-preview-frame {
  display: block;
  width: 100%;
  aspect-ratio: 210 / 297;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf8;
  color: var(--ink);
}

.toggle-row input {
  width: 18px;
  min-height: 18px;
}

.legal-acceptance {
  align-items: flex-start;
  line-height: 1.5;
}

.legal-acceptance input {
  margin-top: 2px;
}

.legal-acceptance a {
  color: var(--green);
}

.legal-table-scroll {
  width: 100%;
  max-width: 100%;
  margin: 18px 0;
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  min-width: 540px;
  margin: 0;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: #eef2ee;
}

.legal-page .rich-content h2 {
  margin-top: 32px;
}

.legal-page .rich-content h3 {
  margin-top: 24px;
}

.legal-page .rich-content li {
  margin: 7px 0;
}

.presentation-settings {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf8;
}

.presentation-settings h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.color-grid input {
  min-height: 42px;
  padding: 4px;
}

.event-palette {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf8;
}

.event-palette h3 {
  margin-bottom: 12px;
}

.event-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.event-color-swatch {
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line), 0 4px 10px rgba(18, 26, 22, 0.14);
  cursor: pointer;
}

.designer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.designer-grid input[type="range"] {
  padding: 0;
}

.presentation-layout-field {
  width: min(100%, 280px);
  justify-self: start;
}

.presentation-layout-field select {
  width: 100%;
}

.designer-grid > .transition-picker.wide {
  grid-column: 1 / -1;
}

.designer-toggle {
  margin-top: 14px;
}

.presentation-accordions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.box-accordion {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.box-accordion.has-open-font-picker {
  position: relative;
  z-index: 60;
  overflow: visible;
}

.box-accordion summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 900;
}

.box-accordion[open] summary {
  border-bottom: 1px solid var(--line);
}

.box-accordion .designer-grid,
.box-copy {
  margin: 12px 14px 14px;
}

.box-copy {
  justify-self: start;
}

.presentation-preview {
  --presentation-bg: #07100c;
  --presentation-title-panel: #17211d;
  --presentation-title-text: #fff;
  --presentation-title-accent: #d8a735;
  --presentation-title-opacity: 86%;
  --presentation-title-width: 100%;
  --presentation-title-height: 22%;
  --presentation-title-offset-x: 0%;
  --presentation-title-offset-y: 0%;
  --presentation-title-font: Inter, ui-sans-serif, system-ui, sans-serif;
  --presentation-title-bg: color-mix(in srgb, var(--presentation-title-panel) var(--presentation-title-opacity), transparent);
  --presentation-title-scale: 1;
  --presentation-title-align: center;
  --presentation-scale: var(--presentation-title-scale);
  --presentation-greeting-panel: #17211d;
  --presentation-greeting-text: #fff;
  --presentation-greeting-accent: #d8a735;
  --presentation-greeting-opacity: 86%;
  --presentation-greeting-width: 100%;
  --presentation-greeting-height: 24%;
  --presentation-greeting-offset-x: 0%;
  --presentation-greeting-offset-y: 0%;
  --presentation-greeting-font: Inter, ui-sans-serif, system-ui, sans-serif;
  --presentation-greeting-bg: color-mix(in srgb, var(--presentation-greeting-panel) var(--presentation-greeting-opacity), transparent);
  --presentation-greeting-align: center;
  --presentation-qr-panel: #17211d;
  --presentation-qr-text: #fff;
  --presentation-qr-accent: #d8a735;
  --presentation-qr-opacity: 86%;
  --presentation-qr-width: 100%;
  --presentation-qr-height: 24%;
  --presentation-qr-offset-x: 0%;
  --presentation-qr-offset-y: 0%;
  --presentation-qr-font: Inter, ui-sans-serif, system-ui, sans-serif;
  --presentation-qr-bg: color-mix(in srgb, var(--presentation-qr-panel) var(--presentation-qr-opacity), transparent);
  --presentation-qr-scale: 1;
  --presentation-qr-align: center;
  --presentation-text: var(--presentation-title-text);
  --presentation-accent: var(--presentation-title-accent);
  --presentation-transition-duration: 1.2s;
  --presentation-text-delay: 0s;
  --presentation-photo-width: 100%;
  --presentation-photo-height: 100%;
  --presentation-photo-offset-x: 0%;
  --presentation-photo-offset-y: 0%;
  --presentation-title-top: 28%;
  --presentation-greeting-top: 51%;
  --presentation-qr-top: 76%;
  display: grid;
  position: sticky;
  top: 18px;
  grid-template-columns: minmax(0, 1fr) 38%;
  gap: 1.25%;
  align-self: start;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--presentation-bg);
  color: var(--presentation-title-text);
  opacity: 0;
  transform: scale(0.94);
  transition: opacity var(--presentation-transition-duration) ease, transform var(--presentation-transition-duration) ease, filter var(--presentation-transition-duration) ease, clip-path var(--presentation-transition-duration) ease;
}

.preview-ratio {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 31;
  padding: 5px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--presentation-title-panel) 88%, transparent);
  color: var(--presentation-title-text);
  font-size: 11px;
  font-weight: 900;
}

.presentation-frame-upload .field-help {
  grid-column: 1 / -1;
  margin: 0;
}

.presentation-frame-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  width: 100%;
  height: 100%;
  pointer-events: none;
  object-fit: fill;
}

.preview-frame-overlay {
  z-index: 30;
}

.presentation-preview.is-visible {
  opacity: 1;
  transform: scale(1);
}

.presentation-preview.transition-zoom {
  transform: scale(1.04);
}

.presentation-preview.transition-zoom.is-visible {
  transform: scale(1);
}

.presentation-preview.transition-slide {
  transform: translateX(24px);
}

.presentation-preview.transition-slide.is-visible {
  transform: translateX(0);
}

.presentation-preview.transition-flip {
  transform: rotateY(8deg) scale(0.98);
}

.presentation-preview.transition-flip.is-visible {
  transform: rotateY(0deg) scale(1);
}

.presentation-preview.transition-blur {
  filter: blur(10px);
  transform: scale(1.03);
}

.presentation-preview.transition-blur.is-visible {
  filter: blur(0);
  transform: scale(1);
}

.presentation-preview.transition-rise {
  transform: translateY(24px);
}

.presentation-preview.transition-rise.is-visible {
  transform: translateY(0);
}

.presentation-preview.transition-circle {
  clip-path: circle(8% at 50% 50%);
}

.presentation-preview.transition-circle.is-visible {
  clip-path: circle(100% at 50% 50%);
}

.transition-picker {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.transition-picker legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.transition-picker > small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
}

.transition-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
}

.transition-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.transition-option:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, #fff);
}

.transition-option input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.preview-photo {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: var(--presentation-photo-width);
  height: var(--presentation-photo-height);
  min-width: 0;
  min-height: 0;
  border-radius: 6px;
  opacity: 0;
  translate: var(--presentation-photo-offset-x) var(--presentation-photo-offset-y);
  transition: opacity var(--presentation-transition-duration) ease, transform var(--presentation-transition-duration) ease;
}

.presentation-preview.is-visible .preview-photo-a {
  opacity: 1;
}

.presentation-preview.preview-alt.is-visible .preview-photo-a {
  opacity: 0;
}

.presentation-preview.preview-alt.is-visible .preview-photo-b {
  opacity: 1;
}

.preview-photo-a {
  background: var(--presentation-bg);
}

.preview-photo-b {
  background: var(--presentation-bg);
}

.preview-panel-stack {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  display: block;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  opacity: 1;
  transition: opacity 0.45s ease;
}

.presentation-preview.text-panel-waiting.layout-overlay .preview-panel-stack {
  opacity: 0;
}

.preview-title-box,
.preview-panel,
.preview-qr {
  padding: 10px 12px;
  overflow: hidden;
  border-radius: 6px;
}

.preview-title-box {
  position: absolute;
  top: var(--presentation-title-top);
  right: 0;
  z-index: 3;
  width: var(--presentation-title-width);
  height: var(--presentation-title-height);
  background: var(--presentation-title-bg);
  color: var(--presentation-title-text);
  font-family: var(--presentation-title-font);
  text-align: var(--presentation-title-align);
  transform: translate(var(--presentation-title-offset-x), var(--presentation-title-offset-y));
}

.preview-panel {
  position: absolute;
  top: var(--presentation-greeting-top);
  right: 0;
  z-index: 2;
  width: var(--presentation-greeting-width);
  height: var(--presentation-greeting-height);
  background: var(--presentation-greeting-bg);
  color: var(--presentation-greeting-text);
  font-family: var(--presentation-greeting-font);
  text-align: var(--presentation-greeting-align);
  transform: translate(var(--presentation-greeting-offset-x), var(--presentation-greeting-offset-y));
}

.preview-panel-content {
  display: grid;
  gap: 8px;
  min-height: 0;
}

.preview-title-box span {
  color: var(--presentation-title-accent);
  font-weight: 900;
  text-transform: uppercase;
}

.preview-title-box strong {
  display: block;
  color: var(--presentation-title-accent);
  font-size: calc(clamp(18px, 3vw, 28px) * var(--presentation-title-scale));
  line-height: 1;
}

.preview-panel p {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.18;
}

.preview-qr {
  position: absolute;
  top: var(--presentation-qr-top);
  right: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(34px, 22%) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: var(--presentation-qr-width);
  height: var(--presentation-qr-height);
  max-width: 100%;
  background: var(--presentation-qr-bg);
  color: var(--presentation-qr-text);
  font-family: var(--presentation-qr-font);
  text-align: var(--presentation-qr-align);
  transform: translate(var(--presentation-qr-offset-x), var(--presentation-qr-offset-y));
}

.preview-qr small {
  overflow-wrap: anywhere;
  font-size: calc(11px * var(--presentation-qr-scale));
  font-weight: 900;
}

.presentation-preview.hide-qr-link .preview-qr {
  grid-template-columns: 1fr;
  place-items: center;
}

.presentation-preview.hide-qr-link .preview-qr-code {
  width: min(72%, 150px);
}

.preview-qr-code {
  display: grid;
  position: relative;
  aspect-ratio: 1;
  padding: 10%;
  border-radius: 4px;
  background:
    linear-gradient(90deg, #17211d 16%, transparent 16% 27%, #17211d 27% 42%, transparent 42% 58%, #17211d 58% 75%, transparent 75%),
    linear-gradient(#17211d 16%, transparent 16% 27%, #17211d 27% 42%, transparent 42% 58%, #17211d 58% 75%, transparent 75%),
    #ffffff;
  background-size: 16px 16px, 16px 16px, auto;
  box-shadow: inset 0 0 0 3px #ffffff;
}

.preview-qr-code i {
  position: absolute;
  width: 28%;
  aspect-ratio: 1;
  border: 4px solid #17211d;
  background: #ffffff;
}

.preview-qr-code i:nth-child(1) {
  top: 10%;
  left: 10%;
}

.preview-qr-code i:nth-child(2) {
  top: 10%;
  right: 10%;
}

.preview-qr-code i:nth-child(3) {
  bottom: 10%;
  left: 10%;
}

.presentation-preview.hide-qr .preview-qr {
  display: none;
}

.presentation-preview.layout-overlay {
  grid-template-columns: 1fr;
}

.presentation-preview.layout-overlay .preview-panel-stack {
  grid-column: 1;
  grid-row: 1;
  position: absolute;
  right: 50%;
  bottom: 4.4%;
  align-self: end;
  justify-self: center;
  width: 91.2%;
  height: 91.2%;
  max-width: 91.2%;
  max-height: 91.2%;
  min-height: 28%;
  transform: translateX(50%);
  z-index: 1;
}

.presentation-preview.layout-split {
  --presentation-title-top: 14%;
  --presentation-greeting-top: 37%;
  --presentation-qr-top: 62%;
  grid-template-columns: 1fr 1fr;
}

.presentation-preview.layout-reverse {
  grid-template-columns: 38% minmax(0, 1fr);
}

.presentation-preview.layout-reverse .preview-photo {
  grid-column: 2;
}

.presentation-preview.layout-reverse .preview-panel-stack {
  grid-column: 1;
  align-items: flex-end;
}

.qr-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf8;
}

.qr-settings h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.qr-card-preview {
  display: grid;
  place-items: center;
  width: min(100%, 360px);
  aspect-ratio: 210 / 297;
  justify-self: center;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 35px rgba(18, 26, 22, 0.12);
}

.qr-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.copy-list {
  display: grid;
  gap: 12px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-heading p {
  margin: 0;
  color: var(--muted);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.media-item {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.media-item.is-guestbook-selected {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}

.guestbook-selection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guestbook-selection-toolbar h3,
.guestbook-selection-toolbar p {
  margin: 0;
}

.guestbook-selection-toolbar p {
  margin-top: 4px;
  color: var(--muted);
}

.guestbook-photo-selection {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9f7;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.guestbook-photo-selection input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.media-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #eef2ee;
}

.media-meta {
  display: grid;
  gap: 4px;
}

.media-meta span,
.media-meta small {
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.status-badge.approved {
  background: #eef6f1;
  color: var(--green);
}

.status-badge.pending {
  background: #fff6df;
  color: #8a6400;
}

.guestbook-page {
  background: var(--guestbook-bg, #666d73);
}

.qr-print-page {
  background: #eef2ee;
}

.guestbook-shell {
  --guestbook-bg: #666d73;
  --guestbook-page: #f3f0ea;
  --guestbook-cover: #fffdf8;
  --guestbook-card: #fffdf8;
  --guestbook-text: #17211d;
  --guestbook-muted: #617067;
  --guestbook-accent: #d8a735;
  --guestbook-border: #ded7ca;
  --guestbook-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --guestbook-heading-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
  color: var(--guestbook-text);
  font-family: var(--guestbook-font);
}

.qr-print-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 54px;
}

.guestbook-cover,
.guestbook-empty,
.guestbook-entry {
  border: 1px solid #ded7ca;
  border-color: var(--guestbook-border);
  border-radius: 8px;
  background: var(--guestbook-card);
  box-shadow: 0 12px 28px rgba(42, 33, 24, 0.08);
}

.guestbook-cover {
  background: var(--guestbook-cover);
  padding: 10mm 11mm 8mm;
}

.guestbook-cover .eyebrow {
  color: var(--guestbook-accent);
}

.guestbook-cover h1 {
  margin-bottom: 7mm;
  font-size: 34px;
  font-family: var(--guestbook-heading-font);
  line-height: 1;
}

.guestbook-cover p,
.guestbook-entry small {
  color: var(--guestbook-muted);
}

.guestbook-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--guestbook-border);
  border-radius: 8px;
  background: #fffdf8;
}

.guestbook-template-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.guestbook-pages {
  display: grid;
  gap: 22px;
  justify-content: center;
}

.guestbook-print-page {
  display: flex;
  flex-direction: column;
  gap: 7mm;
  width: min(100%, 210mm);
  min-height: 297mm;
  padding: 12mm;
  overflow: hidden;
  background: var(--guestbook-page);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34);
}

.guestbook-template-tabs a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--guestbook-border);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--guestbook-muted);
  font-weight: 900;
  text-decoration: none;
}

.guestbook-template-tabs a.is-active {
  border-color: var(--guestbook-accent);
  background: var(--guestbook-text);
  color: #fff;
}

.guestbook-template-magazine .guestbook-cover {
  background:
    linear-gradient(135deg, rgba(49, 111, 159, 0.18), transparent 52%),
    var(--guestbook-cover);
}

.guestbook-template-magazine .guestbook-cover h1 {
  max-width: 680px;
  font-size: 38px;
}

.guestbook-template-magazine .guestbook-grid {
  grid-template-columns: 1fr;
  gap: 7mm;
}

.guestbook-template-magazine .guestbook-entry {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(220px, 0.75fr);
  align-items: stretch;
}

.guestbook-template-magazine .guestbook-entry img {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

.guestbook-template-magazine .guestbook-entry div {
  align-content: center;
  padding: 8mm;
}

.guestbook-template-magazine .guestbook-entry strong {
  font-size: 24px;
}

.guestbook-template-compact .guestbook-cover {
  padding: 10mm 11mm 8mm;
}

.guestbook-template-compact .guestbook-cover h1 {
  font-size: 34px;
}

.guestbook-template-compact .guestbook-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7mm;
}

.guestbook-template-compact .guestbook-entry div {
  gap: 5px;
  padding: 12px;
}

.guestbook-template-compact .guestbook-entry strong {
  font-size: 15px;
}

.guestbook-template-compact .guestbook-entry p,
.guestbook-template-compact .guestbook-entry small {
  font-size: 12px;
}

.guestbook-template-album .guestbook-print-page {
  position: relative;
  border: 2px solid var(--guestbook-border);
  box-shadow:
    inset 0 0 0 4px color-mix(in srgb, var(--guestbook-accent) 34%, transparent),
    0 20px 54px rgba(0, 0, 0, 0.34);
}

.guestbook-template-album .guestbook-cover {
  border-left: 8px solid var(--guestbook-accent);
  box-shadow: 5px 6px 0 color-mix(in srgb, var(--guestbook-border) 72%, transparent);
  transform: rotate(-0.4deg);
}

.guestbook-template-album .guestbook-grid {
  flex: none;
  height: 209mm;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, 99mm);
  align-content: start;
  gap: 10mm 13mm;
  padding: 3mm 4mm;
}

.guestbook-template-album .guestbook-print-page:not(.has-cover) .guestbook-grid {
  height: 243mm;
  grid-template-rows: repeat(2, 113mm);
  padding-top: 8mm;
}

.guestbook-template-album .guestbook-entry {
  position: relative;
  display: flex;
  overflow: visible;
  padding: 5mm 5mm 8mm;
  border: 1px solid var(--guestbook-border);
  border-radius: 2px;
  background: var(--guestbook-card);
  box-shadow: 5px 7px 0 color-mix(in srgb, var(--guestbook-border) 78%, transparent);
}

.guestbook-template-album .guestbook-entry::before {
  content: "";
  position: absolute;
  top: -5mm;
  left: 50%;
  z-index: 2;
  width: 26mm;
  height: 9mm;
  border: 1px solid var(--guestbook-accent);
  background: color-mix(in srgb, var(--guestbook-cover) 76%, var(--guestbook-accent));
  transform: translateX(-50%) rotate(-2deg);
}

.guestbook-template-album .guestbook-entry:nth-child(4n + 1) {
  transform: rotate(-2deg);
}

.guestbook-template-album .guestbook-entry:nth-child(4n + 2) {
  transform: rotate(1.8deg);
}

.guestbook-template-album .guestbook-entry:nth-child(4n + 3) {
  transform: rotate(1.2deg);
}

.guestbook-template-album .guestbook-entry:nth-child(4n + 4) {
  transform: rotate(-1.6deg);
}

.guestbook-template-album .guestbook-entry img {
  height: 59%;
  border: 1px solid var(--guestbook-border);
  object-fit: contain;
  background: var(--guestbook-border);
}

.guestbook-template-album .guestbook-entry div {
  gap: 3mm;
  padding: 5mm 1mm 0;
  text-align: center;
}

.guestbook-template-album .guestbook-entry strong {
  font-size: 20px;
}

.guestbook-template-album .guestbook-entry p {
  font-family: var(--guestbook-heading-font);
  font-size: 14px;
  line-height: 1.25;
}

.guestbook-template-album .guestbook-entry small {
  font-size: 10px;
}

.qr-print-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(18, 26, 22, 0.08);
}

.qr-print-actions h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
}

.qr-print-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.qr-print-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid #dfe5df;
  border-radius: 999px;
  background: #f7faf7;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.qr-print-preview {
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(23, 33, 29, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(23, 33, 29, 0.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(23, 33, 29, 0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(23, 33, 29, 0.04) 75%),
    #ffffff;
  background-position: 0 0, 0 14px, 14px -14px, -14px 0;
  background-size: 28px 28px;
  box-shadow: 0 12px 28px rgba(18, 26, 22, 0.08);
}

.qr-print-sheet {
  display: grid;
  place-items: center;
  width: min(100%, 540px);
  aspect-ratio: 210 / 297;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 20px 54px rgba(18, 26, 22, 0.2);
}

.qr-print-preview img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.guestbook-empty {
  padding: 28px;
}

.guestbook-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 7mm;
  min-height: 0;
}

.guestbook-template-classic .guestbook-grid {
  flex: none;
  height: 209mm;
  grid-template-rows: repeat(2, 101mm);
  align-content: start;
}

.guestbook-template-classic .guestbook-print-page:not(.has-cover) .guestbook-grid {
  height: 243mm;
  grid-template-rows: repeat(2, 118mm);
}

.guestbook-entry {
  display: flex;
  flex-direction: column;
  break-inside: avoid;
  overflow: hidden;
}

.guestbook-entry img {
  width: 100%;
  height: 48%;
  min-height: 0;
  object-fit: contain;
  background: var(--guestbook-border);
}

.guestbook-entry div {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 5mm;
  padding: 7mm;
  min-height: 0;
}

.guestbook-entry strong {
  font-size: 18px;
  color: var(--guestbook-text);
  font-family: var(--guestbook-heading-font);
  line-height: 1.15;
}

.guestbook-entry p {
  margin: 0;
  color: var(--guestbook-text);
  line-height: 1.35;
}

.guestbook-entry small {
  align-self: end;
}

.guestbook-design-preview {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--guestbook-bg);
}

.guestbook-preview-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  width: min(100%, 420px);
  aspect-ratio: 210 / 297;
  min-height: 0;
  padding: 18px;
  border: 1px solid var(--guestbook-border);
  border-radius: 8px;
  background: var(--guestbook-page);
  color: var(--guestbook-text);
  font-family: var(--guestbook-font);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.guestbook-preview-cover,
.guestbook-preview-entry {
  overflow: hidden;
  border: 1px solid var(--guestbook-border);
  border-radius: 8px;
  background: var(--guestbook-card);
}

.guestbook-preview-cover {
  padding: 16px;
  background: var(--guestbook-cover);
  border-left: 6px solid var(--guestbook-accent);
}

.guestbook-preview-cover span {
  display: block;
  color: var(--guestbook-accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.guestbook-preview-cover strong,
.guestbook-preview-entry strong {
  display: block;
  margin-top: 6px;
  color: var(--guestbook-text);
  font-family: var(--guestbook-heading-font);
  font-size: 21px;
  line-height: 1.1;
}

.guestbook-preview-cover small,
.guestbook-preview-entry small {
  display: block;
  margin-top: 6px;
  color: var(--guestbook-muted);
}

.guestbook-preview-entry {
  display: grid;
  grid-template-columns: 45% 1fr;
  min-height: 0;
}

.guestbook-preview-photo {
  background:
    linear-gradient(135deg, rgba(216, 167, 53, 0.2), transparent),
    linear-gradient(45deg, #b7c8ce, #f7e8cf);
}

.guestbook-preview-entry div:last-child {
  padding: 14px;
}

.guestbook-preview-entry p {
  margin: 9px 0;
  color: var(--guestbook-text);
  line-height: 1.35;
}

.guestbook-design-preview.template-magazine .guestbook-preview-entry {
  grid-template-columns: 58% 1fr;
}

.guestbook-design-preview.template-compact .guestbook-preview-entry {
  grid-template-columns: 36% 1fr;
  min-height: 0;
}

.guestbook-design-preview.template-compact .guestbook-preview-entry strong {
  font-size: 16px;
}

.guestbook-design-preview.template-compact .guestbook-preview-entry p,
.guestbook-design-preview.template-compact .guestbook-preview-entry small {
  font-size: 11px;
}

.guestbook-design-preview.template-album .guestbook-preview-page {
  padding: 22px;
  border: 2px solid var(--guestbook-border);
  box-shadow:
    inset 0 0 0 4px color-mix(in srgb, var(--guestbook-accent) 34%, transparent),
    0 16px 36px rgba(0, 0, 0, 0.2);
}

.guestbook-design-preview.template-album .guestbook-preview-cover {
  border-left: 6px solid var(--guestbook-accent);
  box-shadow: 4px 5px 0 color-mix(in srgb, var(--guestbook-border) 72%, transparent);
  transform: rotate(-0.5deg);
}

.guestbook-design-preview.template-album .guestbook-preview-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 78%;
  min-height: 0;
  height: calc(100% - 16px);
  margin: 12px auto 4px;
  padding: 12px 12px 18px;
  overflow: visible;
  border-radius: 2px;
  box-shadow: 5px 7px 0 color-mix(in srgb, var(--guestbook-border) 78%, transparent);
  transform: rotate(-2deg);
}

.guestbook-design-preview.template-album .guestbook-preview-entry::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  z-index: 2;
  width: 78px;
  height: 28px;
  border: 1px solid var(--guestbook-accent);
  background: color-mix(in srgb, var(--guestbook-cover) 76%, var(--guestbook-accent));
  transform: translateX(-50%) rotate(-2deg);
}

.guestbook-design-preview.template-album .guestbook-preview-photo {
  width: 100%;
  height: min(48%, 180px);
  min-height: 92px;
  border: 1px solid var(--guestbook-border);
}

.guestbook-design-preview.template-album .guestbook-preview-entry div:last-child {
  padding: 14px 4px 0;
  text-align: center;
}

code {
  display: block;
  padding: 12px;
  overflow-x: auto;
  border-radius: 8px;
  background: #eef2ee;
}

.guest-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(49, 111, 159, 0.16), transparent 44%),
    var(--paper);
}

.guest-shell .panel {
  width: min(520px, 100%);
}

.guest-topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  justify-content: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 245, 0.96);
  backdrop-filter: blur(14px);
}

.guest-topbar a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.guest-gallery-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.guest-gallery-shell > .panel {
  margin-bottom: 18px;
}

.guest-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.guest-gallery-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.guest-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.guest-gallery-item div {
  padding: 14px;
}

.guest-gallery-item p {
  margin: 8px 0 0;
  color: var(--muted);
}

.guest-gallery-item .guest-photo-download {
  margin-top: 14px;
}

.camera-root,
.camera-page {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #080b09;
}

.camera-root body.camera-page,
body.theme-elegant.camera-page {
  background: #080b09;
}

.camera-page {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
}

.camera-app {
  --camera-viewport-height: 100dvh;
  --camera-viewport-width: 100vw;
  --camera-viewport-top: 0px;
  --camera-viewport-center-x: 50vw;
  position: fixed;
  top: var(--camera-viewport-top);
  right: auto;
  bottom: auto;
  left: var(--camera-viewport-center-x);
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  width: min(var(--camera-viewport-width), 760px);
  height: var(--camera-viewport-height);
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #0e1210;
  color: #fff;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.42);
  transform: translateX(-50%);
}

.camera-app.keyboard-open .camera-header,
.camera-app.keyboard-open .camera-utility-bar,
.camera-app.keyboard-open .camera-zoom-control {
  display: none;
}

.camera-app.greeting-panel-active [data-camera-panel="greeting"] {
  position: fixed;
  top: max(72px, calc(env(safe-area-inset-top) + 62px));
  right: 10px;
  left: 10px;
  z-index: 40;
  width: auto;
  max-height: 190px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(5, 8, 6, 0.9);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.36);
}

.camera-app.keyboard-open.greeting-panel-active [data-camera-panel="greeting"] {
  top: max(8px, env(safe-area-inset-top));
}

.camera-app.sticker-input-active [data-camera-panel="stickers"] {
  position: fixed;
  top: max(8px, env(safe-area-inset-top));
  right: 10px;
  left: 10px;
  z-index: 39;
  width: auto;
  max-height: 245px;
  overflow-y: auto;
  background: rgba(5, 8, 6, 0.94);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.36);
}

.camera-app.sticker-input-active.greeting-panel-active [data-camera-panel="stickers"] {
  top: max(158px, calc(env(safe-area-inset-top) + 150px));
}

.camera-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: max(10px, env(safe-area-inset-top)) 14px 10px;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(3, 6, 4, 0.86), rgba(3, 6, 4, 0));
  pointer-events: none;
}

.camera-header > * {
  pointer-events: auto;
}

.camera-icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 23px;
  line-height: 1;
  text-decoration: none;
}

.camera-heading {
  min-width: 0;
  flex: 1;
  text-align: center;
}

.camera-heading strong,
.camera-heading span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.camera-heading strong {
  font-size: 16px;
}

.camera-heading span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.camera-header .camera-gallery-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.camera-stage {
  --camera-capture-width: 100%;
  --camera-capture-height: 100%;
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  overflow: hidden;
  outline: 0;
  background: #030504;
  touch-action: none;
}

.camera-stage video,
.camera-stage img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--camera-capture-width);
  height: var(--camera-capture-height);
  object-fit: cover;
  transform: translate(-50%, -50%);
  transition: width 180ms ease, height 180ms ease, filter 160ms ease, transform 180ms ease;
}

.camera-stage img[hidden],
.camera-stage video[hidden] {
  display: none;
}

.camera-sticker-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: var(--camera-capture-width);
  height: var(--camera-capture-height);
  overflow: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.camera-sticker-layer[hidden] {
  display: none;
}

.camera-photo-sticker {
  position: absolute;
  display: grid;
  width: 1.35em;
  height: 1.35em;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  outline: 0;
  background: transparent;
  line-height: 1;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  transform: translate(-50%, -50%);
  user-select: none;
  -webkit-user-select: none;
}

.camera-photo-sticker.selected {
  outline: 2px dashed rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.2);
}

.camera-native-capture-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.camera-grid-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: var(--camera-capture-width);
  height: var(--camera-capture-height);
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 33.1%, rgba(255, 255, 255, 0.48) 33.2% 33.5%, transparent 33.6% 66.4%, rgba(255, 255, 255, 0.48) 66.5% 66.8%, transparent 66.9%),
    linear-gradient(0deg, transparent 33.1%, rgba(255, 255, 255, 0.48) 33.2% 33.5%, transparent 33.6% 66.4%, rgba(255, 255, 255, 0.48) 66.5% 66.8%, transparent 66.9%);
  opacity: 0.65;
  transform: translate(-50%, -50%);
  transition: width 180ms ease, height 180ms ease, opacity 160ms ease;
}

.camera-crop-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: var(--camera-capture-width);
  height: var(--camera-capture-height);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.24);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 180ms ease, height 180ms ease;
}

.camera-stage.grid-hidden .camera-grid-overlay,
.camera-app.has-capture .camera-grid-overlay {
  opacity: 0;
}

.camera-utility-bar {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 5;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.camera-tool-button {
  display: grid;
  min-width: 52px;
  min-height: 48px;
  place-items: center;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(5, 8, 6, 0.68);
  color: #fff;
  font: inherit;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.camera-tool-button span {
  font-size: 17px;
  font-weight: 900;
}

.camera-tool-button small {
  font-size: 10px;
  font-weight: 700;
}

.camera-tool-button.active {
  border-color: #e4b13a;
  color: #f5c653;
}

.camera-tool-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.camera-app.has-capture .camera-utility-bar,
.camera-app.has-capture .camera-zoom-control {
  display: none;
}

.camera-zoom-control {
  position: absolute;
  top: 50%;
  right: max(6px, env(safe-area-inset-right));
  bottom: auto;
  left: auto;
  z-index: 24;
  display: block;
  width: 30px;
  height: min(42dvh, 240px);
  min-height: 140px;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  transform: translateY(-50%);
  backdrop-filter: none;
}

.camera-zoom-control input {
  width: 30px;
  height: 100%;
  min-height: 140px;
  padding: 0;
  border: 0;
  background: transparent;
  writing-mode: vertical-lr;
  direction: rtl;
  appearance: slider-vertical;
  -webkit-appearance: slider-vertical;
  accent-color: #e4b13a;
}

.camera-exposure-control input {
  width: 100%;
  min-height: 24px;
  accent-color: #e4b13a;
}

.camera-focus-ring {
  position: absolute;
  z-index: 6;
  width: 68px;
  height: 68px;
  border: 2px solid #f5c653;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1.25);
}

.camera-focus-ring.show {
  animation: camera-focus 720ms ease forwards;
}

@keyframes camera-focus {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); }
  22%, 72% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
}

.camera-countdown {
  position: absolute;
  z-index: 8;
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(5, 8, 6, 0.62);
  color: #fff;
  font-size: 54px;
  backdrop-filter: blur(8px);
}

.camera-countdown[hidden] {
  display: none;
}

.camera-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, auto) auto;
  gap: 10px;
  align-content: start;
  padding: 10px 14px max(12px, env(safe-area-inset-bottom));
  border-top: 0;
  background: linear-gradient(180deg, transparent, rgba(4, 7, 5, 0.72) 16%, rgba(4, 7, 5, 0.94));
  touch-action: manipulation;
  transition: background 180ms ease;
}

.camera-controls button,
.camera-control-tabs,
.camera-capture-dock {
  touch-action: manipulation;
}

.camera-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.camera-greeting-toggle {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(4, 7, 5, 0.68);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.camera-greeting-toggle[hidden] {
  display: none;
}

.camera-greeting-toggle[aria-pressed="true"] {
  border-color: #f5c653;
  color: #f5c653;
}

.camera-panel-toggle {
  order: -1;
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(4, 7, 5, 0.44);
  color: #fff;
  font: inherit;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.camera-panel-toggle span {
  font-size: 25px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 160ms ease;
}

.camera-app.controls-collapsed .camera-panel-toggle span {
  transform: rotate(180deg);
}

.camera-app.controls-collapsed .camera-control-tabs,
.camera-app.controls-collapsed .camera-control-panel:not([data-camera-panel="greeting"]) {
  display: none;
}

.camera-app.controls-collapsed .camera-controls {
  gap: 2px;
  background: linear-gradient(180deg, transparent, rgba(4, 7, 5, 0.86));
}

.camera-status {
  flex: 1;
  min-height: 18px;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.camera-control-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(5, 8, 6, 0.44);
  backdrop-filter: blur(12px);
}

.camera-control-tabs button {
  min-height: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.64);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.camera-control-tabs button.active {
  background: rgba(255, 255, 255, 0.88);
  color: #121714;
}

.camera-control-tabs button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.camera-control-panel {
  min-width: 0;
  min-height: 104px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(5, 8, 6, 0.38);
  backdrop-filter: blur(12px);
}

.camera-control-panel[hidden] {
  display: none;
}

.camera-filter-strip {
  display: flex;
  gap: 12px;
  padding: 4px 2px 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.camera-filter-strip button {
  display: grid;
  min-width: 68px;
  gap: 5px;
  justify-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  scroll-snap-align: start;
}

.camera-filter-strip small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 700;
}

.camera-filter-preview {
  display: block;
  width: 58px;
  height: 58px;
  border: 2px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(145deg, #f4c47a 0 33%, #488eb0 33% 66%, #713c64 66%);
}

.camera-filter-strip button.active .camera-filter-preview {
  border-color: #f5c653;
  box-shadow: 0 0 0 2px #121714, 0 0 0 4px #f5c653;
}

.camera-filter-strip button.active small {
  color: #fff;
}

.camera-filter-preview.effect-vivid { filter: saturate(1.45) contrast(1.08); }
.camera-filter-preview.effect-warm { filter: sepia(0.3) saturate(1.2); }
.camera-filter-preview.effect-cool { filter: sepia(0.15) hue-rotate(165deg) saturate(1.15); }
.camera-filter-preview.effect-mono { filter: grayscale(1) contrast(1.08); }
.camera-filter-preview.effect-noir { filter: grayscale(1) contrast(1.5) brightness(0.88); }
.camera-filter-preview.effect-vintage { filter: sepia(0.48) saturate(0.82); }
.camera-filter-preview.effect-fade { filter: saturate(0.65) contrast(0.88) brightness(1.1); }
.camera-filter-preview.effect-dramatic { filter: saturate(0.88) contrast(1.32) brightness(0.92); }

.camera-caption-field {
  display: grid;
  gap: 5px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 700;
}

.camera-caption-header {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.camera-caption-header button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.camera-caption-field input,
.camera-caption-field textarea {
  min-height: 44px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
}

.camera-sticker-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.camera-sticker-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 6px;
}

.camera-sticker-entry input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
}

.camera-sticker-entry > button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(245, 198, 83, 0.16);
  color: #f5c653;
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}

.camera-sticker-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.camera-sticker-palette {
  display: flex;
  min-width: 0;
  gap: 7px;
  padding: 2px;
  overflow-x: auto;
}

.camera-sticker-palette button,
.camera-sticker-actions button {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 22px;
  cursor: pointer;
}

.camera-sticker-actions {
  display: grid;
  grid-template-columns: repeat(5, 38px);
  gap: 4px;
}

.camera-sticker-actions button {
  width: 38px;
  height: 38px;
  min-width: 0;
  min-height: 0;
  font-size: 20px;
}

.camera-sticker-actions button:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.camera-caption-field textarea {
  min-height: 76px;
  line-height: 1.35;
  resize: none;
}

.emoji-row {
  display: flex;
  gap: 7px;
  margin-top: 9px;
  overflow-x: auto;
}

.emoji-row button {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 19px;
  cursor: pointer;
}

.emoji-row button.active {
  border-color: #f5c653;
  background: rgba(245, 198, 83, 0.15);
}

.camera-setting-row {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 48px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 700;
}

.camera-ratio-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.camera-ratio-options button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.camera-ratio-options button.active {
  border-color: #f5c653;
  color: #f5c653;
}

.gallery-button {
  position: relative;
  overflow: hidden;
}

.gallery-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.camera-capture-dock {
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-height: 76px;
  padding-top: 8px;
  border-top: 0;
}

.camera-dock-action {
  display: grid;
  min-width: 62px;
  min-height: 54px;
  place-items: center;
  gap: 2px;
  padding: 5px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  cursor: pointer;
}

.camera-dock-action > span {
  font-size: 25px;
  line-height: 1;
}

.camera-dock-action small {
  font-size: 10px;
  font-weight: 700;
}

.camera-dock-action:disabled {
  opacity: 0.38;
}

.shutter {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  padding: 0;
  border: 4px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.shutter span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  transition: transform 120ms ease, background 120ms ease;
}

.shutter:active span {
  background: #e4b13a;
  transform: scale(0.9);
}

.shutter:disabled {
  opacity: 0.4;
  cursor: wait;
}

.camera-retake,
.camera-upload {
  display: none;
}

.camera-upload {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: #f5c653;
  color: #151a17;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.camera-upload span {
  margin-right: 6px;
  font-size: 20px;
}

.camera-upload:disabled {
  opacity: 0.48;
}

.camera-app.has-capture .camera-retake,
.camera-app.has-capture .camera-upload {
  display: inline-grid;
}

.camera-app.has-capture .gallery-button,
.camera-app.has-capture .camera-switch,
.camera-app.has-capture .shutter {
  display: none;
}

@media (orientation: landscape) and (max-height: 600px) {
  .camera-app {
    --camera-landscape-panel-width: clamp(280px, 36vw, 340px);
    --camera-landscape-rail-width: 92px;
    width: var(--camera-viewport-width);
    max-width: none;
    height: var(--camera-viewport-height);
    min-height: 0;
  }

  .camera-header {
    right: auto;
    width: calc(100% - var(--camera-landscape-panel-width));
    min-height: 50px;
    padding: max(6px, env(safe-area-inset-top)) 10px 6px max(10px, env(safe-area-inset-left));
  }

  .camera-heading {
    opacity: 0;
    pointer-events: none;
  }

  .camera-stage {
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
  }

  .camera-app:not(.has-capture) .camera-stage video {
    width: 100%;
    height: 100%;
  }

  .camera-utility-bar {
    top: max(6px, env(safe-area-inset-top));
    left: calc((100% - var(--camera-landscape-panel-width)) / 2);
    gap: 5px;
  }

  .camera-tool-button {
    min-width: 46px;
    min-height: 42px;
    padding: 3px 6px;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(3, 6, 4, 0.86);
  }

  .camera-tool-button small {
    color: rgba(255, 255, 255, 0.88);
  }

  .camera-controls {
    right: max(8px, env(safe-area-inset-right));
    top: max(6px, env(safe-area-inset-top));
    bottom: max(6px, env(safe-area-inset-bottom));
    left: auto;
    width: var(--camera-landscape-panel-width);
    max-height: calc(100% - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom)));
    overflow-y: auto;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(3, 6, 4, 0.92);
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
  }

  .camera-app.controls-collapsed .camera-controls {
    top: 50%;
    right: max(8px, env(safe-area-inset-right));
    bottom: auto;
    width: var(--camera-landscape-rail-width);
    max-height: calc(100% - 12px);
    padding: 4px;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transform: translateY(-50%);
  }

  .camera-app.controls-collapsed .camera-header {
    width: calc(100% - var(--camera-landscape-rail-width) - 8px);
  }

  .camera-app.controls-collapsed .camera-utility-bar {
    left: calc((100% - var(--camera-landscape-rail-width)) / 2);
  }

  .camera-app.controls-collapsed .camera-status-bar {
    justify-content: center;
  }

  .camera-app.controls-collapsed .camera-status {
    display: none;
  }

  .camera-app.controls-collapsed .camera-panel-toggle,
  .camera-app.controls-collapsed .camera-greeting-toggle {
    background: rgba(3, 6, 4, 0.82);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
  }

  .camera-status {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    text-align: left;
  }

  .camera-panel-toggle,
  .camera-greeting-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.1);
  }

  .camera-control-tabs {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.07);
  }

  .camera-control-tabs button {
    min-height: 42px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
  }

  .camera-control-panel {
    min-height: 88px;
    max-height: min(180px, 43dvh);
    overflow-y: auto;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.07);
  }

  .camera-filter-preview {
    width: 44px;
    height: 44px;
  }

  .camera-filter-strip button {
    min-width: 56px;
  }

  .camera-capture-dock {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 66px;
    padding-top: 2px;
  }

  .camera-app.has-capture .camera-capture-dock {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  }

  .camera-app.controls-collapsed .camera-capture-dock,
  .camera-app.controls-collapsed.has-capture .camera-capture-dock {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    min-height: 0;
  }

  .camera-app.controls-collapsed .camera-dock-action {
    width: 68px;
    min-width: 68px;
    min-height: 48px;
    justify-self: center;
    border-radius: 8px;
    background: rgba(3, 6, 4, 0.72);
    text-shadow: 0 1px 4px #000;
  }

  .camera-app.controls-collapsed .shutter {
    justify-self: center;
    background: rgba(3, 6, 4, 0.32);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.26);
  }

  .camera-app.controls-collapsed .camera-upload {
    width: 82px;
    min-height: 58px;
    justify-self: center;
    padding: 4px 6px;
    line-height: 1.05;
  }

  .camera-dock-action,
  .camera-upload {
    min-width: 0;
    min-height: 54px;
  }

  .camera-upload {
    padding: 0 10px;
  }

  .shutter {
    width: 62px;
    height: 62px;
  }

  .shutter span {
    width: 48px;
    height: 48px;
  }

  .camera-zoom-control {
    right: auto;
    left: max(5px, env(safe-area-inset-left));
    height: min(52dvh, 210px);
  }

  .camera-app.greeting-panel-active [data-camera-panel="greeting"],
  .camera-app.sticker-input-active [data-camera-panel="stickers"] {
    top: max(58px, calc(env(safe-area-inset-top) + 52px));
    right: calc(var(--camera-landscape-panel-width) + max(16px, env(safe-area-inset-right)));
    left: max(8px, env(safe-area-inset-left));
    max-height: calc(100dvh - 70px - env(safe-area-inset-bottom));
  }
}

@media (max-width: 340px) and (orientation: portrait) {
  .camera-control-tabs button {
    padding-right: 3px;
    padding-left: 3px;
    font-size: 11px;
  }
}

@media (max-width: 600px) and (max-height: 600px) and (orientation: landscape) {
  .camera-control-tabs button {
    padding-right: 3px;
    padding-left: 3px;
    font-size: 12px;
  }
}

@media (min-width: 601px) and (max-width: 760px) and (max-height: 600px) and (orientation: landscape) {
  .camera-control-tabs button {
    padding-right: 3px;
    padding-left: 3px;
    font-size: 12px;
  }
}

.presentation-page {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--presentation-bg, #07100c);
}

.presentation-video-toolbar {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(760px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(10, 15, 13, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  color: #fff;
  transform: translateX(-50%);
}

.presentation-video-toolbar div {
  display: grid;
  flex: 1;
  gap: 3px;
  min-width: 0;
}

.presentation-video-toolbar span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.presentation-video-toolbar form {
  flex: none;
}

.presentation-video-toolbar .video-export-error {
  color: #ffb4aa;
}

.presentation {
  --presentation-bg: #07100c;
  --presentation-title-panel: #17211d;
  --presentation-title-text: #fff;
  --presentation-title-accent: #d8a735;
  --presentation-title-opacity: 86%;
  --presentation-title-width: 100%;
  --presentation-title-height: 22%;
  --presentation-title-offset-x: 0%;
  --presentation-title-offset-y: 0%;
  --presentation-title-font: Inter, ui-sans-serif, system-ui, sans-serif;
  --presentation-title-bg: color-mix(in srgb, var(--presentation-title-panel) var(--presentation-title-opacity), transparent);
  --presentation-title-scale: 1;
  --presentation-title-align: center;
  --presentation-scale: var(--presentation-title-scale);
  --presentation-greeting-panel: #17211d;
  --presentation-greeting-text: #fff;
  --presentation-greeting-accent: #d8a735;
  --presentation-greeting-opacity: 86%;
  --presentation-greeting-width: 100%;
  --presentation-greeting-height: 24%;
  --presentation-greeting-offset-x: 0%;
  --presentation-greeting-offset-y: 0%;
  --presentation-greeting-font: Inter, ui-sans-serif, system-ui, sans-serif;
  --presentation-greeting-bg: color-mix(in srgb, var(--presentation-greeting-panel) var(--presentation-greeting-opacity), transparent);
  --presentation-greeting-align: center;
  --presentation-qr-panel: #17211d;
  --presentation-qr-text: #fff;
  --presentation-qr-accent: #d8a735;
  --presentation-qr-opacity: 86%;
  --presentation-qr-width: 100%;
  --presentation-qr-height: 24%;
  --presentation-qr-offset-x: 0%;
  --presentation-qr-offset-y: 0%;
  --presentation-qr-font: Inter, ui-sans-serif, system-ui, sans-serif;
  --presentation-qr-bg: color-mix(in srgb, var(--presentation-qr-panel) var(--presentation-qr-opacity), transparent);
  --presentation-qr-scale: 1;
  --presentation-qr-align: center;
  --presentation-text: var(--presentation-title-text);
  --presentation-accent: var(--presentation-title-accent);
  --presentation-transition-duration: 1.2s;
  --presentation-text-delay: 0s;
  --presentation-photo-width: 100%;
  --presentation-photo-height: 100%;
  --presentation-photo-offset-x: 0%;
  --presentation-photo-offset-y: 0%;
  --presentation-title-top: 28%;
  --presentation-greeting-top: 51%;
  --presentation-qr-top: 76%;
  width: 100vw;
  height: 100vh;
  padding: 0;
  overflow: hidden;
  background: var(--presentation-bg);
  color: var(--presentation-title-text);
}

.presentation-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38%;
  gap: 1.25%;
  width: 100%;
  height: 100vh;
  min-height: 0;
}

.slide-visual {
  position: relative;
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: center;
  width: var(--presentation-photo-width);
  height: var(--presentation-photo-height);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  opacity: 0;
  background: var(--presentation-bg);
  translate: var(--presentation-photo-offset-x) var(--presentation-photo-offset-y);
  transform: scale(0.985);
  transition: opacity var(--presentation-transition-duration) ease, transform var(--presentation-transition-duration) ease;
}

.slide-visual.is-visible {
  opacity: 1;
  transform: scale(1);
}

.slide-visual.transition-zoom {
  transform: scale(1.05);
}

.slide-visual.transition-zoom.is-visible {
  transform: scale(1);
}

.slide-visual.transition-slide {
  transform: translateX(28px);
}

.slide-visual.transition-slide.is-visible {
  transform: translateX(0);
}

.slide-visual.transition-flip {
  transform: rotateY(8deg) scale(0.98);
}

.slide-visual.transition-flip.is-visible {
  transform: rotateY(0deg) scale(1);
}

.slide-visual img,
.slide-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slide-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1);
  transition: opacity var(--presentation-transition-duration) ease, transform var(--presentation-transition-duration) ease, filter var(--presentation-transition-duration) ease, clip-path var(--presentation-transition-duration) ease;
}

.slide-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.slide-visual.transition-zoom .slide-image {
  transform: scale(1.07);
}

.slide-visual.transition-zoom .slide-image.is-active {
  transform: scale(1);
}

.slide-visual.transition-slide .slide-image {
  transform: translateX(42px);
}

.slide-visual.transition-slide .slide-image.is-active {
  transform: translateX(0);
}

.slide-visual.transition-flip {
  perspective: 1200px;
}

.slide-visual.transition-flip .slide-image {
  transform: rotateY(10deg) scale(0.98);
}

.slide-visual.transition-flip .slide-image.is-active {
  transform: rotateY(0deg) scale(1);
}

.slide-visual.transition-blur .slide-image {
  filter: blur(14px);
  transform: scale(1.03);
}

.slide-visual.transition-blur .slide-image.is-active {
  filter: blur(0);
  transform: scale(1);
}

.slide-visual.transition-rise .slide-image {
  transform: translateY(42px);
}

.slide-visual.transition-rise .slide-image.is-active {
  transform: translateY(0);
}

.slide-visual.transition-circle .slide-image {
  clip-path: circle(0 at 50% 50%);
}

.slide-visual.transition-circle .slide-image.is-active {
  clip-path: circle(100% at 50% 50%);
}

.empty-slide {
  display: grid;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.empty-slide span {
  color: var(--presentation-accent);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.empty-slide strong {
  font-size: calc(clamp(40px, 7vw, 96px) * var(--presentation-scale));
  line-height: 1;
}

.empty-slide small {
  color: color-mix(in srgb, var(--presentation-text) 72%, transparent);
  font-size: 18px;
}

.slide-info {
  position: relative;
  display: block;
  align-self: stretch;
  justify-self: end;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: visible;
  opacity: 1;
  transition: opacity 0.45s ease;
}

.presentation.text-panel-waiting.layout-overlay .slide-info {
  opacity: 0;
}

.slide-info-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.slide-title-box,
.slide-text-box,
.presentation-qr {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.slide-title-box,
.slide-text-box {
  padding: 24px 28px;
}

.slide-title-box {
  position: absolute;
  top: var(--presentation-title-top);
  right: 0;
  z-index: 3;
  width: var(--presentation-title-width);
  height: var(--presentation-title-height);
  align-self: flex-end;
  border-color: color-mix(in srgb, rgba(255, 255, 255, 0.12) var(--presentation-title-opacity), transparent);
  background: var(--presentation-title-bg);
  color: var(--presentation-title-text);
  font-family: var(--presentation-title-font);
  text-align: var(--presentation-title-align);
  transform: translate(var(--presentation-title-offset-x), var(--presentation-title-offset-y));
}

.slide-text-box {
  position: absolute;
  top: var(--presentation-greeting-top);
  right: 0;
  z-index: 2;
  width: var(--presentation-greeting-width);
  height: var(--presentation-greeting-height);
  align-self: flex-end;
  border-color: color-mix(in srgb, rgba(255, 255, 255, 0.12) var(--presentation-greeting-opacity), transparent);
  background: var(--presentation-greeting-bg);
  color: var(--presentation-greeting-text);
  font-family: var(--presentation-greeting-font);
  text-align: var(--presentation-greeting-align);
  transform: translate(var(--presentation-greeting-offset-x), var(--presentation-greeting-offset-y));
}

.slide-info h1 {
  width: 100%;
  max-width: none;
  color: var(--presentation-title-accent);
  font-size: calc(38px * var(--presentation-title-scale));
  line-height: 1;
}

.slide-info p {
  color: color-mix(in srgb, var(--presentation-greeting-text) 78%, transparent);
  font-size: 19px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.slide-info [data-auto-fit-caption] {
  line-height: 1.2;
  white-space: pre-line;
}

.presentation-qr {
  position: absolute;
  top: var(--presentation-qr-top);
  right: 0;
  z-index: 1;
  width: var(--presentation-qr-width);
  height: var(--presentation-qr-height);
  align-self: flex-end;
  border-color: color-mix(in srgb, rgba(255, 255, 255, 0.12) var(--presentation-qr-opacity), transparent);
  background: var(--presentation-qr-bg);
  color: var(--presentation-qr-text);
  font-family: var(--presentation-qr-font);
  text-align: var(--presentation-qr-align);
  transform: translate(var(--presentation-qr-offset-x), var(--presentation-qr-offset-y));
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.presentation-qr img {
  width: 112px;
  max-width: 100%;
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.presentation-qr.qr-link-hidden {
  grid-template-columns: 1fr;
  place-items: center;
}

.presentation-qr.qr-link-hidden img {
  width: min(100%, 170px);
  max-height: 100%;
}

.presentation-qr span {
  display: block;
  color: color-mix(in srgb, var(--presentation-qr-text) 70%, transparent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.presentation-qr strong {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--presentation-qr-text);
  font-size: calc(18px * var(--presentation-qr-scale));
  line-height: 1.25;
}

.presentation.layout-overlay .presentation-frame {
  grid-template-columns: 1fr;
}

.presentation.layout-overlay .slide-info {
  position: absolute;
  right: 50%;
  bottom: 4.4%;
  width: 91.2%;
  height: 91.2%;
  max-width: 91.2%;
  max-height: 91.2%;
  min-height: 28%;
  transform: translateX(50%);
}

.presentation.layout-split .presentation-frame {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.presentation.layout-split .slide-info {
  --presentation-title-top: 14%;
  --presentation-greeting-top: 37%;
  --presentation-qr-top: 62%;
}

.presentation.layout-reverse .presentation-frame {
  grid-template-columns: 38% minmax(0, 1fr);
}

.presentation.layout-reverse .slide-info {
  grid-column: 1;
  grid-row: 1;
}

.presentation.layout-reverse .slide-visual {
  grid-column: 2;
  grid-row: 1;
}

.presentation.layout-reverse .slide-title-box,
.presentation.layout-reverse .slide-text-box,
.presentation.layout-reverse .presentation-qr {
  align-self: flex-end;
}

.admin-table {
  margin-top: 18px;
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.7fr 0.8fr 0.8fr 1fr;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

.table-row:first-child {
  border-top: 0;
}

.table-head {
  background: #eef2ee;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.theme-switcher {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.theme-switcher legend {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.theme-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.theme-option input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
}

.theme-option-content {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.theme-option-sample {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid #d9e0db;
  border-radius: 6px;
  background: #f7f8f5;
  color: #17211d;
  font-size: 21px;
  font-weight: 900;
}

.theme-option-elegant .theme-option-sample {
  border-color: #d8d2d9;
  border-radius: 3px;
  background: #f6f5f7;
  color: #28232b;
  font-family: Didot, "Bodoni 72", "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
}

.theme-option-content strong,
.theme-option-content small {
  display: block;
}

.theme-option-content strong {
  margin-bottom: 5px;
  font-size: 16px;
}

.theme-option-content small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.theme-option input:checked + .theme-option-content {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green), 0 8px 22px rgba(28, 38, 33, 0.08);
}

.theme-option input:focus-visible + .theme-option-content {
  outline: 3px solid color-mix(in srgb, var(--green) 30%, transparent);
  outline-offset: 2px;
}

.paypal-status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.paypal-mode-switcher {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.paypal-mode-switcher legend {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.paypal-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.paypal-mode-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.paypal-mode-option input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
}

.paypal-mode-option > span {
  display: block;
  min-height: 84px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.paypal-mode-option strong,
.paypal-mode-option small {
  display: block;
}

.paypal-mode-option small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.paypal-mode-option input:checked + span {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}

.paypal-mode-option input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--green) 30%, transparent);
  outline-offset: 2px;
}

body.theme-elegant {
  --ink: #28232b;
  --muted: #746e78;
  --line: #dcd7de;
  --paper: #f6f6f8;
  --panel: #ffffff;
  --green: #5f756a;
  --red: #a34e58;
  --gold: #aa8248;
  --blue: #68738c;
  --shadow: 0 16px 42px rgba(40, 35, 43, 0.09);
  background: var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

:where(body.theme-elegant:not(.presentation-page):not(.guestbook-page):not(.qr-print-page)) h1,
:where(body.theme-elegant:not(.presentation-page):not(.guestbook-page):not(.qr-print-page)) h2,
:where(body.theme-elegant:not(.presentation-page):not(.guestbook-page):not(.qr-print-page)) h3,
:where(body.theme-elegant:not(.presentation-page):not(.guestbook-page):not(.qr-print-page)) .brand,
:where(body.theme-elegant:not(.presentation-page):not(.guestbook-page):not(.qr-print-page)) .landing-brand-mark {
  font-family: Didot, "Bodoni 72", "Times New Roman", serif;
  font-weight: 500;
}

:where(body.theme-elegant:not(.presentation-page):not(.guestbook-page):not(.qr-print-page)) h1 {
  font-size: clamp(39px, 5.4vw, 74px);
  line-height: 1.04;
}

:where(body.theme-elegant:not(.presentation-page):not(.guestbook-page):not(.qr-print-page)) h2 {
  font-size: 23px;
  line-height: 1.2;
}

body.theme-elegant .landing-copy h1 {
  font-size: var(--landing-headline-size);
}

body.theme-elegant .landing-features h2,
body.theme-elegant .landing-product h2,
body.theme-elegant .landing-packages h2,
body.theme-elegant .landing-guide h2 {
  font-size: var(--landing-feature-title-size);
}

body.theme-elegant .landing-guide h2 {
  font-size: var(--landing-guide-title-size);
}

body.theme-elegant .landing-cta h2 {
  font-size: var(--landing-cta-title-size);
}

.theme-elegant .topbar {
  min-height: 70px;
  gap: 24px;
  border-bottom-color: rgba(40, 35, 43, 0.12);
  background: rgba(250, 250, 251, 0.94);
}

.theme-elegant .topbar a {
  font-size: 13px;
  font-weight: 600;
}

.theme-elegant .topbar .brand {
  font-size: 23px;
}

.theme-elegant .eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
}

.theme-elegant .lead {
  font-size: 18px;
  line-height: 1.65;
}

.theme-elegant .button,
.theme-elegant .manage-tab-button,
.theme-elegant .rich-editor-toolbar button {
  min-height: 42px;
  padding-right: 20px;
  padding-left: 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.theme-elegant .button:hover,
.theme-elegant .manage-tab-button:hover,
.theme-elegant .rich-editor-toolbar button:hover {
  border-color: #aaa2ad;
  box-shadow: 0 7px 18px rgba(40, 35, 43, 0.08);
  transform: translateY(-1px);
}

.theme-elegant .button.primary {
  border-color: #343038;
  background: #343038;
  color: #fff;
}

.theme-elegant .button.primary:hover {
  border-color: #5f756a;
  background: #5f756a;
}

.theme-elegant .manage-tab-button.is-active {
  border-color: #343038;
  background: #343038;
}

.theme-elegant .panel,
.theme-elegant .timeline,
.theme-elegant .admin-table,
.theme-elegant .status-grid article,
.theme-elegant .landing-copy,
.theme-elegant .landing-visual,
.theme-elegant .landing-features article,
.theme-elegant .landing-product,
.theme-elegant .landing-packages,
.theme-elegant .landing-cta {
  border-radius: 4px;
  box-shadow: 0 12px 34px rgba(40, 35, 43, 0.055);
}

.theme-elegant .status-grid article {
  min-height: 138px;
}

.theme-elegant .status-grid p,
.theme-elegant .package-cards strong {
  font-family: Didot, "Bodoni 72", "Times New Roman", serif;
  font-weight: 500;
}

.theme-elegant label {
  font-size: 13px;
  font-weight: 600;
}

.theme-elegant input,
.theme-elegant select,
.theme-elegant textarea,
.theme-elegant .font-picker-button {
  border-radius: 4px;
  font-weight: 500;
}

.theme-elegant .notice,
.theme-elegant .toggle-row,
.theme-elegant .link-grid a,
.theme-elegant .box-accordion,
.theme-elegant .package-edit-panel,
.theme-elegant .presentation-settings,
.theme-elegant .event-palette {
  border-radius: 4px;
}

.theme-elegant .notice,
.theme-elegant .form-status,
.theme-elegant .link-grid a,
.theme-elegant .table-head,
.theme-elegant .table-action,
.theme-elegant .box-accordion summary {
  font-weight: 600;
}

.theme-elegant .table-head {
  background: #f0eef1;
}

.theme-elegant .site-footer {
  background: #fbfbfc;
}

.theme-elegant .site-footer strong {
  font-family: Didot, "Bodoni 72", "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
}

.theme-elegant .site-footer span,
.theme-elegant .site-footer a,
.theme-elegant .site-footer-link {
  font-size: 13px;
  font-weight: 500;
}

.cookie-consent-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  align-items: end;
  padding: 20px;
  background: rgba(16, 20, 18, 0.46);
  backdrop-filter: blur(3px);
}

.cookie-consent-layer[hidden],
.cookie-consent-details[hidden],
.cookie-consent-actions[hidden],
.cookie-consent-error[hidden] {
  display: none;
}

.cookie-consent-dialog {
  position: relative;
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(12, 18, 15, 0.24);
}

.cookie-consent-dialog h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.cookie-consent-dialog > p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.cookie-consent-actions .button {
  min-width: 160px;
}

.cookie-consent-details {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.cookie-consent-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf8;
  color: var(--ink);
}

.cookie-consent-category span {
  display: grid;
  gap: 3px;
}

.cookie-consent-category small {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
}

.cookie-consent-category b {
  color: var(--green);
  font-size: 13px;
}

.cookie-consent-category input {
  width: 22px;
  min-height: 22px;
  flex: 0 0 auto;
}

.cookie-consent-links {
  margin-top: 14px;
  font-size: 13px;
}

.cookie-consent-links a {
  color: var(--green);
  font-weight: 800;
}

.cookie-consent-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cookie-consent-error {
  color: var(--red) !important;
  font-weight: 800;
}

.theme-elegant .cookie-consent-dialog,
.theme-elegant .cookie-consent-category {
  border-radius: 4px;
}

.theme-elegant .theme-option-content {
  border-radius: 4px;
}

.analytics-dashboard {
  display: grid;
  gap: 18px;
}

.analytics-dashboard > .panel,
.analytics-dashboard .admin-table {
  margin: 0;
}

.analytics-periods {
  gap: 8px;
}

.analytics-periods .button {
  min-width: 92px;
}

.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.analytics-kpis article {
  display: grid;
  align-content: start;
  min-height: 164px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(28, 38, 33, 0.06);
}

.analytics-kpis span,
.analytics-kpis small,
.analytics-list small,
.analytics-bookings small {
  color: var(--muted);
}

.analytics-kpis span {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.analytics-kpis strong {
  margin: 12px 0 8px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
}

.analytics-kpis small {
  font-weight: 700;
}

.analytics-chart-panel {
  overflow: hidden;
}

.analytics-chart {
  display: grid;
  grid-template-columns: repeat(var(--chart-columns), minmax(26px, 1fr));
  gap: 6px;
  min-height: 250px;
  margin-top: 18px;
  padding: 16px 0 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.analytics-chart-column {
  display: grid;
  grid-template-rows: 22px 180px 28px;
  align-items: end;
  justify-items: center;
  min-width: 26px;
}

.analytics-chart-column > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.analytics-chart-column i {
  display: block;
  width: min(22px, 70%);
  min-height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--green);
}

.analytics-chart-column small {
  align-self: center;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.analytics-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.analytics-columns h3 {
  margin: 24px 0 8px;
  font-size: 15px;
}

.analytics-list,
.analytics-bookings {
  display: grid;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.analytics-list > div,
.analytics-bookings > a,
.analytics-bookings > .analytics-booking-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.analytics-list span,
.analytics-bookings span {
  display: grid;
  gap: 2px;
}

.analytics-list b,
.analytics-bookings b {
  font-size: 17px;
  white-space: nowrap;
}

.analytics-list small,
.analytics-bookings small {
  font-size: 12px;
}

.analytics-bookings > a {
  text-decoration: none;
}

.analytics-bookings > a:hover strong {
  color: var(--green);
}

.analytics-privacy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.theme-elegant .analytics-kpis article {
  border-radius: 4px;
  box-shadow: 0 12px 34px rgba(40, 35, 43, 0.055);
}

.theme-elegant .analytics-kpis strong {
  font-family: Didot, "Bodoni 72", "Times New Roman", serif;
  font-weight: 500;
}

.template-tags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

@media (max-width: 820px) {
  .shell,
  .landing-page,
  .guest-gallery-shell {
    width: min(100% - 20px, 100%);
  }

  .shell {
    padding: 16px 0 40px;
  }

  .panel,
  .timeline {
    padding: 18px;
  }

  .topbar {
    position: static;
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .topbar .brand {
    flex-basis: 100%;
  }

  .cookie-consent-layer {
    padding: 10px;
  }

  .cookie-consent-dialog {
    max-height: calc(100vh - 20px);
    padding: 20px;
    overflow-y: auto;
  }

  .cookie-consent-actions {
    display: grid;
  }

  .cookie-consent-actions .button {
    width: 100%;
  }

  .legal-table {
    min-width: 100%;
    table-layout: fixed;
  }

  .legal-table th,
  .legal-table td {
    padding: 6px;
    overflow-wrap: anywhere;
    font-size: 11px;
  }

  .theme-options {
    grid-template-columns: 1fr;
  }

  .paypal-mode-options,
  .paypal-status-grid {
    grid-template-columns: 1fr;
  }

  .hero-board,
  .panel.split,
  .landing-hero,
  .landing-product {
    grid-template-columns: 1fr;
  }

  .hero-board {
    padding: 26px;
  }

  .landing-page {
    gap: 14px;
    padding: 10px 0 36px;
  }

  .landing-hero {
    gap: 14px;
    min-height: 0;
  }

  .landing-copy {
    padding: 26px 22px;
  }

  .landing-copy h1 {
    font-size: min(var(--landing-headline-size), 42px);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .landing-copy .lead {
    font-size: min(var(--landing-subline-size), 18px);
  }

  .landing-copy .actions,
  .landing-cta .actions {
    display: grid;
  }

  .landing-copy .button,
  .landing-cta .button {
    width: 100%;
  }

  .landing-visual,
  .landing-visual img {
    min-height: 320px;
  }

  .landing-live-card {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    padding: 16px;
  }

  .landing-live-card strong {
    font-size: 22px;
  }

  .landing-features article,
  .landing-packages,
  .landing-cta,
  .landing-product {
    padding: 22px;
  }

  .landing-features h2,
  .landing-product h2,
  .landing-packages h2,
  .landing-guide h2,
  .landing-cta h2 {
    font-size: min(var(--landing-feature-title-size), 30px);
    overflow-wrap: anywhere;
  }

  .landing-guide h2 {
    font-size: min(var(--landing-guide-title-size), 30px);
  }

  .landing-cta h2 {
    font-size: min(var(--landing-cta-title-size), 32px);
  }

  .landing-guide {
    padding: 28px 22px;
  }

  .landing-mini-presentation {
    width: 100%;
    min-height: 0;
  }

  .landing-mini-slide {
    grid-template-columns: minmax(0, 1fr) 40%;
    gap: 8px;
    padding: 8px;
  }

  .landing-mini-panel {
    gap: 6px;
    padding: 12px;
  }

  .landing-mini-panel strong {
    font-size: 17px;
  }

  .landing-mini-status {
    top: 14px;
    right: 14px;
  }

  h1 {
    font-size: 44px;
  }

  body .legal-page h1 {
    font-size: 28px;
  }

  .status-grid,
  .analytics-kpis,
  .analytics-columns,
  .landing-guide-steps,
  .link-grid,
  .landing-features,
  .package-cards,
  .toggle-grid,
  .date-grid,
  .package-fields,
  .panel-heading {
    grid-template-columns: 1fr;
  }

  .landing-guide-steps {
    gap: 0;
  }

  .landing-guide-steps li,
  .landing-guide-steps li:first-child,
  .landing-guide-steps li:last-child {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .landing-guide-steps > li > span {
    margin: 2px 0 0;
  }

  .panel-heading {
    display: grid;
  }

  .status-grid article {
    min-height: 0;
    padding: 18px;
  }

  .qr-box {
    min-height: 150px;
  }

  .action-panel .actions,
  .panel-heading .actions,
  .guestbook-selection-toolbar .actions {
    display: grid;
    width: 100%;
    justify-content: stretch;
    justify-items: stretch;
  }

  .action-panel .button,
  .panel-heading .button,
  .guestbook-selection-toolbar .button {
    width: 100%;
  }

  .manage-tab-list {
    position: sticky;
    top: 0;
    z-index: 30;
    flex-wrap: nowrap;
    gap: 7px;
    margin: 0 -10px;
    padding: 8px 10px;
    overflow-x: auto;
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    box-shadow: 0 8px 18px rgba(18, 26, 22, 0.08);
    scrollbar-width: thin;
    backdrop-filter: blur(12px);
  }

  .manage-tab-button {
    min-height: 42px;
    flex: 0 0 auto;
    padding: 0 14px;
    white-space: nowrap;
  }

  .manage-tab-panel,
  .settings-form,
  .designer-grid > *,
  .qr-settings > *,
  .presentation-settings > * {
    min-width: 0;
  }

  .designer-grid,
  .transition-options {
    grid-template-columns: 1fr;
  }

  .presentation-layout-field {
    width: 100%;
  }

  .box-accordion .designer-grid,
  .box-copy {
    margin-right: 10px;
    margin-left: 10px;
  }

  .font-picker-menu {
    max-width: calc(100vw - 56px);
  }

  .qr-card-preview,
  .guestbook-design-preview {
    max-width: 100%;
  }

  .guestbook-design-preview {
    padding: 10px;
  }

  .guestbook-preview-page {
    width: min(100%, 360px);
    gap: 10px;
    padding: 12px;
  }

  .guestbook-preview-cover {
    padding: 11px 12px;
  }

  .guestbook-preview-cover strong,
  .guestbook-preview-entry strong {
    font-size: clamp(15px, 5vw, 20px);
  }

  .guestbook-preview-entry div:last-child {
    min-width: 0;
    padding: 10px;
  }

  .guestbook-preview-entry p {
    margin: 6px 0;
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .guestbook-design-preview.template-album .guestbook-preview-page {
    padding: 14px;
  }

  .guestbook-design-preview.template-album .guestbook-preview-entry {
    width: 86%;
    height: calc(100% - 12px);
    margin: 8px auto 4px;
    padding: 8px 8px 12px;
  }

  .guestbook-design-preview.template-album .guestbook-preview-entry::before {
    top: -10px;
    width: 60px;
    height: 20px;
  }

  .guestbook-design-preview.template-album .guestbook-preview-photo {
    min-height: 72px;
  }

  .guestbook-selection-toolbar {
    display: grid;
  }

  .guestbook-cover,
  .qr-print-actions,
  .guestbook-actions {
    display: grid;
  }

  .guestbook-grid {
    grid-template-columns: 1fr;
  }

  .presentation-settings,
  .qr-settings,
  .invoice-template-layout,
  .package-table .table-row,
  .payment-table .table-row,
  .color-grid {
    grid-template-columns: 1fr;
  }

  .presentation-preview {
    position: relative;
    top: auto;
  }

  .presentation {
    padding: 0;
    height: 100dvh;
  }

  .presentation-frame {
    height: 100dvh;
  }

  .slide-visual {
    max-width: 100%;
    max-height: 100%;
    translate: none;
  }

  .slide-title-box,
  .slide-text-box,
  .presentation-qr {
    max-width: 100%;
    transform: none;
  }

  .slide-info h1 {
    font-size: calc(30px * var(--presentation-title-scale));
  }

  .slide-title-box,
  .slide-text-box {
    padding: 18px;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    gap: 18px;
    padding: 24px 16px;
  }

  .site-footer nav {
    gap: 12px 16px;
  }
}

@media screen and (max-width: 820px) {
  .guestbook-shell {
    width: min(100% - 20px, 420px);
    padding: 10px 0 32px;
  }

  .guestbook-print-page {
    width: 100%;
    min-height: 0;
    aspect-ratio: 210 / 297;
    gap: 10px;
    padding: 14px;
  }

  .guestbook-cover {
    flex: 0 0 auto;
    padding: 12px 14px;
  }

  .guestbook-cover h1,
  .guestbook-template-magazine .guestbook-cover h1,
  .guestbook-template-compact .guestbook-cover h1 {
    margin-bottom: 8px;
    font-size: clamp(20px, 7vw, 28px);
  }

  .guestbook-cover p,
  .guestbook-cover .eyebrow {
    font-size: 10px;
  }

  .guestbook-grid,
  .guestbook-template-classic .guestbook-grid,
  .guestbook-template-classic .guestbook-print-page:not(.has-cover) .guestbook-grid,
  .guestbook-template-album .guestbook-grid,
  .guestbook-template-album .guestbook-print-page:not(.has-cover) .guestbook-grid {
    flex: 1;
    height: auto;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
  }

  .guestbook-entry {
    min-height: 0;
    box-shadow: 0 4px 10px rgba(42, 33, 24, 0.08);
  }

  .guestbook-entry img {
    flex: 0 0 48%;
    height: 48%;
  }

  .guestbook-entry div {
    gap: 3px;
    padding: 6px;
    overflow: hidden;
  }

  .guestbook-entry strong {
    font-size: 11px;
  }

  .guestbook-entry p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.2;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .guestbook-entry small {
    font-size: 8px;
  }

  .guestbook-template-magazine .guestbook-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .guestbook-template-magazine .guestbook-entry {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .guestbook-template-magazine .guestbook-entry img {
    width: 100%;
    height: 100%;
  }

  .guestbook-template-magazine .guestbook-entry div {
    padding: 6px;
  }

  .guestbook-template-magazine .guestbook-entry strong {
    font-size: 11px;
  }

  .guestbook-template-compact .guestbook-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .guestbook-template-compact .guestbook-entry div {
    gap: 2px;
    padding: 4px;
  }

  .guestbook-template-compact .guestbook-entry strong,
  .guestbook-template-compact .guestbook-entry p {
    font-size: 8px;
  }

  .guestbook-template-compact .guestbook-entry small {
    font-size: 7px;
  }

  .guestbook-template-album .guestbook-grid,
  .guestbook-template-album .guestbook-print-page:not(.has-cover) .guestbook-grid {
    gap: 14px 12px;
    padding: 8px 6px 4px;
  }

  .guestbook-template-album .guestbook-entry {
    padding: 7px 7px 10px;
    box-shadow: 3px 4px 0 color-mix(in srgb, var(--guestbook-border) 78%, transparent);
  }

  .guestbook-template-album .guestbook-entry::before {
    top: -8px;
    width: 42px;
    height: 14px;
  }

  .guestbook-template-album .guestbook-entry img {
    flex-basis: 52%;
    height: 52%;
  }

  .guestbook-template-album .guestbook-entry div {
    gap: 3px;
    padding: 6px 2px 0;
  }

  .guestbook-template-album .guestbook-entry strong {
    font-size: 11px;
  }

  .guestbook-template-album .guestbook-entry p {
    font-size: 9px;
  }

  .guestbook-template-album .guestbook-entry small {
    font-size: 7px;
  }
}

@media (max-width: 820px) and (orientation: portrait) {
  .presentation-page {
    height: 100dvh;
  }

  .presentation .presentation-frame,
  .presentation.layout-overlay .presentation-frame,
  .presentation.layout-split .presentation-frame,
  .presentation.layout-reverse .presentation-frame {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 62dvh) minmax(0, 38dvh);
    gap: 0;
  }

  .presentation .slide-visual,
  .presentation.layout-reverse .slide-visual {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .presentation .slide-info,
  .presentation.layout-overlay .slide-info,
  .presentation.layout-split .slide-info,
  .presentation.layout-reverse .slide-info {
    position: relative;
    right: auto;
    bottom: auto;
    grid-column: 1;
    grid-row: 2;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 6px;
    justify-content: stretch;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    padding: 8px;
    overflow: hidden;
    transform: none;
  }

  .presentation .slide-title-box,
  .presentation .slide-text-box,
  .presentation .presentation-qr {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    align-self: stretch;
    padding: 8px 10px;
    transform: none;
  }

  .presentation .slide-title-box h1 {
    margin: 0;
    font-size: clamp(calc(17px * var(--presentation-title-scale)), calc(6vw * var(--presentation-title-scale)), calc(26px * var(--presentation-title-scale)));
    line-height: 1.05;
  }

  .presentation .slide-text-box {
    overflow: hidden;
  }

  .presentation .slide-info p {
    margin: 0;
    font-size: clamp(12px, 4vw, 17px);
    line-height: 1.2;
  }

  .presentation .presentation-qr {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 8px;
    max-height: 82px;
  }

  .presentation .presentation-qr img,
  .presentation .presentation-qr.qr-link-hidden img {
    width: 54px;
    max-height: 54px;
    padding: 4px;
  }

  .presentation .presentation-qr span {
    font-size: 9px;
  }

  .presentation .presentation-qr strong {
    font-size: 11px;
  }
}

@media (max-width: 1024px) and (max-height: 600px) and (orientation: landscape) {
  .presentation-page,
  .presentation,
  .presentation-frame {
    height: 100dvh;
  }

  .presentation .presentation-frame,
  .presentation.layout-overlay .presentation-frame,
  .presentation.layout-split .presentation-frame,
  .presentation.layout-reverse .presentation-frame {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 36%);
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
  }

  .presentation .slide-visual,
  .presentation.layout-reverse .slide-visual {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    border-radius: 0;
    translate: none;
  }

  .presentation .slide-info,
  .presentation.layout-overlay .slide-info,
  .presentation.layout-split .slide-info,
  .presentation.layout-reverse .slide-info {
    position: relative;
    right: auto;
    bottom: auto;
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 5px;
    justify-content: stretch;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    padding: 6px;
    overflow: hidden;
    transform: none;
  }

  .presentation .slide-title-box,
  .presentation .slide-text-box,
  .presentation .presentation-qr {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    align-self: stretch;
    padding: 7px 9px;
    transform: none;
  }

  .presentation .slide-info h1 {
    margin: 0;
    font-size: clamp(calc(17px * var(--presentation-title-scale)), calc(3.5vw * var(--presentation-title-scale)), calc(25px * var(--presentation-title-scale)));
  }

  .presentation .slide-info p {
    margin: 0;
    font-size: clamp(11px, 2vw, 16px);
    line-height: 1.15;
  }

  .presentation .presentation-qr {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 7px;
    max-height: 68px;
  }

  .presentation .presentation-qr img,
  .presentation .presentation-qr.qr-link-hidden img {
    width: 48px;
    max-height: 48px;
    padding: 3px;
  }

  .presentation .presentation-qr span {
    font-size: 8px;
  }

  .presentation .presentation-qr strong {
    font-size: 10px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 34px;
    overflow-wrap: anywhere;
  }

  .landing-copy h1 {
    font-size: min(var(--landing-headline-size), 36px);
  }

  .landing-brand-mark {
    font-size: 24px;
  }

  .landing-visual,
  .landing-visual img {
    min-height: 260px;
  }

  .landing-live-card strong {
    font-size: 19px;
  }

  .landing-mini-presentation {
    aspect-ratio: 4 / 3;
  }

  .landing-mini-slide {
    grid-template-columns: minmax(0, 1fr) 42%;
  }

  .landing-mini-panel {
    padding: 10px;
  }

  .landing-mini-panel strong {
    font-size: 14px;
  }

  .landing-mini-panel small,
  .landing-mini-status {
    font-size: 10px;
  }

  .guest-gallery-shell {
    padding-top: 14px;
  }

  .guest-gallery-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .guest-gallery-shell > .panel .actions {
    display: grid;
  }

  .guest-gallery-shell > .panel .button {
    width: 100%;
  }

  .camera-heading span {
    display: none;
  }

  .camera-heading {
    opacity: 0;
    pointer-events: none;
  }

  .camera-header .camera-gallery-link {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }

  .camera-controls {
    padding-right: 10px;
    padding-left: 10px;
  }

  .camera-control-panel {
    min-height: 92px;
  }
}

@font-face {
  font-family: "GW Sans";
  src: url("/assets/fonts/gw-sans-regular.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "GW Sans";
  src: url("/assets/fonts/gw-sans-bold.ttf") format("truetype");
  font-display: swap;
  font-weight: 700 900;
}

@font-face { font-family: "GW Serif"; src: url("/assets/fonts/gw-serif-regular.ttf"); font-display: swap; font-weight: 400; }
@font-face { font-family: "GW Serif"; src: url("/assets/fonts/gw-serif-bold.ttf"); font-display: swap; font-weight: 700 900; }
@font-face { font-family: "GW Mono"; src: url("/assets/fonts/gw-mono-regular.ttf"); font-display: swap; font-weight: 400; }
@font-face { font-family: "GW Mono"; src: url("/assets/fonts/gw-mono-bold.ttf"); font-display: swap; font-weight: 700 900; }
@font-face { font-family: "GW Humanist"; src: url("/assets/fonts/gw-humanist-regular.ttf"); font-display: swap; font-weight: 400; }
@font-face { font-family: "GW Humanist"; src: url("/assets/fonts/gw-humanist-bold.ttf"); font-display: swap; font-weight: 700 900; }
@font-face { font-family: "GW Times"; src: url("/assets/fonts/gw-times-regular.otf"); font-display: swap; font-weight: 400; }
@font-face { font-family: "GW Times"; src: url("/assets/fonts/gw-times-bold.otf"); font-display: swap; font-weight: 700 900; }
@font-face { font-family: "GW Geometric"; src: url("/assets/fonts/gw-geometric-regular.otf"); font-display: swap; font-weight: 400; }
@font-face { font-family: "GW Geometric"; src: url("/assets/fonts/gw-geometric-bold.otf"); font-display: swap; font-weight: 700 900; }
@font-face { font-family: "GW Classic"; src: url("/assets/fonts/gw-classic-regular.otf"); font-display: swap; font-weight: 400; }
@font-face { font-family: "GW Classic"; src: url("/assets/fonts/gw-classic-bold.otf"); font-display: swap; font-weight: 700 900; }
@font-face { font-family: "GW Scholarly"; src: url("/assets/fonts/gw-scholarly-regular.otf"); font-display: swap; font-weight: 400; }
@font-face { font-family: "GW Scholarly"; src: url("/assets/fonts/gw-scholarly-bold.otf"); font-display: swap; font-weight: 700 900; }
@font-face { font-family: "GW Grotesk"; src: url("/assets/fonts/gw-grotesk-regular.otf"); font-display: swap; font-weight: 400; }
@font-face { font-family: "GW Grotesk"; src: url("/assets/fonts/gw-grotesk-bold.otf"); font-display: swap; font-weight: 700 900; }
@font-face { font-family: "GW Narrow"; src: url("/assets/fonts/gw-narrow-regular.otf"); font-display: swap; font-weight: 400; }
@font-face { font-family: "GW Narrow"; src: url("/assets/fonts/gw-narrow-bold.otf"); font-display: swap; font-weight: 700 900; }
@font-face { font-family: "GW Script"; src: url("/assets/fonts/gw-script.otf"); font-display: swap; font-weight: 400 900; }

/* GuestWall CI: black, white and signal orange. */
:root {
  --ink: #171717;
  --muted: #69645f;
  --line: #ded9d3;
  --paper: #f3f1ee;
  --panel: #ffffff;
  --green: #f58200;
  --green-dark: #c95d00;
  --gold: #ff9d1a;
  --blue: #2f2f2f;
  --shadow: 0 18px 44px rgba(17, 15, 13, 0.12);
}

body.theme-elegant {
  --ink: #171717;
  --muted: #69645f;
  --line: #ded9d3;
  --paper: #f3f1ee;
  --panel: #ffffff;
  --green: #f58200;
  --green-dark: #c95d00;
  --gold: #ff9d1a;
  --blue: #2f2f2f;
  --shadow: 0 18px 44px rgba(17, 15, 13, 0.12);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

body.theme-elegant h1,
body.theme-elegant h2,
body.theme-elegant h3,
body.theme-elegant .brand,
body.theme-elegant .button,
body.theme-elegant .tab-button,
body.theme-elegant summary {
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

body.theme-elegant .presentation .slide-title-box h1,
.presentation .slide-title-box h1,
.presentation-preview .preview-title-box strong {
  font-family: var(--presentation-title-font);
}

.presentation .slide-text-box p,
.presentation-preview .preview-panel p {
  font-family: var(--presentation-greeting-font);
}

.presentation .presentation-qr,
.presentation-preview .preview-qr {
  font-family: var(--presentation-qr-font);
}

.brand-lockup,
.landing-page .landing-brand-lockup {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.08em;
  color: inherit;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 0.95;
  text-transform: lowercase;
  white-space: nowrap;
}

.brand-lockup i,
.landing-brand-lockup i {
  display: block;
  width: 0.52em;
  height: 0.52em;
  margin-top: 0.04em;
  border: 2px solid var(--green);
  border-left: 0;
  border-radius: 2px;
  flex: 0 0 auto;
}

.topbar .brand-lockup {
  font-size: 24px;
}

.site-footer .brand-lockup {
  font-size: 22px;
  color: #fff;
}

.button.primary,
body.theme-elegant .button.primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  box-shadow: none;
}

.button.primary:hover,
body.theme-elegant .button.primary:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #fff;
}

.landing-page {
  width: 100%;
  max-width: none;
  padding: 0;
  gap: 0;
  background: var(--paper);
}

.landing-page .eyebrow {
  color: var(--green);
  letter-spacing: 0;
}

.landing-hero {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: min(760px, calc(100svh - 72px));
  overflow: hidden;
  background: #111;
}

.landing-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.93) 0%, rgba(0, 0, 0, 0.78) 42%, rgba(0, 0, 0, 0.24) 76%, rgba(0, 0, 0, 0.38) 100%);
}

.landing-page .landing-visual {
  position: absolute;
  z-index: -2;
  inset: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #111;
  box-shadow: none;
}

.landing-page .landing-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.05);
}

.landing-page .landing-copy {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(760px, 70%);
  min-height: inherit;
  padding: 64px max(24px, calc((100vw - 1180px) / 2));
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.landing-page .landing-copy .landing-brand-lockup {
  max-width: 100%;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(52px, calc(var(--landing-headline-size) + 24px), 96px);
}

.landing-brand-lockup i {
  border-width: 3px;
  border-color: var(--green);
}

.landing-copy .eyebrow {
  margin: 0 0 22px;
  color: var(--green);
  font-size: max(var(--landing-eyebrow-size), 20px);
  font-weight: 500;
  text-transform: none;
}

.landing-copy .lead {
  max-width: 620px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.9);
  font-size: max(var(--landing-subline-size), 18px);
  line-height: 1.55;
}

.landing-copy .notice {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}

.landing-copy .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-copy .button {
  min-height: 50px;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  backdrop-filter: blur(8px);
}

.landing-copy .button:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.landing-copy .button.primary {
  border-color: var(--green);
  background: var(--green);
}

.landing-live-card,
body.theme-elegant .landing-live-card {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 56px;
  width: min(350px, calc(100% - 48px));
  padding: 24px 28px;
  border: 0;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.landing-live-card span {
  color: #fff;
  letter-spacing: 0;
}

.landing-live-card strong {
  color: #fff;
  font-size: 22px;
  line-height: 1.25;
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 70px max(24px, calc((100vw - 1180px) / 2));
  background: #141414;
  color: #fff;
}

.landing-page .landing-features article {
  min-height: 210px;
  padding: 12px 38px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.landing-page .landing-features article:first-child {
  padding-left: 0;
  border-left: 0;
}

.landing-features article > span {
  color: var(--green);
}

.landing-features h2 {
  color: #fff;
  font-size: var(--landing-feature-title-size);
}

.landing-features p {
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--landing-feature-text-size);
}

.landing-page .landing-guide,
.landing-page .landing-product,
.landing-page .landing-packages,
.landing-page .landing-cta {
  padding-right: max(24px, calc((100vw - 1180px) / 2));
  padding-left: max(24px, calc((100vw - 1180px) / 2));
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.landing-page .landing-guide {
  padding-top: 90px;
  padding-bottom: 90px;
  background: #fff;
}

.landing-guide header {
  max-width: 760px;
}

.landing-guide h2 {
  font-size: var(--landing-guide-title-size);
}

.landing-guide-steps {
  border-color: var(--line);
}

.landing-guide-steps li > span {
  color: var(--green);
}

.landing-guide-steps h3 {
  font-size: var(--landing-guide-step-title-size);
}

.landing-guide-steps p,
.landing-guide header > p:last-child {
  font-size: var(--landing-guide-text-size);
}

.landing-page .landing-product {
  padding-top: 90px;
  padding-bottom: 90px;
  background: #171717;
  color: #fff;
}

.landing-product h2,
.landing-product > div:first-child > p:last-child {
  color: #fff;
}

.landing-product > div:first-child > p:last-child {
  opacity: 0.75;
}

.landing-page .landing-mini-presentation {
  border: 2px solid rgba(245, 130, 0, 0.75);
  border-radius: 4px;
  background: #080808;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.35);
}

.landing-mini-panel span,
.landing-mini-status {
  color: var(--green);
}

.landing-page .landing-packages {
  padding-top: 90px;
  padding-bottom: 90px;
  background: var(--paper);
}

.package-cards article,
body.theme-elegant .package-cards article {
  position: relative;
  overflow: hidden;
  border-color: var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 15, 13, 0.08);
}

.package-cards article::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: var(--green);
}

.package-cards article > strong {
  color: var(--green-dark);
}

.landing-page .landing-cta,
body.theme-elegant .landing-page .landing-cta {
  padding-top: 78px;
  padding-bottom: 78px;
  background: var(--green);
  color: #fff;
  text-align: left;
}

.landing-cta h2,
.landing-cta p {
  max-width: 760px;
  color: #fff;
}

.landing-cta h2 {
  font-size: var(--landing-cta-title-size);
}

.landing-cta p {
  font-size: var(--landing-cta-text-size);
  opacity: 0.86;
}

.landing-page .landing-cta .button.primary {
  border-color: #171717;
  background: #171717;
  color: #fff;
}

.landing-page .landing-cta .button.primary:hover {
  border-color: #fff;
  background: #fff;
  color: #171717;
}

body .site-footer,
body.theme-elegant .site-footer {
  border-top: 4px solid var(--green);
  background: #111;
  color: rgba(255, 255, 255, 0.72);
}

body .site-footer a,
body.theme-elegant .site-footer a {
  color: rgba(255, 255, 255, 0.82);
}

body .site-footer a:hover,
body.theme-elegant .site-footer a:hover {
  color: var(--gold);
}

body.theme-elegant .demo-modal-card {
  border-color: var(--line);
  border-radius: 4px;
  background: #fff;
}

@media (max-width: 820px) {
  .landing-hero {
    min-height: calc(100svh - 64px);
  }

  .landing-hero::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.68) 70%, rgba(0, 0, 0, 0.48) 100%);
  }

  .landing-page .landing-visual img {
    object-position: 62% center;
  }

  .landing-page .landing-copy {
    width: 100%;
    min-height: inherit;
    padding: 40px 20px 164px;
  }

  .landing-page .landing-copy .landing-brand-lockup {
    font-size: clamp(42px, calc(var(--landing-headline-size) + 10px), 64px);
  }

  .landing-copy .actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-copy .actions > :first-child {
    grid-column: 1 / -1;
  }

  .landing-copy .button {
    width: 100%;
  }

  .landing-live-card,
  body.theme-elegant .landing-live-card {
    right: 20px;
    bottom: 20px;
    left: 20px;
    width: auto;
    padding: 16px 18px;
  }

  .landing-live-card strong {
    font-size: 17px;
  }

  .landing-features {
    grid-template-columns: 1fr;
    padding: 54px 20px;
  }

  .landing-page .landing-features article,
  .landing-page .landing-features article:first-child {
    min-height: 0;
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .landing-page .landing-features article:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .landing-page .landing-guide,
  .landing-page .landing-product,
  .landing-page .landing-packages,
  .landing-page .landing-cta {
    padding-right: 20px;
    padding-left: 20px;
  }

  .landing-page .landing-guide,
  .landing-page .landing-product,
  .landing-page .landing-packages {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

@media (max-width: 480px) {
  .landing-copy .actions {
    grid-template-columns: 1fr;
  }

  .landing-copy .actions > :first-child {
    grid-column: auto;
  }

  .landing-page .landing-copy .landing-brand-lockup {
    font-size: clamp(38px, calc(var(--landing-headline-size) + 6px), 52px);
  }

  .landing-copy .eyebrow {
    font-size: max(var(--landing-eyebrow-size), 17px);
  }
}

@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    margin: 0;
    background: #f3f0ea;
  }

  .guestbook-shell {
    width: 210mm;
    padding: 0;
  }

  .guestbook-actions,
  .guestbook-template-tabs {
    display: none;
  }

  .guestbook-pages {
    display: block;
    gap: 0;
  }

  .guestbook-print-page {
    width: 210mm;
    min-height: 0;
    height: 297mm;
    margin: 0;
    padding: 12mm;
    border: 0;
    box-shadow: none;
    break-after: page;
    page-break-after: always;
  }

  .guestbook-print-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .qr-print-actions {
    display: none;
  }

  .qr-print-page {
    background: #fff;
  }

  .guestbook-cover {
    box-shadow: none;
  }

  .guestbook-grid {
    gap: 7mm;
  }

  .guestbook-template-classic .guestbook-grid {
    display: grid;
    height: 209mm;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 101mm);
    align-content: start;
  }

  .guestbook-template-classic .guestbook-print-page:not(.has-cover) .guestbook-grid {
    height: 243mm;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 118mm);
  }

  .guestbook-entry {
    page-break-inside: avoid;
    box-shadow: none;
  }

  .guestbook-template-magazine .guestbook-grid {
    grid-template-columns: 1fr;
  }

  .guestbook-template-magazine .guestbook-entry {
    grid-template-columns: 1.12fr 0.88fr;
  }

  .guestbook-template-magazine .guestbook-entry img {
    min-height: 0;
  }

  .guestbook-template-compact .guestbook-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7mm;
  }

  .qr-print-shell {
    width: 100%;
    padding: 0;
  }

  .qr-print-preview {
    display: block;
    min-height: 100vh;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .qr-print-sheet {
    width: 100%;
    height: 100vh;
    padding: 0;
    aspect-ratio: auto;
    box-shadow: none;
  }

  .qr-print-preview img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    box-shadow: none;
  }
}
