/*
 * BeiKe customer web shell
 *
 * Design roles:
 *   --web-canvas   calm page background
 *   --web-panel    persistent navigation and raised surfaces
 *   --web-content  maximum readable application width
 *
 * This file is deliberately scoped to the standalone customer website. The
 * shared mobile application markup and behaviour remain the source of truth.
 */

.beike-customer-web {
  --web-sidebar-width: 232px;
  --web-content: 1280px;
  --web-form: 780px;
  --web-chat: 900px;
  --web-canvas: #f3f6f3;
  --web-panel: #fbfcfb;
  --web-panel-raised: #ffffff;
  --web-line: #dfe7e1;
  --web-ink: #1d2923;
  --web-muted: #66736b;
  --web-green: #2c694d;
  --web-green-soft: #e9f1eb;
  --web-shadow: 0 12px 38px rgba(30, 51, 38, .065);
  min-height: 100%;
  overflow: hidden;
  background: var(--web-canvas);
  color: var(--web-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

html[data-theme="dark"] .beike-customer-web {
  --web-canvas: #111612;
  --web-panel: #181f1a;
  --web-panel-raised: #202822;
  --web-line: #354139;
  --web-ink: #f0f4f0;
  --web-muted: #aab7ad;
  --web-green: #afd4b8;
  --web-green-soft: #29352d;
  --web-shadow: 0 14px 42px rgba(0, 0, 0, .22);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .beike-customer-web {
    --web-canvas: #111612;
    --web-panel: #181f1a;
    --web-panel-raised: #202822;
    --web-line: #354139;
    --web-ink: #f0f4f0;
    --web-muted: #aab7ad;
    --web-green: #afd4b8;
    --web-green-soft: #29352d;
    --web-shadow: 0 14px 42px rgba(0, 0, 0, .22);
  }
}

.beike-customer-web *,
.beike-customer-web *::before,
.beike-customer-web *::after { box-sizing: border-box; }

.beike-customer-web .review-caption { display: none; }
.beike-customer-web .review-shell { min-height: 100%; }
.beike-customer-web .web-sidebar[hidden],
.beike-customer-web .web-auth-aside[hidden] { display: none; }

/* Navigation rail — quiet, persistent and intentionally separate from app UI. */
.beike-customer-web .web-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: var(--web-sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 28px 18px 20px;
  border-right: 1px solid var(--web-line);
  background: color-mix(in srgb, var(--web-panel) 94%, transparent);
  color: var(--web-ink);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

html:not(.beike-live-ready) body.beike-customer-web .web-sidebar { visibility: hidden; }

.beike-customer-web .web-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 0 10px 18px;
  border-bottom: 1px solid var(--web-line);
  color: var(--web-ink);
  text-decoration: none;
}

.beike-customer-web .web-brand-mark,
.beike-customer-web .web-brand > span:first-child {
  width: 38px;
  height: 38px;
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 12px;
  background: #2d654b;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.beike-customer-web .web-brand strong {
  display: block;
  font-size: 14px;
  font-weight: 680;
  letter-spacing: -.01em;
}

.beike-customer-web .web-brand > span:last-child {
  color: inherit;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.15;
}

.beike-customer-web .web-brand small {
  display: block;
  margin-top: 3px;
  color: var(--web-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
}

.beike-customer-web .web-nav-label {
  margin: 24px 13px 8px;
  color: var(--web-muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .13em;
}

.beike-customer-web .web-nav {
  display: grid;
  gap: 4px;
  margin-top: 0;
}

.beike-customer-web .web-nav button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--web-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease;
}

.beike-customer-web .web-nav button svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.beike-customer-web .web-nav button:hover { background: var(--web-green-soft); color: var(--web-green); }
.beike-customer-web .web-nav button.active,
.beike-customer-web .web-nav button[aria-current="page"] {
  background: var(--web-green-soft);
  color: var(--web-green);
  font-weight: 680;
}

.beike-customer-web .web-unread {
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 10px;
  background: #b34a43;
  color: #fff;
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
}
.beike-customer-web .web-unread[hidden] { display: none; }

.beike-customer-web .web-nav button:focus-visible,
.beike-customer-web .web-sidebar-footer a:focus-visible {
  outline: 2px solid var(--web-green);
  outline-offset: 2px;
}

.beike-customer-web .web-sidebar-footer {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding: 16px 10px 0;
  border-top: 1px solid var(--web-line);
}

.beike-customer-web .web-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 2px 4px 12px;
}

.beike-customer-web .web-user-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 12px;
  background: var(--web-green-soft);
  color: var(--web-green);
  font-size: 13px;
  font-weight: 750;
}

.beike-customer-web .web-user > span:last-child { min-width: 0; }
.beike-customer-web .web-user-name,
.beike-customer-web .web-user-email {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.beike-customer-web .web-user-name { color: var(--web-ink); font-size: 12px; font-weight: 650; }
.beike-customer-web .web-user-email { margin-top: 3px; color: var(--web-muted); font-size: 10px; font-weight: 500; }

.beike-customer-web .web-sidebar-footer > button {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--web-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 580;
  text-align: left;
  cursor: pointer;
}
.beike-customer-web .web-sidebar-footer > button:hover { background: var(--web-green-soft); color: var(--web-green); }
.beike-customer-web .web-sidebar-footer > button:focus-visible { outline: 2px solid var(--web-green); outline-offset: 2px; }
.beike-customer-web .web-sidebar-footer > button svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; }

.beike-customer-web .web-footer-links { display: flex; align-items: center; gap: 14px; padding: 8px; }

.beike-customer-web .web-sidebar-footer a {
  min-height: 34px;
  display: flex;
  align-items: center;
  color: var(--web-muted);
  font-size: 12px;
  font-weight: 550;
  text-decoration: none;
}
.beike-customer-web .web-sidebar-footer a:hover { color: var(--web-green); }

.beike-customer-web .web-breadcrumb {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--web-muted);
  font-size: 12px;
}
.beike-customer-web .web-breadcrumb strong { color: var(--web-ink); font-weight: 650; }

