:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --panel: #ffffff;
  --panel-2: #f4f2ec;
  --ink: #151515;
  --muted: #6f6f66;
  --line: #e6e0d6;
  --accent: #8cc63f;
  --accent-dark: #5d8f18;
  --accent-soft: #f3fae8;
  --accent-ink: #263711;
  --warn: #d78b11;
  --danger: #c74343;
  --shadow: 0 20px 55px rgba(23, 33, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, rgba(140, 198, 63, 0.22), rgba(245, 247, 244, 0) 320px),
    var(--bg);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #263711;
  font-weight: 800;
  background: var(--accent);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(126, 183, 27, 0.26);
}

.brand-mark.app-logo-mark {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px;
  background: #ffffff;
  border: 1px solid rgba(126, 183, 27, 0.16);
}

.brand-mark.app-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-link {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--accent-dark);
  font-weight: 800;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(23, 33, 29, 0.06);
}

.icon-link.wide {
  width: auto;
  font-size: 14px;
  white-space: nowrap;
}

.publish-layout,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.publish-panel,
.preview-card,
.saved-list {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(217, 225, 220, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.publish-panel {
  overflow: hidden;
}

.section-heading {
  padding: 26px 28px 16px;
  background:
    linear-gradient(135deg, rgba(126, 183, 27, 0.1), rgba(215, 139, 17, 0.08)),
    #ffffff;
  border-bottom: 1px solid var(--line);
}

.publish-panel .section-heading h1 {
  color: #151515;
}

.publish-panel .section-heading .eyebrow {
  color: #5d8f18;
}

.chat-mode-hint {
  max-width: 680px;
  margin: 10px 0 0;
  color: #526155;
  line-height: 1.7;
}

.publish-chat-mode {
  background: #ededed;
}

.publish-chat-mode .app-shell {
  width: min(100%, 480px);
  height: 100dvh;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
}

.publish-chat-mode .topbar,
.publish-chat-mode .section-heading,
.publish-chat-mode .preview-panel,
.publish-chat-mode .listing-form > .form-block:not(.ai-block) {
  display: none;
}

.publish-chat-mode .publish-layout {
  display: block;
  height: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.publish-chat-mode .publish-panel {
  height: 100%;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.publish-chat-mode .listing-form {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  height: 100%;
  min-height: 0;
  padding: 0;
}

.publish-chat-mode .draft-status {
  display: none;
}

.publish-chat-mode .ai-block {
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr) auto;
  gap: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #ededed;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.publish-chat-mode .ai-block .block-title-row {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 74px;
  align-items: center;
  min-height: 54px;
  padding: 0 10px;
  margin: 0;
  text-align: center;
  background: rgba(247, 247, 247, 0.96);
  border-bottom: 1px solid #d9d9d9;
  backdrop-filter: blur(14px);
}

.publish-chat-mode .ai-block .block-title-row h2 {
  margin: 0;
  color: #111111;
  font-size: 17px;
  font-weight: 800;
}

.publish-chat-mode .ai-block .block-title-row p {
  margin-bottom: 0;
  color: #6f756f;
  font-size: 11px;
  line-height: 1.3;
}

.chat-back-link {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #161616;
  text-decoration: none;
  font-size: 32px;
  line-height: 1;
}

.publish-chat-mode .count-badge {
  min-width: 0;
  padding: 3px 6px;
  color: #687168;
  font-size: 10px;
  font-weight: 700;
  background: transparent;
  border-radius: 0;
}

.chat-language-select {
  display: none;
  grid-template-columns: auto minmax(0, 132px);
  align-items: center;
  justify-content: start;
  gap: 8px;
  color: #68756b;
  font-size: 13px;
}

.chat-language-select select {
  height: 34px;
  padding: 0 28px 0 10px;
  font-size: 13px;
  border-radius: 8px;
}

.publish-chat-mode .ai-chat-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #ededed;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.publish-chat-mode .ai-chat-messages {
  align-content: start;
  min-height: 0;
  max-height: none;
  padding: 14px 12px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.chat-photo-preview {
  display: flex;
  gap: 8px;
  margin-top: 0;
  padding: 8px 12px 7px;
  overflow-x: auto;
  overflow-y: hidden;
  background: #f7f7f7;
  border-top: 1px solid #dddddd;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.chat-photo-preview::-webkit-scrollbar {
  display: none;
}

.chat-photo-preview .photo-tile {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  aspect-ratio: auto;
  border-radius: 6px;
}

.chat-photo-preview .photo-tile button {
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  font-size: 14px;
}

.chat-photo-preview .photo-tile span {
  left: 4px;
  bottom: 4px;
  padding: 1px 5px;
  font-size: 9px;
}

.chat-photo-preview:empty {
  display: none;
}

.chat-composer-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 8px;
  padding: 0 10px 8px;
  background: #f7f7f7;
}

.chat-upload-button,
.location-share-button,
.ai-refine-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #314139;
  font-weight: 800;
  font-size: 13px;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 6px;
  cursor: pointer;
}

.location-share-button,
.ai-refine-button {
  gap: 4px;
}

.chat-upload-button input {
  display: none;
}

.location-confirm-card {
  max-width: min(86%, 420px);
}

.location-confirm-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.location-confirm-card p {
  margin: 0 0 8px;
  color: #4b574d;
  font-size: 13px;
  line-height: 1.45;
}

.location-map-row {
  margin-bottom: 8px;
}

.location-map-row a {
  color: #087f3c;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.location-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.location-choice-list button {
  min-height: 30px;
  padding: 0 10px;
  color: #27352d;
  font-size: 12px;
  font-weight: 800;
  background: #f5fbf3;
  border: 1px solid #d4e4cc;
  border-radius: 999px;
}

.publish-chat-mode .sticky-submit {
  position: static;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0 10px max(8px, env(safe-area-inset-bottom));
  margin: 0;
  background: #f7f7f7;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.publish-chat-mode #clearButton,
.publish-chat-mode #saveDraftButton {
  display: none;
}

.publish-chat-mode .submit-action {
  min-height: 38px;
  color: #ffffff;
  background: #07c160;
  border-radius: 6px;
  font-size: 14px;
}

.publish-chat-mode .status-line {
  min-height: 0;
  margin: 0;
  padding: 0 12px 8px;
  color: #7b807b;
  font-size: 12px;
  background: #ededed;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.02;
}

.listing-form {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.form-block {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.block-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.block-title-row h2 {
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 1.2;
}

.block-title-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.count-badge {
  flex: 0 0 auto;
  min-width: 52px;
  padding: 6px 10px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  background: var(--accent-soft);
  border-radius: 999px;
}

.upload-dropzone {
  display: grid;
  min-height: 178px;
  place-items: center;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(126, 183, 27, 0.08), rgba(215, 139, 17, 0.08)),
    var(--panel-2);
  border: 1.5px dashed #94aea2;
  border-radius: 8px;
}

.upload-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-dropzone.is-full {
  opacity: 0.65;
  cursor: not-allowed;
}

.upload-dropzone.is-full .upload-icon {
  background: #9eb7a9;
}

.upload-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  background: var(--accent);
  border-radius: 50%;
}

.upload-dropzone strong {
  font-size: 18px;
}

.upload-dropzone small {
  color: var(--muted);
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.photo-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-tile button {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #ffffff;
  cursor: pointer;
  background: rgba(23, 33, 29, 0.74);
  border: 0;
  border-radius: 50%;
}

.ai-row {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 10px;
}

.ai-chat-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f7faf8;
  border: 1px solid rgba(126, 183, 27, 0.22);
  border-radius: 8px;
}

.ai-chat-messages {
  display: grid;
  max-height: 260px;
  gap: 8px;
  overflow-y: auto;
  padding-right: 2px;
}

.ai-chat-bubble {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.ai-chat-bubble.assistant {
  justify-self: start;
  color: #191919;
  background: #ffffff;
  border: 0;
}

.ai-chat-bubble.seller {
  justify-self: end;
  color: #101010;
  background: #95ec69;
  border: 0;
}

.ai-chat-bubble.media-message {
  display: grid;
  gap: 7px;
  padding: 8px;
}

.chat-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 78px));
  gap: 4px;
}

.chat-media-grid img,
.chat-media-grid video {
  display: block;
  width: 78px;
  height: 78px;
  object-fit: cover;
  background: #dfe4df;
  border-radius: 6px;
}

.ai-chat-bubble.media-message span {
  padding: 0 3px 2px;
}

.product-recommendation-message {
  display: grid;
  width: min(100%, 360px);
  gap: 9px;
}

.product-recommendation-message p {
  margin: 0;
}

.ai-product-card-list {
  display: grid;
  gap: 8px;
}

.ai-product-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  padding: 8px;
  background: #f7faf8;
  border: 1px solid rgba(126, 183, 27, 0.18);
  border-radius: 8px;
}

.ai-product-card-image {
  display: grid;
  width: 74px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  color: #6a7d66;
  background: #edf5e9;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
}

.ai-product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-product-card-body {
  min-width: 0;
}

.ai-product-card-body strong,
.ai-product-card-body span {
  display: block;
}

.ai-product-card-body strong {
  color: #202420;
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ai-product-card-body span {
  margin-top: 4px;
  color: #7c837b;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
}

.ai-product-card-footer b {
  color: #d60000;
  font-size: 15px;
  line-height: 1;
}

.ai-product-card-footer em {
  flex: 0 0 auto;
  color: #3b662d;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 4px 8px;
  background: rgba(149, 236, 105, 0.34);
  border-radius: 999px;
}

.ai-chat-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px 54px;
  gap: 7px;
  align-items: center;
  min-height: 53px;
  padding: 8px 10px 7px;
  background: #f7f7f7;
  border-top: 1px solid #dddddd;
}

.ai-chat-input-row textarea {
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  padding: 8px 11px;
  resize: none;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 6px;
  line-height: 1.45;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  word-break: break-word;
  white-space: pre-wrap;
  overscroll-behavior: contain;
}

.ai-chat-input-row .mic-button {
  width: 34px;
  min-width: 34px;
  height: 36px;
  padding: 0;
  color: #3f4540;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 50%;
  font-size: 12px;
}

.ai-chat-input-row .mic-button.listening {
  color: #ffffff;
  background: #07c160;
  border-color: #07c160;
}

.ai-chat-input-row .ai-send-button {
  min-height: 36px;
  padding: 0;
  color: #ffffff;
  background: #07c160;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
}

.ai-send-button,
.ai-refine-button {
  width: 100%;
  margin-top: 0;
}

.ai-refine-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  margin-top: 0;
  color: #314139;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 6px;
  font-size: 13px;
}

.ai-source-text {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}

label,
.full-field {
  display: grid;
  gap: 7px;
}

label span,
.full-field span,
.choice-group legend {
  color: #314139;
  font-size: 13px;
  font-weight: 800;
}

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

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(126, 183, 27, 0.14);
}

.icon-button,
.primary-action,
.secondary-action,
.submit-action,
.text-button {
  cursor: pointer;
  border-radius: 8px;
  border: 0;
}

.mic-button {
  min-height: 48px;
  color: var(--accent-dark);
  font-size: 21px;
  background: var(--accent-soft);
  border: 1px solid #badccb;
}

.primary-action {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  color: #ffffff;
  font-weight: 800;
  background: var(--accent);
}

.primary-action:hover,
.submit-action:hover {
  background: var(--accent-dark);
}

.spark {
  font-size: 18px;
}

