/* Desktop pages share one screen; small touch screens retain their readable flow. */
@media(min-width:1000px) and (min-height:560px) and (pointer:fine){
 html.viewport-fit,html.viewport-fit body{height:100%;overflow:hidden}
 /* trial 頁不入 screen-fit 縮放（見 viewport.js），內容高於視窗時必須可捲動，否則裝飾面板底部（大小/旋轉、復原/重做、完美裝飾·準備保存）會被裁掉無法保存 */
 html.viewport-fit:has(#trial:not([hidden])),html.viewport-fit:has(#trial:not([hidden])) body{height:auto;overflow-x:hidden;overflow-y:auto}
 .page.screen-fit{position:fixed;left:50%;top:var(--fit-top,80px);width:var(--fit-width,1440px);max-width:none;margin:0;padding:14px 24px;transform:translateX(-50%) scale(var(--fit-scale,1));transform-origin:top center}
 .screen-fit .trial-heading{margin:0 8px 14px;gap:15px}
 .screen-fit .trial-heading h1{font-size:28px;margin:5px 0}
 .screen-fit .trial-steps li{padding:8px 15px}
 .screen-fit .window-bar{min-height:43px;padding:8px 15px}
 .screen-fit .frame-panel{padding:15px 18px}
 .screen-fit .frame-tabs{padding-bottom:11px}
 .screen-fit .frame-tabs button{padding:8px 17px}
 .screen-fit .frame-grid{gap:10px;max-height:none;overflow:visible}
 .screen-fit .frame-choice canvas{max-height:clamp(96px,calc((100svh - 345px)/3),155px)}
 .screen-fit .frame-choice{padding:5px 5px 6px}
 .screen-fit .frame-choice span{margin-top:4px}
 .screen-fit .trial-actions{margin-top:13px}
 .screen-fit .sheet-area{padding:17px 22px}
 .screen-fit .selection-sheet{max-width:min(330px,calc((100svh - 275px)*.75))}
 .screen-fit .trial-hint{margin:10px 0;line-height:1.65}
 .screen-fit .camera-preview{max-width:min(310px,calc((100svh - 380px)*.75))}
 .screen-fit .camera-area{padding:13px 20px}
 .screen-fit .camera-background-panel{margin:7px 0 10px;padding:8px 0 3px}
 .screen-fit .camera-background-panel h3{margin-bottom:7px}
 .screen-fit .background-palette.compact canvas{height:33px}
 .screen-fit .background-palette.compact span{margin:3px 0 1px}
 .screen-fit .camera-background-panel .trial-hint{margin:5px 0 0}
 .screen-fit .camera-controls{gap:7px}
 .screen-fit .camera-controls button{padding:9px 12px;font-size:13px}
 .screen-fit .capture-sheet-wrap{padding:18px 24px}
 .screen-fit .capture-sheet{max-width:min(330px,calc((100svh - 300px)*.75))}
 .screen-fit .editor-area{padding:17px 28px 13px}
 .screen-fit #editorCanvas{max-width:min(365px,calc((100svh - 260px)*.75))}
 .screen-fit .tools-panel{padding:18px 22px}
 .screen-fit .tool-tabs{padding-bottom:12px}
 .screen-fit .sticker-palette{gap:9px}
 .screen-fit .sticker-palette canvas{max-width:75px;margin:auto}
 .screen-fit .sticker-adjust{margin-top:15px;padding-top:12px;gap:14px}
 .screen-fit .edit-history{margin:17px 0}
 .screen-fit .filter-palette{gap:10px;margin-bottom:19px}
 .screen-fit .filter-palette button{height:65px}
 .screen-fit .background-palette canvas{height:65px}
 .screen-fit .save-layout{padding:22px 35px;gap:35px}
 .screen-fit .print-preview{max-width:min(350px,calc((100svh - 230px)*.75));margin:auto;width:100%}
 .screen-fit .save-controls{gap:13px}
 .screen-fit .save-controls h2{font-size:28px}
 .screen-fit .invitation{margin:0 30px 14px;min-height:112px;padding:8px 28px;border-radius:20px;gap:23px}
 .screen-fit .invitation h1{font-size:43px;margin-bottom:5px}
 .screen-fit .invitation p{font-size:23px}
 .screen-fit .phone-art{flex-basis:90px;height:100px}
 .screen-fit .phone-art svg{width:86px;height:108px}
 .screen-fit .postmark{padding-block:4px}
 .screen-fit .postmark svg{height:43px}
 .screen-fit .gallery-inner{padding:13px}
 .screen-fit .photo-placeholder{aspect-ratio:1.5}
 .screen-fit .photo-placeholder>svg{width:63px;height:53px}
 .screen-fit .photo-placeholder p{font-size:19px;margin:14px 0 8px}
 .screen-fit .thumb svg{margin:20px 0}
 .screen-fit .thumb span{padding:7px 0;font-size:17px}
 .screen-fit .doodle{height:45px;padding:8px}
 .screen-fit form{padding:12px 18px 10px}
 .screen-fit .form-grid{gap:8px 20px}
 .screen-fit .field{min-height:33px;font-size:15px}
 .screen-fit .field input:not([type=radio]):not([type=checkbox]),.screen-fit .field select{height:33px;font-size:14px}
 .screen-fit .field legend{line-height:33px}
 .screen-fit .visit-box{padding:8px 12px}
 .screen-fit .extras{gap:17px}
 .screen-fit .notes textarea{min-height:54px;padding:8px 10px}
 .screen-fit .submit-area{margin-top:10px}
 .screen-fit .send{padding:8px 30px;font-size:22px}
 .screen-fit .submit-area p{margin-top:6px}
 .screen-fit .store-sheet{padding:16px 48px 20px;max-width:1260px}
 .screen-fit .rhinestone{font-size:43px}
 .screen-fit .store-sheet>h1{font-size:32px;margin:0 0 16px}
 .screen-fit .store-grid{gap:58px}
 .screen-fit .store-grid h2{font-size:27px;padding:7px 14px;margin-bottom:19px}
 .screen-fit .taped-photo img{height:clamp(150px,calc(100svh - 540px),240px)}
 .screen-fit .store-grid h3{font-size:21px;margin:14px 0 6px}
 .screen-fit .store-grid p{font-size:15px;line-height:1.55;margin:11px 0}
 .screen-fit .store-grid .collab{margin:-12px 0 10px!important;padding:2px}
 .screen-fit .map-button{font-size:18px;padding:9px 20px}
 .screen-fit .instagram{margin:18px 0 11px;font-size:15px}
}
