/* 项目中心、基础设置和项目内部共用的导航增强。业务页面样式不在本文件修改。 */
#app .project-workbench .project-side-global-nav {
  display: grid;
  flex: 0 0 auto;
  gap: 3px;
  max-height: none;
  overflow: visible;
  padding: 8px 10px 6px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

#app .project-workbench .project-side-global-group {
  display: grid;
  gap: 2px;
  min-width: 0;
}

#app .project-workbench .project-side-global-toggle {
  min-width: 0;
  justify-content: flex-start;
}

#app .project-workbench .project-side-global-toggle b {
  flex: 1 1 auto;
  font: inherit;
}

#app .project-workbench .project-side-global-toggle i {
  flex: 0 0 auto;
  color: currentColor;
  font-size: 13px;
  font-style: normal;
}

#app .project-workbench .project-side-global-body {
  display: grid;
  gap: 2px;
  padding-left: 8px;
}

#app .project-workbench .project-side-global-body[hidden] {
  display: none;
}

#app .project-workbench .project-side-global-child,
#app .project-workbench .project-side-global-utility {
  min-height: 32px;
  padding-left: 24px;
  font-size: 13px;
  font-weight: 400;
}

#app .project-workbench .project-side-global-child > span,
#app .project-workbench .project-side-global-utility > span {
  font-size: 13px;
}

#app .project-workbench .project-side-account {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  margin-top: auto;
  padding: 10px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

#app .project-workbench .project-side-account-trigger {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

#app .project-workbench .project-side-account-trigger:hover,
#app .project-workbench .project-side-account-trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, .12);
}

#app .project-workbench .project-side-account-mark {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

#app .project-workbench .project-side-account-copy {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 3px;
}

#app .project-workbench .project-side-account-copy b {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#app .project-workbench .project-side-account-copy small {
  color: rgba(255, 255, 255, .74);
  font-size: 11px;
}

#app .project-workbench .project-side-account-copy small i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #39d98a;
  vertical-align: 1px;
}

#app .project-workbench .project-side-account-chevron {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, .78);
  font-style: normal;
}

#app .project-workbench .project-side-account-menu {
  position: absolute;
  right: 16px;
  bottom: calc(100% - 4px);
  left: 16px;
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid #d9e3ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 46, 88, .18);
}

#app .project-workbench .project-side-account-menu[hidden] {
  display: none;
}

#app .project-workbench .project-side-account-menu-item {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #294566;
  font: 13px/1 "Microsoft YaHei", "Segoe UI", sans-serif;
  text-align: left;
  cursor: pointer;
}

#app .project-workbench .project-side-account-menu-item:hover {
  background: #eef5ff;
  color: #1769e8;
}

#app .project-workbench .project-side-account-menu-item.disabled,
#app .project-workbench .project-side-account-menu-item:disabled {
  color: #a4afbd;
  cursor: not-allowed;
}

#app .project-workbench.project-list-workbench .project-side-nav {
  flex: 0 0 auto;
  min-height: 0;
}

#app .project-workbench:not(.v5-project-upstream-contract) .project-side {
  min-height: 0;
  overflow: hidden;
}

#app .project-workbench:not(.v5-project-upstream-contract) .project-side-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

#app .project-workbench.project-list-workbench .project-side-nav {
  flex: 0 0 auto;
  overflow: visible;
}

/* 对上合同 V5 侧栏是浅色容器，沿用同一套结构但使用浅色交互色。 */
#app .project-workbench.v5-project-upstream-contract .project-side-global-nav {
  margin-top: auto;
  border-top-color: #dce5f0;
}

#app .project-workbench.v5-project-upstream-contract .project-side-item {
  color: #435169;
  background: transparent;
  font: 600 13px/1 "Microsoft YaHei", sans-serif;
}

#app .project-workbench.v5-project-upstream-contract .project-side-item:hover,
#app .project-workbench.v5-project-upstream-contract .project-side-item.active {
  color: #1769e8;
  background: #eaf2ff;
}

#app .project-workbench.v5-project-upstream-contract .project-side-account {
  border-top-color: #dce5f0;
}

#app .project-workbench.v5-project-upstream-contract .project-side-account-trigger {
  color: #243852;
}

#app .project-workbench.v5-project-upstream-contract .project-side-account-trigger:hover,
#app .project-workbench.v5-project-upstream-contract .project-side-account-trigger[aria-expanded="true"] {
  background: #f5f8fd;
}

#app .project-workbench.v5-project-upstream-contract .project-side-account-mark {
  border-color: #9fb4d0;
  color: #1769e8;
}

