@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700;800;900&display=swap");

:root {
  --ink: #12313a;
  --ink-strong: #06202a;
  --muted: #607680;
  --soft: #8da0a8;
  --line: #dcebf0;
  --line-strong: #bdd6df;
  --surface: #ffffff;
  --surface-soft: #f4fbfd;
  --page: #eefafe;
  --teal: #00a6b4;
  --teal-dark: #006f8f;
  --teal-soft: #dff9fb;
  --ocean: #0077c8;
  --ocean-dark: #004f9f;
  --ocean-soft: #e3f3ff;
  --aqua: #18d2c4;
  --coral: #ff5a4f;
  --coral-soft: #fff0ee;
  --sun: #ffc928;
  --sun-soft: #fff7d6;
  --leaf: #22a86d;
  --blue: #0077c8;
  --violet: #7067ff;
  --shadow-sm: 0 10px 26px rgba(0, 90, 126, 0.08);
  --shadow: 0 22px 56px rgba(0, 65, 110, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(0, 119, 200, 0.12), transparent 30%),
    linear-gradient(225deg, rgba(255, 201, 40, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(238, 250, 254, 0.98)),
    repeating-linear-gradient(
      90deg,
      rgba(0, 166, 180, 0.045) 0,
      rgba(0, 166, 180, 0.045) 1px,
      transparent 1px,
      transparent 58px
    ),
    var(--page);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.22);
  outline-offset: 2px;
}

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

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
}

.rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 22px 16px;
  background:
    linear-gradient(180deg, rgba(0, 79, 159, 0.98), rgba(0, 111, 143, 0.98)),
    #005fa8;
  color: #ffffff;
}

.rail::after {
  display: block;
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  line-height: 1.45;
  content: "Verified local flow: AWG pricing, Aruba districts, address-ready posts.";
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: #ffffff;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  color: inherit;
  font-size: 1.05rem;
  font-weight: 900;
}

.brand small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 700;
}

.mobile-bar .brand small,
.mobile-bar .brand strong {
  color: var(--ink);
}

.mobile-bar .brand img {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border-color: rgba(0, 119, 200, 0.12);
  box-shadow: 0 8px 18px rgba(0, 90, 126, 0.12);
}

.rail-nav {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.nav-button,
.bottom-button,
.icon-button {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.nav-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.66);
  text-align: left;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.nav-button svg,
.bottom-button svg,
.icon-button svg,
.status-pill svg,
.metric svg,
.mini-icon svg,
.small-pill svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.15;
}

.nav-button.active,
.nav-button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.nav-button.active::before {
  position: absolute;
  left: -5px;
  width: 3px;
  height: 22px;
  border-radius: 999px;
  background: var(--sun);
  content: "";
}

.mobile-bar {
  display: none;
}

.main-area {
  min-width: 0;
  width: 100%;
  max-width: 1510px;
  padding: 26px 34px 46px;
}

.page-head {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(223, 231, 226, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

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

.auth-slot,
.mobile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--ocean);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  color: var(--ink-strong);
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  line-height: 1.05;
  font-weight: 900;
}

h2 {
  margin-bottom: 14px;
  color: var(--ink-strong);
  font-size: 1.08rem;
  font-weight: 900;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink-strong);
  font-size: 0.98rem;
  font-weight: 850;
}

.status-pill,
.chip,
.type-tab,
.small-pill,
.payment-chip,
.delivery-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.status-pill {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(0, 119, 200, 0.18);
  background: var(--ocean-soft);
  color: var(--ocean-dark);
  font-size: 0.86rem;
  font-weight: 850;
}

a.status-pill,
a.icon-button {
  text-decoration: none;
}

.market-switch-pill {
  background: #fff7ed;
  border-color: rgba(255, 122, 24, 0.24);
  color: #9a3412;
}

.market-switch-button {
  color: var(--ocean-dark);
}

.view {
  min-width: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  gap: 20px;
  align-items: start;
}

.dashboard-grid > *,
.form-layout > *,
.route-layout > *,
.wallet-layout > *,
.hire-layout > *,
.admin-layout > * {
  min-width: 0;
}

.market-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 116px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(0, 119, 200, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 119, 200, 0.16), rgba(255, 255, 255, 0.9) 46%),
    linear-gradient(225deg, rgba(255, 201, 40, 0.22), transparent 48%),
    linear-gradient(90deg, rgba(24, 210, 196, 0.1), transparent 60%),
    #ffffff;
  box-shadow: var(--shadow-sm);
}

.hero-label,
.result-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--ocean-soft);
  color: var(--ocean-dark);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.market-hero h2 {
  max-width: 720px;
  margin: 10px 0 0;
  font-size: clamp(1.35rem, 2.2vw, 2.35rem);
  line-height: 1.08;
}

.access-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: stretch;
  min-height: min(680px, calc(100vh - 150px));
}

