:root {
  --ink: #243128;
  --muted: #68726b;
  --forest: #12372a;
  --forest-2: #225b43;
  --cream: #f4efe5;
  --paper: #fffdf9;
  --line: #dedbd3;
  --terracotta: #c96b49;
  --danger: #b44535;
  --success: #267553;
  --shadow: 0 18px 54px rgba(28, 39, 32, 0.1);
  --radius: 18px;
  --workspace-bg: #f7f5f0;
  --field-bg: #fff;
  --soft-bg: #f4f1eb;
  color-scheme: light;
}

[data-admin-theme="dark"] {
  --ink: #f1eee7;
  --muted: #aab4ad;
  --cream: #17201b;
  --paper: #1b251f;
  --line: #344039;
  --danger: #e17668;
  --success: #61b98d;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
  --workspace-bg: #101713;
  --field-bg: #151e19;
  --soft-bg: #131b17;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  margin: 0;
  background: var(--workspace-bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color 240ms ease, color 240ms ease;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.loading-view {
  display: grid;
  min-height: 100svh;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: var(--cream);
  color: var(--muted);
  font-size: 14px;
}

.loader {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(18, 55, 42, 0.16);
  border-top-color: var(--forest-2);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.login-view {
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(420px, 0.82fr) minmax(520px, 1.18fr);
  background: var(--paper);
}

.login-card {
  display: flex;
  width: min(100%, 540px);
  min-height: 100svh;
  margin-inline: auto;
  padding: 46px 56px 38px;
  flex-direction: column;
}

.login-card__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-theme-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--field-bg);
  color: var(--ink);
  cursor: pointer;
  transition: transform 180ms ease, background-color 240ms ease, border-color 240ms ease;
}
.admin-theme-toggle:hover { transform: rotate(8deg) scale(1.03); }
.admin-theme-toggle svg { width: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.admin-theme-toggle__moon, [data-admin-theme="dark"] .admin-theme-toggle__sun { display: none; }
[data-admin-theme="dark"] .admin-theme-toggle__moon { display: block; }

.login-brand, .sidebar__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.login-brand > span, .sidebar__mark, .workspace-header__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(18, 55, 42, 0.25);
  border-radius: 50%;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 23px;
  font-style: italic;
  overflow: hidden;
}

[data-admin-brand-mark] img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.login-brand strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 25px;
}

.login-card__intro { margin-top: auto; padding-top: 60px; }