#app .project-workbench.v5-project-upstream-contract .project-side-account-copy b {
  color: #243852;
}

#app .project-workbench.v5-project-upstream-contract .project-side-account-copy small,
#app .project-workbench.v5-project-upstream-contract .project-side-account-chevron {
  color: #718099;
}

@media (max-height: 760px) {
  #app .project-workbench .project-side-global-body {
    gap: 0;
  }

  #app .project-workbench .project-side-global-child,
  #app .project-workbench .project-side-global-utility {
    min-height: 28px;
  }

  #app .project-workbench .project-side-account {
    padding-top: 6px;
    padding-bottom: 8px;
  }
}

/* 两版授权：经营辅助始终显示专业版标识，未开通时在点击入口后统一说明。 */
#app .hcr-vip-badge,
.hcr-professional-notice .hcr-vip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 16px;
  padding: 0 5px;
  border-radius: 8px;
  background: linear-gradient(135deg, #efad37, #d67a10);
  color: #fff;
  font: 700 8px/1 "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  box-sizing: border-box;
  flex: 0 0 auto;
  white-space: nowrap;
}

.hcr-professional-notice {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 35, 60, .34);
}

.hcr-professional-notice-card {
  position: relative;
  width: min(390px, 100%);
  padding: 28px;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(25, 54, 91, .2);
  text-align: center;
}

.hcr-professional-notice-card h2 {
  margin: 14px 0 8px;
  color: #203a5c;
  font-size: 18px;
}

.hcr-professional-notice-card p {
  margin: 0 0 20px;
  color: #687a92;
  font-size: 13px;
  line-height: 1.7;
}

.hcr-professional-notice-card h2{font-weight:400}
.hcr-professional-notice-card p{font-weight:400}
.hcr-professional-notice-card .btn.primary{height:34px;min-height:34px;padding:0 13px;border:0;border-radius:5px;background:linear-gradient(180deg,#163e98,#0f57b8);color:#fff;font-size:13px;font-weight:400;line-height:1;box-shadow:none}

.hcr-professional-notice-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #7a899d;
  font-size: 22px;
  cursor: pointer;
}

#app .license-warning {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid #f2d39a;
  border-radius: 7px;
  background: #fff8e9;
  color: #88550b;
  font-size: 13px;
}

/* 授权状态复用全局工作台外壳，仅调整信息卡的内部排版。 */
#app .license-status-page .license-page-head {
  margin: 27px 0 18px;
}

#app .license-status-page .license-page-head .page-title {
  margin: 0 0 8px;
  color: #171b24;
  font-size: 27px;
  font-weight: 400;
}

#app .license-status-page .license-page-head .page-sub {
  margin: 0;
  color: #7c8798;
  font-size: 13px;
}

#app .license-status-page .license-status-panel {
  padding: 0;
  overflow: hidden;
  border: 1px solid #e2e8f1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 16px #1949800d;
}

#app .license-status-page .license-status-panel-head {
  display: flex;
  min-height: 88px;
  padding: 20px 22px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e3eaf3;
}

#app .license-status-page .license-status-panel-head h2 {
  margin: 0;
  color: #171b24;
  font-size: 18px;
  font-weight: 400;
}

#app .license-status-page .license-status-panel-head p {
  margin: 7px 0 0;
  color: #7c8798;
  font-size: 13px;
}

#app .license-status-page .license-status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

#app .license-status-page .license-status-item {
  display: grid;
  min-height: 104px;
  padding: 20px 22px;
  align-content: center;
  gap: 9px;
  border-right: 1px solid #e3eaf3;
}

#app .license-status-page .license-status-item:last-child {
  border-right: 0;
}

#app .license-status-page .license-status-item span {
  color: #7c8798;
  font-size: 13px;
}

#app .license-status-page .license-status-item b {
  color: #173a70;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

#app .license-status-page .license-status-item small {
  color: #8a97a8;
  font-size: 12px;
  line-height: 1.5;
}

#app .license-status-page .license-warning {
  margin: 0 22px 20px;
}

@media (max-width: 980px) {
  #app .license-status-page .license-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #app .license-status-page .license-status-item:nth-child(2n) {
    border-right: 0;
  }

  #app .license-status-page .license-status-item {
    border-bottom: 1px solid #e3eaf3;
  }

  #app .license-status-page .license-status-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  #app .license-status-page .license-status-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  #app .license-status-page .license-status-grid {
    grid-template-columns: 1fr;
  }

  #app .license-status-page .license-status-item,
  #app .license-status-page .license-status-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #e3eaf3;
  }

  #app .license-status-page .license-status-item:last-child {
    border-bottom: 0;
  }
}

