/* A single page on phones, with a dismissible procedure picker. */
.procedure-picker { display: none; }
.studio-back { margin-left: auto; font-size: .875rem; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
#procedure-dialog { width: min(620px, 100%); padding: 20px; max-height: 88dvh; }
.picker-header { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .875rem; margin: -8px 0 12px; }
#procedure-dialog .options-section { margin: 0; padding: 0; border: 0; }
.mobile-editor .clinic-bar, .mobile-editor .page-heading, .mobile-editor .studio-steps,
.mobile-editor .workspace-heading, .mobile-editor .clinic-reference, .mobile-editor footer,
.mobile-editor .topbar nav, .mobile-editor #about-button { display: none; }
.mobile-editor .topbar { min-height: 64px; padding: 10px 16px; gap: 12px; border-bottom: 1px solid var(--line); }
.mobile-editor .topbar .brand img { width: 180px; }
.mobile-editor main, .mobile-editor.is-embed main { padding: 12px 14px 24px; }
.mobile-editor .studio { display: flex; flex-direction: column; gap: 14px; }
.mobile-editor .viewer-card, .mobile-editor .is-ready .viewer-card { position: static; padding: 0; box-shadow: none; background: none; }
.mobile-editor .viewer-toolbar { padding: 0 0 10px; }
.mobile-editor .icon-button { min-width: 44px; min-height: 44px; }
.mobile-editor .segmented button { min-width: 66px; min-height: 44px; padding: 8px 12px; font-size: .9375rem; }
.mobile-editor .photo-stage { height: clamp(340px, 60dvh, 520px); }
.mobile-editor .is-ready .photo-stage { height: clamp(260px, 36dvh, 380px); }
.photo-frame.has-photo img, .photo-frame.has-photo canvas { object-position: center; }
.mobile-editor .demo-invite { background: linear-gradient(0deg, #342933 0%, #342933e8 45%, transparent); padding: 80px 20px 22px; inset: auto 0 0; }
.mobile-editor .demo-invite h2 { font-size: 1.7rem; }
.mobile-editor .demo-invite .small-kicker { display: none; }
.mobile-editor .demo-invite p { font-size: 1rem; line-height: 1.5; margin-bottom: 14px; }
.mobile-editor .start-actions { display: grid; width: 100%; gap: 8px; }
.mobile-editor .start-actions button { min-height: 48px; font-size: 1rem; }
.mobile-editor .demo-button { border: 1px solid #ffffff80; border-radius: 10px; }
.mobile-editor .is-ready .view-controls { display: flex; gap: 4px; flex-wrap: nowrap; padding: 6px 0; }
.mobile-editor .view-tabs { flex: 1; display: grid; grid-template-columns: repeat(3,1fr); gap: 0; }
.mobile-editor .view-tabs button { min-height: 44px; padding: 6px; font-size: .875rem; }
.mobile-editor .zoom-button { min-height: 44px; font-size: .875rem; max-width: 90px; line-height: 1.3; }
.mobile-editor .original-button { display: none; }
.mobile-editor .procedure-picker { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; margin: 0 0 10px; padding: 10px 14px; border: 1px solid #d6b6ca; border-radius: 12px; background: white; color: var(--accent); font-size: 1rem; font-weight: 600; text-align: left; }
.mobile-editor .procedure-picker:disabled { display: none; }
#procedure-picker-count { margin-left: auto; font-size: .875rem; font-weight: 400; }
.mobile-editor .amount-card { margin: 0; padding: 14px 16px; }
.mobile-editor .amount-heading label { font-size: 1rem; line-height: 1.4; }
.mobile-editor .amount-card .effect-description { font-size: .875rem; line-height: 1.5; }
.mobile-editor #amount { height: 32px; margin: 5px 0 0; }
.mobile-editor .amount-presets { margin-top: 4px; }
.mobile-editor .amount-presets button { min-height: 44px; font-size: .875rem; }
.mobile-editor .amount-card .reference-detail { display: block; }
.mobile-editor .amount-card .reference-detail summary { min-height: 32px; }
.mobile-editor .active-edits, .mobile-editor .is-ready .active-edits { display: flex; max-height: none; overflow: visible; margin-top: 10px; }
.mobile-editor .edit-chip { min-height: 44px; font-size: .875rem; }
.mobile-editor .active-edits>span { display: none; }
.mobile-editor .controls { background: none; padding: 0; border: 0; box-shadow: none; }
.mobile-editor .upload-card { display: none; }
.mobile-editor .is-ready .upload-card { display: block; }
.mobile-editor .upload-card .section-label { display: none; }
.mobile-editor .export-actions { margin: 10px 0 0; padding: 10px 0 0; }
.mobile-editor .studio:not(.is-ready) .export-actions { display: none; }
.mobile-editor .studio:not(.is-ready) .view-controls,
.mobile-editor .studio:not(.is-ready) .viewer-bottom { display: none; }
.mobile-editor .status { margin: 8px 0; }
.mobile-editor .notice { margin-top: 14px; gap: 8px; }
.mobile-editor .notice p { font-size: .875rem; }
.mobile-editor .notice .text-button { margin-left: 0; font-size: .875rem; }
.mobile-editor #procedure-dialog { margin: auto 0 0; width: 100%; max-width: none; border-radius: 24px 24px 0 0; padding: 16px 18px max(22px, env(safe-area-inset-bottom)); }
.mobile-editor #procedure-dialog .procedure-filters { gap: 8px; margin-bottom: 16px; }
.mobile-editor #procedure-dialog .option-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.mobile-editor #procedure-dialog .option-card { grid-template-columns: 36px minmax(0,1fr) auto; grid-template-rows: auto; align-items: center; min-height: 84px; padding: 14px; }
.mobile-editor #procedure-dialog .option-copy { grid-column: 2; grid-row: 1; }
.mobile-editor #procedure-dialog .option-radio { grid-column: 3; grid-row: 1; }
.mobile-editor #procedure-dialog .option-title { font-size: 1.0625rem; }
.mobile-editor #procedure-dialog .option-procedure { font-size: .875rem; }
.mobile-editor dialog { max-height: 90dvh; padding: 24px 18px; }
.mobile-editor dialog h2 { font-size: 1.5rem; padding-right: 20px; }
.mobile-editor dialog input:not([type=range]):not([type=checkbox]), .mobile-editor textarea { font-size: 16px; }
@media (max-width: 359px) {
 .mobile-editor .topbar .brand img { width: 156px; }
 .mobile-editor .history { gap: 0; }
 .mobile-editor .history>span { margin: 0 2px; }
 .mobile-editor .segmented button { min-width: 58px; padding-inline: 8px; }
}

/* Combination is an explicit choice, next to the live intensity control. */
.combination-control { margin: 12px 0; padding: 12px 16px; border: 1px solid #d6b6ca; border-radius: 14px; background: #fff9fd; color: #452c40; }
.combination-control label { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; cursor: pointer; font-size: 1rem; font-weight: 600; }
.combination-control input { appearance: none; flex: 0 0 46px; width: 46px; height: 28px; margin: 0; padding: 3px; border: 0; border-radius: 20px; background: #b8a8b3; cursor: pointer; transition: background .2s; }
.combination-control input::before { content: ''; display: block; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #452c4033; transition: transform .2s; }
.combination-control input:checked { background: #7a1c70; }
.combination-control input:checked::before { transform: translateX(18px); }
.combination-control input:focus-visible { outline: 3px solid #7a1c70; outline-offset: 4px; }
.combination-control input:disabled { opacity: .5; cursor: default; }
.combination-control p { margin: 0 0 4px; font-size: .875rem; line-height: 1.5; color: #645260; }
.studio:not(.is-ready) .combination-control { display: none; }
@media (prefers-reduced-motion: reduce) { .combination-control input, .combination-control input::before { transition: none; } }

/* All procedures are visible before upload, then one tap opens the picker. */
.mobile-editor .studio:not(.is-ready) .photo-stage { height: 340px; }
.mobile-editor .studio:not(.is-ready) .options-section { margin-top: 8px; padding: 18px 0; border-top: 1px solid var(--line); }
.mobile-editor .studio:not(.is-ready) .option-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-height: none; overflow: visible; gap: 10px; }
.mobile-editor .studio:not(.is-ready) .option-card { min-height: 94px; padding: 12px; grid-template-columns: minmax(0,1fr); align-content: center; }
.mobile-editor .studio:not(.is-ready) .option-card:disabled { opacity: 1; color: var(--ink); background: #fff; }
.mobile-editor .studio:not(.is-ready) .option-icon, .mobile-editor .studio:not(.is-ready) .option-radio { display: none; }
.mobile-editor .studio:not(.is-ready) .option-copy { grid-column: 1; }
.mobile-editor .studio:not(.is-ready) .option-title { font-size: 15px; line-height: 1.35; }
.mobile-editor .studio:not(.is-ready) .option-procedure { font-size: 14px; line-height: 1.4; }
.mobile-editor .procedure-filters { display: flex; flex-wrap: wrap; overflow: visible; }
.mobile-editor .procedure-filters button { min-height: 44px; font-size: 14px; }
.mobile-editor #procedure-dialog .option-list { max-height: none; overflow: visible; }
.mobile-editor #procedure-dialog .picker-header { position: sticky; top: -16px; z-index: 2; background: #fffafd; padding-block: 8px; }
@media (max-width: 359px) { .mobile-editor .studio:not(.is-ready) .option-list { grid-template-columns: 1fr; } }

.viewer-title { font-size: 14px; font-weight: 600; color: var(--ink, #51384b); }
