:root {
  color-scheme: dark;
  --bg: #090b0d;
  --header: rgba(9, 11, 13, 0.96);
  --panel: #161b20;
  --panel-2: #1e242a;
  --input: rgba(255, 255, 255, 0.055);
  --help-popover: #252b31;
  --help-popover-line: rgba(246, 239, 227, 0.24);
  --ink: #f6efe3;
  --muted: #b3aa9a;
  --faint: #777062;
  --line: rgba(246, 239, 227, 0.13);
  --teal: #10cc02;
  --green: #4faf66;
  --amber: #e8a84f;
  --red: #db5145;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6f9;
  --header: rgba(255, 255, 255, 0.96);
  --panel: #ffffff;
  --panel-2: #ecf1f6;
  --input: #e8eef4;
  --help-popover: #ffffff;
  --help-popover-line: rgba(32, 42, 55, 0.24);
  --ink: #0e141b;
  --muted: #556273;
  --faint: #8c98ab;
  --line: rgba(32, 42, 55, 0.16);
  --shadow: 0 18px 45px rgba(30, 42, 55, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  font-size: 13px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

/* Seller inventory IDs and public storefronts */

.listing-private-id,
.listing-review-private-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 10px;
  padding: 9px 10px;
  color: var(--muted);
  background: color-mix(in srgb, var(--amber) 7%, var(--input));
  border: 1px solid color-mix(in srgb, var(--amber) 24%, var(--line));
  border-radius: 7px;
}

.listing-private-id > span,
.listing-review-private-id {
  gap: 7px;
}

.listing-private-id > span,
.listing-review-private-id > span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.listing-private-id svg,
.listing-review-private-id svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--amber);
}

.listing-private-id b,
.listing-review-private-id small {
  font-size: 0.7rem;
  font-weight: 900;
}

.listing-private-id code,
.listing-review-private-id b {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.76rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-review-private-id {
  justify-content: flex-start;
}

.listing-review-private-id > span {
  display: grid;
  gap: 2px;
}

.profile-url-field,
.profile-layout-picker {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.profile-url-input {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) 40px;
  align-items: center;
  min-width: 0;
  min-height: 46px;
  overflow: hidden;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.profile-url-input:focus-within {
  border-color: color-mix(in srgb, var(--teal) 62%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 12%, transparent);
}

.profile-url-input > i {
  padding-left: 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.profile-url-input > input {
  min-width: 0;
  min-height: 44px;
  padding-inline: 2px 8px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.profile-url-input > input:focus {
  box-shadow: none;
}

.profile-url-input > .icon-button {
  width: 34px;
  min-height: 34px;
  margin-right: 5px;
  padding: 8px;
}

.profile-url-field > small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.profile-layout-picker {
  padding: 0;
  margin: 0;
  border: 0;
}

.profile-layout-picker > legend {
  padding: 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.profile-layout-picker > p {
  margin: -3px 0 2px;
  color: var(--muted);
  font-size: 0.7rem;
}

.profile-layout-picker > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-layout-picker label {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  min-width: 0;
  min-height: 66px;
  gap: 8px;
  padding: 10px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

.profile-layout-picker label.selected {
  background: color-mix(in srgb, var(--teal) 8%, var(--input));
  border-color: color-mix(in srgb, var(--teal) 55%, var(--line));
}

.profile-layout-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-layout-picker label > span {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  min-width: 0;
  gap: 2px 8px;
}

.profile-layout-picker label > span > svg {
  grid-row: 1 / 3;
  align-self: center;
  width: 19px;
  height: 19px;
  color: var(--teal);
}

.profile-layout-picker label b,
.profile-layout-picker label small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-layout-picker label b {
  font-size: 0.76rem;
}

.profile-layout-picker label small {
  color: var(--muted);
  font-size: 0.64rem;
}

.profile-layout-picker label > svg {
  width: 17px;
  height: 17px;
  color: transparent;
}

.profile-layout-picker label.selected > svg {
  color: var(--teal);
}

.profile-public-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 5px;
  padding: 0;
  overflow: hidden;
  color: var(--teal);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-public-link svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
}

.profile-listings-heading {
  align-items: center;
}

.profile-listings-heading > div {
  display: grid;
  gap: 2px;
}

.profile-listings-heading > div > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.profile-listings-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
}

.profile-listings-heading > span svg {
  width: 15px;
  height: 15px;
  color: var(--amber);
}

.marketplace-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 12px;
  margin-bottom: 12px;
}

.marketplace-results-heading .screen-title {
  min-width: 0;
  margin: 0;
}

.marketplace-pagination-top {
  margin: 0 0 14px;
}

.marketplace-pagination-bottom {
  margin: 14px 0 0;
}

.profile-shelf-library {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.profile-shelf-row {
  --wood-dark: #2b160b;
  --wood-mid: #5a331c;
  --wood-light: #87552e;
  position: relative;
  min-width: 0;
  min-height: 228px;
  padding: 22px 14px 35px;
  overflow: hidden;
  background:
    linear-gradient(92deg, transparent 0 13%, rgba(255, 205, 143, 0.06) 14%, transparent 15% 42%, rgba(15, 6, 2, 0.16) 43%, transparent 45% 76%, rgba(255, 205, 143, 0.05) 77%, transparent 79%),
    linear-gradient(180deg, #352015 0%, var(--wood-mid) 68%, var(--wood-dark) 100%);
  border: 1px solid #251207;
  border-radius: 7px;
  box-shadow: inset 0 16px 24px rgba(9, 3, 1, 0.34), inset 0 -16px 20px rgba(20, 7, 2, 0.28), 0 8px 18px rgba(0, 0, 0, 0.22);
}

.profile-shelf-row::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.34;
  pointer-events: none;
  background:
    repeating-linear-gradient(4deg, transparent 0 17px, rgba(22, 8, 3, 0.16) 18px, transparent 20px),
    repeating-linear-gradient(88deg, transparent 0 54px, rgba(247, 194, 125, 0.07) 55px, transparent 58px);
}

.profile-shelf-row::after {
  position: absolute;
  z-index: 4;
  right: -2px;
  bottom: 0;
  left: -2px;
  height: 29px;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 220, 170, 0.1), transparent 22%, rgba(20, 7, 2, 0.2) 56%, rgba(255, 220, 170, 0.08)),
    linear-gradient(180deg, var(--wood-light) 0 20%, var(--wood-mid) 22% 70%, var(--wood-dark) 72% 100%);
  border-top: 2px solid rgba(255, 212, 153, 0.24);
  box-shadow: 0 -5px 12px rgba(10, 3, 1, 0.4), 0 5px 0 #1a0b05;
}

.profile-shelf-games {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  justify-items: center;
  min-height: 172px;
  gap: 10px;
}

.profile-shelf-game {
  position: relative;
  display: grid;
  align-self: end;
  gap: 8px;
  width: min(100%, 122px);
  color: var(--ink);
}

.profile-shelf-game:hover,
.profile-shelf-game:focus-within {
  z-index: 3;
}

.profile-shelf-open {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.24));
  transform: rotate(var(--case-lean));
  transform-origin: 50% 100%;
  transition: transform 180ms ease, filter 180ms ease;
}

.profile-shelf-game:hover .profile-shelf-open,
.profile-shelf-game:focus-within .profile-shelf-open {
  filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.42));
  transform: translateY(-8px) rotate(0deg) scale(1.04);
}

