:root {
  --yc-bg: #f5f7fb;
  --yc-panel: #ffffff;
  --yc-panel-soft: #fafbfc;
  --yc-line: #e6e9ef;
  --yc-line-strong: #d7dce5;
  --yc-text: #20242c;
  --yc-muted: #747d8d;
  --yc-dark: #151922;
  --yc-dark-soft: #252e3d;
  --yc-yellow: #ffd94d;
  --yc-yellow-strong: #f1bd16;
  --yc-yellow-soft: #fff8d6;
  --yc-green: #18a970;
  --yc-green-soft: #e9f8f1;
  --yc-blue: #315a96;
  --yc-blue-soft: #eef5ff;
  --yc-red: #d94452;
  --yc-red-soft: #fff0f1;
  --yc-orange: #eb7c28;
  --yc-orange-soft: #fff4e9;
  --yc-purple: #745ac6;
  --yc-purple-soft: #f2efff;
  --yc-shadow: 0 12px 32px rgba(24, 39, 75, .08);
  --yc-shadow-deep: 0 20px 55px rgba(20, 28, 45, .17);
  --yc-radius-xl: 24px;
  --yc-radius-lg: 18px;
  --yc-radius-md: 14px;
  --yc-radius-sm: 10px;
  --yc-content-max: 920px;
  --yc-bottom-nav-height: 68px;
  --yc-top-safe: env(safe-area-inset-top, 0px);
  --yc-bottom-safe: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html {
  min-width: 320px;
  min-height: 100%;
  background: var(--yc-bg);
  scroll-behavior: auto;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--yc-text);
  background: var(--yc-bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  touch-action: manipulation;
}
button, input, textarea, select {
  color: inherit;
  font: inherit;
}
button, a, input, textarea, select, label {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 0;
  cursor: pointer;
}
input, textarea, select {
  -webkit-appearance: none;
  appearance: none;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
[hidden] { display: none !important; }

:where(button, a, input, textarea, select):focus-visible {
  outline: 3px solid rgba(49, 90, 150, .25);
  outline-offset: 2px;
}

.yc-app {
  min-height: 100vh;
  min-height: 100dvh;
}

.yc-shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(var(--yc-bottom-nav-height) + var(--yc-bottom-safe) + 18px);
}

.yc-main {
  width: min(100%, var(--yc-content-max));
  min-height: calc(100vh - var(--yc-bottom-nav-height));
  margin: 0 auto;
}

.yc-page {
  animation: none;
}
.yc-home-view-preserved {
  pointer-events: none;
  user-select: none;
}
.yc-home-view-preserved .yc-bottom-nav-wrap { display: none; }
.yc-product-route-layer {
  position: fixed;
  z-index: 55;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--yc-bg);
  -webkit-overflow-scrolling: touch;
}
@keyframes yc-page-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.yc-splash {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: var(--yc-text);
}
.yc-splash-mark {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 22px;
  color: #101319;
  background: linear-gradient(145deg, #ffe87d, var(--yc-yellow-strong));
  box-shadow: 0 18px 36px rgba(241, 189, 22, .28);
  font-size: 30px;
  font-weight: 900;
}
.yc-splash strong { margin-top: 5px; font-size: 22px; }
.yc-splash span { color: var(--yc-muted); font-size: 13px; }

.yc-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.yc-icon-sm { width: 18px; height: 18px; flex-basis: 18px; }
.yc-icon-lg { width: 28px; height: 28px; flex-basis: 28px; }

/* Bottom navigation */
.yc-bottom-nav-wrap {
  position: fixed;
  z-index: 70;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
}
.yc-bottom-nav {
  display: grid;
  width: min(100%, var(--yc-content-max));
  min-height: calc(var(--yc-bottom-nav-height) + var(--yc-bottom-safe));
  margin: 0 auto;
  padding: 7px max(12px, env(safe-area-inset-left, 0px)) var(--yc-bottom-safe) max(12px, env(safe-area-inset-right, 0px));
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(215, 220, 229, .9);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 -9px 28px rgba(22, 31, 50, .08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: auto;
}
.yc-nav-item {
  position: relative;
  display: grid;
  min-height: 54px;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 4px 2px;
  border-radius: 14px;
  color: #8b93a0;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
}
.yc-nav-item .yc-nav-icon-wrap {
  display: grid;
  width: 38px;
  height: 27px;
  place-items: center;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.yc-nav-item.is-active { color: var(--yc-dark); }
.yc-nav-item.is-active .yc-nav-icon-wrap {
  color: #111;
  background: var(--yc-yellow);
  transform: translateY(-1px);
}
.yc-nav-dot {
  position: absolute;
  top: 4px;
  left: calc(50% + 10px);
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--yc-red);
  font-size: 9px;
  font-weight: 800;
  line-height: 13px;
  text-align: center;
}

/* Home */
.yc-home-hero {
  position: relative;
  overflow: hidden;
  padding: calc(16px + var(--yc-top-safe)) 16px 30px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 8%, rgba(255, 217, 77, .30), transparent 31%),
    linear-gradient(145deg, #151922 0%, #252e3d 64%, #1e2430 100%);
}
.yc-home-hero::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -85px;
  width: 210px;
  height: 210px;
  border: 36px solid rgba(255, 255, 255, .035);
  border-radius: 50%;
}
.yc-home-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.yc-brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}
.yc-brand-mini {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 13px;
  color: #101319;
  background: linear-gradient(145deg, #ffe778, var(--yc-yellow-strong));
  font-size: 18px;
  font-weight: 900;
}
.yc-brand-copy { min-width: 0; }
.yc-brand-copy strong,
.yc-brand-copy span { display: block; }
.yc-brand-copy strong { font-size: 17px; letter-spacing: -.02em; }
.yc-brand-copy span {
  margin-top: 1px;
  overflow: hidden;
  color: #aeb6c3;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yc-round-action {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 13px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
}
.yc-round-action .yc-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--yc-dark-soft);
  border-radius: 50%;
  background: var(--yc-red);
}
.yc-home-intro {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  text-align: center;
}
.yc-home-intro h1 {
  max-width: 560px;
  margin: 0 auto;
  font-size: clamp(27px, 7.6vw, 36px);
  line-height: 1.22;
  letter-spacing: .06em;
}
.yc-search-bar {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  color: #687180;
  background: #fff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .16);
}
.yc-search-bar input {
  min-width: 0;
  flex: 1;
  height: 46px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}
.yc-search-bar input::placeholder { color: #9ca4b0; }
.yc-search-clear {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #8b93a0;
  background: #f0f2f5;
  font-size: 14px;
}

.yc-home-content {
  position: relative;
  z-index: 3;
  margin-top: -12px;
  padding: 0 12px 20px;
}
.yc-quick-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 12px 6px;
  border: 1px solid rgba(230, 233, 239, .9);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--yc-shadow);
}
.yc-quick-item {
  display: grid;
  min-width: 0;
  place-items: center;
  gap: 7px;
  padding: 7px 2px;
  border-radius: 13px;
  background: transparent;
  font-size: 11px;
  font-weight: 680;
}
.yc-quick-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
}
.yc-quick-item[data-method="upload"] .yc-quick-icon { color: var(--yc-blue); background: var(--yc-blue-soft); }
.yc-quick-item[data-method="manual"] .yc-quick-icon { color: var(--yc-green); background: var(--yc-green-soft); }

