@font-face {
  font-family: "Material Icons";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("./material-icons.woff2") format("woff2");
}

.material-icons {
  display: inline-block;
  width: 1em;
  overflow: hidden;
  font-family: "Material Icons" !important;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  font-feature-settings: "liga";
  line-height: 1;
  letter-spacing: normal;
  text-rendering: optimizeLegibility;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.material-icons.brand-svg-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  overflow: visible;
  font-size: 0 !important;
  line-height: 1;
}

.material-icons.brand-svg-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-native-top-settings,
.brand-hidden-technical-info,
.brand-hidden-native-server-settings {
  display: none !important;
}

.brand-native-add-tab-hidden,
.brand-native-add-id-hidden {
  display: none !important;
}

.brand-login-register-prompt {
  display: none !important;
}

.brand-settings-hidden-note {
  margin: 18px 16px;
  padding: 12px 14px;
  border: 1px solid rgba(238, 77, 45, 0.16);
  border-radius: 12px;
  background: #fff7f3;
  color: #59443b;
  font-size: 13px;
  line-height: 1.45;
}

.brand-native-register-entry {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  width: auto !important;
  min-width: 52px;
  height: 32px;
  padding: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: #ee4d2d !important;
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", "Segoe UI", sans-serif;
  text-decoration: none !important;
}

.brand-native-register-entry .material-icons {
  display: none !important;
}

.brand-register-entry-text {
  display: inline-block;
  color: inherit !important;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.brand-login-register-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 100vw);
  margin: 28px 0 0;
  color: #7b8794;
  font-size: 12px;
  line-height: 1.45;
}

.brand-login-register-prompt span {
  max-width: 100%;
  text-align: center;
}

html.brand-auth-active,
body.brand-auth-active {
  background: #fff !important;
  max-width: 100svw !important;
  overflow-x: clip !important;
}

html.brand-guest-active,
body.brand-guest-active {
  background: #f6f8fc !important;
}

body.brand-guest-active #brand-business-page,
body.brand-guest-active #brand-bottom-tabs {
  pointer-events: auto;
}

html.brand-business-shell-active,
body.brand-business-shell-active {
  width: 100dvw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-width: 100dvw !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  background: #fff !important;
}

body.brand-auth-active #brand-business-page,
body.brand-auth-active #brand-bottom-tabs,
body.brand-auth-active .brand-login-register-prompt {
  display: none !important;
}

body.brand-token-restoring #login-form,
body.brand-chat-restoring #login-form,
body.brand-token-restoring .brand-auth-logo-panel,
body.brand-chat-restoring .brand-auth-logo-panel,
body.brand-token-restoring .brand-login-register-prompt,
body.brand-chat-restoring .brand-login-register-prompt,
body.brand-token-restoring #sidepanel-title,
body.brand-chat-restoring #sidepanel-title,
body.brand-token-restoring #side-caption-panel .caption-panel,
body.brand-chat-restoring #side-caption-panel .caption-panel {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.brand-auth-active #side-caption-panel .brand-auth-placeholder-action {
  display: none !important;
}

body.brand-auth-active,
body.brand-auth-active #mountPoint,
body.brand-auth-active #app-container,
body.brand-auth-active #dummy-view,
body.brand-auth-active .dialog-panel,
body.brand-auth-active .brand-auth-logo-panel {
  background: #fff !important;
  color: #ee4d2d !important;
}

body.brand-auth-active #sidepanel,
body.brand-auth-active #side-caption-panel,
body.brand-auth-active #login-form,
body.brand-auth-active #sidepanel > div,
body.brand-auth-active .panel-form,
body.brand-auth-active .panel-form-row,
body.brand-auth-active .caption-panel {
  background: #fff !important;
  color: #ee4d2d !important;
  max-width: 100svw !important;
  box-sizing: border-box !important;
  overflow-x: clip !important;
}

html.brand-auth-active:not(.brand-register-route) body.brand-auth-active #sidepanel {
  padding-top: 24px !important;
}

html.brand-auth-active:not(.brand-register-route) body.brand-auth-active #login-form {
  margin-top: 44px !important;
}

body.brand-auth-active #app-container {
  border-color: transparent !important;
  box-shadow: none !important;
}

body.brand-auth-active #dummy-view {
  border: 0 !important;
  box-shadow: none !important;
}

body.brand-auth-active #dummy-view > div {
  display: none !important;
}

body.brand-auth-active #side-caption-panel {
  border-bottom: 1px solid rgba(238, 77, 45, 0.14) !important;
  box-shadow: none !important;
}

body.brand-auth-active #sidepanel-title,
body.brand-auth-active #side-caption-panel a,
body.brand-auth-active #side-caption-panel .material-icons,
body.brand-auth-active #login-form,
body.brand-auth-active #login-form label,
body.brand-auth-active #login-form span,
body.brand-auth-active #login-form a,
body.brand-auth-active .brand-login-register-prompt {
  color: #ee4d2d !important;
}

body.brand-auth-active #sidepanel-title {
  background: transparent !important;
  box-shadow: none !important;
}

html.brand-register-route body.brand-auth-active #side-caption-panel,
html.brand-register-route body.brand-auth-active #sidepanel-title,
html.brand-register-route body.brand-auth-active #sidepanel .caption-panel {
  box-sizing: border-box !important;
  min-height: calc(68px + env(safe-area-inset-top)) !important;
  padding-top: max(22px, calc(14px + env(safe-area-inset-top))) !important;
}

html.brand-register-route body.brand-auth-active #sidepanel-title {
  display: flex !important;
  align-items: center !important;
  height: auto !important;
}

body.brand-auth-active #login-form input:not([type="checkbox"]):not([type="radio"]) {
  border-color: rgba(238, 77, 45, 0.5) !important;
  background: transparent !important;
  color: #ee4d2d !important;
  caret-color: #ee4d2d;
  box-shadow: none !important;
}

body.brand-auth-active #login-form input:not([type="checkbox"]):not([type="radio"])::placeholder {
  color: rgba(238, 77, 45, 0.5) !important;
}

body.brand-auth-active #login-form input[type="checkbox"],
body.brand-auth-active #login-form input[type="radio"] {
  accent-color: #ee4d2d;
}

body.brand-auth-active #login-form input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  border: 2px solid #ee4d2d !important;
  border-radius: 2px !important;
  background: #fff !important;
  box-shadow: none !important;
  display: inline-grid !important;
  place-content: center !important;
  vertical-align: -3px !important;
}

body.brand-auth-active #login-form input[type="checkbox"]::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
}

body.brand-auth-active #login-form input[type="checkbox"]:checked {
  background: #ee4d2d !important;
}

body.brand-auth-active #login-form input[type="checkbox"]:checked::after {
  transform: rotate(-45deg) scale(1);
}

body.brand-auth-active #login-form .material-icons,
body.brand-auth-active #login-form .icon {
  color: rgba(238, 77, 45, 0.72) !important;
}

body.brand-auth-active #login-form button,
body.brand-auth-active #login-form .flat-button,
body.brand-auth-active #login-form .dialog-buttons button {
  border: 0 !important;
  background: #ee4d2d !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(238, 77, 45, 0.2) !important;
}

body.brand-auth-active #login-form button:hover,
body.brand-auth-active #login-form button:focus-visible {
  background: #d93817 !important;
  color: #fff !important;
}

body.brand-auth-active #login-form button.brand-auth-guest-login {
  position: relative !important;
  z-index: 20 !important;
  display: flex !important;
  width: max-content !important;
  min-width: 112px !important;
  height: 36px !important;
  align-items: center;
  justify-content: center;
  margin: 18px auto 0 !important;
  padding: 0 20px !important;
  border: 1px solid rgba(238, 77, 45, 0.36) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #ee4d2d !important;
  box-shadow: 0 8px 22px rgba(238, 77, 45, 0.1) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-tap-highlight-color: transparent;
}

body.brand-auth-active #login-form button.brand-auth-guest-login:hover,
body.brand-auth-active #login-form button.brand-auth-guest-login:focus-visible {
  border-color: #ee4d2d !important;
  background: #fff7f3 !important;
  color: #d93817 !important;
}

body.brand-auth-active #login-form {
  position: relative;
}

body.brand-auth-active #login-form .linear-progress,
body.brand-auth-active #login-form .progress-linear,
body.brand-auth-active #login-form [role="progressbar"]:not(.circular-progress):not(.progress-circular):not(.spinner),
body.brand-auth-active #login-form progress {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 0 !important;
  overflow: hidden !important;
}

body.brand-auth-active #login-form .spinner,
body.brand-auth-active #login-form .progress-circular,
body.brand-auth-active #login-form .circular-progress {
  position: absolute !important;
  left: 50% !important;
  top: 54% !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.brand-auth-active .load-spinner-box {
  position: absolute !important;
  z-index: 4 !important;
  left: 0 !important;
  right: 0 !important;
  top: 218px !important;
  width: 100% !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

body.brand-auth-active #sidepanel > .load-spinner-box {
  background: transparent !important;
  box-shadow: none !important;
}

body.brand-auth-active .load-spinner-box::before,
body.brand-auth-active .load-spinner-box::after {
  display: none !important;
  content: none !important;
}

body.brand-auth-active .load-spinner-box .loader-spinner,
body.brand-auth-active > .loader-spinner,
body.brand-auth-active .loader-spinner {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform-origin: 50% 50% !important;
}

body.brand-auth-active #sidepanel > .load-spinner-box .loader-spinner {
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
}

.brand-auth-logo-panel {
  display: flex !important;
  width: 100%;
  height: auto;
  min-height: clamp(280px, 48vh, 540px);
  max-height: none;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 24px auto 0;
  padding: 0 18px 28px;
  overflow: hidden;
  background: transparent;
  color: #ee4d2d;
}

body.brand-auth-active .brand-auth-logo-panel {
  width: 100%;
  min-height: clamp(280px, 48vh, 540px);
  max-height: none;
  margin: 24px auto 0;
  padding: 0 12px 28px;
  background: transparent;
}

.brand-auth-logo-panel img {
  width: 118px;
  max-width: 32%;
  height: auto;
  filter: drop-shadow(0 14px 32px rgba(130, 28, 8, 0.2));
}

.brand-auth-logo-mark {
  display: block;
  width: min(21vw, 95px);
  max-width: 95px;
  color: #ee4d2d;
  filter: drop-shadow(0 14px 32px rgba(238, 77, 45, 0.16));
}

.brand-auth-logo-mark svg {
  display: block;
  width: 100%;
  height: auto;
}

.brand-auth-logo-mark img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

.brand-auth-logo-panel strong {
  display: block;
  margin-top: 20px;
  color: #ee4d2d;
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", "Segoe UI", sans-serif;
  font-size: clamp(24px, 6.3vw, 36px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  white-space: nowrap;
}

body.brand-auth-active .brand-auth-logo-panel img {
  width: 111px;
  max-width: 29%;
}

body.brand-auth-active .brand-auth-logo-mark {
  width: min(21vw, 95px);
  max-width: 95px;
  color: #ee4d2d;
}

body.brand-auth-active .brand-auth-logo-panel strong {
  margin-top: 20px;
  color: #ee4d2d;
  text-shadow: none;
}

body.brand-auth-active #sidepanel > [role="alert"],
body.brand-auth-active #sidepanel > .alert,
body.brand-auth-active #sidepanel > .error,
body.brand-auth-active #sidepanel > .error-message,
body.brand-auth-active #sidepanel > .error-panel,
body.brand-auth-active #sidepanel > .snackbar {
  position: relative !important;
  inset: auto !important;
  z-index: 5 !important;
  box-sizing: border-box !important;
  width: calc(100% - 24px) !important;
  max-width: calc(100% - 24px) !important;
  min-height: 36px !important;
  margin: 8px 12px 10px !important;
  padding: 9px 44px 9px 42px !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
  line-height: 1.35 !important;
}

body.brand-auth-active #sidepanel > [role="alert"] .material-icons,
body.brand-auth-active #sidepanel > .alert .material-icons,
body.brand-auth-active #sidepanel > .error .material-icons,
body.brand-auth-active #sidepanel > .error-message .material-icons,
body.brand-auth-active #sidepanel > .error-panel .material-icons,
body.brand-auth-active #sidepanel > .snackbar .material-icons {
  position: static !important;
  transform: none !important;
}

body.brand-auth-active #sidepanel > [role="alert"] .material-icons:first-child,
body.brand-auth-active #sidepanel > .alert .material-icons:first-child,
body.brand-auth-active #sidepanel > .error .material-icons:first-child,
body.brand-auth-active #sidepanel > .error-message .material-icons:first-child,
body.brand-auth-active #sidepanel > .error-panel .material-icons:first-child,
body.brand-auth-active #sidepanel > .snackbar .material-icons:first-child {
  position: absolute !important;
  top: 50% !important;
  right: auto !important;
  left: 12px !important;
  transform: translateY(-50%) !important;
}

body.brand-auth-active #sidepanel > [role="alert"] .material-icons:last-child,
body.brand-auth-active #sidepanel > .alert .material-icons:last-child,
body.brand-auth-active #sidepanel > .error .material-icons:last-child,
body.brand-auth-active #sidepanel > .error-message .material-icons:last-child,
body.brand-auth-active #sidepanel > .error-panel .material-icons:last-child,
body.brand-auth-active #sidepanel > .snackbar .material-icons:last-child {
  position: absolute !important;
  top: 50% !important;
  right: 10px !important;
  left: auto !important;
  transform: translateY(-50%) !important;
}

body.brand-auth-active #sidepanel > .info-box .icon {
  position: absolute !important;
  top: 50% !important;
  left: 12px !important;
  display: block !important;
  margin: 0 !important;
  transform: translateY(-50%) !important;
}

body.brand-auth-active #sidepanel > .info-box .cancel {
  position: absolute !important;
  top: 50% !important;
  right: 10px !important;
  transform: translateY(-50%) !important;
}

body.brand-auth-active #sidepanel > .info-box .icon .material-icons,
body.brand-auth-active #sidepanel > .info-box .cancel .material-icons {
  position: static !important;
  transform: none !important;
}

@media (max-width: 640px) {
  html.brand-auth-active,
  body.brand-auth-active {
    width: 100svw !important;
    min-width: 0 !important;
    max-width: 100svw !important;
    overflow-x: clip !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
  }

  body.brand-auth-active #app-container,
  body.brand-auth-active #sidepanel,
  body.brand-auth-active #sidepanel > div,
  body.brand-auth-active #side-caption-panel,
  body.brand-auth-active #login-form,
  body.brand-auth-active .panel-form,
  body.brand-auth-active .caption-panel {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100svw !important;
    max-inline-size: 100svw !important;
    box-sizing: border-box !important;
    overflow-x: clip !important;
    transform: none !important;
    left: 0 !important;
    right: auto !important;
  }

  body.brand-auth-active #app-container,
  body.brand-auth-active #mountPoint {
    min-height: 100dvh !important;
  }

  body.brand-auth-active #dummy-view {
    display: none !important;
  }

  body.brand-auth-active #login-form {
    padding-right: max(12px, env(safe-area-inset-right)) !important;
    padding-left: max(12px, env(safe-area-inset-left)) !important;
  }

  body.brand-auth-active #login-form input:not([type="checkbox"]):not([type="radio"]),
  body.brand-auth-active #login-form textarea,
  body.brand-auth-active #login-form select {
    font-size: 16px !important;
  }

  body.brand-auth-active #login-form button.brand-auth-guest-login {
    min-height: 40px !important;
  }

  body.brand-auth-active #sidepanel {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body.brand-auth-active #sidepanel > [role="alert"],
  body.brand-auth-active #sidepanel > .alert,
  body.brand-auth-active #sidepanel > .error,
  body.brand-auth-active #sidepanel > .error-message,
  body.brand-auth-active #sidepanel > .error-panel,
  body.brand-auth-active #sidepanel > .snackbar {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
  }

  body.brand-auth-active #login-form .dialog-buttons,
  body.brand-auth-active #login-form .panel-form-row {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.brand-auth-active #side-caption-panel {
    padding-right: max(10px, env(safe-area-inset-right)) !important;
    padding-left: max(10px, env(safe-area-inset-left)) !important;
  }
}

@media (max-width: 420px) {
  .brand-auth-logo-panel {
    width: 100%;
    min-height: clamp(300px, 52vh, 560px);
    margin-top: 20px;
    padding: 0 14px 24px;
  }

  .brand-auth-logo-panel img {
    width: 95px;
    max-width: 34%;
  }

  .brand-auth-logo-mark {
    width: 90px;
    max-width: 24vw;
  }

  .brand-auth-logo-panel strong {
    margin-top: 17px;
    font-size: 27px;
  }

  body.brand-auth-active .brand-auth-logo-panel {
    min-height: clamp(300px, 52vh, 560px);
    margin: 20px auto 0;
    padding-bottom: 24px;
  }

  body.brand-auth-active .brand-auth-logo-panel img {
    width: 92px;
  }

  body.brand-auth-active .brand-auth-logo-mark {
    width: 90px;
    max-width: 24vw;
  }
}

.brand-empty-notice-hidden {
  display: none !important;
}

.brand-synthetic-contact-box {
  margin: 0;
  padding: 0;
  list-style: none;
}

#info-view.brand-channel-info-view #info-view-content {
  box-sizing: border-box;
  min-height: calc(100vh - 58px);
  background: #fff;
}

#info-view.brand-channel-info-view:not(.brand-channel-info-ready) .panel-form-column {
  visibility: hidden;
}

#info-view:not(.brand-channel-info-editable) [data-brand-native-group-edit-action],
#info-view:not(.brand-channel-info-editable) a[title*="編輯"],
#info-view:not(.brand-channel-info-editable) button[title*="編輯"],
#info-view:not(.brand-channel-info-editable) [aria-label*="編輯"],
#info-view:not(.brand-channel-info-editable) a[title*="编辑"],
#info-view:not(.brand-channel-info-editable) button[title*="编辑"],
#info-view:not(.brand-channel-info-editable) [aria-label*="编辑"],
#info-view:not(.brand-channel-info-editable) a[title*="Edit"],
#info-view:not(.brand-channel-info-editable) button[title*="Edit"],
#info-view:not(.brand-channel-info-editable) [aria-label*="Edit"],
#info-view:not(.brand-channel-info-editable) a[title*="edit"],
#info-view:not(.brand-channel-info-editable) button[title*="edit"],
#info-view:not(.brand-channel-info-editable) [aria-label*="edit"],
#info-view:not(.brand-channel-info-can-copy) [data-brand-native-group-share-action],
#info-view:not(.brand-channel-info-can-copy) .brand-channel-share-row,
.brand-native-group-restricted-action {
  display: none !important;
}

.brand-channel-announcement-row,
.brand-channel-share-row {
  display: flex !important;
  align-items: center;
  min-height: 54px;
  box-sizing: border-box;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
}

#info-view.brand-channel-info-view .brand-channel-announcement-row {
  margin-top: 12px;
}

#info-view.brand-channel-info-view .brand-native-group-private-hidden {
  display: none !important;
}

#info-view.brand-channel-info-editable .avatar-upload,
#info-view.brand-channel-info-editable .avatar-upload:not(.read-only),
#info-view.brand-channel-info-editable input.in-place-edit,
#info-view.brand-channel-info-editable textarea.in-place-edit,
#info-view.brand-channel-info-editable label[for],
#info-view.brand-channel-info-editable .flat-button,
#info-view.brand-channel-info-editable button {
  visibility: visible !important;
}

#info-view.brand-channel-info-editable .avatar-upload {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#info-view.brand-channel-info-editable .avatar-upload .brand-avatar-upload-control {
  margin-top: 10px;
}

.brand-channel-announcement-row .brand-field-label,
.brand-channel-share-row .brand-field-label {
  flex: 0 0 auto;
  color: var(--brand-primary);
  font-size: 15px;
  line-height: 1.35;
}

.brand-channel-announcement-row .brand-field-value {
  min-width: 0;
  color: #374151;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.brand-channel-share-link {
  min-width: 0;
  flex: 1 1 auto;
  padding: 7px 9px;
  border: 1px solid rgba(238, 77, 45, 0.28);
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font: 600 12px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.brand-channel-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(238, 77, 45, 0.36);
  border-radius: 999px;
  background: #fff7f3;
  color: var(--brand-primary);
  font-size: 14px;
  font-weight: 700;
}

#info-view.brand-channel-general-edit-view #info-view-content,
#info-view.brand-channel-general-edit-view .scrollable-panel,
#info-view.brand-channel-general-edit-view .brand-group-info-content-host,
#info-view.brand-channel-general-edit-view .brand-group-edit-host {
  box-sizing: border-box;
  min-height: calc(100vh - 58px);
  background: #fff;
}

.brand-native-group-edit-original-hidden {
  display: none !important;
}

body.brand-channel-general-edit-active #send-message-panel,
body.brand-channel-general-edit-active #send-message-wrapper,
body.brand-channel-general-edit-active #sendMessage,
body.brand-channel-general-edit-active .brand-voice-button,
body.brand-channel-general-edit-active .brand-send-button,
body.brand-channel-general-edit-active .brand-text-send-button,
body.brand-channel-general-edit-active [data-brand-text-send],
body.brand-channel-general-edit-active [data-brand-voice-button] {
  display: none !important;
}

.brand-group-edit-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 18px 28px;
  background: #fff;
}

.brand-group-avatar-editor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 auto 4px;
  color: var(--brand-primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.brand-group-edit-avatar-preview {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.16);
}

.brand-group-avatar-editor input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.brand-group-edit-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--brand-primary);
  font-size: 14px;
  font-weight: 700;
}

.brand-group-edit-field input,
.brand-group-edit-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font: 600 15px/1.4 "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", "Segoe UI", sans-serif;
}

.brand-group-edit-field input {
  min-height: 44px;
  padding: 0 12px;
}

.brand-group-edit-field textarea {
  min-height: 84px;
  padding: 10px 12px;
  resize: vertical;
}

.brand-group-edit-field input:focus,
.brand-group-edit-field textarea:focus {
  border-color: var(--brand-primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.12);
}

.brand-group-edit-save {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(238, 77, 45, 0.22);
}

#info-view.brand-channel-general-edit-view .brand-channel-announcement-row,
#info-view.brand-channel-general-edit-view .brand-channel-share-row {
  display: none !important;
}

.brand-group-stats-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-field-label {
  color: var(--brand-primary);
}

.brand-field-value {
  color: #374151;
}

