:root {
  color-scheme: light;
  --ink: #16161a;
  --muted: #636a73;
  --line: #d9dde3;
  --paper: #f5f6f8;
  --panel: #ffffff;
  --brand: #d71920;
  --brand-dark: #a80f17;
  --accent: #11737a;
  --shadow: 0 18px 50px rgba(22, 22, 26, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: var(--ink);
  background: #e9ecef;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.is-hidden {
  display: none !important;
}

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100vh;
  min-height: 0;
  padding: 22px;
  overflow: hidden;
  background: var(--panel);
  border-right: 1px solid var(--line);
}

.brand-block {
  position: relative;
}

.admin-entry-button {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(99, 106, 115, 0.18);
  opacity: 0.28;
}

.admin-entry-button:hover,
.admin-entry-button:focus-visible {
  background: var(--accent);
  opacity: 0.9;
  outline: none;
}

.brand-block h1,
.cart-header h2 {
  margin: 2px 0 6px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.brand-block p,
.page-card p,
.product-card p,
.cart-line p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.eyebrow {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-wrap {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search-wrap input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.search-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17, 115, 122, 0.14);
}

.brand-tabs-wrap {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.brand-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.brand-tab {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel);
  font-weight: 900;
}

.brand-tab.is-active {
  border-color: var(--brand);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.1);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: var(--paper);
  border-radius: 8px;
}

.tab-button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.tab-button.is-active {
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 1px 4px rgba(22, 22, 26, 0.1);
}

.panel {
  display: none;
  overflow: auto;
  min-height: 0;
  flex: 1;
  padding-right: 4px;
}

.panel.is-active {
  display: grid;
  gap: 10px;
}

.page-card,
.product-card {
  width: 100%;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.page-card.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.1);
}

.page-card strong,
.product-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.viewer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.viewer-toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px minmax(220px, 280px) auto;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 12px 18px;
  background: rgba(245, 246, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.zoom-control {
  display: grid;
  grid-template-columns: auto minmax(110px, 1fr) 46px;
  gap: 8px;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.zoom-control input {
  width: 100%;
  accent-color: var(--brand);
}

.zoom-control strong {
  color: var(--ink);
  font-size: 12px;
  text-align: right;
}

#pageTitle {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#pageSubtitle {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  font-size: 24px;
  line-height: 1;
}

.cart-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.cart-button span {
  display: grid;
  place-items: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 12px;
}

.profile-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.profile-button::before,
.profile-button::after {
  content: "";
  display: block;
  border: 2px solid var(--ink);
}

.profile-button::before {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.profile-button::after {
  position: absolute;
  bottom: 8px;
  width: 18px;
  height: 9px;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.profile-button.is-signed-in {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17, 115, 122, 0.14);
}

.page-stage {
  overflow: auto;
  min-height: 0;
  padding: 22px;
}

.page-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  min-width: max-content;
}

.page-frame {
  position: relative;
  width: min(calc(100vw - 390px), calc(760px * var(--catalog-zoom, 1)));
  min-width: min(100%, calc(520px * var(--catalog-zoom, 1)));
  max-width: none;
  background: #fff;
  box-shadow: var(--shadow);
}

.page-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.hotspot-layer {
  position: absolute;
  inset: 0;
}

.hotspot {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(215, 25, 32, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}

.hotspot:hover,
.hotspot:focus-visible {
  background: rgba(17, 115, 122, 0.1);
  border-color: var(--accent);
  outline: none;
}

.hotspot span {
  position: absolute;
  top: -6px;
  right: -5px;
  display: grid;
  place-items: center;
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: var(--brand);
  color: transparent;
  font-size: 0;
  font-weight: 900;
  opacity: 0;
  box-shadow: 0 2px 8px rgba(215, 25, 32, 0.24);
  transition: opacity 120ms ease;
}

.hotspot:hover span,
.hotspot:focus-visible span {
  opacity: 1;
}

.price-overlay {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max(var(--cover-w, 58px), var(--price-min-width, 58px));
  min-height: max(var(--cover-h, 21px), var(--price-min-height, 21px));
  padding: var(--price-pad-y, 1px) var(--price-pad-x, 4px);
  border: 1px solid rgba(215, 25, 32, 0.16);
  border-radius: var(--price-radius, 3px);
  background: #fff;
  color: var(--price-color, var(--brand-dark));
  font-size: var(--price-font-size, 14px);
  font-weight: 950;
  line-height: 1;
  box-shadow: var(--price-shadow, 0 3px 8px rgba(22, 22, 26, 0.14));
  transform: translate(-50%, 0);
}

.price-overlay--pdf-small,
.price-overlay--pdf-medium,
.price-overlay--pdf-regular,
.price-overlay--pdf-large,
.price-overlay--pdf-table,
.price-overlay--pdf-inline {
  border-color: rgba(215, 25, 32, 0.1);
}

.price-overlay:hover,
.price-overlay:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 8;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(420px, 100vw);
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 180ms ease;
}

.account-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 8;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(380px, 100vw);
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 180ms ease;
}

