:root{color-scheme:light;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;line-height:1.5;color:#111;background:#fafafa}*{box-sizing:border-box}body{margin:0}a{color:inherit}button,input,select,textarea{font:inherit}.layout{min-height:100vh;display:grid;grid-template-columns:220px 1fr}.sidebar{background:#111;color:#fff;padding:1.25rem;display:flex;flex-direction:column;gap:.5rem}.sidebar-brand{margin-bottom:1rem;display:flex;justify-content:center}.sidebar-brand-logo{width:50px;height:50px;object-fit:contain;border-radius:6px}.sidebar a{text-decoration:none;padding:.5rem .65rem;border-radius:6px;opacity:.85}.sidebar a:hover,.sidebar a.active{background:#222;opacity:1}.main{padding:1.5rem 2rem;max-width:1100px}.card{background:#fff;border:1px solid #e6e6e6;border-radius:10px;padding:1rem 1.25rem;margin-bottom:1rem}.row{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}.stack{display:flex;flex-direction:column;gap:.5rem}label{font-size:.85rem;font-weight:600}input[type=text],input[type=email],input[type=password],input[type=number],select,textarea{width:100%;max-width:420px;padding:.55rem .65rem;border:1px solid #ccc;border-radius:8px;background:#fff}textarea{min-height:100px;max-width:100%}textarea.tall{min-height:280px}.blog-editor{width:100%;max-width:760px;border:1px solid #ccc;border-radius:8px;background:#fff}.blog-editor-note{font-size:.75rem;color:#666;padding:0 .2rem}.blog-tag-list{display:flex;flex-wrap:wrap;gap:.4rem}.blog-tag-chip{display:inline-flex;align-items:center;gap:.35rem;padding:.2rem .45rem .2rem .65rem;border:1px solid #ddd;border-radius:999px;background:#f6f6f6;font-size:.85rem}.blog-tag-chip button{border:0;background:transparent;padding:0 .15rem;font-size:1rem;line-height:1;cursor:pointer;color:#444}.blog-faq-editor{padding-top:.25rem;border-top:1px solid #eee}.blog-faq-row{display:grid;gap:.45rem;padding:.75rem;border:1px solid #e6e6e6;border-radius:8px;background:#fafafa}.blog-faq-row textarea{min-height:72px}.blog-editor-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:8px;border-bottom:1px solid #e6e6e6;background:#f7f7f7}.blog-editor-sep{width:1px;height:18px;background:#ddd;margin:0 4px}.blog-editor-btn{min-width:32px;height:32px;padding:0 .45rem;border:1px solid #ddd;border-radius:6px;background:#fff;color:#111;font-size:.82rem;font-weight:800;cursor:pointer}.blog-editor-btn:hover:not(:disabled){border-color:#111}.blog-editor-btn.is-active{background:#111;border-color:#111;color:#fff}.blog-editor-btn:disabled{opacity:.4;cursor:not-allowed}.blog-editor .tiptap{min-height:280px;padding:.9rem 1rem 1.25rem;outline:none;font-size:.95rem;line-height:1.6}.blog-editor .tiptap p{margin:0 0 .75rem}.blog-editor-error{margin:0;padding:.4rem .75rem 0;color:#b00020;font-size:.82rem}.blog-editor .tiptap h1,.blog-editor .tiptap h2,.blog-editor .tiptap h3,.blog-editor .tiptap h4{margin:1.1rem 0 .5rem;line-height:1.3}.blog-editor .tiptap h1{font-size:1.55rem}.blog-editor .tiptap h2{font-size:1.25rem}.blog-editor .tiptap h3{font-size:1.08rem}.blog-editor .tiptap h4{font-size:.98rem}.blog-editor .tiptap img,.blog-editor [data-resize-wrapper] img{display:block;max-width:100%;height:auto;margin:.85rem 0;border-radius:8px}.blog-editor [data-resize-wrapper]{max-width:100%}.blog-editor [data-resize-handle]{width:14px;height:14px;background:#111;border:2px solid #fff;border-radius:3px;box-sizing:border-box;z-index:2}.blog-editor [data-resize-handle=bottom-left]{cursor:nesw-resize;transform:translate(-35%,35%)}.blog-editor [data-resize-handle=bottom-right]{cursor:nwse-resize;transform:translate(35%,35%)}.blog-crop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:1rem;background:#0000008c}.blog-crop-panel{width:min(760px,100%);max-height:calc(100vh - 2rem);overflow:auto;background:#fff;border-radius:12px;padding:1rem 1.1rem 1.15rem}.blog-crop-panel h2{margin:0 0 .25rem;font-size:1.15rem}.blog-crop-stage{margin-top:.75rem;text-align:center}.blog-crop-frame{position:relative;display:inline-block;max-width:100%;overflow:hidden}.blog-crop-frame img{display:block;max-width:100%;max-height:60vh;width:auto;height:auto}.blog-crop-box{position:absolute;border:2px solid #fff;box-shadow:0 0 0 9999px #00000073;cursor:move;touch-action:none}.blog-crop-handle{position:absolute;right:4px;bottom:4px;width:14px;height:14px;background:#111;border:2px solid #fff;border-radius:3px;cursor:nwse-resize}.blog-editor .tiptap ul,.blog-editor .tiptap ol{margin:0 0 .85rem;padding-left:1.35rem}.blog-editor .tiptap blockquote{margin:0 0 .85rem;padding:.15rem 0 .15rem .9rem;border-left:3px solid #111;color:#444}.blog-editor .tiptap a{color:#0b57d0}.product-desc-editor .tiptap{min-height:140px}.product-desc-editor .tiptap a,.product-desc-editor .tiptap a strong{color:#111;font-weight:800;text-decoration:underline;text-underline-offset:2px}.product-desc-editor .tiptap a.is-plain,.product-desc-editor .tiptap a.is-plain strong{color:inherit;font-weight:inherit;text-decoration:none}.blog-editor .tiptap p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;height:0;color:#999;pointer-events:none}.btn{border:1px solid #111;background:#111;color:#fff;padding:.55rem .9rem;border-radius:8px;cursor:pointer}.btn:disabled{opacity:.55;cursor:not-allowed}.btn.secondary{background:#fff;color:#111}.btn.danger{border-color:#b00020;background:#b00020}table{width:100%;border-collapse:collapse;font-size:.9rem}th,td{text-align:left;padding:.55rem .35rem;border-bottom:1px solid #eee}.orders-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem .75rem;margin-bottom:.75rem;padding:.55rem .75rem}.orders-toolbar label{display:none}.orders-toolbar input,.orders-toolbar select{padding:.4rem .55rem;font-size:.88rem;min-height:0}.orders-toolbar .btn{padding:.4rem .75rem;font-size:.85rem}.orders-toolbar .meta{margin:0 0 0 auto;font-size:.8rem}.orders-table{font-size:.88rem}.orders-table th,.orders-table td{padding:.45rem .4rem;vertical-align:middle}.orders-table th{font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:#666;font-weight:600}.orders-table .btn{padding:.3rem .55rem;font-size:.8rem}.orders-table select{padding:.3rem .4rem;font-size:.84rem}.orders-table-card{overflow:visible}.orders-table-customer-cell{overflow:visible;position:relative}.customer-popover-wrap{position:relative;display:inline-block;max-width:200px;outline:none;cursor:help}.customer-popover-wrap:focus-visible .customer-popover-trigger{outline:2px solid #111;outline-offset:2px;border-radius:4px}.customer-popover-trigger{display:block;width:100%}.customer-popover-hint{font-size:12px}.customer-popover{position:absolute;left:0;top:100%;z-index:100;min-width:260px;max-width:min(320px,90vw);margin-top:6px;padding:.7rem .8rem;background:#fff;border:1px solid #ddd;border-radius:8px;box-shadow:0 10px 28px #00000024;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .12s ease,visibility .12s ease}.customer-popover-wrap:hover .customer-popover,.customer-popover-wrap:focus-within .customer-popover{opacity:1;visibility:visible;pointer-events:auto}.customer-popover-title{margin:0 0 .5rem;font-size:.9rem;font-weight:700}.customer-popover-row{margin:0 0 .45rem;font-size:12px;line-height:1.45;display:grid;gap:.15rem}.customer-popover-row:last-child{margin-bottom:0}.customer-popover-label{font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#777}.customer-popover-address address{display:flex;flex-direction:column;gap:.1rem;font-style:normal;color:#222}.customer-popover a{color:#111;word-break:break-all}.orders-table .line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}.orders-table .wa-link{color:#128c7e;font-weight:650;text-decoration:none;white-space:nowrap}.orders-table .wa-link:hover{text-decoration:underline}.orders-detail{padding:.5rem .35rem}.orders-detail-row{display:flex;align-items:center;gap:10px;padding:.4rem;background:#fff;border:1px solid #eee;border-radius:6px}.muted{color:#666;font-size:.9rem}.pill{display:inline-block;padding:.15rem .5rem;border-radius:999px;font-size:.75rem;border:1px solid #ddd;background:#f6f6f6}.thumbs{display:flex;gap:.65rem;flex-wrap:wrap}.thumb-item{display:flex;flex-direction:column;align-items:stretch;gap:.25rem;width:88px;padding:.35rem;border:1px solid #e6e6e6;border-radius:8px;background:#fafafa;cursor:grab;-webkit-user-select:none;user-select:none}.thumb-item:active{cursor:grabbing}.thumb-order{font-size:.68rem;font-weight:700;color:#555;text-align:center;line-height:1.2}.thumbs img{width:100%;height:72px;object-fit:cover;border-radius:6px;border:1px solid #eee;pointer-events:none}.thumb-actions{display:flex;gap:.2rem;justify-content:center}.thumb-btn{padding:.1rem .35rem;font-size:12px;min-width:0;line-height:1.2}.thumb-btn:disabled{opacity:.35;cursor:not-allowed}.cat-acc{border:1px solid #e6e6e6;border-radius:10px;margin-bottom:.65rem;overflow:hidden;background:#fff}.cat-acc-head{display:flex;align-items:center;gap:.65rem;width:100%;padding:.75rem 1rem;border:none;background:#fafafa;text-align:left;font:inherit;color:inherit}.cat-acc-toggle{display:flex;align-items:center;gap:.65rem;flex:1;min-width:0;padding:0;border:none;background:transparent;cursor:pointer;text-align:left;font:inherit;color:inherit}.cat-acc-head:hover{background:#f3f3f3}.cat-acc-chev{display:inline-flex;width:1.25rem;justify-content:center;font-size:.75rem;color:#666;transition:transform .15s ease}.cat-acc-chev.is-open{transform:rotate(90deg)}.cat-acc-title{flex:1;font-weight:700;font-size:.95rem}.cat-acc-actions{display:flex;gap:.35rem;flex-wrap:wrap;align-items:center}.cat-acc-body{border-top:1px solid #eee;padding:.5rem 0}.cat-sub-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(140px,180px) auto auto auto;gap:.65rem;align-items:center;padding:.55rem 1rem;border-bottom:1px solid #f0f0f0}.cat-sub-row:last-child{border-bottom:none}.cat-sub-name{font-size:.9rem;padding-left:.25rem}.cat-inline-form{padding:.75rem 1rem 1rem;background:#fafafa;border-top:1px solid #eee;display:flex;flex-wrap:wrap;gap:.65rem;align-items:flex-end}.cat-inline-form input{max-width:200px}.cat-meta-field{flex:1 1 100%;min-width:min(100%,280px)}.cat-meta-field input,.cat-meta-field textarea{width:100%;max-width:none}.sidebar-spacer{flex:1}.sidebar-user{font-size:.75rem;color:#bbb;padding:.25rem .35rem;word-break:break-word}.logout-btn{width:100%}.table-scroll{overflow-x:auto}.row-actions{display:flex;flex-wrap:wrap;gap:.35rem;justify-content:flex-end}.notice{border-radius:8px;padding:.65rem .8rem;margin:0 0 1rem}.notice.ok{background:#eef8ef;color:#146c2e}.notice.err{background:#fdecec;color:#9b1c1c}.badge{display:inline-block;padding:.12rem .45rem;border-radius:999px;font-size:.75rem;font-weight:650;text-transform:capitalize}.badge.pending{background:#fff6e5;color:#8a5a00}.badge.accepted,.badge.active{background:#eef8ef;color:#146c2e}.badge.expired{background:#f3f3f3;color:#555}.badge.revoked,.badge.inactive{background:#fdecec;color:#9b1c1c}.badge.owner{background:#111;color:#fff;text-transform:none}.check{display:inline-flex;align-items:center;gap:.4rem;font-size:.9rem;font-weight:500}.check input{width:auto;margin:0}.perm-editor{display:flex;flex-direction:column;gap:.35rem}.perm-group{border-top:1px solid #eee;padding:.7rem 0 .2rem}.perm-actions{display:flex;flex-wrap:wrap;gap:.45rem 1rem;padding:.35rem 0 .45rem 1.4rem}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;display:flex;align-items:flex-start;justify-content:center;padding:1rem;overflow:auto;background:#00000073}.modal{width:min(640px,100%);margin:2rem 0;background:#fff;border-radius:12px;padding:1.1rem 1.2rem 1.25rem}.modal input[type=text],.modal input[type=email],.modal input[type=password]{max-width:none}.is-readonly input,.is-readonly textarea,.is-readonly select,.is-readonly .blog-editor,.is-readonly .product-desc-editor{pointer-events:none}@media(max-width:800px){.layout{grid-template-columns:1fr}.sidebar{flex-direction:row;flex-wrap:wrap;align-items:center;gap:.35rem;padding:.75rem}.sidebar-brand{margin:0 .5rem 0 0}.sidebar-spacer{display:none}.sidebar-user{flex:1 1 100%}.logout-btn{width:auto}.main{padding:1rem}}@media(max-width:720px){.cat-sub-row{grid-template-columns:1fr}}
