.dopis-hero {
  position: relative;
  display: grid;
  overflow: hidden;
  margin: 16px 0 24px;
  padding: 28px clamp(20px, 8vw, 110px);
  border: 1px solid rgba(226, 205, 176, 0.75);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(9, 29, 52, 0.58), rgba(9, 29, 52, 0.28), rgba(9, 29, 52, 0.58)),
    url('/resources/dopis/bg.jpg') center / cover no-repeat;
  box-shadow: 0 12px 30px rgba(16, 42, 69, 0.2);
  color: #fffaf1;
  text-align: center;
}

.dopis-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 0 20px;
  left: 16%;
}

.dopis-hero h1 {
  margin: 0;
  color: #fff7e6;
  font: 700 clamp(2.1rem, 5vw, 3.5rem)/1.15 'Merienda', 'Lora', serif;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
}

.dopis-hero-copy > p:last-child {
  margin: 8px 0 0;
  color: rgba(255, 250, 241, 0.92);
  font: 600 clamp(0.95rem, 1.8vw, 1.1rem)/1.5  'Lora', serif;
}

.dopis-hero .dopis-hero-eyebrow {
  margin: 0 0 3px;
  color: #f6d58d;
  font: 700 0.72rem/1.4 'Source Sans 3', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dopis-hero-art {
  position: absolute;
  z-index: 0;
  top: 0;
  width: min(31%, 360px);
  height: 111%;
  object-fit: cover;
  opacity: 0.96;
  pointer-events: none;
}

.dopis-hero-art--left {
  left: -17px;
  top: -12px;
  width: min(33%, 412px);
}

.dopis-hero-art--right {
  right: -14px;
  width: min(52%, 619px);
  top: -8px;
}

@media (max-width: 1300px) {
  .dopis-hero-art {
    opacity: 0.30;
  }
}

.dopis-builder {
  --dopis-ink: #17314b;
  --dopis-muted: #687889;
  --dopis-paper: #fff8e9;
  --dopis-border: #e6cfaa;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: clamp(16px, 2.2vw, 28px);
  align-items: start;
  margin: 0 0 48px;
  color: var(--dopis-ink);
  font-family: 'Source Sans 3', sans-serif;
}

.dopis-editor {
  display: grid;
  gap: 14px;
}

.dopis-card,
.dopis-preview {
  min-width: 0;
  border: 1px solid var(--dopis-border);
  border-radius: 15px;
  background: rgba(255, 250, 241, 0.7);
  box-shadow: 0 5px 18px rgba(62, 42, 18, 0.08);
}

.dopis-card {
  padding: 16px;
}

.dopis-card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.dopis-card-heading h2,
.dopis-preview-heading h2 {
  margin: 0;
  color: var(--dopis-ink);
  font: 700 1.08rem/1.35 'Merienda', 'Lora', Georgia, serif;
}

.dopis-step {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  border-radius: 50%;
  background: #ad302a;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.dopis-person {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.dopis-avatar {
  display: block;
  width: 78px;
  height: 96px;
  object-fit: contain;
  object-position: center top;
}

.dopis-person-fields {
  min-width: 0;
}

.dopis-label {
  display: block;
  margin: 0 0 5px;
  color: #27394b;
  font-size: 0.86rem;
  font-weight: 800;
}

.dopis-label span {
  color: #b52e28;
}

.dopis-builder input[type="text"],
.dopis-builder textarea,
.dopis-font-select,
.gift-dialog input[type="text"],
.gift-dialog textarea {
  width: 100%;
  border: 1px solid #d5c3a9;
  border-radius: 8px;
  background: #fffdf8;
  color: var(--dopis-ink);
  font: 500 0.94rem/1.45 'Source Sans 3', sans-serif;
}

.dopis-builder input[type="text"],
.dopis-font-select,
.gift-dialog input[type="text"] {
  min-height: 40px;
  padding: 8px 10px;
  margin-bottom: 12px;
}

.dopis-builder textarea,
.gift-dialog textarea {
  display: block;
  min-height: 84px;
  margin-bottom: 12px;
  padding: 10px;
  resize: vertical;
}

.dopis-builder input:focus-visible,
.dopis-builder textarea:focus-visible,
.dopis-font-select:focus-visible,
.gift-dialog input:focus-visible,
.gift-dialog textarea:focus-visible,
.gift-dialog button:focus-visible,
.dopis-builder button:focus-visible {
  outline: 3px solid rgba(35, 96, 165, 0.48);
  outline-offset: 2px;
}

.dopis-gender {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
}

.dopis-gender legend {
  margin-bottom: 4px;
  padding: 0;
}

.dopis-choice {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #34485b;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
}

.dopis-choice input {
  accent-color: #ad302a;
}

.gift-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gift-list-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  padding: 9px;
  border: 1px solid #e6c99c;
  border-radius: 10px;
  background: rgba(255, 248, 233, 0.9);
}

