:root {
  --page: #f4f1e9;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #171713;
  --muted: #6e695f;
  --soft: #9c9588;
  --line: #e4dccd;
  --line-strong: #d3c8b6;
  --sidebar: #111417;
  --sidebar-soft: #8f9aa4;
  --accent: #0d6b57;
  --accent-dark: #094839;
  --accent-soft: #e5f4ee;
  --gold: #d9921e;
  --danger: #b3263a;
  --danger-soft: #fee8ec;
  --success: #127342;
  --success-soft: #e4f6eb;
  --shadow: 0 20px 45px rgba(31, 27, 19, 0.10);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(13, 107, 87, 0.12), transparent 32%),
    linear-gradient(135deg, #f8f4eb 0%, #f1eee7 48%, #ece6da 100%);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

.hidden {
  display: none !important;
}

.admin-shell {
  min-height: 100vh;
}

.brand-lockup,
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  color: #fffaf2;
  background: linear-gradient(135deg, var(--ink), var(--accent));
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h1 {
  font-size: clamp(2.1rem, 7vw, 4rem);
}

h2 {
  font-size: clamp(1.35rem, 4vw, 2rem);
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

small {
  color: var(--soft);
}

.button,
.text-button,
.row-button,
.status-button,
.side-link,
.nav-item,
.menu-button,
.task-list button {
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 14px 28px rgba(13, 107, 87, 0.22);
}

.button-secondary,
.button-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: #fffaf2;
}

.auth-panel {
  display: grid;
  align-items: center;
  gap: 18px;
  width: min(1120px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0;
}

.auth-copy,
.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.auth-copy {
  display: grid;
  gap: 18px;
  min-height: 420px;
  padding: clamp(28px, 6vw, 52px);
  align-content: end;
  background:
    linear-gradient(150deg, rgba(255, 253, 248, 0.92), rgba(255, 253, 248, 0.72)),
    radial-gradient(circle at top right, rgba(217, 146, 30, 0.18), transparent 34%);
}

.auth-copy p {
  max-width: 520px;
  font-size: 1.06rem;
}

.auth-card {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
}

label {
  display: grid;
  gap: 8px;
}

label span,
.upload-preview-card > span {
  color: #343027;
  font-size: 0.91rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: var(--surface-strong);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(13, 107, 87, 0.55);
  box-shadow: 0 0 0 4px rgba(13, 107, 87, 0.10);
}

.form-message {
  min-height: 22px;
  font-weight: 700;
}

.form-message.error {
  color: var(--danger);
}

.form-message.success {
  color: var(--success);
}

.dashboard {
  position: relative;
  display: grid;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(17, 20, 23, 0.02), transparent 22%),
    var(--page);
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 22px;
  color: #f8f4eb;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 28%),
    var(--sidebar);
}

.sidebar-brand {
  min-height: 56px;
}

.sidebar-brand strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.sidebar-brand span:last-child {
  display: block;
  margin-top: 2px;
  color: var(--sidebar-soft);
  font-size: 0.86rem;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #f8f4eb;
  text-align: left;
  background: transparent;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.nav-item:hover,
.nav-item.is-active {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.nav-item.is-active {
  box-shadow: inset 3px 0 0 var(--gold);
}

.nav-item span {
  font-weight: 800;
}

.nav-item small {
  color: var(--sidebar-soft);
}

.sidebar-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.side-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #f8f4eb;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.side-link-danger {
  color: #ffd6dc;
  background: rgba(179, 38, 58, 0.16);
}

.admin-workspace {
  display: grid;
  align-content: start;
  gap: 22px;
  min-width: 0;
  padding: 24px;
}

.admin-mobilebar {
  display: none;
}

.workspace-header,
.stat-card,
.overview-panel,
.editor-card,
.list-card,
.catalog-card,
.orders-card,
.integration-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.workspace-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(20px, 4vw, 30px);
}

.workspace-header h1 {
  margin-top: 12px;
}

.workspace-header p {
  max-width: 720px;
  margin-top: 10px;
}

#admin-welcome {
  display: inline-block;
  margin-top: 10px;
}