/* 账户服务页沿用基础设置页的标准按钮规格。 */
#app .account-service-shell .account-service-empty .btn,
#app .account-service-shell .account-feedback-actions .btn,
#app .account-service-shell .account-service-section-head .btn,
#app .account-service-shell .account-service-activation .btn,
#app .account-service-shell .account-service-cloud-actions .btn,
#app .account-service-shell .account-service-cloud-data .form-actions .btn {
  display: inline-flex;
  min-height: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid #d8e0eb;
  border-radius: 5px;
  background: #fff;
  color: #425168;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  box-shadow: none;
  white-space: nowrap;
}

#app .account-service-shell .account-service-empty .btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

#app .account-service-shell .account-feedback-actions .btn.primary,
#app .account-service-shell .account-service-section-head .btn.primary,
#app .account-service-shell .account-service-activation .btn.primary,
#app .account-service-shell .account-service-cloud-actions .btn.primary,
#app .account-service-shell .account-service-cloud-data .form-actions .btn.primary {
  border-color: #0f57b8;
  background: linear-gradient(180deg, #163e98, #0f57b8);
  color: #fff;
}

#app .account-service-safety-head {
  align-items: center;
  min-height: 60px;
}

#app .account-service-safety-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
}

#app .account-service-safety-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

#app .account-service-safety {
  min-width: 0;
}

#app .account-service-section.account-service-safety-records {
  overflow: hidden;
  padding: 0;
  border-radius: 8px;
  box-shadow: none;
}

#app .account-service-safety-records .account-service-safety-head {
  min-height: 60px;
  align-items: center;
  padding: 0 24px;
}

#app .account-service-safety-records .account-service-cloud-data {
  margin: 14px 20px 0;
}

#app .account-service-safety-records .account-service-table {
  margin-top: 0;
  border: 0;
  border-radius: 0;
}

#app .account-service-backup-list table {
  min-width: 1120px;
  table-layout: fixed;
}

#app .account-service-backup-list th,
#app .account-service-backup-list td {
  height: 48px;
  padding: 0 10px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

#app .account-service-backup-list tbody td:nth-child(4) {
  text-align: center !important;
}

#app .account-service-backup-list thead th {
  height: 44px;
  background: #f0f4fa;
  color: #294a77;
}

#app .account-service-backup-list th:nth-child(1) { width: 8%; }
#app .account-service-backup-list th:nth-child(2) { width: 18%; }
#app .account-service-backup-list th:nth-child(3) { width: 9.5%; }
#app .account-service-backup-list th:nth-child(4) { width: 10.5%; }
#app .account-service-backup-list th:nth-child(5) { width: 9%; }
#app .account-service-backup-list th:nth-child(6) { width: 7.5%; }
#app .account-service-backup-list th:nth-child(7) { width: 11%; }
#app .account-service-backup-list th:nth-child(8) { width: 9%; }
#app .account-service-backup-list th:nth-child(9) { width: 17.5%; }

#app .account-service-backup-list tbody tr:hover td {
  background: #f8fbff;
}

#app .account-service-safety-records > .core-table-pagination {
  margin-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-top: 1px solid #d8e3ef;
  border-radius: 0;
  min-height: 52px;
  padding: 8px 13px;
  background: #f8fafd;
}

/* 数据安全页统一使用常规字重，避免通用表格、按钮规则覆盖页面视觉。 */
#app .account-service-section table thead th,
#app .account-service-section .text-btn,
#app .account-service-section .btn,
#app .account-service-section b,
#app .account-service-section strong {
  font-weight: 400;
}

#app .account-service-safety > .account-safety-overview {
  display: grid;
  grid-template-columns: minmax(160px, 184px) minmax(0, 1fr);
  min-height: 80px;
  margin-top: 18px;
  border-top: 1px solid #d8e3ef;
  border-bottom: 1px solid #d8e3ef;
  background: #f9fbfd;
}

#app .account-safety-overview-head {
  display: flex;
  min-width: 0;
  justify-content: center;
  flex-direction: column;
  padding: 0 16px;
}

#app .account-safety-overview-head h3 {
  margin: 0;
  color: #173a70;
  font-size: 16px;
  font-weight: 400;
}

#app .account-safety-overview-head p {
  margin: 4px 0 0;
  color: #8a99ae;
  font-size: 11px;
}

#app .account-safety-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
}

#app .account-safety-summary > div {
  display: flex;
  min-width: 0;
  min-height: 78px;
  justify-content: center;
  flex-direction: column;
  padding: 0 16px;
  border-left: 1px solid #e0e8f2;
}