:root {
  --brand-name: "蝦皮推廣站";
  --brand-primary: #ee4d2d;
  --brand-primary-dark: #d73211;
  --brand-primary-soft: #fff1ec;
  --brand-primary-wash: #ffe3d8;
  --brand-gold: #ffc928;

  --clr-primary-accent: light-dark(#ee4d2d, #d85a3d);
  --clr-primary-accent-hover: light-dark(#d73211, #ff7658);
  --clr-primary-accent-focus-shadow: light-dark(rgba(238, 77, 45, 0.25), rgba(238, 77, 45, 0.22));
  --clr-primary-accent-transparent-medium: light-dark(rgba(238, 77, 45, 0.28), rgba(238, 77, 45, 0.24));
  --clr-primary-action: light-dark(#ee4d2d, #d85a3d);
  --clr-primary-action-hover: light-dark(#d73211, #ff7658);
  --clr-secondary-accent: light-dark(#fb7a2f, #ffb24c);
  --clr-primary-light-blue: light-dark(#fff2ec, #ffd8ce);
  --clr-light-blue-accent: light-dark(#ee4d2d, #ff7658);
  --clr-primary-wash: light-dark(#fff1ec, #3b1b14);
  --clr-blue-wash-light: light-dark(#fff6f1, #2f1a14);
  --clr-blue-wash-medium: light-dark(#ffe3d8, #4a2218);
  --clr-header-stripe-bg: light-dark(#ee4d2d, #2d1511);
  --clr-cyan-50: light-dark(#e3f6f7, #172529);
  --clr-badge-blue-bg: light-dark(#fff1ec, #3a1d16);
  --clr-badge-blue-text: light-dark(#d73211, #ff9a7f);
  --clr-badge-blue-border: light-dark(#ffc0ad, #7d3929);
}

html,
body {
  accent-color: var(--brand-primary);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
}

@supports (width: 100dvw) {
  html,
  body {
    width: 100dvw;
    max-width: 100dvw;
  }
}

html:not(.brand-ui-ready) #mountPoint {
  visibility: hidden !important;
}

html.brand-ui-ready #mountPoint {
  visibility: visible !important;
}

html.brand-updating #mountPoint {
  visibility: hidden !important;
}

#brand-update-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  width: 100dvw;
  min-width: 100dvw;
  height: 100dvh;
  min-height: 100dvh;
  box-sizing: border-box;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: #ee4d2d;
  color: #fff;
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", Arial, sans-serif;
  transform: none !important;
}

#brand-update-overlay[hidden] {
  display: none !important;
}

#brand-update-overlay > div {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 32px;
  box-sizing: border-box;
  text-align: center;
}

#brand-update-overlay span {
  width: 88px;
  height: 76px;
  background: currentColor;
  clip-path: path("M25 27C27 10 38 0 52 0s25 10 27 27h13c5 0 9 4 8 9l-5 53c-1 9-8 14-17 14H26c-10 0-17-5-18-14L3 36c0-5 3-9 8-9h14Zm10 0h34C67 16 61 9 52 9s-15 7-17 18Z");
}

#brand-update-overlay b {
  font-size: 28px;
  font-weight: 800;
}

#brand-update-overlay p {
  margin: 0;
  font-size: 14px;
  opacity: 0.82;
}

#brand-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: var(--brand-primary);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms ease, visibility 320ms ease;
}

html:not(.brand-ui-ready) #brand-splash {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

html.brand-ui-ready #brand-splash {
  display: none !important;
}

#brand-splash.brand-splash-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#brand-splash span {
  width: 88px;
  height: 76px;
  background: currentColor;
  clip-path: path("M25 27C27 10 38 0 52 0s25 10 27 27h13c5 0 9 4 8 9l-5 53c-1 9-8 14-17 14H26c-10 0-17-5-18-14L3 36c0-5 3-9 8-9h14Zm10 0h34C67 16 61 9 52 9s-15 7-17 18Z");
}

#brand-splash img {
  width: min(38vw, 210px);
  max-width: 64%;
  height: auto;
  filter: drop-shadow(0 14px 32px rgba(130, 28, 8, 0.22));
}

#brand-splash-title {
  margin: 0;
  font-size: clamp(36px, 7vw, 66px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", "Segoe UI", sans-serif;
}

#brand-splash b {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
}

#brand-splash p {
  margin: -22px 0 0;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.82;
}

#dummy-view {
  background-color: light-dark(#e4f7f8, #172529);
}

body.brand-business-shell-active #dummy-view,
body.brand-safe-chat-home #dummy-view {
  visibility: hidden !important;
  pointer-events: none !important;
}

#dummy-view a {
  color: var(--brand-primary) !important;
}

#dummy-view p {
  display: none !important;
}

#dummy-view img[src*="logo"] {
  width: 156px;
  height: 156px;
  object-fit: contain;
  border-radius: 34px;
}

.brand-logo-img {
  object-fit: contain;
}

.brand-default-avatar-box {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  background: #fff var(--brand-default-avatar-url, url("/brand/shopee-logo.png")) center / cover no-repeat !important;
  color: transparent !important;
  font-size: 0 !important;
}

.brand-default-avatar-box > :not(.brand-default-avatar-img) {
  display: none !important;
}

.brand-default-avatar-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: inherit !important;
  background: transparent !important;
}

.avatar-upload .blank.brand-default-avatar-box {
  display: block !important;
  width: 10rem !important;
  height: 10rem !important;
  border: 0 !important;
  line-height: 10rem !important;
}

.avatar-upload .brand-avatar-upload-control,
.avatar-upload .inputfile + label.round.brand-avatar-upload-control {
  display: inline-flex !important;
  width: auto !important;
  min-width: 6.3rem !important;
  height: 2.4rem !important;
  padding: 0 0.75rem !important;
  gap: 0.35rem;
  border-radius: 1.2rem !important;
  background: #fff !important;
  color: #ee4d2d !important;
  font-size: 0.78rem !important;
  font-weight: 700;
  line-height: 1 !important;
  white-space: nowrap;
}

.avatar-upload .brand-avatar-upload-control .material-icons,
.avatar-upload .brand-avatar-upload-control svg {
  width: 1.1rem !important;
  height: 1.1rem !important;
  font-size: 1.1rem !important;
}

#settings-view .avatar-upload .brand-avatar-upload-control,
#settings-view .avatar-upload .inputfile + label.round.brand-avatar-upload-control,
#settings-view .avatar-upload input[type="file"],
#account-settings .avatar-upload .brand-avatar-upload-control,
#account-settings .avatar-upload .inputfile + label.round.brand-avatar-upload-control,
#account-settings .avatar-upload input[type="file"],
[id*="settings"] .avatar-upload .brand-avatar-upload-control,
[id*="settings"] .avatar-upload .inputfile + label.round.brand-avatar-upload-control,
[id*="settings"] .avatar-upload input[type="file"],
#info-view:not(.brand-channel-info-editable) .avatar-upload .brand-avatar-upload-control,
#info-view:not(.brand-channel-info-editable) .avatar-upload .inputfile + label.round.brand-avatar-upload-control,
#info-view:not(.brand-channel-info-editable) .avatar-upload input[type="file"] {
  display: none !important;
}

body.brand-personal-settings-active .avatar-upload .brand-avatar-upload-control,
body.brand-personal-settings-active .avatar-upload .inputfile + label.round,
body.brand-personal-settings-active #info-view:not(.brand-channel-info-editable) .avatar-upload label,
body.brand-personal-settings-active #info-view:not(.brand-channel-info-editable) .avatar-upload button,
body.brand-personal-settings-active #info-view:not(.brand-channel-info-editable) .avatar-upload a,
body.brand-personal-settings-active #info-view:not(.brand-channel-info-editable) .avatar-upload [role="button"],
body.brand-personal-settings-active .avatar-upload input[type="file"],
#info-view.brand-personal-settings-avatar-locked .avatar-upload .brand-avatar-upload-control,
#info-view.brand-personal-settings-avatar-locked .avatar-upload .inputfile + label.round,
#info-view.brand-personal-settings-avatar-locked:not(.brand-channel-info-editable) .avatar-upload label,
#info-view.brand-personal-settings-avatar-locked:not(.brand-channel-info-editable) .avatar-upload button,
#info-view.brand-personal-settings-avatar-locked:not(.brand-channel-info-editable) .avatar-upload a,
#info-view.brand-personal-settings-avatar-locked:not(.brand-channel-info-editable) .avatar-upload [role="button"],
#info-view.brand-personal-settings-avatar-locked .avatar-upload input[type="file"],
.brand-personal-avatar-control-hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.brand-personal-settings-active .avatar-upload,
#info-view.brand-personal-settings-avatar-locked .avatar-upload {
  pointer-events: none !important;
}

body.brand-personal-settings-active .brand-personal-settings-header-hidden,
body.brand-personal-settings-active #sidepanel-title input,
body.brand-personal-settings-active #sidepanel-title .search-box,
body.brand-personal-settings-active #sidepanel-title .search,
body.brand-personal-settings-active .caption-panel input,
body.brand-personal-settings-active .caption-panel .search-box,
body.brand-personal-settings-active .caption-panel .search,
body.brand-personal-settings-active header input[type="search"],
body.brand-personal-settings-active header .search-box {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.brand-personal-settings-surface-hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.brand-registration-phone-duplicate {
  display: none !important;
}

.brand-registration-legacy-hidden {
  display: none !important;
}

.brand-registration-avatar-hidden,
body.brand-auth-active .brand-phone-registration-form .avatar-upload,
body.brand-auth-active .brand-phone-registration-form .avatar-box,
body.brand-auth-active .brand-phone-registration-form .lettertile,
body.brand-auth-active .brand-phone-registration-form input[type="file"] {
  display: none !important;
}

.brand-phone-registration-form .brand-registration-phone-input,
body.brand-auth-active #login-form .brand-phone-login-input {
  letter-spacing: 0 !important;
}

body.brand-auth-active .brand-phone-registration-form {
  width: min(390px, calc(100vw - 28px)) !important;
  margin: 14px auto 22px !important;
  padding: 22px 20px 18px !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #111827 !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14) !important;
}

html.brand-register-route body.brand-auth-active #app-container,
html.brand-register-route body.brand-auth-active #sidepanel,
html.brand-register-route body.brand-auth-active #sidepanel > div {
  width: 100dvw !important;
  min-width: 100dvw !important;
  max-width: 100dvw !important;
  margin-right: auto !important;
  margin-left: auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
  transform: none !important;
}

html.brand-register-route body.brand-auth-active .brand-phone-registration-form {
  width: min(390px, calc(100dvw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right))) !important;
  max-width: calc(100dvw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)) !important;
  margin-right: auto !important;
  margin-left: auto !important;
  align-self: center !important;
}

body.brand-auth-active .brand-phone-registration-form .brand-registration-legacy-hidden {
  display: none !important;
}

body.brand-auth-active .brand-phone-registration-form .brand-register-clean-fields {
  display: block !important;
  width: 100% !important;
}

body.brand-auth-active form:not(#login-form):not(.brand-phone-registration-form) {
  visibility: hidden !important;
}

html.brand-register-route #sidepanel form:not(.brand-phone-registration-form),
html.brand-register-route #sidepanel .brand-phone-registration-form:not([data-brand-register-ready="true"]) {
  visibility: hidden !important;
}

html.brand-register-route body.brand-auth-active #sidepanel > [role="alert"],
html.brand-register-route body.brand-auth-active #sidepanel > .alert,
html.brand-register-route body.brand-auth-active #sidepanel > .error,
html.brand-register-route body.brand-auth-active #sidepanel > .error-message,
html.brand-register-route body.brand-auth-active #sidepanel > .error-panel,
html.brand-register-route body.brand-auth-active #sidepanel > .snackbar {
  display: none !important;
}

body.brand-auth-active .brand-phone-registration-form:not([data-brand-register-ready="true"]) {
  visibility: hidden !important;
}

body.brand-auth-active .brand-phone-registration-form .brand-auth-logo-panel {
  display: none !important;
}

body.brand-auth-active .brand-phone-registration-form .brand-register-field-label,
body.brand-auth-active .brand-phone-registration-form .brand-register-field-row::before,
body.brand-auth-active .brand-phone-registration-form [data-brand-register-label] {
  display: block;
  margin: 0 0 10px;
  color: #111827 !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

body.brand-auth-active .brand-phone-registration-form .brand-register-field-row .brand-register-field-label,
body.brand-auth-active .brand-phone-registration-form .brand-register-field-row [data-brand-register-label] {
  display: none !important;
}

body.brand-auth-active .brand-phone-registration-form .brand-register-field-row {
  position: relative;
  display: block !important;
  width: 100%;
  margin: 0 0 16px !important;
  padding: 0 !important;
  background: transparent !important;
  color: #111827 !important;
}

body.brand-auth-active .brand-phone-registration-form .brand-register-field-row input:not([type="checkbox"]):not([type="radio"]) {
  display: block !important;
  width: 100% !important;
  height: 56px !important;
  box-sizing: border-box !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #f3f4f7 !important;
  color: #111827 !important;
  caret-color: var(--brand-primary, #ee4d2d) !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}

body.brand-auth-active .brand-phone-registration-form .brand-register-field-row input::placeholder {
  color: #9ca3af !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  opacity: 1 !important;
}

body.brand-auth-active .brand-phone-registration-form .brand-register-field-row::after {
  content: none !important;
}

body.brand-auth-active .brand-phone-registration-form .brand-register-field-phone .brand-register-field-label {
  display: none !important;
}

body.brand-auth-active .brand-phone-registration-form .brand-register-field-phone::before {
  content: "手機號";
}

body.brand-auth-active .brand-phone-registration-form .brand-register-field-password::before {
  content: "密碼";
}

body.brand-auth-active .brand-phone-registration-form .brand-register-field-confirm-password::before {
  content: "確認密碼";
}

body.brand-auth-active .brand-phone-registration-form .brand-register-field-name::before {
  content: "姓名";
}

body.brand-auth-active .brand-phone-registration-form .brand-register-field-invite::before {
  content: "邀請碼";
}

body.brand-auth-active .brand-phone-registration-form .brand-register-field-phone input {
  padding-right: 16px !important;
}

body.brand-auth-active .brand-phone-registration-form .brand-register-field-invite input {
  color: #111827 !important;
  font-size: 15px !important;
  font-weight: 500;
  letter-spacing: 0 !important;
  text-align: left;
}

body.brand-auth-active .brand-phone-registration-form .brand-registration-password-control-hidden,
body.brand-auth-active .brand-phone-registration-form .brand-register-field-password button,
body.brand-auth-active .brand-phone-registration-form .brand-register-field-password a,
body.brand-auth-active .brand-phone-registration-form .brand-register-field-password .material-icons,
body.brand-auth-active .brand-phone-registration-form .brand-register-field-confirm-password button,
body.brand-auth-active .brand-phone-registration-form .brand-register-field-confirm-password a,
body.brand-auth-active .brand-phone-registration-form .brand-register-field-confirm-password .material-icons {
  display: none !important;
}

body.brand-auth-active .brand-phone-registration-form .brand-register-field-row input:not([type="checkbox"]):not([type="radio"]):focus {
  outline: 2px solid rgba(238, 77, 45, 0.18) !important;
  outline-offset: 2px;
}

body.brand-auth-active .brand-phone-registration-form .dialog-buttons {
  display: grid !important;
  gap: 12px !important;
  width: 100% !important;
  align-self: stretch !important;
  margin-top: 18px !important;
}

body.brand-auth-active .brand-phone-registration-form .dialog-buttons button,
body.brand-auth-active .brand-phone-registration-form button[type="submit"],
body.brand-auth-active .brand-phone-registration-form button.primary {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  justify-self: stretch !important;
  height: 54px !important;
  border-radius: 10px !important;
  background: var(--brand-primary, #ee4d2d) !important;
  color: #fff !important;
  box-shadow: 0 9px 18px rgba(238, 77, 45, 0.22) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
}

body.brand-auth-active .brand-phone-registration-form .brand-registration-save-token-hidden {
  display: none !important;
}

body.brand-auth-active .brand-phone-registration-form .dialog-buttons button:not([type="submit"]):not(.primary),
body.brand-auth-active .brand-phone-registration-form .flat-button {
  background: #fff4ef !important;
  color: var(--brand-primary, #ee4d2d) !important;
  box-shadow: none !important;
}

@media (max-width: 520px) {
  body.brand-auth-active .brand-phone-registration-form {
    width: calc(100dvw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)) !important;
    max-width: calc(100dvw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)) !important;
    margin: 8px auto 14px !important;
    padding: 16px 14px 14px !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
  }

  body.brand-auth-active .brand-phone-registration-form .brand-register-field-label,
  body.brand-auth-active .brand-phone-registration-form .brand-register-field-row::before,
  body.brand-auth-active .brand-phone-registration-form [data-brand-register-label] {
    margin-bottom: 7px !important;
    font-size: 14px !important;
  }

  body.brand-auth-active .brand-phone-registration-form .brand-register-field-row,
  body.brand-auth-active .brand-phone-registration-form #brand-invite-panel.brand-register-field-row {
    margin-bottom: 12px !important;
  }

  body.brand-auth-active .brand-phone-registration-form .brand-register-field-row input:not([type="checkbox"]):not([type="radio"]),
  body.brand-auth-active .brand-phone-registration-form #brand-invite-panel input {
    height: 52px !important;
    padding: 0 14px !important;
    font-size: 15px !important;
  }

  body.brand-auth-active .brand-phone-registration-form .dialog-buttons {
    margin-top: 12px !important;
  }

  body.brand-auth-active .brand-phone-registration-form .dialog-buttons button,
  body.brand-auth-active .brand-phone-registration-form button[type="submit"],
  body.brand-auth-active .brand-phone-registration-form button.primary {
    height: 52px !important;
  }
}

#side-caption-panel .brand-native-profile-save {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 4.6rem;
  height: 2.35rem;
  margin: 0 0.75rem 0 auto;
  padding: 0 0.8rem;
  gap: 0.3rem;
  border: 0;
  border-radius: 0.3rem;
  background: #ee4d2d;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(238, 77, 45, 0.22);
}

#side-caption-panel .brand-native-profile-save svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

#side-caption-panel .brand-native-profile-save.saving,
#side-caption-panel .brand-native-profile-save:disabled {
  opacity: 0.62;
}

.brand-native-profile-editor [data-brand-profile-field] .in-place-edit:not(.disabled) {
  cursor: text;
}

.brand-native-profile-edit-hidden {
  display: none !important;
}

img.avatar[src*="broken_image"],
img.brand-default-avatar-img[src*="broken_image"] {
  content: url("/brand/shopee-logo.png") !important;
  object-fit: cover !important;
  background: #fff !important;
}

.avatar-box:has(> img[src*="broken_image"]) {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  background: #fff !important;
}

.avatar-box:has(> img[src*="broken_image"]) > img {
  opacity: 0 !important;
}

.avatar-box:has(> img[src*="broken_image"])::after {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  background: #fff var(--brand-default-avatar-url, url("/brand/shopee-logo.png")) center / cover no-repeat;
  content: "";
  pointer-events: none;
}

#brand-invite-panel {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: auto !important;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: light-dark(#1f2937, #f8fafc);
}

body > #brand-invite-panel {
  display: none !important;
}

form > #brand-invite-panel {
  display: block;
}

#brand-invite-panel[hidden] {
  display: none !important;
}

#brand-invite-panel input {
  width: 100%;
  height: 32px;
  border: 0;
  border-bottom: 1px solid light-dark(#bdbdbd, #64748b);
  border-radius: 0;
  padding: 0 2px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  background: transparent;
  color: inherit;
}

#brand-invite-panel input:focus {
  border-bottom-color: var(--brand-primary);
  box-shadow: none;
}

body.brand-auth-active .brand-phone-registration-form [data-brand-register-label="phone"] {
  display: none !important;
}

body.brand-auth-active .brand-phone-registration-form #brand-invite-panel.brand-register-field-row {
  margin: 0 0 16px !important;
  padding: 0 !important;
  color: #111827 !important;
}

body.brand-auth-active .brand-phone-registration-form #brand-invite-panel input {
  height: 56px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #f3f4f7 !important;
  color: #111827 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-align: left !important;
  box-shadow: none !important;
}

body.brand-auth-active .brand-phone-registration-form #brand-invite-panel input::placeholder {
  color: #9ca3af !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  opacity: 1 !important;
}

body.brand-auth-active .brand-phone-registration-form #brand-invite-panel input:focus {
  border: 0 !important;
  box-shadow: none !important;
}

form.panel-form-column .dial-code[data-brand-locked-country="TW"] {
  cursor: default !important;
  pointer-events: none !important;
  user-select: none;
}

.phone-country-selector {
  display: none !important;
}
.panel-form-row .dial-code,
.dial-code[hidden] {
  display: none !important;
}


.caption-panel,
#sidepanel-title,
#sidepanel .caption-panel {
  background-color: var(--brand-primary) !important;
}

.caption-panel a,
.caption-panel .panel-title,
#sidepanel-title,
#sidepanel-title a {
  color: #fff4ec !important;
}

#topic-caption-panel.brand-group-topic-caption #topic-users,
#topic-caption-panel #topic-users.brand-topic-users-hidden {
  display: none !important;
}

button.primary,
button[type="submit"],
.primary {
  background-color: var(--brand-primary) !important;
}

button.primary:hover,
button[type="submit"]:hover,
.primary:hover {
  background-color: var(--brand-primary-dark) !important;
}

a,
.blue,
.flat-button {
  color: var(--brand-primary);
}

#messages-panel,
#messages-container {
  max-width: 100%;
  overflow-x: hidden !important;
}

#messages-container .chat-box {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

.brand-group-pinned-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-sizing: border-box;
  width: calc(100% - 24px);
  max-width: 680px;
  min-height: 38px;
  margin: 10px auto 2px;
  padding: 8px 12px;
  border: 1px solid rgba(238, 77, 45, 0.22);
  border-radius: 8px;
  background: #fff7f3;
  color: #5f6368;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.1);
}

.brand-group-pinned-banner .material-icons {
  flex: 0 0 auto;
  color: var(--brand-primary);
  font-size: 18px;
  line-height: 1;
}

