/* Desktop account center parity layer. Loaded last so account-specific rules stay stable. */
.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-card {
  display: block !important;
  grid-template-columns: none !important;
  width: calc(100% - 40px) !important;
  min-height: 195px !important;
  margin: 12px 20px 36px !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgb(148 163 184 / 38%) !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgb(139 92 246 / 14%), rgb(59 130 246 / 14%) 45%, rgb(255 255 255 / 98%)) !important;
  box-shadow: 0 16px 40px rgb(17 24 39 / 8%), 0 2px 12px rgb(17 24 39 / 4%) !important;
}

.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-card::after { display: none !important; }

.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-card > header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  margin: 0 20px;
  padding: 0 10px;
  border-bottom: 1px solid rgb(148 163 184 / 28%);
}

.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-card > header h2 {
  margin: 0;
  color: #303133;
  font-size: 16px;
  font-weight: 700;
}

.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-logout {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid rgb(239 68 68 / 24%);
  border-radius: 7px;
  background: rgb(255 255 255 / 72%);
  color: #df5366;
  font-size: 12px;
  text-decoration: none;
}

.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-body {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 22px 32px 24px;
}

.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-body .tb-account-avatar {
  display: grid !important;
  width: 90px !important;
  height: 90px !important;
  place-items: center;
  border: 2px solid rgb(255 255 255 / 92%) !important;
  border-radius: 50% !important;
  background: #ddd !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 52px !important;
}

.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-details {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 28px;
  margin: 0;
}

.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-details > div {
  display: grid;
  min-width: 0;
  min-height: 40px;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-details > div:last-child {
  grid-column: span 2;
}

.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-body dt {
  color: #62646b;
  font-size: 14px;
  font-weight: 700;
}

.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-body dd {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #292b31;
  font-size: 14px;
  white-space: nowrap;
}

.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-body dd > span {
  min-width: 0;
  white-space: nowrap;
}

.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-body dd form { display: inline-flex; }
.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-body dd :is(.tb-account-icon-action, .tb-account-inline-action) {
  display: inline-flex !important;
  width: auto !important;
  max-width: none !important;
  height: 34px !important;
  min-height: 34px !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  border: 1px solid rgb(124 58 237 / 22%) !important;
  border-radius: 8px !important;
  background: rgb(255 255 255 / 78%) !important;
  color: #6d28d9 !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  cursor: pointer;
}

.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-body dd .tb-account-icon-action {
  width: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
}

.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-body dd .tb-account-inline-action {
  min-width: 52px !important;
  padding: 0 10px !important;
}

.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-body dd :is(.tb-account-icon-action, .tb-account-inline-action):hover {
  border-color: rgb(124 58 237 / 38%) !important;
  background: #f5f3ff !important;
}

.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-tabs {
  width: calc(100% - 80px) !important;
  min-height: 86px !important;
  align-content: flex-start !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 0 40px !important;
  padding: 0 0 6px !important;
  overflow: visible !important;
  border: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-tabs a {
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #202124 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  transform: none !important;
}

.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-tabs a:hover {
  background: #f5f3ff !important;
  color: #7c3aed !important;
}

.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-tabs a.active {
  background: rgb(139 92 246 / 10%) !important;
  color: #8b5cf6 !important;
  font-weight: 800 !important;
}

.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-panel {
  width: calc(100% - 80px) !important;
  min-height: 560px;
  margin: 14px 40px 40px !important;
  padding: 18px !important;
  border: 1px solid #e7e9ee !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 5px 18px rgb(42 35 73 / 5%) !important;
}

.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-panel::after { display: none !important; }
.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-section-head { min-height: 54px; margin: 0 0 14px; }
.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-section-head h3 { margin: 0 0 4px; font-size: 17px; }
.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-section-head p { color: #8a8f98; font-size: 12px; }

.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-distribution {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  padding: 24px;
  border: 1px solid #ece8f5;
  border-radius: 12px;
  background: linear-gradient(135deg, rgb(139 92 246 / 8%), rgb(59 130 246 / 6%), #fff);
}

.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-distribution > div { display: grid; align-content: center; gap: 8px; }
.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-distribution i { color: #7c3aed; font-size: 28px; }
.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-distribution p { margin: 0; color: #777b84; }
.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-distribution a { color: #7c3aed; text-decoration: none; }

.toolbox-body .tb-account-profile-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 80px rgb(15 23 42 / 28%);
}

.toolbox-body .tb-account-profile-dialog::backdrop { background: rgb(20 19 26 / 58%); backdrop-filter: blur(2px); }
.toolbox-body .tb-account-profile-dialog form { display: grid; gap: 16px; padding: 22px; }
.toolbox-body .tb-account-profile-dialog header { display: flex; align-items: center; justify-content: space-between; margin: -22px -22px 4px; padding: 18px 22px; border-bottom: 1px solid #ececf1; }
.toolbox-body .tb-account-profile-dialog header strong { font-size: 17px; }
.toolbox-body .tb-account-profile-dialog header button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #747780; font-size: 20px; cursor: pointer; }
.toolbox-body .tb-account-profile-dialog label { display: grid; gap: 8px; color: #4c5058; font-size: 13px; }
.toolbox-body .tb-account-profile-dialog input { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid #dfe3e8; border-radius: 7px; }
.toolbox-body .tb-account-profile-dialog footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 2px; }
.toolbox-body .tb-account-code-row { display: grid; grid-template-columns: 1fr 112px; gap: 8px; }

@media (max-width: 1180px) {
  .toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-details > div:last-child { grid-column: auto; }
}

@media (max-width: 760px) {
  .toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-card,
  .toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-tabs,
  .toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-panel { width: 100% !important; margin-right: 0 !important; margin-left: 0 !important; }
  .toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-body { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 18px 16px; }
  .toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-body .tb-account-avatar { width: 64px !important; height: 64px !important; font-size: 38px !important; }
  .toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-details { grid-column: 2; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-tabs { flex-wrap: nowrap !important; overflow-x: auto !important; }
  .toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-distribution { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-body .tb-account-avatar {
    display: none !important;
  }

  .toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-account-profile-details {
    grid-column: 1;
  }
}
