:root {
  color-scheme: light;
  --navy: #0e2846;
  --navy2: #183957;
  --green: #17875e;
  --green-dark: #116b4a;
  --green-soft: #e5f4ec;
  --paper: #f7f8f4;
  --ink: #182a3b;
  --muted: #718091;
  --line: #e4e9e8;
  --shadow: 0 15px 45px rgba(17, 43, 68, 0.1);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Tahoma,
    Arial,
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--paper);
}
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: env(safe-area-inset-bottom);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(15px, 5vw, 70px);
  background: #fff;
  border-bottom: 1px solid rgba(18, 49, 75, 0.06);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}
.brand img {
  width: 41px;
  height: 41px;
}
.brand strong {
  display: block;
  font-size: 19px;
  line-height: 1.1;
  font-weight: 850;
}
.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 800;
  transition:
    transform 0.16s,
    background 0.16s,
    box-shadow 0.16s;
}
.button:hover {
  transform: translateY(-1px);
}
.button:active {
  transform: translateY(0);
}
.button:focus-visible,
.icon-button:focus-visible,
.category-tab:focus-visible,
.text-button:focus-visible {
  outline: 3px solid rgba(23, 135, 94, 0.28);
  outline-offset: 2px;
}
.button-primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 8px 18px rgba(23, 135, 94, 0.14);
}
.button-primary:hover {
  background: var(--green-dark);
}
.button-secondary {
  color: var(--green-dark);
  background: var(--green-soft);
}
.button-quiet {
  color: var(--navy);
  background: #f1f4f3;
}
.button-light {
  color: var(--navy);
  background: #fff;
}
.button-outline-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
}
.button-small {
  min-height: 39px;
  padding: 0 12px;
  border-radius: 11px;
  font-size: 11px;
}
.button-full {
  width: 100%;
}
.hero {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 50px clamp(20px, 8vw, 105px);
  color: #fff;
  background:
    radial-gradient(
      circle at 78% 15%,
      rgba(100, 170, 132, 0.22),
      transparent 26%
    ),
    linear-gradient(115deg, #0e2846, #183957 72%, #205169);
  isolation: isolate;
}
.hero:after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.12;
  background: radial-gradient(circle at 10% 90%, #369b7a, transparent 34%);
}
.hero-copy {
  max-width: 580px;
  z-index: 1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a9ddbf;
  font-size: 11px;
  font-weight: 800;
}
.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ee0a4;
  box-shadow: 0 0 0 5px rgba(110, 224, 164, 0.13);
}
.eyebrow-dark {
  color: var(--green);
}
.hero h1 {
  margin: 15px 0 12px;
  font-size: clamp(36px, 5.5vw, 62px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 850;
}
.hero h1 em {
  color: #8dd8aa;
  font-style: normal;
}
.hero-copy > p {
  max-width: 470px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 23px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}
.hero-note span {
  color: #9ce1b7;
  font-size: 17px;
}
.hero-art {
  position: relative;
  width: 350px;
  height: 300px;
  flex: 0 0 350px;
  margin-inline-start: 25px;
}
.art-sun {
  position: absolute;
  top: 34px;
  right: 65px;
  width: 205px;
  height: 205px;
  border: 1px solid rgba(181, 226, 194, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 23px rgba(181, 226, 194, 0.025),
    0 0 0 48px rgba(181, 226, 194, 0.025);
}
.art-house {
  position: absolute;
  top: 83px;
  right: 78px;
  width: 175px;
  height: 157px;
}
.art-roof {
  position: absolute;
  top: 0;
  left: 8px;
  width: 156px;
  height: 96px;
  background: #d0e9d6;
  clip-path: polygon(50% 0, 100% 55%, 88% 66%, 50% 27%, 12% 66%, 0 55%);
}
.art-house-body {
  position: absolute;
  top: 46px;
  right: 9px;
  left: 9px;
  height: 106px;
  background: #f5f1e6;
  border-radius: 8px 8px 2px 2px;
  box-shadow: 0 15px 22px rgba(0, 0, 0, 0.16);
}
.art-window {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 38px;
  height: 34px;
  border: 4px solid #6ba889;
  border-radius: 5px;
  background: #d8eee0;
}
.art-door {
  position: absolute;
  bottom: 0;
  left: 23px;
  width: 40px;
  height: 61px;
  border-radius: 7px 7px 0 0;
  background: #173e55;
}
.art-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--navy);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 15px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
  font-size: 11px;
}
.art-card > span {
  font-size: 22px;
}
.art-card b,
.art-card small {
  display: block;
  white-space: nowrap;
}
.art-card small {
  color: var(--muted);
  font-size: 9px;
}
.art-card-food {
  top: 45px;
  right: 2px;
}
.art-card-bike {
  bottom: 18px;
  left: 0;
}
.market-shell,
.how-section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}
.market-shell {
  padding: 58px 0 50px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 20px;
}
.section-heading h2,
.courier-promo h2 {
  margin: 5px 0 0;
  color: var(--navy);
  font-size: clamp(23px, 3vw, 33px);
  line-height: 1.3;
  letter-spacing: -0.03em;
  font-weight: 850;
}
.search-box {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 5px 17px rgba(15, 44, 66, 0.035);
}
.search-box > span {
  color: var(--green);
  font-size: 25px;
}
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}
.search-box input::placeholder {
  color: #96a2ad;
}
.search-box kbd {
  padding: 4px 7px;
  color: var(--muted);
  background: #f4f6f5;
  border-radius: 7px;
  font-size: 10px;
}
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 17px 1px 12px;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar {
  display: none;
}
.category-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 15px;
  color: #5c6a77;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  transition: 0.16s;
}
.category-tab:hover {
  border-color: #abd7bf;
  color: var(--green-dark);
}
.category-tab.is-active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}
.market-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 14px;
}
.market-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.text-button {
  padding: 7px;
  color: var(--green-dark);
  background: none;
  border: 0;
  font-size: 11px;
  font-weight: 800;
}
.marketplace-content {
  display: flex;
  flex-direction: column;
  gap: 23px;
}
.category-block {
  scroll-margin-top: 82px;
}
.category-block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 11px;
}
.category-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--green-soft);
  font-size: 21px;
}
.category-block-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
  font-weight: 850;
}
.category-block-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.listing-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.listing-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition:
    box-shadow 0.16s,
    transform 0.16s;
}
.listing-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(13, 43, 66, 0.06);
}
.listing-emoji {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #f6f1e7;
  font-size: 26px;
}
.listing-info {
  min-width: 0;
}
.listing-info h4 {
  margin: 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
}
.listing-info p {
  margin: 3px 0 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.listing-byline {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #667988;
  font-size: 9px;
}
.listing-byline span:first-child {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  background: #edf4f1;
  border-radius: 50%;
}
.listing-buy {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 7px;
}
.listing-price {
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}
.listing-price small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}
.add-button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 0;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 850;
}
.add-button:hover {
  color: #fff;
  background: var(--green);
}
.empty-state {
  padding: 35px 18px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed #ccd8d5;
  border-radius: 20px;
  text-align: center;
}
.empty-state > span {
  display: block;
  margin-bottom: 7px;
  font-size: 34px;
}
.empty-state h3 {
  margin: 0;
  color: var(--navy);
  font-size: 17px;
}
.empty-state p {
  max-width: 460px;
  margin: 7px auto 13px;
  font-size: 11px;
  line-height: 1.8;
}
.empty-state-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.steps-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.how-section {
  padding: 0 0 55px;
}
.step-card {
  min-height: 115px;
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
}
.step-card > span {
  color: #addbc0;
  font-size: 19px;
  font-weight: 850;
}
.step-card b {
  color: var(--navy);
  font-size: 12px;
}
.step-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}
.courier-promo {
  width: min(1120px, calc(100% - 36px));
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto 55px;
  padding: 20px 23px;
  background: #e8f1eb;
  border: 1px solid #d6e7db;
  border-radius: 22px;
}
.courier-promo-icon {
  width: 55px;
  height: 55px;
  flex: 0 0 55px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 17px;
  font-size: 25px;
}
.courier-promo .eyebrow {
  color: var(--green);
}
.courier-promo h2 {
  font-size: 19px;
  margin-top: 2px;
}
.courier-promo p {
  margin: 5px 0 0;
  color: #617267;
  font-size: 11px;
}
.courier-promo .button {
  margin-inline-start: auto;
  flex: 0 0 auto;
}
.footer {
  padding: 24px 18px calc(27px + env(safe-area-inset-bottom));
  color: #cbd7df;
  background: var(--navy);
  text-align: center;
}
.footer-brand {
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}
.footer-brand span {
  color: #83d6a0;
}
.footer p {
  max-width: 650px;
  margin: 8px auto 0;
  color: #aabac4;
  font-size: 10px;
  line-height: 1.8;
}
.floating-cart {
  position: fixed;
  z-index: 10;
  right: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(560px, calc(100% - 20px));
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  transform: translateX(50%);
  color: #fff;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 17px;
  box-shadow: 0 18px 50px rgba(9, 29, 47, 0.28);
}
.cart-glance {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.cart-count {
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #bde7c9;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 850;
}
.cart-glance b,
.cart-glance small {
  display: block;
  white-space: nowrap;
}
.cart-glance b {
  font-size: 11px;
}
.cart-glance small {
  max-width: 116px;
  overflow: hidden;
  color: #b8c6d1;
  font-size: 9px;
  text-overflow: ellipsis;
}
.cart-price {
  text-align: left;
  white-space: nowrap;
}
.cart-price small,
.cart-price strong {
  display: block;
}
.cart-price small {
  color: #b8c6d1;
  font-size: 9px;
}
.cart-price strong {
  font-size: 12px;
}
.floating-cart .button {
  min-height: 40px;
  padding: 0 10px;
  white-space: nowrap;
}
.dialog {
  width: min(520px, calc(100% - 22px));
  max-width: none;
  max-height: min(88dvh, 760px);
  overflow-y: auto;
  padding: 21px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(10, 35, 53, 0.1);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.dialog::backdrop {
  background: rgba(8, 27, 43, 0.57);
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.dialog-head h2 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 21px;
  font-weight: 850;
}
.icon-button {
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  display: grid;
  place-items: center;
  color: #617181;
  background: #f1f4f3;
  border: 0;
  border-radius: 11px;
  font-size: 22px;
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-stack label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #30475b;
  font-size: 11px;
  font-weight: 750;
}
.form-stack input,
.form-stack textarea,
.form-stack select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fbfcfb;
  border: 1px solid #dfe7e3;
  border-radius: 11px;
  outline: 0;
  font-size: 12px;
}
.form-stack textarea {
  min-height: 75px;
  resize: vertical;
}
.form-stack input:focus,
.form-stack textarea:focus,
.form-stack select:focus {
  border-color: #71bf92;
  box-shadow: 0 0 0 3px rgba(23, 135, 94, 0.1);
}
.form-stack label small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.form-hint {
  margin: 4px 0 11px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}
.dialog-error {
  padding: 10px 12px;
  color: #9c2935;
  background: #fff0f0;
  border-radius: 11px;
  font-size: 11px;
}
.auth-switch {
  display: flex;
  gap: 5px;
  margin: 0 0 15px;
  padding: 4px;
  background: #f1f5f2;
  border-radius: 12px;
}
.auth-switch-button {
  flex: 1;
  min-height: 37px;
  color: #687784;
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 850;
}
.auth-switch-button.is-active {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 2px 8px rgba(14, 40, 70, 0.08);
}
.dialog-cart {
  width: min(560px, calc(100% - 22px));
}
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
}
.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.cart-line h4 {
  margin: 0;
  color: var(--navy);
  font-size: 11px;
}
.cart-line small {
  color: var(--muted);
  font-size: 9px;
}
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.quantity-controls button {
  width: 27px;
  height: 27px;
  color: var(--green-dark);
  background: #e6f3eb;
  border: 0;
  border-radius: 8px;
  font-weight: 850;
}
.quantity-controls b {
  min-width: 15px;
  text-align: center;
  font-size: 11px;
}
.price-summary {
  padding: 10px 0 14px;
}
.price-summary > div {
  display: flex;
  justify-content: space-between;
  padding: 5px 1px;
  color: var(--muted);
  font-size: 11px;
}
.price-summary b {
  color: var(--ink);
}
.price-summary .summary-total {
  margin-top: 5px;
  padding-top: 10px;
  color: var(--navy);
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 850;
}
.price-summary .summary-total b {
  color: var(--green-dark);
  font-size: 16px;
}
.payment-details {
  padding: 14px;
  margin: 12px 0;
  background: #f1f7f2;
  border: 1px solid #dcebe0;
  border-radius: 15px;
}
.payment-details h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 13px;
}
.payment-details p {
  margin: 5px 0;
  color: #526575;
  font-size: 10px;
  line-height: 1.8;
}
.payment-ipa {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  padding: 10px;
  color: var(--navy);
  background: #fff;
  border: 1px dashed #99bea5;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 850;
  direction: ltr;
}
.payment-ipa button {
  flex: 0 0 auto;
  padding: 7px 9px;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 0;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 850;
}
.dashboard-dialog {
  width: min(920px, calc(100% - 20px));
}
.dashboard-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 10px;
  margin-bottom: 10px;
  scrollbar-width: thin;
}
.dashboard-tab {
  flex: 0 0 auto;
  padding: 9px 12px;
  color: #60707d;
  background: #f1f4f3;
  border: 0;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 850;
}
.dashboard-tab.is-active {
  color: #fff;
  background: var(--navy);
}
.dashboard-panel {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.dashboard-card {
  padding: 14px;
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.dashboard-card h3 {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: 14px;
}
.dashboard-card p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.stat-card {
  padding: 12px;
  background: #eef6f0;
  border-radius: 13px;
}
.stat-card strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
}
.stat-card small {
  color: var(--muted);
  font-size: 9px;
}
.dashboard-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.dashboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.dashboard-row-main {
  min-width: 0;
}
.dashboard-row b {
  display: block;
  color: var(--navy);
  font-size: 11px;
}
.dashboard-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}
.dashboard-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 5px;
}
.mini-button {
  min-height: 30px;
  padding: 0 9px;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 0;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 850;
}
.mini-button.danger {
  color: #9d3541;
  background: #fff0f0;
}
.status-badge {
  display: inline-flex;
  padding: 4px 7px;
  color: #6c6133;
  background: #fbf3d7;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
}
.status-badge.success {
  color: #126544;
  background: #e1f3e8;
}
.dashboard-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.dashboard-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #43596b;
  font-size: 9px;
  font-weight: 750;
}
.dashboard-form input,
.dashboard-form textarea,
.dashboard-form select {
  min-height: 38px;
  padding: 7px 9px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
  font-size: 10px;
}
.dashboard-form textarea {
  min-height: 60px;
}
.dashboard-form .span-two,
.dashboard-form .button {
  grid-column: 1/-1;
}
.dashboard-empty {
  padding: 18px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 12px;
  text-align: center;
  font-size: 10px;
}
.inline-note {
  padding: 9px 11px;
  color: #445b67;
  background: #eff5f1;
  border-radius: 10px;
  font-size: 9px;
  line-height: 1.8;
}
.toast {
  position: fixed;
  z-index: 50;
  right: 50%;
  bottom: calc(93px + env(safe-area-inset-bottom));
  max-width: min(420px, calc(100% - 28px));
  padding: 11px 15px;
  color: #fff;
  background: #183957;
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 12px);
  transition: 0.2s;
  font-size: 11px;
  text-align: center;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(50%, 0);
}
@media (max-width: 760px) {
  .topbar {
    height: 65px;
    padding: 0 14px;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .brand strong {
    font-size: 17px;
  }
  .hero {
    min-height: auto;
    padding: 39px 20px 28px;
  }
  .hero h1 {
    font-size: clamp(35px, 10vw, 49px);
  }
  .hero-copy > p {
    max-width: 380px;
    font-size: 12px;
  }
  .hero-art {
    position: absolute;
    width: 210px;
    height: 190px;
    right: -45px;
    bottom: -54px;
    opacity: 0.22;
    transform: scale(0.78);
    transform-origin: bottom right;
  }
  .hero-actions .button {
    min-height: 42px;
    padding: 0 12px;
    font-size: 10px;
  }
  .hero-note {
    max-width: 260px;
    font-size: 10px;
    line-height: 1.7;
  }
  .market-shell,
  .how-section {
    width: min(calc(100% - 28px), 600px);
  }
  .market-shell {
    padding: 38px 0 40px;
  }
  .section-heading {
    align-items: center;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .section-heading > .button {
    max-width: 145px;
    min-height: 36px;
    padding: 0 9px;
    font-size: 9px;
  }
  .search-box {
    height: 51px;
  }
  .search-box input {
    font-size: 11px;
  }
  .search-box kbd {
    display: none;
  }
  .listing-card {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
  }
  .listing-emoji {
    width: 46px;
    height: 46px;
    font-size: 22px;
    border-radius: 12px;
  }
  .listing-info h4 {
    font-size: 11px;
  }
  .listing-info p {
    font-size: 9px;
  }
  .listing-byline {
    font-size: 8px;
  }
  .listing-price {
    font-size: 11px;
  }
  .add-button {
    min-height: 31px;
    padding: 0 8px;
    font-size: 9px;
  }
  .steps-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .step-card {
    min-height: auto;
    padding: 12px;
  }
  .courier-promo {
    width: calc(100% - 28px);
    align-items: start;
    gap: 9px;
    flex-wrap: wrap;
    padding: 15px;
  }
  .courier-promo-icon {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
    font-size: 20px;
  }
  .courier-promo > div:nth-child(2) {
    flex: 1;
    min-width: 190px;
  }
  .courier-promo h2 {
    font-size: 16px;
  }
  .courier-promo p {
    font-size: 9px;
  }
  .courier-promo .button {
    width: 100%;
    margin: 2px 0 0;
    min-height: 41px;
  }
  .footer {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }
  .floating-cart {
    width: calc(100% - 14px);
    min-height: 62px;
    border-radius: 15px;
    bottom: max(7px, env(safe-area-inset-bottom));
  }
  .cart-glance {
    gap: 6px;
  }
  .cart-count {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
  .cart-glance small {
    max-width: 75px;
  }
  .cart-price strong {
    font-size: 11px;
  }
  .floating-cart .button {
    padding: 0 8px;
    font-size: 9px;
  }
  .dialog {
    padding: 17px;
    border-radius: 19px;
  }
  .dashboard-dialog {
    width: calc(100% - 12px);
    padding: 13px;
  }
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-form {
    grid-template-columns: 1fr;
  }
  .dashboard-form .span-two,
  .dashboard-form .button {
    grid-column: auto;
  }
  .dashboard-row {
    align-items: start;
    flex-direction: column;
  }
  .dashboard-row-actions {
    justify-content: start;
  }
}
@media (max-width: 390px) {
  .brand small {
    display: none;
  }
  .topbar-actions .button {
    padding: 0 8px;
  }
  .hero-actions {
    gap: 6px;
  }
  .listing-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .listing-emoji {
    width: 42px;
    height: 42px;
  }
  .listing-buy {
    grid-column: 2;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* سوق سكنك: أنماط الحقول الموسعة وحالات التعديل */
.suggestion-note {
  display: block;
  margin-top: 5px;
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 750;
}
.profile-edit {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}
.profile-edit summary {
  color: var(--green-dark);
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
}
.profile-edit[open] summary {
  margin-bottom: 10px;
}
.profile-edit .dashboard-form {
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.dashboard-list > .dashboard-card {
  padding: 12px;
}
.dashboard-form input:focus,
.dashboard-form textarea:focus,
.dashboard-form select:focus {
  outline: 2px solid rgba(23, 135, 94, 0.18);
  border-color: #74bd91;
}
.dashboard-form .mini-button {
  justify-self: start;
}
#marketplace-content:empty {
  min-height: 20px;
}