.brand-group-pinned-text {
  min-width: 0;
  overflow: hidden;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-pinned-modal-body {
  max-height: min(60vh, 480px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 4px 2px 12px;
  color: #202124;
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.brand-create-group-friends {
  margin-top: 4px;
}

.brand-create-group-friends .brand-share-friend-list {
  max-height: min(36vh, 280px);
}

.brand-message-node {
  position: relative;
}

.chat-box li.left:not(.brand-wechat-row),
.chat-box li.right:not(.brand-wechat-row) {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  padding-right: 10px;
  padding-left: 10px;
}

.chat-box li.left,
.chat-box li.right,
.chat-box li.left .bubble,
.chat-box li.right .bubble {
  animation: none !important;
  transition: none !important;
}

.chat-box li.brand-message-deleting {
  opacity: 0.5;
  pointer-events: none;
}

.chat-box li.brand-message-deleted {
  display: none !important;
}

.chat-box li.brand-message-render-duplicate {
  display: none !important;
}

.chat-box li.left:not(.brand-wechat-row) {
  justify-content: flex-start;
  padding-right: 62px;
}

.chat-box li.right:not(.brand-wechat-row) {
  justify-content: flex-end;
  padding-left: 62px;
}

.chat-box li.left:not(.brand-wechat-row)::before,
.chat-box li.right:not(.brand-wechat-row)::after {
  content: "";
  display: block;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  flex: 0 0 34px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72) url('/brand/shopee-logo.png') center / cover no-repeat;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14);
}

.chat-box li.brand-wechat-row {
  align-items: flex-start;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  padding-right: 10px;
  padding-left: 10px;
}

.chat-box li.brand-wechat-row.right {
  justify-content: flex-end;
  padding-left: 62px;
}

.chat-box li.brand-wechat-row.left {
  justify-content: flex-start;
  padding-right: 62px;
}

.chat-box li.brand-wechat-row.left::before,
.chat-box li.brand-wechat-row.right::after {
  content: "";
  display: block;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  margin: 2px 0 0 !important;
  border-radius: 50%;
  flex: 0 0 34px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.72);
  background-image: url('/brand/shopee-logo.png') !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
}

.chat-box li.brand-wechat-row.right::after {
  order: 2;
}

.chat-box li.brand-wechat-row.left::before {
  order: 0;
}

.chat-box li.brand-wechat-row .brand-message-avatar,
.chat-box li.brand-wechat-row .brand-message-avatar-letter {
  display: none !important;
}

.chat-box li.brand-message-profile-enabled {
  position: relative;
}

.chat-box li .brand-message-profile-trigger {
  position: absolute;
  top: 2px;
  z-index: 2;
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  box-sizing: border-box;
  flex: 0 0 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  appearance: none;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.chat-box li.left .brand-message-profile-trigger {
  left: 10px;
}

.chat-box li.right .brand-message-profile-trigger {
  right: 10px;
}

.chat-box li .brand-message-profile-trigger:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.chat-box li.brand-wechat-row > .avatar-box,
.chat-box li.brand-wechat-row > .lettertile,
.chat-box li.brand-wechat-row > img.avatar {
  display: none !important;
}

.chat-box li.brand-wechat-row .bubble {
  flex: 0 1 auto !important;
  box-sizing: border-box;
  width: fit-content !important;
  min-width: 56px !important;
  max-width: min(72vw, 360px) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.chat-box li.brand-wechat-row.right .bubble {
  order: 1;
  margin-left: auto !important;
}

.chat-box li.brand-wechat-row.left .bubble {
  margin-right: auto !important;
}

.chat-box li.brand-wechat-row .content-meta,
.chat-box li.brand-wechat-row .message-content {
  box-sizing: border-box;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100%;
}

.chat-box li.brand-wechat-row .message-content {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chat-box li.brand-wechat-row .content-meta > .author:not(.brand-message-author) {
  display: none;
}

.chat-box li.brand-wechat-row .author:not(.brand-message-author) {
  display: none !important;
}

.chat-box li.brand-wechat-row .content-meta::before {
  content: attr(data-brand-message-author);
  display: block;
  max-width: 220px;
  margin: -2px 0 5px;
  color: rgba(71, 85, 105, 0.92);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-box li.brand-wechat-row.right .content-meta::before {
  box-sizing: border-box;
  margin-left: auto;
  max-width: calc(100% - 18px);
  padding-right: 18px;
  text-align: right;
}

.chat-box li.brand-wechat-row .brand-message-author {
  display: none !important;
}

.brand-message-tools {
  display: inline-flex;
  position: absolute;
  z-index: 5;
  top: 50%;
  align-items: center;
  gap: 4px;
  margin-left: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 0.16s ease;
  vertical-align: middle;
}

.brand-message-node:hover > .brand-message-tools,
.brand-message-tools:focus-within {
  opacity: 1;
  pointer-events: auto;
}

.chat-box li.brand-wechat-row.left .brand-message-node > .brand-message-tools {
  left: calc(100% + 6px);
}

.chat-box li.brand-wechat-row.right .brand-message-node > .brand-message-tools {
  right: calc(100% + 6px);
}

.brand-message-tool {
  border: 1px solid rgba(238, 77, 45, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
  background: light-dark(rgba(255, 241, 236, 0.92), rgba(45, 21, 17, 0.9));
  color: light-dark(#d73211, #ffd8ce);
  font-size: 12px;
  line-height: 18px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.14);
}

.brand-message-tool:hover {
  background: var(--brand-primary);
  color: #fff;
}

.brand-message-tool-danger {
  border-color: rgba(219, 39, 119, 0.35);
  color: light-dark(#be123c, #fecdd3);
}

#brand-message-menu {
  position: fixed;
  z-index: 10020;
  display: flex;
  flex-direction: column;
  min-width: 148px;
  margin: 0;
  padding: 7px 0;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.24);
  list-style: none;
  color: #4b5563;
}

#brand-message-menu li,
#brand-message-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  padding: 9px 22px;
  background: transparent;
  color: #4b5563;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

#brand-message-menu li:hover,
#brand-message-menu li:focus-visible,
#brand-message-menu button:hover,
#brand-message-menu button:focus-visible {
  background: #f3f4f6;
  outline: none;
}

#brand-message-menu li.danger,
#brand-message-menu button.danger {
  color: #c2414b;
}

.brand-native-message-menu-hidden {
  display: none !important;
}

.brand-native-message-menu-dismissed {
  display: none !important;
}

.brand-native-message-menu > li.brand-native-message-menu-danger {
  color: #c2414b !important;
}

.brand-native-message-menu-proxy {
  overflow: hidden;
}

.chat-box li .message-content.brand-edited-message-content::after,
.chat-box li .content-meta.brand-edited-message-content::after {
  display: block;
  height: auto;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(100, 116, 139, 0.32);
  color: inherit;
  content: "已編輯：" attr(data-brand-edited-latest);
  clear: none;
  font: inherit;
  font-weight: 500;
  line-height: 1.45;
  white-space: pre-wrap;
  visibility: visible;
  word-break: break-word;
}

#brand-reply-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: calc(100% - 18px);
  margin: 6px 9px 4px;
  padding: 7px 8px;
  border-left: 3px solid var(--brand-primary);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.88);
  color: #334155;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

#brand-edit-preview {
  display: flex;
  align-items: center;
  gap: 9px;
  width: calc(100% - 18px);
  margin: 6px 9px 4px;
  padding: 7px 8px;
  border-left: 3px solid var(--brand-primary);
  background: rgba(255, 255, 255, 0.94);
  color: #334155;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
}

#brand-edit-preview button {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

#brand-edit-preview div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

#brand-edit-preview b {
  color: #0f766e;
  font-size: 13px;
}

#brand-edit-preview span {
  overflow: hidden;
  color: #64748b;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#brand-reply-preview div {
  min-width: 0;
}

#brand-reply-preview b,
#brand-reply-preview span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#brand-reply-preview b {
  color: var(--brand-primary);
  font-size: 12px;
  line-height: 1.25;
}

#brand-reply-preview span {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.25;
}

#brand-reply-preview button {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.08);
  color: #475569;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.brand-voice-composer {
  position: relative;
}

.brand-voice-composer > a {
  flex: 0 0 auto;
}

.brand-voice-composer #send-message-input {
  width: auto !important;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-chat-composer-ordered {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  direction: ltr !important;
}

.brand-chat-composer-ordered > .brand-chat-composer-image {
  order: 1 !important;
}

.brand-chat-composer-ordered > .brand-chat-composer-input {
  order: 2 !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  direction: auto;
}

.brand-chat-composer-ordered > .brand-chat-composer-voice {
  order: 3 !important;
}

.brand-chat-composer-ordered > .brand-chat-composer-send {
  order: 4 !important;
}

.brand-voice-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  margin: 0 12px 0 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--brand-primary);
  cursor: pointer;
  vertical-align: middle;
}

.brand-voice-button .material-icons {
  font-size: 25px;
  line-height: 1;
}

.brand-text-send-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  min-width: 34px;
  height: 34px;
  margin: 0 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-primary);
  cursor: pointer;
}

.brand-text-send-button .material-icons {
  font-size: 30px;
  line-height: 1;
}

.brand-text-send-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.brand-native-empty-mic-hidden {
  display: none !important;
  pointer-events: none !important;
}

.brand-native-send-hidden {
  display: none !important;
  pointer-events: none !important;
}

.brand-voice-button.brand-voice-recording {
  background: rgba(238, 77, 45, 0.1);
  box-shadow: 0 0 0 4px rgba(238, 77, 45, 0.08);
}

.brand-voice-button.brand-voice-sending,
.brand-voice-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

#brand-voice-recorder {
  position: absolute;
  z-index: 12;
  left: 108px;
  right: 104px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 38px;
  box-sizing: border-box;
  margin: 0;
  padding: 6px 8px 6px 10px;
  border: 1px solid rgba(238, 77, 45, 0.12);
  border-radius: 999px;
  background: rgba(255, 246, 242, 0.96);
  color: #334155;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  pointer-events: auto;
}

.brand-voice-composer.brand-voice-active #send-message-input,
.brand-voice-composer.brand-voice-active textarea,
.brand-voice-composer.brand-voice-active input[type="text"] {
  color: transparent !important;
  caret-color: transparent !important;
}

.brand-voice-composer.brand-voice-active #send-message-input::placeholder,
.brand-voice-composer.brand-voice-active textarea::placeholder,
.brand-voice-composer.brand-voice-active input[type="text"]::placeholder {
  color: transparent !important;
}

#brand-voice-recorder .brand-voice-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 0 rgba(238, 77, 45, 0.3);
  animation: brandVoicePulse 1.2s ease-out infinite;
}

#brand-voice-recorder.brand-voice-sending .brand-voice-dot {
  animation: none;
}

#brand-voice-recorder b {
  color: var(--brand-primary);
  font-size: 13px;
  white-space: nowrap;
}

#brand-voice-recorder .brand-voice-time,
#brand-voice-recorder .brand-voice-upload {
  color: #64748b;
  font-size: 13px;
  white-space: nowrap;
}

#brand-voice-recorder .brand-voice-time {
  font-weight: 700;
}

#brand-voice-recorder .brand-voice-hint {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: #334155;
  font-size: 13px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#brand-voice-recorder button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.08);
  color: #475569;
  cursor: pointer;
}

#brand-voice-recorder .brand-voice-send {
  background: rgba(238, 77, 45, 0.14);
  color: var(--brand-primary);
}

#brand-voice-recorder .brand-voice-cancel:hover,
#brand-voice-recorder .brand-voice-cancel:focus-visible {
  background: rgba(15, 23, 42, 0.14);
}

#brand-voice-recorder .brand-voice-send:hover,
#brand-voice-recorder .brand-voice-send:focus-visible {
  background: var(--brand-primary);
  color: #fff;
}

#brand-voice-recorder button:disabled {
  opacity: 0.45;
  cursor: wait;
}

#brand-voice-recorder button .material-icons {
  font-size: 20px;
}

@media (max-width: 640px) {
  #brand-voice-recorder {
    left: 96px;
    right: 92px;
  }

  #brand-voice-recorder .brand-voice-hint {
    display: none;
  }
}

.chat-box li.brand-wechat-row audio {
  display: block;
  width: min(220px, 52vw);
  height: 34px;
  max-width: 100%;
}

.chat-box li.brand-wechat-row .bubble audio {
  margin: 2px 0 0;
}

@keyframes brandVoicePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(238, 77, 45, 0.32);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(238, 77, 45, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(238, 77, 45, 0);
  }
}

.brand-presence-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  margin-top: 2px;
  color: light-dark(#64748b, #a8b3c7);
  font-size: 11px;
  line-height: 1.35;
  vertical-align: middle;
}

.brand-presence-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.16);
}

.brand-presence-dot.online {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18);
}

.brand-presence-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-presence-wrap {
  display: block;
  margin-top: 2px;
}

.brand-p2p-header-presence {
  display: block;
  max-width: min(240px, 58vw);
  margin-top: 0;
}

.brand-p2p-header-presence .brand-presence-line {
  color: rgba(15, 23, 42, 0.62);
  font-size: 11px;
  font-weight: 700;
}

.brand-presence-hidden-header .brand-p2p-header-presence {
  display: none !important;
  content: none !important;
}

.brand-presence-hidden-header #topic-last-seen {
  display: none !important;
  content: none !important;
}

.brand-internal-topic-action-hidden {
  display: none !important;
  pointer-events: none !important;
}

.brand-presence-hidden-header .brand-native-presence-hidden,
.brand-native-presence-hidden-header .brand-native-presence-hidden,
.brand-presence-hidden-header [data-brand-native-presence-hidden="true"],
.brand-native-presence-hidden-header [data-brand-native-presence-hidden="true"],
.brand-presence-hidden-header .avatar-box::after,
.brand-native-presence-hidden-header .avatar-box::after,
.brand-presence-hidden-header .lettertile::after,
.brand-native-presence-hidden-header .lettertile::after,
.brand-presence-hidden-header .avatar-box [class*="online"],
.brand-native-presence-hidden-header .avatar-box [class*="online"],
.brand-presence-hidden-header .avatar-box [class*="offline"],
.brand-native-presence-hidden-header .avatar-box [class*="offline"],
.brand-presence-hidden-header .avatar-box [class*="presence"],
.brand-native-presence-hidden-header .avatar-box [class*="presence"],
.brand-presence-hidden-header .avatar-box [class*="status"],
.brand-native-presence-hidden-header .avatar-box [class*="status"],
.brand-presence-hidden-header [class*="online"]:not(.avatar-box):not(.lettertile):not(img):not(svg),
.brand-native-presence-hidden-header [class*="online"]:not(.avatar-box):not(.lettertile):not(img):not(svg),
.brand-presence-hidden-header [class*="offline"]:not(.avatar-box):not(.lettertile):not(img):not(svg),
.brand-native-presence-hidden-header [class*="offline"]:not(.avatar-box):not(.lettertile):not(img):not(svg),
.brand-presence-hidden-header [class*="presence"]:not(.avatar-box):not(.lettertile):not(img):not(svg),
.brand-native-presence-hidden-header [class*="presence"]:not(.avatar-box):not(.lettertile):not(img):not(svg),
.brand-presence-hidden-header [class*="status"]:not(.avatar-box):not(.lettertile):not(img):not(svg),
.brand-native-presence-hidden-header [class*="status"]:not(.avatar-box):not(.lettertile):not(img):not(svg),
.brand-presence-hidden-header .lettertile [class*="online"],
.brand-native-presence-hidden-header .lettertile [class*="online"],
.brand-presence-hidden-header .lettertile [class*="offline"],
.brand-native-presence-hidden-header .lettertile [class*="offline"],
.brand-presence-hidden-header .lettertile [class*="presence"],
.brand-native-presence-hidden-header .lettertile [class*="presence"],
.brand-presence-hidden-header .lettertile [class*="status"] {
  display: none !important;
  content: none !important;
}

.brand-member-tools {
  opacity: 1;
  margin-left: 6px;
}

#brand-bottom-tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147482500;
  display: grid;
  grid-template-columns: 1fr 1fr 1.28fr 1fr 1fr;
  align-items: end;
  min-height: 72px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

#brand-bottom-tabs[hidden] {
  display: none !important;
}

#brand-bottom-tabs button {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 54px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 18px;
  background: transparent !important;
  color: #8a94a6;
  font: 600 12px/1.1 "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", "Segoe UI", sans-serif;
  box-shadow: none !important;
}

#brand-bottom-tabs button span {
  font-size: 23px;
  line-height: 1;
}

#brand-bottom-tabs button b {
  font-weight: 700;
}

#brand-bottom-tabs button.active {
  color: #0b55d9;
}

#brand-bottom-tabs .brand-tab-alliance {
  min-height: 68px;
  transform: translateY(-12px);
  color: #0b55d9;
}

#brand-bottom-tabs .brand-tab-alliance span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #2f7bff 0, #0b36c9 68%, #061d76 100%);
  box-shadow: 0 12px 28px rgba(11, 85, 217, 0.32);
}

#brand-bottom-tabs .brand-tab-alliance img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: contain;
}

#brand-mine-badge {
  position: absolute;
  top: 4px;
  right: 18%;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff435e;
  color: #fff;
  font-size: 11px;
  line-height: 20px;
  font-style: normal;
  box-shadow: 0 4px 12px rgba(255, 67, 94, 0.35);
}

#brand-business-page {
  position: fixed;
  inset: 0;
  z-index: 2147482400;
  width: 100vw;
  width: 100dvw;
  max-width: 100vw;
  max-width: 100dvw;
  min-width: 0;
  box-sizing: border-box;
  overflow: auto;
  overflow-x: hidden;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
  padding: 18px 18px 98px;
  background: #f6f8fc;
  color: #172033;
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", "Segoe UI", sans-serif;
}

#brand-business-page,
#brand-business-page * {
  box-sizing: border-box;
}

#brand-business-page button {
  appearance: none;
  font-family: inherit;
  cursor: pointer;
}

#brand-business-page[hidden] {
  display: none !important;
}

.brand-business-inner {
  width: min(760px, 100%);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  overflow-x: hidden;
}

.brand-chat-restore-state {
  min-height: calc(100dvh - 180px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  color: #64748b;
}

.brand-chat-restore-state b {
  color: #111827;
  font-size: 17px;
  font-weight: 800;
}

.brand-chat-restore-state p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.brand-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 14px;
}

.brand-page-header > div:first-child {
  min-width: 0;
  flex: 1 1 280px;
}

.brand-page-header-with-back {
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.brand-page-actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.brand-icon-back {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 999px;
  background: #fff !important;
  color: #172033 !important;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(18, 31, 56, 0.08) !important;
}

.brand-page-header h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  color: #111827;
}

.brand-page-header p {
  margin: 6px 0 0;
  color: #748096;
  font-size: 14px;
}

.brand-page-header button,
.brand-action-grid button,
.brand-order-card button,
.brand-card-title-row button {
  border: 0;
  border-radius: 14px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #ff6a3d, #ee4d2d) !important;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(238, 77, 45, 0.22);
}

.brand-page-actions button {
  min-width: 0;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  line-height: 1.2;
}

.brand-order-card button[disabled] {
  background: #cbd5e1 !important;
  color: #64748b;
  box-shadow: none;
}

.brand-wallet-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.brand-wallet-strip > div,
.brand-card,
.brand-business-warning,
.brand-business-empty,
.brand-business-loading {
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(18, 31, 56, 0.07);
}

.brand-wallet-strip > div {
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.brand-wallet-strip small,
.brand-wallet-strip em,
.brand-order-main small,
.brand-order-main p,
.brand-card-tip,
.brand-notice small,
.brand-contact-row small {
  color: #7a8598;
}

.brand-wallet-strip b {
  display: block;
  margin-top: 7px;
  font-size: 24px;
  line-height: 1.15;
  color: #111827;
}

.brand-wallet-strip em {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-size: 12px;
}

.brand-card {
  margin: 14px 0;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.brand-card h2,
.brand-card-title-row h2 {
  margin: 0 0 12px;
  font-size: 19px;
  color: #172033;
}

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

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

.brand-platform-card,
.brand-contact-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  min-width: 0;
  height: auto !important;
  margin: 0;
  border: 1px solid #edf0f6;
  border-radius: 16px;
  padding: 12px;
  background: #f9fbff;
  color: #172033;
  text-align: left;
  white-space: normal !important;
  overflow: hidden;
  box-shadow: none !important;
}

.brand-card > .brand-contact-row + .brand-contact-row {
  margin-top: 10px;
}

.brand-platform-card > span,
.brand-contact-row > span:not(.brand-avatar-dot),
.brand-safe-contact-main {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-platform-card img,
.brand-order-icon img,
.brand-safe-contact-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  object-fit: cover;
}

.brand-platform-card b,
.brand-contact-row b {
  display: block;
  color: #172033;
  max-width: 100%;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-platform-card small,
.brand-contact-row small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
}

.brand-safe-contact-row {
  background: #fff;
}

#brand-business-page .brand-platform-card:hover,
#brand-business-page .brand-contact-row:hover,
#brand-business-page .brand-safe-contact-row:hover {
  border-color: #dbe4f0;
  background: #fff !important;
  color: #172033 !important;
}

#brand-business-page .brand-platform-card:hover b,
#brand-business-page .brand-contact-row:hover b,
#brand-business-page .brand-safe-contact-row:hover b {
  color: #172033 !important;
}

#brand-business-page .brand-platform-card:hover small,
#brand-business-page .brand-contact-row:hover small,
#brand-business-page .brand-safe-contact-row:hover small {
  color: #7a8598 !important;
}

#brand-business-page .brand-action-grid button:hover,
#brand-business-page .brand-order-card button:hover,
#brand-business-page .brand-card-title-row button:hover {
  color: #fff !important;
}

#brand-business-page .brand-page-header button:hover,
#brand-business-page .brand-page-header button:focus-visible {
  border-color: #efb9aa !important;
  background: #fff4ef !important;
  color: var(--brand-accent) !important;
  outline: none;
}

.brand-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: #0b55d9;
  font-size: 12px;
  font-weight: 900;
}

.brand-profile-card {
  text-align: center;
}

.brand-profile-avatar {
  width: 86px;
  height: 86px;
  display: inline-grid;
  place-items: center;
  margin: 2px auto 12px;
  border-radius: 28px;
  object-fit: cover;
}

.brand-profile-avatar-letter {
  background: linear-gradient(135deg, #ff6a3d, #6d5dfc);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.brand-profile-card h2 {
  margin: 0;
  font-size: 22px;
}

.brand-profile-card p {
  margin: 8px 0 0;
  color: #7a8598;
}

.brand-profile-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.brand-profile-tags span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #0b55d9;
  font-size: 12px;
  font-weight: 800;
}