.yc-section { margin-top: 10px; }
.yc-category-strip {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 0 3px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.yc-category-strip::-webkit-scrollbar { display: none; }
.yc-category-chip {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid var(--yc-line);
  border-radius: 999px;
  color: #606978;
  background: #fff;
  font-size: 12px;
  font-weight: 650;
  scroll-snap-align: start;
}
.yc-category-chip.is-active {
  border-color: var(--yc-dark);
  color: #fff;
  background: var(--yc-dark);
}

.yc-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.yc-product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(230, 233, 239, .9);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(24, 39, 75, .055);
  text-align: left;
  transition: transform .16s ease, box-shadow .16s ease;
}
.yc-product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / .84;
  background:
    linear-gradient(135deg, rgba(255, 217, 77, .28), rgba(49, 90, 150, .08)),
    #eef1f6;
}
.yc-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yc-product-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(transparent, rgba(13, 18, 25, .12));
  pointer-events: none;
}
.yc-product-tag {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 9px;
  padding: 4px 7px;
  border-radius: 7px;
  color: #111;
  background: rgba(255, 217, 77, .95);
  font-size: 9px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}
.yc-product-body { padding: 10px 10px 11px; }
.yc-product-title {
  overflow: hidden;
  color: var(--yc-text);
  font-size: 14px;
  font-weight: 770;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yc-product-desc {
  display: -webkit-box;
  min-height: 30px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--yc-muted);
  font-size: 10px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.yc-product-meta {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  margin-top: 8px;
}
.yc-product-price {
  min-width: 0;
  color: var(--yc-red);
  font-size: 10px;
  font-weight: 650;
}
.yc-product-price strong { font-size: 17px; letter-spacing: -.03em; }
.yc-product-price.is-manual { color: var(--yc-orange); font-size: 12px; }
.yc-product-unit { color: #9aa2ae; font-size: 9px; white-space: nowrap; }

.yc-skeleton {
  position: relative;
  overflow: hidden;
  background: #e9edf3;
}
.yc-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
  animation: yc-shimmer 1.35s infinite;
}
@keyframes yc-shimmer { to { transform: translateX(100%); } }
.yc-product-card.is-skeleton { padding-bottom: 12px; }
.yc-product-card.is-skeleton .yc-product-image { background: #e9edf3; }
.yc-skeleton-line { height: 12px; margin: 10px 10px 0; border-radius: 7px; }
.yc-skeleton-line.short { width: 55%; }

/* Generic page bars */
.yc-page-topbar {
  position: sticky;
  z-index: 45;
  top: 0;
  display: grid;
  min-height: calc(58px + var(--yc-top-safe));
  padding: var(--yc-top-safe) 12px 0;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  border-bottom: 1px solid rgba(230, 233, 239, .85);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.yc-page-topbar.is-dark {
  border-bottom-color: rgba(255,255,255,.08);
  color: #fff;
  background: rgba(21, 25, 34, .95);
}
.yc-topbar-action {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  color: inherit;
  background: transparent;
}
.yc-topbar-title {
  min-width: 0;
  overflow: hidden;
  font-size: 17px;
  font-weight: 760;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yc-topbar-extra {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  color: inherit;
  background: transparent;
}

/* Product details */
.yc-detail-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(84px + var(--yc-bottom-safe));
  background: var(--yc-bg);
}
.yc-product-gallery {
  position: relative;
  overflow: hidden;
  background: #e9edf3;
}
.yc-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.yc-gallery-track::-webkit-scrollbar { display: none; }
.yc-gallery-slide {
  min-width: 100%;
  aspect-ratio: 1.35 / 1;
  background: linear-gradient(145deg, #e9edf3, #f8f9fb);
  scroll-snap-align: center;
}
.yc-gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.yc-gallery-dots {
  position: absolute;
  right: 0;
  bottom: 11px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
}
.yc-gallery-dot {
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255,255,255,.65);
  box-shadow: 0 1px 5px rgba(0,0,0,.18);
  transition: width .18s ease, background .18s ease;
}
.yc-gallery-dot.is-active { width: 16px; background: var(--yc-yellow); }

.yc-detail-card {
  margin: 10px 10px 0;
  padding: 16px;
  border: 1px solid rgba(230, 233, 239, .9);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(24, 39, 75, .045);
}
.yc-product-summary h1 { margin: 0; font-size: 22px; line-height: 1.3; letter-spacing: -.03em; }
.yc-product-summary p { margin: 8px 0 0; color: var(--yc-muted); font-size: 12px; line-height: 1.65; }
.yc-detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.yc-detail-title-row h1 { min-width: 0; }
.yc-detail-starting-price { flex: 0 0 auto; color: var(--yc-red); font-size: 20px; font-weight: 850; line-height: 1.3; }
.yc-detail-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 14px; overflow: hidden; border-radius: 12px; background: var(--yc-line); }
.yc-detail-facts span { display: flex; min-height: 58px; flex-direction: column; justify-content: center; gap: 3px; padding: 8px; color: var(--yc-muted); background: #f8f9fb; font-size: 9px; text-align: center; }
.yc-detail-facts strong { color: var(--yc-text); font-size: 11px; }
.yc-detail-notice { padding-top: 14px; padding-bottom: 14px; }
.yc-detail-notice-row { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; color: var(--yc-muted); font-size: 11px; line-height: 1.6; }
.yc-detail-notice-row + .yc-detail-notice-row { border-top: 1px solid var(--yc-line); }
.yc-summary-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.yc-soft-tag {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--yc-green);
  background: var(--yc-green-soft);
  font-size: 10px;
  font-weight: 720;
}
.yc-soft-tag.is-blue { color: var(--yc-blue); background: var(--yc-blue-soft); }
.yc-soft-tag.is-yellow { color: #8c6400; background: var(--yc-yellow-soft); }

.yc-config-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.yc-config-head h2 { margin: 0; font-size: 17px; }
.yc-config-head p { margin: 4px 0 0; color: var(--yc-muted); font-size: 11px; }
.yc-live-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--yc-green);
  background: var(--yc-green-soft);
  font-size: 10px;
  font-weight: 750;
}
.yc-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(24,169,112,.12);
}
.yc-config-section { margin-top: 18px; }
.yc-order-quantity-controls {
  margin-top: 18px;
  padding-top: 1px;
  border-top: 1px solid var(--yc-line);
}
.yc-order-quantity-controls .yc-config-section:first-child { margin-top: 16px; }
.yc-config-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 760;
}
.yc-config-label span { color: var(--yc-muted); font-size: 10px; font-weight: 500; }
.yc-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.yc-choice {
  position: relative;
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid var(--yc-line-strong);
  border-radius: 11px;
  color: #4b5360;
  background: #fff;
  font-size: 12px;
  font-weight: 620;
}
.yc-choice.is-selected {
  border-color: var(--yc-dark);
  color: var(--yc-dark);
  background: var(--yc-yellow-soft);
  box-shadow: inset 0 0 0 1px var(--yc-dark);
}
.yc-choice.is-selected::after {
  content: "✓";
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--yc-dark);
  font-size: 8px;
  font-weight: 900;
}
.yc-choice:disabled,
.yc-choice.is-disabled { opacity: .42; cursor: not-allowed; }
.yc-choice small { color: var(--yc-muted); font-size: 9px; }
.yc-choice-with-image { padding-left: 7px; }
.yc-choice-image {
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 8px;
  background: #eef1f6;
}
.yc-choice-image img { width: 100%; height: 100%; object-fit: cover; }

