:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --panel: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-soft: #eaf3ff;
  --green: #248a3d;
  --green-soft: #e8f5ec;
  --purple: #7555a6;
  --purple-soft: #f1edfa;
  --orange: #8a4b08;
  --orange-soft: #fdf3e7;
  --danger: #b42318;
  --focus: rgba(0, 113, 227, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-hover);
  text-decoration: underline;
}

[hidden],
.sr-only[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 80;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  padding: 10px 14px;
}

.skip-link:focus {
  top: 12px;
}

.desktop-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  background: rgba(245, 245, 247, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.desktop-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(980px, 100%);
  height: 52px;
  margin: 0 auto;
  gap: 24px;
  padding: 0 24px;
}

.brand-button,
.desktop-nav button,
.header-publish {
  border: 0;
  cursor: pointer;
}

.brand-button {
  justify-self: start;
  background: transparent !important;
  color: var(--text) !important;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 0;
}

.brand-button span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  gap: 4px;
}

.desktop-nav button {
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 16px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.desktop-nav button.active {
  background: var(--text);
  color: #fff;
}

.header-publish {
  justify-self: end;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 18px;
}

.header-publish:hover,
.header-publish.active {
  background: var(--blue-hover);
}

.mobile-header,
.mobile-nav,
.mobile-publish-fab {
  display: none;
}

#mainContent {
  width: min(980px, 100%);
  min-height: calc(100dvh - 52px);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px) clamp(16px, 3vw, 24px) 40px;
}

.view,
.wizard-step {
  display: none;
}

.view.active,
.wizard-step.active {
  display: block;
}

.feed-hero {
  text-align: center;
  padding: clamp(20px, 5vw, 48px) 0 clamp(20px, 3vw, 32px);
}

.feed-hero p,
.feed-hero h1,
.feed-hero span {
  margin: 0;
}

.broadcast-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.broadcast {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(0, 113, 227, .16);
  border-radius: 16px;
  background: #fff;
  padding: 15px 17px;
}

.broadcast-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue);
}

.broadcast-icon .inline-icon { width: 19px; height: 19px; }
.broadcast strong { display: block; font-size: 14px; }
.broadcast p { margin: 4px 0; color: #48484d; font-size: 13.5px; line-height: 1.5; }
.broadcast small { color: var(--muted); font-size: 11.5px; }
.broadcast--important { border-color: rgba(138, 75, 8, .22); }
.broadcast--important .broadcast-icon { background: var(--orange-soft); color: var(--orange); }
.broadcast--urgent { border-color: rgba(180, 35, 24, .24); background: #fffafa; }
.broadcast--urgent .broadcast-icon { background: #fff0ee; color: var(--danger); }

.feed-hero p {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}

.feed-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.feed-hero span {
  display: block;
  max-width: 460px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 17px);
  text-wrap: pretty;
}

.home-command {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, .72fr);
  gap: 18px;
  margin-bottom: 34px;
  padding-top: clamp(8px, 2vw, 20px);
}

.home-command-main,
.home-trust-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
}

.home-command-main {
  background: #fff;
  padding: clamp(24px, 4vw, 42px);
}

.home-kicker,
.home-intro,
.section-eyebrow {
  margin: 0;
}

.home-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-kicker span + span {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .04em;
}

.home-kicker span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 9px 3px 0;
  border-radius: 50%;
  background: #c4c4c8;
}