.brand-primary-wide {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff6a3d, #ee4d2d) !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(238, 77, 45, 0.24) !important;
}

.brand-order-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid #eef1f7;
}

.brand-order-card:first-child {
  border-top: 0;
}

.brand-order-card.compact {
  grid-template-columns: minmax(0, 1fr) auto;
}

.brand-order-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff8b3d, #e5301e);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.brand-order-main h3 {
  margin: 4px 0;
  font-size: 17px;
  color: #172033;
}

.brand-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.brand-order-meta span,
.brand-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}

.brand-status-submitted {
  background: #fff7ed;
  color: #f97316;
}

.brand-status-running {
  background: #ecfdf5;
  color: #059669;
}

.brand-status-completed {
  background: #eef2ff;
  color: #4f46e5;
}

.brand-status-rejected {
  background: #fff1f2;
  color: #e11d48;
}

.brand-stats-row,
.brand-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.brand-stats-row > div {
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(18, 31, 56, 0.06);
}

.brand-stats-row b {
  display: block;
  font-size: 28px;
  color: #0b55d9;
}

.brand-stats-row span {
  color: #7a8598;
}

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

.brand-action-grid button {
  width: 100%;
  min-height: 48px;
}

.brand-profile-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px 14px;
}

.brand-profile-grid span {
  color: #7a8598;
}

.brand-profile-grid b {
  overflow: hidden;
  color: #172033;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-notice {
  padding: 12px 0;
  border-top: 1px solid #eef1f7;
}

.brand-notice:first-of-type {
  border-top: 0;
}

.brand-notice.unread b::after {
  content: "新";
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ff435e;
  color: #fff;
  font-size: 11px;
}

.brand-notice p {
  margin: 5px 0;
  color: #344056;
}

.brand-business-warning {
  padding: 13px 16px;
  border: 1px solid #ffd8c8;
  background: #fff7ed;
  color: #c2410c;
}

.brand-business-empty,
.brand-business-loading {
  padding: 20px;
  color: #7a8598;
  text-align: center;
}

.brand-avatar-dot {
  width: 44px;
  height: 44px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6a3d, #6d5dfc);
  color: #fff;
  font-weight: 900;
}

.brand-avatar-group {
  background: linear-gradient(135deg, #0b55d9, #4facfe);
}

#brand-business-toast,
#brand-native-copy-toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 2147482600;
  max-width: min(520px, calc(100vw - 36px));
  transform: translateX(-50%);
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.24);
}

#brand-business-success-overlay {
  position: fixed;
  left: 50%;
  top: 48%;
  z-index: 2147482620;
  min-width: min(260px, calc(100vw - 48px));
  max-width: min(440px, calc(100vw - 40px));
  transform: translate(-50%, -50%) scale(0.96);
  padding: 18px 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.94);
  color: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.34);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

#brand-business-success-overlay.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

@media (max-width: 640px) {
  #brand-business-page {
    padding: 16px 12px 96px;
  }

  .brand-wallet-strip,
  .brand-platform-grid,
  .brand-stats-row,
  .brand-action-grid {
    grid-template-columns: 1fr;
  }

  .brand-order-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .brand-order-card button {
    grid-column: 1 / -1;
  }

  .brand-page-header h1 {
    font-size: 24px;
  }

  .brand-page-header:not(.brand-page-header-with-back) .brand-page-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* 2026-07 client commerce refresh: warm white, compact hierarchy, real data. */
:root {
  --brand-accent: #ee4d2d;
  --brand-accent-dark: #d83d21;
  --brand-ink: #27272a;
  --brand-muted: #716b64;
  --brand-line: #e7e1da;
  --brand-paper: #fffdfa;
  --brand-canvas: #f7f5f1;
}

#brand-bottom-tabs {
  min-height: 72px;
  padding: 7px 9px calc(7px + env(safe-area-inset-bottom));
  border-top-color: #e6e0d9;
  background: rgba(255, 253, 250, 0.97);
  box-shadow: 0 -8px 24px rgba(72, 59, 47, 0.06);
}

#brand-bottom-tabs button {
  min-height: 56px;
  gap: 5px;
  padding: 0 !important;
  border-radius: 12px;
  color: #706a63;
  font-size: 11px;
  font-weight: 600;
  outline: none !important;
}

#brand-bottom-tabs button.active {
  color: var(--brand-accent);
}

#brand-bottom-tabs .brand-tab-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: currentColor;
}

#brand-bottom-tabs .brand-tab-icon svg,
.brand-profile-edit svg,
.brand-mine-actions svg,
.brand-setting-icon svg,
.brand-notification-icon svg,
.brand-system-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#brand-bottom-tabs .brand-tab-alliance {
  min-height: 70px;
  transform: translateY(-9px);
  color: var(--brand-accent);
}

#brand-bottom-tabs .brand-tab-alliance .brand-tab-lockup {
  width: 58px;
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  overflow: hidden;
  border: 3px solid #fffdfa;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 20px rgba(31, 104, 232, 0.22);
}

#brand-bottom-tabs .brand-tab-alliance .brand-tab-lockup img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

#brand-bottom-tabs .brand-tab-alliance .brand-tab-lockup small {
  display: none;
  color: #fff;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

#brand-bottom-tabs .brand-tab-alliance > b {
  color: currentColor;
}

#brand-chat-badge,
#brand-contacts-badge {
  position: absolute;
  top: 2px;
  left: calc(50% + 7px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid #fffdfa;
  border-radius: 999px;
  background: var(--brand-accent);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 14px;
}

#brand-business-page {
  padding: 24px 20px 108px;
  background: var(--brand-canvas);
  color: var(--brand-ink);
}

.brand-business-inner {
  width: min(720px, 100%);
}

.brand-page-header {
  margin-bottom: 18px;
}

.brand-page-header h1 {
  color: var(--brand-ink);
  font-size: 27px;
  letter-spacing: -0.02em;
}

.brand-page-header p {
  margin-top: 5px;
  color: var(--brand-muted);
}

.brand-page-header-with-back {
  align-items: center;
}

.brand-icon-back {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  min-width: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  border: 1px solid var(--brand-line);
  border-radius: 50% !important;
  background: var(--brand-paper) !important;
  color: var(--brand-ink) !important;
  box-shadow: 0 6px 18px rgba(18, 31, 56, 0.08) !important;
  font-size: 24px !important;
  line-height: 1 !important;
}

.brand-business-warning,
.brand-alliance-note {
  margin: 12px 0;
  padding: 12px 14px;
  border: 0;
  border-left: 3px solid #f0ae3e;
  border-radius: 4px 12px 12px 4px;
  background: #fff8e8;
  color: #8f611a;
  box-shadow: none;
  font-size: 13px;
}

.brand-flat-section {
  margin: 18px 0;
}

.brand-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.brand-section-heading h2 {
  margin: 0;
  color: var(--brand-ink);
  font-size: 17px;
}

.brand-section-heading span {
  color: var(--brand-muted);
  font-size: 12px;
}

.brand-section-link {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: #fff3ed;
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
}

.brand-alliance-wallet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #2f2e31;
  color: #fff;
}

.brand-alliance-wallet small,
.brand-alliance-wallet em {
  display: block;
  color: #d8d5d0;
  font-size: 11px;
  font-style: normal;
}

.brand-alliance-wallet b {
  display: block;
  margin: 3px 0;
  font-size: 27px;
  line-height: 1;
}

.brand-alliance-wallet button {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: #fffdfa;
  color: var(--brand-ink);
  font-weight: 700;
}

.brand-alliance-home {
  display: block;
}

.brand-alliance-hero {
  position: relative;
  overflow: hidden;
  margin: -18px -18px 0;
  padding: 24px 18px 26px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.24) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 24%, rgba(255,255,255,0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 86% 70%, rgba(255,255,255,0.16) 0 2px, transparent 3px),
    linear-gradient(160deg, #0054ca 0%, #063aa0 54%, #08256c 100%);
  background-size: auto, auto, auto, auto;
  color: #fff;
}

.brand-alliance-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -34% 38%;
  height: 160px;
  border-radius: 999px;
  background: rgba(56, 153, 255, 0.24);
  transform: rotate(-8deg);
  pointer-events: none;
}

.brand-alliance-hero-title,
.brand-alliance-profile-line {
  position: relative;
  z-index: 1;
}

.brand-alliance-hero-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  font-size: 20px;
  font-weight: 900;
}

.brand-alliance-shield {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
}

.brand-alliance-shield svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.22));
}

.brand-alliance-shield svg path:first-child {
  fill: #ef3d30;
}

.brand-alliance-shield svg path:last-child {
  fill: #fff;
}

.brand-alliance-profile-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.brand-alliance-user {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.brand-alliance-user-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 2px solid rgba(255,255,255,0.72);
  border-radius: 50%;
  background: #fff url('/brand/shopee-logo.png') center / 72% no-repeat;
  object-fit: cover;
}

.brand-alliance-user span,
.brand-alliance-message span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.brand-alliance-user small,
.brand-alliance-message small,
.brand-alliance-message em {
  color: rgba(255,255,255,0.72);
  font-size: 11px;
  font-style: normal;
}

.brand-alliance-user b,
.brand-alliance-message b {
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-alliance-message {
  display: flex;
  width: min(232px, 48%);
  min-height: 44px;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.brand-alliance-message svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}

.brand-alliance-message span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.brand-alliance-message b {
  flex: 0 0 auto;
  font-size: 12px;
}

.brand-alliance-message em {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: rgba(255,255,255,0.88);
  font-size: 12px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#brand-business-page .brand-alliance-message:hover,
#brand-business-page .brand-alliance-message:focus-visible {
  background: rgba(255,255,255,0.2) !important;
  color: #fff !important;
}

.brand-alliance-carousel-row {
  margin: 0 -24px 14px;
  padding: 12px 12px 16px;
  overflow: hidden;
  background: #f7f5f1;
}

.brand-alliance-banners {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: 6px;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.brand-alliance-banners::-webkit-scrollbar {
  display: none;
}

.brand-alliance-banner-card {
  position: relative;
  display: grid;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 158px;
  overflow: hidden;
  align-items: end;
  border-radius: 6px;
  background: #fff;
  color: #fff;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  box-shadow: none;
}

.brand-alliance-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #eef1f5;
}

.brand-alliance-banner-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 16, 48, 0.08), rgba(2, 16, 48, 0.56));
}

.brand-alliance-banner-card > div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  max-width: calc(100% - 36px);
  padding: 12px 18px;
}

.brand-alliance-banner-card b,
.brand-alliance-banner-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-alliance-banner-card b {
  font-size: 15px;
}

.brand-alliance-banner-card span {
  color: rgba(255,255,255,0.84);
  font-size: 12px;
}

.brand-alliance-banner-card em {
  display: none;
}

.brand-alliance-dots {
  display: flex;
  min-height: 8px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.brand-alliance-dots i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.22);
  transition: width 0.18s ease, background 0.18s ease;
}

.brand-alliance-dots i.active {
  width: 16px;
  background: rgba(23, 32, 51, 0.46);
}

.brand-alliance-welcome {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #dfe8ff !important;
  color: #172033 !important;
  box-shadow: none !important;
  text-align: left;
}

.brand-alliance-board-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  flex: 0 0 28px;
  border-radius: 8px;
  background: #1f68e8;
  color: #fff;
}

.brand-alliance-board-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.brand-alliance-notice-ticker {
  min-width: 0;
  flex: 1 1 auto;
  height: 22px;
  overflow: hidden;
}

.brand-alliance-notice-track {
  display: grid;
  transition: transform 0.32s ease;
  will-change: transform;
}

.brand-alliance-notice-ticker b {
  display: block;
  height: 22px;
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-alliance-welcome em {
  color: #6d7895;
  font-size: 24px;
  font-style: normal;
}

#brand-business-page .brand-alliance-welcome:hover,
#brand-business-page .brand-alliance-welcome:focus-visible {
  background: #d2ddfb !important;
  color: #172033 !important;
}

.brand-alliance-ticker-panel {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(31, 104, 232, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.brand-alliance-ticker-window {
  height: 78px;
  overflow: hidden;
}

.brand-alliance-ticker-track {
  display: grid;
  gap: 0;
  animation: brandAllianceTicker 14s linear infinite;
  will-change: transform;
}

.brand-alliance-ticker-track span {
  display: block;
  height: 26px;
  overflow: hidden;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
  line-height: 26px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes brandAllianceTicker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -50%, 0); }
}

.brand-alliance-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.brand-alliance-platform-card {
  display: flex;
  min-width: 0;
  min-height: 86px;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(23, 32, 51, 0.04);
  border-radius: 6px;
  background: #f5f6f8 !important;
  color: #172033 !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03) !important;
}

.brand-alliance-platform-card .brand-platform-image {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: #fff url('/brand/shopee-logo.png') center / 72% no-repeat;
  object-fit: cover;
}

.brand-alliance-platform-card b {
  min-width: 0;
  overflow: hidden;
  color: #172033;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#brand-business-page .brand-alliance-platform-card:hover,
#brand-business-page .brand-alliance-platform-card:focus-visible {
  background: #edf1f7 !important;
  color: #172033 !important;
  outline: none;
}

.brand-platform-order-page {
  display: grid;
  gap: 8px;
  box-sizing: border-box;
  width: min(100%, 100dvw);
  max-width: 100%;
  min-height: 100%;
  min-width: 0;
  overflow-x: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-y;
  padding: 0 6px 12px;
  background: #fff8fd;
}

.brand-platform-order-page * {
  min-width: 0;
}

.brand-platform-topbar {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  min-height: 52px;
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.brand-platform-topbar h1 {
  margin: 0;
  overflow: hidden;
  color: #111827;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-platform-topbar-back,
.brand-platform-topbar-profile {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(238, 77, 45, 0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.82) !important;
  color: #172033 !important;
  box-shadow: none;
}

.brand-platform-topbar-back {
  justify-self: start;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.brand-platform-topbar-profile {
  justify-self: end;
  overflow: hidden;
  padding: 0;
}

.brand-platform-topbar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff url('/brand/shopee-logo.png') center / 72% no-repeat;
  object-fit: cover;
  pointer-events: none;
}

#brand-business-page .brand-platform-topbar-back:hover,
#brand-business-page .brand-platform-topbar-back:focus-visible,
#brand-business-page .brand-platform-topbar-profile:hover,
#brand-business-page .brand-platform-topbar-profile:focus-visible {
  background: rgba(238, 77, 45, 0.08) !important;
  color: #172033 !important;
  outline: none;
}

.brand-platform-live-summary {
  display: grid;
  gap: 12px;
}

.brand-platform-current-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 4px 2px;
}

.brand-platform-current-code,
.brand-platform-current-deadline {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.brand-platform-current-code b {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: baseline;
  gap: 4px;
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-platform-current-code b.brand-platform-current-status-wrap {
  display: block;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.brand-platform-current-number {
  color: #ef3d30;
  font-size: 16px;
  font-weight: 950;
}

.brand-platform-current-status {
  display: block;
  color: #2f6bc8;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.28;
  white-space: normal;
}

.brand-platform-current-code b span {
  color: #111827;
  font-size: 12px;
  font-weight: 900;
}

.brand-platform-current-deadline {
  justify-items: end;
  max-width: 142px;
  text-align: right;
}

.brand-platform-current-deadline b {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
}

.brand-platform-current-deadline b small {
  color: #ef3d30;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-platform-current-deadline b.brand-platform-start-delay {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px 3px;
}

.brand-platform-current-deadline b.brand-platform-start-delay > small {
  flex: 0 0 100%;
  text-align: right;
}

.brand-platform-current-deadline b span {
  display: inline-grid;
  min-width: 28px;
  min-height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #ef3d30;
  color: #fff;
  line-height: 1;
}

.brand-platform-current-deadline b em {
  color: #111827;
  font-style: normal;
}

.brand-platform-current-deadline b.is-ended span {
  background: #a9b3c2;
}

.brand-platform-current-deadline b.is-ended em {
  color: #a9b3c2;
}

.brand-platform-previous-order {
  display: grid;
  gap: 5px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.brand-platform-previous-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-platform-previous-head b {
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-platform-previous-number {
  color: #2f6bc8;
  font-size: 15px;
  font-weight: 950;
}

.brand-platform-previous-head b span {
  margin-left: 2px;
  color: #111827;
  font-size: 12px;
}

.brand-platform-previous-head button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent !important;
  color: #111827 !important;
  font-size: 14px;
  font-weight: 900;
  box-shadow: none;
  white-space: nowrap;
}

#brand-business-page .brand-platform-previous-head button:hover,
#brand-business-page .brand-platform-previous-head button:focus-visible {
  color: var(--brand-accent) !important;
  background: transparent !important;
  outline: none;
}

.brand-platform-previous-result {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
}

.brand-platform-previous-result > span:first-child {
  color: #111827;
}

.brand-platform-result-tags {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
}

.brand-platform-previous-result em {
  overflow: hidden;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #111827;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-platform-detail-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.brand-platform-detail-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  background: #f4f5f7;
  object-fit: cover;
}

.brand-platform-detail-head h2,
.brand-platform-detail-head p {
  margin: 0;
}

.brand-platform-detail-head small {
  display: block;
  margin-bottom: 3px;
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 800;
}

.brand-platform-detail-head h2 {
  color: #172033;
  font-size: 20px;
  line-height: 1.2;
}

.brand-platform-detail-head p {
  margin-top: 4px;
  color: #748096;
  font-size: 12px;
}

.brand-platform-countdown {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 20px;
  padding: 12px 15px;
  border-radius: 8px;
  background: #fff4ef;
  color: #172033;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.brand-platform-countdown div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand-platform-countdown small,
.brand-platform-countdown span {
  color: #748096;
  font-size: 12px;
}

.brand-platform-countdown b {
  color: var(--brand-accent);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.brand-platform-countdown b.is-ended {
  color: #8c96aa;
  font-size: 17px;
}

.brand-platform-order-section {
  margin-top: 0;
}

.brand-platform-task-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 2px 0 6px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.brand-platform-task-button {
  min-width: 0;
  min-height: 40px;
  padding: 0 6px;
  border: 1px solid #a9cffb;
  border-radius: 9px;
  background: #e8f2ff !important;
  color: #084681 !important;
  font-size: 14px;
  font-weight: 900;
  box-shadow: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-platform-task-button.selected {
  border-color: #ef3d30 !important;
  background: #ef3d30 !important;
  color: #fff !important;
  box-shadow: 0 8px 16px rgba(239, 61, 48, 0.22);
}

.brand-platform-task-button[disabled] {
  background: #eef1f7 !important;
  color: #9aa4b8 !important;
  opacity: 0.86;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.brand-platform-task-button.submitted[disabled] {
  background: #fff1f4 !important;
  color: #ff5d8f !important;
  opacity: 1;
}

.brand-platform-task-button.selected[disabled],
.brand-platform-task-button.submitted.selected[disabled] {
  border-color: #ef3d30 !important;
  background: #ef3d30 !important;
  color: #fff !important;
  opacity: 1;
}

#brand-business-page .brand-platform-task-button:hover,
#brand-business-page .brand-platform-task-button:focus-visible {
  border-color: #b8d5ff !important;
  background: #dceaff !important;
  color: #124f9f !important;
  outline: none;
}

#brand-business-page .brand-platform-task-button.selected:hover,
#brand-business-page .brand-platform-task-button.selected:focus-visible {
  border-color: #ef3d30 !important;
  background: #ef3d30 !important;
  color: #fff !important;
}

#brand-business-page .brand-platform-task-button.submitted[disabled]:hover,
#brand-business-page .brand-platform-task-button.submitted[disabled]:focus-visible {
  background: #fff1f4 !important;
  color: #ff5d8f !important;
}

.brand-platform-showcase-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 4px;
  color: #172033;
  font-size: 13px;
  font-weight: 900;
}

.brand-platform-showcase-heading em {
  color: #748096;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.brand-platform-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 2px 0 0;
  overflow: hidden;
}

.brand-platform-showcase-cell {
  display: grid;
  min-width: 0;
  overflow: hidden;
  place-items: center;
  aspect-ratio: 1 / 0.86;
  box-sizing: border-box;
  padding: 3px;
  border: 1px solid #f1e7ef;
  border-radius: 4px;
  background: #fff;
}

.brand-platform-showcase-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.brand-platform-campaign-grid {
  display: grid;
  grid-template-columns: repeat(var(--brand-order-cols, 2), minmax(0, 1fr));
  grid-template-rows: repeat(var(--brand-order-rows, 2), minmax(0, 1fr));
  gap: 12px;
  height: min(54vh, 520px);
  min-height: 420px;
  align-items: stretch;
  overflow: hidden;
}

.brand-platform-campaign-grid.dense {
  gap: 8px;
}

.brand-platform-campaign-grid.ultra {
  gap: 6px;
}

.brand-platform-order-card {
  display: grid;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.brand-platform-order-card.selected {
  border-color: #ff85ab;
  box-shadow: 0 0 0 2px rgba(255, 133, 171, 0.2), 0 8px 18px rgba(238, 77, 45, 0.1);
}

.brand-platform-order-pick {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  min-height: 0;
  height: auto !important;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #fff !important;
  color: #111827 !important;
  line-height: normal !important;
  box-shadow: none;
  text-align: center;
}

.brand-platform-order-image,
.brand-platform-order-placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.brand-platform-order-image {
  display: block;
  object-fit: contain;
  background: #fff;
}

.brand-platform-order-placeholder {
  display: grid;
  place-items: center;
  background: #f4f5f7;
  color: #9aa4b8;
}

.brand-platform-order-placeholder svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.brand-platform-order-body {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 10px 8px;
}

.brand-platform-order-body small {
  overflow: hidden;
  color: var(--brand-accent);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-platform-order-body h3 {
  margin: 0;
  overflow: hidden;
  color: #172033;
  font-size: 14px;
  line-height: 1.35;
}

.brand-platform-order-body p {
  min-height: 34px;
  margin: 0;
  overflow: hidden;
  color: #748096;
  font-size: 12px;
  line-height: 1.45;
}

.brand-platform-order-meta {
  display: grid;
  gap: 2px;
  color: #9aa4b8;
  font-size: 10px;
}

.brand-platform-order-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-platform-order-card > button {
  min-height: 0;
}

.brand-platform-order-card > button[disabled] {
  background: #fff !important;
  color: #918b84 !important;
  opacity: 0.72;
  box-shadow: none;
}

#brand-business-page .brand-platform-order-card > button:hover,
#brand-business-page .brand-platform-order-card > button:focus-visible {
  background: #fff !important;
  color: #111827 !important;
  outline: none;
}

#brand-business-page .brand-platform-order-card > button[disabled]:hover,
#brand-business-page .brand-platform-order-card > button[disabled]:focus-visible {
  background: #fff !important;
  color: #918b84 !important;
}

.brand-platform-order-name {
  display: grid;
  min-height: 48px;
  place-items: center;
  padding: 8px 10px;
  background: linear-gradient(90deg, #f2ddf7 0%, #ffe0ee 100%);
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.brand-platform-campaign-grid.dense .brand-platform-order-name {
  min-height: 38px;
  padding: 6px;
  font-size: 13px;
}

.brand-platform-campaign-grid.ultra .brand-platform-order-name {
  min-height: 32px;
  padding: 5px 4px;
  font-size: 12px;
}

.brand-platform-order-card.empty {
  opacity: 0.78;
}

.brand-platform-order-card.empty .brand-platform-order-body {
  min-height: 62px;
  align-content: center;
  text-align: center;
}

.brand-platform-order-card.empty .brand-platform-order-body h3 {
  color: #8c96aa;
  font-size: 13px;
  font-weight: 800;
}

.brand-platform-submit-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 9px;
  padding: 10px 12px 12px;
  border: 1px solid #eee3dd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
  max-width: 100%;
  overflow: hidden;
}

.brand-platform-submit-choice {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.brand-platform-submit-choice span,
.brand-platform-submit-choice em {
  color: #748096;
  font-size: 12px;
  font-style: normal;
}

.brand-platform-submit-choice b {
  overflow: hidden;
  color: #172033;
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-platform-submit-panel label {
  margin: 0;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
}

.brand-platform-submit-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 8px;
  align-items: center;
}

.brand-platform-submit-panel input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #e5ded8;
  border-radius: 8px;
  box-sizing: border-box;
  background: #fff;
  color: #172033;
  font: 900 16px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brand-platform-submit-input span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid #d8dce5;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font-size: 13px;
  font-weight: 900;
}

.brand-platform-submit-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-platform-submit-actions strong {
  min-width: 0;
  color: #172033;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.brand-platform-submit-panel button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-accent) !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(238, 77, 45, 0.2);
}

.brand-platform-submit-panel .brand-platform-submit-clear {
  min-width: 54px;
  padding: 0 8px;
  background: transparent !important;
  color: #172033 !important;
  box-shadow: none;
}

.brand-platform-submit-panel .brand-platform-submit-now {
  min-width: 88px;
}

.brand-platform-submit-panel .brand-platform-submit-now[disabled] {
  background: #e9e3e0 !important;
  color: #aaa19a !important;
  box-shadow: none;
}

#brand-business-page .brand-platform-submit-panel button:hover,
#brand-business-page .brand-platform-submit-panel button:focus-visible {
  background: #e94427 !important;
  color: #fff !important;
  outline: none;
}

#brand-business-page .brand-platform-submit-panel .brand-platform-submit-clear:hover,
#brand-business-page .brand-platform-submit-panel .brand-platform-submit-clear:focus-visible {
  background: #f4f5f7 !important;
  color: #172033 !important;
}

#brand-business-page .brand-platform-submit-panel .brand-platform-submit-now[disabled]:hover,
#brand-business-page .brand-platform-submit-panel .brand-platform-submit-now[disabled]:focus-visible {
  background: #e9e3e0 !important;
  color: #aaa19a !important;
}

body.brand-business-input-active #brand-business-page {
  padding-bottom: calc(148px + env(safe-area-inset-bottom) + var(--brand-business-keyboard-inset, 0px)) !important;
  overflow-x: hidden !important;
  scroll-padding-top: 88px !important;
  scroll-padding-bottom: calc(128px + var(--brand-business-keyboard-inset, 0px)) !important;
  scroll-behavior: auto !important;
}