.access-copy,
.access-panel {
  border: 1px solid rgba(0, 119, 200, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 119, 200, 0.15), rgba(255, 255, 255, 0.94) 52%),
    linear-gradient(225deg, rgba(255, 201, 40, 0.2), transparent 46%),
    #ffffff;
  box-shadow: var(--shadow-sm);
}

.access-copy {
  display: grid;
  align-content: center;
  padding: clamp(22px, 5vw, 54px);
}

.access-copy h2 {
  max-width: 780px;
  margin: 12px 0 12px;
  font-size: clamp(1.8rem, 4vw, 4rem);
  line-height: 1.02;
}

.access-copy p {
  max-width: 680px;
  line-height: 1.55;
}

.access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.access-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 6px;
}

.access-pill-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(0, 119, 200, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ocean-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

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

.access-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
}

.access-preview-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(0, 119, 200, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(0, 70, 110, 0.06);
}

.access-preview-card h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  line-height: 1.15;
}

.access-preview-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.38;
  font-weight: 700;
}

.access-commercial-card {
  grid-template-columns: 1fr;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(255, 247, 214, 0.95), rgba(255, 255, 255, 0.92)),
    #ffffff;
  border-color: rgba(255, 201, 40, 0.46);
}

.access-commercial-card .small-pill {
  width: max-content;
  color: #755400;
}

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

.preview-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--sun-soft);
  color: #755400;
}

.preview-icon.coral {
  background: rgba(255, 111, 97, 0.14);
  color: #8c2b22;
}

.preview-icon.aqua {
  background: rgba(24, 210, 196, 0.15);
  color: #006b72;
}

.preview-icon svg {
  width: 20px;
  height: 20px;
}

.access-stat-grid {
  display: grid;
  gap: 10px;
}

.commercial-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 0.44fr) minmax(0, 1fr);
  gap: 14px;
  min-height: 126px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 119, 200, 0.18);
  border-radius: var(--radius);
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.commercial-banner img {
  width: 100%;
  height: 100%;
  min-height: 126px;
  object-fit: cover;
}

.commercial-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 14px 16px 14px 0;
}

.commercial-copy h2 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.commercial-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 850;
}

.commercial-banner.compact {
  grid-template-columns: 1fr;
  min-height: 0;
}

.commercial-banner.compact img {
  min-height: 146px;
}

.commercial-banner.compact .commercial-copy {
  padding: 0 14px 14px;
}

.commercial-banner.placeholder {
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 247, 214, 0.9), rgba(255, 255, 255, 0.94)),
    #ffffff;
}

.commercial-banner.placeholder.compact {
  grid-template-columns: 44px minmax(0, 1fr);
}

.commercial-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--sun);
  color: var(--ocean-dark);
}

.commercial-banner.placeholder.compact .commercial-mark {
  width: 44px;
  height: 44px;
}

.commercial-mark svg {
  width: 24px;
  height: 24px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(150px, 190px);
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(223, 231, 226, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.category-dock {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px 0 8px;
  border: 1px solid rgba(223, 231, 226, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 90, 126, 0.055);
}

.category-pill span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ocean);
}

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

.category-pill:hover {
  border-color: rgba(0, 119, 200, 0.3);
  background: var(--ocean-soft);
}

.search-field,
.select-field,
.text-field,
.textarea-field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.search-field:hover,
.select-field:hover,
.text-field:hover,
.textarea-field:hover {
  border-color: var(--line-strong);
}

.search-field:focus,
.select-field:focus,
.text-field:focus,
.textarea-field:focus {
  border-color: rgba(0, 119, 200, 0.56);
  box-shadow: 0 0 0 4px rgba(0, 119, 200, 0.1);
}

.search-field,
.select-field,
.text-field {
  min-height: 46px;
  padding: 0 13px;
}

.textarea-field {
  min-height: 118px;
  padding: 12px 13px;
  resize: vertical;
}

.search-wrap {
  position: relative;
}

.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--soft);
}

.search-field {
  padding-left: 42px;
}

.type-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 46px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f4f7f3;
}

.type-tab {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.type-tab.active {
  background: linear-gradient(135deg, var(--ocean), var(--teal));
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 119, 200, 0.18);
}

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

