/* KINTEC Verwaltung: dieselbe ruhige Formensprache wie der öffentliche Shop.
   Alle Regeln sind auf die angemeldete Verwaltung beschränkt. */
html[data-admin="1"] {
  --admin-header-h: 72px;
  --sidebar-w: 228px;
  --admin-line: #e9ebef;
  --admin-muted: #626a76;
  --admin-soft: #f6f8fb;
  --admin-blue-soft: #edf5ff;
  --admin-card-shadow: 0 3px 16px rgba(23, 39, 64, .035);
  --bg: #fff;
  --surface: #fff;
  --surface-2: #f7f8fa;
  --text: #20252d;
  --text-2: #626a76;
  --text-3: #727b88;
  --border: #e9ebef;
  --border-strong: #d5dbe3;
  --accent: #0071e3;
  --accent-hover: #0066cf;
  --accent-soft: #edf5ff;
  --radius: 18px;
  background: var(--surface);
}
html[data-admin="1"] body {
  background: var(--surface);
  font-family: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
html[data-admin="1"] .admin-workspace {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  background: var(--surface);
}
html[data-admin="1"] .admin-workspace .admin-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--admin-header-h);
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(220px, 640px) minmax(205px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 12px 26px;
  border: 0;
  border-bottom: 1px solid var(--admin-line);
  background: var(--surface);
  box-shadow: none;
  backdrop-filter: none;
}
html[data-admin="1"] .admin-header-leading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
html[data-admin="1"] .admin-workspace .menu-toggle { display: none; }
html[data-admin="1"] .admin-skip-link { position: fixed; top: 10px; left: 16px; z-index: 200; padding: 12px 18px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 600; transform: translateY(-180%); }
html[data-admin="1"] .admin-skip-link:focus-visible { transform: translateY(0); outline-color: var(--text); }
html[data-admin="1"] .admin-header .brand,
html[data-admin="1"] .admin-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: var(--text);
  min-width: 0;
}
html[data-admin="1"] .admin-header .brand-mark {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 19px;
  background: #0071e3;
}
html[data-admin="1"] .admin-header .brand-name { font-size: 17px; letter-spacing: -.035em; white-space: nowrap; }
html[data-admin="1"] .admin-brand-badge { color: var(--admin-muted); background: var(--admin-soft); border-radius: 6px; padding: 3px 7px; font-size: 10px; font-weight: 600; white-space: nowrap; }
html[data-admin="1"] .admin-workspace .adm-topsuche { display: flex; width: 100%; max-width: none; margin: 0; }
html[data-admin="1"] .admin-workspace .adm-topsuche input {
  height: 46px;
  padding: 0 53px 0 19px;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: var(--surface);
  font-size: 14px;
}
html[data-admin="1"] .admin-workspace .adm-topsuche button { top: 5px; right: 5px; width: 36px; height: 36px; }
html[data-admin="1"] .admin-workspace .topbar-actions { display: flex; justify-self: end; align-items: center; gap: 7px; margin: 0; }
html[data-admin="1"] .admin-workspace .topbar-shop { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; font-size: 12px; font-weight: 500; padding: 8px 12px; border-radius: 22px; }
html[data-admin="1"] .admin-workspace .topbar-actions .icon-btn { border: 0; background: transparent; }
html[data-admin="1"] .admin-workspace .topbar-actions .icon-btn:hover { background: var(--admin-soft); }