.status-line {
  min-height: 20px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status-line.good {
  color: var(--accent-dark);
}

.status-line.warn {
  color: var(--warn);
}

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

.money-input {
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 8px;
}

.choice-group {
  min-width: 0;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

.location-capture {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 11px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.location-capture button {
  min-height: 36px;
  padding: 0 12px;
  color: #ffffff;
  cursor: pointer;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.location-capture span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.segmented button {
  min-height: 38px;
  padding: 8px 12px;
  color: #314139;
  cursor: pointer;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.segmented button.active {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.full-field {
  margin-top: 16px;
}

.compact-field {
  margin: 0 0 12px;
}

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

.translation-card {
  min-width: 0;
  padding: 12px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.translation-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.translation-card strong {
  display: block;
  color: var(--ink);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.translation-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.sticky-submit {
  position: sticky;
  bottom: 14px;
  z-index: 5;
  display: grid;
  grid-template-columns: 96px 104px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(23, 33, 29, 0.16);
  backdrop-filter: blur(14px);
}

.secondary-action,
.submit-action {
  min-height: 48px;
  font-weight: 800;
}

.secondary-action {
  color: #314139;
  background: #edf2ef;
}

.submit-action {
  color: #ffffff;
  background: var(--accent);
}

.preview-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 16px;
}

.preview-card {
  overflow: hidden;
}

.cover-preview {
  display: grid;
  min-height: 250px;
  place-items: center;
  color: #83918b;
  font-weight: 800;
  background:
    linear-gradient(135deg, rgba(126, 183, 27, 0.12), rgba(215, 139, 17, 0.12)),
    #e8eee9;
}

.cover-preview.has-image {
  padding: 0;
}

.cover-preview img,
.cover-preview video {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
  background: #111016;
}

.photo-tile video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-tile span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 6px;
  color: #ffffff;
  background: rgba(126, 183, 27, 0.88);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.preview-content {
  padding: 18px;
}

.preview-top,
.preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.preview-top span,
.preview-meta span {
  padding: 5px 9px;
  color: #3a3a33;
  font-size: 12px;
  font-weight: 800;
  background: #edf2ef;
  border-radius: 999px;
}

.preview-content h2 {
  margin: 14px 0 8px;
  font-size: 22px;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.preview-content strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 25px;
}

.preview-content p {
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.saved-list {
  padding: 16px;
}

.text-button {
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
  background: transparent;
}

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

.saved-item {
  display: grid;
  gap: 4px;
  padding: 11px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.saved-item strong {
  overflow-wrap: anywhere;
}

.saved-item span {
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  top: 76px;
  left: 50%;
  z-index: 20;
  max-width: min(340px, calc(100vw - 40px));
  padding: 10px 14px;
  text-align: center;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.4;
  background: rgba(23, 33, 29, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(24, 31, 27, 0.16);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translate(-50%, -8px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.admin-shell {
  width: min(1020px, calc(100% - 32px));
}

.admin-layout {
  grid-template-columns: minmax(0, 1fr) 310px;
}

.code-panel {
  overflow-x: auto;
  margin: 0;
  padding: 16px;
  color: #eaf6ef;
  background: #1c2923;
  border-radius: 8px;
}

.code-panel code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 14px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.switch-row strong,
.switch-row small {
  display: block;
}

.switch-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 31px;
}

.switch input {
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #b8c5be;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.switch span::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 23px;
  height: 23px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.switch input:checked + span {
  background: var(--accent);
}

.switch input:checked + span::before {
  transform: translateX(23px);
}

.word-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.required-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.required-field-grid label {
  display: flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  color: #314139;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.required-field-grid input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--accent);
}

.admin-ai-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 12px 14px;
  color: #4a3300;
  background: #fff5d8;
  border: 1px solid #ffd36b;
  border-radius: 8px;
  font-size: 13px;
}

.admin-ai-notice[hidden] {
  display: none;
}

.admin-ai-notice strong {
  color: #b45000;
  font-size: 14px;
}

.admin-ai-notice span {
  min-width: 0;
  line-height: 1.45;
}

.admin-ai-notice a {
  color: #2f5e19;
  font-weight: 900;
  text-decoration: none;
}

.admin-catalog-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 12px 14px;
  background: #f7faf8;
  border: 1px solid rgba(126, 183, 27, 0.24);
  border-radius: 8px;
}

.admin-catalog-status div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.admin-catalog-status strong {
  color: #263711;
  font-size: 14px;
}

.admin-catalog-status span,
.admin-catalog-status small {
  color: #68756b;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-catalog-status button {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.admin-metric-grid article {
  min-width: 0;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-metric-grid strong,
.admin-metric-grid span {
  display: block;
}

.admin-metric-grid strong {
  color: var(--accent-dark);
  font-size: 24px;
  line-height: 1;
}

.admin-metric-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-queue-table {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.admin-queue-table article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: rgba(126, 183, 27, 0.06);
  border: 1px solid rgba(126, 183, 27, 0.22);
  border-radius: 8px;
}

.admin-queue-table span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.admin-queue-table strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.admin-queue-table small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.admin-queue-table em {
  padding: 5px 8px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.admin-card .admin-link {
  width: auto;
  margin-top: 18px;
}

.admin-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.admin-review-grid a {
  position: relative;
  display: grid;
  min-height: 102px;
  gap: 6px;
  padding: 14px;
  color: #151515;
  background:
    linear-gradient(135deg, rgba(126, 183, 27, 0.12), rgba(255, 255, 255, 0.9)),
    #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-review-grid strong,
.admin-review-grid span {
  display: block;
  min-width: 0;
}

.admin-review-grid strong {
  font-size: 15px;
  line-height: 1.2;
}

.admin-review-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.admin-review-grid em {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding: 0 7px;
  color: #ffffff;
  background: #e53935;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.wechat-submission-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wechat-submission-head,
.wechat-submission-card {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wechat-submission-head span,
.wechat-submission-card span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.wechat-submission-head strong,
.wechat-submission-card strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.wechat-submission-head small,
.wechat-submission-card small,
.wechat-submission-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.wechat-submission-list {
  display: grid;
  gap: 8px;
}

.wechat-submission-card {
  padding: 12px;
  background: rgba(126, 183, 27, 0.07);
  border: 1px solid rgba(126, 183, 27, 0.24);
  border-radius: 8px;
}

.wechat-submission-card img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f6f0;
  flex: 0 0 auto;
}

.mini-action {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  background: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.admin-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.buyer-page {
  min-height: 100vh;
  background: #f6f6f4;
}

.buyer-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(126, 183, 27, 0.1), rgba(251, 250, 247, 0) 160px),
    #fbfaf7;
}

.market-app {
  position: relative;
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 10px 104px;
  background: #fbfaf7;
}

.market-header {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 0 -10px;
  padding: 5px 10px 6px;
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid rgba(227, 224, 216, 0.9);
  backdrop-filter: blur(16px);
}

.market-status {
  display: none;
  justify-content: space-between;
  padding: 0 14px 10px;
  color: #111111;
  font-size: 13px;
  font-weight: 800;
}

.market-brand-strip {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  margin: 0 4px 6px;
  padding: 5px 8px;
  background: #ffffff;
  border: 1px solid rgba(126, 183, 27, 0.14);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(17, 33, 29, 0.06);
}

.market-brand-logo {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  overflow: hidden;
  background: #eef7f1;
  border-radius: 8px;
}

.market-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.market-brand-strip strong,
.market-brand-strip small {
  display: block;
}

.market-brand-strip strong {
  color: #151515;
  font-size: 14px;
  line-height: 1.15;
}

.market-brand-strip small {
  margin-top: 1px;
  color: #6f6f66;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.market-brand-strip a {
  padding: 5px 10px;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.market-search-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 42px auto;
  gap: 5px;
  align-items: stretch;
  min-height: 44px;
}

.area-button {
  display: inline-flex;
  max-width: 68px;
  min-height: 42px;
  align-items: center;
  gap: 4px;
  padding: 0 4px 0 6px;
  color: #141414;
  cursor: pointer;
  background: transparent;
  border: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.area-button.search-return-mode {
  width: 42px;
  justify-content: center;
  padding: 0;
  font-size: 30px;
  line-height: 1;
}

.area-button span {
  font-size: 14px;
}

.header-sort-stack {
  display: grid;
  width: 42px;
  min-height: 42px;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  align-self: stretch;
}

.sort-button,
.distance-sort-button {
  position: relative;
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  min-height: 19px;
  padding: 0 3px;
  color: #5f6258;
  cursor: pointer;
  background: #f6f8f3;
  border: 1px solid #e2e8da;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
  line-height: 1;
}

.category-group-cell {
  --category-menu-width: 14px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--category-menu-width);
  min-width: 0;
  align-items: center;
  overflow: visible;
}

.category-group-cell::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--category-menu-width);
  pointer-events: none;
  background: linear-gradient(90deg, rgba(251, 250, 247, 0), #fbfaf7 80%);
}

.market-header.search-results-mode .category-group-cell,
.market-header.search-results-mode .category-tabs,
.market-header.search-results-mode .header-search-button {
  display: none;
}

.result-search-form {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 30px;
  min-width: 0;
  height: 38px;
  align-self: center;
  align-items: center;
  padding: 0 4px 0 10px;
  background: #ffffff;
  border: 1px solid #e5e0d6;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(23, 33, 29, 0.06);
}

.result-search-form[hidden] {
  display: none;
}

.result-search-icon {
  position: relative;
  width: 13px;
  height: 13px;
  border: 2px solid #69715d;
  border-radius: 50%;
}

.result-search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  background: #69715d;
  border-radius: 999px;
  transform: rotate(45deg);
}

.result-search-form input {
  min-width: 0;
  height: 32px;
  padding: 0 6px;
  color: #202020;
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 800;
}

.result-search-form button {
  position: relative;
  width: 30px;
  height: 30px;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.result-search-form button::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 10px;
  height: 10px;
  border: 2px solid #202020;
  border-radius: 50%;
}

.result-search-form button::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 8px;
  height: 2px;
  background: #202020;
  border-radius: 99px;
  transform: rotate(45deg);
}

.header-search-button {
  position: relative;
  display: inline-flex;
  width: 30px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  color: #171717;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.category-group-menu-button {
  display: inline-grid;
  position: relative;
  z-index: 1;
  width: var(--category-menu-width);
  height: 42px;
  place-items: center;
  align-self: center;
  color: #4b5841;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0;
  font-weight: 900;
}

.category-group-menu-button::before {
  content: "";
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  margin-top: -2px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
}

.category-group-menu-button[aria-expanded="true"]::before {
  margin-top: 3px;
  transform: rotate(225deg);
}

.header-search-button.has-query {
  width: min(92px, 24vw);
  justify-content: flex-start;
  padding: 0 9px;
}

.header-search-button span {
  position: relative;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border: 2.5px solid currentColor;
  border-radius: 50%;
}

.header-search-button span::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -4px;
  width: 9px;
  height: 2.5px;
  background: currentColor;
  border-radius: 999px;
  transform: rotate(45deg);
}

.header-search-button em {
  min-width: 0;
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sort-button.active,
.distance-sort-button.active {
  color: #263711;
  background: #8cc63f;
  border-color: #8cc63f;
}

.sort-button.active::after,
.distance-sort-button.active::after {
  content: none;
}

.market-search {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 30px 38px;
  align-items: center;
  min-width: 0;
  height: 37px;
  padding: 3px;
  background: #ffffff;
  border: 2px solid #202020;
  border-radius: 999px;
}

.market-search input {
  min-height: 30px;
  padding: 0 4px;
  color: #141414;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 800;
}

.market-search input:focus {
  box-shadow: none;
}

.scan-icon,
.camera-button,
.search-button,
.home-icon,
.pin-icon,
.chat-icon,
.user-icon,
.sell-camera {
  position: relative;
  display: inline-block;
}

.scan-icon {
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border: 2px dashed #a7a7a7;
  border-radius: 7px;
}

.camera-button,
.search-button {
  width: 30px;
  height: 30px;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.camera-button::before {
  content: "";
  position: absolute;
  inset: 7px 5px 6px;
  border: 2px solid #a6a6a6;
  border-radius: 7px;
}

.camera-button::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 13px;
  width: 6px;
  height: 6px;
  border: 2px solid #a6a6a6;
  border-radius: 50%;
}

.search-button {
  background: #171717;
}

.search-button::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.search-button::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 8px;
  height: 2px;
  background: #ffffff;
  border-radius: 99px;
  transform: rotate(45deg);
  transform-origin: center;
}

.language-switch {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 10px 10px 0;
}

.language-switch button {
  min-height: 30px;
  padding: 5px 10px;
  color: #4d4d4d;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #e5e1d8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.language-switch button.active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.zh-test-mode .language-switch {
  display: none;
}

.app-bridge-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 5px 12px 0;
  scrollbar-width: none;
}

.app-bridge-strip::-webkit-scrollbar {
  display: none;
}

.app-bridge-strip span {
  flex: 0 0 auto;
  padding: 3px 7px;
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 900;
  background: var(--accent-soft);
  border: 1px solid #dceec4;
  border-radius: 999px;
}

.app-bridge-strip a {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 900;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
}

.category-groups {
  display: flex;
  gap: 12px;
  min-width: 0;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
}

.category-group-menu {
  position: absolute;
  top: 42px;
  left: 0;
  right: -96px;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e6e0d6;
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(23, 33, 29, 0.16);
  backdrop-filter: blur(14px);
}

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

.category-group-menu button {
  min-width: 0;
  min-height: 38px;
  color: #303328;
  cursor: pointer;
  background: #f9f8f3;
  border: 1px solid #e5e0d6;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.category-group-menu button.active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.category-groups::-webkit-scrollbar {
  display: none;
}

.category-groups button {
  position: relative;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0;
  color: #6a6b63;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 15.5px;
  font-weight: 900;
  white-space: nowrap;
}

.category-groups button.active {
  color: #171717;
  background: transparent;
  box-shadow: none;
}

.category-groups button.active::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 3px;
  left: 4px;
  height: 3px;
  background: var(--accent);
  border-radius: 99px;
}

.category-tabs {
  display: flex;
  gap: 6px;
  max-height: 36px;
  overflow-x: auto;
  padding: 6px 12px 0;
  opacity: 1;
  scrollbar-width: none;
  transform: translateY(0);
  transition: max-height 0.18s ease, opacity 0.18s ease, padding 0.18s ease, transform 0.18s ease;
}

.market-header.hide-subcategories .category-tabs {
  max-height: 0;
  padding-top: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs button {
  position: relative;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 10px;
  color: #3a3a33;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #e6e0d6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.category-tabs button.active {
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-color: #d6edb3;
  box-shadow: inset 0 0 0 1px rgba(140, 198, 63, 0.7);
}

.category-tabs button.active::after {
  content: none;
}

.category-more {
  display: inline-grid;
  flex: 0 0 auto;
  min-height: 28px;
  place-items: center;
  padding: 0 10px;
  color: #6f6f66;
  background: #f7f6f1;
  border: 1px dashed #d8deca;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

body.search-open {
  overflow: hidden;
}

.search-overlay {
  position: fixed;
  inset: 0 auto 0 50%;
  z-index: 30;
  width: min(100%, 480px);
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 18px 34px;
  overflow-y: auto;
  background: #fbfaf7;
  box-shadow: 0 0 0 1px #e8e3d9;
  transform: translateX(-50%);
}

.search-overlay[hidden] {
  display: none;
}

.search-overlay-top {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) * -1);
  z-index: 2;
  min-height: 48px;
  margin: -2px 0 26px;
  padding: 2px 0 10px;
  background: #fbfaf7;
}

.search-back {
  position: absolute;
  top: 2px;
  left: -4px;
  display: grid;
  width: 28px;
  height: 44px;
  place-items: center;
  color: #202020;
  cursor: pointer;
  background: transparent;
  border: 0;
  font-size: 34px;
  line-height: 1;
  overflow: hidden;
}

.overlay-search-form {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 56px 52px;
  align-items: center;
  box-sizing: border-box;
  min-width: 0;
  width: min(318px, calc(100% - 58px));
  height: 46px;
  margin: 0 auto;
  padding: 3px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e6e1d8;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(24, 31, 27, 0.07);
}

.overlay-search-form:focus-within {
  border-color: rgba(140, 198, 63, 0.72);
  box-shadow: inset 0 0 0 1px rgba(140, 198, 63, 0.28), 0 8px 22px rgba(24, 31, 27, 0.07);
}

.overlay-search-icon {
  position: relative;
  display: block;
  justify-self: center;
  width: 14px;
  height: 14px;
  margin-left: 1px;
  border: 2px solid #6c7467;
  border-radius: 50%;
}

.overlay-search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  background: #6c7467;
  border-radius: 999px;
  transform: rotate(45deg);
}

.overlay-search-form input {
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  height: 38px;
  padding: 0 4px 0 4px;
  color: #222222;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 14.5px;
  font-weight: 800;
}

.overlay-search-form input:focus {
  border-color: transparent;
  box-shadow: none;
}

.overlay-search-form input::-webkit-search-cancel-button,
.overlay-search-form input::-webkit-search-decoration {
  -webkit-appearance: none;
}

.overlay-camera {
  position: relative;
  display: inline-flex;
  width: 56px;
  height: 38px;
  gap: 4px;
  align-items: center;
  justify-content: center;
  padding: 0 4px 0 6px;
  color: #4a5747;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-left: 1px solid #ebe6dd;
  border-radius: 0;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.overlay-camera::before {
  content: "";
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 15px;
  height: 12px;
  border: 1.7px solid currentColor;
  border-radius: 4px;
}

.overlay-camera::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  width: 5px;
  height: 5px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
}

.overlay-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 10px;
  color: #263711;
  cursor: pointer;
  background: #8cc63f;
  border: 0;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 900;
}

.search-section {
  margin-top: 22px;
}

.search-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.search-section-title h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.search-section-title span,
.history-actions button {
  color: #8b8b85;
  font-size: 15px;
  font-weight: 800;
}

.history-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.history-actions button {
  cursor: pointer;
  background: transparent;
  border: 0;
}

.history-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.history-chip,
.suggestion-list button {
  min-width: 0;
  max-width: 100%;
  min-height: 38px;
  padding: 0 14px;
  color: #2a2a26;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #e6e2da;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}

.history-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.history-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-chip em {
  color: #8b8b85;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
}

.empty-history,
.search-history-tip {
  color: #8b8b85;
  font-size: 13px;
}

.search-history-tip {
  margin: 10px 0 0;
}

.suggestion-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 26px;
}

.suggestion-list button {
  min-height: auto;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 16px;
  line-height: 1.45;
}

.voice-search-hint {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 30vh;
  color: #77756c;
  font-size: 14px;
  font-weight: 800;
}

.voice-search-hint p {
  margin: 0;
}

.voice-search-hint button {
  width: 76px;
  height: 54px;
  color: #ec3e54;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #ede8df;
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(24, 31, 27, 0.08);
  font-size: 24px;
}

.market-feed {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  padding: 8px 0 6px;
  will-change: transform, opacity;
}

.pull-refresh-indicator {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 104px);
  left: 50%;
  z-index: 8;
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  color: #263711;
  pointer-events: none;
  opacity: 0;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(140, 198, 63, 0.32);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(46, 63, 32, 0.13);
  transform: translate(-50%, -42px);
  backdrop-filter: blur(14px);
}

.pull-refresh-indicator span {
  width: 8px;
  height: 8px;
  background: #8cc63f;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(140, 198, 63, 0.16);
}

.pull-refresh-indicator strong {
  font-size: 12px;
  white-space: nowrap;
}

.pull-refresh-indicator[data-state="ready"] span,
.pull-refresh-indicator[data-state="refreshing"] span {
  background: #ec3e54;
  box-shadow: 0 0 0 5px rgba(236, 62, 84, 0.13);
}

.pull-refresh-indicator[data-state="refreshing"] span {
  animation: panda-refresh-pulse 0.72s ease-in-out infinite alternate;
}

@keyframes panda-refresh-pulse {
  from {
    transform: scale(0.82);
  }
  to {
    transform: scale(1.18);
  }
}

.market-feed.swiping {
  pointer-events: none;
  transform-origin: center top;
}

.swipe-preview {
  position: absolute;
  left: 10px;
  z-index: 1;
  pointer-events: none;
  will-change: transform, opacity;
}

.feed-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.market-card {
  display: block;
  width: 100%;
  overflow: hidden;
  margin: 0;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #ece9e2;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(30, 29, 24, 0.06);
}

.market-card:focus {
  outline: 3px solid rgba(126, 183, 27, 0.38);
  outline-offset: 2px;
}

.feed-ad {
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px;
  color: #0f2a20;
  background:
    linear-gradient(135deg, rgba(232, 245, 239, 0.98), rgba(255, 255, 255, 0.98)),
    #f2f7e9;
  border: 1px solid #c7e4d6;
  border-radius: 8px;
  column-span: all;
  grid-column: 1 / -1;
  box-shadow: 0 8px 22px rgba(30, 29, 24, 0.08);
}

.feed-ad span,
.detail-ad span {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 6px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  background: #111111;
  border-radius: 999px;
}

.feed-ad strong,
.detail-ad strong {
  display: block;
  color: #151515;
  font-size: 18px;
}

.feed-ad p,
.detail-ad p {
  margin: 6px 0 0;
  color: #53645c;
  font-size: 13px;
  line-height: 1.5;
}

.card-image {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(140, 198, 63, 0.28), rgba(255, 255, 255, 0.34)),
    #e5e5df;
}

.card-image img,
.card-image video {
  display: block;
  width: 100%;
  height: auto;
}

.card-image.no-image,
.dialog-image.no-image {
  display: grid;
  min-height: 132px;
  place-items: center;
  color: #77756c;
  font-weight: 900;
}

.distance-pill {
  position: absolute;
  left: 7px;
  bottom: 7px;
  max-width: calc(100% - 56px);
  padding: 4px 8px;
  color: #ffffff;
  cursor: pointer;
  border: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(20, 20, 20, 0.66);
  border-radius: 6px;
}

.distance-pill.needs-location {
  color: #143528;
  background: rgba(232, 245, 239, 0.94);
  border: 1px solid rgba(140, 198, 63, 0.7);
}

.distance-pill.needs-location::before {
  background: var(--accent);
}

.distance-pill::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  background: #ffffff;
  border-radius: 50%;
}

.ad-watermark {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 9px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.live-pill {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 3px 8px;
  color: #ffffff;
  background: rgba(88, 201, 133, 0.9);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.location-permission-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 5px;
  padding: 6px 8px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid #d8edba;
  border-radius: 8px;
}

.location-permission-card[hidden] {
  display: none;
}

.location-permission-card strong,
.location-permission-card span {
  display: block;
}

.location-permission-card strong {
  font-size: 12px;
}

.location-permission-card span {
  display: none;
  margin-top: 2px;
  color: #526960;
  font-size: 12px;
  line-height: 1.35;
}

.location-permission-card button {
  min-height: 28px;
  padding: 0 10px;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 8px 9px 10px;
}

.card-body h2 {
  display: -webkit-box;
  margin: 0 0 7px;
  overflow: hidden;
  color: #262626;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.34;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  margin-top: 2px;
}

.price-row strong {
  color: #ff3f4f;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.price-row span {
  min-width: 0;
  color: #8d8d8d;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.card-badges:empty {
  display: none;
}

.trust-badge,
.translate-chip {
  display: inline-block;
  max-width: 100%;
  padding: 3px 6px;
  color: var(--accent-ink);
  overflow: hidden;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--accent-soft);
  border: 1px solid #d8edba;
  border-radius: 5px;
}

.translate-chip {
  color: var(--accent-ink);
  background: #f3fae8;
  border-color: #d8edba;
}

.dialog-body > .trust-badge {
  margin-top: 8px;
}

.seller-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-top: 10px;
  color: #8c8c8c;
  font-size: 13px;
}

.seller-row span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-meta-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: #85857c;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.listing-meta-row strong,
.listing-meta-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-meta-row strong {
  flex: 1 1 auto;
  color: #62635b;
  font-size: 11px;
}

.listing-meta-row > span:not(.avatar) {
  flex: 0 0 auto;
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #263711;
  font-size: 12px;
  font-weight: 900;
  background: #e4f3c9;
  border-radius: 50%;
}

.mini-avatar {
  width: 18px;
  height: 18px;
  font-size: 10px;
}

.empty-feed {
  display: grid;
  grid-column: 1 / -1;
  min-height: 220px;
  place-items: center;
  color: #77756c;
  font-weight: 800;
  column-span: all;
}

.search-fallback-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 4px 2px;
}

