.access-load-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #f4d58d;
  border-radius: 10px;
  background: #fff9e8;
  color: #765a00;
}

.access-load-warning span {
  min-width: 0;
  line-height: 1.6;
}

.access-empty-page {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 72px 24px;
  border: 1px solid #e3eaf3;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  color: #64748b;
}

.access-empty-page strong {
  font-size: 18px;
  color: #263650;
}

.access-empty-page p {
  margin: 0 0 8px;
}

.access-empty-actions,
.access-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.access-guide-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border: 1px solid #dce7f5;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7faff 0%, #eef5ff 100%);
}

.access-guide-overview h2,
.access-guide-card h2,
.access-guide-policy h2 {
  margin: 4px 0 8px;
  color: #172b4d;
}

.access-guide-overview p,
.access-guide-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.access-guide-kicker {
  color: #276ef1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.access-guide-checks {
  display: grid;
  grid-template-columns: repeat(6, minmax(112px, 1fr));
  gap: 10px;
}

.access-guide-check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid #e1e8f1;
  border-radius: 10px;
  background: #fff;
  color: #52627a;
  font-size: 13px;
}

.access-guide-check span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-weight: 800;
}

.access-guide-check.good span {
  background: #e8f8ef;
  color: #17834f;
}

.access-guide-check.bad span {
  background: #fff0ef;
  color: #bd342c;
}

.access-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.access-guide-card,
.access-guide-policy {
  padding: 20px;
  border: 1px solid #e3eaf3;
  border-radius: 14px;
  background: #fff;
}

.access-guide-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.access-guide-state {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef3f9;
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
}

.access-guide-state.good {
  background: #e8f8ef;
  color: #17834f;
}

.access-guide-state.warn {
  background: #fff5d9;
  color: #8b6200;
}

.access-guide-card ol {
  margin: 16px 0 0;
  padding-left: 20px;
  color: #33445f;
  line-height: 1.9;
}

.access-endpoint {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 9px;
  background: #f7f9fc;
}

.access-endpoint span {
  color: #718096;
  font-size: 12px;
}

.access-endpoint code {
  overflow-wrap: anywhere;
  color: #1d4f9a;
}

.access-guide-policy > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

.access-guide-policy p {
  margin: 0;
  color: #52627a;
  line-height: 1.7;
}

