/* Crown photo visualizer: generous image area, precise controls, local photo views. */
body:has(dialog.photo-dialog[open]){overflow:hidden}
dialog.photo-dialog{width:min(1440px,calc(100vw - 40px));height:min(960px,calc(100dvh - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;margin:auto;border:1px solid #c9dccd;border-radius:4px;background:var(--paper);color:var(--ink);overflow:hidden;box-shadow:none}
dialog.photo-dialog[open]{display:flex;flex-direction:column}
dialog.photo-dialog::backdrop{background:#1f2321c2;backdrop-filter:blur(7px)}
.photo-dialog [hidden]{display:none!important}
.photo-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;flex:none;padding:22px 28px;border-bottom:1px solid var(--line);background:var(--paper)}
.photo-head>div{min-width:0}
.photo-head .eyebrow{margin-bottom:7px;font-size:12px;letter-spacing:2px}
.photo-head h2{font-size:27px;font-weight:500;letter-spacing:-.01em;line-height:1.3}
.photo-head p{font-size:12px;line-height:1.7;color:#5c625f;margin-top:7px;max-width:850px}
.photo-close{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;border:1px solid #e2dfd7;border-radius:3px;background:var(--paper);color:var(--green)}
.photo-close:hover{background:#e7efe8}
.photo-close .icon{width:20px;height:20px}
.photo-workspace{display:grid;grid-template-columns:300px minmax(0,1fr);flex:1 1 auto;min-height:0;min-width:0;overflow:hidden}
.photo-sidebar{min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:22px;background:#f6f5f1;border-right:1px solid var(--line);scrollbar-width:thin;scrollbar-color:#cfcbc1 transparent;-webkit-overflow-scrolling:touch}
.photo-scene-list{display:flex;flex-direction:column;gap:7px;margin-bottom:14px}
.photo-scene-button{display:flex;justify-content:space-between;align-items:center;gap:9px;min-height:45px;width:100%;padding:11px 12px;border:1px solid #e2dfd7;border-radius:3px;background:var(--paper);font-size:12px;font-weight:500;line-height:1.5;text-align:left;overflow-wrap:anywhere}
.photo-scene-button.active,.photo-scene-button[aria-pressed=true]{border-color:#868e87;background:#e7efe8;color:#1e3f27}
.photo-scene-button>span{min-width:0;overflow-wrap:anywhere}
.photo-scene-button .icon{width:17px;height:17px;color:#2f5d3a}
.photo-upload-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.photo-upload-actions>button,.photo-upload-actions>.btn{display:flex;align-items:center;justify-content:center;gap:7px;flex:1 1 90px;min-height:44px;min-width:0;padding:10px;border:1px solid #c9dccd;border-radius:3px;background:var(--paper);font-size:12px;line-height:1.5;white-space:normal}
.photo-upload-actions>button:hover{background:#e7efe8}
.photo-upload-actions .icon{width:16px;height:16px}
.photo-section{min-width:0;margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}
.photo-section:first-child{margin-top:0;padding-top:0;border-top:0}
.photo-section h3{font-size:13px;line-height:1.5;font-weight:600;letter-spacing:-.2px;margin-bottom:8px}
.photo-help{display:block;font-size:12px;line-height:1.7;color:#5c625f;margin:7px 0 11px;overflow-wrap:anywhere}
.photo-sidebar .btn{min-height:44px;font-size:12px;white-space:normal;line-height:1.5}
.photo-sidebar .btn-primary{width:100%;margin-top:10px}
.photo-sidebar label:not(.photo-quote-toggle){display:block;color:#8e968f;font-size:12px;line-height:1.5;font-weight:500;margin-bottom:6px}
.photo-select,.photo-sidebar select,.photo-sidebar input[type=text]{display:block;width:100%;max-width:100%;min-width:0;min-height:44px;padding:10px 30px 10px 12px;border:1px solid #c9dccd;border-radius:3px;background:var(--paper);color:var(--green);font-size:13px;line-height:1.5}
.photo-select:focus,.photo-sidebar select:focus,.photo-sidebar input[type=text]:focus{border-color:#8e968f;outline:3px solid #2f5d3a;outline-offset:1px}
.photo-placement-list{display:flex;flex-direction:column;gap:7px;margin-top:12px}
.photo-placement-row{display:flex;align-items:center;gap:9px;width:100%;min-width:0;min-height:48px;padding:11px 12px;border:1px solid #e2dfd7;border-radius:3px;background:var(--paper);text-align:left;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.photo-placement-row>span,.photo-placement-row>div{min-width:0;flex:1;overflow-wrap:anywhere}
.photo-placement-row strong{display:block;font-size:12px;line-height:1.5;font-weight:550}
.photo-placement-row small{display:block;font-size:12px;line-height:1.6;color:#5c625f;margin-top:2px}
.photo-placement-row.active,.photo-placement-row[aria-pressed=true]{background:#e7efe8;border-color:#868e87;color:var(--green);box-shadow:inset 3px 0 0 #868e87}
.photo-placement-row .icon{width:17px;height:17px;color:#2f5d3a}
.photo-placement-row button{display:flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;border:1px solid #c9dccd;border-radius:2px}
.photo-editor-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:13px;margin:14px 0}
.photo-editor-fields label{margin-bottom:5px}
.photo-editor-fields input,.photo-editor-fields select{margin-top:5px}
.photo-slider-row{display:flex;align-items:center;flex-wrap:wrap;gap:9px 12px;margin:16px 0;min-width:0}
.photo-slider-row>label,.photo-slider-row>span{flex:1;font-size:12px;line-height:1.5;color:#2f5d3a}
.photo-slider-row output{font-size:12px;color:var(--green);font-variant-numeric:tabular-nums}
.photo-slider-row input[type=range]{flex-basis:100%;width:100%;height:30px;margin:0;accent-color:#2f5d3a;touch-action:pan-y}
.photo-slider-row .photo-slider-labels{display:flex;justify-content:space-between;width:100%;font-size:12px;line-height:1.5;color:#5c625f}
.photo-quote-toggle{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:12px 0;margin:12px 0 0;border-top:1px solid var(--line);font-size:12px;line-height:1.6;color:#2f5d3a;cursor:pointer}
.photo-quote-toggle input{width:19px;height:19px;min-width:19px;margin:1px 0 0;accent-color:var(--green)}
.photo-quote-toggle>span{min-width:0;overflow-wrap:anywhere}
.photo-quote-toggle small{display:block;font-size:12px;line-height:1.6;color:#5c625f;margin-top:2px}
.photo-notice{margin-top:17px;padding:12px 13px;border:1px solid #e2dfd7;border-radius:3px;background:#efede7;color:#5c625f;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.photo-notice strong{display:block;font-size:12px;font-weight:550;color:#5c625f;margin-bottom:3px}
.photo-status{font-size:12px;line-height:1.7;color:#2f5d3a;overflow-wrap:anywhere;min-height:0}
.photo-status:not(:empty){margin-top:12px;padding:10px 12px;background:#e7efe8;border:1px solid #c9dccd;border-radius:3px}
.photo-status.error,.photo-status[data-kind=error]{background:#fbe7e5;border-color:#e8b4ae;color:#8a2e27}
.photo-stage-panel{display:flex;flex-direction:column;min-width:0;min-height:0;background:#eceae3;overflow:hidden;padding:0}
.photo-stage-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;min-width:0;flex:none;min-height:62px;padding:10px 18px;border-bottom:1px solid #e2dfd7;background:#efede7}
.photo-view-modes{display:flex;gap:3px;padding:3px;border:1px solid #c9dccd;border-radius:3px;background:#e7efe8;min-width:0}
.photo-view-modes>button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:38px;min-width:0;padding:8px 13px;border-radius:2px;font-size:12px;font-weight:500;line-height:1.4;color:#2f5d3a;white-space:nowrap}
.photo-view-modes>button.active,.photo-view-modes>button[aria-pressed=true]{background:var(--paper);color:var(--green);box-shadow:none}
.photo-view-modes .icon{width:15px;height:15px}
.photo-zoom-controls{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex:none}
.photo-zoom-controls button{display:flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;padding:8px;border:1px solid #c9dccd;border-radius:2px;background:var(--paper);font-size:12px;line-height:1.3}
.photo-zoom-controls button:hover{background:#e7efe8}
.photo-zoom-controls button .icon{width:15px;height:15px}
.photo-zoom-controls output,.photo-zoom-controls>span{min-width:34px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums;color:#2f5d3a}
.photo-stage-toolbar>small{font-size:12px;color:#5c625f}
.photo-viewport{position:relative;display:flex;flex:1 1 auto;min-height:0;min-width:0;padding:26px;overflow:auto;overscroll-behavior:contain;background-color:#eceae3;background-image:radial-gradient(#cfcbc180 .65px,transparent .65px);background-size:12px 12px;container-type:size;scrollbar-width:thin;scrollbar-color:#b5b1a8 #eceae3;-webkit-overflow-scrolling:touch}
.photo-canvas-wrap{position:relative;flex:0 0 auto;width:calc(min(100cqw,100cqh * var(--photo-aspect,1.333333)) * var(--photo-zoom,1));height:auto;min-width:1px;max-width:none;aspect-ratio:var(--photo-aspect,1.333333);margin:auto;background:#eceae3;box-shadow:none;isolation:isolate}
.photo-canvas-wrap>canvas{display:block;width:100%;height:100%;max-width:none;object-fit:contain;touch-action:pan-x pan-y}
.photo-guides{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:2}
.photo-guides polygon,.photo-guides polyline,.photo-guides line{fill:none;stroke:#ebd29e;stroke-width:2;stroke-dasharray:6 4;vector-effect:non-scaling-stroke;filter:drop-shadow(0 1px 2px #1f2321a6)}
.photo-guides .photo-guide-muted{stroke:#f6f5f1b3;stroke-width:1.5;stroke-dasharray:4 5}
button.photo-corner{position:absolute;z-index:3;display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:2px solid #1e3f27;border-radius:50%;background:#f6f5f1;color:#1e3f27;box-shadow:none;transform:translate(-50%,-50%);cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;font:650 13px/1 var(--display)}
button.photo-corner:hover{background:#e7efe8;border-color:#2f5d3a;box-shadow:none}
button.photo-corner:active,button.photo-corner.is-dragging{transform:translate(-50%,-50%) scale(1.08);cursor:grabbing;background:#e7efe8}
button.photo-corner:focus-visible{outline:3px solid #2f5d3a;outline-offset:4px}
.photo-corner>span{pointer-events:none}
.photo-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;flex:1;margin:auto;min-width:0;min-height:220px;padding:30px;text-align:center;color:#5c625f}
.photo-empty>.icon{width:40px;height:40px;stroke-width:1.2;color:#2f5d3a}
.photo-empty h3{font-size:21px;line-height:1.4;font-weight:500;letter-spacing:-.01em;color:var(--green)}
.photo-empty p{font-size:12px;line-height:1.8;max-width:350px;color:#5c625f}
.photo-empty .btn{min-height:44px;margin-top:7px;font-size:12px}
.photo-stage-caption{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none;min-width:0;min-height:58px;padding:10px 18px;border-top:1px solid #c9dccd;background:#f3f2ee;color:#2f5d3a;font-size:12px;line-height:1.6}
.photo-stage-caption>div,.photo-stage-caption>span{min-width:0;overflow-wrap:anywhere}
.photo-stage-caption strong{font-weight:600;color:#1e3f27}
.photo-stage-caption small{display:block;font-size:12px;line-height:1.5;color:#5c625f}
.photo-reset-button{min-height:40px;flex:none;padding:9px 10px;border:1px solid #c9dccd;border-radius:2px;background:var(--paper);color:#2f5d3a;font-size:12px;line-height:1.5}
.photo-reset-button:hover{background:#e7efe8}
.photo-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;flex:none;min-width:0;padding:15px 26px;border-top:1px solid var(--line);background:var(--paper);position:relative;z-index:4}
.photo-footer-status{min-width:0;font-size:12px;line-height:1.6;color:#2f5d3a;overflow-wrap:anywhere}
.photo-footer-status strong{font-weight:600}
.photo-footer-status small{display:block;margin-top:2px;font-size:12px;color:#5c625f;line-height:1.6}
.photo-footer-actions{display:flex;align-items:center;gap:10px;flex:none;min-width:0}
.photo-footer-actions>.btn,.photo-footer-actions>button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:46px;min-width:110px;padding:11px 18px;border-radius:3px;font-size:12px;font-weight:550;line-height:1.5;white-space:normal}
.photo-footer-actions>.btn-secondary{border:1px solid #c9dccd;background:var(--paper)}
.photo-footer-actions>.btn-primary{border:1px solid var(--green);background:var(--green);color:var(--paper)}
.photo-footer-actions .icon{width:16px;height:16px}
.photo-preview-card{position:relative;min-width:0;margin:18px 20px 0;border:1px solid #c9dccd;border-radius:3px;background:#efede7;overflow:hidden}
.photo-entry-link{display:flex;align-items:center;justify-content:center;gap:9px;width:calc(100% - 40px);min-height:44px;margin:0 20px 16px;padding:10px 14px;border:1px solid #c9dccd;border-radius:3px;background:#e7efe8;color:#2f5d3a;font-size:12px;font-weight:550;line-height:1.5}
.photo-entry-link:hover{background:#e7efe8;border-color:#c9dccd}
.photo-entry-link .icon{width:16px;height:16px}
.photo-preview-card>img,.photo-preview-card>button>img{display:block;width:100%;height:auto;max-height:420px;object-fit:contain;background:#e2dfd7}
.photo-preview-card>button:has(>img){display:block;width:100%;padding:0}
.photo-preview-actions{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 15px;border-top:1px solid #c9dccd;background:#f6f5f1}
.photo-preview-actions .btn{min-height:44px;font-size:12px}
.photo-preview-actions strong{font-size:12px;line-height:1.6;font-weight:550;color:#2f5d3a}
.photo-preview-note{display:block;font-size:12px;line-height:1.7;color:#5c625f;padding:0 15px 13px;background:#f6f5f1}
.photo-preview-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:265px;padding:30px 24px;text-align:center;background:linear-gradient(135deg,#e7efe8,#f6f5f1);color:#2f5d3a}
.photo-preview-empty>.icon{width:33px;height:33px;stroke-width:1.3}
.photo-preview-empty h3{font-size:21px;font-weight:500;letter-spacing:-.01em;line-height:1.35;color:var(--green)}
.photo-preview-empty p{max-width:325px;font-size:12px;line-height:1.8}
.photo-preview-empty .btn{min-height:44px;margin-top:8px;font-size:12px}
/* Controller markup keeps label/input pairs as siblings for simple keyboard order. */
.photo-section h3>small{float:right;display:inline-block;min-width:22px;padding:1px 6px;border:1px solid #c9dccd;border-radius:2px;background:#e7efe8;font-family:var(--sans);font-size:12px;font-weight:500;letter-spacing:0;text-align:center;color:#2f5d3a}
.photo-sidebar .photo-field-label{margin-top:15px;margin-bottom:7px}
.photo-view-actions{display:flex;gap:8px;margin-top:10px}
.photo-view-actions>button{flex:1;min-width:0;min-height:44px;padding:8px;white-space:normal;font-size:12px;line-height:1.5}
.photo-sidebar .photo-sample-link{width:100%;min-height:44px;padding:10px 4px;margin-top:-7px;justify-content:flex-start;color:#8e968f;font-size:12px;line-height:1.5}
.photo-sidebar .photo-add-placement{width:100%;min-height:44px;margin-top:9px}
.photo-placement-item{display:flex;align-items:stretch;gap:7px;min-width:0}
.photo-placement-item>.photo-placement-row{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;flex:1;min-width:0;width:auto;padding:10px 11px}
.photo-placement-item>.photo-placement-row>span{flex:none;min-width:0}
.photo-placement-item>.photo-placement-row>small{font-size:12px;line-height:1.5;color:#5c625f;margin:0}
.photo-remove-placement{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-height:44px;padding:8px;border:1px solid #e2dfd7;border-radius:3px;background:var(--paper);color:#5c625f}
.photo-remove-placement:hover{color:#8a2e27;border-color:#e8b4ae;background:#efede7}
.photo-remove-placement .icon{width:16px;height:16px}
.photo-dialog .photo-editor-fields{display:block}
.photo-editor-fields>h3{margin-bottom:8px}
.photo-editor-fields>label{margin-top:13px;margin-bottom:6px}
.photo-editor-fields>select{margin:0 0 13px}
.photo-editor-fields>.photo-help{margin:8px 0 13px}
.photo-editor-fields>.photo-slider-row{margin:14px 0 0}
.photo-editor-fields>.photo-slider-row>label{margin:0;font-size:12px}
.photo-editor-fields>input[type=range]{display:block;width:100%;height:30px;margin:0 0 7px;accent-color:#2f5d3a;touch-action:pan-y}
.photo-position-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:1px 0 12px}
.photo-position-presets>button{min-width:0;min-height:44px;padding:9px 7px;border:1px solid #c9dccd;border-radius:2px;background:var(--paper);font-size:12px;line-height:1.5;color:#2f5d3a}
.photo-position-presets>button:hover{background:#e7efe8;border-color:#8e968f}
.photo-editor-fields>.photo-reset-button{width:100%;min-height:44px;margin-top:7px;white-space:normal}
.photo-empty:has(>.photo-empty-image){display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;align-items:stretch;justify-content:stretch;gap:0;flex:0 0 auto;width:100%;height:100%;max-width:920px;max-height:100%;min-height:0;padding:0;margin:auto;overflow:hidden;border:1px solid #c9dccd;border-radius:3px;background:var(--paper);box-shadow:none}
.photo-empty-image{min-width:0;min-height:0;overflow:hidden;background:#e2dfd7}
.photo-empty-image>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 46%}
.photo-empty-copy{display:flex;flex-wrap:wrap;align-content:center;justify-content:center;align-items:center;gap:10px;padding:21px 24px;text-align:center;background:var(--paper)}
.photo-empty-copy>.eyebrow{width:100%;justify-content:center;margin:0 0 1px;font-size:12px;line-height:1.5;letter-spacing:1.8px}
.photo-empty-copy>h3{width:100%;font-size:23px;font-weight:500;line-height:1.3;letter-spacing:-.01em}
.photo-empty-copy>p{flex-basis:100%;max-width:440px;font-size:12px;line-height:1.7}
.photo-empty-copy>.btn{min-height:44px;margin:3px 0 0;font-size:12px}
.photo-preview-card>canvas{display:block;width:100%;height:auto;max-height:420px;object-fit:contain;background:#e7efe8}
.photo-preview-card>.photo-preview-note{padding-top:10px;border-top:1px solid #c9dccd}
.photo-preview-empty:has(>img){display:block;min-height:0;padding:0;overflow:hidden}
.photo-preview-empty>img{display:block;width:100%;height:auto;max-height:270px;aspect-ratio:3/2;object-fit:cover;object-position:center 42%;background:#e7efe8}
.photo-preview-empty>div{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:9px;padding:22px 19px}
.photo-preview-empty>div>h3{width:100%;font-size:21px;font-weight:500;line-height:1.35;letter-spacing:-.01em}
.photo-preview-empty>div>p{flex-basis:100%;max-width:350px;font-size:12px;line-height:1.7}
.photo-preview-empty>div>.btn{margin-top:4px;font-size:12px}
.quote-photo-section{margin:22px 0 28px;min-width:0}
.quote-photo-figure{margin:15px 0 20px;break-inside:avoid;border:1px solid #e2dfd7;border-radius:3px;overflow:hidden;background:#f3f2ee}
.quote-photo-image{display:block;width:100%;max-width:100%;height:auto;max-height:450px;object-fit:contain;background:#e7efe8}
.quote-photo-caption{display:block;margin:0;padding:12px 14px;color:#2f5d3a;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.quote-photo-caption strong{display:block;color:#2f5d3a;font-size:12px;font-weight:550;margin-bottom:3px}
@supports not (width:1cqw){.photo-canvas-wrap{width:calc(100% * var(--photo-zoom,1));max-width:none;align-self:flex-start}}
@media(max-width:1050px){
  .photo-workspace{grid-template-columns:270px minmax(0,1fr)}
  .photo-sidebar{padding:18px}
  .photo-head{padding:20px 23px}
  .photo-stage-toolbar{padding:9px 12px;gap:8px}
  .photo-viewport{padding:24px}
  .photo-stage-toolbar>small{display:none}
}
@media(max-width:760px){
  dialog.photo-dialog{width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);border-radius:4px}
  .photo-head{align-items:center;padding:13px 16px;gap:12px}
  .photo-head .eyebrow{font-size:12px;letter-spacing:1.7px;margin-bottom:5px}
  .photo-head h2{font-size:22px;letter-spacing:-.01em;line-height:1.3}
  .photo-head p{display:none}
  .photo-workspace{display:flex;flex-direction:column;min-height:0}
  .photo-stage-panel{order:-1;flex:0 0 64%;min-height:260px;border-bottom:1px solid #c9dccd}
  .photo-stage-toolbar{min-height:52px;padding:6px 10px;gap:6px}
  .photo-view-modes{gap:2px;padding:2px;border-radius:3px}
  .photo-view-modes>button{min-height:38px;padding:7px 9px;font-size:12px}
  .photo-view-modes .icon{display:none}
  .photo-zoom-controls{gap:4px}
  .photo-zoom-controls button{min-width:38px;min-height:38px;padding:7px;font-size:12px}
  .photo-zoom-controls output,.photo-zoom-controls>span{display:none}
  .photo-viewport{padding:24px;min-height:145px}
  .photo-stage-caption{min-height:43px;gap:8px;padding:5px 12px;font-size:12px}
  .photo-stage-caption small{font-size:12px;line-height:1.5}
  .photo-reset-button{min-height:36px;padding:7px;font-size:12px}
  .photo-sidebar{flex:1 1 auto;min-height:0;padding:16px;border-right:0}
  .photo-scene-list{flex-direction:row;overflow-x:auto;margin-bottom:11px;padding-bottom:3px;gap:7px;scrollbar-width:thin}
  .photo-scene-button{flex:0 0 auto;min-width:110px;width:auto;max-width:220px;min-height:44px;padding:10px 11px;font-size:12px}
  .photo-upload-actions{margin-bottom:14px}
  .photo-upload-actions>button,.photo-upload-actions>.btn{min-height:44px;font-size:12px}
  .photo-section{margin-top:16px;padding-top:16px}
  .photo-section h3{font-size:13px;margin-bottom:7px}
  .photo-sidebar select,.photo-select,.photo-sidebar input[type=text]{font-size:16px;min-height:46px}
  .photo-editor-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
  .photo-editor-fields>label:only-child,.photo-editor-fields>div:only-child{grid-column:1/-1}
  .photo-slider-row{margin:12px 0}
  .photo-sidebar .photo-help{font-size:12px;line-height:1.7}
  .photo-footer{display:block;padding:10px 14px max(12px,env(safe-area-inset-bottom))}
  .photo-footer-status{font-size:12px;line-height:1.5;margin-bottom:8px}
  .photo-footer-status small{display:none}
  .photo-footer-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;width:100%}
  .photo-footer-actions>.btn,.photo-footer-actions>button{min-width:0;min-height:46px;width:100%;padding:10px;font-size:12px;line-height:1.5}
  .photo-empty{padding:18px;min-height:130px;gap:8px}
  .photo-empty>.icon{width:27px;height:27px}
  .photo-empty h3{font-size:17px}
  .photo-empty p{font-size:12px;line-height:1.6}
  .photo-empty .btn{margin-top:3px}
  .photo-empty:has(>.photo-empty-image){display:block;position:relative;min-height:0;height:100%;border-radius:3px}
  .photo-empty-image{position:absolute;inset:0;width:100%;height:100%}
  .photo-empty-image>img{object-position:center 38%}
  .photo-empty-copy{position:absolute;inset:0;gap:6px;padding:13px 12px;align-content:flex-end;background:linear-gradient(180deg,#f6f5f100 5%,#f6f5f1bb 42%,#f6f5f1f5 68%)}
  .photo-empty-copy>.eyebrow,.photo-empty-copy>p{display:none}
  .photo-empty-copy>h3{font-size:18px;line-height:1.4}
  .photo-empty-copy>.btn{min-height:40px;margin-top:2px;padding:8px 10px;font-size:12px}
  .photo-empty-copy>.btn-ghost{min-height:32px;padding:5px 8px;font-size:12px}
  .photo-preview-card{margin:14px 14px 0}
  .photo-preview-empty{min-height:245px;padding:25px 18px}
  .photo-preview-empty h3{font-size:22px}
  .photo-preview-empty p{font-size:12px}
  .photo-preview-empty:has(>img){padding:0;min-height:0}
  .photo-preview-empty>img{max-height:240px}
  .photo-preview-empty>div{padding:19px 15px}
  .photo-preview-empty>div>h3{font-size:20px}
  .photo-preview-actions{padding:11px 13px}
  .photo-preview-note{padding:0 13px 12px}
  .quote-photo-section{margin:18px 0 23px}
  .quote-photo-figure{margin:12px 0 17px}
  .quote-photo-caption{padding:10px 12px;font-size:12px;line-height:1.7}
}
@media(max-width:370px){
  .photo-head{padding:10px 12px}
  .photo-head h2{font-size:20px}
  .photo-head .eyebrow{display:none}
  .photo-stage-toolbar{padding:6px;gap:4px}
  .photo-view-modes>button{padding:7px 6px;font-size:12px}
  .photo-zoom-controls{gap:3px}
  .photo-zoom-controls button{min-width:34px;padding:6px;font-size:12px}
  .photo-stage-caption{padding:4px 9px}
  .photo-stage-caption small{display:none}
  .photo-footer{padding:9px 10px 11px}
  .photo-footer-actions{gap:7px}
  .photo-footer-actions>.btn,.photo-footer-actions>button{font-size:12px;padding:10px 8px}
}
@media(max-height:600px){
  dialog.photo-dialog{height:calc(100dvh - 12px);max-height:calc(100dvh - 12px)}
  .photo-head{padding:9px 15px;align-items:center}
  .photo-head .eyebrow,.photo-head p{display:none}
  .photo-head h2{font-size:21px}
  .photo-footer{padding-top:9px;padding-bottom:10px}
  .photo-footer-actions>.btn,.photo-footer-actions>button{min-height:44px;padding:9px 12px;font-size:12px}
  .photo-stage-toolbar{min-height:48px;padding-top:5px;padding-bottom:5px}
  .photo-stage-caption{min-height:43px;font-size:12px;padding-top:4px;padding-bottom:4px}
  .photo-stage-caption small{display:none}
  .photo-stage-panel .photo-viewport{padding:24px}
}
@media(min-width:761px) and (max-height:600px){
  .photo-head{padding-top:6px;padding-bottom:6px}
  .photo-workspace{grid-template-columns:250px minmax(0,1fr)}
  .photo-sidebar{padding:15px}
  .photo-footer{padding-top:6px;padding-bottom:7px}
  .photo-footer-status small{display:none}
  .photo-stage-panel{position:relative}
  .photo-stage-panel .photo-viewport{padding:14px}
  .photo-stage-caption{position:absolute;right:10px;bottom:8px;z-index:4;min-height:0;padding:0;border:0;background:transparent}
  .photo-stage-caption>span{display:none}
  .photo-stage-caption .photo-reset-button{min-height:36px;padding:7px 10px;background:#f6f5f1ed;box-shadow:none}
}
@media(max-width:760px) and (max-height:620px){
  .photo-stage-panel{flex-basis:66%;min-height:264px}
  .photo-stage-panel .photo-viewport{min-height:0;padding:16px}
  .photo-stage-caption{justify-content:flex-end;min-height:40px;padding:3px 10px}
  .photo-stage-caption>span{display:none}
  .photo-stage-caption .photo-reset-button{min-height:34px;padding:6px 9px}
  .photo-sidebar{padding:13px 14px}
  .photo-footer-status{display:none}
}
@media(prefers-reduced-motion:reduce){.photo-dialog *, .photo-preview-card *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(forced-colors:active){.photo-corner,.photo-view-modes>button.active,.photo-placement-row.active,.photo-scene-button.active{outline:2px solid Highlight}.photo-guides polygon{stroke:Highlight;filter:none}.photo-viewport{background:Canvas}}
@media print{dialog.photo-dialog{display:none!important}.quote-photo-figure{break-inside:avoid;border-color:#cfcbc1}.quote-photo-image{max-height:150mm}.quote-photo-caption{color:#3b403d;background:white}.quote-photo-section{break-before:auto}.photo-preview-actions{display:none!important}}