.search-fallback-head strong,
.search-fallback-head span {
  display: block;
}

.search-fallback-head strong {
  color: #5f6258;
  font-size: 13px;
}

.search-fallback-head span {
  color: #171717;
  font-size: 16px;
  font-weight: 900;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr 1fr 1fr;
  width: min(100%, 480px);
  height: 78px;
  margin: 0 auto;
  padding: 8px 12px 10px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e7e3dc;
  box-shadow: 0 -12px 28px rgba(28, 27, 24, 0.1);
  backdrop-filter: blur(16px);
}

.bottom-item {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  min-width: 0;
  color: #1e1e1e;
  cursor: pointer;
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 800;
}

.bottom-item strong {
  font-size: 12px;
}

.bottom-item em {
  position: absolute;
  top: 4px;
  right: 10px;
  min-width: 30px;
  padding: 1px 5px;
  color: #ffffff;
  font-size: 11px;
  font-style: normal;
  line-height: 16px;
  background: #ff4a50;
  border: 2px solid #ffffff;
  border-radius: 999px;
}

.home-icon,
.pin-icon,
.chat-icon,
.user-icon {
  width: 27px;
  height: 27px;
}

.home-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 2px;
  width: 19px;
  height: 18px;
  border: 3px solid #191919;
  border-top: 0;
  border-radius: 4px;
}

.home-icon::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 17px;
  height: 17px;
  border-top: 3px solid #191919;
  border-left: 3px solid #191919;
  transform: rotate(45deg);
}

.bottom-item.back-to-top .home-icon::before {
  top: 12px;
  left: 4px;
  bottom: auto;
  width: 19px;
  height: 0;
  border: 0;
  border-top: 4px solid #191919;
  border-radius: 999px;
}

.bottom-item.back-to-top .home-icon::after {
  top: 4px;
  left: 6px;
  width: 14px;
  height: 14px;
  border-top: 4px solid #191919;
  border-left: 4px solid #191919;
  transform: rotate(45deg);
}

.pin-icon {
  border: 4px solid #191919;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg) scale(0.8);
}

.pin-icon::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.chat-icon {
  border: 3px solid #191919;
  border-radius: 10px;
}

.chat-icon::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-right: 3px solid #191919;
  border-bottom: 3px solid #191919;
  transform: rotate(35deg);
}

.user-icon {
  border: 3px solid #191919;
  border-radius: 50%;
}

.user-icon::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 8px;
  width: 7px;
  height: 7px;
  border: 3px solid #191919;
  border-radius: 50%;
}

.user-icon::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  height: 9px;
  border: 3px solid #191919;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.sell-fab {
  position: relative;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  align-self: start;
  justify-self: center;
  margin-top: -31px;
  padding-top: 12px;
  color: #263711;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(180deg, #dff3b8, #93ca2f);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(126, 183, 27, 0.34);
  cursor: pointer;
}

.sell-fab strong {
  margin-top: 34px;
}

.sell-camera {
  position: absolute;
  top: 18px;
  width: 28px;
  height: 22px;
  border: 4px solid #263711;
  border-radius: 7px;
}

.sell-camera::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 5px;
  width: 12px;
  height: 7px;
  border: 4px solid #263711;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.sell-camera::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 7px;
  width: 7px;
  height: 7px;
  background: #263711;
  border-radius: 50%;
}

.bottom-item.active strong,
.bottom-item.active .pin-icon + strong {
  color: #111111;
}

.bottom-item.active .pin-icon {
  border-color: #161616;
}

.item-dialog {
  width: min(440px, calc(100% - 24px));
  max-height: min(760px, calc(100vh - 38px));
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.24);
}

#dialogContent {
  max-height: min(760px, calc(100vh - 38px));
  overflow-y: auto;
}

.item-dialog::backdrop {
  background: rgba(0, 0, 0, 0.46);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.52);
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.dialog-image {
  min-height: 260px;
  max-height: 420px;
  overflow: hidden;
  background: #e7e7e1;
}

.dialog-image img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.dialog-body {
  padding: 18px;
}

.dialog-body h2 {
  margin: 14px 0 8px;
  font-size: 23px;
  line-height: 1.25;
}

.dialog-body strong {
  display: block;
  color: #ff3f4f;
  font-size: 28px;
  font-weight: 900;
}

.dialog-body p {
  color: #5f615d;
  line-height: 1.65;
}

.detail-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #ece9e2;
}

.detail-section h3,
.section-title-row h3 {
  margin: 0 0 10px;
  color: #1f1f1f;
  font-size: 17px;
}

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

.detail-fact {
  min-width: 0;
  padding: 10px;
  background: #f7f6f1;
  border: 1px solid #eee9dd;
  border-radius: 8px;
}

.detail-fact span {
  display: block;
  color: #8a8578;
  font-size: 12px;
  font-weight: 900;
}

.detail-fact strong {
  margin-top: 4px;
  color: #262626;
  font-size: 14px;
  line-height: 1.35;
}

.trade-notes {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #5f615d;
  font-size: 14px;
  line-height: 1.55;
}

.detail-ad {
  display: block;
  margin-top: 16px;
  padding: 13px;
  background: #f2f7e9;
  border: 1px solid #c7e4d6;
  border-radius: 8px;
}

.original-block {
  margin: 14px 0 0;
  padding: 12px;
  background: #f7faf8;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
}

.original-block span {
  display: block;
  color: #263711;
  font-size: 12px;
  font-weight: 900;
}

.original-block strong {
  margin-top: 6px;
  color: #151515;
  font-size: 15px;
}

.original-block p {
  margin: 5px 0 0;
  color: #6f6f66;
  font-size: 13px;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.25fr;
  gap: 10px;
  margin-top: 16px;
}

.dialog-actions button {
  min-height: 46px;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.dialog-actions button:first-child {
  color: #333333;
  background: #f0eee8;
}

.dialog-actions button:nth-child(2) {
  color: #ffffff;
  background: #1f1f1f;
}

.dialog-actions button:last-child {
  color: var(--accent-ink);
  background: #8cc63f;
}

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

.section-title-row span {
  color: #8a8578;
  font-size: 12px;
  font-weight: 900;
}

.comments-list {
  display: grid;
  gap: 12px;
}

.comment-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
}

.comment-item strong {
  color: #303030;
  font-size: 14px;
}

.comment-item p {
  margin: 3px 0 2px;
  color: #4e504b;
  font-size: 14px;
  line-height: 1.45;
}

.comment-item small {
  color: #9a968a;
  font-size: 12px;
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px;
  gap: 8px;
  margin-top: 14px;
}

.comment-form input {
  min-height: 42px;
  background: #f8f7f2;
  border-color: #e7e1d4;
}

.comment-form button {
  min-height: 42px;
  color: var(--accent-ink);
  cursor: pointer;
  background: #8cc63f;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.ad-page {
  width: min(100% - 20px, 520px);
  margin: 0 auto;
  padding: 18px 0 34px;
}

.ad-hero,
.ad-form-panel,
.ad-slots article {
  background: #ffffff;
  border: 1px solid #ece9e2;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(30, 29, 24, 0.06);
}

.ad-hero {
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(126, 183, 27, 0.14), rgba(255, 255, 255, 0.96)),
    #f2f7e9;
}

.ad-hero a {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  color: #111111;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
}

.ad-hero p,
.ad-hero span {
  margin: 0;
  color: #263711;
  font-weight: 900;
}

.ad-hero h1 {
  margin: 8px 0;
  font-size: 36px;
}

.ad-slots {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.ad-slots article,
.ad-form-panel {
  padding: 16px;
}

.ad-slots span {
  color: #8cc63f;
  font-size: 13px;
  font-weight: 900;
}

.ad-slots strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
}

.ad-slots p {
  margin: 7px 0 0;
  color: #6f6f66;
  line-height: 1.55;
}

.ad-form-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.ad-form-panel h2 {
  margin: 0;
}

.ad-form-panel button {
  min-height: 48px;
  color: var(--accent-ink);
  cursor: pointer;
  background: #8cc63f;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.story-detail-page {
  --story-bg: #fbfaf7;
  --story-topbar-bg: rgba(251, 250, 247, 0.96);
  --story-panel: #ffffff;
  --story-panel-soft: #ffffff;
  --story-media-bg: #f3f4f0;
  --story-text: #151515;
  --story-muted: #5f655f;
  --story-subtle: #858a83;
  --story-line: #dfe6e2;
  --story-comments-line: #e6e0d6;
  --story-price: #e60012;
  --story-price-bg: #fff0f1;
  --story-price-line: #ffd3d8;
  --story-map: #477b20;
  --story-primary-button-bg: #ffffff;
  --story-primary-button-text: #151515;
  --story-action-bg: #ffffff;
  --story-action-shadow: 0 8px 18px rgba(23, 33, 29, 0.12);
  --story-icon-filter: none;
  min-height: 100vh;
  color: var(--story-text);
  background: var(--story-bg);
}

:root[data-theme="dark"] .story-detail-page {
  --story-bg: #17161c;
  --story-topbar-bg: rgba(23, 22, 28, 0.96);
  --story-panel: #201f26;
  --story-panel-soft: #24222a;
  --story-media-bg: #111016;
  --story-text: #f4f1f7;
  --story-muted: #d4cfdb;
  --story-subtle: #85818d;
  --story-line: #302d38;
  --story-comments-line: #292731;
  --story-price: #ff4a63;
  --story-price-bg: #2a1f28;
  --story-price-line: #51313e;
  --story-map: #7ee0ad;
  --story-primary-button-bg: #f4f1f7;
  --story-primary-button-text: #17161c;
  --story-action-bg: #f4f8f2;
  --story-action-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  --story-icon-filter: brightness(0) invert(1);
}

.story-detail-shell {
  --story-topbar-height: 58px;
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding-top: var(--story-topbar-height);
  padding-bottom: 92px;
  background: var(--story-bg);
}

.story-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto 30px;
  gap: 8px;
  align-items: center;
  box-sizing: border-box;
  width: min(100%, 480px);
  min-height: var(--story-topbar-height);
  padding: 7px 12px 8px;
  background: var(--story-topbar-bg);
  border-bottom: 1px solid var(--story-comments-line);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.story-back,
.story-share,
.story-sound {
  position: relative;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.story-back {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
}

.story-back::before {
  content: none;
}

.story-seller {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.story-avatar,
.story-mini-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #e4f3c9;
  font-weight: 900;
  background: #93ca2f;
  border-radius: 50%;
}

.story-avatar {
  width: 36px;
  height: 36px;
  font-size: 15px;
}

.story-mini-avatar {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.story-seller strong,
.story-seller small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-seller strong {
  color: var(--story-text);
  font-size: 14px;
}

.story-seller small {
  margin-top: 1px;
  color: var(--story-subtle);
  font-size: 11.5px;
}

.story-follow {
  min-width: 50px;
  min-height: 29px;
  padding: 0 10px;
  color: #ff3f72;
  cursor: pointer;
  background: transparent;
  border: 1px solid #c92e5e;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.story-share {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
}

.story-share::before {
  content: none;
}

.story-nav-icon {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: var(--story-icon-filter);
}

.story-media {
  position: relative;
  background: var(--story-media-bg);
}

.story-carousel {
  width: 100%;
  aspect-ratio: var(--story-media-ratio, 4 / 5);
  min-height: 0;
  max-height: min(68vh, calc(100svh - var(--story-topbar-height) - 174px));
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--story-media-bg);
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

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

.story-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
}

.story-carousel.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.story-slide {
  position: relative;
  display: grid;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  place-items: center;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--story-media-bg);
  border: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.story-slide img,
.story-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-slide.has-video {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 55%),
    #09090d;
}

.story-video-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
  filter: blur(24px) saturate(1.08);
  transform: scale(1.12);
}