/* Desktop application canvas: no simulated handset or operating-system chrome. */
@media (min-width: 1024px) {
  .beike-customer-web .review-shell {
    width: calc(100% - var(--web-sidebar-width));
    height: 100vh;
    height: 100dvh;
    margin-left: var(--web-sidebar-width);
    padding: 0;
    display: block;
  }

  .beike-customer-web .device {
    width: min(100%, var(--web-content));
    height: 100vh;
    height: 100dvh;
    margin: 0 auto;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: var(--ui-bg, var(--web-canvas));
    box-shadow: none;
  }

  .beike-customer-web .statusbar { display: none; }
  .beike-customer-web .bottom-nav { display: none; }

  .beike-customer-web .app-header {
    height: 82px;
    padding: 14px 34px 10px;
    border-bottom: 1px solid var(--ui-line, var(--web-line));
    background: color-mix(in srgb, var(--ui-bg, var(--web-canvas)) 92%, transparent);
  }

  .beike-customer-web .app-header .brand-mark { width: 42px; height: 42px; border-radius: 13px; }
  .beike-customer-web .app-header .brand-wordmark strong { font-size: 19px; }
  .beike-customer-web .app-header .invite-meta { font-size: 11px; }

  .beike-customer-web .screen-scroll {
    width: 100%;
    height: calc(100% - 82px);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-content: start;
    gap: 24px;
    padding: 32px 34px 56px;
    overflow: auto;
  }

  .beike-customer-web .screen-scroll > .sell-feature {
    grid-column: span 7;
    min-width: 0;
    height: 216px;
    margin: 0;
    padding: 32px;
    border-radius: 28px;
  }
  .beike-customer-web .sell-copy h3 { font-size: 34px; }
  .beike-customer-web .sell-copy p { max-width: 330px; font-size: 14px; }
  .beike-customer-web .stacked-cards { top: 56px; right: 74px; transform: scale(1.22); }

  .beike-customer-web .screen-scroll > .shortcuts {
    grid-column: span 5;
    min-width: 0;
    margin: 0;
  }
  .beike-customer-web .shortcut-grid { height: 174px; padding: 12px; gap: 8px; }
  .beike-customer-web .shortcut { height: 148px; justify-content: center; }
  .beike-customer-web .shortcut-icon { width: 48px; height: 48px; }
  .beike-customer-web .shortcut strong { font-size: 12px; }

  .beike-customer-web .screen-scroll > .home-ticker { grid-column: 1 / -1; margin: 0; }
  .beike-customer-web .screen-scroll > .rates { grid-column: 1 / -1; min-width: 0; }
  .beike-customer-web .rates-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .beike-customer-web .rates-list .rate-row {
    min-width: 0;
    min-height: 82px;
    margin: 0;
    padding: 13px;
    border: 1px solid var(--ui-line, var(--web-line));
    border-radius: 18px;
    background: var(--ui-surface, var(--web-panel-raised));
    box-shadow: var(--ui-shadow, var(--web-shadow));
  }
  .beike-customer-web .rates-list .rate-row:last-child { border-bottom: 1px solid var(--ui-line, var(--web-line)); }
  .beike-customer-web .rates-list .card-art { width: 46px; height: 46px; }
  .beike-customer-web .rates-list .rate-brand { font-size: 14px; }
  .beike-customer-web .rates-list .rate-quote strong { font-size: 12px; }

  /* Every second-level page owns the full web canvas. */
  .beike-customer-web .device > :is(
    .wallet-preview, .history-preview, .sell-preview, .profile-preview,
    .support-preview, .notifications-preview, .wheel-preview, .tasks-preview,
    .new-user-preview, .buddy-preview, .monthly-preview
  ) {
    inset: 0;
    min-width: 0;
    padding-right: 34px;
    padding-left: 34px;
    background: var(--ui-bg, var(--web-canvas));
  }

  .beike-customer-web .device :is(
    .wallet-topbar, .history-topbar, .sell-preview-topbar, .profile-topbar,
    .support-topbar, .notifications-topbar, .wheel-topbar, .tasks-topbar,
    .new-user-topbar, .buddy-topbar, .monthly-topbar
  ) {
    width: min(100%, var(--web-chat));
    height: 78px;
    margin: 0 auto;
    padding-right: 0;
    padding-left: 0;
    border-bottom: 1px solid var(--ui-line, var(--web-line));
  }

  .beike-customer-web .device :is(
    .wallet-scroll, .wallet-withdraw-scroll, .wallet-bank-scroll, .wallet-pin-scroll,
    .history-scroll, .sell-catalog-view, .sell-brand-view, .profile-scroll,
    .notifications-list, .wheel-scroll, .tasks-scroll, .new-user-scroll,
    .buddy-scroll, .monthly-scroll
  ) {
    width: min(100%, var(--web-form));
    margin-right: auto;
    margin-left: auto;
    padding: 28px 0 48px;
    scrollbar-width: thin;
    scrollbar-color: var(--ui-line, var(--web-line)) transparent;
  }

  .beike-customer-web .wallet-withdraw-footer,
  .beike-customer-web .wallet-bank-footer,
  .beike-customer-web .wallet-pin-footer,
  .beike-customer-web .sell-sticky-footer,
  .beike-customer-web .tasks-footer,
  .beike-customer-web .buddy-footer {
    width: min(100%, var(--web-form));
    margin: 0 auto;
    padding: 12px 0 22px;
    background: var(--ui-bg, var(--web-canvas));
  }

  .beike-customer-web .wallet-hero { padding: 28px; }
  .beike-customer-web .wallet-action-list { display: grid; grid-template-columns: 1fr 1fr; }
  .beike-customer-web .wallet-action + .wallet-action { border-top: 0; border-left: 1px solid var(--ui-line, var(--web-line)); }
  .beike-customer-web .wallet-bank-empty { margin-top: 32px; }
  .beike-customer-web .wallet-pin-intro-stage { text-align: left; }
  .beike-customer-web .wallet-pin-intro-stage .wallet-pin-illustration { margin-left: 0; }
  .beike-customer-web .wallet-pin-intro-stage .wallet-pin-intro { max-width: 520px; margin-left: 0; }

  .beike-customer-web .history-list,
  .beike-customer-web .notifications-list,
  .beike-customer-web .tasks-list,
  .beike-customer-web .buddy-records,
  .beike-customer-web .monthly-leader-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 12px;
  }
  .beike-customer-web .history-item + .history-item,
  .beike-customer-web .notification-item + .notification-item,
  .beike-customer-web .tasks-item + .tasks-item { border-top-width: 1px; }

  .beike-customer-web .sell-catalog-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .beike-customer-web .sell-catalog-card {
    border: 1px solid var(--ui-line, var(--web-line));
    border-radius: 18px;
    background: var(--ui-surface, var(--web-panel-raised));
  }
  .beike-customer-web .sell-catalog-card + .sell-catalog-card { border-top-width: 1px; }
  .beike-customer-web .sell-choice-regions { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .beike-customer-web .sell-confirm-card { max-width: 620px; }

  .beike-customer-web .profile-overview,
  .beike-customer-web .profile-avatar-view,
  .beike-customer-web .profile-name-view,
  .beike-customer-web .profile-security-view,
  .beike-customer-web .profile-security-flow-view,
  .beike-customer-web .profile-simple-view { max-width: var(--web-form); margin-right: auto; margin-left: auto; }
  .beike-customer-web .device .profile-scroll { width: min(100%, 1040px); }
  .beike-customer-web .profile-avatar-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .beike-customer-web .profile-photo-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beike-customer-web .profile-level-view { max-width: 1040px; margin: 0 auto; }
  .beike-customer-web .profile-vip-body { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

  .beike-customer-web .tasks-coupon-list,
  .beike-customer-web .new-user-coupon-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beike-customer-web .buddy-stats,
  .beike-customer-web .buddy-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* Help center and conversation use the extra width without losing a readable line. */
  .beike-customer-web .support-preview { padding-bottom: 22px; }
  .beike-customer-web .support-hub,
  .beike-customer-web .support-chat-view {
    width: min(100%, var(--web-chat));
    margin: 0 auto;
  }
  .beike-customer-web .support-page-heading { padding: 24px 2px; }
  .beike-customer-web .support-page-heading p { max-width: 620px; }
  .beike-customer-web .support-faq-list { display: grid; grid-template-columns: 1fr 1fr; }
  .beike-customer-web .support-faq-item + .support-faq-item { border-top-width: 0; }
  .beike-customer-web .support-faq-item:nth-child(n + 3) { border-top: 1px solid var(--ui-line, var(--web-line)); }
  .beike-customer-web .support-faq-item:nth-child(even) { border-left: 1px solid var(--ui-line, var(--web-line)); }
  .beike-customer-web .support-chat-view { padding-top: 10px; }
  .beike-customer-web .support-conversation { min-height: 280px; }
  .beike-customer-web .support-composer { min-height: 64px; padding: 8px; }
  .beike-customer-web .support-input { font-size: 16px; }
  .beike-customer-web .support-draft-bubble { max-width: min(72%, 620px); }
  .beike-customer-web .support-message-image,
  .beike-customer-web .support-image-bubble img { max-width: min(100%, 520px); max-height: 420px; object-fit: contain; }
  .beike-customer-web .support-attachment { left: 50%; right: auto; width: min(680px, calc(100% - 40px)); transform: translateX(-50%); border-radius: 24px; }

  /* Sheets become centered dialogs on a pointer-sized canvas. */
  .beike-customer-web .device :is(
    .wallet-bank-picker, .tasks-rules-sheet, .new-user-rules-overlay,
    .buddy-share-sheet, .buddy-rules-sheet, .buddy-qr-sheet,
    .monthly-rules-overlay, .profile-vip-rules-overlay,
    .sell-choice-overlay, .sell-coupon-overlay, .sell-brand-choice-overlay
  ) {
    inset: 0;
    display: grid;
    align-items: center;
    justify-content: center;
    place-items: center;
    padding: 28px;
  }

  .beike-customer-web .device :is(
    .wallet-bank-picker-panel, .tasks-rules-card, .new-user-rules-card,
    .buddy-sheet-card, .buddy-qr-panel, .monthly-rules-card,
    .profile-vip-rules-sheet, .sell-choice-panel, .sell-coupon-panel,
    .sell-brand-choice-panel
  ) {
    position: relative;
    inset: auto;
    width: min(100%, 680px);
    height: auto;
    max-height: min(760px, calc(100vh - 64px));
    max-height: min(760px, calc(100dvh - 64px));
    border-radius: 26px;
    box-shadow: var(--web-shadow);
  }

  .beike-customer-web .device :is(
    .wallet-info-card, .wallet-bank-review-card, .wallet-bank-delete-card,
    .history-detail-panel, .notification-detail-card, .tasks-dialog-card,
    .ticker-modal-card, .support-delete-card, .sell-confirm-card,
    .wheel-result-card
  ) { width: min(100%, 680px); }
}

/* Medium screens keep the familiar bottom navigation with a roomier canvas. */
@media (min-width: 768px) and (max-width: 1023px) {
  .beike-customer-web .web-sidebar { display: none; }
  .beike-customer-web .review-shell { width: 100%; height: 100vh; height: 100dvh; padding: 0; display: block; }
  .beike-customer-web .device { width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; }
  .beike-customer-web .statusbar { display: none; }
  .beike-customer-web .app-header { height: 74px; padding: 10px 28px; }
  .beike-customer-web .screen-scroll { height: calc(100% - 74px - 76px); padding: 18px 28px 100px; }
  .beike-customer-web .screen-scroll > * { max-width: 820px; margin-right: auto; margin-left: auto; }
  .beike-customer-web .bottom-nav { left: 24px; right: 24px; max-width: 720px; margin: 0 auto; }
  .beike-customer-web .device > :is(
    .wallet-preview, .history-preview, .sell-preview, .profile-preview,
    .support-preview, .notifications-preview, .wheel-preview, .tasks-preview,
    .new-user-preview, .buddy-preview, .monthly-preview
  ) { inset: 0 0 76px; padding-right: 28px; padding-left: 28px; }
  .beike-customer-web .device :is(
    .wallet-scroll, .wallet-withdraw-scroll, .wallet-bank-scroll, .wallet-pin-scroll,
    .history-scroll, .sell-catalog-view, .sell-brand-view, .profile-scroll,
    .notifications-list, .wheel-scroll, .tasks-scroll, .new-user-scroll,
    .buddy-scroll, .monthly-scroll, .support-hub, .support-chat-view
  ) { width: min(100%, 780px); margin-right: auto; margin-left: auto; }
  .beike-customer-web .rates-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border: 0; background: transparent; box-shadow: none; }
  .beike-customer-web .rates-list .rate-row { margin: 0; border: 1px solid var(--ui-line); border-radius: 18px; }
  .beike-customer-web .rates-list .rate-row:last-child { border-bottom: 1px solid var(--ui-line); }
  .beike-customer-web .device :is(
    .wallet-bank-picker, .tasks-rules-sheet, .new-user-rules-overlay,
    .buddy-share-sheet, .buddy-rules-sheet, .buddy-qr-sheet,
    .monthly-rules-overlay, .profile-vip-rules-overlay,
    .sell-choice-overlay, .sell-coupon-overlay, .sell-brand-choice-overlay
  ) { inset: 0; }
  .beike-customer-web .device :is(
    .wallet-bank-picker-panel, .tasks-rules-card, .new-user-rules-card,
    .buddy-sheet-card, .buddy-qr-panel, .monthly-rules-card,
    .profile-vip-rules-sheet, .sell-choice-panel, .sell-coupon-panel,
    .sell-brand-choice-panel
  ) { max-height: calc(100dvh - 118px); }
}

