/* Direction B shared components. Page recipes never redefine these visual roles. */
@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/BigShouldersDisplay-Latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/ChakraPetch-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/ChakraPetch-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/ChakraPetch-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
/* Latin files take precedence. The full faces above cover extended scripts. */
@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/ChakraPetch-Regular-Latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/ChakraPetch-SemiBold-Latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/ChakraPetch-Bold-Latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  font-family: var(--body);
  font-synthesis: none;
  background: var(--canvas);
  color: var(--ink-1);
}
* {
  box-sizing: border-box;
}
body {
  font: var(--weight-body) var(--type-body)/var(--line-body) var(--body);
  color: var(--ink-1);
  background: var(--canvas);
  background-image: none;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  font: var(--role-page-title);
  letter-spacing: var(--tracking-heading);
}
h2 {
  font: var(--role-section-title);
}
h3,
h4 {
  font: var(--weight-action) var(--type-card)/var(--line-dense) var(--body);
}
p {
  line-height: var(--line-body);
}
small {
  font: var(--weight-body) var(--type-meta)/var(--line-meta) var(--body);
  color: var(--ink-2);
}
a {
  color: var(--accent);
}
a:hover {
  text-decoration: underline;
}
strong,
b {
  font-weight: var(--weight-action);
}
code,
kbd,
.card-number,
.dialog-meta,
.code {
  font: var(--weight-body) var(--type-meta)/var(--line-meta) var(--mono);
}
button {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  touch-action: manipulation;
}
:where(button, [data-ui-action], .file-picker):not(
  .image-button,
  .deck-result-image,
  .deck-line-card,
  .dialog-image-trigger,
  .saved-list-open,
  .detail-card-preview,
  .detail-item-open,
  .support-qr-trigger,
  .printing-variant,
  [data-ui-action="surface"]
) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: var(--ui-control);
  padding: var(--s2) var(--s4);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink-1);
  font: var(--weight-action) var(--type-control)/var(--line-control) var(--body);
  text-transform: none;
  letter-spacing: normal;
  text-align: center;
  cursor: pointer;
  white-space: normal;
  box-shadow: none;
  clip-path: none;
  transform: none;
}
:where(button, [data-ui-action], .file-picker):not(
    .image-button,
    .deck-result-image,
    .deck-line-card,
    .dialog-image-trigger,
    .saved-list-open,
    .detail-card-preview,
    .detail-item-open,
    .support-qr-trigger,
    .printing-variant,
    [data-ui-action="surface"]
  ):hover {
  background: var(--surface-raised);
  border-color: var(--ink-3);
  transform: none;
  box-shadow: none;
}
:where(button, [data-ui-action]):is(
  .primary,
  .account-primary,
  .dialog-add-cart,
  .picker-confirm,
  .order-whatsapp,
  .inbox-settle,
  [data-ui-variant="primary"]
) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--action-ink);
}
:where(button, [data-ui-action]):is(
    .primary,
    .account-primary,
    .dialog-add-cart,
    .picker-confirm,
    .order-whatsapp,
    [data-ui-variant="primary"]
  ):hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
  color: var(--action-ink);
}
:where(button, [data-ui-action]):is(
  .quiet,
  .account-text-button,
  .auth-back,
  .account-back,
  .resend-verification,
  .auth-form-meta button,
  [data-ui-variant="quiet"]
) {
  background: transparent;
  border-color: transparent;
  color: var(--ink-2);
}
:where(button, [data-ui-action]):is(
  .danger,
  .danger-quiet,
  .list-more-danger,
  .clear-cart,
  [data-ui-variant="danger"]
) {
  background: transparent;
  color: var(--ui-danger);
  border-color: var(--border);
}
:where(button, [data-ui-action]):is(.active, [aria-pressed="true"]):not(
    .primary,
    .account-primary,
    [data-ui-variant="primary"]
  ) {
  color: var(--accent);
  background: var(--accent-plate);
  border-color: var(--accent);
}
button > :is(span, strong, b, small),
[data-ui-action] > :is(span, strong, b, small) {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
:where(button, [data-ui-action]):disabled,
:where(button, [data-ui-action])[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
:where(button, [data-ui-action])[aria-busy="true"] {
  cursor: progress;
  opacity: 0.65;
}
:where(button, a, input, select, textarea, summary):focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
  box-shadow: none;
}
:where(button, [data-ui-action]).dialog-close,
[data-ui-action="icon"],
.icon-button {
  width: var(--ui-control);
  min-width: var(--ui-control);
  min-height: var(--ui-control);
  padding: 0;
  flex: 0 0 auto;
}
.ui-icon,
button svg,
[data-ui-action] svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  vertical-align: middle;
}
:where(
  input:not([type="checkbox"], [type="radio"], [type="file"]),
  select,
  textarea,
  [data-ui-field]:not([type="checkbox"], [type="radio"], [type="file"])
) {
  min-height: var(--ui-control);
  max-width: 100%;
  border: 1px solid var(--field-border);
  border-radius: var(--r-sm);
  padding: var(--s2) var(--s3);
  color: var(--ink-1);
  background: var(--surface-sunken);
  font: var(--weight-body) var(--type-body)/var(--line-dense) var(--body);
  box-shadow: none;
  outline-offset: 3px;
  text-transform: none;
  letter-spacing: normal;
}
textarea {
  min-height: 88px;
  resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}