.profile-shelf-open:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.profile-shelf-display {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 5px;
  width: calc(100% + 16px);
  min-height: 68px;
  margin-left: -8px;
  padding: 5px;
  background:
    linear-gradient(90deg, rgba(205, 150, 82, 0.12), transparent 30% 74%, rgba(205, 150, 82, 0.08)),
    linear-gradient(180deg, #272a2c, #111416);
  border: 1px solid rgba(226, 185, 126, 0.58);
  border-radius: 5px;
  box-shadow:
    0 3px 0 #2a1408,
    0 7px 12px rgba(0, 0, 0, 0.32),
    inset 0 1px rgba(255, 255, 255, 0.1);
}

.profile-shelf-display.owner {
  grid-template-columns: minmax(0, 1fr);
}

.profile-shelf-display::before {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 3px;
  content: "";
  background: linear-gradient(180deg, #f1cc8c, #8f5a25);
  border-radius: 0 2px 2px 0;
}

.profile-shelf-label-open {
  display: block;
  min-width: 0;
  padding: 1px 2px 1px 5px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 3px;
}

.profile-shelf-label-open:hover .profile-shelf-info b,
.profile-shelf-label-open:focus-visible .profile-shelf-info b {
  color: var(--teal);
}

.profile-shelf-label-open:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.profile-shelf-watch {
  position: absolute;
  z-index: 7;
  top: -14px;
  right: -14px;
  display: grid;
  place-items: center;
  width: 28px;
  min-height: 28px;
  height: 28px;
  padding: 0;
  color: var(--teal);
  background:
    linear-gradient(180deg, rgba(35, 39, 43, 0.96), rgba(8, 10, 12, 0.96));
  border: 1px solid color-mix(in srgb, var(--teal) 68%, #f1cc8c);
  border-radius: 5px;
  box-shadow:
    0 3px 0 rgba(39, 18, 7, 0.9),
    0 5px 9px rgba(0, 0, 0, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.12);
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.profile-shelf-watch:hover {
  color: var(--teal);
  background: linear-gradient(180deg, color-mix(in srgb, var(--teal) 18%, #1b2021), #090c0d);
  border-color: color-mix(in srgb, var(--teal) 72%, white);
  transform: translateY(-1px);
}

.profile-shelf-watch:focus-visible {
  color: var(--teal);
  background: linear-gradient(180deg, #24282b, #090c0d);
  border-color: color-mix(in srgb, var(--teal) 78%, white);
  outline: 2px solid #fffaf0;
  outline-offset: 2px;
}

.profile-shelf-watch.active {
  color: var(--teal);
  background: linear-gradient(180deg, color-mix(in srgb, var(--teal) 16%, #1c2022), #080b0c);
  border-color: color-mix(in srgb, var(--teal) 88%, white);
}

.profile-shelf-watch svg {
  width: 16px;
  height: 16px;
}

.profile-shelf-watch.active svg {
  fill: currentColor;
}

.profile-shelf-case {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 0.71;
  overflow: hidden;
  background: #101316;
  border: 3px solid rgba(22, 25, 29, 0.94);
  border-radius: 5px;
  box-shadow: -5px 6px 0 rgba(13, 6, 3, 0.42), 0 12px 18px rgba(0, 0, 0, 0.34);
}

.profile-shelf-case .cover {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: #111419;
  border-radius: 2px;
}

.profile-shelf-glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.13), transparent 22% 72%, rgba(255, 255, 255, 0.05));
}

.profile-shelf-info {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 0;
  color: #fffaf0;
  text-align: left;
  background: transparent;
}

.profile-shelf-info small,
.profile-shelf-info b,
.profile-shelf-info em,
.profile-shelf-info strong,
.profile-shelf-info i {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-shelf-info small {
  color: #7cff70;
  font-size: 0.57rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-shelf-info b {
  display: -webkit-box;
  max-height: 2.3em;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.7rem;
  line-height: 1.15;
}

.profile-shelf-info em,
.profile-shelf-info i {
  color: #d8d0c4;
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 750;
}

.profile-shelf-price {
  display: grid;
  min-width: 0;
  align-items: start;
  gap: 1px;
  margin-top: 2px;
}

.profile-shelf-price strong {
  display: block;
  width: 100%;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.profile-shelf-price i {
  display: block;
  width: 100%;
}

body.desktop-gate-active {
  overflow: hidden;
}

.device-gate {
  display: grid;
  place-items: center;
  height: 100svh;
  min-height: 100svh;
  padding: 28px;
  overflow-y: auto;
  background: #090b0d;
}

.device-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(100%, 640px);
  padding: 34px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.device-logo-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  color: #04100f;
  background: linear-gradient(135deg, var(--teal), var(--green));
  border-radius: 18px;
}

.device-logo-mark.small {
  width: 58px;
  height: 58px;
  border-radius: 14px;
}

.device-logo-mark svg {
  width: 38px;
  height: 38px;
}

.device-logo-image {
  display: block;
  width: 118px;
  height: 118px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.device-card h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 0.95;
}

.device-card p:not(.eyebrow) {
  max-width: 34rem;
}

.app-download-panel {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 14px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.app-download-panel.gate-download-panel {
  padding: 0;
  background: transparent;
  border: 0;
}

.app-download-heading {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  text-align: left;
}

.app-download-heading > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--teal) 32%, transparent);
  border-radius: var(--radius);
}

.app-download-heading svg {
  width: 19px;
  height: 19px;
}

.app-download-heading h2,
.app-download-heading p {
  margin: 0;
}

.app-download-heading h2 {
  font-size: 1rem;
}

.app-download-heading p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.app-download-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.app-download-option {
  display: grid;
  justify-items: center;
  min-width: 0;
  gap: 9px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.app-download-qr {
  display: block;
  width: 92px;
  height: 92px;
  padding: 5px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 6px;
}

.app-download-option-copy {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 6px;
}

.app-download-option-copy > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-align: center;
}

.store-badge {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 7px 7px;
  color: #ffffff;
  background: #050607;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  text-align: left;
  text-decoration: none;
}

.store-badge > i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #ffffff;
  font-style: normal;
}

.store-badge > i svg {
  width: 19px;
  height: 19px;
}

.store-badge > span {
  display: grid;
  min-width: 0;
  gap: 1px;
  color: #ffffff;
}

.store-badge small {
  color: #c8ccd0;
  font-size: 0.56rem;
  font-weight: 750;
  line-height: 1;
}

.store-badge b {
  overflow: hidden;
  font-size: 0.74rem;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-badge:hover {
  border-color: var(--teal);
}

.apple-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  color: #050607;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.apple-login-button:hover {
  border-color: var(--teal);
}

.apple-login-button svg {
  width: 19px;
  height: 19px;
}

:root[data-theme="light"] .apple-login-button {
  color: #ffffff;
  background: #050607;
  border-color: rgba(5, 6, 7, 0.32);
}

.phone-rotate-lock {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(9, 11, 13, 0.98);
}

.phone-rotate-lock section {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(100%, 420px);
  padding: 24px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

html.phone-landscape,
html.phone-landscape body {
  overflow: hidden;
}

html.phone-landscape .phone-rotate-lock {
  display: grid;
}

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

button,
a.button-link {
  cursor: pointer;
}

button {
  border: 0;
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: 92px;
}

html.public-desktop .app-shell {
  padding-bottom: 0;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: max(14px, env(safe-area-inset-top)) 14px 12px;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-button,
.account-pill,
.seller-card,
.link-title,
.cover-button,
.conversation-row button:first-child,
.participant-row,
.back-button {
  color: inherit;
  background: none;
  text-align: left;
  text-decoration: none;
}

.brand-button {
  display: grid;
  gap: 2px;
  padding: 0;
}

.brand-button strong {
  font-size: clamp(1.25rem, 3.5vw, 1.72rem);
  font-weight: 950;
  letter-spacing: 0;
}

.brand-button span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.header-spacer {
  flex: 1;
}

.public-desktop-header {
  justify-content: space-between;
  padding-inline: clamp(18px, 4vw, 52px);
}

.public-desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.public-desktop-nav a {
  padding: 9px 12px;
  color: var(--muted);
  font-weight: 950;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.public-desktop-nav a:hover,
.public-desktop-nav a:focus-visible {
  color: var(--ink);
  background: var(--panel);
  border-color: var(--line);
}

.public-desktop-nav .store-link {
  color: #04100f;
  background: var(--green);
  border-color: color-mix(in srgb, var(--green) 70%, white);
}

.account-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(42vw, 260px);
  padding: 8px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.account-pill b {
  overflow: hidden;
  font-size: 0.96rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-scroll {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 18px 14px 24px;
}

html.public-desktop .screen-scroll {
  width: min(100%, 1180px);
  padding: clamp(24px, 4vw, 48px) clamp(18px, 4vw, 52px) 56px;
}

.screen-stack {
  display: grid;
  gap: 16px;
}

.panel,
.hero-panel,
.listing-card,
.order-card,
.offer-card,
.conversation-row,
.spreadsheet,
.seller-tabs,
.image-panel,
.review-card,
.product-info,
.money-panel,
.profile-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel,
.hero-panel,
.image-panel,
.review-card,
.product-info,
.money-panel,
.profile-card {
  padding: 14px;
}

.hero-panel {
  background: linear-gradient(120deg, var(--panel), var(--panel-2) 70%, rgba(27, 169, 154, 0.16));
}

.screen-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.screen-head > div {
  min-width: 0;
}

.screen-head h1,
.screen-head p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.55rem, 5vw, 2.4rem);
  font-weight: 950;
  letter-spacing: 0;
}

h2,
.screen-title {
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 950;
  letter-spacing: 0;
}

h3 {
  font-size: 1.05rem;
  font-weight: 950;
}

p {
  color: var(--muted);
  font-weight: 760;
  line-height: 1.42;
}

.eyebrow,
label > span,
.teal-label,
.stat-tile span,
.money-line span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.teal-label {
  color: var(--teal);
}

.head-actions {
  display: flex;
  gap: 10px;
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.icon-button i,
.tab-icon i {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  min-height: 18px;
  padding: 0 5px;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 950;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  padding: 8px;
  margin-top: 14px;
  background: var(--input);
  border-radius: var(--radius);
}

.segmented button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  color: var(--ink);
  background: transparent;
  border-radius: var(--radius);
  font-weight: 950;
}

.segmented button.active {
  color: #04100f;
  background: var(--teal);
}

.segmented button[data-kind="game"] svg,
.bottom-nav button:first-child .tab-icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.7;
}

.segmented button span {
  display: block;
  color: inherit;
  font-size: 0.72rem;
  opacity: 0.7;
}

.saved-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.saved-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  color: var(--ink);
  background: transparent;
  border-radius: var(--radius);
  font-weight: 950;
}

.saved-tabs button > span {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.saved-tabs button > span i {
  position: absolute;
  top: -9px;
  right: -10px;
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 900;
}

.saved-tabs button.active {
  color: #04100f;
  background: var(--teal);
}

.saved-tabs svg {
  width: 20px;
  height: 20px;
}

.saved-seller-list {
  display: grid;
  gap: 10px;
}

.saved-seller-row {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.saved-seller-row button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 10px;
  color: inherit;
  background: none;
  text-align: left;
}

.saved-seller-row button > span {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 4px;
}

.saved-seller-row b,
.saved-seller-row small,
.saved-seller-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-seller-row b {
  font-weight: 950;
}

.saved-seller-row small,
.saved-seller-row em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 850;
}

.saved-seller-row button > i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--muted);
  font-style: normal;
  transform: rotate(180deg);
}

.saved-search-list {
  display: grid;
  gap: 10px;
}

.saved-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.saved-search-row > button:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-align: left;
}

.saved-search-row span:not(.saved-search-icon) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.saved-search-row b,
.saved-search-row small,
.saved-search-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-search-row small,
.saved-search-row em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 850;
}

.saved-search-icon,
.settings-row-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: var(--teal);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.seller-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  box-shadow: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px;
}

.filter-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
}

form[data-form="filters"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

form[data-form="filters"] > .wide {
  grid-column: 1 / -1;
}

form[data-form="filters"] .filter-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.search-label {
  display: grid;
  gap: 7px;
}

.search-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: end;
}

.save-search-icon-button {
  display: inline-grid;
  place-items: center;
  min-height: 52px;
  color: var(--muted);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  opacity: 0.52;
}

.save-search-icon-button.ready {
  color: #04100f;
  background: var(--teal);
  border-color: var(--teal);
  opacity: 1;
}

.save-search-icon-button:disabled {
  cursor: not-allowed;
}

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

.settings-home,
.settings-row-list,
.settings-detail,
.settings-detail-card {
  display: grid;
  gap: 12px;
}

.settings-account-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.settings-account-card span {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 4px;
}

.settings-account-card b,
.settings-account-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-account-card small,
.settings-nav-row small,
.settings-nav-row em,
.settings-detail-head p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.settings-account-card em {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: #04100f;
  background: var(--teal);
  border-radius: 999px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
}

.settings-nav-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  color: var(--ink);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}

.settings-nav-row span:not(.settings-row-icon) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.settings-nav-row b,
.settings-nav-row small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-nav-row em {
  max-width: 72px;
  overflow: hidden;
  font-style: normal;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-nav-row > svg {
  color: var(--faint);
  transform: rotate(180deg);
}

.settings-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-detail-head .icon-button svg {
  width: 20px;
  height: 20px;
}

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

.seller-origin-head {
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.seller-origin-head h3 {
  font-size: 1.02rem;
  margin: 0 0 4px;
}

.seller-origin-head p,
.seller-origin-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

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

.field-block {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.suggest-field {
  position: relative;
}

label.wide,
.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--teal) 75%, white);
  box-shadow: 0 0 0 3px rgba(27, 169, 154, 0.18);
}

label small {
  color: var(--muted);
  font-weight: 800;
}

.field-block > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field-block small {
  color: var(--muted);
  font-weight: 800;
}

.field-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  min-height: 16px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.field-footer > i {
  flex: 1 1 auto;
}

.field-footer .field-hint {
  min-width: 0;
  overflow-wrap: anywhere;
}

.field-footer .character-counter {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.suggestion-menu {
  display: grid;
  overflow: hidden;
  max-height: 232px;
  margin-top: 2px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.suggestion-menu[hidden] {
  display: none;
}

.suggestion-menu button {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 39px;
  padding: 9px 11px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: left;
}

.suggestion-menu button + button {
  border-top: 1px solid var(--line);
}

.suggestion-menu button:hover,
.suggestion-menu button:focus-visible {
  background: var(--input);
}

.suggestion-menu svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.suggestion-menu span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.solid,
.outline,
.danger,
.inline,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-weight: 950;
  text-decoration: none;
}

.solid {
  color: #04100f;
  background: var(--teal);
  border: 1px solid color-mix(in srgb, var(--teal) 86%, white);
}

.outline {
  color: var(--ink);
  background: var(--input);
  border: 1px solid var(--line);
}

.danger {
  color: var(--red);
  background: rgba(219, 81, 69, 0.12);
  border: 1px solid rgba(219, 81, 69, 0.5);
}

.compact {
  min-height: 36px;
  padding-inline: 12px;
  font-size: 0.88rem;
}

.list-stack {
  display: grid;
  gap: 10px;
}

.listing-grid {
  display: grid;
  gap: 10px;
}

.listing-card,
.offer-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 10px;
  box-shadow: none;
}

.seller-offers-workspace,
.seller-offer-body {
  display: grid;
  gap: 12px;
}

.seller-offer-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.seller-offer-body p {
  color: var(--muted);
  font-weight: 850;
}

.seller-offer-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seller-offer-dates span {
  min-height: 28px;
  padding: 6px 9px;
  color: var(--muted);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}