.story-slide .story-video-main {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: min(52%, 250px);
  height: 100%;
  object-fit: cover;
  background: #000000;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.story-sound[hidden],
.story-media-dots[hidden] {
  display: none;
}

.story-media-dots {
  --dot-size: 7px;
  --dot-gap: 4px;
  --dots-width: 65px;
  --dot-track-x: 0px;
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 2;
  display: flex;
  overflow: hidden;
  width: var(--dots-width);
  max-width: calc(100% - 44px);
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 5px 7px;
  background: rgba(0, 0, 0, 0.24);
  border-radius: 999px;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.story-dot-track {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--dot-gap);
  transform: translateX(var(--dot-track-x));
  transition: none;
  will-change: transform;
}

.story-media-dots.is-window-shifting .story-dot-track {
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.story-media-dots.is-scroll-tracking .story-active-dot {
  transition: none;
}

.story-media-dots button {
  display: block;
  flex: 0 0 auto;
  width: var(--dot-size);
  height: var(--dot-size);
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.72);
  border: 0;
  border-radius: 50%;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.story-media-dots button.active {
  background: rgba(255, 255, 255, 0.72);
}

.story-media-dots button.edge {
  transform: scale(0.58);
}

.story-media-dots button.edge.active {
  transform: scale(1);
}

.story-media-dots button.last:not(.active) {
  opacity: 0.92;
}

.story-active-dot {
  position: absolute;
  left: 7px;
  top: 50%;
  width: var(--dot-size);
  height: var(--dot-size);
  pointer-events: none;
  background: #e60012;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(230, 0, 18, 0.16);
  transform: translate(calc(var(--active-slot) * (var(--dot-size) + var(--dot-gap))), -50%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.story-live-pill {
  position: absolute;
  left: 15px;
  top: 14px;
  padding: 4px 9px;
  color: #ffffff;
  background: rgba(230, 0, 18, 0.94);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.story-image-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 28px;
  color: #e4f3c9;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
  text-shadow: 0 4px 0 #000000;
  background:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.52)),
    #5c5248;
}

.story-image-fallback[hidden] {
  display: none;
}

.image-viewer {
  --viewer-drag-y: 0px;
  --viewer-scale: 1;
  width: min(100vw, 920px);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  background: #000000;
  border: 0;
  touch-action: none;
}

.image-viewer::backdrop {
  background: rgba(0, 0, 0, 0.92);
}

.image-viewer img,
.image-viewer video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateY(var(--viewer-drag-y)) scale(var(--viewer-scale));
  transition: transform 0.2s ease;
  will-change: transform;
}

.image-viewer.is-dragging img,
.image-viewer.is-dragging video {
  transition: none;
}

.image-viewer button {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.story-sound {
  position: absolute;
  right: 16px;
  bottom: 18px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.story-sound::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 11px;
  width: 9px;
  height: 13px;
  background: #ffffff;
  clip-path: polygon(0 30%, 45% 30%, 100% 0, 100% 100%, 45% 70%, 0 70%);
}

.story-sound::after {
  content: "";
  position: absolute;
  top: 11px;
  right: 10px;
  width: 2px;
  height: 16px;
  background: #ffffff;
  transform: rotate(45deg);
}

.story-sound.is-on::after {
  opacity: 0;
}

.story-content {
  padding: 18px 18px 26px;
}

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

.story-title-row h1 {
  flex: 1 1 auto;
  min-width: 0;
}

.story-video-jump {
  flex: 0 0 auto;
  max-width: 120px;
  min-height: 32px;
  padding: 6px 10px;
  color: var(--story-subtle);
  cursor: pointer;
  background: var(--story-panel-soft);
  border: 1px solid var(--story-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.story-video-jump.has-video {
  color: #ffffff;
  background: #e60012;
  border-color: #e60012;
  box-shadow: 0 8px 20px rgba(230, 0, 18, 0.22);
}

.story-video-jump.no-video {
  cursor: default;
}

.story-info-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  align-items: center;
  margin-top: 12px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.story-info-row::-webkit-scrollbar,
.story-facts.compact::-webkit-scrollbar {
  display: none;
}

.story-info-row strong,
.story-info-row span,
.story-info-row a {
  flex: 0 0 auto;
}

.story-info-row strong {
  padding: 5px 10px;
  color: var(--story-price);
  background: var(--story-price-bg);
  border: 1px solid var(--story-price-line);
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
}

.story-info-row span,
.story-info-row a {
  padding: 5px 9px;
  color: var(--story-muted);
  background: var(--story-panel-soft);
  border: 1px solid var(--story-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.story-category-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding-right: 5px;
}

.story-category-pill a {
  padding: 2px 7px;
  color: var(--accent-ink);
  background: #8cc63f;
  border: 0;
  font-size: 12px;
}

.story-map-link {
  color: var(--story-map);
  border-color: rgba(126, 224, 173, 0.32);
}

.story-content h1 {
  margin: 0 0 10px;
  color: var(--story-text);
  font-size: 23px;
  line-height: 1.35;
}

.story-content > p {
  margin: 0;
  color: var(--story-muted);
  font-size: 17px;
  line-height: 1.7;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.story-tags span {
  color: var(--story-muted);
  font-size: 15px;
}

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

.story-facts.compact {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin-top: 8px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.story-facts div {
  min-width: 108px;
  padding: 11px;
  background: var(--story-panel);
  border: 1px solid var(--story-line);
  border-radius: 8px;
}

.story-facts span {
  display: block;
  color: var(--story-subtle);
  font-size: 12px;
  font-weight: 900;
}

.story-facts strong {
  display: block;
  margin-top: 5px;
  color: var(--story-text);
  font-size: 14px;
  line-height: 1.35;
}

.story-media-strip {
  display: flex;
  gap: 8px;
  padding: 10px 18px 0;
  background: var(--story-bg);
}

.story-media-strip span,
.story-media-strip button {
  padding: 5px 9px;
  color: #e4f3c9;
  background: #20352b;
  border: 1px solid #2e5b45;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.story-media-strip button {
  cursor: pointer;
}

.story-media-strip button.active {
  color: var(--accent-ink);
  background: #8cc63f;
  border-color: #8cc63f;
}

.story-media-strip .muted {
  color: var(--story-subtle);
  background: var(--story-panel-soft);
  border-color: var(--story-line);
}

.story-video-panel {
  padding: 10px 18px 0;
  background: var(--story-bg);
}

.story-video-panel video {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.story-service-panel,
.story-contact-panel {
  margin-top: 16px;
  padding: 14px;
  background: var(--story-panel);
  border: 1px solid var(--story-line);
  border-radius: 8px;
}

.story-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.story-section-head h2 {
  margin: 0;
  color: var(--story-text);
  font-size: 16px;
}

.story-section-head span {
  color: var(--story-subtle);
  font-size: 12px;
  font-weight: 900;
}

.story-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.story-method-grid article,
.story-contact-list div {
  padding: 10px;
  background: var(--story-bg);
  border: 1px solid var(--story-line);
  border-radius: 8px;
}

.story-method-grid strong,
.story-contact-list strong {
  display: block;
  color: var(--story-text);
  font-size: 14px;
}

.story-method-grid span,
.story-contact-list span {
  display: block;
  margin-top: 5px;
  color: var(--story-muted);
  font-size: 12px;
  line-height: 1.4;
}

.story-contact-list {
  display: grid;
  gap: 8px;
}

.story-chat-action {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  color: var(--accent-ink);
  cursor: pointer;
  background: #8cc63f;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.story-ad {
  display: block;
  margin-top: 18px;
  padding: 14px;
  color: #ecfff5;
  background: linear-gradient(135deg, #93ca2f, #8cc63f);
  border-radius: 8px;
}

.story-ad span {
  display: inline-block;
  padding: 2px 7px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  background: rgba(21, 21, 21, 0.72);
  border-radius: 999px;
}

.story-ad strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
}

.story-ad p {
  margin: 5px 0 0;
  color: #cdeede;
  font-size: 13px;
  line-height: 1.45;
}

.story-comments {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--story-comments-line);
}

.story-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.story-comments h2 {
  margin: 0;
  color: var(--story-text);
  font-size: 19px;
}

.story-comments-head button {
  min-height: 32px;
  padding: 0 10px;
  color: var(--story-muted);
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--story-line);
  border-radius: 999px;
  font-weight: 900;
}

.story-comment-input {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.story-comment-input form,
.story-bottom-actions form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.story-comment-input input,
.story-bottom-actions input {
  min-height: 44px;
  color: var(--story-text);
  background: var(--story-panel-soft);
  border: 1px solid var(--story-line);
  border-radius: 999px;
}

.story-comment-input button {
  min-height: 44px;
  padding: 0 14px;
  color: var(--story-primary-button-text);
  cursor: pointer;
  background: var(--story-primary-button-bg);
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.story-comment-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.story-comment-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
}

.story-comment-item strong {
  color: var(--story-text);
  font-size: 14px;
}

.story-comment-item p {
  margin: 4px 0 2px;
  color: var(--story-muted);
  line-height: 1.5;
}

.story-comment-item small {
  color: var(--story-subtle);
  font-size: 12px;
}

.story-empty-comments {
  display: grid;
  min-height: 170px;
  place-items: center;
  align-content: center;
  color: var(--story-subtle);
}

.story-empty-comments span {
  width: 58px;
  height: 38px;
  border: 2px solid var(--story-line);
  border-radius: 18px;
}

.story-empty-comments p {
  margin: 12px 0 14px;
}

.story-empty-comments button {
  min-height: 40px;
  padding: 0 22px;
  color: var(--story-text);
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--story-line);
  border-radius: 999px;
  font-weight: 900;
}

.story-bottom-actions {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px 56px 56px 56px;
  gap: 8px;
  box-sizing: border-box;
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 12px 16px 20px;
  background: var(--story-topbar-bg);
  border-top: 1px solid var(--story-comments-line);
  backdrop-filter: blur(16px);
}

.story-bottom-actions form {
  display: block;
}

.story-bottom-actions button {
  display: grid;
  grid-template-rows: 34px auto;
  place-items: center;
  gap: 2px;
  min-width: 0;
  color: var(--story-text);
  cursor: pointer;
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 900;
}

.story-action-shell {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--story-action-bg);
  border: 1px solid rgba(244, 241, 247, 0.22);
  border-radius: 12px;
  box-shadow: var(--story-action-shadow);
  transition: transform 0.16s ease, background 0.16s ease;
}

.story-bottom-actions button:active .story-action-shell {
  transform: scale(0.94);
}

.story-bottom-actions button strong {
  font-size: 12px;
  line-height: 1.1;
}

.story-action-icon {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.category-page {
  padding-bottom: 30px;
}

.category-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0 -10px;
  padding: 14px 14px 12px;
  background: rgba(246, 246, 244, 0.96);
  border-bottom: 1px solid #e7e3dc;
  backdrop-filter: blur(16px);
}

.category-header a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #111111;
  background: #ffffff;
  border: 1px solid #e5e1d8;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}

.category-header p,
.category-header h1 {
  margin: 0;
}

.category-header p {
  color: #77756c;
  font-size: 13px;
  font-weight: 900;
}

.category-header h1 {
  font-size: 26px;
}

.category-feed {
  display: grid;
  gap: 10px;
  padding: 12px 0;
}

.category-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #ece9e2;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(30, 29, 24, 0.06);
}

.category-card-image {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  color: #77756c;
  font-weight: 900;
  background: #e9e7de;
  border-radius: 8px;
}

.category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card h2 {
  display: -webkit-box;
  margin: 2px 0 8px;
  overflow: hidden;
  color: #222222;
  font-size: 17px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-card strong {
  color: #ff3f4f;
  font-size: 22px;
}

.category-card p {
  margin: 8px 0 0;
  color: #77756c;
  font-size: 13px;
}

.category-empty {
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #ece9e2;
  border-radius: 8px;
}

.category-empty strong {
  font-size: 20px;
}

.category-empty p {
  margin: 0;
  color: #77756c;
}

.category-empty a {
  padding: 10px 18px;
  color: var(--accent-ink);
  background: #8cc63f;
  border-radius: 999px;
  font-weight: 900;
}

.chat-page {
  min-height: 100vh;
  color: #151515;
  background: #f6f6f4;
}

.chat-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(100%, 480px);
  height: 100vh;
  margin: 0 auto;
  background: #f6f6f4;
}

.chat-inbox-mode .chat-shell {
  grid-template-rows: auto minmax(0, 1fr);
}

.chat-header {
  display: grid;
  grid-template-columns: 42px 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(246, 246, 244, 0.96);
  border-bottom: 1px solid #e3e0d8;
}

.chat-header a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: #ffffff;
  border: 1px solid #e3e0d8;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}

.chat-header a img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.chat-header strong,
.chat-header span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-header strong {
  font-size: 17px;
}

.chat-header span {
  margin-top: 2px;
  color: #6f6f66;
  font-size: 12px;
  font-weight: 800;
}

.chat-header select {
  min-height: 34px;
  max-width: 94px;
  color: #263711;
  background: #f2f7e9;
  border: 1px solid #b6dfca;
  border-radius: 999px;
  font-weight: 900;
}

.chat-product-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  margin: 12px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #ece9e2;
  border-radius: 8px;
}

.chat-product-card[hidden],
.chat-messages[hidden],
.chat-input-bar[hidden] {
  display: none;
}

.chat-product-card > div:first-child {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  color: #263711;
  font-weight: 900;
  background: #f2f7e9;
  border-radius: 8px;
}

.chat-product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-product-card strong,
.chat-product-card span {
  display: block;
}

.chat-product-card strong {
  color: #222222;
  font-size: 15px;
  line-height: 1.35;
}

.chat-product-card span {
  margin-top: 8px;
  color: #6f6f66;
  font-size: 12px;
  font-weight: 800;
}

#chatReferenceLabel {
  display: inline-block;
  width: fit-content;
  margin: 0 0 5px;
  padding: 3px 7px;
  color: #263711;
  background: #f2f7e9;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.message-thread-list {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
}

.message-thread-list[hidden] {
  display: none;
}

.message-thread-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #ece9e2;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(30, 29, 24, 0.06);
}

.message-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--accent-ink);
  background: #8cc63f;
  border-radius: 50%;
  font-weight: 900;
}

.message-thread-main {
  min-width: 0;
}

.message-thread-head {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.message-thread-head strong {
  color: #151515;
  font-size: 15px;
}

.message-thread-head small,
.message-thread-main p {
  color: #6f6f66;
}

.message-thread-main p {
  display: -webkit-box;
  margin: 5px 0 9px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.message-reference {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 7px;
  background: #f3f7f4;
  border: 1px solid #dfe8e2;
  border-radius: 8px;
}

.message-reference > div {
  display: grid;
  width: 52px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  color: #263711;
  background: #f2f7e9;
  border-radius: 7px;
  font-weight: 900;
}

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

.message-reference span,
.message-reference b,
.message-reference em,
.message-reference small {
  display: block;
  min-width: 0;
}

.message-reference b {
  color: #8cc63f;
  font-size: 11px;
}

.message-reference em {
  overflow: hidden;
  color: #151515;
  font-style: normal;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-reference small {
  margin-top: 2px;
  color: #6f6f66;
  font-size: 11px;
}

.message-thread-card > em {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  color: #ffffff;
  background: #ff3f4f;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.chat-messages {
  display: grid;
  align-content: end;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 12px 16px;
}

.chat-bubble {
  max-width: 82%;
  padding: 10px 12px;
  justify-self: start;
  background: #ffffff;
  border: 1px solid #ece9e2;
  border-radius: 8px;
}

.chat-bubble.mine {
  justify-self: end;
  color: var(--accent-ink);
  background: #8cc63f;
  border-color: #8cc63f;
}

.chat-bubble span,
.chat-bubble small {
  display: block;
  font-size: 11px;
  font-weight: 900;
  opacity: 0.72;
}

.chat-bubble p {
  margin: 5px 0;
  line-height: 1.48;
}

.chat-input-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px;
  gap: 8px;
  padding: 10px 12px 20px;
  background: rgba(246, 246, 244, 0.96);
  border-top: 1px solid #e3e0d8;
}

.chat-input-bar input {
  min-height: 44px;
  background: #ffffff;
  border: 1px solid #e3e0d8;
  border-radius: 999px;
}

.chat-input-bar button {
  min-height: 44px;
  color: var(--accent-ink);
  cursor: pointer;
  background: #8cc63f;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.seller-center-page {
  padding-bottom: 34px;
}

.seller-center-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0 -10px;
  padding: 12px 14px;
  background: rgba(246, 246, 244, 0.96);
  border-bottom: 1px solid #e3e0d8;
  backdrop-filter: blur(16px);
}

.menu-trigger {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 9px;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #e3e0d8;
  border-radius: 50%;
}

.menu-trigger span {
  display: block;
  width: 16px;
  height: 2px;
  background: #151515;
  border-radius: 999px;
}

.seller-center-head > a:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: #ffffff;
  border: 1px solid #e3e0d8;
  border-radius: 50%;
  font-size: 32px;
}

.seller-center-head > a:last-child,
.seller-empty a {
  padding: 9px 13px;
  color: var(--accent-ink);
  background: #8cc63f;
  border-radius: 999px;
  font-weight: 900;
}

.seller-center-head p,
.seller-center-head h1 {
  margin: 0;
}

.seller-center-head p {
  color: #6f6f66;
  font-size: 12px;
  font-weight: 900;
}

.seller-center-head h1 {
  color: #222222;
  font-size: 24px;
}

.my-profile-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #ece9e2;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(30, 29, 24, 0.06);
}

.my-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--accent-ink);
  background: #8cc63f;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 900;
}

.my-profile-title {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.my-profile-title h2 {
  margin: 0;
  color: #151515;
  font-size: 20px;
}

.my-profile-title span,
.private-list-head span {
  padding: 3px 7px;
  color: #263711;
  background: #f2f7e9;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.my-profile-card p {
  margin: 5px 0 0;
  color: #6f6f66;
  line-height: 1.45;
}

.my-profile-card button,
.side-menu-panel button,
.side-menu-panel a,
.profile-form button {
  cursor: pointer;
  border-radius: 8px;
  font-weight: 900;
}

.my-profile-card button {
  padding: 9px 12px;
  color: var(--accent-ink);
  background: #8cc63f;
  border: 0;
  white-space: nowrap;
}

.my-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.my-stats-grid article {
  padding: 12px 8px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #ece9e2;
  border-radius: 8px;
}

.my-stats-grid strong,
.my-stats-grid span {
  display: block;
}

.my-stats-grid strong {
  color: #8cc63f;
  font-size: 20px;
}

.my-stats-grid span {
  margin-top: 4px;
  color: #6f6f66;
  font-size: 12px;
  font-weight: 900;
}

.my-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 12px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.my-tabs::-webkit-scrollbar {
  display: none;
}

.my-tabs button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  color: #151515;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #e0e7e3;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.my-tabs button.active {
  color: var(--accent-ink);
  background: #8cc63f;
  border-color: #8cc63f;
}

.seller-rule-card,
.seller-listing-card,
.seller-empty {
  margin-top: 12px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #ece9e2;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(30, 29, 24, 0.06);
}

.seller-rule-card strong,
.seller-empty strong {
  display: block;
  color: #8cc63f;
  font-size: 16px;
}

.seller-rule-card p,
.seller-empty p {
  margin: 8px 0 0;
  color: #6f6f66;
  line-height: 1.5;
}

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

.seller-listing-main {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
}

.seller-listing-image {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  color: #263711;
  font-weight: 900;
  background: #f2f7e9;
  border-radius: 8px;
}

.seller-listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-status {
  display: inline-block;
  padding: 3px 7px;
  color: #263711;
  background: #f2f7e9;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.seller-listing-card h2 {
  margin: 7px 0 6px;
  color: #222222;
  font-size: 17px;
  line-height: 1.35;
}

.seller-listing-card strong {
  color: #ff3f4f;
  font-size: 21px;
}

.seller-listing-card p {
  margin: 6px 0 0;
  color: #6f6f66;
  font-size: 13px;
}

.seller-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

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

.seller-actions button,
.seller-message-panel button {
  min-height: 36px;
  cursor: pointer;
  background: #f7faf8;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.seller-message-panel {
  margin-top: 14px;
}

.seller-message-panel h3 {
  margin: 0 0 8px;
  color: #222222;
  font-size: 15px;
}

.seller-message-panel button {
  display: grid;
  grid-template-columns: 30px auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  margin-top: 7px;
  text-align: left;
}

.seller-message-panel span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #263711;
  background: #e4f3c9;
  border-radius: 50%;
}

.seller-message-panel em {
  min-width: 0;
  overflow: hidden;
  color: #6f6f66;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-list-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.private-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px;
}

.private-list-head strong {
  color: #151515;
}

.private-list-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #ece9e2;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(30, 29, 24, 0.06);
}

.private-item-image {
  display: grid;
  width: 58px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  color: #263711;
  background: #f2f7e9;
  border-radius: 8px;
  font-weight: 900;
}

.private-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.private-list-item em,
.private-list-item strong,
.private-list-item p {
  display: block;
}

.private-list-item em {
  color: #8cc63f;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.private-list-item strong {
  margin-top: 4px;
  color: #151515;
  line-height: 1.35;
}

.private-list-item p {
  margin: 5px 0 0;
  color: #6f6f66;
  font-size: 12px;
}

.side-menu-dialog,
.profile-dialog {
  width: min(420px, calc(100% - 28px));
  padding: 0;
  color: #151515;
  background: transparent;
  border: 0;
}

.side-menu-dialog::backdrop,
.profile-dialog::backdrop,
.image-viewer::backdrop {
  background: rgba(0, 0, 0, 0.48);
}

.side-menu-panel,
.profile-form {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

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

.side-menu-head strong {
  font-size: 20px;
}

.side-menu-head button {
  width: 34px;
  height: 34px;
  background: #f4f7f5;
  border: 1px solid #dfe6e2;
  font-size: 24px;
}

.side-menu-panel > button,
.side-menu-panel > a {
  display: block;
  width: 100%;
  padding: 12px;
  color: #151515;
  text-align: left;
  background: #f7faf8;
  border: 1px solid #dfe6e2;
}

.theme-setting {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f7faf8;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
}

.theme-setting > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.theme-setting strong {
  font-size: 15px;
}

.theme-setting span {
  color: #6f6f66;
  font-size: 12px;
  font-weight: 900;
}

.theme-choice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.theme-choice-row button {
  min-height: 34px;
  color: #151515;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #dfe6e2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.theme-choice-row button.active {
  color: #263711;
  background: #8cc63f;
  border-color: #8cc63f;
}

.profile-form label,
.profile-form span {
  display: block;
}

.profile-form span {
  margin-bottom: 6px;
  color: #6f6f66;
  font-size: 12px;
  font-weight: 900;
}

.profile-form input,
.profile-form select,
.profile-form textarea {
  width: 100%;
  padding: 10px 12px;
  color: #151515;
  background: #ffffff;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
}

.draft-status {
  margin: 0 10px;
  padding: 9px 12px;
  color: #263711;
  background: #f2f7e9;
  border: 1px solid #c7e4d6;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.profile-page {
  --profile-bg: #fbfaf7;
  --profile-hero-bg:
    radial-gradient(circle at 88% 16%, rgba(140, 198, 63, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 242, 0.98));
  --profile-hero-wash: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(251, 250, 247, 0.42));
  --profile-hero-text: #151515;
  --profile-hero-muted: #5f655f;
  --profile-hero-soft: rgba(255, 255, 255, 0.72);
  --profile-hero-line: rgba(38, 55, 17, 0.18);
  --profile-menu-bar: #263711;
  --profile-title-shadow: none;
  --profile-sheet: #ffffff;
  --profile-sheet-text: #17191f;
  --profile-sheet-muted: #777777;
  --profile-tab-muted: #868686;
  --profile-note-bg: #ffffff;
  --profile-note-line: #eeeeee;
  --profile-card-bg: rgba(255, 255, 255, 0.72);
  --profile-card-strong: #263711;
  --profile-publish-bg: #8cc63f;
  --profile-publish-text: #263711;
  --profile-prompt-bg: #f5f9ef;
  --profile-prompt-line: #ddebd2;
  min-height: 100vh;
  background: var(--profile-bg);
}