input::placeholder,
textarea::placeholder {
  color: var(--ink-3);
  opacity: 1;
}
label {
  font: var(--weight-body) var(--type-label)/var(--line-meta) var(--body);
  color: var(--ink-2);
}
summary {
  min-height: 44px;
}
label > span {
  font: var(--weight-body) var(--type-label)/var(--line-meta) var(--body);
  margin-bottom: var(--s2);
}
select option {
  background: var(--surface-sunken);
  color: var(--ink-1);
}
:where(
  .filter-chips,
  .list-market-filter,
  .auth-mode-toggle,
  .deck-view-toggle,
  .deck-panel-tabs,
  .deck-zone-tabs,
  .dialog-tabs,
  .export-mode-toggle
) {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  align-items: center;
}
:where(
    .filter-chips,
    .list-market-filter,
    .auth-mode-toggle,
    .deck-view-toggle,
    .deck-panel-tabs,
    .deck-zone-tabs,
    .dialog-tabs,
    .export-mode-toggle
  )
  > button {
  flex: 0 1 auto;
  min-width: 0;
}
.list-more > summary,
.hangar-account-menu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: var(--ui-control);
  min-height: var(--ui-control);
  padding: var(--s2) var(--s3);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--ink-1);
  cursor: pointer;
  font: var(--weight-action) var(--type-control)/var(--line-control) var(--body);
  list-style: none;
}
.list-more-menu,
.hangar-account-popover {
  padding: var(--s2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface-raised);
  box-shadow: var(--shadow-menu);
}
.list-more-menu button,
.hangar-account-popover button {
  width: 100%;
  justify-content: flex-start;
  background: transparent;
  border-color: transparent;
}
.list-more-menu .list-more-danger {
  color: var(--ui-danger);
}
:where(dialog) {
  padding: var(--s6);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink-1);
  box-shadow: var(--shadow-dialog);
  clip-path: none;
  max-width: calc(100vw - 32px);
  max-height: calc(var(--shell-height) - 32px);
  line-height: var(--line-body);
}
dialog::backdrop {
  background: var(--dialog-backdrop);
  backdrop-filter: none;
}
dialog h2 {
  font: var(--weight-action) var(--type-section)/var(--line-section) var(--body);
  color: var(--ink-1);
}
dialog p,
dialog small,
dialog label,
dialog li {
  color: var(--ink-2);
}
dialog strong,
dialog b {
  color: inherit;
}
dialog > h2 {
  padding-inline-end: var(--s7);
  margin-bottom: var(--s4);
}
dialog > p {
  margin-bottom: var(--s5);
}
dialog .dialog-close {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
  margin: 0;
  background: transparent;
  border-color: transparent;
  color: var(--ink-2);
}
dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  margin-bottom: var(--s5);
  border: 0;
}
dialog header .dialog-close {
  position: static;
  margin: 0;
}
.list-dialog-actions,
.cart-actions,
.deck-export-actions,
.save-list-actions,
.checkout-dialog-actions,
.order-actions {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  align-items: center;
  margin-top: var(--s5);
}
:is(
    .cart-total,
    .cart-totals,
    .order-total,
    .detail-price-strip,
    .picker-summary,
    .sale-stock-summary
  )
  strong {
  font-size: var(--font-3xl);
  font-weight: var(--weight-action);
  line-height: var(--line-control);
  font-variant-numeric: tabular-nums;
  color: var(--ink-1);
}
.myr,
.dialog-price-row strong,
.picker-price {
  font: var(--weight-action) var(--font-xl)/var(--line-control) var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink-1);
}
.jpy {
  font: var(--weight-body) var(--type-meta)/var(--line-meta) var(--mono);
  color: var(--ink-2);
}
.ui-numeric,
:is(.cart-total, .cart-totals, .order-total) strong {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
[data-ui-feedback],
.account-feedback,
.auth-feedback,
.picker-error,
.import-feedback,
.deck-save-state,
.deck-validation small,
.history-status {
  font: var(--weight-body) var(--type-label)/var(--line-meta) var(--body);
}
[data-kind="error"],
[role="alert"],
.auth-feedback.error,
.import-feedback.error,
.picker-error {
  color: var(--ui-danger);
}
[data-kind="success"] {
  color: var(--success);
}
.auth-feedback:empty,
.account-feedback:empty {
  display: none;
}
.empty-state,
.saved-list-empty,
.result-empty,
.deck-empty {
  padding: var(--s6);
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--ink-2);
}
.detail-quantity {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.detail-quantity b {
  min-width: 2ch;
  text-align: center;
  font-size: var(--type-control);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.detail-quantity button {
  min-width: 44px;
  min-height: 44px;
}
.detail-line-total {
  font-variant-numeric: tabular-nums;
  color: var(--ink-1);
}
.auth-form,
.recovery-form,
.deck-form,
.seller-checkout-dialog form {
  font-family: var(--body);
}
.auth-form label > span,
.recovery-form label > span {
  font-size: var(--type-label);
}
.auth-form input,
.recovery-form input {
  min-height: 48px;
}
.auth-form label + label,
.recovery-form label + label {
  margin-top: var(--s4);
}
.auth-form-meta > span {
  display: none;
}
.auth-form-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.account-auth-heading {
  margin-bottom: var(--s5);
}
.account-auth-heading p {
  margin-top: var(--s2);
  font-size: var(--type-control);
  color: var(--ink-2);
}
.ui-metric-probe {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 1rem;
  height: 1rem;
  visibility: hidden;
  pointer-events: none;
  font: var(--font-base)/var(--line-solid) var(--body);
}
.ui-search {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 48px;
  border: 1px solid var(--field-border);
  border-radius: var(--r-sm);
  padding: 0 var(--s3);
  background: var(--surface-sunken);
}
.ui-search:focus-within {
  outline: var(--focus-ring);
  outline-offset: 2px;
}
.ui-search input[data-ui-field] {
  min-width: 0;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 0;
  padding: var(--s2) 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: var(--ink-1);
  font: var(--weight-body) var(--type-body)/var(--line-dense) var(--body);
}
.ui-search button {
  width: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-2);
}
.ui-search svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
}
.printing-origin,
.rarity:not(.rarity-section-badge) {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: var(--s1) var(--s2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font: var(--weight-action) var(--type-meta)/var(--line-solid) var(--body);
}
.printing-origin {
  background: transparent;
  color: var(--ink-2);
  white-space: normal;
  max-width: 100%;
}
@media (max-width: 760px) {
  dialog {
    padding: var(--s5);
    max-width: calc(100vw - 24px);
  }
  dialog .dialog-close {
    top: var(--s3);
    right: var(--s3);
  }
  .list-dialog-actions > button,
  .deck-export-actions > button {
    flex: 1 1 auto;
  }
  .saved-list-toolbar {
    gap: var(--s3);
    flex-wrap: wrap;
  }
  .saved-list-toolbar .list-detail-actions {
    gap: var(--s2);
    flex-wrap: wrap;
  }
  .card-item .details {
    font-size: var(--type-meta);
  }
}
@media (max-width: 359px) {
  dialog {
    padding: var(--s4);
  }
}
@media (pointer: coarse) {
  input:not([type="checkbox"], [type="radio"]),
  select,
  textarea {
    font-size: max(16px, var(--font-base)) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
:root[data-ui-enlarged]
  :is(
    .saved-list-toolbar,
    .list-detail-actions,
    .cart-actions,
    .order-actions,
    .head-actions
  ) {
  flex-wrap: wrap;
}
:root[data-ui-enlarged] :is(.detail-price-strip, .sale-stock-summary) {
  grid-template-columns: minmax(0, 1fr);
}
:root[data-ui-enlarged] .detail-price-strip > div {
  border-right: 0;
  min-width: 0;
}
:root[data-ui-enlarged]
  :is(.detail-price-strip strong, .order-total strong, .picker-summary dd) {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
/* Facet choices are a shared selection role, not primary task actions. */
button.ui-filter-choice {
  min-width: 0;
  width: 100%;
  min-height: var(--ui-control);
  justify-content: flex-start;
  gap: var(--s1);
  padding: var(--s2);
  border-color: var(--border);
  background: var(--surface-sunken);
  color: var(--ink-2);
  font: var(--weight-body) var(--type-label)/var(--line-meta) var(--body);
  text-align: left;
}
button.ui-filter-choice[aria-pressed="true"] {
  background: var(--accent-plate);
  border-color: var(--accent);
  color: var(--ink-1);
}
.compact:not(.filter-choice-colours) button.ui-filter-choice { padding-inline: var(--s1); }
.compact:not(.filter-choice-colours) .filter-choice-label { white-space: nowrap; }
.filter-choice-label { min-width: 0; overflow-wrap: anywhere; }
.filter-choice-mark {
  display: flex;
  flex: 0 0 var(--filter-marker-size);
  align-items: center;
  justify-content: center;
  width: var(--filter-marker-size);
  height: var(--filter-marker-size);
  border: 1px solid var(--border-strong);
  border-radius: var(--s1);
}
.filter-choice-mark .ui-icon { width: 100%; height: 100%; opacity: 0; }
[aria-pressed="true"] > .filter-choice-mark {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--action-ink);
}
[aria-pressed="true"] > .filter-choice-mark .ui-icon { opacity: 1; }
.filter-choice-colours button.ui-filter-choice {
  display: grid;
  grid-template-columns: var(--s2) minmax(0, 1fr) var(--filter-marker-size);
  gap: var(--s1);
}
.filter-choice-colours .filter-choice-mark { grid-column: 3; grid-row: 1; }
.filter-choice-colours .filter-choice-label { grid-column: 2; grid-row: 1; }
.filter-choice-colours button::before { grid-column: 1; grid-row: 1; }
.filter-active-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--s5);
  padding: var(--s1) var(--s2);
  color: var(--accent);
  background: var(--accent-plate);
  border-radius: var(--r-sm);
  font: var(--weight-action) var(--type-meta)/var(--line-meta) var(--body);
  font-variant-numeric: tabular-nums;
}
/* One responsive filter trigger for catalogue toolbars. */
.ui-filter-trigger { min-height: var(--field-h); white-space: nowrap; }
button > .filter-trigger-count { min-inline-size: 2ch; font-variant-numeric: tabular-nums; }
:is(.filter-active-count, .filter-trigger-count)[aria-hidden="true"] { visibility: hidden; }
@media (max-width: 760px) {
  .ui-filter-trigger {
    position: relative;
    width: var(--field-h);
    min-width: var(--field-h);
    padding: 0;
    gap: 0;
  }
  .ui-filter-trigger > span { display: none; }
  .ui-filter-trigger > .filter-trigger-count {
    position: absolute;
    inset: 0 0 auto auto;
    padding: var(--space-half) var(--s1);
    border-radius: var(--r-sm);
    background: var(--surface-raised);
    color: var(--accent);
    font: var(--weight-action) var(--font-xs)/var(--line-solid) var(--body);
    pointer-events: none;
  }
}
/* Card colours are game data, independent of action and selection colours. */
.market-filter-options button[data-value="Blue"] {
  --game-marker: var(--game-blue);
}
.market-filter-options button[data-value="Green"] {
  --game-marker: var(--game-green);
}
.market-filter-options button[data-value="Red"] {
  --game-marker: var(--game-red);
}
.market-filter-options button[data-value="White"] {
  --game-marker: var(--game-white);
}
.market-filter-options button[data-value="Purple"] {
  --game-marker: var(--game-purple);
}
.market-filter-options
  button:is(
    [data-value="Blue"],
    [data-value="Green"],
    [data-value="Red"],
    [data-value="White"],
    [data-value="Purple"]
  )::before {
  content: "";
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-avatar);
  background: var(--game-marker);
}
/* View tabs share one structure; filter pills remain a documented variant. */
.ui-tabs {
  display: flex;
  gap: var(--s5);
  flex-wrap: wrap;
  padding: 0;
  margin: 0 0 var(--s5);
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}
.ui-tabs > button {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  padding: var(--s3) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-2);
  font: var(--weight-action) var(--type-control)/var(--line-control) var(--body);
}
.ui-tabs > button:is(.active, [aria-pressed="true"], [aria-selected="true"]) {
  color: var(--accent);
  background: transparent;
  border-color: transparent;
}
.ui-tabs
  > button:is(.active, [aria-pressed="true"], [aria-selected="true"])::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}