/* Navigation ohne den früheren Fensterrahmen. */
html[data-admin="1"] .admin-workspace .sidebar {
  position: fixed;
  top: var(--admin-header-h);
  bottom: 0;
  left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--admin-header-h));
  height: calc(100dvh - var(--admin-header-h));
  border: 0;
  border-right: 1px solid var(--admin-line);
  border-radius: 0;
  background: var(--surface);
  padding: 18px 14px 12px;
  box-shadow: none;
  transform: none;
  z-index: 50;
}
html[data-admin="1"] .admin-workspace .sidebar > .brand { display: none; }
html[data-admin="1"] .admin-sidebar-title { display: none; align-items: center; justify-content: space-between; padding: 0 12px 14px; color: var(--text); font-size: 14px; font-weight: 600; letter-spacing: -.02em; }
html[data-admin="1"] .admin-sidebar-close { display: none; }
html[data-admin="1"] .admin-workspace .nav { gap: 2px; padding-right: 2px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
html[data-admin="1"] .admin-workspace .nav-label { padding: 10px 12px 5px; color: var(--admin-muted); font-size: 10px; font-weight: 600; letter-spacing: .075em; }
html[data-admin="1"] .admin-workspace .nav-label:first-child { padding-top: 0; }
html[data-admin="1"] .admin-workspace .nav-item { min-height: 44px; padding: 11px 12px; gap: 10px; border-radius: 10px; color: var(--admin-muted); font-size: 14px; font-weight: 450; line-height: 1.3; }
html[data-admin="1"] .admin-workspace .nav-item svg { width: 17px; height: 17px; stroke-width: 1.7; }
html[data-admin="1"] .admin-workspace .nav-item:hover { background: var(--admin-soft); color: var(--text); }
html[data-admin="1"] .admin-workspace .nav-item.active { color: var(--accent); background: var(--admin-blue-soft); font-weight: 600; }
html[data-admin="1"] .admin-workspace .sidebar-footer { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--admin-line); padding-top: 10px; margin-top: 10px; }
html[data-admin="1"] .admin-workspace .sidebar-footer > .nav-item { min-height: 36px; padding: 8px 5px; gap: 6px; font-size: 11px; }
html[data-admin="1"] .admin-workspace .sidebar-footer > .nav-item svg { width: 14px; height: 14px; }
html[data-admin="1"] .admin-workspace .user-chip { grid-column: 1 / -1; padding: 10px 9px 0; gap: 9px; }
html[data-admin="1"] .admin-workspace .user-chip .name { font-size: 12px; }
html[data-admin="1"] .admin-workspace .user-chip .sub { font-size: 11px; }
html[data-admin="1"] .admin-workspace .main { min-height: 100vh; min-height: 100dvh; margin-left: var(--sidebar-w); padding-top: var(--admin-header-h); background: var(--surface); }
html[data-admin="1"] .admin-workspace .content { width: 100%; max-width: 1560px; padding: 34px 36px 60px; margin: 0 auto; background: var(--surface); }
html[data-admin="1"] .admin-workspace .page-head { align-items: center; margin-bottom: 24px; }
html[data-admin="1"] .admin-workspace .page-head h1,
html[data-admin="1"] .adm-top h1 { font-size: clamp(25px, 2.2vw, 32px); font-weight: 600; letter-spacing: -.045em; line-height: 1.2; }
html[data-admin="1"] .page-head .sub,
html[data-admin="1"] .adm-top .sub { font-size: 13px; color: var(--admin-muted); margin-top: 8px; line-height: 1.5; }
html[data-admin="1"] .adm-page { max-width: none; }