.metric {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 68px;
  padding: 11px;
  border: 1px solid rgba(223, 231, 226, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 20px rgba(0, 90, 126, 0.055);
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  color: var(--ink-strong);
  font-size: 1.22rem;
  line-height: 1;
  font-weight: 950;
}

.metric span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.metric .mini-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: var(--radius);
  background: var(--ocean-soft);
  color: var(--ocean);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 12px;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.section-head .eyebrow {
  margin-bottom: 4px;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.listing-card,
.worker-card,
.payment-card,
.route-card,
.category-card,
.panel {
  border: 1px solid rgba(223, 231, 226, 0.94);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.listing-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.listing-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--ocean);
  content: "";
  z-index: 2;
}

.listing-card.type-item::before {
  background: var(--aqua);
}

.listing-card.type-delivery::before {
  background: var(--coral);
}

.listing-card.type-service::before {
  background: var(--sun);
}

.listing-card.type-commercial::before,
.listing-card.admin-promoted::before {
  height: 4px;
  background: linear-gradient(90deg, var(--sun), var(--coral), var(--ocean));
}

.listing-card.admin-promoted {
  border-color: rgba(255, 201, 40, 0.7);
  background:
    linear-gradient(135deg, rgba(255, 247, 214, 0.7), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

.listing-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.thumb {
  position: relative;
  display: grid;
  place-items: center;
  height: 174px;
  background: #d9f7fb;
}

.thumb img,
.thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb video {
  background: #061f2a;
}

.thumb::after {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(180deg, transparent, rgba(7, 19, 18, 0.5));
  content: "";
}

.thumb .small-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-strong);
  font-size: 0.75rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.promo-ribbon {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  background: rgba(255, 247, 214, 0.94);
  color: #755400;
  font-size: 0.74rem;
  font-weight: 950;
  backdrop-filter: blur(10px);
}

.promo-ribbon svg {
  width: 15px;
  height: 15px;
}

.price-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  display: grid;
  gap: 1px;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.93);
  color: var(--ocean-dark);
  font-size: 0.9rem;
  font-weight: 950;
  backdrop-filter: blur(10px);
}

.price-badge small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.media-save {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.media-save svg {
  width: 18px;
  height: 18px;
}

.listing-body,
.worker-card,
.payment-card,
.route-card,
.category-card,
.panel {
  padding: 16px;
}

.listing-meta-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--soft);
  font-size: 0.77rem;
  font-weight: 800;
}

.listing-meta-top span:last-child {
  margin-left: auto;
}

.verified-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ocean-dark);
}

.verified-dot svg {
  width: 14px;
  height: 14px;
}

.poster-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ocean-soft);
  color: var(--ocean-dark);
  font-size: 0.76rem;
  font-weight: 950;
}

.listing-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.listing-title {
  margin: 0;
  line-height: 1.25;
  font-size: 1.06rem;
}

.listing-title-link {
  color: inherit;
  text-decoration: none;
}

.listing-title-link:hover {
  color: var(--ocean-dark);
}

.price {
  padding: 4px 0 0;
  color: var(--ocean-dark);
  font-size: 0.98rem;
  font-weight: 950;
  white-space: nowrap;
}

.meta-line,
.muted {
  color: var(--muted);
}

.meta-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 9px 0;
  font-size: 0.84rem;
  font-weight: 700;
}

.meta-line svg {
  width: 16px;
  height: 16px;
}

.listing-desc {
  min-height: 42px;
  margin-bottom: 0;
  color: #33433f;
  font-size: 0.9rem;
  line-height: 1.45;
}

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

.listing-facts span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: #3f4f4b;
  font-size: 0.76rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-facts svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: var(--ocean);
}

.acceptance-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: #273936;
}

.listing-card .acceptance-status {
  margin-top: 12px;
}

.acceptance-status svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.acceptance-status span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.acceptance-status strong,
.acceptance-status small {
  overflow-wrap: anywhere;
}

.acceptance-status strong {
  color: var(--ink-strong);
  font-size: 0.85rem;
  font-weight: 950;
}

.acceptance-status small {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
}

.acceptance-status.open {
  border-color: rgba(0, 119, 200, 0.22);
  background: rgba(217, 247, 251, 0.48);
}

.acceptance-status.open svg {
  color: var(--ocean);
}

.acceptance-status.mine {
  border-color: rgba(22, 163, 74, 0.28);
  background: #effaf2;
}

.acceptance-status.mine svg {
  color: #15803d;
}

.acceptance-status.locked {
  border-color: rgba(255, 106, 53, 0.28);
  background: #fff5ee;
}

.acceptance-status.locked svg {
  color: var(--coral);
}

.acceptance-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px dashed rgba(0, 119, 200, 0.32);
  border-radius: var(--radius);
  background: rgba(217, 247, 251, 0.42);
  color: var(--ocean-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.acceptance-note svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.card-actions .acceptance-note {
  flex: 1 1 auto;
}

.detail-shell {
  display: grid;
  gap: 16px;
}

.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.detail-main,
.detail-panel {
  border: 1px solid rgba(223, 231, 226, 0.94);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.detail-media {
  position: relative;
  min-height: 330px;
  aspect-ratio: 16 / 10;
  background: #d9f7fb;
}

.detail-media img,
.detail-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.detail-media.admin-promoted {
  border-top: 4px solid var(--sun);
}

.detail-copy,
.detail-panel {
  padding: 18px;
}

.detail-copy h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.detail-copy p {
  color: #33433f;
  line-height: 1.6;
}

.detail-tag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.detail-tag-grid span {
  display: grid;
  gap: 2px;
  min-height: 64px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.detail-tag-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #15231f;
}

.detail-tag-grid small {
  color: var(--soft);
  font-weight: 850;
  text-transform: uppercase;
}

.detail-side {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.detail-panel h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.detail-actions {
  display: grid;
  gap: 9px;
}

.conversation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.conversation-head span {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--ocean-soft);
  color: var(--ocean-dark);
  font-weight: 950;
}

.comment-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.comment-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.comment-item.mine {
  border-color: rgba(0, 119, 200, 0.28);
  background: rgba(217, 247, 251, 0.5);
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--soft);
  font-size: 0.76rem;
}

.comment-meta strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #20332f;
}