.home-command h1 {
  max-width: 620px;
  margin: 15px 0 10px;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 720;
  line-height: 1.05;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.home-intro {
  max-width: 590px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.home-command .search-row {
  justify-content: flex-start;
  margin: 24px 0 0;
}

.home-command .search-group {
  width: 100%;
  min-height: 50px;
  border-radius: 15px;
  background: var(--bg);
  box-shadow: none;
}

.home-command .search-field {
  padding: 12px 16px;
}

.home-command .search-group > select {
  background: var(--bg);
}

.home-trust-panel {
  background: #19191b;
  color: #fff;
  padding: 26px 24px;
}

.trust-panel-label {
  color: #aaaab0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}

.home-trust-panel ul {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.home-trust-panel li {
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 16px 0;
}

.home-trust-panel li:last-child {
  padding-bottom: 0;
}

.home-trust-panel strong {
  font-size: 14px;
}

.home-trust-panel li span {
  color: #aaaab0;
  font-size: 12px;
  line-height: 1.45;
}

.task-section {
  margin-bottom: 36px;
}

.home-section-heading {
  align-items: end;
  margin-bottom: 14px !important;
}

.section-eyebrow {
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
  gap: 1px;
}

.task-grid button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  border: 0;
  background: #fff;
  cursor: pointer;
  text-align: left;
  padding: 18px;
  transition: background 160ms ease, color 160ms ease;
}

.task-grid button:hover,
.task-grid button.active {
  background: var(--blue-soft);
}

.task-grid button > span:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.task-grid strong {
  font-size: 14px;
  letter-spacing: -.01em;
}

.task-grid small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.task-grid b {
  color: #a1a1a6;
  font-size: 16px;
  font-weight: 500;
}

.task-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}

.task-icon--solid {
  background: var(--blue);
  color: #fff;
}

.task-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.alerts-section {
  margin: 0 0 34px;
}

.alerts-section .broadcast-list {
  margin-bottom: 0;
}

.search-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.search-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: -10px 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.search-context span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.search-context .inline-icon {
  color: var(--blue);
}

.search-group {
  display: flex;
  align-items: stretch;
  width: min(620px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(29, 29, 31, 0.04);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-group:focus-within {
  border-color: rgba(0, 113, 227, 0.55);
  box-shadow: 0 0 0 3px var(--focus), 0 2px 10px rgba(29, 29, 31, 0.04);
}

.search-field {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 11px 18px;
}

.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  padding: 0;
}

.search-field input:focus-visible,
.search-group > select:focus-visible {
  outline: 0;
}

.search-group > select,
.mobile-header select {
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  font-size: 14px;
  padding: 0 34px 0 14px;
}

.search-group > select {
  flex: 0 0 auto;
  width: auto;
  min-width: 112px;
}

.category-wrap {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 22px;
}

.segmented-control {
  display: inline-flex;
  max-width: 100%;
  gap: 2px;
  overflow-x: auto;
  border-radius: 12px;
  background: #e8e8ed;
  padding: 3px;
}

.segmented-control button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  padding: 8px 16px;
}

.filter-icon,
.type-icon,
.inline-icon,
.heading-icon svg,
.publish-type-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filter-icon {
  width: 15px;
  height: 15px;
}

.heading-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.heading-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.heading-icon svg {
  width: 17px;
  height: 17px;
}

.heading-icon--local {
  background: var(--blue-soft);
  color: var(--blue);
}

.heading-icon--ubuy {
  background: var(--green-soft);
  color: var(--green);
}

.segmented-control button.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(29, 29, 31, 0.12);
}

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

.section-title-row.compact {
  margin-bottom: 6px;
}

.section-title-row h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.section-title-row > span {
  color: var(--muted);
  font-size: 13px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 0;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 14px;
}

#listingList {
  scroll-margin-top: 76px;
}

.discovery-empty {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-column: 1 / -1;
  gap: 16px;
  align-items: center;
  min-height: 132px;
  border: 1px dashed rgba(0, 113, 227, .28);
  border-radius: 18px;
  background: #fff;
  padding: 24px;
}

.discovery-empty h3,
.discovery-empty p {
  margin: 0;
}

.discovery-empty h3 {
  font-size: 17px;
  letter-spacing: -.01em;
}

.discovery-empty p {
  max-width: 600px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.empty-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 20px;
  font-weight: 650;
}

.card,
.listing-card,
.post-card,
.order-card,
.empty-card,
.profile-hero,
.auth-panel,
.profile-form,
.my-listings,
.safety-card,
.publish-card,
.review-card,
.visitor-guide,
.auth-gate {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  background: #fff;
}

.listing-card,
.post-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
  padding: 20px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.listing-card:hover,
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(29, 29, 31, 0.08);
}

.listing-top,
.row,
.verification-row,
.listing-meta,
.action-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.listing-top,
.row {
  justify-content: space-between;
}