/* Mobile keeps the original app flow, with web-safe type, touch and insets. */
@media (max-width: 767px) {
  .beike-customer-web { width: 100%; max-width: 100%; min-height: 100vh; min-height: 100dvh; overflow: hidden; font-size: 16px; }
  .beike-customer-web .web-sidebar { display: none; }
  .beike-customer-web .review-shell { width: 100%; max-width: 100%; }
  .beike-customer-web .device { max-width: 100%; overflow: hidden; }
  .beike-customer-web .device :is(input, textarea, select) { font-size: 16px; }
  .beike-customer-web .device :is(
    .bottom-nav button, .header-icon, .page-header-icon,
    .sell-preview-back, .wallet-back, .wallet-withdraw-back, .wallet-bank-back,
    .wallet-pin-back, .history-back, .profile-back, .support-back,
    .notifications-back, .tasks-back, .wheel-back, .new-user-back,
    .buddy-back, .monthly-back, .support-send, .support-attach,
    .ticker-close, .ticker-open, .rate-sell, .profile-copy
  ) { min-width: 44px; min-height: 44px; }
  .beike-customer-web .screen-scroll,
  .beike-customer-web .device > section,
  .beike-customer-web .device [class$="-scroll"] { max-width: 100%; }
  .beike-customer-web .screen-scroll { padding-right: max(17px, env(safe-area-inset-right)); padding-left: max(17px, env(safe-area-inset-left)); }
  .beike-customer-web .bottom-nav { padding-bottom: max(5px, env(safe-area-inset-bottom)); }
  .beike-customer-web .device :is(
    .sell-choice-overlay, .sell-coupon-overlay, .sell-brand-choice-overlay
  ) { bottom: -72px; }
  .beike-customer-web .support-preview-messages img,
  .beike-customer-web .support-message-image,
  .beike-customer-web .support-image-bubble img { max-width: 100%; height: auto; max-height: 52vh; object-fit: contain; }
}

