: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);
  --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: Inter, ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe 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;
  --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);
}

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

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;
}

.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;
}

.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;
}

.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 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 span {
  display: block;
  color: inherit;
  font-size: 0.72rem;
  opacity: 0.7;
}

.saved-tabs {
  display: grid;
  grid-template-columns: repeat(2, 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.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 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 i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--muted);
  font-style: normal;
  transform: rotate(180deg);
}

.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;
}

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

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

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;
}

.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;
}

.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;
}

.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 {
  width: 68px;
  min-height: 30px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 950;
}

.save-pill.active {
  color: #111;
  background: var(--amber);
  border-color: var(--amber);
}

.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;
}

.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-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-thumbs {
  grid-auto-columns: 92px;
}

.product-thumbs img {
  width: 92px;
  height: 92px;
}

.product-thumbs img.active {
  border: 3px solid var(--teal);
}

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

.product-summary h1 {
  font-size: clamp(2.55rem, 11vw, 5.4rem);
  line-height: 0.96;
}

.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: 118px;
  align-content: center;
}

.detail-tile b {
  overflow-wrap: anywhere;
  font-size: clamp(1.45rem, 5vw, 2.4rem);
  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.7rem, 6vw, 3rem);
}

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

.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: 12px;
  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 {
  position: relative;
  padding-right: min(28vw, 330px);
}

.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);
}

.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;
}

.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-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-button {
  min-width: 34px;
  min-height: 34px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.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 {
  width: min(76%, 560px);
  padding: 10px 12px;
  background: var(--panel-2);
  border-radius: var(--radius);
}

.message.mine {
  justify-self: end;
  color: #04100f;
  background: var(--teal);
}

.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 {
  grid-template-columns: repeat(auto-fill, minmax(94px, 118px));
  align-items: start;
}

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

.sell-form .image-grid figcaption,
.listing-editor-sheet .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);
}

.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%;
}

.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: 132px;
  min-width: 132px;
  max-width: 132px;
  justify-self: end;
}

.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-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;
  gap: 8px;
  width: min(360px, calc(100vw - 28px));
}

.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 {
  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;
}

@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 {
    grid-column: span 3;
  }

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

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

  .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(120px, 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 > .stat-grid {
    grid-column: 1;
  }

  .money-side {
    position: static;
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 100%;
    min-width: 0;
  }

  .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) {
  .screen-scroll {
    padding-inline: 12px;
  }

  .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: 6px;
    padding: 6px;
  }

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

  .seller-tabs button b {
    font-size: clamp(0.72rem, 2.7vw, 0.9rem);
    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;
  }
}

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

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

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

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

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

  .seller-order-stats,
  .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;
  }
}