.type-mark,
.tag {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
}

.type-mark,
.tag {
  gap: 6px;
}

.type-icon {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

.inline-icon {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}

.type-mark--service {
  background: var(--blue-soft);
  color: var(--blue);
}

.type-mark--experience {
  border: 1px solid rgba(0, 47, 167, 0.2);
  background: #ffffff;
  color: #002fa7;
}

.type-mark--education {
  background: var(--purple-soft);
  color: var(--purple);
}

.type-mark--help {
  background: var(--orange-soft);
  color: var(--orange);
}

.type-mark--ubuy {
  background: var(--green-soft);
  color: var(--green);
}

.scope-mark,
.muted,
.demo-mark,
.privacy-badge {
  color: var(--muted);
  font-size: 12px;
}

.listing-card h3,
.post-card .title,
.order-card .title {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.listing-card p,
.post-card .desc {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.verification-row {
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}

.verified-mark {
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

.listing-meta,
.post-card .meta {
  flex-wrap: wrap;
  margin-top: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--muted);
  font-size: 13px;
  padding-top: 8px;
}

.freshness,
.demand {
  color: var(--blue);
  font-weight: 600;
}

.listing-cover,
.post-cover {
  width: calc(100% + 40px);
  height: 150px;
  margin: -20px -20px 8px;
  border-radius: 17px 17px 0 0;
  background: #f0f0f2;
  object-fit: cover;
}

.post-layout {
  display: contents;
}

.post-layout > div:last-child {
  display: contents;
}

.post-cover.placeholder {
  display: none;
}

.section-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.ubuy-section {
  margin-top: 44px;
}

.mode-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #48484d;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
}

.chip.active {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.visitor-guide,
.auth-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 18px;
}

.visitor-guide p,
.auth-gate p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.publish-view {
  max-width: 560px;
  margin: 0 auto;
}

.wizard-heading {
  text-align: center;
  padding: clamp(8px, 2vw, 24px) 0 24px;
}

.wizard-heading h1,
.page-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wizard-heading p,
.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.wizard-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.wizard-progress span {
  width: 14px;
  height: 6px;
  border-radius: 999px;
  background: #d2d2d7;
  transition: width 240ms ease, background 240ms ease;
}

.wizard-progress span.active {
  width: 28px;
  background: var(--blue);
}

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

.publish-type-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 2px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  padding: 18px 20px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.publish-type-list button:hover {
  border-color: rgba(0, 113, 227, 0.35);
}

.publish-type-list button > span:not(.publish-type-icon) {
  flex: 1;
  min-width: 0;
}

.publish-type-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.publish-type-icon svg {
  width: 21px;
  height: 21px;
}

.publish-type-icon.type-icon--service {
  background: var(--blue-soft);
  color: var(--blue);
}

.publish-type-icon.type-icon--experience {
  border: 1px solid rgba(0, 47, 167, 0.2);
  background: #ffffff;
  color: #002fa7;
}

.publish-type-icon.type-icon--education {
  background: var(--purple-soft);
  color: var(--purple);
}

.publish-type-icon.type-icon--help {
  background: var(--orange-soft);
  color: var(--orange);
}

.publish-type-icon.type-icon--ubuy {
  background: var(--green-soft);
  color: var(--green);
}

.publish-type-list strong,
.publish-type-list small {
  display: block;
}

.publish-type-list strong {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.publish-type-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.publish-type-list b {
  color: #c7c7cc;
  font-size: 26px;
  font-weight: 400;
}

.publish-card,
.review-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.form {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

label em {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: #fff;
  font-weight: 400;
  padding: 11px 14px;
}

textarea {
  resize: vertical;
}

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

.photo-uploader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px dashed #d2d2d7;
  border-radius: 14px;
  background: #fafafa;
  padding: 14px;
}

.photo-uploader strong {
  font-size: 14px;
}

.photo-uploader p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.upload-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 38px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  padding: 0 16px;
}

.upload-button input {
  display: none;
}

.photo-preview,
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.photo-tile {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 1;
}

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

.photo-tile button {
  position: absolute;
  right: 4px;
  top: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.78);
  color: #fff;
  font-size: 11px;
  padding: 4px 7px;
}

.photo-tile span {
  display: none;
}

.photo-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 8px;
}