.seller-offer-body p b,
.offer-reason {
  color: var(--ink);
}

.offer-reason {
  padding: 10px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.muted-reason {
  color: var(--muted);
}

.offer-money-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.offer-money-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.offer-money-card.primary {
  border-color: color-mix(in srgb, var(--teal) 55%, var(--line));
  background: color-mix(in srgb, var(--teal) 12%, var(--input));
}

.offer-money-card.shipping {
  grid-column: 1 / -1;
}

.offer-money-card span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.offer-money-card b {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.45rem, 6vw, 2.2rem);
  font-weight: 950;
  line-height: 1;
}

.listing-card.promoted {
  border-color: var(--amber);
  border-width: 2px;
}

.cover-button {
  width: 100%;
  padding: 0;
}

.cover {
  display: block;
  width: 100%;
  aspect-ratio: 0.88;
  object-fit: cover;
  background: var(--panel-2);
  border-radius: var(--radius);
}

.cover.large {
  aspect-ratio: 1;
  max-height: min(64vh, 620px);
  object-fit: contain;
}

.cover.generated {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: rgba(0, 0, 0, 0.58);
  background: linear-gradient(135deg, var(--teal), var(--green), var(--amber));
  font-weight: 950;
}

.cover.generated svg {
  width: 34px;
  height: 34px;
}

.cover-button.small {
  width: 92px;
}

.listing-main {
  display: grid;
  min-width: 0;
  gap: 6px;
  align-content: start;
}

.listing-top,
.price-row,
.card-actions,
.manage-actions,
.form-actions,
.money-line,
.order-head,
.account-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.listing-top,
.price-row,
.money-line,
.order-head {
  justify-content: space-between;
}

.sell-form .form-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.link-title {
  padding: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.12;
}

.seller-link {
  width: max-content;
  padding: 0;
  color: var(--muted);
  background: none;
  font-size: 0.78rem;
  font-weight: 850;
}

.price-row strong {
  font-size: clamp(1.12rem, 4vw, 1.55rem);
  font-weight: 950;
}

.price-row span,
.price-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 950;
}

.save-pill {
  display: inline-grid;
  place-items: center;
  width: 30px;
  min-height: 30px;
  padding: 0;
  color: var(--ink);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.save-pill svg {
  width: 16px;
  height: 16px;
}

.save-pill.active {
  color: var(--red);
  background: var(--input);
  border-color: color-mix(in srgb, var(--red) 70%, var(--line));
}

.save-pill.active svg {
  fill: currentColor;
}

.listing-metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.listing-metric-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 9px;
  color: var(--ink);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 950;
}

.listing-metric-row svg {
  width: 15px;
  height: 15px;
  color: var(--teal);
}

.listing-metric-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.inline {
  flex: 1;
  min-height: 34px;
  padding: 0 8px;
  font-size: 0.78rem;
}

.inline.promote {
  color: #04100f;
  background: var(--teal);
}

.inline.edit {
  color: var(--ink);
  background: var(--input);
  border: 1px solid var(--line);
}

.inline.delete {
  color: var(--red);
  background: rgba(219, 81, 69, 0.12);
  border: 1px solid rgba(219, 81, 69, 0.5);
}

.bottom-nav {
  position: fixed;
  inset: auto 0 0;
  z-index: 60;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(64px, 1fr);
  gap: 4px;
  padding: 8px 10px max(10px, env(safe-area-inset-bottom));
  overflow-x: auto;
  background: var(--header);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  display: grid;
  place-items: center;
  min-width: 62px;
  min-height: 58px;
  color: var(--muted);
  background: transparent;
  border-radius: var(--radius);
  font-weight: 950;
}

.bottom-nav button.active {
  color: var(--ink);
  background: var(--panel-2);
  outline: 1px solid rgba(27, 169, 154, 0.65);
}

.tab-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.tab-icon svg {
  width: 22px;
  height: 22px;
}

.bottom-nav b {
  font-size: 0.72rem;
}

.product-view {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 0.8fr);
  gap: 14px;
}

.product-media {
  display: grid;
  gap: 10px;
}

.thumb-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 76px;
  gap: 8px;
  overflow-x: auto;
}

.thumb-strip img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-info {
  display: grid;
  gap: 14px;
  align-content: start;
}

.product-price strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 950;
}

.product-price span {
  color: var(--muted);
  font-weight: 950;
}

.flow-tags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.flow-tags span {
  display: grid;
  gap: 3px;
  min-height: 44px;
  padding: 8px 10px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
}

.flow-tags small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 950;
  text-transform: uppercase;
}

.seller-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.avatar {
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: var(--radius);
}

.generated-avatar {
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
}

.product-actions {
  display: grid;
  gap: 10px;
}

.product-app-view {
  display: grid;
  gap: 18px;
}

.product-titlebar-actions,
.profile-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 8px;
}

.product-share-button,
.profile-card-actions .icon-button {
  flex: 0 0 auto;
}

.product-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 950;
}

.product-photo-block {
  display: grid;
  gap: 12px;
}

.product-hero-image {
  width: 100%;
  max-height: min(68vh, 720px);
  object-fit: contain;
  background: var(--panel-2);
  border-radius: var(--radius);
}

.product-gallery-viewport {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: var(--panel-2);
  border-radius: inherit;
  pointer-events: none;
}

.product-gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translate3d(-100%, 0, 0);
  will-change: transform;
}

.product-gallery-track.is-single {
  transform: none;
  will-change: auto;
}

.product-gallery-track.is-settling {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.22, 0.72, 0.22, 1);
}

.product-gallery-slide {
  display: grid;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  background: var(--panel-2);
}

.product-gallery-slide .product-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
  pointer-events: none;
  -webkit-user-drag: none;
}

.product-main-photo.is-gallery-dragging {
  cursor: grabbing;
}

.product-main-photo.is-gallery-dragging .product-gallery-track {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .product-gallery-track.is-settling {
    transition-duration: 1ms !important;
  }
}

.product-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82px;
  gap: 8px;
  overflow-x: auto;
}

.product-thumb-button {
  width: 82px;
  height: 82px;
  padding: 0;
  overflow: hidden;
  background: var(--panel-2);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

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

.product-thumb-button.active {
  border-color: var(--teal);
}

.product-summary {
  display: grid;
  gap: 16px;
}

.product-summary h1 {
  font-size: clamp(2rem, 9vw, 2.7rem);
  line-height: 1;
}

.product-seller-card {
  justify-content: space-between;
}

.product-seller-card span {
  display: grid;
  flex: 1;
  gap: 2px;
}

.product-seller-card small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-primary-action {
  min-height: 64px;
  font-size: 1.08rem;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-tile,
.description-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-tile {
  min-height: 86px;
  align-content: center;
}

.detail-tile b {
  overflow-wrap: anywhere;
  font-size: clamp(1.16rem, 4vw, 1.55rem);
  font-weight: 950;
  line-height: 1;
}

.detail-tile span {
  color: var(--muted);
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.description-card {
  margin-bottom: 10px;
}

.description-card h2 {
  font-size: clamp(1.25rem, 5vw, 1.7rem);
}

.description-card p {
  font-size: 1rem;
}

.product-questions {
  gap: 12px;
}

.question-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quiet {
  display: grid;
  gap: 12px;
  min-height: 80px;
  padding: 16px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 850;
}

.spreadsheet {
  overflow-x: auto;
  box-shadow: none;
}

.sheet-row {
  display: grid;
  grid-template-columns: 42px minmax(240px, 1.4fr) 120px minmax(220px, 1fr) 80px;
  gap: 10px;
  align-items: center;
  min-width: 760px;
  min-height: 54px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.sheet-row.head {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.sheet-row.owned {
  background: rgba(79, 175, 102, 0.18);
}

.collection-check {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.collection-check input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--teal);
}

.collection-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.progress {
  height: 12px;
  margin-block: 12px;
  overflow: hidden;
  background: var(--input);
  border-radius: 999px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--green);
}

.big-percent {
  font-size: 2rem;
  font-weight: 950;
}

.collection-toolbar,
.search-row,
.message-composer {
  display: flex;
  gap: 10px;
}

.collection-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.collection-search,
.collection-owned {
  grid-column: span 1;
}

.collection-toolbar > *,
.search-row input,
.message-composer input {
  flex: 1;
}

.collection-toolbar > * {
  min-width: 0;
}

.stat-grid,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.stat-tile,
.summary-grid div {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat-tile b,
.summary-grid b {
  font-size: 1.7rem;
  font-weight: 950;
}

.seller-top {
  display: grid;
  gap: 14px;
}

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

.seller-secondary-stats {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.seller-primary-stats .stat-tile b,
.seller-secondary-stats div b,
.seller-order-stats div b {
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 0.95;
}

.money-side {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  gap: 10px;
  width: min(26vw, 300px);
  min-width: 230px;
  padding: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.seller-payout-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}

.seller-payout-summary > span {
  display: grid;
  gap: 6px;
}

.payout-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.payout-title-row .status-chip {
  min-height: 24px;
}

.seller-payout-summary b {
  font-size: 1.08rem;
  font-weight: 950;
}

.seller-payout-summary small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.seller-payout-summary strong {
  font-size: 1.7rem;
  font-weight: 950;
}

.seller-payout-summary > svg {
  color: var(--faint);
  transform: rotate(180deg);
}

.payout-fullscreen-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  overflow: auto;
  background: var(--bg);
}

.payout-fullscreen-sheet {
  display: grid;
  align-content: start;
  gap: 14px;
  width: min(100%, 980px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 14px max(22px, env(safe-area-inset-bottom));
}

.payout-open-withdraw {
  min-height: 54px;
  font-size: 1.05rem;
}

.payout-note {
  color: var(--muted);
  font-weight: 850;
}

.withdraw-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 125;
  display: grid;
  align-items: end;
  justify-items: center;
  background: rgba(0, 0, 0, 0.52);
}

.withdraw-sheet {
  position: relative;
  display: grid;
  gap: 10px;
  width: min(100%, 560px);
  max-height: calc(100dvh - max(10px, env(safe-area-inset-top)));
  min-height: 0;
  padding: 10px 14px max(10px, env(safe-area-inset-bottom));
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 92%, black);
  border: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.48);
}

.withdraw-grabber {
  justify-self: center;
  width: 48px;
  height: 5px;
  background: var(--faint);
  border-radius: 999px;
  opacity: 0.7;
}

.withdraw-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.withdraw-head h1 {
  font-size: clamp(1.45rem, 7vw, 2rem);
  line-height: 1;
}

.withdraw-balance-card,
.withdraw-amount-field > div {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.withdraw-balance-card span,
.withdraw-amount-field > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.withdraw-balance-card strong {
  font-size: clamp(2.35rem, 10vw, 3.6rem);
  font-weight: 950;
  line-height: 0.95;
}

.withdraw-amount-field {
  display: grid;
  gap: 7px;
}

.withdraw-amount-field > div {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.withdraw-amount-field b {
  color: var(--muted);
  font-size: 1.7rem;
  font-weight: 950;
}

.withdraw-amount-field input {
  min-height: 48px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: clamp(2.15rem, 10vw, 3.4rem);
  font-weight: 950;
}

.withdraw-selected-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--teal);
}

.withdraw-selected-row .inline {
  flex: 0 0 auto;
  min-width: 84px;
  color: var(--teal);
  background: color-mix(in srgb, var(--panel-2) 80%, white);
  border-radius: 999px;
}

.withdraw-submit {
  min-height: 50px;
  font-size: 1rem;
}

@media (max-height: 720px) {
  .withdraw-sheet {
    gap: 8px;
  }

  .withdraw-balance-card strong {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .withdraw-amount-field input {
    min-height: 42px;
    font-size: clamp(1.9rem, 9vw, 2.9rem);
  }

  .withdraw-submit {
    min-height: 46px;
  }

}

.payout-workspace,
.payout-panel,
.payout-history {
  display: grid;
  gap: 12px;
}

.payout-head {
  align-items: center;
}

.payout-withdraw-row {
  margin-top: 2px;
}

.bank-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.bank-box.warn {
  border-color: rgba(232, 168, 79, 0.46);
}

.bank-box p {
  color: var(--muted);
  font-weight: 850;
}

.payout-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.payout-history-row span {
  display: grid;
  gap: 3px;
}

.payout-history-row b {
  font-weight: 950;
}

.payout-history-row small {
  color: var(--muted);
  font-weight: 850;
}

.money-line {
  min-height: 34px;
  border-bottom: 1px solid var(--line);
}

.money-line.strong b {
  font-size: 1.55rem;
}

.withdraw-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.order-card {
  padding: 14px;
  box-shadow: none;
}

.order-card summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  font-weight: 950;
}

.order-head {
  align-items: flex-start;
  margin-bottom: 12px;
}

.order-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.order-item .cover {
  height: 92px;
}

.order-item-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.order-rating-row {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 10px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.order-rating-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.order-rating-controls,
.order-rating-display {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.order-rating-display b {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 950;
  white-space: nowrap;
}

.seller-orders-workspace {
  display: grid;
  gap: 14px;
}

.seller-orders-head {
  align-items: end;
}

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

.seller-order-stack {
  display: grid;
  gap: 12px;
}

.seller-order-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.seller-order-card summary {
  list-style: none;
}

.seller-order-card summary::-webkit-details-marker {
  display: none;
}

.seller-order-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px;
  background: var(--panel-2);
  cursor: pointer;
}

.seller-order-summary-main,
.seller-order-summary-side,
.seller-order-item-body,
.seller-detail-panel,
.seller-order-money-panel,
.seller-tracking-panel,
.seller-return-block {
  min-width: 0;
}

.seller-order-summary-main {
  display: grid;
  gap: 8px;
}

.seller-order-summary-main h2,
.seller-order-summary-main p,
.seller-order-summary-side span,
.seller-detail-panel p,
.seller-order-item-body p {
  overflow-wrap: anywhere;
}

.seller-order-summary-side {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

.seller-order-summary-side strong {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 950;
}

.seller-order-summary-side span {
  color: var(--muted);
  font-weight: 900;
}

.seller-order-summary-side em {
  min-height: 36px;
  padding: 8px 14px;
  color: var(--ink);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-style: normal;
  font-weight: 950;
}

.seller-order-expanded {
  display: grid;
  gap: 16px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.seller-order-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.seller-detail-panel {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seller-order-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: 16px;
  align-items: start;
}

.seller-order-item-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.seller-order-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.seller-order-item .cover {
  width: 92px;
  height: 92px;
}

.seller-order-item-body {
  display: grid;
  gap: 10px;
}

.seller-item-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.seller-item-title-row h3 {
  font-size: 1.2rem;
  font-weight: 950;
}

.seller-item-title-row strong {
  font-size: 1.05rem;
  font-weight: 950;
  white-space: nowrap;
}

.seller-order-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
}

.seller-item-description {
  color: var(--muted);
  line-height: 1.45;
}

.seller-order-pick-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 10px;
  padding: 8px 10px;
  color: var(--ink);
  background: color-mix(in srgb, var(--teal) 10%, var(--panel-2));
  border: 1px solid color-mix(in srgb, var(--teal) 42%, var(--line));
  border-radius: 6px;
}

.seller-order-pick-id > span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.seller-order-pick-id svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--teal);
}

.seller-order-pick-id code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--teal);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 950;
}