.account-drawer.is-open {
  transform: translateX(0);
}

.admin-drawer {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(16px, 4vh, 34px) 18px;
  overflow: auto;
  background: rgba(22, 22, 26, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.admin-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.admin-login-panel {
  display: grid;
  place-items: center;
  width: min(420px, 100%);
  min-height: calc(100vh - clamp(32px, 8vh, 68px));
}

.admin-app-panel {
  width: min(960px, 100%);
  overflow: visible;
  padding: 22px;
  background: #eef0f3;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-header,
.cart-footer,
.account-drawer-header {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-footer {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.account-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.account-drawer-header h2 {
  margin: 2px 0 0;
  font-size: 28px;
  line-height: 1;
}

.account-drawer-body {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.cart-items {
  overflow: auto;
  padding: 12px 18px;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.qty-controls {
  display: grid;
  grid-template-columns: 32px 34px 32px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qty-controls button {
  height: 34px;
  border: 0;
  background: transparent;
  font-weight: 900;
}

.qty-controls span {
  text-align: center;
  font-weight: 900;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.cart-total-value {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.cart-total strong {
  color: var(--ink);
  font-size: 22px;
}

.account-header,
.auth-actions,
.customer-order-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-header strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}

.auth-fields {
  display: grid;
  gap: 10px;
  overflow: hidden;
}

.auth-mode-panel {
  display: grid;
  gap: 10px;
  overflow: hidden;
  transform: translateX(0);
  transition:
    max-height 220ms ease,
    opacity 180ms ease,
    transform 220ms ease;
}

#signInForm {
  max-height: 270px;
  opacity: 1;
}

#createAccountForm,
#forgotPasswordForm,
#newPasswordForm {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
}

.auth-fields[data-mode="creating"] #signInForm,
.auth-fields[data-mode="forgot"] #signInForm,
.auth-fields[data-mode="new-password"] #signInForm {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
}

.auth-fields[data-mode="creating"] #createAccountForm,
.auth-fields[data-mode="forgot"] #forgotPasswordForm,
.auth-fields[data-mode="new-password"] #newPasswordForm {
  max-height: 620px;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.compact-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.customer-orders {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.customer-order-line {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}

.customer-order-detail {
  display: grid;
  gap: 12px;
}

.customer-order-detail-header h3 {
  margin: 2px 0 4px;
  font-size: 20px;
  line-height: 1.15;
}

.customer-order-detail-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.customer-order-items {
  display: grid;
  gap: 8px;
}

.customer-order-item {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 13px;
}

.customer-order-item strong,
.customer-order-item span {
  display: block;
}

.customer-order-item span {
  color: var(--muted);
}

.auth-message {
  margin: 0;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.auth-message:empty {
  display: none;
}

.customer-orders p {
  margin: 0;
}

.cart-client-field,
.auth-fields label,
.admin-form-grid label,
.admin-login-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cart-client-field input,
.auth-fields input,
.admin-form-grid input,
.admin-form-grid textarea,
.admin-form-grid select,
.admin-login-panel input,
.order-card select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.admin-form-grid textarea {
  resize: vertical;
}

.cart-client-field input:focus,
.auth-fields input:focus,
.admin-form-grid input:focus,
.admin-form-grid textarea:focus,
.admin-form-grid select:focus,
.admin-login-panel input:focus,
.order-card select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17, 115, 122, 0.14);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--panel);
}

.danger-button {
  color: var(--brand-dark);
}

.product-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-dialog::backdrop {
  background: rgba(22, 22, 26, 0.45);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 22px;
}

.dialog-body {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.dialog-body h2 {
  margin: 0;
  padding-right: 36px;
  font-size: 24px;
  line-height: 1.15;
}

.product-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.group-list {
  display: grid;
  gap: 8px;
}

.group-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
}

.group-product span {
  display: block;
  white-space: normal;
  line-height: 1.25;
}

.group-product strong {
  color: var(--brand-dark);
  font-size: 13px;
}

.dialog-qty {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.group-product .dialog-qty {
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(150px, 1fr);
  align-items: center;
  gap: 6px 10px;
}

.group-product .dialog-qty > span {
  grid-column: 1;
  white-space: nowrap;
}

.group-product .quantity-stepper {
  grid-column: 2;
}

.group-product .dialog-line-total {
  grid-column: 2;
}

.dialog-qty-wide {
  grid-template-columns: auto minmax(180px, 1fr);
  align-items: center;
  gap: 12px;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 48px minmax(72px, 1fr) 48px;
  gap: 8px;
  align-items: center;
}

.quantity-stepper-compact {
  grid-template-columns: 38px minmax(46px, 1fr) 38px;
  gap: 6px;
}

.quantity-step-button {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.quantity-stepper-compact .quantity-step-button {
  height: 38px;
  font-size: 20px;
}

.quantity-step-button:hover {
  border-color: var(--accent);
  background: rgba(17, 115, 122, 0.08);
}

.quantity-step-button:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 115, 122, 0.14);
}

.dialog-qty input {
  width: 100%;
  height: 38px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.dialog-qty-wide input {
  height: 44px;
}

.dialog-qty input::-webkit-outer-spin-button,
.dialog-qty input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.dialog-qty input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 115, 122, 0.14);
}

.dialog-line-total,
.dialog-total {
  color: var(--brand-dark);
  font-weight: 950;
}

.dialog-line-total {
  font-size: 12px;
}

.dialog-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(215, 25, 32, 0.18);
  border-radius: 8px;
  background: rgba(215, 25, 32, 0.06);
}

.dialog-total span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dialog-total strong {
  font-size: 20px;
}

.small-add-button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.price {
  color: var(--brand-dark);
  font-size: 24px;
  font-weight: 950;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 12;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #16161a;
  color: #fff;
  text-align: center;
  transform: translate(-50%, 80px);
  opacity: 0;
  transition: 180ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.admin-card,
.admin-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(22, 22, 26, 0.08);
}

.admin-card {
  display: grid;
  gap: 16px;
  width: min(420px, 100%);
  padding: 24px;
}

.admin-card h1,
.admin-card h2,
.admin-header h1,
.admin-panel h2 {
  margin: 2px 0 0;
  letter-spacing: 0;
}

.admin-card p {
  margin: 0;
  color: var(--muted);
}

.admin-message {
  min-height: 20px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.admin-header,
.admin-panel-header,
.order-card-header,
.order-card-footer,
.admin-actions,
.admin-summary {
  display: flex;
  align-items: center;
}

.admin-header {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
}

.admin-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 18px;
}

.product-admin-panel {
  grid-column: 1 / -1;
}

.admin-panel-header {
  justify-content: space-between;
  gap: 16px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wide-field {
  grid-column: 1 / -1;
}

.checkbox-field {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  align-self: end;
  min-height: 38px;
}

.checkbox-field input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--brand);
}

.admin-summary {
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}

.admin-data-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-summary span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-summary strong {
  color: var(--ink);
}

.orders-list {
  display: grid;
  gap: 12px;
  max-height: min(420px, 46vh);
  overflow: auto;
  padding-right: 4px;
}

.order-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.order-card-header,
.order-card-footer {
  justify-content: space-between;
  gap: 12px;
}

.order-card-header p,
.order-notes,
.empty-state {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.order-card select {
  width: 132px;
}

.order-lines {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
}

.import-button {
  position: relative;
  overflow: hidden;
}

.import-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

@media (max-width: 920px) {
  body {
    overflow: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .sidebar {
    height: auto;
    min-height: auto;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .panel.is-active {
    max-height: 230px;
  }

  .viewer-toolbar {
    position: static;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .zoom-control {
    grid-column: 1 / -1;
  }

  .cart-button {
    grid-column: 1 / -1;
  }

  .page-stage {
    overflow: auto;
    padding: 14px;
  }

  .page-frame {
    width: min(calc(100vw - 28px), calc(760px * var(--catalog-zoom, 1)));
    min-width: min(100%, calc(430px * var(--catalog-zoom, 1)));
  }

  .group-product {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-app-panel {
    padding: 14px;
  }

  .orders-list {
    max-height: none;
  }

  .admin-header,
  .admin-drawer-header,
  .admin-panel-header,
  .order-card-header,
  .order-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .product-admin-panel,
  .wide-field {
    grid-column: auto;
  }
}
