:root {
  font-family: var(--shop-font);
  color: var(--shop-ink);
  background: var(--shop-canvas);
  --surface: var(--shop-surface);
  --line: var(--shop-line);
  --accent: var(--shop-primary);
  --muted: var(--shop-muted);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--shop-focus); outline-offset: 3px; }
.commerce-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 14px;
  padding: 12px max(18px, calc((100vw - 1040px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.commerce-brand img { display: block; max-width: min(174px, 50vw); height: auto; }
.commerce-main { width: min(1040px, calc(100% - 36px)); margin: clamp(28px, 5vw, 56px) auto 64px; }
.commerce-title { margin-bottom: clamp(20px, 4vw, 32px); }
.commerce-title h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.commerce-title p, .commerce-panel p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.commerce-panel {
  min-width: 0;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--shop-radius-card);
  background: var(--surface);
  box-shadow: var(--shop-shadow);
}
.suite-main { width: min(920px, calc(100% - 36px)); }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.suite-app {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 110px;
  padding: clamp(14px, 3vw, 20px);
  color: var(--shop-ink);
  text-decoration: none;
}
.suite-app:hover { border-color: #88aa93; background: #f9fcf9; }
.suite-app-label { display: grid; gap: 5px; }
.suite-app-label strong { font-size: 1.1rem; font-weight: 690; }
.suite-app-label > span { font-size: .875rem; line-height: 1.5; color: var(--muted); }
.suite-app-arrow { color: var(--accent); }
.commerce-icon-tile {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--shop-radius-control);
  color: var(--accent);
  background: var(--shop-soft);
}
.commerce-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--shop-control-height);
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: var(--shop-radius-control);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 650;
  text-decoration: none;
}
.commerce-button:not(:disabled):hover { background: var(--shop-primary-hover); }
.commerce-button.secondary { color: var(--accent); background: var(--surface); border-color: var(--line); }
.commerce-button.secondary:not(:disabled):hover { background: var(--shop-soft); }
.commerce-button:disabled { opacity: .65; cursor: wait; }
.commerce-form { width: min(100%, 470px); }
.commerce-form > .commerce-icon-tile { margin-bottom: 13px; }
.commerce-form label {
  display: grid;
  gap: 7px;
  margin: 18px 0 12px;
  font-size: .875rem;
  font-weight: 650;
}
.commerce-form input {
  width: 100%;
  min-height: var(--shop-control-height);
  padding: 9px 12px;
  border: 1px solid #9eafa2;
  border-radius: var(--shop-radius-control);
  color: var(--shop-ink);
  font-size: 1rem;
}
.commerce-panel h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.025em; line-height: 1.25; }
.commerce-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.commerce-error { color: var(--shop-danger) !important; }
.commerce-panel [role="status"]:empty { margin: 0; }
.demo-inbox { margin: 14px 0 0; padding: 12px; border-radius: 8px; background: #fcf3d7; color: #493717; }
.demo-inbox pre { overflow-wrap: anywhere; white-space: pre-wrap; font: inherit; }
.commerce-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.commerce-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 17px 0 0; }
.commerce-stats > div { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f7faf7; }
.commerce-stats dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8125rem; line-height: 1.35; }
.commerce-stats .shop-icon { width: 17px; height: 17px; color: var(--accent); }
.commerce-stats dd { margin: 8px 0 0; font-size: clamp(1.4rem, 4vw, 1.85rem); font-weight: 720; font-variant-numeric: tabular-nums; }
.commerce-table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.commerce-table { border-collapse: collapse; width: 100%; text-align: left; font-size: .9rem; }
.commerce-table :is(th, td) { padding: 12px; border-bottom: 1px solid var(--line); }
.commerce-table thead th { background: #f7faf7; color: var(--muted); white-space: nowrap; font-weight: 650; }
.commerce-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
.commerce-table :is(th, td):not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.commerce-table a { font-weight: 650; text-underline-offset: 3px; }
.registry-cell-label { display: none; }
.receipt { width: min(680px, calc(100% - 36px)); }
.receipt h1 { margin: 0; font-size: clamp(1.75rem, 5vw, 2.5rem); letter-spacing: -.04em; line-height: 1.1; }
.receipt-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.receipt-totals { display: grid; gap: 10px; margin: 18px 0 0; }
.receipt-totals div { display: flex; justify-content: space-between; gap: 10px; }
.receipt-totals dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; }
.receipt-totals div:last-child { padding-top: 12px; border-top: 1px solid var(--line); font-weight: 720; }
@media (max-width: 675px) {
  .commerce-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-grid { grid-template-columns: 1fr; }
  .suite-app { min-height: 92px; }
  #registry-table { overflow: visible; border: 0; }
  #registry-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
  #registry-table :is(table, tbody) { display: grid; gap: 10px; }
  #registry-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  #registry-table tbody th {
    grid-column: 1 / -1;
    padding: 0 0 4px;
    border: 0;
    overflow-wrap: anywhere;
  }
  #registry-table tbody td {
    display: grid;
    gap: 3px;
    padding: 3px 0;
    border: 0;
    text-align: start;
    font-weight: 650;
  }
  .registry-cell-label { display: block; color: var(--muted); font-size: .8125rem; font-weight: 450; }
}
@media print {
  .commerce-header, .receipt-actions { display: none; }
  :root, .commerce-panel { background: #fff; box-shadow: none; }
  .receipt { width: 100%; margin: 0; }
}
.suite-support { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 12px 0 0; }
.suite-support a { display: inline-flex; align-items: center; min-height: var(--shop-control-height); color: var(--accent); font-weight: 650; text-underline-offset: .18em; }