.comment-item p {
  margin: 5px 0 0;
  color: #33433f;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.comment-form {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.comment-form .textarea-field {
  min-height: 96px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 13px 0;
}

.chip,
.payment-chip,
.delivery-chip {
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid var(--line);
  background: #f9faf7;
  color: #42504c;
  font-size: 0.75rem;
  font-weight: 850;
}

.chip.teal {
  border-color: #b8e8f5;
  background: var(--ocean-soft);
  color: var(--ocean-dark);
}

.chip.coral {
  border-color: #f5cbc6;
  background: var(--coral-soft);
  color: #a43831;
}

.chip.sun {
  border-color: #ffe28b;
  background: var(--sun-soft);
  color: #755400;
}

.card-actions,
.panel-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.86rem;
  font-weight: 900;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.primary-button svg,
.secondary-button svg,
.ghost-button svg {
  width: 18px;
  height: 18px;
}

.primary-button {
  background: linear-gradient(135deg, var(--ocean), var(--teal));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 119, 200, 0.24);
}

.primary-button:hover {
  background: linear-gradient(135deg, var(--ocean-dark), var(--teal-dark));
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
  transform: none;
}

.primary-button:disabled:hover,
.secondary-button:disabled:hover,
.ghost-button:disabled:hover {
  transform: none;
}

.primary-button.compact {
  min-height: 38px;
  padding: 0 13px;
}

.secondary-button.compact,
.ghost-button.compact {
  min-height: 38px;
  padding: 0 12px;
}

.secondary-button {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}

.secondary-button:hover {
  border-color: var(--line-strong);
  background: #f9fbf8;
}

.ghost-button {
  background: var(--ocean-soft);
  color: var(--ocean-dark);
  border-color: #bfdef2;
}

.ghost-button:hover {
  background: #d6efff;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: #f4fbfd;
  transform: translateY(-1px);
}

.account-button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  max-width: 220px;
  padding: 5px 10px 5px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(0, 90, 126, 0.055);
}

.account-button:hover {
  border-color: var(--line-strong);
  background: #f9fbf8;
}

.account-avatar,
.mobile-account-avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--ocean), var(--aqua)),
    var(--ocean);
  color: #ffffff;
  font-weight: 950;
}

.account-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  font-size: 0.75rem;
}

.mobile-account-avatar {
  width: 24px;
  height: 24px;
  font-size: 0.68rem;
}

.account-avatar.has-photo,
.mobile-account-avatar.has-photo,
.profile-avatar.has-photo,
.portfolio-avatar.has-photo,
.poster-mark.has-photo {
  overflow: hidden;
  background: #ffffff;
}

.account-avatar img,
.mobile-account-avatar img,
.profile-avatar img,
.portfolio-avatar img,
.poster-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-copy {
  display: grid;
  min-width: 0;
  text-align: left;
}

.account-copy strong,
.account-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy strong {
  color: var(--ink-strong);
  font-size: 0.82rem;
  line-height: 1.1;
  font-weight: 900;
}

.account-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.signed-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid rgba(0, 119, 200, 0.18);
  border-radius: var(--radius);
  background: var(--ocean-soft);
  color: var(--ocean-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

.signed-banner.guest {
  flex-wrap: wrap;
  border-color: rgba(242, 187, 58, 0.42);
  background: var(--sun-soft);
  color: #755400;
}

.signed-banner svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

.commercial-policy-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid rgba(0, 119, 200, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 119, 200, 0.13), rgba(255, 255, 255, 0.92)),
    linear-gradient(225deg, rgba(255, 201, 40, 0.18), transparent 48%),
    #ffffff;
  box-shadow: var(--shadow-sm);
}

.commercial-policy-card h2 {
  margin-bottom: 6px;
}

.commercial-policy-card p:last-child {
  margin-bottom: 0;
  line-height: 1.45;
}

.commercial-policy-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  background: var(--sun);
  color: var(--ocean-dark);
}

.commercial-policy-icon svg {
  width: 25px;
  height: 25px;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(7, 19, 18, 0.48);
  backdrop-filter: blur(14px);
}