body.brand-business-input-active .brand-platform-order-page {
  padding-bottom: calc(28px + var(--brand-business-keyboard-inset, 0px)) !important;
}

body.brand-business-input-active .brand-platform-submit-panel {
  scroll-margin-bottom: calc(128px + var(--brand-business-keyboard-inset, 0px)) !important;
}

body.brand-business-input-active .brand-alliance-ticker-track,
body.brand-business-input-active .brand-alliance-notice-track {
  animation-play-state: paused;
  transition: none !important;
}

.brand-alliance-notice-list {
  display: grid;
  gap: 10px;
}

.brand-alliance-notice-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #eef1f7;
  border-radius: 8px;
  background: #fffdfa;
  color: #172033;
  font-weight: 800;
}

.brand-alliance-notice-row svg {
  width: 20px;
  height: 20px;
  color: #1f68e8;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.brand-announcement-list {
  display: grid;
  gap: 12px;
}

.brand-announcement-card {
  overflow: hidden;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  background: var(--brand-paper);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.brand-announcement-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  background: #eef2f7;
}

.brand-announcement-body {
  display: grid;
  gap: 7px;
  padding: 13px 14px 15px;
}

.brand-announcement-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--brand-muted);
  font-size: 11px;
  font-weight: 800;
}

.brand-announcement-meta span {
  color: var(--brand-accent);
}

.brand-announcement-card h3 {
  margin: 0;
  color: var(--brand-ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.brand-announcement-card p {
  margin: 0;
  color: #606a7b;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.brand-announcement-card a {
  width: fit-content;
  margin-top: 3px;
  color: var(--brand-accent);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.brand-platform-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.brand-platform-tile {
  display: flex;
  min-width: 0;
  min-height: 84px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  border: 1px solid var(--brand-line);
  border-radius: 15px;
  background: var(--brand-paper);
  color: var(--brand-ink);
  box-shadow: none;
}

.brand-platform-tile.active {
  border-color: #ff846e;
  color: var(--brand-accent-dark);
  box-shadow: inset 0 0 0 1px #ff846e;
}

#brand-business-page .brand-platform-tile:hover,
#brand-business-page .brand-platform-tile:focus-visible {
  border-color: #ffab98 !important;
  background: #fff8f4 !important;
  color: var(--brand-ink) !important;
  outline: none;
}

#brand-business-page .brand-platform-tile.active:hover,
#brand-business-page .brand-platform-tile.active:focus-visible {
  color: var(--brand-accent-dark) !important;
}

#brand-business-page .brand-platform-tile:hover b,
#brand-business-page .brand-platform-tile:focus-visible b {
  color: inherit !important;
}

.brand-platform-image {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
}

.brand-platform-tile b {
  width: 100%;
  overflow: hidden;
  font-size: 12px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-filter-row,
.brand-order-filters {
  display: flex;
  gap: 8px;
  margin: 13px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.brand-filter-row::-webkit-scrollbar,
.brand-order-filters::-webkit-scrollbar {
  display: none;
}

.brand-filter-chip,
.brand-order-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #ebe8e3;
  color: #746f69;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  overflow: visible;
  scroll-snap-align: start;
}

.brand-filter-chip.active,
.brand-order-filter.active {
  background: #302f32;
  color: #fff;
}

.brand-order-filter em {
  display: inline-grid;
  min-width: 16px;
  height: 16px;
  place-items: center;
  margin-left: 0;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand-accent);
  color: #fff;
  font-size: 9px;
  font-style: normal;
}

.brand-campaign-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--brand-line);
}

.brand-campaign-row:last-child {
  border-bottom: 0;
}

.brand-campaign-image {
  width: 58px;
  height: 58px;
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  background: #fff;
  object-fit: cover;
}

.brand-campaign-row h3,
.brand-order-entry h3 {
  margin: 4px 0;
  color: var(--brand-ink);
  font-size: 15px;
}

.brand-campaign-row p,
.brand-order-summary {
  margin: 0;
  color: var(--brand-muted);
  font-size: 12px;
}

.brand-campaign-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 5px;
  color: #9a948d;
  font-size: 10px;
}

.brand-campaign-action {
  display: flex;
  min-width: 78px;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.brand-campaign-action > b {
  color: var(--brand-accent);
  font-size: 12px;
}

.brand-campaign-action button,
.brand-order-entry-foot button {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.brand-campaign-action button[disabled] {
  background: #dedad4;
  color: #99928a;
}

.brand-order-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--brand-line);
  border-radius: 18px;
  background: var(--brand-paper);
}

.brand-order-overview div {
  padding: 16px 10px;
  border-left: 1px solid var(--brand-line);
  text-align: center;
}

.brand-order-overview div:first-child {
  border-left: 0;
}

.brand-order-overview b,
.brand-order-overview span {
  display: block;
}

.brand-order-overview b {
  color: var(--brand-ink);
  font-size: 23px;
}

.brand-order-overview span {
  margin-top: 3px;
  color: var(--brand-muted);
  font-size: 11px;
}

.brand-order-list {
  display: grid;
  gap: 10px;
}

.brand-order-entry {
  padding: 15px;
  border: 1px solid var(--brand-line);
  border-radius: 17px;
  background: var(--brand-paper);
}

.brand-order-entry-head,
.brand-order-entry-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.brand-order-entry-head small,
.brand-order-entry-foot time {
  color: #9c9690;
  font-size: 10px;
}

.brand-order-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 10px;
}

.brand-order-values span {
  min-width: 0;
  padding: 9px;
  border-radius: 11px;
  background: #f3f0ec;
}

.brand-order-values small,
.brand-order-values b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-order-values small {
  color: var(--brand-muted);
  font-size: 9px;
}

.brand-order-values b {
  margin-top: 3px;
  color: var(--brand-ink);
  font-size: 12px;
}

.brand-order-progress {
  height: 5px;
  overflow: hidden;
  margin: 8px 0 12px;
  border-radius: 999px;
  background: #e7e3de;
}

.brand-order-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #3aa17e;
}

.brand-order-reject {
  display: flex;
  gap: 8px;
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff0ed;
  color: #b83e2a;
  font-size: 11px;
}

.brand-order-reject b {
  flex: 0 0 auto;
}

.brand-order-entry-foot {
  align-items: center;
}

.brand-order-entry-foot button {
  border: 1px solid var(--brand-line);
  background: #fff;
  color: var(--brand-ink);
}

.brand-mine-profile {
  position: relative;
  padding: 8px 0 18px;
  text-align: center;
}

.brand-mine-refresh {
  position: absolute;
  top: 8px;
  right: max(8px, env(safe-area-inset-right));
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--brand-accent);
  box-shadow: none;
  transition: transform 0.14s ease, color 0.16s ease, opacity 0.16s ease;
}

.brand-mine-refresh svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#brand-business-page .brand-mine-refresh:hover,
#brand-business-page .brand-mine-refresh:focus-visible {
  color: #d84024;
  outline: none;
}

#brand-business-page .brand-mine-refresh:active {
  transform: scale(0.96);
}

.brand-mine-refresh.syncing {
  opacity: 0.72;
  pointer-events: none;
}

.brand-mine-refresh.syncing svg {
  animation: brand-mine-refresh-spin 0.72s linear infinite;
}

@keyframes brand-mine-refresh-spin {
  to { transform: rotate(360deg); }
}

.brand-mine-avatar-wrap {
  position: relative;
  display: inline-block;
  width: 88px;
  height: 88px;
  margin-bottom: 10px;
  border-radius: 50%;
}

.brand-mine-avatar-wrap.privileged {
  padding: 3px;
  background: linear-gradient(145deg, #f7d977, #c88721);
  box-shadow: 0 8px 22px rgba(191, 129, 28, 0.2);
}

.brand-mine-avatar {
  width: 100%;
  height: 100%;
  border: 2px solid var(--brand-paper);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

img[data-brand-business-avatar][data-brand-avatar-fallback="true"] {
  background: #fff url('/brand/shopee-logo.png') center / 72% no-repeat !important;
  object-fit: contain !important;
}

.brand-privilege-badge {
  position: absolute;
  right: -1px;
  bottom: 1px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 3px solid var(--brand-canvas);
  border-radius: 50%;
  background: linear-gradient(145deg, #ffdf72, #d9951b);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.brand-mine-phone {
  width: fit-content;
  max-width: 180px;
  margin: -3px auto 7px;
  overflow: hidden;
  color: var(--brand-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-credit-score {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 24px;
  margin: 0 auto 8px;
  padding: 0 10px;
  border: 1px solid rgba(238, 77, 45, 0.16);
  border-radius: 999px;
  background: rgba(238, 77, 45, 0.08);
  color: #b95033;
  font-size: 12px;
  font-weight: 700;
}

.brand-mine-profile h1 {
  margin: 0;
  color: var(--brand-ink);
  font-size: 23px;
}

.brand-mine-profile p {
  margin: 5px 0 11px;
  color: var(--brand-muted);
  font-size: 12px;
}

.brand-profile-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  background: var(--brand-paper);
  color: var(--brand-ink);
  font-size: 12px;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

#brand-business-page .brand-profile-edit:hover,
#brand-business-page .brand-profile-edit:focus-visible {
  border-color: #efb9aa !important;
  background: #fff4ef !important;
  color: var(--brand-accent) !important;
  box-shadow: 0 4px 12px rgba(242, 75, 47, 0.12) !important;
  outline: none;
}

#brand-business-page .brand-profile-edit:active {
  background: #ffe9e1 !important;
  color: var(--brand-accent) !important;
  transform: translateY(1px);
}

.brand-profile-edit svg {
  width: 15px;
  height: 15px;
}

[data-business-action="native-settings"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.brand-mine-wallet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--brand-line);
  border-radius: 18px;
  background: var(--brand-paper);
}

.brand-mine-wallet > div {
  padding: 18px;
  border-left: 1px solid var(--brand-line);
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.brand-mine-wallet > div:hover,
.brand-mine-wallet > div:focus-visible {
  background: #fff9f4;
  outline: none;
}

.brand-mine-wallet > div:active {
  transform: translateY(1px);
}

.brand-mine-wallet > div:first-child {
  border-left: 0;
}

.brand-mine-wallet small,
.brand-mine-wallet b,
.brand-mine-wallet span {
  display: block;
}

.brand-mine-wallet small,
.brand-mine-wallet span {
  color: var(--brand-muted);
  font-size: 11px;
}

.brand-mine-wallet b {
  margin: 5px 0;
  color: var(--brand-ink);
  font-size: 22px;
}

.brand-mine-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
  padding: 17px 8px;
  border: 1px solid var(--brand-line);
  border-radius: 18px;
  background: var(--brand-paper);
}

.brand-mine-actions button {
  display: flex;
  height: auto !important;
  min-height: 68px !important;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0 !important;
  border: 0;
  background: transparent;
  color: var(--brand-ink);
  line-height: normal !important;
  box-shadow: none !important;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.brand-mine-actions button > span {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  flex: 0 0 45px;
  border-radius: 50%;
  background: #fff0eb;
  color: var(--brand-accent);
}

.brand-mine-actions svg {
  width: 21px;
  height: 21px;
}

.brand-mine-actions b {
  font-size: 12px;
}

.brand-mine-actions small {
  display: block;
  max-width: 92px;
  overflow: hidden;
  color: var(--brand-muted);
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#brand-business-page .brand-mine-actions button:hover,
#brand-business-page .brand-mine-actions button:focus-visible {
  background: #fff9f6 !important;
  color: var(--brand-ink) !important;
  outline: none;
}

#brand-business-page .brand-mine-actions button:hover > span,
#brand-business-page .brand-mine-actions button:focus-visible > span {
  background: #ffe6de !important;
  color: var(--brand-accent) !important;
}

#brand-business-page .brand-mine-actions button:active {
  color: var(--brand-ink) !important;
  transform: translateY(1px);
}

.brand-mine-settings {
  overflow: hidden;
  border: 1px solid var(--brand-line);
  border-radius: 18px;
  background: var(--brand-paper);
}

.brand-mine-settings > button {
  display: grid;
  width: 100%;
  min-height: 68px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border: 0;
  border-top: 1px solid var(--brand-line);
  background: transparent;
  color: var(--brand-ink);
  text-align: left;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.brand-mine-settings > button:first-child {
  border-top: 0;
}

.brand-setting-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: #f1eee9;
  color: #635e58;
}

.brand-setting-icon.danger {
  background: #fff0ed;
  color: var(--brand-accent);
}

.brand-setting-icon svg {
  width: 18px;
  height: 18px;
}

.brand-mine-settings button > span:nth-child(2) b,
.brand-mine-settings button > span:nth-child(2) small {
  display: block;
}

.brand-mine-settings button > span:nth-child(2) b {
  font-size: 14px;
  line-height: 1.3;
}

.brand-mine-settings button > span:nth-child(2) small {
  margin-top: 5px;
  color: var(--brand-muted);
  font-size: 11px;
  line-height: 1.35;
}

#brand-business-page .brand-mine-settings > button:hover,
#brand-business-page .brand-mine-settings > button:focus-visible {
  background: #fff9f6 !important;
  color: var(--brand-ink) !important;
  outline: none;
}

#brand-business-page .brand-mine-settings > button:hover b,
#brand-business-page .brand-mine-settings > button:focus-visible b {
  color: var(--brand-ink) !important;
}

#brand-business-page .brand-mine-settings > button:hover small,
#brand-business-page .brand-mine-settings > button:focus-visible small {
  color: var(--brand-muted) !important;
}

#brand-business-page .brand-mine-settings > button:active {
  background: #fff2ec !important;
  color: var(--brand-ink) !important;
}

.brand-mine-settings em {
  color: #aaa39c;
  font-size: 22px;
  font-style: normal;
}

.brand-mine-footnote {
  margin: 12px 6px 0;
  color: var(--brand-muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.brand-native-transition {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(247, 245, 241, 0.985);
}

.brand-guest-registration-transition {
  z-index: 2147483000;
  background: #fff;
}

.brand-native-transition[hidden] {
  display: none !important;
}

.brand-native-transition-card {
  display: grid;
  min-width: 176px;
  justify-items: center;
  gap: 13px;
  padding: 22px 24px;
  border: 1px solid var(--brand-line);
  border-radius: 20px;
  background: var(--brand-paper);
  color: var(--brand-ink);
  box-shadow: 0 16px 40px rgba(68, 54, 43, 0.1);
}

.brand-native-transition-card b {
  font-size: 13px;
  font-weight: 700;
}

.brand-native-transition-spinner {
  width: 27px;
  height: 27px;
  border: 3px solid #f4d4ca;
  border-top-color: var(--brand-accent);
  border-radius: 50%;
  animation: brand-native-spin 0.72s linear infinite;
}

@keyframes brand-native-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-native-transition-spinner {
    animation: none;
    border-top-color: #f4d4ca;
    background: var(--brand-accent);
    box-shadow: inset 0 0 0 7px var(--brand-paper);
  }
}

.brand-system-notification-row {
  list-style: none;
  position: relative;
  cursor: pointer;
}

ul.contact-box > li:not(.brand-system-notification-row) {
  -webkit-tap-highlight-color: transparent;
}

ul.contact-box > li:not(.brand-system-notification-row):active {
  transition: none !important;
}

ul.contact-box > li.brand-optimistic-read .unread {
  display: none !important;
}

.brand-system-notification-row:hover,
.brand-system-notification-row:focus-visible {
  background: #fff8f4;
  outline: none;
}

.brand-notification-icon {
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff0eb;
  color: var(--brand-accent);
}

.brand-system-avatar-box .avatar {
  object-fit: cover;
  background: #fff;
}

.brand-system-text-box {
  flex: 1;
  min-width: 0;
  padding-right: 64px;
}

.brand-system-text-box .contact-comment span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-system-time {
  position: absolute;
  top: 8px;
  right: 9px;
  color: #aaa39c;
  font-size: 9px;
  line-height: 1;
}

.brand-system-chat {
  min-height: calc(100dvh - 132px - env(safe-area-inset-bottom));
  color: var(--brand-ink);
}

.brand-system-chat-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  min-height: 72px;
  grid-template-columns: 48px 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: calc(10px + env(safe-area-inset-top)) 0 12px;
  border-bottom: 1px solid var(--brand-line);
  background: rgba(247, 245, 241, 0.96);
  backdrop-filter: blur(14px);
}

.brand-system-chat-back {
  display: grid;
  width: 48px;
  min-width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--brand-line);
  border-radius: 13px;
  background: var(--brand-paper);
  color: var(--brand-ink);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
}

.brand-system-chat-back:hover,
.brand-system-chat-back:focus-visible {
  border-color: #e6cfc3;
  background: #fff8f4;
  color: var(--brand-ink);
}

.brand-system-chat-header > img {
  width: 40px;
  height: 40px;
  border: 1px solid #efe2da;
  border-radius: 12px;
  background: #fff;
  object-fit: cover;
}

.brand-system-chat-header h1,
.brand-system-chat-header p {
  margin: 0;
}

.brand-system-chat-header h1 {
  font-size: 17px;
  line-height: 1.25;
}

.brand-system-chat-header p {
  margin-top: 3px;
  color: var(--brand-muted);
  font-size: 10px;
}

.brand-system-chat-header p span {
  display: inline-block;
  margin-right: 3px;
  padding: 1px 5px;
  border-radius: 5px;
  background: #fff0e8;
  color: var(--brand-accent);
  font-weight: 800;
}

.brand-system-chat-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 4px 28px;
}

.brand-system-permission-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 14px 4px 0;
  padding: 12px 13px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  background: #eef5ff;
  color: #172033;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.brand-system-permission-card b,
.brand-system-permission-card p {
  display: block;
  margin: 0;
}