.seller-item-includes {
  color: var(--muted);
  font-weight: 850;
}

.seller-tracking-panel,
.seller-return-block {
  display: grid;
  gap: 9px;
  padding: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.seller-tracking-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.seller-tracking-grid div {
  padding: 10px;
  background: var(--panel);
  box-shadow: none;
}

.seller-tracking-panel p,
.seller-return-block p {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.tracking-history {
  padding-top: 4px;
}

.tracking-history summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 950;
}

.tracking-event {
  display: grid;
  gap: 3px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.tracking-event span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.seller-return-block {
  border-color: rgba(232, 168, 79, 0.45);
  background: color-mix(in srgb, var(--panel-2) 88%, var(--amber));
}

.seller-return-head,
.seller-label-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.seller-label-row {
  align-items: center;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
}

.seller-label-row div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.seller-label-row span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.seller-order-money-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.seller-order-money-panel .money-line:last-of-type {
  margin-top: 6px;
  border-top: 1px solid var(--line);
}

.seller-order-money-panel button {
  margin-top: 8px;
}

.status-chip {
  display: inline-flex;
  width: max-content;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  color: var(--muted);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 950;
}

.status-chip.good {
  color: var(--green);
  background: rgba(79, 175, 102, 0.14);
  border-color: rgba(79, 175, 102, 0.5);
}

.status-chip.warn {
  color: var(--amber);
  background: rgba(232, 168, 79, 0.14);
  border-color: rgba(232, 168, 79, 0.5);
}

.stars,
.star-button {
  color: var(--amber);
  font-weight: 950;
}

.star-meter {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 5.9em;
  color: color-mix(in srgb, var(--muted) 60%, transparent);
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1;
}

.star-meter-base,
.star-meter-fill {
  display: block;
  white-space: nowrap;
}

.star-meter-fill {
  position: absolute;
  inset: 0 auto auto 0;
  overflow: hidden;
  color: var(--amber);
  pointer-events: none;
}

.star-button {
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
}

.conversation-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  box-shadow: none;
}

.conversation-row button:first-child {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 10px;
  min-width: 0;
  text-align: left;
}

.conversation-row.unread {
  border-color: rgba(27, 169, 154, 0.45);
}

.conversation-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.conversation-row small {
  color: var(--muted);
  overflow: hidden;
  font-size: 0.84rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-row i {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0 7px;
  color: #04100f;
  background: var(--teal);
  border-radius: 999px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
}

.participant-button {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: var(--teal);
}

.conversation-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.conversation-head .icon-button {
  flex: 0 0 auto;
}

.conversation-head h1 {
  font-size: clamp(1.25rem, 5vw, 2rem);
}

.compose-sheet {
  display: grid;
  gap: 12px;
}

.participants-sheet {
  display: grid;
  gap: 12px;
}

.participant-list {
  display: grid;
  overflow: hidden;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.participant-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.participant-row:last-child {
  border-bottom: 0;
}

.participant-row span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.participant-row b,
.participant-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participant-row small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.participant-row em {
  padding: 4px 8px;
  color: #04100f;
  background: var(--teal);
  border-radius: 999px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
}

.participant-row em.system {
  background: var(--amber);
}

.participant-row i {
  display: grid;
  color: var(--muted);
  font-style: normal;
  transform: rotate(180deg);
}

.user-picker {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.user-picker button,
.selected-recipient {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  color: var(--ink);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}

.user-picker button.selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(27, 169, 154, 0.18);
}

.user-picker span,
.selected-recipient span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.user-picker small,
.selected-recipient small,
.user-picker em {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-list {
  display: grid;
  align-content: end;
  gap: 10px;
  min-height: 52vh;
  max-height: 66vh;
  overflow: auto;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.message-wrap {
  width: min(76%, 560px);
  display: grid;
  gap: 4px;
  justify-self: start;
}

.message-wrap.mine {
  justify-self: end;
}

.conversation-event-message {
  width: 100%;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.message {
  width: 100%;
  padding: 10px 12px;
  background: var(--panel-2);
  border-radius: var(--radius);
}

.message.mine,
.message-wrap.mine .message {
  color: #04100f;
  background: var(--teal);
}

.message-time {
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.message-wrap.mine .message-time {
  text-align: right;
}

.message small {
  display: block;
  margin-bottom: 3px;
  color: inherit;
  opacity: 0.7;
  font-weight: 950;
}

.message p {
  color: inherit;
}

.system-message-card {
  display: grid;
  gap: 8px;
  width: min(100%, 680px);
}

.system-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
}

.system-message-body {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.system-message-body blockquote {
  margin: 0;
  padding: 10px;
  color: var(--ink);
  background: var(--input);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  font-weight: 800;
}

.system-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.system-actions > button {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  padding-inline: 10px;
}

.system-actions > .status-chip {
  flex: 0 0 auto;
}

.system-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.image-grid figure {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 8px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.image-grid figure.main {
  border-color: var(--teal);
}

.image-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.image-grid figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
}

.sell-form .image-grid,
.listing-editor-sheet .image-grid,
.report-image-grid {
  grid-template-columns: repeat(auto-fill, minmax(94px, 118px));
  align-items: start;
}

.sell-form .image-grid figure,
.listing-editor-sheet .image-grid figure,
.report-image-grid figure {
  gap: 6px;
  padding: 6px;
}

.sell-form .image-grid figcaption,
.listing-editor-sheet .image-grid figcaption,
.report-image-grid figcaption {
  font-size: 0.72rem;
}

.review-photo-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86px;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.review-photo-strip img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.review-photo-strip img.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(27, 169, 154, 0.16);
}

.listing-review-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel) 92%, var(--teal)), var(--panel) 58%, color-mix(in srgb, var(--panel-2) 84%, var(--green)));
}

.review-heading {
  display: grid;
  gap: 4px;
}

.review-eyebrow {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-title {
  font-size: clamp(1.16rem, 5vw, 1.48rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.review-description {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.listing-review-card .review-photo-strip {
  grid-auto-columns: 74px;
  gap: 7px;
}

.listing-review-card .review-photo-strip img {
  width: 74px;
  height: 74px;
}

.listing-review-card .flow-tags {
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 7px;
}

.listing-review-card .flow-tags span {
  min-height: 40px;
  padding: 8px 9px;
  border-radius: var(--radius);
  font-size: 0.84rem;
  line-height: 1.15;
}

.listing-review-card .flow-tags small {
  font-size: 0.58rem;
}

.review-money-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(72px, 0.8fr));
  gap: 8px;
}

.review-money-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  color: var(--ink);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.review-money-card.primary {
  border-color: color-mix(in srgb, var(--teal) 50%, var(--line));
  background: color-mix(in srgb, var(--teal) 12%, var(--input));
}

.review-money-card small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.review-money-card strong,
.review-money-card b {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 950;
  line-height: 1;
}

.review-money-card strong {
  font-size: clamp(1.2rem, 6vw, 1.65rem);
}

.review-money-card b {
  font-size: 0.98rem;
}

.compact-quiet {
  padding: 10px;
  min-height: auto;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.stepper button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  color: var(--muted);
  background: var(--input);
  border-radius: var(--radius);
  font-weight: 950;
}

.stepper i {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--ink);
  background: var(--input);
  border-radius: 50%;
  font-style: normal;
}

.stepper button.active {
  color: var(--ink);
}

.stepper button.active i {
  color: #04100f;
  background: var(--teal);
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.check-row {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 900;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.55);
}

.side-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  justify-content: end;
  background: rgba(0, 0, 0, 0.42);
}

.side-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  width: min(640px, 100vw);
  height: 100vh;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  overflow: auto;
  background: var(--bg);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.side-body {
  min-height: 0;
  overflow: auto;
}

.sheet {
  width: min(760px, 100%);
  min-width: 0;
  max-height: min(86vh, 900px);
  overflow: auto;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.offer-sheet {
  display: grid;
  gap: 14px;
  width: min(520px, calc(100vw - 24px));
}

.offer-summary {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.offer-summary .cover {
  width: 82px;
  height: 92px;
  aspect-ratio: auto;
}

.offer-summary div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.offer-summary b,
.offer-summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-summary b,
.offer-summary strong {
  font-weight: 950;
}

.offer-summary span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.offer-form {
  display: grid;
  gap: 12px;
}

.offer-form textarea {
  min-height: 128px;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-actions button {
  width: 100%;
}

.sheet > .screen-head .icon-button[data-action="close-modal"] {
  display: inline-grid;
}

.product-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 96;
  overflow: auto;
  background: var(--bg);
}

.product-preview-sheet {
  width: min(1180px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 14px max(24px, env(safe-area-inset-bottom));
}

.seller-top select[data-action="seller-timeframe"] {
  width: 148px;
  min-width: 148px;
  max-width: 148px;
  min-height: 54px;
  padding-inline: 18px;
  justify-self: end;
  background: color-mix(in srgb, var(--panel-2) 82%, white);
  border-radius: 999px;
  font-weight: 950;
}

.legal-tabs {
  display: flex;
  overflow-x: auto;
}

.legal-tabs button {
  flex: 0 0 auto;
  padding-inline: 14px;
}

.legal-doc {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-doc section {
  display: grid;
  gap: 5px;
  padding-top: 4px;
}

.legal-doc h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 950;
}

.public-page {
  max-width: 1060px;
  margin: 0 auto;
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: end;
}

.public-hero h1 {
  width: auto;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 0.95;
}

.public-hero p {
  max-width: 780px;
  margin-top: 8px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 850;
  line-height: 1.45;
}

.public-hero span {
  display: inline-block;
  margin-top: 12px;
  color: var(--faint);
  font-size: 0.84rem;
  font-weight: 950;
  text-transform: uppercase;
}

.public-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.public-legal-directory {
  display: grid;
  gap: 14px;
}

.public-legal-directory > div {
  display: grid;
  gap: 5px;
}

.public-legal-directory > div p:last-child {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.public-legal-directory nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.public-legal-directory nav a {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 950;
  text-decoration: none;
}

.public-legal-directory nav a span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-legal-directory nav a.active {
  color: #061008;
  background: var(--teal);
  border-color: var(--teal);
}

.public-legal-directory nav a.active span {
  color: rgba(6, 16, 8, 0.72);
}

.public-document-layout,
.public-toc {
  display: grid;
  gap: 12px;
}

.public-toc > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.public-toc nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.public-toc nav a {
  flex: 0 0 auto;
  padding: 7px 9px;
  color: var(--muted);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.public-toc > div {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.public-toc > div p,
.public-toc > div a {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.45;
}

.public-toc > div a {
  color: var(--teal);
}

.public-doc {
  display: grid;
  gap: 12px;
}

.public-section {
  display: grid;
  gap: 9px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.public-section h2 {
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  font-weight: 950;
}

.public-section p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.6;
}

.public-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.public-footer h2 {
  font-size: 1.45rem;
}

.public-footer p {
  color: var(--muted);
  font-weight: 850;
  line-height: 1.45;
}

.modal-copy {
  margin: 12px 0;
}

.package-button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-height: 70px;
  padding: 14px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.package-button span {
  display: grid;
  gap: 4px;
  text-align: left;
}

.package-button small {
  color: var(--muted);
  font-weight: 850;
}

.inline-banner,
.toast {
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 950;
}

.inline-banner {
  width: min(100% - 28px, 1220px);
  margin: 10px auto 0;
}

.inline-banner.error,
.toast.error {
  color: var(--red);
  background: rgba(219, 81, 69, 0.13);
  border: 1px solid rgba(219, 81, 69, 0.44);
}

.inline-banner.success,
.toast.success {
  color: var(--green);
  background: rgba(79, 175, 102, 0.13);
  border: 1px solid rgba(79, 175, 102, 0.44);
}

.toast-region {
  position: fixed;
  right: 14px;
  bottom: 104px;
  z-index: 120;
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 8px;
  width: min(360px, calc(100vw - 28px));
  height: max-content;
  max-height: calc(100svh - 132px);
  pointer-events: none;
}

.toast-region .toast {
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  height: auto;
  overflow-wrap: anywhere;
  box-shadow: var(--shadow);
}

.toast-region.below-marketplace-ad {
  top: var(--toast-anchor-top);
  bottom: auto;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 950;
}

.skeleton-panel,
.skeleton-card {
  overflow: hidden;
}

.skeleton-panel div,
.skeleton-card div,
.skeleton-card p,
.skeleton-stats span,
.skeleton-stats b {
  min-height: 20px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--input), var(--panel-2), var(--input));
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}

.skeleton-panel {
  display: grid;
  gap: 12px;
}

.skeleton-panel div:nth-child(1) { width: 60%; }
.skeleton-panel div:nth-child(2) { width: 92%; }
.skeleton-panel div:nth-child(3) { width: 72%; }

.skeleton-card {
  grid-template-columns: 118px 1fr;
}

.skeleton-card > div {
  aspect-ratio: 0.88;
}

.skeleton-card section {
  display: grid;
  gap: 10px;
  align-content: start;
}

.skeleton-stats div {
  min-height: 94px;
}

.skeleton-stats span {
  width: 54%;
}

.skeleton-stats b {
  width: 74%;
  min-height: 32px;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.12);
}

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid var(--line);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 900px) {
  .app-shell {
    display: grid;
    grid-template-columns: 228px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    padding-bottom: 0;
  }

  .app-header {
    grid-column: 1 / -1;
    min-height: 72px;
    padding: 12px 32px;
  }

  .brand-button strong {
    font-size: 1.42rem;
  }

  .screen-scroll {
    grid-column: 2;
    grid-row: 2;
    width: min(100%, 1500px);
    padding: 26px 34px 56px;
  }

  .bottom-nav {
    position: sticky;
    inset: auto;
    top: 0;
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    grid-auto-flow: row;
    grid-auto-rows: max-content;
    grid-auto-columns: unset;
    height: calc(100vh - 72px);
    padding: 18px 14px;
    overflow-y: auto;
    overflow-x: hidden;
    border-top: 0;
    border-right: 1px solid var(--line);
    align-content: start;
  }

  .bottom-nav button {
    grid-template-columns: 28px minmax(0, 1fr);
    place-items: center start;
    justify-content: start;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 12px;
  }

  .bottom-nav b {
    font-size: 0.86rem;
  }

  .screen-stack {
    gap: 22px;
  }

  .panel,
  .hero-panel,
  .image-panel,
  .review-card,
  .product-info,
  .money-panel,
  .profile-card {
    padding: 18px;
  }

  h1 {
    font-size: 2.05rem;
  }

  h2,
  .screen-title {
    font-size: 1.55rem;
  }

  .form-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
  }

  .form-grid > label,
  .form-grid > .field-block {
    grid-column: span 3;
  }

  .form-grid > .wide,
  .form-grid > label.wide,
  .form-grid > .field-block.wide {
    grid-column: span 6;
  }

  .form-grid > button {
    grid-column: span 2;
  }

  form[data-form="filters"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  form[data-form="filters"] > label,
  form[data-form="filters"] > .field-block,
  form[data-form="filters"] > .wide,
  form[data-form="filters"] .filter-actions {
    grid-column: auto;
  }

  form[data-form="filters"] > .wide,
  form[data-form="filters"] .search-label {
    grid-column: 1 / -1;
  }

  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .listing-card,
  .offer-card {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 14px;
    min-height: 190px;
    padding: 14px;
  }

  .listing-card .cover {
    height: 100%;
    min-height: 160px;
    aspect-ratio: auto;
  }

  .listing-main {
    min-height: 0;
  }

  .listing-main p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .card-actions,
  .manage-actions {
    margin-top: auto;
  }

  .product-app-view {
    grid-template-columns: minmax(440px, 0.95fr) minmax(420px, 0.78fr);
    align-items: start;
    gap: 24px;
  }

  .product-back,
  .product-photo-block {
    grid-column: 1;
  }

  .product-summary,
  .product-detail-grid,
  .description-card {
    grid-column: 2;
  }

  .product-summary {
    position: sticky;
    top: 92px;
  }

  .product-summary h1 {
    font-size: clamp(3.2rem, 5.5vw, 5.4rem);
  }

  .product-hero-image {
    max-height: calc(100vh - 180px);
  }

  .detail-tile {
    min-height: 112px;
  }

  .detail-tile b {
    font-size: clamp(1.25rem, 2.3vw, 2rem);
  }

  .collection-toolbar {
    grid-template-columns: minmax(220px, 1fr) auto minmax(260px, 1.3fr) minmax(140px, 0.5fr);
  }

  .collection-search,
  .collection-owned {
    grid-column: auto;
  }

  .seller-tabs {
    grid-template-columns: repeat(4, minmax(100px, 1fr));
  }

  .seller-tabs button {
    justify-content: start;
    padding-inline: 18px;
  }

  .seller-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 18px;
    padding-right: 18px;
  }

  .seller-top > .screen-head,
  .seller-top > .seller-primary-stats,
  .seller-top > .seller-secondary-stats {
    grid-column: 1;
  }

  .seller-payout-summary {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: stretch;
    width: 100%;
  }

  .side-panel .listing-grid {
    grid-template-columns: 1fr;
  }

  .side-panel .listing-card {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 158px;
  }

  .side-panel .listing-card .cover {
    min-height: 132px;
  }

  .listing-editor-sheet {
    width: min(980px, 94vw);
  }
}

@media (max-width: 820px) {
  body {
    -webkit-tap-highlight-color: transparent;
  }

  .app-shell {
    min-height: 100svh;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .app-header {
    min-height: 0;
    padding: max(12px, env(safe-area-inset-top)) 14px 12px;
  }

  .brand-button strong {
    color: var(--teal);
    font-size: 15px;
    line-height: 1.1;
  }

  .brand-button span {
    font-size: 9px;
    line-height: 1.1;
  }

  .panel,
  .hero-panel,
  .listing-card,
  .order-card,
  .offer-card,
  .conversation-row,
  .spreadsheet,
  .seller-tabs,
  .image-panel,
  .review-card,
  .product-info,
  .money-panel,
  .profile-card {
    box-shadow: none;
  }

  .hero-panel {
    background:
      linear-gradient(135deg, var(--panel), var(--panel-2) 64%, rgba(16, 204, 2, 0.18));
  }

  .screen-scroll {
    padding: 12px 14px 20px;
  }

  .screen-stack {
    gap: 12px;
  }

  .screen-head h1 {
    font-size: clamp(1.32rem, 7vw, 1.85rem);
  }

  .screen-head p {
    font-size: 0.9rem;
  }

  .account-pill {
    gap: 8px;
    max-width: 48vw;
    min-height: 40px;
    padding: 6px 8px;
  }

  .account-pill .avatar {
    width: 30px !important;
    height: 30px !important;
  }

  .head-actions {
    gap: 8px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }

  .bottom-nav {
    grid-auto-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 8px 8px max(10px, env(safe-area-inset-bottom));
  }

  .bottom-nav button {
    min-width: 0;
    min-height: 50px;
    padding: 0 2px;
  }

  .bottom-nav b {
    font-size: 10px;
    line-height: 1;
  }

  .bottom-nav svg {
    width: 20px;
    height: 20px;
  }

  .segmented {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
  }

  .segmented button {
    min-width: 0;
    min-height: 44px;
    gap: 5px;
    padding: 0 4px;
    font-size: 0.86rem;
  }

  .listing-grid {
    gap: 10px;
  }

  .listing-card {
    min-height: 132px;
    padding: 10px;
  }

  .listing-main {
    gap: 6px;
  }

  .listing-main p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .price-row strong {
    font-size: 1.12rem;
  }

  .route-product {
    padding-bottom: 0;
  }

  .route-product .app-header,
  .route-product .bottom-nav {
    display: none;
  }

  .seller-top {
    padding-right: 14px;
  }

  .money-side {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 12px;
  }

  .product-view {
    grid-template-columns: 1fr;
  }

  .seller-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 6px;
  }

  .seller-tabs button {
    min-width: 0;
    padding: 10px 4px;
  }

  .seller-tabs button b {
    font-size: clamp(0.62rem, 2.35vw, 0.82rem);
    line-height: 1.05;
  }

  .seller-order-summary,
  .seller-order-detail-grid {
    grid-template-columns: 1fr;
  }

  .seller-order-summary-side {
    justify-items: start;
    text-align: left;
  }

  .seller-tracking-grid {
    grid-template-columns: 1fr;
  }

  .seller-label-row,
  .seller-return-head {
    flex-wrap: wrap;
  }

  .public-footer {
    grid-template-columns: 1fr;
  }

  .collection-toolbar,
  .search-row,
  .message-composer,
  .card-actions,
  .form-actions {
    flex-wrap: wrap;
  }

  .listing-card,
  .offer-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .price-row {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

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

  .review-money-card.primary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .app-header {
    min-height: 0;
  }

  .account-pill {
    max-width: 48vw;
  }

  .account-pill b {
    font-size: 0.85rem;
  }

  .head-actions .icon-button {
    width: 42px;
    height: 42px;
  }

  .listing-card,
  .offer-card,
  .order-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .seller-order-info-grid {
    grid-template-columns: 1fr;
  }

  .seller-order-summary,
  .seller-order-expanded {
    padding: 12px;
  }

  .seller-order-item {
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 12px;
  }

  .seller-order-item .cover {
    width: 76px;
    height: 76px;
  }

  .seller-item-title-row {
    display: grid;
    gap: 6px;
  }

  .seller-item-title-row strong {
    white-space: normal;
  }

  .cover-button.small {
    width: 84px;
  }

  .bottom-nav {
    grid-auto-columns: minmax(0, 1fr);
    padding-inline: 6px;
  }

  .bottom-nav button {
    min-width: 0;
    min-height: 56px;
    padding-inline: 2px;
  }

  .bottom-nav b {
    font-size: 0.62rem;
    line-height: 1;
  }

  .bottom-nav svg {
    width: 20px;
    height: 20px;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .sheet {
    max-height: 92vh;
  }

  .offer-sheet {
    width: min(100%, calc(100vw - 20px));
  }

  .offer-summary {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .offer-summary .cover {
    width: 68px;
    height: 78px;
  }

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

/* SwiftUI parity: shared visual language for the phone web client. */
:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
}

html {
  font-size: 14px;
}

body,
button,
input,
select,
textarea {
  letter-spacing: 0;
}

.panel,
.hero-panel,
.listing-card,
.order-card,
.offer-card,
.conversation-row,
.spreadsheet,
.image-panel,
.review-card,
.product-info,
.money-panel,
.profile-card {
  box-shadow: none;
}

.hero-panel {
  background: var(--panel);
}

.verified-seller-badge {
  position: static;
  display: inline-grid;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  margin-left: 5px;
  color: var(--teal);
  line-height: 1;
  vertical-align: -0.18em;
}

.verified-seller-badge.small {
  width: 16px;
  height: 16px;
  vertical-align: -0.16em;
}

.verified-seller-badge.tiny {
  width: 14px;
  height: 14px;
  margin-left: 3px;
  vertical-align: -0.14em;
}

.verified-seller-badge svg {
  width: 100%;
  height: 100%;
  stroke-width: 2.5;
}

.profile-card .icon-button.active svg {
  fill: currentColor;
}

.marketplace-home-ad-anchor {
  width: 100%;
  padding: 4px 14px 0;
  background: var(--bg);
}

.marketplace-home-ad-anchor.is-unfilled {
  display: none;
}

.marketplace-home-ad {
  --marketplace-ad-height: 50px;
  position: relative;
  display: grid;
  align-items: center;
  width: 100%;
  max-width: 970px;
  min-height: var(--marketplace-ad-height);
  margin: 0 auto;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.marketplace-home-ad.is-live {
  height: var(--marketplace-ad-height);
  min-height: var(--marketplace-ad-height);
  max-height: var(--marketplace-ad-height);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.marketplace-home-ad .adsbygoogle {
  display: block;
  width: 100%;
  height: var(--marketplace-ad-height) !important;
  min-height: var(--marketplace-ad-height) !important;
  max-height: var(--marketplace-ad-height) !important;
  overflow: hidden;
}

.marketplace-home-ad .adsbygoogle > div,
.marketplace-home-ad .adsbygoogle iframe {
  max-height: var(--marketplace-ad-height) !important;
}

.marketplace-home-ad.is-live .marketplace-ad-label {
  display: none;
}

.marketplace-ad-label {
  position: absolute;
  top: 5px;
  left: 8px;
  z-index: 1;
  color: var(--faint);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.marketplace-ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 48px;
  padding: 8px 14px 4px;
  color: var(--muted);
}

.marketplace-ad-placeholder > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--faint);
  background: var(--input);
  border-radius: 7px;
}

.marketplace-ad-placeholder > span svg {
  width: 17px;
  height: 17px;
}

.marketplace-ad-placeholder > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.marketplace-ad-placeholder b {
  color: var(--ink);
  font-size: 0.78rem;
}

.marketplace-ad-placeholder small {
  font-size: 0.67rem;
  line-height: 1.3;
}

.marketplace-spotlight,
.seller-premium-upsell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}

.marketplace-spotlight:disabled {
  cursor: default;
}

.marketplace-spotlight > span:nth-child(2),
.seller-premium-upsell > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.marketplace-spotlight small,
.seller-premium-upsell small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.marketplace-spotlight b,
.seller-premium-upsell b {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 850;
  text-overflow: ellipsis;
}

.marketplace-spotlight em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 650;
  line-height: 1.3;
}

.spotlight-icon,
.seller-premium-upsell > span:first-child {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  border-radius: var(--radius);
}

.seller-supplies-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.seller-supplies-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  border-radius: var(--radius);
}

.seller-supplies-card > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.seller-supplies-card small,
.seller-supplies-card em,
.seller-supplies-card p {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.seller-supplies-card b {
  font-size: 0.92rem;
  font-weight: 850;
}

.seller-supplies-card > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.seller-supplies-card > a svg {
  width: 14px;
  height: 14px;
}

.seller-supplies-card > p {
  grid-column: 2 / -1;
  margin: 0;
  font-size: 0.66rem;
}

@media (max-width: 560px) {
  .seller-supplies-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .seller-supplies-card > a,
  .seller-supplies-card > p {
    grid-column: 2;
  }

  .seller-supplies-card > a {
    justify-self: start;
  }
}

.featured-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.featured-carousel::-webkit-scrollbar {
  display: none;
}

.featured-page {
  display: grid;
  flex: 0 0 100%;
  gap: 10px;
  min-width: 0;
  scroll-snap-align: start;
}

.filter-panel.collapsed {
  gap: 10px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.marketplace-sticky-search {
  position: sticky;
  top: calc(61px + env(safe-area-inset-top));
  z-index: 48;
  min-width: 0;
  padding: 10px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  border-color: color-mix(in srgb, var(--line) 86%, var(--teal));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

.marketplace-sticky-search .search-input-row {
  grid-template-columns: minmax(0, 1fr) 90px;
  align-items: center;
}

.marketplace-sticky-search .search-input-row.has-save-search {
  grid-template-columns: minmax(0, 1fr) 42px 90px;
}

.marketplace-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  gap: 6px;
  padding: 0 11px;
  color: var(--ink);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 900;
}

.marketplace-filter-toggle svg {
  width: 17px;
  height: 17px;
}

.marketplace-sticky-search.expanded .marketplace-filter-toggle {
  color: #061008;
  background: var(--teal);
  border-color: var(--teal);
}

.marketplace-filter-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  min-width: 0;
  gap: 11px 10px;
  padding-top: 3px;
  transform-origin: top;
  animation: marketplace-filters-in 160ms ease-out;
}

.marketplace-filter-details .filter-actions {
  grid-column: 1 / -1;
}

.marketplace-sticky-search.collapsed .marketplace-filter-details {
  display: none;
}

@keyframes marketplace-filters-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.marketplace-infinite-sentinel {
  width: 100%;
  height: 2px;
}

.marketplace-load-more-skeleton {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 14px;
}

.marketplace-load-more-skeleton > span {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: 18px 14px;
  min-height: 78px;
  gap: 9px 10px;
  padding: 10px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.marketplace-load-more-skeleton i,
.marketplace-load-more-skeleton b,
.marketplace-load-more-skeleton em {
  display: block;
  background: linear-gradient(90deg, var(--input), var(--panel-2), var(--input));
  background-size: 200% 100%;
  border-radius: 5px;
  animation: shimmer 1.2s infinite linear;
}

.marketplace-load-more-skeleton i {
  grid-row: 1 / 3;
}

.marketplace-load-more-skeleton em {
  width: 68%;
}

.marketplace-feed-end {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 850;
}

.marketplace-feed-end svg {
  width: 17px;
  height: 17px;
  color: var(--teal);
}

.marketplace-back-top {
  position: fixed;
  right: 16px;
  bottom: calc(82px + env(safe-area-inset-bottom));
  z-index: 58;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #061008;
  background: var(--teal);
  border: 1px solid color-mix(in srgb, var(--teal) 70%, white);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.marketplace-back-top[hidden] {
  display: none !important;
}

.marketplace-back-top svg {
  width: 18px;
  height: 18px;
}

.universal-infinite-sentinel {
  width: 100%;
  height: 2px;
  scroll-margin: 120px;
}

.universal-infinite-loading {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px 2px;
}

.universal-infinite-loading > span {
  display: block;
  height: 18px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--input), var(--panel-2), var(--input));
  background-size: 200% 100%;
  border-radius: 6px;
  animation: shimmer 1.2s infinite linear;
}

.universal-infinite-loading > span:nth-child(2) {
  width: 82%;
}

.universal-infinite-loading > span:nth-child(3) {
  width: 64%;
}

.universal-infinite-end {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 7px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
}

.universal-infinite-end svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
}

.collection-search-compact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.collection-primary-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 8px;
}

.collection-filter-button-row {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.collection-filter-button-row .collection-search-row {
  flex: 0 0 auto;
}

.collection-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 6px;
  padding: 0 11px;
  color: var(--ink);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 900;
}

.collection-filter-toggle svg {
  width: 17px;
  height: 17px;
}

.collection-sticky-search {
  position: sticky;
  top: calc(61px + env(safe-area-inset-top));
  z-index: 47;
  padding: 10px;
  background: color-mix(in srgb, var(--panel) 95%, transparent);
  border-color: color-mix(in srgb, var(--line) 86%, var(--teal));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

.collection-filter-details {
  display: grid;
  gap: 10px;
  padding-top: 2px;
  transform-origin: top;
  animation: marketplace-filters-in 160ms ease-out;
}

.collection-sticky-search.collapsed .collection-filter-details {
  display: none;
}

.collection-sticky-search.collapsed .collection-filter-button-row .collection-search-row {
  display: none;
}

.collection-sticky-search.expanded .collection-filter-toggle {
  color: #061008;
  background: var(--teal);
  border-color: var(--teal);
}

.seller-listing-search {
  position: sticky;
  top: calc(61px + env(safe-area-inset-top));
  z-index: 46;
  padding: 8px;
  background: color-mix(in srgb, var(--panel) 95%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.profile-sticky-summary {
  position: sticky;
  top: calc(61px + env(safe-area-inset-top));
  z-index: 47;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 42px;
  align-items: center;
  min-width: 0;
  gap: 10px;
  padding: 8px 10px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.profile-sticky-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.profile-sticky-summary small,
.profile-sticky-summary > span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.profile-sticky-summary b {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 5px;
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-list > .universal-infinite-loading,
.message-list > .universal-infinite-sentinel {
  flex: 0 0 auto;
}

.filter-expand-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  color: var(--ink);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
}

.filter-expand-button svg {
  width: 17px;
  height: 17px;
}

.field-action-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-action-head .compact {
  min-height: 34px;
  padding: 6px 10px;
}

.listing-ai-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.listing-ai-button {
  min-width: 74px;
  font-variant-numeric: tabular-nums;
}

.listing-description-field textarea {
  min-height: 150px;
}

.description-generation-skeleton {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 150px;
  padding: 18px;
  overflow: hidden;
  background: var(--input);
  border: 1px solid color-mix(in srgb, var(--teal) 34%, var(--line));
  border-radius: var(--radius);
}

.description-generation-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.description-generation-status svg {
  width: 17px;
  height: 17px;
  color: var(--teal);
}

.description-generation-skeleton > i {
  display: block;
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, var(--panel-2), color-mix(in srgb, var(--teal) 18%, var(--panel)), var(--panel-2));
  background-size: 200% 100%;
  border-radius: 999px;
  animation: shimmer 1.2s infinite linear;
}

.description-generation-skeleton > i:nth-of-type(2) { width: 91%; }
.description-generation-skeleton > i:nth-of-type(3) { width: 76%; }
.description-generation-skeleton > i:nth-of-type(4) { width: 58%; }

.description-tone-sheet {
  width: min(620px, calc(100vw - 28px));
  max-height: min(760px, calc(100dvh - 28px));
  overflow: auto;
}

.description-tone-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.description-tone-option {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 72px;
  padding: 10px;
  color: var(--ink);
  text-align: left;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.description-tone-option:hover {
  border-color: color-mix(in srgb, var(--teal) 58%, var(--line));
}

.description-tone-option.selected {
  background: color-mix(in srgb, var(--teal) 12%, var(--input));
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 34%, transparent);
}

.description-tone-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 10%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--teal) 28%, var(--line));
  border-radius: 7px;
}

.description-tone-icon svg,
.description-tone-option > i svg {
  width: 18px;
  height: 18px;
}

.description-tone-option > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.description-tone-option b {
  font-size: 0.84rem;
}

.description-tone-option small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.3;
}

.description-tone-option > i {
  display: grid;
  place-items: center;
  color: var(--faint);
}

.description-tone-option.selected > i {
  color: var(--teal);
}

.description-tone-actions {
  margin-top: 4px;
}

@media (min-width: 500px) and (max-width: 767px) {
  .marketplace-home-ad {
    --marketplace-ad-height: 60px;
  }
}

@media (max-width: 520px) {
  .field-action-head {
    align-items: flex-start;
  }

  .listing-ai-controls {
    flex-wrap: wrap;
  }

  .description-tone-options {
    grid-template-columns: 1fr;
  }

  .description-tone-option {
    min-height: 64px;
  }
}

.listing-review-main-image {
  display: block;
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  aspect-ratio: 4 / 3;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.review-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.review-stat-grid > span,
.review-stat-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.review-stat-grid > div > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.review-stat-grid b {
  overflow: hidden;
  font-size: 1.08rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-stat-grid small,
.listing-review-terms {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.4;
}

.sell-form .form-actions,
.listing-editor-sheet .form-actions {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.seller-dashboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.seller-dashboard-heading h1 {
  font-size: 1.72rem;
}

.seller-dashboard-heading p {
  margin-top: 3px;
  font-size: 0.9rem;
}

.seller-app-tabs {
  display: grid;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.seller-app-tabs button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 10px;
  min-height: 61px;
  padding: 10px 12px;
  color: var(--ink);
  background: transparent;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.seller-app-tabs button:last-child {
  border-bottom: 0;
}

.seller-app-tabs button.active {
  background: color-mix(in srgb, var(--teal) 10%, var(--panel));
}

.seller-app-tabs button > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.seller-app-tabs b {
  font-size: 0.96rem;
  font-weight: 850;
}

.seller-app-tabs small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-app-tabs i {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 850;
}

.seller-app-tabs button > svg {
  width: 16px;
  height: 16px;
  color: var(--faint);
}

.seller-app-tabs button.active > svg {
  color: var(--teal);
}

.seller-tab-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--muted);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.seller-app-tabs button.active .seller-tab-icon {
  color: #04100f;
  background: var(--teal);
  border-color: var(--teal);
}

.seller-overview-stack,
.seller-listings-workspace,
.seller-performance-section {
  display: grid;
  gap: 14px;
}

.seller-quota-card,
.premium-insights-panel,
.premium-settings-card {
  display: grid;
  gap: 13px;
}

.seller-quota-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.seller-quota-head > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.seller-quota-head b {
  font-weight: 850;
}

.seller-quota-head small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quota-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--amber);
  background: color-mix(in srgb, var(--amber) 13%, transparent);
  border-radius: var(--radius);
}

.quota-icon.premium {
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 13%, transparent);
}

.quota-progress {
  overflow: hidden;
  height: 8px;
  background: var(--input);
  border-radius: 999px;
}

.quota-progress span {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: inherit;
}

.quota-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.quota-stats > div {
  min-width: 0;
  padding: 9px;
}

.seller-performance-head {
  align-items: center;
}

.seller-performance-head h2 {
  font-size: 1.5rem;
}

.seller-performance-head select {
  width: auto;
  max-width: 130px;
  min-height: 40px;
  padding: 8px 28px 8px 10px;
  font-weight: 800;
}

.seller-primary-stats,
.seller-secondary-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.app-stat-tile {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 106px;
  min-width: 0;
  padding: 13px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.app-stat-tile b {
  overflow: hidden;
  font-size: 1.62rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-stat-tile span {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 850;
  text-transform: uppercase;
}

.app-stat-tile small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-section-divider,
.section-rule {
  height: 1px;
  background: var(--line);
}

.premium-insights-head,
.premium-settings-hero {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.premium-insights-head > span,
.premium-settings-hero > span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  border-radius: var(--radius);
}

.premium-insights-head h2,
.premium-settings-hero h2 {
  font-size: 1.12rem;
}

.premium-insights-head p,
.premium-settings-hero p {
  margin-top: 3px;
  font-size: 0.78rem;
}

.premium-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.premium-kpi-grid > span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.premium-kpi-grid b {
  overflow: hidden;
  font-size: 1.1rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-kpi-grid small {
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 750;
}

.premium-leaderboard-button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  color: var(--ink);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}

.premium-leaderboard-button > span:first-child {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--teal);
}

.premium-leaderboard-button > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.premium-leaderboard-button small,
.premium-leaderboard-button em {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.71rem;
  font-style: normal;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-leaderboard-button b {
  overflow: hidden;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-listing-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px auto;
  gap: 7px;
}

.seller-listing-search .icon-button {
  width: 42px;
  height: 42px;
}

.seller-payout-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}

.seller-payout-summary > span {
  display: grid;
  gap: 4px;
}

.payout-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seller-payout-summary small {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
}

.seller-payout-summary strong {
  font-size: 1.7rem;
  font-weight: 900;
}

.premium-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.premium-actions .inline {
  display: inline-grid;
  place-items: center;
  width: 39px;
  height: 39px;
  padding: 0;
}

.premium-actions .outreach {
  color: var(--teal);
}

.collection-progress-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.collection-ring {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  background: conic-gradient(var(--teal) var(--collection-progress), var(--input) 0);
  border-radius: 50%;
  position: relative;
}

.collection-ring::after {
  position: absolute;
  inset: 8px;
  content: '';
  background: var(--panel);
  border-radius: 50%;
}

.collection-ring span {
  position: relative;
  z-index: 1;
  font-size: 1.15rem;
  font-weight: 900;
}

.collection-progress-copy {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.collection-progress-copy h1 {
  overflow: hidden;
  font-size: 1.25rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-progress-copy p {
  font-size: 0.78rem;
}

.collection-metric-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.collection-metric-pills > span {
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.collection-metric-pills .owned b {
  color: var(--teal);
}

.collection-metric-pills small {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
}

.collection-controls,
.collection-toolbar {
  display: grid;
  gap: 9px;
}

.collection-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px;
  gap: 7px;
}

.collection-search-row .collection-search {
  grid-column: 1 / -1;
}

.collection-search-row .icon-button {
  position: static;
  width: 42px;
  height: 42px;
}

.collection-apply {
  min-height: 43px;
}

.collection-filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.collection-filter-chips span {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: var(--muted);
  background: var(--input);
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 750;
}

.collection-missing-game-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 10px;
  color: var(--ink);
  text-align: left;
  background: color-mix(in srgb, var(--teal) 7%, var(--input));
  border: 1px solid color-mix(in srgb, var(--teal) 30%, var(--line));
  border-radius: var(--radius);
}

.collection-missing-game-button > span:first-child {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  border-radius: var(--radius);
}

.collection-missing-game-button > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.collection-missing-game-button b,
.collection-missing-game-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-missing-game-button b {
  font-size: 0.77rem;
}

.collection-missing-game-button small {
  color: var(--muted);
  font-size: 0.66rem;
}

.collection-missing-game-button svg {
  width: 17px;
  height: 17px;
}

.collection-missing-game-button > svg {
  color: var(--muted);
}

.collection-request-sheet {
  display: grid;
  gap: 16px;
  width: min(620px, calc(100vw - 24px));
  max-height: min(88vh, 760px);
  padding: 18px;
}

.collection-request-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.collection-request-form > label,
.collection-request-form > .field-block {
  grid-column: span 1;
}

.collection-request-form > .wide,
.collection-request-form > label.wide,
.collection-request-form > .field-block.wide {
  grid-column: 1 / -1;
}

.collection-request-note,
.collection-request-submitter {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: color-mix(in srgb, var(--teal) 6%, var(--input));
  border: 1px solid color-mix(in srgb, var(--teal) 24%, var(--line));
  border-radius: var(--radius);
}

.collection-request-note > span,
.collection-request-submitter > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  border-radius: var(--radius);
}

.collection-request-note > div,
.collection-request-submitter > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.collection-request-note p,
.collection-request-submitter small,
.collection-request-submitter em {
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
}

.collection-request-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.collection-request-form-actions button {
  min-width: 136px;
}

.collection-request-admin-screen {
  gap: 14px;
}

.collection-request-review-skeleton > span {
  display: block;
  width: 100%;
  height: 28px;
  background: linear-gradient(90deg, var(--input), var(--panel-2), var(--input));
  background-size: 200% 100%;
  border-radius: var(--radius);
  animation: shimmer 1.2s infinite linear;
}

.collection-request-reviewed-at {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 750;
}

.collection-request-reject-button {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 35%, var(--line));
}

.status-chip.bad {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  border-color: color-mix(in srgb, var(--danger) 35%, var(--line));
}

@media (max-width: 520px) {
  .collection-request-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .collection-request-form > label,
  .collection-request-form > .field-block,
  .collection-request-form > .wide,
  .collection-request-form > label.wide,
  .collection-request-form > .field-block.wide {
    grid-column: 1;
  }

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

  .collection-request-form-actions button {
    min-width: 0;
  }
}

.collection-sheet-head,
.collection-sheet-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 44px 72px;
  align-items: center;
  gap: 7px;
}

