/* Touch layout reserves a stable canvas area; the original tools are within thumb reach. */
.touch-quick-tools{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:4px 0}.touch-quick-tools[hidden]{display:none!important}.touch-quick-tools>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px;min-width:0;padding:5px 2px;font-size:13px;border:1px solid #d2ddcc;background:white;border-radius:9px;color:#3b5e43;line-height:1.3}.touch-quick-tools svg{width:22px;height:22px}.touch-quick-tools [aria-pressed=true]{background:#e3edde;border:2px solid #285e45}.touch-sheet .editor-brushes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:20px 0}.touch-sheet .editor-brushes button{min-height:72px;font-size:14px}.touch-sheet .editor-brushes svg{width:27px;height:27px}.touch-editor-tray:has(.touch-quick-tools:not([hidden])){padding-top:5px}.touch-editor .touch-quick-tools>button:last-child{font-size:12px}.touch-guide-steps{gap:14px!important;margin:15px 0!important}.touch-guide-steps p{font-size:14px!important;line-height:1.65!important}.touch-guide-steps strong{font-size:16px!important}.touch-guide .editor-dialog-heading h2{font-size:19px}.touch-guide .editor-dialog-heading button{padding:8px 10px}.touch-guide .guide-colors{display:none}
.touch-editor-tray[hidden]{display:none!important}.touch-editor-tray{background:#fffdf8;border-top:1px solid #d4dfce;padding:8px 10px calc(8px + env(safe-area-inset-bottom));min-width:0;z-index:36}.touch-palette-row{display:flex;align-items:center;gap:7px;min-width:0}.touch-palette-row>.editor-colors{flex:1;min-width:0;margin:0}.touch-palette-row>.editor-colors .studio-color{display:none!important}.touch-editor .editor-swatches{gap:5px;padding:4px;scrollbar-width:none;overscroll-behavior-x:contain}.touch-editor .editor-swatches button{width:44px;height:44px;min-width:44px;border-width:6px}.touch-palette-row>button{min-width:66px;min-height:44px;padding:6px 9px;font-size:14px;white-space:nowrap}.touch-editor .editor-brushes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;overflow:visible;padding:4px 0;margin:0}.touch-editor .editor-brushes button{min-width:0;min-height:48px;padding:4px;gap:2px;font-size:13px;line-height:1.2;flex:none;touch-action:manipulation}.touch-editor .editor-brushes svg{width:22px;height:22px}.touch-editor-modes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:3px}.touch-editor-modes>button{display:flex!important;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:44px;padding:5px 3px;font-size:13px!important;border:1px solid #cbd8c6;border-radius:9px;color:#355b42;background:white}.touch-editor-modes svg{width:20px;height:20px}.touch-editor-modes>button[aria-pressed=true]{background:#285e45;color:white;border-color:#285e45}.touch-editor-modes .editor-adjust span{display:inline!important}.touch-editor-hint{font-size:12px;line-height:1.5;color:#546b50;margin:5px 0 0;white-space:normal}.touch-editor .touch-desktop-help{display:none!important}
.product-app[data-view=paint]:has(.touch-editor){overflow:hidden;overscroll-behavior:none}.product-app[data-view=paint]:has(.touch-editor) main{padding:0!important;margin:0!important;max-width:none!important}.product-app[data-view=paint]:has(.touch-editor) .site-footer{display:none!important}.product-app[data-view=paint] #paint.touch-editor{height:100vh;height:100svh;height:100dvh;max-width:none;padding:0!important;margin:0!important;box-sizing:border-box}.touch-editor .room-shell{height:100%;margin:0;padding:0}.touch-editor .room-workspace{height:100%;display:flex!important;flex-direction:column;min-height:0;overflow:hidden}.touch-editor .studio-dock{position:relative!important;top:auto;padding:6px 8px!important;border-radius:0;flex:none}.touch-editor .editor-command{min-height:44px;gap:6px}.touch-editor .editor-heading strong{font-size:14px}.touch-editor .editor-save-indicator{font-size:11px}.touch-editor .editor-back{min-width:40px;min-height:44px;padding:6px 8px}.touch-editor .editor-command button{min-height:44px!important;font-size:13px!important;padding:6px 9px!important}.touch-editor .editor-utilities{display:flex!important;flex-wrap:nowrap;gap:5px;margin:4px 0 0}.touch-editor .editor-history{gap:4px}.touch-editor .editor-zoom{display:flex;gap:3px;justify-content:flex-end;margin-left:auto;width:auto;grid-column:auto}.touch-editor .editor-utilities button{min-width:42px;min-height:44px;padding:5px!important}.touch-editor .editor-zoom output{min-width:42px;font-size:13px}.touch-editor .editor-zoom #studioZoomReset{display:block!important;min-width:48px;font-size:12px}.touch-editor .editor-layout{flex:1;min-height:0;display:block;overflow:hidden;padding:6px;border-radius:0;border:0}.touch-editor .editor-stage{height:100%;position:relative;display:flex!important;flex-direction:column;min-height:0}.touch-editor .paint-surface{height:100%!important;min-height:0!important;max-height:none!important;flex:1!important;padding:4px;border-radius:9px}.touch-editor .editor-layout>.editor-inspector,.touch-editor .editor-help,.touch-editor .room-samples,.touch-editor .studio-offline-note{display:none!important}.touch-editor #roomStatus{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.touch-editor .editor-master-reference:not([hidden]){position:absolute;top:5px;right:5px;z-index:20;width:min(230px,80%);max-height:75%;overflow:auto}.touch-editor .editor-master-reference summary{font-size:13px;min-height:32px}.touch-editor .editor-master-reference[open] .editor-reference-body>img{height:150px}.touch-editor .sample-next-step{margin:3px 0 0;min-height:28px;padding:0 4px;gap:8px;font-size:12px}.touch-editor .sample-next-step a{font-size:13px;line-height:1.5}.touch-sheet{max-height:90dvh;overscroll-behavior:contain}.touch-sheet .color-desk{display:block;border:0;padding:8px 0;margin:0;background:none}.touch-sheet .desk-wells{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:16px 0}.touch-sheet .desk-wells button{min-height:44px}.touch-sheet .color-desk-heading{font-size:15px;flex-wrap:wrap}.touch-sheet .desk-mixer{grid-template-columns:120px minmax(60px,1fr);gap:14px}.touch-sheet .desk-sv{height:120px;grid-row:span 2}.touch-sheet .desk-mixer label{font-size:14px}.touch-sheet .desk-hex{font-size:16px;min-height:44px}.touch-sheet .desk-hue{min-height:40px}.touch-sheet .desk-add{min-height:44px;font-size:14px}.touch-sheet .desk-favorites{gap:18px}.touch-sheet .desk-favorites span{width:44px}.touch-sheet .desk-favorites span>button:first-child{min-height:44px}.touch-sheet .desk-delete{min-width:28px;min-height:28px}.touch-sheet .studio-shelf{padding:0;border:0;margin:0}.touch-sheet .studio-shelf>summary{display:none}.touch-sheet .studio-shelf>p{font-size:14px;line-height:1.8}.touch-sheet .studio-work-card button{min-height:44px}
.touch-guide-steps{list-style:none;padding:0;margin:20px 0;display:grid;gap:20px}.touch-guide-steps>li{display:flex;gap:12px;align-items:flex-start}.touch-guide-steps>li>b{display:grid;place-items:center;min-width:30px;height:30px;border-radius:50%;background:#e6eedf;color:#285e45}.touch-guide-steps strong{font-size:17px;line-height:1.5}.touch-guide-steps p{font-size:15px;line-height:1.7;margin:6px 0;color:#50664e}.guide-colors{display:flex;gap:6px}.guide-colors i{width:25px;height:25px;border-radius:50%;background:#eb7772}.guide-colors i:nth-child(2){background:#efc858}.guide-colors i:nth-child(3){background:#83af7b}.guide-colors i:nth-child(4){background:#74afcf}.touch-guide-start{width:100%;min-height:50px;font-size:16px}.touch-guide>p{font-size:13px;line-height:1.8}.touch-desktop-help{font-size:13px}
@media(min-width:600px){.touch-editor .editor-brushes{grid-template-columns:repeat(8,minmax(0,1fr));gap:7px}.touch-editor .editor-brushes button{min-height:54px;font-size:14px}.touch-editor-tray{padding:8px 16px calc(8px + env(safe-area-inset-bottom))}.touch-editor-modes{max-width:540px;margin:4px auto 0}.touch-editor-hint{text-align:center;font-size:13px}}
@media(orientation:landscape) and (min-width:600px){.touch-editor .room-workspace{display:grid!important;grid-template-columns:minmax(0,1fr) 220px;grid-template-rows:auto minmax(0,1fr)}.touch-editor .studio-dock{grid-column:1/-1;grid-row:1}.touch-editor .editor-layout{grid-column:1;grid-row:2;height:100%;box-sizing:border-box}.touch-editor-tray{grid-column:2;grid-row:2;overflow-y:auto;padding:8px 9px calc(8px + env(safe-area-inset-bottom));border-top:0;border-left:1px solid #d4dfce}.touch-editor .editor-brushes{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.touch-editor .editor-brushes button{min-height:52px;font-size:12px}.touch-editor-modes{grid-template-columns:1fr 1fr;gap:5px}.touch-editor-hint{font-size:12px;text-align:left}.touch-palette-row{gap:4px}.touch-palette-row>button{font-size:12px;min-width:56px}.touch-editor .editor-swatches button{width:40px;height:40px;min-width:40px;border-width:5px}}
@media(max-width:350px){.touch-editor .editor-command{gap:4px}.touch-editor .editor-heading strong{font-size:13px}.touch-editor .editor-back span{display:none}.touch-editor .editor-command button{padding:5px 7px!important;font-size:12px!important}.touch-editor .editor-utilities button{min-width:38px}.touch-editor .editor-zoom{gap:2px}.touch-editor .editor-zoom output{min-width:36px}.touch-editor-modes>button{font-size:12px!important}.touch-editor-modes svg{width:17px}.touch-editor .editor-brushes button{min-height:46px;font-size:12px}.touch-editor-hint{font-size:11px}}

@media(max-width:599px){.touch-editor .sample-next-step{display:none!important}.touch-editor-modes .editor-adjust svg{display:none}.touch-editor-hint{font-size:12px;line-height:18px;margin:4px 0 0;white-space:nowrap}.touch-editor .touch-quick-tools>button{padding:4px 2px;min-height:50px}}
.sample-export-next{padding:14px;background:#eaf0e3;border-radius:10px;flex-wrap:wrap}

@media(orientation:landscape) and (max-height:500px) and (min-width:480px){.touch-editor .room-workspace{display:grid!important;grid-template-columns:minmax(0,1fr) 200px;grid-template-rows:auto minmax(0,1fr)}.touch-editor .studio-dock{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;grid-column:1/-1;grid-row:1;align-items:center}.touch-editor .editor-utilities{margin:0}.touch-editor .editor-layout{grid-column:1;grid-row:2;height:100%;box-sizing:border-box}.touch-editor-tray{grid-column:2;grid-row:2;overflow-y:auto;padding:6px 8px;border-left:1px solid #d4dfce}.touch-editor .sample-next-step{display:none!important}.touch-quick-tools{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.touch-quick-tools [aria-label=크레용],.touch-quick-tools [aria-label=지우개]{display:none}.touch-editor-modes{grid-template-columns:1fr 1fr}.touch-editor .touch-palette-row>button{min-width:54px;padding:5px;font-size:12px}.touch-editor .editor-swatches button{width:40px;height:40px;min-width:40px;border-width:5px}.touch-editor-hint{font-size:11px;line-height:16px;white-space:normal;text-align:left}.touch-editor-modes .editor-adjust svg{display:none}.touch-editor .editor-colors{min-width:0}}
@media(orientation:landscape) and (max-height:500px) and (max-width:650px){.touch-editor .editor-heading{display:none}.touch-editor .editor-command{justify-content:space-between}.touch-editor .editor-utilities button{min-width:36px}.touch-editor .editor-zoom output{min-width:34px}}

@media(max-width:350px){.touch-editor .editor-utilities button{min-width:42px}.touch-sheet .desk-wells{grid-template-columns:repeat(5,minmax(0,1fr))}}

.touch-editor-notice[hidden],.touch-works-notice[hidden]{display:none!important}.touch-editor-notice{display:none}.touch-editor .touch-editor-notice{display:block;position:absolute;z-index:30;top:10px;left:12px;right:12px;background:#fff7df;border:1px solid #d8b46b;color:#6a4b20;padding:10px 12px;margin:0;border-radius:9px;font-size:14px;line-height:1.65;pointer-events:none}.touch-works-notice{font-size:14px;line-height:1.7;color:#775520;background:#fff7df;padding:10px;border-radius:8px}