:root[data-theme="dark"] .profile-page {
  --profile-bg: #111419;
  --profile-hero-bg:
    radial-gradient(circle at 84% 22%, rgba(140, 198, 63, 0.2), transparent 36%),
    linear-gradient(180deg, rgba(15, 19, 17, 0.86), rgba(17, 20, 25, 0.94)),
    url("./assets/panda-logo-cutout.png");
  --profile-hero-wash: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(17, 20, 25, 0.42));
  --profile-hero-text: #ffffff;
  --profile-hero-muted: rgba(255, 255, 255, 0.72);
  --profile-hero-soft: rgba(255, 255, 255, 0.12);
  --profile-hero-line: rgba(255, 255, 255, 0.16);
  --profile-menu-bar: #ffffff;
  --profile-title-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
  --profile-sheet: #181d1a;
  --profile-sheet-text: var(--ink);
  --profile-sheet-muted: var(--muted);
  --profile-tab-muted: var(--muted);
  --profile-note-bg: #202720;
  --profile-note-line: #303a34;
  --profile-card-bg: rgba(255, 255, 255, 0.12);
  --profile-card-strong: #ffffff;
  --profile-publish-bg: #baf4cf;
  --profile-publish-text: #263711;
  --profile-prompt-bg: #20372a;
  --profile-prompt-line: #28543b;
}

:root[data-theme="dark"] .profile-benefit-card {
  color: #eef5ef;
  background:
    linear-gradient(90deg, rgba(140, 198, 63, 0.18), rgba(33, 52, 34, 0.82)),
    #1b231c;
  border-color: rgba(186, 244, 207, 0.16);
}

:root[data-theme="dark"] .profile-benefit-card span,
:root[data-theme="dark"] .profile-perk-grid span {
  color: rgba(238, 245, 239, 0.74);
}

:root[data-theme="dark"] .profile-stats-row,
:root[data-theme="dark"] .profile-trade-panel,
:root[data-theme="dark"] .profile-center-panel,
:root[data-theme="dark"] .profile-recycle-panel,
:root[data-theme="dark"] .profile-service-icons {
  background: rgba(32, 39, 32, 0.92);
  border-color: #303a34;
}

:root[data-theme="dark"] .profile-service-icons span {
  background: #20372a;
}

:root[data-theme="dark"] .profile-perk-grid a,
:root[data-theme="dark"] .profile-perk-grid button {
  color: #eef5ef;
  background:
    radial-gradient(circle at 86% 78%, rgba(140, 198, 63, 0.18), transparent 34%),
    #202720;
}

.profile-center-page {
  padding: 0 0 92px;
  overflow: hidden;
  color: var(--profile-hero-text);
  background: var(--profile-bg);
}

.profile-hero {
  position: relative;
  padding: 8px 16px 10px;
  overflow: hidden;
  background: var(--profile-hero-bg);
  background-position: center, center;
  background-repeat: no-repeat;
  background-size: auto, auto;
}

.profile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--profile-hero-wash);
  pointer-events: none;
}

.profile-topbar,
.profile-identity,
.profile-benefit-card,
.profile-stats-row,
.profile-trade-panel,
.profile-recycle-panel,
.profile-service-icons,
.profile-perk-grid {
  position: relative;
  z-index: 1;
}

.profile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-menu-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  color: var(--profile-hero-text);
  cursor: pointer;
  background: transparent;
  border: 0;
}

.profile-menu-button img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.profile-top-action {
  display: grid;
  min-width: 42px;
  justify-items: center;
  gap: 2px;
  padding: 0;
  color: var(--profile-hero-text);
  cursor: pointer;
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
}

.profile-top-action span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
}

.profile-top-action img {
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.profile-identity {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}

.profile-avatar-wrap {
  position: relative;
  width: 58px;
  height: 58px;
}

.profile-avatar-wrap .my-avatar {
  width: 58px;
  height: 58px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(209, 233, 221, 0.85)),
    #8cc63f;
  border: 3px solid rgba(255, 255, 255, 0.82);
  color: #263711;
  font-size: 24px;
  box-shadow: 0 10px 24px rgba(76, 108, 32, 0.18);
}

.profile-avatar-wrap button {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: #151515;
  cursor: pointer;
  background: #8cc63f;
  border: 0;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 900;
}

.profile-identity .my-profile-title h2 {
  color: var(--profile-hero-text);
  font-size: 21px;
  line-height: 1.1;
  text-shadow: var(--profile-title-shadow);
}

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

.profile-name-row h2 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-identity small,
.profile-identity p {
  display: block;
  color: var(--profile-hero-muted);
}

.profile-identity small {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 800;
}

.profile-identity p {
  margin: 5px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
}

#editProfileButton {
  flex: 0 0 auto;
  min-width: 82px;
  min-height: 28px;
  padding: 0 11px;
  color: var(--profile-hero-text);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--profile-hero-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.profile-benefit-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 8px;
  align-items: center;
  min-height: 66px;
  margin-top: 10px;
  overflow: hidden;
  padding: 10px 13px;
  color: #263711;
  background:
    linear-gradient(90deg, rgba(140, 198, 63, 0.28), rgba(220, 247, 182, 0.66)),
    #f4faeb;
  border: 1px solid rgba(140, 198, 63, 0.24);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 10px 24px rgba(84, 112, 42, 0.08);
}

.profile-benefit-card strong,
.profile-benefit-card span {
  display: block;
}

.profile-benefit-card strong {
  font-size: 15px;
  line-height: 1.25;
}

.profile-benefit-card span {
  margin-top: 5px;
  color: #445339;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.35;
}

.profile-benefit-card img {
  width: 82px;
  max-width: 100%;
  justify-self: end;
  opacity: 0.86;
  transform: rotate(-5deg);
}

.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 8px;
  padding: 10px 4px 9px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(230, 224, 214, 0.78);
  border-radius: 8px;
}

.profile-stats-row article {
  padding: 3px 4px;
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
}

.profile-stats-row button {
  display: grid;
  width: 100%;
  min-height: 48px;
  place-items: center;
  padding: 0;
  color: inherit;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.profile-stats-row strong,
.profile-stats-row span {
  display: block;
}

.profile-stats-row strong {
  color: var(--profile-card-strong);
  font-size: 20px;
  line-height: 1;
}

.profile-stats-row span {
  margin-top: 5px;
  color: var(--profile-hero-muted);
  font-size: 12.5px;
  font-weight: 800;
}

.profile-trade-panel,
.profile-recycle-panel,
.profile-service-icons,
.profile-perk-grid {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(230, 224, 214, 0.78);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(30, 29, 24, 0.05);
}

.profile-trade-panel {
  padding: 11px 12px 12px;
}

.profile-trade-panel h2 {
  margin: 0 0 10px;
  color: var(--profile-hero-text);
  font-size: 18px;
  line-height: 1.2;
}

.profile-trade-panel h2 span {
  margin-left: 4px;
  color: var(--profile-hero-muted);
  font-size: 13px;
  font-weight: 800;
}

.profile-trade-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.profile-trade-grid a,
.profile-trade-grid button,
.profile-service-icons a,
.profile-service-icons button {
  display: grid;
  min-width: 0;
  place-items: center;
  gap: 6px;
  padding: 2px 0 0;
  color: var(--profile-hero-text);
  cursor: pointer;
  background: transparent;
  border: 0;
  text-align: center;
}

.profile-trade-icon-wrap {
  position: relative;
  display: grid;
  width: 38px;
  height: 32px;
  place-items: center;
  margin: 0 auto;
}

.profile-trade-badge {
  position: absolute;
  top: -3px;
  right: -7px;
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px 1px;
  color: #ffffff;
  background: #e53935;
  border: 2px solid var(--profile-card-bg);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(229, 57, 53, 0.24);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  z-index: 2;
}

.profile-trade-badge[hidden] {
  display: none;
}

.profile-trade-grid img,
.profile-trade-icon-wrap img {
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.profile-trade-grid strong,
.profile-service-icons strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-recycle-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
}

.profile-recycle-panel strong,
.profile-recycle-panel span {
  display: block;
}

.profile-recycle-panel strong {
  color: var(--profile-hero-text);
  font-size: 17px;
}

.profile-recycle-panel span {
  margin-top: 5px;
  color: var(--profile-hero-muted);
  font-size: 12.5px;
  font-weight: 800;
}

.profile-recycle-preview {
  display: flex;
  align-items: center;
  gap: 7px;
}

.profile-recycle-preview img {
  width: 36px;
  height: 36px;
  padding: 5px;
  object-fit: contain;
  background: #f1f8e8;
  border-radius: 7px;
}

.profile-recycle-preview span {
  color: var(--profile-hero-muted);
  writing-mode: vertical-rl;
}

.profile-service-icons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  padding: 10px 7px 8px;
}

.profile-service-icons span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: #f1f8e8;
  border-radius: 50%;
}

.profile-service-icons img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.profile-perk-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  grid-auto-rows: minmax(72px, auto);
  gap: 8px;
  padding: 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.profile-perk-grid a,
.profile-perk-grid button {
  min-width: 0;
  padding: 12px;
  color: #263711;
  text-align: left;
  cursor: pointer;
  background:
    radial-gradient(circle at 86% 78%, rgba(140, 198, 63, 0.26), transparent 34%),
    #e7f8d6;
  border: 0;
  border-radius: 8px;
}

.profile-perk-grid button:nth-child(3) {
  background:
    radial-gradient(circle at 86% 78%, rgba(255, 255, 255, 0.4), transparent 34%),
    #f2e7f6;
}

.profile-perk-grid button:nth-child(4) {
  background: #f4eadf;
}

.profile-perk-grid button:nth-child(5) {
  background: #eaf3f7;
}

.profile-perk-large {
  grid-row: span 2;
}

.profile-perk-grid strong,
.profile-perk-grid span {
  display: block;
}

.profile-perk-grid strong {
  font-size: 17px;
  line-height: 1.2;
}

.profile-perk-grid span {
  margin-top: 7px;
  color: #5a644f;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.3;
}

.profile-shortcuts {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  margin: 13px -16px 0;
  padding: 0 16px 4px;
  scrollbar-width: none;
}

.profile-shortcuts::-webkit-scrollbar {
  display: none;
}

.profile-shortcuts a,
.profile-shortcuts button {
  display: grid;
  flex: 0 0 136px;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 3px 8px;
  min-height: 70px;
  padding: 11px;
  color: var(--profile-hero-text);
  text-align: left;
  cursor: pointer;
  background: var(--profile-hero-soft);
  border: 1px solid var(--profile-hero-line);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.profile-shortcuts .primary-shortcut {
  color: var(--profile-publish-text);
  background: var(--profile-publish-bg);
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(140, 198, 63, 0.28);
}

.profile-shortcuts span {
  grid-row: span 2;
  font-size: 20px;
  line-height: 1;
}

.profile-shortcuts strong,
.profile-shortcuts small {
  display: block;
  min-width: 0;
}

.profile-shortcuts strong {
  font-size: 14px;
}

.profile-shortcuts small {
  color: var(--profile-hero-muted);
  font-size: 11.5px;
  font-weight: 800;
}

.profile-shortcuts .primary-shortcut small {
  color: rgba(38, 55, 17, 0.72);
}

.profile-sheet {
  position: relative;
  z-index: 2;
  min-height: 420px;
  margin-top: -10px;
  padding: 14px 12px 30px;
  color: var(--profile-sheet-text);
  background: var(--profile-sheet);
  border-radius: 18px 18px 0 0;
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, auto)) 1fr;
  gap: 14px;
  align-items: center;
  overflow-x: auto;
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--profile-note-line);
  scrollbar-width: none;
}

.profile-tabs::-webkit-scrollbar {
  display: none;
}

.profile-tabs button {
  position: relative;
  min-height: 32px;
  padding: 0 0 4px;
  color: var(--profile-tab-muted);
  cursor: pointer;
  background: transparent;
  border: 0;
  font-size: 15.5px;
  font-weight: 900;
  white-space: nowrap;
}

.profile-tabs button.active {
  color: var(--profile-sheet-text);
}

.profile-tabs button.active::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 3px;
  background: #8cc63f;
  border-radius: 999px;
}

.profile-tabs span {
  margin-right: 4px;
  color: var(--profile-tab-muted);
  font-size: 13px;
}

.profile-search-tab {
  justify-self: end;
  font-size: 23px !important;
}

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

.profile-note-prompt {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  background: var(--profile-prompt-bg);
  border: 1px solid var(--profile-prompt-line);
  border-radius: 8px;
}

.profile-note-prompt strong,
.profile-note-prompt p {
  display: block;
}

.profile-note-prompt strong {
  color: var(--profile-sheet-text);
  font-size: 16px;
}

.profile-note-prompt p {
  margin: 5px 0 0;
  color: var(--profile-sheet-muted);
  font-size: 13px;
}

.profile-note-prompt a {
  padding: 8px 14px;
  color: #263711;
  background: #8cc63f;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
}

.profile-note-prompt button {
  color: #888888;
  cursor: pointer;
  background: transparent;
  border: 0;
  font-size: 28px;
}

.profile-note-card,
.profile-empty-note {
  overflow: hidden;
  background: var(--profile-note-bg);
  border: 1px solid var(--profile-note-line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(30, 29, 24, 0.05);
}

.profile-empty-note {
  grid-column: 1 / -1;
  padding: 18px;
}

.profile-empty-note strong,
.profile-empty-note p {
  display: block;
}

.profile-empty-note strong {
  color: var(--profile-sheet-text);
}

.profile-empty-note p {
  margin: 8px 0 0;
  color: var(--profile-sheet-muted);
  line-height: 1.5;
}

.profile-note-cover {
  position: relative;
  display: grid;
  aspect-ratio: 3 / 4;
  place-items: center;
  overflow: hidden;
  color: #263711;
  background: #f2f7e9;
  font-weight: 900;
}

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

.profile-note-views {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 7px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.52);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.profile-note-body {
  padding: 9px;
}

.profile-note-body h2 {
  display: -webkit-box;
  margin: 7px 0 5px;
  overflow: hidden;
  color: var(--profile-sheet-text);
  font-size: 14px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.profile-note-body strong {
  color: #ff3f4f;
  font-size: 16px;
}

.profile-note-body p {
  margin: 5px 0 0;
  color: var(--profile-sheet-muted);
  font-size: 12px;
}

.profile-note-card .seller-actions {
  grid-template-columns: repeat(4, 1fr);
  padding: 0 8px 8px;
}

.profile-note-card .seller-message-panel {
  margin: 0;
  padding: 0 8px 10px;
}

.profile-workspace {
  position: relative;
  z-index: 2;
  padding: 0 16px 18px;
}

.profile-workspace:empty {
  display: none;
}

.profile-center-panel {
  margin-top: 8px;
  padding: 12px;
  color: var(--profile-sheet-text);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(230, 224, 214, 0.82);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(30, 29, 24, 0.05);
}

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

.profile-center-head button,
.profile-center-head a,
.profile-center-actions a,
.profile-center-actions button {
  min-height: 32px;
  padding: 0 12px;
  color: #263711;
  cursor: pointer;
  background: #f2f7e9;
  border: 1px solid rgba(140, 198, 63, 0.28);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.profile-center-head strong {
  min-width: 0;
  overflow: hidden;
  color: var(--profile-sheet-text);
  font-size: 17px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-center-head span {
  color: var(--profile-sheet-muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.profile-subtabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -2px 10px;
  padding: 0 2px 2px;
  scrollbar-width: none;
}

.profile-subtabs::-webkit-scrollbar {
  display: none;
}

.profile-subtabs button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 13px;
  color: #4f5a4e;
  cursor: pointer;
  background: #f7faf8;
  border: 1px solid #e0e7e3;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.profile-subtabs button.active {
  color: #263711;
  background: #8cc63f;
  border-color: #8cc63f;
}

.profile-subtabs span {
  color: inherit;
  font-size: 11px;
  opacity: 0.75;
}

.profile-center-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 10px;
}

.profile-center-search input {
  min-width: 0;
  min-height: 38px;
  padding: 0 12px;
  color: #151515;
  background: #ffffff;
  border: 1px solid #e0e7e3;
  border-radius: 999px;
  font-size: 14px;
}

.profile-center-search button {
  min-height: 38px;
  padding: 0 14px;
  color: #263711;
  cursor: pointer;
  background: #8cc63f;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.profile-record-list {
  display: grid;
  gap: 8px;
}

.profile-date-group {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.profile-date-group:first-child {
  margin-top: 0;
}

.profile-date-group h3 {
  margin: 0;
  color: var(--profile-sheet-muted);
  font-size: 13px;
}

.profile-record-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px;
  background: #ffffff;
  border: 1px solid #ece9e2;
  border-radius: 8px;
}

.profile-record-image {
  display: grid;
  width: 64px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  color: #263711;
  background: #f2f7e9;
  border-radius: 8px;
  font-weight: 900;
}

.profile-record-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-record-card em,
.profile-record-card strong,
.profile-record-card p {
  display: block;
  min-width: 0;
}

.profile-record-card em {
  overflow: hidden;
  color: #6f8f5c;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-record-card strong {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: #151515;
  font-size: 14px;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.profile-record-card p {
  margin: 5px 0 0;
  overflow: hidden;
  color: #6f6f66;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.profile-bottom-nav .sell-fab {
  color: #ffffff;
  background: #8cc63f;
  border-radius: 14px;
  font-size: 34px;
  box-shadow: 0 8px 24px rgba(140, 198, 63, 0.34);
}

.profile-bottom-nav .sell-fab span {
  line-height: 1;
}

.orders-page {
  min-height: 100vh;
  background: #f6f6f4;
}

.orders-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(140, 198, 63, 0.16), rgba(251, 250, 247, 0) 220px),
    #fbfaf7;
}

.orders-app {
  padding: 0 10px 104px;
  background: #fbfaf7;
}

.orders-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  gap: 9px;
  margin: 0 -10px;
  padding: 9px 12px 8px;
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid rgba(227, 224, 216, 0.9);
  backdrop-filter: blur(16px);
}

.orders-topbar {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.orders-back {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(230, 224, 214, 0.86);
  border-radius: 999px;
}

.orders-back img {
  width: 19px;
  height: 19px;
}

.orders-topbar h1,
.orders-topbar p {
  margin: 0;
}

.orders-topbar h1 {
  color: #151515;
  font-size: 20px;
  line-height: 1.18;
}

.orders-topbar p {
  margin-top: 2px;
  overflow: hidden;
  color: #6f6f66;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-height: 42px;
  padding: 0 7px 0 13px;
  background: #ffffff;
  border: 1px solid #e4e0d8;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(23, 33, 29, 0.05);
}

.orders-search span {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid #566253;
  border-radius: 50%;
}

.orders-search span::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 8px;
  height: 2px;
  background: #566253;
  border-radius: 999px;
  transform: rotate(45deg);
}

.orders-search input {
  min-width: 0;
  height: 38px;
  padding: 0;
  color: #151515;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.orders-search button {
  min-height: 32px;
  padding: 0 13px;
  color: #263711;
  cursor: pointer;
  background: #8cc63f;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.orders-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.orders-tabs::-webkit-scrollbar {
  display: none;
}

.orders-tabs button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 12px;
  color: #4f5a4e;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #e0e7e3;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.orders-tabs button.active {
  color: #263711;
  background: #8cc63f;
  border-color: #8cc63f;
}