.collection-sheet-head {
  padding: 9px;
}

.collection-sheet-head b {
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.collection-game-row {
  border-top: 1px solid var(--line);
}

.collection-game-row.owned {
  background: color-mix(in srgb, var(--green) 15%, transparent);
}

.collection-sheet-row {
  min-height: 64px;
  padding: 8px;
}

.collection-check {
  display: block;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.collection-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.collection-check span,
.collection-check svg {
  display: block;
  width: 28px;
  height: 28px;
  color: var(--muted);
}

.collection-game-row.owned .collection-check svg {
  color: var(--green);
}

.collection-game-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.collection-game-copy b,
.collection-game-copy small {
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.collection-game-copy b {
  display: block;
  overflow: visible;
  overflow-wrap: anywhere;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: normal;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}

.collection-game-copy small,
.collection-year {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 650;
}

.collection-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.collection-actions .icon-button {
  width: 32px;
  height: 32px;
}

.collection-actions .icon-button svg {
  width: 15px;
  height: 15px;
}

.collection-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 0 8px 8px 48px;
}

.collection-insight-grid > span {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 6px 4px;
  background: var(--input);
  border-radius: 6px;
  text-align: center;
}

.collection-insight-grid b {
  overflow: hidden;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-insight-grid small {
  color: var(--muted);
  font-size: 0.54rem;
  font-weight: 650;
  line-height: 1.15;
}

.seller-settings-home,
.premium-feature-list,
.premium-membership-actions,
.seller-stripe-settings {
  display: grid;
  gap: 10px;
}

.recent-listing-list,
.recent-listing-item {
  display: grid;
  gap: 8px;
}

.recent-listing-item > .outline {
  justify-self: end;
}

.switch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.switch-row.disabled {
  cursor: default;
  opacity: 0.45;
}

.switch-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-row > i {
  position: relative;
  width: 45px;
  height: 27px;
  background: var(--faint);
  border-radius: 999px;
  transition: background 0.16s ease;
}

.switch-row > i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  content: '';
  background: #fff;
  border-radius: 50%;
  transition: transform 0.16s ease;
}

.switch-row input:checked + i {
  background: var(--teal);
}

.switch-row input:checked + i::after {
  transform: translateX(18px);
}

.premium-feature-list > small,
.settings-section-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.premium-feature-list p {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.35;
}

.premium-feature-list svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
}

.premium-membership-summary {
  display: grid;
  gap: 7px;
  padding: 12px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.premium-membership-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.premium-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.premium-pricing-section {
  display: grid;
  gap: 11px;
  padding: 13px;
  background: color-mix(in srgb, var(--teal) 7%, var(--input));
  border: 1px solid color-mix(in srgb, var(--teal) 34%, var(--line));
  border-radius: var(--radius);
}

.premium-pricing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.premium-pricing-head > div {
  display: grid;
  gap: 2px;
}

.premium-pricing-head small {
  color: var(--teal);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.premium-pricing-head h3 {
  font-size: 1rem;
}

.premium-pricing-head > span {
  padding: 5px 8px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
}

.premium-pricing-section > p {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.45;
}

.premium-plan-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  color: var(--ink);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}

.premium-plan-card.highlighted {
  border-color: var(--teal);
}

.premium-plan-card > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.premium-plan-card i {
  padding: 3px 6px;
  color: #04100f;
  background: var(--teal);
  border-radius: 999px;
  font-size: 0.61rem;
  font-style: normal;
  font-weight: 850;
}

.premium-plan-card strong {
  font-size: 1.3rem;
}

.premium-plan-card small,
.field-help {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 650;
  line-height: 1.4;
}

.broadcast-listing-summary {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 10px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.broadcast-listing-summary .cover {
  width: 76px;
  height: 84px;
}

.broadcast-listing-summary > span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.broadcast-listing-summary b,
.broadcast-listing-summary small,
.broadcast-listing-summary em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.broadcast-listing-summary small,
.broadcast-listing-summary em {
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 650;
}

.premium-leaderboard-list {
  display: grid;
  gap: 7px;
}

.premium-leaderboard-list article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.premium-leaderboard-list article > strong {
  color: var(--teal);
  font-size: 1.05rem;
}

.premium-leaderboard-list article > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.premium-leaderboard-list b,
.premium-leaderboard-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-leaderboard-list small,
.premium-leaderboard-list em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 650;
}

@media (max-width: 899px) {
  .screen-scroll {
    padding: 12px 14px 22px;
  }

  .screen-stack {
    gap: 14px;
  }

  h1,
  .screen-head h1 {
    font-size: 1.72rem;
    line-height: 1.1;
  }

  h2,
  .screen-title {
    font-size: 1.3rem;
    line-height: 1.15;
  }

  h3 {
    font-size: 1rem;
  }

  .screen-head p {
    font-size: 0.85rem;
  }

  .sheet {
    width: min(100%, 520px);
    max-height: min(92svh, 780px);
  }

  .listing-editor-sheet {
    width: min(100%, 620px);
  }
}

@media (max-width: 390px) {
  html {
    font-size: 13px;
  }

  .collection-progress-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .collection-ring {
    width: 70px;
    height: 70px;
  }

  .collection-sheet-head,
  .collection-sheet-row {
    grid-template-columns: 34px minmax(0, 1fr) 38px 66px;
    gap: 5px;
  }

  .collection-insight-grid {
    padding-left: 42px;
  }

  .seller-app-tabs button {
    grid-template-columns: 34px minmax(0, 1fr) auto 16px;
    gap: 8px;
    padding-inline: 9px;
  }

  .seller-tab-icon {
    width: 34px;
    height: 34px;
  }
}

/* App-matched contextual help and compact customer tracking. */

.app-stat-label,
.premium-kpi-label {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 4px;
}

.app-stat-label > span,
.premium-kpi-label > small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.context-help {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  z-index: 25;
}

.context-help summary {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  color: var(--muted);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  list-style: none;
}

.context-help summary::-webkit-details-marker {
  display: none;
}

.context-help summary svg {
  width: 15px;
  height: 15px;
}

.context-help[open] summary,
.context-help summary:hover {
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 11%, transparent);
}

.context-help-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  right: 0;
  width: min(240px, calc(100vw - 40px));
  padding: 12px;
  color: var(--ink);
  background: var(--help-popover);
  border: 1px solid var(--help-popover-line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.42);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.42;
  text-align: left;
  text-transform: none;
  white-space: normal;
}

