/* 后台首页：保持最新医生与公海池左右并排。 */
.admin-shell .stats-grid + .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* 首页概览表只有 4 列，需要覆盖上方通用的 8 列规则。 */
.admin-management-table--overview-doctor > .admin-management-table__head,
.admin-management-table--overview-doctor > .admin-management-table__row {
  grid-template-columns:
    minmax(96px, 180px)
    minmax(72px, 140px)
    minmax(180px, 360px)
    96px !important;
  justify-content: start !important;
  gap: 6px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  min-width: 0 !important;
}

.admin-management-table--overview-record > .admin-management-table__head,
.admin-management-table--overview-record > .admin-management-table__row {
  grid-template-columns:
    minmax(90px, 0.9fr)
    minmax(145px, 1.45fr)
    112px
    58px !important;
  gap: 6px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  min-width: 0 !important;
}

/* 门店名称允许换行，保证长名称完整显示且不压住操作按键。 */
.admin-management-table--overview-doctor
  > .admin-management-table__row
  > .admin-management-table__cell:nth-child(3),
.admin-management-table--overview-record
  > .admin-management-table__row
  > .admin-management-table__cell:nth-child(2) {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  overflow: visible !important;
  line-height: 1.4;
}

.admin-management-table--overview-doctor
  > .admin-management-table__row
  > .admin-management-table__cell:nth-child(3) {
  word-break: break-all;
  overflow: visible !important;
  font-size: 0.82rem;
}

.admin-management-table--overview-record .pill {
  white-space: nowrap !important;
  min-height: 26px;
  padding: 0 6px;
  font-size: 0.75rem;
}

.admin-management-table--overview-doctor
  .admin-management-table__cell--action
  .button,
.admin-management-table--overview-record
  .admin-management-table__cell--action
  .button {
  padding-right: 6px;
  padding-left: 6px;
  font-size: 0.76rem;
}

/* 门店管理：覆盖通用列宽，给门店名称、额度和完整操作区留足空间。 */
.admin-management-table--store-admin > .admin-management-table__head,
.admin-management-table--store-admin > .admin-management-table__row {
  grid-template-columns:
    64px
    minmax(180px, 1.4fr)
    minmax(120px, 0.9fr)
    minmax(140px, 1fr)
    minmax(120px, 0.9fr)
    minmax(100px, 0.8fr)
    minmax(176px, 1.1fr)
    minmax(320px, 2fr) !important;
  gap: 8px !important;
  min-width: 1360px !important;
}

.admin-management-table--store-admin
  > .admin-management-table__row
  > .admin-management-table__cell:nth-child(2),
.admin-management-table--store-admin
  > .admin-management-table__row
  > .admin-management-table__cell:nth-child(3) {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  overflow: hidden !important;
  line-height: 1.4;
}

.admin-management-table--store-admin
  > .admin-management-table__row
  > .admin-management-table__cell:nth-child(7) {
  display: grid !important;
  grid-template-columns: 72px minmax(72px, 1fr);
  align-items: center;
  gap: 8px !important;
  min-width: 0;
  overflow: hidden !important;
}

.admin-management-table--store-admin
  > .admin-management-table__row
  > .admin-management-table__cell:nth-child(7)
  .account-table__input {
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  box-sizing: border-box;
}

.admin-management-table--store-admin
  > .admin-management-table__row
  > .admin-management-table__cell:nth-child(7)
  .button {
  width: 100%;
  min-width: 72px;
  margin: 0 !important;
}

.admin-management-table--store-admin
  > .admin-management-table__row
  > .admin-management-table__cell:nth-child(8) {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  min-width: 0;
  overflow: visible !important;
}

.admin-management-table--store-admin
  > .admin-management-table__row
  > .admin-management-table__cell:nth-child(8)
  .button {
  flex: 0 0 auto;
  min-width: 54px;
  margin: 0 !important;
  padding-right: 7px;
  padding-left: 7px;
  font-size: 0.76rem;
}

.admin-management-table--store-admin
  > .admin-management-table__row
  > .admin-management-table__cell:nth-child(8)
  .button:first-child {
  min-width: 78px;
}

@media (max-width: 1024px) {
  .admin-shell .stats-grid + .card-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  .admin-management-table--overview-doctor > .admin-management-table__head,
  .admin-management-table--overview-doctor > .admin-management-table__row,
  .admin-management-table--overview-record > .admin-management-table__head,
  .admin-management-table--overview-record > .admin-management-table__row {
    min-width: 680px !important;
  }
}

/* ===== 业务 H5 全局页脚版权区 ===== */
.site-footer__address {
  display: none !important;
}

/* 业务 H5 只展示版权与技术支持，备案信息仅保留在后台登录页。 */
html[data-wb-h5-footer-copy="true"] .site-footer .site-footer__link {
  display: none !important;
}

html[data-wb-h5-footer-copy="true"] .site-footer__text--main {
  display: flex !important;
  flex: 1 0 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 8px;
  box-sizing: border-box;
  color: rgba(22, 57, 93, 0.78) !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  text-align: center;
  white-space: normal !important;
}

html[data-wb-h5-footer-copy="true"] .wb-h5-footer-copy__line {
  display: block;
  width: 100%;
  max-width: 100%;
  color: inherit;
  font: inherit;
  line-height: inherit;
  overflow-wrap: anywhere;
  word-break: normal;
}

html[data-wb-h5-footer-copy="true"]
  .site-footer--light
  .wb-h5-footer-copy__line {
  color: rgba(22, 57, 93, 0.78) !important;
}

/* 旧备案行会给每个 span 自动追加分隔符，版权区已独占一行，不需要该符号。 */
html[data-wb-h5-footer-copy="true"]
  .site-footer__bottom-row
  > .site-footer__text--main::after {
  content: none !important;
  display: none !important;
}

/* 业务 H5 使用浅色背景，覆盖旧后台深色页脚遗留的白色备案文字。 */
html[data-wb-h5-footer-copy="true"] .site-footer--light .site-footer__bottom-row,
html[data-wb-h5-footer-copy="true"] .site-footer--light .site-footer__bottom-row > span,
html[data-wb-h5-footer-copy="true"] .site-footer--light .site-footer__bottom-row > a,
html[data-wb-h5-footer-copy="true"] .site-footer--light .site-footer__bottom-row > div {
  color: rgba(22, 57, 93, 0.78) !important;
}