#app .account-safety-summary > div + div {
  border-left: 1px solid #e0e8f2;
}

#app .account-safety-summary span,
#app .account-safety-summary small,
#app .account-safety-path-grid span,
#app .account-safety-path-grid small {
  display: block;
  color: #7b8da8;
  font-size: 12px;
  line-height: 1.5;
}

#app .account-safety-summary b {
  display: block;
  margin: 3px 0 1px;
  overflow: hidden;
  color: #173a70;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#app .account-service-safety-help {
  margin-top: 13px;
  padding-top: 0;
  border-top: 0;
  border-bottom: 1px solid #e3eaf3;
}

#app .account-service-safety-help summary {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  color: #345373;
  list-style: none;
}

#app .account-service-safety-help summary::-webkit-details-marker {
  display: none;
}

#app .account-service-safety-help summary::after {
  content: "展开";
  color: #7c8da5;
  font-size: 12px;
}

#app .account-service-safety-help[open] summary::after {
  content: "收起";
}

#app .account-safety-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

#app .account-safety-path-grid > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #e2e9f2;
  border-radius: 7px;
  background: #fff;
}

#app .account-safety-path-grid .account-safety-path {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: #506886;
}

@media (max-width: 980px) {
  #app .account-service-safety > .account-safety-overview {
    grid-template-columns: 1fr;
  }

  #app .account-safety-overview-head {
    min-height: 60px;
  }

  #app .account-safety-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #e0e8f2;
  }

  #app .account-safety-summary > div:nth-child(odd) {
    border-left: 0;
  }

  #app .account-safety-summary > div:nth-child(n + 3) {
    border-top: 1px solid #e2e9f2;
  }
}

@media (max-width: 620px) {
  #app .account-safety-summary,
  #app .account-safety-path-grid {
    grid-template-columns: 1fr;
  }

  #app .account-safety-summary > div,
  #app .account-safety-summary > div + div,
  #app .account-safety-summary > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #e2e9f2;
  }

  #app .account-safety-summary > div:first-child {
    border-top: 0;
  }
}

/* 用户与权限页面：沿用统一工作台，列表只保留一个业务容器。 */
#app .workbench.user-management-page .user-management-list {
  min-width: 0;
}

#app .workbench.user-management-page .user-list-panel > .settings-title {
  justify-content: space-between;
}

#app .workbench.user-management-page .settings-add-button {
  display: inline-flex;
  height: 34px;
  min-height: 34px;
  padding: 0 13px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(180deg, #163e98, #0f57b8);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
}

#app .workbench.user-management-page .settings-add-button:hover {
  background: linear-gradient(180deg, #123889, #0b4da6);
}

#app .workbench.user-management-page .settings-add-button:focus-visible {
  outline: 2px solid rgba(23, 105, 232, .35);
  outline-offset: 2px;
}

#app .workbench.user-management-page .settings-entry-modal {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid #d7e2ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(20, 42, 78, .22);
}

#app .workbench.user-management-page .settings-entry-modal-head {
  display: flex;
  min-height: 58px;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e4e9f2;
}

#app .workbench.user-management-page .settings-entry-modal-head h2 {
  margin: 0;
  color: #171b24;
  font-size: 18px;
  font-weight: 400;
}

#app .workbench.user-management-page .settings-entry-fields {
  display: grid;
  padding: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

#app .workbench.user-management-page .settings-entry-modal .input {
  min-height: 36px;
  border: 1px solid #d7e0ec;
  border-radius: 5px;
  color: #171b24;
  font-family: inherit;
  font-size: 13px;
  box-shadow: none;
}

#app .workbench.user-management-page .settings-entry-modal .settings-actions {
  display: flex;
  margin: 0;
  padding: 15px 20px 18px;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid #e4e9f2;
}

#app .workbench.user-management-page .settings-entry-modal .settings-actions .btn {
  height: 34px;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid #d8e0eb;
  border-radius: 5px;
  background: #fff;
  color: #425168;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  box-shadow: none;
}

#app .workbench.user-management-page .settings-entry-modal .settings-actions .btn.primary {
  border: 0;
  background: linear-gradient(180deg, #163e98, #0f57b8);
  color: #fff;
}

#app .workbench.user-management-page .project-workspace,
#app .workbench.user-management-page .project-workspace * {
  font-weight: 400 !important;
}

@media (max-width: 680px) {
  #app .workbench.user-management-page .settings-entry-fields {
    grid-template-columns: 1fr;
  }

  #app .workbench.user-management-page .settings-entry-fields > * {
    grid-column: 1 !important;
  }
}

