@font-face {
  font-family: "MiSans";
  src: url("/assets/fonts/MiSansVF.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}

:root {
  color-scheme: light;
  font: 100%/1.5 "MiSans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f5f5f2;
  --surface: #fff;
  --surface-soft: #f8f8f6;
  --sidebar: #171716;
  --text: #1d1d1b;
  --secondary: #666661;
  --muted: #969690;
  --line: #e7e7e2;
  --line-strong: #d9d9d2;
  --accent: #7569e8;
  --accent-soft: #eeecff;
  --green: #2e8c62;
  --green-soft: #eaf7f0;
  --red: #c64c4c;
  --red-soft: #fff0ef;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --shadow: 0 18px 55px rgba(28, 28, 24, .08);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
button, input, textarea, select { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { color: #171716; background: #dcd8ff; }
:focus-visible { outline: 3px solid rgba(117, 105, 232, .28); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; top: 12px; left: 12px; padding: 10px 16px; border-radius: 10px; color: #fff; background: var(--sidebar); transform: translateY(-180%); transition: transform 160ms var(--ease-out); }
.skip-link:focus { transform: none; }
.eyebrow { color: var(--muted); font-size: .6875rem; font-weight: 680; letter-spacing: .14em; }

/* Sign in */
.login-view { min-height: 100vh; display: grid; place-items: center; padding: 32px; background: radial-gradient(circle at 50% 0%, #fff 0, transparent 45%), var(--bg); }
.login-card { width: min(420px, 100%); padding: 42px 44px 36px; border: 1px solid rgba(30, 30, 25, .06); border-radius: 28px; background: rgba(255, 255, 255, .92); box-shadow: 0 28px 80px rgba(35, 35, 28, .09); }
.login-brand, .brand-mark { display: grid; place-items: center; color: #fff; background: var(--sidebar); font-weight: 720; letter-spacing: -.08em; }
.login-brand { width: 52px; height: 52px; margin-bottom: 33px; border-radius: 16px; font-size: 1.35rem; }
.login-card h1 { margin-top: 9px; font-size: 2rem; line-height: 1.2; letter-spacing: -.04em; }
.login-intro { margin-top: 10px; color: var(--secondary); font-size: .875rem; }
.login-card form { display: grid; gap: 17px; margin-top: 29px; }
.login-card label, .field-grid > label { display: grid; gap: 8px; }
.login-card label > span, .field-grid label > span, .field-label { color: #4f4f4a; font-size: .8125rem; font-weight: 600; }
input, textarea, select { width: 100%; border: 1px solid var(--line-strong); border-radius: 12px; outline: 0; background: #fff; transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease; }
input, select { height: 46px; padding: 0 14px; }
textarea { min-height: 92px; padding: 12px 14px; line-height: 1.7; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(117, 105, 232, .11); }
input::placeholder, textarea::placeholder { color: #aaa9a3; }
.form-error { min-height: 20px; color: var(--red); font-size: .75rem; }
.login-submit { width: 100%; justify-content: space-between; margin-top: 1px; }
.login-footnote { margin-top: 27px; color: var(--muted); text-align: center; font-size: .6875rem; }

/* Shared buttons */
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 17px; border: 1px solid transparent; border-radius: 12px; font-size: .8125rem; font-weight: 620; transition: transform 140ms var(--ease-out), background 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.button:active, .icon-button:active, .dialog-close:active, .nav-item:active, .product-row:active, .category-card:active, .upload-tile:active { transform: scale(.97); }
.button-primary { color: #fff; background: var(--sidebar); box-shadow: 0 7px 18px rgba(23, 23, 22, .13); }
.button-secondary { border-color: var(--line-strong); background: #fff; }
.button-danger { color: #fff; background: var(--red); }
.button[disabled] { cursor: wait; opacity: .55; }
.text-button { min-height: 40px; padding: 7px 9px; border: 0; background: transparent; font-size: .8125rem; font-weight: 600; }
.danger { color: var(--red); }

/* App frame */
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: 248px; display: flex; flex-direction: column; padding: 26px 18px 20px; color: #f3f3ef; background: var(--sidebar); }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.brand-mark { width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, .16); border-radius: 11px; background: #292927; font-size: .9rem; }
.sidebar-brand > div { display: grid; line-height: 1.2; }
.sidebar-brand strong { font-size: .8125rem; letter-spacing: .09em; }
.sidebar-brand small { margin-top: 4px; color: #8d8d88; font-size: .625rem; }
.sidebar-nav { display: grid; gap: 5px; margin-top: 42px; }
.nav-item { width: 100%; min-height: 46px; display: grid; grid-template-columns: 21px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 11px; color: #aaa9a4; text-align: left; background: transparent; font-size: .8125rem; transition: transform 140ms var(--ease-out), color 160ms ease, background 160ms ease; }
.nav-item svg, .search-field svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.nav-item.active { color: #fff; background: #2b2b29; }
.nav-count { min-width: 23px; height: 22px; display: grid; place-items: center; padding: 0 6px; border-radius: 999px; color: #9d9d98; background: #222220; font-size: .625rem; font-variant-numeric: tabular-nums; }
.nav-item.active .nav-count { color: #deded9; background: #3a3a37; }
.sidebar-bottom { display: grid; gap: 12px; margin-top: auto; }
.site-link { min-height: 43px; display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border: 1px solid #343431; border-radius: 11px; color: #b5b5b0; font-size: .75rem; transition: border-color 160ms ease, color 160ms ease, background 160ms ease; }
.account-card { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border: 0; border-radius: 11px; color: #e8e8e3; text-align: left; background: transparent; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #232321; background: #e7e5dd; font-size: .75rem; font-weight: 700; }
.account-card > span:last-child { display: grid; line-height: 1.25; }
.account-card strong { font-size: .75rem; }
.account-card small { margin-top: 3px; color: #777772; font-size: .625rem; }
.mobile-header { display: none; }

.workspace { min-height: 100vh; margin-left: 248px; padding: 54px clamp(32px, 5vw, 78px) 80px; }
.workspace-view { width: min(1180px, 100%); margin: 0 auto; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.page-header h1 { margin-top: 7px; font-size: clamp(2rem, 3vw, 2.65rem); line-height: 1.15; letter-spacing: -.05em; font-weight: 660; }
.page-header p:last-child { margin-top: 11px; color: var(--secondary); font-size: .8125rem; }

.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 39px; }
.summary-grid article { min-height: 132px; display: grid; grid-template-columns: 1fr auto; align-content: space-between; padding: 20px 21px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.summary-grid article > span { color: var(--secondary); font-size: .75rem; font-weight: 560; }
.summary-grid strong { grid-column: 1 / -1; margin-top: 11px; font-size: 2rem; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.summary-grid small { grid-column: 1 / -1; margin-top: 8px; color: var(--muted); font-size: .625rem; }

.panel { margin-top: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 4px 18px rgba(30, 30, 26, .025); }
.panel-toolbar { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.search-field { width: min(360px, 100%); position: relative; display: block; }
.search-field svg { position: absolute; top: 13px; left: 13px; color: var(--muted); }
.search-field input { height: 42px; padding-left: 41px; border-color: transparent; background: var(--surface-soft); }
.select-field select { width: auto; min-width: 152px; height: 42px; border-color: transparent; background-color: var(--surface-soft); font-size: .75rem; }
.product-list-head, .product-row { display: grid; grid-template-columns: minmax(250px, 2fr) minmax(130px, 1fr) 100px 65px 36px; align-items: center; gap: 18px; }
.product-list-head { min-height: 42px; padding: 0 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .625rem; font-weight: 650; letter-spacing: .04em; }
.product-row { width: 100%; min-height: 86px; padding: 11px 18px; border: 0; border-bottom: 1px solid var(--line); text-align: left; background: #fff; transition: transform 140ms var(--ease-out), background 160ms ease; }
.product-row:last-child { border-bottom: 0; border-radius: 0 0 20px 20px; }
.product-identity { min-width: 0; display: flex; align-items: center; gap: 14px; }
.product-thumb { width: 76px; height: 60px; flex: 0 0 auto; overflow: hidden; border-radius: 11px; background: #eeeee9; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-identity > span { min-width: 0; display: grid; gap: 5px; }
.product-identity strong { overflow: hidden; text-overflow: ellipsis; font-size: .8125rem; white-space: nowrap; }
.product-identity small { overflow: hidden; color: var(--muted); font-size: .625rem; text-overflow: ellipsis; white-space: nowrap; }
.category-chip, .status-chip { width: max-content; max-width: 100%; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; color: #5d5d57; background: #f1f1ed; font-size: .6875rem; white-space: nowrap; }
.status-chip::before { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); content: ""; }
.status-chip.published { color: var(--green); background: var(--green-soft); }
.status-chip.published::before { background: var(--green); }
.product-order { color: var(--secondary); font-size: .75rem; font-variant-numeric: tabular-nums; }
.row-arrow { color: var(--muted); font-size: 1.15rem; }
.empty-state { padding: 62px 20px; color: var(--secondary); text-align: center; }
.empty-state > span { display: block; color: var(--muted); font-size: 2rem; }
.empty-state h2 { margin-top: 9px; font-size: .95rem; }
.empty-state p { margin-top: 6px; color: var(--muted); font-size: .75rem; }

/* Category overview */
.series-section { margin-top: 47px; }
.series-section + .series-section { margin-top: 43px; }
.series-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 15px; }
.series-heading > div { display: flex; align-items: center; gap: 10px; }
.series-heading h2 { font-size: 1rem; letter-spacing: -.02em; }
.series-heading p { color: var(--muted); font-size: .6875rem; }
.series-dot { width: 8px; height: 8px; border-radius: 50%; }
.series-dot.owned { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.series-dot.oem { background: #d8904a; box-shadow: 0 0 0 4px #fbefe4; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.category-card { min-height: 185px; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 18px; text-align: left; background: var(--surface); transition: transform 160ms var(--ease-out), border-color 160ms ease, box-shadow 160ms ease; }
.category-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.category-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--accent); background: var(--accent-soft); }
.category-icon svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.category-state { padding: 4px 8px; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: .625rem; }
.category-state.disabled { color: var(--muted); background: #f0f0ec; }
.category-card h3 { margin-top: 18px; font-size: .9375rem; }
.category-card p { min-height: 36px; margin-top: 6px; color: var(--secondary); font-size: .6875rem; line-height: 1.6; }
.category-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: .625rem; }

/* Editors */
dialog { color: var(--text); }
.editor-dialog { width: min(840px, calc(100% - 32px)); max-width: none; height: min(900px, calc(100dvh - 32px)); max-height: none; margin: auto; padding: 0; overflow: hidden; border: 1px solid rgba(30, 30, 25, .08); border-radius: 24px; background: var(--surface); box-shadow: 0 30px 100px rgba(20, 20, 18, .22); opacity: 0; transform: translateY(8px) scale(.985); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), display 180ms allow-discrete, overlay 180ms allow-discrete; }
.editor-dialog[open] { opacity: 1; transform: none; }
@starting-style { .editor-dialog[open] { opacity: 0; transform: translateY(8px) scale(.985); } }
.editor-dialog::backdrop, .confirm-dialog::backdrop { background: rgba(22, 22, 19, .42); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.editor-form { height: 100%; display: flex; flex-direction: column; }
.dialog-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 17px 24px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin-top: 4px; font-size: 1.2rem; letter-spacing: -.035em; }
.dialog-close { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--secondary); background: var(--surface-soft); font-size: 1.5rem; line-height: 1; transition: transform 140ms var(--ease-out), color 160ms ease, background 160ms ease; }
.dialog-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 3px 26px 32px; }
.form-section { display: grid; grid-template-columns: 155px 1fr; gap: 30px; padding: 31px 0 35px; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; }
.form-section-head { display: flex; align-items: flex-start; gap: 11px; }
.form-section-head > span { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; color: var(--accent); background: var(--accent-soft); font-size: .625rem; font-weight: 700; }
.form-section-head h3 { padding-top: 3px; font-size: .8125rem; }
.form-section-head p { margin-top: 6px; color: var(--muted); font-size: .625rem; line-height: 1.55; }
.field-grid { display: grid; gap: 18px; }
.field-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 15px; }
.field-grid label > span { display: flex; justify-content: flex-start; gap: 4px; }
.field-grid label b, .field-label b { color: var(--red); }
.field-grid label em { margin-left: auto; color: var(--muted); font-size: .625rem; font-style: normal; font-weight: 450; }
.field-grid label small, .field-label small { color: var(--muted); font-size: .625rem; font-weight: 450; line-height: 1.45; }
.full-column, .toggle-row { grid-column: 1 / -1; }
.toggle-row { min-height: 59px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 16px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; }
.switch-field { display: flex !important; align-items: center; gap: 10px !important; cursor: pointer; }
.switch-field input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch { width: 35px; height: 21px; position: relative; flex: 0 0 auto; border-radius: 999px; background: #d7d7d1; transition: background 180ms ease; }
.switch::after { position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); content: ""; transition: transform 180ms var(--ease-out); }
.switch-field input:checked + .switch { background: var(--accent); }
.switch-field input:checked + .switch::after { transform: translateX(14px); }
.switch-field input:focus-visible + .switch { outline: 3px solid rgba(117, 105, 232, .25); outline-offset: 2px; }
.switch-field > span:last-child { display: grid; line-height: 1.3; }
.switch-field strong { font-size: .6875rem; }
.switch-field small { margin-top: 3px; color: var(--muted); font-size: .5625rem; }
.switch-field.standalone { align-self: end; min-height: 46px; }
.image-field { grid-column: 2; }
.image-field + .image-field { margin-top: 25px; }
.field-label { display: flex; align-items: baseline; gap: 7px; margin-bottom: 10px; }
.cover-editor { display: grid; grid-template-columns: 190px 1fr; gap: 15px; align-items: center; }
.cover-preview { width: 190px; height: 122px; overflow: hidden; display: grid; place-items: center; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--muted); background: var(--surface-soft); font-size: .6875rem; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.gallery-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.gallery-item { position: relative; aspect-ratio: 1.22; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); cursor: grab; }
.gallery-item.dragging { opacity: .45; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gallery-remove { position: absolute; top: 5px; right: 5px; width: 25px; height: 25px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(20, 20, 18, .7); font-size: 1rem; line-height: 1; }
.gallery-index { position: absolute; left: 6px; bottom: 6px; min-width: 21px; height: 20px; display: grid; place-items: center; padding: 0 5px; border-radius: 6px; color: #fff; background: rgba(20, 20, 18, .68); font-size: .5625rem; }
.upload-tile { width: 100%; min-height: 81px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 9px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--secondary); background: var(--surface-soft); transition: transform 140ms var(--ease-out), color 160ms ease, border-color 160ms ease, background 160ms ease; }
.upload-tile > span { color: var(--accent); font-size: 1.15rem; }
.upload-tile strong { font-size: .6875rem; }
.upload-tile small { color: var(--muted); font-size: .5625rem; }
.dialog-footer { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 24px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .95); }
.dialog-footer > div { display: flex; gap: 9px; }
.category-dialog { height: auto; max-height: calc(100dvh - 32px); }
.compact-body { padding: 28px 26px 33px; }

.confirm-dialog { width: min(390px, calc(100% - 32px)); padding: 0; border: 1px solid rgba(30, 30, 25, .08); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.confirm-dialog form { padding: 28px; text-align: center; }
.confirm-icon { width: 43px; height: 43px; display: grid; place-items: center; margin: 0 auto; border-radius: 13px; color: var(--red); background: var(--red-soft); font-weight: 700; }
.confirm-dialog h2 { margin-top: 17px; font-size: 1.1rem; }
.confirm-dialog p { margin-top: 8px; color: var(--secondary); font-size: .75rem; line-height: 1.65; }
.confirm-dialog form > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }

.toast-region { position: fixed; z-index: 100; right: 22px; bottom: 22px; width: min(340px, calc(100% - 32px)); display: grid; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 13px; color: #f5f5f2; background: rgba(27, 27, 25, .94); box-shadow: 0 12px 35px rgba(20, 20, 18, .2); font-size: .75rem; opacity: 1; transform: none; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
.toast::before { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #73cc9a; content: ""; }
.toast.error::before { background: #ee7777; }
.toast.leaving { opacity: 0; transform: translateY(6px); }
@starting-style { .toast { opacity: 0; transform: translateY(8px); } }
.upload-progress { position: fixed; z-index: 120; left: 50%; bottom: 23px; display: flex; align-items: center; gap: 9px; padding: 11px 15px; border-radius: 999px; color: #fff; background: rgba(23, 23, 22, .94); box-shadow: var(--shadow); font-size: .6875rem; transform: translateX(-50%); }
.spinner { width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: spin .65s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (hover: hover) and (pointer: fine) {
  .button-primary:hover { background: #2d2d2a; }
  .button-secondary:hover { border-color: #c4c4bd; background: var(--surface-soft); }
  .button-danger:hover { background: #ae3e3e; }
  .nav-item:hover { color: #eee; background: #242422; }
  .site-link:hover { color: #fff; border-color: #4a4a45; background: #20201e; }
  .account-card:hover { background: #20201e; }
  .product-row:hover { background: #fafaf8; }
  .category-card:hover { transform: translateY(-2px); border-color: #d7d7d0; box-shadow: 0 13px 30px rgba(30, 30, 25, .055); }
  .dialog-close:hover { color: var(--text); background: #efefeb; }
  .upload-tile:hover { color: var(--text); border-color: #bdb7ee; background: #f8f7ff; }
}

@media (max-width: 1050px) {
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-list-head, .product-row { grid-template-columns: minmax(220px, 2fr) minmax(120px, 1fr) 92px 32px; }
  .product-list-head span:nth-child(4), .product-order { display: none; }
}

@media (max-width: 780px) {
  .sidebar { inset: 0 0 0 auto; width: min(290px, calc(100% - 42px)); transform: translateX(100%); box-shadow: -20px 0 50px rgba(15, 15, 13, .18); transition: transform 220ms var(--ease-out); }
  .sidebar.is-open { transform: none; }
  .mobile-header { position: sticky; z-index: 35; top: 0; height: 65px; display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; border-bottom: 1px solid rgba(25, 25, 22, .07); background: rgba(245, 245, 242, .88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .mobile-header .sidebar-brand { padding: 0; }
  .mobile-header .brand-mark { color: #fff; background: var(--sidebar); }
  .mobile-header strong { color: var(--text); font-size: .75rem; }
  .icon-button { width: 42px; height: 42px; display: grid; place-content: center; gap: 5px; border: 0; border-radius: 50%; background: #fff; transition: transform 140ms var(--ease-out); }
  .icon-button span { width: 18px; height: 1.5px; display: block; border-radius: 2px; background: var(--text); transition: transform 180ms var(--ease-out); }
  .icon-button[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .icon-button[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .workspace { margin-left: 0; padding: 35px 20px 60px; }
  .product-list-head { display: none; }
  .product-row { grid-template-columns: minmax(180px, 1fr) auto 24px; gap: 11px; }
  .product-row > .category-chip { display: none; }
  .product-thumb { width: 65px; height: 54px; }
  .form-section { grid-template-columns: 1fr; gap: 20px; }
  .form-section-head > div { display: flex; align-items: baseline; gap: 9px; }
  .form-section-head p { margin: 0; }
  .image-field { grid-column: 1; }
}

@media (max-width: 560px) {
  .login-view { padding: 16px; }
  .login-card { padding: 31px 25px 27px; border-radius: 23px; }
  .page-header { align-items: flex-start; }
  .page-header > div { min-width: 0; }
  .page-header p:last-child { max-width: 220px; }
  .page-header .button { padding-inline: 13px; white-space: nowrap; }
  .summary-grid { gap: 10px; margin-top: 29px; }
  .summary-grid article { min-height: 113px; padding: 16px; }
  .summary-grid strong { font-size: 1.7rem; }
  .panel-toolbar { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; }
  .select-field select { width: 100%; }
  .product-row { min-height: 78px; padding: 10px 12px; }
  .product-identity { gap: 10px; }
  .product-thumb { width: 56px; height: 50px; border-radius: 9px; }
  .category-grid { grid-template-columns: 1fr; }
  .series-heading p { display: none; }
  .editor-dialog { width: 100%; height: calc(100dvh - 8px); margin: 8px 0 0; border-radius: 23px 23px 0 0; }
  .category-dialog { height: auto; max-height: calc(100dvh - 8px); margin-top: auto; }
  .dialog-header { min-height: 73px; padding: 14px 17px; }
  .dialog-body { padding: 2px 18px 26px; }
  .compact-body { padding-block: 23px 28px; }
  .form-section { padding-block: 25px 29px; }
  .field-grid.two-columns { grid-template-columns: 1fr; }
  .full-column, .toggle-row { grid-column: 1; }
  .toggle-row { grid-template-columns: 1fr; }
  .cover-editor { grid-template-columns: 1fr; }
  .cover-preview { width: 100%; height: 180px; }
  .gallery-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dialog-footer { padding: 11px 14px; }
  .dialog-footer .button { padding-inline: 13px; }
}

@media (prefers-reduced-transparency: reduce) {
  .mobile-header, .editor-dialog::backdrop, .confirm-dialog::backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