.yc-size-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
  padding: 4px;
  border-radius: 12px;
  background: #f1f3f6;
}
.yc-size-mode button {
  min-height: 34px;
  border-radius: 9px;
  color: var(--yc-muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}
.yc-size-mode button.is-active {
  color: var(--yc-text);
  background: #fff;
  box-shadow: 0 3px 10px rgba(24,39,75,.08);
}
.yc-input-pair {
  display: grid;
  grid-template-columns: 1fr 25px 1fr;
  align-items: center;
  gap: 6px;
}
.yc-input-pair.is-one { grid-template-columns: 1fr; }
.yc-input-wrap { position: relative; min-width: 0; }
.yc-input-wrap input,
.yc-form-control,
.yc-textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 44px 10px 12px;
  border: 1px solid var(--yc-line-strong);
  border-radius: 12px;
  outline: 0;
  background: #fff;
  font-size: 13px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.yc-input-wrap input:focus,
.yc-form-control:focus,
.yc-textarea:focus {
  border-color: #9eabbc;
  box-shadow: 0 0 0 3px rgba(49,90,150,.12);
}
.yc-input-unit {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--yc-muted);
  font-size: 11px;
  transform: translateY(-50%);
}
.yc-input-times { color: #98a0ac; font-size: 16px; text-align: center; }
.yc-range-hint { margin-top: 6px; color: #969eaa; font-size: 10px; line-height: 1.5; }

.yc-stepper {
  display: inline-grid;
  width: 148px;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  overflow: hidden;
  border: 1px solid var(--yc-line-strong);
  border-radius: 12px;
}
.yc-stepper button {
  display: grid;
  min-height: 42px;
  place-items: center;
  color: #535b68;
  background: #f7f8fa;
  font-size: 20px;
}
.yc-stepper input {
  min-width: 0;
  width: 100%;
  border: 0;
  border-right: 1px solid var(--yc-line);
  border-left: 1px solid var(--yc-line);
  outline: 0;
  background: #fff;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}
.yc-app input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
.yc-app input[type="number"]::-webkit-inner-spin-button,
.yc-app input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.yc-advanced-toggle {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 2px;
  color: var(--yc-blue);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}
.yc-advanced-toggle .yc-icon { transition: transform .18s ease; }
.yc-advanced-toggle[aria-expanded="true"] .yc-icon { transform: rotate(180deg); }
.yc-advanced-area {
  padding-top: 3px;
  border-top: 1px dashed var(--yc-line-strong);
}

.yc-state-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 11px;
  border-radius: 11px;
  color: #735b16;
  background: var(--yc-yellow-soft);
  font-size: 10px;
  line-height: 1.6;
}
.yc-state-note.is-error { color: #9b303b; background: var(--yc-red-soft); }

.yc-price-card {
  overflow: hidden;
  margin-top: 14px;
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 95% 0%, rgba(255,217,77,.25), transparent 34%),
    var(--yc-dark);
}
.yc-price-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
}
.yc-price-copy span,
.yc-price-copy small { display: block; }
.yc-price-copy span { color: #abb3c0; font-size: 10px; }
.yc-price-copy strong {
  display: block;
  margin-top: 2px;
  color: var(--yc-yellow);
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.04em;
}
.yc-price-copy small { margin-top: 3px; color: #939caa; font-size: 9px; }
.yc-price-detail-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 3px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  color: #e6e9ee;
  background: rgba(255,255,255,.07);
  font-size: 10px;
}
.yc-price-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #aab3c0;
  background: rgba(255,255,255,.035);
  font-size: 9px;
}
.yc-price-loading { animation: yc-pulse 1.1s ease-in-out infinite alternate; }
@keyframes yc-pulse { to { opacity: .45; } }

.yc-detail-actionbar {
  position: fixed;
  z-index: 65;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
}
.yc-detail-actionbar-inner {
  display: grid;
  width: min(100%, var(--yc-content-max));
  min-height: calc(72px + var(--yc-bottom-safe));
  margin: 0 auto;
  padding: 9px 12px var(--yc-bottom-safe);
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border-top: 1px solid rgba(215,220,229,.9);
  background: rgba(255,255,255,.96);
  box-shadow: 0 -10px 28px rgba(22,31,50,.09);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
}
.yc-detail-purchase-bar { grid-template-columns: 52px 52px minmax(0, 1fr); }
.yc-action-icon-button {
  display: grid;
  min-height: 50px;
  place-items: center;
  align-content: center;
  gap: 2px;
  border-radius: 13px;
  color: #626b79;
  background: #f4f6f8;
  font-size: 9px;
}
.yc-action-icon-button.is-active { color: var(--yc-red); background: var(--yc-red-soft); }
.yc-primary-button,
.yc-secondary-button,
.yc-dark-button,
.yc-danger-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 780;
}
.yc-primary-button { color: #111; background: linear-gradient(145deg, #ffe873, var(--yc-yellow)); box-shadow: 0 9px 22px rgba(241,189,22,.22); }
.yc-dark-button { color: #fff; background: var(--yc-dark); }
.yc-secondary-button { border: 1px solid var(--yc-line-strong); color: var(--yc-text); background: #fff; }
.yc-danger-button { color: #fff; background: var(--yc-red); }
.yc-primary-button:disabled,
.yc-dark-button:disabled { opacity: .46; box-shadow: none; cursor: not-allowed; }
.yc-button-block { width: 100%; }
.yc-button-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.yc-checkout-actionbar-inner { grid-template-columns: minmax(0, 1fr); }
.yc-checkout-pay-button {
  width: 100%;
  min-height: 56px;
  margin: 0 auto;
  flex-direction: column;
  gap: 1px;
  text-align: center;
}
.yc-checkout-pay-main { display: inline-flex; align-items: baseline; justify-content: center; gap: 5px; line-height: 1.25; }
.yc-checkout-pay-main strong { font-size: 17px; font-weight: 840; }
.yc-checkout-pay-button small { font-size: 10px; font-weight: 620; line-height: 1.25; opacity: .66; }

/* Page title / list screens */
.yc-list-page { padding: calc(14px + var(--yc-top-safe)) 12px 18px; }
.yc-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
  padding: 0 3px;
}
.yc-list-header h1 { margin: 0; font-size: 26px; letter-spacing: -.04em; }
.yc-list-header p { margin: 5px 0 0; color: var(--yc-muted); font-size: 11px; }
.yc-header-action {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--yc-line);
  border-radius: 14px;
  color: var(--yc-text);
  background: #fff;
  box-shadow: 0 6px 15px rgba(24,39,75,.05);
}
.yc-segmented {
  display: flex;
  gap: 5px;
  margin: 0 -12px 13px;
  padding: 0 12px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.yc-segmented::-webkit-scrollbar { display: none; }
.yc-segmented button {
  flex: 0 0 auto;
  min-height: 35px;
  padding: 0 14px;
  border-radius: 999px;
  color: #737c89;
  background: #eceff3;
  font-size: 11px;
  font-weight: 700;
}
.yc-segmented button.is-active { color: #111; background: var(--yc-yellow); }

.yc-card-list { display: grid; gap: 10px; }
.yc-project-card,
.yc-message-card,
.yc-order-card,
.yc-menu-card {
  border: 1px solid rgba(230,233,239,.92);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(24,39,75,.045);
}
.yc-project-card { padding: 13px; }
.yc-project-top { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 11px; }
.yc-project-thumb {
  position: relative;
  overflow: hidden;
  width: 68px;
  height: 68px;
  border-radius: 13px;
  background: linear-gradient(145deg, #e8ecf2, #f7f8fa);
}
.yc-project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yc-project-info { min-width: 0; }
.yc-card-title-row { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 8px; }
.yc-card-title-row strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yc-status-badge {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 8px;
  color: var(--yc-blue);
  background: var(--yc-blue-soft);
  font-size: 9px;
  font-weight: 760;
}
.yc-status-badge.is-warn { color: #8d6500; background: var(--yc-yellow-soft); }
.yc-status-badge.is-green { color: var(--yc-green); background: var(--yc-green-soft); }
.yc-status-badge.is-orange { color: var(--yc-orange); background: var(--yc-orange-soft); }
.yc-status-badge.is-gray { color: #69717e; background: #eef0f3; }
.yc-project-meta { margin-top: 6px; color: var(--yc-muted); font-size: 10px; line-height: 1.55; }
.yc-project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--yc-line);
}
.yc-project-foot span { color: var(--yc-muted); font-size: 9px; }
.yc-mini-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
  border: 1px solid var(--yc-line-strong);
  border-radius: 9px;
  color: #4e5663;
  background: #fff;
  font-size: 10px;
  font-weight: 680;
}
.yc-mini-button.is-dark { border-color: var(--yc-dark); color: #fff; background: var(--yc-dark); }

.yc-message-card {
  display: grid;
  min-height: 78px;
  padding: 12px;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  text-align: left;
}
.yc-avatar {
  position: relative;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  color: #111;
  background: linear-gradient(145deg, #ffe778, var(--yc-yellow-strong));
  font-size: 17px;
  font-weight: 850;
}
.yc-avatar.is-system { color: #fff; background: linear-gradient(145deg, #315a96, #243f6d); }
.yc-avatar.is-purple { color: #fff; background: linear-gradient(145deg, #8b72dc, #6149ad); }
.yc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.yc-online-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--yc-green);
}
.yc-message-copy { min-width: 0; }
.yc-message-title { display: flex; min-width: 0; align-items: center; gap: 6px; }
.yc-message-title strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.yc-message-title em { padding: 2px 5px; border-radius: 5px; color: var(--yc-blue); background: var(--yc-blue-soft); font-size: 8px; font-style: normal; }
.yc-message-preview { margin-top: 5px; overflow: hidden; color: var(--yc-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.yc-message-side { display: grid; justify-items: end; gap: 7px; }
.yc-message-time { color: #a0a7b2; font-size: 9px; }
.yc-unread-count { display: grid; min-width: 18px; height: 18px; padding: 0 5px; place-items: center; border-radius: 99px; color: #fff; background: var(--yc-red); font-size: 9px; font-weight: 800; }

/* Profile */
.yc-profile-page { padding-bottom: 20px; }
.yc-profile-hero {
  position: relative;
  overflow: hidden;
  padding: calc(22px + var(--yc-top-safe)) 16px 50px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 8%, rgba(255,217,77,.24), transparent 32%),
    linear-gradient(150deg, #151922, #252e3d);
}
.yc-profile-hero::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -80px;
  width: 200px;
  height: 200px;
  border: 35px solid rgba(255,255,255,.035);
  border-radius: 50%;
}
.yc-profile-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.yc-profile-user { position: relative; z-index: 2; display: grid; margin-top: 22px; grid-template-columns: 65px minmax(0, 1fr); align-items: center; gap: 14px; }
.yc-profile-user .yc-avatar { width: 65px; height: 65px; border-radius: 21px; font-size: 22px; }
.yc-profile-user h1 { margin: 0; font-size: 21px; }
.yc-profile-user p { margin: 5px 0 0; color: #b7bfcb; font-size: 11px; }
.yc-member-tag { display: inline-flex; margin-top: 8px; padding: 4px 8px; border-radius: 7px; color: #171a21; background: var(--yc-yellow); font-size: 9px; font-weight: 820; }
.yc-profile-content { position: relative; z-index: 4; margin-top: -30px; padding: 0 12px; }
.yc-order-shortcuts { padding: 14px 10px 12px; }
.yc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 5px; }
.yc-card-head strong { font-size: 15px; }
.yc-card-head button { display: inline-flex; align-items: center; gap: 2px; color: var(--yc-muted); background: transparent; font-size: 10px; }
.yc-shortcut-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin-top: 14px; }
.yc-order-shortcut {
  position: relative;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 5px 2px;
  background: transparent;
  font-size: 10px;
}
.yc-order-shortcut .yc-icon { color: #414956; }
.yc-shortcut-count { position: absolute; top: -5px; left: calc(50% + 8px); display: grid; min-width: 17px; height: 17px; padding: 0 4px; place-items: center; border: 1px solid var(--yc-red); border-radius: 99px; color: var(--yc-red); background: #fff; font-size: 8px; font-weight: 800; }
.yc-menu-card { margin-top: 10px; overflow: hidden; }
.yc-menu-row {
  display: grid;
  width: 100%;
  min-height: 56px;
  padding: 0 14px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  background: #fff;
  text-align: left;
}
.yc-menu-row > .yc-icon:last-child { justify-self: end; }
.yc-menu-copy { min-width: 0; }
.yc-menu-row + .yc-menu-row { border-top: 1px solid var(--yc-line); }
.yc-menu-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: var(--yc-blue); background: var(--yc-blue-soft); }
.yc-menu-row:nth-child(2) .yc-menu-icon { color: var(--yc-purple); background: var(--yc-purple-soft); }
.yc-menu-row:nth-child(3) .yc-menu-icon { color: var(--yc-orange); background: var(--yc-orange-soft); }
.yc-menu-row:nth-child(4) .yc-menu-icon { color: var(--yc-green); background: var(--yc-green-soft); }
.yc-menu-copy strong,
.yc-menu-copy span { display: block; }
.yc-menu-copy strong { font-size: 12px; }
.yc-menu-copy span { margin-top: 2px; color: var(--yc-muted); font-size: 9px; }
.yc-profile-version { margin: 18px 0 6px; color: #a0a7b2; font-size: 9px; text-align: center; }

/* Checkout / order */
.yc-content-pad { padding: 10px 10px calc(20px + var(--yc-bottom-safe)); }
.yc-info-card { margin-bottom: 10px; padding: 14px; border: 1px solid rgba(230,233,239,.92); border-radius: 17px; background: #fff; box-shadow: 0 6px 18px rgba(24,39,75,.04); }
.yc-info-card h2 { margin: 0; font-size: 15px; }
.yc-address-row { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.yc-address-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 11px; color: var(--yc-orange); background: var(--yc-orange-soft); }
.yc-address-copy strong { display: block; font-size: 12px; }
.yc-address-copy span { display: block; margin-top: 3px; color: var(--yc-muted); font-size: 10px; line-height: 1.45; }
.yc-fulfillment-card {
  overflow: hidden;
  padding: 0;
  background: #fff;
}
.yc-delivery-tabs {
  position: relative;
  isolation: isolate;
  display: grid;
  height: 52px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #f3f3f3;
}
.yc-delivery-tabs svg {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.yc-delivery-curve {
  fill: #fff;
  transition: opacity .15s ease;
}
.yc-delivery-tabs.is-delivery-selected .yc-delivery-curve-right,
.yc-delivery-tabs.is-pickup-selected .yc-delivery-curve-left { opacity: 0; }
.yc-delivery-tabs.is-delivery-selected .yc-delivery-curve-left,
.yc-delivery-tabs.is-pickup-selected .yc-delivery-curve-right { opacity: 1; }
.yc-delivery-tab {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 0 14px;
  color: #95989e;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  letter-spacing: .01em;
  transition: color .15s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.yc-delivery-tab.is-selected { color: #20242b; font-weight: 700; }
.yc-delivery-tab:focus { outline: none; }
.yc-fulfillment-address-panel {
  position: relative;
  z-index: 2;
  min-height: 68px;
  margin-top: -1px;
  padding: 14px;
  background: #fff;
}
.yc-fulfillment-address-panel .yc-address-row { position: relative; z-index: 1; }
.yc-summary-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 9px 0; color: var(--yc-muted); font-size: 11px; }
.yc-summary-row + .yc-summary-row { border-top: 1px solid var(--yc-line); }
.yc-summary-row strong { max-width: 64%; color: var(--yc-text); font-size: 11px; font-weight: 680; text-align: right; }
.yc-summary-row.is-total { padding-top: 13px; align-items: center; }
.yc-summary-row.is-total strong { color: var(--yc-red); font-size: 20px; }
.yc-order-timeline { position: relative; margin-top: 13px; padding-left: 23px; }
.yc-order-timeline::before { content: ""; position: absolute; top: 8px; bottom: 10px; left: 7px; width: 2px; background: #e4e8ed; }
.yc-timeline-item { position: relative; padding-bottom: 16px; }
.yc-timeline-item:last-child { padding-bottom: 0; }
.yc-timeline-dot { position: absolute; top: 3px; left: -22px; width: 14px; height: 14px; border: 3px solid #fff; border-radius: 50%; background: #c7cdd6; box-shadow: 0 0 0 1px #d9dee6; }
.yc-timeline-item.is-active .yc-timeline-dot { background: var(--yc-yellow-strong); box-shadow: 0 0 0 1px var(--yc-yellow-strong); }
.yc-timeline-item strong { display: block; font-size: 11px; }
.yc-timeline-item span { display: block; margin-top: 3px; color: var(--yc-muted); font-size: 9px; line-height: 1.5; }

/* Chat */
.yc-chat-page {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  background: #f2f4f7;
}
.yc-chat-main {
  flex: 1;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 15px 12px calc(92px + var(--yc-bottom-safe));
}
.yc-chat-date { margin: 9px 0 18px; color: #929aa6; font-size: 11px; text-align: center; }
.yc-chat-row { display: flex; align-items: flex-end; gap: 9px; margin-bottom: 16px; }
.yc-chat-row.is-me { justify-content: flex-end; }
.yc-chat-row .yc-avatar { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; font-size: 13px; }
.yc-bubble-wrap { max-width: min(82%, 560px); }
.yc-bubble {
  position: relative;
  padding: 10px 12px;
  border-radius: 12px 12px 12px 3px;
  color: #353c48;
  background: #fff;
  box-shadow: 0 2px 8px rgba(24,39,75,.06);
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}
.yc-chat-row.is-me .yc-bubble { border-radius: 12px 12px 3px 12px; color: #151922; background: var(--yc-yellow); }
.yc-bubble.has-attachments .yc-bubble-text { margin-bottom: 9px; }
.yc-bubble.has-only-attachments { padding: 0; background: transparent; box-shadow: none; }
.yc-bubble-time { margin-top: 5px; color: #929aa6; font-size: 10px; }
.yc-chat-row.is-me .yc-bubble-time { text-align: right; }
.yc-chat-message-attachments { display: grid; min-width: min(62vw, 230px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.yc-chat-image-card { display: block; min-width: 0; padding: 0; overflow: hidden; border-radius: 9px; background: #e8ebef; }
.yc-chat-image-card:only-child { grid-column: 1 / -1; }
.yc-chat-image-card img { width: 100%; max-height: 260px; aspect-ratio: 1 / 1; object-fit: cover; }
.yc-chat-image-card:only-child img { aspect-ratio: auto; min-height: 120px; object-fit: contain; background: #eef0f3; }
.yc-chat-video-card,
.yc-chat-file-card { grid-column: 1 / -1; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px rgba(25,32,44,.08); }
.yc-chat-video-card video { display: block; width: 100%; max-height: 280px; background: #111; }
.yc-chat-media-foot { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; }
.yc-chat-media-foot > span { min-width: 0; }
.yc-chat-media-foot strong,
.yc-chat-media-foot small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yc-chat-media-foot strong { font-size: 12px; }
.yc-chat-media-foot small { margin-top: 2px; color: var(--yc-muted); font-size: 10px; }
.yc-chat-media-foot a { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 10px; color: var(--yc-blue); background: var(--yc-blue-soft); }
.yc-chat-file-card { display: grid; min-height: 72px; padding: 10px; grid-template-columns: 44px minmax(0, 1fr) 24px; align-items: center; gap: 9px; }
.yc-chat-file-card.is-unavailable { color: var(--yc-muted); }
.yc-chat-file-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 11px; color: var(--yc-blue); background: var(--yc-blue-soft); }
.yc-chat-file-copy { min-width: 0; }
.yc-chat-file-copy strong,
.yc-chat-file-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yc-chat-file-copy strong { color: var(--yc-text); font-size: 12px; }
.yc-chat-file-copy small { margin-top: 4px; color: var(--yc-muted); font-size: 10px; }
.yc-chat-composer-wrap { position: fixed; z-index: 70; right: 0; bottom: 0; left: 0; pointer-events: none; }
.yc-chat-composer-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  border-top: 1px solid var(--yc-line);
  background: rgba(248,249,251,.98);
  box-shadow: 0 -8px 24px rgba(22,31,50,.07);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  pointer-events: auto;
}
.yc-chat-composer {
  display: grid;
  min-height: calc(62px + var(--yc-bottom-safe));
  padding: 9px 10px calc(9px + var(--yc-bottom-safe));
  grid-template-columns: 42px minmax(0, 1fr) 42px 52px;
  align-items: end;
  gap: 6px;
}
.yc-chat-tool { display: grid; width: 42px; height: 44px; place-items: center; border-radius: 11px; color: #353c48; background: transparent; }
.yc-chat-tool .yc-icon { width: 25px; height: 25px; }
.yc-chat-tool.is-active { color: var(--yc-blue); background: var(--yc-blue-soft); }
.yc-chat-tool:disabled { opacity: .38; }
.yc-chat-send { display: grid; width: 52px; height: 40px; margin-bottom: 2px; place-items: center; border-radius: 9px; color: #888f99; background: #e4e7eb; font-size: 13px; font-weight: 700; }
.yc-chat-send.is-ready { color: #11151b; background: var(--yc-yellow); }
.yc-chat-send.is-busy { font-size: 11px; }
.yc-chat-send:disabled { cursor: default; }
.yc-chat-input { min-height: 44px; max-height: 112px; padding: 10px 11px; border: 1px solid #dfe3e9; border-radius: 10px; outline: 0; background: #fff; font-size: 15px; line-height: 1.5; resize: none; }
.yc-chat-input:focus { border-color: #c9ced6; box-shadow: 0 0 0 2px rgba(49,90,150,.08); }
.yc-chat-input:disabled { color: var(--yc-muted); background: #f0f2f4; }
.yc-chat-emoji-panel { display: grid; padding: 10px 12px; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; border-bottom: 1px solid var(--yc-line); background: #fff; }
.yc-chat-emoji-panel button { display: grid; min-width: 36px; min-height: 38px; place-items: center; border-radius: 9px; background: transparent; font-size: 23px; }
.yc-chat-pending-list { display: flex; gap: 8px; padding: 9px 10px; overflow-x: auto; border-bottom: 1px solid var(--yc-line); background: #fff; scrollbar-width: none; }
.yc-chat-pending-list::-webkit-scrollbar { display: none; }
.yc-chat-pending-item { display: grid; width: min(76vw, 270px); min-width: min(76vw, 270px); min-height: 62px; padding: 7px; grid-template-columns: 48px minmax(0, 1fr) 34px; align-items: center; gap: 8px; border: 1px solid var(--yc-line); border-radius: 12px; background: #fff; }
.yc-chat-pending-item.is-error { border-color: #efb8bd; background: #fff7f8; }
.yc-chat-pending-preview { display: grid; width: 48px; height: 48px; place-items: center; overflow: hidden; border-radius: 9px; color: var(--yc-blue); background: var(--yc-blue-soft); }
.yc-chat-pending-preview img { width: 100%; height: 100%; object-fit: cover; }
.yc-chat-pending-copy { min-width: 0; }
.yc-chat-pending-copy strong,
.yc-chat-pending-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yc-chat-pending-copy strong { font-size: 11px; }
.yc-chat-pending-copy small { margin-top: 3px; color: var(--yc-muted); font-size: 9px; }
.yc-chat-pending-copy i { display: block; height: 3px; margin-top: 6px; overflow: hidden; border-radius: 2px; background: #eceff3; }
.yc-chat-pending-copy i b { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--yc-yellow-strong); transition: width .12s linear; }
.yc-chat-pending-action { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: var(--yc-muted); background: #f0f2f5; }
.yc-chat-pending-action.is-retry { color: var(--yc-red); background: var(--yc-red-soft); }
.yc-chat-send-error { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; color: #a33a45; background: #fff0f1; font-size: 11px; }
.yc-chat-send-error span { display: flex; min-width: 0; align-items: center; gap: 6px; }
.yc-chat-send-error button { min-width: 70px; padding: 7px 10px; border-radius: 8px; color: #9e303b; background: #fff; font-size: 11px; font-weight: 700; }
.yc-chat-attachment-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.yc-chat-attachment-menu label { position: relative; display: grid; min-height: 132px; place-content: center; justify-items: center; gap: 7px; padding: 15px 9px; overflow: hidden; border: 1px solid var(--yc-line); border-radius: 16px; background: #fafbfc; text-align: center; }
.yc-chat-attachment-menu input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.yc-chat-attachment-menu label > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; color: var(--yc-blue); background: var(--yc-blue-soft); }
.yc-chat-attachment-menu label:nth-child(2) > span { color: var(--yc-purple); background: var(--yc-purple-soft); }
.yc-chat-attachment-menu strong { font-size: 13px; }
.yc-chat-attachment-menu small { color: var(--yc-muted); font-size: 9px; line-height: 1.45; }
.yc-chat-attachment-note { margin: 12px 2px 0; color: var(--yc-muted); font-size: 10px; line-height: 1.5; text-align: center; }
.yc-chat-preview-layer { position: fixed; z-index: 260; inset: 0; display: flex; flex-direction: column; color: #fff; background: rgba(7,9,13,.96); }
.yc-chat-preview-head { display: grid; min-height: calc(58px + var(--yc-top-safe)); padding: var(--yc-top-safe) 12px 0; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 10px; }
.yc-chat-preview-head strong { overflow: hidden; padding-left: 8px; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.yc-chat-preview-head button { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; color: #fff; background: rgba(255,255,255,.12); }
.yc-chat-preview-body { display: grid; min-height: 0; flex: 1; place-items: center; padding: 12px 12px calc(18px + var(--yc-bottom-safe)); }
.yc-chat-preview-body img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 370px) {
  .yc-chat-composer { grid-template-columns: 38px minmax(0, 1fr) 38px 48px; padding-right: 7px; padding-left: 7px; gap: 4px; }
  .yc-chat-tool { width: 38px; }
  .yc-chat-send { width: 48px; }
  .yc-chat-emoji-panel { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Empty and error states */
.yc-empty {
  display: grid;
  min-height: 280px;
  place-content: center;
  justify-items: center;
  gap: 9px;
  padding: 30px 22px;
  color: var(--yc-muted);
  text-align: center;
}
.yc-empty-visual {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 24px;
  color: var(--yc-blue);
  background: var(--yc-blue-soft);
}
.yc-empty strong { color: var(--yc-text); font-size: 15px; }
.yc-empty span { max-width: 280px; font-size: 11px; line-height: 1.6; }
.yc-error-panel { margin: 18px 12px; padding: 18px; border: 1px solid #f1c7cc; border-radius: 17px; color: #92323c; background: var(--yc-red-soft); }
.yc-error-panel strong { display: block; font-size: 14px; }
.yc-error-panel p { margin: 6px 0 13px; font-size: 11px; line-height: 1.6; }

/* Bottom sheet and modal */
.yc-sheet-layer {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  align-items: end;
  background: rgba(13, 18, 25, .46);
  animation: yc-fade-in .16s ease both;
}
@keyframes yc-fade-in { from { opacity: 0; } to { opacity: 1; } }
.yc-sheet {
  width: min(100%, 720px);
  max-height: min(88vh, 820px);
  max-height: min(88dvh, 820px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: var(--yc-shadow-deep);
  animation: yc-sheet-in .22s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes yc-sheet-in { from { transform: translateY(24px); opacity: .7; } to { transform: translateY(0); opacity: 1; } }
.yc-sheet-handle { width: 40px; height: 4px; margin: 9px auto 4px; border-radius: 99px; background: #d9dde4; }
.yc-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px 12px; border-bottom: 1px solid var(--yc-line); }
.yc-sheet-head h2 { margin: 0; font-size: 17px; }
.yc-sheet-head p { margin: 3px 0 0; color: var(--yc-muted); font-size: 10px; }
.yc-sheet-close { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #68717e; background: #f0f2f5; }
.yc-sheet-body { max-height: calc(88dvh - 73px); padding: 15px 15px calc(16px + var(--yc-bottom-safe)); overflow-y: auto; overscroll-behavior: contain; }
.yc-customize-sheet {
  position: relative;
  display: flex;
  height: min(94vh, 900px);
  height: min(94dvh, 900px);
  max-height: min(94vh, 900px);
  max-height: min(94dvh, 900px);
  flex-direction: column;
}
.yc-customize-sheet .yc-sheet-head { flex: 0 0 auto; }
.yc-customize-sheet .yc-sheet-body { display: flex; min-height: 0; max-height: none; flex: 1; padding: 0; overflow: hidden; }
.yc-customize-host { display: flex; width: 100%; min-height: 0; flex: 1; flex-direction: column; }
.yc-customize-scroll { min-height: 0; flex: 1; padding: 17px 16px 22px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.yc-customize-config .yc-config-head { margin-bottom: 2px; }
.yc-customize-design-section { margin-top: 22px; padding-top: 19px; border-top: 1px solid var(--yc-line); }
.yc-customize-section-head h3 { margin: 0; font-size: 18px; }
.yc-customize-section-head p { margin: 5px 0 0; color: var(--yc-muted); font-size: 11px; line-height: 1.6; }
.yc-customize-method-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.yc-customize-method-wrap { overflow: hidden; border: 1px solid var(--yc-line-strong); border-radius: 17px; background: #fff; }
.yc-customize-method-wrap.is-selected { border-color: var(--yc-dark); box-shadow: inset 0 0 0 1px var(--yc-dark); }
.yc-customize-method-wrap.has-uploads { min-height: 134px; }
.yc-customize-method { position: relative; display: block; width: 100%; min-height: 134px; padding: 13px; background: #fff; text-align: left; }
.yc-customize-method.is-selected { background: var(--yc-yellow-soft); }
.yc-customize-method .yc-method-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; color: var(--yc-blue); background: var(--yc-blue-soft); }
.yc-customize-method[data-method="manual"] .yc-method-icon { color: var(--yc-green); background: var(--yc-green-soft); }
.yc-customize-method-copy strong, .yc-customize-method-copy small, .yc-customize-method-copy em { display: block; }
.yc-customize-method-copy { display: block; margin-top: 10px; }
.yc-customize-method-copy strong { font-size: 14px; }
.yc-customize-method-copy small { margin-top: 3px; color: var(--yc-muted); font-size: 10px; line-height: 1.45; }
.yc-customize-method-copy em { margin-top: 5px; color: var(--yc-green); font-size: 9px; font-style: normal; }
.yc-customize-method > b { position: absolute; top: 21px; right: 13px; color: var(--yc-red); font-size: 14px; white-space: nowrap; }
.yc-customize-uploads { height: 100%; min-height: 134px; padding: 12px; background: #fff; }
.yc-customize-method-wrap.is-selected .yc-customize-uploads { background: var(--yc-yellow-soft); }
.yc-customize-upload-grid { display: grid; height: 110px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.yc-customize-upload-item { position: relative; width: 100%; min-width: 0; height: 110px; }
.yc-customize-upload-preview, .yc-customize-upload-add { position: relative; display: grid; width: 100%; height: 110px; place-items: center; overflow: hidden; border: 1px solid var(--yc-line-strong); border-radius: 11px; color: var(--yc-muted); background: #fff; }
.yc-customize-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.yc-customize-upload-preview > span { display: grid; place-items: center; color: var(--yc-blue); }
.yc-customize-upload-preview > span .yc-icon { width: 24px; height: 24px; }
.yc-customize-upload-preview small { position: absolute; right: 0; bottom: 0; left: 0; overflow: hidden; padding: 3px 4px; color: #fff; background: rgba(18,24,35,.66); font-size: 7px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.yc-customize-upload-remove { position: absolute; z-index: 2; top: -5px; right: -5px; display: flex; width: 20px; height: 20px; align-items: center; justify-content: center; padding: 0; border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--yc-dark); box-shadow: 0 2px 7px rgba(18,24,35,.2); font-size: 0; line-height: 0; }
.yc-customize-upload-remove .yc-icon { display: block; width: 11px; height: 11px; margin: 0; flex: 0 0 11px; }
.yc-customize-upload-add { border-style: dashed; color: #a4abb6; background: rgba(255,255,255,.64); }
.yc-customize-upload-add .yc-icon { width: 23px; height: 23px; stroke-width: 1.6; }
.yc-customize-file-input { position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.yc-customize-preview-layer { position: absolute; z-index: 8; inset: 0; display: grid; place-items: center; padding: 42px 15px 22px; background: rgba(10,14,22,.92); }
.yc-customize-preview-close { position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: #fff; background: rgba(255,255,255,.16); }
.yc-customize-preview-content { display: grid; width: 100%; height: 100%; place-items: center; overflow: hidden; border-radius: 14px; }
.yc-customize-preview-content img { max-width: 100%; max-height: 100%; object-fit: contain; }
.yc-customize-preview-content iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; background: #fff; }
.yc-customize-footer { display: grid; flex: 0 0 auto; grid-template-columns: minmax(88px, auto) minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px 12px calc(9px + var(--yc-bottom-safe)); border-top: 1px solid var(--yc-line); background: rgba(255,255,255,.98); box-shadow: 0 -8px 24px rgba(22,31,50,.07); }
.yc-customize-footer-price span, .yc-customize-footer-price strong { display: block; }
.yc-customize-footer-price span { color: var(--yc-muted); font-size: 9px; }
.yc-customize-footer-price strong { margin-top: 2px; color: var(--yc-red); font-size: 17px; white-space: nowrap; }
.yc-customize-primary { min-width: 0; padding-right: 10px; padding-left: 10px; font-size: 12px; }
.yc-method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.yc-method-card {
  min-height: 124px;
  padding: 13px;
  border: 1px solid var(--yc-line);
  border-radius: 16px;
  background: #fff;
  text-align: left;
}
.yc-method-card > .yc-method-icon { display: grid; width: 40px; height: 40px; margin-top: 0; place-items: center; border-radius: 13px; color: var(--yc-blue); background: var(--yc-blue-soft); }
.yc-method-card[data-method="manual"] .yc-method-icon,
.yc-method-card[data-sheet-method="manual"] .yc-method-icon { color: var(--yc-green); background: var(--yc-green-soft); }
.yc-method-card > strong { display: block; margin-top: 11px; font-size: 13px; }
.yc-method-card > span:not(.yc-method-icon) { display: block; margin-top: 4px; color: var(--yc-muted); font-size: 9px; line-height: 1.55; }

.yc-upload-zone {
  position: relative;
  display: grid;
  min-height: 160px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 22px;
  border: 1.5px dashed #bdc5d1;
  border-radius: 17px;
  color: var(--yc-muted);
  background: #fafbfc;
  text-align: center;
}
.yc-upload-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.yc-upload-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 16px; color: var(--yc-blue); background: var(--yc-blue-soft); }
.yc-upload-zone strong { color: var(--yc-text); font-size: 13px; }
.yc-upload-zone span { font-size: 9px; line-height: 1.5; }
.yc-file-list { display: grid; gap: 8px; margin-top: 11px; }
.yc-file-item { display: grid; min-height: 58px; padding: 8px; grid-template-columns: 44px minmax(0,1fr) 34px; align-items: center; gap: 9px; border: 1px solid var(--yc-line); border-radius: 13px; background: #fff; }
.yc-file-preview { display: grid; width: 44px; height: 44px; place-items: center; overflow: hidden; border-radius: 10px; color: var(--yc-blue); background: var(--yc-blue-soft); }
.yc-file-preview img { width: 100%; height: 100%; object-fit: cover; }
.yc-file-copy { min-width: 0; }
.yc-file-copy strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.yc-file-copy span { display: block; margin-top: 3px; color: var(--yc-muted); font-size: 8px; }
.yc-file-remove { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: var(--yc-red); background: var(--yc-red-soft); }

.yc-form-group { margin-bottom: 13px; }
.yc-form-label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; }
.yc-form-label em { color: var(--yc-red); font-style: normal; }
.yc-form-control { padding-right: 12px; }
.yc-textarea { min-height: 92px; padding-right: 12px; resize: vertical; }
.yc-form-help { margin-top: 5px; color: var(--yc-muted); font-size: 9px; line-height: 1.5; }
.yc-style-chips { display: flex; flex-wrap: wrap; gap: 7px; }

.yc-quote-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 11px 0; }
.yc-quote-line + .yc-quote-line { border-top: 1px solid var(--yc-line); }
.yc-quote-line span { color: var(--yc-text); font-size: 11px; }
.yc-quote-line span small { display: block; margin-top: 3px; color: var(--yc-muted); font-size: 8px; line-height: 1.45; }
.yc-quote-line strong { flex: 0 0 auto; font-size: 12px; }
.yc-quote-total { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; padding: 14px; border-radius: 14px; color: #fff; background: var(--yc-dark); }
.yc-quote-total span { font-size: 11px; }
.yc-quote-total strong { color: var(--yc-yellow); font-size: 22px; }

.yc-confirm-dialog {
  align-self: center;
  width: min(calc(100% - 30px), 390px);
  margin: auto;
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--yc-shadow-deep);
  text-align: center;
  animation: yc-dialog-in .18s ease both;
}
@keyframes yc-dialog-in { from { transform: scale(.95); opacity: .6; } to { transform: scale(1); opacity: 1; } }
.yc-confirm-icon { display: grid; width: 55px; height: 55px; margin: 0 auto; place-items: center; border-radius: 18px; color: var(--yc-green); background: var(--yc-green-soft); }
.yc-confirm-dialog h2 { margin: 14px 0 0; font-size: 18px; }
.yc-confirm-dialog p { margin: 7px 0 17px; color: var(--yc-muted); font-size: 11px; line-height: 1.65; }

/* Toast/network */
.yc-toast {
  position: fixed;
  z-index: 400;
  right: 14px;
  bottom: calc(84px + var(--yc-bottom-safe));
  left: 14px;
  width: min(calc(100% - 28px), 440px);
  margin: 0 auto;
  padding: 11px 14px;
  border-radius: 13px;
  color: #fff;
  background: rgba(21,25,34,.94);
  box-shadow: var(--yc-shadow-deep);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.yc-toast.is-visible { transform: translateY(0); opacity: 1; }
.yc-toast.is-error { background: rgba(177,42,55,.96); }
.yc-network {
  position: fixed;
  z-index: 390;
  top: calc(8px + var(--yc-top-safe));
  right: 12px;
  left: 12px;
  width: min(calc(100% - 24px), 460px);
  margin: 0 auto;
  padding: 8px 12px;
  border-radius: 11px;
  color: #fff;
  background: rgba(217,68,82,.94);
  box-shadow: var(--yc-shadow);
  font-size: 10px;
  text-align: center;
}

/* Desktop/tablet refinement */
@media (min-width: 700px) {
  .yc-shell { padding-bottom: calc(var(--yc-bottom-nav-height) + 24px); }
  .yc-main { border-right: 1px solid rgba(230,233,239,.85); border-left: 1px solid rgba(230,233,239,.85); background: var(--yc-bg); }
  .yc-home-hero { padding-right: 28px; padding-left: 28px; }
  .yc-home-content, .yc-list-page { padding-right: 24px; padding-left: 24px; }
  .yc-quick-panel { gap: 18px; padding-right: 24px; padding-left: 24px; }
  .yc-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .yc-detail-card { margin-right: 18px; margin-left: 18px; padding: 20px; }
  .yc-product-gallery { margin: 16px 18px 0; border-radius: 22px; }
  .yc-gallery-slide { aspect-ratio: 1.7 / 1; }
  .yc-method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yc-bottom-nav { border-right: 1px solid rgba(215,220,229,.9); border-left: 1px solid rgba(215,220,229,.9); border-radius: 20px 20px 0 0; }
}

@media (min-width: 960px) {
  body { padding: 18px 0 0; }
  .yc-main { overflow: hidden; border-radius: 26px 26px 0 0; box-shadow: 0 0 0 1px rgba(230,233,239,.8), 0 24px 60px rgba(24,39,75,.08); }
  .yc-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .yc-bottom-nav { bottom: 0; border-radius: 20px 20px 0 0; }
}

@media (hover: hover) and (pointer: fine) {
  .yc-product-card:active, .yc-method-card:active { transform: scale(.985); }
  .yc-delivery-tab:active { transform: scale(.98); }
  .yc-chat-emoji-panel button:active { background: #f0f2f5; transform: scale(.94); }
}

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