/* Gemeinsame Bedienelemente. Dialoge liegen ausserhalb der Shell, daher HTML-Scope. */
html[data-admin="1"] .btn { min-height: 40px; justify-content: center; border-radius: 22px; padding: 9px 17px; font-size: 12px; line-height: 1.4; font-weight: 600; box-shadow: none; transition: color .15s, background .15s, border-color .15s; }
html[data-admin="1"] .btn:hover { transform: none; box-shadow: none; }
html[data-admin="1"] .btn.secondary { background: var(--surface); border-color: var(--border-strong); }
html[data-admin="1"] .btn.secondary:hover { background: var(--admin-soft); border-color: var(--admin-muted); }
html[data-admin="1"] .btn.sm { min-height: 32px; padding: 6px 12px; font-size: 11px; border-radius: 18px; }
html[data-admin="1"] .icon-btn { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; }
html[data-admin="1"] .icon-btn.sm { width: 32px; height: 32px; }
html[data-admin="1"] :is(button, input, select, textarea, a):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
html[data-admin="1"] :is(input.field, select.field, textarea.field) { min-height: 42px; border-radius: 12px; padding: 10px 13px; font-size: 13px; }
html[data-admin="1"] .adm-search { min-height: 44px; border-radius: 23px; border-color: var(--border-strong); background: var(--surface); }
html[data-admin="1"] .adm-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
html[data-admin="1"] .adm-select { min-height: 40px; border-radius: 11px; }
html[data-admin="1"] .card { border-color: var(--admin-line); border-radius: 18px; box-shadow: var(--admin-card-shadow); }
html[data-admin="1"] .card-pad { padding: 20px; }
html[data-admin="1"] .adm-panel { border: 1px solid var(--admin-line); border-radius: 18px; box-shadow: var(--admin-card-shadow); background: var(--surface); }
html[data-admin="1"] .adm-toolbar { gap: 10px; padding: 16px 18px; border-color: var(--admin-line); }
html[data-admin="1"] .adm-table { font-size: 13px; }
html[data-admin="1"] .adm-table th { padding: 13px 18px; background: var(--admin-soft); color: var(--admin-muted); font-size: 10px; font-weight: 600; letter-spacing: .035em; }
html[data-admin="1"] .adm-table td { padding: 15px 18px; border-color: var(--admin-line); }
html[data-admin="1"] .adm-table tbody tr:hover { background: var(--admin-soft); }
html[data-admin="1"] .adm-foot { padding: 14px 18px; border-color: var(--admin-line); }
html[data-admin="1"] .modal-backdrop { background: rgba(17, 28, 46, .32); backdrop-filter: blur(5px); padding: 24px; }
html[data-admin="1"] .modal { border: 1px solid var(--admin-line); border-radius: 24px; padding: 28px; box-shadow: 0 24px 80px rgba(17, 28, 46, .18); }
html[data-admin="1"] .modal h2 { font-size: 22px; font-weight: 600; letter-spacing: -.035em; }
html[data-admin="1"] .modal-actions { flex-wrap: wrap; }

