:root{--bg: #f3f5f8;--panel: #fff;--ink: #15202b;--muted: #5b6b7c;--line: #e2e8f0;--accent: #0f766e;--accent-ink: #fff;--danger: #b91c1c;--ok: #047857;font-family:Segoe UI,Pretendard,Noto Sans KR,sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0;min-height:100vh}a{color:var(--accent);text-decoration:none}a:active{opacity:.8}button,input,select,textarea{font:inherit}button{border:0;background:var(--accent);color:var(--accent-ink);padding:10px 14px;border-radius:8px;cursor:pointer}button:disabled{opacity:.5}button.ghost{background:transparent;color:var(--ink);border:1px solid var(--line)}input,select,textarea{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#fff}.boot{padding:48px}.login-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(600px 320px at 10% 0%,rgba(15,118,110,.12),transparent 60%),linear-gradient(160deg,#eef2f6,#f8fafc);padding:24px}.login-card{width:min(420px,100%);background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:28px;display:flex;flex-direction:column;gap:12px}.login-card h1{margin:0;font-size:1.8rem}.eyebrow{margin:0;font-weight:700;color:var(--accent);letter-spacing:.04em}.sub,.hint{color:var(--muted);margin:0}.err{color:var(--danger);font-weight:600}.ok{color:var(--ok);font-weight:600}.demo-accounts{margin-top:8px;display:flex;flex-direction:column;gap:6px}.demo-accounts p{margin:0;font-size:.85rem;color:var(--muted)}.shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.side{background:#0f172a;color:#e2e8f0;padding:20px 16px;display:flex;flex-direction:column;gap:18px}.brand strong{display:block;font-size:1.1rem}.brand span{font-size:.8rem;opacity:.7}.side nav{display:flex;flex-direction:column;gap:4px;flex:1}.side nav a{color:#cbd5e1;padding:10px 12px;border-radius:8px}.side nav a.active{background:#0f766e59;color:#fff}.side-foot{font-size:.9rem}.side-foot .ghost{color:#e2e8f0;border-color:#334155;width:100%;margin-top:8px}.main{padding:28px 32px 48px;overflow:auto}.role-pill{display:inline-block;padding:4px 8px;border-radius:999px;font-size:.75rem;font-weight:700;background:#334155}.role-SuperAdmin{background:#0f766e}.role-FranchiseAdmin{background:#1d4ed8}.role-StoreOwner{background:#7c3aed}.page h2{margin:0 0 8px;font-size:1.7rem}.page h3{margin:24px 0 10px}.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:16px 0 8px}.stat{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:6px}.stat strong{font-size:1.35rem}.stat span{color:var(--muted);font-size:.85rem}.table{width:100%;border-collapse:collapse;background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden}.table th,.table td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line);font-size:.92rem}.table th{background:#f8fafc;color:var(--muted);font-weight:700}.tag{display:inline-block;padding:2px 8px;border-radius:999px;font-size:.75rem;font-weight:700;background:#e2e8f0}.status-paid{background:#d1fae5;color:#065f46}.status-refunded{background:#fee2e2;color:#991b1b}.status-failed{background:#ffedd5;color:#9a3412}.panel{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:16px;margin:16px 0}.download-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.download-btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:10px;background:#0f766e;color:#fff!important;font-weight:700;text-decoration:none!important;white-space:nowrap}.download-btn:hover{filter:brightness(1.05)}.kiosk-demo-page{display:flex;flex-direction:column;min-height:calc(100vh - 48px)}.kiosk-demo-frame-wrap{flex:1;min-height:640px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#0f172a}.kiosk-demo-frame{width:100%;height:min(78vh,900px);border:0;display:block;background:#111}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:end}.form-grid.wide{grid-template-columns:1fr 1fr 1fr}.form-grid h3,.form-grid h4,.form-grid .full,.form-grid button{grid-column:1 / -1}.form-grid label{display:flex;flex-direction:column;gap:6px;font-size:.85rem;font-weight:600}.form-grid label.check{flex-direction:row;align-items:center;gap:8px}.file-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-weight:500}.hint-inline{color:var(--muted);font-weight:500;font-size:.8rem}.btn-link{background:none;border:none;color:var(--accent, #0f766e);cursor:pointer;font-weight:700;padding:0;text-decoration:underline}.form-actions{display:flex;gap:10px;margin-top:8px}.user-edit-modal{width:min(860px,100%)}.user-edit-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}.user-edit-head h3{margin:0}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:24px}@media (max-width: 960px){.shell{grid-template-columns:1fr}.side{flex-direction:row;flex-wrap:wrap}.two-col,.form-grid,.form-grid.wide{grid-template-columns:1fr}}.detail-grid{display:grid;grid-template-columns:320px 1fr;gap:20px}.media-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}.media-pair figure{margin:0;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px}.media-pair img{width:100%;display:block;border-radius:8px;background:#eee}.empty-media{height:240px;display:grid;place-items:center;background:#f1f5f9;color:var(--muted);border-radius:8px}.code{background:#0f172a;color:#e8e2d6;padding:12px;border-radius:8px;overflow:auto;font-size:.8rem}.muted{color:var(--muted)}.thumb{width:36px;height:54px;object-fit:cover;border-radius:4px;background:#e2e8f0;display:block}.cat-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0 12px}.cat-tab{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:14px 16px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:12px;text-align:left}.cat-tab span{font-size:.85rem;color:var(--muted);font-weight:600}.cat-tab.active{border-color:var(--accent);background:#0f766e14;box-shadow:inset 0 0 0 1px var(--accent)}.cat-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}.empty-cat{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.frame-list-wrap{width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.frame-list-table{table-layout:fixed;width:100%;min-width:920px;border:none;border-radius:0}.frame-list-table th,.frame-list-table td{vertical-align:middle;overflow:hidden;text-overflow:ellipsis}.frame-list-table th:nth-child(1),.frame-list-table td:nth-child(1){width:72px}.frame-list-table th:nth-child(2),.frame-list-table td:nth-child(2){width:16%}.frame-list-table th:nth-child(3),.frame-list-table td:nth-child(3){width:14%}.frame-list-table th:nth-child(4),.frame-list-table td:nth-child(4){width:18%}.frame-list-table th:nth-child(5),.frame-list-table td:nth-child(5){width:88px}.frame-list-table th:nth-child(6),.frame-list-table td:nth-child(6){width:52px;text-align:center}.frame-list-table th:nth-child(7),.frame-list-table td:nth-child(7){width:72px}.frame-list-table th:nth-child(8),.frame-list-table td:nth-child(8){width:72px}.frame-list-table th:nth-child(9),.frame-list-table td:nth-child(9){width:132px}.frame-list-table .frame-list-thumb{width:48px;max-height:72px;background:#0f172a;border-radius:6px;overflow:hidden;display:grid;place-items:center;color:#94a3b8;font-size:.75rem}.frame-list-table .frame-list-thumb img{width:100%;height:100%;object-fit:contain;display:block}.frame-list-table code{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom;font-size:.78rem;background:#f1f5f9;padding:2px 6px;border-radius:4px}.frame-list-actions{display:flex;flex-wrap:nowrap;gap:6px;justify-content:flex-end;align-items:center}.frame-list-actions .ghost{padding:6px 10px;white-space:nowrap}.frame-list-meta{margin:2px 0 0;font-size:.75rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;background:#0f172a8c;display:flex;align-items:flex-start;justify-content:center;padding:16px;overflow:auto}.modal-panel{width:min(1280px,100%);max-height:calc(100vh - 32px);margin:0 auto;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:16px 20px 22px;box-shadow:0 24px 64px #0f172a47}.frame-edit-modal{width:min(100%,1320px)}.frame-edit-modal .frame-edit-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;position:sticky;top:0;background:var(--panel);z-index:2;padding-bottom:8px}.frame-edit-modal .frame-edit-head h3{margin:0}.frame-edit-modal .frame-edit-grid{grid-template-columns:minmax(220px,260px) minmax(0,1fr);gap:16px 20px}.frame-edit-modal .frame-editors-col{gap:16px}.frame-edit-modal .slot-stage{width:min(100%,520px)}.frame-edit-modal .roi-stage{width:min(100%,640px);overflow:hidden}.frame-edit-modal .slot-handle{width:12px;height:12px}.frame-edit-modal .slot-handle.nw{left:-6px;top:-6px}.frame-edit-modal .slot-handle.ne{right:-6px;top:-6px}.frame-edit-modal .slot-handle.sw{left:-6px;bottom:-6px}.frame-edit-modal .slot-handle.se{right:-6px;bottom:-6px}.frame-edit-modal .slot-handle.n{left:50%;top:-6px;margin-left:-6px}.frame-edit-modal .slot-handle.s{left:50%;bottom:-6px;margin-left:-6px}.frame-edit-modal .slot-handle.e{right:-6px;top:50%;margin-top:-6px}.frame-edit-modal .slot-handle.w{left:-6px;top:50%;margin-top:-6px}.frame-edit-modal .slot-handle.rotate{left:50%;top:-28px;margin-left:-6px;width:12px;height:12px}.canvas-zoom-wrap{overflow:auto;max-height:min(70vh,820px);padding:12px;border:1px solid var(--line);border-radius:12px;background:#0f172a;overscroll-behavior:contain}.canvas-zoom-wrap.is-panning{cursor:grabbing;-webkit-user-select:none;user-select:none}.canvas-zoom-wrap.is-panning *{cursor:grabbing!important}.zoom-controls{display:inline-flex;align-items:center;gap:4px;margin-left:auto}.zoom-controls button{min-width:36px;padding:6px 10px}.zoom-controls span{min-width:48px;text-align:center;font-size:.85rem;font-weight:700;color:var(--muted)}@media (max-width: 720px){.cat-tabs{grid-template-columns:1fr}}.frame-edit{margin-top:20px}.frame-edit-head h3{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:0}.frame-edit-grid{display:grid;grid-template-columns:minmax(240px,300px) 1fr;gap:20px;align-items:start}.frame-editors-col{display:flex;flex-direction:column;gap:12px;min-width:0}.frame-editors-col h4{margin:8px 0 0;font-size:.95rem}.frame-editors-col h4:first-child{margin-top:0}.roi-editor{display:flex;flex-direction:column;gap:10px}.roi-stage{position:relative;width:min(100%,760px);margin:0 auto;background:#0b1220;border-radius:12px;overflow:hidden;touch-action:none;-webkit-user-select:none;user-select:none;box-shadow:0 8px 28px #0f172a2e}.roi-cam-bg{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain;pointer-events:none;background:#111827}.roi-cam-bg.mock{display:grid;place-items:center;color:#94a3b8;font-size:.9rem;font-weight:600;background:radial-gradient(ellipse at 50% 40%,rgba(56,189,248,.12),transparent 55%),linear-gradient(160deg,#1e293b,#0f172a)}.roi-grid{position:absolute;top:8%;right:8%;bottom:8%;left:8%;border:1px dashed rgba(148,163,184,.35);background-image:linear-gradient(to right,rgba(148,163,184,.12) 1px,transparent 1px),linear-gradient(to bottom,rgba(148,163,184,.12) 1px,transparent 1px);background-size:33.333% 33.333%;pointer-events:none}.roi-shade{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;box-shadow:inset 0 0 0 9999px #00000059}.roi-box{position:absolute;border:2px solid #38bdf8;background:transparent;box-shadow:0 0 0 9999px #00000073;cursor:move;box-sizing:border-box;z-index:2}.roi-label{position:absolute;left:8px;bottom:6px;margin:0;font-size:11px;font-weight:800;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.7);pointer-events:none}.check.inline{flex-direction:row;align-items:center;gap:6px;font-size:.85rem;font-weight:600}@media (max-width: 1100px){.frame-edit-grid{grid-template-columns:1fr}}.slot-editor{display:flex;flex-direction:column;gap:10px}.slot-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.slot-toolbar .rot-input{display:flex;align-items:center;gap:6px;font-size:.85rem;font-weight:600}.slot-toolbar .rot-input input{width:72px}.slot-stage{position:relative;width:min(100%,560px);margin:0 auto;background:#1e293b;border-radius:12px;overflow:hidden;touch-action:none;-webkit-user-select:none;user-select:none;box-shadow:0 8px 28px #0f172a2e;flex-shrink:0}.slot-stage:focus,.roi-stage:focus{outline:2px solid rgba(45,212,191,.55);outline-offset:2px}.slot-bg{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:fill;pointer-events:none}.slot-underlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;background:repeating-conic-gradient(#cbd5e1,#cbd5e1 25%,#e2e8f0 0%,#e2e8f0 50%) 50% / 20px 20px}.slot-stage.photos-under .slot-bg.overlay{z-index:4;pointer-events:none}.slot-stage.photos-under .slot-box{z-index:1;background:#0f172a59}.slot-stage.photos-under .slot-box.active{z-index:1;box-shadow:inset 0 0 0 3px #38bdf8}.slot-stage.photos-under .slot-box.active.primary{z-index:1;box-shadow:inset 0 0 0 3px #38bdf8,inset 0 0 0 6px #38bdf859}.slot-bg.placeholder{display:grid;place-items:center;color:#94a3b8;font-size:.9rem;background:repeating-linear-gradient(-45deg,#334155,#334155 8px,#1e293b 8px,#1e293b 16px)}.slot-box{position:absolute;border:2px solid rgba(45,212,191,.85);background:#2dd4bf2e;cursor:move;box-sizing:border-box}.slot-box.active{border-color:#fbbf24;background:#fbbf2433;z-index:2}.slot-box.active.primary{border-color:#f59e0b;box-shadow:0 0 0 1px #f59e0b73;z-index:3}.align-toolbar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.align-toolbar .align-label{font-size:.8rem;font-weight:800;color:var(--muted);margin-right:4px}.align-toolbar .align-sep{width:1px;height:22px;background:var(--line);margin:0 2px}.align-toolbar button.ghost{padding:6px 8px;font-size:.8rem}.slot-label{position:absolute;left:4px;top:2px;font-size:11px;font-weight:800;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.6);pointer-events:none}.slot-handle{position:absolute;width:10px;height:10px;background:#fff;border:1px solid #0f766e;border-radius:2px;box-sizing:border-box}.slot-handle.nw{left:-5px;top:-5px;cursor:nwse-resize}.slot-handle.ne{right:-5px;top:-5px;cursor:nesw-resize}.slot-handle.sw{left:-5px;bottom:-5px;cursor:nesw-resize}.slot-handle.se{right:-5px;bottom:-5px;cursor:nwse-resize}.slot-handle.n{left:50%;top:-5px;margin-left:-5px;cursor:ns-resize}.slot-handle.s{left:50%;bottom:-5px;margin-left:-5px;cursor:ns-resize}.slot-handle.e{right:-5px;top:50%;margin-top:-5px;cursor:ew-resize}.slot-handle.w{left:-5px;top:50%;margin-top:-5px;cursor:ew-resize}.slot-handle.rotate{left:50%;top:-28px;margin-left:-6px;width:12px;height:12px;border-radius:50%;background:#fbbf24;border-color:#b45309;cursor:grab}.slot-handle.rotate:after{content:"";position:absolute;left:50%;top:12px;width:1px;height:14px;background:#fbbf24;transform:translate(-50%)}.sticker-preview-row{display:flex;flex-wrap:wrap;gap:8px}.sticker-chip{width:44px;height:44px;border:1px solid var(--line);border-radius:10px;display:grid;place-items:center;background:#f8fafc;font-size:1.25rem;overflow:hidden}.sticker-chip.large{width:56px;height:56px;font-size:1.6rem;flex-shrink:0}.sticker-chip img{width:100%;height:100%;object-fit:contain}.sticker-edit h3{display:flex;justify-content:space-between;align-items:center;margin-top:0}.sticker-add-box{margin:16px 0;padding:14px;border:1px dashed var(--line);border-radius:12px;background:#f8fafc}.sticker-add-box h4{margin:12px 0 8px}.sticker-add-box h4:first-child{margin-top:0}.row-inline{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.row-inline input[type=text],.row-inline input:not([type]),.row-inline input[type=file]{flex:1;min-width:140px}.emoji-grid{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.emoji-btn{width:40px;height:40px;padding:0;background:#fff;color:inherit;border:1px solid var(--line);font-size:1.2rem}.emoji-btn:hover{border-color:var(--accent)}.sticker-edit-list{display:flex;flex-direction:column;gap:8px;margin-bottom:16px;max-height:360px;overflow:auto}.sticker-edit-item{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center}button.danger{color:var(--danger);border-color:#fecaca}