.auth-dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  padding: 18px;
  border: 1px solid rgba(223, 231, 226, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(7, 19, 18, 0.28);
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.auth-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 48px;
}

.auth-header h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.auth-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: var(--radius);
  background: var(--ocean-soft);
  color: var(--ocean-dark);
}

.auth-mark svg {
  width: 22px;
  height: 22px;
}

.auth-tabs {
  display: flex;
  gap: 5px;
  margin: 18px 0 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f4f7f3;
}

.auth-tabs .type-tab {
  flex: 1;
  justify-content: center;
}

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

.auth-form .primary-button {
  width: 100%;
  margin-top: 4px;
}

.auth-link-button {
  justify-self: center;
  border: 0;
  background: transparent;
  color: var(--ocean-dark);
  font-size: 0.83rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-link-button:hover {
  color: var(--teal-dark);
}

.auth-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.profile-panel {
  display: grid;
  justify-items: center;
  padding-top: 14px;
  text-align: center;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.profile-panel h2 {
  margin-bottom: 6px;
  font-size: 1.45rem;
}

.profile-settings-form {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244, 251, 253, 0.82);
  text-align: left;
}

.avatar-upload {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px dashed rgba(0, 119, 200, 0.34);
  border-radius: var(--radius);
  background: #ffffff;
  cursor: pointer;
}

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

.avatar-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--ocean), var(--aqua)),
    var(--ocean);
  color: #ffffff;
  font-weight: 950;
}

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

.notification-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(0, 119, 200, 0.18);
  border-radius: var(--radius);
  background: #ffffff;
}

.notification-setting-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.notification-setting-copy > svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--ocean);
}

.notification-setting-copy span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.notification-setting-copy strong {
  color: var(--ink-strong);
  font-size: 0.86rem;
  font-weight: 950;
}

.notification-setting-copy small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.3;
}

.avatar-upload strong,
.avatar-upload small {
  display: block;
}

.avatar-upload strong {
  color: var(--ink-strong);
  font-size: 0.9rem;
  font-weight: 950;
}

.avatar-upload small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
  font-weight: 750;
}

.compact-grid {
  gap: 10px;
}

.privacy-option {
  justify-content: flex-start;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 18px 0 4px;
}

.profile-stats span {
  display: grid;
  gap: 3px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.profile-stats strong {
  color: var(--ink-strong);
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 950;
}

.profile-stats small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.account-posts {
  width: 100%;
  margin-top: 14px;
}

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

.owner-post-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  text-align: left;
}

.owner-post-row strong,
.owner-post-row small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.owner-post-row strong {
  color: var(--ink-strong);
  font-size: 0.9rem;
  font-weight: 950;
}

.owner-post-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.owner-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 12px;
}

.owner-actions.row,
.owner-actions.detail {
  margin-top: 0;
}

.owner-actions .primary-button,
.owner-actions .secondary-button,
.owner-actions .ghost-button {
  min-width: 0;
  padding-inline: 9px;
}

.inline-profile-link {
  color: inherit;
  text-decoration: none;
}

.inline-profile-link:hover {
  color: var(--ocean-dark);
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

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

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

.social-panel h2 {
  margin-bottom: 0;
}

.social-links {
  display: grid;
  gap: 9px;
}

.social-link {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 119, 200, 0.08), rgba(255, 255, 255, 0.96)),
    #ffffff;
  color: inherit;
  text-decoration: none;
}

.social-link:hover {
  border-color: rgba(0, 119, 200, 0.32);
  background: var(--ocean-soft);
}

.social-link span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--ocean);
  color: #ffffff;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link strong,
.social-link small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-link strong {
  color: var(--ink-strong);
  font-size: 0.9rem;
  font-weight: 950;
}

.social-link small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.portfolio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 16px;
  align-items: start;
}

.portfolio-layout > * {
  min-width: 0;
}

.portfolio-hero {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(0, 119, 200, 0.12), rgba(255, 255, 255, 0.95)),
    linear-gradient(225deg, rgba(255, 201, 40, 0.18), transparent 50%),
    #ffffff;
}

.portfolio-avatar {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--ocean), var(--aqua)),
    var(--ocean);
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(0, 119, 200, 0.18);
}

.portfolio-copy {
  min-width: 0;
}

.portfolio-copy h2 {
  margin-bottom: 6px;
  font-size: clamp(1.5rem, 2.4vw, 2.35rem);
  line-height: 1.08;
}

.portfolio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.portfolio-side {
  position: sticky;
  top: 98px;
  grid-column: 2;
  grid-row: 1 / span 3;
  display: grid;
  gap: 12px;
}

.portfolio-main {
  grid-column: 1;
}

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

.profile-stat-grid span {
  display: grid;
  gap: 3px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.profile-stat-grid strong {
  color: var(--ink-strong);
  font-size: 1.3rem;
  line-height: 1;
  font-weight: 950;
}

.profile-stat-grid small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.star-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #b8c5ca;
}