/* 授权与服务：账户菜单进入后使用与基础设置一致的单页页签布局。 */
#app .account-service-page-head {
  margin-top: 27px;
  margin-bottom: 14px;
}

#app .account-service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

#app .account-service-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid #d5e0ef;
  border-radius: 5px;
  background: #fff;
  color: #31527e;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

#app .account-service-tabs button.active {
  border-color: #1457b8;
  background: #1457b8;
  color: #fff;
}

#app .account-service-shell {
  min-width: 0;
}

#app .account-service-cloud {
  margin-top: 14px;
}

#app .account-service-reminder-badge {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  border-radius: 9px;
  background: #d94b45;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
}

#app .account-service-menu-badge {
  flex: 0 0 auto !important;
  width: auto !important;
  margin-left: auto;
}

#app .account-service-menu-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#app .account-service-cloud-reminder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 13px 15px;
  border: 1px solid #f0c98d;
  border-radius: 7px;
  background: #fff8ea;
}

#app .account-service-cloud-reminder b,
#app .account-service-cloud-reminder span {
  display: block;
}

#app .account-service-cloud-reminder b {
  color: #9a5f09;
  font-size: 14px;
}

#app .account-service-cloud-reminder span {
  margin-top: 4px;
  color: #806a49;
  font-size: 12px;
  line-height: 1.6;
}

#app .account-service-activation {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  padding-top: 14px;
  border-top: 0;
}

#app .account-service-activation label {
  color: #526b8e;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

#app .account-service-activation .input {
  min-width: 0;
  min-height: 34px;
  height: 34px;
  padding: 0 11px;
}

#app .account-service-cloud-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
}

#app .account-service-cloud-actions small {
  color: #7b8da8;
  font-size: 12px;
}

#app .account-service-software-update .software-update-action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

#app .account-service-software-update .software-update-actions {
  justify-content: flex-end;
}

#app .account-service-software-update .software-download-state {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 13px 16px;
  border: 1px solid #cddcf0;
  border-radius: 7px;
  background: #f5f8fd;
  color: #234a7d;
}

#app .account-service-software-update .software-download-state.success {
  border-color: #b9dfcf;
  background: #f0faf6;
  color: #15704d;
}

#app .account-service-software-update .software-download-state.error {
  border-color: #efc6c6;
  background: #fff6f6;
  color: #a33b3b;
}

#app .account-service-software-update .software-download-state > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

#app .account-service-software-update .software-download-state span {
  min-width: 0;
  color: inherit;
  font-size: 12px;
  overflow-wrap: anywhere;
  text-align: right;
}

#app .account-service-software-update .software-download-progress-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 54px minmax(110px, auto);
  align-items: center;
  gap: 10px;
}

#app .account-service-software-update .software-download-progress {
  width: 100%;
  height: 10px;
  accent-color: #2468d8;
}

#app .account-service-software-update .software-download-progress-row strong,
#app .account-service-software-update .software-download-progress-row small {
  font-size: 12px;
  white-space: nowrap;
}

#app .account-service-section {
  padding: 22px 24px;
  border: 1px solid #d8e3f0;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(33, 61, 103, .04);
}

#app .account-service-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5ebf3;
}

#app .account-service-section-head h2,
#app .account-service-empty h3,
#app .account-service-migration h3 {
  margin: 0;
  color: #173a70;
  font-size: 18px;
  font-weight: 400;
}

#app .account-service-section-head p,
#app .account-service-empty p,
#app .account-service-note,
#app .account-service-migration li,
#app .account-feedback-result {
  color: #687d9b;
  font-size: 13px;
  line-height: 1.7;
}

#app .account-service-section-head p {
  margin: 5px 0 0;
}

#app .account-service-section-head > .pill {
  font-weight: 400;
}

#app .account-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 4px;
}

#app .account-service-grid > div {
  min-height: 70px;
  padding: 14px 16px 10px 0;
  border-bottom: 1px solid #e5ebf3;
}

#app .account-service-grid > div:not(:nth-child(4n + 1)) {
  padding-left: 16px;
  border-left: 1px solid #e5ebf3;
}

#app .account-service-grid span,
#app .account-service-grid small {
  display: block;
  color: #7b8da8;
  font-size: 12px;
  line-height: 1.5;
}

#app .account-service-grid b {
  display: block;
  margin: 5px 0 2px;
  color: #173a70;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

#app .account-service-warning,
#app .account-service-note {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 5px;
  background: #f5f8fd;
}

