#appLayout[data-front-template="starnest-business"].business-shell-active .business-sidebar-account > span {
  background: var(--business-initial-bg, #e5e9ee);
  color: var(--business-initial-fg, #566473);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--business-initial-fg, #566473) 16%, transparent);
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

#appLayout[data-front-template="starnest-business"].business-shell-active .enterprise-org-summary-link {
  min-width: 0;
  border: 0;
  border-radius: 8px;
  padding: 6px 8px;
  background: transparent;
  color: #315f9f;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: rgba(49, 95, 159, 0.34);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
  overflow-wrap: anywhere;
  transition: background-color 160ms ease, color 160ms ease, text-decoration-color 160ms ease;
}

#appLayout[data-front-template="starnest-business"].business-shell-active .enterprise-org-summary-link:hover {
  background: rgba(49, 111, 204, 0.08);
  color: #174d98;
  text-decoration-color: currentColor;
}

#appLayout[data-front-template="starnest-business"].business-shell-active .enterprise-org-summary-link:focus-visible {
  outline: 3px solid rgba(51, 156, 255, 0.28);
  outline-offset: 2px;
}

html[data-business-theme="dark"] #appLayout[data-front-template="starnest-business"].business-shell-active .enterprise-org-summary-link {
  color: #83bcff;
  text-decoration-color: rgba(131, 188, 255, 0.45);
}

#appLayout[data-front-template="starnest-business"] .business-first-success {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 18, 33, 0.68);
  color: #202c3f;
  text-align: left;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#appLayout[data-front-template="starnest-business"] .business-first-success[hidden] {
  display: none;
}

body.business-onboarding-open {
  overflow: hidden;
}

#appLayout[data-front-template="starnest-business"] .business-first-success-card {
  width: min(560px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  border-radius: 16px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(4, 15, 31, 0.28);
}

#appLayout[data-front-template="starnest-business"] .business-first-success-card > header > span {
  color: #2f73d8;
  font-size: 11px;
}

#appLayout[data-front-template="starnest-business"] .business-first-success h2 {
  margin: 7px 0 0;
  color: #17233b;
  font-size: 24px;
  line-height: 1.25;
}

#appLayout[data-front-template="starnest-business"] .business-first-success header p {
  margin: 8px 0 0;
  color: #66758a;
  font-size: 13px;
  line-height: 1.6;
}

#appLayout[data-front-template="starnest-business"] .business-first-success ol {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

#appLayout[data-front-template="starnest-business"] .business-first-success li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 11px;
  padding: 11px 12px;
  background: #f5f7fa;
}

#appLayout[data-front-template="starnest-business"] .business-first-success li.is-current {
  background: #edf4ff;
}

#appLayout[data-front-template="starnest-business"] .business-first-success li > b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #e3e8ef;
  color: #607086;
  font-size: 13px;
}

#appLayout[data-front-template="starnest-business"] .business-first-success li.is-current > b {
  background: #2f73d8;
  color: #fff;
}

#appLayout[data-front-template="starnest-business"] .business-first-success li strong {
  display: block;
  color: #202c3f;
  font-size: 14px;
}

#appLayout[data-front-template="starnest-business"] .business-first-success li span {
  display: block;
  margin-top: 3px;
  color: #6c7a8e;
  font-size: 12px;
  line-height: 1.5;
}

#appLayout[data-front-template="starnest-business"] .business-first-success footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}

#appLayout[data-front-template="starnest-business"] .business-first-success footer button {
  min-height: 42px;
  border: 1px solid #cbd9ea;
  border-radius: 8px;
  padding: 0 16px;
  background: #fff;
  color: #4e6078;
  font: inherit;
  cursor: pointer;
}

#appLayout[data-front-template="starnest-business"] .business-first-success footer button:last-child {
  border-color: #2f73d8;
  background: #2f73d8;
  color: #fff;
}

@media (max-width: 820px) {
  #appLayout[data-front-template="starnest-business"].business-shell-active .enterprise-org-summary-link {
    width: 100%;
    font-size: 12px;
  }

  #appLayout[data-front-template="starnest-business"] .business-first-success {
    padding: 12px;
  }

  #appLayout[data-front-template="starnest-business"] .business-first-success-card {
    max-height: calc(100dvh - 24px);
    padding: 20px;
  }

  #appLayout[data-front-template="starnest-business"] .business-first-success h2 {
    font-size: 21px;
  }

  #appLayout[data-front-template="starnest-business"] .business-first-success footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  #appLayout[data-front-template="starnest-business"] .business-first-success footer button {
    width: 100%;
  }

  #appLayout[data-front-template="starnest-business"] .business-route-actions button {
    flex: 1 1 0;
  }
}

/* Business workspace hierarchy: keep Personal WeChat and My Employees on the
   same page -> heading panel -> content panel -> item rhythm as Assets. This
   file is part of the real index.html stylesheet chain; do not move these
   rules back into the dormant template package stylesheet. */
#appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage,
#appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage {
  background: var(--business-bg, #f6f7f9);
}

#appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage .personal-wechat-shell,
#appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .army-shell {
  display: grid;
  box-sizing: border-box;
  gap: 14px;
  margin-right: auto;
  margin-left: auto;
}

#appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage .personal-wechat-shell {
  width: min(100%, 1180px);
  max-width: 1180px;
}

#appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .army-shell {
  width: min(100%, 1100px);
  max-width: 1100px;
}

#appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .army-shell {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

#appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage .personal-wechat-hero,
#appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .army-head {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--business-line, #e2e3e5);
  border-radius: 14px;
  padding: 22px;
  background: var(--business-elevated, #fff);
  box-shadow: none;
}

#appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage .personal-wechat-hero {
  align-items: center;
}

#appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage .personal-wechat-hero h1,
#appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .army-head h1 {
  margin: 0 0 6px;
  color: var(--business-text, #202328);
  font-size: 25px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

#appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .army-head h1 {
  margin-bottom: 0;
}

#appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage .personal-wechat-hero p {
  color: var(--business-muted, #6f747c);
  font-size: 12px;
  line-height: 1.55;
}

#appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage :is(
  .personal-wechat-channel-state,
  .personal-wechat-onboarding,
  .personal-wechat-agents,
  .personal-wechat-simulator
),
#appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage #myAgentList,
#appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage :is(
  .my-agents-capability-head,
  .capability-store-summary,
  .capability-product-card
) {
  border-color: var(--business-line, #e2e3e5);
  border-radius: 14px;
  background: var(--business-elevated, #fff);
  box-shadow: none;
}

#appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage .personal-wechat-channel-state {
  padding: 13px 16px;
}

#appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage :is(
  .personal-wechat-onboarding > header,
  .personal-wechat-agents > header,
  .personal-wechat-simulator > header
) {
  padding: 15px 16px;
}

#appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage :is(
  .personal-wechat-onboarding h2,
  .personal-wechat-agents h2,
  .personal-wechat-simulator h2
) {
  color: var(--business-text, #25282d);
  font-size: 18px;
  font-weight: 650;
}

#appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage .personal-wechat-onboarding ol {
  gap: 8px;
  padding: 10px;
  background: var(--business-elevated, #fff);
}

#appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage .personal-wechat-onboarding li {
  border: 1px solid var(--business-line, #e2e3e5);
  border-radius: 10px;
  padding: 12px;
  background: var(--business-input, #fafafa);
}

#appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage .personal-wechat-onboarding li:last-child {
  border-right: 1px solid var(--business-line, #e2e3e5);
}

#appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage :is(
  .personal-wechat-enrollment-actions,
  .personal-wechat-pairing-actions,
  #personalWechatForm
) {
  padding-right: 16px;
  padding-left: 16px;
}

#appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage #personalWechatAgentList {
  gap: 8px;
  padding: 10px;
}

#appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage #personalWechatAgentList article {
  border: 1px solid var(--business-line, #e2e3e5);
  border-radius: 10px;
  padding: 12px;
  background: var(--business-input, #fafafa);
}

#appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage #personalWechatAgentList article:last-child {
  border-bottom: 1px solid var(--business-line, #e2e3e5);
}

#appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .my-agents-workbench {
  display: block;
}

#appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .my-agents-workbench.hidden {
  display: none;
}

#appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage #myAgentList {
  min-width: 0;
  border: 1px solid var(--business-line, #e2e3e5);
  padding: 14px;
}

#appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .army-grid.compact,
#appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .army-grid.compact.is-sparse {
  gap: 10px;
}

#appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .army-card {
  border-radius: 11px;
  background: var(--business-input, #fafafa);
}

#appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .army-card:hover {
  border-color: var(--business-line-strong, #d5d8dd);
  background: var(--business-surface-hover, #f6f7f8);
}

#appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .army-avatar-button,
#appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .expired-agent-avatar,
#appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .enter-advisor-button {
  border-color: var(--business-line, #e2e3e5);
  background: var(--business-elevated, #fff);
}

@media (max-width: 700px) {
  #appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage,
  #appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage {
    padding-top: 12px;
    padding-bottom: 12px;
    scroll-padding-bottom: 12px;
  }

  #appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage .personal-wechat-shell,
  #appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .army-shell {
    width: 100%;
    max-width: none;
    gap: 10px;
    margin: 0;
    padding: 0;
  }

  #appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage .personal-wechat-hero,
  #appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .army-head {
    gap: 12px;
    border-radius: 12px;
    padding: 14px;
  }

  #appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage .personal-wechat-hero h1,
  #appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .army-head h1 {
    font-size: 22px;
  }

  #appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage :is(
    .personal-wechat-onboarding,
    .personal-wechat-agents,
    .personal-wechat-simulator
  ) {
    border-radius: 12px;
    padding: 0;
  }

  #appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage .personal-wechat-channel-state {
    border-radius: 12px;
    padding: 12px;
  }

  #appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage .personal-wechat-onboarding ol {
    gap: 7px;
    padding: 8px;
  }

  #appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage .personal-wechat-onboarding li {
    border: 1px solid var(--business-line, #e2e3e5);
    padding: 11px;
  }

  #appLayout[data-front-template="starnest-business"].business-shell-active #personalWechatPage :is(
    .personal-wechat-enrollment-actions,
    .personal-wechat-pairing-actions,
    #personalWechatForm
  ) {
    padding-right: 13px;
    padding-left: 13px;
  }

  #appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .army-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
  }

  #appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .army-head h1 {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .army-head-actions {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    justify-content: space-between;
    gap: 8px;
  }

  #appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage #armyCount {
    min-width: 0;
    padding: 5px 8px;
    font-size: 11px;
    line-height: 1.25;
    white-space: nowrap;
  }

  #appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .army-capability-store-entry {
    min-height: 36px;
    margin-left: auto;
    padding: 7px 10px;
  }

  #appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage #myAgentList {
    border-radius: 12px;
    padding: 9px;
  }

  #appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .army-card {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 86px;
    padding: 11px;
  }

  #appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .army-avatar-button,
  #appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .army-avatar-inner,
  #appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .army-avatar-inner img {
    width: 48px;
    height: 48px;
  }

  #appLayout[data-front-template="starnest-business"].business-shell-active #myAgentsPage .enter-advisor-button {
    width: 50px;
    min-width: 50px;
  }
}
