.mobile-view-switch,
.mobile-tools-toggle,
.mobile-menu-links,
.mobile-preview-actions,
.dialog-mobile-tabs {
  display: none;
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 430px minmax(520px, 1fr);
  }

  .editor-panel {
    padding-left: 24px;
    padding-right: 24px;
  }

  .editor-meta {
    left: 24px;
    right: 24px;
  }

  .zoom-controls input[type="range"] {
    width: 64px;
  }

}

@media (max-width: 980px) {
  .topbar {
    position: relative;
  }

  .workspace {
    display: block;
    height: calc(100vh - 72px);
  }

  .editor-panel {
    border-right: 0;
    height: 100%;
    margin: 0;
    max-width: none;
    overflow: hidden;
  }

  .preview-panel {
    display: none;
    height: 100%;
  }

  .show-mobile-preview .editor-panel {
    display: none;
  }

  .show-mobile-preview .preview-panel {
    display: flex;
  }

  .button-mobile-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: inline-flex;
  }

  .form-scroll-region {
    -ms-overflow-style: none;
    padding-right: 0;
    scrollbar-gutter: auto;
    scrollbar-width: none;
    width: 100%;
  }

  .form-scroll-region::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
  }
}

@media (max-width: 620px) {
  .topbar {
    height: 64px;
    padding: 0 10px;
  }

  .brand-lockup strong {
    display: none;
  }

  .top-actions {
    gap: 6px;
  }

  .top-actions .button {
    font-size: 10px;
    gap: 6px;
    height: 38px;
    min-height: 38px;
    padding: 0 10px;
  }

  .top-actions .top-nav-button {
    padding: 0;
    width: 38px;
  }

  .top-nav-label {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .top-actions .button-primary {
    min-height: 38px;
    padding: 0 10px;
  }

  .editor-panel {
    padding: 20px 18px 92px;
  }

  .editor-meta {
    left: 18px;
    right: 18px;
  }

  .section-nav button {
    font-size: 0;
  }

  .section-nav button span {
    font-size: 9px;
  }

  .marks-toggle {
    justify-content: center;
  }

  .option-card:not(.signature-option) {
    align-items: stretch;
    flex-direction: column;
  }

  .option-card > .marks-toggle,
  .option-card > .button-compact {
    align-self: flex-start;
    flex: 0 0 auto;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .local-data-option {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-option-heading,
  .footer-scope-setting {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-option-heading .marks-toggle {
    align-self: flex-start;
    flex: 0 0 auto;
    width: var(--action-button-width);
  }

  .footer-scope-toggle {
    align-self: flex-start;
  }

  .footer-field-grid {
    grid-template-columns: 1fr;
  }

  .footer-field-heading {
    grid-template-columns: 24px max-content max-content minmax(0, 1fr);
  }

  .security-actions {
    justify-content: flex-start;
  }

  .preview-toolbar {
    padding: 0 4px;
  }

  .preview-actions {
    align-items: stretch;
    gap: 7px;
  }

  .preview-mode-toggle button {
    padding: 0 8px;
  }

  .envelope-stage {
    padding-left: 2px;
    padding-right: 2px;
  }

  .envelope-window {
    border-radius: 5px;
  }

  .management-dialog,
  .security-dialog,
  .confirmation-dialog {
    border-radius: 12px;
    max-height: calc(100vh - 16px);
    width: calc(100vw - 16px);
  }

  .dialog-heading {
    padding: 20px 18px 16px;
  }

  .dialog-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 14px 18px 10px;
  }

  .draft-list {
    margin-right: 0;
    max-height: 210px;
    padding-right: 6px;
  }

  .drafts-layout {
    display: block;
    height: auto;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .drafts-list-panel {
    border-bottom: 1px solid #e0e6ea;
    border-right: 0;
    overflow: visible;
  }

  .draft-preview-panel {
    min-height: 500px;
  }

  .draft-preview-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .draft-card-actions {
    justify-content: flex-start;
  }

  .address-layout {
    display: block;
    height: auto;
    max-height: calc(100vh - 120px);
    min-height: 0;
    overflow-y: auto;
  }

  .address-list-panel {
    border-bottom: 1px solid #e0e6ea;
    border-right: 0;
    overflow: visible;
  }

  .address-list {
    margin-right: 0;
    max-height: 190px;
    padding-right: 6px;
  }

  .address-form {
    max-height: none;
    overflow: visible;
    padding: 18px;
  }

  .address-form-actions,
  .security-dialog-actions,
  .confirmation-dialog-actions {
    flex-direction: column-reverse;
  }

  .address-form-actions .button,
  .security-dialog-actions .button,
  .confirmation-dialog-actions .button {
    width: 100%;
  }

  .security-dialog form {
    padding: 24px 20px;
  }

  .confirmation-dialog form {
    padding: 0;
  }

  .confirmation-content {
    gap: 12px;
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 22px 20px;
  }

  .confirmation-symbol {
    height: 36px;
    width: 36px;
  }

  .confirmation-dialog-actions {
    padding: 14px 20px;
  }

  .dropzone-copy {
    display: none;
  }

  .preflight-dialog {
    padding: 20px;
  }

  .preflight-actions {
    flex-direction: column-reverse;
  }

  .preflight-actions .button {
    width: 100%;
  }

  .preview-panel {
    padding: 20px 10px 28px;
  }

  .toast {
    bottom: 16px;
    left: 16px;
    max-width: none;
    right: 16px;
    transform: none;
    width: auto;
  }

  @keyframes toast-enter {
    from {
      opacity: 0;
      transform: translateY(8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .preview-toolbar {
    padding: 0 8px;
  }

  .preview-actions {
    flex: 1;
    justify-content: center;
  }

  .zoom-controls .zoom-fit {
    display: none;
  }

  .zoom-controls input[type="range"] {
    display: none;
  }

  .preview-actions > .button {
    padding-left: 11px;
    padding-right: 11px;
  }

}

@media (max-height: 760px) {
  .topbar {
    height: 60px;
  }

  .workspace,
  .preview-panel {
    height: calc(100vh - 60px);
  }

  .editor-panel {
    padding-bottom: 84px;
    padding-top: 16px;
  }

  .editor-meta {
    bottom: 8px;
  }

  .editor-heading {
    margin-bottom: 12px;
  }

  .editor-heading h1 {
    font-size: 22px;
  }

  .section-nav {
    margin-bottom: 14px;
  }

  .form-section {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .attachment-file-list {
    max-height: 170px;
  }

  .section-title {
    margin-bottom: 11px;
  }

  .field-grid {
    gap: 9px 10px;
  }

  .field input {
    height: 36px;
    padding-bottom: 7px;
    padding-top: 7px;
  }

  .field textarea {
    max-height: 160px;
    padding-bottom: 7px;
    padding-top: 7px;
  }

  .attachments-rich-text-field {
    height: 72px;
  }

  .attachments-rich-text-editor {
    padding-bottom: 7px;
    padding-top: 7px;
  }

  .preview-panel {
    padding-bottom: 16px;
    padding-top: 14px;
  }

  .preview-toolbar {
    margin-bottom: 10px;
  }
}

@media (max-width: 820px) {
  .settings-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  html,
  body,
  .app-shell {
    height: 100dvh;
  }

  .topbar {
    height: 60px;
    padding: 0 12px;
  }

  .brand-lockup {
    flex: 0 0 auto;
  }

  .brand-mark {
    transform: scale(0.9);
    transform-origin: left center;
  }

  .mobile-view-switch {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 40px;
    margin-left: auto;
    overflow: hidden;
    padding: 3px;
    width: 174px;
  }

  .mobile-view-switch button {
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 700;
    height: 32px;
    padding: 0 8px;
  }

  .mobile-view-switch button.active {
    background: white;
    box-shadow: 0 2px 8px rgba(3, 19, 31, 0.18);
    color: var(--navy);
  }

  .mobile-view-switch button:focus-visible,
  .mobile-tools-toggle:focus-visible {
    outline: 2px solid #43d6c9;
    outline-offset: 2px;
  }

  .mobile-tools-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    color: white;
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
    margin-left: 8px;
    padding: 0;
  }

  .mobile-tools-toggle > span,
  .mobile-tools-toggle > span::before,
  .mobile-tools-toggle > span::after {
    background: currentColor;
    border-radius: 999px;
    content: "";
    display: block;
    height: 2px;
    width: 16px;
  }

  .mobile-tools-toggle > span {
    position: relative;
    transition: background-color 150ms ease;
  }

  .mobile-tools-toggle > span::before,
  .mobile-tools-toggle > span::after {
    left: 0;
    position: absolute;
    transition: top 150ms ease, transform 150ms ease;
  }

  .mobile-tools-toggle > span::before {
    top: -5px;
  }

  .mobile-tools-toggle > span::after {
    top: 5px;
  }

  .mobile-tools-toggle[aria-expanded="true"] > span {
    background: transparent;
  }

  .mobile-tools-toggle[aria-expanded="true"] > span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .mobile-tools-toggle[aria-expanded="true"] > span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .top-actions {
    background: white;
    border: 1px solid #d9e2e7;
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(7, 28, 44, 0.25);
    display: none;
    gap: 7px;
    padding: 10px;
    position: absolute;
    right: 12px;
    top: calc(100% + 8px);
    width: 232px;
    z-index: 40;
  }

  .topbar.mobile-menu-open .top-actions {
    display: grid;
  }

  .top-actions .button-mobile-toggle {
    display: none;
  }

  .top-actions > [data-print="print"] {
    display: none;
  }

  .top-actions .button,
  .top-actions .top-nav-button,
  .top-actions .button-primary {
    border: 1px solid #d9e2e7;
    border-radius: 9px;
    color: var(--navy);
    font-size: 13px;
    height: 44px;
    justify-content: flex-start;
    min-height: 44px;
    padding: 0 13px;
    width: 100%;
  }

  .top-actions .top-nav-button {
    background: #f4f7f8;
  }

  .top-actions .button-primary {
    background: var(--teal-action);
    border-color: var(--teal-action);
    color: white;
  }

  .top-actions .top-nav-label {
    clip: auto;
    clip-path: none;
    height: auto;
    overflow: visible;
    position: static;
    white-space: normal;
    width: auto;
  }

  .mobile-menu-links {
    border-top: 1px solid #e1e7eb;
    display: flex;
    gap: 16px;
    margin-top: 3px;
    padding: 11px 4px 2px;
  }

  .mobile-menu-links a {
    color: #607181;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
  }

  .workspace,
  .preview-panel {
    height: calc(100dvh - 60px);
  }

  .editor-panel {
    padding: 15px 16px 0;
  }

  .editor-heading {
    margin-bottom: 12px;
  }

  .eyebrow {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .editor-heading h1 {
    font-size: 24px;
  }

  .section-nav {
    margin-bottom: 15px;
  }

  .section-nav button {
    min-height: 40px;
    padding: 0 0 9px;
  }

  .section-nav button::after {
    left: 4px;
    right: 4px;
  }

  .section-nav button span {
    font-size: 10px;
    height: 24px;
    width: 24px;
  }

  .form-scroll-region {
    padding: 0 0 22px;
  }

  .form-section,
  .options-list,
  .option-card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .form-section {
    border-bottom: 0;
    margin: 0;
    padding-bottom: 24px;
  }

  .section-title {
    gap: 0;
    margin-bottom: 16px;
  }

  .section-title > span {
    display: none;
  }

  .section-title h2 {
    font-size: 17px;
    margin-bottom: 3px;
  }

  .section-title p {
    font-size: 11px;
    line-height: 1.4;
  }

  .field-grid {
    gap: 14px;
  }

  .field {
    gap: 7px;
  }

  .field > span {
    font-size: 12px;
  }

  .field input,
  .field textarea,
  .rich-text-editor {
    font-size: 16px;
  }

  .field input {
    height: 48px;
    padding: 11px 12px;
  }

  .field textarea {
    max-height: none;
    min-height: 96px;
    padding: 11px 12px;
    resize: none;
  }

  .date-control {
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) 68px;
  }

  .date-control button {
    min-height: 48px;
  }

  .date-control .date-picker-button {
    height: 40px;
    top: 4px;
    width: 40px;
  }

  .rich-text-toolbar {
    gap: 5px;
    padding: 7px;
  }

  .rich-text-toolbar button {
    height: 36px;
    min-width: 36px;
  }

  .rich-text-editor {
    line-height: 1.55;
    max-height: none;
    min-height: 230px;
    overflow-y: visible;
    padding: 12px;
  }

  .attachments-rich-text-field {
    height: 100px;
  }

  .attachments-rich-text-editor {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
  }

  .attachments-rich-text-toolbar {
    gap: 2px;
    height: 30px;
    padding: 0;
  }

  .attachments-rich-text-toolbar button {
    height: 30px;
  }

  .option-card {
    gap: 12px;
    padding: 15px;
  }

  .option-card-copy strong {
    font-size: 14px;
  }

  .option-card-copy small {
    font-size: 12px;
    line-height: 1.45;
  }

  .marks-toggle,
  .button-compact,
  .signature-file-button,
  .signature-picker input[type="file"]::file-selector-button,
  .signature-remove {
    height: 44px;
    min-height: 44px;
  }

  .signature-picker:not(.attachment-picker) {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .signature-picker:not(.attachment-picker) .signature-file-status {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .signature-picker:not(.attachment-picker) .signature-file-button {
    grid-column: 1;
    grid-row: 2;
  }

  .signature-picker:not(.attachment-picker) .signature-remove {
    grid-column: 2;
    grid-row: 2;
  }

  .attachment-picker {
    min-height: 48px;
  }

  .mobile-actions,
  .mobile-preview-actions {
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #dce4e9;
    box-shadow: 0 -10px 28px rgba(16, 42, 67, 0.08);
    display: grid;
    flex: 0 0 auto;
    gap: 10px;
    grid-template-columns: 1fr 1.08fr;
    margin: 0 -16px;
    padding: 11px 16px max(11px, env(safe-area-inset-bottom));
    position: relative;
    z-index: 5;
  }

  .mobile-actions .button,
  .mobile-preview-actions .button {
    font-size: 13px;
    height: 46px;
    min-height: 46px;
  }

  .editor-meta {
    display: none;
  }

  .preview-panel {
    padding: 14px 10px 0;
    position: relative;
  }

  .preview-toolbar {
    margin: 0 auto 12px;
    padding: 0;
  }

  .preview-actions,
  .zoom-controls {
    width: 100%;
  }

  .zoom-controls {
    border-radius: 12px;
    height: 44px;
  }

  .preview-mode-toggle {
    flex: 1 1 auto;
  }

  .zoom-controls .preview-mode-toggle button {
    flex: 1 1 50%;
    min-width: 0;
  }

  .zoom-controls button {
    min-width: 44px;
  }

  .zoom-controls .zoom-value {
    min-width: 58px;
  }

  .paper-stage {
    padding: 0 2px 12px;
  }

  .mobile-preview-actions {
    margin: 0 -10px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .envelope-stage {
    justify-content: flex-start;
    padding: 36px 2px calc(16px + var(--envelope-vertical-balance-space));
  }

  .management-dialog {
    border-radius: 0;
    height: 100vh;
    height: 100dvh;
    inset: 0;
    margin: 0;
    max-height: none;
    max-width: none;
    width: 100vw;
  }

  .drafts-dialog[open] {
    grid-template-rows: max-content max-content minmax(0, 1fr);
  }

  .address-dialog[open] {
    grid-template-rows: max-content minmax(0, 1fr);
  }

  .settings-dialog[open] {
    grid-template-rows: max-content minmax(0, 1fr);
  }

  .settings-dialog-body {
    padding: 0;
  }

  .settings-dialog-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: max-content minmax(0, 1fr);
  }

  .settings-navigation {
    border-bottom: 1px solid #dfe6ea;
    border-right: 0;
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 8px 10px;
  }

  .settings-navigation-label,
  .settings-navigation-note,
  .settings-navigation-icon,
  .settings-navigation small {
    display: none;
  }

  .settings-navigation > button {
    display: flex;
    justify-content: center;
    min-height: 44px;
    padding: 7px 6px;
    text-align: center;
  }

  .settings-navigation strong {
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
  }

  .settings-tab-label-desktop {
    display: none;
  }

  .settings-tab-label-mobile {
    display: inline;
  }

  .settings-content {
    padding: 20px 14px max(22px, env(safe-area-inset-bottom));
  }

  .settings-panel-heading {
    margin-bottom: 15px;
    padding-bottom: 14px;
  }

  .settings-panel-heading h3 {
    font-size: 19px;
  }

  .settings-panel-heading span {
    font-size: 12px;
  }

  .settings-dialog .option-card {
    min-height: 0;
    padding: 16px;
  }

  .dialog-heading {
    align-items: center;
    padding: 17px 18px 15px;
  }

  .dialog-heading h2 {
    font-size: 22px;
  }

  .dialog-heading p:not(.dialog-eyebrow) {
    font-size: 12px;
    max-width: 245px;
  }

  .dialog-close {
    flex: 0 0 44px;
    height: 44px;
    width: 44px;
  }

  .dialog-mobile-tabs {
    background: white;
    border-bottom: 1px solid #dfe6ea;
    display: grid;
    gap: 4px;
    grid-template-columns: 1fr 1fr;
    padding: 9px 14px;
  }

  .dialog-mobile-tabs button {
    background: #f1f5f6;
    border: 0;
    border-radius: 8px;
    color: #607181;
    font-size: 12px;
    font-weight: 700;
    height: 40px;
  }

  .dialog-mobile-tabs button.active {
    background: var(--navy);
    color: white;
  }

  .drafts-layout {
    display: block;
    height: 100%;
    max-height: none;
    overflow: hidden;
  }

  .drafts-layout[data-mobile-view="list"] .draft-preview-panel,
  .drafts-layout[data-mobile-view="preview"] .drafts-list-panel {
    display: none;
  }

  .drafts-list-panel {
    border: 0;
    height: 100%;
    overflow: hidden;
    padding: 14px;
  }

  .draft-list {
    margin-right: -6px;
    max-height: none;
    padding-right: 6px;
  }

  .draft-card {
    padding: 14px;
  }

  .draft-name-input,
  .dialog-search input,
  .address-form input {
    font-size: 16px;
  }

  .draft-card-meta {
    font-size: 11px;
  }

  .draft-card-actions {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .draft-card-actions button {
    height: 40px;
    min-height: 40px;
    width: auto;
  }

  .draft-preview-panel {
    display: grid;
    height: 100%;
    min-height: 0;
  }

  .draft-preview-heading {
    align-items: center;
    display: grid;
    flex-direction: initial;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 78px;
    padding: 12px 16px;
  }

  .draft-preview-heading .button {
    min-width: 112px;
  }

  .draft-preview-stage {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .draft-preview-surface {
    min-width: 0;
    padding: 16px;
    width: 100%;
  }

  .draft-preview-page-frame {
    --draft-preview-scale: 0.3602015113;
    aspect-ratio: 210 / 297;
    height: auto;
    max-width: 100%;
    width: 286px;
  }

  .draft-preview-paper {
    transform: scale(var(--draft-preview-scale));
  }

  .address-layout {
    height: 100%;
    max-height: none;
    overflow-y: auto;
  }

  .address-list {
    max-height: 230px;
  }

  .address-form {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
}

.print-pages {
  display: none;
}

@page {
  margin: 0;
  size: A4 portrait;
}

@media print {
  html,
  body {
    background: white !important;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .topbar,
  .editor-panel,
  .envelope-stage,
  .preview-mode-toggle,
  .preview-toolbar,
  .toast,
  .modal-backdrop,
  .page-break-guides {
    display: none !important;
  }

  body.print-deck-ready > .app-shell {
    display: none !important;
  }

  body.print-deck-ready > .print-pages {
    display: block !important;
  }

  .print-page {
    background: white;
    break-after: page;
    break-inside: avoid;
    height: 297mm;
    overflow: hidden;
    page-break-after: always;
    page-break-inside: avoid;
    position: relative;
    print-color-adjust: exact;
    width: 210mm;
  }

  .print-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .print-page-viewport {
    height: 297mm;
    inset: 0;
    overflow: hidden;
    position: absolute;
    width: 210mm;
  }

  .print-page-offset {
    left: 0;
    position: absolute;
    top: 0;
    width: 210mm;
  }

  .print-letter-paper {
    box-shadow: none !important;
    margin: 0 !important;
    transform: none !important;
  }

  .print-attachment-page {
    box-shadow: none !important;
    height: 297mm !important;
    inset: 0 !important;
    position: absolute !important;
    width: 210mm !important;
  }

  .print-page-number {
    background: white !important;
    bottom: 15.8mm;
    color: #000 !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9pt;
    font-weight: 400;
    line-height: 1;
    padding-left: 2mm;
    position: absolute;
    right: 20mm;
    text-align: right;
    white-space: nowrap;
    z-index: 10;
  }

  .workspace,
  .preview-panel,
  .paper-stage {
    background: white !important;
    display: block;
    margin: 0;
    min-height: 0;
    overflow: visible;
    padding: 0;
  }

  .preview-panel.is-envelope-mode .paper-stage {
    display: block !important;
  }

  .paper {
    box-shadow: none;
    margin: 0;
    min-height: 297mm;
    padding: 15mm 20mm 12mm 25mm;
    print-color-adjust: exact;
    width: 210mm;
    transform: none !important;
  }

  .paper-scale {
    height: auto !important;
    width: auto !important;
  }

  .attachment-preview-page {
    box-shadow: none;
    height: 297mm;
    padding: 0;
    width: 210mm;
  }

  .attachment-preview-remove,
  .preview-mark-hotspot,
  .signature-context-toolbar,
  .signature-resize-handle {
    display: none !important;
  }

  .preview-edit-target,
  .preview-edit-target:hover,
  .preview-edit-target:focus-visible {
    background: transparent !important;
    cursor: default !important;
    outline: none !important;
  }

  .signature-image-block.is-selected {
    outline: none;
  }

  .pdf-page-canvas {
    box-shadow: none;
    opacity: 1;
  }

  .page-numbers {
    inset: 0 !important;
    overflow: visible !important;
    position: absolute !important;
  }

  .page-number {
    background: white !important;
    color: #000 !important;
    right: 20mm !important;
  }

  .address-contact-grid {
    height: 45mm;
    margin-top: 16.4mm;
    min-height: 45mm;
  }

  .letter-content {
    margin-top: 8.46mm;
  }

  .print-marks .fold-one {
    top: 105mm;
  }

  .print-marks i,
  .print-marks .punch {
    background: #000 !important;
    height: 0.25mm !important;
    opacity: 1 !important;
    print-color-adjust: exact;
  }

  .print-marks .punch {
    top: 148.5mm;
  }

  .print-marks .fold-two {
    top: 210mm;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