#app .account-service-safety-records .account-service-backup-notice {
  margin: 14px 20px;
  padding: 10px 12px;
  border: 1px solid #efd28b;
  border-radius: 5px;
  background: #fff8e6;
  color: #805b16;
  font-size: 13px;
  line-height: 1.6;
}

#app .account-service-empty {
  padding: 34px 8px 18px;
  text-align: center;
}

#app .account-service-empty p {
  max-width: 560px;
  margin: 8px auto 18px;
}

#app .account-service-table {
  margin-top: 14px;
}

#app .account-service-table table {
  width: 100%;
}

#app .account-service-table td[data-backup-actions] {
  overflow: visible;
  white-space: normal;
}

#app .account-service-table td[data-backup-actions] .text-btn {
  margin: 2px 3px;
  white-space: nowrap;
}

.recovery-confirm-backdrop {
  z-index: 220;
  align-items: center;
  justify-items: center;
}

.software-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: rgba(23, 42, 70, .34);
}

.software-confirm-backdrop.software-content-backdrop {
  inset: auto;
  box-sizing: border-box;
}

.software-confirm-modal {
  display: flex;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(10, 35, 88, .25);
}

.software-confirm-modal .simulation-modal-head {
  min-height: 58px;
  flex: 0 0 auto;
  padding: 0 20px;
}

.software-confirm-modal .simulation-modal-head h2 {
  color: #173a70;
  font-size: 18px;
  font-weight: 600;
}

.software-confirm-close {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #71839d;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.software-confirm-close:hover {
  background: #f0f4f9;
  color: #294566;
}

.software-confirm-body {
  min-height: 0;
  padding: 20px;
  overflow: auto;
}

.project-creation-detail-modal .software-confirm-body {
  padding-left: 36px;
}

.software-confirm-message {
  margin: 0;
  color: #425a7d;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-line;
}

.software-confirm-field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.software-confirm-field > span {
  color: #425a7d;
  font-size: 13px;
}

.software-confirm-field textarea {
  min-height: 92px;
  height: auto;
  box-sizing: border-box;
  padding: 12px 14px;
  color: #173a70;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.65;
  caret-color: #173a70;
  resize: vertical;
}

.software-confirm-field textarea.project-creation-rejection-input {
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.6;
  color: #173a70;
  caret-color: #173a70;
}

.software-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}

.software-confirm-actions .btn {
  height: 36px;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 400;
  box-shadow: none;
}

.software-confirm-actions .software-confirm-primary {
  border-color: #0f57b8;
  background: #0f57b8;
  color: #fff;
}

.software-confirm-actions .software-confirm-primary:hover {
  border-color: #0b4da6;
  background: #0b4da6;
}

.software-confirm-actions .software-confirm-danger {
  border-color: #d4473f;
  background: #d4473f;
  color: #fff;
}

.software-confirm-actions .software-confirm-danger:hover {
  border-color: #bd3933;
  background: #bd3933;
}

.software-confirm-backdrop[data-data-connection-actions] .software-confirm-modal {
  width: min(620px, calc(100vw - 32px));
}

.software-confirm-backdrop[data-data-connection-actions] .software-confirm-actions {
  flex-wrap: wrap;
  align-items: center;
}

.software-confirm-backdrop[data-data-connection-actions] .software-confirm-actions .btn {
  flex: 0 0 auto;
  min-width: max-content;
  padding: 0 16px;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .software-confirm-backdrop[data-data-connection-actions] .software-confirm-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .software-confirm-backdrop[data-data-connection-actions] .software-confirm-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .software-confirm-backdrop[data-data-connection-actions] .software-confirm-actions {
    grid-template-columns: 1fr;
  }
}

.recovery-confirm-modal {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  box-shadow: 0 18px 54px rgba(10, 35, 88, .25);
}

.recovery-confirm-modal .simulation-modal-head {
  min-height: 58px;
  padding: 0 20px;
}

.recovery-confirm-modal .simulation-modal-head h2 {
  color: #173a70;
  font-size: 18px;
  font-weight: 600;
}

.recovery-modal-close {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #71839d;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.recovery-modal-close:hover {
  background: #f0f4f9;
  color: #294566;
}

.recovery-confirm-body {
  padding: 20px;
}

.recovery-confirm-message,
.recovery-confirm-note {
  margin: 0;
  color: #425a7d;
  font-size: 13px;
  line-height: 1.7;
}

.recovery-confirm-message {
  padding: 11px 13px;
  border: 1px solid #d8e5f5;
  border-radius: 6px;
  background: #f6f9fd;
}

.recovery-confirm-note {
  margin-top: 14px;
}

.recovery-confirm-modal form {
  padding: 0;
}