.brand-system-permission-card b {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.brand-system-permission-card p {
  margin-top: 4px;
  color: #526078;
  font-size: 11px;
  line-height: 1.55;
}

.brand-system-permission-card button {
  min-height: 36px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

.brand-system-permission-card button:disabled {
  opacity: 0.58;
}

.brand-system-day {
  display: flex;
  justify-content: center;
  padding: 2px 0;
}

.brand-system-day span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #eae6e0;
  color: #8a837b;
  font-size: 9px;
}

.brand-system-message {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}

.brand-system-message-avatar {
  width: 36px;
  height: 36px;
  border: 1px solid #eee0d7;
  border-radius: 11px;
  background: #fff;
  object-fit: cover;
}

.brand-system-message-stack {
  min-width: 0;
  max-width: min(82%, 500px);
}

.brand-system-bubble {
  padding: 12px 13px;
  border: 1px solid #e9e2da;
  border-radius: 4px 15px 15px;
  background: var(--brand-paper);
  box-shadow: 0 5px 18px rgba(74, 59, 45, 0.05);
}

.brand-system-bubble b,
.brand-system-bubble p {
  display: block;
  margin: 0;
}

.brand-system-bubble b {
  font-size: 13px;
  line-height: 1.4;
}

.brand-system-bubble p {
  margin-top: 5px;
  color: #625c55;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.brand-system-message-stack > time {
  display: block;
  margin: 4px 3px 0;
  color: #aaa29a;
  font-size: 9px;
}

.brand-system-card-action {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 9px 0 0;
  border: 0;
  border-top: 1px solid #eee6df;
  background: transparent;
  color: var(--brand-accent);
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  box-shadow: none;
}

.brand-system-card-action::after {
  content: "›";
  color: #b7ada5;
  font-size: 18px;
}

.brand-system-card-action:hover,
.brand-system-card-action:focus-visible {
  background: transparent;
  color: var(--brand-accent-dark);
}

.brand-notification-list {
  overflow: hidden;
  border: 1px solid var(--brand-line);
  border-radius: 18px;
  background: var(--brand-paper);
}

.brand-notification-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 11px;
  padding: 15px;
  border-top: 1px solid var(--brand-line);
}

.brand-notification-item:first-child {
  border-top: 0;
}

.brand-notification-item.unread {
  background: #fff9f6;
}

.brand-notification-icon {
  width: 40px;
  height: 40px;
}

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

.brand-notification-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-notification-title b {
  font-size: 14px;
}

.brand-notification-title time,
.brand-notification-item p {
  color: var(--brand-muted);
  font-size: 10px;
}

.brand-notification-item p {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

#brand-business-modal {
  position: fixed;
  inset: 0;
  z-index: 2147482900;
  display: grid;
  place-items: center;
  padding: 18px;
  height: 100vh;
  overflow: hidden;
  touch-action: manipulation;
}

.brand-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 32, 29, 0.52);
}

.brand-modal-card {
  position: relative;
  width: min(500px, 100%);
  max-height: min(680px, calc(100vh - 36px));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-radius: 20px;
  background: var(--brand-paper);
  color: var(--brand-ink);
  box-shadow: 0 24px 70px rgba(35, 32, 29, 0.25);
}

@supports (height: 100dvh) {
  .brand-modal-card {
    max-height: min(680px, calc(100dvh - 36px));
  }
}

#brand-business-modal.brand-member-search-open,
#brand-business-modal.brand-member-search-open.brand-modal-input-active {
  inset: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  min-height: 0;
  place-items: center;
  padding: 18px;
  padding-top: max(18px, env(safe-area-inset-top));
}

#brand-business-modal.brand-member-search-open .brand-modal-card {
  max-height: min(680px, calc(100dvh - 36px));
}

#brand-business-modal.brand-modal-input-active .brand-modal-card {
  scroll-padding-bottom: calc(24px + var(--brand-business-keyboard-inset, 0px) + var(--brand-ime-accessory, 0px));
  overscroll-behavior: contain;
}

#brand-business-modal.brand-modal-input-active .brand-modal-body {
  padding-bottom: calc(24px + var(--brand-business-keyboard-inset, 0px) + var(--brand-ime-accessory, 0px));
}

#brand-business-modal input:not([type="file"]),
#brand-business-modal textarea,
#brand-business-modal select,
.brand-platform-submit-panel input,
.brand-platform-submit-panel textarea,
.brand-platform-submit-panel select {
  font-size: 16px !important;
  -webkit-text-size-adjust: 100%;
}

#brand-business-modal .brand-form-field input,
#brand-business-modal .brand-form-field textarea,
#brand-business-modal .brand-form-field select,
#brand-business-modal .brand-withdraw-amount-input {
  scroll-margin-top: 96px;
  scroll-margin-bottom: 260px;
}

.brand-modal-card > header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--brand-line);
  background: rgba(255, 253, 250, 0.96);
}

.brand-modal-card h2 {
  margin: 0;
  font-size: 18px;
}

.brand-modal-card > header button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--brand-ink);
  font-size: 26px;
  font-weight: 900;
  box-shadow: none;
}

.brand-modal-card > header button:hover,
.brand-modal-card > header button:focus-visible {
  background: transparent !important;
  color: var(--brand-ink) !important;
  outline: none;
  box-shadow: none !important;
}

.brand-modal-card.has-back > header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  justify-content: normal;
  gap: 12px;
  min-height: 64px;
  padding: 12px 18px;
}

.brand-modal-card.has-back > header h2 {
  min-width: 0;
  align-self: center;
  line-height: 1.25;
}

.brand-modal-card > header .brand-modal-back {
  width: 40px;
  height: 40px;
  justify-self: start;
  align-self: center;
  margin: 0;
  font-size: 0;
  line-height: 1;
}

.brand-modal-card > header .brand-modal-back span {
  display: block;
  color: var(--brand-ink);
  font-size: 28px;
  line-height: 1;
  transform: translateY(-1px);
}

.brand-modal-body {
  padding: 16px 18px 20px;
}

.brand-push-prompt {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.brand-push-prompt-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: #eef4ff;
  color: #1d66d5;
}

.brand-push-prompt-icon svg {
  width: 30px;
  height: 30px;
}

.brand-push-prompt h3 {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.25;
}

.brand-push-prompt p {
  margin: 0;
  color: var(--brand-muted);
  font-size: 13px;
  line-height: 1.55;
}

.brand-push-prompt-note {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412 !important;
  text-align: left;
}

.brand-chat-profile-modal {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.brand-chat-profile-avatar {
  width: min(220px, 68vw);
  height: min(220px, 68vw);
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 8px 24px rgba(35, 32, 29, 0.16);
}

.brand-chat-profile-modal h3 {
  margin: 6px 0 0;
  font-size: 20px;
  line-height: 1.25;
}

.brand-chat-profile-id {
  display: none !important;
  margin: 0;
  color: var(--brand-muted);
  font-size: 13px;
  word-break: break-all;
}

.brand-chat-profile-alias {
  margin: -4px 0 0;
  color: var(--brand-orange);
  font-size: 14px;
  font-weight: 700;
  word-break: break-word;
}

.brand-chat-profile-description {
  max-width: 34rem;
  margin: 2px 0;
  color: var(--brand-muted);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.brand-chat-profile-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.brand-chat-profile-meta span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f5f1ec;
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 700;
}

.brand-chat-profile-note {
  max-height: 168px;
  overflow: auto;
}

.brand-chat-profile-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.brand-chat-profile-badges span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff2ec;
  color: var(--brand-orange);
  font-weight: 700;
  font-size: 12px;
}

.brand-chat-profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(280px, 100%);
  margin-top: 8px;
}

.brand-chat-profile-primary {
  min-width: 132px;
  min-height: 42px;
  margin-top: 0;
  border: 0;
  border-radius: 999px;
  background: #ee4d2d;
  background-color: #ee4d2d;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}

.brand-chat-profile-modal .brand-chat-profile-primary,
#brand-business-modal .brand-chat-profile-modal .brand-chat-profile-primary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  background: #ee4d2d !important;
  background-color: #ee4d2d !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(238, 77, 45, 0.18) !important;
  opacity: 1 !important;
}

.brand-chat-profile-modal .brand-chat-profile-primary:hover,
.brand-chat-profile-modal .brand-chat-profile-primary:focus-visible,
#brand-business-modal .brand-chat-profile-modal .brand-chat-profile-primary:hover,
#brand-business-modal .brand-chat-profile-modal .brand-chat-profile-primary:focus-visible {
  background: #d93817 !important;
  color: #fff !important;
}

.brand-chat-profile-secondary,
.brand-chat-profile-modal .brand-chat-profile-secondary,
#brand-business-modal .brand-chat-profile-modal .brand-chat-profile-secondary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 42px;
  border: 1px solid rgba(238, 77, 45, 0.34) !important;
  border-radius: 999px;
  background: #fff7f3 !important;
  background-color: #fff7f3 !important;
  color: #ee4d2d !important;
  font-size: 15px;
  font-weight: 800;
  opacity: 1 !important;
  box-shadow: none !important;
}

.brand-chat-profile-secondary:hover,
.brand-chat-profile-secondary:focus-visible,
.brand-chat-profile-modal .brand-chat-profile-secondary:hover,
.brand-chat-profile-modal .brand-chat-profile-secondary:focus-visible,
#brand-business-modal .brand-chat-profile-modal .brand-chat-profile-secondary:hover,
#brand-business-modal .brand-chat-profile-modal .brand-chat-profile-secondary:focus-visible,
.brand-chat-profile-secondary:active,
.brand-chat-profile-modal .brand-chat-profile-secondary:active,
#brand-business-modal .brand-chat-profile-modal .brand-chat-profile-secondary:active {
  background: #ffe9df !important;
  background-color: #ffe9df !important;
  color: #ee4d2d !important;
  -webkit-text-fill-color: #ee4d2d !important;
  color: #d93817 !important;
}

.brand-modal-form {
  display: grid;
  gap: 15px;
}

.brand-modal-form.busy {
  opacity: 0.72;
}

.brand-profile-avatar-field {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.brand-profile-avatar-preview {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 8px 22px rgba(35, 32, 29, 0.12);
}

.brand-profile-avatar-actions {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.brand-profile-avatar-actions button,
.brand-profile-avatar-actions button:hover,
.brand-profile-avatar-actions button:active,
.brand-profile-avatar-actions button:focus,
.brand-profile-avatar-actions button:focus-visible,
#brand-business-modal .brand-profile-avatar-actions button,
#brand-business-modal .brand-profile-avatar-actions button:hover,
#brand-business-modal .brand-profile-avatar-actions button:active,
#brand-business-modal .brand-profile-avatar-actions button:focus,
#brand-business-modal .brand-profile-avatar-actions button:focus-visible {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(238, 77, 45, 0.25) !important;
  border-radius: 999px;
  background: #fff7f3 !important;
  color: #ee4d2d !important;
  -webkit-text-fill-color: #ee4d2d !important;
  font-weight: 800;
  text-transform: none !important;
  box-shadow: none !important;
}

.brand-profile-avatar-actions small,
.brand-profile-note-count {
  color: var(--brand-muted);
  font-size: 11px;
}

#brand-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}

.brand-image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.brand-image-lightbox-card {
  position: relative;
  z-index: 1;
  max-width: min(94vw, 980px);
  max-height: 92vh;
  display: grid;
  place-items: center;
}

.brand-image-lightbox-img {
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

.brand-image-lightbox-close {
  position: absolute;
  top: -12px;
  right: -10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

body.brand-image-lightbox-open {
  overflow: hidden;
}

.brand-modal-eyebrow {
  color: var(--brand-accent-dark);
  font-size: 10px;
  font-weight: 800;
}

.brand-modal-note,
.brand-modal-balance {
  margin: 0;
  padding: 13px 14px;
  border-radius: 14px;
  background: #f5f1ec;
  color: var(--brand-muted);
  font-size: 12px;
  line-height: 1.55;
}

.brand-modal-balance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 3px 14px;
}

.brand-modal-balance span,
.brand-modal-balance small {
  color: var(--brand-muted);
}

.brand-modal-balance b {
  grid-row: span 2;
  color: var(--brand-ink);
  font-size: 24px;
  text-align: right;
}

.brand-modal-balance small {
  font-size: 10px;
}

.brand-bank-card-current {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 13px 14px;
  border: 1px solid #ead8ce;
  border-radius: 14px;
  background: #fff9f6;
  color: var(--brand-ink);
}

.brand-bank-card-current span,
.brand-bank-card-current small,
.brand-bank-card-current em {
  color: var(--brand-muted);
  font-size: 11px;
  font-style: normal;
}

.brand-bank-card-current b {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-bank-card-current small {
  color: var(--brand-accent-dark);
  font-weight: 800;
  text-align: right;
}

.brand-bank-card-current em {
  grid-column: 1 / -1;
}

.brand-bank-card-picker {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.brand-bank-card-picker legend {
  margin-bottom: 2px;
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 900;
}

.brand-bank-card-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  background: #fffdfa;
}

.brand-bank-card-option:has(input:checked) {
  border-color: var(--brand-accent);
  background: #fff5f0;
  box-shadow: 0 0 0 2px rgba(238, 77, 45, 0.08);
}

.brand-bank-card-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-accent);
}

.brand-bank-card-option b,
.brand-bank-card-option small {
  display: block;
  min-width: 0;
}

.brand-bank-card-option b {
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 900;
}

.brand-bank-card-option small {
  margin-top: 3px;
  color: var(--brand-muted);
  font-size: 11px;
}

.brand-form-field {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 7px;
  margin: 0;
  box-sizing: border-box;
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 700;
}

.brand-modal-form > .brand-form-field {
  justify-self: stretch;
}

.brand-form-field input,
.brand-form-field select,
.brand-form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  background: #fff;
  color: var(--brand-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  outline: none;
}

@media (max-width: 768px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea {
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
  }
}

.brand-form-field input:focus,
.brand-form-field select:focus,
.brand-form-field textarea:focus {
  border-color: #ff846e;
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.1);
}

#brand-business-modal .brand-form-field input,
#brand-business-modal .brand-form-field textarea,
#brand-business-modal .brand-form-field select {
  color: #202124 !important;
  -webkit-text-fill-color: #202124 !important;
}

#brand-business-modal .brand-form-field input::placeholder,
#brand-business-modal .brand-form-field textarea::placeholder {
  color: #8a8580 !important;
  -webkit-text-fill-color: #8a8580 !important;
  opacity: 1;
}

.brand-form-field .brand-withdraw-amount-input {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.brand-form-field .brand-withdraw-amount-input::placeholder {
  color: #b8b2ad;
  font-weight: 400;
  opacity: 1;
}

.brand-form-field small {
  color: var(--brand-muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
}

.brand-bank-card-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.brand-bank-card-list > span {
  color: var(--brand-muted);
  font-size: 12px;
  font-weight: 700;
}

.brand-bank-card-list section {
  padding: 11px 12px;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  background: #fff9f6;
}

.brand-bank-card-list b,
.brand-bank-card-list small {
  display: block;
}

.brand-bank-card-list b {
  color: var(--brand-ink);
  font-size: 13px;
  line-height: 1.35;
}

.brand-bank-card-list small {
  margin-top: 4px;
  color: var(--brand-muted);
  font-size: 10px;
  line-height: 1.4;
}

.brand-bank-card-add-action {
  border-color: #efd9d3;
  box-shadow: none;
}

.brand-inline-action {
  display: grid;
  width: 100%;
  min-height: 64px;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  background: #fff;
  color: var(--brand-ink);
  text-align: left;
  box-shadow: 0 6px 16px rgba(35, 32, 29, 0.08);
}

.brand-inline-action-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
}

.brand-inline-action-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  color: var(--brand-accent);
}

.brand-inline-action-copy {
  display: block;
  min-width: 0;
  align-self: center;
}

.brand-inline-action b,
.brand-inline-action small {
  display: block;
}

.brand-inline-action b {
  font-size: 13px;
  line-height: 1.3;
}

.brand-inline-action small {
  margin-top: 4px;
  color: var(--brand-muted);
  font-size: 10px;
  line-height: 1.35;
}

.brand-inline-action em {
  align-self: center;
  justify-self: end;
  color: var(--brand-muted);
  font-size: 18px;
  font-style: normal;
  line-height: 1;
}

.brand-password-action {
  margin-top: 2px;
}

#brand-business-modal .brand-inline-action:hover,
#brand-business-modal .brand-inline-action:focus-visible {
  border-color: #ead8ce !important;
  background: #fff9f6 !important;
  color: var(--brand-ink) !important;
  outline: none;
  box-shadow: 0 8px 18px rgba(35, 32, 29, 0.1);
}

#brand-business-modal .brand-inline-action:hover b,
#brand-business-modal .brand-inline-action:focus-visible b {
  color: var(--brand-ink) !important;
}

#brand-business-modal .brand-inline-action:hover small,
#brand-business-modal .brand-inline-action:focus-visible small,
#brand-business-modal .brand-inline-action:hover em,
#brand-business-modal .brand-inline-action:focus-visible em {
  color: var(--brand-muted) !important;
}

#brand-business-modal .brand-inline-action:hover svg,
#brand-business-modal .brand-inline-action:focus-visible svg {
  color: var(--brand-accent) !important;
}

.brand-upload-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.brand-upload-tile {
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 13px;
  border: 1px dashed #e6b2a5;
  border-radius: 14px;
  background: #fff9f6;
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 800;
}

.brand-upload-tile input[type="file"] {
  width: 100%;
  min-height: 38px;
  padding: 8px;
  border: 1px solid var(--brand-line);
  border-radius: 11px;
  background: #fff;
  color: var(--brand-muted);
  font-size: 11px;
}

.brand-upload-tile small {
  color: var(--brand-muted);
  font-size: 10px;
  font-weight: 500;
}

.brand-modal-form-error {
  margin: 0;
  padding: 11px 13px;
  border-radius: 11px;
  background: #fff0ed;
  color: #bc3b28;
  font-size: 12px;
  line-height: 1.45;
}

.brand-modal-submit {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-accent);
  color: #fff;
  font-weight: 800;
}

.brand-modal-submit:disabled {
  opacity: 0.58;
}

.brand-logout-confirm {
  display: grid;
  gap: 18px;
}

.brand-logout-confirm p {
  margin: 0;
  color: var(--brand-ink);
  font-size: 15px;
  line-height: 1.55;
}

.brand-logout-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#brand-business-modal .brand-logout-actions button {
  min-height: 44px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

#brand-business-modal .brand-logout-cancel {
  border: 1px solid var(--brand-line);
  background: #fff;
  color: var(--brand-ink);
}

#brand-business-modal .brand-logout-confirm-button {
  border: 0;
  background: var(--brand-accent);
  color: #fff;
}

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

[data-brand-chat-attachment-hidden="true"],
[data-brand-chat-file-menu-hidden="true"] {
  display: none !important;
  pointer-events: none !important;
}