.gift-list-icon {
  display: block;
  width: 46px;
  height: 46px;
  padding: 2px;
  border-radius: 8px;
  background: #f5e8d1;
  object-fit: contain;
  image-rendering: pixelated;
}

.gift-list-copy {
  min-width: 0;
}

.gift-list-copy strong {
  display: block;
  overflow-wrap: anywhere;
  color: #172f49;
  font: 700 0.96rem/1.3 'Lora', Georgia, serif;
}

.gift-list-copy p {
  margin: 3px 0 0;
  color: #5a6672;
  font-size: 0.79rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.gift-list-stars,
.gift-priority-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.gift-list-stars img,
.gift-priority-stars img {
  display: block;
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.gift-list-actions {
  display: flex;
  justify-self: end;
  gap: 3px;
}

.gift-list-actions button {
  display: grid;
  width: 31px;
  height: 34px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #34485b;
  cursor: pointer;
}

.gift-list-actions button:hover {
  border-color: #e6c99c;
  background: #fffdf8;
}

.gift-list-actions button[data-action="delete"]:hover {
  color: #a62620;
}

.gift-list-actions svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.gift-list-empty {
  margin: 0 0 12px;
  color: var(--dopis-muted);
  font-size: 0.88rem;
}

.gift-add-button {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px dashed #9b9b73;
  border-radius: 8px;
  background: #fff9ec;
  color: #24482f;
  cursor: pointer;
  font: 800 0.9rem 'Source Sans 3', sans-serif;
}

.gift-add-button:hover {
  border-color: #536944;
  background: #f6f1dc;
}

.gift-add-button span {
  font-size: 1.3rem;
  line-height: 0.9;
}

.dopis-card textarea:last-child {
  margin-bottom: 0;
}

.dopis-preview {
  position: sticky;
  top: 18px;
  padding: clamp(15px, 2.3vw, 26px);
}

.dopis-preview-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}

.dopis-preview-heading > p {
  max-width: 310px;
  margin: 0;
  color: var(--dopis-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: right;
}

.dopis-preview-eyebrow {
  margin: 0 0 4px;
  color: #a56b26;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'Nunito', 'Source Sans 3', sans-serif;
}

.letter-stage {
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  padding: clamp(10px, 2vw, 20px);
  border: 1px solid #e5d7c3;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9), transparent 72%),
    #f0e5d3;
}

.letter-pages {
  position: relative;
  display: grid;
  width: 100%;
  justify-items: center;
}

.letter-page {
  position: relative;
  width: min(100%, 620px);
  aspect-ratio: 768 / 1088;
  overflow: hidden;
  isolation: isolate;
  color: #342213;
}

.letter-export-watermark {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 3;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(255, 250, 241, 0.68);
  color: rgba(23, 49, 75, 0.72);
  font: 600 clamp(8px, 1vw, 12px) / 1.2 'Source Sans 3', sans-serif;
  letter-spacing: 0.02em;
  pointer-events: none;
  white-space: nowrap;
}

.letter-page--inactive {
  position: absolute;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.letter-page-background {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.letter-page-content {
  position: absolute;
  top: 26%;
  right: 19%;
  bottom: 28%;
  left: 19%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  container-type: inline-size;
  text-align: center;
}

.letter-page-content.letter-page-content--first {
  top: 22.2%;
  bottom: 25%;
}

.letter-page-content.letter-page-content--other {
  top: 16%;
  bottom: 25%;
}

.letter-greeting {
  flex: 0 0 auto;
  margin: 0 0 1.2cqw;
  color: #a3231e;
  font: italic 700 10cqw/1.16 var(--letter-font, 'Merienda', cursive);
}

.letter-page-content--first .letter-greeting {
  transform: translate(-3%, -0.15em);
}

.letter-flow {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: #32271b;
  font: 600 4.32cqw/1.52 var(--letter-font, 'Merienda', cursive);
  text-align: center;
}

.letter-flow > * {
  flex: 0 0 auto;
}

.letter-flow p {
  margin: 0 0 0.52em;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.letter-flow > p + p {
  margin-top: 7cqw;
}

.letter-flow .letter-delimiter {
  display: block;
  width: auto;
  height: 6.5cqw;
  max-width: 100%;
  margin: 0.1cqw auto;
  object-fit: contain;
}

.letter-gift {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.45em;
  text-align: left;
}

.letter-gift-number {
  font-style: italic;
  font-weight: 700;
}

.letter-gift-title {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.95em;
  font-weight: 700;
  text-align: left;
}

.letter-flow .letter-gift-description {
  margin: 0 0 0.72em 1.4em;
  font-size: 0.75em;
  font-weight: 500;
  text-align: left;
}

.letter-gift-stars {
  display: flex;
  gap: 1px;
  padding-top: 2px;
}

.letter-gift-stars img {
  display: block;
  width: 4cqw;
  height: 4cqw;
  object-fit: contain;
}

.letter-signoff {
  margin-top: 0.35em !important;
  color: #32271b;
  font: 600 4.32cqw/1.52 var(--letter-font, 'Merienda', cursive);
}

.letter-signoff-text {
  display: block;
  transform: translateX(-6%);
}

.letter-signoff--lower {
  position: absolute;
  top: calc(100% + 1cqw);
  right: 10%;
  left: 10%;
  margin: 0 !important;
  text-align: center;
}

.letter-signature {
  display: block;
  margin-top: 0.12em;
  color: #a3231e;
  font: italic 700 8cqw/1.2 var(--letter-font, 'Merienda', cursive);
  overflow-wrap: anywhere;
  transform: translateX(6%);
}

.letter-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 13px 0 16px;
  color: #33475b;
  font-size: 0.9rem;
  font-weight: 800;
}

.letter-page-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d8c6aa;
  border-radius: 50%;
  background: #fffaf1;
  color: #17314b;
  cursor: pointer;
  font: 700 1.6rem/1 'Source Sans 3', sans-serif;
}

.letter-page-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.letter-export {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.letter-export-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.letter-share-button-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.letter-export-button,
.letter-share-button,
.letter-save-button,
.gift-submit-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 19px;
  border: 1px solid #17314b;
  border-radius: 9px;
  background: #17314b;
  color: #fffaf1;
  cursor: pointer;
  font: 800 0.95rem 'Source Sans 3', sans-serif;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.letter-export-button {
  border: 0;
  background: #a42d27;
  box-shadow: 0 4px 11px rgba(40, 30, 20, 0.13);
}

.letter-share-button {
  border: 0;
  background: #003151;
  box-shadow: 0 4px 11px rgba(40, 30, 20, 0.13);
}

.letter-save-button {
  border: 0;
  background: #39704a;
  box-shadow: 0 4px 11px rgba(40, 30, 20, 0.13);
}

.letter-export-button:hover {
  transform: translateY(-1px);
  background: #8d241f;
}

.letter-share-button:hover {
  transform: translateY(-1px);
  background: #174b72;
}

.letter-save-button:hover {
  transform: translateY(-1px);
  background: #2d5a3b;
}

.gift-submit-button:hover {
  transform: translateY(-1px);
  background: #214f76;
}

.letter-export-button:disabled,
.letter-share-button:disabled,
.letter-save-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.letter-export-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.letter-share-tooltip {
  position: relative;
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid #003151;
  border-radius: 50%;
  color: #003151;
  cursor: help;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.letter-share-tooltip:focus-visible {
  outline: 3px solid rgba(35, 96, 165, 0.48);
  outline-offset: 3px;
}

.letter-share-tooltip-text {
  position: absolute;
  z-index: 3;
  right: -8px;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: min(280px, calc(100vw - 32px));
  padding: 8px 10px;
  border-radius: 6px;
  background: #003151;
  color: #fff;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  visibility: hidden;
}

.letter-share-tooltip-text::after {
  position: absolute;
  top: 100%;
  right: 10px;
  border: 5px solid transparent;
  border-top-color: #003151;
  content: '';
}

.letter-share-tooltip:hover .letter-share-tooltip-text,
.letter-share-tooltip:focus .letter-share-tooltip-text {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.letter-status {
  min-height: 0;
  margin: 0;
  color: #44576a;
  font-size: 0.88rem;
  text-align: center;
}

.letter-status--warning {
  width: min(100%, 520px);
  padding: 8px 12px;
  border: 1px solid #e8ad66;
  border-radius: 8px;
  background: #fff2d6;
  color: #74341c;
  font-weight: 700;
}

.letter-status--warning::before {
  content: "⚠ ";
  color: #a03b1f;
}

.letter-saved-link {
  display: grid;
  justify-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 11px 14px;
  border: 1px solid #c8d6bf;
  border-radius: 9px;
  background: #f5f8ee;
  color: #334c32;
  font-size: 0.86rem;
  text-align: center;
}

.letter-saved-link[hidden] {
  display: none;
}

.letter-saved-link a {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #174b72;
  font-weight: 700;
}

.letter-copy-button {
  padding: 5px 10px;
  border: 1px solid #b7c8ac;
  border-radius: 6px;
  background: #fff;
  color: #334c32;
  cursor: pointer;
  font: 700 0.8rem 'Source Sans 3', sans-serif;
}

.gift-dialog {
  width: min(460px, calc(100% - 28px));
  max-width: none;
  max-height: min(720px, calc(100% - 28px));
  overflow: auto;
  margin: auto;
  padding: 0;
  border: 1px solid #e2c89f;
  border-radius: 16px;
  background: #fff8e9;
  color: var(--dopis-ink, #17314b);
  box-shadow: 0 20px 70px rgba(3, 17, 38, 0.34);
}

.gift-dialog::backdrop {
  background: rgba(14, 42, 71, 0.66);
  backdrop-filter: blur(3px);
}

.gift-dialog-panel {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 28px clamp(20px, 5vw, 34px) 25px;
}

.gift-dialog-close {
  position: absolute;
  top: 9px;
  right: 11px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 49, 75, 0.08);
  color: #17314b;
  cursor: pointer;
  font: 400 1.7rem/1 'Source Sans 3', sans-serif;
}

.gift-dialog-eyebrow {
  margin: 0;
  color: #a56b26;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.gift-dialog h2 {
  margin: 0 0 10px;
  color: #17314b;
  font: 700 1.45rem/1.3 'Merienda', 'Lora', Georgia, serif;
  text-align: center;
}

.gift-dialog-panel > textarea {
  margin-bottom: 5px;
}

.gift-priority {
  margin: 5px 0 12px;
  padding: 0;
  border: 0;
}

.gift-priority legend {
  padding: 0;
}

.gift-priority-stars {
  gap: 7px;
}

.gift-priority-stars button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.gift-priority-stars button[aria-pressed="true"] {
  border-color: #e6c99c;
  background: #fff2d6;
}

.gift-priority-stars img {
  width: 23px;
  height: 23px;
}

.gift-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.gift-cancel-button {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid #d7c6ad;
  border-radius: 8px;
  background: #fffdf8;
  color: #34485b;
  cursor: pointer;
  font: 700 0.9rem 'Source Sans 3', sans-serif;
}

.gift-submit-button {
  min-height: 42px;
  padding: 8px 14px;
}

@media (max-width: 860px) {
  .dopis-builder {
    grid-template-columns: minmax(0, 1fr);
  }

  .dopis-editor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .dopis-card:last-child {
    grid-column: 1 / -1;
  }

  .dopis-preview {
    position: static;
  }
}

@media (max-width: 600px) {
  .dopis-hero {
    min-height: 190px;
    margin-top: 10px;
    padding: 26px 12px;
  }

  .dopis-hero-art {
    top: 50%;
    width: 52%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    transform: translateY(-50%);
    opacity: 0.30;
  }

  .dopis-hero-art--left {
    left: 0;
  }

  .dopis-hero-art--right {
    right: 0;
  }

  .dopis-hero-copy {
    left: 0;
    padding: 0 24px;
    text-align: center;
  }

  .dopis-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .dopis-builder {
    gap: 14px;
  }

  .dopis-editor {
    grid-template-columns: minmax(0, 1fr);
  }

  .dopis-card:last-child {
    grid-column: auto;
  }

  .dopis-card {
    padding: 13px;
  }

  .dopis-preview {
    padding: 13px;
  }

  .dopis-preview-heading {
    align-items: start;
  }

  .dopis-preview-heading > p {
    max-width: 155px;
    font-size: 0.78rem;
  }

  .letter-page-content {
    top: 26%;
    right: 18%;
    bottom: 28%;
    left: 18%;
  }

  .letter-gift-stars img {
    width: 4cqw;
    height: 4cqw;
  }

  .gift-list-item {
    grid-template-columns: 40px minmax(0, 1fr) auto auto;
    gap: 7px;
    padding: 7px;
  }

  .gift-list-icon {
    width: 38px;
    height: 42px;
    font-size: 1.4rem;
  }

  .gift-list-actions button {
    width: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .letter-export-button,
  .letter-share-button,
  .letter-share-tooltip-text,
  .gift-submit-button {
    transition: none;
  }
}

.letter-shared-page {
  display: grid;
  gap: 20px;
  width: min(100%, 900px);
  margin: 20px auto 48px;
}

.letter-shared-header {
  text-align: center;
}

.letter-shared-header h1 {
  margin: 0;
  color: #17314b;
  font: 700 clamp(1.8rem, 4vw, 2.6rem)/1.2 'Merienda', 'Lora', Georgia, serif;
}

.letter-shared-description {
  margin: 8px 0 0;
  color: #687889;
  font: 600 1rem/1.5 'Source Sans 3', sans-serif;
}

.letter-shared-viewer .letter-pages {
  gap: 24px;
}

.letter-shared-viewer .letter-page {
  border-radius: 4px;
}

.letter-view-status,
.letter-shared-error {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 14px 18px;
  border: 1px solid #e8ad66;
  border-radius: 10px;
  background: #fff2d6;
  color: #74341c;
  font: 700 0.95rem/1.5 'Source Sans 3', sans-serif;
  text-align: center;
}

.letter-view-status[hidden] {
  display: none;
}

body.letter-preview-mode {
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: transparent !important;
}

body.letter-preview-mode > .app-bar,
body.letter-preview-mode > .site-footer,
body.letter-preview-mode > .bottom-nav,
body.letter-preview-mode > [data-user-favorite-dialog],
body.letter-preview-mode > [data-user-account-feedback] {
  display: none !important;
}

body.letter-preview-mode .main-content,
body.letter-preview-mode .letter-shared-page,
body.letter-preview-mode .letter-shared-viewer,
body.letter-preview-mode .letter-pages {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body.letter-preview-mode .letter-shared-page {
  display: block;
}

body.letter-preview-mode .letter-shared-viewer {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.letter-preview-mode .letter-pages {
  justify-items: start;
  gap: 0;
}

body.letter-preview-mode .letter-page {
  width: 100%;
  max-width: none;
  border-radius: 0;
}

body.letter-preview-mode .letter-view-status {
  display: none !important;
}