.seller-primary-stats .app-stat-tile:nth-child(odd) .context-help-popover,
.seller-secondary-stats .app-stat-tile:nth-child(odd) .context-help-popover,
.premium-kpi-grid > span:nth-child(odd) .context-help-popover {
  right: auto;
  left: 8px;
}

.app-stat-tile,
.premium-kpi-grid > span {
  position: relative;
}

.app-stat-tile .context-help,
.premium-kpi-label .context-help {
  position: static;
}

.app-stat-tile .context-help-popover,
.premium-kpi-grid > span .context-help-popover {
  top: calc(100% - 6px);
  right: 8px;
}

.profile-overview-card .stat-grid .profile-rating-tile:only-child {
  grid-column: 1 / -1;
}

.premium-leaderboard-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px 16px;
  align-items: center;
  min-width: 0;
  color: var(--ink);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.premium-leaderboard-row .premium-leaderboard-button {
  grid-template-columns: 36px minmax(0, 1fr);
  min-width: 0;
  padding-right: 0;
  background: transparent;
  border: 0;
}

.premium-leaderboard-row .context-help {
  justify-self: center;
}

.premium-leaderboard-row .context-help-popover {
  right: -28px;
}

.premium-leaderboard-chevron {
  display: grid;
  place-items: center;
  color: var(--muted);
  pointer-events: none;
}