.recovery-confirm-modal form label {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  color: #314d75;
  font-size: 13px;
}

.recovery-confirm-modal .input {
  height: 40px;
}

.recovery-confirm-modal .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
  padding: 0;
}

.recovery-confirm-modal .form-actions .btn {
  height: 36px;
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid #d8e0eb;
  border-radius: 5px;
  background: #fff;
  color: #425168;
  font-size: 13px;
  font-weight: 400;
  box-shadow: none;
}

.recovery-confirm-modal .form-actions .btn.danger {
  border-color: #d4473f;
  background: #d4473f;
  color: #fff;
}

.recovery-confirm-modal .form-actions .btn.danger:hover {
  border-color: #bd3933;
  background: #bd3933;
}

#app .account-service-migration {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5ebf3;
}

#app .account-service-data-location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

#app .account-service-data-location p {
  margin: 6px 0 0;
  color: #687d9b;
  font-size: 13px;
}

#app .account-service-data-location .btn {
  flex: 0 0 auto;
}

#app details.account-service-migration-toggle summary {
  color: #315578;
  font-size: 13px;
  line-height: 1.6;
  cursor: pointer;
  user-select: none;
}

#app details.account-service-migration-toggle[open] summary {
  color: #173a70;
}

#app .account-service-safety-help-body {
  margin-top: 0;
  padding: 0 0 14px;
}

#app .account-service-safety-help-body p {
  margin: 0;
  color: #687d9b;
  font-size: 13px;
  line-height: 1.7;
}

#app .account-service-safety-help-body p + p {
  margin-top: 5px;
}

#app .account-service-safety-help-body .account-safety-path-grid {
  margin-top: 12px;
}

#app .account-service-migration ol {
  margin: 9px 0 0;
  padding-left: 22px;
}

#app .account-service-cloud-data p {
  margin: 8px 0 0;
  color: #687d9b;
  font-size: 13px;
  line-height: 1.7;
}

#app .account-service-cloud-data .form-actions {
  justify-content: flex-start;
  margin-top: 14px;
}

#app .account-service-cloud-data label.btn.disabled {
  cursor: not-allowed;
  opacity: .55;
}

#app .account-feedback-form {
  padding-top: 18px;
}

#app .account-feedback-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin-bottom: 14px;
}

#app .account-feedback-form label {
  display: grid;
  gap: 6px;
  color: #415b82;
  font-size: 13px;
}

#app .account-feedback-form textarea {
  min-height: 130px;
  resize: vertical;
}

#app .account-feedback-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

#app .account-feedback-result {
  margin: 10px 0 0;
  color: #16754b;
}

#app .settings-users-panel .settings-title > div {
  min-width: 0;
}

@media (min-width: 861px) {
  #app .account-service-software-update .account-service-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  #app .account-service-software-update .account-service-grid > div:not(:first-child) {
    padding-left: 16px;
    border-left: 1px solid #e5ebf3;
  }
  #app .account-service-software-update .account-service-grid small {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 860px) {
  #app .account-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #app .account-service-grid > div:not(:nth-child(4n + 1)) {
    padding-left: 0;
    border-left: 0;
  }

  #app .account-service-grid > div:not(:nth-child(2n + 1)) {
    padding-left: 18px;
    border-left: 1px solid #e5ebf3;
  }
}

@media (max-width: 620px) {
  #app .account-service-section {
    padding: 18px 16px;
  }

  #app .account-service-section-head,
  #app .account-service-cloud-reminder,
  #app .account-feedback-actions,
  #app .account-service-data-location {
    align-items: flex-start;
    flex-direction: column;
  }

  #app .account-service-safety-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  #app .account-service-safety-actions {
    flex-wrap: wrap;
  }

  #app .account-service-grid,
  #app .account-service-activation,
  #app .account-feedback-fields {
    grid-template-columns: 1fr;
  }

  #app .account-service-activation {
    align-items: stretch;
    gap: 7px;
  }

  #app .account-service-activation .btn {
    width: 100%;
  }

  #app .account-service-cloud-reminder .btn {
    width: 100%;
  }

  #app .account-service-cloud-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  #app .account-service-software-update .software-update-action-buttons {
    width: 100%;
  }

  #app .account-service-grid > div,
  #app .account-service-grid > div:not(:nth-child(2n + 1)) {
    padding: 14px 0;
    border-left: 0;
  }
}