.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-view {
  display: grid;
  gap: 18px;
  min-width: 0;
  animation: viewIn 180ms ease both;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-grid {
  display: grid;
  gap: 14px;
}

.stat-card {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.stat-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.06em;
}

.stat-card span {
  color: var(--muted);
  font-weight: 800;
}

.overview-grid,
.admin-grid {
  display: grid;
  gap: 18px;
}

.overview-panel,
.editor-card,
.list-card,
.catalog-card,
.orders-card,
.integration-card {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 26px);
}

.editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.editor-head h2 {
  margin-top: 10px;
}

.task-list,
.quick-actions,
.integration-form,
.integration-status-card {
  display: grid;
  gap: 12px;
}

.task-list button {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  text-align: left;
  background: #fffaf2;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.task-list button:hover {
  border-color: rgba(13, 107, 87, 0.42);
  transform: translateX(2px);
}

.task-list strong {
  font-size: 0.98rem;
}

.task-list span {
  color: var(--muted);
  line-height: 1.55;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.payment-method-admin {
  display: grid;
  gap: 10px;
}

.payment-method-admin > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.payment-method-admin-grid {
  display: grid;
  gap: 10px;
}

.method-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf2;
  cursor: pointer;
}

.method-toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}

.method-toggle span {
  display: grid;
  gap: 3px;
}

.method-toggle strong {
  font-size: 0.95rem;
}

.method-toggle small {
  color: var(--muted);
}

.method-toggle:has(input:checked) {
  border-color: rgba(13, 107, 87, 0.45);
  box-shadow: 0 0 0 4px rgba(13, 107, 87, 0.08);
}

.method-toggle-card input {
  accent-color: var(--blue);
}

.method-toggle-card:has(input:checked) {
  border-color: rgba(36, 98, 209, 0.45);
  box-shadow: 0 0 0 4px rgba(36, 98, 209, 0.08);
}

.upload-preview-card {
  display: grid;
  gap: 10px;
}

.image-preview {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(13, 107, 87, 0.04), transparent),
    #fffaf2;
}

.image-preview img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.image-preview-empty {
  color: var(--muted);
  text-align: center;
}

.toggle-row {
  display: grid;
  gap: 10px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fffaf2;
}

.toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  font-weight: 800;
}

.products-table,
.orders-list {
  display: grid;
  gap: 12px;
}

.product-row,
.order-row {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
}

.product-row h3,
.order-row h3 {
  margin-bottom: 6px;
}

.product-meta,
.product-actions,
.order-meta,
.order-actions,
.order-items,
.integration-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-items,
.payment-details {
  display: grid;
  gap: 9px;
}

.payment-detail-row,
.order-item {
  display: grid;
  gap: 6px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fffaf2;
}

.payment-detail-row strong,
.order-item strong {
  font-size: 0.88rem;
}

.payment-detail-row span,
.order-item span {
  color: var(--muted);
}

.payment-detail-code code {
  display: block;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 0.84rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #403a31;
  background: #f3ede2;
  font-size: 0.8rem;
  font-weight: 800;
}

.meta-pill small {
  margin-left: 4px;
  color: var(--muted);
}

.meta-pill.active,
.meta-pill.status-paid,
.meta-pill.payment-paid {
  color: var(--success);
  background: var(--success-soft);
}

.meta-pill.inactive,
.meta-pill.status-cancelled,
.meta-pill.payment-failed {
  color: var(--danger);
  background: var(--danger-soft);
}

.meta-pill.status-new,
.meta-pill.payment-pending {
  color: #8a5a06;
  background: #fff1d6;
}

.row-button,
.status-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: #fffaf2;
  font-weight: 800;
}

.row-button.danger,
.status-button[data-order-status="cancelled"] {
  border-color: rgba(179, 38, 58, 0.28);
  color: var(--danger);
  background: var(--danger-soft);
}

.integration-status-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf2;
}

.integration-status-card strong {
  font-size: 1.05rem;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
  background: #fffaf2;
}

.section-toolbar,
.catalog-summary,
.orders-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-toolbar {
  padding-bottom: 4px;
}

.section-toolbar h2 {
  margin-top: 10px;
}

.catalog-summary,
.orders-summary {
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf2;
}

.summary-item {
  display: grid;
  gap: 2px;
  min-width: 120px;
}

.summary-item strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.24rem;
}

.summary-item span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 20, 23, 0.58);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(17, 20, 23, 0.26);
}

