@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #172820;
  --muted: #78827c;
  --line: #e4e7e1;
  --line-strong: #d5dbd3;
  --canvas: #f5f6f2;
  --surface: #fff;
  --surface-soft: #f9faf7;
  --brand: #1d6c57;
  --brand-dark: #164c3f;
  --brand-pale: #e8f2ee;
  --sand: #eae2d5;
  --red: #a43e37;
  --red-pale: #f8ecea;
  --shadow: 0 18px 48px rgba(28, 43, 35, .08);
  --radius: 18px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--canvas); }
button, input, select { font: inherit; }
button { color: inherit; }
svg { width: 20px; height: 20px; flex: 0 0 auto; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(29, 108, 87, .3); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .48; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; display: flex; flex-direction: column; width: 244px; padding: 28px 18px 20px; background: #fff; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 9px 36px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: var(--ink); font: 800 13px 'Manrope', sans-serif; letter-spacing: -.06em; }
.brand strong { display: block; font: 800 16px 'Manrope', sans-serif; letter-spacing: -.045em; }
.brand small { display: block; margin-top: 3px; color: #9aa29d; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.sidebar-caption { padding: 0 12px 10px; color: #a0a8a2; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.side-nav { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 46px; padding: 0 13px; border: 0; border-radius: 12px; background: transparent; color: #69756e; text-align: left; font-size: 14px; font-weight: 600; cursor: pointer; }
.nav-item:hover { background: #f6f8f5; color: var(--ink); }
.nav-item.active { color: var(--brand-dark); background: var(--brand-pale); }
.nav-icon, [data-icon] { display: inline-grid; place-items: center; flex: 0 0 auto; width: 19px; height: 19px; }
.nav-icon svg, [data-icon] svg { width: 100%; height: 100%; stroke: currentColor; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; }
.admin-card { display: flex; align-items: center; gap: 10px; padding: 8px 4px; }
.admin-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--brand-dark); background: #e5eee8; font-size: 13px; font-weight: 700; }
.admin-card strong { display: block; font-size: 12px; }
.admin-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.more-icon { margin-left: auto; width: 16px; height: 16px; color: #8c9690; }
.main-area { min-height: 100vh; margin-left: 244px; }
.content { width: min(1390px, 100%); min-height: 100vh; margin: 0 auto; padding: 40px 54px 56px; }
.mobile-header, .mobile-nav { display: none; }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Manrope', 'DM Sans', sans-serif; letter-spacing: -.045em; }
h1 { margin-bottom: 9px; font-size: clamp(27px, 2.4vw, 36px); line-height: 1.15; font-weight: 750; }
h2 { margin-bottom: 6px; font-size: 22px; line-height: 1.25; font-weight: 750; }
h3 { margin-bottom: 5px; font-size: 16px; line-height: 1.3; font-weight: 700; }
.subheading { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.page-header-copy { min-width: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 17px; border: 1px solid transparent; border-radius: 12px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.button:active { transform: translateY(1px); }
.button svg { width: 17px; height: 17px; stroke: currentColor; }
.button.primary { color: #fff; background: var(--brand); box-shadow: 0 5px 12px rgba(29, 108, 87, .14); }
.button.primary:hover { background: var(--brand-dark); }
.button.secondary { color: var(--ink); border-color: var(--line-strong); background: #fff; }
.button.secondary:hover { border-color: #bfc9c1; background: #fbfcfa; }
.button.ghost { color: #526158; background: transparent; }
.button.ghost:hover { background: #f0f3ef; }
.button.danger { color: var(--red); background: var(--red-pale); }
.button.icon-button { width: 40px; min-width: 40px; min-height: 40px; padding: 0; border-color: var(--line); color: #637068; background: #fff; }
.button.icon-button svg { width: 16px; height: 16px; }
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 31px; }
.stat-card { display: flex; align-items: center; gap: 15px; min-height: 94px; padding: 19px 21px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.stat-symbol { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--brand); background: #edf4f0; }
.stat-symbol svg { width: 21px; height: 21px; stroke: currentColor; }
.stat-value { font: 750 24px 'Manrope', sans-serif; letter-spacing: -.05em; }
.stat-label { margin-top: 3px; color: #7c8780; font-size: 12px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.section-title-row h2 { margin: 0; font-size: 19px; }
.section-title-row .subheading { font-size: 12px; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.category-card { position: relative; overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 17px; background: #fff; transition: box-shadow .18s, transform .18s, border-color .18s; }
.category-card:hover { transform: translateY(-2px); border-color: #cfd8d0; box-shadow: var(--shadow); }
.category-cover { position: relative; height: 142px; overflow: hidden; background: #e9e7de; }
.category-cover img { width: 100%; height: 100%; object-fit: cover; }
.category-cover::after { position: absolute; inset: 35% 0 0; content: ''; background: linear-gradient(transparent, rgba(15, 34, 26, .18)); pointer-events: none; }
.category-cover.blank { display: grid; place-items: center; background: linear-gradient(135deg, #e9eee8, #f1eee7); }
.cover-mark { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(30, 70, 54, .12); border-radius: 17px; color: rgba(29, 82, 64, .5); background: rgba(255,255,255,.55); }
.cover-mark svg { width: 25px; height: 25px; stroke: currentColor; }
.category-card-body { padding: 16px 17px 15px; }
.category-name-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.category-name-row h3 { margin: 0; font-size: 16px; }
.card-meta { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.card-dot { width: 4px; height: 4px; border-radius: 50%; background: #a9b1ab; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #eef0ec; }
.category-card-tools { display: flex; align-items: center; gap: 9px; }
.text-action { min-height: 34px; padding: 0 2px; border: 0; color: var(--brand); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.text-action svg { width: 16px; height: 16px; vertical-align: middle; stroke: currentColor; }
.text-action:hover { color: var(--brand-dark); text-decoration: underline; }
.text-action.quiet { color: #7d8880; font-size: 11px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 20px; white-space: nowrap; font-size: 10px; font-weight: 700; line-height: 1; }
.pill::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ''; }
.pill.active { color: #286e59; background: #e9f4ee; }
.pill.inactive { color: #7c847e; background: #eef0ed; }
.pill.unavailable { color: #8e5d2d; background: #f8f0e4; }
.pill.subtle { color: #69756e; background: #f0f2ef; }
.page-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 27px; margin-bottom: 21px; color: #87918a; font-size: 12px; }
.page-breadcrumb button { padding: 2px 0; border: 0; color: #6e7972; background: transparent; font-weight: 600; cursor: pointer; }
.page-breadcrumb button:hover { color: var(--brand); }
.crumb-sep { color: #bdc4be; }
.crumb-current { color: var(--ink); font-weight: 700; }
.catalog-layout { display: grid; grid-template-columns: 222px minmax(0, 1fr); gap: 26px; align-items: start; }
.category-picker { position: sticky; top: 24px; padding: 15px 11px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.category-picker-title { padding: 2px 9px 11px; color: #99a29c; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.category-pick { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 6px 9px; border: 0; border-radius: 10px; color: #637068; background: transparent; text-align: left; cursor: pointer; }
.category-pick:hover { background: #f7f8f5; }
.category-pick.selected { color: var(--brand-dark); background: #eaf3ee; }
.pick-thumb { flex: 0 0 auto; width: 30px; height: 30px; overflow: hidden; border-radius: 8px; background: #e8e9e3; }
.pick-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pick-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 650; }
.pick-count { margin-left: auto; color: #929c95; font-size: 10px; }
.catalog-main { min-width: 0; }
.catalog-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.catalog-toolbar h1 { font-size: 26px; }
.catalog-toolbar .subheading { font-size: 13px; }
.catalog-actions { display: flex; align-items: center; gap: 9px; }
.search-box { position: relative; width: min(245px, 31vw); }
.search-box svg { position: absolute; top: 50%; left: 12px; width: 16px; height: 16px; transform: translateY(-50%); color: #8d9890; stroke: currentColor; }
.search-box input { width: 100%; height: 42px; padding: 0 12px 0 37px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: #fff; font-size: 12px; }
.search-box input:focus { border-color: #8eb5a5; box-shadow: 0 0 0 3px rgba(29, 108, 87, .1); }
.product-list { display: grid; gap: 11px; }
.product-card { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 92px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 15px; background: #fff; transition: border .16s, box-shadow .16s; }
.product-card:hover { border-color: #cad5cc; box-shadow: 0 8px 25px rgba(28, 43, 35, .06); }
.product-image { width: 70px; height: 68px; overflow: hidden; border-radius: 11px; background: #eeece5; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-copy { min-width: 0; }
.product-copy h3 { margin-bottom: 5px; font-size: 15px; }
.product-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.product-card-actions { display: flex; align-items: center; gap: 8px; }
.product-card-actions .button { min-height: 37px; padding: 0 12px; font-size: 11px; }
.arrow-button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; color: #637068; background: #fff; cursor: pointer; }
.arrow-button:hover { color: var(--brand); border-color: #adc7bb; }
.arrow-button svg { width: 16px; height: 16px; stroke: currentColor; }
.empty-state { display: grid; justify-items: center; padding: 58px 25px; border: 1px dashed #d4dbd3; border-radius: 16px; background: rgba(255,255,255,.56); text-align: center; }
.empty-symbol { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 15px; border-radius: 15px; color: #5b8a74; background: #e9f1eb; }
.empty-symbol svg { width: 21px; height: 21px; stroke: currentColor; }
.empty-state h3 { margin-bottom: 6px; font-size: 16px; }
.empty-state p { max-width: 310px; margin-bottom: 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.variant-layout { display: grid; grid-template-columns: minmax(0, 1fr) 258px; gap: 20px; align-items: start; }
.variant-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.variant-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.variant-thumb { position: relative; height: 156px; overflow: hidden; background: #e8e7df; }
.variant-thumb img { width: 100%; height: 100%; object-fit: cover; }
.variant-thumb .pill { position: absolute; top: 10px; left: 10px; box-shadow: 0 2px 8px rgba(22, 40, 31, .08); }
.variant-card-body { padding: 12px 13px 13px; }
.variant-topline { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.variant-topline h3 { margin: 0; font-size: 14px; }
.variant-subtitle { margin: 6px 0 12px; color: #87918a; font-size: 11px; }
.variant-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid #eef0ec; }
.variant-actions .text-action { font-size: 11px; }
.status-toggle { display: inline-flex; align-items: center; gap: 7px; color: #69756e; font-size: 10px; font-weight: 600; }
.switch { position: relative; display: inline-flex; align-items: center; width: 35px; height: 20px; padding: 2px; border: 0; border-radius: 12px; background: #b9c0ba; cursor: pointer; transition: background .15s; }
.switch::after { width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); content: ''; transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--brand); }
.switch[aria-checked="true"]::after { transform: translateX(15px); }
.detail-side { position: sticky; top: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.detail-side-image { height: 154px; background: #e9e7df; }
.detail-side-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-side-content { padding: 17px; }
.detail-side-content .eyebrow { margin-bottom: 6px; font-size: 9px; }
.detail-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.detail-stats strong { display: block; font: 700 17px 'Manrope', sans-serif; }
.detail-stats span { color: var(--muted); font-size: 10px; }
.editor-header { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.editor-header h1 { margin-bottom: 4px; font-size: 26px; }
.editor-header .subheading { font-size: 12px; }
.back-button { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; color: #57665e; background: #fff; cursor: pointer; }
.back-button:hover { color: var(--brand); border-color: #b7c9bf; }
.back-button svg { width: 18px; height: 18px; stroke: currentColor; }
.editor-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 28px rgba(28, 43, 35, .035); }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); }
.editor-form { display: grid; align-content: start; gap: 18px; padding: 24px 25px 27px; }
.editor-aside { display: grid; align-content: start; gap: 15px; padding: 24px; border-left: 1px solid var(--line); background: #fafbf8; }
.field { display: grid; align-content: start; gap: 7px; }
.field label, .field-label { color: #35453c; font-size: 12px; font-weight: 700; }
.field-hint { margin: -2px 0 0; color: #87918a; font-size: 11px; line-height: 1.5; }
.text-input, .select-input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #dce2dc; border-radius: 10px; color: var(--ink); background: #fff; font-size: 13px; outline: 0; }
.text-input:focus, .select-input:focus { border-color: #8eb5a5; box-shadow: 0 0 0 3px rgba(29, 108, 87, .1); }
.field-row { display: grid; grid-template-columns: 1fr 126px; gap: 13px; align-items: end; }
.number-input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #dce2dc; border-radius: 10px; background: #fff; font-size: 13px; }
.state-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfa; }
.state-row-copy strong { display: block; font-size: 12px; }
.state-row-copy small { display: block; margin-top: 3px; color: #87918a; font-size: 10px; }
.image-field { padding: 13px; border: 1px solid #e2e7e1; border-radius: 13px; background: #fff; }
.image-field-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 11px; }
.image-field-head strong { font-size: 12px; }
.image-preview { display: flex; align-items: center; gap: 12px; min-height: 76px; }
.image-preview img { flex: 0 0 auto; width: 84px; height: 72px; border-radius: 9px; object-fit: cover; background: #efeee8; }
.image-placeholder { display: grid; place-items: center; flex: 0 0 auto; width: 84px; height: 72px; border-radius: 9px; color: #9aa69e; background: #f0f2ee; }
.image-placeholder svg { width: 22px; height: 22px; stroke: currentColor; }
.image-preview-copy { min-width: 0; }
.image-preview-copy small { display: block; overflow: hidden; max-width: 185px; color: #87918a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.image-preview-copy .button { margin-top: 8px; min-height: 32px; padding: 0 10px; font-size: 10px; }
.file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
.same-image-row { display: flex; align-items: center; gap: 9px; margin-top: 11px; padding-top: 10px; border-top: 1px solid #eef0ec; color: #536159; font-size: 11px; font-weight: 600; }
.same-image-row input { width: 16px; height: 16px; accent-color: var(--brand); }
.texture-note { margin: 10px 0 0; color: #89938c; font-size: 10px; line-height: 1.5; }
.advanced { border-top: 1px solid var(--line); padding-top: 15px; }
.advanced summary { display: flex; align-items: center; justify-content: space-between; min-height: 28px; color: #314239; font-size: 12px; font-weight: 700; cursor: pointer; list-style: none; }
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::after { content: '+'; color: var(--brand); font-size: 18px; font-weight: 500; }
.advanced[open] summary::after { content: '−'; }
.advanced-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 14px; }
.editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); background: #fcfdfa; }
.editor-footer .button { min-width: 108px; }
.form-error { display: none; padding: 10px 12px; border-radius: 9px; color: #8d3732; background: #fbefed; font-size: 11px; }
.form-error.visible { display: block; }
.toast-region { position: fixed; z-index: 50; right: 22px; bottom: 22px; display: grid; gap: 9px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 240px; padding: 13px 16px; border: 1px solid #d6e8dc; border-radius: 12px; color: #174b3d; background: #f1f8f3; box-shadow: 0 12px 35px rgba(20, 45, 34, .13); font-size: 12px; font-weight: 650; animation: toast-in .18s ease-out; }
.toast-mark { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; background: var(--brand); font-size: 12px; }
@keyframes toast-in { from { transform: translateY(7px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.dialog-backdrop { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(16, 31, 24, .32); backdrop-filter: blur(3px); }
.dialog { width: min(440px, 100%); padding: 24px; border: 1px solid rgba(255,255,255,.5); border-radius: 18px; background: #fff; box-shadow: 0 24px 90px rgba(13, 30, 22, .2); }
.dialog h2 { margin: 0 0 8px; font-size: 19px; }
.dialog p { margin-bottom: 22px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; }
.order-controls { display: inline-flex; gap: 5px; }
.order-controls button { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; color: #657169; background: #fff; cursor: pointer; }
.order-controls button:hover:not(:disabled) { color: var(--brand); border-color: #b7c9bf; }
.order-controls svg { width: 14px; height: 14px; stroke: currentColor; }
.quick-note { max-width: 1000px; margin: 25px 0 0; padding: 14px 17px; border: 1px solid #e5e8e2; border-radius: 13px; color: #6f7a73; background: rgba(255,255,255,.66); font-size: 11px; line-height: 1.55; }
.quick-note strong { color: #34463b; }
.screen-reader-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }

@media (max-width: 1120px) {
  .sidebar { width: 218px; }
  .main-area { margin-left: 218px; }
  .content { padding: 34px 32px 48px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .variant-layout { grid-template-columns: minmax(0, 1fr) 220px; }
  .variant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-grid { grid-template-columns: minmax(0, 1fr) minmax(265px, .85fr); }
}
@media (max-width: 760px) {
  body { background: #f7f8f5; }
  .sidebar { display: none; }
  .main-area { margin: 0; padding-bottom: 70px; }
  .mobile-header { position: sticky; top: 0; z-index: 12; display: flex; align-items: center; justify-content: space-between; height: 62px; padding: 0 17px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(12px); }
  .brand.compact { gap: 8px; padding: 0; }
  .brand.compact .brand-mark { width: 32px; height: 32px; border-radius: 10px; font-size: 11px; }
  .brand.compact strong { font-size: 14px; }
  .mobile-title { color: #7b867f; font-size: 12px; font-weight: 650; }
  .content { min-height: calc(100vh - 132px); padding: 26px 17px 34px; }
  .mobile-nav { position: fixed; z-index: 20; inset: auto 0 0; display: grid; grid-template-columns: 1fr 1fr; height: calc(62px + env(safe-area-inset-bottom)); padding: 6px 18px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(14px); }
  .mobile-nav button { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 48px; border: 0; border-radius: 10px; color: #7f8982; background: transparent; font-size: 10px; font-weight: 650; cursor: pointer; }
  .mobile-nav button.active { color: var(--brand); }
  .mobile-nav [data-icon] { width: 19px; height: 19px; }
  .page-header { align-items: flex-start; margin-bottom: 21px; }
  h1 { font-size: 27px; }
  .page-header .subheading { font-size: 12px; }
  .page-header > .header-actions { align-self: flex-start; }
  .page-header > .header-actions .button { min-width: 42px; width: 42px; padding: 0; font-size: 0; }
  .page-header > .header-actions .button svg { width: 18px; height: 18px; }
  .stats-row { gap: 8px; margin-bottom: 25px; }
  .stat-card { display: block; min-height: 82px; padding: 12px; border-radius: 13px; }
  .stat-symbol { width: 28px; height: 28px; margin-bottom: 7px; border-radius: 9px; }
  .stat-symbol svg { width: 16px; height: 16px; }
  .stat-value { font-size: 18px; }
  .stat-label { font-size: 9px; }
  .category-grid { grid-template-columns: 1fr; gap: 11px; }
  .category-card { display: grid; grid-template-columns: 94px minmax(0, 1fr); min-height: 112px; border-radius: 14px; }
  .category-cover { height: 100%; min-height: 112px; }
  .category-card-body { display: flex; flex-direction: column; justify-content: center; padding: 11px 13px; }
  .category-name-row h3 { font-size: 14px; }
  .card-meta { margin-top: 5px; font-size: 10px; }
  .card-actions { margin-top: 9px; padding-top: 5px; border-top: 0; }
  .category-card .card-actions .order-controls { display: none; }
  .text-action, .category-pick, .order-controls button, .back-button, .arrow-button, .image-preview-copy .button { min-height: 44px; }
  .order-controls button { width: 44px; }
  .switch { min-width: 44px; min-height: 44px; background-clip: content-box; padding: 12px 5px; }
  .switch::after { flex: 0 0 16px; }
  .switch[aria-checked="true"]::after { transform: translateX(18px); }
  .catalog-layout { display: block; }
  .category-picker { position: static; display: flex; gap: 6px; overflow-x: auto; margin: 0 -17px 20px; padding: 4px 17px 9px; border: 0; border-radius: 0; background: transparent; scrollbar-width: none; }
  .category-picker::-webkit-scrollbar { display: none; }
  .category-picker-title { display: none; }
  .category-pick { flex: 0 0 auto; width: auto; min-height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
  .pick-thumb { display: none; }
  .pick-name { font-size: 11px; }
  .pick-count { font-size: 9px; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 14px; }
  .catalog-toolbar h1 { margin-bottom: 4px; font-size: 23px; }
  .catalog-actions { width: 100%; }
  .search-box { width: 100%; flex: 1; }
  .catalog-actions > .button { flex: 0 0 auto; width: 43px; padding: 0; font-size: 0; }
  .product-card { grid-template-columns: 58px minmax(0, 1fr) 44px; gap: 11px; min-height: 78px; padding: 9px; border-radius: 13px; }
  .product-image { width: 58px; height: 58px; border-radius: 9px; }
  .product-copy h3 { font-size: 13px; }
  .product-copy p { font-size: 10px; }
  .product-card-actions .button { display: none; }
  .product-card-actions .arrow-button { width: 44px; height: 44px; }
  .product-card-actions .order-controls { display: none; }
  .page-breadcrumb { gap: 6px; margin-bottom: 16px; font-size: 11px; }
  .variant-layout { display: flex; flex-direction: column; gap: 16px; }
  .variant-layout > * { width: 100%; }
  .variant-grid { grid-template-columns: 1fr; gap: 10px; }
  .variant-thumb { height: 190px; }
  .variant-card-body { padding: 10px; }
  .variant-topline h3 { font-size: 12px; }
  .variant-subtitle { margin: 5px 0 9px; font-size: 9px; }
  .variant-actions { align-items: flex-start; flex-direction: column; gap: 6px; }
  .detail-side { position: static; display: grid; grid-template-columns: 96px minmax(0, 1fr); }
  .detail-side-image { height: 100%; min-height: 110px; }
  .detail-side-content { padding: 12px; }
  .detail-side-content h2 { font-size: 16px; }
  .detail-side-content .detail-stats { margin-top: 9px; padding-top: 8px; }
  .editor-header { align-items: flex-start; margin-bottom: 15px; }
  .editor-header h1 { font-size: 22px; }
  .editor-header .subheading { font-size: 11px; }
  .editor-card { border-radius: 15px; }
  .editor-card { overflow: visible; }
  .editor-grid { display: flex; flex-direction: column; }
  .editor-form { gap: 15px; padding: 17px 15px; }
  .editor-aside { display: contents; }
  .editor-aside > * { margin: 0 15px; }
  .field-row { grid-template-columns: 1fr 96px; gap: 10px; }
  .advanced-grid { grid-template-columns: 1fr; }
  .editor-footer { position: sticky; z-index: 9; bottom: calc(62px + env(safe-area-inset-bottom)); padding: 10px 12px; }
  .editor-footer .button { flex: 1; }
  .editor-footer .button.ghost { flex: 0 0 auto; }
  .image-preview img { width: 74px; height: 65px; }
  .toast-region { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); left: 12px; }
  .toast { min-width: 0; }
  .quick-note { margin-top: 18px; font-size: 10px; }
}
@media (max-width: 390px) {
  .content { padding-right: 13px; padding-left: 13px; }
  .stats-row { gap: 6px; }
  .stat-card { padding: 10px 8px; }
  .category-picker { margin-right: -13px; margin-left: -13px; padding-right: 13px; padding-left: 13px; }
  .variant-grid { gap: 8px; }
  .variant-thumb { height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
