*{box-sizing:border-box}
:root{--bg:#f3f8f7;--panel:#fff;--panel-soft:#eef6f5;--ink:#102f37;--muted:#687d82;--line:#d8e6e4;--mint:#2ecbb9;--mint-dark:#108e82;--danger:#b63d4e;--shadow:0 20px 65px rgba(13,52,59,.1);color-scheme:light}
html[data-theme="dark"]{--bg:#071016;--panel:#0d1a22;--panel-soft:#10242c;--ink:#f1fbfc;--muted:#9bb0b5;--line:#203942;--mint:#42d9c8;--mint-dark:#29b7aa;--shadow:0 20px 70px rgba(0,0,0,.35);color-scheme:dark}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
button,input,select,textarea{font:inherit}
button,a{transition:.18s ease}
.store-admin-app{display:grid;min-height:100vh;grid-template-columns:330px minmax(0,1fr)}
.store-admin-sidebar{position:sticky;top:0;display:flex;height:100vh;flex-direction:column;padding:24px 20px;border-right:1px solid var(--line);background:var(--panel)}
.store-admin-brand{display:flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none}.store-admin-brand img{width:46px;height:46px;object-fit:contain}.store-admin-brand strong,.store-admin-brand small{display:block}.store-admin-brand strong{font-size:23px;color:var(--mint-dark)}.store-admin-brand small{margin-top:2px;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.store-admin-sidebar-head{display:flex;align-items:end;justify-content:space-between;margin-top:30px}.store-admin-sidebar-head small,.store-admin-topbar small,.store-editor-card-head small,.store-publication-card>div>small{color:var(--mint-dark);font-size:9px;font-weight:950;letter-spacing:.13em}.store-admin-sidebar-head h1{margin:4px 0 0;font-size:26px}.store-admin-sidebar-head button{display:grid;width:42px;height:42px;place-items:center;border:0;border-radius:13px;background:var(--mint);color:#083b37;font-size:25px;font-weight:900;cursor:pointer}
.store-admin-search{display:flex;align-items:center;gap:8px;margin:18px 0 12px;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel-soft)}.store-admin-search input{width:100%;height:42px;border:0;background:transparent;color:var(--ink);outline:none}.store-admin-search span{color:var(--muted);font-size:18px}
.store-admin-filters{display:flex;gap:6px;overflow:auto;padding-bottom:4px}.store-admin-filters button{border:1px solid var(--line);border-radius:999px;padding:7px 10px;background:transparent;color:var(--muted);font-size:10px;font-weight:850;cursor:pointer;white-space:nowrap}.store-admin-filters button.active{border-color:var(--mint);background:rgba(46,203,185,.12);color:var(--mint-dark)}
.store-admin-product-list{display:grid;gap:8px;overflow:auto;margin-top:13px;padding-right:3px}.store-admin-product-item{display:grid;grid-template-columns:46px 1fr auto;gap:10px;align-items:center;padding:10px;border:1px solid transparent;border-radius:14px;background:transparent;text-align:left;cursor:pointer}.store-admin-product-item:hover,.store-admin-product-item.active{border-color:var(--line);background:var(--panel-soft)}.store-admin-product-thumb{display:grid;width:46px;height:46px;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:11px;background:var(--panel);color:var(--mint-dark);font-weight:900}.store-admin-product-thumb img{width:100%;height:100%;object-fit:cover}.store-admin-product-item b,.store-admin-product-item small{display:block}.store-admin-product-item b{overflow:hidden;color:var(--ink);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.store-admin-product-item small{margin-top:4px;color:var(--muted);font-size:9px}.store-admin-status{padding:5px 7px;border-radius:999px;background:#eef3f3;color:#65777b;font-size:8px;font-weight:900;text-transform:uppercase}.store-admin-status.published{background:#dff8ef;color:#087359}.store-admin-status.archived{background:#f7e8ea;color:#993647}.store-admin-empty{padding:25px 12px;color:var(--muted);font-size:12px;text-align:center}
.store-admin-sidebar-actions{display:grid;gap:7px;margin-top:auto;padding-top:16px;border-top:1px solid var(--line)}.store-admin-sidebar-actions a{display:flex;min-height:40px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:11px;color:var(--ink);font-size:11px;font-weight:850;text-decoration:none}.store-admin-sidebar-actions a:first-child{border-color:rgba(46,203,185,.45);background:rgba(46,203,185,.1);color:var(--mint-dark)}
.store-admin-main{min-width:0;padding:28px 34px 70px}.store-admin-topbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}.store-admin-topbar h2{margin:5px 0 3px;font-size:31px;letter-spacing:-.035em}.store-admin-topbar p{margin:0;color:var(--muted);font-size:12px}.store-admin-top-actions{display:flex;gap:9px}.store-admin-top-actions button{min-height:44px;padding:0 16px;border-radius:12px;font-size:11px;font-weight:900;cursor:pointer}.store-admin-top-actions .ghost{border:1px solid var(--line);background:var(--panel);color:var(--ink)}.store-admin-top-actions .primary{border:0;background:var(--mint);color:#083632;box-shadow:0 10px 24px rgba(46,203,185,.2)}.store-admin-top-actions button:disabled{opacity:.55;cursor:wait}
.store-admin-message{margin-bottom:16px;padding:13px 15px;border:1px solid rgba(46,203,185,.38);border-radius:13px;background:rgba(46,203,185,.1);color:var(--mint-dark);font-size:11px;font-weight:750}.store-admin-message.error{border-color:#dfa2aa;background:#fff0f2;color:#9f3344}
.store-editor{display:grid;gap:17px}.store-editor-card{padding:24px;border:1px solid var(--line);border-radius:22px;background:var(--panel);box-shadow:var(--shadow)}.store-editor-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}.store-editor-card-head h3,.store-publication-card h3{margin:5px 0 0;font-size:20px}.store-editor-card-head>span{max-width:440px;color:var(--muted);font-size:10px;line-height:1.5;text-align:right}
.store-media-grid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px}.store-image-uploader,.store-file-uploader{padding:16px;border:1px dashed #bcd3d0;border-radius:17px;background:var(--panel-soft)}.store-image-uploader{display:grid;gap:10px}.store-image-preview{display:grid;aspect-ratio:16/10;place-items:center;overflow:hidden;border-radius:13px;background:linear-gradient(135deg,rgba(46,203,185,.16),rgba(117,108,227,.1));color:var(--mint-dark)}.store-image-preview span{font-size:38px}.store-image-preview small{margin-top:-30px;font-weight:850}.store-image-preview img{width:100%;height:100%;object-fit:cover}.store-upload-button{display:flex;min-height:40px;align-items:center;justify-content:center;border-radius:11px;background:var(--mint);color:#073a36;font-size:10px;font-weight:900;cursor:pointer}.store-upload-button.secondary{border:1px solid var(--line);background:var(--panel);color:var(--ink)}.store-upload-button input{display:none}.store-image-uploader>small,.store-file-uploader small{color:var(--muted);font-size:9px;line-height:1.5}.store-file-uploader{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center}.store-file-icon{display:grid;width:52px;height:52px;place-items:center;border-radius:15px;background:rgba(46,203,185,.14);color:var(--mint-dark);font-size:27px}.store-file-uploader b,.store-file-uploader small{display:block}.store-file-uploader b{font-size:12px}.store-file-uploader small{margin-top:5px}.store-download-current{grid-column:2/-1;justify-self:start;border:0;background:transparent;color:var(--mint-dark);font-size:9px;font-weight:900;cursor:pointer}
.store-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.store-form-grid label{display:grid;gap:7px;color:var(--muted);font-size:10px;font-weight:850}.store-form-grid .span-2{grid-column:1/-1}.store-form-grid input,.store-form-grid select,.store-form-grid textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px 13px;background:var(--panel-soft);color:var(--ink);outline:none}.store-form-grid select,.store-form-grid input{min-height:45px}.store-form-grid textarea{resize:vertical;line-height:1.55}.store-form-grid input:focus,.store-form-grid select:focus,.store-form-grid textarea:focus{border-color:var(--mint);box-shadow:0 0 0 4px rgba(46,203,185,.1)}.store-checkbox{grid-template-columns:auto 1fr!important;align-items:center!important;justify-content:start!important}.store-checkbox input{width:17px!important;min-height:17px!important;accent-color:var(--mint-dark)}
.store-publication-card{display:flex;align-items:center;justify-content:space-between;gap:24px}.store-publication-card p{margin:6px 0 0;color:var(--muted);font-size:11px}.store-publication-card .archive{min-height:42px;padding:0 15px;border:1px solid #dbb6bc;border-radius:11px;background:#fff5f6;color:#9a3546;font-size:10px;font-weight:900;cursor:pointer}
.store-admin-gate{display:grid;min-height:100vh;place-content:center;justify-items:center;padding:24px;text-align:center}.store-admin-gate img{width:75px}.store-admin-gate>span{margin-top:20px;color:var(--mint-dark);font-size:10px;font-weight:950;letter-spacing:.15em}.store-admin-gate h1{max-width:620px;margin:9px 0;font-size:36px}.store-admin-gate p{max-width:560px;color:var(--muted);line-height:1.6}.store-admin-gate a{display:grid;min-height:45px;padding:0 19px;place-items:center;border-radius:12px;background:var(--mint);color:#073a36;font-weight:900;text-decoration:none}
@media(max-width:980px){.store-admin-app{grid-template-columns:260px minmax(0,1fr)}.store-admin-main{padding:23px 22px 60px}.store-media-grid{grid-template-columns:1fr}.store-admin-topbar{align-items:flex-start;flex-direction:column}.store-admin-top-actions{width:100%}.store-admin-top-actions button{flex:1}}
@media(max-width:720px){.store-admin-app{display:block}.store-admin-sidebar{position:relative;width:100%;height:auto}.store-admin-product-list{max-height:260px}.store-admin-main{padding:20px 13px 45px}.store-form-grid{grid-template-columns:1fr}.store-form-grid .span-2{grid-column:auto}.store-file-uploader{grid-template-columns:auto 1fr}.store-file-uploader .store-upload-button{grid-column:1/-1}.store-admin-top-actions{flex-wrap:wrap}.store-editor-card{padding:18px}.store-editor-card-head{flex-direction:column}.store-editor-card-head>span{text-align:left}.store-publication-card{align-items:flex-start;flex-direction:column}}
