:root{color-scheme:light;--ink:#122237;--muted:#526782;--line:#cfdce8;--paper:#f7fbff;--blue:#1553b3;--teal:#0c6e64;--shadow:0 16px 50px #1a386515;font:15px/1.5 "Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;color:var(--ink);min-height:100vh;background:radial-gradient(ellipse at 77% 0,#dcf6f2 0,transparent 50%),radial-gradient(ellipse at 37% 6%,#dce9fd 0,transparent 58%),#f0f5fa}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.55}
:focus-visible{outline:3px solid #397fdb;outline-offset:2px}
h1,h2,h3,p,dl,dd{margin:0}
h1{font-size:clamp(2rem,4vw,3rem);line-height:1.08;letter-spacing:-.055em;font-weight:730;overflow-wrap:anywhere}
h2{font-size:1.04rem;line-height:1.3}
p,.muted{color:var(--muted)}
.glass{border:1px solid #ffffffdd;background:#ffffff88;backdrop-filter:blur(14px);box-shadow:var(--shadow);border-radius:20px}
.workspace{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}
.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:36px;padding:26px 15px;background:linear-gradient(155deg,#1c3656,#101e33 65%);color:#f2f7ff}
.brand{display:flex;align-items:center;gap:11px;padding:0 4px;font-size:.96rem;font-weight:600;white-space:nowrap}
.brand strong{color:#98e7d7;font-weight:650}
.mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;color:#14324c;background:linear-gradient(145deg,#ecfff8,#99dbef);font-size:1.2rem;font-weight:800;box-shadow:0 3px 18px #85efe84f}
.nav-item,.sign-out{width:100%;display:flex;align-items:center;gap:11px;border:1px solid #ffffff24;background:#ffffff10;color:#eff8ff;padding:11px 13px;border-radius:11px;text-align:left;font-weight:650}
.nav-icon,.empty-icon{width:16px;height:16px;border:1.5px solid currentColor;border-radius:4px;display:inline-grid;place-items:center}
.nav-icon::after,.empty-icon::after{content:"";width:58%;border-top:1.5px solid currentColor}
.sign-out{margin-top:auto;background:transparent;color:#d1e3f5}
.main{padding:38px clamp(16px,4vw,56px) 54px;max-width:1720px;width:100%;margin-inline:auto;min-width:0}
.page-header{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:24px}
.page-header p{margin-top:8px}
.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;gap:6px;min-height:39px;padding:8px 14px;border-radius:10px;border:1px solid transparent;text-decoration:none;font-weight:650;white-space:nowrap}
.primary{background:#1654b4;color:white;box-shadow:0 4px 12px #1654b43b}
.primary:hover:enabled{background:#113f89}
.secondary{background:#fafdff;border-color:var(--line);color:#213e63}
.secondary:hover:enabled,.secondary[aria-pressed=true]{background:#e8f1ff;border-color:#a3bbde}
.text-button{padding:4px 2px;border:0;background:none;color:var(--blue);font-weight:660}
.danger{color:#8a3440}
.back{margin-bottom:12px}
.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.metrics div{padding:15px 19px}
.metrics dt{color:var(--muted);font-weight:600}
.metrics dd{font-weight:730;font-size:1.72rem;letter-spacing:-.045em}
.catalog-panel{overflow:hidden}
.filters,.bulk{display:flex;gap:10px;align-items:center;padding:16px;flex-wrap:wrap}
.filters input{flex:1 1 210px}
.filters select,.bulk select,.bulk input{width:auto;max-width:100%}
.bulk{border-top:1px solid #dfe9f4;background:#eff6ff}
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;text-align:left}
th,td{padding:12px 14px;border-top:1px solid #dde8f1}
th{background:#edf4fb;color:#425c7a;font-size:.83rem;white-space:nowrap}
td:first-child,th:first-child{width:34px;padding-right:0}
th input,td input{width:16px;height:16px;accent-color:var(--blue)}
.product-cell{display:flex;gap:10px;align-items:center;min-width:160px}
.product-cell img,.thumb-placeholder{width:40px;height:40px;object-fit:cover;border-radius:9px;background:#e4edf7}
.product-name{display:block;text-align:left;overflow-wrap:anywhere}
.product-cell small{color:var(--muted)}
.empty{display:grid;justify-items:center;text-align:center;gap:8px;padding:48px 12px}
.empty-icon{width:36px;height:36px;border-radius:11px;background:#e5f1fc;color:#4377a3}
.badge{display:inline-block;border-radius:999px;padding:3px 10px;background:#e7eef8;color:#365679;font-size:.8rem;font-weight:640}
.badge[data-status=published]{background:#d8f5eb;color:#176552}
.badge[data-status=archived]{background:#edf0f5;color:#4c5263}
.editor-layout{display:grid;align-items:start;grid-template-columns:minmax(0,1fr) minmax(260px,.47fr);gap:16px}
.editor-form{min-width:0;background:#faffffb8;overflow:hidden}
.tabs{display:flex;overflow-x:auto;gap:4px;padding:9px;border-bottom:1px solid var(--line);background:#eaf2fe75}
.tabs button{color:#3c5677;border:1px solid transparent;background:transparent;border-radius:9px;padding:7px 10px;white-space:nowrap;font-weight:620}
.tabs [aria-pressed=true]{background:white;color:#1553a7;border-color:#d8e6f5;box-shadow:0 2px 6px #07275015}
.pane{padding:20px}
.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.wide{grid-column:1/-1}
.category-field{display:grid;gap:5px;font-size:.88rem;font-weight:650}
.category-control{display:flex;align-items:center;gap:9px}
.category-trigger{width:100%;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;border:1px solid var(--line);border-radius:9px;padding:8px 10px;background:#fcfeff;color:var(--ink)}
.category-trigger::after{content:'';flex:none;width:7px;height:7px;border:solid var(--muted);border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin-right:4px}
.category-trigger:hover{border-color:#8baed6}
.category-suggestions{display:grid;gap:5px;margin-top:3px}
#category-suggestion-list{display:flex;flex-wrap:wrap;gap:6px}
.category-suggestion{max-width:100%;padding:4px 10px;border-radius:999px;border:1px solid #c8dcf5;background:#eef6ff;color:#1e538f;font-weight:660;text-align:left}
.category-suggestion:hover{background:#ddecff}
.category-dialog{width:min(650px,calc(100% - 24px));max-height:85vh;max-height:85dvh;overflow:auto;padding:18px;border:1px solid #d3e1ee;color:var(--ink);background:#f6faff;border-radius:16px;box-shadow:var(--shadow)}
.category-dialog::backdrop{background:#15263d88;backdrop-filter:blur(2px)}
.category-dialog-header,.category-breadcrumbs{display:flex;align-items:center;gap:7px}
.category-dialog-header{justify-content:space-between;margin-bottom:12px}
.category-breadcrumbs{flex-wrap:wrap;margin:7px 0 4px;font-size:.86rem}
.category-results-status{margin:6px 0;font-size:.9rem}
.category-results-status:empty{margin:0}
.category-results{display:grid;gap:5px;max-height:53vh;max-height:53dvh;overflow:auto;padding:4px}
.category-row{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;text-align:left;border:1px solid #dbe5ef;border-radius:8px;background:#fff;color:var(--ink);font-weight:630}
.category-row:hover,.category-row[aria-current=true]{background:#eaf3ff;border-color:#bad1ee}
.category-row small{display:block;color:var(--muted);font-weight:480}
.category-row-action{flex:none;color:#235b9b;font-size:.85rem}
.category-use{justify-self:start;margin:1px 0 4px}
label{display:grid;gap:5px;font-size:.88rem;font-weight:650}
input,select,textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:9px;padding:8px 10px;background:#fcfeff;color:var(--ink)}
textarea{resize:vertical}
.section-header,.preview-toolbar{display:flex;gap:8px;justify-content:space-between;align-items:center;margin:20px 0 10px}
.pane>.section-header:first-child,.preview-toolbar{margin-top:0}
.pane>h2{margin-bottom:12px}
.section-header p,.margin span,.currency{font-size:.83rem}
.block-tools,.actions,.row-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.row-actions .secondary{min-height:32px;padding:4px 8px}
.upload-label{position:relative;cursor:pointer;font-size:inherit}
.upload-label input{position:absolute;inset:0;opacity:0;cursor:pointer}
.upload-label:focus-within{outline:3px solid #397fdb;outline-offset:2px}
.drop-zone{padding:11px;border:1px dashed #8eaac9;border-radius:9px;text-align:center;color:var(--muted);background:#f8fbff}
.drop-zone.dragging{border-color:var(--blue);background:#e7f3ff;color:var(--blue)}
.stack,.gallery{display:grid;gap:9px;margin-top:10px}
.gallery{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
.item{display:grid;gap:9px;padding:10px;border:1px solid #d8e4ef;background:var(--paper);border-radius:11px;min-width:0}
.item img{width:100%;height:112px;border-radius:7px;object-fit:contain;background:#eaf1f8}
.item-title{color:#4e6280;font-weight:650}
.spec-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end}
.margin{display:grid;align-content:center;padding:5px 9px;color:var(--teal)}
.margin output{font-weight:700}
.preview{padding:16px;position:sticky;top:16px}
.currency{grid-template-columns:1fr auto;align-items:center}
#rate-status{font-size:.79rem;min-height:1.3em;margin:5px 0}
.preview-product{padding:14px;border:1px solid #d6e3ee;border-radius:13px;background:#fcfeff;overflow-wrap:anywhere}
.preview-product>*+*{margin-top:10px}
.preview-product h3{font-size:1.25rem;line-height:1.23}
.preview-product small{color:var(--muted)}
.preview-product figure{margin:12px 0}
.preview-product figcaption{color:var(--muted);font-size:.85rem}
.preview-product table td{padding:6px 8px;overflow-wrap:anywhere}
.preview-product img,.preview-placeholder{display:block;width:100%;max-height:300px;object-fit:contain;background:#eaf1f8;border-radius:8px}
.preview-placeholder{aspect-ratio:1.6;display:grid;place-items:center;color:#48617d}
.preview-price{color:var(--teal);font-size:1.17rem;font-weight:730}
.preview-copy{white-space:pre-wrap}
.preview-dialog{width:min(940px,calc(100% - 24px));max-height:90vh;padding:16px;border:1px solid var(--line);color:var(--ink);background:#edf4fc;border-radius:16px}
.preview-dialog::backdrop{background:#15263d88;backdrop-filter:blur(2px)}
.preview-dialog .mobile{width:min(100%,390px);margin:auto}
.feedback{font-size:.9rem}
.feedback[data-error=true]{color:#8a2435}
.main-feedback{padding:9px 12px;border-radius:10px;background:#fafdff;border:1px solid var(--line);margin-bottom:12px}
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:16px}
.login-card{width:min(100%,420px);padding:30px;display:grid;gap:15px}
.login-card h1{font-size:2.05rem;margin-top:4px}
.login-card .brand strong{color:var(--teal)}
@media(max-width:1100px){.workspace{grid-template-columns:175px minmax(0,1fr)}.main{padding-inline:24px}.sidebar{padding-inline:12px}.editor-layout{grid-template-columns:minmax(0,1fr) minmax(225px,.5fr)}}
@media(max-width:830px){.workspace{display:block}.sidebar{position:static;height:auto;flex-direction:row;align-items:center;gap:12px;padding:10px 15px}.sign-out{margin:0 0 0 auto;width:auto;padding:6px 9px}.nav-item{padding:6px 9px}.main{padding:23px 15px 36px}.preview{position:static}.editor-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:470px){.sidebar nav{display:none}.page-header{align-items:flex-start;flex-wrap:wrap}.metrics{gap:5px}.metrics div{padding:10px 7px}.metrics dt{font-size:.75rem}.pane{padding:13px}.field-grid,.spec-row{grid-template-columns:minmax(0,1fr)}.preview-toolbar{flex-wrap:wrap}}