.ai-panel,
.advanced-fields {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  background: #fafafa;
  padding: 14px;
}

.advanced-fields summary {
  color: var(--blue);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.ai-head,
.quick-options,
.check-group,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-options button,
.secondary {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  padding: 8px 14px;
}

.check-group {
  margin: 0;
  border: 0;
  padding: 0;
}

.check-group legend {
  width: 100%;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
}

.check-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.check-group input,
.consent-row input {
  width: 17px;
  min-height: 17px;
  margin: 0;
  accent-color: var(--blue);
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.review-card h3 {
  margin: 12px 0 6px;
  font-size: 19px;
}

.review-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 14px;
  padding-top: 8px;
}

.preview-row span:first-child {
  color: var(--muted);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: #fff;
  color: #48484d;
  cursor: pointer;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 16px 18px;
}

.review-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.wizard-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.wizard-back,
.wizard-next,
.primary,
.google-button,
.logout-button {
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
}

.wizard-back {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
}

.wizard-next {
  flex: 2;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}

.primary {
  border: 0;
  background: var(--blue);
  color: #fff;
}

.primary:hover,
.wizard-next:hover {
  background: var(--blue-hover);
}

.narrow-view {
  max-width: 640px;
  margin: 0 auto;
}

.page-heading {
  margin-bottom: 22px;
}

.orders-view .page-heading h1 {
  margin-bottom: 4px;
}

.stack {
  display: grid;
  gap: 12px;
}

.order-card,
.inquiry-card,
.empty-card {
  padding: 20px;
}

.progress-group {
  display: grid;
  gap: 12px;
}

.progress-group + .progress-group {
  margin-top: 12px;
}

.progress-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 10px 2px 0;
}

.progress-group-heading span,
.progress-group-heading small {
  color: var(--muted);
  font-size: 12px;
}

.progress-group-heading h2 {
  margin: 2px 0 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.inquiry-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  background: #fff;
}

.inquiry-listing-link {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
  padding: 0;
}

.inquiry-listing-link:hover {
  color: var(--blue);
}

.inquiry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.inquiry-note {
  margin: 10px 0 0;
  border-left: 2px solid var(--blue);
  color: var(--muted);
  font-size: 12px;
  padding-left: 10px;
}

.order-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.order-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  padding: 4px 10px;
}

.order-status--neutral {
  background: #f0f0f2;
  color: #6e6e73;
}

.order-status--blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.order-status--orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.order-status--green {
  background: var(--green-soft);
  color: var(--green);
}

.order-status--red {
  background: #fff0ee;
  color: var(--danger);
}

.order-settlement {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.order-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.order-summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 14px;
}

.order-primary-action {
  border: 1px solid rgba(0, 113, 227, 0.35);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 18px;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.order-primary-action:hover {
  border-color: rgba(0, 113, 227, 0.5);
  background: #deedff;
}

.order-primary-action:active,
.order-text-action:active {
  transform: scale(0.98);
}

.order-secondary-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.order-text-action {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 6px 0;
  transition: color 180ms ease, transform 180ms ease;
}

.order-text-action:hover {
  color: var(--text);
}

.order-text-action.danger:hover {
  color: var(--danger);
}

.order-empty-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  background: #fff;
  text-align: center;
  padding: 40px 24px;
}