input[type="file"][data-brand-chat-image-input="true"] {
  position: fixed !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  max-width: 1px !important;
  max-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  color: transparent !important;
  background: transparent !important;
  pointer-events: none !important;
  overflow: hidden !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

body.brand-chat-image-preview-active #send-message-panel,
body.brand-chat-image-preview-active #send-message-wrapper,
body.brand-chat-image-preview-active .send-message-panel,
body.brand-chat-image-preview-active .message-input {
  min-height: 62px !important;
  max-height: 40vh !important;
  overflow: visible !important;
}

body.brand-chat-image-preview-active #send-message-panel img,
body.brand-chat-image-preview-active #send-message-wrapper img,
body.brand-chat-image-preview-active .send-message-panel img,
body.brand-chat-image-preview-active .message-input img {
  max-width: min(64vw, 220px) !important;
  max-height: 180px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

body.brand-chat-image-preview-active #content-panel,
body.brand-chat-image-preview-active #topic-view,
body.brand-chat-image-preview-active .dialog-panel {
  overflow-x: hidden !important;
}

body.brand-chat-image-preview-active #content-panel img:not(.avatar):not(.brand-mine-avatar):not(.brand-tab-icon):not([data-brand-default-avatar]),
body.brand-chat-image-preview-active #topic-view img:not(.avatar):not(.brand-mine-avatar):not(.brand-tab-icon):not([data-brand-default-avatar]),
body.brand-chat-image-preview-active .dialog-panel img:not(.avatar):not(.brand-mine-avatar):not(.brand-tab-icon):not([data-brand-default-avatar]) {
  max-width: min(72vw, 280px) !important;
  max-height: 42vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

.brand-inline-image-message,
.brand-native-inline-image-message {
  display: block;
  max-width: min(56vw, 230px) !important;
  max-height: 230px !important;
  width: auto !important;
  height: auto !important;
  margin: 2px 0 4px;
  border-radius: 8px;
  background: #f3f3f3;
  object-fit: contain !important;
}

.brand-inline-image-message + .message-content,
.brand-inline-image-message + .content-meta {
  margin-top: 4px;
}

.brand-inline-image-native-file-hidden {
  display: none !important;
}

.brand-inline-image-caption {
  margin: 3px 0 5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.brand-native-selected-image-preview {
  display: block;
  max-width: min(76vw, 320px);
  max-height: 46vh;
  width: auto;
  height: auto;
  margin: 0 auto 12px;
  border-radius: 8px;
  object-fit: contain;
}

.brand-message-delete-confirm {
  display: grid;
  gap: 15px;
}

.brand-message-delete-confirm p,
.brand-message-delete-confirm blockquote {
  margin: 0;
}

.brand-message-delete-confirm p {
  color: var(--brand-muted);
  font-size: 13px;
  line-height: 1.55;
}

.brand-message-delete-confirm blockquote {
  max-height: 112px;
  overflow: auto;
  padding: 12px 13px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: #f8f6f3;
  color: var(--brand-ink);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.brand-message-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.brand-message-dialog-actions button {
  min-width: 92px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-ink);
  font: inherit;
  font-weight: 800;
}

.brand-message-dialog-actions .brand-modal-submit {
  border-color: var(--brand-accent);
  background: var(--brand-accent);
  color: #fff;
}

.brand-message-dialog-actions button.danger {
  border-color: #d83b4d;
  background: #d83b4d;
  color: #fff;
}

.brand-record-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--brand-line);
}

.brand-record-row:first-child {
  border-top: 0;
}

.brand-record-row > span {
  text-align: right;
}

.brand-record-row b,
.brand-record-row small {
  display: block;
}

.brand-record-row b {
  font-size: 13px;
}

.brand-record-row small {
  margin-top: 4px;
  color: var(--brand-muted);
  font-size: 10px;
}

.brand-detail-hero {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.brand-detail-image {
  width: 68px;
  height: 68px;
  border: 1px solid var(--brand-line);
  border-radius: 15px;
  object-fit: cover;
}

.brand-detail-hero h3 {
  margin: 7px 0 3px;
  font-size: 17px;
}

.brand-detail-hero p {
  margin: 0;
  color: var(--brand-muted);
  font-size: 11px;
}

.brand-detail-list {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px 14px;
  margin: 18px 0 0;
}

.brand-detail-list dt {
  color: var(--brand-muted);
}

.brand-detail-list dd {
  margin: 0;
  text-align: right;
}

@media (max-width: 640px) {
  #brand-business-page {
    padding: 18px 14px 104px;
  }

  .brand-platform-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    overflow: visible;
    mask-image: none;
  }

  .brand-platform-tile {
    min-width: 0;
    min-height: 82px;
    flex: initial;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px;
  }

  .brand-platform-image {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 12px;
  }

  .brand-platform-tile b {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    line-height: 1.28;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .brand-filter-row {
    margin-right: -14px;
    padding: 0 14px 2px 0;
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
  }

  .brand-campaign-row {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .brand-campaign-image {
    width: 54px;
    height: 54px;
  }

  .brand-campaign-meta span:nth-child(n+2) {
    display: none;
  }

  .brand-campaign-action {
    min-width: 68px;
  }

  .brand-order-values {
    gap: 5px;
  }

  .brand-order-values span {
    padding: 7px;
  }

  .brand-mine-wallet > div {
    padding: 15px;
  }

  .brand-mine-wallet b {
    font-size: 19px;
  }

  .brand-platform-order-page {
    gap: 7px;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    padding: 0 4px 10px;
  }

  .brand-platform-topbar {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    min-height: 52px;
    margin-bottom: 0;
  }

  .brand-platform-topbar-back,
  .brand-platform-topbar-profile {
    width: 44px;
    height: 44px;
  }

  .brand-platform-topbar-avatar {
    width: 32px;
    height: 32px;
  }

  .brand-platform-current-order {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 42px;
  }

  .brand-platform-current-code b {
    font-size: 14px;
  }

  .brand-platform-current-deadline b {
    font-size: 15px;
  }

  .brand-platform-previous-order {
    padding: 9px 10px;
  }

  .brand-platform-task-tabs {
    gap: 5px;
    margin: 0 0 5px;
  }

  .brand-platform-task-button {
    min-height: 34px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
  }

  .brand-platform-showcase-grid {
    gap: 3px;
  }

  .brand-platform-showcase-cell {
    aspect-ratio: 1 / 0.72;
    padding: 1px;
  }

  .brand-platform-submit-panel {
    gap: 6px;
    margin-top: 6px;
    padding: 8px 10px 9px;
  }

  .brand-platform-submit-input {
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 7px;
  }

  .brand-platform-submit-panel input,
  .brand-platform-submit-input span,
  .brand-platform-submit-panel button {
    min-height: 38px;
  }

  .brand-system-chat {
    min-height: calc(100dvh - 122px - env(safe-area-inset-bottom));
  }

  .brand-system-chat-header {
    top: 0;
    grid-template-columns: 48px 38px minmax(0, 1fr);
    margin-top: 0;
    padding-top: calc(10px + env(safe-area-inset-top));
  }

  .brand-system-chat-back {
    width: 48px;
    min-width: 48px;
    height: 48px;
  }

  .brand-system-chat-header > img {
    width: 38px;
    height: 38px;
  }

  .brand-system-chat-scroll {
    padding: 16px 0 calc(26px + env(safe-area-inset-bottom));
  }

  .brand-system-permission-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .brand-system-permission-card button {
    width: 100%;
  }

  .brand-system-message-stack {
    max-width: min(84%, 420px);
  }
}

@media (max-width: 430px) {
  html.brand-business-shell-active,
  body.brand-business-shell-active {
    position: fixed !important;
    inset: 0 !important;
    width: 100dvw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    touch-action: none !important;
  }

  #brand-business-page {
    width: 100vw !important;
    max-width: 100vw !important;
    width: 100dvw !important;
    max-width: 100dvw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 0 0 calc(96px + env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: auto !important;
  }

  .brand-business-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-height: calc(100dvh - 1px) !important;
    padding-bottom: calc(42px + env(safe-area-inset-bottom)) !important;
    overflow: visible !important;
  }

  .brand-alliance-home {
    width: 100%;
    max-width: 100%;
    padding-bottom: 18px;
    touch-action: pan-y;
    overscroll-behavior: contain;
  }

  .brand-alliance-hero {
    margin: 0;
    padding-right: 18px;
    padding-left: 18px;
    border-radius: 0;
  }

  .brand-alliance-carousel-row {
    width: calc(100% + 36px);
    margin: 0 -18px 14px;
    padding-right: 0;
    padding-left: 0;
    touch-action: pan-x pan-y;
  }

  .brand-alliance-banners,
  .brand-alliance-banner-card {
    border-radius: 0;
  }

  .brand-alliance-banners {
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    touch-action: pan-x pan-y !important;
  }

  .brand-alliance-welcome,
  .brand-alliance-platform-section {
    width: calc(100% - 24px);
    margin-right: 12px;
    margin-left: 12px;
  }

  .brand-alliance-platform-section {
    margin-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .brand-alliance-platform-grid {
    gap: 10px;
  }

  .brand-alliance-platform-card {
    min-height: 78px;
    padding: 12px 12px;
    gap: 10px;
    touch-action: manipulation;
  }

  .brand-alliance-platform-card .brand-platform-image {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  #brand-bottom-tabs {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 253, 250, 0.99);
    box-shadow: 0 -5px 16px rgba(72, 59, 47, 0.05);
  }

  .brand-platform-order-page {
    width: 100%;
    max-width: 100%;
    padding: 10px 8px 10px;
  }

  .brand-mine-profile,
  .brand-mine-wallet,
  .brand-mine-actions,
  .brand-mine-settings,
  .brand-mine-footnote {
    margin-right: 12px;
    margin-left: 12px;
  }

  .brand-platform-current-order {
    grid-template-columns: minmax(0, 1fr) minmax(82px, 124px);
  }

  .brand-platform-current-deadline {
    max-width: 124px;
  }

  .brand-platform-current-deadline b {
    gap: 2px;
    font-size: 16px;
  }

  .brand-platform-current-deadline b span {
    min-width: 24px;
    min-height: 24px;
    border-radius: 4px;
  }

  .brand-platform-previous-head {
    gap: 8px;
  }

  .brand-platform-previous-head button {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-platform-task-button {
    padding: 0 3px;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .brand-platform-current-order {
    grid-template-columns: minmax(0, 1fr) minmax(78px, 112px);
  }

  .brand-platform-current-code b {
    font-size: 12px;
  }

  .brand-platform-current-deadline b span {
    min-width: 22px;
    min-height: 22px;
  }

  .brand-platform-submit-actions {
    gap: 5px;
  }

  .brand-platform-submit-panel .brand-platform-submit-now {
    min-width: 78px;
  }

  .brand-system-text-box {
    padding-right: 50px;
  }

  .brand-system-message-stack {
    max-width: 88%;
  }
}

.brand-copyable-own-id {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(100%, 420px);
  margin: 14px auto 18px;
  padding: 14px 16px 12px;
  border: 1px solid rgba(238, 77, 45, .28);
  border-radius: 8px;
  background: rgba(238, 77, 45, .06);
  text-align: center;
}

.brand-hidden-own-qr,
.brand-hidden-own-qr-label,
.brand-copyable-own-id-hidden {
  display: none !important;
}

.brand-copyable-own-id-label {
  color: #6f6a65;
  font-size: 13px;
  font-weight: 600;
}

.brand-copyable-own-id code {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #2f2d2c;
  font: 600 14px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  user-select: all;
}

.brand-copyable-own-id-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 82px;
  min-height: 36px;
  margin-top: 2px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: #ee4d2d;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.brand-copyable-own-id-button .material-icons {
  font-size: 18px;
}

/* 2026-08 chat home refresh: white chat header, search field, WeChat-like inbox rows. */
body.brand-safe-chat-home,
body.brand-safe-chat-home #mountPoint,
body.brand-safe-chat-home #app-container,
body.brand-safe-chat-home #sidepanel,
body.brand-safe-chat-home #side-panel,
body.brand-safe-chat-home #left-panel {
  background: #fff !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  transform: none !important;
}

body.brand-safe-chat-home #side-caption-panel,
body.brand-safe-chat-home #sidepanel .caption-panel,
body.brand-safe-chat-home #side-panel .caption-panel {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  height: auto !important;
  min-height: calc(58px + env(safe-area-inset-top));
  padding: max(14px, calc(8px + env(safe-area-inset-top))) 18px 4px !important;
  border: 0 !important;
  background: #fff !important;
  color: #1f1f1f !important;
  box-shadow: none !important;
  overflow: hidden !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

body.brand-safe-chat-home #side-caption-panel::-webkit-scrollbar,
body.brand-safe-chat-home #sidepanel .caption-panel::-webkit-scrollbar,
body.brand-safe-chat-home #side-panel .caption-panel::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

body.brand-safe-chat-home.brand-safe-chat-contacts #side-caption-panel,
body.brand-safe-chat-home.brand-safe-chat-contacts #sidepanel .caption-panel,
body.brand-safe-chat-home.brand-safe-chat-contacts #side-panel .caption-panel {
  grid-template-columns: minmax(0, 1fr);
}

body.brand-safe-chat-home #sidepanel-title,
body.brand-safe-chat-home [data-brand-chat-home-caption].panel-title {
  display: flex !important;
  grid-column: 1;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: transparent !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

body.brand-safe-chat-home #sidepanel-title > *,
body.brand-safe-chat-home [data-brand-chat-home-caption].panel-title > * {
  display: none !important;
}

body.brand-safe-chat-home #side-caption-panel > :not(#sidepanel-title):not(#brand-chat-add-back-button):not([data-brand-chat-home-caption="true"]):not([data-brand-chat-add-entry="true"]),
body.brand-safe-chat-home #side-caption-panel a:not([data-brand-chat-add-entry="true"]),
body.brand-safe-chat-home #sidepanel .caption-panel > :not(#sidepanel-title):not(#brand-chat-add-back-button):not([data-brand-chat-home-caption="true"]):not([data-brand-chat-add-entry="true"]),
body.brand-safe-chat-home #sidepanel .caption-panel a:not([data-brand-chat-add-entry="true"]),
body.brand-safe-chat-home #side-panel .caption-panel > :not(#sidepanel-title):not(#brand-chat-add-back-button):not([data-brand-chat-home-caption="true"]):not([data-brand-chat-add-entry="true"]),
body.brand-safe-chat-home #side-panel .caption-panel a:not([data-brand-chat-add-entry="true"]),
body.brand-safe-chat-home .brand-chat-hidden-caption-action,
body.brand-safe-chat-home .brand-native-top-settings {
  display: none !important;
}

body.brand-safe-chat-home #side-caption-panel img,
body.brand-safe-chat-home #side-caption-panel .avatar-box,
body.brand-safe-chat-home #side-caption-panel .lettertile,
body.brand-safe-chat-home #sidepanel .caption-panel img,
body.brand-safe-chat-home #sidepanel .caption-panel .avatar-box,
body.brand-safe-chat-home #sidepanel .caption-panel .lettertile,
body.brand-safe-chat-home #side-panel .caption-panel img,
body.brand-safe-chat-home #side-panel .caption-panel .avatar-box,
body.brand-safe-chat-home #side-panel .caption-panel .lettertile {
  display: none !important;
}

body.brand-safe-chat-home #sidepanel-title::after,
body.brand-safe-chat-home [data-brand-chat-home-caption].panel-title::after {
  content: "聊天";
  color: #222;
  font: 800 25px/1.1 "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", "Segoe UI", sans-serif;
}

body.brand-safe-chat-home.brand-safe-chat-contacts #sidepanel-title::after,
body.brand-safe-chat-home.brand-safe-chat-contacts [data-brand-chat-home-caption].panel-title::after {
  content: "聯絡人";
}

body.brand-safe-chat-home #side-caption-panel a,
body.brand-safe-chat-home #sidepanel .caption-panel a,
body.brand-safe-chat-home #side-panel .caption-panel a,
body.brand-safe-chat-home #brand-chat-add-button {
  display: grid !important;
  grid-column: 2;
  justify-self: end;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  place-items: center;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #1f1f1f !important;
  box-shadow: none !important;
}

body.brand-safe-chat-home #side-caption-panel a:hover,
body.brand-safe-chat-home #side-caption-panel a:focus-visible,
body.brand-safe-chat-home #sidepanel .caption-panel a:hover,
body.brand-safe-chat-home #sidepanel .caption-panel a:focus-visible,
body.brand-safe-chat-home #brand-chat-add-button:hover,
body.brand-safe-chat-home #brand-chat-add-button:focus-visible,
body.brand-safe-chat-home #brand-chat-add-button:active,
body.brand-safe-chat-home #brand-chat-add-button.active {
  background: transparent !important;
  color: #1f1f1f !important;
  opacity: 1 !important;
}

body.brand-safe-chat-home #side-caption-panel a .material-icons,
body.brand-safe-chat-home #sidepanel .caption-panel a .material-icons,
body.brand-safe-chat-home #side-panel .caption-panel a .material-icons {
  color: currentColor !important;
  font-size: 32px !important;
}

body.brand-safe-chat-home #brand-chat-add-button {
  padding: 0 !important;
  font-size: 0 !important;
  cursor: pointer;
}

body.brand-safe-chat-home #brand-chat-add-button svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.brand-safe-chat-home #brand-chat-add-button *,
body.brand-safe-chat-home #brand-chat-add-button:hover *,
body.brand-safe-chat-home #brand-chat-add-button:focus-visible *,
body.brand-safe-chat-home #brand-chat-add-button:active * {
  color: #1f1f1f !important;
  stroke: currentColor !important;
}

body.brand-safe-chat-home #side-caption-panel a[data-brand-chat-add-entry="true"]:not(#brand-chat-add-button),
body.brand-safe-chat-home #sidepanel .caption-panel a[data-brand-chat-add-entry="true"]:not(#brand-chat-add-button),
body.brand-safe-chat-home #side-panel .caption-panel a[data-brand-chat-add-entry="true"]:not(#brand-chat-add-button) {
  display: none !important;
}

body.brand-safe-chat-add-view #side-caption-panel,
body.brand-safe-chat-add-view #sidepanel .caption-panel,
body.brand-safe-chat-add-view #side-panel .caption-panel {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
}

body.brand-safe-chat-add-view #brand-chat-add-button {
  display: none !important;
}

body.brand-safe-chat-add-view #brand-chat-add-back-button {
  display: grid !important;
  grid-column: 1;
  width: 44px;
  height: 44px;
  min-width: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f1f1f;
  box-shadow: none;
}

body.brand-safe-chat-add-view #brand-chat-add-back-button svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.brand-safe-chat-add-view #sidepanel-title,
body.brand-safe-chat-add-view [data-brand-chat-home-caption].panel-title {
  grid-column: 2;
  justify-content: center;
}

body.brand-safe-chat-add-view #sidepanel-title::after,
body.brand-safe-chat-add-view [data-brand-chat-home-caption].panel-title::after {
  content: "新增";
  font-size: 20px;
}

body.brand-safe-chat-add-view #brand-chat-search-row,
body.brand-safe-chat-add-view .brand-native-add-main-row-hidden {
  display: none !important;
}

body.brand-safe-chat-add-view [data-brand-native-add-tabs="true"] {
  display: flex !important;
  align-items: center;
}

body.brand-safe-chat-add-view [data-brand-native-add-tab="find"] {
  display: none !important;
}

body.brand-safe-chat-add-view [data-brand-native-add-tab="id"] {
  display: none !important;
}

body.brand-safe-chat-add-view [data-brand-native-add-tab="group"] {
  order: 1;
}

body.brand-safe-chat-add-view.brand-privileged-add-view [data-brand-native-add-tab="id"]:not(.brand-native-add-tab-hidden) {
  display: flex !important;
  order: 1;
}

body.brand-safe-chat-add-view.brand-privileged-add-view [data-brand-native-add-tab="find"],
body.brand-safe-chat-add-view.brand-privileged-add-view [data-brand-native-add-tab="group"] {
  display: none !important;
}

body.brand-safe-chat-add-view ul.contact-box > li.brand-system-notification-row,
body.brand-safe-chat-add-view ul.contact-box > li[data-brand-topic="me"],
body.brand-safe-chat-add-view ul.contact-box > li[data-brand-topic="sys"] {
  display: none !important;
}

#brand-chat-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  margin: 4px 24px 18px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: #f5f5f5;
  color: #a4a4a4;
  box-sizing: border-box;
  max-width: calc(100% - 48px);
}

#brand-chat-search-row .brand-chat-search-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

#brand-chat-search-row svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#brand-chat-search-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #222;
  font: 600 16px/1.2 "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", "Segoe UI", sans-serif;
  box-shadow: none !important;
}

#brand-chat-search-input::placeholder {
  color: #a6a6a6;
  opacity: 1;
}

body.brand-safe-chat-home ul.contact-box {
  margin: 0 !important;
  padding: 0 24px 104px !important;
  background: #fff !important;
}

body.brand-safe-chat-home ul.contact-box > li.brand-chat-home-row {
  position: relative;
  display: flex !important;
  min-height: 84px;
  align-items: center;
  gap: 14px;
  padding: 10px 2px !important;
  border-bottom: 1px solid #efefef !important;
  background: #fff !important;
  box-sizing: border-box;
  color: #242424;
}

body.brand-safe-chat-home ul.contact-box > li.brand-chat-search-hidden {
  display: none !important;
}

body.brand-safe-chat-home ul.contact-box > li.brand-contact-group-hidden {
  display: none !important;
}

body.brand-safe-chat-home ul.contact-box > li.brand-chat-home-row:hover,
body.brand-safe-chat-home ul.contact-box > li.brand-chat-home-row:focus-visible {
  background: #fff !important;
}

body.brand-safe-chat-home ul.contact-box > li.brand-chat-home-row .avatar-box,
body.brand-safe-chat-home ul.contact-box > li.brand-chat-home-row .lettertile {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  flex: 0 0 52px !important;
  margin: 0 !important;
  border-radius: 9px !important;
  overflow: hidden;
}

body.brand-safe-chat-home ul.contact-box > li.brand-chat-home-row .avatar-box.brand-default-avatar-box,
body.brand-safe-chat-home ul.contact-box > li.brand-chat-home-row .lettertile.brand-default-avatar-box {
  background: #fff var(--brand-default-avatar-url, url("/brand/shopee-logo.png")) center / cover no-repeat !important;
}

body.brand-safe-chat-home ul.contact-box > li.brand-chat-home-row .avatar-box img,
body.brand-safe-chat-home ul.contact-box > li.brand-chat-home-row img.avatar {
  width: 52px !important;
  height: 52px !important;
  border-radius: 9px !important;
  object-fit: cover;
}

body.brand-safe-chat-home ul.contact-box > li.brand-system-notification-row .avatar-box {
  display: grid !important;
  place-items: center;
  background: linear-gradient(145deg, #ffc65a, #ff9f2d) !important;
}

body.brand-safe-chat-home ul.contact-box > li.brand-chat-home-row .text-box {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 82px 0 0 !important;
}

body.brand-safe-chat-home ul.contact-box > li.brand-chat-home-row .text-box > div:first-child {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

body.brand-safe-chat-home ul.contact-box > li.brand-chat-home-row .contact-title {
  min-width: 0;
  overflow: hidden;
  color: #1f1f1f !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.brand-safe-chat-home ul.contact-box > li.brand-chat-home-row .contact-comment {
  margin-top: 8px !important;
  overflow: hidden;
  color: #6f6f6f !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.brand-safe-chat-home ul.contact-box > li.brand-chat-home-row .contact-comment span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.brand-safe-chat-home ul.contact-box > li.brand-chat-home-row[data-brand-inbox-preview-direction="remote"] .contact-comment > i {
  display: none !important;
}

body.brand-safe-chat-home ul.contact-box > li.brand-chat-home-row .menuTrigger {
  display: none !important;
}

body.brand-safe-chat-home ul.contact-box > li.brand-chat-home-row .unread,
body.brand-safe-chat-home ul.contact-box > li.brand-chat-home-row .badge-round {
  position: absolute !important;
  top: 42px !important;
  right: 0 !important;
  z-index: 2;
  min-width: 26px !important;
  height: 24px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  background: #f25564 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 24px !important;
  text-align: center;
  box-shadow: none !important;
}

body.brand-safe-chat-home ul.contact-box > li.brand-chat-home-row.brand-chat-row-read .unread,
body.brand-safe-chat-home ul.contact-box > li.brand-chat-home-row.brand-chat-row-read .badge-round {
  display: none !important;
}

body.brand-safe-chat-home .brand-chat-row-time {
  position: absolute !important;
  top: 14px !important;
  right: 0 !important;
  z-index: 1;
  max-width: 78px;
  overflow: hidden;
  color: #999 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.brand-safe-chat-home .brand-chat-row-time-read {
  max-width: 94px;
  font-size: 13px !important;
}

#brand-bottom-tabs {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  min-height: 76px;
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
  border-top-color: #ece8e3;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -8px 24px rgba(36, 31, 28, 0.07);
  transform: translateZ(0);
  overscroll-behavior: none;
}

#brand-bottom-tabs button {
  min-height: 58px;
  border-radius: 0;
  color: #8d8780;
  font-size: 11px;
  font-weight: 600;
}

#brand-bottom-tabs button.active {
  color: var(--brand-accent);
}

#brand-bottom-tabs .brand-tab-icon {
  width: 25px;
  height: 25px;
}

#brand-bottom-tabs .brand-tab-icon svg {
  stroke-width: 1.65;
}

#brand-bottom-tabs .brand-tab-alliance {
  min-height: 72px;
  transform: translateY(-12px);
  color: var(--brand-accent);
}

#brand-bottom-tabs .brand-tab-alliance .brand-tab-lockup {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(23, 50, 166, 0.28);
}

#brand-bottom-tabs .brand-tab-alliance .brand-tab-lockup img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
}

#brand-bottom-tabs .brand-tab-alliance .brand-tab-lockup small {
  display: none;
}

#brand-chat-badge {
  top: 4px;
  left: calc(50% + 4px);
  min-width: 25px;
  height: 20px;
  padding: 0 6px;
  border: 2px solid #fff;
  background: #f25564;
  font-size: 12px;
  line-height: 16px;
}

.brand-alliance-platform-section .brand-section-heading > span {
  display: none !important;
}

