:root {
  color-scheme: light;
  --bg: #f6f8f5;
  --bg-strong: #eef4ed;
  --surface: #ffffff;
  --surface-soft: #f9fbf7;
  --ink: #12201f;
  --muted: #60716f;
  --muted-strong: #405250;
  --line: #dce6e1;
  --line-strong: #c6d4cf;
  --brand: #083f3d;
  --brand-2: #0f6a65;
  --mint: #7ef0c1;
  --gold: #ffce73;
  --coral: #ff7666;
  --sky: #dff0ff;
  --danger: #c83d34;
  --success: #16825f;
  --shadow: 0 20px 55px rgba(20, 41, 38, 0.13);
  --shadow-sm: 0 10px 30px rgba(20, 41, 38, 0.08);
  --radius: 8px;
  --radius-lg: 14px;
  --header-h: 78px;
  --max: 1360px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 5% 0%, rgba(126, 240, 193, 0.2), transparent 28rem),
    linear-gradient(180deg, #ffffff 0, var(--bg) 30rem);
  color: var(--ink);
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  border-bottom: 1px solid rgba(198, 212, 207, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(180px, 270px) minmax(260px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand);
  color: var(--mint);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.18);
}

.brand-mark svg,
.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-size: 18px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-tag {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.field-shell {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.field-shell:focus-within {
  border-color: rgba(15, 106, 101, 0.6);
  box-shadow: 0 0 0 4px rgba(126, 240, 193, 0.18);
}

.field-shell input,
.field-shell select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.field-shell select {
  appearance: none;
}

.search-shell {
  background: #ffffff;
}

.search-shell .icon {
  color: var(--brand-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.btn {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

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

.btn:focus-visible {
  outline: 3px solid rgba(255, 206, 115, 0.8);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(8, 63, 61, 0.18);
}

.btn-primary:hover {
  background: #0b504d;
}

.btn-sell {
  background: linear-gradient(135deg, #083f3d 0%, #116c66 58%, #ffce73 230%);
  color: #ffffff;
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.btn-soft {
  background: #eaf8f3;
  color: var(--brand);
}

.btn-danger {
  color: #ffffff;
  background: var(--danger);
}

.btn-icon {
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.avatar {
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #eaf8f3;
  color: var(--brand);
  font-weight: 850;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-session {
  display: none;
}

.main-wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 46px;
  min-width: 0;
}

.market-grid {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  display: grid;
  gap: 14px;
}

.panel,
.listing-card,
.detail-card,
.auth-card,
.drawer-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.panel {
  padding: 16px;
}

.panel-title {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0;
}

.category-list,
.quick-list {
  display: grid;
  gap: 7px;
}

.category-btn,
.quick-btn {
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 750;
  text-align: left;
}

.category-btn:hover,
.quick-btn:hover,
.category-btn.active,
.quick-btn.active {
  border-color: #cfeee2;
  background: #eefaf5;
  color: var(--brand);
}

.category-left,
.quick-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.category-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cat-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--bg-strong);
  color: var(--brand);
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.compact-field {
  min-width: 0;
}

.compact-field label,
.form-field label {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.compact-field input,
.compact-field select,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  outline: 0;
}

.compact-field input,
.compact-field select {
  height: 40px;
  padding: 0 10px;
}

.form-field input,
.form-field select {
  height: 46px;
  padding: 0 12px;
}

.form-field textarea {
  min-height: 112px;
  resize: vertical;
  padding: 12px;
  line-height: 1.45;
}

.compact-field input:focus,
.compact-field select:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(15, 106, 101, 0.62);
  box-shadow: 0 0 0 4px rgba(126, 240, 193, 0.16);
}

.content-area {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.command-band {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(8, 63, 61, 0.97), rgba(13, 91, 86, 0.95)),
    var(--brand);
  color: #ffffff;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  min-width: 0;
}

.command-band::after {
  content: "";
  position: absolute;
  inset: auto -42px -112px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 206, 115, 0.2);
}

.command-band > * {
  min-width: 0;
}

.command-title {
  margin: 0 0 5px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.command-copy {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.command-art {
  position: relative;
  z-index: 1;
  width: 236px;
  height: 86px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mini-item {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  display: grid;
  place-items: center;
  color: var(--gold);
  transform: rotate(var(--tilt));
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.result-copy {
  display: grid;
  gap: 2px;
}

.result-copy h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 900;
}

.result-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.tabs {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 4px;
}

.tab {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-strong);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}

.tab.active {
  background: var(--brand);
  color: #ffffff;
}

.sort-select {
  width: 168px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 750;
  outline: 0;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.listing-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: 190px 1fr;
  min-height: 370px;
  min-width: 0;
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    border-color 170ms ease;
}

.listing-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 106, 101, 0.38);
  box-shadow: var(--shadow);
}

.listing-media {
  position: relative;
  overflow: hidden;
  background: #e7efec;
}

.listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.listing-card:hover .listing-media img {
  transform: scale(1.035);
}

.listing-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.badge {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand);
  font-size: 11px;
  font-weight: 850;
  box-shadow: 0 8px 16px rgba(19, 36, 34, 0.12);
}

.badge-hot {
  background: var(--gold);
  color: #372609;
}

.favorite-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
  box-shadow: 0 8px 16px rgba(19, 36, 34, 0.14);
}

.favorite-btn.active {
  color: #ffffff;
  background: var(--coral);
}

.listing-body {
  display: grid;
  gap: 12px;
  padding: 13px;
  min-width: 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.price {
  color: var(--ink);
  font-size: 23px;
  line-height: 1.04;
  font-weight: 900;
}

.condition {
  color: var(--success);
  font-size: 12px;
  font-weight: 850;
}

.listing-title {
  min-height: 44px;
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.listing-meta {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.meta-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.meta-line span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: auto;
}

.empty-state {
  min-height: 320px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.empty-state h3 {
  margin: 10px 0 7px;
  font-size: 22px;
}

.empty-state p {
  max-width: 460px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 650;
}

.mobile-filter-toggle {
  display: none;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(6, 22, 21, 0.48);
  backdrop-filter: blur(8px);
}

.overlay.open {
  display: block;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.modal.open {
  display: flex;
}

.modal-panel {
  width: min(980px, 100%);
  max-height: min(780px, calc(100vh - 44px));
  overflow: auto;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-head,
.drawer-head {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-head h3,
.drawer-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 0;
}

.detail-media {
  min-height: 520px;
  background: #e7efec;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-content {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 20px;
}

.detail-price {
  color: var(--brand);
  font-size: 36px;
  line-height: 1;
  font-weight: 950;
}

.detail-title {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
  font-weight: 900;
}

.detail-desc {
  margin: 0;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.fact {
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--surface-soft);
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.fact strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.seller-card,
.message-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  background: #ffffff;
}

.seller-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seller-row strong {
  display: block;
  font-size: 14px;
}

.seller-row span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.message-box {
  display: grid;
  gap: 10px;
}

.message-box textarea {
  min-height: 84px;
}

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 100;
  display: none;
  width: min(560px, 100%);
  padding: 12px;
}

.drawer.open {
  display: block;
}

.drawer-panel {
  height: 100%;
  overflow: auto;
}

.drawer-body {
  display: grid;
  gap: 14px;
  padding: 16px 18px 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.photo-preview {
  min-height: 184px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(126, 240, 193, 0.16), rgba(255, 206, 115, 0.14)),
    var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  min-height: 184px;
  object-fit: cover;
}

.auth-card {
  width: min(430px, 100%);
  padding: 22px;
}

.auth-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--brand);
  color: var(--mint);
}

.auth-card h2 {
  margin: 16px 0 8px;
  font-size: 28px;
  line-height: 1.05;
}

.auth-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 650;
}

.google-slot {
  min-height: 44px;
  display: grid;
  gap: 10px;
}

.auth-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.profile-menu {
  position: absolute;
  top: 68px;
  right: max(16px, calc((100% - var(--max)) / 2));
  z-index: 60;
  width: 280px;
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-menu.open {
  display: block;
}

.profile-top {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.profile-top strong,
.profile-top span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-top span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-actions {
  display: grid;
  padding: 8px;
}

.profile-actions button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.profile-actions button:hover {
  background: var(--surface-soft);
}

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

.post-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px;
  background: #ffffff;
}

.post-row img {
  width: 92px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #e7efec;
}

.post-row h4 {
  margin: 0 0 5px;
  font-size: 15px;
}

.post-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  min-width: min(420px, calc(100% - 32px));
  max-width: 560px;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  border-radius: var(--radius);
  padding: 13px 15px;
  background: var(--brand);
  color: #ffffff;
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 750;
  text-align: center;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: auto minmax(140px, 220px) minmax(220px, 1fr) auto;
  }

  .header-actions {
    display: none;
  }

  .mobile-filter-toggle {
    display: inline-flex;
  }

  .market-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 50;
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
    display: none;
    width: 100%;
    padding: 14px 16px 20px;
    background: rgba(246, 248, 245, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .sidebar.open {
    display: grid;
  }

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

@media (max-width: 780px) {
  :root {
    --header-h: auto;
  }

  .site-header {
    height: auto;
  }

  .header-inner {
    width: calc(100vw - 22px);
    max-width: calc(100vw - 22px);
    grid-template-columns: auto 1fr auto;
    padding: 10px 0;
    position: relative;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .desktop-session {
    display: none !important;
  }

  .btn.mobile-session {
    grid-column: 2;
    grid-row: 1;
    display: inline-flex;
    justify-self: start;
  }

  .avatar.mobile-session {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    justify-self: start;
  }

  .brand-copy {
    display: none;
  }

  .location-shell,
  .search-shell {
    grid-column: 1 / -1;
  }

  .mobile-filter-toggle {
    grid-column: 1 / -1;
    width: 100%;
  }

  .sidebar {
    inset: 132px 0 auto 0;
    max-height: calc(100vh - 132px);
  }

  .main-wrap {
    width: calc(100vw - 22px);
    max-width: calc(100vw - 22px);
    padding-top: 12px;
  }

  .btn.mobile-session {
    width: 44px;
    min-width: 44px;
    padding: 0;
    font-size: 0;
  }

  .btn.mobile-session .icon {
    width: 19px;
    height: 19px;
  }

  .command-band {
    grid-template-columns: 1fr;
    min-height: 0;
    width: 100%;
    max-width: 100%;
  }

  .command-title {
    max-width: 330px;
    font-size: 25px;
  }

  .command-copy {
    max-width: 340px;
  }

  .command-art {
    width: 100%;
    max-width: 100%;
    height: 74px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tabs {
    width: 100%;
  }

  .tab {
    flex: 1;
  }

  .sort-select {
    width: 100%;
  }

  .listings-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .listing-card {
    width: 100%;
    max-width: 100%;
    grid-template-rows: 220px 1fr;
  }

  .price-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .condition {
    justify-self: start;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-media {
    min-height: 280px;
  }

  .detail-facts,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .post-row img {
    width: 76px;
    height: 68px;
  }

  .post-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .post-actions .btn {
    flex: 1;
  }
}

@media (max-width: 440px) {
  .btn {
    padding: 0 12px;
  }

  .command-title {
    font-size: 28px;
  }

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

  .detail-price {
    font-size: 31px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