.order-empty-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.order-empty-card p {
  max-width: 430px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.order-empty-card .primary {
  margin-top: 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  padding: 11px 26px;
}

.empty-card {
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  padding: 40px 24px;
}

.profile-view {
  display: none;
  max-width: 560px;
  margin: 0 auto;
  gap: 14px;
}

.profile-view.active {
  display: grid;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
}

.profile-avatar {
  display: grid;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #8e8e93;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
}

.profile-hero h2 {
  margin: 0 0 3px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.profile-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.auth-panel,
.profile-form,
.my-listings,
.safety-card {
  padding: 24px;
}

.auth-switch {
  justify-self: start;
  margin-bottom: 4px;
}

.google-button {
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
}

.profile-dashboard {
  display: grid;
  gap: 14px;
}

.profile-progress-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(0, 113, 227, 0.16);
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  padding: 16px 18px;
}

.profile-progress-link span,
.profile-progress-link strong,
.profile-progress-link small {
  display: block;
}

.profile-progress-link strong {
  font-size: 15px;
}

.profile-progress-link small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.profile-progress-link b {
  color: var(--blue);
  font-size: 24px;
  font-weight: 400;
}

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

.password-change-panel {
  border: 1px solid rgba(180, 35, 24, .2);
  border-radius: 18px;
  background: #fff;
  padding: 24px;
}

.password-change-copy { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.password-change-copy h2 { margin: 0 0 5px; font-size: 20px; }
.password-change-copy p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.heading-icon--security { flex: 0 0 auto; background: #fff0ee; color: var(--danger); }

.profile-metrics div {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: #fff;
  text-align: center;
  padding: 16px 8px;
}

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

.profile-metrics strong {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.profile-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.my-listing-card {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 14px 0;
}

.my-listing-card:last-child {
  border-bottom: 0;
}

.my-listing-card h3,
.my-listing-card p {
  margin: 0;
}

.logout-button {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: var(--danger);
}

.safety-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.safety-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  color: #48484d;
  font-size: 14px;
  line-height: 1.5;
  padding-left: 18px;
}

.safety-card .emoji-list {
  list-style: none;
  padding-left: 0;
}

.emoji-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 8px;
}

.emoji-list li > span {
  font-size: 16px;
  line-height: 1.45;
}

.safety-card > div {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  font-size: 13.5px;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.34);
  padding: 24px;
  animation: fade-in 180ms ease;
}

.drawer.open {
  display: flex;
}

.drawer-panel {
  width: min(560px, 100%);
  max-height: 84vh;
  overflow-y: auto;
  border-radius: 22px;
  background: #fff;
  padding: 20px 24px 24px;
  animation: sheet-up 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.close {
  display: grid;
  width: 32px;
  height: 32px;
  margin: 0 0 4px auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #e8e8ed;
  color: var(--muted);
  cursor: pointer;
}

.detail-block {
  display: grid;
  gap: 14px;
}

.detail-gallery {
  grid-template-columns: repeat(2, 1fr);
}

.detail-gallery img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.listing-detail-head {
  background: transparent;
  padding: 0;
}

.listing-detail-head h2,
.detail-block > .card .title {
  margin: 14px 0 8px;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.listing-detail-head p,
.detail-block > .card .desc {
  margin: 0;
  color: #48484d;
  font-size: 15px;
  line-height: 1.6;
}

.experience-body {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  color: #2f3034;
  font-size: 15px;
  line-height: 1.8;
}

.source-link {
  display: inline-flex;
  margin-top: 12px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 650;
}

.detail-block > .card {
  padding: 18px;
}

.detail-block > .card h2 {
  margin: 0 0 6px;
  font-size: 15.5px;
}

.group-row,
.request-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 14px;
  padding: 11px 0;
}

.group-row:last-child,
.request-row:last-child {
  border-bottom: 0;
}

.safe-contact {
  display: grid;
  gap: 8px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 14px 16px;
}

.safe-contact p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.safe-contact > .primary,
.safe-contact > .secondary {
  justify-self: start;
}

.inquiry-form {
  display: grid;
  gap: 14px;
  color: var(--text);
}

.inquiry-form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: #fff;
  padding: 11px 12px;
}

.inquiry-form textarea {
  resize: vertical;
}

.inquiry-form-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inquiry-form-actions .primary,
.inquiry-form-actions .secondary {
  min-height: 42px;
}

.inquiry-success {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--text);
}

.inquiry-success > .inline-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  padding: 4px;
}

.inquiry-success strong {
  font-size: 14px;
}

.inquiry-success p {
  margin-top: 4px;
  line-height: 1.5;
}

.detail-actions {
  justify-content: flex-end;
}

.detail-actions .secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.report-link {
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-size: 13.5px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  display: none;
  max-width: 86vw;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.92);
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 11px 20px;
}

.toast.show {
  display: block;
  animation: fade-in 200ms ease;
}