.star-row svg {
  width: 16px;
  height: 16px;
}

.star-row .filled {
  color: var(--sun);
  fill: var(--sun);
  stroke: var(--sun);
}

.completed-list,
.review-list,
.review-form {
  display: grid;
  gap: 10px;
}

.completed-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.completed-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.completed-item strong,
.completed-item small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.completed-item strong {
  color: var(--ink-strong);
  font-size: 0.86rem;
  font-weight: 950;
}

.completed-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.portfolio-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
}

.review-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

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

.review-head strong,
.review-head small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.review-head strong {
  color: var(--ink-strong);
  font-size: 0.86rem;
  font-weight: 950;
}

.review-head small {
  margin-top: 2px;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.review-item p {
  margin: 0;
  color: #33433f;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.map-panel {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 12px;
}

.side-highlight {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(0, 119, 200, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 119, 200, 0.12), rgba(255, 255, 255, 0.92)),
    #ffffff;
  box-shadow: var(--shadow-sm);
}

.side-highlight h2 {
  margin-bottom: 4px;
}

.side-highlight p {
  margin-bottom: 0;
  line-height: 1.4;
}

.side-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--ocean-soft);
  color: var(--ocean-dark);
}

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

.map-card {
  overflow: hidden;
  border: 1px solid rgba(223, 231, 226, 0.94);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 251, 253, 0.9);
}

.map-head h2 {
  margin: 0;
  font-size: 1rem;
}

.map {
  width: 100%;
  min-height: 360px;
  background: #d8f3fb;
}

.map.small {
  min-height: 300px;
}

.map-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: inherit;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.route-summary {
  display: grid;
  gap: 10px;
  padding: 15px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.form-layout,
.route-layout,
.wallet-layout,
.hire-layout,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  gap: 18px;
  align-items: start;
}

.admin-board {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 126px;
  padding: 18px;
  border: 1px solid rgba(0, 119, 200, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 119, 200, 0.15), rgba(255, 255, 255, 0.92) 48%),
    linear-gradient(225deg, rgba(24, 210, 196, 0.18), transparent 48%),
    #ffffff;
  box-shadow: var(--shadow-sm);
}

.admin-hero h2 {
  margin: 10px 0 6px;
  font-size: clamp(1.24rem, 1.9vw, 1.9rem);
  line-height: 1.12;
}

.admin-hero p {
  max-width: 720px;
  margin-bottom: 0;
  line-height: 1.45;
}

.admin-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-metrics {
  margin-bottom: 0;
}

.admin-section .section-head {
  align-items: center;
  margin-top: 0;
}

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

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

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

.admin-post,
.admin-banner-row {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fdff;
}

.admin-banner-row {
  grid-template-columns: 148px minmax(0, 1fr) auto;
}

.admin-post.featured {
  border-color: #ffe28b;
  background:
    linear-gradient(135deg, rgba(255, 247, 214, 0.82), rgba(255, 255, 255, 0.95)),
    #ffffff;
}

.admin-user-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fdff;
}

