/* Mobile readability and reflow overrides; desktop styles stay in their original files. */

/* Readable mobile type. Layouts wrap before text is reduced in size. */
@media (max-width: 780px) {
  html {
    scroll-padding-top: 130px;
  }

  body {
    font-size: 16px;
    line-height: 1.65;
  }

  .preview-ribbon {
    flex-wrap: wrap;
    padding: 8px 16px;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .header-inner {
    height: auto;
    min-height: 76px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .site-header nav {
    min-width: 0;
    flex-wrap: wrap;
  }

  .header-tag {
    display: none;
  }

  .site-header nav a {
    min-height: 44px;
    font-size: 14px;
    line-height: 1.5;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav-current > span,
  .brand-fallback > span,
  .eyebrow,
  .hero .eyebrow,
  .hero-bottom,
  .benefit-copy .eyebrow,
  .directory-stats > div > span,
  .directory-stats > p,
  .category-chip > small,
  .result-count,
  .card-ordinal,
  .card-category,
  .card-visual-kind,
  .card-source-state,
  .card-benefit,
  .card-offer > span,
  .initial-visual .initial-caption {
    font-size: 12px;
    line-height: 1.6;
  }

  .eyebrow,
  .hero .eyebrow,
  .section-heading .eyebrow,
  .sources-section .eyebrow {
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
  }

  .hero-copy,
  .section-heading > div,
  .benefit-copy,
  .card-body,
  .card-heading-row,
  .detail-info,
  .branch-card {
    min-width: 0;
  }

  .hero-description {
    font-size: 16px;
    line-height: 1.8;
  }

  .hero-actions,
  .hero-bottom,
  .section-heading,
  .filter-line,
  .card-bottom,
  .detail-kicker,
  .details-checked,
  .branch-heading {
    flex-wrap: wrap;
  }

  .button,
  .hero-source,
  .text-action,
  .saved-filter,
  .category-chip,
  .card-detail-link {
    min-height: 44px;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .button {
    padding: 12px 16px;
    min-height: 48px;
  }

  .hero-actions .button,
  .empty-state .button,
  .sources-section > .button {
    min-height: 48px;
    font-size: 15px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero-source,
  .text-action,
  .card-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .hero-bottom {
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .benefit-copy h2 {
    font-size: 20px;
    line-height: 1.5;
  }

  .benefit-copy p,
  .benefit-note > span,
  .benefit-note p,
  .section-description,
  .card-summary,
  .card-location,
  .card-offer > p,
  .sources-section p,
  .footer-inner > p,
  .loading-state p,
  .empty-state p {
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
  }

  .section-heading {
    align-items: flex-start;
    gap: 16px;
  }

  .section-heading h2,
  .sources-section h2 {
    font-size: 26px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .directory-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
  }

  .directory-stats > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  .directory-stats strong {
    font-size: 24px;
  }

  .directory-stats > p {
    grid-column: 1 / -1;
    max-width: none;
  }

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

  .search-field {
    grid-column: 1 / -1;
    min-width: 0;
    min-height: 48px;
    height: auto;
    padding: 10px 12px;
  }

  .search-field input,
  .status-filter select {
    font-size: 16px;
    line-height: 1.5;
    min-width: 0;
    max-width: 100%;
  }

  .search-field input {
    width: 100%;
    min-height: 28px;
  }

  .search-field kbd {
    display: none;
  }

  .status-filter,
  .saved-filter {
    min-width: 0;
    min-height: 48px;
    width: 100%;
  }

  .status-filter select {
    min-height: 48px;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 28px;
  }

  .filter-line {
    align-items: flex-start;
    gap: 12px;
  }

  .category-filters {
    gap: 6px;
    min-width: 0;
  }

  .category-chip {
    padding: 10px 12px;
  }

  .result-count {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .partner-grid {
    gap: 20px;
  }

  .card-body {
    padding: 16px 16px 0;
  }

  .card-title-button {
    min-height: 44px;
    font-size: 20px;
    line-height: 1.45;
    letter-spacing: -0.3px;
  }

  .card-summary,
  .card-location > span,
  .card-offer > p {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    overflow-wrap: anywhere;
  }

  .card-summary,
  .card-location,
  .card-location.missing,
  .card-offer {
    min-height: 0;
  }

  .card-location svg {
    width: 16px;
    height: 16px;
    margin-top: 4px;
  }

  .card-offer {
    padding: 12px;
    margin-top: 14px;
  }

  .card-bottom {
    gap: 8px 16px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .card-source-state,
  .card-source-state.is-pending,
  .card-location.missing,
  .card-ordinal,
  .detail-specs .missing {
    color: #bca38d;
  }

  .save-button,
  .gallery-step,
  .close-detail {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .save-button svg {
    width: 20px;
    height: 20px;
  }

  .card-category,
  .card-visual-kind {
    padding: 5px 8px;
    max-width: calc(100% - 74px);
    overflow-wrap: anywhere;
  }

  .sources-section {
    gap: 20px;
  }

  .updated-at,
  .footer-brand small,
  .footer-inner > a {
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 20px;
  }

  #detail-dialog {
    width: calc(100% - 16px);
    max-width: 680px;
    max-height: calc(100dvh - 16px);
  }

  .dialog-top {
    min-height: 64px;
    padding: 10px 16px;
    gap: 12px;
  }

  .dialog-top > span {
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  #detail-content {
    min-height: 0;
  }

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

  .detail-poster {
    padding: 16px;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-info {
    padding: 20px 16px;
  }

  .detail-info h2 {
    font-size: 26px;
    line-height: 1.4;
  }

  .detail-summary,
  .detail-specs dd,
  .branch-specs dd,
  .detail-specs dd > a,
  .branch-specs dd > a {
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
  }

  .detail-category,
  .detail-source-label,
  .details-checked,
  .details-note,
  .branch-note,
  .detail-notice,
  .detail-specs dt,
  .branch-specs dt {
    font-size: 12px;
    line-height: 1.75;
    color: #bca38d;
    overflow-wrap: anywhere;
  }

  .detail-specs > div,
  .branch-specs > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .detail-specs dt,
  .branch-specs dt,
  .detail-specs dd,
  .branch-specs dd {
    width: 100%;
    min-width: 0;
  }

  .field-sources a {
    font-size: 12px !important;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 6px 4px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .detail-actions .button {
    min-height: 48px;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
  }

  .detail-benefit .eyebrow,
  .detail-benefit p,
  .detail-sources small {
    font-size: 12px;
    line-height: 1.75;
    overflow-wrap: anywhere;
    color: #c7ab92;
  }

  .detail-benefit h3,
  .detail-partner-benefit h3 {
    font-size: 16px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  .detail-sources h3,
  .detail-branches > h3,
  .gallery-heading h3 {
    font-size: 16px;
    line-height: 1.6;
  }

  .detail-sources a {
    font-size: 14px;
    min-height: 44px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .detail-sources a > span:first-child {
    min-width: 0;
  }

  .branch-heading {
    align-items: flex-start;
    gap: 10px;
  }

  .branch-heading h4 {
    font-size: 17px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .branch-map-links {
    flex-wrap: wrap;
    gap: 8px 14px;
    min-width: 0;
  }

  .branch-map-links > a {
    min-height: 44px;
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
    display: inline-flex;
    align-items: center;
  }

  .gallery-heading {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .gallery-heading > span,
  .gallery-branch,
  .gallery-context,
  .gallery-help,
  .gallery-pending,
  .photo-credit,
  .photo-credit p,
  .photo-credit small,
  .affiliate-poster p,
  .affiliate-poster .affiliate-poster-source {
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  .gallery-help,
  .gallery-context,
  .photo-credit p,
  .photo-credit small,
  .affiliate-poster p {
    color: #bca38d;
  }

  .gallery-counter {
    font-size: 14px;
    line-height: 1.5;
  }

  .gallery-image-error {
    font-size: 14px;
    line-height: 1.7;
  }

  .detail-no-poster > span:last-child,
  .detail-poster .poster-caption {
    font-size: 12px;
    line-height: 1.7;
  }

  .gallery-thumbnail {
    display: flex;
    flex-direction: column;
    flex: 0 0 112px;
    height: auto;
    min-height: 112px;
  }

  .gallery-thumbnail img {
    flex: 0 0 70px;
    width: 100%;
    height: 70px;
    max-height: none;
    object-fit: cover;
  }

  .gallery-thumbnail > span {
    position: static;
    display: block;
    padding: 5px;
    min-height: 34px;
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }

  .photo-credit a,
  .photo-credit .photo-original-link,
  .affiliate-poster summary {
    font-size: 13px;
    line-height: 1.6;
    min-height: 44px;
    overflow-wrap: anywhere;
  }

  .photo-credit a {
    align-items: center;
  }

  .toast {
    width: max-content;
    max-width: calc(100% - 32px);
    padding: 12px 16px;
    bottom: 16px;
    font-size: 14px;
    line-height: 1.65;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .search-field input::placeholder,
  .course-search input::placeholder,
  .application-field input::placeholder,
  .application-field textarea::placeholder {
    color: #c0a78f;
    opacity: 1;
  }

  .card-offer > span,
  .updated-at,
  .footer-brand small,
  .course-benefit-source,
  .course-place-address,
  .course-list-heading > span,
  .course-selected-label,
  .course-selected-note,
  .course-map-footnote,
  .course-map-footnote > span {
    color: #c0a78f;
  }

  .course-popup .course-popup-address {
    color: #705642;
  }
}

@media (max-width: 560px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .brand,
  .brand img {
    width: 160px;
    max-width: 100%;
  }

  .brand img {
    height: auto;
  }

  .site-header nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .site-header nav a {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 8px 2px;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .site-header nav #header-source {
    display: inline-flex;
  }

  .header-tag {
    display: none;
  }

  .hero-inner {
    padding-top: 36px;
    padding-bottom: 32px;
    min-height: 0;
  }

  h1 {
    font-size: 38px;
    line-height: 1.25;
    letter-spacing: -1.5px;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    align-items: flex-start;
    gap: 12px;
  }

  .hero-actions .button {
    max-width: 100%;
  }

  .benefit-section {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
  }

  .benefit-symbol {
    width: 44px;
    height: 44px;
  }

  .benefit-copy h2 {
    font-size: 18px;
  }

  .benefit-note {
    grid-column: 1 / -1;
    padding-left: 0;
    border-left: 0;
  }

  .section-heading,
  .filter-line {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-toolbar,
  .partner-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-visual {
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 150px;
  }

  .card-image-button {
    position: absolute;
    inset: 0;
  }

  .sources-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .branch-heading {
    flex-direction: column;
  }

  .course-section,
  .application-section {
    scroll-margin-top: 0;
  }
}


/* Course map: readable text and flexible controls on phones and tablets. */
@media (max-width: 780px) {
  .course-section,
  .course-shell,
  .course-toolbar > label,
  .course-search,
  .course-place-copy,
  .course-selected-copy,
  .course-destination-copy {
    min-width: 0;
  }

  .course-heading-tag {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .course-flow {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
  }

  .course-flow > span {
    min-width: 0;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .course-flow b {
    flex-shrink: 0;
    width: 2em;
    height: 2em;
    font-size: 12px;
  }

  .course-flow small {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    font-size: 12px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  .course-search {
    min-height: 48px;
  }

  .course-search input {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 16px;
    line-height: 1.5;
  }

  .course-search > span {
    flex-shrink: 0;
  }

  .course-toolbar select {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 48px;
    font-size: 16px;
    line-height: 1.5;
  }

  .course-fit {
    min-width: 0;
    min-height: 48px;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .course-sidebar {
    height: auto;
    max-height: none;
  }

  .course-list-heading {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 12px;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .course-list-heading > span {
    font-size: 12px;
    line-height: 1.5;
  }

  .course-list {
    display: block;
    max-height: 30rem;
    overflow-y: auto;
  }

  .course-place {
    gap: 10px;
    height: auto;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .course-place-number {
    flex: 0 0 2em;
    min-height: 2em;
    font-size: 12px;
  }

  .course-place-title {
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .course-place-address,
  .course-benefit-source {
    font-size: 12px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  .course-place-benefit {
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  .course-benefit-tag {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .course-selected {
    align-items: flex-start;
  }

  .course-selected-copy {
    min-width: 0;
  }

  .course-selected-label,
  .course-selected-note {
    font-size: 12px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  .course-selected h3 {
    font-size: 20px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .course-selected-address,
  .course-selected-benefit {
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  .course-selected-note a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .course-selected-actions {
    width: 100%;
    min-width: 0;
    gap: 10px;
  }

  .course-selected-actions .course-action,
  .course-location-link {
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .course-location-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .course-destination-copy > span {
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .course-destination h3 {
    font-size: 18px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .course-destination p {
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  .course-destination-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-basis: 100%;
    width: 100%;
    min-width: 0;
    gap: 8px;
    padding-left: 0;
    font-size: 14px;
    white-space: normal;
  }

  .course-destination-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding: 10px 8px;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .course-map-footnote,
  .course-map-footnote > span {
    font-size: 12px;
    line-height: 1.7;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .course-map-status {
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .course-map-fallback,
  .course-loading,
  .course-empty,
  .course-selected-empty {
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  .course-empty button {
    min-height: 44px;
    max-width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
  }

  /* Leaflet supplies a pixel content width; cap it to the phone viewport. */
  .course-leaflet .leaflet-popup-content {
    width: min(18rem, calc(100vw - 96px)) !important;
    max-height: min(45dvh, 250px);
    margin: 32px 16px 16px;
    overflow-x: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    overflow-wrap: anywhere;
  }

  .course-popup-kicker {
    font-size: 12px;
    line-height: 1.6;
  }

  .course-popup h3 {
    font-size: 18px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .course-popup p,
  .course-popup .course-popup-address,
  .course-popup .course-popup-benefit {
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  .course-popup-detail,
  .course-popup > a {
    min-height: 44px;
    max-width: 100%;
    padding: 10px;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .course-leaflet a.leaflet-popup-close-button {
    width: 44px;
    height: 44px;
    font-size: 24px;
    line-height: 44px;
  }

  .course-leaflet .leaflet-control-zoom a {
    width: 44px;
    height: 44px;
    font-size: 22px;
    line-height: 44px;
  }

  .course-leaflet .leaflet-control-attribution {
    max-width: calc(100vw - 56px);
    font-size: 12px;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 560px) {
  .course-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .course-flow > span {
    display: grid;
    grid-template-columns: 2em minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }

  .course-flow > i {
    display: none;
  }

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

  .course-toolbar > label,
  .course-fit {
    width: 100%;
  }

  .course-selected {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .course-selected-photo {
    width: 64px;
    height: 80px;
  }

  .course-selected-copy {
    min-width: 0;
  }

  .course-selected-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Partner applications: mobile type and touch targets. */
@media (max-width: 780px) {
  .application-hero-link,
  .application-footer-links a {
    font-size: 14px;
    line-height: 1.6;
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
    overflow-wrap: anywhere;
  }

  .application-footer-links {
    gap: 4px;
  }

  .application-invitation-copy,
  .application-invitation-action,
  .application-dialog-shell,
  .application-preview-heading > div {
    min-width: 0;
    max-width: 100%;
  }

  .application-invitation-copy > p:last-child,
  .application-steps li,
  .application-dialog-heading > p:last-of-type,
  .application-field label,
  .application-contact-fields legend,
  .application-contact-fields .application-field label,
  .application-preview h3,
  .application-message,
  .application-send-guide strong,
  .application-send-guide p,
  .application-copy-status,
  .application-send-status {
    font-size: 14px;
    line-height: 1.75;
  }

  .application-preview h3 {
    font-size: 18px;
    line-height: 1.55;
  }

  .application-invitation-copy .eyebrow,
  .application-dialog-top > span,
  .application-dialog-heading .eyebrow,
  .application-preview-heading .eyebrow,
  .application-invitation-action > p,
  .application-required-note,
  .application-field .application-optional,
  .application-field-help,
  .application-contact-fields legend > span,
  .application-manual-copy > label,
  .application-manual-copy p,
  .application-channel-help,
  .application-progress li {
    font-size: 12px;
    line-height: 1.7;
    color: #bda895;
  }

  .application-field-error,
  .application-error-summary,
  .application-privacy-note {
    font-size: 14px;
    line-height: 1.75;
  }

  .application-field-error,
  .application-error-summary {
    color: #ffbd98;
  }

  .application-privacy-note {
    color: #d7b99f;
  }

  .application-field label > span,
  .application-steps span,
  .application-progress li > span,
  .application-preview-actions .button > span {
    font-size: 12px;
  }

  .application-field input,
  .application-field select,
  .application-field textarea,
  .application-manual-copy textarea {
    font-size: 16px;
    line-height: 1.6;
    min-height: 48px;
    min-width: 0;
    max-width: 100%;
  }

  .application-field input::placeholder,
  .application-field textarea::placeholder {
    font-size: 14px;
  }

  .application-field textarea {
    min-height: 120px;
  }

  .application-manual-copy textarea {
    min-height: 180px;
  }

  .application-invitation-action .application-open,
  .application-submit,
  .application-preview-actions .button {
    font-size: 15px;
    line-height: 1.6;
    min-height: 48px;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    gap: 8px;
  }

  .application-edit,
  .application-manual-copy button {
    font-size: 14px;
    line-height: 1.6;
    min-height: 44px;
    padding: 10px 12px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .application-dialog-top {
    align-items: flex-start;
  }

  .application-dialog-top > span {
    min-width: 0;
    overflow-wrap: anywhere;
    letter-spacing: 0.06em;
    padding-top: 10px;
  }

  .application-dialog-top .icon-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .application-preview-heading {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
  }

  .application-preview-heading > div {
    flex: 1 1 190px;
  }

  .application-message {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: #e1cdbb;
  }

  .application-invitation-action > p,
  .application-dialog-heading > p:last-of-type,
  .application-field-help,
  .application-field-error,
  .application-error-summary,
  .application-privacy-note,
  .application-send-guide p,
  .application-copy-status,
  .application-send-status,
  .application-channel-help,
  .application-manual-copy p {
    overflow-wrap: anywhere;
  }

  .application-channel-help a {
    display: inline-block;
    max-width: 100%;
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 560px) {
  .application-invitation {
    display: block;
    padding: 24px 20px;
  }

  .application-invitation-action {
    min-width: 0;
    margin-top: 22px;
  }

  .application-dialog-heading {
    padding-right: 16px;
    padding-left: 16px;
  }

  .application-form,
  .application-preview {
    padding-right: 16px;
    padding-left: 16px;
  }

  .application-dialog-heading h2 {
    font-size: 22px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .application-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .application-progress li {
    flex-direction: column;
    align-items: center;
    min-width: 0;
    gap: 7px;
    text-align: center;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .application-progress li > span {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    flex-shrink: 0;
  }

  .application-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .application-contact-fields legend > span {
    display: block;
    margin-left: 0;
    margin-top: 4px;
    overflow-wrap: anywhere;
  }

  .application-preview-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .application-message {
    padding: 14px;
  }

  .application-manual-copy > div {
    display: block;
  }
}
