.retouch-entry{border-top:1px solid #ddd;margin-top:24px;padding-top:22px;display:flex;align-items:center;justify-content:space-between;gap:18px;color:var(--ink,#62676a)}
.retouch-entry h3{margin:0 0 8px;font-size:18px;line-height:1.5;color:var(--title,#50575a)}
.retouch-entry-summary{margin:0;font-size:14px;line-height:1.65;color:#80878b}
.retouch-entry>button{flex:none}
.retouch-dialog,.retouch-confirm{box-sizing:border-box;background:#fff;border:1px solid #ccc;border-radius:4px;color:var(--ink,#62676a);font-family:inherit}
.retouch-dialog::backdrop,.retouch-confirm::backdrop{background:rgba(26,34,38,.43)}
.retouch-dialog{width:min(1280px,calc(100vw - 40px));max-width:calc(100vw - 40px);max-height:calc(100dvh - 40px);padding:0;overflow:hidden}
.retouch-dialog[open]{display:flex;flex-direction:column}
.retouch-dialog *,.retouch-confirm *{box-sizing:border-box}
.retouch-dialog button,.retouch-confirm button,.retouch-entry button{font-family:inherit;line-height:1.3;cursor:pointer;border-radius:2px}
.retouch-dialog button.primary,.retouch-confirm button.primary,.retouch-entry button.primary{background:#222;color:#fff;border:1px solid #222;padding:12px 20px;font-weight:600}
.retouch-dialog button.secondary,.retouch-confirm button.secondary,.retouch-entry button.secondary{background:#fff;color:inherit;border:1px solid #bbb;padding:12px 18px}
.retouch-dialog button:disabled,.retouch-confirm button:disabled,.retouch-entry button:disabled{cursor:default;opacity:.5}
.retouch-dialog button:focus-visible,.retouch-confirm button:focus-visible,.retouch-entry button:focus-visible{outline:2px solid #555;outline-offset:3px}
.retouch-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 26px 16px;border-bottom:1px solid #ddd;flex:none}
.retouch-head h2{margin:0;font-size:24px;line-height:1.4;color:var(--title,#50575a)}
.retouch-customer{margin:6px 0 0;font-size:14px;line-height:1.4}
.retouch-head .retouch-icon{flex:none;width:40px;height:40px;padding:0;border:1px solid #aaa;background:#fff;color:#62676a;font-size:30px;line-height:1;display:flex;align-items:center;justify-content:center}
.retouch-body{padding:18px 26px 8px;overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;scrollbar-gutter:stable}
.retouch-controls{display:flex;align-items:center;justify-content:flex-start;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.retouch-upload-hint{margin:0;font-size:13px;line-height:1.5;color:#80878b;word-break:keep-all}
.retouch-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;row-gap:16px;align-items:start}.retouch-list>.retouch-empty{grid-column:1/-1}
.retouch-row{--retouch-field-height:166px;display:grid;grid-template-columns:minmax(120px,35%) minmax(0,1fr);gap:12px;align-items:start;padding:0;min-width:0}
.retouch-row:first-child{border-top:0;padding-top:0}
.retouch-photo{margin:0;min-width:0}
.retouch-photo-frame{position:relative;display:flex;justify-content:center;align-items:center;height:var(--retouch-field-height);background:#f8f8f7;border:1px solid #e2e2e0;overflow:hidden}
.retouch-photo img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.retouch-filename{margin-top:7px;font-size:12px;line-height:1.5;text-align:center;overflow-wrap:anywhere;color:#50575a}
.retouch-note-field{min-width:0;height:var(--retouch-field-height)}
.retouch-note-field label.retouch-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.retouch-note-field textarea.retouch-note{font-family:inherit;font-size:15px;line-height:1.65;color:#50575a;width:100%;min-width:0;height:var(--retouch-field-height);min-height:var(--retouch-field-height);max-height:var(--retouch-field-height);padding:12px 14px;margin:0;border:1px solid #aaa;border-radius:2px;background:#fff;resize:none;display:block}
.retouch-note-field textarea.retouch-note:focus{outline:2px solid #777;outline-offset:2px}
.retouch-note-field textarea.retouch-note[readonly]{background:#f9f9f8;border-color:#ddd;resize:none}
.retouch-photo-frame .retouch-remove{position:absolute;top:5px;right:5px;display:flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;background:#fff;border:1px solid #bf342d;color:#bf342d;font-size:25px;line-height:1}
.retouch-photo-frame .retouch-thumb-retry{position:absolute;padding:6px 8px;background:#fff;border:1px solid #aaa;font-size:12px}
.retouch-status{padding:0 26px;flex:none;font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;max-height:115px;overflow:auto}
.retouch-status p{margin:8px 0}
.retouch-error{color:#b22d27}
.retouch-success{color:#3f6544}
.retouch-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 26px;border-top:1px solid #ddd;background:#fff;flex:none}
.retouch-count{font-size:14px;white-space:nowrap}
.retouch-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.retouch-final{padding:24px;border:1px solid #ddd;background:#fafafa;margin-bottom:16px;line-height:1.7}.retouch-final h3{font-size:20px;margin:0 0 12px;color:var(--title,#50575a)}.retouch-final p{font-size:15px;margin:0}.retouch-final .retouch-final-date{margin-top:16px;font-size:14px;color:#80878b}
.retouch-empty{padding:24px 0;margin:0;min-height:72px;font-size:14px;line-height:1.6}
.retouch-submitted{padding:12px 14px;background:#f6f6f4;border:1px solid #ddd;margin:0 0 16px;font-size:14px;line-height:1.6;display:flex;gap:12px;flex-wrap:wrap}
.retouch-submitted span{color:#7d8386}
.retouch-recovery{padding:14px;border:1px solid #d8b9b6;background:#fffafa;margin-bottom:16px;font-size:14px;line-height:1.5}
.retouch-recovery p{margin:0 0 8px;font-weight:600}
.retouch-recovery ul{margin:0 0 12px;padding-left:18px;max-height:120px;overflow:auto;overflow-wrap:anywhere}
.retouch-recovery .retouch-actions{justify-content:flex-start}
.retouch-confirm{width:min(460px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:24px}
.retouch-confirm h2{margin:0;font-size:21px;line-height:1.45;color:#50575a}
.retouch-confirm p{margin:16px 0 22px;font-size:15px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}
.retouch-confirm .retouch-actions{padding-top:16px;border-top:1px solid #ddd}
.retouch-confirm .retouch-danger{background:#b42f29;color:#fff;border:1px solid #b42f29;padding:12px 18px}
#retouch-upload-blocker{box-sizing:border-box;position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:20px;border:0;background:rgba(105,112,116,.8);color:#50575a;overflow:hidden;touch-action:none;overscroll-behavior:none;font-family:inherit}
#retouch-upload-blocker[open]{display:flex;align-items:center;justify-content:center}
#retouch-upload-blocker::backdrop{background:rgba(70,76,80,.45)}
.retouch-upload-box{width:min(430px,100%);box-sizing:border-box;background:#fff;border:1px solid #c8c8c8;border-radius:4px;padding:30px;text-align:center;box-shadow:0 8px 30px rgba(0,0,0,.18)}
.retouch-upload-box h2{font-size:24px;margin:0 0 16px;line-height:1.4}
.retouch-upload-percent{font-size:32px;font-weight:600;line-height:1.2;margin:0 0 16px}
.retouch-upload-box progress{width:100%;height:12px;accent-color:#333;display:block}
.retouch-upload-detail{margin:16px 0 0;font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:900px){.retouch-list{grid-template-columns:minmax(0,1fr);gap:14px}.retouch-row{grid-template-columns:180px minmax(0,1fr)}}
@media(max-width:640px){
 .retouch-entry{align-items:flex-start;flex-direction:column;gap:12px;padding-top:18px;margin-top:20px}
 .retouch-entry h3{font-size:17px}
 .retouch-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
 .retouch-head{padding:16px 14px 12px;gap:8px}
 .retouch-head h2{font-size:19px}
 .retouch-head .retouch-icon{width:36px;height:36px;font-size:27px}
 .retouch-body{padding:14px 14px 6px;scrollbar-gutter:auto}
 .retouch-controls{gap:10px;margin-bottom:12px}
 .retouch-dialog button.secondary,.retouch-dialog button.primary{font-size:13px;padding:10px 12px;min-height:40px}
 .retouch-row{--retouch-field-height:132px;grid-template-columns:minmax(100px,34%) minmax(0,1fr);gap:10px;padding:0}
 .retouch-filename{font-size:11px;line-height:1.4}
 .retouch-note-field textarea.retouch-note{font-size:16px;line-height:1.5;padding:9px}
 .retouch-final{padding:18px 14px}.retouch-final h3{font-size:18px}
 .retouch-footer{padding:12px 14px;padding-bottom:max(12px,env(safe-area-inset-bottom));gap:8px}
 .retouch-footer{align-items:flex-start}.retouch-footer>.retouch-actions{flex:1}
 .retouch-count{font-size:12px;padding-top:12px}
 .retouch-status{padding:0 14px;font-size:13px;max-height:100px}
 .retouch-actions{gap:6px}
 .retouch-confirm{padding:20px}
 .retouch-confirm h2{font-size:19px}
 .retouch-upload-box{padding:25px 20px}
}
@media(prefers-reduced-motion:reduce){.retouch-dialog *,.retouch-confirm *{scroll-behavior:auto}}

.retouch-album-dialog{width:min(680px,calc(100vw - 40px))}
.retouch-album-dialog .retouch-body{padding-bottom:20px}
.retouch-album-dialog .retouch-footer{justify-content:flex-end}
.retouch-album-copy{white-space:pre-wrap;overflow-wrap:anywhere;margin:18px 0 0;padding:16px;background:#fafafa;border:1px solid #ddd;line-height:1.7}
.retouch-album-copy p{margin:5px 0 0;font-size:14px}
.retouch-entry.retouch-review{display:block;min-width:0}
.retouch-review h3{margin-bottom:14px}
.retouch-review-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px;border:1px solid #d4d4d2;background:#fafaf9;min-width:0}
.retouch-review-copy{min-width:0;overflow-wrap:anywhere}
.retouch-review-copy h4{font-size:17px;line-height:1.45;margin:0 0 5px;color:var(--title,#50575a)}
.retouch-review-card>button{flex:none}
.retouch-review-state{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 16px;align-items:center;margin-top:12px}
.retouch-review-state>p{grid-column:1;margin:0}
.retouch-review-state>.retouch-review-actions{grid-column:2;grid-row:1/span 3}
.retouch-review-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px}
.retouch-review-status{font-weight:600;font-size:14px;line-height:1.6}
.retouch-review-hint{font-size:13px;line-height:1.6;color:#7d6e61}
.retouch-review-placeholder{height:72px;background:#fafaf9;border:1px solid #e5e5e3}
.retouch-history{margin-top:16px;border-top:1px solid #ddd;padding-top:12px}
.retouch-history>summary{font-size:13px;line-height:1.6;cursor:pointer;color:#777;padding:4px 0}
.retouch-history>summary:focus-visible{outline:2px solid #777;outline-offset:3px}
.retouch-history-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #eee}
.retouch-history-row:last-child{padding-bottom:0;border-bottom:0}
.retouch-history-row strong{font-size:14px;line-height:1.5}
.retouch-history-row>button{flex:none}
.retouch-history-row .retouch-entry-summary{font-size:12px}
@media(max-width:1000px){.retouch-review-state{grid-template-columns:minmax(0,1fr)}.retouch-review-state>.retouch-review-actions{grid-column:1;grid-row:auto;justify-content:flex-start;margin-top:5px}}
@media(max-width:640px){.retouch-review-card{align-items:flex-start;flex-direction:column;padding:13px}.retouch-review-card>button{width:100%}.retouch-review-actions{width:100%;gap:7px}.retouch-review-actions>button{flex:1;white-space:normal}.retouch-entry button.primary,.retouch-entry button.secondary{font-size:13px;padding:10px 12px;min-height:40px}.retouch-review-copy h4{font-size:16px}.retouch-history-row{gap:8px}}
@media(max-width:640px){.retouch-album-dialog{width:calc(100vw - 16px)}}

/* Studio request card: what the customer asked for, and one place to send the next file. */
.studio-request{display:grid;gap:14px;min-width:0;margin:16px 0 0;padding:20px;border:1.5px solid #252525;border-radius:3px;color:var(--ink,#62676a)}
.studio-sent{gap:12px;border:1px solid #bbb}
.studio-request h3{margin:0;font-size:20px;line-height:1.35;letter-spacing:-.3px;color:#252525;word-break:keep-all}
.studio-request h3:focus{outline:none}
.studio-sub{margin:3px 0 0;font-size:13px;line-height:1.6;word-break:keep-all}
.studio-check{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#252525;color:#fff;font-weight:700}
.studio-shots{list-style:none;display:grid;gap:10px;min-width:0;max-height:340px;margin:0;padding:0;overflow:auto;overscroll-behavior:contain}
.studio-shots li{display:grid;grid-template-columns:60px minmax(0,1fr);gap:12px;align-items:center;min-width:0}
.studio-shot{position:relative;display:flex;align-items:center;justify-content:center;width:60px;height:76px;overflow:hidden;border-radius:2px;background:#f2f2ef}
.studio-shot img{display:block;width:auto;height:auto;max-width:100%;max-height:100%}
.studio-shots strong{display:block;font-size:12px;line-height:1.5;color:var(--title,#505659);overflow-wrap:anywhere}
.studio-shots span{display:block;font-size:13.5px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.studio-tools{display:flex;flex-wrap:wrap;gap:8px}
.studio-tools>button{flex:1 1 180px}
.studio-fields{display:grid;gap:12px;min-width:0;margin:0;padding:14px 0 0;border:0;border-top:1px solid #dededb}
.studio-fields:disabled{opacity:.65}
.studio-field{display:grid;gap:4px;min-width:0;margin:0;font-size:13px;font-weight:500;color:var(--title,#505659)}
.studio-field input,.studio-field select,.studio-field textarea{display:block;width:100%;min-width:0;min-height:44px;margin:0;padding:9px 11px;border:1px solid #b4b4af;border-radius:2px;background:#fff;font-family:inherit;font-size:14px;font-weight:400;color:#252525}
.studio-field textarea{min-height:70px;line-height:1.55;resize:vertical}
.studio-auto{margin:0;font-size:12.5px;line-height:1.6}
.studio-more{font-size:13px}
.studio-more summary{min-height:28px;font-weight:500;color:var(--title,#505659);cursor:pointer}
.studio-more-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:8px}
.studio-size{display:grid;grid-template-columns:minmax(0,1fr) 76px;gap:6px}
.studio-status{margin:0;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.studio-status.is-error{color:#a33}
.studio-submit{width:100%;min-height:46px;font-weight:700}
.studio-copy-field textarea{min-height:104px;background:#f6f6f4;resize:none}
.retouch-memo{margin:0 0 14px;padding:8px 12px;border-left:2px solid #252525;font-size:14px;line-height:1.6;color:var(--title,#505659)}
.retouch-memo b{display:block;font-size:12px;font-weight:700;color:var(--muted,#858a8d)}
.retouch-memo span{white-space:pre-wrap;overflow-wrap:anywhere}
.retouch-older{min-width:0;margin-top:24px}
.retouch-older .retouch-history{margin:0;padding:0;border:0}
.retouch-older .retouch-history>summary{padding:0 0 9px;border-bottom:1px solid #dededb;font-size:14px;font-weight:600;color:var(--title,#505659)}
.retouch-older .retouch-history-row{flex-wrap:wrap}
.retouch-older .retouch-history-row:last-child{padding-bottom:12px;border-bottom:1px solid #dededb}
.retouch-history-actions{display:flex;flex-wrap:wrap;gap:8px;max-width:100%}
.retouch-older button.secondary{min-height:40px;padding:9px 14px;border:1px solid #aaa;border-radius:2px;background:#fff;color:var(--title,#505659);font-size:13px;line-height:1.3;cursor:pointer}
.retouch-older button:focus-visible{outline:2px solid #555;outline-offset:3px}
@media(max-width:640px){.studio-request{padding:16px}.studio-more-fields{grid-template-columns:minmax(0,1fr)}.retouch-history-actions{width:100%}.retouch-history-actions>button{flex:1 1 130px}}

/* Studio stage cards */
.studio-ready{gap:12px;border:1px solid #bbb}
.studio-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 14px;margin:0;font-size:13.5px;line-height:1.55}
.studio-facts dt{font-weight:600;color:var(--title,#505659)}
.studio-facts dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
/* One row per kind of file, each with its own button */
.studio-slots{min-width:0;margin:14px 0 0}
.slot-row{display:grid;grid-template-columns:132px minmax(0,1fr) auto;align-items:center;gap:2px 12px;min-height:46px;padding:5px 0;border-bottom:1px solid var(--line,#dededb)}
.slot-list:first-child .slot-row:first-child{border-top:1px solid var(--line,#dededb)}
.slot-row strong{min-width:0;font-size:14px;font-weight:600;line-height:1.4;color:var(--title,#505659);word-break:keep-all}
.slot-status{min-width:0;font-size:13px;line-height:1.45;color:var(--muted,#858a8d);word-break:keep-all;overflow-wrap:anywhere}
.slot-empty strong{font-weight:500;color:var(--muted,#858a8d)}
.slot-empty .slot-status{color:#a5a9ab}
.slot-row button{min-width:60px;min-height:36px;padding:6px 12px;border:1px solid #aaa;border-radius:2px;background:#fff;color:var(--title,#505659);font-size:13px;line-height:1.2;cursor:pointer}
.slot-row button:focus-visible,.slot-more:focus-visible{outline:2px solid #555;outline-offset:2px}
.slot-card-home:empty{display:none}
.slot-card-home .studio-request{margin:10px 0}
.slot-more{display:block;min-height:36px;margin:2px 0 0 auto;padding:6px 0;border:0;background:none;color:var(--muted,#858a8d);font-size:12.5px;cursor:pointer}
.studio-slots~.flow-shell::before{content:'고객에게 보이는 화면';display:block;margin-top:18px;padding-top:12px;border-top:1px solid var(--line,#dededb);font-size:12.5px;color:var(--muted,#858a8d)}
.studio-slots~.flow-shell>.flow-now:first-child{margin-top:12px}
.slot-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
@media(hover:hover){.slot-row button:hover{background:#f2f2ef;border-color:#555}.slot-more:hover{color:var(--title,#505659)}}
@media(max-width:560px){.slot-row{grid-template-columns:minmax(0,1fr) auto}.slot-row strong,.slot-status{grid-column:1}.slot-row>button,.slot-row>.slot-actions{grid-column:2;grid-row:1/span 2}}
/* A delivered file that left the customer's list */
.studio-gone{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 14px;padding:12px 14px;border:1px solid #d9c4c1;border-radius:2px;background:#fbf7f6}
.studio-gone p{flex:1 1 240px;margin:0;font-size:13.5px;line-height:1.6;color:var(--title,#505659);word-break:keep-all}
.studio-gone button{flex:none;min-height:40px}
/* Pick correction photos from the selection */