.product-editor-card {
  border-radius: 24px;
  box-shadow: none;
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: calc(clamp(18px, 3vw, 26px) * -1) calc(clamp(18px, 3vw, 26px) * -1) 0;
  padding: 18px clamp(18px, 3vw, 26px);
  border-bottom: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(14px);
}

.modal-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface-strong);
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
}

.product-row {
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 16px;
}

.product-thumb {
  width: 96px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(13, 107, 87, 0.08), rgba(217, 146, 30, 0.10)),
    #fffaf2;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumb-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
}

.product-main {
  min-width: 0;
}

.product-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.product-title-row h3 {
  margin: 0;
}

.product-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.product-price small {
  display: inline-block;
  margin-left: 6px;
  text-decoration: line-through;
}

.product-actions {
  justify-content: flex-end;
  min-width: 168px;
}

.orders-table {
  display: grid;
  gap: 10px;
}

.orders-table-head,
.order-row {
  grid-template-columns: minmax(170px, 1.1fr) minmax(160px, 1fr) minmax(150px, 0.9fr) minmax(120px, 0.7fr) minmax(190px, auto);
  align-items: center;
}

.orders-table-head {
  display: grid;
  gap: 12px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.order-row {
  gap: 12px;
  border-radius: 16px;
}

.order-cell {
  min-width: 0;
}

.order-cell p {
  overflow-wrap: anywhere;
}

.order-number {
  display: block;
  margin-bottom: 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.order-mobile-label {
  display: none;
}

.order-items-compact,
.payment-details-compact {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.order-items-compact span,
.payment-details-compact span {
  color: var(--muted);
  font-size: 0.84rem;
}

.order-actions {
  justify-content: flex-end;
}

.order-actions .status-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.8rem;
}

@media (min-width: 981px) {
  .auth-panel {
    grid-template-columns: 1.08fr 0.92fr;
  }

  .dashboard {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
  }

  .admin-nav-backdrop {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .overview-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  }

  .admin-grid {
    grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
    align-items: start;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-method-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid .full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .admin-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    border: 0;
    opacity: 0;
    pointer-events: none;
    background: rgba(17, 20, 23, 0.44);
    transition: opacity 180ms ease;
  }

  .dashboard.nav-open .admin-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(84vw, 330px);
    transform: translateX(-105%);
    transition: transform 220ms ease;
    box-shadow: 30px 0 60px rgba(17, 20, 23, 0.28);
  }

  .dashboard.nav-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-workspace {
    gap: 16px;
    padding: 0 14px 28px;
  }

  .admin-mobilebar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    margin: 0 -14px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.92);
    backdrop-filter: blur(18px);
  }

  .admin-mobilebar strong,
  .admin-mobilebar span {
    display: block;
  }

  .admin-mobilebar span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
  }

  .menu-button {
    display: grid;
    place-items: center;
    gap: 4px;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-strong);
  }

  .menu-button span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
  }

  .workspace-header {
    display: grid;
    gap: 18px;
    padding: 20px;
  }

  .workspace-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .product-thumb {
    width: 82px;
  }

  .product-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }

  .orders-table-head {
    display: none;
  }

  .order-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .order-mobile-label {
    display: block;
    margin-bottom: 4px;
    color: var(--soft);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .order-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .auth-panel {
    width: min(100% - 20px, 480px);
    padding: 10px 0 24px;
  }

  .auth-copy {
    min-height: 330px;
  }

  .workspace-actions,
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    gap: 10px;
  }

  .stat-card {
    padding: 16px;
  }

  .editor-head {
    display: grid;
  }

  .section-toolbar,
  .catalog-summary,
  .orders-summary {
    align-items: stretch;
  }

  .section-toolbar {
    display: grid;
  }

  .summary-item {
    min-width: calc(50% - 8px);
  }

  .modal-shell {
    align-items: end;
    padding: 0;
  }

  .modal-panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
  }

  .product-editor-card,
  .modal-head {
    border-radius: 22px 22px 0 0;
  }

  .modal-head {
    display: flex;
    align-items: center;
  }

  .modal-head h2 {
    font-size: 1.35rem;
  }

  .product-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .product-thumb {
    width: 72px;
    border-radius: 14px;
  }

  .product-meta {
    gap: 6px;
  }

  .product-actions,
  .order-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .row-button,
  .status-button {
    width: 100%;
  }
}