.admin-user-card.online {
  border-color: rgba(0, 166, 180, 0.38);
  background:
    linear-gradient(135deg, rgba(223, 249, 251, 0.78), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.admin-user-main {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.admin-user-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--ocean-soft);
  color: var(--ocean-dark);
  font-size: 0.92rem;
  font-weight: 950;
}

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

.admin-user-card h3 {
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.admin-user-card p {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

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

.admin-user-details span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.admin-user-details small {
  color: var(--soft);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-user-details strong {
  min-width: 0;
  color: var(--ink-strong);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.user-actions {
  align-items: stretch;
  flex-direction: column;
  min-width: 148px;
}

.admin-online-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.admin-online-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 0 9px;
  border: 1px solid rgba(0, 166, 180, 0.28);
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.admin-online-chip svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  stroke-width: 0;
}

.admin-thumb {
  overflow: hidden;
  width: 98px;
  height: 78px;
  border-radius: var(--radius);
  background: #d9f7fb;
}

.admin-thumb img,
.admin-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-banner-thumb {
  width: 148px;
  height: 78px;
  border-radius: var(--radius);
  background: #d9f7fb;
  object-fit: cover;
}

.admin-post-copy {
  min-width: 0;
}

.admin-post-copy h3 {
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-post-copy p {
  margin-bottom: 0;
}

.admin-post .listing-meta-top {
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.admin-post .listing-meta-top span:last-child {
  margin-left: 0;
}

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

.danger-button {
  border-color: #f5cbc6;
  background: var(--coral-soft);
  color: #a43831;
}

.danger-button:hover {
  border-color: #edaaa3;
  background: #ffe5e1;
}

.admin-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-chip:hover {
  border-color: #f5cbc6;
  background: var(--coral-soft);
  color: #a43831;
}

.admin-chip svg {
  width: 15px;
  height: 15px;
}

.admin-option-group + .admin-option-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.admin-number {
  margin: 0 0 5px;
  color: var(--ocean-dark);
  font-size: 2rem;
  line-height: 1;
  font-weight: 950;
}

.empty-state.compact {
  min-height: 120px;
}

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

.field {
  display: grid;
  gap: 7px;
}

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

.field label,
.group-label {
  color: #264b58;
  font-size: 0.8rem;
  font-weight: 900;
}

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

.option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fdff;
  color: #264b58;
  font-size: 0.86rem;
  font-weight: 800;
}

.option input {
  width: 17px;
  height: 17px;
  accent-color: var(--ocean);
}

.option.full {
  grid-column: 1 / -1;
}

.upload-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 92px;
  padding: 13px;
  border: 1px dashed rgba(0, 119, 200, 0.38);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(227, 243, 255, 0.8), rgba(255, 255, 255, 0.95)),
    #ffffff;
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.upload-box:hover {
  border-color: rgba(0, 119, 200, 0.68);
  background: #f7fdff;
  transform: translateY(-1px);
}

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

.upload-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: var(--radius);
  background: var(--ocean-soft);
  color: var(--ocean-dark);
}

.upload-icon svg {
  width: 23px;
  height: 23px;
}

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

.upload-copy strong {
  color: var(--ink-strong);
  font-size: 0.95rem;
  font-weight: 950;
}

.upload-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.photo-preview {
  display: grid;
  place-items: center;
  min-height: 74px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.photo-preview.has-image {
  height: 190px;
  background: #d9f7fb;
}

.photo-preview img,
.photo-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview video {
  background: #061f2a;
}

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

.mini-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #264b58;
  font-size: 0.9rem;
  line-height: 1.45;
}

.mini-list i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: var(--ocean-soft);
  color: var(--ocean-dark);
  font-style: normal;
  font-weight: 950;
}

.route-cards,
.worker-list,
.category-grid,
.payment-grid {
  display: grid;
  gap: 12px;
}

.route-card {
  display: grid;
  gap: 8px;
  width: 100%;
  text-align: left;
}

.route-card.active {
  border-color: #8bcff3;
  box-shadow: 0 0 0 4px rgba(0, 119, 200, 0.1);
}

.route-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #264b58;
  font-weight: 900;
}

.route-line svg {
  width: 18px;
  height: 18px;
  color: var(--ocean);
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}

.category-strip .chip {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
}

.category-strip .chip.active {
  border-color: rgba(0, 119, 200, 0.32);
  background: var(--ocean-soft);
  color: var(--ocean-dark);
}

.worker-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
}

.avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 119, 200, 0.18), rgba(24, 210, 196, 0.24)),
    #f0fbff;
  color: var(--ocean-dark);
  font-weight: 950;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #73510f;
  font-size: 0.84rem;
  font-weight: 900;
}

.rating svg {
  width: 17px;
  height: 17px;
  fill: var(--sun);
  stroke: var(--sun);
}

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

.payment-card h3,
.worker-card h3,
.route-card h3,
.category-card h3 {
  margin-bottom: 3px;
}

.toggle {
  position: relative;
  width: 50px;
  height: 30px;
  flex: 0 0 50px;
}

.toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.toggle span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d4d9d6;
  transition: 0.2s ease;
}

.toggle span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(20, 33, 31, 0.18);
  content: "";
  transition: 0.2s ease;
}

.toggle input:checked + span {
  background: var(--teal);
}

.toggle input:checked + span::after {
  transform: translateX(20px);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 28px;
  border: 1px dashed #bcc8c3;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  max-width: 340px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--ink-strong);
  color: #ffffff;
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.bottom-nav {
  display: none;
}

.leaflet-container {
  font-family: inherit;
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius);
}