.kicker {
  margin: 0 0 11px;
  color: var(--terracotta);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login-card h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.login-card__intro > p:last-child {
  max-width: 390px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

#login-form { margin-top: 34px; }

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 17px;
}

.field > span:first-child, .field-label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.field input, .field textarea, .field select,
.editor-input, .editor-textarea, .editor-select {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background: var(--field-bg);
  color: var(--ink);
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea, .editor-textarea { min-height: 94px; resize: vertical; line-height: 1.55; }
.editor-input[type="color"] { min-height: 48px; padding: 5px; cursor: pointer; }
.field input:focus, .field textarea:focus, .field select:focus,
.editor-input:focus, .editor-textarea:focus, .editor-select:focus {
  border-color: var(--forest-2);
  box-shadow: 0 0 0 3px rgba(34, 91, 67, 0.1);
}

.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 48px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
}
.password-toggle svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.form-error {
  margin: 0 0 14px;
  padding: 11px 13px;
  border-radius: 9px;
  background: #fff0ed;
  color: #9a3527;
  font-size: 12px;
}

.primary-button, .secondary-button, .ghost-button, .danger-button {
  display: inline-flex;
  min-height: 44px;
  padding: 0 17px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}
.primary-button { background: var(--forest); color: #fff; }
.primary-button:hover, .secondary-button:hover { transform: translateY(-1px); }
.primary-button:disabled { opacity: 0.55; cursor: wait; transform: none; }
.primary-button--wide { width: 100%; min-height: 50px; margin-top: 4px; }
.primary-button svg, .secondary-button svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.secondary-button { border: 1px solid var(--line); background: var(--field-bg); color: var(--ink); }
.ghost-button { background: var(--soft-bg); color: var(--ink); }
.danger-button { background: var(--danger); color: #fff; }

.back-link {
  display: inline-flex;
  margin-top: auto;
  padding-top: 36px;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.back-link svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.login-art {
  position: relative;
  display: grid;
  overflow: hidden;
  place-content: center;
  background-color: var(--forest);
  background-image: linear-gradient(rgba(18, 55, 42, 0.74), rgba(18, 55, 42, 0.88)), var(--admin-bg-image, none);
  background-position: center;
  background-size: cover;
  color: #fff;
  isolation: isolate;
}
.login-art::before, .login-art::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
}
.login-art::before { top: -25%; left: -15%; width: 60%; aspect-ratio: 1; background: rgba(71, 140, 106, 0.18); filter: blur(10px); }
.login-art::after { right: -12%; bottom: -24%; width: 62%; aspect-ratio: 1; background: rgba(201, 107, 73, 0.16); filter: blur(10px); }
.login-art svg { position: absolute; top: 50%; left: 50%; z-index: -1; width: min(70%, 600px); fill: rgba(212, 169, 78, 0.05); stroke: rgba(212, 169, 78, 0.24); transform: translate(-50%, -50%) rotate(12deg); }
.login-art p { width: min(78%, 720px); margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(42px, 4.2vw, 62px); line-height: 1.08; letter-spacing: -0.04em; }
.login-art em { color: #e9bd6b; }

.admin-has-background .login-art {
  background-color: #000;
  background-image: var(--admin-bg-image, none);
}
.admin-has-background .login-art::before,
.admin-has-background .login-art::after,
.admin-has-background .login-art > svg { display: none; }
.admin-has-background .login-art p {
  text-shadow: 0 2px 18px rgba(0, 0, 0, .72), 0 1px 3px rgba(0, 0, 0, .8);
}

.dashboard { min-height: 100svh; }

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  width: 250px;
  padding: 28px 18px 20px;
  flex-direction: column;
  background: var(--forest);
  color: #fff;
}
.sidebar__brand { padding: 0 10px 34px; }
.sidebar__mark { width: 39px; height: 39px; border-color: rgba(255,255,255,.3); font-size: 21px; }
.sidebar__brand > span:last-child { display: grid; }
.sidebar__brand strong { font-family: "Playfair Display", Georgia, serif; font-size: 21px; line-height: 1; }
.sidebar__brand small { margin-top: 5px; color: rgba(255,255,255,.52); font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.sidebar__nav { display: grid; gap: 5px; }
.nav-button {
  display: flex;
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,.67);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.nav-button:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-button.is-active { background: rgba(255,255,255,.12); color: #fff; }
.nav-button svg, .sidebar-link svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.count-badge { margin-left: auto; padding: 2px 7px; border-radius: 20px; background: rgba(255,255,255,.12); font-size: 10px; }
.sidebar__bottom { display: grid; gap: 6px; margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 15px; }
.sidebar-link { display: flex; min-height: 40px; padding: 0 10px; align-items: center; gap: 10px; border: 0; background: transparent; color: rgba(255,255,255,.62); font-size: 11px; text-decoration: none; }
.sidebar-link--button { width: 100%; cursor: pointer; }
.sidebar-link:hover { color: #fff; }

.workspace { min-height: 100svh; margin-left: 250px; }
.workspace-header {
  position: sticky;
  z-index: 15;
  top: 0;
  display: flex;
  min-height: 88px;
  padding: 18px clamp(24px, 4vw, 58px);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--workspace-bg) 92%, transparent);
  backdrop-filter: blur(14px);
}
.workspace-header .kicker { margin-bottom: 5px; }
.workspace-header h1 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 25px; }
.workspace-header__identity { display: flex; min-width: 0; align-items: center; gap: 12px; }
.workspace-header__mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-color: color-mix(in srgb, var(--forest) 28%, transparent);
  background: var(--paper);
  color: var(--forest);
  font-size: 20px;
}
.workspace-header__actions { display: flex; align-items: center; gap: 18px; }
.save-status { color: var(--muted); font-size: 11px; }
.save-status.is-dirty { color: var(--terracotta); }

.workspace-content { width: min(100%, 1150px); padding: 52px clamp(24px, 4vw, 58px) 110px; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: panel-in 260ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-intro { display: flex; align-items: end; justify-content: space-between; gap: 34px; margin-bottom: 30px; }
.panel-intro h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(34px, 4vw, 45px); line-height: 1; letter-spacing: -.03em; }
.panel-intro > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.panel-intro--with-action { align-items: center; }
.panel-note { margin: -15px 0 24px; color: var(--muted); font-size: 12px; }

.editor-card {
  margin-bottom: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 3px 14px rgba(28,39,32,.025);
}
.editor-card__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.editor-card__header h3 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 23px; }
.editor-card__header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.editor-grid--three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.editor-field { display: grid; align-content: start; gap: 7px; }
.editor-field--wide { grid-column: 1 / -1; }
.editor-field label, .editor-field > span:first-child { color: var(--ink); font-size: 11px; font-weight: 700; }
.editor-help { color: var(--muted); font-size: 10px; line-height: 1.45; }

.image-field { display: grid; gap: 9px; }
.image-field__preview {
  position: relative;
  display: grid;
  min-height: 150px;
  overflow: hidden;
  place-items: center;
  border: 1px dashed #c8c8c0;
  border-radius: 13px;
  background: var(--soft-bg);
  color: var(--muted);
}
.image-field--profile .image-field__preview { width: 150px; aspect-ratio: 1; min-height: 0; border-radius: 50%; }
.image-field__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-field__placeholder { display: grid; justify-items: center; gap: 7px; font-size: 10px; }
.image-field__placeholder svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.image-field__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-button, .icon-button {
  display: inline-flex;
  min-height: 34px;
  padding: 0 11px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field-bg);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.mini-button svg, .icon-button svg { width: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.mini-button--danger { color: var(--danger); }
.image-field.is-uploading { opacity: .6; pointer-events: none; }

.sortable-list { display: grid; gap: 10px; }
.category-row { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.row-index { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: var(--cream); color: var(--forest-2); font-size: 11px; font-weight: 700; }
.row-actions { display: flex; gap: 6px; }
.icon-button { width: 34px; padding: 0; color: var(--muted); }
.icon-button:hover { color: var(--forest); border-color: rgba(18,55,42,.28); }
.icon-button--danger:hover { color: var(--danger); border-color: rgba(180,69,53,.3); }
.icon-button:disabled { opacity: .28; cursor: default; }

.product-toolbar { display: grid; grid-template-columns: minmax(220px,1fr) 210px; gap: 12px; margin-bottom: 18px; }
.toolbar-search { position: relative; display: block; }
.toolbar-search svg { position: absolute; top: 50%; left: 14px; width: 18px; fill: none; stroke: var(--muted); stroke-width: 1.7; transform: translateY(-50%); }
.toolbar-search input, .product-toolbar select { width: 100%; height: 45px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--field-bg); color: var(--ink); font-size: 12px; }
.toolbar-search input { padding: 0 14px 0 42px; }
.product-toolbar select { padding: 0 12px; }
.product-list { display: grid; gap: 12px; }

.product-editor { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.product-editor[open] { box-shadow: var(--shadow); }
.product-editor summary { display: grid; grid-template-columns: 48px minmax(0,1fr) auto auto; gap: 13px; align-items: center; min-height: 72px; padding: 10px 15px; cursor: pointer; list-style: none; }
.product-editor summary::-webkit-details-marker { display: none; }
.product-thumb { display: grid; width: 48px; height: 48px; overflow: hidden; place-items: center; border-radius: 10px; background: var(--cream); color: var(--forest-2); font-family: "Playfair Display", Georgia, serif; font-size: 19px; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-summary-text { min-width: 0; }
.product-summary-text strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.product-summary-text small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.product-summary-price { color: var(--terracotta); font-size: 12px; font-weight: 700; white-space: nowrap; }
.summary-chevron { width: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; transition: transform 160ms ease; }
.product-editor[open] .summary-chevron { transform: rotate(180deg); }
.product-editor__body { padding: 22px; border-top: 1px solid var(--line); }
.product-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.move-actions { display: flex; gap: 7px; }

.switch-row { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--field-bg); }
.switch-row span { font-size: 11px; font-weight: 700; }
.switch-row span:first-child { display: grid; gap: 3px; }
.switch-row small { color: var(--muted); font-size: 9px; font-weight: 500; line-height: 1.4; }
.switch { position: relative; width: 41px; height: 23px; }
.switch input { position: absolute; opacity: 0; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: #cccac4; cursor: pointer; transition: background 160ms ease; }
.switch i::after { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; content: ""; transition: transform 160ms ease; }
.switch input:checked + i { background: var(--success); }
.switch input:checked + i::after { transform: translateX(18px); }

.editor-empty { padding: 50px 20px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; font-size: 13px; }

.toast-region { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: grid; width: min(380px, calc(100% - 44px)); gap: 10px; }
.toast { display: flex; padding: 14px 16px; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); box-shadow: 0 14px 40px rgba(16,30,22,.18); color: var(--ink); font-size: 12px; animation: toast-in 200ms ease both; }
.toast::before { width: 8px; height: 8px; margin-top: 4px; flex: 0 0 auto; border-radius: 50%; background: var(--success); content: ""; }
.toast--error::before { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.confirm-dialog { width: min(420px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 17px; background: var(--paper); color: var(--ink); box-shadow: 0 25px 80px rgba(8,20,13,.3); }
.confirm-dialog::backdrop { background: rgba(10,25,17,.56); backdrop-filter: blur(3px); }
.confirm-dialog form { padding: 28px; text-align: center; }
.confirm-dialog__icon { display: grid; width: 44px; height: 44px; margin: 0 auto 15px; place-items: center; border-radius: 50%; background: #ffebe7; color: var(--danger); font-weight: 700; }
.confirm-dialog h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 25px; }
.confirm-dialog p { margin: 10px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.confirm-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.mobile-nav { display: none; }

.social-editor-list { display: grid; gap: 14px; margin-top: 24px; }
.social-editor { display: grid; grid-template-columns: 175px minmax(0, 1fr); gap: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--soft-bg) 58%, var(--paper)); }
.social-editor__media .image-field--profile .image-field__preview { width: 120px; }
.social-editor__fields { min-width: 0; }
.social-editor__bottom { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-top: 17px; }
.social-editor__bottom .switch-row { min-width: min(100%, 330px); }

[data-admin-theme="dark"] .form-error { background: #3a211e; color: #ffab9f; }
[data-admin-theme="dark"] .confirm-dialog__icon { background: #3a211e; }
[data-admin-theme="dark"] .toolbar-search input,
[data-admin-theme="dark"] .product-toolbar select { background: var(--field-bg); }
[data-admin-theme="dark"] .panel-intro h2,
[data-admin-theme="dark"] .editor-card__header h3,
[data-admin-theme="dark"] .workspace-header h1 { color: var(--ink); }

@media (max-width: 900px) {
  .login-view { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .sidebar { width: 220px; }
  .workspace { margin-left: 220px; }
  .workspace-header { align-items: flex-start; }
  .workspace-header__actions { align-items: flex-end; flex-direction: column-reverse; gap: 7px; }
  .panel-intro { align-items: flex-start; flex-direction: column; gap: 13px; }
  .panel-intro--with-action { flex-direction: row; align-items: center; }
  .editor-grid--three { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .social-editor { grid-template-columns: 140px minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 680px) {
  body { padding-bottom: 69px; }
  .login-card { width: 100%; padding: 28px 22px 26px; }
  .login-card__intro { padding-top: 55px; }
  .login-card h1 { font-size: 42px; }
  .sidebar { display: none; }
  .workspace { margin-left: 0; }
  .workspace-header { min-height: 78px; padding: 13px 15px; align-items: center; }
  .workspace-header__identity .kicker { display: none; }
  .workspace-header__mark { width: 36px; height: 36px; flex-basis: 36px; }
  .workspace-header h1 { font-size: 21px; }
  .workspace-header__actions { align-items: center; flex-direction: row; }
  .save-status { display: none; }
  .primary-button { min-width: 45px; padding: 0 13px; }
  #save-button span { display: none; }
  .workspace-content { padding: 34px 14px 55px; }
  .panel-intro { margin-bottom: 22px; }
  .panel-intro h2 { font-size: 36px; }
  .panel-intro > p { font-size: 12px; }
  .panel-intro--with-action { align-items: flex-start; flex-direction: column; }
  .editor-card { padding: 19px 15px; border-radius: 14px; }
  .editor-card__header { align-items: flex-start; flex-direction: column; }
  .editor-grid, .editor-grid--three { grid-template-columns: 1fr; gap: 15px; }
  .category-row { grid-template-columns: 34px minmax(0,1fr); gap: 9px; padding: 11px; }
  .category-row .row-actions { grid-column: 2; }
  .product-toolbar { grid-template-columns: 1fr; }
  .product-editor summary { grid-template-columns: 44px minmax(0,1fr) auto; padding: 9px 11px; }
  .product-thumb { width: 44px; height: 44px; }
  .product-summary-price { display: none; }
  .product-editor__body { padding: 17px 13px; }
  .product-actions { align-items: stretch; flex-direction: column; }
  .product-actions > .mini-button { width: 100%; }
  .image-field--profile .image-field__preview { width: 130px; }
  .social-editor { grid-template-columns: 1fr; padding: 16px; }
  .social-editor__bottom { align-items: stretch; flex-direction: column; }
  .social-editor__bottom .switch-row { width: 100%; min-width: 0; }
  .social-editor__bottom .move-actions { flex-wrap: wrap; }
  .mobile-nav {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    height: 69px;
    grid-template-columns: repeat(4,1fr);
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 96%, transparent);
    backdrop-filter: blur(12px);
  }
  .mobile-nav button { display: grid; padding: 8px 3px 6px; place-content: center; justify-items: center; gap: 3px; border: 0; background: transparent; color: var(--muted); font-size: 9px; font-weight: 700; }
  .mobile-nav button.is-active { color: var(--forest-2); }
  .mobile-nav svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
  .toast-region { right: 12px; bottom: 81px; width: calc(100% - 24px); }
}

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