:root {
  --bg: #f3f8fb;
  --bg-2: #edf5fa;
  --surface: rgba(255, 255, 255, .76);
  --surface-strong: rgba(255, 255, 255, .94);
  --surface-soft: rgba(255, 255, 255, .56);
  --border: rgba(128, 151, 168, .22);
  --border-strong: rgba(106, 130, 148, .34);
  --text: #121821;
  --muted: #697785;
  --muted-2: #8a96a3;
  --green: #13b65b;
  --green-2: #079b4c;
  --blue: #2476ff;
  --orange: #ff7a1a;
  --red: #e5484d;
  --primary: var(--green);
  --primary-dark: var(--green-2);
  --secondary: var(--blue);
  --accent: var(--orange);
  --danger: var(--red);
  --primary-rgb: 19, 182, 91;
  --primary-dark-rgb: 7, 155, 76;
  --secondary-rgb: 36, 118, 255;
  --accent-rgb: 255, 122, 26;
  --danger-rgb: 229, 72, 77;
  --primary-soft: rgba(var(--primary-rgb), .10);
  --primary-softer: rgba(var(--primary-rgb), .08);
  --primary-border: rgba(var(--primary-rgb), .25);
  --secondary-soft: rgba(var(--secondary-rgb), .10);
  --accent-soft: rgba(var(--accent-rgb), .12);
  --danger-soft: rgba(var(--danger-rgb), .10);
  --shadow: 0 18px 50px rgba(41, 68, 89, .12);
  --shadow-soft: 0 8px 24px rgba(41, 68, 89, .10);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  --speed: 220ms;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(135deg, var(--bg), #fff 45%, var(--bg-2));
  letter-spacing: 0;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(var(--primary-rgb), .08), transparent 28%),
    linear-gradient(245deg, rgba(var(--secondary-rgb), .08), transparent 34%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
img { max-width: 100%; display: block; }
[data-lucide] {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
}
.lucide {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
  flex: 0 0 auto;
}
.btn .lucide, .icon-btn .lucide, .segmented .lucide, .section-head .lucide { width: 18px; height: 18px; }
.icon-btn .lucide { color: var(--green-2); }

.glass-panel {
  min-width: 0;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.16);
  -webkit-backdrop-filter: blur(22px) saturate(1.16);
  border-radius: var(--radius-lg);
}
.reveal { animation: reveal var(--speed) ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

.btn {
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 40px;
  max-width: 100%;
  min-width: 0;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface-strong);
  color: var(--text);
  transition: transform var(--speed), box-shadow var(--speed), background var(--speed), border-color var(--speed);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  border-right-color: transparent;
  position: absolute;
  animation: spin .75s linear infinite;
}
.btn-primary { background: linear-gradient(180deg, var(--green), var(--green-2)); color: #fff; border-color: rgba(var(--primary-dark-rgb), .3); }
.btn-blue { background: linear-gradient(180deg, var(--blue), var(--blue)); color: #fff; border-color: rgba(var(--secondary-rgb), .3); }
.btn-danger { background: linear-gradient(180deg, #f05252, var(--red)); color: #fff; border-color: rgba(var(--danger-rgb), .38); }
.btn-ghost { background: rgba(255,255,255,.6); }
.btn-link { border: 0; background: transparent; color: var(--blue); padding: 0; min-height: 0; }
.btn-danger-outline { color: var(--red); border-color: rgba(var(--danger-rgb), .32); background: rgba(255,255,255,.6); }
.btn-block { width: 100%; }
.icon-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.66);
  display: inline-grid;
  place-items: center;
  position: relative;
  transition: transform var(--speed), box-shadow var(--speed), background var(--speed);
}
.icon-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.field { display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.field span { color: var(--text); font-weight: 600; }
.image-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.image-input-row input[type="file"] { display: none; }
.image-input-row .btn { min-height: 42px; padding: 0 14px; white-space: nowrap; }
.image-preview {
  width: 104px;
  height: 76px;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: rgba(255,255,255,.64);
}
.image-preview.is-empty { display: none; }
.image-url-field[data-image-upload-state="pending"] [data-image-upload-status] { color: var(--primary); }
.image-url-field[data-image-upload-state="complete"] [data-image-upload-status] { color: var(--green-2); }
.image-url-field[data-image-upload-state="failed"] [data-image-upload-status] { color: var(--danger); }
input, select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(255,255,255,.76);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  transition: box-shadow var(--speed), border-color var(--speed), background var(--speed);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(var(--primary-rgb), .55);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .12);
  background: #fff;
}
.color-input-row { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: center; }
.color-input-row input[type="color"] {
  width: 58px;
  min-height: 42px;
  padding: 4px;
  border-radius: 10px;
  cursor: pointer;
}
.check-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.check-row input { width: 16px; min-height: 16px; }
.auth-agreement-row { align-items: flex-start; line-height: 1.55; }
.auth-agreement-row input { margin-top: 3px; flex: 0 0 16px; }
.muted, .hint { color: var(--muted); }
.success-line { color: var(--green); font-weight: 700; }

.status-shell, .auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  position: relative;
}
.status-card { width: min(520px, 100%); padding: 44px; text-align: center; }
.status-card h1 { margin: 18px 0 8px; font-size: 32px; }
.brand-mark-lg { width: 72px; height: 72px; margin: 0 auto; }
.auth-shell {
  width: min(1060px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(380px, 1.05fr) minmax(340px, 420px);
  gap: 28px;
  place-items: initial;
  align-items: center;
  align-content: center;
  justify-content: center;
}
.auth-visual, .auth-card { padding: 34px; }
.auth-visual { min-height: 520px; display: grid; align-content: start; }
.auth-card { width: 100%; min-height: 500px; display: grid; gap: 16px; align-content: center; justify-self: center; }
.auth-copy h1 { font-size: clamp(34px, 4vw, 52px); margin: 84px 0 12px; line-height: 1.08; }
.auth-copy p { max-width: 480px; color: var(--text); line-height: 1.8; font-weight: 650; }
.auth-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 52px; }
.auth-highlights span {
  min-height: 78px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.62);
  color: var(--text);
  display: grid;
  align-content: center;
  gap: 8px;
  font-weight: 700;
}
.auth-highlights .lucide { color: var(--green-2); width: 22px; height: 22px; }
.auth-login-tabs { justify-content: stretch; gap: 10px; margin-bottom: 2px; }
.auth-login-tabs button { flex: 1; justify-content: center; }
.auth-login-panel { display: grid; gap: 16px; }
.auth-login-panel[hidden] { display: none; }
.captcha-field { grid-template-columns: 1fr 142px; align-items: end; }
.captcha-field span { grid-column: 1 / -1; }
.captcha-field input[type="hidden"] { display: none; }
.captcha-image {
  height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.68);
  overflow: hidden;
  transition: transform var(--speed), box-shadow var(--speed), border-color var(--speed);
}
.captcha-image:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); border-color: rgba(var(--primary-rgb), .34); }
.captcha-image img { width: 140px; height: 54px; object-fit: cover; }
.sms-code-field { grid-template-columns: minmax(0, 1fr) 116px; align-items: end; }
.sms-code-field span { grid-column: 1 / -1; }
.sms-code-field .btn { min-height: 42px; padding: 0 12px; white-space: nowrap; }
.switch-line { text-align: center; color: var(--muted); }
.switch-line a, .check-row a { color: var(--blue); }
.auth-card .auth-agreement-row span,
.apply-form .check-row span {
  min-width: 0;
}
.auth-card .auth-agreement-row a,
.auth-card .switch-line a,
.apply-form .check-row a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 3px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(29, 78, 216, .14);
  background: #edf6ff;
  color: #1d4f7a;
  font-weight: 800;
  line-height: 1.25;
  vertical-align: middle;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}
.auth-card .switch-line a {
  background: #fff3e6;
  border-color: rgba(194, 82, 20, .18);
  color: #93400f;
}
.auth-real-name-notice {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(var(--secondary-rgb), .18);
  border-radius: 10px;
  background: rgba(var(--secondary-rgb), .06);
}
.auth-real-name-notice > .lucide { width: 21px; height: 21px; margin: 3px auto 0; color: var(--blue); }
.auth-real-name-notice > span { min-width: 0; display: grid; gap: 4px; }
.auth-real-name-notice strong { font-size: 13px; }
.auth-real-name-notice small { color: var(--muted); line-height: 1.55; }
.auth-real-name-notice a { width: max-content; max-width: 100%; color: var(--blue); font-size: 12px; font-weight: 750; }

