:root{color-scheme:dark;--bg:#111111;--paper:#F1F1F1;--muted:#A8A8A8;--accent:#CCFF00;--line:#3B3B3B;--body:"Noto Sans KR",sans-serif;--display:"Barlow Condensed",Impact,sans-serif}
*{box-sizing:border-box}[hidden]{display:none!important}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--paper);font:14px/1.65 var(--body);-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.topbar{height:70px;max-width:1380px;margin:auto;padding:0 5%;display:flex;align-items:center;justify-content:space-between}.brand{font:800 20px/1 var(--display);letter-spacing:.03em}.brand span{color:var(--accent);font-size:25px;vertical-align:-2px}.back-link{font-size:12px;font-weight:600;color:#CACACA}.back-link span{color:var(--accent);margin-left:8px}main{max-width:1380px;margin:auto;padding:0 5%}.hero{height:680px;display:grid;grid-template-columns:1fr minmax(320px,42%);align-items:stretch;border-top:1px solid var(--line);overflow:hidden}.hero-copy{padding:90px 20px 64px 0;align-self:center}.eyebrow{margin:0 0 17px;color:var(--accent);font:700 12px/1.2 var(--body);letter-spacing:.17em}.eyebrow span{font-size:16px}.hero h1{font:900 clamp(76px,10.2vw,150px)/.78 var(--display);letter-spacing:-.035em;margin:0;text-transform:uppercase}.hero h1 em{font-style:normal;color:var(--accent)}.intro{font-weight:700;font-size:clamp(17px,1.8vw,22px);line-height:1.5;margin:34px 0 10px}.subintro{color:var(--muted);font-size:14px;max-width:380px;margin:0}.hero-cta{display:inline-flex;gap:58px;align-items:center;margin-top:31px;padding:12px 18px;background:var(--accent);color:#121212;font-weight:700;border-radius:2px}.hero-cta span{font-size:18px}.hero-image{position:relative;height:100%;min-height:0;overflow:hidden;background:#181818}.hero-image:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(17,17,17,.42),transparent 40%),linear-gradient(0deg,rgba(9,9,9,.86),transparent 38%)}.hero-image img{width:100%;height:100%;object-fit:cover;object-position:center 55%;filter:saturate(.8);display:block}.hero-image-caption{position:absolute;z-index:1;bottom:26px;left:25px;right:25px;display:flex;justify-content:space-between;align-items:end;font:800 20px/.95 var(--display);letter-spacing:.04em}.hero-image-caption b{font:700 11px/1 var(--body);letter-spacing:.1em;color:var(--accent)}
.step{padding:100px 0 78px;border-top:1px solid var(--line)}.section-title{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:38px}.section-title h2,.view-head h2{font-size:clamp(29px,4vw,47px);line-height:1.22;letter-spacing:-.055em;margin:0;font-weight:700}.section-title>p{color:var(--muted);margin:0 0 3px;font-size:13px}.dot{color:var(--accent)}.upload-row{display:flex;gap:25px;align-items:center}.drop{position:relative;display:flex;align-items:center;gap:18px;padding:20px 22px;background:#1C1C1C;cursor:pointer;min-width:0;flex:1;transition:background .2s}.drop:hover,.drop.hot,.drop:focus-within{background:#262626}.upload-icon{font-size:27px;color:var(--accent);line-height:1}.txt{display:grid;gap:3px;min-width:0}.txt b{font-size:14px}.txt>span{font-size:12px;color:var(--muted)}.pick{margin-left:auto;color:var(--accent);font-size:12px;font-weight:700}.sample-link,.text-button{border:0;background:none;color:var(--accent);padding:8px 0;font-weight:700;font-size:12px}.sample-link{white-space:nowrap}.sample-link span{margin-left:6px}.process-note{max-width:760px;font-size:12px;line-height:1.8;color:#959595;margin:16px 0 0}.status-row{display:flex;gap:16px;align-items:center}.status{font-size:12px;line-height:1.5;color:var(--accent);min-height:1.2em;margin-top:12px}.status.bad{color:#ff9f87}
.edit{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(260px,.82fr);gap:clamp(30px,5vw,70px);align-items:start}.pad{position:relative;overflow:hidden;justify-self:center;touch-action:none;line-height:0;background:repeating-conic-gradient(#262626 0 25%,#1C1C1C 0 50%) 50%/22px 22px}.pad canvas{width:100%;height:auto;display:block;cursor:crosshair}.split{position:absolute;left:0;right:0;height:0;border-top:2px dashed #fff;opacity:.85;pointer-events:none}.split span{position:absolute;right:7px;top:-25px;font-size:11px;line-height:1.4;background:#111111;color:#fff;padding:3px 7px}.split .grab{position:absolute;left:0;right:0;top:-19px;height:36px;pointer-events:auto;cursor:ns-resize;touch-action:none;display:flex;align-items:center;justify-content:center}.split .grab i{width:52px;height:14px;border-radius:99px;background:var(--accent);box-shadow:0 2px 8px #000}.tools{display:grid;gap:23px}.tools h3{margin:0 0 10px;font-size:13px}.btns{display:flex;flex-wrap:wrap;gap:8px}.btns button,.view-actions button:not(.text-button),.ctl button:not(.text-button){border:0;background:#292929;color:#D4D4D4;padding:9px 12px;font-size:12px}.btns button.on{background:var(--accent);color:#111111;font-weight:700}.tip{font-size:12px;color:var(--muted);margin:10px 0 0;line-height:1.7}.rng,.select-label,.ctl label{display:grid;gap:8px;color:#C1C1C1;font-size:12px}.rng small{font-size:11px;color:#8A8A8A;font-weight:400}.chk{display:flex!important;align-items:center;gap:8px!important;color:#D5D5D5!important}.chk input{accent-color:var(--accent)}input[type=range]{width:100%;accent-color:var(--accent)}select,input[type=text]{width:100%;border:0;border-bottom:1px solid #4E4E4E;color:var(--paper);background:#1C1C1C;padding:9px 10px;border-radius:0}.primary{border:0;background:var(--accent);color:#111111;font-weight:700;padding:15px 18px}.make{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:13px}.make span{font-size:18px}.passwrap{margin-top:35px;border-top:1px solid var(--line);padding-top:24px}.passwrap h3{font-size:13px}.passes{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.passes figure{margin:0;color:var(--muted);font-size:11px}.passes canvas{width:100%;height:auto;display:block}.passes b{display:block;color:var(--paper)}
.shelf{display:flex;flex-wrap:wrap;gap:28px;min-height:150px}.empty{font-size:13px;color:#868686;padding:20px 0}.medal{width:180px;background:none;border:0;padding:0;text-align:left;color:#E5E5E5;perspective:600px}.flat{position:relative;display:block;transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:transform .15s}.flat img{display:block;width:100%;height:auto}.medal small{display:block;margin-top:12px;font-size:11px;color:var(--muted)}.medal small b{color:var(--paper)}footer{max-width:1380px;margin:auto;padding:30px 5% 50px;display:flex;justify-content:space-between;border-top:1px solid var(--line);font:700 12px var(--display);letter-spacing:.1em;color:#9A9A9A}footer span:last-child{color:var(--accent)}
.shelf-tools{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:-18px 0 25px}.shelf-tools .text-button{padding:6px 0}.shelf-tools .text-button:disabled{cursor:not-allowed;opacity:.4}.shelf-tools #shelf-notice{color:var(--muted);font-size:12px}.medal .select-dot{display:none;position:absolute;top:8px;right:8px;width:25px;height:25px;place-items:center;border:1px solid #D7D7D7;border-radius:50%;background:#191919;color:transparent;font-size:15px;line-height:1}.shelf.is-selecting .select-dot{display:grid}.shelf.is-selecting .medal[aria-pressed="true"] .select-dot{background:var(--accent);border-color:var(--accent);color:#151515}.shelf.is-selecting .medal[aria-pressed="true"] img{filter:brightness(.7)}
.tech-link{margin-top:7px}.tech-overlay{z-index:45}.tech-view{max-width:690px}.tech-intro,.tech-method{font-size:13px;line-height:1.8;color:#C6C6C6}.tech-section{margin-top:27px}.tech-section h3{margin:0 0 12px;color:var(--accent);font-size:13px}.tech-total{font-size:13px;color:var(--paper)}.tech-list{margin:0;display:grid;gap:12px}.tech-list div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:14px}.tech-list dt{color:#A1A1A1;font-size:12px}.tech-list dd{margin:0;color:#E2E2E2;font-size:12px;line-height:1.65;white-space:pre-line;overflow-wrap:anywhere}@media(max-width:450px){.tech-list div{grid-template-columns:1fr;gap:3px}}
.matte-switch{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:0 0 12px;font-size:12px}.matte-switch span{color:var(--muted)}.matte-switch button{border:0;border-bottom:2px solid transparent;background:none;color:#BEBEBE;padding:4px 0;font-size:12px}.matte-switch button[aria-pressed="true"]{color:var(--accent);border-color:var(--accent);font-weight:700}.viewer-matte-link{display:block;margin:-5px 0 10px;padding:4px 0}
.overlay{position:fixed;inset:0;background:rgba(7,7,7,.88);display:none;z-index:10;padding:24px;overflow-y:auto}.overlay.open{display:block}.view{max-width:1080px;margin:0 auto;background:#151515;padding:26px}.view-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:24px}.view-head .eyebrow{display:block;margin-bottom:10px}.view-head h2{font-size:25px}.close-btn{border:0;background:none;color:#fff;font-size:20px;padding:0 3px}.viewer-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.66fr);gap:32px}.stage{position:relative;overflow:hidden;aspect-ratio:4/5;touch-action:pan-y;cursor:grab;background:radial-gradient(ellipse 60% 50% at 50% 40%,#373737,#1C1C1C 55%,#161616)}.stage:active{cursor:grabbing}.stage>canvas{display:block;width:100%;height:100%}.hint{position:absolute;bottom:18px;left:0;right:0;text-align:center;color:#C5C5C5;font-size:11px;pointer-events:none}.hint span{color:var(--accent)}.view-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:14px}.view-actions .status{margin:0}.viewer-note{font-size:11px;line-height:1.7;color:#929292}.ctl{display:grid;gap:22px;align-content:start}.ctl fieldset{border:0;border-top:1px solid var(--line);margin:0;padding:16px 0 0;min-width:0;display:grid;gap:14px}.ctl legend{font-size:13px;color:var(--accent);font-weight:700;padding:0 10px 0 0}.ctl .sub{display:grid;gap:14px}.ctl .drop.small{padding:12px 14px}.ctl .drop.small .txt b{font-size:12px}.snap{font-size:11px;color:var(--accent)}.dropfx{position:fixed;inset:10px;z-index:30;pointer-events:none;border:2px dashed var(--accent);background:rgba(13,13,13,.85);display:grid;place-items:center;color:var(--accent);font-size:20px}
@media(max-width:760px){.topbar{height:60px}.hero{height:500px;grid-template-columns:1fr 38%}.hero-copy{padding:65px 5px 55px 0}.hero h1{font-size:clamp(57px,11vw,90px)}.hero-image{min-height:440px}.hero-image-caption{left:12px;right:12px;bottom:15px;font-size:14px}.hero-image-caption b{display:none}.intro{font-size:15px;margin-top:25px}.subintro{font-size:12px}.hero-cta{gap:20px}.step{padding:70px 0}.edit{grid-template-columns:1fr;gap:32px}.pad canvas{max-height:none}.viewer-grid{grid-template-columns:1fr}.view{padding:20px}.overlay{padding:12px}.ctl{grid-template-columns:1fr 1fr}.section-title>p{font-size:12px}.shelf{gap:16px}.medal{width:calc(50% - 8px);max-width:190px}}
@media(max-width:450px){.brand{font-size:17px}.hero{height:auto;grid-template-columns:1fr}.hero-copy{padding:58px 0 48px}.hero-image{min-height:0;height:250px}.hero-image img{object-position:center 65%}.section-title{align-items:start;flex-direction:column;gap:13px;margin-bottom:25px}.upload-row{align-items:start;flex-direction:column;gap:10px}.drop{width:100%}.step{padding:58px 0}.ctl{grid-template-columns:1fr}.passes{grid-template-columns:repeat(2,1fr)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.flat{transition:none}}

/* WebGL을 쓸 수 없는 환경을 위한 가벼운 입체 미리보기 */
.stage{perspective:1100px}.css-medal{position:absolute;inset:7% 13% 10%;transform-style:preserve-3d;transform:rotateY(-18deg);will-change:transform;transition:transform .18s ease-out}.css-medal img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}.css-medal .css-face{backface-visibility:hidden}.css-medal .css-edge{filter:brightness(.4)}
.photo-stage{perspective:none;touch-action:pan-y;cursor:default}.photo-medal{position:absolute;inset:7% 13% 10%}.photo-medal img{display:block;width:100%;height:100%;object-fit:contain;user-select:none}.viewer-mode{display:flex;align-items:center;gap:14px;margin-bottom:14px;font-size:12px;color:var(--muted)}.viewer-mode select{width:auto;flex:1}.processing-settings{max-width:760px;margin:18px 0}.processing-settings label{display:flex;align-items:center;gap:18px;color:var(--paper);font-size:12px}.processing-settings select{width:auto;min-width:180px}.processing-settings p{font-size:12px;color:var(--muted);margin:8px 0}.recovery-note{border-left:2px solid var(--accent);padding:6px 16px;margin:22px 0;max-width:760px;font-size:12px;color:#C9C9C9}.recovery-note p{margin:0}.job-journal{font:12px/1.8 var(--body);white-space:pre-wrap;overflow-wrap:anywhere;color:#D1D1D1;margin:12px 0}.photo-stage .hint{padding:0 10px}.stage-col{min-width:0}

/* 정밀 누끼 편집 */
.editor-visual{min-width:0}.editor-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}.zoom-controls{display:flex;align-items:center;gap:4px;color:#E8E8E8}.zoom-controls button{min-width:32px;padding:5px 9px;color:var(--paper);border:0;background:#262626}.zoom-controls button:hover{color:var(--accent)}.zoom-controls output{min-width:52px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums}.zoom-controls #zoom-reset{margin-left:4px;font-size:11px}.background-control{display:flex;align-items:center;gap:8px;font-size:12px;color:#C3C3C3}.background-control select{width:auto;min-width:125px;padding:7px 8px;font-size:12px}.editor-viewport{max-height:min(670px,70vh);overflow:auto;overscroll-behavior:contain;background:#191919;scrollbar-color:#787878 #252525;scrollbar-width:thin}.pad{margin:0 auto;justify-self:auto;max-width:none}.pad[data-background="checker"]{background:repeating-conic-gradient(#aaa 0 25%,#dadada 0 50%) 0 0/20px 20px}.pad[data-background="white"]{background:#fff}.pad[data-background="gray"]{background:#929292}.pad[data-background="darkgray"]{background:#444}.pad[data-background="black"]{background:#000}.pad.brush-active canvas{cursor:none}.pad.pan-active canvas{cursor:grab}.pad.pan-active.dragging canvas{cursor:grabbing}.editor-hint{margin:10px 0 0;color:#9A9A9A;font-size:11px;line-height:1.6}.editor-hint b{color:#DDDDDD}.compare-original{margin-top:10px;font-size:11px;color:#A8A8A8!important}.brush-settings{display:grid;gap:18px}.rng span{display:flex;justify-content:space-between;gap:10px}.rng output{color:var(--accent);font-variant-numeric:tabular-nums}.brush-cursor{position:absolute;z-index:3;transform:translate(-50%,-50%);pointer-events:none;border:1.5px solid #fff;border-radius:50%;box-shadow:0 0 0 1px rgba(0,0,0,.8);display:flex;align-items:center;justify-content:center}.brush-cursor span{display:block;border:1px solid rgba(204,255,0,.9);border-radius:50%;box-shadow:0 0 0 1px rgba(0,0,0,.45)}.brush-cursor.square,.brush-cursor.square span{border-radius:0}.split .grab{left:50%;right:auto;width:60px;transform:translateX(-50%)}
@media(max-width:450px){.editor-viewport{max-height:62vh}.editor-bar{align-items:flex-start}.background-control{width:100%;justify-content:space-between}.background-control select{flex:1;max-width:220px}}
.editor-viewport[data-background="checker"]{background:repeating-conic-gradient(#aaa 0 25%,#dadada 0 50%) 0 0/20px 20px}.editor-viewport[data-background="white"]{background:#fff}.editor-viewport[data-background="gray"]{background:#929292}.editor-viewport[data-background="darkgray"]{background:#444}.editor-viewport[data-background="black"]{background:#000}.editor-viewport[data-background] .pad{background:transparent}
.mask-lock-wrap{display:grid;gap:3px}.mask-lock{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;padding:12px 14px;background:#252525;color:#F0F0F0;font-size:12px;font-weight:700;text-align:left}.mask-lock b{font-size:10px;letter-spacing:.08em;color:#A5A5A5}.mask-lock[aria-pressed="true"]{background:var(--accent);color:#111111}.mask-lock[aria-pressed="true"] b{color:#111111}.btns button small{font-size:9px;color:inherit;opacity:.65;margin-left:4px}
.editor-viewport[data-background="matte"]{background:#000}.editor-viewport[data-background="matte-invert"]{background:#fff}.cleanup-wrap .text-button{padding:0}.cleanup-wrap .tip{margin-top:5px}.cleanup-wrap button:disabled{cursor:not-allowed}
.edge-settings{display:grid;gap:16px;padding-top:19px;border-top:1px solid var(--line)}.edge-settings h3{margin:0}.edge-settings .tip{margin-top:4px}.edge-settings .text-button{justify-self:start;padding:0}
.back-preview{margin-top:16px;color:#D7D7D7;font-size:12px}.back-preview summary{cursor:pointer;color:var(--accent);font-weight:700}.back-preview p{color:var(--muted);font-size:11px}.back-preview img{display:block;max-width:100%;max-height:340px;object-fit:contain}.face-switch{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.face-switch button{border:0;padding:9px 15px;color:#CACACA;background:#292929;font-size:12px}.face-switch button[aria-pressed="true"]{background:var(--accent);color:#111111;font-weight:700}.face-switch span{color:#A2A2A2;font-size:11px;margin-left:auto}.angle-overlay{z-index:12}.angle-view{max-width:690px}.angle-intro{color:var(--muted);font-size:12px}.angle-stage{position:relative;display:grid;place-items:center;min-height:160px;max-height:53vh;overflow:auto;background:repeating-conic-gradient(#aaa 0 25%,#dadada 0 50%) 0 0/20px 20px}.angle-stage:after{content:"";position:absolute;top:0;bottom:0;left:50%;border-left:1px dashed rgba(255,255,255,.8);pointer-events:none}.angle-stage canvas{display:block;max-width:100%;max-height:53vh;width:auto;height:auto}.angle-controls{display:grid;gap:8px;margin:20px 0}.angle-actions{display:flex;gap:22px}.angle-controls .text-button{padding:0}.angle-controls .tip{margin:0}.angle-footer{display:flex;justify-content:flex-end;gap:22px;align-items:center}.angle-footer .primary{padding:12px 18px}
.photo-review{max-width:760px;padding-top:30px;margin-top:24px;border-top:1px solid var(--line)}.photo-review h3{font-size:21px;line-height:1.3;margin:0}.photo-review .eyebrow{margin-bottom:8px}.photo-review .tip{margin:5px 0 18px}.photo-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.photo-pair figure{margin:0;min-width:0}.photo-slot{position:relative;aspect-ratio:4/5;max-height:440px;display:grid;place-items:center;overflow:hidden;background:#222222;color:#989898;font-size:11px}.photo-slot img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:center}.photo-pair figcaption{display:flex;gap:10px;align-items:baseline;padding:8px 0;font-size:12px}.photo-pair figcaption span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:11px}.review-actions{display:flex;flex-wrap:wrap;align-items:center;gap:22px;margin-top:13px}.review-actions .primary{padding:13px 18px}.progress-overlay{position:fixed;inset:0;z-index:40;background:rgba(9,9,9,.93);display:grid;place-items:center;padding:24px}.progress-content{width:min(100%,430px);text-align:center}.progress-content h2{margin:0;font-size:clamp(25px,4vw,38px);line-height:1.2}.progress-content>p:not(.eyebrow){color:#C6C6C6;font-size:13px}.progress-spinner{width:48px;height:48px;margin:0 auto 25px;border:3px solid #3B3B3B;border-top-color:var(--accent);border-radius:50%;animation:medal-spin .9s linear infinite}.progress-track{height:5px;background:#353535;overflow:hidden;margin:24px 0 8px}.progress-fill{height:100%;width:0;background:var(--accent);transition:width .2s}.progress-fill.indeterminate{width:35%;animation:medal-progress 1.3s ease-in-out infinite}.progress-content .text-button{margin-top:15px}@keyframes medal-spin{to{transform:rotate(360deg)}}@keyframes medal-progress{from{transform:translateX(-110%)}to{transform:translateX(300%)}}@media(max-width:600px){.review-actions{justify-content:space-between}}@media(prefers-reduced-motion:reduce){.progress-spinner,.progress-fill.indeterminate{animation-duration:3s}}
.camera-entry{display:flex;gap:16px;align-items:center;margin-top:9px}.camera-entry span{font-size:11px;color:var(--muted)}.camera-overlay{z-index:14}.camera-view{max-width:700px}.camera-side{display:flex;gap:6px;margin-bottom:14px}.camera-side button{border:0;background:#292929;color:#CACACA;padding:9px 15px;font-size:12px}.camera-side button[aria-pressed="true"]{background:var(--accent);color:#111111;font-weight:700}.camera-window{position:relative;aspect-ratio:3/4;width:min(100%,420px);max-height:50vh;margin:auto;background:#181818;overflow:hidden}.camera-window video{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}.camera-guides{position:absolute;inset:0;pointer-events:none}.camera-guides .guide-frame{position:absolute;inset:10% 18%;border:1px dashed rgba(204,255,0,.9)}.camera-guides .guide-v{position:absolute;left:50%;top:0;bottom:0;border-left:1px solid rgba(255,255,255,.55)}.camera-guides .guide-h{position:absolute;top:50%;left:0;right:0;border-top:1px solid rgba(255,255,255,.55)}.camera-placeholder{position:absolute;inset:0;display:grid;place-items:center;color:#C6C6C6;font-size:12px;background:rgba(11,11,11,.8);text-align:center;padding:20px}.camera-help{color:#D1D1D1;font-size:12px;line-height:1.7}.camera-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:15px}.camera-actions .primary{padding:12px 18px}@media(max-width:450px){.camera-entry{align-items:flex-start;flex-direction:column;gap:0}.camera-view{padding:16px}.camera-window{max-height:45vh}}
.photo-guide{margin-top:32px;padding-top:22px;border-top:1px solid var(--line)}.photo-guide>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:20px}.photo-guide>summary::-webkit-details-marker{display:none}.photo-guide>summary>span:first-child{display:grid;gap:4px}.photo-guide>summary small,.guide-example small{color:var(--accent);font:700 10px var(--body);letter-spacing:.12em}.photo-guide>summary b{color:var(--paper);font-size:18px;letter-spacing:-.03em}.guide-toggle{color:var(--accent);font-size:24px;line-height:1}.guide-toggle:after{content:'+'}.photo-guide[open] .guide-toggle:after{content:'−'}.guide-content{padding-top:8px}.guide-intro{margin:0 0 17px;color:#AAAAAA;font-size:12px;line-height:1.7}.guide-examples{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}.guide-example{margin:0;display:grid;grid-template-columns:minmax(90px,140px) minmax(0,1fr);gap:16px;align-items:center}.guide-example img{display:block;width:100%;height:185px;object-fit:contain;background:#222222}.guide-example figcaption{display:grid;align-content:center;gap:6px;min-width:0}.guide-example strong{font-size:14px;color:var(--paper);line-height:1.4;letter-spacing:-.025em}.guide-example figcaption span{color:#AAAAAA;font-size:12px;line-height:1.65}.guide-example:nth-child(2) small{color:#d5bd9c}.guide-tips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:19px}.guide-tips p{margin:0;display:grid;gap:4px}.guide-tips b{font-size:12px;color:#DADADA}.guide-tips span{font-size:11px;line-height:1.6;color:#A0A0A0}.camera-examples{margin:10px 0}.camera-examples>summary{cursor:pointer;color:var(--accent);font-size:12px;font-weight:700}.camera-examples .guide-examples{margin-top:13px}.camera-examples .guide-example{grid-template-columns:85px minmax(0,1fr);gap:11px}.camera-examples .guide-example img{height:112px}.camera-examples .guide-example strong{font-size:12px}.camera-examples .guide-example figcaption span{font-size:11px}@media(max-width:700px){.guide-examples{gap:14px}.guide-example{grid-template-columns:1fr;align-content:start;gap:9px}.guide-example img{height:auto;aspect-ratio:4/5;max-height:210px}.guide-example strong{font-size:13px}.guide-example figcaption span{font-size:11px}.guide-tips{grid-template-columns:1fr;gap:12px}.camera-examples .guide-example{grid-template-columns:1fr}.camera-examples .guide-example img{height:120px;aspect-ratio:auto}}
.back-align{display:grid;gap:9px}.back-align p{margin:0;color:#BABABA;font-size:11px;line-height:1.6}.back-align canvas{display:block;width:100%;max-height:330px;object-fit:contain;background:#363636}.back-align .text-button{justify-self:start;padding:0}.back-align .tip{color:#A2A2A2}.ctl output{color:var(--accent);font-variant-numeric:tabular-nums}
.progress-content .progress-elapsed{color:var(--accent);font-size:16px;font-weight:700;font-variant-numeric:tabular-nums;margin:8px 0 0}.creation-timing{color:var(--accent);font-size:12px;line-height:1.7;margin:14px 0 0;font-variant-numeric:tabular-nums}
.whole-angle{margin-top:18px}.whole-angle label{display:grid;gap:7px;color:#C1C1C1;font-size:12px}.whole-angle output{color:var(--accent);font-variant-numeric:tabular-nums}.whole-angle>div{display:flex;flex-wrap:wrap;gap:20px}.whole-angle p{margin:0;color:#A2A2A2;font-size:11px;line-height:1.5}.whole-angle button:disabled{cursor:not-allowed}

/* 메달 살펴보기: 간결한 화면 */
.overlay{padding:0}
.view.v2{max-width:520px;min-height:100%;padding:0;display:flex;flex-direction:column}
.v2-top{display:flex;align-items:center;justify-content:space-between;padding:6px 6px 6px 14px}
.v2-top-right{display:flex}
.v2-icon{width:44px;height:44px;border:0;background:transparent;color:var(--paper);display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer}
.v2 .face-switch{margin:0;gap:0;border:1px solid var(--line);border-radius:18px;padding:2px;flex-wrap:nowrap}
.v2 .face-switch button{height:32px;padding:0 16px;border-radius:16px;background:transparent;font-size:13px}
.v2 .face-switch button[aria-pressed="true"]{background:var(--accent)}
.v2-more{padding:10px 16px 14px;border-top:1px solid #2B2B2B;display:grid;gap:10px;background:#1C1C1C}
.v2-more .viewer-mode{margin:0}
.v2-more-links{display:flex;flex-wrap:wrap;gap:6px 18px}
.v2-more p{margin:0;color:#A2A2A2;font-size:11px;line-height:1.5}
.v2 .stage{aspect-ratio:auto;height:min(62vh,640px);flex:0 0 auto}
.v2 .hint{bottom:10px}
.v2.v2-open .stage{height:min(40vh,420px)}
.v2-status{padding:0 16px}
.v2-status .status:empty{display:none}
.v2-status .status{margin:8px 0;font-size:12px}
.v2-tabs{display:flex;border-top:1px solid #2B2B2B;padding:0 8px}
.v2-tabs button{flex:1;height:44px;border:0;border-bottom:2px solid transparent;background:transparent;color:#CACACA;font:500 13px var(--body);cursor:pointer}
.v2-tabs button[aria-expanded="true"]{color:var(--accent);border-bottom-color:var(--accent);font-weight:700}
.v2-panels{display:block}
.v2-panels .v2-panel{border:0;margin:0;padding:14px 16px 6px;display:grid;gap:10px;min-width:0}
.v2-panels .v2-panel[hidden]{display:none}
.v2-panels label:not(.chk):not(.drop){grid-template-columns:64px 1fr auto;align-items:center;gap:12px;font-size:13px}
.v2-panels label output{order:3;font-size:12px}
.v2-panels label select,.v2-panels label input[type="text"]{grid-column:2 / 4}
.v2-panels .whole-angle{margin:0}
.v2-panels .whole-angle label{display:grid}
.v2-panels .sub{gap:10px}
.v2-panels .text-button{justify-self:start;padding:6px 0}
.v2-actions{display:flex;flex-wrap:nowrap;gap:8px;padding:8px 16px 16px;margin-top:auto}
.v2-actions button:not(.text-button){height:44px;padding:0 16px;font-size:13px;background:transparent;border:1px solid var(--line);color:var(--paper)}
.v2-actions #to-archive{flex:1;background:var(--accent);border-color:var(--accent);color:#111111;font-weight:700;font-size:14px}
@media(min-width:700px){.overlay{padding:24px}.view.v2{min-height:0}}

/* 등록 좌상단 · 앞뒤 좌하단 · 아이콘 탭 */
.v2-reg{height:34px;padding:0 14px;border:0;border-radius:17px;background:var(--accent);color:#111111;font:700 13px var(--body);cursor:pointer}
.v2-panels{margin-top:0}
.v2-bar{display:flex;align-items:center;gap:4px;border-top:1px solid #2B2B2B;padding:4px 4px 12px 12px}
.v2-bar .face-switch{flex:0 0 auto}
.v2-bar .face-switch button{padding:0 12px}
.v2-bar .v2-tabs{flex:1;border-top:0;padding:0;min-width:0}
.v2-bar .v2-tabs button{height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px;border-bottom:0;padding:0;min-width:0}
.v2-bar .v2-tabs button span{white-space:nowrap}
.v2 .stage{flex:1 1 auto;min-height:260px;height:auto}
.v2.v2-open .stage{height:auto;flex:1 1 auto;min-height:220px}
.v2 .stage>canvas{position:absolute;inset:0;width:100%;height:100%}
.v2 .stage{overflow:hidden}

/* 앞면·뒷면: 탭 줄 바로 위, 왼쪽 */
.v2-status{display:flex;align-items:center;gap:12px;padding:8px 12px}
.v2-status .face-switch{flex:0 0 auto}
.v2-status .status{margin:0 0 0 auto;text-align:right;font-size:11px}
.v2-bar{padding:4px 4px 12px 4px}
/* 앞면·뒷면 가운데 · 메달 조금 작게 */
.v2-status{position:relative;justify-content:center}
.v2-status .status{position:absolute;right:12px;top:50%;transform:translateY(-50%);margin:0;max-width:30%}
.v2 .stage>canvas{transform:translateY(8%) scale(.9);transform-origin:50% 50%}
.v2 .hint{bottom:4px}

/* 마감·금속 색 버튼 */
.v2-seg{grid-column:2 / 4;display:flex;gap:4px}
.v2-seg button{flex:1;height:36px;padding:0 4px!important;border:1px solid var(--line)!important;background:transparent!important;color:#CACACA!important;font:400 12px var(--body)!important;cursor:pointer;white-space:nowrap}
.v2-seg button[aria-pressed="true"]{border-color:var(--accent)!important;color:var(--accent)!important;font-weight:700!important}

/* 조절 = 표면 + 각도 */
.v2-panels fieldset.v2-in{border:0;margin:0;padding:0;display:grid;gap:10px;min-width:0}
.v2-panels .whole-angle{display:grid;gap:6px;border-top:1px solid #2B2B2B;padding-top:10px}
.v2-panels .whole-angle>div{gap:18px}
.v2-panels .whole-angle p:empty{display:none}
/* ---------- 모바일 전용 다듬기 화면 ---------- */
html.m-ui:not(.m-editing) #sec2{display:none!important}
html.m-ui.m-editing #sec2{position:fixed;inset:0;z-index:12;margin:0;padding:0;background:#151515;display:flex;flex-direction:column;max-width:none}
html.m-ui.m-editing #sec2[hidden]{display:none!important}
html.m-ui #sec2 .section-title,html.m-ui #sec2 .edit,html.m-ui #sec2 .editor-hint,html.m-ui #sec2 .back-preview,html.m-ui #sec2 .passwrap,html.m-ui #sec2 .tip,html.m-ui #sec2 h3,html.m-ui #sec2 label small{display:none!important}
html.m-ui .m-top{display:flex;align-items:center;justify-content:space-between;padding:6px 6px 6px 14px;flex:0 0 auto}
html.m-ui .m-top-right{display:flex}
html.m-ui .m-top .v2-icon:disabled{opacity:.3}
html.m-ui .m-top #make{height:34px;padding:0 14px;border:0;border-radius:17px;background:var(--accent);color:#111111;font:700 13px var(--body);margin:0;width:auto}
html.m-ui #sec2 .editor-visual{flex:1 1 auto;min-height:160px;display:flex}
html.m-ui #editor-viewport{flex:1;max-height:none;height:auto;display:flex;align-items:flex-start;justify-content:center;overflow:auto}
html.m-ui #pad{margin:auto}
html.m-ui #sec2 #st2{margin:0;padding:0 14px;font-size:11px}
html.m-ui #sec2 #st2:empty{display:none}
/* 종류별 묶음 */
html.m-ui .m-panels{flex:0 1 auto;max-height:38vh;overflow-y:auto}
html.m-ui .m-panel{display:grid;gap:10px;padding:12px 14px 4px}
html.m-ui .m-panel[hidden]{display:none}
html.m-ui .m-panel label.rng,html.m-ui .m-panel label.select-label,html.m-ui .m-panel label.background-control{display:grid;grid-template-columns:112px 1fr;align-items:center;gap:10px;margin:0;font-size:12px;color:#CACACA}
html.m-ui .m-panel label.rng>span{display:flex;justify-content:space-between;gap:6px;white-space:nowrap}
html.m-ui .m-panel label output{color:var(--accent);font-size:11px}
html.m-ui .m-panel .edge-settings{display:grid;gap:10px}
html.m-ui .m-panel .edge-settings>div:first-child{display:none}
html.m-ui .m-row{display:grid;grid-template-columns:112px 1fr;align-items:center;gap:10px;font-size:12px;color:#CACACA}
html.m-ui .m-seg{display:flex;gap:4px}
html.m-ui .m-seg button{flex:1;height:36px;padding:0 4px;border:1px solid var(--line);background:transparent;color:#CACACA;font:400 12px var(--body);white-space:nowrap}
html.m-ui .m-seg button[aria-pressed="true"]{border-color:var(--accent);color:var(--accent);font-weight:700}
html.m-ui .m-seg button:disabled{opacity:.35}
html.m-ui .m-panel .mask-lock{width:100%;height:36px;margin:0}
html.m-ui .m-panel .cleanup-wrap,html.m-ui .m-panel .mask-lock-wrap{margin:0}
html.m-ui .m-panel .text-button{justify-self:start;padding:6px 0}
html.m-ui .m-panel .matte-switch{margin:0}
/* 확대: 탭 줄 바로 위 가운데 */
html.m-ui .m-strip{display:flex;justify-content:center;padding:8px 12px;flex:0 0 auto}
html.m-ui .m-strip .zoom-controls{display:flex;align-items:center;gap:2px;border:1px solid var(--line);border-radius:18px;padding:2px}
html.m-ui .m-strip .zoom-controls button{height:32px;min-width:38px;padding:0 10px;border:0;border-radius:16px;background:transparent;color:var(--paper);font-size:13px}
html.m-ui .m-strip .zoom-controls output{min-width:44px;text-align:center;font-size:12px;color:#CACACA}
/* 바닥 탭 */
html.m-ui .m-bar{display:flex;border-top:1px solid #2B2B2B;padding:4px 4px 12px;flex:0 0 auto}
html.m-ui .m-bar button{flex:1;min-width:0;height:52px;padding:0;border:0;background:transparent;color:#CACACA;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font:500 11px var(--body);cursor:pointer}
html.m-ui .m-bar button span{white-space:nowrap}
html.m-ui .m-bar button[aria-expanded="true"]{color:var(--accent);font-weight:700}

/* 다듬기 탭 다시 정리 */
html.m-ui .m-bar button[aria-pressed="true"]{color:var(--accent);font-weight:700}
html.m-ui .m-bar button[aria-expanded="true"]{box-shadow:inset 0 2px 0 var(--accent)}
html.m-ui .m-h{font-size:11px;color:#8E8E8E;letter-spacing:.04em;border-top:1px solid #2B2B2B;padding-top:10px;margin-top:2px}
html.m-ui .m-h:first-child{border-top:0;padding-top:0;margin-top:0}
html.m-ui .m-strip .zoom-controls .m-pan{display:flex;align-items:center;gap:5px;padding:0 12px;border-right:1px solid var(--line);border-radius:16px 0 0 16px;margin-right:2px;font-size:12px;color:#CACACA}
html.m-ui .m-strip .zoom-controls .m-pan svg{width:16px;height:16px}
html.m-ui .m-strip .zoom-controls .m-pan[aria-pressed="true"]{color:var(--accent);font-weight:700}
html.m-ui .mask-lock-wrap[hidden]{display:none}
.v2-panels label[for="v-metal"]{display:none!important}

/* ---------- 높이 고정 조절 칸 ---------- */
.v2-panels .v2-panel.cu,html.m-ui .m-panel.cu{display:flex;flex-direction:column;gap:6px;height:104px;box-sizing:border-box;padding:12px 14px 0;border-top:1px solid #2B2B2B;overflow:hidden}
.v2-panels .v2-panel.cu[hidden],html.m-ui .m-panel.cu[hidden]{display:none}
.cu .cu-chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;flex:0 0 auto}
.cu .cu-chips::-webkit-scrollbar{display:none}
.cu .cu-chip{flex:0 0 auto;display:inline-flex;align-items:center;height:32px;padding:0 14px!important;border:1px solid var(--line)!important;border-radius:16px;background:transparent!important;color:#CACACA!important;font:500 12px var(--body)!important;white-space:nowrap;cursor:pointer;margin:0}
.cu .cu-chip[aria-pressed="true"]{border-color:var(--accent)!important;color:var(--accent)!important;font-weight:700!important}
.cu .cu-chip:disabled{opacity:.35}
.cu .cu-chip[hidden]{display:none}
.cu .cu-slot{height:44px;display:flex;align-items:center;flex:0 0 auto}
.cu .cu-row{display:flex;align-items:center;gap:12px;flex:1;min-width:0}
.cu .cu-row[hidden]{display:none}
.cu .cu-row input[type="range"]{flex:1;min-width:0;margin:0}
.cu .cu-row input[type="text"]{flex:1;min-width:0;height:38px;margin:0}
.cu .cu-row output{flex:0 0 auto;min-width:44px;text-align:right;font-size:13px;color:var(--accent);font-variant-numeric:tabular-nums}
.cu .cu-hint{margin:0;font-size:11px;color:#8E8E8E}
.cu .cu-hint[hidden]{display:none}
.v2-old[hidden]{display:none!important}
.v2-panels{max-height:none;overflow:visible}

/* 앞면·뒷면 / 확대 줄은 조절 칸 위로 */
.v2-status{padding:6px 12px 8px}
.v2 .hint{display:none}
html.m-ui .m-strip{padding:6px 12px 8px}

.v2 .stage>canvas{transform:translateY(4%) scale(.92)!important}
.v2 .stage>canvas{transform:translateY(7%) scale(1.04)!important}

/* 보는 방식: 사진 칸 오른쪽 아래 */
html.m-ui #sec2 .editor-visual{position:relative}
html.m-ui .m-float{position:absolute;right:8px;bottom:8px;display:flex;gap:6px;z-index:2}
html.m-ui .m-float button{display:flex;align-items:center;gap:4px;height:30px;padding:0 10px;border:0;border-radius:15px;background:rgba(17,17,17,.72);color:#F1F1F1;font:500 11px var(--body);cursor:pointer}
html.m-ui .m-float button svg{width:14px;height:14px}
html.m-ui .m-float button[aria-pressed="true"]{background:var(--accent);color:#111111;font-weight:700}

/* 되돌리기 · 다시 실행 · 초기화: 확대 줄 양옆 */
html.m-ui .m-strip{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:6px}
html.m-ui .m-hist{display:flex;justify-self:start}
html.m-ui .m-hist .v2-icon{width:40px;height:36px}
html.m-ui .m-hist .v2-icon:disabled{opacity:.3}
html.m-ui .m-reset{justify-self:end;height:32px;padding:0 10px;border:0;background:transparent;color:#CACACA;font:500 12px var(--body);cursor:pointer}
html.m-ui .m-reset:disabled{opacity:.3}
html.m-ui .m-strip .zoom-controls .m-pan{padding:0 9px}
html.m-ui .m-strip .zoom-controls button{min-width:34px;padding:0 8px}
/* ---------- 모바일: 사진 각도 바로잡기 ---------- */
html.m-ui .angle-overlay{z-index:13;padding:0}
html.m-ui .angle-view{max-width:none;height:100%;min-height:100%;padding:0;display:flex;flex-direction:column;position:relative;background:#151515}
html.m-ui .angle-view .view-head{position:absolute;top:6px;right:6px;margin:0;padding:0;z-index:2}
html.m-ui .angle-view .view-head>div,html.m-ui .angle-intro,html.m-ui #angle-auto,html.m-ui #angle-note,html.m-ui #angle-cancel{display:none!important}
html.m-ui .angle-view .close-btn{width:44px;height:44px;border:0;background:transparent;color:var(--paper);font-size:18px}
html.m-ui .angle-footer{order:-1;justify-content:flex-start;padding:6px 14px;height:56px;box-sizing:border-box;flex:0 0 auto}
html.m-ui .angle-footer .primary{height:34px;padding:0 14px;border:0;border-radius:17px;font:700 13px var(--body)}
html.m-ui .angle-stage{flex:1 1 auto;min-height:0;max-height:none;background:#707070}
html.m-ui .angle-stage canvas{max-height:100%}
html.m-ui .angle-controls{flex:0 0 auto;margin:0;padding:14px 14px 20px;border-top:1px solid #2B2B2B;display:flex;align-items:center;gap:12px}
html.m-ui .angle-controls label.rng{flex:1;display:flex;flex-direction:row-reverse;align-items:center;gap:12px;margin:0}
html.m-ui .angle-controls label.rng>span{font-size:0;flex:0 0 auto}
html.m-ui .angle-controls label.rng output{font-size:13px;color:var(--accent);min-width:44px;display:inline-block;text-align:right;font-variant-numeric:tabular-nums}
html.m-ui .angle-controls label.rng input{flex:1;min-width:0;margin:0}
html.m-ui .angle-actions{flex:0 0 auto}
html.m-ui #angle-reset{height:32px;padding:0 14px;border:1px solid var(--line);border-radius:16px;color:#CACACA;font:500 12px var(--body);text-decoration:none;background:transparent}
html.m-ui .m-reset{white-space:nowrap;padding:0 4px}
html.m-ui .m-strip{padding-left:6px;padding-right:10px;gap:2px}
html.m-ui .m-hist .v2-icon{width:36px}

/* 조절 칸: 세 줄 높이로 */
.v2-panels .v2-panel.cu,html.m-ui .m-panel.cu{height:152px;gap:6px;padding:10px 14px 0}
.cu>div{flex:0 0 40px;height:40px;align-items:center}
.cu>div[hidden]{display:none}
.cu .cu-slot{height:40px}
.cu .cu-chips{align-items:center}
.cu .cu-name{flex:0 0 56px;font-size:12px;color:#CACACA;white-space:nowrap}
.cu .cu-fields{gap:8px}
.cu .cu-fields .cu-chip{flex:0 0 auto}
.cu .cu-fields input[type="text"]{flex:1 1 0;min-width:0;width:0;height:36px;margin:0;padding:0 10px;background:#202020;border:0;border-bottom:1px solid var(--line);color:var(--paper);font:400 13px var(--body);border-radius:0}
.cu .cu-fields input[type="text"]:focus{outline:0;border-bottom-color:var(--accent)}

/* 둘 중 하나 고르기 (무광 · 유광) */
.cu .cu-seg{flex:0 0 auto;display:inline-flex;border:1px solid var(--line);border-radius:18px;padding:2px}
.cu .cu-seg button{height:30px;padding:0 16px!important;border:0!important;border-radius:15px;background:transparent!important;color:#CACACA!important;font:500 12px var(--body)!important;cursor:pointer}
.cu .cu-seg button[aria-pressed="true"]{background:var(--accent)!important;color:#111111!important;font-weight:700!important}

/* 확대 줄: 검은 막대 없이 사진 아래쪽에 띄운다. 배경·원본은 사진 오른쪽 위 */
html.m-ui .m-strip{position:absolute;left:0;right:0;bottom:8px;padding:0 8px;z-index:2;pointer-events:none}
html.m-ui .m-strip>*{pointer-events:auto}
html.m-ui .m-hist,html.m-ui .m-strip .zoom-controls,html.m-ui .m-reset{background:rgba(17,17,17,.78);border-radius:18px}
html.m-ui .m-strip .zoom-controls{border-color:transparent}
html.m-ui .m-hist{padding:0 2px}
html.m-ui .m-reset{height:36px;padding:0 12px;color:#F1F1F1}
html.m-ui .m-float{top:8px;bottom:auto}
.v2-panels .v2-panel.cu,html.m-ui .m-panel.cu{display:flex!important;justify-content:flex-start;align-content:flex-start}
.v2-panels .v2-panel.cu[hidden],html.m-ui .m-panel.cu[hidden]{display:none!important}
.cu>.cu-row,.cu>.cu-chips,.cu>.cu-slot{flex:0 0 40px!important}

/* 초기화: 조절 칸 오른쪽 위 글자 · 원본: 사진 오른쪽 아래 · 배경: 오른쪽 위, 누르면 목록 */
html.m-ui .m-panels{position:relative}
html.m-ui .m-panels>.m-reset{position:absolute;top:10px;right:10px;height:40px;padding:0 4px;background:transparent;border-radius:0;color:#CACACA;font:500 12px var(--body);z-index:1}
html.m-ui .m-panel.cu>div:first-child,html.m-ui .m-panel.cu>div[hidden]:first-child+div{margin-right:52px}
html.m-ui .m-orig{justify-self:end;display:flex;align-items:center;gap:4px;height:36px;padding:0 12px;border:0;border-radius:18px;background:rgba(17,17,17,.78);color:#F1F1F1;font:500 12px var(--body);cursor:pointer}
html.m-ui .m-orig svg{width:15px;height:15px}
html.m-ui .m-orig[aria-pressed="true"]{background:var(--accent);color:#111111;font-weight:700}
html.m-ui .m-float{flex-direction:column;align-items:flex-end;gap:4px}
html.m-ui .m-bgmenu{display:flex;flex-direction:column;background:rgba(17,17,17,.92);border-radius:12px;padding:4px;min-width:104px}
html.m-ui .m-bgmenu[hidden]{display:none}
html.m-ui .m-float .m-bgmenu button{height:36px;padding:0 12px;border-radius:8px;background:transparent;justify-content:flex-start;font-size:12px}
html.m-ui .m-float .m-bgmenu button[aria-pressed="true"]{background:transparent;color:var(--accent);font-weight:700}
html.m-ui .m-orig{white-space:nowrap}
html.m-ui .m-orig span{white-space:nowrap}

/* 각인: 켜기 + 갈래 고르기 */
.cu .eng-head{gap:8px;overflow:visible}
.cu .eng-sub{flex:1;display:flex}
.cu .eng-sub button{flex:1;padding:0 4px!important}
.cu .eng-sub button[aria-pressed="true"]{background:#2D2D2D!important;color:var(--accent)!important}
.cu .eng-box{display:flex;flex-direction:column;gap:6px;flex:0 0 auto;height:auto!important}
.cu .eng-box[hidden]{display:none}
.cu .eng-box>div{flex:0 0 40px;height:40px;display:flex;align-items:center}
.cu .eng-box>div[hidden]{display:none}
.cu .eng-box .cu-seg{flex:1;display:flex}
.cu .eng-box .cu-seg button{flex:1;padding:0 4px!important}
.cu .eng-box .cu-fields input[type="text"]{padding:0 8px;font-size:12px}
.cu .eng-note{margin:2px 0 0}
.cu .eng-box{align-items:stretch!important}
.cu .eng-box>div{width:100%}
.cu .cu-seg button{white-space:nowrap}
.cu .eng-box .cu-chips{overflow:visible}

/* 확대해도 줄어들지 않게 · 버튼 크기 통일 */
html.m-ui #pad{flex:0 0 auto}
html.m-ui #editor-viewport{touch-action:none}
html.m-ui .m-float>button,html.m-ui .m-orig{height:36px;padding:0 14px;border-radius:18px;font-size:13px;gap:5px}
html.m-ui .m-float>button svg,html.m-ui .m-orig svg{width:16px;height:16px}
html.m-ui #sec2 .editor-visual{flex:1 1 0;min-height:0;overflow:hidden}
html.m-ui .m-strip .zoom-controls button{white-space:nowrap;min-width:30px;padding:0 7px}
html.m-ui .m-strip .zoom-controls output{min-width:40px}
html.m-ui .m-strip .zoom-controls .m-pan{padding:0 8px}
html.m-ui .m-orig{padding:0 11px}
html.m-ui .m-strip{gap:4px;padding:0 6px}
html.m-ui #sec2 #st2{position:absolute;top:64px;left:8px;z-index:3;padding:6px 12px;border-radius:14px;background:rgba(17,17,17,.82);color:#F1F1F1;font-size:12px;max-width:60%}

/* 조절 칸 손잡이 · 단계 표시 */
.v2-handle{display:flex;align-items:center;justify-content:center;width:100%;height:24px;border:0;border-top:1px solid #2B2B2B;background:transparent;color:#A8A8A8;padding:0;cursor:pointer;flex:0 0 auto}
.v2-handle[aria-expanded="true"] svg{transform:rotate(180deg)}
.v2-panels .v2-panel.cu{border-top:0}
.v2-step{display:flex;align-items:center;gap:10px}
.v2-step[hidden]{display:none}
.v2-step span,html.m-ui .m-step{font-size:12px;color:#A8A8A8;white-space:nowrap}
html.m-ui .m-step{margin-right:auto;margin-left:10px}
html.m-ui .m-step[hidden]{display:none}
.v2-step2 #to-archive,.v2-step2 .v2-bar,.v2-step2 .v2-handle,.v2-step2 #v-more{display:none!important}

.v2-panels .v2-panel.cu{position:relative}
.v2-look-reset[hidden]{display:none}.v2-look-reset{position:relative;align-self:flex-end;margin:-24px 10px 0 0;z-index:3;flex:0 0 auto;height:24px;padding:0 4px;border:0;background:transparent;color:#A8A8A8;font:500 11px var(--body);cursor:pointer}
.cu .eng-f{flex:1 1 0;min-width:0;display:flex;align-items:center;gap:6px;height:38px;padding:0 10px;background:#202020;border:1px solid #303030;border-radius:8px;margin:0}
.cu .eng-f:focus-within{border-color:var(--accent)}
.cu .eng-f span{flex:0 0 auto;font-size:11px;color:#A8A8A8;white-space:nowrap}
.cu .eng-f input[type="text"]{flex:1 1 0;min-width:0;width:0;height:34px;padding:0!important;border:0!important;background:transparent!important;font-size:14px!important;color:var(--paper)}
.v2-engbar{display:none}
.v2-step2 .v2-engbar{display:flex;border-top:1px solid #2B2B2B;padding:2px 4px calc(10px + env(safe-area-inset-bottom,0px));flex:0 0 auto}
.v2-engbar button{flex:1;height:54px;border:0;background:transparent;color:#CACACA;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font:500 11px var(--body);padding:0;cursor:pointer}
.v2-engbar button[aria-pressed="true"]{color:var(--accent);font-weight:700}
.v2-step2 .eng-head{display:none!important}
.v2-step2 .v2-panel[data-panel="eng"]{padding-top:14px}
.cu .eng-two{gap:14px}
.cu .eng-two .cu-field{flex:1 1 0;min-width:0;height:40px}
.cu .eng-two .cu-field .cu-name{flex:0 0 auto;min-width:0;width:auto;margin-right:8px}
.cu .eng-two .cu-field input[type="range"]{flex:1 1 0;min-width:0;width:0}
.cu .eng-box{position:relative}
.cu .eng-reset{align-self:flex-end;flex:0 0 22px;height:22px;width:auto;padding:0 2px;border:0;background:transparent!important;color:#CACACA;font:500 12px var(--body);cursor:pointer}
.cu .eng-posbox{gap:2px!important}
.cu .eng-posbox>.cu-field{flex:0 0 34px!important;height:34px!important}
.v2-step2 .v2-panel[data-panel="eng"].eng-pos{padding-top:8px}
.v2-panels .v2-panel.cu.eng-pos[data-panel="eng"],.v2-panels .v2-panel.cu.eng-arc[data-panel="eng"]{height:auto;min-height:152px;padding-bottom:6px}
.v2-step2 .v2-panels .v2-panel.cu.eng-pos[data-panel="eng"],.v2-step2 .v2-panels .v2-panel.cu.eng-arc[data-panel="eng"]{height:152px;padding-bottom:0}
html.m-ui .m-panel.cu{height:106px}
html.m-ui .m-panel.cu .m-gone{display:none!important}
html.m-ui .m-panel.cu .m-lock-chip{flex:0 0 auto;margin-left:10px}
.split span{pointer-events:auto;cursor:ns-resize;touch-action:none;padding:6px 9px;top:-31px}
html.m-ui #sec2 #st2{white-space:pre-line;max-width:calc(100% - 110px)}
.v2-panels .v2-panel.cu[data-panel="eng"]{height:auto;min-height:198px;padding-bottom:6px}
.v2-step2 .v2-panels .v2-panel.cu[data-panel="eng"]{min-height:152px;height:152px;padding-bottom:0}
.v2-step2 .v2-panels .v2-panel.cu.eng-arc[data-panel="eng"]:not(.eng-pos){height:auto;padding-bottom:6px}
.cu .eng-f input[type="text"]{font-size:16px!important}
.cu .eng-f{position:relative}
.cu .eng-pick{flex:1 1 0;min-width:0;width:0;height:34px;margin:0;padding:0;border:0;background:transparent;color:var(--paper);font:400 16px var(--body);appearance:none;-webkit-appearance:none}
.cu .eng-pick option{color:#111}
.cu .eng-f:not(.eng-custom) .eng-pick+input{display:none}
.cu .eng-f.eng-custom .eng-pick{flex:0 0 22px;width:22px;color:transparent;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8aaa0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/16px no-repeat;order:3}
.cu .eng-date input[type="text"]{pointer-events:none}
.cu .eng-cal{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;opacity:0;font-size:16px;-webkit-appearance:none;appearance:none}
.cu .eng-grip{position:relative;z-index:2;touch-action:none;cursor:grab;padding:9px 2px 9px 12px;margin-left:-4px;user-select:none;-webkit-user-select:none;background:radial-gradient(circle,#6E6E6E 1.2px,transparent 1.5px) 0 50%/5px 5px repeat-y;background-size:5px 5px;background-position:0 50%}
.cu .eng-grip{background:none}
.cu .eng-grip::before{content:"";position:absolute;left:0;top:50%;width:7px;height:14px;transform:translateY(-50%);background:radial-gradient(circle,#7C7C7C 1.1px,transparent 1.4px) 0 0/3.5px 4.7px}
.cu .eng-f.eng-drag{border-color:var(--accent);background:#2B2B2B}
.cu .eng-f.eng-first span{color:var(--accent)}
.cu .eng-box .cu-seg button{font-size:12px;white-space:nowrap}
.cu .eng-f{-webkit-touch-callout:none;will-change:transform}
.cu .eng-f span{-webkit-user-select:none;user-select:none}
.cu .eng-f.eng-ghost{opacity:.28;border-style:dashed;border-color:var(--accent)}
.cu .eng-f.eng-lift{transition:transform .14s ease,box-shadow .14s ease;border-color:var(--accent);background:#2B2B2B;opacity:1}
.cu .eng-f.eng-lift.eng-lift-on{transform:scale(1.07) rotate(-2deg);box-shadow:0 14px 28px rgba(0,0,0,.6)}
.cu .eng-time input[type="text"]{pointer-events:none}
.cu .eng-f.eng-open{border-color:var(--accent)}
.eng-wheel{position:fixed;left:0;right:0;bottom:0;z-index:60;background:#1C1C1C;border-top:1px solid #3B3B3B;border-radius:16px 16px 0 0;padding:0 0 calc(10px + env(safe-area-inset-bottom,0px));box-shadow:0 -12px 30px rgba(0,0,0,.5);font-family:var(--body)}
.eng-wheel[hidden]{display:none}
.eng-wheel-top{display:flex;align-items:center;justify-content:space-between;height:48px;padding:0 8px;border-bottom:1px solid #2B2B2B}
.eng-wheel-top b{font-size:13px;font-weight:700;color:#F1F1F1}
.eng-wheel-top button{height:40px;padding:0 12px;border:0;background:transparent;color:#A8A8A8;font:500 14px var(--body);cursor:pointer}
.eng-wheel-top .eng-wheel-ok{color:var(--accent);font-weight:700}
.eng-wheel-body{position:relative;display:flex;justify-content:center;align-items:center;gap:4px;height:200px;padding:0 24px}
.eng-wheel-band{position:absolute;left:16px;right:16px;top:80px;height:40px;border-radius:10px;background:#2D2D2D;pointer-events:none}
.eng-wheel-col{position:relative;z-index:1;flex:0 0 64px;height:200px;overflow-y:scroll;scroll-snap-type:y mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:80px 0;box-sizing:border-box;touch-action:pan-y;overscroll-behavior:contain;-webkit-mask-image:linear-gradient(transparent,#000 30%,#000 70%,transparent);mask-image:linear-gradient(transparent,#000 30%,#000 70%,transparent)}
.eng-wheel-col::-webkit-scrollbar{display:none}
.eng-wheel-col div{height:40px;line-height:40px;text-align:center;scroll-snap-align:center;font-size:20px;color:#8C8C8C;font-variant-numeric:tabular-nums}
.eng-wheel-col div.on{color:#F1F1F1;font-weight:700;font-size:22px}
.eng-wheel-unit{position:relative;z-index:1;flex:0 0 22px;font-size:12px;color:#A8A8A8}
.cu .eng-f select,.cu .eng-f input,.cu .eng-f select:focus,.cu .eng-f input:focus,.cu .eng-f select:focus-visible,.cu .eng-f input:focus-visible{outline:0!important;box-shadow:none!important;-webkit-tap-highlight-color:transparent}
.cu .eng-f,.cu .eng-grip{-webkit-tap-highlight-color:transparent}
html.m-ui .m-bar{padding-bottom:22px!important}
.v2-bar{padding-bottom:22px!important}
.v2-step2 .v2-engbar{padding-bottom:22px}
.cu .eng-pick.eng-empty{color:#7C7C7C;font-size:13px}
html.m-ui #sec2 #st2{top:auto;bottom:62px;left:8px}
.cu .eng-f[data-n]::after{content:attr(data-n);position:absolute;top:-6px;left:-5px;width:16px;height:16px;border-radius:8px;background:#3B3B3B;color:#F1F1F1;font:700 10px/16px var(--body);text-align:center;pointer-events:none;z-index:3}
.cu .eng-f.eng-first[data-n]::after{background:var(--accent);color:#111111}
.cu .eng-box .cu-fields{overflow:visible}
html.m-ui .m-panel.cu[data-panel="brush"]{position:relative}
html.m-ui .m-panel.cu[data-panel="brush"] .cu-field{margin-right:52px}
html.m-ui .m-panel.cu[data-panel="brush"].m-has-lock .cu-field{margin-right:104px}
html.m-ui .m-panel.cu[data-panel="brush"] .m-lock-chip{position:absolute;right:14px;bottom:8px;margin:0}
/* ── PC 메달 화면: 모바일과 따로. 왼쪽 큰 메달 + 오른쪽 조절 묶음 ── */
.view.v2.v2-pc{max-width:1200px;width:100%;height:min(860px,calc(100vh - 48px));min-height:520px;display:grid;grid-template-columns:minmax(0,1fr) 420px;grid-template-rows:auto minmax(0,1fr) auto;border:1px solid #2B2B2B}
.v2-pc .v2-top{grid-column:1/-1;grid-row:1;padding:12px 12px 12px 20px;border-bottom:1px solid #2B2B2B}
.v2-pc .v2-top-right{display:flex;align-items:center;gap:4px}
.v2-pc #edit-again{display:inline-flex;flex-direction:row;align-items:center;gap:6px;height:36px;padding:0 14px;border:1px solid #3B3B3B;border-radius:18px;background:transparent;color:#F1F1F1;font:500 13px var(--body);cursor:pointer;margin-right:6px}
.v2-pc #edit-again svg{width:16px;height:16px}
.v2-pc .v2-more{grid-column:1;grid-row:2;align-self:start;justify-self:end;z-index:3;width:320px;border:1px solid #2B2B2B;margin:8px}
.v2-pc .stage{grid-column:1;grid-row:2;height:100%!important;min-height:0!important}
.v2-pc .v2-status{grid-column:1;grid-row:3;padding:12px 16px 16px}
.v2-pc .v2-handle,.v2-pc .v2-bar,.v2-pc .v2-engbar,.v2-pc .v2-step{display:none!important}
.v2-pc .v2-panels{grid-column:2;grid-row:2/4;overflow-y:auto;border-left:1px solid #2B2B2B;padding:0;max-height:none}
.view.v2.v2-pc .v2-panels .v2-panel.cu,.view.v2.v2-pc .v2-panels .v2-panel.cu[hidden]{display:flex!important;height:auto!important;min-height:0!important;padding:18px 20px 20px!important;border-top:0;border-bottom:1px solid #2B2B2B;position:relative;gap:8px}
.v2-pc .v2-panel[data-title]::before{content:attr(data-title);font:700 13px var(--body);color:var(--accent);letter-spacing:.02em;margin-bottom:4px;flex:0 0 auto}
.v2-pc .v2-look-reset{position:absolute;top:12px;right:16px;margin:0;align-self:auto}
.v2-pc .cu-hint{position:static}
@media(min-width:701px){html.pc-ui .eng-wheel{left:auto;right:32px;bottom:32px;width:380px;border-radius:16px;border:1px solid #3B3B3B}}
.v2-pc .v2-look-reset{background:transparent!important;border:0!important;color:#A8A8A8;height:24px;padding:0 4px;font:500 12px var(--body);cursor:pointer;width:auto}
@media(max-width:900px){
.view.v2.v2-pc{display:flex;flex-direction:column;height:auto;min-height:0}
.v2-pc .stage{height:min(56vh,520px)!important;flex:0 0 auto}
.v2-pc .v2-panels{border-left:0;border-top:1px solid #2B2B2B;overflow:visible}
.v2-pc .v2-more{width:auto;margin:0;border:0;border-top:1px solid #2B2B2B}
}
#ov.ov-pc.open{display:flex}
#ov.ov-pc .view.v2.v2-pc{margin:auto;flex:0 1 1200px;min-width:0}
/* ── PC 다듬기: 가운데 뜨는 넓은 창. 왼쪽 사진, 오른쪽 도구 ── */
html.pc-ui.m-editing body::before{content:"";position:fixed;inset:0;background:rgba(7,7,7,.88);z-index:11}
html.pc-ui.m-editing #sec2{inset:0;margin:auto;width:min(1200px,calc(100vw - 48px));height:min(860px,calc(100vh - 48px));display:grid;grid-template-columns:minmax(0,1fr) 400px;grid-template-rows:auto auto minmax(0,1fr);border:1px solid #2B2B2B}
html.pc-ui .m-top{grid-column:1/-1;grid-row:1;padding:12px 12px 12px 20px;border-bottom:1px solid #2B2B2B}
html.pc-ui .m-top #make{height:38px;padding:0 18px;border-radius:19px;font-size:14px}
html.pc-ui #sec2 .editor-visual{grid-column:1;grid-row:2/4;min-height:0}
html.pc-ui .m-bar{grid-column:2;grid-row:2;border-top:0;border-left:1px solid #2B2B2B;border-bottom:1px solid #2B2B2B;padding:8px 8px 8px!important}
html.pc-ui .m-bar button{height:60px;font-size:12px;border-radius:8px}
html.pc-ui .m-bar button[aria-expanded="true"]{box-shadow:none;background:#242424}
html.pc-ui .m-panels{grid-column:2;grid-row:3;border-left:1px solid #2B2B2B;max-height:none;overflow-y:auto}
html.pc-ui .m-panel.cu{height:auto!important;padding:20px 20px 20px!important;gap:12px!important;border-top:0!important;overflow:visible}
html.pc-ui .m-panels>.m-reset{top:18px;right:16px}
html.pc-ui .m-strip{bottom:14px;padding:0 14px}
html.pc-ui #sec2 #st2{bottom:72px;left:14px}
html.pc-ui .m-bar button:hover,html.pc-ui .m-strip button:hover{color:var(--accent)}
@media(max-width:900px){html.pc-ui.m-editing #sec2{display:flex;flex-direction:column;height:calc(100vh - 24px);width:calc(100vw - 24px)}html.pc-ui .m-bar,html.pc-ui .m-panels{border-left:0}html.pc-ui .m-bar{border-top:1px solid #2B2B2B}}
/* PC 각인: 줄 사이 여백 넉넉하게 */
.view.v2.v2-pc .v2-panels .v2-panel.cu[data-panel="eng"]{gap:16px!important;padding:22px 22px 28px!important}
.v2-pc .v2-panel[data-panel="eng"]::before{margin-bottom:2px}
.v2-pc .cu .eng-box{gap:16px!important}
.v2-pc .cu .eng-box>div{flex:0 0 44px;height:44px}
.v2-pc .cu .eng-box .cu-fields{gap:14px}
.v2-pc .cu .eng-f{height:44px}
.v2-pc .cu .eng-f input[type="text"],.v2-pc .cu .eng-pick{height:40px}
.v2-pc .cu .eng-box .cu-seg button{height:36px}
.v2-pc .cu .eng-posbox{gap:8px!important}
.v2-pc .cu .eng-posbox>.cu-field{flex:0 0 40px!important;height:40px!important}
.view.v2.v2-pc .v2-panels .v2-panel.cu{gap:12px}
/* PC 다듬기: 오른쪽 메뉴 하나에 브러시 · 톡 지우기 · 테두리를 모두 펼친다 (탭으로 바꾸지 않는다) */
html.pc-ui.m-ui .m-panels .m-panel.cu,html.pc-ui.m-ui .m-panels .m-panel.cu[hidden]{display:flex!important;border-bottom:1px solid #2B2B2B!important;position:relative}
html.pc-ui .m-panel.cu::before{font:700 13px var(--body);color:var(--accent);letter-spacing:.02em;flex:0 0 auto;margin-bottom:2px}
html.pc-ui .m-panel[data-panel="brush"]::before{content:"브러시 (지우개 · 되살리기)"}
html.pc-ui .m-panel[data-panel="tap"]::before{content:"톡 지우기"}
html.pc-ui .m-panel[data-panel="edge"]::before{content:"테두리"}
html.pc-ui .m-bar button:nth-child(4){display:none}
html.pc-ui .m-panel.cu>div:first-child,html.pc-ui .m-panel.cu>div[hidden]:first-child+div{margin-right:0}
html.pc-ui .m-panel.cu[data-panel="brush"] .cu-field,html.pc-ui .m-panel.cu[data-panel="brush"].m-has-lock .cu-field{margin-right:0}
html.pc-ui .m-panel.cu[data-panel="brush"] .m-lock-chip{position:static;margin-left:12px}
html.pc-ui .m-panels>.m-reset{top:14px;right:14px;height:28px}
html.pc-ui .m-bar{display:none!important}
html.pc-ui .m-panels{grid-row:2/4}
html.pc-ui .m-panel[data-panel="brush"]::before{content:"브러시"}
html.pc-ui .pc-tools{display:flex;gap:8px;flex:0 0 auto}
html.pc-ui .pc-tools button{flex:1;height:40px;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;border:1px solid #3B3B3B;border-radius:20px;background:transparent;color:#CACACA;font:500 13px var(--body);cursor:pointer;padding:0}
html.pc-ui .pc-tools button svg{width:18px;height:18px}
html.pc-ui .pc-tools button[aria-pressed="true"]{border-color:var(--accent);color:var(--accent);font-weight:700}
html.pc-ui .pc-tools button:hover{color:var(--accent)}
html.pc-ui .m-panel.cu[data-panel="brush"] .m-lock-chip{position:absolute;top:13px;right:66px;bottom:auto;margin:0;height:28px;padding:0 12px;font-size:12px}
.v2-eng-reset{display:none;align-self:flex-end;margin:-24px 10px 0 0;z-index:3;flex:0 0 auto;height:24px;padding:0 4px;border:0;background:transparent;color:#A8A8A8;font:500 11px var(--body);cursor:pointer;position:relative}
.view.v2[data-open="eng"].v2-engpos:not(.v2-step2):not(.v2-pc) .v2-eng-reset{display:block}
.view.v2:not(.v2-step2):not(.v2-pc) .v2-panels .v2-panel.cu.eng-pos[data-panel="eng"]{height:152px;min-height:152px;padding-bottom:0}
.view.v2:not(.v2-step2):not(.v2-pc) .eng-posbox .eng-reset{display:none}
.view.v2:not(.v2-step2):not(.v2-pc) .eng-posbox>.cu-field{flex:0 0 30px!important;height:30px!important}
html{background:#0C0C0C}
html.m-lock,html.m-lock body{overflow:hidden!important;overscroll-behavior:none;height:100%}
.gd-bar{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;margin:0 0 18px;padding:12px 14px;border:1px solid #2B2B2B;border-radius:12px;background:#161616}
.gd-bar[hidden]{display:none}
.gd-btn{height:38px;padding:0 16px;border:0;border-radius:19px;background:var(--accent);color:#111111;font:700 13px var(--body);cursor:pointer;flex:0 0 auto}
#gd-status{flex:1 1 200px;min-width:0;font-size:12px;color:#A8A8A8;line-height:1.5}
#gd-status.bad{color:#ffb4a8}
#shelf .medal.just-added .flat{outline:2px solid var(--accent);outline-offset:6px;border-radius:14px;transition:outline-color .4s}
/* 메달 창 여는 동작: 창은 짧게 페이드, 메달은 준비되면 천천히 (0.5초) 나타난다 — 탁 하고 뜨지 않게. 메달 · 고리 · 받침대 글씨가 같이 */
#ov.open.ov-fade{animation:ov-in .2s ease-out}
@keyframes ov-in{from{opacity:0}}
.stage{--v-in:.7s;--v-out:.25s}   /* 기본 빠르기 — 관리자 페이지 '메달 넘김 속도'에서 바꾼다 */
.v2 .stage>canvas{transition:opacity var(--v-in) cubic-bezier(.22,.61,.36,1)}
.css-medal{transition:transform .18s ease-out,opacity var(--v-in) cubic-bezier(.22,.61,.36,1)}
.photo-medal{transition:opacity var(--v-in) cubic-bezier(.22,.61,.36,1)}
/* 다른 메달로 넘어갈 때: 보던 메달이 짧게 사라지고 (--v-out) 새 메달이 천천히 나타난다 (--v-in) — 전시줄 · 고리는 그대로 */
.stage.v-wait canvas,.stage.v-wait .css-medal,.stage.v-wait .photo-medal{opacity:0;transition:opacity var(--v-out) ease-out}
@media(prefers-reduced-motion:reduce){#ov.open.ov-fade{animation:none}.v2 .stage>canvas,.photo-medal{transition:none}.css-medal{transition:transform .18s ease-out}}

/* 폰 단계: 1 다듬기 · 2 각인 · 3 확인 */
.v2-steps{display:flex;gap:10px}
.v2-steps i,html.m-ui .m-step i{font-style:normal;font-size:12px;color:#6F6F6F;white-space:nowrap}
.v2-steps i.on,html.m-ui .m-step i.on{color:var(--accent);font-weight:700}
html.m-ui .m-step{display:flex;gap:10px}
html.m-ui .m-step[hidden]{display:none}
.v2-trim #to-archive,.v2-trim #v-more,.v2-confirm #to-archive{display:none!important}
.v2-trim .v2-tabs button[data-tab="eng"]{display:none}
.v2-confirm .v2-bar,.v2-confirm .v2-handle,.v2-confirm .v2-look-reset,.v2-confirm .v2-eng-reset{display:none!important}
.v2-cbar{display:none}
.v2-confirm .v2-cbar{display:flex;align-items:center;gap:8px;flex:0 0 auto;padding:12px 16px calc(18px + env(safe-area-inset-bottom,0px));border-top:1px solid #2B2B2B}
.v2-cbar>div{display:flex;gap:8px;flex:2 1 0;min-width:0}
.v2-cbar button{flex:1 1 0;min-width:0;height:50px;padding:0 8px;border:1px solid #3A3A3A;border-radius:25px;background:transparent;color:#fff;font:700 15px var(--body);white-space:nowrap;cursor:pointer}
.v2-cbar .v2-chang{flex:0 0 92px;border:0;background:var(--accent);color:#111}
.v2-cbar .v2-chang.v2-wide{flex:1.3 1 0}
.v2-pc .v2-cbar{display:none!important}
/* 각인 화면 맨 위 한 줄: (켬/끔) 대회 이름 · 기록증 */
.cu .eng-extra{display:flex;gap:6px;align-items:center;flex:0 0 auto}
.cu .eng-extra input{flex:1 1 0;min-width:0;height:36px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:#1B1B1B;color:#fff;font:500 14px var(--body)}
.cu .eng-extra input::placeholder{color:#6F6F6F}
.cu .eng-extra .eng-cert{color:var(--accent)!important;border-color:var(--accent)!important;height:36px;border-radius:10px}
.cu.eng-pos .eng-extra{display:none}
.v2-step2 .v2-panels .v2-panel.cu[data-panel="eng"]:not(.eng-pos){min-height:198px;height:198px}

/* 폰: 닫기는 오른쪽 끝 · 아래 도구 줄은 바닥에 붙인다 */
html.m-ui:not(.pc-ui) .m-top .m-top-right{order:3;margin-left:auto}
html.m-ui:not(.pc-ui) .m-top .m-step{order:0;margin:0 auto 0 10px}
html.m-ui:not(.pc-ui) .m-top #make{order:2;margin-right:8px}
html.m-ui:not(.pc-ui) .m-top{padding:6px 6px 6px 6px}
.v2-trim .v2-top-right,.v2-step2 .v2-top-right,.v2-confirm .v2-top-right{display:contents}
.v2-trim #close,.v2-step2 #close,.v2-confirm #close{order:5}   /* 닫기는 오른쪽 끝, 그 왼쪽에 공유 */
.v2-trim #v-share,.v2-step2 #v-share,.v2-confirm #v-share{order:4}
.v2-trim .v2-step,.v2-step2 .v2-step,.v2-confirm .v2-step{order:0;flex:1 1 auto;min-width:0;margin-left:10px}
.v2-trim #v-step-done,.v2-step2 #v-step-done{order:2;margin-left:auto}
.v2-confirm #v-more{order:3}
html.m-ui:not(.pc-ui) .m-bar{padding-bottom:max(6px,env(safe-area-inset-bottom,0px))!important}
html:not(.pc-ui) .v2-step2 .v2-engbar{padding-bottom:max(8px,env(safe-area-inset-bottom,0px))}
html:not(.pc-ui) .v2-bar{padding-bottom:max(6px,env(safe-area-inset-bottom,0px))!important}

/* 만들기 취소 확인 */
.v2-ask{position:fixed;inset:0;z-index:9990;background:rgba(0,0,0,.72);display:flex;align-items:center;justify-content:center;padding:24px}
.v2-ask[hidden]{display:none}
.v2-ask>div{width:min(340px,100%);background:#1B1B1B;border:1px solid #333;border-radius:20px;padding:24px 18px 16px}
.v2-ask p{margin:0 0 18px;text-align:center;color:#fff;font:700 16px var(--body)}
.v2-ask>div>div{display:flex;gap:8px}
.v2-ask button{flex:1;height:46px;border-radius:23px;border:1px solid #3A3A3A;background:transparent;color:#fff;font:700 14px var(--body);cursor:pointer}
.v2-ask button[data-a="yes"]{border:0;background:var(--accent);color:#111}

/* 폰: '다음'은 화면 맨 아래 큰 단추 */
.v2-next{display:none}
.v2-trim .v2-next,.v2-step2 .v2-next{display:block;flex:0 0 auto;padding:6px 16px max(10px,env(safe-area-inset-bottom,0px))}
.v2-next button,html.m-ui .m-next #make{display:block;width:100%;height:46px;margin:0;padding:0;border:0;border-radius:23px;background:var(--accent);color:#111;font:700 15px var(--body);cursor:pointer}
html.m-ui .m-next{flex:0 0 auto;padding:6px 16px max(10px,env(safe-area-inset-bottom,0px))}
.v2-pc .v2-next{display:none!important}
.v2-trim #v-step-done,.v2-step2 #v-step-done{display:none!important}
html.m-ui:not(.pc-ui) .m-bar,html:not(.pc-ui) .v2-trim .v2-bar,html:not(.pc-ui) .v2-step2 .v2-engbar{padding-bottom:2px!important}

/* 아래 줄: 왼쪽 이전 · 오른쪽 다음 */
.v2-trim .v2-next,.v2-step2 .v2-next,html.m-ui .m-next{display:flex;gap:8px}
.v2-next button,html.m-ui .m-next #make,html.m-ui .m-next .m-prev{flex:1 1 0;width:auto;min-width:0}
.v2-next .v2-prev,html.m-ui .m-next .m-prev{height:46px;margin:0;padding:0;border:1px solid #3A3A3A;border-radius:23px;background:transparent;color:#fff;font:700 15px var(--body);cursor:pointer}
.v2-next [hidden],html.m-ui .m-next [hidden]{display:none}

/* 입체 계산 · 뒷면 사진 포함은 두 줄로 */
.v2-status .status{white-space:pre-line}

/* 윗줄: … 메뉴는 없앴다 (보기 방식 · 되돌리기 · 처리 정보 등). 공유는 닫기 옆 아이콘 — 다듬기 · 각인 중이나 아직 걸지 않은 새 메달에서는 숨긴다 */
#v-more,#v-more-panel{display:none!important}
.v2-trim #v-share,.v2-step2 #v-share,.v2-new #v-share{display:none!important}

/* 만드는 중 화면 (원형 게이지) — 뒤 화면이 비치지 않게 */
.progress-overlay{background:rgba(10,10,10,.985);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
.progress-content{width:min(100%,360px)}
.pr-ring{position:relative;width:168px;height:168px;margin:0 auto 26px}
.pr-ring svg{width:100%;height:100%;transform:rotate(-90deg);overflow:visible}
.pr-ring circle{fill:none;stroke-width:5}
.pr-bg{stroke:#262626}
.pr-arc{stroke:var(--accent);stroke-linecap:round;stroke-dasharray:276.5;stroke-dashoffset:276.5;transition:stroke-dashoffset .25s linear}
.pr-ring.spin .pr-arc{stroke-dasharray:62 214.5;stroke-dashoffset:0;transition:none}
.pr-ring.spin svg{animation:pr-spin 1.3s linear infinite}
@keyframes pr-spin{from{transform:rotate(-90deg)}to{transform:rotate(270deg)}}
.pr-mid{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.pr-mid b{font:800 50px/1 var(--display);color:#fff;font-variant-numeric:tabular-nums;letter-spacing:.01em}
.pr-mid b small{font-size:26px;color:var(--accent);margin:0 1px 0 2px}
.pr-mid span{font-size:12px;color:#9A9A9A;margin-top:6px}
.progress-content .eyebrow{margin:0 0 12px}
.progress-content h2{font-size:27px;font-weight:700}
.progress-content>p.pr-step{display:inline-flex;align-items:center;gap:7px;min-height:30px;margin:14px 0 0;padding:4px 14px;border-radius:15px;background:#1A1A1A;border:1px solid #2C2C2C;color:#D9D9D9;font-size:13px;font-weight:500;line-height:1.4}
.pr-step::before{content:"";width:6px;height:6px;flex:none;border-radius:50%;background:var(--accent)}
.progress-content>p.progress-note{margin:20px 0 0;white-space:pre-line;line-height:1.65;color:#A8A8A8;font-size:14px;font-variant-numeric:tabular-nums}
.progress-content>p.progress-note::first-line{color:#fff;font-weight:600;font-size:15px}
.pr-cancel{margin-top:26px;height:38px;padding:0 20px;border-radius:19px;border:1px solid rgba(255,255,255,.18);background:transparent;color:#D9D9D9;font:600 14px var(--body);cursor:pointer}
.pr-cancel:hover{border-color:var(--accent);color:var(--accent)}
@media (prefers-reduced-motion:reduce){.pr-ring.spin svg{animation-duration:3s}}
/* 다듬기: [앞면 | 뒷면] — 메달 보기 화면의 앞면 · 뒷면 단추와 같은 모양 */
html.m-ui .m-face{display:flex;align-items:center;border:1px solid var(--line);border-radius:18px;padding:2px;flex:0 0 auto}
html.m-ui .m-face[hidden]{display:none}
html.m-ui .m-face button{height:32px;padding:0 15px;border:0;border-radius:16px;background:transparent;color:#CACACA;font:500 13px var(--body);cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;gap:3px}
html.m-ui .m-face button[aria-pressed="true"]{background:var(--accent);color:#111111;font-weight:700}
html.m-ui .m-face button:disabled{cursor:wait;opacity:1}
html.m-ui .m-face button.m-face-add::after{content:"+";font:700 15px/1 var(--body);color:var(--accent);margin-left:1px}
html.m-ui .m-face button.m-face-add[aria-pressed="true"]::after{color:#111111}
html.m-ui .m-face.busy button:not([aria-pressed="true"]){animation:m-face-wait 1s ease-in-out infinite}
@keyframes m-face-wait{50%{opacity:.35}}
html.m-ui:not(.pc-ui) .m-top .m-face{order:0;margin-left:8px}
html.pc-ui .m-top .m-face{order:0}
html.pc-ui .m-top #make{order:2;margin-left:auto;margin-right:10px}
html.pc-ui .m-top .m-top-right{order:3}
html.ed-back #splitline{display:none}
html.ed-back.ed-backrib #splitline{display:block;pointer-events:none}html.ed-back.ed-backrib #splitline span,html.ed-back.ed-backrib #splitgrab{pointer-events:none;cursor:default}html.ed-back.ed-backrib #splitgrab{display:none}   /* 뒷면: 줄까지 보일 때 경계선은 보이되 끌지 않는다 (앞면 틀에 맞춰 정해진다) */
@media (prefers-reduced-motion:reduce){html.m-ui .m-face.busy button{animation:none}}
/* 메달 배경 (관리자 페이지에서 고른 장면): 그림은 메달 뒤에 깔리고, 양옆은 바탕색으로 자연스럽게 사라진다 */
.stage.sbg{background:var(--sbfill,#0c0c0c)!important}
.v-sbg{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.v-sbg[hidden]{display:none}
.v-sbg img{position:absolute;left:0;top:0;max-width:none;transform-origin:0 0;user-select:none;-webkit-user-drag:none;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%)}
.stage.sbg>canvas{position:absolute;inset:0;width:100%;height:100%;z-index:1}
.v2 .stage.sbg>canvas{transform:none!important}
.stage.sbg .css-medal,.stage.sbg .photo-medal{z-index:1}
.v-ribx{position:absolute;left:0;width:100%;pointer-events:none;transform:translateZ(4.5px)}
.photo-medal .v-ribx{transform:none}
.v-sbg .v-hanger{position:absolute;left:0;top:0;max-width:none;transform-origin:0 0;pointer-events:none;user-select:none;-webkit-user-drag:none;-webkit-mask-image:none;mask-image:none}
.v-sbg .v-hanger{transition:opacity var(--v-in,.5s) cubic-bezier(.22,.61,.36,1)}   /* 전시줄 · 고리는 메달과 같이 나타난다 */
.stage.v-wait:not(.v-wire1) .v-hanger{opacity:0;transition:opacity var(--v-out) ease-out}   /* 넘길 때 메달과 같이 사라진다 (기본) */
/* 관리자 '전시줄 · 고리 먼저 보이기' 켬: 걸린 채로 있다 — 올려 건 긴 메달에서 넘길 때만 메달과 같이 사라지고, 높이가 바뀌는 순간엔 숨겨서 옮긴다 */
.stage.v-wait.v-hng-off .v-hanger{opacity:0;transition:opacity var(--v-out) ease-out}
.stage.v-hng-pop .v-hanger{opacity:0;transition:none}
/* 불러오는 동안에도 전시줄 · 고리는 제자리에 보인다 */
/* 이전 · 다음 메달 */
.v-nav{position:absolute;top:50%;z-index:4;width:40px;height:40px;margin-top:-20px;display:grid;place-items:center;padding:0;border:1px solid rgba(255,255,255,.16);border-radius:50%;background:rgba(12,12,12,.5);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .15s,opacity .2s}
.v-nav[hidden]{display:none}
.v-nav:active{background:rgba(204,255,0,.9);color:#111}
.v-nav.prev{left:10px}.v-nav.next{right:10px}
.v-nav svg{display:block}
@media (hover:hover){.v-nav:hover{background:rgba(30,30,30,.75)}}
.v2-pc .v-nav{width:48px;height:48px;margin-top:-24px}.v2-pc .v-nav.prev{left:16px}.v2-pc .v-nav.next{right:16px}
.stage.v-wait .v-nav{opacity:.5}
.v-sbg .v-plate{position:absolute;left:0;top:0;overflow:visible;pointer-events:none;transition:opacity var(--v-in) cubic-bezier(.22,.61,.36,1)}
.v-sbg .v-plate text{font-family:'IBM Plex Sans KR','Inter',system-ui,sans-serif;font-weight:700;letter-spacing:.05em}
.stage.v-wait .v-plate{opacity:0;transition:opacity var(--v-out) ease-out}
.v-sbg .v-rec text{font-family:'Barlow Condensed','IBM Plex Sans KR',system-ui,sans-serif;font-weight:600;letter-spacing:.08em}
.v-sbg .v-rec .nm{font-family:'IBM Plex Sans KR','Inter',system-ui,sans-serif;font-size:.82em;letter-spacing:.06em}
/* 각인 · 자유 배치 */
.eng-freebox{display:flex!important;flex-direction:column;gap:6px;flex:0 0 auto!important;height:auto!important}
.eng-freebox[hidden]{display:none!important}
.eng-freebox>.cu-row{flex:0 0 40px;height:40px}
.eng-fr-b{flex:0 0 26px;width:26px;height:26px;padding:0;border:0;border-radius:6px;background:transparent;color:#8A8A8A;font-size:15px;line-height:1;cursor:pointer}
.eng-fr-b.on{color:var(--accent);background:rgba(204,255,0,.12)}
button.eng-f.eng-fr-add{justify-content:center;border-style:dashed;color:var(--accent);font-size:14px;font-weight:600;cursor:pointer;font-family:inherit}
.eng-f.eng-fr.eng-first{border-color:var(--accent)}
.eng-box .cu-seg button{white-space:nowrap;padding-left:2px;padding-right:2px;letter-spacing:-.03em}
.v2-step2 .v2-panels .v2-panel.cu.eng-free[data-panel="eng"]:not(.eng-pos){height:auto;min-height:198px;max-height:292px;overflow-y:auto;padding-bottom:6px}
.eng-box>.eng-freebox{align-self:stretch;width:100%;align-items:stretch}
.eng-freebox>.cu-row{width:100%;flex:0 0 40px!important}
.eng-freebox .eng-f.eng-fr input[type="text"]{flex:1 1 auto;width:auto;min-width:0}
.eng-freebox .eng-fr-b{flex:0 0 24px!important;width:24px!important;min-width:0!important;height:26px!important;min-height:0!important;padding:0!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#8A8A8A!important;font-size:15px!important;box-shadow:none!important}
.eng-freebox .eng-fr-b.on{color:var(--accent)!important;background:rgba(204,255,0,.12)!important}
.eng-freebox button.eng-f.eng-fr-add{flex:1 1 0!important;height:38px!important;min-height:0!important;padding:0 8px!important;background:transparent!important;border:1px dashed #4a5a12!important;border-radius:8px!important;color:var(--accent)!important;font-size:14px!important;font-weight:600!important;white-space:nowrap}
.eng-freebox .eng-f.eng-fr{gap:2px;padding:0 4px 0 10px}
.eng-freebox .eng-f.eng-fr>span{display:none}
.eng-freebox .eng-fr-b{margin:0!important;flex:0 0 22px!important;width:22px!important;max-width:22px!important}
/* PC 메달 보기: 메달만 크게 (모바일 확인 화면처럼). '다듬기' · '각인'을 누를 때만 오른쪽 칸이 열린다 */
#ov .view.v2.v2-pc.v2-pcview{grid-template-columns:minmax(0,1fr)!important;max-width:1040px}
#ov .view.v2.v2-pc.v2-pcview .v2-panels,#ov .view.v2.v2-pc.v2-pcview .v2-status .status{display:none!important}
#ov .view.v2.v2-pc .v2-top{justify-content:flex-end}
#ov .view.v2.v2-pc .v2-status{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px}
#ov .view.v2.v2-pc .v2-status .face-switch{grid-column:2}
#ov .view.v2.v2-pc .v2-status .status{grid-column:3;justify-self:end;text-align:right}
#ov .view.v2.v2-pc #to-archive{display:none!important}
#ov .view.v2.v2-pc.v2-pcnew #to-archive{display:inline-flex!important;align-items:center;grid-column:3;justify-self:end;height:40px;padding:0 20px;border-radius:20px;font-size:14px}
#ov .view.v2.v2-pc.v2-pcnew .v2-status .status{display:none!important}
.v2-pcbtns,.v2-pccut,.v2-pcdone{display:none}
#ov .view.v2.v2-pc .v2-pcbtns{display:flex;gap:6px;margin-right:6px}
#ov .view.v2.v2-pc .v2-pcbtns button{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 15px;border:1px solid #3B3B3B;border-radius:18px;background:transparent;color:#F1F1F1;font:600 13px var(--body);cursor:pointer}
#ov .view.v2.v2-pc .v2-pcbtns button:hover{border-color:#5A5A5A}
#ov .view.v2.v2-pc .v2-pcbtns button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:#111111}
/* 다듬기: 자르기 · 조절 · 뒷면 사진 / 각인: 각인만 */
#ov .view.v2.v2-pc.v2-pctrim .v2-pccut{display:flex;flex-direction:column;gap:12px;padding:18px 20px 20px;border-bottom:1px solid #2B2B2B}
#ov .view.v2.v2-pc .v2-pccut::before{content:attr(data-title);font:700 13px var(--body);color:var(--accent);letter-spacing:.02em}
#ov .view.v2.v2-pc .v2-pccut #edit-again{width:100%;justify-content:center;height:40px}
#ov .view.v2.v2-pc.v2-pctrim .v2-panels .v2-panel[data-panel="eng"]{display:none!important}
#ov .view.v2.v2-pc.v2-pceng .v2-panels .v2-panel[data-panel="look"],#ov .view.v2.v2-pc.v2-pceng .v2-panels .v2-panel[data-panel="back"]{display:none!important}
#ov .view.v2.v2-pc:not(.v2-pcview) .v2-pcdone{display:block;position:sticky;bottom:0;z-index:2;margin-top:auto;padding:14px 20px 18px;background:#151515;border-top:1px solid #2B2B2B}
#ov .view.v2.v2-pc .v2-pcdone button{width:100%;height:44px;border:0;border-radius:22px;background:var(--accent);color:#111111;font:700 14px var(--body);cursor:pointer}
/* 메달 보기 아래 (폰): 다듬기 · 각인 · 기록증 · 닫기 */
.v2-cbar label{flex:1 1 0;min-width:0;height:50px;padding:0 8px;border:1px solid #3A3A3A;border-radius:25px;background:transparent;color:#fff;font:700 15px var(--body);white-space:nowrap;cursor:pointer;display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent}
/* PC: 위 오른쪽 알약에 기록증 */
#ov .view.v2.v2-pc .v2-pcbtns label{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 15px;border:1px solid #3B3B3B;border-radius:18px;background:transparent;color:#F1F1F1;font:600 13px var(--body);cursor:pointer;white-space:nowrap}
#ov .view.v2.v2-pc .v2-pcbtns label:hover{border-color:#5A5A5A}
#ed-cover{position:fixed;inset:0;z-index:11;background:#151515;display:flex;align-items:center;justify-content:center;color:#8C8C8C;font-size:14px;font-weight:600}#ed-cover[hidden]{display:none}   /* 메달 창 → 편집 화면 사이: 진열장이 비치지 않게 */
.v2-status .lid-switch{flex:0 0 auto;height:38px;margin-left:8px;padding:0 18px;border:1px solid var(--line);border-radius:19px;background:transparent;color:#CACACA;font-size:13px}
.v2-status .lid-switch[aria-pressed="true"]{color:#FFFFFF;border-color:#5A5A5A}
.v2-status .lid-switch[hidden]{display:none}
/* 3D 트로피 (trophy3d.js · lab.js trophyView): 트로피 진열장 받침대 위 — 고리 · 전시줄 · 돌려보기 안내 · 다듬기는 없다 */
.stage .v-t3{position:absolute;left:0;top:0;pointer-events:none}
.stage.v-tro3d .v-hanger,.stage.v-tro3d .hint{display:none!important}
#ov.v-tro3d #v-go-trim,#ov.v-tro3d .v2-tabs [data-k="trim"],#ov.v-tro3d .v2-tabs [data-tab="trim"]{display:none!important}
.stage.v-tro3d{touch-action:none;cursor:grab}   /* 3D 트로피: 끌어서 돌린다 (놓으면 제자리로) */
.stage.v-tro3d:active{cursor:grabbing}