@media (max-width: 1160px) {
  .dashboard-grid,
  .access-gate,
  .form-layout,
  .route-layout,
  .wallet-layout,
  .hire-layout,
  .admin-layout,
  .detail-layout,
  .portfolio-layout {
    grid-template-columns: 1fr;
  }

  .map-panel,
  .detail-side,
  .portfolio-side {
    position: static;
  }

  .portfolio-side,
  .portfolio-main {
    grid-column: auto;
    grid-row: auto;
  }

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

@media (max-width: 940px) {
  .app-shell {
    display: block;
    padding-bottom: calc(184px + env(safe-area-inset-bottom));
  }

  .rail {
    display: none;
  }

  .mobile-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(223, 231, 226, 0.88);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
  }

  .mobile-actions {
    margin-left: auto;
  }

  .main-area {
    padding: 14px 12px calc(184px + env(safe-area-inset-bottom));
  }

  .page-head {
    position: static;
    align-items: flex-start;
    margin-bottom: 14px;
    padding: 15px;
  }

  .header-actions {
    display: none;
  }

  h1 {
    font-size: 1.55rem;
  }

  .toolbar {
    grid-template-columns: 1fr;
    padding: 9px;
  }

  .type-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .market-hero {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 15px;
  }

  .market-hero h2 {
    font-size: 1.32rem;
  }

  .market-hero .primary-button {
    width: 100%;
  }

  .access-gate {
    min-height: 0;
  }

  .access-copy {
    padding: 24px 18px;
  }

  .access-copy h2 {
    font-size: clamp(1.75rem, 7vw, 2.55rem);
    line-height: 1.04;
  }

  .access-copy p {
    line-height: 1.45;
  }

  .access-pill-row {
    margin-top: 14px;
  }

  .access-panel {
    padding: 14px;
  }

  .access-preview-card {
    padding: 12px;
  }

  .commercial-banner {
    grid-template-columns: 1fr;
  }

  .commercial-banner img {
    min-height: 156px;
  }

  .commercial-copy {
    padding: 0 14px 14px;
  }

  .category-dock {
    margin-left: -2px;
    margin-right: -2px;
    padding: 0 2px 2px;
  }

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

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

  .listing-card {
    display: flex;
    flex-direction: column;
  }

  .listing-body {
    order: 1;
    padding: 14px;
  }

  .thumb {
    order: 2;
    height: clamp(188px, 54vw, 268px);
  }

  .listing-card.admin-promoted .thumb img {
    object-fit: contain;
    background: #ffffff;
  }

  .listing-meta-top {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .listing-meta-top span:last-child {
    margin-left: 0;
  }

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

  .detail-media {
    min-height: 240px;
    max-height: 68vh;
  }

  .portfolio-hero {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .portfolio-avatar {
    width: 72px;
    height: 72px;
    font-size: 1.35rem;
  }

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

  .worker-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .worker-card .secondary-button {
    grid-column: 1 / -1;
  }

  .map {
    min-height: 318px;
  }

  .bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 66px;
    border: 1px solid rgba(223, 231, 226, 0.92);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 42px rgba(20, 33, 31, 0.16);
    backdrop-filter: blur(18px);
  }

  .bottom-button {
    display: grid;
    place-items: center;
    gap: 2px;
    min-width: 0;
    padding: 7px 2px 6px;
    border-radius: var(--radius);
    font-size: 0.66rem;
    font-weight: 900;
  }

  .bottom-nav.admin-visible {
    grid-template-columns: repeat(4, 1fr);
  }

  .bottom-button.active {
    color: var(--teal);
    background: var(--teal-soft);
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: calc(168px + env(safe-area-inset-bottom));
    max-width: none;
  }

  .auth-overlay {
    align-items: end;
    padding: 12px;
  }

  .auth-dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    overflow: auto;
  }

  .admin-hero {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 15px;
  }

  .admin-hero-actions {
    width: 100%;
  }

  .admin-hero .primary-button {
    width: 100%;
  }

  .admin-hero-actions .secondary-button {
    flex: 1 1 150px;
  }

  .admin-user-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

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

  .user-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .metric-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .metric-row::-webkit-scrollbar {
    display: none;
  }

  .metric {
    min-width: 132px;
    min-height: 66px;
    padding: 10px;
  }

  .metric .mini-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .metric strong {
    font-size: 1.18rem;
  }

  .metric span {
    font-size: 0.74rem;
  }

  .listing-top {
    display: grid;
  }

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

  .detail-copy,
  .detail-panel {
    padding: 14px;
  }

  .detail-media {
    min-height: 188px;
    aspect-ratio: 4 / 3;
    max-height: 62vh;
  }

  .comment-list {
    max-height: none;
  }

  .price {
    padding-top: 0;
  }

  .card-actions,
  .panel-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .portfolio-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .portfolio-actions,
  .rating-summary {
    align-items: stretch;
    flex-direction: column;
  }

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

  .completed-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .review-head {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .review-head .star-row {
    grid-column: 1 / -1;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .acceptance-note {
    width: 100%;
  }

  .signed-banner .secondary-button.compact {
    width: auto;
  }

  .thumb {
    height: clamp(170px, 62vw, 230px);
  }

  .thumb .small-pill,
  .promo-ribbon {
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.68rem;
  }

  .price-badge {
    max-width: 138px;
    min-height: 36px;
    padding: 5px 8px;
    font-size: 0.78rem;
  }

  .media-save {
    width: 34px;
    height: 34px;
  }

  .photo-preview.has-image {
    height: 150px;
  }

  .admin-post {
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: start;
  }

  .admin-user-main {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .admin-user-avatar {
    width: 48px;
    height: 48px;
  }

  .admin-user-details {
    grid-template-columns: 1fr;
  }

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

  .admin-banner-row {
    grid-template-columns: 1fr;
  }

  .admin-thumb {
    width: 78px;
    height: 78px;
  }

  .admin-banner-thumb {
    width: 100%;
    height: 132px;
  }

  .admin-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