.brand-lockup { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-lockup img { width: 44px; height: 44px; border-radius: 12px; }
.brand-lockup span { min-width: 0; }
.brand-lockup strong { display: block; font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-lockup small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  width: min(1430px, calc(100% - clamp(24px, 4vw, 48px)));
  height: 72px;
  margin: 12px auto 20px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}
.site-nav {
  min-width: 0;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(128,151,168,.20);
  border-radius: 18px;
  background: rgba(255,255,255,.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 10px 24px rgba(41,68,89,.08);
  overflow-x: auto;
  scrollbar-width: thin;
}
.site-nav a {
  min-width: 132px;
  height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  position: relative;
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  transition: background var(--speed), color var(--speed), transform var(--speed), box-shadow var(--speed);
}
.site-nav a:hover {
  background: rgba(255,255,255,.78);
  color: var(--green-2);
  transform: translateY(-1px);
}
.site-nav a .lucide { width: 19px; height: 19px; }
.site-nav a.site-nav-home:not(.active) {
  color: #2563eb;
  background: #eef6ff;
}
.site-nav a.site-nav-home:not(.active):hover {
  color: #1d4ed8;
  background: #dbeafe;
}
.site-nav a.active {
  color: #fff;
  background: linear-gradient(180deg, var(--green), var(--green-2));
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), .22);
}
.site-nav a.active::after {
  display: none;
}
.header-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mobile-access { position: relative; flex: 0 0 auto; }
.mobile-access-trigger {
  min-width: 112px;
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(128,151,168,.25);
  border-radius: 8px;
  color: #40505d;
  background: rgba(255,255,255,.72);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: color var(--speed), border-color var(--speed), background var(--speed), box-shadow var(--speed), transform var(--speed);
}
.mobile-access-trigger:hover,
.mobile-access:focus-within .mobile-access-trigger,
.mobile-access.is-open .mobile-access-trigger { color: var(--green-2); border-color: rgba(var(--primary-rgb),.35); background: #fff; box-shadow: 0 8px 20px rgba(41,68,89,.10); transform: translateY(-1px); }
.mobile-access-trigger .lucide { width: 18px; height: 18px; }
.mobile-access-popover {
  width: 246px;
  padding: 16px;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 45;
  display: grid;
  gap: 13px;
  border: 1px solid rgba(128,151,168,.25);
  border-radius: 8px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 20px 46px rgba(28,47,63,.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transform-origin: top right;
  transition: opacity var(--speed), visibility var(--speed), transform var(--speed);
}
.mobile-access-popover::before { content: ''; width: 11px; height: 11px; position: absolute; top: -6px; right: 46px; border-top: 1px solid rgba(128,151,168,.25); border-left: 1px solid rgba(128,151,168,.25); background: #fff; transform: rotate(45deg); }
.mobile-access:hover .mobile-access-popover,
.mobile-access:focus-within .mobile-access-popover,
.mobile-access.is-open .mobile-access-popover { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.mobile-access-heading { min-width: 0; display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 10px; align-items: center; }
.mobile-access-heading > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 7px; color: var(--green-2); background: var(--primary-soft); }
.mobile-access-heading .lucide { width: 18px; height: 18px; }
.mobile-access-heading strong { display: block; color: var(--text); font-size: 14px; }
.mobile-access-heading small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.mobile-access-qr { width: 180px; height: 180px; justify-self: center; padding: 8px; display: grid; place-items: center; overflow: hidden; border: 1px solid #e0e5e9; border-radius: 7px; background: #fff; }
.mobile-access-qr img { width: 100%; height: 100%; display: block; border-radius: 0; object-fit: contain; image-rendering: pixelated; }
.mobile-access-qr-generated { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 12px; text-align: center; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.user-chip img { width: 38px; height: 38px; border-radius: 50%; }
.web-main { width: min(1430px, calc(100% - clamp(24px, 4vw, 48px))); margin: 0 auto; position: relative; min-width: 0; }
.home-top-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) 280px 320px; gap: 20px; align-items: stretch; }
.home-top-grid > * { min-width: 0; }
.promo-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: stretch; margin-top: 18px; }
.promo-main { min-width: 0; display: grid; grid-template-rows: auto minmax(84px, 1fr); gap: 14px; }
.search-card, .notice-card, .quick-card, .banner-card { min-height: 200px; padding: 22px; }
.search-card { min-width: 0; display: grid; align-content: center; overflow: hidden; container-type: inline-size; }
.segmented { display: flex; justify-content: center; gap: 44px; margin-bottom: 18px; }
.segmented button, .tabs a, .tabs button, .status-tabs button {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.segmented button.active, .tabs a.active, .tabs button.active, .status-tabs button.active {
  color: var(--green-2);
  background: var(--primary-soft);
}
.search-box { width: 100%; min-width: 0; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) clamp(84px, 8vw, 116px); gap: clamp(4px, .7vw, 10px); padding: 8px; background: rgba(255,255,255,.72); border: 1px solid rgba(var(--primary-rgb), .22); border-radius: 999px; }
.search-box input { width: 100%; min-width: 0; box-sizing: border-box; border: 0; background: transparent; padding-left: clamp(8px, 1.2vw, 18px); font-size: clamp(11px, 2.2cqw, 16px); text-overflow: ellipsis; white-space: nowrap; }
.search-box .btn { width: 100%; min-width: 0; padding-right: clamp(8px, 1vw, 14px); padding-left: clamp(8px, 1vw, 14px); font-size: clamp(12px, 2.2cqw, 15px); white-space: nowrap; }
.hot-tags { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hot-tags > span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 14px; font-weight: 700; }
.hot-tags > span .lucide { color: var(--orange); }
.hot-tags button,.hot-tags a { border: 0; background: rgba(255,255,255,.68); padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.hot-tags a:hover { color: var(--primary); background: rgba(var(--primary-rgb),.09); }
.hot-tags.is-single-line{width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden;flex-wrap:nowrap;gap:clamp(1px,.5cqw,8px)}
.hot-tags.is-single-line>span{min-width:0;flex:0 1 auto;white-space:nowrap;font-size:clamp(9px,2cqw,14px)}
.hot-tags.is-single-line>a{min-width:0;flex:1 1 0;padding-right:clamp(1px,.6cqw,10px);padding-left:clamp(1px,.6cqw,10px);overflow:hidden;white-space:nowrap;text-align:center;font-size:clamp(7px,2cqw,14px);line-height:1.2}
.banner-card { height: clamp(240px, 22vw, 300px); min-height: 0; padding: 0; overflow: hidden; position: relative; }
.banner-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .42s ease; }
.banner-slide.active { opacity: 1; pointer-events: auto; }
.banner-card img { width: 100%; height: 100%; object-fit: contain; background: var(--accent-soft); }

/* Images load independently from the page. This state never captures pointer events. */
.image-loading-enabled img.app-image-loading {
  color: transparent;
  background-color: #f3f5f6;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='52' viewBox='0 0 120 52'%3E%3Cg fill='none' stroke='%2390a0ad' stroke-width='3'%3E%3Ccircle cx='60' cy='17' r='10' opacity='.25'/%3E%3Cpath d='M60 7a10 10 0 0 1 10 10'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 60 17' to='360 60 17' dur='.8s' repeatCount='indefinite'/%3E%3C/path%3E%3C/g%3E%3Ctext x='60' y='45' text-anchor='middle' font-family='sans-serif' font-size='13' fill='%2374818c'%3E%E5%8A%A0%E8%BD%BD%E4%B8%AD%3C/text%3E%3C/svg%3E"),
    linear-gradient(100deg, transparent 35%, rgba(255,255,255,.72) 50%, transparent 65%);
  background-repeat: no-repeat, no-repeat;
  background-position: center, 180% 0;
  background-size: 120px 52px, 55% 100%;
  animation: app-image-shimmer 1.35s linear infinite;
  pointer-events: auto;
}
.image-loading-enabled img.app-image-loaded { animation: app-image-reveal .18s ease-out; }
.image-loading-enabled img.app-image-error { background: #f3f5f6; }
@keyframes app-image-shimmer { to { background-position: center, -80% 0; } }
@keyframes app-image-reveal { from { opacity: .72; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .image-loading-enabled img.app-image-loading,
  .image-loading-enabled img.app-image-loaded { animation: none; }
}
.banner-nav { width: 42px; height: 42px; padding: 0; position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.86); border-radius: 50%; color: #26323d; background: rgba(255,255,255,.9); box-shadow: 0 8px 24px rgba(31,42,54,.14); transform: translateY(-50%); transition: color var(--speed), background var(--speed), transform var(--speed), box-shadow var(--speed); }
.banner-nav:hover { color: #0654cc; background: #fff; box-shadow: 0 10px 28px rgba(31,42,54,.2); transform: translateY(-50%) scale(1.05); }
.banner-nav:active { transform: translateY(-50%) scale(.96); }
.banner-nav .lucide { width: 22px; height: 22px; stroke-width: 2.4; }
.banner-prev { left: 14px; }
.banner-next { right: 14px; }
.banner-dots { position: absolute; bottom: 16px; left: 50%; z-index: 3; transform: translateX(-50%); display: flex; gap: 8px; }
.banner-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.72); }
.banner-dots button.active { width: 22px; border-radius: 999px; background: #fff; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 14px; flex-wrap: wrap; min-width: 0; }
.secret-input-row { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 8px; align-items: center; }
.secret-input-row .secret-visibility-toggle { width: 42px; height: 42px; padding: 0; }
.object-storage-sync { display: grid; gap: 14px; padding: 16px; border: 1px solid rgba(36,118,255,.2); border-radius: 14px; background: linear-gradient(145deg, rgba(239,246,255,.9), rgba(255,255,255,.78)); }
.object-storage-sync > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.object-storage-sync > header h2 { margin: 0; font-size: 17px; }
.object-storage-sync > header p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.object-sync-state { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.76); }
.object-sync-state > div { min-width: 0; display: grid; gap: 4px; }
.object-sync-state strong { color: var(--text); }
.object-sync-state small { color: var(--muted); line-height: 1.5; }
.object-sync-spinner { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--secondary); background: rgba(36,118,255,.1); }
.object-storage-sync.is-syncing .object-sync-spinner { animation: object-sync-spin .9s linear infinite; }
.object-storage-sync.is-success .object-sync-spinner { color: var(--green-2); background: rgba(19,182,91,.12); }
.object-storage-sync.has-failures .object-sync-spinner { color: var(--danger); background: rgba(229,72,77,.11); }
.object-sync-progress { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(128,151,168,.18); }
.object-sync-progress > span { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--secondary), #60a5fa, var(--secondary)); background-size: 200% 100%; transition: width .25s ease; }
.object-storage-sync.is-syncing .object-sync-progress > span { animation: object-sync-shimmer 1.1s linear infinite; }
.object-storage-sync.is-success .object-sync-progress > span { background: var(--green-2); }
.object-storage-sync.has-failures .object-sync-progress > span { background: var(--danger); }
.object-sync-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.object-sync-metrics > span { padding: 11px 12px; display: grid; gap: 3px; border-radius: 11px; background: rgba(255,255,255,.76); }
.object-sync-metrics small { color: var(--muted); font-size: 12px; }
.object-sync-metrics strong { font-size: 20px; }
.object-sync-failures { max-height: 260px; overflow: auto; padding: 12px; border: 1px solid rgba(229,72,77,.18); border-radius: 11px; background: rgba(255,247,247,.9); }
.object-sync-failures > strong { display: block; margin-bottom: 8px; color: var(--danger); }
.object-sync-failures p { margin: 0; padding: 7px 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,.7fr); gap: 10px; border-top: 1px solid rgba(229,72,77,.1); }
.object-sync-failures p span, .object-sync-failures p small { overflow-wrap: anywhere; }
.object-sync-failures p small { color: var(--danger); }
@keyframes object-sync-spin { to { transform: rotate(360deg); } }
@keyframes object-sync-shimmer { to { background-position: -200% 0; } }
@media (max-width: 680px) {
  .object-storage-sync > header { align-items: stretch; flex-direction: column; }
  .object-sync-metrics { grid-template-columns: 1fr; }
  .object-sync-failures p { grid-template-columns: 1fr; }
}
.section-head > div { min-width: 0; }
.section-head .btn { flex: 0 1 auto; }
.section-head h1, .section-head h2, .section-head h3 {
  margin: 0;
  white-space: nowrap;
  overflow-wrap: normal;
  line-height: 1.18;
}
.section-head h1 { font-size: clamp(20px, 2.2vw, 30px); }
.section-head h2 { font-size: clamp(18px, 1.9vw, 26px); }
.section-head h3 { font-size: clamp(16px, 1.55vw, 20px); }
.section-head h3 { display: inline-flex; align-items: center; gap: 8px; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.home-action-pill {
  min-height: 38px;
  min-width: 58px;
  padding: 0 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
  transition: background var(--speed), border-color var(--speed), color var(--speed), box-shadow var(--speed), transform var(--speed);
}
.home-action-pill:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
  box-shadow: 0 8px 18px rgba(37,99,235,.10);
  transform: translateY(-1px);
}
.home-action-pill-green {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #059669;
}
.home-action-pill-green:hover {
  background: #d1fae5;
  border-color: #86efac;
  color: #047857;
  box-shadow: 0 8px 18px rgba(5,150,105,.10);
}
.notice-line { width: 100%; border: 0; background: transparent; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 8px; color: var(--text); border-radius: 10px; text-align: left; cursor: pointer; transition: background var(--speed), transform var(--speed); }
.notice-line span { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.notice-line strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(12px, .92vw, 14px); font-weight: 650; }
.notice-line time { color: var(--muted-2); }
.notice-line:hover { background: rgba(255,255,255,.56); transform: translateX(2px); }
.notice-dialog-list { display: grid; gap: 8px; }
.notice-dialog-list button {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
  color: #172033;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-align: left;
  transition: background var(--speed), border-color var(--speed), transform var(--speed), box-shadow var(--speed);
}
.notice-dialog-list button:hover {
  background: #eef6ff;
  border-color: #bfdbfe;
  box-shadow: 0 8px 18px rgba(37,99,235,.08);
  transform: translateY(-1px);
}
.notice-dialog-list span { width: 7px; height: 7px; border-radius: 50%; background: #ff7a1a; }
.notice-dialog-list strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 750; }
.notice-dialog-list time { color: #64748b; white-space: nowrap; }
.quick-card { display: grid; align-content: start; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quick-grid a {
  min-height: 72px;
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 10px 6px;
  border-radius: 14px;
  background: rgba(255,255,255,.58);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  transition: transform var(--speed), background var(--speed), box-shadow var(--speed);
}
.quick-grid a:hover { transform: translateY(-2px); background: rgba(255,255,255,.88); box-shadow: var(--shadow-soft); }
.quick-grid .lucide { width: 24px; height: 24px; color: var(--green-2); }
.promo-side { display: grid; gap: 14px; align-content: stretch; }
.process-card, .rider-card, .service-mini, .hot-info-card { padding: 20px; }
.process-cta {
  min-height: 38px;
  padding: 0 clamp(14px, 1.3vw, 20px);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef6ff;
  color: #2563eb;
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
  transition: transform var(--speed), box-shadow var(--speed), background var(--speed), border-color var(--speed), color var(--speed);
}
.process-cta:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
  box-shadow: 0 10px 22px rgba(37,99,235,.12);
  transform: translateY(-1px);
}
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.process-steps span { display: grid; place-items: center; gap: 8px; text-align: center; color: var(--muted); font-size: 12px; position: relative; }
.process-steps span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  right: -12px;
  width: 14px;
  height: 1px;
  background: var(--border-strong);
}
.process-steps .lucide { width: 40px; height: 40px; padding: 10px; border-radius: 14px; background: var(--primary-soft); color: var(--green-2); }
.rider-card {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), .16), rgba(255,255,255,.72));
}
.rider-card h3 { margin: 0 0 6px; }
.rider-card p { margin: 0 0 12px; color: var(--muted); }
.rider-card > .lucide { width: 86px; height: 86px; color: var(--green-2); opacity: .82; }
.service-mini { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; }
.service-mini > .lucide { width: 42px; height: 42px; padding: 9px; border-radius: 50%; color: var(--green-2); background: var(--primary-soft); }
.service-mini small { display: block; color: var(--muted); margin-top: 4px; }
.category-strip { min-width: 0; min-height: 84px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-evenly; gap: 8px 4px; margin: 0; padding: 10px 12px; }
.category-strip a { min-width: 60px; min-height: 62px; flex: 0 1 88px; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--text); font-size: 12px; font-weight: 650; text-align: center; border-radius: 8px; transition: transform var(--speed), background var(--speed); }
.category-strip a:hover { transform: translateY(-2px); background: rgba(255,255,255,.55); }
.category-strip img { width: 42px; height: 42px; object-fit: contain; border-radius: 0; background: transparent; }
.grid-icon { width: 34px; height: 34px; border-radius: 8px; background: rgba(var(--primary-rgb), .12); }
.grid-icon { display: grid; place-items: center; color: var(--green-2); }
.grid-icon .lucide { width: 17px; height: 17px; }
.web-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 22vw, 330px);
  grid-template-rows: auto auto;
  gap: 24px 20px;
  align-items: stretch;
  margin-top: 18px;
}
.content-span, .side-stack { display: contents; }
.recommend-panel { grid-column: 1; grid-row: 1; min-height: 0; padding: 22px; }
.merchant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; container: home-merchants / inline-size; }
[data-home-recommend-grid] > .merchant-card:nth-child(n + 7) { display: none; }
@media (min-width: 1181px) {
  @container home-merchants (min-width: 642px) and (max-width: 805px) {
    [data-home-recommend-grid] > .merchant-card:nth-child(-n + 8) { display: block; }
  }
  @container home-merchants (min-width: 806px) and (max-width: 969px) {
    [data-home-recommend-grid] > .merchant-card:nth-child(-n + 10) { display: block; }
  }
}
.merchant-card { padding: 0 0 12px; overflow: hidden; background: rgba(255,255,255,.62); border: 1px solid rgba(128,151,168,.18); border-radius: 16px; }
.merchant-card img { width: 100%; aspect-ratio: 1.6; display: block; padding: 0; object-fit: cover; background: #f3f5f6; transition: transform 320ms ease; }
.merchant-card:hover img { transform: scale(1.035); }
.merchant-card strong, .merchant-card p, .merchant-card-fees { margin-left: 12px; margin-right: 12px; }
.merchant-card strong { display: block; margin-top: 10px; }
.merchant-card p { margin-top: 6px; margin-bottom: 0; color: var(--muted); font-size: 13px; }
.merchant-card-fees {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  margin-left: 8px;
  margin-right: 8px;
  margin-top: 9px;
  flex-wrap: nowrap;
}
.merchant-card-fees span {
  min-width: 0;
  max-width: calc((100% - 3px) / 2);
  flex: 0 1 auto;
  min-height: 22px;
  padding: 0 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: clamp(7.5px, .52vw, 9px);
  font-weight: 500;
  line-height: 1.05;
  box-sizing: border-box;
}
.merchant-card-fees span:first-child {
  color: #2563eb;
  background: #eef6ff;
  border: 1px solid #dbeafe;
}
.merchant-card-fees span:last-child {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
}
.merchant-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 12px 0; }
.merchant-card-tags span { padding: 4px 7px; border-radius: 999px; color: var(--green-2); background: var(--primary-soft); font-size: 12px; font-weight: 800; }
.star { color: var(--orange); }
.classified-panel, .guarantee-card, .skeleton-card, .table-panel { padding: 22px; }
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.home-classified-group { display: none; }
.home-classified-group.active { display: block; }
.classified-more-row { display: flex; justify-content: flex-end; margin-top: 12px; }
.info-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.info-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; min-width: 0; padding: 8px; border-radius: 14px; transition: background var(--speed), transform var(--speed); }
.info-row:hover { background: rgba(255,255,255,.62); transform: translateY(-1px); }
.info-row img { width: 92px; height: 74px; border-radius: 12px; object-fit: cover; }
.info-row strong { display: block; line-height: 1.35; }
.info-row small { color: var(--muted); display: block; margin-top: 6px; }
.info-row em, .info-card em { color: var(--red); font-style: normal; font-weight: 800; }
.web-grid .classified-panel { grid-column: 1; grid-row: 2; min-height: 0; }
.side-stack { display: contents; }
.guarantee-card {
  grid-column: 2;
  grid-row: 1;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto repeat(3, minmax(0, 1fr)) auto;
  gap: 8px;
  overflow: hidden;
}
.guarantee-card.is-expanded {
  grid-template-rows: auto repeat(3, minmax(58px, .82fr)) auto minmax(92px, 1fr);
}
.guarantee-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.guarantee-title-row > span { min-width: 0; }
.guarantee-title-row h3 {
  margin: 0;
  font-size: clamp(19px, 1.55vw, 24px);
  line-height: 1.12;
  white-space: nowrap;
}
.guarantee-title-row small,
.guarantee-item small,
.guarantee-metrics small {
  display: block;
  color: var(--muted);
}
.guarantee-title-row small {
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(11px, .9vw, 12px);
  font-weight: 650;
}
.guarantee-title-row em {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #047857;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}
.guarantee-item {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 60px;
  padding: 8px 10px 8px 12px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(248,250,252,.72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}
.guarantee-item::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: #2563eb;
}
.guarantee-item > .lucide {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 13px;
  color: #2563eb;
  background: #eff6ff;
}
.guarantee-item > span {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 5px;
}
.guarantee-item strong {
  display: inline-block;
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.18;
  white-space: nowrap;
}
.guarantee-item small {
  order: 3;
  flex: 0 0 100%;
  min-width: 0;
  margin-top: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(11px, .9vw, 12px);
  line-height: 1.25;
}
.guarantee-item b {
  order: 2;
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin: 0;
  padding: 0 6px;
  border-radius: 999px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  font-size: clamp(10px, .78vw, 11px);
  line-height: 1;
  white-space: nowrap;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.guarantee-item.is-green::before { background: #059669; }
.guarantee-item.is-green > .lucide { color: #059669; background: #ecfdf5; }
.guarantee-item.is-green b { color: #047857; border-color: #bbf7d0; background: #f0fdf4; }
.guarantee-item.is-orange::before { background: #ea580c; }
.guarantee-item.is-orange > .lucide { color: #ea580c; background: #fff7ed; }
.guarantee-item.is-orange b { color: #c2410c; border-color: #fed7aa; background: #fff7ed; }
.guarantee-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 7px 8px;
  border-radius: 14px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(148, 163, 184, .16);
}
.guarantee-metrics span {
  min-width: 0;
  display: inline-flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.guarantee-metrics strong {
  color: var(--text);
  font-size: clamp(12px, .95vw, 15px);
  line-height: 1.1;
  white-space: nowrap;
}
.guarantee-metrics small {
  font-size: clamp(9px, .75vw, 10px);
  white-space: nowrap;
}
.guarantee-extra {
  display: none;
  min-height: 0;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .18);
  background: linear-gradient(180deg, rgba(255,255,255,.74), rgba(239,246,255,.54));
}
.guarantee-card.is-expanded .guarantee-extra {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
}
.guarantee-extra-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.guarantee-extra-head strong {
  flex: 0 0 auto;
  color: var(--text);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.1;
  white-space: nowrap;
}
.guarantee-extra-head small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: clamp(10px, .78vw, 11px);
  white-space: nowrap;
}
.guarantee-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-height: 0;
}
.guarantee-extra-grid span {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(148, 163, 184, .16);
}
.guarantee-extra-grid b,
.guarantee-extra-grid small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.guarantee-extra-grid b {
  color: var(--text);
  font-size: clamp(11px, .86vw, 12px);
  line-height: 1.05;
}
.guarantee-extra-grid small {
  color: var(--muted);
  font-size: clamp(9px, .72vw, 10px);
}
.hot-info-card {
  grid-column: 2;
  grid-row: 2;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto;
  grid-auto-rows: minmax(58px, 1fr);
  gap: 10px;
}
.hot-info-card .section-head { margin-bottom: 0; }
.hot-info-row { min-height: 0; display: grid; grid-template-columns: clamp(42px, 4vw, 64px) minmax(0, 1fr); gap: 10px; align-items: center; padding: clamp(6px, .65vw, 8px); border-radius: 14px; transition: background var(--speed), transform var(--speed); }
.hot-info-row:hover { background: rgba(255,255,255,.66); transform: translateX(2px); }
.hot-info-row img { width: clamp(42px, 4vw, 64px); height: clamp(36px, 3.1vw, 48px); border-radius: 10px; object-fit: cover; }
.hot-info-row span { min-width: 0; }
.hot-info-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(12px, .95vw, 13px); line-height: 1.35; }
.hot-info-row small { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: clamp(11px, .85vw, 12px); }
.skeleton-card { display: grid; gap: 12px; }
.skeleton-card span { height: 54px; border-radius: 12px; background: linear-gradient(90deg, rgba(226,234,239,.72), rgba(247,250,252,.95), rgba(226,234,239,.72)); background-size: 220% 100%; animation: shimmer 1.5s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }
.page-title { margin-bottom: 18px; padding: 26px; display: flex; align-items: center; justify-content: space-between; }
.page-title h1 { margin: 0 0 6px; white-space: nowrap; overflow-wrap: normal; font-size: clamp(24px, 3vw, 42px); line-height: 1.12; }
.page-title p { margin: 0; color: var(--muted); }
.filter-bar { margin-bottom: 18px; padding: 16px; display: grid; grid-template-columns: 1fr 220px 180px auto; gap: 12px; }
.merchant-list { display: grid; gap: 14px; }
.merchant-directory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.store-square-card { position: relative; min-height: 310px; padding-bottom: 14px; display: grid; align-content: start; }
.store-square-card img { aspect-ratio: 1.08; border-bottom: 1px solid rgba(255,255,255,.58); }
.store-square-card .status-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(105,119,133,.86);
  font-size: 12px;
  font-weight: 800;
}
.store-square-card .status-pill.green { background: rgba(var(--primary-dark-rgb), .92); }
.stores-title {
  margin-bottom: 16px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.stores-title h1 { margin: 0 0 8px; font-size: 34px; }
.stores-title p { margin: 0; color: var(--muted); }
.stores-title-stats { display: flex; gap: 12px; }
.stores-title-stats span {
  min-width: 96px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.58);
  display: grid;
  gap: 3px;
  text-align: center;
}
.stores-title-stats strong { font-size: 24px; color: var(--green-2); }
.stores-title-stats small { color: var(--muted); }
.store-category-rail {
  padding: 14px;
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.store-category-rail .category-nav-pill,
.category-nav-rail .category-nav-pill {
  min-height: 52px;
  padding: 7px 16px 7px 8px;
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.78));
  box-shadow: 0 5px 12px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.9);
  white-space: nowrap;
  font-weight: 800;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.store-category-rail .category-nav-pill:hover,
.category-nav-rail .category-nav-pill:hover { color: var(--green-2); border-color: rgba(var(--primary-rgb),.28); transform: translateY(-2px); box-shadow: 0 9px 18px rgba(15,23,42,.1), inset 0 1px 0 #fff; }
.store-category-rail .category-nav-pill:active,
.category-nav-rail .category-nav-pill:active { transform: translateY(0) scale(.98); box-shadow: 0 3px 8px rgba(15,23,42,.08); }
.store-category-rail .category-nav-pill.active,
.category-nav-rail .category-nav-pill.active { color: #fff; border-color: transparent; background: linear-gradient(145deg, var(--green), var(--green-2)); box-shadow: 0 9px 18px rgba(var(--primary-rgb),.25), inset 0 1px 0 rgba(255,255,255,.32); }
.category-nav-icon { position: relative; width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; overflow: hidden; border-radius: 11px; color: var(--green-2); background: rgba(var(--primary-rgb),.1); box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb),.08); }
.category-nav-icon img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 4px; object-fit: contain; background: #fff; }
.category-nav-icon .lucide { width: 19px; height: 19px; }
.category-nav-pill.active .category-nav-icon { color: #fff; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.category-nav-pill.active .category-nav-icon img { background: rgba(255,255,255,.94); }
.store-category-rail .category-nav-icon-image,
.store-category-rail .category-nav-pill.active .category-nav-icon-image { overflow: visible; border-radius: 0; background: transparent; box-shadow: none; }
.store-category-rail .category-nav-icon-image img,
.store-category-rail .category-nav-pill.active .category-nav-icon-image img { position: static; padding: 0; background: transparent; }
.store-filter-bar { grid-template-columns: minmax(260px, 1fr) 210px 170px auto; }
.merchant-directory-list { display: grid; gap: 14px; }
.store-list-card {
  min-height: 160px;
  padding: 14px 16px 14px 14px;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  overflow: hidden;
}
.store-list-cover { position: relative; align-self: stretch; min-height: 132px; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.54); }
.store-list-cover img { width: 100%; height: 100%; display: block; padding: 0; object-fit: cover; background: #f3f5f6; transition: transform 320ms ease; }
.store-list-card:hover .store-list-cover img { transform: scale(1.035); }
.store-list-cover .status-pill {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(105,119,133,.88);
  font-size: 12px;
  font-weight: 800;
}
.store-list-cover .status-pill.green { background: rgba(var(--primary-dark-rgb), .92); }
.store-list-body { min-width: 0; display: grid; gap: 10px; }
.store-list-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.store-list-title strong { min-width: 0; font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-list-title span { display: inline-flex; align-items: center; gap: 4px; color: var(--orange); font-weight: 800; }
.store-list-title .lucide { width: 16px; height: 16px; fill: currentColor; }
.store-list-body p { margin: 0; color: var(--text); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.store-list-meta, .store-list-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.store-list-meta span {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  background: rgba(255,255,255,.56);
  font-size: 13px;
  font-weight: 650;
}
.store-list-tags span { color: var(--green-2); background: var(--primary-soft); border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 700; }
.store-enter {
  min-width: 112px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--green-2);
  background: var(--primary-soft);
  font-weight: 800;
}
.store-enter .lucide { width: 16px; height: 16px; }
.list-card { padding: 14px; display: grid; grid-template-columns: 140px 1fr auto; gap: 16px; align-items: center; }
.list-card img { width: 140px; height: 96px; object-fit: cover; border-radius: 14px; }
.list-card small { display: block; color: var(--muted); margin-top: 6px; }
.list-card em { font-style: normal; color: var(--green-2); font-weight: 800; }
.is-disabled { filter: grayscale(.6); opacity: .72; }
.store-hero { padding: 18px; display: grid; grid-template-columns: 310px 1fr; gap: 24px; align-items: center; margin-bottom: 20px; }
.store-hero img { width: 100%; height: 190px; object-fit: cover; border-radius: 18px; }
.store-hero .status-pill { display: inline-flex; margin-bottom: 10px; padding: 5px 10px; border-radius: 999px; color: #fff; background: rgba(105,119,133,.86); font-size: 12px; font-weight: 800; }
.store-hero .status-pill.green { background: rgba(var(--primary-dark-rgb), .92); }
.store-meta, .store-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; color: var(--muted); }
.store-meta span, .store-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  font-weight: 650;
}
.store-meta .lucide { width: 16px; height: 16px; color: var(--green-2); }
.store-badges span { color: var(--text); background: var(--primary-softer); }
.store-layout { display: grid; grid-template-columns: 180px 1fr 300px; gap: 18px; align-items: start; }
.store-cats { padding: 14px; position: sticky; top: 104px; display: grid; gap: 8px; }
.store-cats a { padding: 12px; border-radius: 12px; color: var(--muted); transition: background var(--speed), color var(--speed), transform var(--speed); }
.store-cats a:hover { background: var(--primary-soft); color: var(--green-2); transform: translateX(2px); }
.product-list { display: grid; gap: 14px; }
.product-list h2 { margin: 8px 0 0; }
.product-card { padding: 14px; display: grid; grid-template-columns: 100px 1fr auto; gap: 14px; align-items: center; }
.product-card img { width: 100px; height: 86px; border-radius: 14px; object-fit: cover; }
.product-card small { display: block; color: var(--muted); margin-top: 6px; }
.product-card em { display: block; color: var(--red); font-style: normal; font-weight: 800; margin-top: 8px; }
.cart-panel { position: sticky; top: 104px; padding: 18px; }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item small { display: block; color: var(--muted); margin-top: 3px; }
.cart-product {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.cart-product > span { min-width: 0; overflow-wrap: anywhere; }
.cart-thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255,255,255,.68);
  border: 1px solid var(--border);
}
.cart-remove {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(var(--danger-rgb), .24);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--red);
  background: rgba(255,255,255,.62);
  transition: transform var(--speed), background var(--speed);
}
.cart-remove:hover { transform: translateY(-1px); background: var(--danger-soft); }
.cart-remove .lucide { width: 16px; height: 16px; }
.store-extra-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 18px; margin-top: 20px; align-items: start; }
.merchant-info-panel, .review-panel { padding: 22px; }
.merchant-notice { padding: 14px; border-radius: 16px; background: var(--primary-softer); margin-bottom: 14px; }
.merchant-notice p { margin: 8px 0 0; color: var(--text); line-height: 1.7; }
.info-kv { display: grid; gap: 10px; }
.info-kv p, .detail-kv p { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: start; margin: 0; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.56); }
.info-kv span, .detail-kv strong { color: var(--muted); font-weight: 650; }
.info-kv strong, .detail-kv span { color: var(--text); font-weight: 650; overflow-wrap: anywhere; }
.store-tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.store-tag-row span { padding: 6px 10px; border-radius: 999px; color: var(--green-2); background: var(--primary-soft); font-weight: 700; font-size: 13px; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.qualification-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.qualification-grid figure { margin: 0; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.62); border: 1px solid var(--border); }
.qualification-grid img { width: 100%; max-height: 50vh; object-fit: contain; border-radius: 12px; background: #fff; }
.qualification-grid figcaption { margin-top: 10px; color: var(--text); font-weight: 800; text-align: center; }
.review-list { display: grid; gap: 12px; }
.review-item { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.58); }
.review-item img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.review-item small { display: block; margin-top: 4px; color: var(--orange); }
.review-item p { margin: 8px 0 0; color: var(--text); line-height: 1.65; }
.review-form { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; margin-top: 16px; align-items: start; }
.review-form textarea { min-height: 44px; height: 44px; resize: vertical; }
.apply-layout { display: grid; grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr); gap: 20px; align-items: start; }
.apply-hero {
  min-height: 560px;
  padding: 34px;
  display: grid;
  align-content: center;
  gap: 18px;
  overflow: hidden;
  position: sticky;
  top: 104px;
}
.apply-hero > .lucide { width: 78px; height: 78px; color: var(--green-2); padding: 16px; border-radius: 24px; background: var(--primary-soft); }
.apply-hero h1 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; }
.apply-hero p { margin: 0; color: var(--text); line-height: 1.8; font-weight: 650; max-width: 520px; }
.apply-hero .process-steps { margin-top: 18px; }
.apply-hero.rider-apply { background: linear-gradient(135deg, rgba(var(--primary-rgb), .16), rgba(255,255,255,.76)); }
.apply-form { display: grid; gap: 16px; }
.apply-form h2 { margin: 0 0 4px; }
.apply-form .check-row { align-items: flex-start; line-height: 1.55; }
.apply-form .check-row input { margin-top: 3px; flex: 0 0 16px; }
.empty-state { color: var(--muted); background: rgba(255,255,255,.48); border: 1px dashed var(--border-strong); border-radius: 14px; padding: 18px; text-align: center; }
.checkout-layout, .detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.form-card, .pay-card, .detail-card, .contact-card, .agreement-card, .user-page { padding: 26px; }
.wide-form { width: min(820px, 100%); margin: 0 auto; display: grid; gap: 16px; }
.order-summary, .contact-card { padding: 22px; position: sticky; top: 104px; }
.pay-card { width: min(720px, 100%); margin: 0 auto; display: grid; gap: 16px; }
.checkout-shell { grid-template-columns: minmax(0, 1fr) 370px; }
.checkout-card { padding: 26px; display: grid; gap: 18px; background: rgba(255,255,255,.88); }
.checkout-page-head, .pay-page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.checkout-page-head h1, .pay-page-head h1 { margin: 0; font-size: clamp(30px, 3vw, 42px); letter-spacing: 0; }
.checkout-page-head p, .pay-page-head p { margin: 8px 0 0; display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; }
.checkout-page-head .lucide, .pay-page-head .lucide { color: var(--green-2); width: 16px; height: 16px; }
.checkout-block { display: grid; gap: 16px; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,.72); }
.checkout-block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkout-block-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 20px; }
.checkout-block-head h2 .lucide { color: var(--green-2); }
.checkout-block-head > span, .checkout-hint { color: var(--muted); font-size: 13px; font-weight: 700; }
.checkout-address-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(var(--primary-rgb), .28);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), .08), rgba(255,255,255,.82));
}
.checkout-address-card strong { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 17px; }
.checkout-address-card strong span { color: var(--text); font-size: 15px; }
.checkout-address-card p { margin: 8px 0 0; color: var(--text); line-height: 1.55; overflow-wrap: anywhere; }
.checkout-address-card em { padding: 5px 9px; border-radius: 999px; color: #fff; background: var(--green); font-style: normal; font-size: 12px; font-weight: 800; }
.checkout-address-card.empty-state { display: block; }
.checkout-address-form textarea { min-height: 74px; }
.checkout-pay-options {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  padding-bottom: 2px;
}
.pay-option {
  flex: 1 1 0;
  min-width: 190px;
  max-width: 280px;
  min-height: 92px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  transition: border-color var(--speed), box-shadow var(--speed), transform var(--speed), background var(--speed);
  cursor: pointer;
}
.pay-option:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.pay-option input { position: absolute; width: 1px; height: 1px; min-height: 1px; opacity: 0; pointer-events: none; }
.pay-option:has(input:checked) { border-color: rgba(var(--primary-rgb), .56); background: rgba(var(--primary-rgb), .07); box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), .16); }
.pay-option.is-disabled { cursor: not-allowed; background: rgba(245,248,250,.78); }
.pay-option.is-disabled > span:not(.payment-mark) { opacity: .68; }
.pay-option strong,
.pay-option small {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pay-option strong { font-size: 14px; }
.pay-option small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.3; }
.pay-option em { align-self: start; padding: 4px 7px; border-radius: 999px; color: var(--green-2); background: var(--primary-soft); font-style: normal; font-size: 12px; font-weight: 800; }
.pay-option.is-disabled em { color: var(--orange); background: rgba(var(--accent-rgb), .11); }
.payment-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  box-shadow: inset 0 -10px 18px rgba(0,0,0,.08);
  overflow: hidden;
}
.payment-mark::before { content: "付"; }
.payment-mark-cash_on_delivery { background: linear-gradient(180deg, #21c46f, #079b4c); }
.payment-mark-cash_on_delivery::before { content: "¥"; font-size: 22px; }
.payment-mark-balance { background: #1677ff; box-shadow: none; }
.payment-mark-balance::before { content: ""; }
.payment-mark-balance .lucide { width: 23px; height: 23px; stroke-width: 2.3; }
.payment-mark-wechat,
.payment-mark-alipay,
.payment-mark-manual_wechat {
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: none;
}
.payment-mark-wechat { background-image: url("/assets/images/payment-wechat.svg"); }
.payment-mark-alipay { background-image: url("/assets/images/payment-alipay.svg"); }
.payment-mark-manual_wechat { background-image: url("/assets/images/wechat.svg"); }
.payment-mark-wechat::before,
.payment-mark-alipay::before,
.payment-mark-manual_wechat::before { content: ""; }
.checkout-submit-bar {
  position: sticky;
  bottom: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  z-index: 2;
}
.checkout-submit-bar > span { color: var(--muted); font-weight: 800; }
.checkout-submit-bar .btn span { color: inherit; font-weight: 850; }
.checkout-submit-bar strong { color: var(--red); font-size: 22px; }
.checkout-summary { display: grid; gap: 16px; background: rgba(255,255,255,.86); }
.checkout-summary .cart-item { grid-template-columns: minmax(0, 1fr) auto; }
.checkout-price-lines { display: grid; gap: 10px; padding-top: 4px; border-top: 1px solid var(--border); }
.checkout-price-lines span { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-weight: 700; }
.checkout-price-lines strong { color: var(--text); }
.checkout-price-lines .total { padding-top: 10px; border-top: 1px solid var(--border); color: var(--text); }
.checkout-price-lines .total strong { color: var(--red); font-size: 20px; }
.merchant-promotion-tags,.storefront-promotions{display:flex;flex-wrap:wrap;gap:6px}.merchant-promotion-tags{margin-top:8px}.merchant-promotion-tags span,.storefront-promotions span{padding:3px 7px;border:1px solid #ffd5ca;border-radius:5px;color:#d9471b;background:#fff5f1;font-size:11px;font-weight:750}.storefront-promotions{align-items:center;margin-top:10px}.storefront-promotions strong{margin-right:2px;font-size:12px;color:#7c3c27}.checkout-promotions{display:flex;flex-wrap:wrap;gap:6px}.checkout-promotions span{padding:4px 8px;border-radius:5px;color:#d9471b;background:#fff1eb;font-size:12px;font-weight:750}
.checkout-service-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; color: var(--green-2); font-size: 12px; font-weight: 800; }
.checkout-service-row span { display: flex; align-items: center; gap: 5px; min-width: 0; }
.checkout-service-row .lucide { width: 14px; height: 14px; }
.pay-shell { width: min(1160px, 100%); margin: 0 auto; display: grid; gap: 20px; }
.pay-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.pay-main-card, .pay-side-card { padding: 24px; display: grid; gap: 18px; background: rgba(255,255,255,.88); }
.payment-info-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.payment-info-head > span { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.payment-info-head strong { color: var(--red); font-size: 30px; }
.payment-info-list { display: grid; gap: 2px; }
.payment-info-list p { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; margin: 0; padding: 13px 0; border-bottom: 1px solid var(--border); }
.payment-info-list p:last-child { border-bottom: 0; }
.payment-info-list span { color: var(--muted); font-weight: 700; }
.payment-info-list strong { text-align: right; overflow-wrap: anywhere; }
.payment-action-panel { display: grid; gap: 14px; }
.order-payment-selector { display: grid; gap: 16px; }
.order-payment-selector .checkout-pay-options { display: flex; }
.order-payment-selector-note { margin: 0; color: var(--muted); line-height: 1.6; }
.order-payment-selector .btn { justify-self: stretch; }
.manual-payment-panel { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; align-items: center; padding: 18px; border-radius: 16px; background: rgba(var(--primary-rgb), .06); border: 1px solid rgba(var(--primary-rgb), .18); }
.manual-payment-panel img, .payment-qr-placeholder { width: 180px; height: 180px; border-radius: 14px; border: 1px solid var(--border); background: #fff; object-fit: contain; }
.payment-qr-placeholder { display: grid; place-items: center; gap: 8px; color: var(--muted); text-align: center; }
.payment-qr-placeholder .wechat-placeholder-icon { width: 44px; height: 44px; background: url("/assets/images/wechat.svg") center / contain no-repeat; }
.manual-payment-panel h2, .payment-unavailable-panel h2 { margin: 0 0 8px; font-size: 22px; }
.manual-payment-panel p, .payment-unavailable-panel p { margin: 0; color: var(--text); line-height: 1.7; }
.manual-payment-panel small { display: block; margin-top: 10px; color: var(--muted); font-weight: 700; }
.payment-unavailable-panel, .payment-result {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(var(--accent-rgb), .22);
  background: rgba(var(--accent-rgb), .08);
}
.payment-unavailable-panel .payment-mark { width: 54px; height: 54px; border-radius: 16px; }
.payment-unavailable-panel > .lucide { width: 54px; height: 54px; padding: 14px; border-radius: 16px; color: var(--red); background: rgba(var(--danger-rgb), .09); }
.payment-result { border-color: rgba(var(--primary-rgb), .22); background: rgba(var(--primary-rgb), .08); }
.payment-result > .lucide { width: 42px; height: 42px; color: var(--green-2); }
.payment-result strong { display: block; color: var(--green-2); }
.payment-result small { color: var(--muted); }
.payment-review-result span { display: grid; gap: 8px; justify-items: start; }
.payment-review-result .btn { margin-top: 4px; }
.pay-side-card h2 { margin: 0; font-size: 20px; }
.pay-help-list { display: grid; gap: 12px; }
.pay-help-list p { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; margin: 0; align-items: center; }
.pay-help-list p > .lucide { width: 42px; height: 42px; padding: 10px; border-radius: 50%; color: var(--green-2); background: var(--primary-soft); }
.pay-help-list p > .wechat-inline-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-soft) url("/assets/images/wechat.svg") center / 24px 24px no-repeat; }
.pay-help-list strong { display: block; }
.pay-help-list small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.45; }
.pay-action-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); gap: 16px; }
.pay-action-bar.is-classified-action { align-items: stretch; }
.pay-action-bar.is-classified-action > a {
  grid-column: 2;
  grid-row: 1;
}
.pay-action-bar.is-classified-action > a.is-hidden { display: none; }
.pay-action-bar.is-classified-action > [data-refresh-payment] {
  grid-column: 2;
  grid-row: 2;
}
.pay-action-bar.is-classified-action.is-confirmed > [data-refresh-payment] {
  grid-row: 1;
}
.classified-payment-section { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.72); }
.classified-pay-options { display: flex; }
.classified-pay-options .pay-option small,
.classified-pay-options [data-channel="manual_wechat"] strong,
.classified-pay-options [data-channel="manual_wechat"] small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.classified-pay-options .pay-option small {
  font-size: 12px;
  line-height: 1.25;
}
.classified-pay-options [data-channel="manual_wechat"] strong {
  font-size: 14px;
}
.classified-payment-note { margin: 0; display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.65; font-weight: 400; }
.classified-payment-note .lucide { color: var(--green-2); margin-top: 2px; }
@media (min-width: 721px) {
  .checkout-pay-options:has(> .pay-option:nth-child(4)) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }
  .checkout-pay-options:has(> .pay-option:nth-child(4)) .pay-option {
    width: auto;
    min-width: 0;
    max-width: none;
    min-height: 76px;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 5px;
    padding: 8px;
    border-radius: 11px;
  }
  .checkout-pay-options:has(> .pay-option:nth-child(4)) .payment-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .checkout-pay-options:has(> .pay-option:nth-child(4)) .payment-mark-cash_on_delivery::before { font-size: 18px; }
  .checkout-pay-options:has(> .pay-option:nth-child(4)) .payment-mark-balance .lucide { width: 18px; height: 18px; }
  .checkout-pay-options:has(> .pay-option:nth-child(4)) .pay-option > span:not(.payment-mark) { min-width: 0; }
  .checkout-pay-options:has(> .pay-option:nth-child(4)) .pay-option strong,
  .checkout-pay-options:has(> .pay-option:nth-child(4)) .pay-option small {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }
  .checkout-pay-options:has(> .pay-option:nth-child(4)) .pay-option strong { font-size: 12px; }
  .checkout-pay-options:has(> .pay-option:nth-child(4)) .pay-option small { margin-top: 3px; font-size: 10px; line-height: 1.2; }
  .checkout-pay-options:has(> .pay-option:nth-child(4)) .pay-option em {
    padding: 3px 5px;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
  }
}
.classified-rule-dialog p { margin: 0; color: var(--text); line-height: 1.75; }
.classified-rule-dialog a { color: var(--blue); font-weight: 800; white-space: nowrap; }
.image-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.image-row img { width: 180px; height: 130px; object-fit: cover; border-radius: 14px; }
.info-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.info-card { padding: 14px; display: grid; gap: 8px; transition: transform var(--speed), box-shadow var(--speed), border-color var(--speed); }
.info-card img { width: 100%; aspect-ratio: 1.45; object-fit: cover; border-radius: 14px; transition: transform 320ms ease; }
.info-card:hover img { transform: scale(1.025); }
.info-title-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 26px; }
.info-title-panel h1 { margin: 0; font-size: clamp(26px, 2.5vw, 38px); }
.info-title-panel p { margin: 8px 0 0; color: var(--muted); }
.info-list-panel { display: grid; gap: 18px; }
.info-category-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 6px; scrollbar-width: thin; }
.info-market-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.info-market-card { min-height: 0; background: rgba(255,255,255,.72); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-soft); }
.info-market-card strong { line-height: 1.42; min-height: 44px; overflow-wrap: anywhere; }
.info-card-meta { color: var(--muted); font-size: 12px; font-weight: 700; }
.info-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.info-card-foot.is-without-price { justify-content: flex-end; }
.info-card-foot em { color: var(--orange); font-style: normal; font-weight: 900; }
.info-card-foot small { color: var(--muted); }
.classified-detail-shell { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.classified-detail-main, .classified-contact-panel, .classified-publish-shell { padding: 26px; }
.classified-detail-main { display: grid; gap: 22px; background: rgba(255,255,255,.82); }
.classified-detail-head { display: grid; gap: 8px; }
.classified-detail-head span { color: var(--green-2); font-weight: 800; font-size: 13px; }
.classified-detail-head h1 { margin: 0; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.16; letter-spacing: 0; }
.classified-detail-head p { margin: 0; color: var(--muted); }
.classified-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.classified-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,.7); }
.classified-attrs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.classified-attrs h2 { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: 18px; }
.classified-attrs h2 i { color: var(--primary-color); }
.classified-attrs p, .classified-contact-lines p {
  margin: 0;
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(247,250,252,.82);
  border: 1px solid rgba(128,151,168,.16);
}
.classified-attrs span, .classified-contact-lines span { color: var(--muted); font-size: 12px; font-weight: 700; }
.classified-attrs strong, .classified-contact-lines strong { color: var(--text); overflow-wrap: anywhere; }
.classified-content-block, .classified-safety-block { display: grid; gap: 10px; }
.classified-content-block h2, .classified-safety-block h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; }
.classified-content-block p, .classified-safety-block p { margin: 0; color: var(--text); line-height: 1.8; overflow-wrap: anywhere; }
.classified-rich-content { min-width: 0; color: var(--text); line-height: 1.8; overflow-wrap: anywhere; }
.classified-rich-content > :first-child { margin-top: 0; }
.classified-rich-content > :last-child { margin-bottom: 0; }
.classified-rich-content p { margin: 0 0 12px; }
.classified-rich-content h2, .classified-rich-content h3 { margin: 20px 0 9px; line-height: 1.35; letter-spacing: 0; }
.classified-rich-content h2 { font-size: 20px; }
.classified-rich-content h3 { font-size: 17px; }
.classified-rich-content ul, .classified-rich-content ol { margin: 0 0 14px; padding-left: 24px; }
.classified-rich-content li + li { margin-top: 5px; }
.classified-rich-content blockquote { margin: 14px 0; padding: 10px 14px; border-left: 3px solid var(--green); background: rgba(var(--primary-rgb), .07); color: var(--muted); }
.classified-rich-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.classified-rich-content code { padding: 2px 5px; border-radius: 5px; background: rgba(24,35,46,.07); font-size: .92em; }
.classified-rich-content pre { margin: 14px 0; padding: 14px; overflow: auto; border-radius: 8px; color: #f8fafc; background: #202832; }
.classified-rich-content pre code { padding: 0; background: transparent; }
.classified-rich-content mark { padding: 1px 2px; border-radius: 3px; }
.classified-rich-content .tableWrapper { max-width: 100%; overflow-x: auto; }
.classified-rich-content table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  table-layout: fixed;
}
.classified-rich-content th,
.classified-rich-content td { min-width: 90px; padding: 9px 10px; border: 1px solid var(--border-strong); vertical-align: top; }
.classified-rich-content th { background: rgba(var(--primary-rgb), .08); font-weight: 800; }
.classified-rich-content img {
  display: inline-block;
  max-width: calc(100% - 8px);
  height: auto;
  max-height: 720px;
  margin: 6px 4px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  object-fit: contain;
  vertical-align: top;
  background: #f7fafc;
}
.classified-safety-block { padding: 16px; border: 1px solid rgba(var(--primary-rgb), .22); border-radius: 16px; background: linear-gradient(135deg, rgba(var(--primary-rgb), .10), rgba(255,255,255,.82)); }
.classified-safety-block h2 { color: var(--green-2); }
.classified-contact-panel { position: sticky; top: 104px; display: grid; gap: 14px; background: rgba(255,255,255,.9); }
.classified-price { color: var(--orange); font-size: clamp(28px, 3vw, 38px); font-weight: 950; line-height: 1; }
.classified-contact-lines { display: grid; gap: 10px; }
.classified-side-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.classified-side-actions .is-favorited {
  color: var(--orange);
  border-color: rgba(var(--accent-rgb), .32);
  background: rgba(var(--accent-rgb), .11);
}
.classified-side-actions .is-favorited svg {
  fill: currentColor;
  stroke: currentColor;
}
.wechat-consult-btn .wechat-mark {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("/assets/images/wechat.svg") center / contain no-repeat;
}
.classified-publish-shell { width: min(1120px, 100%); margin: 0 auto; display: grid; gap: 22px; background: rgba(255,255,255,.86); }
.classified-publish-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; border-bottom: 1px solid var(--border); padding-bottom: 18px; }
.classified-publish-head h1 { margin: 0; font-size: clamp(26px, 2.5vw, 36px); }
.classified-publish-head p { margin: 8px 0 0; color: var(--muted); }
.classified-publish-head > span { flex: 0 0 auto; color: var(--orange); font-weight: 900; background: rgba(var(--accent-rgb), .11); border: 1px solid rgba(var(--accent-rgb), .18); border-radius: 12px; padding: 9px 12px; }
.classified-real-name-notice {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(var(--secondary-rgb), .2);
  border-radius: 10px;
  background: rgba(var(--secondary-rgb), .06);
}
.classified-real-name-notice[hidden] { display: none; }
.classified-real-name-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; color: var(--blue); background: rgba(255,255,255,.76); }
.classified-real-name-icon .lucide { width: 21px; height: 21px; }
.classified-real-name-notice > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.classified-real-name-notice small { color: var(--muted); line-height: 1.5; }
.classified-publish-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: start; }
.classified-category-picker { display: grid; gap: 10px; position: sticky; top: 104px; }
.classified-category-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(247,250,252,.72);
  cursor: pointer;
  transition: border-color var(--speed), background var(--speed), transform var(--speed);
}
.classified-category-option:hover { transform: translateY(-1px); }
.classified-category-option.active { border-color: rgba(var(--primary-rgb), .42); background: rgba(var(--primary-rgb), .09); }
.classified-category-option input { width: 18px; min-height: 18px; margin-top: 2px; }
.classified-category-option span { display: grid; gap: 5px; min-width: 0; }
.classified-category-option strong { color: var(--text); }
.classified-category-option small { color: var(--muted); line-height: 1.45; }
.classified-publish-form { display: grid; gap: 16px; min-width: 0; }
.form-grid > .span-2, .classified-dynamic-fields { grid-column: 1 / -1; }
.classified-dynamic-fields > .form-grid { gap: 16px; }
.classified-rich-field { min-width: 0; }
.classified-rich-field > small { color: var(--muted); line-height: 1.55; }
.classified-rich-editor { position: relative; min-width: 0; }
.classified-rich-editor > textarea { min-height: 220px; }
.classified-rich-editor.is-ready > textarea { display: none; }
.classified-rich-editor-chrome {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(255,255,255,.88);
  transition: border-color var(--speed), box-shadow var(--speed), background var(--speed);
}
.classified-rich-editor:focus-within .classified-rich-editor-chrome {
  border-color: rgba(var(--primary-rgb), .55);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .11);
  background: #fff;
}
.classified-rich-toolbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 7px 9px;
  border-bottom: 1px solid var(--border);
  background: rgba(247,250,252,.92);
}
.classified-rich-tool-group { display: flex; align-items: center; gap: 3px; padding-right: 5px; border-right: 1px solid var(--border); }
.classified-rich-tool-group:last-of-type { padding-right: 0; border-right: 0; }
.classified-rich-select-group { flex-wrap: wrap; }
.classified-rich-select-group select {
  width: auto;
  min-width: 92px;
  height: 32px;
  min-height: 32px;
  padding: 0 26px 0 8px;
  border-radius: 7px;
  background-color: #fff;
  font-size: 12px;
}
.classified-rich-select-group [data-editor-font-family] { min-width: 108px; }
.classified-rich-select-group [data-editor-font-size] { min-width: 94px; }
.classified-rich-image-group select {
  width: auto;
  min-width: 104px;
  height: 32px;
  min-height: 32px;
  padding: 0 26px 0 8px;
  border-radius: 7px;
  background-color: #fff;
  font-size: 12px;
}
.classified-rich-image-group select:disabled { opacity: .48; cursor: not-allowed; }
.classified-rich-color-group label {
  width: 32px;
  height: 32px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #596775;
  cursor: pointer;
}
.classified-rich-color-group label:hover { border-color: var(--border); background: #fff; }
.classified-rich-color-group label .lucide { width: 17px; height: 17px; pointer-events: none; }
.classified-rich-color-group input[type="color"] { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.classified-rich-toolbar button {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #596775;
  background: transparent;
  transition: color var(--speed), border-color var(--speed), background var(--speed);
}
.classified-rich-toolbar button:hover:not(:disabled) { color: var(--text); border-color: var(--border); background: #fff; }
.classified-rich-toolbar button.is-active { color: var(--green-2); border-color: rgba(var(--primary-rgb), .25); background: rgba(var(--primary-rgb), .11); }
.classified-rich-toolbar button:disabled { opacity: .32; cursor: not-allowed; }
.classified-rich-toolbar button .lucide { width: 17px; height: 17px; stroke-width: 2; }
.classified-rich-toolbar input[type="file"] { display: none; }
.classified-rich-surface { min-height: 250px; cursor: text; }
.classified-rich-editor-content {
  min-height: 250px;
  padding: 18px;
  color: var(--text);
  line-height: 1.75;
  outline: none;
  overflow-wrap: anywhere;
}
.classified-rich-editor-content > :first-child { margin-top: 0; }
.classified-rich-editor-content > :last-child { margin-bottom: 0; }
.classified-rich-editor-content p { margin: 0 0 12px; }
.classified-rich-editor-content h2, .classified-rich-editor-content h3 { margin: 18px 0 9px; line-height: 1.35; letter-spacing: 0; }
.classified-rich-editor-content h2 { font-size: 21px; }
.classified-rich-editor-content h3 { font-size: 17px; }
.classified-rich-editor-content ul, .classified-rich-editor-content ol { margin: 0 0 14px; padding-left: 24px; }
.classified-rich-editor-content blockquote { margin: 14px 0; padding: 10px 14px; border-left: 3px solid var(--green); background: rgba(var(--primary-rgb), .07); color: var(--muted); }
.classified-rich-editor-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.classified-rich-editor-content code { padding: 2px 5px; border-radius: 5px; background: rgba(24,35,46,.07); font-size: .92em; }
.classified-rich-editor-content pre { margin: 14px 0; padding: 14px; overflow: auto; border-radius: 8px; color: #f8fafc; background: #202832; }
.classified-rich-editor-content pre code { padding: 0; background: transparent; }
.classified-rich-editor-content mark { padding: 1px 2px; border-radius: 3px; }
.classified-rich-editor-content .tableWrapper { max-width: 100%; margin: 16px 0; overflow-x: auto; }
.classified-rich-editor-content table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.classified-rich-editor-content th,
.classified-rich-editor-content td { min-width: 90px; padding: 9px 10px; border: 1px solid var(--border-strong); vertical-align: top; position: relative; }
.classified-rich-editor-content th { background: rgba(var(--primary-rgb), .08); font-weight: 800; }
.classified-rich-editor-content .selectedCell::after { content: ""; position: absolute; inset: 0; background: rgba(var(--primary-rgb), .12); pointer-events: none; }
.classified-rich-editor-content .column-resize-handle { width: 3px; position: absolute; top: 0; right: -2px; bottom: -2px; background: var(--green); pointer-events: none; }
.classified-rich-editor-content.resize-cursor { cursor: col-resize; }
.classified-rich-editor-content img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  margin: 6px 4px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  object-fit: contain;
  vertical-align: top;
  background: #f7fafc;
}
.classified-rich-editor-content [data-resize-container][data-node="image"] {
  display: inline-flex !important;
  max-width: calc(100% - 8px);
  margin: 6px 4px 10px;
  vertical-align: top;
}
.classified-rich-editor-content [data-resize-wrapper] { max-width: 100%; }
.classified-rich-editor-content [data-resize-wrapper] > img { max-width: 100%; margin: 0; }
.classified-rich-editor-content [data-resize-container].ProseMirror-selectednode {
  border-radius: 8px;
  outline: 3px solid rgba(var(--primary-rgb), .25);
}
.classified-rich-editor-content [data-resize-container].ProseMirror-selectednode img { border-color: var(--green); }
.classified-rich-editor-content [data-resize-handle] {
  z-index: 3;
  width: 12px;
  height: 12px;
  opacity: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 1px 5px rgba(18,24,33,.24);
  transition: opacity var(--speed);
}
.classified-rich-editor-content [data-resize-container].ProseMirror-selectednode [data-resize-handle] { opacity: 1; }
.classified-rich-editor-content [data-resize-handle="top-left"] { transform: translate(-50%, -50%); cursor: nwse-resize; }
.classified-rich-editor-content [data-resize-handle="top-right"] { transform: translate(50%, -50%); cursor: nesw-resize; }
.classified-rich-editor-content [data-resize-handle="bottom-left"] { transform: translate(-50%, 50%); cursor: nesw-resize; }
.classified-rich-editor-content [data-resize-handle="bottom-right"] { transform: translate(50%, 50%); cursor: nwse-resize; }
.classified-rich-editor-content p.is-editor-empty:first-child::before { content: attr(data-placeholder); float: left; height: 0; color: #91a0ac; pointer-events: none; }
.classified-rich-footer { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 11px; border-top: 1px solid var(--border); color: var(--muted); background: rgba(247,250,252,.72); font-size: 12px; }
.classified-rich-editor.is-uploading .classified-rich-editor-chrome { border-color: rgba(var(--secondary-rgb), .45); }
.classified-rich-editor.is-uploading .classified-rich-toolbar button { pointer-events: none; opacity: .45; }
.editor-link-dialog { width: min(500px, calc(100vw - 28px)); }
.editor-link-dialog form { display: grid; gap: 12px; }
.editor-link-dialog .muted { margin: 0; font-size: 13px; }
.classified-universal-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px dashed var(--border-strong); border-radius: 14px; color: var(--muted); background: rgba(247,250,252,.72); }
.classified-universal-note strong { color: var(--text); white-space: nowrap; }
.price-mode-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; }
.price-mode-row.is-mode-only { grid-template-columns: minmax(0, 1fr); }
.price-mode-row input[hidden] { display: none; }
.radio-card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card-row label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(255,255,255,.76);
  color: var(--text);
}
.radio-card-row input { width: 16px; min-height: 16px; }
.classified-submit-btn { width: 100%; min-height: 48px; }
.user-shell { display: grid; grid-template-columns: 190px 1fr; gap: 18px; margin-top: 18px; }
.user-menu { display: grid; gap: 8px; align-content: start; }
.user-menu a { padding: 12px; border-radius: 12px; color: var(--muted); transition: background var(--speed), color var(--speed), transform var(--speed); }
.user-menu a.active { color: var(--green-2); background: var(--primary-soft); }
.user-menu a:hover { transform: translateX(2px); background: rgba(255,255,255,.58); color: var(--green-2); }
.user-content { min-width: 0; display: grid; gap: 14px; align-content: start; }
.wallet-balance-panel,
.wallet-ledger-panel { padding: 22px; display: grid; gap: 22px; }
.wallet-balance-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(var(--secondary-rgb), .2);
  border-radius: 16px;
  background: rgba(var(--secondary-rgb), .06);
}
.wallet-balance-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--blue);
}
.wallet-balance-icon .lucide { width: 28px; height: 28px; }
.wallet-balance-summary > span:last-child { min-width: 0; display: grid; gap: 3px; }
.wallet-balance-summary small,
.wallet-balance-summary em { color: var(--muted); font-style: normal; }
.wallet-balance-summary strong { color: var(--text); font-size: 32px; line-height: 1.15; }
.wallet-recharge-form { display: grid; gap: 14px; }
.wallet-recharge-form .section-head { margin: 0; }
.wallet-amount-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.wallet-amount-presets button {
  min-width: 72px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.wallet-amount-presets button:hover { color: var(--blue); border-color: rgba(var(--secondary-rgb), .42); }
.wallet-recharge-options { justify-content: flex-start; }
.wallet-recharge-options .pay-option { max-width: 260px; }
.wallet-transaction-list { display: grid; }
.wallet-transaction-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.wallet-transaction-row:last-child { border-bottom: 0; }
.wallet-transaction-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.wallet-transaction-icon.is-income { color: var(--green-2); background: var(--primary-soft); }
.wallet-transaction-icon.is-expense { color: var(--red); background: rgba(var(--danger-rgb), .08); }
.wallet-transaction-icon .lucide { width: 18px; height: 18px; }
.wallet-transaction-main,
.wallet-transaction-amount { min-width: 0; display: grid; gap: 4px; }
.wallet-transaction-main small,
.wallet-transaction-amount small { color: var(--muted); font-size: 12px; }
.wallet-transaction-amount { justify-items: end; white-space: nowrap; }
.wallet-transaction-amount.is-income strong { color: var(--green-2); }
.wallet-transaction-amount.is-expense strong { color: var(--text); }
.balance-insufficient-dialog { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: center; }
.balance-insufficient-dialog > .lucide { width: 46px; height: 46px; padding: 10px; border-radius: 12px; color: var(--blue); background: rgba(var(--secondary-rgb), .08); }
.balance-insufficient-dialog p { margin: 0; line-height: 1.7; }
.admin-wallet-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px; border-radius: 12px; background: rgba(var(--secondary-rgb), .07); }
.admin-wallet-summary span { color: var(--muted); }
.admin-wallet-summary strong { color: var(--blue); font-size: 26px; }
.admin-wallet-form { margin-top: 14px; }
.admin-wallet-history-title { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 8px; }
.admin-wallet-history-title span { color: var(--muted); font-size: 12px; }
.admin-wallet-history { display: grid; max-height: 230px; overflow-y: auto; }
.admin-wallet-history p { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--border); }
.admin-wallet-history p > span { display: grid; gap: 2px; }
.admin-wallet-history small { color: var(--muted); font-size: 11px; }
.admin-wallet-history strong.is-income { color: var(--green-2); }
.admin-wallet-history strong.is-expense { color: var(--red); }
.user-toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.user-record-list { display: grid; gap: 12px; }
.user-list-card {
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-soft);
}
.order-list-card { grid-template-columns: 64px minmax(0, 1fr) auto auto; }
.user-list-card > img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(255,255,255,.58);
}
.user-list-main { min-width: 0; display: grid; gap: 6px; }
.user-list-main strong {
  min-width: 0;
  color: var(--text);
  font-size: 16px;
  overflow-wrap: anywhere;
}
.user-list-main small { color: var(--muted); line-height: 1.4; }
.user-list-main p { margin: 2px 0 0; color: var(--text); line-height: 1.65; overflow-wrap: anywhere; }
.user-list-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.user-list-meta span {
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.58);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.user-list-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.user-list-actions .btn { min-height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.message-center-summary {
  padding: 18px 20px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), .12), rgba(255,255,255,.72));
  border: 1px solid rgba(var(--primary-rgb), .18);
}
.message-center-summary > div { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.message-center-summary strong { color: var(--green-2); font-size: 30px; line-height: 1; }
.message-center-summary span { color: var(--text); font-weight: 750; }
.message-center-summary p { margin: 0; color: var(--muted); line-height: 1.6; text-align: right; }
.message-filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.message-filter-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  background: rgba(255,255,255,.62);
  font-size: 14px;
  font-weight: 750;
}
.message-filter-tabs button span { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: rgba(105,119,133,.12); font-size: 11px; }
.message-filter-tabs button.active { color: var(--green-2); border-color: rgba(var(--primary-rgb), .3); background: var(--primary-soft); }
.message-list-card {
  width: 100%;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: start;
  border: 1px solid var(--border);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform var(--speed), border-color var(--speed), background var(--speed), box-shadow var(--speed);
}
.message-list-card:hover { transform: translateY(-2px); border-color: rgba(var(--primary-rgb), .3); box-shadow: var(--shadow); }
.message-list-card.is-unread { background: linear-gradient(135deg, rgba(var(--primary-rgb), .1), rgba(255,255,255,.78)); border-color: rgba(var(--primary-rgb), .25); }
.message-list-card.is-read { opacity: .82; }
.message-state-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--green-2); background: var(--primary-soft); }
.message-state-icon .lucide { width: 20px; height: 20px; }
.message-preview { color: var(--text); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.message-list-card[hidden], .message-filter-empty[hidden] { display: none !important; }
.message-detail-dialog { display: grid; gap: 16px; }
.message-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.message-detail-meta > span:not(.tag), .message-detail-meta time { padding-right: 8px; border-right: 1px solid var(--border); }
.message-detail-dialog p { margin: 0; padding: 16px; border-radius: 14px; background: rgba(247,250,252,.86); color: var(--text); line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-card.user-profile-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.58);
}
.profile-card.user-profile-card img { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; }
.profile-card.user-profile-card h2 { margin: 0 0 6px; }
.profile-card.user-profile-card p { margin: 0; color: var(--muted); }
.user-profile-panel {
  padding: 20px;
  display: grid;
  gap: 18px;
}
.profile-hero {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}
.profile-avatar-box {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,.62);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.profile-avatar-box img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero-main { min-width: 0; display: grid; gap: 8px; }
.profile-hero-main h2 { margin: 0; font-size: clamp(22px, 2.2vw, 30px); overflow-wrap: anywhere; }
.profile-hero-main p { margin: 0; color: var(--muted); }
.profile-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.profile-detail-item {
  min-width: 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.58);
  border: 1px solid var(--border);
  display: grid;
  gap: 6px;
}
.profile-detail-item span { color: var(--muted); font-size: 13px; font-weight: 700; }
.profile-detail-item strong { color: var(--text); font-weight: 750; overflow-wrap: anywhere; }
.real-name-page { display: grid; gap: 18px; }
.real-name-status {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,.62);
}
.real-name-status.is-approved { border-color: rgba(var(--primary-rgb), .26); background: rgba(var(--primary-rgb), .06); }
.real-name-status.is-pending { border-color: rgba(var(--accent-rgb), .28); background: rgba(var(--accent-rgb), .06); }
.real-name-status.is-rejected { border-color: rgba(229,72,77,.25); background: rgba(229,72,77,.05); }
.real-name-status-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: #fff; border: 1px solid var(--border); }
.real-name-status.is-approved .real-name-status-icon { color: var(--green-2); }
.real-name-status.is-rejected .real-name-status-icon { color: var(--danger); }
.real-name-status-icon .lucide { width: 28px; height: 28px; }
.real-name-status > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.real-name-status small { color: var(--muted); }
.real-name-status strong { font-size: 20px; }
.real-name-status p { margin: 0; color: var(--muted); line-height: 1.65; }
.real-name-summary { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.real-name-summary > div { min-width: 0; padding: 14px 16px; display: grid; gap: 5px; background: rgba(255,255,255,.5); border-bottom: 1px solid var(--border); }
.real-name-summary > div:nth-child(odd) { border-right: 1px solid var(--border); }
.real-name-summary > div:nth-last-child(-n+2) { border-bottom: 0; }
.real-name-summary dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.real-name-summary dd { margin: 0; color: var(--text); font-weight: 800; overflow-wrap: anywhere; }
.real-name-form { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.56); }
.real-name-form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.real-name-form-head strong { font-size: 18px; }
.real-name-form-head span { color: var(--muted); font-size: 13px; }
.real-name-consent { align-items: flex-start; }
.real-name-consent span { line-height: 1.65; }
.real-name-consent a { color: var(--blue); font-weight: 800; }
.form-inline-error { margin: 0; color: var(--danger); font-weight: 700; }
.real-name-form > .btn { justify-self: start; min-width: 150px; }
.real-name-privacy-note, .admin-sensitive-warning {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 10px;
  color: #1c4f71;
  background: #edf7ff;
  border: 1px solid #cfe7f7;
}
.real-name-privacy-note > .lucide, .admin-sensitive-warning > .lucide { width: 22px; height: 22px; margin: 2px auto 0; }
.real-name-privacy-note > span, .admin-sensitive-warning > span { min-width: 0; display: grid; gap: 4px; }
.real-name-privacy-note small, .admin-sensitive-warning small { line-height: 1.6; }
.real-name-withdraw { justify-self: start; }
.admin-sensitive-warning { margin-bottom: 16px; color: #7b4313; background: #fff7e9; border-color: #f2d7a8; }
.sensitive-value { letter-spacing: 0; font-variant-numeric: tabular-nums; }
.address-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.address-card { padding: 16px; display: grid; gap: 10px; box-shadow: var(--shadow-soft); }
.address-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.address-card p { margin: 0; color: var(--text); line-height: 1.65; overflow-wrap: anywhere; }
.order-detail-panel { display: grid; gap: 14px; }
.order-detail-head { padding: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center; box-shadow: var(--shadow-soft); }
.order-detail-head h2 { margin: 0 0 6px; overflow-wrap: anywhere; }
.order-detail-head p { margin: 0; color: var(--muted); }
.order-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.order-detail-card { padding: 18px; box-shadow: var(--shadow-soft); }
.order-detail-card h3 { margin: 0 0 12px; }
.order-detail-card p { color: var(--text); line-height: 1.7; overflow-wrap: anywhere; }
.order-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.order-product-info {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.order-product-info > span { min-width: 0; }
.order-product-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255,255,255,.68);
  border: 1px solid var(--border);
}
.order-item-row strong, .order-item-row small { display: block; }
.order-item-row small { color: var(--muted); margin-top: 4px; }
.order-item-row em { color: var(--red); font-style: normal; font-weight: 800; }
.price-lines { display: grid; gap: 8px; margin: 14px 0; }
.price-lines span { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.price-lines strong { color: var(--text); }
.detail-actions { justify-content: flex-start; margin-top: 14px; }
.dialog-form { display: grid; gap: 12px; }
.site-footer {
  width: min(1430px, calc(100% - 48px));
  margin: 30px auto 0;
  padding: 26px 0 36px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(500px, 1.08fr) minmax(330px, .86fr);
  align-items: center;
  gap: 24px;
}
.fee-standard-dialog {
  display: grid;
  gap: 16px;
}
.fee-standard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.fee-standard-section {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(229,72,77,.22);
  background: rgba(255,255,255,.7);
  box-shadow: 0 16px 36px rgba(229,72,77,.08);
}
.fee-standard-section h4 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 900;
}
.fee-standard-section h4 .lucide { color: var(--red); }
.fee-standard-lines {
  display: grid;
  gap: 8px;
}
.fee-standard-line {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(229,72,77,.07);
  border: 1px solid rgba(229,72,77,.18);
}
.fee-standard-line span {
  color: var(--muted);
  font-weight: 750;
}
.fee-standard-line strong {
  min-width: 0;
  color: var(--red);
  font-weight: 900;
  text-align: right;
  overflow-wrap: anywhere;
}
.fee-standard-rule {
  display: grid;
  gap: 10px;
  max-height: 34vh;
  overflow: auto;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.58);
}
.fee-standard-rule p {
  margin: 0;
  line-height: 1.8;
  color: var(--text);
}
.fee-standard-rule .fee-rule-highlight {
  color: var(--red);
  font-weight: 850;
}
.footer-links {
  justify-self: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255,255,255,.48);
  border: 1px solid rgba(218,228,236,.72);
  box-shadow: 0 14px 34px rgba(29,52,75,.06);
}
.footer-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 16px;
  color: #5f6d7a;
  font-weight: 800;
  background: rgba(239,246,250,.72);
  border: 1px solid rgba(255,255,255,.72);
  transition: transform var(--speed), color var(--speed), background var(--speed), box-shadow var(--speed);
}
.footer-links a:hover {
  transform: translateY(-1px);
  color: var(--green-2);
  background: rgba(var(--primary-rgb), .09);
  box-shadow: 0 10px 22px rgba(var(--primary-rgb), .12);
}
.footer-copyright {
  justify-self: end;
  display: grid;
  gap: 7px;
  justify-items: end;
  text-align: right;
  margin-right: 84px;
}
.footer-copyright strong {
  color: #657483;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
}
.footer-copyright p {
  margin: 0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  color: #7e8a96;
  font-size: 13px;
  font-weight: 750;
}
.footer-copyright a { color: inherit; }
.footer-copyright a:hover { color: var(--green-2); text-decoration: underline; }
.floating-actions {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.floating-action {
  width: 68px;
  height: 68px;
  padding: 0;
  border-radius: 50%;
  border: 7px solid rgba(255,255,255,.74);
  color: #fff;
  font-weight: 850;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  text-align: center;
  line-height: 1;
  animation: floatPulse 2.6s ease-in-out infinite;
  transition: transform var(--speed), box-shadow var(--speed), filter var(--speed);
}
.floating-action:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 20px 44px rgba(41,68,89,.18);
  filter: saturate(1.08);
}
.floating-action:active { transform: translateY(0) scale(.98); }
.floating-action .lucide { width: 22px; height: 22px; }
.floating-action span { font-size: 13px; line-height: 1; }
.floating-action-publish {
  background: linear-gradient(180deg, #20c66b, #079b4c);
}
.floating-action-orders {
  background: linear-gradient(180deg, #4f8cff, #2563eb);
}
.floating-action-posts {
  background: linear-gradient(180deg, #ff9a3d, #ea580c);
}
.floating-action-service {
  background: linear-gradient(180deg, #22c4e8, #0ea5e9);
}
.contact-dialog, .modal, .app-dialog { border: 0; padding: 24px; max-width: 520px; width: calc(100% - 48px); }
.contact-dialog::backdrop, .modal::backdrop, .app-dialog::backdrop { background: rgba(24, 35, 46, .24); backdrop-filter: blur(8px); }
.contact-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(620px, calc(100vw - 36px));
  max-width: none;
  max-height: calc(100vh - 36px);
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  overflow: auto;
  color: var(--text);
  animation: appDialogPop var(--speed) ease both;
}
.contact-dialog-head {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 24px 66px 18px 24px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(var(--primary-rgb), .13), rgba(var(--secondary-rgb), .08)),
    rgba(255,255,255,.72);
}
.contact-dialog-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, var(--green), var(--green-2));
  box-shadow: 0 16px 32px rgba(var(--primary-rgb), .22);
}
.contact-dialog-icon .lucide { width: 28px; height: 28px; }
.contact-dialog-head > div { min-width: 0; }
.contact-dialog-head h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.12;
  white-space: nowrap;
}
.contact-dialog-head small {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
}
.contact-dialog-close { top: 18px; right: 18px; }
.contact-dialog-body {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 24px;
  background: rgba(247,250,252,.5);
}
.contact-qr-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}
.contact-qr-card img {
  width: min(168px, 100%);
  aspect-ratio: 1;
  height: auto;
  margin: 0 auto 12px;
  padding: 8px;
  border-radius: 16px;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--border);
}
.contact-qr-card strong,
.contact-info-item strong {
  display: block;
  color: var(--text);
  font-weight: 850;
}
.contact-qr-card small,
.contact-info-item small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}
.contact-qr-card small { margin-top: 5px; font-size: 12px; }
.contact-info-list {
  display: grid;
  gap: 10px;
  align-content: stretch;
}
.contact-info-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
}
.contact-info-item .lucide {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 14px;
  color: #2563eb;
  background: #eff6ff;
}
.contact-info-item:nth-child(2) .lucide { color: #059669; background: #ecfdf5; }
.contact-info-item:nth-child(3) .lucide { color: #ea580c; background: #fff7ed; }
.contact-info-item span { min-width: 0; }
.contact-info-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-info-item small { font-size: 12px; }
.contact-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.88);
}
.app-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(560px, calc(100vw - 40px));
  margin: 0;
  max-height: calc(100vh - 42px);
  overflow: auto;
  color: var(--text);
  transform: translate(-50%, -50%);
  animation: appDialogPop var(--speed) ease both;
}
.app-dialog h3 { margin: 0 42px 14px 0; font-size: 22px; }
.app-dialog[open][data-dialog-size="detail"] {
  width: min(1180px, calc(100vw - 44px));
  max-width: none;
  max-height: calc(100vh - 42px);
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.app-dialog[data-dialog-size="detail"] h3 {
  margin: 0;
  padding: 22px 70px 16px 24px;
  border-bottom: 1px solid var(--border);
  font-size: clamp(18px, 1.7vw, 24px);
  white-space: nowrap;
}
.dialog-close { position: absolute; top: 14px; right: 14px; z-index: 10; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.72); display: grid; place-items: center; }
.dialog-body { color: var(--text); line-height: 1.75; }
.app-dialog[data-dialog-size="detail"] .dialog-body {
  min-height: 0;
  overflow: auto;
  padding: 20px 24px 22px;
  background: rgba(247,250,252,.52);
}
.app-dialog[open][data-dialog-size="record"] {
  width: min(820px, calc(100vw - 44px));
  max-width: none;
  max-height: calc(100vh - 42px);
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.app-dialog[data-dialog-size="record"] h3 {
  margin: 0;
  padding: 20px 66px 15px 22px;
  border-bottom: 1px solid var(--border);
  font-size: clamp(18px, 1.45vw, 22px);
  white-space: nowrap;
}
.app-dialog[data-dialog-size="record"] .dialog-body {
  min-height: 0;
  overflow: auto;
  padding: 18px 20px;
  background: rgba(247,250,252,.52);
}
.app-dialog[data-dialog-size="record"] .dialog-actions {
  margin: 0;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.88);
}
.app-dialog[data-dialog-size="record"] .detail-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: none;
}
.dialog-scroll { max-height: 48vh; overflow: auto; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.58); }
.app-dialog[data-dialog-size="detail"] .dialog-scroll { max-height: none; overflow: visible; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.confirm-dialog-content p { margin: 0; color: var(--text); line-height: 1.75; }
.phone-reveal-dialog, .wechat-consult-dialog { display: grid; gap: 14px; }
.phone-reveal-dialog p, .wechat-safety p, .revealed-phone p { margin: 0; color: var(--muted); line-height: 1.7; }
.captcha-inline { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center; }
.captcha-inline img { width: 140px; height: 54px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.revealed-phone { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: rgba(var(--primary-rgb), .08); border: 1px solid rgba(var(--primary-rgb), .18); }
.revealed-phone strong { color: var(--green-2); font-size: 26px; letter-spacing: .02em; }
.wechat-contact-grid { display: grid; gap: 12px; }
.wechat-qr-box, .wechat-id-box { display: grid; place-items: center; gap: 10px; padding: 18px; border-radius: 16px; border: 1px solid var(--border); background: rgba(247,250,252,.78); text-align: center; }
.wechat-qr-box img { width: 190px; height: 190px; object-fit: contain; border-radius: 14px; background: #fff; border: 1px solid var(--border); }
.wechat-qr-box span, .wechat-id-box small { color: var(--muted); font-weight: 700; }
.wechat-id-box strong { color: var(--text); font-size: 24px; overflow-wrap: anywhere; }
.wechat-safety { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: rgba(var(--primary-rgb), .08); border: 1px solid rgba(var(--primary-rgb), .18); }
.wechat-safety h4 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--green-2); }
.app-dialog[data-dialog-size="detail"] .dialog-actions {
  margin: 0;
  padding: 14px 24px 18px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.88);
}
.app-dialog[open][data-dialog-size="manager"] {
  width: min(1000px, calc(100vw - 44px));
  max-width: none;
  max-height: calc(100vh - 42px);
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.app-dialog[data-dialog-size="manager"] h3 {
  margin: 0;
  padding: 20px 70px 15px 24px;
  border-bottom: 1px solid var(--border);
  font-size: clamp(18px, 1.55vw, 22px);
  white-space: nowrap;
}
.app-dialog[data-dialog-size="manager"] .dialog-body {
  min-height: 0;
  overflow: auto;
  padding: 18px 20px 20px;
  background: rgba(247,250,252,.52);
}
.app-dialog[data-dialog-size="manager"] .dialog-actions {
  margin: 0;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.88);
}
.admin-manager-dialog {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.admin-manager-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-manager-toolbar span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.admin-manager-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-manager-dialog .table-scroll {
  max-height: min(58vh, 560px);
  overflow: auto;
}
.admin-manager-dialog .data-table th {
  position: sticky;
  top: 0;
  z-index: 4;
}
.admin-manager-dialog .data-table.has-actions th:last-child {
  z-index: 5;
}
.admin-manager-dialog .pager {
  padding-top: 12px;
}
.contact-dialog:not([open]),
.modal:not([open]),
.app-dialog:not([open]) {
  display: none;
}
.admin-detail-dialog { display: grid; gap: 16px; }
.admin-detail-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-detail-metric {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.78);
}
.admin-detail-metric small { color: var(--muted); font-weight: 700; white-space: nowrap; }
.admin-detail-metric strong { color: var(--text); font-size: clamp(16px, 1.5vw, 22px); white-space: nowrap; }
.admin-detail-metric.is-strong strong { color: var(--green-2); }
.admin-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.admin-detail-grid.lower { align-items: stretch; }
.admin-detail-section {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.78);
}
.admin-detail-section h4 { margin: 0; color: var(--text); font-size: 15px; white-space: nowrap; }
.admin-detail-section .detail-kv { display: grid; gap: 8px; }
.admin-detail-section .detail-kv p {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(247,250,252,.82);
}
.admin-detail-section .detail-kv strong { color: var(--muted); font-weight: 700; white-space: nowrap; }
.admin-detail-section .detail-kv span { min-width: 0; color: var(--text); overflow-wrap: anywhere; }
.admin-detail-list { display: grid; gap: 8px; }
.admin-detail-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.64);
}
.admin-detail-list span { display: grid; gap: 3px; min-width: 0; font-weight: 700; }
.admin-detail-list small { color: var(--muted); font-weight: 500; }
.admin-detail-list strong { white-space: nowrap; }
.admin-detail-text { margin: 0; white-space: pre-wrap; line-height: 1.75; color: var(--text); }
.admin-classified-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.admin-classified-images img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); background: #fff; }
.admin-wechat-preview { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.admin-wechat-preview img { width: 42px; height: 42px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); background: #fff; }
.classified-admin-create-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(19,182,91,.22);
  border-radius: 14px;
  background: rgba(19,182,91,.08);
  color: var(--text);
  font-weight: 700;
  line-height: 1.6;
}
.classified-admin-create-note i { flex: 0 0 auto; color: var(--primary-color); margin-top: 2px; }
.admin-timeline { display: grid; gap: 10px; }
.admin-timeline > div {
  position: relative;
  padding: 10px 12px 10px 18px;
  border-radius: 12px;
  background: rgba(255,255,255,.64);
  border-left: 3px solid var(--green);
}
.admin-timeline strong { display: inline-block; margin-right: 10px; color: var(--text); }
.admin-timeline span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.admin-timeline p { margin: 5px 0 0; color: var(--muted); }
@keyframes dialogPop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes appDialogPop { from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)) scale(.98); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floatPulse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 18px);
  background: rgba(18,24,33,.86);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--speed), transform var(--speed);
  z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-dialog-toast {
  position: absolute;
  bottom: 20px;
  z-index: 10000;
  background: rgba(18,24,33,.94);
  box-shadow: 0 10px 28px rgba(18,24,33,.22);
}
.modal-error{max-width:420px;margin-right:auto;padding:8px 12px;border:1px solid #fecaca;border-radius:8px;color:#b42318;background:#fff1f2;font-size:12px;font-weight:700;line-height:1.45}

.admin-bg {
  min-height: 100vh;
  display: grid;
  grid-template-columns: fit-content(210px) minmax(0, 1fr);
  gap: 14px;
  padding: 0 18px 24px 0;
  background: linear-gradient(135deg, var(--bg), #fff 42%, var(--bg-2));
  overflow-x: hidden;
}
.admin-bg .glass-panel {
  border-radius: 16px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 14px 38px rgba(41,68,89,.10);
}
.admin-bg .table-panel,
.admin-bg .settings-form,
.admin-bg .stat-card {
  border-color: rgba(128,151,168,.20);
}
.admin-sidebar {
  width: fit-content;
  min-width: 160px;
  max-width: 210px;
  height: calc(100vh - 16px);
  margin: 8px 0 8px 8px;
  padding: 16px 10px;
  position: sticky;
  top: 8px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-radius: 18px;
}
.admin-brand { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: center; padding: 0 6px 16px; min-width: 0; }
.admin-brand img { width: 42px; height: 42px; border-radius: 12px; object-fit: contain; background: rgba(218,248,231,.72); }
.admin-brand span { display: block; min-width: 0; }
.admin-brand strong { display: block; font-size: clamp(13px, 1.05vw, 17px); line-height: 1.18; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.admin-brand small { display: block; color: var(--muted); margin-top: 5px; font-size: clamp(11px, .92vw, 13px); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.admin-menu { display: grid; gap: 5px; align-content: start; overflow: auto; padding-right: 2px; }
.admin-menu > a {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 650;
  white-space: nowrap;
}
.admin-menu .lucide { width: 18px; height: 18px; color: currentColor; }
.admin-menu > a.has-children .submenu-chevron { margin-left: auto; width: 16px; height: 16px; transition: transform var(--speed); }
.admin-menu > a.has-children[aria-expanded="true"] .submenu-chevron { transform: rotate(180deg); }
.admin-menu a.active { color: var(--green-2); background: rgba(255,255,255,.76); box-shadow: 0 8px 24px rgba(var(--primary-rgb), .08); }
.submenu { display: none; gap: 2px; margin: 0 0 6px 30px; }
.submenu.open { display: grid; }
.submenu a { padding: 6px 8px; border-radius: 10px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.sidebar-foot { border-top: 1px solid var(--border); padding-top: 14px; display: grid; gap: 10px; }
.admin-main { min-width: 0; max-width: 100%; overflow: hidden; padding-top: 14px; display: grid; gap: 16px; align-content: start; }
.admin-topbar {
  height: 58px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  position: sticky;
  top: 8px;
  z-index: 10;
}
.admin-content .section-head h1 { font-size: clamp(22px, 1.8vw, 28px); white-space: normal; }
.admin-content .section-head p { max-width: 760px; line-height: 1.55; }
.admin-topbar > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.admin-topbar > div:first-child { overflow: hidden; }
.breadcrumb { color: var(--text); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: clamp(12px, 1.2vw, 14px); }
.admin-home-link { min-height: 36px; padding: 0 14px; border-radius: 9px; justify-self: center; white-space: nowrap; }
.admin-home-link .lucide { width: 17px; height: 17px; }
.admin-entry-actions { display: flex !important; align-items: center; justify-content: center; gap: 8px !important; overflow: visible !important; }
.admin-app-access { position: relative; flex: 0 0 auto; }
.admin-app-trigger { min-height: 36px; padding: 0 12px; border-radius: 9px; gap: 7px; white-space: nowrap; }
.admin-app-trigger .lucide { width: 17px; height: 17px; }
.admin-app-trigger .entry-qr-icon { width: 14px; height: 14px; margin-left: 2px; color: var(--muted); }
.admin-app-access:hover .admin-app-trigger,
.admin-app-access:focus-within .admin-app-trigger,
.admin-app-access.is-open .admin-app-trigger { color: var(--green-2); border-color: rgba(var(--primary-rgb),.32); background: #fff; box-shadow: 0 8px 20px rgba(41,68,89,.1); transform: translateY(-1px); }
.admin-app-popover { width: 238px; padding: 15px; position: absolute; top: calc(100% + 12px); left: 50%; z-index: 60; display: grid; gap: 12px; border: 1px solid rgba(128,151,168,.25); border-radius: 13px; background: rgba(255,255,255,.99); box-shadow: 0 22px 50px rgba(28,47,63,.2); opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%,-6px); transition: opacity var(--speed), visibility var(--speed), transform var(--speed); }
.admin-app-popover::before { content: ''; width: 11px; height: 11px; position: absolute; top: -6px; left: calc(50% - 6px); border-top: 1px solid rgba(128,151,168,.25); border-left: 1px solid rgba(128,151,168,.25); background: #fff; transform: rotate(45deg); }
.admin-app-access:hover .admin-app-popover,
.admin-app-access:focus-within .admin-app-popover,
.admin-app-access.is-open .admin-app-popover { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%,0); }
.admin-app-popover-head { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 10px; align-items: center; }
.admin-app-popover-head > span { width: 38px; height: 38px; display: grid; place-items: center; color: var(--green-2); background: var(--primary-soft); border-radius: 10px; }
.admin-app-popover-head .lucide { width: 19px; height: 19px; }
.admin-app-popover-head strong { display: block; color: var(--text); font-size: 14px; }
.admin-app-popover-head small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.admin-app-qr { width: 184px; height: 184px; justify-self: center; padding: 8px; display: grid; place-items: center; box-sizing: border-box; overflow: hidden; border: 1px solid #e0e7ec; border-radius: 10px; color: var(--muted); background: #fff; font-size: 12px; text-align: center; }
.admin-app-qr img { width: 100%; height: 100%; display: block; object-fit: contain; image-rendering: pixelated; }
.admin-app-url { min-width: 0; padding: 8px 9px; overflow: hidden; border-radius: 8px; color: #64748b; background: #f5f8fa; font-size: 10px; line-height: 1.4; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.admin-app-url:hover { color: var(--green-2); background: var(--primary-soft); }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; justify-self: end; gap: 10px; min-width: 0; }
.top-search { width: clamp(180px, 22vw, 320px); min-height: 38px; border-radius: 10px; }
.admin-user { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.admin-user img { width: 34px; height: 34px; border-radius: 50%; }
.admin-content { display: grid; gap: 18px; min-width: 0; max-width: 100%; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat-card { padding: 18px; display: grid; grid-template-columns: 50px 1fr; gap: 6px 14px; min-height: 108px; }
.stat-icon { grid-row: span 3; width: 50px; height: 50px; border-radius: 14px; background: rgba(var(--primary-rgb), .11); border: 1px solid rgba(var(--primary-rgb), .14); display: grid; place-items: center; color: var(--green-2); }
.stat-icon .lucide { width: 26px; height: 26px; }
.stat-card small { color: var(--muted); }
.stat-card strong { font-size: clamp(22px, 2vw, 28px); line-height: 1.08; }
.stat-card em { color: var(--green-2); font-style: normal; }
.filter-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(128px, 180px) max-content max-content;
  gap: 12px;
  margin-bottom: 14px;
}
.filter-row.no-status { grid-template-columns: minmax(160px, 1fr) max-content max-content; }
.status-tabs { display: flex; gap: 12px; border-bottom: 1px solid var(--border); margin-bottom: 12px; padding-bottom: 2px; }
.table-panel { min-width: 0; max-width: 100%; overflow: hidden; padding: 20px; }
[data-admin-table] { min-width: 0; max-width: 100%; }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; overflow-y: visible; border-radius: 12px; overscroll-behavior-x: contain; position: relative; }
.data-table { width: max-content; min-width: 100%; border-collapse: collapse; background: rgba(255,255,255,.62); border-radius: 12px; overflow: hidden; }
.data-table th, .data-table td { padding: 11px 10px; border-bottom: 1px solid rgba(128,151,168,.18); text-align: left; font-size: clamp(12px, 1.05vw, 14px); vertical-align: middle; }
.data-table th { color: var(--muted); background: rgba(247,250,252,.92); font-weight: 750; white-space: nowrap; line-height: 1.25; }
.data-table td[data-fit-one-line] { white-space: nowrap; line-height: 1.25; }
.data-table tr:hover td { background: rgba(var(--secondary-rgb), .035); }
.data-table.has-actions td:last-child, .data-table.has-actions th:last-child { position: sticky; right: 0; background: rgba(255,255,255,.94); box-shadow: -8px 0 18px rgba(41,68,89,.05); z-index: 2; }
.data-table.has-actions th:last-child { z-index: 3; }
.data-table.has-actions th:last-child, .data-table.has-actions td.action-cell { width: 1%; min-width: 128px; text-align: right; }
.pinned-table-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  position: relative;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
}
.pinned-table-shell .table-scroll {
  min-width: 0;
  border-radius: 12px 0 0 12px;
}
.pinned-actions {
  position: relative;
  width: max-content;
  min-width: max-content;
  z-index: 8;
  background: rgba(255,255,255,.96);
  box-shadow: -10px 0 22px rgba(41,68,89,.08);
}
.pinned-action-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 43px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  background: rgba(247,250,252,.96);
  font-weight: 700;
  font-size: clamp(12px, 1.15vw, 14px);
}
.pinned-action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 66px;
  padding: 0 10px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.96);
}
.pinned-action-row .table-actions {
  width: max-content;
  min-width: max-content;
  justify-content: flex-end;
  background: rgba(255,255,255,.96);
}
.cell-text {
  display: -webkit-box;
  max-width: 520px;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.55;
}
.cell-address-small {
  display: -webkit-box;
  max-width: 260px;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.data-table [data-fit-one-line] .cell-text {
  display: inline-block;
  max-width: none;
  overflow: visible;
  overflow-wrap: normal;
  white-space: nowrap;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  line-height: 1.25;
}
.tag { display: inline-flex; align-items: center; min-height: 24px; border-radius: 999px; padding: 0 9px; background: var(--secondary-soft); color: var(--blue); font-size: clamp(10px, 1vw, 12px); font-weight: 700; white-space: nowrap; line-height: 1.15; }
.tag.green { background: var(--primary-soft); color: var(--green-2); }
.tag.orange { background: var(--accent-soft); color: var(--orange); }
.tag.red { background: var(--danger-soft); color: var(--red); }
.table-actions { display: inline-flex; justify-content: flex-end; gap: 8px; white-space: nowrap; max-width: 100%; }
.table-actions .btn { min-height: 30px; padding: 0 10px; border-radius: 8px; font-size: 12px; }
.table-thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
}
.pager {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(128,151,168,.18);
  color: var(--muted);
  font-size: 13px;
}
.pager-summary { justify-self: start; white-space: nowrap; }
.pager-summary strong { color: var(--text); font-weight: 750; }
.pager-controls { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pager button {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,.84);
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.pager button:not(:disabled):hover { border-color: rgba(var(--primary-rgb), .42); color: var(--green-2); background: var(--primary-soft); }
.pager button.active { border-color: var(--green-2); color: #fff; background: var(--green-2); font-weight: 750; }
.pager button .lucide { width: 16px; height: 16px; }
.pager-ellipsis { display: inline-grid; place-items: center; width: 24px; height: 34px; }
.pager-size { display: inline-flex; align-items: center; justify-self: end; gap: 8px; white-space: nowrap; }
.pager-size select { width: auto; min-width: 82px; min-height: 34px; padding: 0 28px 0 10px; border-radius: 8px; font-size: 13px; }
.settings-form {
  padding: 22px;
  position: relative;
  max-width: calc(100% - 300px);
  display: grid;
  gap: 18px;
}
.admin-content:has(.super-side) { grid-template-columns: 1fr 270px; align-items: start; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.settings-form > .form-grid { padding-bottom: 72px; }
.form-grid.compact { grid-template-columns: 1fr; max-height: 64vh; overflow: auto; padding-right: 4px; }
.span-2 { grid-column: 1 / -1; }
.sticky-save {
  position: sticky;
  bottom: 16px;
  z-index: 8;
  margin-top: -72px;
  padding: 12px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 14px 34px rgba(41,68,89,.12);
}
.sticky-save span { margin-right: auto; color: var(--muted); }
.super-side { display: grid; gap: 14px; }
.super-side .glass-panel { padding: 18px; }
.super-status-card {
  display: grid;
  gap: 8px;
  align-content: start;
}
.super-status-card span,
.super-check-card p,
.progress-card p {
  color: var(--muted);
  line-height: 1.65;
}
.super-status-card strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
}
.super-status-card p,
.super-check-card p,
.progress-card p { margin: 0; }
.super-check-card {
  display: grid;
  gap: 10px;
  border-color: rgba(var(--accent-rgb), .24);
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(var(--accent-rgb), .06));
}
.super-check-card h3,
.progress-card h3 { margin: 0; font-size: 17px; }
.ring {
  width: 132px;
  height: 132px;
  margin: 18px auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.96) 0 53%, transparent 54%),
    conic-gradient(var(--green) 0 92%, rgba(var(--primary-rgb), .13) 92% 100%);
}
.warning-card { border-color: rgba(var(--accent-rgb), .28); }
.charge-grid, .split-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.charge-grid > *,
.split-tables > div { min-width: 0; }
.split-tables h3,
.charge-settings-form h3 { margin: 0 0 14px; font-size: 18px; }
.charge-settings-form { display: grid; gap: 14px; align-content: start; }
.modal { max-width: 580px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 18px; }
.modal.admin-entity-modal {
  width: min(960px, calc(100vw - 40px));
  max-width: none;
  padding: 0;
  overflow: hidden;
  animation: dialogPop var(--speed) ease both;
}
.modal.admin-merchant-modal { width: min(1060px, calc(100vw - 40px)); }
.modal.admin-product-modal { width: min(820px, calc(100vw - 40px)); }
.modal.admin-classified-modal { width: min(1180px, calc(100vw - 32px)); }
.modal.admin-agreement-modal {
  width: min(1500px, calc(100vw - 32px));
  height: min(900px, calc(100vh - 24px));
}
.modal.admin-compact-modal { width: min(700px, calc(100vw - 40px)); }
.modal.admin-minimal-modal { width: min(560px, calc(100vw - 40px)); }
.modal.admin-entity-modal form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: calc(100vh - 42px);
}
.modal.admin-entity-modal .section-head {
  padding: 18px 24px;
  margin: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px);
}
.modal.admin-entity-modal .section-head h3 { margin: 0; font-size: 21px; }
.modal.admin-entity-modal .section-head p {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
  white-space: normal;
}
.modal.admin-entity-modal .section-head .icon-btn {
  align-self: flex-start;
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.admin-modal-fields {
  display: grid;
  gap: 16px;
  max-height: calc(100vh - 186px);
  overflow: auto;
  padding: 20px 24px;
  background: rgba(247,250,252,.48);
}
.admin-classified-editor { display: grid; gap: 18px; }
.admin-classified-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.admin-classified-editor-head h4 { margin: 0; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; }
.admin-classified-editor-head p { margin: 8px 0 0; color: var(--muted); }
.admin-classified-editor-head > span {
  flex: 0 0 auto;
  color: var(--orange);
  font-weight: 900;
  background: rgba(var(--accent-rgb), .11);
  border: 1px solid rgba(var(--accent-rgb), .18);
  border-radius: 12px;
  padding: 9px 12px;
}
.admin-classified-publish-grid { grid-template-columns: 300px minmax(0, 1fr); }
.admin-classified-category-picker { top: 0; }
.admin-classified-form > .form-grid { gap: 16px; }
.admin-classified-form .field:has([name="title"]),
.admin-classified-form .field:has([name="content"]),
.admin-classified-form .image-url-field { grid-column: 1 / -1; }
.admin-classified-audit-panel {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), .08), rgba(255,255,255,.72));
  border-color: rgba(var(--primary-rgb), .18);
}
.modal-form-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62);
}
.modal-form-section h4 {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  letter-spacing: 0;
  line-height: 1.25;
}
.modal-form-section .form-grid { gap: 14px; }
.modal-form-section .image-url-field,
.modal-form-section .span-2 { grid-column: 1 / -1; }
.admin-password-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
}
.admin-password-input button {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.82);
  cursor: pointer;
}
.admin-password-input button:hover,
.admin-password-input button:focus-visible {
  color: var(--primary);
  border-color: rgba(var(--primary-rgb), .45);
  background: #fff;
  outline: none;
}
.admin-password-input .lucide { width: 18px; height: 18px; }
.modal.admin-compact-modal .modal-form-section .form-grid { grid-template-columns: 1fr; }
.modal.admin-entity-modal textarea {
  min-height: 104px;
  resize: vertical;
}
.modal.admin-entity-modal .field small a {
  color: var(--green-2);
  font-weight: 800;
  text-decoration: none;
}
.modal.admin-entity-modal .field small a:hover { text-decoration: underline; }
.modal.admin-entity-modal .modal-actions {
  margin: 0;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.76);
  backdrop-filter: blur(18px);
}
.modal.admin-entity-modal .modal-actions .btn {
  min-width: 92px;
}
.modal.admin-agreement-modal form {
  height: 100%;
  max-height: none;
}
.modal.admin-agreement-modal .section-head {
  padding: 16px 22px;
}
.modal.admin-agreement-modal .section-head p {
  max-width: 900px;
}
.modal.admin-agreement-modal .admin-modal-fields {
  display: block;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background: #fff;
}
.modal.admin-agreement-modal .modal-actions {
  align-items: center;
  padding: 14px 22px;
}
.modal-save-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.modal-save-hint .lucide {
  width: 17px;
  height: 17px;
  color: var(--blue);
}
.agreement-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 370px);
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #fff;
}
.agreement-editor-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.agreement-meta-grid {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(240px, 1.65fr) minmax(150px, .8fr) minmax(170px, 1fr);
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(248,250,252,.72);
}
.agreement-meta-grid .field { min-width: 0; }
.agreement-meta-grid .field > span {
  color: var(--text);
  font-weight: 850;
}
.agreement-meta-grid input {
  height: 42px;
  background: #fff;
}
.agreement-meta-grid input:disabled {
  color: var(--text);
  opacity: 1;
  cursor: not-allowed;
  background: rgba(var(--primary-rgb), .045);
}
.agreement-readonly-field small,
.agreement-status-field small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agreement-status-field input:disabled {
  color: var(--green-2);
  font-weight: 900;
  background: rgba(var(--primary-rgb), .08);
  border-color: rgba(var(--primary-rgb), .22);
}
.agreement-content-field {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  background: #fff;
}
.agreement-editor-toolbar,
.agreement-editor-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.agreement-editor-toolbar {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.agreement-editor-toolbar > span:first-child {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.agreement-editor-toolbar strong {
  color: var(--text);
  font-size: 16px;
}
.agreement-editor-toolbar small,
.agreement-editor-feedback {
  color: var(--muted);
  font-size: 12px;
}
.agreement-editor-feedback {
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  white-space: nowrap;
}
.modal.admin-agreement-modal textarea[name="content"] {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 22px 24px;
  resize: none;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.78;
  box-shadow: none;
}
.modal.admin-agreement-modal textarea[name="content"]:focus {
  box-shadow: inset 0 0 0 2px rgba(var(--secondary-rgb), .2);
}
.agreement-editor-statusbar {
  min-height: 42px;
  padding: 9px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: rgba(248,250,252,.88);
  font-size: 12px;
  font-weight: 700;
}
.agreement-editor-statusbar > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.agreement-editor-statusbar .lucide {
  width: 15px;
  height: 15px;
  color: var(--blue);
}
.agreement-variable-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  border-left: 1px solid var(--border);
  background: rgba(248,250,252,.78);
}
.agreement-variable-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 16px 13px;
}
.agreement-variable-panel h4 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
}
.agreement-variable-panel header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.agreement-variable-panel header > span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(var(--secondary-rgb), .16);
  border-radius: 8px;
  color: var(--blue);
  background: rgba(var(--secondary-rgb), .06);
  font-size: 11px;
  font-weight: 900;
}
.agreement-variable-search {
  position: relative;
  display: block;
  margin: 0 16px 12px;
}
.agreement-variable-search .lucide {
  position: absolute;
  z-index: 1;
  left: 12px;
  top: 50%;
  width: 17px;
  height: 17px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}