/* 本地备份操作收起辅助项；恢复工具放在概况标题右侧。 */
#app .account-service-safety > .account-safety-overview {
  grid-template-columns: minmax(0, 1fr);
}
#app .account-safety-overview-head { padding: 12px 16px; }
#app .account-safety-overview-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#app .account-safety-overview-title .btn {
  min-height: 32px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 400;
}
#app .account-safety-overview .account-safety-summary { border-top: 1px solid #e0e8f2; }
#app .account-safety-overview .account-safety-summary > div:first-child { border-left: 0; }
#app .account-service-table .backup-more { display: inline-block; vertical-align: middle; }
#app .account-service-table .backup-more summary {
  display: inline-block;
  padding: 2px 4px;
  color: #315d93;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
}
#app .account-service-table .backup-more summary::-webkit-details-marker { display: none; }
#app .account-service-table .backup-more summary:focus-visible { outline: 2px solid #3478f6; }
#app .account-service-table .backup-more[open] { display: block; }
#app .account-service-table .backup-more-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 8px;
  padding: 3px 0;
  border-top: 1px solid #e0e8f2;
}

/* 数据概况正常时仅保留标题与工具入口，异常说明仍可展示。 */
#app .account-service-safety .account-safety-overview-head {
  min-height: 0;
  padding: 8px 16px;
}
#app .account-service-safety .account-safety-overview-head [hidden] { display: none; }

/* 20261011 清理备份弹窗：局部布局，复用现有拖动缩放。 */
.backup-cleanup-modal.dialog-interactive-modal {position:fixed!important;max-width:none!important;max-height:none!important;overflow:visible!important;box-sizing:border-box;}
.backup-cleanup-modal > .dialog-interactive-content {height:100%;display:flex;flex-direction:column;overflow:hidden;border-radius:inherit;background:#fff;}
.backup-cleanup-modal .dialog-interactive-head {cursor:move;user-select:none;touch-action:none;display:flex;justify-content:space-between;}
.backup-cleanup-modal .software-confirm-body {flex:1;min-height:0;overflow:auto;}
.backup-cleanup-modal .backup-cleanup-summary {margin:14px 0 0;padding:11px 13px;border:1px solid #d8e5f5;border-radius:6px;background:#f6f9fd;color:#425a7d;font-size:13px;line-height:1.7;}
.backup-cleanup-modal .backup-cleanup-actions {flex:0 0 auto;margin:0;padding:14px 20px;border-top:1px solid #e3eaf3;justify-content:flex-end;}
.backup-cleanup-modal .backup-cleanup-table {width:100%!important;min-width:0!important;table-layout:fixed;}
.backup-cleanup-modal .backup-cleanup-table :is(th,td) {min-width:0!important;white-space:normal!important;overflow-wrap:anywhere;text-overflow:clip;padding:8px;}
.backup-cleanup-modal details p {overflow-wrap:anywhere;}
#app .account-service-safety-actions [data-cloud-cleanup] {height:34px;min-height:34px;padding:0 16px;font-size:13px;box-shadow:none;}
.backup-cleanup-modal [data-dialog-resize] {
  position: absolute;
  z-index: 20;
  display: block;
  touch-action: none;
}
.backup-cleanup-modal [data-dialog-resize="n"],
.backup-cleanup-modal [data-dialog-resize="s"] {
  right: 14px;
  left: 14px;
  height: 8px;
  cursor: ns-resize;
}
.backup-cleanup-modal [data-dialog-resize="n"] { top: 0; }
.backup-cleanup-modal [data-dialog-resize="s"] { bottom: 0; }
.backup-cleanup-modal [data-dialog-resize="e"],
.backup-cleanup-modal [data-dialog-resize="w"] {
  top: 14px;
  bottom: 14px;
  width: 8px;
  cursor: ew-resize;
}
.backup-cleanup-modal [data-dialog-resize="e"] { right: -8px; }
.backup-cleanup-modal [data-dialog-resize="w"] { left: -8px; }
.backup-cleanup-modal [data-dialog-resize="ne"],
.backup-cleanup-modal [data-dialog-resize="se"],
.backup-cleanup-modal [data-dialog-resize="sw"],
.backup-cleanup-modal [data-dialog-resize="nw"] {
  width: 14px;
  height: 14px;
}
.backup-cleanup-modal [data-dialog-resize="ne"] { top: 0; right: 0; cursor: nesw-resize; }
.backup-cleanup-modal [data-dialog-resize="se"] { right: 0; bottom: 0; cursor: nwse-resize; }
.backup-cleanup-modal [data-dialog-resize="sw"] { bottom: 0; left: 0; cursor: nesw-resize; }
.backup-cleanup-modal [data-dialog-resize="nw"] { top: 0; left: 0; cursor: nwse-resize; }