.reason-sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: end center;
  background: rgba(29, 29, 31, 0.36);
  padding: 16px;
}

.reason-panel {
  width: min(520px, 100%);
  border-radius: 18px;
  background: #fff;
  padding: 20px;
}

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

.distribution-card,
.share-preview,
.copy-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.distribution-head,
.share-preview {
  display: flex;
  gap: 12px;
}

.share-preview img,
.share-thumb {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
}

@keyframes sheet-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 759px) {
  .desktop-header {
    display: none;
  }

  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(245, 245, 247, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 20px 10px;
  }

  .mobile-context {
    color: var(--muted);
    font-size: 12px;
  }

  .mobile-title {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .mobile-header select {
    width: auto;
    font-size: 13px;
    padding: 6px 12px;
    box-shadow: none;
  }

  #mainContent {
    min-height: 100dvh;
    padding: 16px 16px 40px;
  }

  .home-command {
    grid-template-columns: 1fr;
    margin-bottom: 28px;
    padding-top: 0;
  }

  .home-command-main {
    border-radius: 20px;
    padding: 22px 20px;
  }

  .home-command h1 {
    margin-top: 12px;
    font-size: clamp(29px, 8vw, 36px);
    line-height: 1.08;
  }

  .home-intro {
    font-size: 14px;
    line-height: 1.55;
  }

  .home-command .search-row {
    margin-top: 18px;
  }

  .home-trust-panel {
    display: none;
  }

  .task-section {
    margin-bottom: 30px;
  }

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

  .task-grid button {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    min-height: 94px;
    padding: 14px;
  }

  .task-grid b {
    display: none;
  }

  .task-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .task-icon svg {
    width: 19px;
    height: 19px;
  }

  .alerts-section {
    margin-bottom: 28px;
  }

  .mobile-header select {
    display: none;
  }

  .search-group {
    width: 100%;
  }

  .search-field {
    padding-right: 12px;
    padding-left: 14px;
  }

  .search-group > select {
    min-width: 104px;
    padding-right: 28px;
    padding-left: 10px;
  }

  .category-wrap {
    justify-content: flex-start;
  }

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

  .section-title-row {
    align-items: flex-end;
  }

  .section-title-row > span {
    max-width: 46%;
    text-align: right;
  }

  .discovery-empty {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 20px;
  }

  .discovery-empty button {
    grid-column: 2;
    justify-self: start;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

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

  .orders-view .page-heading {
    margin-bottom: 20px;
  }

  .order-card {
    padding: 18px;
  }

  .order-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-secondary-actions {
    margin-left: 0;
  }

  .upload-button {
    width: 100%;
  }

  .profile-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }

  .mobile-publish-fab {
    position: fixed;
    right: 18px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    z-index: 31;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 0;
    border-radius: 18px;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 113, 227, 0.28);
    cursor: pointer;
    transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
  }

  .mobile-publish-fab:hover {
    background: var(--blue-hover);
  }

  .mobile-publish-fab:active {
    transform: scale(0.96);
  }

  .mobile-publish-fab.active {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.92);
  }

  .mobile-publish-fab svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }

  .mobile-nav button {
    display: flex;
    flex: 1;
    min-height: 50px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    background: transparent;
    color: #8e8e93;
    cursor: pointer;
    font-size: 10.5px;
    font-weight: 500;
  }

  .mobile-nav button.active {
    color: var(--blue);
  }

  .mobile-nav svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .drawer {
    align-items: flex-end;
    padding: 0;
  }

  .drawer-panel {
    max-height: 88dvh;
    border-radius: 22px 22px 0 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .toast {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .search-context {
    margin-top: -8px;
  }

  .inquiry-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .inquiry-form-actions .primary,
  .inquiry-form-actions .secondary {
    width: 100%;
  }
}

@media (max-width: 560px) {
  #mainContent {
    padding-right: 16px;
    padding-left: 16px;
  }

  .photo-preview {
    grid-template-columns: repeat(2, 1fr);
  }

  .reason-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .task-grid small {
    display: none;
  }

  .task-grid button {
    min-height: 76px;
  }
}

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