.premium-leaderboard-chevron svg {
  width: 14px;
  height: 14px;
}

.collection-console-empty {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 20px;
  text-align: center;
}

.customer-tracking-panel {
  display: grid;
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.customer-tracking-head {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  padding-bottom: 9px;
}

.customer-tracking-icon {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 11%, transparent);
  border-radius: 8px;
}

.customer-tracking-icon svg {
  width: 17px;
  height: 17px;
}

.customer-tracking-head > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.customer-tracking-head small,
.customer-tracking-list dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-tracking-head a,
.customer-tracking-head strong,
.customer-tracking-head > div > span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.customer-tracking-head a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal);
}

.customer-tracking-head a svg {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
}

.customer-tracking-list {
  display: grid;
  margin: 0;
}

.customer-tracking-list > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: baseline;
  min-width: 0;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}

.customer-tracking-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
}

.customer-tracking-details {
  padding: 8px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.customer-tracking-history {
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.customer-tracking-history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
  font-size: 0.8rem;
}

.customer-tracking-history summary span {
  color: var(--muted);
  font-size: 0.7rem;
}

.listing-start-backdrop {
  padding: 16px;
}

.listing-start-sheet {
  display: grid;
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  gap: 18px;
  margin: auto;
  padding: 20px;
  overflow-y: auto;
}

.listing-start-options {
  display: grid;
  gap: 10px;
}

.listing-start-options > button {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  align-items: center;
  min-width: 0;
  gap: 12px;
  padding: 15px;
  color: var(--ink);
  text-align: left;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.listing-start-options > button:active,
.listing-start-options > button:focus-visible {
  background: color-mix(in srgb, var(--teal) 9%, var(--input));
  border-color: var(--teal);
}

.listing-start-options > button > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.listing-start-options small {
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.listing-start-options b {
  font-size: 0.95rem;
  line-height: 1.25;
}

.listing-start-options p,
.listing-start-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.45;
}

.listing-start-option-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 12%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--teal) 34%, var(--line));
  border-radius: 8px;
}

