:root{color-scheme:light;--ink:#163d65;--blue:#31689a;--line:#d6e3ed;--muted:#677b8c;--paper:#f2f7fb;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans KR',sans-serif;color:#19344a;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid #1598df;outline-offset:3px}a{color:var(--blue)}
.shop-page{background:#f4f9fc}.shop-page main{max-width:1153px;margin:auto}.loading{text-align:center;padding:4rem 1rem}.product-stage{position:relative;width:100%;isolation:isolate}.product-image{display:block;width:100%;height:auto}.video-slot{position:absolute;display:block;padding:0;margin:0;border:0;border-radius:4%;background:#f6fbff;overflow:hidden;z-index:1}.video-slot>img{width:100%;height:100%;display:block}.play-mark{position:absolute;inset:auto 8% 8% auto;display:grid;place-items:center;width:22%;aspect-ratio:1;border-radius:50%;background:#ffffffd9;color:#153f68;font-size:clamp(.75rem,2.2vw,1.5rem);box-shadow:0 2px 8px #163d6540}.video-slot:hover .play-mark{background:white}.video-slot:focus-visible{outline-offset:2px}
dialog#player{position:fixed;width:min(94vw,1100px);max-height:94dvh;padding:1rem;border:0;border-radius:1rem;overflow:auto;background:#091521;color:white;box-shadow:0 20px 100px #0009}dialog::backdrop{background:#001629cf}#original{display:block;width:100%;max-height:80dvh;background:#000}#video-caption{margin:.7rem 0 0;text-align:center}.close-player{position:absolute;right:1rem;top:1rem;z-index:3;width:44px;height:44px;font-size:2rem;border:0;border-radius:50%;background:#fff;color:#18374c}
.admin-page{background:var(--paper);min-height:100dvh}.admin-header{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:1rem 2rem;background:#fff;border-bottom:1px solid var(--line)}.wordmark{font-weight:850;letter-spacing:.12em;color:var(--ink);font-size:1.15rem}.admin-header small{font-size:.9rem;font-weight:500;letter-spacing:0;margin-left:1rem;color:var(--muted)}.header-actions{display:flex;gap:.7rem;align-items:center}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.6rem 1rem;border:1px solid var(--line);border-radius:.55rem;background:#fff;color:var(--ink);text-decoration:none;font-weight:650;white-space:nowrap}.btn.primary{background:var(--blue);color:#fff;border-color:var(--blue)}.btn.danger{color:#b84040}.btn.compact{font-size:.9rem;padding:.4rem .6rem}.login-panel{width:min(92vw,430px);margin:10vh auto;padding:2rem;background:white;border:1px solid var(--line);border-radius:1rem;box-shadow:0 12px 45px #244d7012}.login-panel h1{font-size:1.6rem;margin:0 0 .7rem}.login-panel p{color:var(--muted);line-height:1.7}.field{display:grid;gap:.4rem;margin:1rem 0}.field label{font-weight:650;font-size:.9rem}.field input,.field select{width:100%;min-height:44px;border:1px solid #bdcfdf;border-radius:.45rem;padding:.65rem;background:#fff;color:inherit}.field input:focus,.field select:focus{outline:2px solid #72b4e5;outline-offset:1px}.error{color:#b73438;font-size:.95rem}.status{margin:0;padding:.75rem 1.4rem;background:#e8f2fa;border-bottom:1px solid var(--line);font-size:.9rem;line-height:1.5}.admin-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:1.5rem;padding:1.5rem;max-width:1800px;margin:auto}.controls{align-self:start;display:grid;gap:1rem}.card{background:#fff;border:1px solid var(--line);border-radius:.8rem;padding:1.2rem}.card h2{font-size:1rem;margin:0 0 .65rem;color:var(--ink)}.hint{font-size:.875rem;line-height:1.6;color:var(--muted);margin:.6rem 0}.upload-label{width:100%}.file-input{position:absolute;left:-9999px}.slot-list{display:grid;gap:.4rem;max-height:280px;overflow:auto}.slot-item{display:flex;justify-content:space-between;gap:.5rem;text-align:left;background:#f3f7fa;border:1px solid transparent;padding:.65rem;border-radius:.45rem;min-height:44px;font-size:.9rem;color:var(--ink)}.slot-item.active{border-color:var(--blue);background:#e7f1fa}.slot-item small{color:var(--muted)}.coords{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.coords .field{margin:0}.controls-row{display:flex;gap:.5rem;flex-wrap:wrap}.preview-panel{min-width:0}.preview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.8rem 1rem;background:#fff;border:1px solid var(--line);border-radius:.65rem;margin-bottom:1rem;flex-wrap:wrap}.segmented{display:flex;gap:.35rem}.segmented .active{background:#e3eff9;border-color:#649ac6}.preview-scroll{overflow:auto;padding:0 0 1rem}.canvas-wrap{width:100%;max-width:1153px;margin:0 auto;transition:max-width .2s}.canvas-wrap.mobile{max-width:390px}.canvas-wrap.tablet{max-width:768px}.canvas-wrap .product-stage{box-shadow:0 8px 30px #234b6c15}.video-slot.editable{overflow:visible;outline:1px dashed #618bab;touch-action:none;cursor:move}.video-slot.editable.selected{outline:3px solid #147dcd;z-index:3}.video-slot.editable>img{border-radius:4%}.slot-label{position:absolute;left:0;top:0;max-width:100%;padding:3px 5px;background:#16476de6;color:white;font-size:clamp(10px,1vw,12px);white-space:nowrap;overflow:hidden;pointer-events:none}.resize-handle{position:absolute;right:-5px;bottom:-5px;width:17px;height:17px;background:#fff;border:2px solid #167ecb;border-radius:3px;cursor:nwse-resize;touch-action:none}.preview-mode .slot-label,.preview-mode .resize-handle{display:none}.preview-mode .video-slot{outline:none;cursor:pointer;overflow:hidden}.hidden{display:none!important}.progress{font-size:.9rem;color:var(--blue);line-height:1.7}.full-width{width:100%}.publish-time{font-size:.8rem;color:var(--muted)}details summary{cursor:pointer;font-size:.9rem;font-weight:650;min-height:44px;display:flex;align-items:center}.confirm-dialog{width:min(90vw,460px);border:0;border-radius:.8rem;padding:1.5rem;box-shadow:0 10px 60px #001a3b33}.confirm-dialog h2{font-size:1.3rem}.confirm-dialog p{line-height:1.7;color:var(--muted)}.confirm-dialog .controls-row{justify-content:flex-end}
@media(max-width:950px){.admin-layout{grid-template-columns:280px minmax(0,1fr);gap:1rem;padding:1rem}.admin-header{padding:1rem}.admin-header small{display:none}}
@media(max-width:700px){.admin-layout{display:flex;flex-direction:column;padding:.75rem}.preview-panel{order:-1}.admin-header{flex-wrap:wrap;gap:.6rem;padding:.75rem}.header-actions{gap:.4rem;flex-wrap:wrap}.btn{font-size:.9rem;padding:.55rem .7rem}.controls{grid-template-columns:1fr;width:100%}.canvas-wrap{max-width:100%!important}.status{padding:.65rem .75rem}.preview-toolbar{padding:.6rem;gap:.5rem}.login-panel{padding:1.5rem}.slot-label{font-size:10px}}
.shop-page{padding-bottom:160px}.purchase-button{position:fixed;right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));z-index:20;display:flex;align-items:center;justify-content:center;gap:36px;width:min(312px,calc(100vw - 48px));min-height:112px;padding:28px 44px;border:1px solid #e8ce00;border-radius:999px;background:#fee500;color:#242020;font-size:2rem;font-weight:800;text-decoration:none;box-shadow:0 5px 22px #17354c35;transition:background .15s,box-shadow .15s}.purchase-button[hidden]{display:none}.purchase-button:hover{background:#ffed35;box-shadow:0 7px 25px #17354c45}.purchase-button:active{background:#f3d900}.purchase-button:focus-visible{outline:3px solid #163d65;outline-offset:4px}.purchase-toggle{display:flex;gap:10px;align-items:center;min-height:48px;font-size:.9rem;cursor:pointer}.purchase-toggle input{width:22px;height:22px;accent-color:var(--blue)}.purchase-toggle strong{margin-left:auto;color:var(--ink)}.canvas-wrap{position:relative}.purchase-preview{position:absolute;right:16px;bottom:16px;max-width:calc(100% - 32px);z-index:5}
@media(max-width:700px){.purchase-button{right:max(14px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));width:min(272px,calc(100vw - 28px));min-height:100px;padding:24px 36px;gap:28px;font-size:1.9rem}.purchase-preview{right:16px;bottom:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