.orders-tabs span {
  font-size: 11px;
  opacity: 0.72;
}

.orders-main {
  display: grid;
  gap: 10px;
  padding: 10px 0 0;
}

.orders-summary,
.orders-card,
.orders-empty {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(230, 224, 214, 0.86);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(30, 29, 24, 0.05);
}

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

.orders-summary strong,
.orders-summary span,
.orders-summary p {
  display: block;
}

.orders-summary strong {
  color: #151515;
  font-size: 20px;
}

.orders-summary span {
  color: #5d8f18;
  font-size: 12px;
  font-weight: 900;
}

.orders-summary p {
  margin: 0;
  color: #6f6f66;
  font-size: 12px;
  line-height: 1.45;
}

.orders-card {
  overflow: hidden;
  padding: 11px;
}

.orders-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  margin-bottom: 10px;
}

.orders-card-top strong,
.orders-card-top span {
  display: block;
  min-width: 0;
}

.orders-card-top strong {
  overflow: hidden;
  color: #151515;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-card-top span {
  margin-top: 3px;
  color: #86867d;
  font-size: 11px;
}

.orders-card-top em {
  padding: 3px 8px;
  color: #5d8f18;
  background: #f3fae8;
  border: 1px solid rgba(140, 198, 63, 0.28);
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.orders-buyer-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 9px;
  padding: 10px 8px;
  background: #f7faf8;
  border: 1px solid #e7ece7;
  border-radius: 8px;
}

.orders-buyer-flow span {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 0;
  justify-items: center;
  color: #8a9287;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.orders-buyer-flow span::before {
  content: "";
  position: absolute;
  top: 7px;
  left: calc(-50% + 8px);
  width: calc(100% - 16px);
  height: 2px;
  background: #dfe6df;
}

.orders-buyer-flow span:first-child::before {
  display: none;
}

.orders-buyer-flow i {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border: 3px solid #d8dfd6;
  border-radius: 50%;
}

.orders-buyer-flow span.done,
.orders-buyer-flow span.active {
  color: #263711;
}

.orders-buyer-flow span.done::before,
.orders-buyer-flow span.active::before {
  background: #8cc63f;
}

.orders-buyer-flow span.done i,
.orders-buyer-flow span.active i {
  background: #8cc63f;
  border-color: #8cc63f;
}