.agreement-variable-search input {
  width: 100%;
  height: 42px;
  padding-left: 38px;
  background: #fff;
}
.agreement-variable-scroll {
  min-height: 0;
  overflow: auto;
  padding: 0 12px 18px;
  scrollbar-gutter: stable;
}
.agreement-variable-group {
  display: grid;
  gap: 8px;
  padding: 11px 0 4px;
}
.agreement-variable-group[hidden],
.agreement-variable-item[hidden] {
  display: none !important;
}
.agreement-variable-group h5 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0 4px;
  color: var(--blue);
  font-size: 13px;
}
.agreement-variable-group h5 .lucide {
  width: 16px;
  height: 16px;
}
.agreement-variable-group h5 span {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}
.agreement-variable-list {
  display: grid;
  gap: 7px;
}
.agreement-variable-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  width: 100%;
  padding: 10px 11px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 4px 14px rgba(41,68,89,.035);
  cursor: pointer;
  transition: border-color var(--speed), box-shadow var(--speed), transform var(--speed), background var(--speed);
}
.agreement-variable-item:hover {
  z-index: 1;
  border-color: rgba(var(--secondary-rgb), .36);
  background: rgba(var(--secondary-rgb), .035);
  box-shadow: 0 8px 22px rgba(var(--secondary-rgb), .1);
  transform: translateY(-1px);
}
.agreement-variable-item.is-inserted {
  border-color: rgba(var(--primary-rgb), .42);
  background: rgba(var(--primary-rgb), .08);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .09);
}
.agreement-variable-item > .lucide {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 17px;
  height: 17px;
  color: var(--blue);
}
.agreement-variable-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.agreement-variable-name code {
  overflow: hidden;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agreement-variable-name strong {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 11px;
}
.agreement-variable-item small {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agreement-variable-item small span {
  margin-right: 6px;
  color: #8d99a6;
}
.agreement-variable-empty {
  padding: 28px 12px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.hover-card { transition: transform var(--speed), box-shadow var(--speed), border-color var(--speed); }
.hover-card:hover { transform: translateY(-3px); box-shadow: 0 22px 54px rgba(41,68,89,.16); border-color: var(--primary-border); }

body[data-admin-section="super"].admin-bg {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  padding-right: 18px;
}
body[data-admin-section="super"] .admin-sidebar {
  width: 220px;
  max-width: 220px;
  padding: 16px 12px;
}
body[data-admin-section="super"] .admin-menu {
  gap: 6px;
}
body[data-admin-section="super"] .admin-menu > a {
  min-height: 44px;
  padding: 0 12px;
}
body[data-admin-section="super"] .admin-main {
  gap: 14px;
}
body[data-admin-section="super"] .admin-content {
  gap: 16px;
}
body[data-admin-section="super"] .admin-content:has(.super-side) {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: 16px;
  align-items: start;
}
body[data-admin-section="super"] .settings-form {
  width: 100%;
  max-width: none;
  padding: 20px;
  gap: 16px;
  overflow: visible;
}
.super-settings-form > .section-head {
  margin-bottom: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(128,151,168,.18);
}
.super-settings-form > .section-head h1 {
  font-size: clamp(24px, 2vw, 32px);
}
.super-settings-sections {
  display: grid;
  gap: 14px;
  padding-bottom: 74px;
}
.super-settings-section {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(128,151,168,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}
.super-settings-section > header {
  display: grid;
  gap: 5px;
}
.super-settings-section h2 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
}
.super-settings-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}
.super-settings-section .form-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: start;
}
.super-settings-section .field {
  gap: 7px;
  min-width: 0;
}
.super-settings-section .setting-size-sm {
  grid-column: span 3;
}
.super-settings-section .setting-size-md {
  grid-column: span 4;
}
.super-settings-section .setting-size-lg {
  grid-column: span 6;
}
.super-settings-section .setting-size-full,
.super-settings-section .setting-wide {
  grid-column: 1 / -1;
}
.super-settings-section .field span {
  font-size: 13px;
  line-height: 1.25;
}
.super-settings-section .field small {
  color: var(--muted);
  line-height: 1.45;
  font-size: 12px;
}
.super-settings-section input,
.super-settings-section select,
.super-settings-section textarea {
  min-height: 40px;
  border-radius: 9px;
  background: rgba(255,255,255,.88);
}
.super-settings-section input,
.super-settings-section select {
  width: 100%;
}
.super-settings-section textarea {
  min-height: 94px;
}
.super-settings-section .image-input-row {
  grid-template-columns: minmax(0, 1fr) auto;
}
.super-settings-section .image-preview {
  width: 92px;
  height: 68px;
  border-radius: 10px;
}
.super-settings-section [data-setting-field="mobile_qr_upload_url"] .image-preview {
  width: 120px;
  height: 120px;
  padding: 6px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
body[data-admin-section="super"] .sticky-save {
  bottom: 14px;
  margin-top: -72px;
  padding: 10px;
}
body[data-admin-section="super"] .sticky-save span {
  font-size: 13px;
}
body[data-admin-section="super"] .super-settings-form > .object-storage-sync {
  margin-bottom: 74px;
}
body[data-admin-section="super"] .super-side {
  position: sticky;
  top: 82px;
  gap: 12px;
}
body[data-admin-section="super"] .super-side .glass-panel {
  padding: 16px;
  border-radius: 14px;
}
body[data-admin-section="super"] .ring {
  width: 112px;
  height: 112px;
  margin: 14px auto;
  font-size: 24px;
}
body[data-admin-section="super"] .table-panel {
  padding: 22px;
}
body[data-admin-section="super"] .table-panel > .section-head {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(128,151,168,.18);
}
body[data-admin-section="super"] .data-table th,
body[data-admin-section="super"] .data-table td {
  padding: 12px 11px;
}
.time-refresh-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  min-width: 0;
}
.time-refresh-form {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(240px, 1fr) max-content;
  gap: 16px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(128,151,168,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.68);
}
.time-refresh-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.time-refresh-notes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.time-refresh-notes > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(128,151,168,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.64);
}
.time-refresh-notes .lucide {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 12px;
  color: var(--green-2);
  background: var(--primary-soft);
}
.time-refresh-notes span {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.time-refresh-notes strong {
  color: var(--text);
  line-height: 1.25;
}
.time-refresh-notes small {
  color: var(--muted);
  line-height: 1.5;
}
.time-refresh-result {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.time-refresh-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.time-refresh-summary span {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(128,151,168,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}
.time-refresh-summary small {
  color: var(--muted);
  font-weight: 700;
}
.time-refresh-summary strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1.1;
}
.time-refresh-table {
  border: 1px solid rgba(128,151,168,.18);
}
.time-refresh-footnote,
.time-refresh-done p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.time-refresh-done {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(var(--primary-rgb), .18);
  border-radius: 14px;
  background: rgba(var(--primary-rgb), .06);
}
.time-refresh-done h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--green-2);
  font-size: 18px;
}
.time-refresh-detail-list {
  display: grid;
  gap: 8px;
}
.time-refresh-detail-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.68);
}
.time-refresh-detail-list strong {
  color: var(--text);
}
.time-refresh-detail-list span {
  color: var(--muted);
  white-space: nowrap;
}
.region-adapter-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 22px;
}
.region-adapter-current {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(var(--primary-rgb), .2);
  border-radius: 14px;
  background: rgba(var(--primary-rgb), .06);
}
.region-adapter-current > .lucide {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  color: var(--green-2);
  background: var(--primary-soft);
}
.region-adapter-current span {
  display: grid;
  gap: 3px;
}
.region-adapter-current small { color: var(--muted); }
.region-adapter-current strong { color: var(--text); font-size: 18px; }
.region-adapter-form {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(128,151,168,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.68);
}
.region-adapter-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.region-adapter-confirm {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 14px;
  align-items: end;
  padding-top: 14px;
  border-top: 1px solid rgba(128,151,168,.16);
}
.region-adapter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.region-adapter-scope {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.region-adapter-scope > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(128,151,168,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.64);
}
.region-adapter-scope .lucide {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 12px;
  color: var(--secondary);
  background: rgba(36,118,255,.1);
}
.region-adapter-scope span,
.region-adapter-warning span,
.region-adapter-source span {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.region-adapter-scope strong,
.region-adapter-warning strong,
.region-adapter-source strong { color: var(--text); }
.region-adapter-scope small,
.region-adapter-warning small,
.region-adapter-source small {
  color: var(--muted);
  line-height: 1.55;
}
.region-adapter-warning,
.region-adapter-source {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
}
.region-adapter-warning {
  grid-template-columns: 38px minmax(0, 1fr);
  border: 1px solid rgba(229,72,77,.22);
  background: rgba(229,72,77,.06);
}
.region-adapter-source {
  border: 1px solid rgba(128,151,168,.2);
  background: rgba(255,255,255,.68);
}
.region-adapter-warning > .lucide,
.region-adapter-source > .lucide {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 12px;
}
.region-adapter-warning > .lucide {
  color: var(--danger);
  background: rgba(229,72,77,.1);
}
.region-adapter-source > .lucide {
  color: var(--green-2);
  background: var(--primary-soft);
}
.region-adapter-result {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.region-adapter-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.region-adapter-preview-head h3,
.region-adapter-preview-head p { margin: 0; }
.region-adapter-preview-head p {
  margin-top: 5px;
  color: var(--muted);
}
.region-adapter-preview-head > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-2);
  font-weight: 800;
  white-space: nowrap;
}
.region-adapter-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.region-adapter-summary > span {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(128,151,168,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}
.region-adapter-summary small {
  color: var(--muted);
  font-weight: 700;
}
.region-adapter-summary strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1.1;
}
.region-adapter-sample-table {
  border: 1px solid rgba(128,151,168,.18);
}
.region-adapter-sample-table table { min-width: 720px; }
.region-adapter-sample-table td:nth-child(2) {
  min-width: 340px;
  white-space: normal;
}
.region-adapter-sample-table td:first-child small {
  display: block;
  max-width: 220px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.region-adapter-footnote,
.region-adapter-done > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.region-adapter-done {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(var(--primary-rgb), .2);
  border-radius: 14px;
  background: rgba(var(--primary-rgb), .06);
}
.region-adapter-done h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--green-2);
  font-size: 18px;
}
.region-adapter-result-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.region-adapter-result-meta > span {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.72);
}
.region-adapter-result-meta strong { color: var(--text); }
.text-replace-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 22px;
}
.text-replace-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(128,151,168,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.68);
}
.text-replace-form textarea {
  min-height: 76px;
  resize: vertical;
}
.text-replace-confirm-field {
  max-width: 420px;
}
.text-replace-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.text-replace-scope {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(var(--primary-rgb), .18);
  border-radius: 14px;
  background: rgba(var(--primary-rgb), .06);
}
.text-replace-scope > .lucide {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 12px;
  color: var(--green-2);
  background: var(--primary-soft);
}
.text-replace-scope span {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.text-replace-scope strong { color: var(--text); }
.text-replace-scope small {
  color: var(--muted);
  line-height: 1.55;
}
.text-replace-result {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.text-replace-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.text-replace-summary > span {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(128,151,168,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}
.text-replace-summary small {
  color: var(--muted);
  font-weight: 700;
}
.text-replace-summary strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1.1;
}
.text-replace-group-table,
.text-replace-match-table {
  border: 1px solid rgba(128,151,168,.18);
}
.text-replace-match-table table { min-width: 960px; }
.text-replace-match-table td:nth-child(1) { width: 190px; }
.text-replace-match-table td:nth-child(2),
.text-replace-match-table td:nth-child(3) {
  min-width: 300px;
  max-width: 440px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.55;
}
.text-replace-match-table td:first-child strong,
.text-replace-match-table td:first-child small {
  display: block;
}
.text-replace-match-table td:first-child small {
  margin-top: 4px;
  color: var(--muted);
}
.text-replace-match-table mark {
  padding: 1px 3px;
  border-radius: 4px;
  color: #6c3e00;
  background: #fff0b8;
}
.text-replace-match-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}
.text-replace-match-head h3 { margin: 0; }
.text-replace-match-head span {
  color: var(--muted);
  text-align: right;
  overflow-wrap: anywhere;
}
.text-replace-footnote,
.text-replace-done p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.text-replace-done {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(var(--primary-rgb), .18);
  border-radius: 14px;
  background: rgba(var(--primary-rgb), .06);
}
.text-replace-done h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--green-2);
  font-size: 18px;
}
.image-cleanup-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
  padding: 22px;
}
.image-cleanup-panel > .section-head {
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(128,151,168,.18);
}
.image-cleanup-head > div:first-child { flex: 1 1 420px; }
.image-cleanup-head .image-cleanup-actions { flex: 0 0 auto; }
.image-cleanup-head .btn { white-space: nowrap; }
.image-cleanup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.image-cleanup-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(128,151,168,.20);
  border-radius: 12px;
  background: rgba(255,255,255,.60);
}
.image-cleanup-summary > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid rgba(128,151,168,.18);
}
.image-cleanup-summary > div:last-child { border-right: 0; }
.image-cleanup-summary span,
.image-cleanup-summary small { color: var(--muted); }
.image-cleanup-summary span { font-size: 13px; font-weight: 700; }
.image-cleanup-summary strong { color: var(--text); font-size: 25px; line-height: 1.1; }
.image-cleanup-summary small { font-size: 12px; line-height: 1.4; }
.image-cleanup-sources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(128,151,168,.20);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,.52);
}
.image-cleanup-sources > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) max-content;
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 13px 15px;
}
.image-cleanup-sources > div + div { border-left: 1px solid rgba(128,151,168,.18); }
.image-cleanup-sources .lucide {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 8px;
  color: var(--primary);
  background: rgba(var(--primary-rgb), .08);
}
.image-cleanup-sources span { display: grid; gap: 4px; min-width: 0; }
.image-cleanup-sources strong { color: var(--text); font-size: 14px; }
.image-cleanup-sources small { color: var(--muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.image-cleanup-sources em {
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--muted);
  background: rgba(128,151,168,.10);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}
.image-cleanup-sources em.is-ready { color: var(--green-2); background: rgba(17,174,117,.10); }
.image-cleanup-sources em.is-error { color: var(--red); background: var(--danger-soft); }
.image-cleanup-safety {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(var(--primary-rgb), .18);
  border-radius: 12px;
  background: rgba(var(--primary-rgb), .055);
}
.image-cleanup-safety > .lucide {
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 10px;
  color: var(--green-2);
  background: rgba(255,255,255,.74);
}
.image-cleanup-safety strong { color: var(--text); }
.image-cleanup-safety p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.image-cleanup-safety > span {
  color: var(--green-2);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.image-cleanup-list-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-end;
  padding-top: 2px;
}
.image-cleanup-list-head h2,
.image-broken-references h2 { margin: 0; font-size: 18px; }
.image-cleanup-list-head p,
.image-broken-references p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.image-cleanup-table { min-width: 1180px; }
.image-cleanup-file {
  display: grid;
  grid-template-columns: 54px minmax(220px, 1fr);
  gap: 11px;
  align-items: center;
  min-width: 0;
}
.image-cleanup-file img {
  width: 54px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
}
.image-cleanup-placeholder {
  width: 54px;
  height: 44px;
  display: grid !important;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}
.image-cleanup-placeholder .lucide { width: 19px; height: 19px; }
.image-cleanup-file span,
.image-cleanup-date { display: grid; gap: 4px; min-width: 0; }
.image-cleanup-file strong {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.image-cleanup-file code,
.image-broken-table code {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.image-cleanup-date small { color: var(--muted); font-size: 11px; }
.image-storage-detail,
.image-reference-detail {
  display: grid;
  gap: 4px;
  min-width: 180px;
}
.image-storage-detail small,
.image-reference-detail small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.image-storage-detail code {
  max-width: 340px;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}
.image-reference-detail small {
  display: -webkit-box;
  max-width: 280px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.image-reference-state,
.image-cleanup-result {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.image-reference-state.is-referenced,
.image-cleanup-result.is-deleted { color: var(--green-2); background: rgba(17,174,117,.10); }
.image-reference-state.is-unused,
.image-cleanup-result.is-failed,
.image-cleanup-result.is-partial { color: var(--red); background: var(--danger-soft); }
.image-cleanup-result.is-skipped { color: var(--muted); background: rgba(128,151,168,.12); }
.image-cleanup-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 150px;
}
.image-cleanup-empty .lucide { width: 32px; height: 32px; color: var(--green-2); }
.image-cleanup-empty div { text-align: left; }
.image-cleanup-empty strong { color: var(--text); }
.image-cleanup-empty p { margin: 4px 0 0; }
.image-broken-references {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(128,151,168,.18);
}
.image-broken-references[hidden] { display: none; }
.image-broken-references > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.image-broken-references > header > span {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--red);
  background: var(--danger-soft);
  font-weight: 750;
}
.image-broken-table { min-width: 720px; }
.image-cleanup-report {
  display: grid;
  gap: 13px;
  padding-top: 18px;
  border-top: 1px solid rgba(128,151,168,.18);
}
.image-cleanup-report[hidden] { display: none; }
.image-cleanup-report > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.image-cleanup-report h2 { margin: 0; font-size: 18px; }
.image-cleanup-report p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.image-cleanup-report-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid rgba(128,151,168,.18);
  border-radius: 8px;
  overflow: hidden;
}
.image-cleanup-report-summary > span {
  display: grid;
  gap: 4px;
  padding: 11px 13px;
  border-right: 1px solid rgba(128,151,168,.18);
}
.image-cleanup-report-summary > span:last-child { border-right: 0; }
.image-cleanup-report-summary small { color: var(--muted); font-size: 11px; }
.image-cleanup-report-summary strong { color: var(--text); font-size: 17px; }
.image-cleanup-report-table { min-width: 900px; }
.image-cleanup-report-table td code { display: block; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.image-cleanup-report-table .cell-subtext { display: block; max-width: 360px; margin-top: 4px; color: var(--muted); font-size: 11px; }
.image-cleanup-report-table .cell-text { display: block; min-width: 140px; line-height: 1.5; }

@media (max-width: 1180px) {
  .modal.admin-agreement-modal { width: calc(100vw - 24px); }
  .agreement-editor-layout { grid-template-columns: minmax(0, 1fr) 330px; }
  .agreement-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-top-grid, .promo-grid, .web-grid, .checkout-layout, .detail-layout, .apply-layout, .store-extra-grid, .order-detail-grid { grid-template-columns: 1fr; }
  .promo-grid { align-items: start; }
  .promo-main { grid-template-rows: auto auto; }
  .classified-detail-shell, .classified-publish-grid { grid-template-columns: 1fr; }
  .checkout-shell, .pay-layout { grid-template-columns: 1fr; }
  .classified-contact-panel, .classified-category-picker { position: static; }
  .web-grid { grid-template-rows: none; gap: 24px; }
  .content-span { display: grid; gap: 24px; }
  .side-stack { display: grid; gap: 20px; align-content: start; }
  .recommend-panel,
  .web-grid .classified-panel,
  .guarantee-card,
  .hot-info-card {
    grid-column: auto;
    grid-row: auto;
    height: auto;
  }
  .guarantee-card { grid-template-rows: none; }
  .hot-info-card { grid-auto-rows: auto; overflow: visible; }
  .merchant-grid { grid-template-columns: repeat(3, 1fr); }
  .merchant-directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .banner-card { height: clamp(220px, 34vw, 280px); }
  .store-layout { grid-template-columns: 1fr; }
  .store-cats, .cart-panel, .order-summary, .contact-card, .apply-hero { position: static; }
  .checkout-submit-bar { position: static; }
  .apply-hero { min-height: auto; }
  .site-header { grid-template-columns: 1fr; height: auto; padding: 16px; }
  .site-nav { width: 100%; justify-content: center; overflow-x: auto; gap: 6px; padding: 6px; }
  .site-nav a { height: 42px; min-width: 124px; white-space: nowrap; }
  .header-actions { width: 100%; justify-content: center; }
  .admin-bg { grid-template-columns: 1fr; padding: 12px; gap: 12px; }
  .admin-sidebar { position: static; width: 100%; max-width: none; height: auto; }
  .admin-menu { grid-template-columns: repeat(auto-fit, minmax(142px, 1fr)); overflow-x: auto; align-items: start; }
  .submenu { margin-left: 28px; }
  .settings-form { max-width: 100%; }
  .admin-content:has(.super-side) { grid-template-columns: 1fr; }
  body[data-admin-section="super"].admin-bg { grid-template-columns: 1fr; padding: 12px; }
  body[data-admin-section="super"] .super-settings-section .setting-size-sm,
  body[data-admin-section="super"] .super-settings-section .setting-size-md {
    grid-column: span 4;
  }
  body[data-admin-section="super"] .super-settings-section .setting-size-lg {
    grid-column: span 6;
  }
  body[data-admin-section="super"] .admin-sidebar {
    position: static;
    width: 100%;
    max-width: none;
    height: auto;
  }
  body[data-admin-section="super"] .admin-content:has(.super-side) { grid-template-columns: 1fr; }
  body[data-admin-section="super"] .super-side {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .time-refresh-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .time-refresh-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .region-adapter-confirm { grid-template-columns: 1fr; }
  .region-adapter-actions { justify-content: flex-start; }
  .region-adapter-scope { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .text-replace-actions { justify-content: flex-start; }
  .time-refresh-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .image-cleanup-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .image-cleanup-summary > div:nth-child(3n) { border-right: 0; }
  .image-cleanup-summary > div:nth-child(-n + 3) { border-bottom: 1px solid rgba(128,151,168,.18); }
  .image-cleanup-report-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .image-cleanup-report-summary > span:nth-child(3n) { border-right: 0; }
  .image-cleanup-report-summary > span:nth-child(-n + 3) { border-bottom: 1px solid rgba(128,151,168,.18); }
  body[data-admin-section="super"] .ring {
    width: 96px;
    height: 96px;
    font-size: 22px;
  }
  .admin-detail-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .modal.admin-agreement-modal .admin-modal-fields { overflow: auto; }
  .agreement-editor-layout {
    display: block;
    height: auto;
  }
  .agreement-editor-main { overflow: visible; }
  .agreement-content-field { min-height: 520px; }
  .agreement-variable-panel {
    min-height: 520px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }
}
@media (max-width: 720px) {
  .auth-shell { grid-template-columns: 1fr; padding: 16px; width: 100%; align-content: center; }
  .auth-visual { display: none; }
  .auth-card { min-height: auto; padding: 24px; }
  .web-main, .site-header, .site-footer { width: calc(100% - 24px); }
  .site-nav a { flex: 1 1 0; min-width: 0; padding: 0 12px; }
  .header-actions { flex-wrap: wrap; }
  .mobile-access-popover { width: min(246px, calc(100vw - 32px)); left: 0; right: auto; transform: translateY(-6px); transform-origin: top left; }
  .mobile-access-popover::before { left: 46px; right: auto; }
  .mobile-access:hover .mobile-access-popover,
  .mobile-access:focus-within .mobile-access-popover,
  .mobile-access.is-open .mobile-access-popover { transform: translateY(0); }
  .floating-actions { right: 12px; gap: 10px; }
  .floating-action { width: 56px; height: 56px; border-width: 5px; }
  .floating-action .lucide { width: 19px; height: 19px; }
  .floating-action span { font-size: 12px; }
  .merchant-grid, .merchant-directory-grid, .info-list, .info-card-grid, .stat-grid, .form-grid, .charge-grid, .split-tables, .address-grid { grid-template-columns: 1fr; }
  .checkout-card, .pay-main-card, .pay-side-card { padding: 18px; }
  .checkout-block { padding: 14px; }
  .checkout-block-head, .checkout-page-head, .pay-page-head { align-items: flex-start; flex-direction: column; }
  .checkout-address-card { grid-template-columns: 1fr; }
  .checkout-pay-options, .classified-pay-options, .order-payment-selector .checkout-pay-options { grid-template-columns: 1fr; }
  .checkout-pay-options .pay-option { flex: 0 0 240px; }
  .wallet-balance-panel, .wallet-ledger-panel { padding: 16px; }
  .wallet-balance-summary { align-items: flex-start; padding: 16px; }
  .wallet-balance-summary strong { font-size: 27px; }
  .wallet-transaction-row { grid-template-columns: 38px minmax(0, 1fr); }
  .wallet-transaction-amount { grid-column: 2; justify-items: start; }
  .checkout-submit-bar, .pay-action-bar { grid-template-columns: 1fr; }
  .pay-action-bar.is-classified-action > a,
  .pay-action-bar.is-classified-action > [data-refresh-payment] {
    grid-column: auto;
    grid-row: auto;
  }
  .manual-payment-panel, .payment-unavailable-panel, .payment-result { grid-template-columns: 1fr; }
  .manual-payment-panel img, .payment-qr-placeholder { width: 100%; max-width: 220px; height: auto; aspect-ratio: 1; justify-self: center; }
  .payment-info-head { align-items: flex-start; flex-direction: column; }
  .payment-info-list p { grid-template-columns: 1fr; gap: 6px; }
  .payment-info-list strong { text-align: left; }
  .checkout-service-row { grid-template-columns: 1fr; }
  .image-input-row { grid-template-columns: 1fr; }
  .quick-grid, .process-steps { grid-template-columns: repeat(2, 1fr); }
  .banner-card { height: 160px; }
  .banner-nav { width: 34px; height: 34px; }
  .banner-nav .lucide { width: 18px; height: 18px; }
  .banner-prev { left: 8px; }
  .banner-next { right: 8px; }
  .category-strip { padding: 10px 8px; }
  .category-strip a { min-width: 54px; min-height: 58px; flex-basis: 68px; font-size: 11px; }
  .category-strip img { width: 38px; height: 38px; }
  .grid-icon { width: 31px; height: 31px; }
  .process-steps span::after { display: none; }
  .service-mini { grid-template-columns: 42px 1fr; }
  .service-mini .btn { grid-column: 1 / -1; }
  .search-box { grid-template-columns: 1fr; border-radius: 18px; }
  .filter-bar, .filter-row, .filter-row.no-status, .store-filter-bar { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; justify-items: stretch; gap: 10px; }
  .pager-summary, .pager-size { justify-self: start; }
  .pager-controls { justify-content: flex-start; max-width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .info-title-panel, .classified-publish-head, .classified-universal-note { display: grid; }
  .classified-detail-main, .classified-contact-panel, .classified-publish-shell { padding: 18px; }
  .classified-detail-head h1 { font-size: 28px; }
  .classified-attrs, .classified-side-actions, .price-mode-row, .radio-card-row, .captcha-inline { grid-template-columns: 1fr; }
  .classified-gallery { grid-template-columns: 1fr; }
  .classified-category-picker { max-height: none; }
  .classified-publish-head > span { width: max-content; max-width: 100%; }
  .classified-real-name-notice { grid-template-columns: 40px minmax(0, 1fr); }
  .classified-real-name-notice .btn { grid-column: 1 / -1; width: 100%; }
  .real-name-status { grid-template-columns: 50px minmax(0, 1fr); padding: 16px; }
  .real-name-status-icon { width: 48px; height: 48px; }
  .real-name-status > .tag { grid-column: 2; justify-self: start; }
  .real-name-summary { grid-template-columns: 1fr; }
  .real-name-summary > div:nth-child(odd) { border-right: 0; }
  .real-name-summary > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .real-name-summary > div:last-child { border-bottom: 0; }
  .real-name-form { padding: 16px; }
  .real-name-form-head { align-items: flex-start; flex-direction: column; }
  .real-name-form > .btn, .real-name-withdraw { width: 100%; }
  .review-form { grid-template-columns: 1fr; }
  .contact-dialog { width: calc(100vw - 20px); }
  .contact-dialog-head {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 18px 58px 16px 16px;
  }
  .contact-dialog-icon { width: 48px; height: 48px; border-radius: 16px; }
  .contact-dialog-icon .lucide { width: 24px; height: 24px; }
  .contact-dialog-head h3 { font-size: 22px; }
  .contact-dialog-body { grid-template-columns: 1fr; padding: 16px; }
  .contact-qr-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    text-align: left;
  }
  .contact-qr-card img { width: 112px; margin: 0; }
  .contact-qr-card img { grid-row: 1 / span 2; }
  .contact-qr-card strong,
  .contact-qr-card small { grid-column: 2; }
  .contact-dialog-actions { padding: 14px 16px 16px; }
  .contact-dialog-actions .btn { flex: 1 1 0; }
  .floating-actions {
    position: static;
    transform: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: calc(100% - 24px);
    margin: 18px auto 0;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(18px);
  }
  .floating-action {
    width: 100%;
    height: 52px;
    border-width: 3px;
    border-radius: 14px;
    animation: none;
  }
  .floating-action .lucide { width: 18px; height: 18px; }
  .floating-action span { font-size: 12px; }
  .site-footer { grid-template-columns: 1fr; text-align: center; justify-items: center; padding-bottom: 118px; }
  .site-footer .brand-lockup { justify-self: center; }
  .footer-links { width: 100%; justify-self: stretch; }
  .footer-copyright { justify-self: center; justify-items: center; text-align: center; margin-right: 0; }
  .footer-copyright p { justify-content: center; }
  .fee-standard-grid { grid-template-columns: 1fr; }
  .fee-standard-line { align-items: flex-start; flex-direction: column; }
  .fee-standard-line strong { text-align: left; }
  .list-card, .product-card, .store-hero { grid-template-columns: 1fr; }
  .stores-title { align-items: flex-start; flex-direction: column; padding: 22px; }
  .stores-title-stats { width: 100%; }
  .stores-title-stats span { flex: 1; min-width: 0; }
  .store-list-card { grid-template-columns: 1fr; padding: 14px; }
  .store-list-cover { min-height: 170px; }
  .store-enter { width: 100%; }
  .qualification-grid { grid-template-columns: 1fr; }
  .user-shell { grid-template-columns: 1fr; }
  .user-menu { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 4px; }
  .order-list-card, .user-list-card, .profile-card.user-profile-card, .profile-hero, .order-detail-head { grid-template-columns: 1fr; align-items: start; }
  .message-center-summary { align-items: flex-start; flex-direction: column; }
  .message-center-summary p { text-align: left; }
  .message-list-card { grid-template-columns: 42px minmax(0, 1fr); }
  .message-list-card > .tag { grid-column: 2; justify-self: start; }
  .user-list-actions, .profile-actions { justify-content: flex-start; }
  .admin-topbar { height: auto; padding: 12px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
  .admin-home-link { justify-self: end; }
  .admin-entry-actions { justify-self: end; flex-wrap: wrap; }
  .admin-app-trigger span { display: none; }
  .admin-app-trigger .entry-qr-icon { display: none; }
  .admin-app-trigger { width: 38px; padding: 0; }
  .topbar-actions { grid-column: 1 / -1; justify-self: stretch; }
  .topbar-actions, .top-search { width: 100%; }
  .admin-menu { grid-template-columns: 1fr; }
  body[data-admin-section="super"] .super-settings-form { padding: 16px; }
  body[data-admin-section="super"] .super-settings-sections { gap: 12px; padding-bottom: 112px; }
  body[data-admin-section="super"] .super-settings-form > .object-storage-sync { margin-bottom: 112px; }
  body[data-admin-section="super"] .super-settings-section { padding: 14px; }
  body[data-admin-section="super"] .super-settings-section .form-grid { grid-template-columns: 1fr; }
  body[data-admin-section="super"] .super-settings-section .setting-size-sm,
  body[data-admin-section="super"] .super-settings-section .setting-size-md,
  body[data-admin-section="super"] .super-settings-section .setting-size-lg,
  body[data-admin-section="super"] .super-settings-section .setting-size-full {
    grid-column: 1 / -1;
  }
  body[data-admin-section="super"] .super-side { grid-template-columns: 1fr; }
  .time-refresh-panel { padding: 16px; }
  .time-refresh-form,
  .time-refresh-notes,
  .time-refresh-summary { grid-template-columns: 1fr; }
  .time-refresh-actions { display: grid; grid-template-columns: 1fr; }
  .time-refresh-detail-list > div {
    align-items: flex-start;
    flex-direction: column;
  }
  .time-refresh-detail-list span { white-space: normal; }
  .region-adapter-panel { padding: 16px; }
  .region-adapter-selects,
  .region-adapter-scope,
  .region-adapter-summary,
  .region-adapter-confirm { grid-template-columns: 1fr; }
  .region-adapter-actions { display: grid; grid-template-columns: 1fr; }
  .region-adapter-source {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
  }
  .region-adapter-source .btn {
    grid-column: 2;
    justify-self: start;
  }
  .region-adapter-preview-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .text-replace-panel { padding: 16px; }
  .text-replace-form,
  .text-replace-summary { grid-template-columns: 1fr; }
  .text-replace-confirm-field { max-width: none; }
  .text-replace-actions { display: grid; grid-template-columns: 1fr; }
  .text-replace-match-head { align-items: flex-start; flex-direction: column; }
  .text-replace-match-head span { text-align: left; }
  .image-cleanup-panel { padding: 16px; }
  .image-cleanup-head { align-items: flex-start; }
  .image-cleanup-actions { width: 100%; justify-content: flex-start; }
  .image-cleanup-sources { grid-template-columns: 1fr; }
  .image-cleanup-sources > div { grid-template-columns: 34px minmax(0, 1fr); align-items: start; }
  .image-cleanup-sources > div + div { border-left: 0; border-top: 1px solid rgba(128,151,168,.18); }
  .image-cleanup-sources em { grid-column: 2; width: max-content; }
  .image-cleanup-safety { grid-template-columns: 38px minmax(0, 1fr); align-items: start; }
  .image-cleanup-safety > span { grid-column: 2; white-space: normal; }
  .image-cleanup-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .image-cleanup-summary > div,
  .image-cleanup-summary > div:nth-child(3n) { border-right: 1px solid rgba(128,151,168,.18); border-bottom: 1px solid rgba(128,151,168,.18); }
  .image-cleanup-summary > div:nth-child(2n) { border-right: 0; }
  .image-cleanup-summary > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .image-cleanup-report > header { align-items: flex-start; flex-direction: column; }
  .image-cleanup-report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .image-cleanup-report-summary > span,
  .image-cleanup-report-summary > span:nth-child(3n) { border-right: 1px solid rgba(128,151,168,.18); border-bottom: 1px solid rgba(128,151,168,.18); }
  .image-cleanup-report-summary > span:nth-child(2n) { border-right: 0; }
  .image-cleanup-report-summary > span:nth-last-child(-n + 2) { border-bottom: 0; }
  .image-cleanup-empty { align-items: flex-start; justify-content: flex-start; min-height: 120px; }
  .btn { min-height: 36px; padding: 0 12px; }
  .modal.admin-entity-modal { width: calc(100vw - 24px); max-width: none; }
  .modal.admin-agreement-modal {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
  }
  .modal.admin-entity-modal .section-head,
  .admin-modal-fields,
  .modal.admin-entity-modal .modal-actions { padding-left: 16px; padding-right: 16px; }
  .modal.admin-agreement-modal .admin-modal-fields { padding: 0; }
  .modal.admin-entity-modal .section-head p { font-size: 13px; }
  .agreement-meta-grid { grid-template-columns: 1fr; padding: 14px; }
  .agreement-content-field { min-height: 460px; }
  .agreement-editor-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 14px;
  }
  .agreement-editor-feedback {
    max-width: 100%;
    text-align: left;
  }
  .modal.admin-agreement-modal textarea[name="content"] { padding: 18px 16px; }
  .agreement-editor-statusbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 14px;
  }
  .agreement-variable-panel { min-height: 500px; }
  .modal.admin-agreement-modal .modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .modal.admin-agreement-modal .modal-save-hint { grid-column: 1 / -1; }
  .modal.admin-agreement-modal .modal-actions .btn { width: 100%; }
  .modal-form-section .form-grid { grid-template-columns: 1fr; }
  .modal-form-section .image-url-field,
  .modal-form-section .span-2 { grid-column: auto; }
  .sticky-save {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .sticky-save span { flex: 1 0 100%; }
  .sticky-save .btn { flex: 1 1 0; }
  .app-dialog[open][data-dialog-size="detail"] { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .app-dialog[data-dialog-size="detail"] .dialog-body { padding: 14px; }
  .app-dialog[open][data-dialog-size="record"] { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .app-dialog[data-dialog-size="record"] h3 { padding-left: 16px; font-size: 18px; }
  .app-dialog[data-dialog-size="record"] .dialog-body { padding: 14px; }
  .app-dialog[data-dialog-size="record"] .dialog-actions { padding-left: 14px; padding-right: 14px; }
  .app-dialog[data-dialog-size="record"] .detail-kv { grid-template-columns: 1fr; }
  .app-dialog[open][data-dialog-size="manager"] { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .app-dialog[data-dialog-size="manager"] h3 { padding-left: 16px; font-size: 18px; }
  .app-dialog[data-dialog-size="manager"] .dialog-body { padding: 14px; }
  .app-dialog[data-dialog-size="manager"] .dialog-actions { padding-left: 14px; padding-right: 14px; }
  .admin-manager-toolbar { align-items: flex-start; flex-direction: column; }
  .admin-manager-actions { width: 100%; justify-content: flex-start; }
  .admin-manager-dialog .table-scroll { max-height: 56vh; }
  .admin-detail-summary { grid-template-columns: 1fr; }
  .admin-detail-section .detail-kv p { grid-template-columns: 86px minmax(0, 1fr); }
}

dialog:not([open]) {
  display: none !important;
  pointer-events: none;
}

/* Storefront ordering experience */
body[data-page-type="store-detail"] {
  background: #f5f7f9;
}
body[data-page-type="store-detail"]::before { display: none; }
body[data-page-type="store-detail"] .web-main {
  width: min(1380px, calc(100% - 176px));
  margin: 0 auto;
}
.storefront-page {
  --store-orange: #ff5a1f;
  --store-orange-dark: #e7470d;
  --store-orange-soft: #fff1eb;
  --store-green: #129b50;
  --store-line: #e7ebee;
  --store-subtle: #f7f8f9;
  display: grid;
  gap: 22px;
  color: #171b20;
}
.storefront-page button,
.storefront-page input { font-family: var(--font); }
.storefront-hero {
  min-width: 0;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
  border: 1px solid var(--store-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(36, 45, 55, .07);
}
.storefront-cover {
  min-height: 214px;
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: #f1f3f4;
}
.storefront-cover img {
  width: 100%;
  height: 100%;
  min-height: 214px;
  display: block;
  padding: 0;
  object-fit: cover;
  background: #f3f5f6;
}
.store-status {
  position: absolute;
  left: 12px;
  top: 12px;
  min-height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 6px;
  color: #fff;
  background: rgba(74, 82, 91, .9);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0,0,0,.14);
}
.store-status.is-open { background: rgba(18, 155, 80, .94); }
.store-status .lucide { width: 15px; height: 15px; }
.storefront-profile { min-width: 0; display: grid; align-content: start; gap: 13px; }
.storefront-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.storefront-title-row > div { min-width: 0; }
.storefront-title-row h1 { margin: 0; font-size: clamp(28px, 2.4vw, 38px); line-height: 1.15; }
.storefront-title-row p { margin: 7px 0 0; color: #66707b; font-size: 14px; line-height: 1.6; }
.store-directory-link {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--store-line);
  border-radius: 7px;
  color: #3d4650;
  background: #fff;
  font-size: 13px;
  font-weight: 750;
  transition: border-color var(--speed), color var(--speed), background var(--speed);
}
.store-directory-link:hover { color: var(--store-orange-dark); border-color: rgba(255,90,31,.34); background: var(--store-orange-soft); }
.store-directory-link .lucide { width: 16px; height: 16px; }
.storefront-trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: #5d6670; font-size: 14px; }
.storefront-trust-row > span,
.storefront-trust-row > a { display: inline-flex; align-items: center; gap: 6px; }
.storefront-trust-row .lucide { width: 16px; height: 16px; color: var(--store-green); }
.storefront-trust-row .store-rating,
.storefront-trust-row .store-rating .lucide { color: #f59e0b; }
.storefront-trust-row .store-rating .lucide { fill: currentColor; }
.store-profile-action {
  min-height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dbe4e8;
  border-radius: 6px;
  color: #31464d;
  background: #f8fbfc;
  font-size: 13px;
  font-weight: 750;
  transition: color var(--speed), border-color var(--speed), background var(--speed), transform var(--speed);
}
.store-profile-action:hover { color: #087b3b; border-color: rgba(18,155,80,.35); background: #edf9f2; transform: translateY(-1px); }
.store-profile-action.is-review { color: #8a451f; border-color: #f0ddd3; background: #fff8f4; }
.store-profile-action.is-review:hover { color: var(--store-orange-dark); border-color: rgba(255,90,31,.38); background: var(--store-orange-soft); }
.store-profile-action .lucide { color: currentColor; }
.store-profile-action em { min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; color: #fff; background: var(--store-orange); font-size: 10px; font-style: normal; }
.storefront-service-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr)) minmax(180px, 1.35fr);
  gap: 8px;
}
.storefront-service-item { min-width: 0; min-height: 58px; padding: 9px 11px; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 9px; border-radius: 7px; }
.storefront-service-item > .lucide { width: 30px; height: 30px; padding: 7px; border-radius: 7px; }
.storefront-service-item > span { min-width: 0; }
.storefront-service-grid small { display: block; color: #77818a; font-size: 11px; }
.storefront-service-grid strong { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 1.35; }
.storefront-service-item.is-order { background: #fff3ed; }
.storefront-service-item.is-order > .lucide { color: #dd4a18; background: #ffe4d8; }
.storefront-service-item.is-delivery { background: #eef7ff; }
.storefront-service-item.is-delivery > .lucide { color: #1769aa; background: #dceeff; }
.storefront-service-item.is-hours { background: #edf8f1; }
.storefront-service-item.is-hours > .lucide { color: #087b3b; background: #d9f0e2; }
.storefront-service-tags { min-width: 0; min-height: 58px; padding: 9px 11px; display: flex; flex-direction: column; justify-content: center; gap: 6px; border-radius: 7px; background: #f3f5f7; }
.storefront-service-tags > span { min-width: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.storefront-service-tags em { min-height: 22px; padding: 3px 7px; display: inline-flex; align-items: center; border-radius: 5px; font-size: 11px; font-style: normal; font-weight: 750; line-height: 1.2; }
.storefront-service-tags em.is-available { color: #087b3b; background: #dcefe4; }
.storefront-service-tags em.is-unavailable { color: #68727b; background: #e3e7ea; }
.storefront-notice {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: #4f392e;
}
.storefront-notice > .lucide { width: 30px; height: 30px; padding: 7px; border-radius: 7px; color: var(--store-orange-dark); background: var(--store-orange-soft); }
.storefront-notice span { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: center; }
.storefront-notice strong { font-size: 13px; white-space: nowrap; }
.storefront-notice small { min-width: 0; color: #765e51; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.storefront-order-area { min-width: 0; display: grid; gap: 16px; }
.storefront-catalog-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 2px 14px;
  border-bottom: 1px solid #dde2e5;
}
.storefront-catalog-head h2 { margin: 0; font-size: 24px; }
.storefront-catalog-head p { margin: 5px 0 0; color: #78818a; font-size: 13px; }
.store-product-search {
  width: 100%;
  height: 42px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 12px;
  border: 1px solid #dce1e5;
  border-radius: 7px;
  background: #fff;
  color: #7b848d;
  transition: border-color var(--speed), box-shadow var(--speed);
}
.store-product-search:focus-within { border-color: rgba(255,90,31,.55); box-shadow: 0 0 0 3px rgba(255,90,31,.10); }
.store-product-search > .lucide { width: 18px; height: 18px; }
.store-product-search input { min-height: 0; height: 38px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 14px; }
.store-product-search input:focus { border: 0; box-shadow: none; background: transparent; }
.store-product-search button { width: 28px; height: 28px; padding: 0; border: 0; display: grid; place-items: center; color: #87919a; background: transparent; }
.store-product-search button .lucide { width: 16px; height: 16px; }
.store-product-search input:placeholder-shown + button { opacity: 0; pointer-events: none; }
.storefront-page .store-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr) 328px;
  gap: 16px;
  align-items: start;
}
.storefront-page .store-order-sidebar {
  min-width: 0;
  grid-column: 3;
  grid-row: 1;
  position: sticky;
  top: 104px;
  z-index: 10;
  display: grid;
  gap: 10px;
}
.storefront-page .store-cats {
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
  padding: 8px;
  position: sticky;
  top: 104px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--store-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(37, 45, 53, .05);
}
.store-cats-title { min-height: 42px; padding: 0 9px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--store-line); font-size: 14px; }
.store-cats-title .lucide { width: 17px; height: 17px; color: var(--store-orange); }
.storefront-page .store-cats a {
  min-width: 0;
  min-height: 42px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-left: 3px solid transparent;
  border-radius: 5px;
  color: #5e6770;
  font-size: 14px;
  font-weight: 650;
  transition: color var(--speed), background var(--speed), border-color var(--speed);
}
.storefront-page .store-cats a:hover,
.storefront-page .store-cats a.active { color: var(--store-orange-dark); background: var(--store-orange-soft); border-left-color: var(--store-orange); transform: none; }
.storefront-page .store-cats a em { min-width: 22px; color: #949ca4; font-style: normal; font-size: 12px; text-align: right; }
.storefront-page .product-list {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  gap: 26px;
  container-name: product-catalog;
  container-type: inline-size;
}
.product-section { min-width: 0; scroll-margin-top: 108px; }
.product-section[hidden],
.product-card[hidden] { display: none !important; }
.product-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.product-section-head h2 { margin: 0; font-size: 20px; }
.product-section-head span { color: #89919a; font-size: 12px; }
.product-grid { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.storefront-page .product-card {
  min-width: 0;
  height: 302px;
  position: relative;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--store-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(37, 45, 53, .045);
  cursor: pointer;
  transition: transform var(--speed), box-shadow var(--speed), border-color var(--speed);
}
.storefront-page .product-card:hover { transform: translateY(-2px); border-color: rgba(255,90,31,.30); box-shadow: 0 10px 28px rgba(37, 45, 53, .09); }
.storefront-page .product-card:focus-within { border-color: rgba(255,90,31,.62); box-shadow: 0 0 0 3px rgba(255,90,31,.12), 0 10px 28px rgba(37,45,53,.09); }
.product-detail-trigger { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.product-detail-trigger:focus-visible { outline: none; }
.product-media { width: 100%; min-width: 0; height: auto; aspect-ratio: 1 / 1; position: relative; overflow: hidden; background: #f3f4f5; }
.storefront-page .product-card .product-media img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; transition: transform 320ms ease; }
.storefront-page .product-card:hover .product-media img { transform: scale(1.025); }
.product-image-disclaimer {
  max-width: calc(100% - 12px);
  min-height: 20px;
  padding: 3px 7px;
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border-radius: 4px;
  color: #666f77;
  background: rgba(255,255,255,.82);
  box-shadow: 0 1px 5px rgba(24,31,38,.08);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}
.product-view-indicator { width: 32px; height: 32px; position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.82); border-radius: 6px; color: #343b42; background: rgba(255,255,255,.9); box-shadow: 0 5px 14px rgba(31,39,47,.12); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity var(--speed), transform var(--speed); }
.product-view-indicator .lucide { width: 16px; height: 16px; }
.product-card:hover .product-view-indicator,
.product-card:focus-within .product-view-indicator { opacity: 1; transform: translateY(0); }
.product-sold-out { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; color: #fff; background: rgba(39,44,49,.55); font-weight: 800; }
.product-card-body { min-width: 0; min-height: 0; padding: 10px 11px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.product-card-body > div:first-child { min-width: 0; min-height: 0; }
.product-card-body h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; line-height: 1.3; }
.product-card-body p { min-height: 18px; margin: 3px 0 0; color: #737c85; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.5; }
.product-purchase-row { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-price { color: #e64413; font-size: 19px; line-height: 1; }
.product-price small { display: inline; margin: 0 2px 0 0; font-size: 13px; }
.product-quick-add { min-width: 32px; height: 32px; position: relative; z-index: 2; display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.product-quick-add > span { display: none; min-width: 18px; color: #22272c; text-align: center; font-size: 14px; font-weight: 750; }
.product-quick-add.has-quantity > span,
.product-quick-add.has-quantity .quantity-minus { display: grid; }
.quantity-button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform var(--speed), background var(--speed), border-color var(--speed);
}

@container product-catalog (max-width: 780px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@container product-catalog (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.quantity-button:hover { transform: scale(1.06); }
.quantity-button .lucide { width: 17px; height: 17px; stroke-width: 2.7; }
.quantity-minus { display: none; color: var(--store-orange-dark); border-color: rgba(255,90,31,.36); background: #fff; }
.quantity-plus { color: #fff; background: var(--store-orange); box-shadow: 0 6px 14px rgba(255,90,31,.24); }
.quantity-plus:hover { background: var(--store-orange-dark); }
.product-unavailable { min-height: 32px; padding: 0 10px; border: 1px solid #e1e4e7; border-radius: 6px; color: #8a929a; background: #f1f3f4; font-size: 12px; }
.product-search-empty { min-height: 240px; padding: 30px; display: grid; place-items: center; align-content: center; gap: 8px; color: #727c85; border: 1px dashed #d9dee2; border-radius: 8px; background: #fff; text-align: center; }
.product-search-empty[hidden] { display: none !important; }
.product-search-empty .lucide { width: 34px; height: 34px; color: #a8afb6; }
.product-search-empty span { font-size: 13px; }
.storefront-page .cart-panel {
  min-width: 0;
  max-height: calc(100vh - 172px);
  position: static;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--store-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(37, 45, 53, .07);
}
.cart-panel-head { min-height: 56px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--store-line); }
.cart-panel-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 18px; }
.cart-panel-head h2 .lucide { width: 19px; height: 19px; color: var(--store-orange); }
.cart-panel-head h2 span { min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; color: #fff; background: var(--store-orange); font-size: 12px; }
.cart-panel-head > div { display: flex; align-items: center; gap: 4px; }
.cart-clear,
.cart-close { width: 32px; height: 32px; padding: 0; border: 0; display: grid; place-items: center; color: #7f8891; background: transparent; border-radius: 6px; }
.cart-clear:hover,
.cart-close:hover { color: #d94317; background: var(--store-orange-soft); }
.cart-clear .lucide,
.cart-close .lucide { width: 17px; height: 17px; }
.cart-clear:disabled { opacity: .35; }
.cart-close { display: none; }
.storefront-page .cart-list { min-height: 116px; max-height: min(330px, 38vh); overflow-y: auto; padding: 4px 16px; }
.cart-empty { min-height: 112px; display: grid; place-items: center; align-content: center; gap: 7px; color: #9098a0; text-align: center; }
.cart-empty .lucide { width: 30px; height: 30px; color: #b7bdc3; }
.cart-empty strong { color: #6e7780; font-size: 14px; }
.cart-empty span { font-size: 12px; }
.storefront-page .cart-panel .cart-item {
  min-width: 0;
  padding: 12px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  border-bottom: 1px solid #edf0f2;
}
.storefront-page .cart-panel .cart-item:last-child { border-bottom: 0; }
.cart-item-main { min-width: 0; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 9px; align-items: center; }
.storefront-page .cart-panel .cart-item-main { grid-row: 1 / span 2; }
.storefront-page .cart-panel .cart-thumb { width: 46px; height: 46px; border-radius: 6px; border: 1px solid #edf0f2; }
.cart-item-copy { min-width: 0; }
.cart-item-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.cart-item-copy small { display: block; margin-top: 4px; color: #e54a1a; font-size: 12px; font-weight: 750; }
.cart-item-subtotal { align-self: start; color: #262b30; font-size: 13px; }
.cart-stepper { grid-column: 2; display: flex; align-items: center; gap: 4px; justify-self: end; }
.cart-stepper button { width: 25px; height: 25px; padding: 0; border: 1px solid #dfe3e6; border-radius: 50%; display: grid; place-items: center; color: #555e66; background: #fff; }
.cart-stepper button:hover { color: var(--store-orange-dark); border-color: rgba(255,90,31,.4); }
.cart-stepper button .lucide { width: 13px; height: 13px; }
.cart-stepper span { min-width: 23px; text-align: center; font-size: 13px; font-weight: 750; }
.cart-summary { padding: 12px 16px 0; border-top: 1px solid var(--store-line); }
.cart-summary p { margin: 0 0 8px; display: flex; justify-content: space-between; gap: 14px; color: #747d85; font-size: 13px; }
.cart-summary p strong { color: #33393f; }
.cart-payable { margin-top: 12px; padding-top: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-top: 1px dashed #dfe3e6; }
.cart-payable > span { color: #33393f; font-size: 14px; font-weight: 750; }
.cart-payable small { display: block; margin-top: 2px; color: #969da4; font-size: 11px; font-weight: 500; }
.cart-payable > strong { color: #df4314; font-size: 23px; }
.cart-min-order { margin: 12px 16px 10px; min-height: 30px; padding: 6px 9px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: #785648; background: var(--store-orange-soft); font-size: 12px; text-align: center; }
.cart-min-order.is-ready { color: #0c7f3e; background: #eaf8f0; }
.cart-checkout { width: calc(100% - 32px); min-height: 46px; margin: 0 16px 16px; padding: 0 16px; border: 0; border-radius: 7px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: var(--store-orange); font-size: 15px; font-weight: 850; box-shadow: 0 8px 18px rgba(255,90,31,.22); }
.cart-checkout:hover { background: var(--store-orange-dark); }
.cart-checkout .lucide { width: 17px; height: 17px; }
.cart-checkout:disabled { box-shadow: none; background: #c9ced2; opacity: 1; }
.cart-backdrop,
.store-mobile-cart-bar { display: none; }
.product-detail-dialog {
  width: min(780px, calc(100% - 32px));
  height: min(560px, calc(100vh - 40px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  color: #171b20;
  background: #fff;
  box-shadow: 0 28px 80px rgba(22,29,35,.28);
}
.product-detail-dialog::backdrop { background: rgba(20,26,32,.52); backdrop-filter: blur(3px); }
.product-dialog-close { width: 38px; height: 38px; padding: 0; position: absolute; top: 12px; right: 12px; z-index: 3; display: grid; place-items: center; border: 1px solid rgba(218,224,229,.92); border-radius: 7px; color: #4c555d; background: rgba(255,255,255,.94); box-shadow: 0 5px 16px rgba(31,39,47,.12); }
.product-dialog-close:hover { color: var(--store-orange-dark); border-color: rgba(255,90,31,.36); background: #fff; }
.product-dialog-close .lucide { width: 18px; height: 18px; }
.product-dialog-layout { height: 100%; min-height: 0; display: grid; grid-template-columns: minmax(300px, 44%) minmax(0, 1fr); }
.product-dialog-media { min-width: 0; min-height: 0; position: relative; overflow: hidden; background: #f2f4f5; }
.product-dialog-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-dialog-media .product-image-disclaimer { left: 10px; bottom: 10px; font-size: 11px; }
.product-dialog-body { min-width: 0; min-height: 0; padding: 34px 30px 0; display: flex; flex-direction: column; gap: 22px; overflow-y: auto; scrollbar-gutter: stable; }
.product-dialog-status { align-self: flex-start; min-height: 28px; padding: 5px 10px; display: inline-flex; align-items: center; border-radius: 6px; color: #087b3b; background: #e9f8ef; font-size: 12px; font-weight: 750; }
.product-dialog-status.is-unavailable { color: #875542; background: var(--store-orange-soft); }
.product-dialog-copy h2 { margin: 0; padding-right: 32px; font-size: 25px; line-height: 1.3; }
.product-dialog-copy p { margin: 10px 0 0; color: #69737c; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.product-dialog-price-row { padding: 15px 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-top: 1px solid var(--store-line); border-bottom: 1px solid var(--store-line); color: #7b848c; font-size: 13px; }
.product-dialog-price-row strong { color: #df4314; font-size: 26px; line-height: 1; }
.product-dialog-actions { margin-top: auto; padding: 14px 0 28px; position: sticky; bottom: 0; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; border-top: 1px solid var(--store-line); background: #fff; }
.product-dialog-stepper { height: 48px; padding: 5px; display: grid; grid-template-columns: 36px 32px 36px; align-items: center; border: 1px solid #dfe4e8; border-radius: 7px; background: #f7f8f9; }
.product-dialog-stepper button { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 6px; color: #3f474e; background: #fff; box-shadow: 0 2px 7px rgba(31,39,47,.07); }
.product-dialog-stepper button:hover:not(:disabled) { color: var(--store-orange-dark); background: var(--store-orange-soft); }
.product-dialog-stepper button:disabled { color: #b7bdc2; box-shadow: none; }
.product-dialog-stepper button .lucide { width: 15px; height: 15px; }
.product-dialog-stepper span { min-width: 32px; text-align: center; font-size: 15px; font-weight: 800; }
.product-dialog-add { min-width: 0; min-height: 48px; padding: 0 16px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 7px; color: #fff; background: var(--store-orange); box-shadow: 0 9px 20px rgba(255,90,31,.22); font-size: 14px; font-weight: 850; }
.product-dialog-add:hover:not(:disabled) { background: var(--store-orange-dark); }
.product-dialog-add:disabled { background: #c8cdd1; box-shadow: none; opacity: 1; }
.product-dialog-add .lucide { width: 18px; height: 18px; flex: 0 0 auto; }
.store-dialog-content { min-width: 0; }
.store-info-dialog-content .info-kv { gap: 0; }
.store-info-dialog-content .info-kv p { padding: 13px 2px; border-bottom: 1px solid var(--store-line); border-radius: 0; background: transparent; }
.store-info-dialog-content .info-kv p:last-child { border-bottom: 0; }
.store-info-dialog-content .store-tag-row { margin-top: 16px; }
.store-dialog-summary { min-height: 42px; margin-bottom: 12px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 7px; color: #616b74; background: var(--store-subtle); font-size: 13px; }
.store-dialog-summary strong { color: #23292e; }
.store-dialog-content.review-panel { padding: 0; }
.store-dialog-content .review-list { display: grid; gap: 10px; }
.store-dialog-content .review-item { border: 1px solid var(--store-line); border-radius: 7px; background: #fff; }
.store-dialog-content .empty-state { min-height: 150px; border: 1px dashed #d8dfe4; border-radius: 7px; }
.storefront-page .store-extra-grid { grid-template-columns: .92fr 1.08fr; gap: 16px; margin-top: 0; }
.storefront-page .merchant-info-panel,
.storefront-page .review-panel { min-width: 0; padding: 20px; border: 1px solid var(--store-line); border-radius: 8px; background: #fff; box-shadow: 0 5px 20px rgba(37,45,53,.05); }
.storefront-page .section-head { margin-bottom: 14px; }
.storefront-page .section-head h2 { font-size: 19px; }
.storefront-page .info-kv { gap: 0; }
.storefront-page .info-kv p { padding: 11px 0; border-bottom: 1px solid #edf0f2; border-radius: 0; background: transparent; }
.storefront-page .info-kv p:last-child { border-bottom: 0; }
.storefront-page .review-item { border-radius: 7px; background: var(--store-subtle); }
.storefront-page .store-tag-row span { border-radius: 6px; }

@media (max-width: 1180px) {
  .storefront-page .store-layout { grid-template-columns: 146px minmax(0, 1fr) 294px; }
  .storefront-page .store-cats,
  .storefront-page .store-order-sidebar { top: 188px; }
  .storefront-page .cart-panel { max-height: calc(100vh - 256px); }
  .storefront-page .store-extra-grid { grid-template-columns: 1fr; }
  body[data-page-type="store-detail"] .site-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  body[data-page-type="store-detail"] .site-footer .brand-lockup { justify-self: center; }
  body[data-page-type="store-detail"] .footer-links { width: min(100%, 620px); justify-self: center; }
  body[data-page-type="store-detail"] .footer-copyright { justify-self: center; justify-items: center; margin-right: 0; text-align: center; }
  body[data-page-type="store-detail"] .footer-copyright p { justify-content: center; }
}

@media (max-width: 1050px) {
  body.store-cart-open { overflow: hidden; }
  .storefront-hero { grid-template-columns: 230px minmax(0, 1fr); }
  .storefront-cover,
  .storefront-cover img { min-height: 230px; }
  .storefront-page .store-layout { grid-template-columns: 146px minmax(0, 1fr); grid-template-rows: auto auto; }
  .storefront-page .store-cats { grid-column: 1; grid-row: 1 / span 2; }
  .storefront-page .store-order-sidebar { grid-column: 2; grid-row: 1; }
  .storefront-page .product-list { grid-column: 2; grid-row: 2; }
  .storefront-page .cart-panel {
    width: min(390px, calc(100% - 32px));
    max-height: calc(100vh - 112px);
    position: fixed;
    top: auto;
    right: 16px;
    bottom: 82px;
    z-index: 64;
    transform: translateY(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--speed), opacity var(--speed), visibility var(--speed);
  }
  .storefront-page .cart-panel.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .cart-close { display: grid; }
  .cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 63;
    border: 0;
    background: rgba(24,29,34,.34);
    backdrop-filter: blur(2px);
  }
  .cart-backdrop.is-open { display: block; }
  .store-mobile-cart-bar {
    width: min(620px, calc(100% - 150px));
    min-height: 60px;
    padding: 7px;
    position: fixed;
    left: 24px;
    bottom: 14px;
    z-index: 55;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 138px;
    gap: 8px;
    border: 1px solid #dde2e5;
    border-radius: 8px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 12px 34px rgba(31,39,47,.18);
    backdrop-filter: blur(16px);
  }
  .mobile-cart-summary { min-width: 0; padding: 0 10px; border: 0; display: flex; align-items: center; gap: 10px; color: #252a2f; background: transparent; text-align: left; }
  .mobile-cart-icon { width: 42px; height: 42px; position: relative; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #22272c; }
  .mobile-cart-icon .lucide { width: 20px; height: 20px; }
  .mobile-cart-icon em { min-width: 19px; height: 19px; padding: 0 5px; position: absolute; right: -5px; top: -5px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; border-radius: 10px; color: #fff; background: var(--store-orange); font-size: 10px; font-style: normal; font-weight: 850; }
  .mobile-cart-summary > span:last-child { min-width: 0; display: block; }
  .mobile-cart-summary strong { display: block; color: #df4314; font-size: 18px; }
  .mobile-cart-summary small { display: block; margin-top: 3px; overflow: hidden; color: #7b848c; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
  .mobile-checkout { border: 0; border-radius: 7px; color: #fff; background: var(--store-orange); font-size: 15px; font-weight: 850; }
  .mobile-checkout:disabled { color: #fff; background: #c9ced2; opacity: 1; }
  body[data-page-type="store-detail"] .site-footer { padding-bottom: 96px; }
}

@media (max-width: 820px) {
  .storefront-hero { grid-template-columns: 1fr; }
  .storefront-cover,
  .storefront-cover img { min-height: 200px; max-height: 240px; }
  .storefront-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .storefront-service-tags { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media (max-width: 720px) {
  body[data-page-type="store-detail"] .web-main { width: calc(100% - 24px); margin: 0 auto; }
  body[data-page-type="store-detail"] .site-header { position: relative; top: auto; }
  .storefront-page { gap: 16px; }
  .storefront-hero { gap: 16px; padding: 12px; }
  .storefront-cover,
  .storefront-cover img { min-height: 180px; max-height: 210px; }
  .storefront-title-row h1 { font-size: 25px; }
  .storefront-title-row { gap: 10px; }
  .store-directory-link { min-height: 34px; padding: 0 9px; }
  .storefront-trust-row { gap: 8px 14px; }
  .storefront-notice span { grid-template-columns: 1fr; gap: 2px; }
  .storefront-notice small { white-space: normal; line-height: 1.45; }
  .storefront-catalog-head { align-items: stretch; flex-direction: column; }
  .store-product-search { width: 100%; }
  .storefront-page .store-layout { display: block; }
  .storefront-page .store-cats {
    margin-bottom: 16px;
    padding: 6px;
    position: sticky;
    top: 12px;
    z-index: 12;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .storefront-page .store-order-sidebar {
    margin-bottom: 16px;
    position: sticky;
    top: 62px;
    z-index: 11;
  }
  .storefront-page .store-cats::-webkit-scrollbar { display: none; }
  .store-cats-title { display: none; }
  .storefront-page .store-cats a { min-width: max-content; min-height: 38px; padding: 0 12px; border-left: 0; border-bottom: 2px solid transparent; }
  .storefront-page .store-cats a:hover,
  .storefront-page .store-cats a.active { border-left-color: transparent; border-bottom-color: var(--store-orange); }
  .storefront-page .store-cats a em { min-width: auto; }
  .product-section { scroll-margin-top: 70px; }
  .storefront-page .product-list { gap: 22px; }
  .storefront-page .product-card { height: 302px; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .product-media { width: 100%; height: auto; min-height: 0; aspect-ratio: 1 / 1; }
  .product-view-indicator { display: none; }
  .product-card-body { min-height: 0; padding: 10px; gap: 6px; }
  .product-card-body h3 { font-size: 15px; }
  .product-card-body p { min-height: 18px; margin-top: 3px; font-size: 12px; }
  .product-price { font-size: 18px; }
  .quantity-button { width: 30px; height: 30px; }
  .product-quick-add { height: 30px; gap: 4px; }
  .storefront-page .store-extra-grid { display: grid; }
  .storefront-page .merchant-info-panel,
  .storefront-page .review-panel { padding: 16px; }
  .storefront-page .info-kv p { grid-template-columns: 78px minmax(0, 1fr); }
  .store-mobile-cart-bar { width: calc(100% - 24px); left: 12px; bottom: 12px; grid-template-columns: minmax(0, 1fr) 112px; }
  .storefront-page .cart-panel { width: calc(100% - 24px); right: 12px; bottom: 82px; max-height: calc(100vh - 100px); }
  body[data-page-type="store-detail"] .site-footer { padding-bottom: 96px; }
  .product-detail-dialog { width: calc(100% - 24px); height: calc(100vh - 24px); max-height: none; overflow: hidden; }
  .product-dialog-layout { height: 100%; min-height: 0; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
  .product-dialog-media { height: min(230px, 31vh); min-height: 190px; }
  .product-dialog-body { padding: 20px 18px 0; gap: 16px; }
  .product-dialog-copy h2 { font-size: 22px; }
  .product-dialog-actions { padding: 12px 0 18px; grid-template-columns: 116px minmax(0, 1fr); }
  .product-dialog-stepper { grid-template-columns: 32px 30px 32px; }
}

@media (max-width: 420px) {
  .storefront-title-row { align-items: stretch; flex-direction: column; }
  .store-directory-link { align-self: flex-start; }
  .storefront-service-grid { grid-template-columns: 1fr 1fr; }
  .storefront-page .product-card { grid-template-columns: 1fr; }
  .product-media { width: 100%; }
  .storefront-page .info-kv p { grid-template-columns: 1fr; gap: 5px; }
  .product-dialog-actions { grid-template-columns: 1fr; }
  .product-dialog-stepper { width: 100%; grid-template-columns: 36px minmax(0, 1fr) 36px; }
}
.product-dialog-specs{display:grid;gap:10px}.product-dialog-specs>span{font-size:13px;color:var(--muted)}.product-dialog-specs>div{display:flex;flex-wrap:wrap;gap:8px}.product-dialog-specs button{border:1px solid rgba(15,23,42,.14);background:#fff;border-radius:10px;padding:8px 12px;color:var(--text);cursor:pointer}.product-dialog-specs button small{margin-left:5px;color:var(--muted)}.product-dialog-specs button.active{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 9%,#fff);color:var(--primary)}.product-dialog-specs button.active small{color:inherit}
.table-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.app-dialog[open][data-dialog-size="batch-settings"] { width: min(760px, calc(100vw - 32px)); max-width: none; padding: 26px; border-radius: 20px; }
.app-dialog[data-dialog-size="batch-settings"] h3 { margin-bottom: 18px; font-size: 24px; }
.merchant-batch-settings-form { display: grid; gap: 18px; }
.merchant-batch-warning { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px; border: 1px solid rgba(var(--accent-rgb), .24); border-radius: 14px; background: rgba(var(--accent-rgb), .08); }
.merchant-batch-warning > .lucide { width: 40px; height: 40px; padding: 9px; color: var(--orange); border-radius: 12px; background: rgba(255,255,255,.72); }
.merchant-batch-warning span { display: grid; gap: 3px; }
.merchant-batch-warning strong { font-size: 15px; }
.merchant-batch-warning small { color: var(--muted); line-height: 1.5; }
.merchant-batch-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.merchant-batch-option { display: grid; align-content: start; gap: 14px; padding: 15px; border: 1px solid var(--border); border-radius: 14px; background: rgba(248,250,252,.72); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.merchant-batch-option.is-active { border-color: rgba(var(--primary-rgb), .48); background: rgba(var(--primary-rgb), .045); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .06); }
.merchant-batch-option-toggle { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.merchant-batch-option-toggle input { width: 20px; height: 20px; margin: 0; accent-color: var(--primary); flex: 0 0 auto; }
.merchant-batch-option-toggle span { display: grid; gap: 2px; }
.merchant-batch-option-toggle strong { font-size: 15px; }
.merchant-batch-option-toggle small { color: var(--muted); line-height: 1.35; }
.merchant-batch-option .field { transition: opacity .2s ease; }
.merchant-batch-option:not(.is-active) .field { opacity: .48; }
.merchant-batch-settings-form textarea { min-height: 94px; resize: vertical; }
.merchant-batch-promotion-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.merchant-batch-promotion-fields .field{margin:0}

/* Admin dialog usability pass: spacious shells, stable scrolling and visible async states. */
.app-dialog[open][data-dialog-size="manager"] {
  width: min(1560px, calc(100vw - 32px));
  height: min(920px, calc(100vh - 28px));
  max-height: none;
  border-radius: 22px;
}
.app-dialog[data-dialog-size="manager"] h3 {
  padding: 24px 78px 20px 30px;
  font-size: clamp(20px, 1.55vw, 28px);
}
.app-dialog[data-dialog-size="manager"] .dialog-body {
  overflow: hidden;
  padding: 22px 28px;
}
.app-dialog[data-dialog-size="manager"] .dialog-actions { padding: 16px 28px 20px; }
.app-dialog[open][data-dialog-size="detail"] { width: min(1320px, calc(100vw - 36px)); }
.app-dialog[open][data-dialog-size="record"] { width: min(980px, calc(100vw - 36px)); }
.admin-manager-dialog { height: 100%; grid-template-rows: auto auto minmax(0, 1fr); gap: 16px; }
.admin-manager-toolbar { min-height: 48px; }
.admin-manager-toolbar > span { font-size: 15px; }
.admin-manager-actions .btn { min-height: 44px; padding-inline: 18px; font-size: 15px; }
.admin-manager-actions .btn .lucide { width: 19px; height: 19px; }
.admin-manager-actions .btn.is-importing .lucide { animation: spin .8s linear infinite; }
.admin-manager-dialog [data-manager-table] { min-height: 0; overflow: hidden; }
.admin-manager-dialog .table-scroll { height: 100%; max-height: none; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.admin-manager-dialog .data-table th { background: #f7f9fc; }
.manager-import-status {
  position: relative;
  min-height: 66px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 32px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(var(--primary-rgb), .2);
  border-radius: 14px;
  background: rgba(var(--primary-rgb), .06);
  animation: dialogPop .22s ease both;
}
.manager-import-status[hidden] { display: none; }
.manager-import-status > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.manager-import-status strong { font-size: 15px; }
.manager-import-status small { color: var(--muted); line-height: 1.45; }
.manager-import-status > button { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 9px; display: grid; place-items: center; color: var(--muted); background: transparent; cursor: pointer; }
.manager-import-status > button:hover { color: var(--text); background: rgba(15,23,42,.06); }
.manager-import-status .lucide { width: 20px; height: 20px; }
.manager-import-spinner,
.manager-import-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; }
.manager-import-spinner { color: var(--blue); background: rgba(var(--secondary-rgb), .1); }
.manager-import-spinner .lucide { animation: spin .8s linear infinite; }
.manager-import-status.is-success { border-color: rgba(24,160,88,.24); background: rgba(24,160,88,.07); }
.manager-import-status.is-success .manager-import-icon { color: #16834d; background: rgba(24,160,88,.12); }
.manager-import-status.is-error { border-color: rgba(220,53,69,.22); background: rgba(220,53,69,.06); }
.manager-import-status.is-error .manager-import-icon { color: #c73545; background: rgba(220,53,69,.1); }

.modal.admin-merchant-modal { width: min(1320px, calc(100vw - 32px)); }
.modal.admin-product-modal { width: min(1120px, calc(100vw - 32px)); }
.modal.admin-banner-modal { width: min(980px, calc(100vw - 32px)); }
.modal.admin-classified-modal { width: min(1380px, calc(100vw - 24px)); }
.modal.admin-compact-modal { width: min(860px, calc(100vw - 32px)); }
.modal.admin-minimal-modal { width: min(680px, calc(100vw - 32px)); }
.modal.admin-entity-modal { border-radius: 20px; }
.modal.admin-entity-modal form { height: min(900px, calc(100vh - 28px)); max-height: none; }
.modal.admin-minimal-modal form { height: auto; max-height: calc(100vh - 42px); }
.modal.admin-entity-modal .section-head { padding: 20px 28px; }
.modal.admin-entity-modal .section-head h3 { font-size: 23px; }
.modal.admin-entity-modal .section-head .icon-btn { width: 42px; height: 42px; }
.admin-modal-fields { max-height: none; min-height: 0; padding: 22px 28px; }
.modal.admin-entity-modal .modal-actions { padding: 16px 28px 18px; }
.modal.admin-entity-modal .modal-actions .btn { min-width: 104px; min-height: 42px; }
.modal-form-section { gap: 16px; padding: 20px; border-radius: 14px; }
.modal-form-section h4 { font-size: 16px; }
.modal-form-section .form-grid { gap: 16px 18px; }
.modal.admin-product-modal .modal-form-section .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.modal.admin-product-modal textarea[name="description"] { min-height: 128px; }
.modal.admin-product-modal textarea[name="specs_text"] { min-height: 168px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; line-height: 1.7; }
.banner-link-picker { padding: 16px; display: grid; gap: 12px; border: 1px solid #dfe6eb; border-radius: 10px; background: #f7f9fb; }
.banner-link-picker > span { color: #20272d; font-weight: 800; }
.banner-link-picker-grid { display: grid; grid-template-columns: minmax(180px, .72fr) minmax(260px, 1.28fr); gap: 12px; }
.banner-link-picker-grid label { min-width: 0; display: grid; gap: 7px; }
.banner-link-picker-grid label small { color: #78838d; font-size: 12px; font-weight: 700; }
.banner-link-picker-grid select { width: 100%; background: #fff; }
.banner-link-preview { min-width: 0; padding: 11px 12px; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; border-radius: 8px; color: #2459a8; background: #eaf3ff; }
.banner-link-preview > .lucide { width: 34px; height: 34px; padding: 8px; border-radius: 7px; background: #d8e9ff; }
.banner-link-preview > span { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 6px 10px; }
.banner-link-preview small { color: #61748d; font-size: 11px; }
.banner-link-preview strong { overflow: hidden; color: #173c70; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.banner-link-preview code { grid-column: 1 / -1; overflow: hidden; color: #49647f; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }

@media (max-width: 760px) {
  .table-panel > .section-head { align-items: flex-start; }
  .table-head-actions { width: 100%; justify-content: flex-start; }
  .table-head-actions .btn { flex: 1 1 auto; }
  .app-dialog[open][data-dialog-size="batch-settings"] { width: calc(100vw - 16px); max-height: calc(100vh - 16px); padding: 20px 16px 16px; overflow: auto; }
  .app-dialog[data-dialog-size="batch-settings"] h3 { padding-right: 36px; font-size: 20px; }
  .merchant-batch-option-grid { grid-template-columns: 1fr; }
  .merchant-batch-option-grid .span-2 { grid-column: auto; }
  .merchant-batch-promotion-fields { grid-template-columns: 1fr; }
  .app-dialog[open][data-dialog-size="manager"] { width: calc(100vw - 12px); height: calc(100vh - 12px); border-radius: 16px; }
  .app-dialog[data-dialog-size="manager"] h3 { padding: 18px 62px 14px 16px; }
  .app-dialog[data-dialog-size="manager"] .dialog-body { padding: 14px; overflow: auto; }
  .app-dialog[data-dialog-size="manager"] .dialog-actions { padding: 12px 14px 14px; }
  .admin-manager-dialog { height: auto; min-height: 100%; grid-template-rows: auto auto minmax(360px, 1fr); }
  .admin-manager-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-manager-actions .btn { width: 100%; padding-inline: 10px; }
  .manager-import-status { grid-template-columns: 34px minmax(0, 1fr) 28px; }
  .modal.admin-entity-modal form { height: calc(100vh - 24px); }
  .modal.admin-minimal-modal form { height: auto; }
  .modal.admin-product-modal .modal-form-section .form-grid { grid-template-columns: 1fr; }
  .banner-link-picker { padding: 13px; }
  .banner-link-picker-grid { grid-template-columns: 1fr; }
  .banner-link-preview > span { grid-template-columns: 1fr; gap: 3px; }
  .banner-link-preview code { grid-column: auto; }
  .modal.admin-entity-modal .section-head,
  .admin-modal-fields,
  .modal.admin-entity-modal .modal-actions { padding-left: 16px; padding-right: 16px; }
  .modal.admin-entity-modal .section-head { position: relative; padding-right: 68px; }
  .modal.admin-entity-modal .section-head .icon-btn { position: absolute; top: 16px; right: 16px; }
}

.log-cleanup-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
  padding: 22px;
}
.log-cleanup-panel > .section-head { min-width: 0; }
.log-cleanup-head > div:first-child { flex: 1 1 420px; min-width: 0; }
.log-cleanup-head .log-cleanup-actions { flex: 0 0 auto; }
.log-cleanup-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.log-cleanup-actions .btn { white-space: nowrap; }
.log-cleanup-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid rgba(128,151,168,.18);
  border-radius: 8px;
  overflow: hidden;
}
.log-cleanup-summary > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid rgba(128,151,168,.18);
}
.log-cleanup-summary > div:last-child { border-right: 0; }
.log-cleanup-summary span,
.log-cleanup-summary small { color: var(--muted); }
.log-cleanup-summary span { font-size: 13px; font-weight: 750; }
.log-cleanup-summary strong { color: var(--text); font-size: 23px; line-height: 1.1; }
.log-cleanup-summary small { font-size: 11px; line-height: 1.4; }
.log-cleanup-safety {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(var(--primary-rgb), .16);
  border-radius: 8px;
  background: rgba(var(--primary-rgb), .06);
}
.log-cleanup-safety > .lucide {
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 10px;
  color: var(--green-2);
  background: rgba(255,255,255,.76);
}
.log-cleanup-safety strong { color: var(--text); }
.log-cleanup-safety p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.log-cleanup-safety > span { color: var(--green-2); font-size: 12px; font-weight: 750; white-space: nowrap; }
.log-cleanup-list-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-end;
  padding-top: 2px;
}
.log-cleanup-list-head h2,
.log-cleanup-report h2 { margin: 0; font-size: 18px; }
.log-cleanup-list-head p,
.log-cleanup-report p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.log-cleanup-table { min-width: 1120px; }
.log-file-cell,
.log-date-cell { display: grid; gap: 4px; min-width: 0; }
.log-file-cell strong { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-file-cell code,
.log-cleanup-report-table code { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; overflow-wrap: anywhere; }
.log-date-cell small,
.log-cleanup-reason { color: var(--muted); font-size: 11px; line-height: 1.45; }
.log-cleanup-state,
.log-cleanup-result {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.log-cleanup-state.is-deletable,
.log-cleanup-result.is-deleted { color: var(--red); background: var(--danger-soft); }
.log-cleanup-state.is-clearable,
.log-cleanup-result.is-cleared { color: #9a6500; background: rgba(245, 158, 11, .12); }
.log-cleanup-state.is-protected,
.log-cleanup-result.is-skipped { color: var(--muted); background: rgba(128,151,168,.12); }
.log-cleanup-result.is-failed { color: var(--red); background: var(--danger-soft); }
.log-cleanup-reason { display: block; max-width: 250px; margin-top: 4px; }
.log-cleanup-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 150px;
}
.log-cleanup-empty .lucide { width: 32px; height: 32px; color: var(--green-2); }
.log-cleanup-empty p { margin: 4px 0 0; }
.log-cleanup-report {
  display: grid;
  gap: 13px;
  padding-top: 18px;
  border-top: 1px solid rgba(128,151,168,.18);
}
.log-cleanup-report[hidden] { display: none; }
.log-cleanup-report > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.log-cleanup-report p { font-size: 12px; }
.log-cleanup-report-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid rgba(128,151,168,.18);
  border-radius: 8px;
  overflow: hidden;
}
.log-cleanup-report-summary > span {
  display: grid;
  gap: 4px;
  padding: 11px 13px;
  border-right: 1px solid rgba(128,151,168,.18);
}
.log-cleanup-report-summary > span:last-child { border-right: 0; }
.log-cleanup-report-summary small { color: var(--muted); font-size: 11px; }
.log-cleanup-report-summary strong { color: var(--text); font-size: 17px; }
.log-cleanup-report-table { min-width: 860px; }
.log-cleanup-report-table .cell-text { display: block; min-width: 180px; line-height: 1.5; }
.log-content-meta {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
}
.log-content-meta strong { display: block; overflow-wrap: anywhere; color: var(--text); }
.log-content-meta small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.log-content-note { margin: 0 0 10px !important; color: #9a6500 !important; }
.log-content-view {
  max-height: 60vh;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border-radius: 8px;
  background: #111827;
  color: #d1fae5;
  font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 1180px) {
  .log-cleanup-summary,
  .log-cleanup-report-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .log-cleanup-summary > div:nth-child(3n),
  .log-cleanup-report-summary > span:nth-child(3n) { border-right: 0; }
  .log-cleanup-summary > div:nth-child(-n + 3),
  .log-cleanup-report-summary > span:nth-child(-n + 3) { border-bottom: 1px solid rgba(128,151,168,.18); }
}
@media (max-width: 920px) {
  .log-cleanup-panel { padding: 16px; }
  .log-cleanup-head { align-items: flex-start; }
  .log-cleanup-actions { width: 100%; justify-content: flex-start; }
  .log-cleanup-safety { grid-template-columns: 38px minmax(0, 1fr); align-items: start; }
  .log-cleanup-safety > span { grid-column: 2; white-space: normal; }
  .log-cleanup-summary,
  .log-cleanup-report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .log-cleanup-summary > div,
  .log-cleanup-summary > div:nth-child(3n),
  .log-cleanup-report-summary > span,
  .log-cleanup-report-summary > span:nth-child(3n) { border-right: 1px solid rgba(128,151,168,.18); border-bottom: 1px solid rgba(128,151,168,.18); }
  .log-cleanup-summary > div:nth-child(2n),
  .log-cleanup-report-summary > span:nth-child(2n) { border-right: 0; }
  .log-cleanup-summary > div:nth-last-child(-n + 2),
  .log-cleanup-report-summary > span:nth-last-child(-n + 2) { border-bottom: 0; }
  .log-cleanup-report > header { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 720px) {
  .log-cleanup-panel { padding: 14px; }
  .log-cleanup-summary,
  .log-cleanup-report-summary { grid-template-columns: 1fr; }
  .log-cleanup-summary > div,
  .log-cleanup-summary > div:nth-child(2n),
  .log-cleanup-report-summary > span,
  .log-cleanup-report-summary > span:nth-child(2n) { border-right: 0; border-bottom: 1px solid rgba(128,151,168,.18); }
  .log-cleanup-summary > div:last-child,
  .log-cleanup-report-summary > span:last-child { border-bottom: 0; }
  .log-cleanup-empty { align-items: flex-start; justify-content: flex-start; min-height: 120px; }
}