/* Authentication: editorial welcome panel plus a compact, legible form. */
.beike-customer-web .beike-auth-layer {
  background:
    radial-gradient(circle at 12% 15%, color-mix(in srgb, var(--web-green) 13%, transparent), transparent 36%),
    var(--web-canvas);
}

.beike-customer-web .beike-auth-card {
  border-color: var(--web-line);
  background: color-mix(in srgb, var(--web-panel-raised) 94%, transparent);
}

.beike-customer-web .beike-auth-form label { color: var(--web-ink); font-size: 14px; }
.beike-customer-web .beike-auth-form input { min-height: 50px; font-size: 16px; }
.beike-customer-web .beike-auth-form label small,
.beike-customer-web .beike-auth-help,
.beike-customer-web .beike-auth-footer { color: var(--web-muted); font-size: 12px; }

.beike-customer-web .web-auth-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: start;
  min-height: 620px;
  padding: 54px;
  border: 1px solid color-mix(in srgb, var(--web-green) 18%, var(--web-line));
  border-radius: 30px 0 0 30px;
  background: linear-gradient(145deg, #234936, #2f6248 58%, #47745a);
  color: #f6faf7;
}
.beike-customer-web .web-auth-aside .web-brand {
  width: max-content;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: #fff;
}
.beike-customer-web .web-auth-aside .web-brand > span:last-child { font-size: 15px; }
.beike-customer-web .web-eyebrow {
  margin: 42px 0 12px;
  color: rgba(244, 251, 246, .7);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .16em;
}
.beike-customer-web .web-auth-aside::before,
.beike-customer-web .web-auth-aside::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  pointer-events: none;
}
.beike-customer-web .web-auth-aside::before { width: 420px; height: 420px; top: -250px; right: -190px; }
.beike-customer-web .web-auth-aside::after { width: 280px; height: 280px; right: -160px; bottom: -120px; }
.beike-customer-web .web-auth-aside > * { position: relative; z-index: 1; }
.beike-customer-web .web-auth-aside :is(h1, h2) { max-width: 460px; margin: 0; color: #fff; font-size: clamp(36px, 4vw, 58px); line-height: 1.02; letter-spacing: -.055em; }
.beike-customer-web .web-auth-aside p { max-width: 480px; color: rgba(245, 251, 247, .78); }
.beike-customer-web .web-auth-description { margin: 22px 0 0; font-size: 15px; line-height: 1.7; }
.beike-customer-web .web-auth-visual {
  position: relative;
  min-height: 166px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  background: rgba(255, 255, 255, .055);
}
.beike-customer-web .web-auth-visual::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -60px;
  top: -110px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
}
.beike-customer-web .web-visual-card {
  position: absolute;
  inset: 22px 30px 22px auto;
  width: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .08));
  box-shadow: 0 18px 36px rgba(7, 27, 16, .18);
  transform: rotate(-4deg);
}
.beike-customer-web .web-visual-card span,
.beike-customer-web .web-visual-card small { color: rgba(250, 253, 251, .72); font-size: 8px; font-weight: 750; letter-spacing: .13em; }
.beike-customer-web .web-visual-card b { color: #fff; font-size: 18px; line-height: 1.12; letter-spacing: -.025em; }
.beike-customer-web .web-auth-features { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.beike-customer-web .web-auth-features li {
  display: grid;
  grid-template-columns: 8px 1fr;
  column-gap: 10px;
  color: rgba(247, 252, 249, .88);
}
.beike-customer-web .web-auth-features li::before { content: ""; grid-row: 1 / 3; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #c6dfcc; }
.beike-customer-web .web-auth-features b { grid-column: 2; font-size: 12px; font-weight: 680; }
.beike-customer-web .web-auth-features span { grid-column: 2; margin-top: 2px; color: rgba(245, 251, 247, .62); font-size: 11px; line-height: 1.45; }
.beike-customer-web .web-auth-footnote { margin: 24px 0 0; font-size: 11px; line-height: 1.5; }

/* Native dialog keeps focus handling while matching the web shell. */
.beike-customer-web .web-signout-dialog {
  width: min(420px, calc(100% - 36px));
  padding: 26px;
  border: 1px solid var(--web-line);
  border-radius: 24px;
  background: var(--web-panel-raised);
  color: var(--web-ink);
  box-shadow: 0 26px 70px rgba(8, 22, 14, .24);
}
.beike-customer-web .web-signout-dialog::backdrop { background: rgba(9, 22, 14, .5); backdrop-filter: blur(3px); }
.beike-customer-web .web-signout-dialog h2 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.03em; }
.beike-customer-web .web-signout-dialog p { margin: 10px 0 24px; color: var(--web-muted); font-size: 14px; line-height: 1.55; }
.beike-customer-web .web-signout-dialog > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.beike-customer-web .web-signout-dialog button { min-height: 46px; padding: 0 14px; border: 0; border-radius: 13px; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.beike-customer-web .web-signout-dialog [data-cancel-logout] { background: var(--web-green-soft); color: var(--web-green); }
.beike-customer-web .web-signout-dialog [data-confirm-logout] { background: var(--ui-primary, #2c694d); color: var(--ui-on-primary, #fff); }
.beike-customer-web .web-signout-dialog button:focus-visible { outline: 2px solid var(--web-green); outline-offset: 2px; }

@media (min-width: 900px) {
  .beike-customer-web .beike-auth-layer {
    display: grid;
    grid-template-columns: minmax(420px, 1.15fr) minmax(420px, .85fr);
    align-items: stretch;
    width: 100%;
    padding: max(32px, 5vh) max(32px, 5vw);
  }
  .beike-customer-web .beike-auth-layer > :is(.web-auth-aside, .beike-auth-card) { width: 100%; max-width: none; margin: auto 0; }
  .beike-customer-web .beike-auth-layer > .web-auth-aside { justify-self: end; max-width: 610px; }
  .beike-customer-web .beike-auth-layer > .beike-auth-card {
    align-self: center;
    max-width: 500px;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 46px 48px;
    border-radius: 0 30px 30px 0;
    box-shadow: var(--web-shadow);
  }
  .beike-customer-web .beike-auth-intro { margin: 32px 0 24px; }
  .beike-customer-web .beike-auth-intro h1 { font-size: 36px; }
}

@media (max-width: 899px) {
  .beike-customer-web .web-auth-aside { display: none; }
  .beike-customer-web .beike-auth-layer { padding-right: max(18px, env(safe-area-inset-right)); padding-left: max(18px, env(safe-area-inset-left)); }
  .beike-customer-web .beike-auth-card { width: min(100%, 480px); border-radius: 26px; }
}

@media (max-width: 480px) {
  .beike-customer-web .beike-auth-layer { align-items: flex-start; padding-top: max(18px, env(safe-area-inset-top)); }
  .beike-customer-web .beike-auth-card { margin: auto 0; padding: 24px 18px 20px; }
  .beike-customer-web .beike-auth-intro { margin: 24px 0 20px; }
  .beike-customer-web .beike-auth-intro h1 { font-size: 30px; }
}

/* Motion remains useful but never required for navigation or state changes. */
@media (prefers-reduced-motion: reduce) {
  .beike-customer-web *,
  .beike-customer-web *::before,
  .beike-customer-web *::after {
    scroll-behavior: auto;
    animation-duration: .01ms;
    animation-iteration-count: 1;
    transition-duration: .01ms;
  }
}