@media (max-width: 430px) {
  #brand-business-page {
    padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
    transform: translateZ(0);
    contain: paint;
  }

  .brand-business-inner {
    padding-bottom: calc(20px + env(safe-area-inset-bottom)) !important;
  }

  .brand-alliance-hero {
    padding: 16px 16px 15px !important;
  }

  .brand-alliance-hero::after {
    display: none !important;
  }

  .brand-alliance-hero-title {
    min-height: 34px;
    gap: 8px;
    font-size: 18px;
  }

  .brand-alliance-shield,
  .brand-alliance-shield svg {
    width: 34px;
    height: 34px;
  }

  .brand-alliance-profile-line {
    margin-top: 10px;
  }

  .brand-alliance-user-avatar {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-alliance-message {
    min-height: 38px;
    padding: 0 10px;
  }

  .brand-alliance-carousel-row {
    margin-bottom: 10px !important;
    padding-bottom: 9px !important;
  }

  .brand-alliance-banner-card {
    height: 128px !important;
  }

  .brand-alliance-dots {
    min-height: 6px;
    margin-top: 5px;
  }

  .brand-alliance-welcome {
    min-height: 46px !important;
    margin-bottom: 12px !important;
  }

  .brand-alliance-notice-track {
    transition: none !important;
    will-change: auto !important;
  }

  .brand-alliance-platform-section {
    margin-bottom: calc(42px + env(safe-area-inset-bottom)) !important;
  }

  .brand-section-heading {
    margin-bottom: 10px;
  }

  .brand-alliance-platform-grid {
    gap: 8px !important;
  }

  .brand-alliance-platform-card {
    min-height: 68px !important;
    padding: 9px 10px !important;
    gap: 8px !important;
  }

  .brand-alliance-platform-card .brand-platform-image {
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
  }

  .brand-alliance-platform-card b {
    font-size: 14px;
    line-height: 1.2;
  }

  #brand-bottom-tabs {
    min-height: 70px;
    padding-top: 5px;
    padding-bottom: calc(5px + env(safe-area-inset-bottom));
  }

  #brand-bottom-tabs button {
    min-height: 52px;
  }

  #brand-bottom-tabs .brand-tab-alliance {
    min-height: 66px;
    transform: translateY(-9px);
  }

  #brand-bottom-tabs .brand-tab-alliance .brand-tab-lockup {
    width: 54px;
    height: 54px;
  }

  #brand-bottom-tabs .brand-tab-alliance .brand-tab-lockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .brand-platform-order-page {
    contain: layout paint;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  .brand-platform-live-summary,
  .brand-platform-order-section,
  .brand-platform-showcase-grid,
  .brand-platform-submit-panel {
    contain: layout paint;
  }

  .brand-platform-showcase-cell {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .brand-platform-showcase-image {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  .brand-platform-task-button,
  .brand-platform-submit-panel,
  .brand-platform-submit-panel button,
  .brand-platform-current-deadline b span {
    transition: none !important;
  }
}

#brand-bottom-tabs .brand-tab-alliance .brand-tab-lockup {
  border-width: 2px !important;
  background: #fff !important;
}

#brand-bottom-tabs .brand-tab-alliance .brand-tab-lockup img {
  width: 118% !important;
  height: 118% !important;
  max-width: none !important;
  object-fit: cover !important;
  transform: scale(1.04);
}

@media (max-width: 640px) {
  body #brand-business-page .brand-alliance-home,
  body #brand-business-page .brand-alliance-hero {
    overflow: visible !important;
  }

  body #brand-business-page .brand-alliance-carousel-row {
    position: relative !important;
    left: 50% !important;
    width: 100vw !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: -50vw !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    touch-action: pan-x pan-y !important;
  }

  body #brand-business-page .brand-alliance-banners {
    width: 100% !important;
    max-width: none !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    touch-action: pan-x pan-y !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body #brand-business-page .brand-alliance-banner-card {
    flex-basis: 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    height: clamp(128px, 34vw, 168px) !important;
  }

  body #brand-business-page .brand-alliance-banner-image {
    object-fit: contain !important;
    background: #fff !important;
  }
}

.brand-registration-legacy-hidden,
body .brand-registration-legacy-hidden,
body.brand-auth-active .brand-phone-registration-form .brand-registration-legacy-hidden {
  display: none !important;
}

/* 20260813-10: mobile PWA launch, tab icon and composer polish. */
:root {
  --brand-status-bar-color: #fff;
}

html,
body {
  background-color: var(--brand-status-bar-color, #fff) !important;
}

html:not(.brand-ui-ready),
html:not(.brand-ui-ready) body {
  background: #fff !important;
}

#brand-bottom-tabs {
  overflow: visible !important;
  min-height: 82px !important;
  padding-top: 8px !important;
}

#brand-bottom-tabs .brand-tab-alliance {
  min-height: 76px !important;
  transform: translateY(-10px) !important;
}

#brand-bottom-tabs .brand-tab-alliance .brand-tab-lockup {
  width: 62px !important;
  height: 62px !important;
  overflow: visible !important;
  border-width: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: 0 10px 24px rgba(23, 50, 166, 0.22) !important;
}

#brand-bottom-tabs .brand-tab-alliance .brand-tab-lockup img {
  width: 62px !important;
  height: 62px !important;
  max-width: 62px !important;
  max-height: 62px !important;
  border-radius: 999px !important;
  object-fit: contain !important;
  transform: none !important;
}

@media (max-width: 640px) {
  #brand-bottom-tabs {
    min-height: 78px !important;
    padding-bottom: calc(7px + env(safe-area-inset-bottom)) !important;
  }

  #brand-bottom-tabs button {
    min-height: 56px !important;
  }

  #brand-bottom-tabs .brand-tab-alliance {
    min-height: 72px !important;
    transform: translateY(-8px) !important;
  }

  #brand-bottom-tabs .brand-tab-alliance .brand-tab-lockup,
  #brand-bottom-tabs .brand-tab-alliance .brand-tab-lockup img {
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
  }

  body:not(.brand-safe-chat-home):not(.brand-auth-active) #send-message-panel,
  body:not(.brand-safe-chat-home):not(.brand-auth-active) #send-message-wrapper,
  body:not(.brand-safe-chat-home):not(.brand-auth-active) #sendMessage,
  body:not(.brand-safe-chat-home):not(.brand-auth-active) .send-message-panel,
  body:not(.brand-safe-chat-home):not(.brand-auth-active) .message-input {
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
  }

  body.brand-chat-keyboard-active:not(.brand-safe-chat-home):not(.brand-auth-active) #send-message-panel,
  body.brand-chat-keyboard-active:not(.brand-safe-chat-home):not(.brand-auth-active) #send-message-wrapper,
  body.brand-chat-keyboard-active:not(.brand-safe-chat-home):not(.brand-auth-active) #sendMessage,
  body.brand-chat-keyboard-active:not(.brand-safe-chat-home):not(.brand-auth-active) .send-message-panel,
  body.brand-chat-keyboard-active:not(.brand-safe-chat-home):not(.brand-auth-active) .message-input {
    bottom: calc(var(--brand-chat-keyboard-inset, 0px) + var(--brand-ime-accessory, 0px)) !important;
    padding-bottom: 8px !important;
    transform: translateZ(0);
  }

  body.brand-chat-keyboard-active #messages-panel,
  body.brand-chat-keyboard-active #scroller,
  body.brand-chat-keyboard-active .chat-box,
  body.brand-chat-keyboard-active .messages,
  body.brand-chat-keyboard-active .message-list {
    scroll-padding-bottom: calc(118px + var(--brand-chat-keyboard-inset, 0px)) !important;
  }

  body:not(.brand-safe-chat-home):not(.brand-auth-active) .brand-voice-composer {
    margin-bottom: max(10px, env(safe-area-inset-bottom)) !important;
  }
}

body.brand-chat-keyboard-active:not(.brand-safe-chat-home):not(.brand-auth-active) #send-message-panel,
body.brand-chat-keyboard-active:not(.brand-safe-chat-home):not(.brand-auth-active) #send-message-wrapper,
body.brand-chat-keyboard-active:not(.brand-safe-chat-home):not(.brand-auth-active) #sendMessage,
body.brand-chat-keyboard-active:not(.brand-safe-chat-home):not(.brand-auth-active) .send-message-panel,
body.brand-chat-keyboard-active:not(.brand-safe-chat-home):not(.brand-auth-active) .message-input {
  bottom: calc(var(--brand-chat-keyboard-inset, 0px) + var(--brand-ime-accessory, 0px)) !important;
}



/* Keep auth loading singular and centered on mobile/PWA launches. */
body.brand-auth-active #login-form .spinner,
body.brand-auth-active #login-form .progress-circular,
body.brand-auth-active #login-form .circular-progress,
body.brand-token-restoring #login-form .spinner,
body.brand-token-restoring #login-form .progress-circular,
body.brand-token-restoring #login-form .circular-progress,
body.brand-chat-restoring #login-form .spinner,
body.brand-chat-restoring #login-form .progress-circular,
body.brand-chat-restoring #login-form .circular-progress {
  display: none !important;
}

body.brand-auth-active .load-spinner-box,
body.brand-token-restoring .load-spinner-box,
body.brand-chat-restoring .load-spinner-box {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2147483200 !important;
  pointer-events: none !important;
}

body.brand-auth-active .load-spinner-box .loader-spinner,
body.brand-token-restoring .load-spinner-box .loader-spinner,
body.brand-chat-restoring .load-spinner-box .loader-spinner,
body.brand-auth-active > .loader-spinner,
body.brand-token-restoring > .loader-spinner,
body.brand-chat-restoring > .loader-spinner {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2147483201 !important;
  pointer-events: none !important;
}

body.brand-auth-active:has(.load-spinner-box) > .loader-spinner,
body.brand-token-restoring:has(.load-spinner-box) > .loader-spinner,
body.brand-chat-restoring:has(.load-spinner-box) > .loader-spinner {
  display: none !important;
}

.brand-native-transition[hidden],
#brand-business-page[hidden] {
  display: none !important;
  pointer-events: none !important;
}


/* Silent native chat/contacts restore shell: cover Tinode's auth chrome with a minimal orange loader. */
#brand-business-page.brand-silent-native-restore {
  background: #fff !important;
  color: #111827 !important;
  padding: 0 0 calc(92px + env(safe-area-inset-bottom)) !important;
}

#brand-business-page.brand-silent-native-restore .brand-business-inner {
  width: 100% !important;
  max-width: 100% !important;
  min-height: calc(100dvh - 92px - env(safe-area-inset-bottom)) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.brand-native-loading-shell {
  min-height: calc(100dvh - 92px - env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  box-sizing: border-box;
  background: #fff;
}

body.brand-silent-native-restoring .load-spinner-box,
body.brand-silent-native-restoring > .loader-spinner,
body.brand-silent-native-restoring #login-form .spinner,
body.brand-silent-native-restoring #login-form .progress-circular,
body.brand-silent-native-restoring #login-form .circular-progress {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.brand-native-loading-spinner {
  display: block !important;
  width: 36px !important;
  height: 36px !important;
  overflow: visible !important;
}

.brand-native-loading-track,
.brand-native-loading-arc {
  fill: none;
  stroke-width: 4;
}

.brand-native-loading-track {
  stroke: rgba(238, 77, 45, 0.16);
}

.brand-native-loading-arc {
  stroke: #ee4d2d;
  stroke-linecap: round;
  stroke-dasharray: 72 126;
  stroke-dashoffset: 0;
  animation: brand-native-loading-dash 0.72s linear infinite !important;
  -webkit-animation: brand-native-loading-dash 0.72s linear infinite !important;
}

@keyframes brand-native-loading-dash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -126; }
}

@-webkit-keyframes brand-native-loading-dash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -126; }
}

body.brand-token-restoring #side-caption-panel,
body.brand-chat-restoring #side-caption-panel,
body.brand-token-restoring #sidepanel .caption-panel,
body.brand-chat-restoring #sidepanel .caption-panel,
body.brand-token-restoring #side-panel .caption-panel,
body.brand-chat-restoring #side-panel .caption-panel {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.brand-add-search-open {
  overflow: hidden !important;
}

#brand-add-search-view {
  position: fixed;
  z-index: 2147482000;
  inset: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 100dvh;
  overflow: auto;
  background: #fff;
  color: #171717;
}

.brand-add-search-header {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  min-height: 64px;
  padding: env(safe-area-inset-top) 14px 0;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}

.brand-add-search-header h1 {
  grid-column: 2;
  margin: 0;
  overflow: hidden;
  font-size: 22px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-add-search-back {
  grid-column: 1;
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: #171717;
}

.brand-add-search-back svg {
  width: 28px;
  height: 28px;
}

.brand-add-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.brand-add-search-form > label {
  grid-column: 1 / -1;
  font-size: 18px;
  font-weight: 700;
}

.brand-add-search-field {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  border-bottom: 2px solid #ee4d2d;
}

.brand-add-search-field > span {
  display: grid;
  place-items: center;
  color: #777;
}

.brand-add-search-field svg {
  width: 22px;
  height: 22px;
}

.brand-add-search-field input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #171717;
  font: inherit;
  font-size: 16px;
  letter-spacing: 0;
}

.brand-add-search-form > button[type="submit"] {
  align-self: end;
  min-width: 88px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: #ee4d2d;
  color: #fff;
  font: inherit;
  font-weight: 700;
}

.brand-add-search-form > button[type="submit"]:disabled {
  opacity: 0.58;
}

.brand-add-create-group,
.brand-add-create-group:hover,
.brand-add-create-group:active,
.brand-add-create-group:focus,
.brand-add-create-group:focus-visible,
#brand-add-search-view .brand-add-create-group,
#brand-add-search-view .brand-add-create-group:hover,
#brand-add-search-view .brand-add-create-group:active,
#brand-add-search-view .brand-add-create-group:focus,
#brand-add-search-view .brand-add-create-group:focus-visible {
  margin: 0 16px 12px;
  height: 44px;
  border: 1px solid #ee4d2d !important;
  border-radius: 6px;
  background: #fff !important;
  color: #ee4d2d !important;
  -webkit-text-fill-color: #ee4d2d !important;
  font: inherit;
  font-weight: 700;
  text-transform: none !important;
  box-shadow: none !important;
}

.brand-share-friend-picker {
  display: grid;
  gap: 12px;
}

.brand-share-friend-list {
  display: grid;
  gap: 6px;
  max-height: min(52vh, 420px);
  overflow: auto;
}

.brand-share-friend-row,
.brand-share-friend-row:hover,
.brand-share-friend-row:active,
.brand-share-friend-row:focus,
.brand-share-friend-row:focus-visible,
#brand-business-modal .brand-share-friend-row,
#brand-business-modal .brand-share-friend-row:hover,
#brand-business-modal .brand-share-friend-row:active,
#brand-business-modal .brand-share-friend-row:focus,
#brand-business-modal .brand-share-friend-row:focus-visible {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #eee !important;
  border-radius: 8px;
  background: #fff !important;
  color: #202124 !important;
  -webkit-text-fill-color: #202124 !important;
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-transform: none !important;
  white-space: normal !important;
  overflow: hidden;
  box-shadow: none !important;
}

.brand-share-friend-row.selected,
.brand-share-friend-row.selected:hover,
.brand-share-friend-row.selected:active,
.brand-share-friend-row.selected:focus,
#brand-business-modal .brand-share-friend-row.selected,
#brand-business-modal .brand-share-friend-row.selected:hover,
#brand-business-modal .brand-share-friend-row.selected:active {
  border-color: #ee4d2d !important;
  background: #fff4f1 !important;
  color: #202124 !important;
  -webkit-text-fill-color: #202124 !important;
}

.brand-share-friend-name {
  min-width: 0;
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-share-friend-check {
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}

.brand-share-friend-row.selected .brand-share-friend-check {
  border-color: #ee4d2d;
  background: #ee4d2d;
  box-shadow: inset 0 0 0 3px #fff;
}

.brand-share-friend-send {
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #ee4d2d;
  color: #fff;
  font: inherit;
  font-weight: 700;
}

.brand-form-check {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #202124;
  font-size: 14px;
}

.brand-group-menu-hidden,
.brand-native-message-menu-hidden {
  display: none !important;
}

ul.menu li[data-brand-group-menu-action] {
  cursor: pointer;
  color: #202124 !important;
}

ul.menu li[data-brand-group-menu-action]:hover,
ul.menu li[data-brand-group-menu-action]:active,
ul.menu li[data-brand-group-menu-action]:focus {
  color: #111827 !important;
  background: #f5f5f5 !important;
}

ul.menu li.brand-group-menu-danger {
  color: #d93025 !important;
}

ul.menu li.brand-group-menu-danger:hover,
ul.menu li.brand-group-menu-danger:active,
ul.menu li.brand-group-menu-danger:focus {
  color: #b42318 !important;
  background: #fdf0ee !important;
}

.brand-group-card-native-hidden {
  display: none !important;
}

.brand-group-card-bubble {
  width: min(340px, 82vw) !important;
  min-width: min(300px, 78vw) !important;
  max-width: 82vw !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
  color: #202124 !important;
}

.brand-group-card-message {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 22px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 84px;
  padding: 14px;
  border: 0;
  background: #fff;
  color: #202124;
  font: inherit;
  text-align: left;
}

.brand-group-card-logo,
.brand-group-card-logo img {
  display: block;
  width: 54px;
  height: 54px;
}

.brand-group-card-logo img {
  border-radius: 8px;
  object-fit: cover;
}

.brand-group-card-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.brand-group-card-copy strong {
  overflow: visible;
  font-size: 16px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.brand-group-card-copy span {
  color: #777;
  font-size: 14px;
}

.brand-group-card-arrow {
  color: #999;
}

.brand-group-card-arrow svg {
  width: 22px;
  height: 22px;
}

body.brand-group-muted-for-current-user .send-message-panel,
body.brand-group-muted-for-current-user #send-message-panel,
body.brand-group-muted-for-current-user [class*="send-message-panel"] {
  display: none !important;
}

.brand-group-muted-prompt {
  display: grid;
  min-height: 54px;
  padding: 0 16px calc(env(safe-area-inset-bottom) / 2);
  place-items: center;
  border-top: 1px solid #ddd;
  background: #eef1f5;
  color: #777;
  font-size: 15px;
}

body.brand-group-access-lost .send-message-panel,
body.brand-group-access-lost #send-message-panel,
body.brand-group-access-lost [class*="send-message-panel"] {
  display: none !important;
}

ul.contact-box > li.brand-removed-group-hidden {
  display: none !important;
}

#brand-group-access-loss {
  position: fixed;
  inset: 0;
  z-index: 14000;
  display: grid;
  place-items: center;
  background: rgba(32, 33, 36, 0.46);
}

.brand-group-access-loss-card {
  width: min(320px, calc(100vw - 48px));
  padding: 28px 20px 20px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.brand-group-access-loss-card p {
  margin: 0 0 18px;
  color: #202124;
  font-size: 16px;
  line-height: 1.55;
}

.brand-group-access-loss-card button {
  height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: #ee4d2d;
  color: #fff;
  font: inherit;
  font-weight: 700;
}

.brand-member-search {
  display: grid;
  gap: 14px;
}

.brand-member-search-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 10px;
}

.brand-member-search-field input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #202124;
  font: inherit;
}

.brand-member-search-field button {
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: #ee4d2d;
  color: #fff;
  font: inherit;
  font-weight: 700;
}

.brand-member-search-list {
  display: grid;
  gap: 10px;
}

.brand-member-search-hint {
  margin: 0;
  color: #888;
  font-size: 14px;
  line-height: 1.6;
}

.brand-member-search-row {
  display: grid;
  overflow: hidden;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
}

.brand-member-search-row.expanded {
  border-color: #ee4d2d;
}

.brand-member-search-main {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: #202124;
  font: inherit;
  text-align: left;
}

.brand-member-search-name {
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.brand-member-search-meta {
  color: #888;
  font-size: 13px;
}

.brand-member-search-actions {
  display: grid;
  grid-auto-flow: column;
  gap: 8px;
  padding: 0 14px 12px;
}

.brand-member-search-field button:hover,
.brand-member-search-field button:active,
.brand-member-search-field button:focus,
.brand-member-search-field button:focus-visible {
  background: #d73211 !important;
  color: #fff !important;
}

.brand-member-search-main:hover,
.brand-member-search-main:active,
.brand-member-search-main:focus,
.brand-member-search-main:focus-visible {
  background: #fff8f6 !important;
  color: #202124 !important;
}

.brand-member-search-actions button {
  min-height: 38px;
  padding: 0 6px;
  border: 1px solid #d0d5dd !important;
  border-radius: 6px;
  background: #f3f4f6 !important;
  color: #1f2937 !important;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  box-shadow: none !important;
}

.brand-member-search-actions button:hover,
.brand-member-search-actions button:active,
.brand-member-search-actions button:focus,
.brand-member-search-actions button:focus-visible {
  background: #e5e7eb !important;
  color: #111827 !important;
  border-color: #c4c9d2 !important;
  box-shadow: none !important;
}

.brand-member-search-actions button.danger {
  border-color: #f3c1ba !important;
  background: #fdf0ee !important;
  color: #b42318 !important;
}

.brand-member-search-actions button.danger:hover,
.brand-member-search-actions button.danger:active,
.brand-member-search-actions button.danger:focus,
.brand-member-search-actions button.danger:focus-visible {
  background: #fce4e0 !important;
  color: #9b1c1c !important;
  border-color: #ee4d2d !important;
}

.brand-member-search-actions button:disabled,
.brand-member-search-actions button:disabled:hover,
.brand-member-search-actions button:disabled:active,
.brand-member-search-actions button:disabled:focus {
  opacity: 0.55;
  color: #4b5563 !important;
  background: #f3f4f6 !important;
}


.brand-add-search-result {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 0 20px calc(28px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.brand-add-search-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
}

.brand-add-search-card img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  background: #f4f4f4;
}

.brand-add-search-card b {
  display: block;
  font-size: 17px;
}

.brand-add-search-card small {
  display: block;
  margin-top: 4px;
  color: #888;
}

.brand-add-search-card-actions,
.brand-friend-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.brand-add-search-action,
.brand-friend-request-actions button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #ee4d2d;
  color: #fff;
  font: inherit;
  font-weight: 700;
}

.brand-add-search-action:disabled,
.brand-friend-request-actions button:disabled {
  background: #f4c3b8;
  color: #fff;
}

.brand-add-search-action.danger,
.brand-friend-request-actions button.danger {
  background: #f2f2f2;
  color: #333;
}

ul.contact-box > li.brand-friend-request-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  list-style: none;
  background: #fff8f4;
}

.brand-friend-request-static {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
}

#brand-contacts-badge {
  position: absolute;
  top: 2px;
  left: calc(50% + 7px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid #fffdfa;
  border-radius: 999px;
  background: var(--brand-accent, #ee4d2d);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  line-height: 14px;
  text-align: center;
}