.access-workbench-body { padding: 20px; }
.access-subtabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px 0; border-top: 1px solid #e8edf4; }
.access-subtab { border: 0; border-radius: 8px; padding: 8px 12px; background: #f3f6fa; color: #52627a; cursor: pointer; }
.access-subtab.active { background: #e9f1ff; color: #1769e0; font-weight: 700; }
.access-setup-home { display: grid; gap: 18px; max-width: 1440px; margin: 0 auto; }
.access-platform-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.access-platform-card { display: grid; gap: 16px; min-height: 210px; padding: 20px; border: 1px solid #dfe6ef; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(31,55,90,.05); }
.access-platform-card header { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: start; gap: 12px; }
.access-platform-card h2 { margin: 0 0 5px; color: #172b4d; font-size: 17px; }
.access-platform-card p { margin: 0; color: #718096; font-size: 13px; line-height: 1.6; }
.access-platform-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #edf4ff; color: #1769e0; font-size: 21px; }
.access-platform-progress { align-self: end; height: 6px; overflow: hidden; border-radius: 99px; background: #edf1f6; }
.access-platform-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2878f0,#52a7ff); }
.access-platform-card.good .access-platform-progress span { background: #25a36f; }
.access-platform-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.access-platform-card footer small { color: #64748b; }
.access-setup-layout { display: grid; grid-template-columns: 220px minmax(0, 900px); justify-content: center; gap: 22px; max-width: 1160px; margin: 0 auto; }
.access-setup-layout > aside { align-self: start; position: sticky; top: 16px; padding: 18px; border: 1px solid #e1e8f1; border-radius: 14px; background: #fff; }
.access-setup-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.access-setup-steps li { position: relative; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; min-height: 50px; color: #8793a7; }
.access-setup-steps li:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 40px; bottom: -10px; width: 2px; background: #e5eaf1; }
.access-setup-steps li > span { display: grid; z-index: 1; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #eef2f7; font-size: 12px; }
.access-setup-steps li.done { color: #23805a; }
.access-setup-steps li.done > span { background: #e5f7ee; }
.access-setup-steps li.active { color: #1769e0; }
.access-setup-steps li.active > span { background: #1769e0; color: #fff; }
.access-page-back { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 18px; padding: 8px 12px; border: 1px solid #d8e1ed; border-radius: 9px; background: #fff; color: #44546b; cursor: pointer; font: inherit; font-weight: 650; }
.access-page-back:hover { border-color: #9fbee9; background: #f5f9ff; color: #1769e0; }
.access-page-back:focus-visible { outline: 3px solid rgba(40,120,240,.22); outline-offset: 2px; }
.access-setup-panel { min-height: 530px; padding: 28px; border: 1px solid #e1e8f1; border-radius: 16px; background: #fff; }
.access-setup-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid #edf1f6; }
.access-setup-panel h1 { margin: 4px 0 0; color: #172b4d; font-size: 24px; }
.access-inline-guide { margin: 22px 0; padding: 18px 20px; border-radius: 12px; background: #f6f9fd; }
.access-inline-guide h3, .access-credential-card h3 { margin: 0 0 10px; color: #263650; }
.access-inline-guide ol { margin: 0 0 10px; padding-left: 22px; color: #52627a; line-height: 1.9; }
.access-inline-guide p { margin: 10px 0 0; color: #7a5d12; }
.access-zero-start-guide { margin: 22px 0; padding: 22px; border: 1px solid #dce6f3; border-radius: 16px; background: linear-gradient(180deg,#f8fbff 0%,#fff 100%); }
.access-zero-start-head h2 { margin: 5px 0 8px; color: #172b4d; font-size: 22px; }
.access-zero-start-head p { margin: 0; color: #64748b; line-height: 1.7; }
.access-zero-start-steps { display: grid; gap: 12px; margin: 20px 0; padding: 0; list-style: none; }
.access-zero-start-steps li { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 12px; padding: 14px; border: 1px solid #e2eaf4; border-radius: 12px; background: #fff; }
.access-zero-start-steps li > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eaf2ff; color: #1769e0; font-weight: 800; }
.access-zero-start-steps strong { display: block; margin: 1px 0 5px; color: #223653; }
.access-zero-start-steps p { margin: 0 0 6px; color: #64748b; line-height: 1.65; }
.access-zero-start-steps a, .access-zero-start-guide details a { color: #1769e0; font-weight: 650; text-decoration: none; }
.access-wecom-role-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: start; margin: 20px 0; }
.access-wecom-role-card { min-width: 0; padding: 20px; border: 1px solid #d8e3f1; border-radius: 14px; background: #f8fafc; }
.access-wecom-role-card.role-admin { border-color: #d8e3f1; }
.access-wecom-role-card h3 { margin: 12px 0; color: #172b4d; font-size: 17px; }
.access-wecom-role-card ol { margin: 0; padding-left: 20px; color: #52627a; line-height: 1.7; }
.access-wecom-role-card li + li { margin-top: 7px; }
.access-wecom-role-card a { display: inline-block; margin-top: 14px; color: #1769e0; font-weight: 650; text-decoration: none; }
.access-role-badge { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: #eaf2ff; color: #1769e0; font-weight: 700; }
.access-wecom-role-card.member .access-role-badge { background: #eef2f7; color: #44546b; }
.access-role-inline-action { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #dbe5f1; }
.access-role-inline-action strong { color: #223653; }
.access-role-inline-action.disabled { color: #7a879b; }
.access-wecom-common-steps { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 18px; align-items: center; margin-top: 22px; }
.access-wecom-common-copy > h3 { margin: 0 0 14px; color: #172b4d; }
.access-wecom-credential-cta { padding: 18px; border: 1px solid #9dbff1; border-radius: 12px; background: #f3f7ff; }
.access-wecom-credential-cta strong { display: block; color: #172b4d; }
.access-wecom-credential-cta p { margin: 7px 0 14px; color: #64748b; line-height: 1.55; }
.access-wecom-credential-cta .access-button { width: 100%; }
.access-completed-guide { margin-top: 22px; border-top: 1px solid #e4ebf4; padding-top: 16px; }
.access-completed-guide > summary { cursor: pointer; color: #1769e0; font-weight: 700; }
.access-completed-guide .access-zero-start-guide { margin-bottom: 0; }
.access-credential-card { display: grid; gap: 14px; max-width: 680px; margin: 22px 0; }
.access-credential-card label { display: grid; gap: 7px; color: #33445f; font-weight: 600; }
.access-credential-card input { width: 100%; padding: 11px 12px; border: 1px solid #d5deea; border-radius: 9px; font: inherit; }
.access-credential-entry { margin: 8px 0 24px; padding: 20px; border: 2px solid #8eb8f5; border-radius: 14px; background: #f4f8ff; box-shadow: 0 8px 22px rgba(23,105,224,.08); }
.access-credential-entry .access-current-task { margin: 0; }
.access-credential-entry .access-credential-card { margin: 0; }
.access-credential-entry .access-primary-actions { margin-top: 16px; }
.access-path { padding: 11px 13px; border-left: 3px solid #2878f0; background: #eef5ff; color: #245da8; line-height: 1.6; }
.access-primary-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.access-copy-prompt { display: grid; gap: 12px; margin: 20px 0; padding: 18px; border: 1px solid #bcd4f7; border-radius: 14px; background: #f5f9ff; }
.access-copy-prompt textarea { box-sizing: border-box; width: 100%; min-height: 180px; resize: vertical; padding: 16px; border: 1px solid #d5e3f6; border-radius: 10px; background: #fff; color: #24354f; font: 14px/1.8 ui-monospace, Consolas, monospace; }
.access-copy-prompt .access-button { justify-self: start; min-width: 150px; }
.access-secondary-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.access-technical-details { margin-top: 20px; border-top: 1px solid #e7edf5; padding-top: 16px; }
.access-technical-details summary { color: #52627a; cursor: pointer; font-weight: 600; }
.access-technical-details[open] summary { margin-bottom: 12px; }
.access-manual-steps { margin: 12px 0 0; padding-left: 22px; color: #4f6078; line-height: 1.75; }
.access-manual-steps li + li { margin-top: 7px; }
.access-workbuddy-authorization { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 14px; margin-top: 18px; padding: 18px; border: 1px solid #f0d99a; border-radius: 14px; background: #fff9e8; }
.access-workbuddy-authorization h2 { margin: 2px 0 4px; color: #523f0e; font-size: 18px; }
.access-troubleshooting { margin-top: 12px; padding-top: 12px; }
.access-troubleshooting .access-note { margin-top: 10px; }
.access-verification-card { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 14px; margin-top: 18px; padding: 18px; border: 1px solid #cce8d8; border-radius: 14px; background: #f5fcf8; }
.access-verification-card h2 { margin: 2px 0 4px; font-size: 18px; color: #163d2c; }
.access-verification-instruction { margin-bottom: 10px; }
.access-verification-prompt { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; align-items: start; }
.access-verification-prompt textarea { box-sizing: border-box; width: 100%; min-height: 78px; resize: vertical; padding: 12px; border: 1px solid #b9ddc8; border-radius: 9px; background: #fff; color: #263650; font: 14px/1.65 system-ui,sans-serif; }
.access-verification-prompt .access-button { justify-self: start; min-width: 126px; }
.access-verification-warning { margin: 10px 0 0; color: #637568; font-size: 13px; line-height: 1.6; }
@media(max-width:700px){.access-workbuddy-authorization,.access-verification-card{grid-template-columns:1fr}.access-verification-prompt .access-button{min-height:42px}}
.access-current-task { display: flex; align-items: flex-start; gap: 14px; margin: 28px 0 20px; }
.access-task-number { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #eaf2ff; color: #1769e0; font-weight: 800; }
.access-current-task h2, .access-complete h2 { margin: 0 0 7px; color: #172b4d; }
.access-current-task p, .access-complete p { margin: 0; color: #64748b; line-height: 1.7; }
.access-diagnostic-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 20px 0; }
.access-diagnostic-summary > div { display: grid; gap: 8px; padding: 16px; border: 1px solid #e4eaf2; border-radius: 11px; background: #fafbfd; }
.access-diagnostic-summary span:first-child { color: #7a879b; font-size: 12px; }
.access-loop-test { display: grid; gap: 10px; margin: 20px 0; padding: 20px; border: 1px solid #cfe0fb; border-radius: 13px; background: #f5f9ff; }
.access-loop-test > strong { color: #155fcb; font: 700 25px/1.3 ui-monospace,Consolas,monospace; letter-spacing: .08em; }
.access-loop-test p { margin: 0; color: #52627a; }
.access-complete { display: flex; align-items: flex-start; gap: 16px; margin: 30px 0 22px; padding: 22px; border: 1px solid #bfe8d4; border-radius: 14px; background: #f0fbf6; }
.access-complete > span { color: #22a06b; font-size: 30px; }
.access-complete small { display: block; margin-bottom: 5px; color: #23805a; font-weight: 750; letter-spacing: .08em; }
.access-connection-success { margin-top: 8px; }
.access-success-next { margin-top: 18px; padding: 16px 18px; border: 1px solid #d9e6f4; border-radius: 12px; background: #f7faff; }
.access-success-next strong { color: #203755; }
.access-success-next p { margin: 7px 0 0; color: #64748b; line-height: 1.65; }
.access-my-binding.bound { border-color: #bfe8d4; background: #f0fbf6; }
.access-my-binding.unbound { border-color: #f2d48f; background: #fffaf0; }
.access-my-binding .access-primary-actions { margin-top: 14px; }
.access-personal-binding-callout { margin: 18px 0 8px; padding: 22px; border-width: 2px; }
.access-binding-callout-head { display: flex; align-items: center; gap: 14px; }
.access-binding-callout-head small { display: block; margin-bottom: 3px; color: #a16207; font-weight: 800; letter-spacing: .08em; }
.access-binding-callout-head h2 { margin: 0; color: #7c4700; }
.access-personal-binding-callout > p { margin: 14px 0 8px; color: #6b4f22; }
.access-personal-binding-callout .access-manual-steps { margin-bottom: 0; }
.access-complete.enterprise-only { margin-top: 16px; background: #f7faff; border-color: #d9e6f4; }
.access-stage-divider { margin: 28px 0 12px; padding: 16px 18px; border-left: 4px solid #2f73ee; border-radius: 0 10px 10px 0; background: #f4f8ff; }
.access-stage-divider span { color: #174ea6; font-size: 16px; font-weight: 800; }
.access-stage-divider p { margin: 5px 0 0; color: #64748b; line-height: 1.65; }
.access-zero-step-nav > strong { display: block; margin-bottom: 6px; color: #172b4d; font-size: 16px; }
.access-zero-step-nav > p { margin: 0 0 16px; color: #64748b; font-size: 13px; line-height: 1.55; }
.access-setup-steps.walkthrough li.done { color: inherit; }
.access-setup-steps.walkthrough li.active span { background: #2f73ee; color: #fff; }
.access-zero-step-status { margin-top: 18px; padding: 12px; border-radius: 10px; background: #f4f8ff; }
.access-zero-step-status span { display: block; margin-bottom: 4px; color: #64748b; font-size: 12px; }
.access-zero-step-status strong { color: #174ea6; font-size: 13px; }
.access-inline-step-action { margin-top: 10px; }
.access-inline-step-action a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid #b9d2fb; border-radius: 8px; background: #eef5ff; color: #1769e0; font-weight: 700; text-decoration: none; }
.access-inline-step-action a:hover { border-color: #2f73ee; background: #e5efff; }
.access-installation-switcher { display: grid; gap: 12px; margin: 18px 0; padding: 16px; border: 1px solid #d9e3ef; border-radius: 14px; background: #f8fafc; }
.access-installation-switcher p { margin: 5px 0 0; color: #64748b; }
.access-installation-options { display: flex; flex-wrap: wrap; gap: 10px; }
.access-installation-option { display: grid; gap: 3px; min-width: 180px; padding: 10px 14px; text-align: left; color: #334155; background: #fff; border: 1px solid #d7e1ee; border-radius: 10px; cursor: pointer; }
.access-installation-option span { color: #64748b; font-size: 12px; }
.access-installation-option.active { color: #145dcc; border-color: #72a7f5; box-shadow: 0 0 0 2px rgba(36,107,253,.1); }
.access-post-scan-guide { margin: 18px 0; padding: 20px; border: 1px solid #bfdbfe; border-radius: 14px; background: #f8fbff; }
.access-post-scan-guide .access-zero-start-head { margin-bottom: 14px; }
.access-post-scan-guide .access-zero-start-steps { margin-bottom: 0; }
.access-post-scan-guide .access-zero-start-steps li.active { border-color: #2563eb; background: #eff6ff; }
.access-post-scan-guide .access-zero-start-steps li.done { border-color: #a7f3d0; background: #f0fdf4; }
.access-step-inline-action { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding: 12px; border: 1px solid #d7e5f8; border-radius: 10px; background: #fff; }
.access-step-inline-action b { margin-right: auto; color: #334155; }
.access-step-inline-action .access-button[disabled] { cursor: not-allowed; opacity: .62; }
.access-feishu-qr-start { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 20px 0; padding: 20px; border: 1px solid #bcd4f7; border-radius: 14px; background: #f5f9ff; }
.access-feishu-qr-start.existing { border-color: #d9e3ef; background: #f8fafc; }
.access-feishu-qr-start.existing .access-button[disabled] { cursor: not-allowed; opacity: .68; }
.access-current-installation { margin-top: 24px; padding-top: 24px; border-top: 1px solid #dfe7f1; }
.access-feishu-qr-start h3, .access-feishu-qr h3, .access-feishu-provisioning h3 { margin: 0 0 7px; color: #172b4d; }
.access-feishu-qr-start p, .access-feishu-qr p, .access-feishu-provisioning p { margin: 0; color: #64748b; line-height: 1.65; }
.access-feishu-qr { display: grid; grid-template-columns: 300px minmax(0,1fr); align-items: center; gap: 24px; margin: 20px 0; padding: 20px; border: 1px solid #cbdcf5; border-radius: 16px; background: #f8fbff; }
.access-feishu-qr img { display: block; width: 280px; max-width: 100%; margin: 0 auto; border: 10px solid #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(25,61,110,.12); }
.access-feishu-qr a { display: inline-block; margin-top: 12px; color: #1769e0; font-weight: 650; text-decoration: none; }
.access-feishu-provisioning { display: flex; align-items: center; gap: 16px; margin: 20px 0; padding: 22px; border: 1px solid #cbdcf5; border-radius: 14px; background: #f7faff; }
.access-spinner { width: 28px; height: 28px; flex: 0 0 auto; border: 3px solid #d7e4f8; border-top-color: #1769e0; border-radius: 50%; animation: access-spin .8s linear infinite; }
.access-feishu-manual { margin-top: 18px; }
@keyframes access-spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .access-guide-checks { grid-template-columns: repeat(3, 1fr); }
  .access-platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .access-wecom-role-grid { grid-template-columns: 1fr; }
  .access-wecom-common-steps { grid-template-columns: 1fr; }
  .access-guide-overview { align-items: flex-start; flex-direction: column; }
  .access-guide-actions { justify-content: flex-start; }
  .access-guide-checks,
  .access-guide-grid,
  .access-guide-policy > div { grid-template-columns: 1fr; }
  .access-workbench-body { padding: 12px; }
  .access-platform-grid, .access-setup-layout, .access-diagnostic-summary { grid-template-columns: 1fr; }
  .access-setup-layout > aside { position: static; }
  .access-setup-panel { min-height: 0; padding: 20px 16px; }
  .access-platform-card { min-height: 0; }
  .access-feishu-qr-start { align-items: flex-start; flex-direction: column; }
  .access-feishu-qr { grid-template-columns: 1fr; }
}