/* 答题页页脚进入文档流，避免覆盖题目选项和上一题/下一题操作区。 */
html[data-wb-h5-questionnaire="true"] .app-shell {
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

html[data-wb-h5-questionnaire="true"] .app-main {
  padding-bottom: 24px !important;
}

html[data-wb-h5-questionnaire="true"] .app-shell > .site-footer {
  position: static !important;
  left: auto !important;
  bottom: auto !important;
  width: 100%;
  padding: 12px max(14px, env(safe-area-inset-left)) 12px
    max(14px, env(safe-area-inset-right)) !important;
}

/* “我的 / 检测记录”只滚动内容区，版权栏固定在底部导航上方且不覆盖记录。 */
html[data-wb-h5-profile-footer="true"],
html[data-wb-h5-profile-footer="true"] body {
  height: 100%;
  overflow: hidden;
}

html[data-wb-h5-profile-footer="true"] .app-shell {
  --wb-h5-profile-nav-height: calc(62px + env(safe-area-inset-bottom));
  --wb-h5-profile-footer-height: 52px;
  box-sizing: border-box;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

html[data-wb-h5-profile-footer="true"] .app-main {
  box-sizing: border-box;
  height: calc(
    100dvh - var(--wb-h5-profile-nav-height) - var(--wb-h5-profile-footer-height)
  );
  min-height: 0;
  padding-bottom: 24px !important;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-padding-bottom: 24px;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

html[data-wb-h5-profile-footer="true"] .app-shell > .site-footer {
  position: fixed !important;
  z-index: 69;
  left: 50% !important;
  bottom: var(--wb-h5-profile-nav-height) !important;
  display: flex;
  align-items: center;
  width: min(680px, 100%);
  height: var(--wb-h5-profile-footer-height);
  min-height: var(--wb-h5-profile-footer-height);
  padding: 6px max(14px, env(safe-area-inset-left)) 6px
    max(14px, env(safe-area-inset-right)) !important;
  box-sizing: border-box;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.98) !important;
  border-top: 1px solid rgba(22, 57, 93, 0.1) !important;
  border-bottom: 1px solid rgba(22, 57, 93, 0.08) !important;
  box-shadow: 0 -4px 16px rgba(22, 57, 93, 0.06);
}

html[data-wb-h5-profile-footer="true"]
  .app-shell
  > .site-footer
  .site-footer__inner {
  width: 100%;
}

@media (max-width: 480px) {
  html[data-wb-h5-footer-copy="true"] .site-footer__text--main {
    padding-right: 4px;
    padding-left: 4px;
  }
}

/* 后台登录页上下两组页脚文字统一字号，内容与链接保持不变。 */
.admin-login-page .admin-login-copyright,
.admin-login-page .admin-login-copyright span,
.admin-login-page .admin-login-copyright a,
.admin-login-page .site-footer__inner,
.admin-login-page .site-footer__inner > span,
.admin-login-page .site-footer__inner > a {
  font-size: 14px !important;
  line-height: 22px !important;
}

/* 公海池与诊断报告的全局页面级搜索。 */
.admin-shell .wb-record-search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 16px 0;
  min-width: 0;
  max-width: 100%;
  border-top: 1px solid var(--border, #e2e8f0);
}

.admin-shell .wb-record-search__field {
  flex: 0 1 360px;
  width: 360px;
  min-width: 0;
  max-width: 360px;
  margin-left: auto;
}

.admin-shell .wb-record-search__field input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.admin-shell .wb-record-search__result {
  flex: 0 0 auto;
  order: -1;
  margin-left: 0;
  color: var(--muted, #64748b);
  font-size: 0.82rem;
  white-space: nowrap;
}

.admin-shell .wb-record-search__empty {
  margin: 0 0 16px;
}

.admin-shell .wb-record-search__empty[hidden],
.admin-shell .wb-record-search-source-empty-hidden {
  display: none !important;
}

html .admin-shell .admin-management-table > .admin-management-table__row.wb-record-search-row-hidden,
html .admin-shell .doctor-visit-table > .doctor-visit-row.wb-record-search-row-hidden,
html .admin-shell .doctor-visit-row.wb-record-search-row-hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .admin-shell .wb-record-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .admin-shell .wb-record-search__field {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .admin-shell .wb-record-search__result {
    grid-column: 1 / -1;
    order: 0;
    margin-left: 0;
  }
}

/* 系统配置必须始终贴合浏览器右边缘，避免后台容器建立定位上下文。 */
html > .wb-display-settings-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  margin: 0 !important;
  z-index: 1590 !important;
}

html > .wb-display-settings-drawer {
  position: fixed !important;
  inset: 0 0 0 auto !important;
  width: min(312px, 100vw) !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  z-index: 1600 !important;
}

.admin-shell .admin-topbar__right > .wb-display-settings-trigger {
  order: 99;
}

@media (max-width: 640px) {
  html > .wb-display-settings-drawer {
    width: min(312px, calc(100vw - 28px)) !important;
  }
}

/* ===== 四角色全局系统配置 ===== */
.admin-shell .wb-display-settings-trigger {
  appearance: none;
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  color: #52677d;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 22px;
  line-height: 1;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.admin-shell .wb-display-settings-trigger:hover,
.admin-shell .wb-display-settings-trigger:focus-visible {
  color: var(--wb-accent, #1677ff);
  background: var(--wb-accent-soft, #eaf3ff);
  border-color: rgba(var(--wb-accent-rgb, 22, 119, 255), 0.22);
  outline: none;
}

.admin-shell .wb-display-settings-trigger > span {
  display: block;
  width: 24px;
  height: 24px;
  line-height: 23px;
}

.wb-display-settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 1590;
  background: rgba(15, 23, 42, 0.3);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.wb-display-settings-overlay--open {
  opacity: 1;
}

.wb-display-settings-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1600;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(312px, 100vw);
  max-width: 100vw;
  color: #172235;
  background: #fff;
  border-left: 1px solid #e4e9f0;
  box-shadow: -16px 0 42px rgba(15, 23, 42, 0.16);
  transform: translateX(100%);
  transition: transform 0.18s ease;
  letter-spacing: 0;
}

.wb-display-settings-drawer--open {
  transform: translateX(0);
}

.wb-display-settings-drawer[hidden],
.wb-display-settings-overlay[hidden] {
  display: none !important;
}

.wb-display-settings-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 0 22px;
  background: #fff;
  border-bottom: 1px solid #e7ebf0;
}

.wb-display-settings-drawer__header h2 {
  margin: 0;
  color: #101828;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
}

.wb-display-settings-drawer__close {
  appearance: none;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0 0 3px;
  color: #253247;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.wb-display-settings-drawer__close:hover,
.wb-display-settings-drawer__close:focus-visible {
  color: var(--wb-accent, #1677ff);
  background: #f2f5f8;
  outline: none;
}

.wb-display-settings-drawer__body {
  min-height: 0;
  padding: 22px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.wb-display-settings-section {
  margin: 0 0 26px;
}

.wb-display-settings-section:last-child {
  margin-bottom: 0;
}

.wb-display-settings-section h3 {
  margin: 0 0 13px;
  color: #111827;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0;
}

.wb-display-segmented {
  display: grid;
  gap: 3px;
  width: max-content;
  max-width: 100%;
  padding: 3px;
  background: #f2f4f7;
  border-radius: 7px;
}

.wb-display-segmented--appearance,
.wb-display-segmented--tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.wb-display-segmented--width {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 174px;
}

.wb-display-segmented button {
  appearance: none;
  min-width: 0;
  min-height: 36px;
  padding: 0 10px;
  color: #5c6470;
  white-space: nowrap;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.wb-display-segmented button span {
  margin-right: 6px;
  color: currentColor;
  font-size: 18px;
  vertical-align: -1px;
}

.wb-display-segmented button:hover,
.wb-display-segmented button:focus-visible {
  color: #202939;
  outline: none;
}

.wb-display-segmented button.is-active {
  color: #172235;
  background: #fff;
  border-color: #e1e6ed;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.wb-display-theme-list {
  display: grid;
  grid-template-columns: repeat(8, 26px);
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

.wb-display-theme {
  appearance: none;
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: var(--swatch);
  border: 2px solid #fff;
  border-radius: 5px;
  outline: 1px solid transparent;
}

.wb-display-theme:hover,
.wb-display-theme:focus-visible {
  outline-color: #b8c3d1;
}

.wb-display-theme.is-active {
  outline-color: var(--swatch);
}

.wb-display-theme.is-active::after {
  content: "";
  width: 9px;
  height: 5px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}

.wb-display-theme--blue { --swatch: #1677ff; }
.wb-display-theme--navy { --swatch: #16395d; }
.wb-display-theme--purple { --swatch: #722ed1; }
.wb-display-theme--pink { --swatch: #eb2f96; }
.wb-display-theme--red { --swatch: #f5222d; }
.wb-display-theme--orange { --swatch: #fa541c; }
.wb-display-theme--cyan { --swatch: #13a8a8; }
.wb-display-theme--green { --swatch: #389e0d; }

.wb-display-navigation-list {
  display: grid;
  grid-template-columns: repeat(3, 78px);
  gap: 12px;
}

.wb-display-navigation {
  appearance: none;
  position: relative;
  width: 78px;
  height: 52px;
  padding: 0;
  background: #f2f5f8;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.1);
}

.wb-display-navigation::before,
.wb-display-navigation::after,
.wb-display-navigation span {
  content: "";
  position: absolute;
  display: block;
}

.wb-display-navigation:hover,
.wb-display-navigation:focus-visible {
  border-color: rgba(var(--wb-accent-rgb, 22, 119, 255), 0.42);
  outline: none;
}

.wb-display-navigation.is-active {
  border-color: var(--wb-accent, #1677ff);
  box-shadow: 0 0 0 2px rgba(var(--wb-accent-rgb, 22, 119, 255), 0.12);
}

.wb-display-navigation--side::before {
  inset: 0 auto 0 0;
  width: 20px;
  background: #16395d;
}

.wb-display-navigation--side::after {
  inset: 0 0 auto 20px;
  height: 10px;
  background: #fff;
  border-bottom: 1px solid #e0e5eb;
}

.wb-display-navigation--side span {
  inset: 17px 8px auto 28px;
  height: 4px;
  background: #d8dee7;
  box-shadow: 0 10px #d8dee7, 0 20px #d8dee7;
}

.wb-display-navigation--top::before {
  inset: 0 0 auto;
  height: 13px;
  background: #16395d;
}

.wb-display-navigation--top span {
  inset: 23px 10px auto;
  height: 4px;
  background: #d8dee7;
  box-shadow: 0 11px #d8dee7;
}

.wb-display-navigation--compact::before {
  inset: 0 auto 0 0;
  width: 18px;
  background: #fff;
  border-right: 1px solid #d8dee7;
}

.wb-display-navigation--compact::after {
  inset: 0 0 auto 18px;
  height: 12px;
  background: #16395d;
}

.wb-display-navigation--compact span {
  inset: 22px 9px auto 27px;
  height: 4px;
  background: #d8dee7;
  box-shadow: 0 10px #d8dee7;
}

.wb-display-width-control {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.wb-display-width-control__track {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 6px;
  min-height: 64px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #e2e7ed;
  border-radius: 7px;
}

.wb-display-width-control__track > span {
  color: var(--wb-accent, #1677ff);
  font-size: 28px;
  line-height: 1;
  text-align: center;
}

.wb-display-width-control input {
  width: 100%;
  min-width: 0;
  accent-color: var(--wb-accent, #1677ff);
}

.wb-display-width-control output {
  min-height: 18px;
  color: #718096;
  font-size: 12px;
  text-align: right;
}

.wb-display-width-control.is-disabled {
  opacity: 0.48;
}

.wb-display-settings-section--switches {
  display: grid;
  gap: 0;
}

.wb-display-settings-section--switches h3 {
  margin-bottom: 7px;
}

.wb-display-switch-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 43px;
  color: #273448;
  font-size: 14px;
  cursor: pointer;
}

.wb-display-switch-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.wb-display-switch-row i {
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  height: 21px;
  background: #b2b8c0;
  border-radius: 11px;
  transition: background-color 0.16s ease;
}

.wb-display-switch-row i::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
  transition: transform 0.16s ease;
}

.wb-display-switch-row input:checked + i {
  background: var(--wb-accent, #1677ff);
}

.wb-display-switch-row input:checked + i::before {
  transform: translateX(17px);
}

.wb-display-switch-row input:focus-visible + i {
  outline: 2px solid rgba(var(--wb-accent-rgb, 22, 119, 255), 0.42);
  outline-offset: 2px;
}

.wb-display-settings-drawer__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 68px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid #e7ebf0;
}

.wb-display-settings-drawer__status {
  flex: 1;
  color: #389e0d;
  font-size: 12px;
  line-height: 1.4;
}

.wb-display-settings-clear {
  appearance: none;
  min-height: 38px;
  padding: 0 15px;
  color: #d9363e;
  background: #f7f8fa;
  border: 1px solid #edf0f3;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.wb-display-settings-clear:hover,
.wb-display-settings-clear:focus-visible {
  color: #fff;
  background: #d9363e;
  border-color: #d9363e;
  outline: none;
}

/* 主题色只接管后台的交互强调色，不改变业务状态色。 */
html[data-wb-theme] .admin-shell .admin-nav__item--active,
html[data-wb-theme] .admin-shell .admin-topbar__toggle:hover,
html[data-wb-theme] .admin-shell .wb-admin-profile-page__actions .button,
html[data-wb-theme] .admin-shell .button--primary {
  background-color: var(--wb-accent) !important;
  border-color: var(--wb-accent) !important;
}

html[data-wb-theme] .admin-shell .admin-nav__item:hover,
html[data-wb-theme] .admin-shell .wb-admin-account-menu__item:hover,
html[data-wb-theme] .admin-shell .customer-log-tab--active,
html[data-wb-theme] .admin-shell .doctor-archive-tab--active {
  color: var(--wb-accent) !important;
}

html[data-wb-theme] .admin-shell input:focus,
html[data-wb-theme] .admin-shell textarea:focus,
html[data-wb-theme] .admin-shell select:focus {
  border-color: var(--wb-accent) !important;
}

/* 自定义页宽只约束内容，不挤压顶部栏和导航。 */
html[data-wb-page-width="custom"] .admin-shell .admin-content {
  width: 100%;
  max-width: var(--wb-content-width, 1280px);
  margin-right: auto;
  margin-left: auto;
}

/* 三种页签样式覆盖现有个人设置、客户日志和医生档案页签。 */
html[data-wb-tab-style="flexible"] .admin-shell :is(.customer-log-tabs, .doctor-archive-tabs, .wb-admin-profile-page__tabs) {
  gap: 6px;
  background: transparent;
  border-bottom: 1px solid #e2e8f0;
}

html[data-wb-tab-style="flexible"] .admin-shell :is(.customer-log-tab--active, .doctor-archive-tab--active, .wb-admin-profile-page__tab--active) {
  color: var(--wb-accent) !important;
  border-bottom-color: var(--wb-accent) !important;
}

html[data-wb-tab-style="card"] .admin-shell :is(.customer-log-tabs, .doctor-archive-tabs, .wb-admin-profile-page__tabs) {
  gap: 4px;
  padding: 4px;
  background: #eef2f6;
  border: 0;
  border-radius: 6px;
}

html[data-wb-tab-style="card"] .admin-shell :is(.customer-log-tab, .doctor-archive-tab, .wb-admin-profile-page__tab) {
  border: 0 !important;
  border-radius: 4px;
}

html[data-wb-tab-style="card"] .admin-shell :is(.customer-log-tab--active, .doctor-archive-tab--active, .wb-admin-profile-page__tab--active) {
  color: var(--wb-accent) !important;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

html[data-wb-tab-style="google"] .admin-shell :is(.customer-log-tabs, .doctor-archive-tabs, .wb-admin-profile-page__tabs) {
  align-items: flex-end;
  gap: 3px;
  background: transparent;
  border-bottom: 1px solid #dfe5ec;
}

html[data-wb-tab-style="google"] .admin-shell :is(.customer-log-tab, .doctor-archive-tab, .wb-admin-profile-page__tab) {
  background: #edf1f5;
  border: 1px solid #dfe5ec !important;
  border-bottom: 0 !important;
  border-radius: 6px 6px 0 0;
}

html[data-wb-tab-style="google"] .admin-shell :is(.customer-log-tab--active, .doctor-archive-tab--active, .wb-admin-profile-page__tab--active) {
  color: var(--wb-accent) !important;
  background: #fff;
}

html.wb-display-hide-tabs .admin-shell :is(.customer-log-tabs, .doctor-archive-tabs, .wb-admin-profile-page__tabs) {
  display: none !important;
}

html.wb-display-hide-footer .admin-shell ~ .site-footer,
html.wb-display-hide-footer .admin-shell .site-footer,
html.wb-display-hide-footer body > .site-footer,
html.wb-display-hide-footer .app-shell > .site-footer {
  display: none !important;
}

html.wb-display-hide-logo .admin-shell .admin-sidebar__logo {
  visibility: hidden !important;
}

html.wb-display-grayscale:not(.wb-display-weak-color) .admin-shell {
  filter: grayscale(1);
}

html.wb-display-weak-color:not(.wb-display-grayscale) .admin-shell {
  filter: invert(80%);
}

html.wb-display-grayscale.wb-display-weak-color .admin-shell {
  filter: grayscale(1) invert(80%);
}

/* 深色模式使用实际配色覆盖，自动模式通过解析后的属性复用同一规则。 */
html[data-wb-resolved-appearance="dark"] {
  color-scheme: dark;
  --ink: #e7edf5;
  --muted: #9ba9b9;
  --line: #344154;
  --line-strong: #45536a;
  --panel: #1d2530;
  --panel-strong: #232d3a;
}

html[data-wb-resolved-appearance="dark"] body,
html[data-wb-resolved-appearance="dark"] .admin-shell,
html[data-wb-resolved-appearance="dark"] .admin-shell .admin-body,
html[data-wb-resolved-appearance="dark"] .admin-shell .admin-content {
  color: #dce5ef;
  background: #111821 !important;
}

html[data-wb-resolved-appearance="dark"] .admin-shell .admin-topbar,
html[data-wb-resolved-appearance="dark"] .admin-shell :is(.panel-card, .stat-card, .summary-card, .analysis-panel, .recommendation-panel, .record-card, .doctor-hero-panel, .doctor-profile-panel, .doctor-records-panel, .diagnosis-profile-panel, .diagnosis-submit-panel, .diagnosis-table-panel, .customer-history-card, .customer-log-editor),
html[data-wb-resolved-appearance="dark"] .admin-shell :is(.admin-management-table__row, .account-table tbody tr),
html[data-wb-resolved-appearance="dark"] .admin-shell .wb-admin-profile-page__panel {
  color: #dce5ef;
  background: #1d2530 !important;
  border-color: #344154 !important;
}

html[data-wb-resolved-appearance="dark"] .admin-shell :is(h1, h2, h3, h4, strong, .admin-topbar__title, .section-heading__title, .admin-management-table__cell) {
  color: #e7edf5;
}

html[data-wb-resolved-appearance="dark"] .admin-shell :is(input, textarea, select, .dict-input, .account-table__input) {
  color: #e7edf5;
  background: #141c26 !important;
  border-color: #3b495d !important;
}

html[data-wb-resolved-appearance="dark"] .admin-shell :is(.admin-management-table__head, .account-table thead, .guide-card__summary) {
  color: #c8d3df;
  background: #252f3d !important;
  border-color: #3b495d !important;
}

html[data-wb-resolved-appearance="dark"] .wb-display-settings-drawer,
html[data-wb-resolved-appearance="dark"] .wb-display-settings-drawer__header,
html[data-wb-resolved-appearance="dark"] .wb-display-settings-drawer__footer {
  color: #dce5ef;
  background: #1b232e;
  border-color: #344154;
}

html[data-wb-resolved-appearance="dark"] .wb-display-settings-drawer :is(h2, h3),
html[data-wb-resolved-appearance="dark"] .wb-display-switch-row {
  color: #e7edf5;
}

html[data-wb-resolved-appearance="dark"] .wb-display-segmented,
html[data-wb-resolved-appearance="dark"] .wb-display-navigation,
html[data-wb-resolved-appearance="dark"] .wb-display-settings-clear {
  background: #252f3d;
  border-color: #344154;
}

html[data-wb-resolved-appearance="dark"] .wb-display-segmented button.is-active,
html[data-wb-resolved-appearance="dark"] .wb-display-width-control__track {
  color: #eef4fa;
  background: #111821;
  border-color: #3b495d;
}

html[data-wb-resolved-appearance="dark"] .wb-display-segmented button,
html[data-wb-resolved-appearance="dark"] .wb-display-width-control output {
  color: #aebaca;
}

/* 导航模式在桌面端生效；移动端继续沿用当前后台的单栏布局。 */
@media (min-width: 1025px) {
  html[data-wb-navigation="top"] .admin-shell {
    --wb-top-navigation-actions-width: 340px;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 48px minmax(0, 1fr);
    min-height: 100dvh;
    background: #f0f2f5;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-sidebar {
    box-sizing: border-box;
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    width: 100% !important;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    padding: 0 var(--wb-top-navigation-actions-width) 0 0;
    color: #4b5563;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    overflow: visible;
  }

  html[data-wb-navigation="top"] .admin-shell.wb-top-navigation-has-overflow .admin-sidebar {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr) 44px;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-sidebar__brand {
    box-sizing: border-box;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 48px;
    padding: 0 12px;
    background: #fff;
    border-right: 1px solid #edf0f4;
    border-bottom: 0;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-sidebar__logo {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-sidebar__logo .site-logo--dark {
    --logo-shell: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.96));
    --logo-border: rgba(148, 163, 184, 0.24);
    --logo-shadow: none;
    --logo-copy: #0f172a;
    --logo-copy-muted: #64748b;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-sidebar__logo .site-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-sidebar__logo .site-logo__copy {
    display: grid;
    gap: 1px;
    min-width: 0;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-sidebar__logo .site-logo__copy strong {
    color: var(--logo-copy);
    font-size: 13px;
    line-height: 1.1;
    letter-spacing: 0;
    white-space: nowrap;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-sidebar__logo .site-logo__copy span {
    color: var(--logo-copy-muted);
    font-size: 11px;
    line-height: 1.1;
    letter-spacing: 0;
    white-space: nowrap;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-sidebar__logo :is(.site-logo__custom, .site-logo__mark) {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: none;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-sidebar__identity {
    display: none !important;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    min-width: 0;
    height: 48px;
    padding: 0 8px;
    overflow-x: hidden;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-nav::-webkit-scrollbar {
    display: none;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-nav__item {
    box-sizing: border-box;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    height: 48px;
    min-height: 48px;
    padding: 0 13px;
    color: #4b5563;
    white-space: nowrap;
    background: #fff;
    border-bottom: 2px solid transparent;
    border-radius: 0;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-nav__item:hover {
    color: var(--wb-accent, #1677ff);
    background: var(--wb-accent-soft, #eaf3ff);
  }

  html[data-wb-navigation="top"] .admin-shell .admin-nav__item--active,
  html[data-wb-navigation="top"] .admin-shell .admin-nav__item--active:hover {
    color: var(--wb-accent, #1677ff);
    background-color: #fff !important;
    border-color: transparent transparent var(--wb-accent, #1677ff) transparent !important;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-nav__item::before {
    display: none !important;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-nav__icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-nav__icon svg {
    width: 18px;
    height: 18px;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-nav__content {
    display: block;
    min-width: 0;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-nav__note {
    display: none !important;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-nav__item.wb-top-navigation-overflowed {
    display: none !important;
  }

  html[data-wb-navigation="top"] .admin-shell .wb-top-navigation-more {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 44px;
    height: 48px;
    background: #fff;
  }

  html[data-wb-navigation="top"] .admin-shell .wb-top-navigation-more[hidden] {
    display: none !important;
  }

  html[data-wb-navigation="top"] .admin-shell .wb-top-navigation-more__trigger {
    display: grid;
    place-items: center;
    width: 44px;
    height: 48px;
    padding: 0;
    color: #4b5563;
    background: #fff;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
  }

  html[data-wb-navigation="top"] .admin-shell .wb-top-navigation-more__trigger:hover,
  html[data-wb-navigation="top"] .admin-shell .wb-top-navigation-more__trigger:focus-visible,
  html[data-wb-navigation="top"] .admin-shell .wb-top-navigation-more--open .wb-top-navigation-more__trigger {
    color: var(--wb-accent, #1677ff);
    background: var(--wb-accent-soft, #eaf3ff);
    outline: none;
  }

  html[data-wb-navigation="top"] .admin-shell .wb-top-navigation-more__trigger svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }

  html[data-wb-navigation="top"] .admin-shell .wb-top-navigation-more__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 110;
    display: grid;
    gap: 3px;
    width: max-content;
    min-width: 176px;
    max-width: 240px;
    max-height: min(420px, calc(100vh - 72px));
    padding: 6px;
    background: #fff;
    border: 1px solid #dce3ea;
    border-radius: 6px;
    overflow-y: auto;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
  }

  html[data-wb-navigation="top"] .admin-shell .wb-top-navigation-more__menu[hidden] {
    display: none !important;
  }

  html[data-wb-navigation="top"] .admin-shell .wb-top-navigation-more__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    color: #4b5563;
    text-align: left;
    white-space: nowrap;
    background: #fff;
    border: 0;
    border-radius: 4px;
  }

  html[data-wb-navigation="top"] .admin-shell .wb-top-navigation-more__item:hover,
  html[data-wb-navigation="top"] .admin-shell .wb-top-navigation-more__item:focus-visible,
  html[data-wb-navigation="top"] .admin-shell .wb-top-navigation-more__item--active {
    color: var(--wb-accent, #1677ff);
    background: var(--wb-accent-soft, #eaf3ff);
    outline: none;
  }

  html[data-wb-navigation="top"] .admin-shell .wb-top-navigation-more__item .admin-nav__icon,
  html[data-wb-navigation="top"] .admin-shell .wb-top-navigation-more__item .admin-nav__icon svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
  }

  html[data-wb-navigation="top"] .admin-shell :is(.admin-sidebar__section-title, .admin-sidebar__summary, .admin-sidebar-edge-toggle) {
    display: none !important;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-body {
    display: contents;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-topbar {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 0;
    z-index: 95;
    justify-content: flex-end;
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 0 8px;
    pointer-events: none;
    background: transparent !important;
    border: 0;
    box-shadow: none;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-topbar__heading {
    display: none !important;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-topbar__right {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    height: 48px;
    margin-left: auto;
    padding-left: 8px;
    pointer-events: auto;
    background: #fff;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-topbar__actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    order: 0;
    width: auto;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-topbar__user {
    flex: 0 0 auto;
    height: 32px;
    padding-left: 12px;
  }

  html[data-wb-navigation="top"] .admin-shell .admin-content {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
  }

  html[data-wb-navigation="top"][data-wb-resolved-appearance="dark"] .admin-shell .admin-sidebar,
  html[data-wb-navigation="top"][data-wb-resolved-appearance="dark"] .admin-shell .admin-sidebar__brand,
  html[data-wb-navigation="top"][data-wb-resolved-appearance="dark"] .admin-shell .admin-nav__item,
  html[data-wb-navigation="top"][data-wb-resolved-appearance="dark"] .admin-shell .admin-topbar__right,
  html[data-wb-navigation="top"][data-wb-resolved-appearance="dark"] .admin-shell .wb-top-navigation-more,
  html[data-wb-navigation="top"][data-wb-resolved-appearance="dark"] .admin-shell .wb-top-navigation-more__trigger,
  html[data-wb-navigation="top"][data-wb-resolved-appearance="dark"] .admin-shell .wb-top-navigation-more__menu,
  html[data-wb-navigation="top"][data-wb-resolved-appearance="dark"] .admin-shell .wb-top-navigation-more__item {
    background: #111821;
    border-color: #344154;
  }

  html[data-wb-navigation="top"][data-wb-resolved-appearance="dark"] .admin-shell .admin-sidebar__identity,
  html[data-wb-navigation="top"][data-wb-resolved-appearance="dark"] .admin-shell .admin-nav__item {
    color: #aebaca;
  }

  html[data-wb-navigation="top"][data-wb-resolved-appearance="dark"] .admin-shell .admin-sidebar__logo .site-logo--dark {
    --logo-shell: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    --logo-border: rgba(255, 255, 255, 0.08);
    --logo-copy: #f8fafc;
    --logo-copy-muted: #94a3b8;
  }

  html[data-wb-navigation="top"][data-wb-resolved-appearance="dark"] .admin-shell .admin-nav__item:hover {
    color: #eef4fa;
    background: #1a2432;
  }

  html[data-wb-navigation="top"][data-wb-resolved-appearance="dark"] .admin-shell :is(.wb-top-navigation-more__trigger, .wb-top-navigation-more__item) {
    color: #aebaca;
  }

  html[data-wb-navigation="top"][data-wb-resolved-appearance="dark"] .admin-shell :is(.wb-top-navigation-more__trigger, .wb-top-navigation-more__item):hover,
  html[data-wb-navigation="top"][data-wb-resolved-appearance="dark"] .admin-shell .wb-top-navigation-more--open .wb-top-navigation-more__trigger,
  html[data-wb-navigation="top"][data-wb-resolved-appearance="dark"] .admin-shell .wb-top-navigation-more__item--active {
    color: #eef4fa;
    background: #1a2432;
  }

  html[data-wb-navigation="top"][data-wb-resolved-appearance="dark"] .admin-shell .admin-nav__item--active,
  html[data-wb-navigation="top"][data-wb-resolved-appearance="dark"] .admin-shell .admin-nav__item--active:hover {
    color: var(--wb-accent, #409eff);
    background-color: #111821 !important;
    border-color: transparent transparent var(--wb-accent, #409eff) transparent !important;
  }

  html[data-wb-navigation="compact"] .admin-shell {
    grid-template-columns: 76px minmax(0, 1fr) !important;
  }

  html[data-wb-navigation="compact"] .admin-shell .admin-sidebar {
    width: 76px !important;
    padding-right: 10px;
    padding-left: 10px;
  }

  html[data-wb-navigation="compact"] .admin-shell :is(.admin-sidebar__identity, .admin-nav__text, .admin-nav__note, .admin-sidebar__section-title) {
    display: none !important;
  }

  html[data-wb-navigation="compact"] .admin-shell :is(.admin-sidebar__brand, .admin-nav__item, .admin-nav__content) {
    justify-content: center;
  }

  html[data-wb-navigation="compact"] .admin-shell .admin-nav__item {
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (max-width: 640px) {
  .admin-shell .wb-display-settings-trigger {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .wb-display-settings-drawer {
    width: min(312px, calc(100vw - 28px));
  }

  .wb-display-settings-drawer__header {
    min-height: 62px;
    padding: 0 18px;
  }

  .wb-display-settings-drawer__body {
    padding: 18px;
  }

  .wb-display-settings-drawer__footer {
    min-height: 60px;
    padding: 10px 18px;
  }

  .wb-display-navigation-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .wb-display-navigation {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wb-display-settings-overlay,
  .wb-display-settings-drawer,
  .wb-display-switch-row i,
  .wb-display-switch-row i::before {
    transition-duration: 0.01ms !important;
  }
}

/* 医生工作台概览：医生资料进入顶部，最近就诊记录独占整行。 */
.admin-shell .doctor-overview-grid.wb-doctor-overview-grid--full {
  grid-template-columns: minmax(0, 1fr) !important;
}

.admin-shell .doctor-profile-panel.wb-doctor-profile-source {
  display: none !important;
}

.admin-shell .doctor-records-panel.wb-doctor-records-panel--full,
.admin-shell .doctor-records-panel.wb-doctor-records-panel--full .doctor-visit-table--overview {
  width: 100%;
  min-width: 0;
}

.admin-shell .doctor-hero-panel.wb-doctor-hero-panel--profiled {
  grid-template-columns: minmax(320px, 1fr) minmax(500px, 0.95fr);
  align-items: center;
  gap: 28px;
  display: grid;
}

.admin-shell .doctor-hero-panel.wb-doctor-hero-panel--profiled .wb-doctor-hero-meta-source {
  display: none;
}

.wb-doctor-hero-profile {
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid #dce3ea;
  display: grid;
}

.wb-doctor-hero-profile__avatar {
  color: #16395d;
  background: #edf3f8;
  border: 2px solid #c7d8e8;
  border-radius: 50%;
  place-items: center;
  width: 68px;
  height: 68px;
  font-size: 24px;
  font-weight: 700;
  display: grid;
  overflow: hidden;
}

.wb-doctor-hero-profile__image {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.wb-doctor-hero-profile__content {
  gap: 10px;
  min-width: 0;
  display: grid;
}

.wb-doctor-hero-profile__heading {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.wb-doctor-hero-profile__name {
  color: #0f172a;
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.35;
}

.wb-doctor-hero-profile__title {
  color: #42566d;
  background: #f3f6fa;
  border: 1px solid #d5dee8;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.wb-doctor-hero-profile__details {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 1.2fr);
  gap: 8px 16px;
  min-width: 0;
  margin: 0;
  display: grid;
}

.wb-doctor-hero-profile__detail {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.wb-doctor-hero-profile__detail dt {
  color: #718096;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.wb-doctor-hero-profile__detail dd {
  color: #25364a;
  overflow-wrap: anywhere;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .admin-shell .doctor-hero-panel.wb-doctor-hero-panel--profiled {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .wb-doctor-hero-profile {
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid #dce3ea;
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .admin-shell .doctor-hero-panel.wb-doctor-hero-panel--profiled {
    gap: 14px;
  }

  .wb-doctor-hero-profile {
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding-top: 14px;
  }

  .wb-doctor-hero-profile__avatar {
    width: 52px;
    height: 52px;
    font-size: 19px;
  }

  .wb-doctor-hero-profile__name {
    font-size: 16px;
  }

  .wb-doctor-hero-profile__details {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .wb-doctor-hero-profile__detail {
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: baseline;
    gap: 8px;
  }
}

/* 四角色后台：左侧数据概览仅作为顶部卡片的数据源，不再占用侧栏空间。 */
.admin-shell .admin-sidebar__summary {
  display: none !important;
}

/* 四角色首页数据概览：完整统计在常用桌面宽度内保持一行。 */
.admin-shell .stats-grid.wb-summary-stats-grid--complete {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-shell .stats-grid.wb-summary-stats-grid--doctor-complete {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-shell .stats-grid.wb-summary-stats-grid--doctor-complete .stat-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
  white-space: normal;
}

.admin-shell .stats-grid.wb-summary-stats-grid--doctor-complete .stat-card strong {
  grid-row: 1 / span 2;
}

.admin-shell .stats-grid.wb-summary-stats-grid--doctor-complete .stat-card span,
.admin-shell .stats-grid.wb-summary-stats-grid--doctor-complete .stat-card small {
  grid-column: 2;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
  text-align: right;
}

.admin-shell .stats-grid.wb-summary-stats-grid--doctor-complete .stat-card span {
  grid-row: 1;
}

.admin-shell .stats-grid.wb-summary-stats-grid--doctor-complete .stat-card small {
  grid-row: 2;
  color: #8a94a3;
}

.admin-shell .stats-grid.wb-summary-stats-grid--doctor-complete .stat-card span:last-child {
  grid-row: 1 / span 2;
  align-self: center;
}

.admin-shell .wb-summary-stat-card {
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .admin-shell .stats-grid.wb-summary-stats-grid--complete,
  .admin-shell .stats-grid.wb-summary-stats-grid--doctor-complete {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .admin-shell .stats-grid.wb-summary-stats-grid--complete,
  .admin-shell .stats-grid.wb-summary-stats-grid--doctor-complete {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== 四角色右上角个人设置 ===== */
.admin-shell .admin-topbar__user.wb-admin-profile-enabled {
  position: relative;
  gap: 0;
  min-width: 0;
  padding-left: 12px;
}

.admin-shell .wb-admin-profile__original-control {
  display: none !important;
}

.admin-shell .wb-admin-account-menu {
  position: relative;
  min-width: 0;
  letter-spacing: 0;
}

.admin-shell .wb-admin-account-menu__trigger {
  display: inline-grid;
  grid-template-columns: 34px minmax(0, auto) 12px;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 3px 8px 3px 4px;
  color: #374151;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.admin-shell .wb-admin-account-menu__trigger:hover,
.admin-shell .wb-admin-account-menu__trigger:focus-visible,
.admin-shell .wb-admin-account-menu--open .wb-admin-account-menu__trigger {
  background: #f8fafc;
  border-color: #dbe3ee;
  outline: none;
}

.admin-shell .wb-admin-account-menu__avatar,
.admin-shell .wb-admin-profile-page__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  color: #124a5b;
  background: #bfe6ec;
  border: 1px solid #9dd4dc;
  border-radius: 50%;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.admin-shell .wb-admin-account-menu__avatar {
  width: 34px;
  height: 34px;
  font-size: 15px;
}

.admin-shell .wb-admin-profile-avatar__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-shell .wb-admin-account-menu__name {
  display: block;
  max-width: 160px;
  overflow: hidden;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-shell .wb-admin-account-menu__chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #6b7280;
  border-bottom: 1.5px solid #6b7280;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.admin-shell .wb-admin-account-menu--open .wb-admin-account-menu__chevron {
  transform: translateY(2px) rotate(225deg);
}

.admin-shell .wb-admin-account-menu__dropdown {
  position: absolute;
  z-index: 120;
  top: calc(100% + 8px);
  right: 0;
  width: 176px;
  padding: 6px;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgb(15 23 42 / 14%);
}

.admin-shell .wb-admin-account-menu__dropdown::before {
  position: absolute;
  top: -5px;
  right: 24px;
  width: 9px;
  height: 9px;
  background: #fff;
  border-top: 1px solid #dbe3ee;
  border-left: 1px solid #dbe3ee;
  content: '';
  transform: rotate(45deg);
}

.admin-shell .wb-admin-account-menu__item {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 0 12px;
  color: #374151;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 40px;
  text-align: left;
  letter-spacing: 0;
}

.admin-shell .wb-admin-account-menu__item:hover,
.admin-shell .wb-admin-account-menu__item:focus-visible {
  background: #f1f5f9;
  outline: none;
}

.admin-shell .wb-admin-account-menu__item--danger {
  color: #b42318;
}

/* 个人设置沿用后台框架，作为右侧内容区独立页面展示。 */
.admin-shell .wb-admin-profile-source-hidden {
  display: none !important;
}

.admin-shell .wb-admin-profile-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  min-height: calc(100vh - 124px);
  color: #303133;
  letter-spacing: 0;
}

.admin-shell .wb-admin-profile-page[hidden] {
  display: none !important;
}

.admin-shell .wb-admin-profile-page__tabs {
  display: flex;
  align-items: flex-end;
  min-height: 44px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid #e4e7ed;
}

.admin-shell .wb-admin-profile-page__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  color: #4a5dff;
  background: #f2f4ff;
  border-bottom: 2px solid #4a5dff;
  font-size: 14px;
  font-weight: 500;
}

.admin-shell .wb-admin-profile-page__tab > span {
  width: 6px;
  height: 6px;
  background: #4a5dff;
  border-radius: 50%;
}

.admin-shell .wb-admin-profile-page__form {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding-top: 14px;
}

.admin-shell .wb-admin-profile-page__panel {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 415px;
  padding: 20px;
  background: #fff;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
}

.admin-shell .wb-admin-profile-page__title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-shell .wb-admin-profile-page__status {
  width: min(100%, 420px);
  margin: 0 0 18px 100px;
  padding: 9px 12px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.admin-shell .wb-admin-profile-page__status[data-state='success'] {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.admin-shell .wb-admin-profile-page__status[data-state='error'] {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.admin-shell .wb-admin-profile-page__fields {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.admin-shell .wb-admin-profile-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 320px);
  align-items: center;
  min-width: 0;
  min-height: 34px;
}

.admin-shell .wb-admin-profile-row--avatar {
  align-items: start;
  min-height: 100px;
}

.admin-shell .wb-admin-profile-row__label {
  min-width: 0;
  padding-right: 16px;
  color: #303133;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: right;
}

.admin-shell .wb-admin-profile-row__required {
  color: #f56c6c;
}

.admin-shell .wb-admin-profile-row__control {
  display: block;
  min-width: 0;
}

.admin-shell .wb-admin-profile-avatar-picker,
.admin-shell .wb-admin-profile-avatar-picker__button {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.admin-shell .wb-admin-profile-avatar-picker__button {
  cursor: pointer;
}

.admin-shell .wb-admin-profile-avatar-picker__button > input[type='file'] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-shell .wb-admin-profile-avatar-picker__button > .button {
  min-width: 84px;
  min-height: 34px;
  margin-top: 66px;
}

.admin-shell .wb-admin-profile-page__avatar {
  width: 100px;
  height: 100px;
  color: #124a5b;
  background: #bfe6ec;
  border: 1px solid #9dd4dc;
  border-radius: 4px;
  font-size: 34px;
}

.admin-shell .wb-admin-profile-page__avatar .wb-admin-profile-avatar__image {
  border-radius: 3px;
}

.admin-shell .wb-admin-profile-row input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 11px;
  color: #303133;
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  outline: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.admin-shell .wb-admin-profile-row input::placeholder {
  color: #a8abb2;
}

.admin-shell .wb-admin-profile-row input:focus {
  border-color: #4a5dff;
  box-shadow: 0 0 0 2px rgb(74 93 255 / 10%);
}

.admin-shell .wb-admin-profile-row input:disabled,
.admin-shell .wb-admin-profile-row input[readonly] {
  color: #a8abb2;
  background: #f5f7fa;
  border-color: #e4e7ed;
  cursor: not-allowed;
}

.admin-shell .wb-admin-profile-page__actions {
  position: sticky;
  z-index: 3;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 60px;
  min-height: 60px;
  margin-top: 14px;
  background: #fff;
  border-top: 1px solid #ebeef5;
}

.admin-shell .wb-admin-profile-page__actions .button {
  min-width: 60px;
  min-height: 34px;
  margin: 0;
  padding: 0 15px;
  background: #4a5dff;
  border-color: #4a5dff;
  border-radius: 4px;
}

.admin-shell .wb-admin-profile-page__actions .button:hover,
.admin-shell .wb-admin-profile-page__actions .button:focus-visible {
  background: #6373ff;
  border-color: #6373ff;
  outline: none;
}

.admin-shell .wb-admin-account-menu__dropdown[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .admin-shell .admin-topbar {
    padding-right: 12px;
    padding-left: 12px;
  }

  .admin-shell .admin-topbar__right {
    min-width: 0;
    gap: 8px;
  }

  .admin-shell .admin-topbar__user.wb-admin-profile-enabled {
    padding-left: 8px;
  }

  .admin-shell .wb-admin-account-menu__trigger {
    grid-template-columns: 32px minmax(0, auto) 10px;
    gap: 6px;
    padding-right: 6px;
  }

  .admin-shell .wb-admin-account-menu__avatar {
    width: 32px;
    height: 32px;
  }

  .admin-shell .wb-admin-account-menu__name {
    max-width: 88px;
    font-size: 13px;
  }

  .admin-shell .wb-admin-account-menu__dropdown {
    position: fixed;
    top: 60px;
    right: 12px;
  }

  .admin-shell .wb-admin-profile-page {
    min-height: calc(100vh - 96px);
  }

  .admin-shell .wb-admin-profile-page__tabs {
    min-height: 42px;
    padding: 0 10px;
  }

  .admin-shell .wb-admin-profile-page__tab {
    min-height: 42px;
  }

  .admin-shell .wb-admin-profile-page__form {
    padding-top: 10px;
  }

  .admin-shell .wb-admin-profile-page__panel {
    min-height: 0;
    padding: 16px;
  }

  .admin-shell .wb-admin-profile-page__status {
    width: 100%;
    margin: 0 0 16px;
  }

  .admin-shell .wb-admin-profile-page__fields {
    gap: 15px;
  }

  .admin-shell .wb-admin-profile-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .admin-shell .wb-admin-profile-row--avatar {
    min-height: 0;
  }

  .admin-shell .wb-admin-profile-row__label {
    padding-right: 0;
    text-align: left;
  }

  .admin-shell .wb-admin-profile-page__avatar {
    width: 76px;
    height: 76px;
    font-size: 26px;
  }

  .admin-shell .wb-admin-profile-avatar-picker__button > .button {
    margin-top: 42px;
  }

  .admin-shell .wb-admin-profile-page__actions {
    min-height: 56px;
    margin-top: 10px;
  }

}

/* 创建品牌和门店时的机构图像控件。 */
.admin-shell .wb-managed-image-field {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.admin-shell .wb-managed-image-field__label {
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  line-height: 34px;
}

.admin-shell .wb-managed-image-field__picker {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  min-width: 0;
  cursor: pointer;
}

.admin-shell .wb-managed-image-field__picker > input[type='file'] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-shell .wb-managed-image-field__preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  overflow: hidden;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 4px;
}

.admin-shell .wb-managed-image-field__placeholder {
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.admin-shell .wb-managed-image-field__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-shell .wb-managed-image-field__picker > .button {
  min-width: 84px;
  min-height: 34px;
  margin: 0;
}

@media (max-width: 640px) {
  .admin-shell .wb-managed-image-field {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

/* ===== 修复公海池和医生管理表格间距问题 ===== */

/* 公海池表格：6列布局优化 */
.admin-management-table--pool > .admin-management-table__head,
.admin-management-table--pool > .admin-management-table__row {
  grid-template-columns:
    minmax(100px, 0.9fr)
    minmax(180px, 1.6fr)
    minmax(140px, 1fr)
    minmax(120px, 0.9fr)
    minmax(100px, 0.8fr)
    minmax(120px, 1fr) !important;
  gap: 16px !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  min-width: 0 !important;
}

/* 医生管理表格：6列布局优化 */
.admin-management-table--doctor > .admin-management-table__head,
.admin-management-table--doctor > .admin-management-table__row {
  grid-template-columns:
    minmax(100px, 0.9fr)
    minmax(180px, 1.6fr)
    minmax(140px, 1fr)
    minmax(120px, 0.9fr)
    minmax(100px, 0.8fr)
    minmax(120px, 1fr) !important;
  gap: 16px !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  min-width: 0 !important;
}

/* 所属门店列：允许换行，防止挤压其他列 */
.admin-management-table--pool > .admin-management-table__row > .admin-management-table__cell:nth-child(2),
.admin-management-table--doctor > .admin-management-table__row > .admin-management-table__cell:nth-child(2) {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  overflow: visible !important;
  line-height: 1.4;
  word-break: break-all;
  font-size: 0.85rem;
}

/* 联系电话列：固定宽度，不被挤压 */
.admin-management-table--pool > .admin-management-table__row > .admin-management-table__cell:nth-child(3),
.admin-management-table--doctor > .admin-management-table__row > .admin-management-table__cell:nth-child(3) {
  white-space: nowrap !important;
  min-width: 130px !important;
  overflow: visible !important;
}

/* ASIA16列：居中对齐 */
.admin-management-table--pool > .admin-management-table__row > .admin-management-table__cell:nth-child(4),
.admin-management-table--doctor > .admin-management-table__row > .admin-management-table__cell:nth-child(4) {
  text-align: center;
  white-space: nowrap;
}

/* 状态列：居中 */
.admin-management-table--pool > .admin-management-table__row > .admin-management-table__cell:nth-child(5),
.admin-management-table--doctor > .admin-management-table__row > .admin-management-table__cell:nth-child(5) {
  text-align: center;
  white-space: nowrap;
}

/* 操作列：右对齐，增加按钮间距 */
.admin-management-table--pool > .admin-management-table__row > .admin-management-table__cell:nth-child(6),
.admin-management-table--doctor > .admin-management-table__row > .admin-management-table__cell:nth-child(6) {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap !important;
  overflow: visible !important;
}

/* 操作按钮样式 */
.admin-management-table--pool .admin-management-table__cell--action .button,
.admin-management-table--doctor .admin-management-table__cell--action .button {
  padding: 4px 12px;
  font-size: 0.82rem;
  white-space: nowrap;
}

/* 通用表格单元格增加内边距 */
.admin-management-table--pool .admin-management-table__cell,
.admin-management-table--doctor .admin-management-table__cell {
  padding: 10px 4px;
}

/* 表格表头增加底部间距 */
.admin-management-table--pool > .admin-management-table__head,
.admin-management-table--doctor > .admin-management-table__head {
  padding-bottom: 12px !important;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 8px;
}

/* 表格行增加上下间距 */
.admin-management-table--pool > .admin-management-table__row,
.admin-management-table--doctor > .admin-management-table__row {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #f3f4f6;
}

/* 响应式：小屏幕保持最小宽度 */
@media (max-width: 1200px) {
  .admin-management-table--pool > .admin-management-table__head,
  .admin-management-table--pool > .admin-management-table__row,
  .admin-management-table--doctor > .admin-management-table__head,
  .admin-management-table--doctor > .admin-management-table__row {
    min-width: 900px !important;
  }
}

/* ===== 后台内容完整显示 ===== */

/* 右侧工作区允许内部内容收缩，宽表格改为滚动而不是裁剪。 */
.admin-shell .admin-content,
.admin-shell .admin-main,
.admin-shell .admin-main__body,
.admin-shell .panel-card,
.admin-shell .analysis-panel,
.admin-shell .recommendation-panel,
.admin-shell .summary-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.admin-shell .admin-management-table,
.admin-shell .account-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.admin-shell .admin-management-table > .admin-management-table__head,
.admin-shell .admin-management-table > .admin-management-table__row {
  width: 100%;
  box-sizing: border-box;
}

/* 姓名和普通文本完整显示，行高随内容增长。 */
.admin-shell .admin-management-table__cell--name,
.admin-shell .admin-management-table .admin-management-table__row > .admin-management-table__cell--name > strong,
.admin-shell .admin-management-table__row > .admin-management-table__cell:not(.admin-management-table__cell--action) {
  max-width: 100% !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  line-height: 1.45;
}

.admin-shell .admin-management-table__cell--action,
.admin-shell .admin-management-table__cell--action .button,
.admin-shell .admin-management-table .pill,
.admin-shell .admin-management-table .badge {
  white-space: nowrap !important;
}

/* 首页四列表格单独分配空间，避免被其他页面的列数规则覆盖。 */
.admin-shell .admin-management-table--overview-doctor > .admin-management-table__head,
.admin-shell .admin-management-table--overview-doctor > .admin-management-table__row {
  grid-template-columns:
    minmax(140px, 1.15fr)
    minmax(90px, 0.75fr)
    minmax(200px, 1.8fr)
    104px !important;
  gap: 12px !important;
  min-width: 0 !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.admin-shell .admin-management-table--overview-record > .admin-management-table__head,
.admin-shell .admin-management-table--overview-record > .admin-management-table__row {
  grid-template-columns:
    minmax(120px, 1fr)
    minmax(180px, 1.8fr)
    minmax(140px, 1.15fr)
    90px !important;
  gap: 12px !important;
  min-width: 0 !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* 表单控件始终落在右侧工作区内部。 */
.admin-shell .form-grid,
.admin-shell .field,
.admin-shell .field input,
.admin-shell .field textarea,
.admin-shell .field select {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 760px) {
  .admin-shell .form-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .admin-shell .admin-management-table--overview-doctor > .admin-management-table__head,
  .admin-shell .admin-management-table--overview-doctor > .admin-management-table__row,
  .admin-shell .admin-management-table--overview-record > .admin-management-table__head,
  .admin-shell .admin-management-table--overview-record > .admin-management-table__row {
    min-width: 680px !important;
  }
}

/* ── 后台登录页背景图（动态由 custom-fix.js 设置 --wb-login-bg） ── */
body.admin-login-page {
  background-image: var(--wb-login-bg, none) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  background-color: #0f172a !important;
}
body.admin-login-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 0;
}
body.admin-login-page > * {
  position: relative;
  z-index: 1;
}

/* Vue 登录页有自己的全屏背景容器，必须在这一层显示上传图片。 */
body.admin-login-page .app-shell--admin-login,
body.admin-login-page .app-main--admin-login,
body.admin-login-page .admin-login-page__content {
  background: transparent !important;
}

body.admin-login-page div.admin-login-page {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.18)),
    var(--wb-login-bg, url('/admin-login-bg.jpg')) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #0f172a !important;
}

/* ── 系统设置：后台登录背景图 ── */
.wb-login-bg-settings {
  overflow: hidden;
}

.wb-login-bg-settings__layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.35fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.wb-login-bg-settings__preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 220px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px dashed #c7d4e5;
  border-radius: 8px;
  background: #f8fafc;
}

.wb-login-bg-settings__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wb-login-bg-settings__empty {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 24px;
  color: #64748b;
  text-align: center;
}

.wb-login-bg-settings__empty[hidden] {
  display: none;
}

.wb-login-bg-settings__empty strong {
  color: #334155;
  font-size: 0.94rem;
}

.wb-login-bg-settings__empty span {
  font-size: 0.8rem;
}

.wb-login-bg-settings__pending {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
}

.wb-login-bg-settings__controls {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.wb-login-bg-settings__status {
  min-height: 42px;
  padding: 10px 12px;
  border-left: 3px solid #94a3b8;
  background: #f8fafc;
  color: #475569;
  font-size: 0.84rem;
  line-height: 1.55;
}

.wb-login-bg-settings__status.is-ready {
  border-left-color: #2563eb;
}

.wb-login-bg-settings__status.is-working {
  border-left-color: #d97706;
  background: #fffbeb;
  color: #92400e;
}

.wb-login-bg-settings__status.is-success {
  border-left-color: #15803d;
  background: #f0fdf4;
  color: #166534;
}

.wb-login-bg-settings__status.is-error {
  border-left-color: #dc2626;
  background: #fef2f2;
  color: #991b1b;
}

.wb-login-bg-settings__file {
  min-height: 20px;
  margin: 0;
  overflow-wrap: anywhere;
  color: #475569;
  font-size: 0.8rem;
  line-height: 1.5;
}

.wb-login-bg-settings__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.wb-login-bg-settings__choose {
  position: relative;
  overflow: hidden;
}

.wb-login-bg-settings__choose input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.wb-login-bg-settings__choose:has(input:disabled) {
  opacity: 0.6;
  cursor: not-allowed !important;
}

.wb-login-bg-settings__choose input:disabled {
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .wb-login-bg-settings__layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .wb-login-bg-settings > .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .wb-login-bg-settings > .section-heading > div {
    min-width: 0;
  }

  .wb-login-bg-settings__preview {
    min-height: 180px;
  }

  .wb-login-bg-settings__actions {
    align-items: stretch;
  }

  .wb-login-bg-settings__actions .button {
    flex: 1 1 calc(50% - 4px);
  }
}

/* ===== 后台全部模块布局契约 ===== */

/* 只允许表格自身横向滚动，右侧工作区和卡片不再扩大页面宽度。 */
.admin-shell .admin-body,
.admin-shell .admin-content,
.admin-shell .admin-main,
.admin-shell .admin-main__body,
.admin-shell .panel-card,
.admin-shell .settings-page,
.admin-shell .settings-section,
.admin-shell .admin-sheet__panel,
.admin-shell .modal-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.admin-shell .admin-management-table,
.admin-shell .account-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-inline: contain;
}

/* 恢复组件原本的网格语义，阻止运行时或旧缓存把数据行改成 flex。 */
.admin-shell .admin-management-table > .admin-management-table__head,
.admin-shell .admin-management-table > .admin-management-table__row {
  display: grid !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100%;
  box-sizing: border-box;
}

.admin-shell .admin-management-table > .admin-management-table__head > span,
.admin-shell .admin-management-table > .admin-management-table__row > .admin-management-table__cell {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.admin-shell .admin-management-table > .admin-management-table__head > span {
  white-space: normal !important;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.admin-shell .admin-management-table > .admin-management-table__row > .admin-management-table__cell:not(.admin-management-table__cell--action),
.admin-shell .admin-management-table > .admin-management-table__row > .admin-management-table__cell--name,
.admin-shell .admin-management-table > .admin-management-table__row > .admin-management-table__cell--name > strong {
  display: block;
  width: 100%;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  line-height: 1.45;
}

.admin-shell .admin-management-table > .admin-management-table__row > .admin-management-table__cell--action {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box;
}

.admin-shell .admin-management-table__cell--action > .button,
.admin-shell .admin-management-table__cell--action > a,
.admin-shell .account-table__action > .button,
.admin-shell .account-table__action > a {
  flex: 0 0 auto;
  min-width: 54px;
  margin: 0 !important;
  white-space: nowrap !important;
}

/* 总后台：工作台四列表格。 */
.admin-shell .admin-management-table--overview-doctor > .admin-management-table__head,
.admin-shell .admin-management-table--overview-doctor > .admin-management-table__row {
  grid-template-columns:
    minmax(160px, 1.2fr)
    minmax(100px, 0.8fr)
    minmax(260px, 1.8fr)
    110px !important;
  min-width: 680px !important;
}

.admin-shell .admin-management-table--overview-record > .admin-management-table__head,
.admin-shell .admin-management-table--overview-record > .admin-management-table__row {
  grid-template-columns:
    minmax(150px, 1fr)
    minmax(220px, 1.6fr)
    140px
    90px !important;
  min-width: 640px !important;
}

/* 总后台：品牌管理和品牌额度共用十列结构。 */
.admin-shell .admin-management-table--brand-admin > .admin-management-table__head,
.admin-shell .admin-management-table--brand-admin > .admin-management-table__row {
  grid-template-columns:
    72px
    minmax(180px, 1.3fr)
    minmax(110px, 0.8fr)
    minmax(128px, 0.9fr)
    minmax(120px, 0.9fr)
    minmax(176px, 1.1fr)
    70px
    70px
    70px
    300px !important;
  min-width: 1400px !important;
}

/* 总后台：门店管理和门店额度共用八列结构。 */
.admin-shell .admin-management-table--store-admin > .admin-management-table__head,
.admin-shell .admin-management-table--store-admin > .admin-management-table__row {
  grid-template-columns:
    64px
    minmax(180px, 1.4fr)
    minmax(120px, 0.9fr)
    minmax(140px, 1fr)
    minmax(120px, 0.9fr)
    minmax(110px, 0.85fr)
    minmax(176px, 1.1fr)
    320px !important;
  min-width: 1360px !important;
}

/* 总后台：医生、待分配记录和诊断报告。 */
.admin-shell .admin-management-table--doctor-admin > .admin-management-table__head,
.admin-shell .admin-management-table--doctor-admin > .admin-management-table__row {
  grid-template-columns:
    90px
    minmax(170px, 1.2fr)
    minmax(130px, 0.9fr)
    minmax(150px, 1fr)
    minmax(220px, 1.4fr)
    minmax(160px, 1fr)
    270px !important;
  min-width: 1280px !important;
}

.admin-shell .admin-management-table--record-admin > .admin-management-table__head,
.admin-shell .admin-management-table--record-admin > .admin-management-table__row {
  grid-template-columns:
    minmax(160px, 1.1fr)
    minmax(220px, 1.5fr)
    minmax(140px, 0.95fr)
    minmax(130px, 0.9fr)
    minmax(180px, 1.1fr)
    110px !important;
  min-width: 1100px !important;
}

/* 品牌和门店子后台使用各自的真实列数。 */
.admin-shell .admin-management-table--brand-store > .admin-management-table__head,
.admin-shell .admin-management-table--brand-store > .admin-management-table__row {
  grid-template-columns:
    minmax(160px, 1.2fr)
    100px
    110px
    minmax(130px, 0.95fr)
    minmax(130px, 0.95fr)
    100px
    70px
    70px
    110px !important;
  min-width: 1120px !important;
}

.admin-shell .admin-management-table--brand-doctor > .admin-management-table__head,
.admin-shell .admin-management-table--brand-doctor > .admin-management-table__row,
.admin-shell .admin-management-table--store-doctor > .admin-management-table__head,
.admin-shell .admin-management-table--store-doctor > .admin-management-table__row,
.admin-shell .admin-management-table--store-record > .admin-management-table__head,
.admin-shell .admin-management-table--store-record > .admin-management-table__row {
  grid-template-columns:
    minmax(180px, 1.35fr)
    minmax(130px, 0.9fr)
    minmax(150px, 1fr)
    minmax(180px, 1.2fr)
    110px !important;
  min-width: 920px !important;
}

.admin-shell .admin-management-table--overview-store > .admin-management-table__head,
.admin-shell .admin-management-table--overview-store > .admin-management-table__row {
  grid-template-columns:
    minmax(180px, 1.3fr)
    minmax(130px, 0.9fr)
    minmax(130px, 0.9fr)
    100px
    110px !important;
  min-width: 900px !important;
}

.admin-shell .admin-management-table--overview-store-record > .admin-management-table__head,
.admin-shell .admin-management-table--overview-store-record > .admin-management-table__row {
  grid-template-columns:
    minmax(150px, 1.2fr)
    minmax(150px, 1fr)
    minmax(130px, 0.9fr)
    minmax(130px, 0.9fr)
    110px !important;
  min-width: 840px !important;
}

/* 额度单元格固定为输入框和保存按钮两列，禁止越界进入统计或操作列。 */
.admin-shell .admin-management-table--brand-admin > .admin-management-table__row > .admin-management-table__cell:nth-child(6),
.admin-shell .admin-management-table--store-admin > .admin-management-table__row > .admin-management-table__cell:nth-child(7) {
  display: grid !important;
  grid-template-columns: 72px minmax(72px, 1fr);
  align-items: center;
  gap: 8px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.admin-shell .admin-management-table--brand-admin > .admin-management-table__row > .admin-management-table__cell:nth-child(6) .account-table__input,
.admin-shell .admin-management-table--store-admin > .admin-management-table__row > .admin-management-table__cell:nth-child(7) .account-table__input {
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.admin-shell .admin-management-table--brand-admin > .admin-management-table__row > .admin-management-table__cell:nth-child(6) .button,
.admin-shell .admin-management-table--store-admin > .admin-management-table__row > .admin-management-table__cell:nth-child(7) .button {
  width: 100%;
  min-width: 72px;
  margin: 0 !important;
  padding-right: 7px;
  padding-left: 7px;
}

/* 普通账号表和字典表保留 table 语义，通过外层滚动访问完整字段。 */
.admin-shell .account-table:not(.dict-table) {
  min-width: 980px;
}

.admin-shell .dict-table {
  min-width: 1180px;
}

.admin-shell .account-table__action {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: max-content;
}

.admin-shell .account-table__input {
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

/* 分型结果直接逐页展示，兼容微信 H5，并保持全站防嵌入安全策略。 */
.pdf-viewer-card__images {
  width: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pdf-viewer-card__image {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.pdf-viewer-card__image + .pdf-viewer-card__image {
  border-top: 2px solid #edf1f5;
}

/* 配置页、注册页、编辑器和弹层必须留在右侧内容区内。 */
.admin-shell .form-grid,
.admin-shell .settings-grid,
.admin-shell .settings-admin-grid,
.admin-shell .settings-preview-grid,
.admin-shell .dict-form-layout,
.admin-shell .dict-form-main,
.admin-shell .dict-form-sidebar,
.admin-shell .dict-nested-item__fields,
.admin-shell .doctor-register-permissions,
.admin-shell .field,
.admin-shell .field input,
.admin-shell .field textarea,
.admin-shell .field select,
.admin-shell .dict-input,
.admin-shell .dict-cell-textarea {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.admin-shell .admin-toolbar,
.admin-shell .action-row,
.admin-shell .section-heading__actions,
.admin-shell .modal-card__actions,
.admin-shell .settings-logo-actions,
.admin-shell .settings-savebar {
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .admin-shell .settings-grid,
  .admin-shell .settings-admin-grid,
  .admin-shell .settings-preview-grid,
  .admin-shell .dict-form-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  .pdf-viewer-card {
    gap: 12px;
    padding: 12px;
  }

  .pdf-viewer-card__head {
    align-items: center;
    gap: 12px;
  }

  .pdf-viewer-card__head h1 {
    font-size: 1.35rem;
  }

  .admin-shell .form-grid,
  .admin-shell .dict-nested-item__fields {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .admin-shell .section-heading,
  .admin-shell .admin-page-header,
  .admin-shell .settings-savebar {
    align-items: stretch;
  }

  .admin-shell .admin-page-header,
  .admin-shell .settings-savebar {
    flex-direction: column;
  }
}

/* ===== 四角色后台业务模块共用满宽工作区 ===== */

/*
 * 业务页优先使用侧栏以外的全部宽度。表格原有最小列宽继续由自身
 * 滚动容器承载，不影响个人设置、系统设置、弹窗或登录页。
 */
html[data-wb-wide-admin-workspace] .admin-shell .admin-content {
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-self: stretch;
}

html[data-wb-wide-admin-workspace] .admin-shell :is(
  .admin-main,
  .admin-main__body,
  section.panel-card
) {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  justify-self: stretch;
  box-sizing: border-box;
}

html[data-wb-wide-admin-workspace] .admin-shell :is(
  .admin-management-table,
  .account-table-wrap,
  .doctor-visit-table,
  .doctor-visit-list
) {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* ===== 全站按钮与导航顶部进度反馈 ===== */
.wb-global-progress {
  position: fixed;
  z-index: 2147483647;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 3px;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease, visibility 0s linear 160ms;
}

.wb-global-progress--active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.wb-global-progress__bar {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--wb-accent, var(--primary, #1677ff));
  box-shadow:
    0 0 7px rgba(var(--wb-accent-rgb, 22, 119, 255), 0.7),
    0 1px 2px rgba(var(--wb-accent-rgb, 22, 119, 255), 0.35);
  transition: transform 190ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.wb-global-progress__bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 100%;
  opacity: 0.9;
  transform: rotate(2deg) translateY(-1px);
  transform-origin: right center;
  box-shadow: 0 0 12px var(--wb-accent, var(--primary, #1677ff));
}

.wb-global-progress--complete .wb-global-progress__bar {
  transition-duration: 140ms;
}

@media (prefers-reduced-motion: reduce) {
  .wb-global-progress,
  .wb-global-progress__bar {
    transition-duration: 1ms !important;
  }

  .wb-global-progress__bar {
    box-shadow: none;
  }

  .wb-global-progress__bar::after {
    display: none;
  }
}

/* ===== 参考系统式侧栏双折叠控制器 ===== */
.admin-shell .admin-sidebar-edge-toggle {
  left: calc(var(--admin-sidebar-width) - 2px);
  z-index: 1002;
  width: 24px;
  min-width: 24px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  color: #606266;
  background: #fff;
  border: 1px solid rgba(5, 5, 5, 0.06);
  border-radius: 4px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  box-shadow: none;
  transition:
    left 280ms ease,
    opacity 120ms ease,
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 120ms ease;
}

.admin-shell.wb-sidebar-controls-active .admin-sidebar-edge-toggle {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.admin-shell .admin-sidebar-edge-toggle svg {
  display: none;
}

.admin-shell .admin-sidebar-edge-toggle::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m4.836 12 6.207 6.207 1.414-1.414L7.664 12l4.793-4.793-1.414-1.414zm5.65 0 6.207 6.207 1.414-1.414L13.314 12l4.793-4.793-1.414-1.414z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m4.836 12 6.207 6.207 1.414-1.414L7.664 12l4.793-4.793-1.414-1.414zm5.65 0 6.207 6.207 1.414-1.414L13.314 12l4.793-4.793-1.414-1.414z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  transition: transform 180ms ease;
}

.admin-shell--sidebar-collapsed .admin-sidebar-edge-toggle::before {
  transform: rotateY(180deg);
}

.admin-shell .admin-sidebar-edge-toggle:hover {
  color: var(--wb-accent, var(--primary, #1677ff));
  background: #fff;
  border-color: rgba(22, 119, 255, 0.3);
  box-shadow: none;
}

.admin-shell .admin-sidebar-edge-toggle:focus-visible {
  color: var(--wb-accent, var(--primary, #1677ff));
  outline: 2px solid var(--wb-accent, var(--primary, #1677ff));
  outline-offset: 2px;
}

.admin-shell .admin-sidebar-edge-toggle:active {
  transform: translate(-50%, -50%) scale(0.94);
}

.admin-shell .admin-sidebar .admin-nav {
  padding-bottom: 52px;
}

.admin-shell .wb-sidebar-bottom-toggle {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: var(--admin-sidebar-width);
  min-width: 0;
  height: 40px;
  min-height: 40px;
  padding: 0 0 0 16px;
  color: rgba(255, 255, 255, 0.68);
  background: #001529;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: 0 0 6px -3px var(--wb-accent, var(--primary, #409eff));
  transition:
    width 280ms ease,
    color 160ms ease,
    background-color 160ms ease;
}

.admin-shell .wb-sidebar-bottom-toggle:hover {
  color: #fff;
  background: #061d33;
}

.admin-shell .wb-sidebar-bottom-toggle:focus-visible {
  color: #fff;
  outline: 2px solid var(--wb-accent, var(--primary, #409eff));
  outline-offset: -2px;
}

.admin-shell .wb-sidebar-bottom-toggle svg {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 180ms ease;
}

.admin-shell--sidebar-collapsed .wb-sidebar-bottom-toggle svg {
  transform: rotateY(180deg);
}

@media (min-width: 1025px) {
  html[data-wb-navigation='compact'] .admin-shell .wb-sidebar-bottom-toggle {
    width: 76px;
  }

  html[data-wb-navigation='top'] .admin-shell .wb-sidebar-bottom-toggle {
    display: none !important;
  }

  html[data-wb-navigation='top'] .admin-shell .admin-sidebar .admin-nav {
    padding-bottom: 0;
  }
}

@media (max-width: 1024px) {
  .admin-shell .admin-sidebar-edge-toggle,
  .admin-shell .wb-sidebar-bottom-toggle {
    display: none !important;
  }

  .admin-shell .admin-sidebar .admin-nav {
    padding-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-shell .admin-sidebar-edge-toggle,
  .admin-shell .admin-sidebar-edge-toggle::before,
  .admin-shell .wb-sidebar-bottom-toggle,
  .admin-shell .wb-sidebar-bottom-toggle svg {
    transition-duration: 1ms !important;
  }
}