/* Übersicht: wenige klare Einstiege, Details in den darunterliegenden Bereichen. */
html[data-admin="1"] .adm-home { max-width: 1340px; margin: 0 auto; }
html[data-admin="1"] .adm-home-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
html[data-admin="1"] .adm-home-greeting h1 { color: var(--text); font-size: clamp(27px, 2.5vw, 36px); font-weight: 600; line-height: 1.2; letter-spacing: -.05em; }
html[data-admin="1"] .adm-home-greeting p { color: var(--admin-muted); font-size: 13px; line-height: 1.6; margin-top: 9px; }
html[data-admin="1"] .adm-home-greeting .adm-home-date { color: var(--admin-muted); font-size: 12px; margin: 0 0 9px; }
html[data-admin="1"] .adm-home-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
html[data-admin="1"] .adm-home-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
html[data-admin="1"] .adm-metric { min-width: 0; display: flex; flex-direction: column; gap: 5px; color: var(--text); padding: 21px 23px; border: 1px solid var(--admin-line); border-radius: 18px; background: var(--surface); box-shadow: var(--admin-card-shadow); transition: border-color .15s, background .15s; }
html[data-admin="1"] .adm-metric:hover { border-color: #bfdaf8; background: var(--admin-soft); }
html[data-admin="1"] .adm-metric-label { display: flex; align-items: center; gap: 8px; color: var(--admin-muted); font-size: 13px; font-weight: 500; }
html[data-admin="1"] .adm-metric-label svg { width: 16px; height: 16px; color: var(--accent); stroke-width: 1.7; }
html[data-admin="1"] .adm-metric-value { font-size: clamp(28px, 2.7vw, 38px); line-height: 1.25; font-weight: 600; letter-spacing: -.045em; margin-top: 7px; font-variant-numeric: tabular-nums; }
html[data-admin="1"] .adm-metric-note { color: var(--admin-muted); font-size: 12px; line-height: 1.4; }
html[data-admin="1"] .adm-home-quicklinks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 30px; }
html[data-admin="1"] .adm-quick { display: grid; grid-template-columns: 42px minmax(0, 1fr) 16px; column-gap: 14px; row-gap: 4px; align-items: center; padding: 22px; border: 1px solid var(--admin-line); border-radius: 18px; background: var(--admin-soft); color: var(--text); transition: border-color .15s, background .15s; }
html[data-admin="1"] .adm-quick:hover { border-color: #bfdaf8; background: var(--admin-blue-soft); }
html[data-admin="1"] .adm-quick-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 13px; color: var(--accent); background: var(--surface); }
html[data-admin="1"] .adm-quick-icon svg { width: 21px; height: 21px; stroke-width: 1.6; }
html[data-admin="1"] .adm-quick > span:nth-child(2) { display: grid; gap: 4px; }
html[data-admin="1"] .adm-quick > svg { width: 16px; height: 16px; color: var(--admin-muted); }
html[data-admin="1"] .adm-quick-title { font-size: 14px; line-height: 1.4; font-weight: 600; letter-spacing: -.015em; }
html[data-admin="1"] .adm-quick-text { color: var(--admin-muted); font-size: 12px; line-height: 1.6; }
html[data-admin="1"] .adm-home-columns { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
html[data-admin="1"] .adm-home-sidebar { display: grid; gap: 20px; }
html[data-admin="1"] .adm-panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px 22px 18px; border-bottom: 1px solid var(--admin-line); }
html[data-admin="1"] .adm-panel-head h2,
html[data-admin="1"] .adm-panel-head h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.02em; }
html[data-admin="1"] .adm-panel-head > a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: 12px; font-weight: 500; }
html[data-admin="1"] .adm-panel-head p { margin-top: 5px; color: var(--admin-muted); font-size: 12px; }
html[data-admin="1"] .adm-panel-body { padding: 7px 22px; }
html[data-admin="1"] .adm-home-order { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 17px 0; color: var(--text); border-bottom: 1px solid var(--admin-line); }
html[data-admin="1"] .adm-home-order:last-child { border-bottom: 0; }
html[data-admin="1"] .adm-home-order:hover .adm-home-order-main { color: var(--accent); }
html[data-admin="1"] .adm-home-order-main { min-width: 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
html[data-admin="1"] .adm-home-order-main > strong { font-weight: 600; }
html[data-admin="1"] .adm-home-order-meta { display: block; margin-top: 5px; color: var(--admin-muted); font-size: 12px; font-weight: 400; }
html[data-admin="1"] .adm-home-order-amount { font-size: 13px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
html[data-admin="1"] .adm-home-order .so-status { font-size: 10px; padding: 4px 8px; white-space: nowrap; }
html[data-admin="1"] .adm-home-empty { padding: 42px 20px; text-align: center; color: var(--admin-muted); font-size: 12px; line-height: 1.7; }
html[data-admin="1"] .adm-home-empty svg { margin: 0 auto 12px; color: var(--accent); width: 30px; height: 30px; stroke-width: 1.4; }
html[data-admin="1"] .adm-home-empty p { font-size: 13px; color: var(--text); margin-bottom: 4px; }
html[data-admin="1"] .adm-home-empty .btn { margin-top: 12px; }
html[data-admin="1"] .adm-home-status { margin: 0; }
html[data-admin="1"] .adm-home-status-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--admin-line); font-size: 12px; }
html[data-admin="1"] .adm-home-status-row:last-child { border-bottom: 0; }
html[data-admin="1"] .adm-home-status-row dt { color: var(--admin-muted); }
html[data-admin="1"] .adm-home-status-row dd { margin: 0; text-align: right; font-weight: 500; }
html[data-admin="1"] .adm-home-notices { list-style: none; padding: 0; }
html[data-admin="1"] .adm-home-notices li { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: var(--admin-soft); color: var(--admin-muted); font-size: 11px; line-height: 1.6; }
html[data-admin="1"] .adm-home-notices a { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-2); font-size: 12px; }
html[data-admin="1"] .adm-home-notices a:hover { color: var(--accent); }
html[data-admin="1"] .adm-home-notices svg { flex-shrink: 0; }
html[data-admin="1"] .adm-home-platform { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 26px; padding: 18px 0; border-top: 1px solid var(--admin-line); }
html[data-admin="1"] .adm-home-platform > h2 { font-size: 12px; font-weight: 500; color: var(--admin-muted); }
html[data-admin="1"] .adm-home-platform-item { display: flex; align-items: center; gap: 7px; padding: 0; color: var(--admin-muted); font-size: 12px; border: 0; }
html[data-admin="1"] .adm-home-platform-item:last-child { border-bottom: 0; }
html[data-admin="1"] a.adm-home-platform-item:hover { color: var(--accent); }
html[data-admin="1"] .adm-home-platform-value { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
html[data-admin="1"] .adm-home-refresh { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 18px; border: 1px solid var(--admin-line); border-radius: 14px; background: var(--admin-soft); color: var(--admin-muted); font-size: 12px; }

/* Produkte: Kategorien bleiben vollständig lesbar, auch auf schmalen Ansichten. */
html[data-admin="1"] .admin-products-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; max-width: none; align-items: start; }
html[data-admin="1"] .admin-products-layout > aside { padding: 18px 12px 14px; border: 0; border-right: 1px solid var(--admin-line); border-radius: 0; box-shadow: none; }
html[data-admin="1"] .admin-products-layout > aside h3 { font-size: 13px; }
html[data-admin="1"] .admin-category-help { font-size: 11px; line-height: 1.5; color: var(--admin-muted); margin-bottom: 9px; }
html[data-admin="1"] .admin-category-tools { display: flex; gap: 12px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--admin-line); }
html[data-admin="1"] .admin-category-tools button { min-height: 30px; border: 0; border-radius: 6px; padding: 4px 2px; background: transparent; color: var(--accent); font-size: 11px; }
html[data-admin="1"] .admin-category-tools button:hover { text-decoration: underline; text-underline-offset: 3px; }
html[data-admin="1"] .admin-products-layout > #prod-main { min-width: 0; }
html[data-admin="1"] .admin-products-layout .cat-tree { max-height: calc(100vh - 260px); max-height: calc(100dvh - 260px); min-height: 180px; padding-right: 5px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
html[data-admin="1"] .admin-products-layout .cat-node { align-items: flex-start; min-height: 40px; padding: 10px 7px; padding-left: calc(7px + var(--depth, 0) * 13px); gap: 6px; font-size: 12px; line-height: 1.45; border-radius: 9px; }
html[data-admin="1"] .admin-products-layout .cat-name { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
html[data-admin="1"] .admin-products-layout .cat-toggle { padding-top: 3px; }
html[data-admin="1"] .admin-products-layout .cat-grip { display: flex; align-items: center; flex: 0 0 12px; width: 12px; padding-top: 1px; color: var(--admin-muted); opacity: .4; cursor: grab; }
html[data-admin="1"] .admin-products-layout .cat-grip svg { width: 12px; height: 16px; }
html[data-admin="1"] .admin-products-layout .cat-node:hover .cat-grip { opacity: .85; }
html[data-admin="1"] .admin-products-layout .cat-node.dragging .cat-grip { cursor: grabbing; }
html[data-admin="1"] .admin-products-layout .cat-count { flex: 0 0 auto; font-size: 9px; padding: 2px 5px; }
html[data-admin="1"] .admin-products-layout .cat-node:focus-within .cat-actions { display: flex; }
html[data-admin="1"] .admin-products-layout .cat-actions { flex-wrap: wrap; flex: 0 0 auto; max-width: 46px; }
html[data-admin="1"] .prod-werkzeuge { max-width: none; margin-bottom: 22px; gap: 14px; }
html[data-admin="1"] .product-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 17px; }

html[data-admin="1"][data-theme="dark"] {
  --admin-line: #303640;
  --admin-muted: #a9b2bf;
  --admin-soft: #202630;
  --admin-blue-soft: #152f4b;
  --admin-card-shadow: none;
  --bg: #151a21;
  --surface: #151a21;
  --surface-2: #202630;
  --text: #eef2f7;
  --text-2: #a9b2bf;
  --text-3: #9aa6b7;
  --border: #303640;
  --border-strong: #485566;
  --accent: #63adff;
  --accent-hover: #87c0ff;
  --accent-soft: #152f4b;
  background: var(--surface);
}
html[data-admin="1"][data-theme="dark"] body { background: var(--surface); }
html[data-admin="1"][data-theme="dark"] .btn:not(.secondary):not(.ghost):not(.danger):not(.dark),
html[data-admin="1"][data-theme="dark"] .adm-topsuche button { background: #0071e3; color: #fff; }
html[data-admin="1"][data-theme="dark"] .adm-metric:hover,
html[data-admin="1"][data-theme="dark"] .adm-quick:hover { border-color: #356493; }
html[data-admin="1"][data-theme="dark"] .modal { box-shadow: 0 24px 80px rgba(0, 0, 0, .5); }
html[data-admin="1"][data-theme="dark"] .so-status.neu { color: #83beff; background: #173655; }
html[data-admin="1"][data-theme="dark"] .so-status.bestätigt { color: #c0acff; }
html[data-admin="1"][data-theme="dark"] .so-status.bereit { color: #ffc176; }
html[data-admin="1"][data-theme="dark"] .so-status.abgeschlossen { color: #73df9f; }
html[data-admin="1"][data-theme="dark"] .so-status.storniert { color: #ff8aad; }

@media (max-width: 1240px) {
  html[data-admin="1"] .admin-workspace .admin-header { grid-template-columns: minmax(230px, 1fr) minmax(220px, 1.6fr) auto; gap: 18px; padding-inline: 22px; }
  html[data-admin="1"] .admin-brand-badge { display: none; }
  html[data-admin="1"] .admin-workspace .content { padding: 28px 26px 48px; }
  html[data-admin="1"] .adm-home-columns { grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
  html[data-admin="1"] .adm-metric { padding: 18px; }
  html[data-admin="1"] .adm-quick { padding: 18px; grid-template-columns: 36px minmax(0, 1fr) 14px; gap: 8px 10px; }
  html[data-admin="1"] .adm-quick-icon { width: 36px; height: 36px; }
  html[data-admin="1"] .admin-products-layout { grid-template-columns: 255px minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 980px) {
  html[data-admin="1"] .admin-workspace .admin-header { grid-template-columns: auto minmax(180px, 1fr) auto; padding-inline: 18px; gap: 16px; }
  html[data-admin="1"] .admin-workspace .menu-toggle { display: flex; }
  html[data-admin="1"] .admin-sidebar-title { display: flex; }
  html[data-admin="1"] .admin-sidebar-close { display: flex; }
  html[data-admin="1"] .admin-workspace .sidebar { width: 264px; transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility .2s; border-right: 1px solid var(--admin-line); }
  html[data-admin="1"] .admin-workspace .sidebar.open { transform: translateX(0); visibility: visible; box-shadow: 16px 0 48px rgba(17, 28, 46, .12); }
  html[data-admin="1"] .admin-workspace .sidebar-backdrop { inset: var(--admin-header-h) 0 0; z-index: 49; background: rgba(17, 28, 46, .25); backdrop-filter: blur(2px); }
  html[data-admin="1"] .admin-workspace .main { margin-left: 0; }
  html[data-admin="1"] .admin-workspace .topbar-shop { font-size: 0; gap: 0; width: 40px; padding: 0; }
  html[data-admin="1"] .admin-workspace .topbar-shop svg { width: 17px; height: 17px; }
  html[data-admin="1"] .admin-workspace .topbar-shop span { display: none; }
}
@media (max-width: 760px) {
  html[data-admin="1"] .adm-home-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  html[data-admin="1"] .adm-home-columns { grid-template-columns: 1fr; }
  html[data-admin="1"] .adm-home-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  html[data-admin="1"] .adm-home-quicklinks { gap: 10px; }
  html[data-admin="1"] .adm-quick { grid-template-columns: 1fr auto; padding: 16px; }
  html[data-admin="1"] .adm-quick-icon { grid-row: auto; margin-bottom: 4px; }
  html[data-admin="1"] .adm-quick > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  html[data-admin="1"] .adm-quick > svg { grid-column: 2; grid-row: 1; }
  html[data-admin="1"] .admin-products-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 14px; }
  html[data-admin="1"] .admin-products-layout > aside { padding-inline: 0 10px; }
  html[data-admin="1"] .adm-toolbar .adm-search { min-width: min(220px, 100%); }
}
@media (max-width: 640px) {
  html[data-admin="1"] { --admin-header-h: 124px; }
  html[data-admin="1"] .admin-workspace .admin-header { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 40px 44px; row-gap: 12px; padding: 12px 16px 16px; }
  html[data-admin="1"] .admin-header-leading { grid-column: 1; grid-row: 1; gap: 8px; }
  html[data-admin="1"] .admin-header .brand-mark { width: 30px; height: 30px; flex-basis: 30px; border-radius: 9px; font-size: 17px; }
  html[data-admin="1"] .admin-header .brand-name { font-size: 15px; }
  html[data-admin="1"] .admin-workspace .topbar-actions { grid-column: 2; grid-row: 1; gap: 3px; }
  html[data-admin="1"] .admin-workspace .topbar-actions .icon-btn,
  html[data-admin="1"] .admin-workspace .menu-toggle { width: 34px; height: 38px; }
  html[data-admin="1"] .admin-workspace .topbar-shop { display: none; }
  html[data-admin="1"] .admin-workspace .adm-topsuche { display: flex; grid-column: 1 / -1; grid-row: 2; }
  html[data-admin="1"] .admin-workspace .adm-topsuche input { height: 44px; font-size: 16px; }
  html[data-admin="1"] .admin-workspace .adm-topsuche button { width: 34px; height: 34px; }
  html[data-admin="1"] .admin-workspace .content { padding: 25px 18px 40px; }
  html[data-admin="1"] .adm-home-head { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 22px; }
  html[data-admin="1"] .adm-home-greeting h1 { font-size: 28px; }
  html[data-admin="1"] .adm-home-actions { width: 100%; }
  html[data-admin="1"] .adm-home-metrics { margin-bottom: 18px; }
  html[data-admin="1"] .adm-metric { padding: 16px; }
  html[data-admin="1"] .adm-metric-value { font-size: 30px; }
  html[data-admin="1"] .adm-home-quicklinks { grid-template-columns: 1fr; gap: 10px; margin-bottom: 22px; }
  html[data-admin="1"] .adm-quick { grid-template-columns: 38px minmax(0, 1fr) 14px; padding: 16px; gap: 3px 12px; }
  html[data-admin="1"] .adm-quick-icon { grid-row: 1; width: 38px; height: 38px; margin: 0; }
  html[data-admin="1"] .adm-quick > span:nth-child(2) { grid-column: 2; grid-row: 1; }
  html[data-admin="1"] .adm-quick > svg { grid-column: 3; }
  html[data-admin="1"] .adm-home-sidebar { grid-template-columns: 1fr; }
  html[data-admin="1"] .adm-panel-head { padding: 18px; }
  html[data-admin="1"] .adm-panel-body { padding-inline: 18px; }
  html[data-admin="1"] .adm-home-order { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; }
  html[data-admin="1"] .adm-home-order .so-status { grid-column: 2; justify-self: end; }
  html[data-admin="1"] .adm-home-platform { column-gap: 18px; row-gap: 12px; }
  html[data-admin="1"] .adm-home-platform > h2 { flex-basis: 100%; }
  html[data-admin="1"] .admin-products-layout { grid-template-columns: minmax(0, 1fr); }
  html[data-admin="1"] .admin-products-layout > aside { padding: 16px; border: 1px solid var(--admin-line); border-radius: 16px; }
  html[data-admin="1"] .admin-products-layout .cat-tree { max-height: 300px; min-height: 0; }
  html[data-admin="1"] .admin-workspace .page-head { align-items: flex-start; gap: 16px; }
  html[data-admin="1"] .admin-workspace .page-head > div:last-child { flex-wrap: wrap; }
  html[data-admin="1"] .prod-werkzeuge .prod-suche { flex-basis: 100%; }
  html[data-admin="1"] .product-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
  html[data-admin="1"] .product-card { padding: 13px; }
  html[data-admin="1"] .adm-panel:has(> .adm-table) { overflow-x: auto; }
  html[data-admin="1"] .adm-table { min-width: 560px; }
  html[data-admin="1"] .adm-foot { flex-wrap: wrap; }
  html[data-admin="1"] .modal-backdrop { padding: 14px; }
  html[data-admin="1"] .modal { max-height: 90dvh; padding: 22px; border-radius: 20px; }
  html[data-admin="1"] .form-grid { grid-template-columns: 1fr; }
  html[data-admin="1"] :is(input.field, select.field, textarea.field) { font-size: 16px; }
}
@media (hover: none) {
  html[data-admin="1"] .admin-products-layout .cat-actions { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-admin="1"] *, html[data-admin="1"] *::before, html[data-admin="1"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