.listing-start-option-icon.scan {
  color: var(--ink-on-accent, #031005);
  background: var(--teal);
}

.listing-start-option-icon svg,
.listing-start-options > button > i svg {
  width: 22px;
  height: 22px;
}

.listing-start-options > button > i {
  display: grid;
  place-items: center;
  color: var(--teal);
}

.listing-start-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.listing-start-note svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: var(--teal);
}

/* Keep continuous feeds visually stable while the next batch is appended. */
.inline-infinite-loading {
  display: grid !important;
  width: 100%;
  min-height: 74px !important;
  gap: 8px;
  padding: 13px 2px;
}

.inline-infinite-loading > span {
  display: block;
  height: 14px;
  background: linear-gradient(90deg, var(--input), var(--panel-2), var(--input));
  background-size: 200% 100%;
  border-radius: 5px;
  animation: shimmer 1.2s infinite linear;
}

.inline-infinite-loading > span:nth-child(2) {
  width: 78%;
}

.inline-infinite-loading > span:nth-child(3) {
  width: 58%;
}

.inline-infinite-loading[data-infinite-feed^="seller-"] {
  min-height: 46px !important;
  padding-block: 8px;
}

.inline-infinite-loading[data-infinite-feed^="seller-"] > span {
  height: 8px;
}

html.infinite-render-lock,
html.infinite-render-lock body {
  overflow-anchor: none;
  scroll-behavior: auto !important;
}
