/* Readable phone/tablet text. Keep this after component styles so compact
   component rules cannot shrink mobile copy. Rem units follow text enlargement. */
@media(max-width:760px), (any-pointer:coarse) {
  #imageStudio { font-size:1.0625rem; --editor-prompt-line-height:1.6875rem; }
  #imageStudio #studioPrompt { font-size:1.125rem; line-height:var(--editor-prompt-line-height); min-height:var(--editor-prompt-line-height); }
  #imageStudio.is-composer-collapsed #studioPrompt,
  #imageStudio.is-canvas.is-composer-collapsed #studioPrompt { height:var(--editor-prompt-line-height)!important; max-height:var(--editor-prompt-line-height); }

  #imageStudio :is(.studio-setting, .studio-quote, .studio-edit-context, .studio-title, .studio-balance,
    .studio-option, .studio-editor-link, .studio-utility-link, .studio-style-name, .studio-more button,
    .studio-catalog-navigation button, .studio-catalog-type, .studio-ideas li button, .studio-welcome-browse),
  #imageStudio.is-canvas .studio-composer :is(.studio-setting, .studio-quote) { font-size:1.0625rem; }
  #imageStudio #studioWelcome p { font-size:1.0625rem; line-height:1.5; }
  #imageStudio :is(.studio-option small, .studio-more-cost, .studio-headshot-thumbs span,
    .studio-welcome-examples span, .studio-welcome-caption, .studio-goal-label, .studio-resize-note,
    .canvas-delete-images small, .video-menu-custom label, .video-quality-price,
    .video-history-open>span:last-child) { font-size:1rem; line-height:1.5; }
  #imageStudio .studio-tile-name, #imageStudio .studio-headshot-catalog .studio-tile-name,
  #imageStudio .studio-pack-grid .studio-tile>span:last-child,
  #imageStudio .studio-headshot-catalog .studio-pack-grid .studio-tile>span:last-child,
  #imageStudio :is(.studio-pack-label, .studio-idea-category) { font-size:.9375rem; line-height:1.4; overflow-wrap:anywhere; }
  #imageStudio .ws-toolbar [data-area-tool] { font-size:1rem; }
  #imageStudio .studio-ideas li button { white-space:normal; }
  #imageStudio :is(.studio-utility-link, .studio-editor-link, .studio-option) { overflow-wrap:anywhere; }
  #imageStudio :is(.studio-utility-link, .studio-option) > span { min-width:0; }
  #imageStudio dialog[data-kind=quality] .studio-option { grid-template-columns:minmax(0,1fr) max-content 18px; }
  #imageStudio .studio-composer-row, #imageStudio .studio-choices { flex-wrap:wrap; }
  #imageStudio .studio-choices { max-width:100%; }
  #imageStudio .studio-composer-row > .studio-send-group { margin-left:auto; }

  #imageStudio :is(.studio-outage-notice, #studioNotice, #studioCapability, .studio-save, .studio-batch,
    #studioIdeasStatus, .studio-resize-status, .video-pending, .canvas-save, .canvas-delete-message,
    .video-studio-status, .library-status, .library-form-error, .library-create-status,
    .library-suggest-status) { font-size:1.0625rem; line-height:1.5; }
  #imageStudio .studio-result-promos { grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr)); }
  #imageStudio .studio-result-promos .studio-result-promo { gap:12px; min-height:76px; padding:10px 12px; }
  #imageStudio .studio-result-promos .studio-promo-thumb { width:38px; height:38px; }
  #imageStudio .studio-result-promos .studio-promo-copy { gap:3px; line-height:1.45; overflow-wrap:anywhere; }
  #imageStudio .studio-result-promos .studio-promo-copy strong { font-size:1.0625rem; }
  #imageStudio .studio-result-promos .studio-promo-copy > span { font-size:1rem; color:#68636c; }

  .guided-flow { font-size:1.0625rem; }
  .guided-flow :is(.flow-prompt, .flow-label, .flow-library .flow-label, .flow-text, .flow-primary,
    .flow-idea, .flow-loading, .flow-recap-prompt, textarea) { font-size:1.0625rem; line-height:1.5; }
  .guided-flow :is(.flow-preset, .flow-edit-label, .flow-original, .flow-recap small, .flow-note,
    .flow-error) { font-size:1rem; line-height:1.5; }
  .guided-flow .flow-idea span { white-space:normal; overflow:visible; overflow-wrap:anywhere; }
  .guided-flow .flow-recap-prompt { max-height:none; }
  .guided-flow .flow-top { height:44px; }
  .guided-flow .flow-top button { width:44px; height:44px; margin:0; }
  .guided-flow .flow-text, .guided-flow .flow-original summary { min-height:44px; }
  .guided-flow .flow-actions { flex-wrap:wrap; }
  .guided-flow .flow-actions .flow-primary { flex-shrink:0; }
  .guided-flow :is(.flow-filters input, .flow-filters select) { font-size:1.0625rem; min-height:44px; height:auto; }

  .image-studio-page .credit-checkout,
  .image-studio-page .credit-checkout :is(.cc-row, .cc-cadences, .cc-retry, .ea-alternate, .ea-reset) { font-size:1.0625rem; }
  .image-studio-page .credit-checkout :is(.cc-plans, .ea-hint, .ea-terms),
  .image-studio-page .image-share-fallback label { font-size:1rem; }
  .image-studio-page .credit-checkout :is(.cc-cadences small, .cc-pack-price small),
  .image-studio-page .image-share-dialog .share-label { font-size:.9375rem; }
  .image-studio-page .credit-checkout [role=status],
  .image-studio-page .image-share-dialog .image-share-status { font-size:1.0625rem; line-height:1.5; }
  /* Keep the warning's actions visible while its enlarged explanation scrolls. */
  .image-studio-page #contentWarning[open] { display:flex; flex-direction:column; overflow:hidden; }
  .image-studio-page #contentWarning > :is(h2,.cc-primary) { flex:none; }
  .image-studio-page #contentWarningText { min-height:0; overflow:auto; overscroll-behavior:contain; }
}