.orders-buyer-flow b {
  display: block;
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-product {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 8px;
  background: #f7faf8;
  border: 1px solid #e7ece7;
  border-radius: 8px;
}

.orders-product img {
  width: 76px;
  aspect-ratio: 1;
  object-fit: cover;
  background: #edf4e8;
  border-radius: 8px;
}

.orders-product strong,
.orders-product span,
.orders-product p,
.orders-product b {
  display: block;
}

.orders-product strong {
  display: -webkit-box;
  overflow: hidden;
  color: #151515;
  font-size: 14px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.orders-product span,
.orders-product p {
  margin: 5px 0 0;
  overflow: hidden;
  color: #6f6f66;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-product b {
  color: #ff3f4f;
  font-size: 14px;
  white-space: nowrap;
}

.orders-service-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0;
}

.orders-service-row span {
  padding: 4px 8px;
  color: #566253;
  background: #ffffff;
  border: 1px solid #e3e9e2;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.orders-pending-note,
.orders-rider-card,
.orders-ship-choice,
.orders-shipped-card {
  background:
    linear-gradient(135deg, rgba(140, 198, 63, 0.12), rgba(255, 255, 255, 0.68)),
    #f7fbf2;
  border: 1px solid rgba(140, 198, 63, 0.24);
  border-radius: 8px;
}

.orders-pending-note {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.orders-pending-note strong,
.orders-pending-note span {
  display: block;
}

.orders-pending-note strong {
  color: #263711;
  font-size: 13px;
}

.orders-pending-note span {
  color: #6f6f66;
  font-size: 12px;
}

.orders-rider-card {
  overflow: hidden;
}

.orders-ship-choice {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.orders-ship-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.orders-ship-head img {
  width: 34px;
  height: 34px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid rgba(140, 198, 63, 0.2);
  border-radius: 8px;
}

.orders-ship-head strong,
.orders-ship-head span {
  display: block;
  min-width: 0;
}

.orders-ship-head strong {
  color: #263711;
  font-size: 14px;
}

.orders-ship-head span {
  margin-top: 3px;
  color: #6f6f66;
  font-size: 12px;
  line-height: 1.42;
}

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

.orders-ship-actions button {
  min-width: 0;
  min-height: 33px;
  padding: 0 8px;
  color: #4f5a4e;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #e0e7e3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.orders-ship-actions button.primary {
  color: #263711;
  background: #8cc63f;
  border-color: #8cc63f;
}

.orders-shipped-card {
  display: grid;
  gap: 9px;
  padding: 10px;
}

.orders-shipped-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.orders-shipped-head img {
  width: 34px;
  height: 34px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid rgba(140, 198, 63, 0.2);
  border-radius: 8px;
}

.orders-shipped-head strong,
.orders-shipped-head span {
  display: block;
  min-width: 0;
}

.orders-shipped-head strong {
  color: #263711;
  font-size: 14px;
}

.orders-shipped-head span {
  margin-top: 3px;
  color: #6f6f66;
  font-size: 12px;
  line-height: 1.42;
}

.orders-shipped-meta {
  display: grid;
  gap: 5px;
  padding: 8px;
  color: #566253;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #e3e9e2;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.orders-rider-status-card {
  display: grid;
  gap: 9px;
  padding: 9px;
  background: rgba(247, 250, 248, 0.92);
  border: 1px solid #dfe8df;
  border-radius: 9px;
}

.orders-rider-status-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.orders-rider-status-head strong,
.orders-rider-status-head span {
  display: block;
  min-width: 0;
}

.orders-rider-status-head strong {
  color: #263711;
  font-size: 13px;
  line-height: 1.24;
}

.orders-rider-status-head span {
  margin-top: 3px;
  color: #6f6f66;
  font-size: 11px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.orders-rider-status-head em {
  padding: 4px 8px;
  color: #263711;
  background: #8cc63f;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.orders-rider-status-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding-top: 4px;
}

.orders-rider-status-line::before,
.orders-rider-status-line::after {
  position: absolute;
  top: 11px;
  left: 10%;
  width: 80%;
  height: 3px;
  content: "";
  border-radius: 999px;
}

.orders-rider-status-line::before {
  background: #dfe8df;
}

.orders-rider-status-line::after {
  width: var(--rider-status-fill);
  background: #8cc63f;
  transition: width 220ms ease;
}

.orders-rider-status-line span {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  color: #8a9288;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.orders-rider-status-line i {
  display: block;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border: 3px solid #dfe8df;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(247, 250, 248, 0.92);
}

.orders-rider-status-line span.done,
.orders-rider-status-line span.active {
  color: #263711;
}

.orders-rider-status-line span.done i,
.orders-rider-status-line span.active i {
  background: #8cc63f;
  border-color: #8cc63f;
}

.orders-rider-status-line span.active i {
  transform: scale(1.12);
}

.orders-rider-status-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 7px;
}

.orders-rider-status-actions button {
  min-height: 34px;
  padding: 0 10px;
  color: #4f5a4e;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #e0e7e3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.orders-rider-status-actions button.primary {
  color: #263711;
  background: #8cc63f;
  border-color: #8cc63f;
}

.orders-rider-status-actions button:disabled {
  color: #8a9288;
  cursor: default;
  background: #eef3ee;
}

.orders-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.orders-proof-row button {
  display: grid;
  min-height: 86px;
  gap: 5px;
  padding: 5px;
  color: #5d8f18;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #e0e7e3;
  border-radius: 8px;
  text-align: center;
}

.orders-proof-row img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
  background: #f7faf8;
  border-radius: 6px;
}

.orders-proof-row span {
  font-size: 11px;
  font-weight: 900;
}

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

.orders-rider-head img {
  width: 31px;
  height: 31px;
  padding: 5px;
  background: #ffffff;
  border-radius: 8px;
}

.orders-rider-head strong,
.orders-rider-head span {
  display: block;
  min-width: 0;
}

.orders-rider-head strong {
  overflow: hidden;
  color: #263711;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-rider-head span {
  margin-top: 3px;
  overflow: hidden;
  color: #6f6f66;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-rider-head button {
  min-height: 30px;
  padding: 0 10px;
  color: #263711;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid rgba(140, 198, 63, 0.34);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.orders-delivery-map {
  position: relative;
  height: 112px;
  margin: 0 10px 10px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(140, 198, 63, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(140, 198, 63, 0.08) 1px, transparent 1px),
    #ffffff;
  background-size: 34px 34px;
  border: 1px solid #e4ece2;
  border-radius: 8px;
}

.orders-road {
  position: absolute;
  height: 26px;
  background: rgba(228, 234, 228, 0.88);
  border-radius: 999px;
}

.orders-road.road-main {
  top: 52px;
  left: -26px;
  width: 122%;
  transform: rotate(-17deg);
}

.orders-road.road-side-a {
  top: 12px;
  left: 46px;
  width: 92px;
  transform: rotate(48deg);
}

.orders-road.road-side-b {
  right: 18px;
  bottom: 5px;
  width: 118px;
  transform: rotate(48deg);
}

.orders-route-line {
  position: absolute;
  top: 54px;
  left: 24px;
  width: 70%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  transform: rotate(-17deg);
}

.orders-route-line b {
  display: block;
  width: var(--route-fill);
  height: 100%;
  background: #8cc63f;
  border-radius: inherit;
}

.orders-map-pin,
.orders-rider-pin {
  position: absolute;
  z-index: 2;
  display: grid;
  justify-items: center;
  color: #263711;
  font-size: 10px;
  font-weight: 900;
}

.orders-map-pin i,
.orders-rider-pin i {
  width: 18px;
  height: 18px;
  background: #ffffff;
  border: 4px solid #8cc63f;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(38, 55, 17, 0.14);
}

.orders-map-pin.store {
  left: 21px;
  bottom: 20px;
}

.orders-map-pin.home {
  top: 17px;
  right: 22px;
}

.orders-rider-pin {
  left: var(--rider-x);
  top: var(--rider-y);
  transform: translate(-50%, -50%);
}

.orders-rider-pin i {
  width: 22px;
  height: 22px;
  background: #263711;
  border-color: #ffffff;
}

.orders-rider-pin i::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 3px auto 0;
  background: #8cc63f;
  border-radius: 50%;
}

.orders-delivery-map > div {
  position: absolute;
  right: 9px;
  bottom: 8px;
  max-width: 63%;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e4ece2;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(23, 33, 29, 0.06);
}

.orders-delivery-map > div strong,
.orders-delivery-map > div span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-delivery-map > div strong {
  color: #151515;
  font-size: 12px;
}

.orders-delivery-map > div span {
  margin-top: 2px;
  color: #6f6f66;
  font-size: 10px;
}

.orders-route-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 0 10px 10px;
}

.orders-route-steps span {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  justify-items: center;
  text-align: center;
}

.orders-route-steps i {
  position: relative;
  z-index: 1;
  display: block;
  width: 15px;
  height: 15px;
  background: #ffffff;
  border: 3px solid #d8dfd6;
  border-radius: 50%;
}

.orders-route-steps span.done i,
.orders-route-steps span.active i {
  background: #8cc63f;
  border-color: #8cc63f;
}

.orders-route-steps b,
.orders-route-steps em {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-route-steps b {
  color: #263711;
  font-size: 11px;
}

.orders-route-steps em {
  color: #7c8279;
  font-size: 10px;
  font-style: normal;
}

.orders-card-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.orders-card-bottom > span {
  color: #6f6f66;
  font-size: 12px;
}

.orders-card-bottom > span strong {
  color: #151515;
  font-size: 15px;
}

.orders-card-bottom > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.orders-card-bottom button {
  min-height: 31px;
  padding: 0 10px;
  color: #4f5a4e;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #e0e7e3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.orders-card-bottom button.primary {
  color: #263711;
  background: #8cc63f;
  border-color: #8cc63f;
}

.orders-empty {
  padding: 26px 16px;
  text-align: center;
}

.orders-empty strong,
.orders-empty p {
  display: block;
}

.orders-empty strong {
  color: #151515;
  font-size: 16px;
}

.orders-empty p {
  margin: 8px 0 0;
  color: #6f6f66;
  font-size: 13px;
}

.shipping-dialog {
  width: min(438px, calc(100% - 22px));
  max-height: min(760px, calc(100vh - 28px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: #151515;
  background: #fbfaf7;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(23, 33, 29, 0.28);
}

.shipping-dialog::backdrop {
  background: rgba(20, 24, 20, 0.42);
  backdrop-filter: blur(8px);
}

.shipping-form {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.shipping-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: start;
}

.shipping-head strong,
.shipping-head span {
  display: block;
  min-width: 0;
}

.shipping-head strong {
  color: #151515;
  font-size: 18px;
}

.shipping-head span {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: #6f6f66;
  font-size: 12px;
  line-height: 1.36;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shipping-head button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #566253;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #e0e7e3;
  border-radius: 999px;
  font-size: 24px;
}

.shipping-input-row {
  display: grid;
  gap: 6px;
}

.shipping-input-row span {
  color: #566253;
  font-size: 12px;
  font-weight: 900;
}

.shipping-input-row input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: #151515;
  background: #ffffff;
  border: 1px solid #e0e7e3;
  border-radius: 8px;
  outline: 0;
  font-size: 16px;
  line-height: 1.15;
}

.shipping-input-row input.invalid {
  background: #fff8f8;
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.shipping-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.shipping-photo-grid label {
  display: grid;
  min-height: 118px;
  gap: 6px;
  place-items: center;
  padding: 10px 8px;
  color: #263711;
  text-align: center;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(140, 198, 63, 0.12), rgba(255, 255, 255, 0.7)),
    #ffffff;
  border: 1px dashed rgba(140, 198, 63, 0.55);
  border-radius: 8px;
}

.shipping-photo-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.shipping-photo-grid b,
.shipping-photo-grid span {
  display: block;
}

.shipping-photo-grid b {
  font-size: 12px;
  line-height: 1.28;
}

.shipping-photo-grid span {
  padding: 3px 8px;
  color: #5d8f18;
  background: #f3fae8;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.shipping-note {
  margin: 0;
  padding: 9px 10px;
  color: #566253;
  background: #f7faf8;
  border: 1px solid #e0e7e3;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
}

.shipping-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
}

.shipping-actions button {
  min-height: 42px;
  color: #4f5a4e;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #e0e7e3;
  border-radius: 999px;
  font-weight: 900;
}

.shipping-actions button[type="submit"] {
  color: #263711;
  background: #8cc63f;
  border-color: #8cc63f;
}

.rider-dialog {
  width: min(438px, calc(100% - 22px));
  max-height: min(780px, calc(100vh - 28px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: #151515;
  background: #fbfaf7;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(23, 33, 29, 0.28);
}

.rider-dialog::backdrop {
  background: rgba(20, 24, 20, 0.42);
  backdrop-filter: blur(8px);
}

.rider-form {
  display: grid;
  gap: 6px;
  max-height: min(780px, calc(100vh - 16px));
  padding: 8px;
  overflow: auto;
  overflow-wrap: anywhere;
}

.rider-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 6px;
  align-items: start;
}

.rider-head strong,
.rider-head span {
  display: block;
  min-width: 0;
}

.rider-head strong {
  color: #151515;
  font-size: 15px;
  line-height: 1.18;
}

.rider-head span {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  color: #6f6f66;
  font-size: 11px;
  line-height: 1.24;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rider-head button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #566253;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #e0e7e3;
  border-radius: 999px;
  font-size: 20px;
}

.rider-section {
  display: grid;
  gap: 5px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid #e0e7e3;
  border-radius: 7px;
}

.rider-section h3 {
  margin: 0;
  color: #263711;
  font-size: 12px;
  line-height: 1.2;
}

.rider-input-row {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.rider-input-row span {
  color: #566253;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.rider-input-row input,
.rider-input-row textarea,
.rider-input-row select {
  width: 100%;
  min-height: 32px;
  padding: 4px 8px;
  color: #151515;
  background: #ffffff;
  border: 1px solid #e0e7e3;
  border-radius: 6px;
  outline: 0;
  font: inherit;
  font-size: 16px;
  line-height: 1.12;
  resize: vertical;
}

.rider-input-row textarea {
  min-height: 42px;
}

.rider-input-row select {
  appearance: none;
}

.rider-input-row input.invalid,
.rider-input-row textarea.invalid,
.rider-input-row select.invalid {
  background: #fff8f8;
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.rider-address-control {
  display: grid;
  grid-template-columns: minmax(92px, 0.82fr) minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  min-width: 0;
}

.rider-address-control button,
.rider-code-card button {
  min-height: 28px;
  padding: 3px 8px;
  color: #263711;
  cursor: pointer;
  background: #edf7e1;
  border: 1px solid #cde7b4;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.18;
  white-space: normal;
  overflow-wrap: anywhere;
}

.rider-address-control button.confirmed {
  color: #263711;
  background: #8cc63f;
  border-color: #8cc63f;
}

.rider-address-control button.invalid {
  background: #fff8f8;
  border-color: #e53935;
}

.rider-address-control span {
  min-width: 0;
  color: #6f6f66;
  font-size: 10.5px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.rider-photo-upload {
  display: grid;
  min-height: 52px;
  gap: 3px;
  place-items: center;
  padding: 6px;
  color: #263711;
  text-align: center;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(140, 198, 63, 0.12), rgba(255, 255, 255, 0.72)),
    #ffffff;
  border: 1px dashed rgba(140, 198, 63, 0.55);
  border-radius: 7px;
}

.rider-photo-upload.invalid {
  background: #fff8f8;
  border-color: #e53935;
}

.rider-photo-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.rider-photo-upload b {
  font-size: 11px;
  line-height: 1.15;
}

.rider-photo-upload span {
  padding: 2px 7px;
  color: #5d8f18;
  background: #f3fae8;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
}

.rider-photo-previews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.rider-photo-previews figure {
  margin: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e0e7e3;
  border-radius: 7px;
}

.rider-photo-previews img {
  display: block;
  width: 100%;
  aspect-ratio: 1.75;
  object-fit: cover;
  background: #f7faf8;
}

.rider-photo-previews figcaption {
  padding: 3px 5px;
  color: #566253;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.16;
}

.rider-inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  min-width: 0;
}

.rider-success-dialog {
  width: min(390px, calc(100% - 28px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: #151515;
  background: #fbfaf7;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(23, 33, 29, 0.28);
}

.rider-success-dialog::backdrop {
  background: rgba(20, 24, 20, 0.46);
  backdrop-filter: blur(8px);
}

.rider-success-sheet {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.rider-success-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: start;
}

.rider-success-head strong,
.rider-success-head span {
  display: block;
  min-width: 0;
}

.rider-success-head strong {
  color: #151515;
  font-size: 17px;
  line-height: 1.2;
}

.rider-success-head span {
  margin-top: 3px;
  overflow: hidden;
  color: #6f6f66;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rider-success-head button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #566253;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #e0e7e3;
  border-radius: 999px;
  font-size: 22px;
}

.rider-success-code-card {
  display: grid;
  gap: 5px;
  padding: 12px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(140, 198, 63, 0.18), rgba(255, 255, 255, 0.82)),
    #ffffff;
  border: 1px solid #cde7b4;
  border-radius: 10px;
}

.rider-success-code-card span {
  color: #6f6f66;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.rider-success-code-card strong {
  color: #263711;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: 3px;
}

.rider-success-code-card p,
.rider-success-message {
  margin: 0;
  color: #566253;
  font-size: 12px;
  line-height: 1.38;
}

.rider-success-product {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e0e7e3;
  border-radius: 10px;
}

.rider-success-product img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  background: #f7faf8;
  border-radius: 8px;
}

.rider-success-product strong,
.rider-success-product span,
.rider-success-product p {
  display: block;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.rider-success-product strong {
  color: #151515;
  font-size: 13px;
  line-height: 1.24;
}

.rider-success-product span,
.rider-success-product p {
  margin-top: 3px;
  color: #6f6f66;
  font-size: 11px;
  line-height: 1.25;
}

.rider-success-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 8px;
}

.rider-success-actions button {
  min-height: 38px;
  padding: 0 10px;
  color: #263711;
  cursor: pointer;
  background: #edf7e1;
  border: 1px solid #cde7b4;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.rider-success-actions button:first-child {
  background: #8cc63f;
  border-color: #8cc63f;
}

.rider-fee-card {
  display: grid;
  gap: 2px;
  padding: 6px;
  color: #566253;
  background: #f7faf8;
  border: 1px solid #dfe8df;
  border-radius: 7px;
}

.rider-fee-card strong {
  color: #263711;
  font-size: 12px;
  line-height: 1.18;
}

.rider-fee-card span {
  font-size: 10.5px;
  line-height: 1.22;
}

.rider-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5px;
}

.rider-actions button {
  min-height: 34px;
  padding: 4px 8px;
  color: #4f5a4e;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #e0e7e3;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  line-height: 1.18;
  white-space: normal;
  overflow-wrap: anywhere;
}

.rider-actions button[type="submit"] {
  color: #263711;
  background: #8cc63f;
  border-color: #8cc63f;
}

.proof-dialog {
  width: min(438px, calc(100% - 22px));
  max-height: min(780px, calc(100vh - 28px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: #151515;
  background: #fbfaf7;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(23, 33, 29, 0.28);
}

.proof-dialog::backdrop {
  background: rgba(20, 24, 20, 0.42);
  backdrop-filter: blur(8px);
}

.proof-sheet {
  display: grid;
  gap: 10px;
  max-height: min(780px, calc(100vh - 28px));
  padding: 14px;
  overflow: auto;
}

.proof-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: start;
}

.proof-head strong,
.proof-head span {
  display: block;
  min-width: 0;
}

.proof-head strong {
  color: #151515;
  font-size: 18px;
}

.proof-head span {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: #6f6f66;
  font-size: 12px;
  line-height: 1.36;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.proof-head button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #566253;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #e0e7e3;
  border-radius: 999px;
  font-size: 24px;
}

.proof-meta {
  padding: 9px 10px;
  color: #566253;
  background: #f7faf8;
  border: 1px solid #e0e7e3;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.42;
}

.proof-preview-grid {
  display: grid;
  gap: 10px;
}

.proof-preview-grid figure {
  margin: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e0e7e3;
  border-radius: 10px;
}

.proof-preview-grid img {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  background: #f7faf8;
}

.proof-preview-grid figcaption {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
}

.proof-preview-grid strong {
  color: #263711;
  font-size: 14px;
}

.proof-preview-grid span {
  color: #6f6f66;
  font-size: 12px;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #101411;
    --panel: #181d1a;
    --panel-2: #202720;
    --ink: #eef5ef;
    --muted: #a8b6ad;
    --line: #303a34;
    --accent: #8cc63f;
    --accent-dark: #baf4cf;
    --accent-soft: #20372a;
    --accent-ink: #263711;
    --shadow: 0 20px 55px rgba(0, 0, 0, 0.42);
}

:root[data-theme="dark"] body {
    color: var(--ink);
    background:
      linear-gradient(180deg, rgba(140, 198, 63, 0.12), rgba(16, 20, 17, 0) 320px),
      var(--bg);
}

:root[data-theme="dark"] .buyer-page,
:root[data-theme="dark"] .market-app,
:root[data-theme="dark"] .market-header,
:root[data-theme="dark"] .bottom-nav,
:root[data-theme="dark"] .seller-center-head,
:root[data-theme="dark"] .chat-header,
:root[data-theme="dark"] .chat-input-bar {
    background: rgba(16, 20, 17, 0.96);
}

:root[data-theme="dark"] .search-overlay,
:root[data-theme="dark"] .search-overlay-top {
    background: #101411;
}

:root[data-theme="dark"] .market-app {
    box-shadow: 0 0 0 1px #27312b, 0 24px 80px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .pull-refresh-indicator {
    color: #eef5ef;
    background: rgba(32, 39, 32, 0.9);
    border-color: #374239;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .market-card,
:root[data-theme="dark"] .form-block,
:root[data-theme="dark"] .ai-chat-card,
:root[data-theme="dark"] .ai-chat-bubble.assistant,
:root[data-theme="dark"] .admin-metric-grid article,
:root[data-theme="dark"] .admin-queue-table article,
:root[data-theme="dark"] .required-field-grid label,
:root[data-theme="dark"] .wechat-submission-panel,
:root[data-theme="dark"] .wechat-submission-card,
:root[data-theme="dark"] .preview-card,
:root[data-theme="dark"] .saved-list,
:root[data-theme="dark"] .translation-card,
:root[data-theme="dark"] .seller-rule-card,
:root[data-theme="dark"] .seller-listing-card,
:root[data-theme="dark"] .seller-empty,
:root[data-theme="dark"] .my-profile-card,
:root[data-theme="dark"] .my-stats-grid article,
:root[data-theme="dark"] .private-list-item,
:root[data-theme="dark"] .message-thread-card,
:root[data-theme="dark"] .side-menu-panel,
:root[data-theme="dark"] .profile-form,
:root[data-theme="dark"] .category-card,
:root[data-theme="dark"] .chat-product-card,
:root[data-theme="dark"] .chat-bubble,
:root[data-theme="dark"] .detail-section {
    color: var(--ink);
    background: #181d1a;
    border-color: #303a34;
    box-shadow: none;
}

:root[data-theme="dark"] .ai-chat-bubble.seller {
    color: #263711;
    background: #8cc63f;
    border-color: #8cc63f;
}

:root[data-theme="dark"] .chat-mode-hint {
    color: #c6d0c8;
}

:root[data-theme="dark"] .publish-chat-mode .ai-chat-card {
    background: #111511;
}

:root[data-theme="dark"] .publish-chat-mode .draft-status,
:root[data-theme="dark"] .chat-upload-button {
    color: #e9f2e8;
    background: #181d1a;
    border-color: #303a34;
}

:root[data-theme="dark"] .publish-chat-mode,
:root[data-theme="dark"] .publish-chat-mode .ai-block,
:root[data-theme="dark"] .publish-chat-mode .status-line {
    background: #111511;
}

:root[data-theme="dark"] .publish-chat-mode .ai-block .block-title-row,
:root[data-theme="dark"] .publish-chat-mode .ai-chat-input-row,
:root[data-theme="dark"] .publish-chat-mode .chat-composer-actions,
:root[data-theme="dark"] .publish-chat-mode .sticky-submit,
:root[data-theme="dark"] .publish-chat-mode .chat-photo-preview {
    background: #181d1a;
    border-color: #303a34;
}

:root[data-theme="dark"] .publish-chat-mode .ai-block .block-title-row h2,
:root[data-theme="dark"] .chat-back-link {
    color: #edf4ed;
}

:root[data-theme="dark"] .publish-chat-mode .ai-chat-bubble.assistant,
:root[data-theme="dark"] .publish-chat-mode .ai-chat-input-row textarea,
:root[data-theme="dark"] .publish-chat-mode .ai-chat-input-row .mic-button,
:root[data-theme="dark"] .publish-chat-mode .ai-refine-button {
    color: #edf4ed;
    background: #222822;
    border-color: #303a34;
}

:root[data-theme="dark"] .publish-chat-mode .ai-chat-bubble.seller {
    color: #102312;
    background: #95ec69;
}

:root[data-theme="dark"] .ai-product-card {
    color: #edf4ed;
    background: #181d1a;
    border-color: #303a34;
}

:root[data-theme="dark"] .ai-product-card-image {
    color: #c9d7c5;
    background: #222822;
}

:root[data-theme="dark"] .ai-product-card-body strong {
    color: #edf4ed;
}

:root[data-theme="dark"] .ai-product-card-body span {
    color: #aebdae;
}

:root[data-theme="dark"] .ai-product-card-body strong {
    color: #edf4ed;
}

:root[data-theme="dark"] .ai-product-card-body span {
    color: #aab5ab;
}

:root[data-theme="dark"] .ai-product-card-footer em {
    color: #dff7d8;
    background: rgba(149, 236, 105, 0.18);
}

:root[data-theme="dark"] .admin-ai-notice {
    color: #f8e5bd;
    background: rgba(96, 65, 8, 0.32);
    border-color: rgba(255, 198, 73, 0.42);
}

:root[data-theme="dark"] .admin-ai-notice strong {
    color: #ffc56a;
}

:root[data-theme="dark"] .admin-ai-notice a {
    color: #bce79f;
}

:root[data-theme="dark"] .admin-catalog-status {
    background: #181d1a;
    border-color: #303a34;
}

:root[data-theme="dark"] .admin-catalog-status strong {
    color: #edf4ed;
}

:root[data-theme="dark"] .admin-catalog-status span,
:root[data-theme="dark"] .admin-catalog-status small {
    color: #aab5ab;
}

:root[data-theme="dark"] .market-brand-strip,
:root[data-theme="dark"] .market-search,
:root[data-theme="dark"] .area-button,
:root[data-theme="dark"] .sort-button,
:root[data-theme="dark"] .distance-sort-button,
:root[data-theme="dark"] .header-search-button,
:root[data-theme="dark"] .language-switch button,
:root[data-theme="dark"] .search-back,
:root[data-theme="dark"] .history-chip,
:root[data-theme="dark"] .voice-search-hint button,
:root[data-theme="dark"] .my-tabs button,
:root[data-theme="dark"] .menu-trigger,
:root[data-theme="dark"] .seller-center-head > a:first-child,
:root[data-theme="dark"] .seller-actions button,
:root[data-theme="dark"] .seller-message-panel button,
:root[data-theme="dark"] .side-menu-panel > button,
:root[data-theme="dark"] .side-menu-panel > a,
:root[data-theme="dark"] .side-menu-head button,
:root[data-theme="dark"] .profile-form input,
:root[data-theme="dark"] .profile-form select,
:root[data-theme="dark"] .profile-form textarea,
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
    color: var(--ink);
    background: #202720;
    border-color: #374239;
}

:root[data-theme="dark"] .overlay-search-form {
    color: var(--ink);
    background: #202720;
    border-color: #374239;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .overlay-search-form:focus-within {
    border-color: rgba(186, 244, 207, 0.5);
    box-shadow: inset 0 0 0 1px rgba(186, 244, 207, 0.18), 0 10px 24px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .overlay-search-icon {
    border-color: #baf4cf;
}

:root[data-theme="dark"] .overlay-search-icon::after {
    background: #baf4cf;
}

:root[data-theme="dark"] .overlay-camera {
    color: #baf4cf;
    border-left-color: #374239;
}

:root[data-theme="dark"] .search-back {
    background: transparent;
    border-color: transparent;
}

:root[data-theme="dark"] .market-search input,
:root[data-theme="dark"] .overlay-search-form input,
:root[data-theme="dark"] .listing-form input,
:root[data-theme="dark"] .listing-form select,
:root[data-theme="dark"] .listing-form textarea,
:root[data-theme="dark"] .comment-form input,
:root[data-theme="dark"] .story-comment-input input,
:root[data-theme="dark"] .chat-input-bar input {
    color: var(--ink);
    background: #202720;
    border-color: #374239;
}

:root[data-theme="dark"] .overlay-search-form input {
    background: transparent;
    border: 0;
}

:root[data-theme="dark"] .brand small,
:root[data-theme="dark"] .market-brand-strip small,
:root[data-theme="dark"] .empty-history,
:root[data-theme="dark"] .search-history-tip,
:root[data-theme="dark"] .search-section-title span,
:root[data-theme="dark"] .history-actions button,
:root[data-theme="dark"] .listing-meta-row,
:root[data-theme="dark"] .listing-meta-row strong,
:root[data-theme="dark"] .seller-center-head p,
:root[data-theme="dark"] .seller-listing-card p,
:root[data-theme="dark"] .seller-message-panel em,
:root[data-theme="dark"] .message-thread-head small,
:root[data-theme="dark"] .message-thread-main p,
:root[data-theme="dark"] .message-reference small,
:root[data-theme="dark"] .my-profile-card p,
:root[data-theme="dark"] .my-stats-grid span,
:root[data-theme="dark"] .private-list-item p,
:root[data-theme="dark"] .profile-form span,
:root[data-theme="dark"] .translation-card p,
:root[data-theme="dark"] .saved-item span {
    color: var(--muted);
}

:root[data-theme="dark"] .brand strong,
:root[data-theme="dark"] .market-brand-strip strong,
:root[data-theme="dark"] .category-groups button,
:root[data-theme="dark"] .category-tabs button,
:root[data-theme="dark"] .suggestion-list button,
:root[data-theme="dark"] .search-section-title h2,
:root[data-theme="dark"] .card-body h2,
:root[data-theme="dark"] .message-thread-head strong,
:root[data-theme="dark"] .message-reference em,
:root[data-theme="dark"] .seller-center-head h1,
:root[data-theme="dark"] .seller-listing-card h2,
:root[data-theme="dark"] .seller-message-panel h3,
:root[data-theme="dark"] .my-profile-title h2,
:root[data-theme="dark"] .private-list-head strong,
:root[data-theme="dark"] .private-list-item strong,
:root[data-theme="dark"] .section-heading h1,
:root[data-theme="dark"] .block-title-row h2 {
    color: var(--ink);
}

:root[data-theme="dark"] .publish-panel .section-heading h1 {
    color: #151515;
}

:root[data-theme="dark"] .publish-panel .section-heading .eyebrow {
    color: #5d8f18;
}

:root[data-theme="dark"] .category-groups button,
:root[data-theme="dark"] .category-tabs button,
:root[data-theme="dark"] .category-more {
    background: #202720;
    border-color: #374239;
}

:root[data-theme="dark"] .market-search-row .category-groups button,
:root[data-theme="dark"] .market-search-row .header-search-button {
    background: transparent;
    border-color: transparent;
}

:root[data-theme="dark"] .market-search-row .category-groups button.active {
    color: var(--ink);
    background: transparent;
    border-color: transparent;
}

:root[data-theme="dark"] .market-search-row .sort-button,
:root[data-theme="dark"] .market-search-row .distance-sort-button {
  color: #dbe7dc;
  background: #202720;
  border-color: #374239;
}

:root[data-theme="dark"] .market-search-row .sort-button.active,
:root[data-theme="dark"] .market-search-row .distance-sort-button.active {
  color: #263711;
  background: #8cc63f;
  border-color: #8cc63f;
}

:root[data-theme="dark"] .category-group-menu-button {
  color: #baf4cf;
  background: transparent;
  border-color: transparent;
}

:root[data-theme="dark"] .category-group-cell::after {
  right: 0;
  width: var(--category-menu-width);
  background: linear-gradient(90deg, rgba(16, 20, 17, 0), rgba(16, 20, 17, 0.96) 70%);
  box-shadow: none;
}

:root[data-theme="dark"] .category-group-menu-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--category-menu-width);
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(186, 244, 207, 0), rgba(186, 244, 207, 0.16) 50%, rgba(186, 244, 207, 0));
  pointer-events: none;
  transform: translate(-50%, -52%);
}

:root[data-theme="dark"] .app-bridge-strip span,
:root[data-theme="dark"] .location-permission-card,
:root[data-theme="dark"] .draft-status,
:root[data-theme="dark"] #chatReferenceLabel,
:root[data-theme="dark"] .message-reference,
:root[data-theme="dark"] .my-profile-title span,
:root[data-theme="dark"] .private-list-head span,
:root[data-theme="dark"] .seller-status,
:root[data-theme="dark"] .private-item-image,
:root[data-theme="dark"] .seller-listing-image,
:root[data-theme="dark"] .chat-product-card > div:first-child {
    color: #bff3d4;
    background: #20372a;
    border-color: #28543b;
}

:root[data-theme="dark"] .message-reference > div {
    color: #bff3d4;
    background: #20372a;
}

:root[data-theme="dark"] .price-row strong,
:root[data-theme="dark"] .seller-listing-card strong {
    color: #ff6b74;
}

:root[data-theme="dark"] .menu-trigger span {
    background: var(--ink);
}

:root[data-theme="dark"] .sticky-submit {
    background: rgba(24, 29, 26, 0.88);
    border-color: #303a34;
}

:root[data-theme="dark"] .card-image,
:root[data-theme="dark"] .cover-preview,
:root[data-theme="dark"] .photo-tile,
:root[data-theme="dark"] .category-card-image {
    background: #202720;
}

:root[data-theme="dark"] .bottom-item {
    color: var(--ink);
}

:root[data-theme="dark"] .home-icon::before,
:root[data-theme="dark"] .home-icon::after,
:root[data-theme="dark"] .chat-icon,
:root[data-theme="dark"] .user-icon,
:root[data-theme="dark"] .user-icon::before,
:root[data-theme="dark"] .user-icon::after {
    border-color: var(--ink);
}

:root[data-theme="dark"] .pin-icon {
    border-color: var(--ink);
}

:root[data-theme="dark"] .chat-icon::after {
    background: #181d1a;
    border-color: var(--ink);
}

:root[data-theme="dark"] .theme-setting,
:root[data-theme="dark"] .theme-choice-row button,
:root[data-theme="dark"] .mini-action,
:root[data-theme="dark"] .wechat-submission-panel,
:root[data-theme="dark"] .wechat-submission-card,
:root[data-theme="dark"] .admin-review-grid a {
  color: var(--ink);
  background: #202720;
  border-color: #374239;
}

:root[data-theme="dark"] .theme-setting span {
  color: var(--muted);
}

:root[data-theme="dark"] .theme-choice-row button.active {
  color: #263711;
  background: #8cc63f;
  border-color: #8cc63f;
}

:root[data-theme="dark"] .profile-record-card,
:root[data-theme="dark"] .profile-center-search input {
  color: var(--ink);
  background: #202720;
  border-color: #374239;
}

:root[data-theme="dark"] .profile-center-head strong,
:root[data-theme="dark"] .profile-record-card strong {
  color: var(--ink);
}

:root[data-theme="dark"] .profile-center-head span,
:root[data-theme="dark"] .profile-date-group h3,
:root[data-theme="dark"] .profile-record-card p {
  color: var(--muted);
}

:root[data-theme="dark"] .profile-center-head button,
:root[data-theme="dark"] .profile-center-head a,
:root[data-theme="dark"] .profile-center-actions a,
:root[data-theme="dark"] .profile-center-actions button,
:root[data-theme="dark"] .profile-subtabs button {
  color: #eef5ef;
  background: #202720;
  border-color: #374239;
}

:root[data-theme="dark"] .profile-subtabs button.active,
:root[data-theme="dark"] .profile-center-search button {
  color: #263711;
  background: #8cc63f;
  border-color: #8cc63f;
}

:root[data-theme="dark"] .profile-record-image {
  color: #bff3d4;
  background: #20372a;
  border-color: #28543b;
}

:root[data-theme="dark"] .orders-page,
:root[data-theme="dark"] .orders-app,
:root[data-theme="dark"] .orders-header {
  color: var(--ink);
  background: rgba(16, 20, 17, 0.96);
}

:root[data-theme="dark"] .orders-page::before {
  background:
    linear-gradient(180deg, rgba(140, 198, 63, 0.12), rgba(16, 20, 17, 0) 220px),
    #101411;
}

:root[data-theme="dark"] .orders-header {
  border-color: #303a34;
}

:root[data-theme="dark"] .orders-back,
:root[data-theme="dark"] .orders-search,
:root[data-theme="dark"] .orders-tabs button,
:root[data-theme="dark"] .orders-summary,
:root[data-theme="dark"] .orders-card,
:root[data-theme="dark"] .orders-empty,
:root[data-theme="dark"] .orders-product,
:root[data-theme="dark"] .orders-buyer-flow,
:root[data-theme="dark"] .orders-service-row span,
:root[data-theme="dark"] .orders-rider-head button,
:root[data-theme="dark"] .orders-card-bottom button {
  color: var(--ink);
  background: #181d1a;
  border-color: #303a34;
  box-shadow: none;
}

:root[data-theme="dark"] .orders-pending-note,
:root[data-theme="dark"] .orders-rider-card,
:root[data-theme="dark"] .orders-ship-choice,
:root[data-theme="dark"] .orders-shipped-card,
:root[data-theme="dark"] .orders-rider-status-card {
  color: var(--ink);
  background: #15231b;
  border-color: #28543b;
}

:root[data-theme="dark"] .orders-delivery-map {
  background:
    linear-gradient(90deg, rgba(186, 244, 207, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(186, 244, 207, 0.07) 1px, transparent 1px),
    #202720;
  border-color: #374239;
}

:root[data-theme="dark"] .orders-delivery-map > div,
:root[data-theme="dark"] .orders-rider-head img {
  color: var(--ink);
  background: #181d1a;
  border-color: #303a34;
}

:root[data-theme="dark"] .orders-topbar h1,
:root[data-theme="dark"] .orders-summary strong,
:root[data-theme="dark"] .orders-card-top strong,
:root[data-theme="dark"] .orders-product strong,
:root[data-theme="dark"] .orders-delivery-map > div strong,
:root[data-theme="dark"] .orders-card-bottom > span strong,
:root[data-theme="dark"] .orders-empty strong,
:root[data-theme="dark"] .orders-rider-head strong {
  color: var(--ink);
}

:root[data-theme="dark"] .orders-topbar p,
:root[data-theme="dark"] .orders-summary p,
:root[data-theme="dark"] .orders-card-top span,
:root[data-theme="dark"] .orders-product span,
:root[data-theme="dark"] .orders-product p,
:root[data-theme="dark"] .orders-pending-note span,
:root[data-theme="dark"] .orders-rider-head span,
:root[data-theme="dark"] .orders-delivery-map > div span,
:root[data-theme="dark"] .orders-route-steps em,
:root[data-theme="dark"] .orders-card-bottom > span,
:root[data-theme="dark"] .orders-empty p {
  color: var(--muted);
}

:root[data-theme="dark"] .orders-rider-status-line::before {
  background: #374239;
}

:root[data-theme="dark"] .orders-rider-status-line i {
  background: #181d1a;
  border-color: #374239;
  box-shadow: 0 0 0 3px #15231b;
}

:root[data-theme="dark"] .orders-search input {
  color: var(--ink);
}

:root[data-theme="dark"] .orders-tabs button.active,
:root[data-theme="dark"] .orders-search button,
:root[data-theme="dark"] .orders-card-bottom button.primary {
  color: #263711;
  background: #8cc63f;
  border-color: #8cc63f;
}

:root[data-theme="dark"] .orders-road {
  background: rgba(48, 58, 52, 0.9);
}

:root[data-theme="dark"] .orders-route-steps i {
  background: #101411;
  border-color: #374239;
}

:root[data-theme="dark"] .orders-route-steps span.done i,
:root[data-theme="dark"] .orders-route-steps span.active i {
  background: #8cc63f;
  border-color: #8cc63f;
}

:root[data-theme="dark"] .orders-route-steps b {
  color: #dcebdc;
}

:root[data-theme="dark"] .orders-ship-head strong,
:root[data-theme="dark"] .orders-shipped-head strong,
:root[data-theme="dark"] .orders-rider-status-head strong,
:root[data-theme="dark"] .orders-rider-status-line span.done,
:root[data-theme="dark"] .orders-rider-status-line span.active,
:root[data-theme="dark"] .orders-buyer-flow span.done,
:root[data-theme="dark"] .orders-buyer-flow span.active {
  color: #dcebdc;
}

:root[data-theme="dark"] .orders-ship-head span,
:root[data-theme="dark"] .orders-shipped-head span,
:root[data-theme="dark"] .orders-rider-status-head span,
:root[data-theme="dark"] .orders-rider-status-line span {
  color: var(--muted);
}

:root[data-theme="dark"] .orders-ship-head img,
:root[data-theme="dark"] .orders-shipped-head img,
:root[data-theme="dark"] .orders-ship-actions button,
:root[data-theme="dark"] .orders-shipped-meta,
:root[data-theme="dark"] .orders-rider-status-actions button,
:root[data-theme="dark"] .orders-proof-row button,
:root[data-theme="dark"] .shipping-dialog,
:root[data-theme="dark"] .shipping-head button,
:root[data-theme="dark"] .shipping-input-row input,
:root[data-theme="dark"] .shipping-photo-grid label,
:root[data-theme="dark"] .shipping-note,
:root[data-theme="dark"] .shipping-actions button,
:root[data-theme="dark"] .rider-dialog,
:root[data-theme="dark"] .rider-head button,
:root[data-theme="dark"] .rider-section,
:root[data-theme="dark"] .rider-input-row input,
:root[data-theme="dark"] .rider-input-row textarea,
:root[data-theme="dark"] .rider-input-row select,
:root[data-theme="dark"] .rider-address-control button,
:root[data-theme="dark"] .rider-photo-upload,
:root[data-theme="dark"] .rider-photo-previews figure,
:root[data-theme="dark"] .rider-success-dialog,
:root[data-theme="dark"] .rider-success-head button,
:root[data-theme="dark"] .rider-success-code-card,
:root[data-theme="dark"] .rider-success-product,
:root[data-theme="dark"] .rider-fee-card,
:root[data-theme="dark"] .rider-actions button,
:root[data-theme="dark"] .proof-dialog,
:root[data-theme="dark"] .proof-head button,
:root[data-theme="dark"] .proof-meta,
:root[data-theme="dark"] .proof-preview-grid figure {
  color: var(--ink);
  background: #181d1a;
  border-color: #303a34;
}

:root[data-theme="dark"] .orders-ship-actions button.primary {
  color: #263711;
  background: #8cc63f;
  border-color: #8cc63f;
}

:root[data-theme="dark"] .orders-rider-status-line span.done i,
:root[data-theme="dark"] .orders-rider-status-line span.active i,
:root[data-theme="dark"] .orders-rider-status-line::after,
:root[data-theme="dark"] .orders-rider-status-head em,
:root[data-theme="dark"] .orders-rider-status-actions button.primary {
  color: #263711;
  background: #8cc63f;
  border-color: #8cc63f;
}

:root[data-theme="dark"] .orders-buyer-flow span::before {
  background: #374239;
}

:root[data-theme="dark"] .orders-buyer-flow span.done::before,
:root[data-theme="dark"] .orders-buyer-flow span.active::before,
:root[data-theme="dark"] .orders-buyer-flow span.done i,
:root[data-theme="dark"] .orders-buyer-flow span.active i {
  background: #8cc63f;
  border-color: #8cc63f;
}

:root[data-theme="dark"] .shipping-head strong {
  color: var(--ink);
}

:root[data-theme="dark"] .proof-head strong,
:root[data-theme="dark"] .rider-head strong,
:root[data-theme="dark"] .rider-section h3,
:root[data-theme="dark"] .rider-success-head strong,
:root[data-theme="dark"] .rider-success-code-card strong,
:root[data-theme="dark"] .rider-success-product strong,
:root[data-theme="dark"] .rider-fee-card strong,
:root[data-theme="dark"] .proof-preview-grid strong {
  color: var(--ink);
}

:root[data-theme="dark"] .shipping-head span,
:root[data-theme="dark"] .shipping-input-row span,
:root[data-theme="dark"] .shipping-note,
:root[data-theme="dark"] .orders-shipped-meta,
:root[data-theme="dark"] .rider-head span,
:root[data-theme="dark"] .rider-input-row span,
:root[data-theme="dark"] .rider-address-control span,
:root[data-theme="dark"] .rider-success-head span,
:root[data-theme="dark"] .rider-success-code-card span,
:root[data-theme="dark"] .rider-success-code-card p,
:root[data-theme="dark"] .rider-success-message,
:root[data-theme="dark"] .rider-success-product span,
:root[data-theme="dark"] .rider-success-product p,
:root[data-theme="dark"] .rider-photo-previews figcaption,
:root[data-theme="dark"] .rider-fee-card,
:root[data-theme="dark"] .proof-head span,
:root[data-theme="dark"] .proof-meta,
:root[data-theme="dark"] .proof-preview-grid span {
  color: var(--muted);
}

:root[data-theme="dark"] .shipping-photo-grid span {
  color: #baf4cf;
  background: #20372a;
}

:root[data-theme="dark"] .rider-photo-upload span {
  color: #baf4cf;
  background: #20372a;
}

:root[data-theme="dark"] .rider-address-control button.confirmed,
:root[data-theme="dark"] .rider-success-actions button:first-child {
  color: #263711;
  background: #8cc63f;
  border-color: #8cc63f;
}

:root[data-theme="dark"] .shipping-actions button[type="submit"] {
  color: #263711;
  background: #8cc63f;
  border-color: #8cc63f;
}

:root[data-theme="dark"] .rider-actions button[type="submit"] {
  color: #263711;
  background: #8cc63f;
  border-color: #8cc63f;
}


@media (max-width: 920px) {
  .publish-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    position: static;
  }

  .preview-card {
    order: -1;
  }
}

@media (min-width: 700px) {
  .buyer-page {
    background:
      linear-gradient(90deg, #ecefe9, #f7f4ed 45%, #ecefe9);
  }

  .market-app {
    box-shadow: 0 0 0 1px #e2ded5, 0 24px 80px rgba(0, 0, 0, 0.12);
  }
}

@media (max-width: 640px) {
  .app-shell,
  .admin-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .topbar {
    gap: 9px;
    margin-bottom: 14px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 11px;
  }

  .top-actions {
    gap: 7px;
  }

  .icon-link {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
  }

  .icon-link.wide {
    font-size: 12px;
  }

  .section-heading {
    padding: 20px 18px 14px;
  }

  .publish-chat-mode .app-shell {
    width: 100%;
    padding: 0;
  }

  .publish-chat-mode .publish-layout {
    max-width: none;
  }

  .publish-chat-mode .draft-status {
    display: none;
  }

  .publish-chat-mode .ai-block {
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .publish-chat-mode .ai-chat-card {
    min-height: 0;
  }

  .publish-chat-mode .sticky-submit {
    grid-template-columns: 1fr;
    padding: 0 10px max(8px, env(safe-area-inset-bottom));
  }

  .chat-composer-actions {
    grid-template-columns: 1fr 0.78fr 1fr;
    gap: 6px;
  }

  h1 {
    font-size: 34px;
  }

  .listing-form {
    padding: 10px;
  }

  .form-block {
    padding: 14px;
  }

	  .field-grid,
	  .ai-row,
	  .translation-grid,
	  .word-control-grid,
	  .admin-metric-grid {
	    grid-template-columns: 1fr;
	  }

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

	  .admin-queue-table article {
	    grid-template-columns: 1fr;
	  }

  .photo-preview {
    grid-template-columns: repeat(3, 1fr);
  }

  .mic-button {
    width: 54px;
  }

  .sticky-submit {
    grid-template-columns: 1fr;
    bottom: 10px;
  }

  .cover-preview,
  .cover-preview img {
    min-height: 220px;
    height: 220px;
  }

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

@media (max-width: 380px) {
  .story-detail-shell {
    --story-topbar-height: 56px;
  }

  .story-topbar {
    grid-template-columns: 28px minmax(0, 1fr) 46px 28px;
    gap: 7px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .story-avatar {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .story-seller {
    gap: 8px;
  }

  .story-seller strong {
    font-size: 14px;
  }

  .story-seller small {
    font-size: 11px;
  }

  .story-follow {
    min-width: 46px;
    padding: 0 8px;
  }

  .story-follow {
    min-width: 52px;
    min-height: 31px;
    padding: 0 7px;
    font-size: 13px;
  }

  .market-search-row {
    grid-template-columns: auto minmax(0, 1fr) 40px auto;
    gap: 2px;
  }

  .area-button {
    padding-left: 0;
    font-size: 14px;
  }

  .sort-button,
  .distance-sort-button {
    padding: 0 2px;
    font-size: 10px;
  }

  .category-groups button {
    font-size: 14.5px;
  }

  .category-groups {
    gap: 10px;
  }

  .category-tabs {
    gap: 7px;
  }

  .category-tabs {
    padding-right: 10px;
    padding-left: 10px;
  }

  .card-body h2 {
    font-size: 13px;
  }

  .price-row strong {
    font-size: 19px;
  }
}
