.app-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 14px; margin-bottom: 8px; }
.app-tools p { margin: 0 auto 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.app-tools .button { font-size: 12px; min-height: 44px; padding: 10px 14px; }
dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 24px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: white; box-shadow: 0 20px 80px #30234f40; }
dialog::backdrop { background: #30234f80; }
dialog p { color: var(--muted); line-height: 1.7; }
dialog form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.save-options { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.save-options p { flex: 1 1 240px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.workspace { scroll-margin-top: 16px; }
.frame-info > div { min-width: 0; overflow-wrap: anywhere; }
.photo-picker { position: relative; }
.photo-picker input { clip: auto; width: 100%; height: 100%; inset: 0; margin: 0; opacity: 0; cursor: pointer; }

@media (max-width: 700px) {
  html { scroll-padding-bottom: var(--mobile-action-height, 146px); }
  body { padding-bottom: var(--mobile-action-height, calc(146px + env(safe-area-inset-bottom, 0px))); }
  .site-header { height: 66px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .brand { font-size: 22px; }
  .brand-icon { font-size: 24px; border-radius: 10px; }
  .privacy { font-size: 0; padding: 5px 10px; }
  .privacy > span { font-size: 22px; }
  main { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .app-tools { justify-content: flex-start; margin: 0 4px 10px; }
  .app-tools p { flex: 1 1 150px; font-size: 11px; }
  .intro { padding: 16px 0 22px; }
  .intro > .eyebrow { display: none; }
  h1 { font-size: clamp(27px, 7.5vw, 40px); letter-spacing: -1px; }
  .intro > p:not(.eyebrow) { margin: 12px auto; font-size: 14px; }
  .intro-badges { flex-wrap: wrap; gap: 6px 14px; font-size: 11px; }
  .steps { margin-bottom: 16px; }
  .steps li { min-width: 0; font-size: 11px; text-align: center; padding: 10px 5px; }
  .workspace { padding: 20px 14px; border-radius: 18px; }
  h2 { font-size: 22px; }
  .step-description { font-size: 14px; margin-bottom: 18px; }
  .frame-art { padding: 12px; }
  .frame-card:hover { transform: none; }
  .frame-info { flex-wrap: wrap; }
  .frame-info strong { font-size: 16px; }
  .frame-info small { font-size: 12px; }
  .photo-layout { gap: 18px; }
  .reference-image { padding: 0; overflow: hidden; }
  .frame-reference h3 { margin-top: 12px; }
  .frame-reference p { margin-bottom: 0; font-size: 14px; }
  .photo-slots { gap: 14px; }
  .photo-slot { grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 12px; }
  .slot-thumbnail { width: 64px; aspect-ratio: 1; }
  .slot-label { font-size: 14px; line-height: 1.5; }
  .slot-filename { margin-bottom: 10px; }
  .slot-quality { font-size: 12px; line-height: 1.6; }
  .photo-picker { width: 100%; justify-content: center; min-height: 48px; font-size: 14px; }
  .workspace-footer { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; margin: 0; padding: 10px max(16px, env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left)); background: #fff; box-shadow: 0 -6px 24px #30234f12; display: flex; flex-wrap: wrap; gap: 8px 10px; }
  .workspace-footer .selection-status { margin: 0; min-width: 0; text-align: center; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
  .workspace-footer .button { min-height: 48px; padding: 12px 14px; font-size: 14px; }
  .workspace-footer .primary { min-width: 0; }
  .save-options .button { width: 100%; }
  .preview-mat { padding: 8px; }
  .output-details { font-size: 12px; }
  .site-footer { padding-bottom: 24px; }
}
