@import"https://fonts.googleapis.com/css2?family=Anton&family=Baloo+2:wght@400;700;800&family=Bangers&family=Bebas+Neue&family=Inter:wght@400;700;900&family=Montserrat:wght@400;700;900&family=Nunito:wght@400;700;900&family=Oswald:wght@400;700&family=Poppins:wght@400;700;900&family=Roboto:wght@400;700;900&display=swap";:root{--bg: #f1f5f9;--surface: #ffffff;--border: #e2e8f0;--text: #0f172a;--muted: #64748b;--primary: #ff5630;--primary-dark: #e63e1c;--accent: #1e293b;--ok: #16a34a;--radius: 12px;--shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04)}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}button{font:inherit;cursor:pointer;border:none;border-radius:8px;padding:10px 16px;background:var(--primary);color:#fff;font-weight:600;transition:background .15s,opacity .15s}button:hover{background:var(--primary-dark)}button:disabled{opacity:.5;cursor:not-allowed}button.secondary{background:#fff;color:var(--text);border:1px solid var(--border)}button.secondary:hover{background:#f8fafc}button.ghost{background:transparent;color:var(--muted)}button.ghost:hover{background:#f1f5f9}button.danger{background:#fff;color:#dc2626;border:1px solid #fecaca}button.danger:hover{background:#fef2f2}button.sm{padding:6px 12px;font-size:13px}a.button{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;padding:10px 16px;background:var(--primary);color:#fff;font-weight:600}a.button:hover{background:var(--primary-dark);text-decoration:none}input,select,textarea{font:inherit;width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--text)}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #e11d481f}label{display:block;font-size:13px;font-weight:600;margin-bottom:6px;color:var(--text)}.field{margin-bottom:16px}.field.inline-field{width:120px;margin-bottom:0}.field.inline-field label{font-size:11px;margin-bottom:3px}.field.inline-field input{padding:8px 10px}.hint{font-size:12px;color:var(--muted);margin-top:4px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px}.grid{display:grid;gap:16px}.row{display:flex;gap:12px;align-items:center}.row.wrap{flex-wrap:wrap}.spacer{flex:1}.muted{color:var(--muted)}.error{color:#dc2626;font-size:14px;margin:8px 0}.center{display:flex;align-items:center;justify-content:center}.app-shell{display:flex;min-height:100vh}.sidebar{width:240px;background:var(--accent);color:#cbd5e1;padding:20px 14px;display:flex;flex-direction:column;gap:4px;position:sticky;top:0;height:100vh}.sidebar .brand{color:#fff;font-weight:800;font-size:20px;padding:6px 10px 18px}.sidebar .brand span{color:var(--primary)}.sidebar a{color:#cbd5e1;padding:10px 12px;border-radius:8px;font-size:14px;font-weight:500}.sidebar a:hover{background:#ffffff14;text-decoration:none}.sidebar a.active{background:var(--primary);color:#fff}.sidebar .section{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#64748b;padding:14px 12px 4px}.main{flex:1;min-width:0}.topbar{background:#fff;border-bottom:1px solid var(--border);padding:14px 28px;display:flex;align-items:center;gap:14px}.content{padding:28px;max-width:1680px;margin:0 auto}.page-title{font-size:24px;font-weight:800;margin:0 0 4px}.page-sub{color:var(--muted);margin:0 0 24px}.badge-pill{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:600;background:#f1f5f9;color:var(--muted)}.badge-pill.role-super{background:#fef3c7;color:#92400e}.badge-pill.published{background:#dcfce7;color:#166534}.badge-pill.draft{background:#fee2e2;color:#991b1b}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--border);font-size:14px}th{font-size:12px;text-transform:uppercase;color:var(--muted);letter-spacing:.04em}.template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px}.template-card{cursor:pointer;transition:transform .12s,box-shadow .12s}.template-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px #0f172a1f}.thumb{border-radius:8px;overflow:hidden;border:1px solid var(--border);background:#f8fafc}.cat-chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.cat-chip{padding:8px 14px;border-radius:999px;border:1px solid var(--border);background:#fff;font-size:14px;font-weight:600;color:var(--muted)}.cat-chip.active{background:var(--primary);color:#fff;border-color:var(--primary)}.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(135deg,#1e293b,#0f172a)}.auth-card{width:100%;max-width:420px}.editor-layout{display:grid;grid-template-columns:260px minmax(680px,1fr) 280px;gap:16px;align-items:start}.admin-template-workspace{height:calc(100vh - 114px);display:flex;flex-direction:column;min-height:0}.admin-template-workspace .editor-page-head{flex:0 0 auto;display:flex;align-items:center;gap:16px;margin-bottom:12px}.admin-template-layout{flex:1 1 auto;min-height:0;grid-template-columns:280px minmax(680px,1fr) 280px;align-items:stretch;overflow:hidden}.editor-side-panel{min-height:0;max-height:100%;overflow:auto}.editor-canvas-column{min-height:0;display:flex;flex-direction:column;overflow:hidden}.editor-toolbar{flex:0 0 auto;position:sticky;top:0;z-index:4;padding:10px 12px;margin-bottom:8px;display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}.client-editor-workspace{height:calc(100vh - 114px);display:flex;flex-direction:column;min-height:0}.client-editor-head{flex:0 0 auto;display:flex;align-items:center;gap:16px;margin-bottom:12px}.client-editor-layout{flex:1 1 auto;min-height:0;align-items:stretch;overflow:hidden}.client-editor-panel{min-height:0;max-height:100%;overflow:auto}.client-preview-column{min-height:0;display:flex;flex-direction:column;overflow:hidden}.client-preview-toolbar{flex:0 0 auto;padding:10px 12px;margin-bottom:8px}@media (max-width: 1100px){.editor-layout{grid-template-columns:1fr}.admin-template-workspace,.client-editor-workspace{height:auto}.admin-template-layout,.client-editor-layout{overflow:visible}.editor-side-panel,.client-editor-panel{max-height:none}}.stage-wrap{overflow:auto}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px}.panel h3{margin:0 0 12px;font-size:14px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.stage-wrap{background:linear-gradient(45deg,rgba(255,255,255,.035) 25%,transparent 25%),linear-gradient(-45deg,rgba(255,255,255,.035) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(255,255,255,.035) 75%),linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.035) 75%),#242933;background-position:0 0,0 14px,14px -14px,-14px 0;background-size:28px 28px;border:1px solid #111827;border-radius:var(--radius);padding:16px;display:flex;justify-content:flex-start;align-items:flex-start}.stage-wrap>div{margin:auto;flex:0 0 auto}.stage-wrap::-webkit-scrollbar{width:12px;height:12px}.stage-wrap::-webkit-scrollbar-thumb{background:#64748b;border:3px solid #242933;border-radius:999px}.stage-wrap::-webkit-scrollbar-track{background:#1f2430;border-radius:999px}.admin-stage-wrap,.client-stage-wrap{flex:1 1 auto;min-height:0;align-items:flex-start;justify-content:flex-start;overscroll-behavior:contain}.tool-button{width:42px;height:36px;padding:0;border-radius:8px;display:inline-grid;place-items:center;font-weight:800;background:#fff;color:var(--text);border:1px solid var(--border)}.tool-button:hover{background:#f8fafc;text-decoration:none}.tool-button.active{background:var(--primary);border-color:var(--primary);color:#fff}.tool-button.wide{width:52px;font-size:12px}.export-menu-wrap{position:relative}.export-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:20;min-width:260px;padding:12px;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 18px 42px #0f172a2e}.export-menu label{margin-bottom:8px;font-size:13px;cursor:pointer}.export-menu-list{margin-top:8px;padding-top:8px;border-top:1px solid var(--border)}.slot-list-compact{max-height:220px;overflow-y:auto;padding-right:2px;margin-bottom:10px}.slot-item{border:1px solid var(--border);border-radius:8px;padding:10px;margin-bottom:8px}.slot-item.compact{min-height:36px;padding:6px 8px;margin-bottom:5px;display:flex;align-items:center;gap:8px}.slot-item.compact strong{font-size:13px;white-space:nowrap}.slot-line-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--muted)}.slot-item.active{border-color:#2563eb;background:#eff6ff;box-shadow:inset 3px 0 #2563eb}.slot-item.filled{border-color:var(--ok);background:#f0fdf4}.slot-item.filled.active{border-color:#2563eb;background:#eff6ff}.placeholder-group{border:1px solid var(--border);border-radius:8px;padding:8px;margin-bottom:8px;background:#fff;overflow:hidden}.placeholder-group.collapsed{padding:6px 8px}.placeholder-group.active{border-color:#2563eb;box-shadow:inset 3px 0 #2563eb}.placeholder-group-head{display:flex;align-items:center;gap:6px;margin-bottom:6px}.placeholder-group.collapsed .placeholder-group-head{margin-bottom:0}.placeholder-group-title{font-size:12px;font-weight:800;color:var(--text);margin-bottom:6px;text-transform:uppercase;letter-spacing:.04em;min-width:0;overflow:hidden;text-overflow:ellipsis}.placeholder-group-head .placeholder-group-title{margin-bottom:0}.placeholder-group-summary{margin-top:2px;font-size:10px;font-weight:500;color:var(--muted);text-transform:none;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.placeholder-list-scroll{max-height:38vh;overflow-y:auto;overflow-x:hidden;padding-right:2px}.group-nudge{display:grid;grid-template-columns:1fr repeat(4,24px);gap:4px;align-items:center;margin:6px 0 8px;color:var(--muted);font-size:11px}.group-nudge button{min-width:24px;padding:0}.icon-button{width:24px;height:24px;min-width:24px;padding:0;border-radius:6px;border:1px solid var(--border);background:#fff;color:var(--muted);display:inline-grid;place-items:center;font-size:12px;font-weight:800;line-height:1}.icon-button:hover{background:#f8fafc;color:var(--text);text-decoration:none}.icon-button.danger-icon{color:var(--danger);border-color:#fecaca}.icon-button.danger-icon:hover{background:#fef2f2}.collapsible-section{border:1px solid var(--border);border-radius:8px;background:#fff;margin-bottom:8px;overflow:hidden}.collapsible-section.section-draggable{cursor:grab;position:relative;overflow:visible}.collapsible-section.section-draggable:active{cursor:grabbing}.collapsible-section.section-draggable.dragging,.template-section-row.dragging{opacity:.55}.collapsible-section.section-draggable.drop-before:before,.collapsible-section.section-draggable.drop-after:after,.template-section-row.drop-before:before,.template-section-row.drop-after:after{content:"";position:absolute;left:6px;right:6px;height:3px;border-radius:999px;background:#2563eb;box-shadow:0 0 0 3px #2563eb24;z-index:5;pointer-events:none}.collapsible-section.section-draggable.drop-before:before,.template-section-row.drop-before:before{top:-6px}.collapsible-section.section-draggable.drop-after:after,.template-section-row.drop-after:after{bottom:-6px}.collapsible-head{width:100%;background:#f8fafc;color:var(--text);display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.collapsible-head:hover{background:#eef2f7;text-decoration:none}.collapsible-toggle{flex:1;border:0;border-radius:0;background:transparent;color:inherit;display:flex;align-items:center;justify-content:space-between;padding:9px 10px;font:inherit;text-transform:inherit;letter-spacing:inherit;text-align:left}.collapsible-toggle:hover{background:transparent;text-decoration:none}.collapsible-body{padding:10px;border-top:1px solid var(--border)}.template-section-list{display:grid;gap:6px;margin-top:8px}.template-section-row{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--border);border-radius:8px;padding:6px 8px;background:#f8fafc;font-size:12px;color:var(--text)}.template-section-row.section-draggable{cursor:grab}.template-section-row.section-draggable:active{cursor:grabbing}.section-fixed{color:var(--muted);font-size:11px}.section-menu-wrap{position:relative;display:inline-flex;align-items:center;margin-right:6px}.section-menu{position:absolute;top:calc(100% + 4px);right:0;z-index:20;min-width:118px;border:1px solid var(--border);border-radius:8px;background:#fff;box-shadow:0 10px 22px #0f172a24;padding:4px}.section-menu button{width:100%;border:0;border-radius:6px;background:transparent;color:var(--text);padding:7px 8px;text-align:left;font-size:12px;font-weight:600}.section-menu button:hover{background:#f1f5f9;text-decoration:none}.section-menu button.danger{color:var(--danger)}.section-menu button.danger:hover{background:#fef2f2}.product-pick{display:flex;gap:8px;align-items:center;padding:6px;border-radius:6px;cursor:pointer}.product-pick:hover{background:#f1f5f9}.product-pick.selected{background:#fef2f2}.ruler-bar{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;font-size:12px;color:var(--muted)}.ruler-bar span{border:1px solid var(--border);border-radius:999px;padding:4px 8px;background:#f8fafc}.list-empty{text-align:center;padding:48px;color:var(--muted)}
