:root{--purple:#4a236e;--deep:#211331;--lime:#b6ff36;--muted:#7b7283;--line:#e9e4ed;--bg:#f7f5f9}*{box-sizing:border-box}body{margin:0;background:var(--bg);font:14px Arial,sans-serif;color:var(--deep)}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{text-decoration:none;color:inherit}.wordmark{font-size:31px;font-weight:800;letter-spacing:-1.5px;display:block}.wordmark span{color:var(--lime);margin-left:3px}button,.primary,.secondary{border-radius:9px;padding:12px 17px;font-weight:700;font-size:13px}.primary{border:1px solid var(--purple);background:var(--purple);color:white;display:inline-block;text-align:center}.primary:hover{background:#61328b}.secondary{border:1px solid #ddd3e6;background:#fff;color:var(--purple);display:inline-block;text-align:center}.secondary:hover{background:#f2ecf7}button:disabled{opacity:.5;cursor:wait}input,select,textarea{width:100%;border:1px solid #dcd4e3;border-radius:8px;padding:12px;background:white;color:var(--deep);font-weight:400}input:focus,select:focus,textarea:focus{outline:2px solid #aa88c5;outline-offset:1px}label{display:block;font-size:12px;font-weight:700;margin:0 0 18px}label>input,label>select,label>textarea{display:block;margin-top:8px}h1,h2,p{margin-top:0}h1{font-size:30px;letter-spacing:-1px;margin-bottom:0}h2{font-size:17px;margin-bottom:22px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.7px;text-transform:uppercase;color:var(--muted);margin-bottom:10px}.sidebar{position:fixed;inset:0 auto 0 0;width:220px;background:var(--deep);color:#fff;padding:32px 22px;display:flex;flex-direction:column}.sidebar-label{font-size:9px;letter-spacing:1.8px;color:#b6a9c4;margin:40px 0 18px}.sidebar>a:not(.wordmark),.sidebar>button{display:block;border:0;text-align:left;padding:13px 14px;margin-bottom:8px;font-size:13px;font-weight:600}.sidebar .nav-active{background:var(--lime);color:var(--deep)}.sidebar-foot{margin-top:auto;font-size:11px;overflow-wrap:anywhere;color:#c7bad5}.sidebar-foot button{display:block;background:none;border:0;color:#fff;padding:15px 0 0}.sidebar+main{margin-left:220px;padding:34px 40px 70px;max-width:1650px}.admin-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.header-actions{display:flex;gap:10px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:28px}.stats>div{padding:22px 25px;background:white;border:1px solid var(--line);border-radius:12px}.stats span{display:block;color:var(--muted);font-size:12px}.stats strong{display:block;margin-top:12px;font-size:32px}.list-toolbar{display:flex;gap:12px;margin-bottom:18px}.list-toolbar input{max-width:400px}.list-toolbar select{width:190px}.table-wrap{overflow:auto;background:white;border:1px solid var(--line);border-radius:12px}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;color:var(--muted);font-size:11px;font-weight:600;background:#fcfbfd;padding:18px}td{padding:18px;border-top:1px solid var(--line);font-size:12px}td:first-child{white-space:normal;min-width:200px;max-width:330px;font-weight:700;line-height:1.6}td small{display:block;color:var(--muted);font-weight:400}.badge{padding:6px 9px;background:#f0eaf5;color:var(--purple);border-radius:20px;font-size:10px}.badge.published{background:#e9f6db;color:#3f6125}.badge.archived{background:#eee;color:#777}.table-wrap>p{padding:25px}.notice{border-radius:9px;padding:15px 18px;background:#eaf5dc;margin-bottom:20px}.notice.error{background:#fff0ef;color:#9a302b}.back-link{font-size:12px;color:var(--purple);background:none;border:0;padding:0;margin:0 0 22px;display:inline-block}.editor-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:22px}.card{background:white;border:1px solid var(--line);border-radius:12px;padding:25px;margin-bottom:22px}.fields.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.hint{color:var(--muted);font-size:11px;line-height:1.6;margin-top:-5px}.card-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.card-heading h2{margin:0}.card-heading .secondary,.upload-button{font-size:11px;padding:9px 12px}.wide{display:block;width:100%;margin-top:12px}.danger{background:none;border:0;color:#a24646;font-size:11px;display:block;margin:15px auto 0;padding:4px}.data-row{display:grid;grid-template-columns:1.2fr 1fr auto;gap:9px;margin-top:10px;align-items:center}.attribute-row{grid-template-columns:1fr 1fr auto auto}.data-row input{padding:10px;font-size:12px}.data-row .remove-row{border:0;background:none;color:#a24646;padding:8px}.filter-check{display:flex;gap:5px;align-items:center;margin:0;white-space:nowrap;font-size:10px}.filter-check input{width:auto;margin:0}.upload-button{border:1px solid #ddd3e6;color:var(--purple);border-radius:8px;cursor:pointer;margin:0;white-space:nowrap}.upload-button input{display:none}.image-list{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.image-item{border:1px solid var(--line);border-radius:9px;padding:8px}.image-item img{width:100%;height:110px;object-fit:contain;background:#f7f5f9;border-radius:5px}.image-item input{padding:8px;font-size:10px}.image-actions{display:flex;justify-content:space-between;gap:4px}.image-actions button{font-size:10px;padding:8px 0;border:0;background:none;color:var(--purple)}#save-error,#login-error{color:#a43c3c;font-size:12px;line-height:1.6}.login-shell{min-height:100vh;display:grid;place-items:center;padding:25px;background:radial-gradient(ellipse at 20% 20%,#633b83,#211331 75%)}.login-card{padding:45px;border-radius:20px;background:white;width:min(460px,100%)}.login-card .wordmark{margin-bottom:45px}.login-card h1{font-size:33px;line-height:1.2;margin-bottom:20px}.login-card p{font-size:13px;line-height:1.8;color:var(--muted)}.login-card .primary{width:100%;margin:10px 0 20px}.login-card .back-link{margin:15px 0 0}.login-card form{margin-top:25px}
.theme-toggle{background:#f1ebf7;color:#4a236e;border:1px solid #d8cbe3;white-space:nowrap}.login-card{position:relative}.login-theme{position:absolute;top:20px;right:20px;font-size:10px;padding:8px 10px}html{color-scheme:light}a:focus-visible,button:focus-visible{outline:3px solid #b38acd;outline-offset:3px}
html[data-theme=dark]{color-scheme:dark;--purple:#c5a0eb;--deep:#eee8f5;--muted:#b6a9c4;--line:#3b3146;--bg:#100e14}html[data-theme=dark] body{background:var(--bg);color:var(--deep)}html[data-theme=dark] .sidebar{background:#17111f;color:#f5efff}html[data-theme=dark] .sidebar .nav-active{color:#211331}html[data-theme=dark] .card,html[data-theme=dark] .stats>div,html[data-theme=dark] .table-wrap,html[data-theme=dark] .login-card{background:#1c1723;border-color:var(--line)}html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:#24202b;color:#f0eaf6;border-color:#51445e}html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#a597b3}html[data-theme=dark] .primary{background:#7446a0;border-color:#9865c6;color:#fff}html[data-theme=dark] .primary:hover{background:#8755b4}html[data-theme=dark] .secondary,html[data-theme=dark] .upload-button,html[data-theme=dark] .theme-toggle{background:#2b2037;border-color:#59416d;color:#ead7ff}html[data-theme=dark] .secondary:hover,html[data-theme=dark] .theme-toggle:hover{background:#392846}html[data-theme=dark] th{background:#17131d;color:#bcb0c9}html[data-theme=dark] .badge{background:#362745;color:#e0c5fa}html[data-theme=dark] .badge.published{background:#213c2b;color:#c8ebba}html[data-theme=dark] .badge.archived{background:#332f3a;color:#c3bdcd}html[data-theme=dark] .notice{background:#203b2b;color:#d4f0cf}html[data-theme=dark] .notice.error{background:#43262f;color:#ffd0d5}html[data-theme=dark] .danger,html[data-theme=dark] .remove-row,html[data-theme=dark] #save-error,html[data-theme=dark] #login-error{color:#ffb0b8}html[data-theme=dark] .image-item img{background:#2b2333}html[data-theme=dark] .login-shell{background:radial-gradient(ellipse at 20% 20%,#342142,#0d0b11 75%)}html[data-theme=dark] input[type=checkbox]{accent-color:#b58ade}html[data-theme=dark] input:focus,html[data-theme=dark] select:focus,html[data-theme=dark] textarea:focus,html[data-theme=dark] button:focus-visible,html[data-theme=dark] a:focus-visible{outline-color:#d9b4ff}
@media(max-width:1050px){.sidebar{width:185px;padding:25px 18px}.sidebar+main{margin-left:185px;padding:25px}.admin-header{align-items:flex-start;flex-direction:column}.editor-layout{grid-template-columns:1fr}.editor-layout>div:nth-child(2){grid-row:1}.image-list{grid-template-columns:repeat(3,1fr)}}@media(max-width:650px){.sidebar{position:static;width:100%;padding:16px 20px;display:flex;flex-direction:row;align-items:center;gap:20px}.sidebar .wordmark{font-size:24px}.sidebar-label,.sidebar>.nav-active,.sidebar>a:not(.wordmark),.sidebar-foot span{display:none}.sidebar-foot{margin:0 0 0 auto}.sidebar-foot button{padding:0}.sidebar+main{margin-left:0;padding:24px 16px}.admin-header{gap:20px}.header-actions{gap:7px}.header-actions button{padding:10px;font-size:11px}.stats{gap:8px}.stats>div{padding:15px 12px}.stats span{font-size:10px}.stats strong{font-size:25px}.list-toolbar{flex-wrap:wrap}.list-toolbar input{max-width:none}.list-toolbar select{flex:1}.card{padding:20px 16px}.fields.two{grid-template-columns:1fr;gap:0}.data-row{grid-template-columns:1fr 1fr auto;gap:5px}.attribute-row{grid-template-columns:1fr 1fr auto}.attribute-row .filter-check{grid-column:1/3}.attribute-row .remove-row{grid-column:3;grid-row:1}.image-list{grid-template-columns:repeat(2,1fr)}.login-card{padding:30px}.login-card h1{font-size:29px}}

/* Compact theme control and secondary sidebar action. */
.sidebar .sidebar-export{background:transparent;color:inherit;border:1px solid #51415e;margin-top:8px}.sidebar .sidebar-export:hover{background:#34263f}.header-actions{align-items:center;margin-left:auto}.theme-toggle,.header-actions .theme-toggle{width:42px;height:42px;min-width:42px;border-radius:50%;padding:10px;display:inline-flex;align-items:center;justify-content:center}.theme-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.login-theme{width:36px;height:36px;min-width:36px;padding:8px}@media(max-width:1050px){.admin-header{position:relative;padding-right:52px}.header-theme{position:absolute;top:0;right:0}.header-actions{margin-left:0}}@media(max-width:650px){.sidebar{flex-wrap:wrap;gap:10px 18px}.sidebar .sidebar-export{display:block;order:3;margin:0;font-size:11px;padding:9px 12px}.header-actions .theme-toggle{padding:10px}}

.sidebar .archive-label{margin:26px 0 10px}.sidebar .sidebar-export{margin-top:0}@media(max-width:650px){.sidebar .archive-label{display:block;order:3;width:100%;margin:8px 0 0}.sidebar .sidebar-export{order:4}}

.product-list-item{display:flex;align-items:center;gap:13px;min-width:230px}.product-list-thumb,.product-list-placeholder{width:54px;height:54px;flex:0 0 54px;border:1px solid var(--line);border-radius:9px;background:var(--bg)}.product-list-thumb{object-fit:contain;padding:4px}.product-list-placeholder{display:grid;place-items:center;color:var(--muted)}.product-list-placeholder svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.4}.product-list-item>div{min-width:0}

.list-toolbar{align-items:center}.notice-slot{flex:1;min-width:190px;min-height:42px;position:relative}.notice-slot .notice{position:absolute;inset:0;display:flex;align-items:center;margin:0;padding:8px 12px;font-size:12px;overflow:auto}.editor-notice-slot{position:fixed;right:24px;bottom:24px;width:min(420px,calc(100vw - 48px));height:62px;z-index:50}.editor-notice-slot .notice{box-shadow:0 5px 24px #0002}@media(max-width:650px){.notice-slot{flex-basis:100%;min-height:42px}}

main>.notice-slot{width:100%;min-height:58px;height:58px;flex:none;margin:0}.notice-slot .notice{inset:0 0 auto;height:46px;max-height:46px}.admin-header{margin-bottom:18px}

.order-count{display:inline-flex;min-width:1.5em;justify-content:center;border-radius:2em;background:#e25c37;color:white;padding:2px 7px;margin-left:8px}.order-count[hidden]{display:none}.order-detail{max-width:1000px}.order-detail p{overflow-wrap:anywhere}.order-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.order-inline{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.order-new{font-weight:700}#order-notify-state{font-size:13px;color:var(--muted,#999)}

.no-color-choice{display:flex!important;align-items:center;gap:9px;margin:12px 0;color:var(--muted,#9e91ab)}.no-color-choice input{width:auto!important}#color-rows[hidden]{display:none!important}

.attribute-row{grid-template-columns:1fr 1fr auto}#show-requests.nav-active{font-weight:700}

@media(max-width:650px){.sidebar>button,.sidebar>.nav-active,.sidebar>a:not(.wordmark){display:block}.sidebar>button:not(.sidebar-export),.sidebar>a:not(.wordmark){flex:1 1 40%;margin:0;font-size:12px;padding:10px}.sidebar>.wordmark{flex:1 1 55%}.sidebar-foot{order:2}.sidebar .card-heading{flex-wrap:wrap}.card-heading{flex-wrap:wrap}.no-color-choice{white-space:normal}.data-row input{min-width:0}.editor-layout>div{min-width:0}.table-wrap{max-width:100%}}