.footer-utilities {
  display: flex;
  gap: var(--s2);
  align-items: center;
  flex-wrap: wrap;
}
.footer-utilities #refresh {
  display: inline-flex;
}

/* Rarity is data, carried by its exact code on a readable metadata plate. */
.rarity:not(.rarity-section-badge) {
  justify-content: center;
  background: var(--surface-raised);
  color: var(--ink-1);
  clip-path: none;
  box-shadow: none;
}
.rarity::before,
.rarity::after {
  content: none;
}

.quantity-controls {
  display: grid;
  grid-template-columns: 44px minmax(32px, max-content) 44px;
  align-items: center;
  justify-content: center;
  min-width: 122px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.quantity-controls button {
  width: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.quantity-controls b {
  text-align: center;
  font: var(--weight-action) var(--type-control)/var(--line-control) var(--mono);
  font-variant-numeric: tabular-nums;
}

/* The same scrolling task header serves cart, import and export. */
.cart-header,
.list-dialog-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s5);
  margin: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.cart-header p,
.list-dialog-header p {
  margin: 0 0 var(--s1);
  font: var(--weight-body) var(--type-meta)/var(--line-meta) var(--body);
  color: var(--ink-2);
}
.cart-header h2,
.list-dialog-header h2 {
  margin: 0;
}
.cart-header .dialog-close,
.list-dialog-header .dialog-close {
  position: static;
  float: none;
  margin: 0;
}
@media (max-width: 359px) {
  .cart-header,
  .list-dialog-header {
    padding: var(--s4);
  }
}
