:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --text: #172033;
  --muted: #64748b;
  --line: #d9e2ec;
  --primary: #1f5fbf;
  --primary-dark: #16498f;
  --brand-red: #b73135;
  --green: #138a5b;
  --amber: #b7791f;
  --red: #c2413a;
  --blue-soft: #eaf2ff;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  background: #111827;
  color: white;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
}

.brand {
  font-size: 19px;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 210px;
  height: auto;
  margin: 0 auto 18px;
}

.sidebar-logo {
  display: block;
  width: 150px;
  height: auto;
  padding: 10px;
  border-radius: 8px;
  background: white;
}

.survey-logo {
  width: 150px;
  height: auto;
  display: block;
  margin-bottom: 8px;
}

.nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #dbeafe;
  font-weight: 700;
}

.nav-link.active,
.nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.main {
  padding: 24px;
  min-width: 0;
  overflow: auto;
}

body.modal-open {
  overflow: hidden;
}

.report-modal[hidden] {
  display: none;
}

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.report-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(15, 23, 42, 0.7);
  cursor: default;
}

.report-modal-backdrop:hover {
  background: rgba(15, 23, 42, 0.7);
}

.report-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1440px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: var(--panel-soft);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
}

.report-modal-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.report-modal-header .section-title,
.report-modal-header p {
  margin: 0;
}

.report-modal-close {
  flex: 0 0 auto;
}

.report-modal-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* Product manager workspace: compact desktop layout and touch-first mobile layout */
.admin-page {
  min-width: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(59, 130, 246, 0.08), transparent 28rem),
    #f3f6fa;
}

.admin-page .admin-shell {
  grid-template-columns: 232px minmax(0, 1fr);
}

.admin-page .admin-sidebar {
  gap: 14px;
  padding: 20px 16px;
  background: linear-gradient(180deg, #111a2b 0%, #0e1727 100%);
}

.admin-page .admin-sidebar .sidebar-logo {
  width: 132px;
}

.admin-page .admin-sidebar .brand {
  font-size: 17px;
}

.admin-sidebar-nav {
  display: grid;
  gap: 7px;
}

.admin-page .admin-sidebar .nav-link {
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.admin-page .admin-sidebar #logoutBtn {
  width: 100%;
  margin-top: auto;
}

.admin-page .admin-main {
  padding: 20px 26px 36px;
  overflow-x: hidden;
}

.admin-page .admin-main > .admin-topbar,
.admin-page .admin-main > .admin-zone-switcher,
.admin-page .admin-main > .admin-zone-section {
  width: min(1480px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.admin-page .admin-topbar {
  margin-bottom: 14px;
}

.admin-page .admin-topbar .page-title {
  font-size: 25px;
}

.admin-page .panel {
  border-color: #d4dfec;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(24, 55, 92, 0.065);
}

.admin-page .admin-zone-switcher {
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px;
  border: 1px solid #d9e4ef;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  perspective: none;
  box-shadow: 0 6px 20px rgba(30, 64, 103, 0.05);
}

.admin-page .admin-zone-card {
  min-height: 76px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 11px 13px;
  overflow: visible;
  border-color: transparent;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.admin-page .admin-zone-card::before,
.admin-page .admin-zone-card::after {
  display: none;
}

.admin-page .admin-zone-card:hover,
.admin-page .admin-zone-card.active,
.admin-page .admin-zone-card.active:hover {
  transform: none;
}

.admin-page .admin-zone-card:hover {
  border-color: #d2e1f2;
  background: #f4f8fd;
  box-shadow: none;
}

.admin-page .admin-zone-card.active,
.admin-page .admin-zone-card.active:hover {
  border-color: #8bb6ee;
  background: linear-gradient(135deg, #f8fbff, #eaf3ff);
  box-shadow: 0 5px 15px rgba(31, 95, 191, 0.11);
}

.admin-page .admin-zone-index,
.admin-page .admin-zone-card:hover .admin-zone-index {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: none;
  transform: none;
}

.admin-page .admin-zone-card.active .admin-zone-index,
.admin-page .admin-zone-card.active:hover .admin-zone-index {
  background: linear-gradient(145deg, #2f73d9, #1854b5);
  box-shadow: 0 5px 12px rgba(37, 99, 199, 0.2);
}

.admin-page .admin-zone-copy {
  gap: 1px;
}

.admin-page .admin-zone-copy strong {
  font-size: 16px;
}

.admin-page .admin-zone-copy small {
  overflow: hidden;
  color: #6d8099;
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-page .admin-zone-stat,
.admin-page .admin-zone-card:hover .admin-zone-stat {
  padding: 5px 9px;
  font-size: 11px;
  box-shadow: none;
  transform: none;
}

.admin-page .admin-zone-card.active .admin-zone-stat::before {
  content: "";
}

.admin-page .admin-section-toolbar {
  padding: 16px 18px;
  background: linear-gradient(135deg, #ffffff, #fbfdff);
}

.admin-page .admin-section-toolbar-layout {
  align-items: center;
  gap: 16px;
}

.admin-page .admin-section-toolbar .section-title {
  margin-bottom: 8px;
  font-size: 17px;
}

.admin-page .admin-section-actions {
  justify-content: flex-end;
}

.admin-page .admin-section-actions button {
  min-height: 42px;
}

.admin-page .admin-project-list-panel {
  padding: 18px;
  overflow: hidden;
}

.admin-project-list-controls {
  width: min(610px, 100%);
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 168px;
  align-items: end;
  gap: 10px;
}

.admin-page .admin-project-search {
  width: auto;
}

.admin-project-sort {
  margin: 0;
  color: #4c6685;
  font-size: 12px;
  font-weight: 800;
}

.admin-project-sort select {
  min-height: 44px;
  margin-top: 5px;
  border-color: #bcd1ec;
  border-radius: 12px;
  background-color: #fff;
}

.admin-page .admin-project-search-summary {
  margin: 10px 2px 8px;
}

.admin-page #projectsContainer {
  min-width: 0;
}

.admin-page #projectsContainer > .admin-project-list {
  max-height: clamp(390px, 54vh, 560px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 2px 9px 2px 2px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  scrollbar-color: #8eadd1 #eaf0f7;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
}

.admin-page #projectsContainer > .admin-project-list::-webkit-scrollbar {
  width: 10px;
}

.admin-page #projectsContainer > .admin-project-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #eaf0f7;
}

.admin-page #projectsContainer > .admin-project-list::-webkit-scrollbar-thumb {
  border: 2px solid #eaf0f7;
  border-radius: 999px;
  background: #8eadd1;
}

.admin-page button.admin-project-list-card {
  min-height: 82px;
  padding: 12px 14px;
  border-color: #d3dfed;
  border-radius: 13px;
  background: #f8fbff;
}

.admin-page button.admin-project-list-card:hover,
.admin-page button.admin-project-list-card:focus-visible {
  transform: none;
  border-color: #7da9df;
  background: #f2f7ff;
  box-shadow: 0 6px 15px rgba(31, 95, 191, 0.09);
}

.admin-page .admin-project-list-copy strong {
  font-size: 14px;
}

.admin-page .admin-project-list-arrow {
  width: 40px;
  height: 40px;
}

.admin-page .account-management-grid {
  gap: 14px;
  margin-top: 14px;
}

.admin-page .account-panel {
  padding: 18px;
}

.admin-page .account-panel-heading {
  margin-bottom: 12px;
}

.admin-page .account-table-wrap {
  max-height: 520px;
  overflow: auto;
  scrollbar-color: #9ab2ce #eef3f8;
  scrollbar-gutter: stable;
}

.admin-page .admin-secondary-panel {
  margin-top: 12px !important;
  overflow: hidden;
  box-shadow: none;
}

.admin-page .admin-secondary-panel > .collapsible-summary {
  min-height: 56px;
  padding: 12px 16px;
  background: #fbfdff;
}

.admin-page .admin-secondary-panel > .collapsible-summary::after {
  flex-basis: 36px;
  width: 36px;
  height: 36px;
}

@media (max-width: 1180px) {
  .admin-page #projectsContainer > .admin-project-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-page .account-management-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .admin-page {
    background: #f4f7fb;
  }

  .admin-page .admin-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-page .admin-sidebar {
    position: sticky;
    z-index: 100;
    top: 0;
    height: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 12px;
    padding: 9px 12px;
    overflow: visible;
    box-shadow: 0 7px 22px rgba(11, 26, 46, 0.18);
  }

  .admin-page .admin-sidebar .sidebar-logo {
    width: 96px;
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    padding: 6px;
  }

  .admin-page .admin-sidebar .brand {
    display: none;
  }

  .admin-page .admin-sidebar #logoutBtn {
    width: auto;
    min-width: 92px;
    min-height: 40px;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin: 0;
    padding: 8px 12px;
  }

  .admin-page .admin-sidebar-nav {
    width: 100%;
    display: grid;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .admin-page .admin-sidebar .nav-link {
    padding: 8px 9px;
    overflow: hidden;
    font-size: 12px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-page .admin-main {
    width: 100%;
    padding: 12px;
  }

  .admin-page .admin-topbar {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 10px;
  }

  .admin-page .admin-topbar > div {
    min-width: 0;
    flex: 1 1 auto;
  }

  .admin-page .admin-topbar .page-title {
    overflow: hidden;
    font-size: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-page .admin-topbar .page-subtitle {
    display: none;
  }

  .admin-page .admin-topbar #userInfo {
    width: auto;
    max-width: 48%;
    min-height: 38px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-page .admin-zone-switcher {
    gap: 5px;
    margin-bottom: 10px;
    padding: 4px;
    border-radius: 13px;
  }

  .admin-page .admin-zone-card {
    min-height: 60px;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
    border-radius: 10px;
  }

  .admin-page .admin-zone-index,
  .admin-page .admin-zone-card:hover .admin-zone-index {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 12px;
  }

  .admin-page .admin-zone-copy strong {
    font-size: 13px;
  }

  .admin-page .admin-zone-copy small,
  .admin-page .admin-zone-stat {
    display: none;
  }

  .admin-page .admin-section-toolbar {
    padding: 14px;
  }

  .admin-page .admin-section-toolbar-layout {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-page .admin-section-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
    gap: 8px;
  }

  .admin-page .admin-section-actions button {
    width: 100%;
  }

  .admin-page .admin-project-list-panel {
    margin-top: 10px !important;
    padding: 13px;
  }

  .admin-page .admin-project-list-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 11px;
  }

  .admin-project-list-controls {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-page #projectsContainer > .admin-project-list {
    max-height: none;
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .admin-page button.admin-project-list-card {
    min-height: 74px;
    padding: 11px 12px;
  }

  .admin-page .account-management-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 10px;
  }

  .admin-page .account-panel {
    padding: 13px;
  }

  .admin-page .account-table-wrap {
    max-height: none;
    overflow: visible;
  }

  .admin-page .admin-account-table {
    min-width: 0;
  }

  .admin-page .admin-account-table thead {
    display: none;
  }

  .admin-page .admin-account-table,
  .admin-page .admin-account-table tbody,
  .admin-page .admin-account-table tr,
  .admin-page .admin-account-table td {
    width: 100%;
    display: block;
  }

  .admin-page .admin-account-table tbody {
    display: grid;
    gap: 9px;
  }

  .admin-page .admin-account-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    padding: 12px;
    border: 1px solid #d7e2ee;
    border-radius: 12px;
    background: #fbfdff;
  }

  .admin-page .admin-account-table td {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 0;
    border: 0;
  }

  .admin-page .admin-account-table td::before {
    content: attr(data-label);
    color: #7a8da5;
    font-size: 10px;
    font-weight: 800;
  }

  .admin-page .admin-account-table td:nth-child(3),
  .admin-page .admin-account-table td:nth-child(4) {
    grid-column: 1 / -1;
  }

  .admin-page .admin-account-table .account-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-page .admin-account-table .account-actions button {
    width: 100%;
  }

  .admin-page .admin-secondary-panel {
    margin-top: 10px !important;
  }
}

@media (max-width: 760px) {
  .admin-page .report-modal {
    padding: 0;
  }

  .admin-page .report-modal-dialog,
  .admin-page .compact-modal-dialog,
  .admin-page .project-details-modal-dialog,
  .admin-page .client-account-modal-dialog,
  .admin-page .account-editor-dialog {
    width: 100%;
    max-width: none;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .admin-page .project-details-modal-body,
  .admin-page .compact-modal-body {
    padding: 10px;
  }

  .admin-page .project-details-content {
    padding: 10px;
    border: 0;
  }
}

@media (max-width: 520px) {
  .admin-page .admin-main {
    padding: 10px 8px 24px;
  }

  .admin-page .admin-topbar .page-title {
    font-size: 18px;
  }

  .admin-page .admin-topbar #userInfo {
    max-width: 52%;
    padding-right: 8px;
    padding-left: 9px;
    font-size: 10px;
  }

  .admin-page .admin-zone-card {
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    min-height: 50px;
    text-align: center;
  }

  .admin-page .admin-zone-index {
    display: none;
  }

  .admin-page button.admin-project-list-card {
    grid-template-columns: minmax(0, 1fr) 36px;
  }

  .admin-page .admin-project-list-meta {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .admin-page .admin-project-list-arrow {
    width: 36px;
    height: 36px;
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .admin-page .admin-account-table tr {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-page .admin-account-table td:nth-child(3),
  .admin-page .admin-account-table td:nth-child(4) {
    grid-column: auto;
  }
}

.single-report-progress[hidden] {
  display: none;
}

.single-report-progress {
  flex: 0 0 auto;
  padding: 11px 20px 12px;
  border-bottom: 1px solid #cfe0f7;
  background: linear-gradient(135deg, #f5f9ff 0%, #edf5ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.single-report-progress strong {
  color: #174b99;
  font-size: 13px;
}

.single-report-progress .progress {
  height: 7px;
  margin: 8px 0 6px;
  background: #d7e4f5;
}

.single-report-progress .progress span {
  background: linear-gradient(90deg, #2468c8, #60a5fa);
  transition: width 0.28s ease;
}

.single-report-progress p {
  margin: 0;
}

.report-modal-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  overflow: hidden;
}

.report-modal-report {
  min-width: 0;
  padding: 20px;
  overflow: auto;
}

.report-modal-note {
  min-width: 0;
  padding: 20px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: var(--panel);
}

.report-modal-note .section-title,
.report-modal-note > p {
  margin-top: 0;
}

.report-modal-note textarea {
  min-height: 180px;
  resize: vertical;
}

.compact-modal-dialog {
  width: min(720px, calc(100vw - 32px));
  height: auto;
  max-height: calc(100vh - 48px);
}

.compact-modal-body {
  padding: 24px;
  overflow-y: auto;
}

.leadership-project-card {
  grid-column: 1 / -1;
  border-color: #bfd4ff;
  background: linear-gradient(145deg, #ffffff 0%, #f6f9ff 100%);
}

.leadership-assessment-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.leadership-assessment-admin-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.leadership-assessment-heading > div,
.leadership-assessment-status,
.leadership-invite-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.leadership-assessment-status,
.leadership-invite-actions {
  margin-top: 10px;
}

.leadership-invite-config {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.leadership-invite-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.leadership-invite-config p {
  margin: 5px 0 0;
}

.empty-state-compact {
  padding: 18px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
}

.leadership-dashboard-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 16px;
  padding-top: 14px;
}

.leadership-completion-list,
.leadership-mean-list,
.leadership-dimension-ranking,
.leadership-gap-list {
  display: grid;
  gap: 10px;
}

.leadership-completion-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 28px auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.leadership-completion-row:hover,
.leadership-completion-row.active {
  border-color: #8eb5ff;
  background: #f6f9ff;
}

.leadership-completion-row > div:first-child {
  display: grid;
  gap: 3px;
}

.leadership-completion-row small {
  color: var(--muted);
}

.leadership-report-buttons {
  justify-content: flex-end;
}

.segmented-control {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f1f5f9;
}

.segmented-control button {
  min-height: 34px;
  padding: 6px 12px;
  border: 0;
  color: #475569;
  background: transparent;
  box-shadow: none;
}

.segmented-control button:hover,
.segmented-control button.active {
  color: #0f3f91;
  background: #fff;
  box-shadow: 0 1px 5px rgba(15, 63, 145, 0.12);
}

.leadership-mean-row {
  display: grid;
  gap: 6px;
}

.leadership-mean-row .progress {
  height: 8px;
}

.leadership-mean-progress {
  position: relative;
  overflow: visible;
}

.leadership-mean-progress i {
  position: absolute;
  top: -3px;
  width: 3px;
  height: 14px;
  margin-left: -1px;
  border-radius: 3px;
  background: #ea580c;
  box-shadow: 0 0 0 2px #fff;
}

.leadership-overview-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(360px, 1.3fr);
  gap: 16px;
}

.leadership-overall-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.leadership-report .leadership-score-hero {
  position: relative;
  overflow: hidden;
  min-height: 245px;
  padding: 26px;
  border: 0;
  color: #fff;
  background: linear-gradient(145deg, #173e80 0%, #2563b9 58%, #2f7fd4 100%);
  box-shadow: 0 14px 32px rgba(23, 78, 166, 0.22);
}

.leadership-score-hero::after {
  position: absolute;
  right: -56px;
  bottom: -82px;
  width: 220px;
  height: 220px;
  border: 34px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.leadership-hero-label {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.82;
}

.leadership-overall-score {
  margin: 4px 0 10px;
  color: #174ea6;
  font-size: 58px;
  font-weight: 800;
  line-height: 1;
}

.leadership-overall-score small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
}

.leadership-score-hero .leadership-overall-score {
  position: relative;
  z-index: 1;
  margin: 14px 0 8px;
  color: #fff;
  font-size: 72px;
  letter-spacing: -0.04em;
}

.leadership-score-hero .leadership-overall-score small {
  color: rgba(255, 255, 255, 0.72);
}

.leadership-overall-level {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 1;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 14px;
  font-weight: 800;
}

.leadership-overall-track {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 12px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.leadership-overall-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #93c5fd, #fff);
}

.leadership-overall-scale {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 18px;
  margin-top: 7px;
  font-size: 11px;
  opacity: 0.72;
}

.leadership-overall-scale span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}

.leadership-overall-scale .scale-end {
  transform: translateX(-100%);
}

.leadership-report .leadership-report-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  border-color: #d8e5f7;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.leadership-intro-eyebrow {
  margin-bottom: 8px;
  color: #2563b9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.leadership-intro-text {
  margin: 5px 0 18px;
  color: #1e293b;
  font-size: 16px;
  line-height: 1.85;
}

.leadership-method-note {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #475569;
  background: #edf4ff;
  font-size: 12px;
  line-height: 1.55;
}

.leadership-method-note strong {
  color: #174ea6;
}

.leadership-radar-wrap {
  display: grid;
  place-items: center;
}

.leadership-radar {
  width: min(100%, 420px);
  overflow: visible;
}

.radar-grid,
.radar-axis {
  fill: none;
  stroke: #d5deeb;
  stroke-width: 1;
}

.radar-self-shape {
  fill: rgba(37, 99, 235, 0.2);
  stroke: #2563eb;
  stroke-width: 2.5;
}

.radar-team-shape {
  fill: rgba(234, 88, 12, 0.16);
  stroke: #ea580c;
  stroke-width: 2.5;
}

.radar-label {
  fill: #334155;
  font-size: 13px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
}

.leadership-radar-legend,
.leadership-bar-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.leadership-radar-legend span,
.leadership-bar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.leadership-radar-legend i,
.leadership-bar-legend i {
  width: 20px;
  height: 8px;
  border-radius: 999px;
}

.leadership-radar-legend i.self,
.leadership-bar-legend i.self {
  background: #2563eb;
}

.leadership-radar-legend i.team,
.leadership-bar-legend i.team {
  background: #ea580c;
}

.leadership-behavior-bars {
  display: grid;
  gap: 10px;
}

.leadership-behavior-bar-row {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 5px solid var(--dimension-accent, #2563eb);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.06);
}

.leadership-dimension-heading {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 1px;
}

.leadership-dimension-heading > div {
  display: grid;
  gap: 1px;
}

.leadership-dimension-heading strong {
  color: #172554;
  font-size: 16px;
}

.leadership-dimension-heading small {
  color: var(--muted);
  font-size: 12px;
}

.leadership-rank-badge {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--dimension-accent, #2563eb);
  font-size: 13px;
  font-weight: 800;
}

.leadership-weight-badge {
  padding: 4px 9px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
}

.leadership-score-line {
  display: grid;
  grid-template-columns: 72px 88px 64px minmax(105px, 0.75fr) minmax(230px, 1.55fr);
  align-items: center;
  gap: 9px;
  font-size: 12px;
}

.leadership-score-source {
  color: #475569;
  font-weight: 700;
}

.leadership-score-number {
  color: var(--dimension-accent, #2563eb);
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1;
}

.leadership-score-number small {
  margin-left: 2px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.leadership-score-level {
  justify-self: start;
  padding: 3px 8px;
  border-radius: 999px;
  color: #475569;
  background: #eef2f7;
  font-size: 11px;
  font-weight: 800;
}

.leadership-score-entry {
  display: grid;
  padding: 6px 0;
}

.leadership-score-entry + .leadership-score-entry {
  border-top: 1px dashed #d8e0eb;
}

.leadership-score-explanation {
  margin: 0;
  padding: 6px 8px;
  border-radius: 7px;
  color: #475569;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.42;
}

.leadership-score-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef7;
}

.leadership-score-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--dimension-accent, #2563eb);
}

.leadership-score-entry.self .leadership-score-number { color: #2563eb; }
.leadership-score-entry.self .leadership-score-track i { background: #2563eb; }
.leadership-score-entry.team .leadership-score-number { color: #ea580c; }
.leadership-score-entry.team .leadership-score-track i { background: #ea580c; }
.leadership-score-entry.combined .leadership-score-number { color: #15803d; }
.leadership-score-entry.combined .leadership-score-track i { background: #16a34a; }
.leadership-score-entry.combined .leadership-score-level {
  color: #166534;
  background: #dcfce7;
}

.leadership-score-cards {
  display: grid;
  gap: 12px;
}

.leadership-score-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-left: 4px solid #2b66c8;
  border-radius: 12px;
  background: #fff;
}

.leadership-score-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.leadership-score-values > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f7fb;
}

.leadership-score-values > div.primary {
  background: #eaf8ef;
}

.leadership-score-values span,
.leadership-score-values small {
  color: var(--muted);
}

.leadership-score-values strong {
  font-size: 24px;
}

.leadership-score-values small {
  grid-column: 1 / -1;
}

.leadership-score-explanations {
  display: grid;
  gap: 6px;
}

.leadership-score-explanations p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

.leadership-low-items {
  display: grid;
  gap: 10px;
}

.leadership-low-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  align-items: center;
  gap: 16px;
  padding: 15px;
  border: 1px solid var(--border);
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  background: #fffaf0;
}

.leadership-low-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 62px;
  padding: 9px 7px;
  border-radius: 10px;
  color: #92400e;
  background: #fef3c7;
}

.leadership-low-score strong {
  font-size: 17px;
  font-weight: 850;
  line-height: 1.1;
}

.leadership-low-score small {
  color: #a16207;
  font-size: 10px;
  font-weight: 750;
}

.leadership-low-scale {
  display: grid;
  width: 78px;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
}

.leadership-low-scale i {
  height: 6px;
  border-radius: 999px;
  background: #fde7a8;
}

.leadership-low-scale i.active {
  background: #d97706;
}

.leadership-low-label {
  color: #b45309;
  font-size: 12px;
  font-weight: 800;
}

.leadership-low-item p {
  margin: 6px 0 0;
  color: #334155;
  line-height: 1.6;
}

.leadership-behavior-track {
  position: relative;
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef7;
}

.leadership-behavior-track > span {
  position: absolute;
  left: 0;
  border-radius: 999px;
}

.leadership-behavior-self-bar {
  top: 0;
  height: 8px;
  background: var(--dimension-color, #2563eb);
}

.leadership-behavior-team-bar {
  bottom: 0;
  height: 8px;
  background: #ea580c;
}

.leadership-bar-legend {
  margin-top: 16px;
}

.leadership-dimension-result,
.leadership-gap-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 4px solid #2b66c8;
  border-radius: 10px;
  background: #fff;
}

.leadership-dimension-result p,
.leadership-gap-item p {
  margin: 8px 0 0;
}

.leadership-gap-item {
  --gap-color: #2563eb;
  --gap-soft: #eff6ff;
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(220px, 1.05fr) minmax(260px, 1.45fr);
  align-items: center;
  gap: 10px 12px;
  padding: 10px 12px;
  border-left-color: var(--gap-color);
}

.leadership-gap-risk {
  --gap-color: #c2410c;
  --gap-soft: #fff7ed;
}

.leadership-gap-watch {
  --gap-color: #b45309;
  --gap-soft: #fffbeb;
}

.leadership-gap-aligned {
  --gap-color: #2563eb;
  --gap-soft: #eff6ff;
}

.leadership-gap-strength {
  --gap-color: #15803d;
  --gap-soft: #f0fdf4;
}

.leadership-gap-heading {
  display: grid;
  align-items: start;
  gap: 5px;
}

.leadership-gap-heading > strong {
  line-height: 1.35;
}

.leadership-gap-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 4px 8px 4px 5px;
  border-radius: 999px;
  color: var(--gap-color);
  background: var(--gap-soft);
  font-size: 12px;
  font-weight: 800;
}

.leadership-gap-status i {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--gap-color);
  font-size: 11px;
  font-style: normal;
}

.leadership-gap-signal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 0;
  padding: 3px;
  border-radius: 9px;
  background: #f1f5f9;
}

.leadership-gap-signal span {
  padding: 6px 5px;
  border-radius: 7px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

.leadership-gap-signal span.active {
  color: var(--gap-color);
  background: #fff;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.11);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
}

.leadership-gap-item p {
  margin: 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}

.leadership-gap-item p strong {
  color: #1e293b;
}

.leadership-action-card {
  padding: 18px !important;
}

.leadership-action-plan {
  display: grid;
  gap: 16px;
}

.leadership-action-focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 15px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #edf4ff, #f8fbff);
}

.leadership-action-focus p {
  max-width: 520px;
  margin: 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.6;
}

.leadership-action-eyebrow {
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.leadership-action-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.leadership-action-tags strong {
  padding: 5px 10px;
  border-radius: 999px;
  color: #174ea6;
  background: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 185, 0.1);
  font-size: 12px;
}

.leadership-action-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.leadership-action-phase {
  display: flex;
  min-width: 0;
  padding: 15px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  flex-direction: column;
  background: #fff;
}

.leadership-action-phase-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid #e8eef6;
}

.leadership-action-phase-head > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #2464b8;
  font-size: 12px;
  font-weight: 850;
}

.leadership-action-phase-head small {
  color: #64748b;
  font-size: 10px;
  font-weight: 750;
}

.leadership-action-phase-head h3 {
  margin: 2px 0 0;
  color: #172033;
  font-size: 15px;
}

.leadership-action-phase ul {
  display: grid;
  gap: 9px;
  margin: 13px 0;
  padding-left: 17px;
  color: #475569;
  font-size: 12px;
  line-height: 1.65;
}

.leadership-action-phase li::marker {
  color: #4b83ce;
}

.leadership-action-phase li strong {
  color: #1e3a5f;
}

.leadership-action-outcome {
  margin: auto 0 0 !important;
  padding: 10px;
  border-radius: 9px;
  color: #475569;
  background: #f7f9fc;
  font-size: 11px;
  line-height: 1.55;
}

.leadership-action-outcome strong {
  display: block;
  margin-bottom: 3px;
  color: #174ea6;
}

.leadership-action-rhythm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border: 1px dashed #a9bdd9;
  border-radius: 10px;
  color: #475569;
  background: #fbfdff;
  font-size: 11px;
}

.leadership-action-rhythm strong {
  margin-right: 3px;
  color: #1e3a5f;
}

.leadership-action-rhythm span {
  padding: 4px 8px;
  border-radius: 6px;
  background: #eef4fb;
}

.notice.warning {
  border-color: #f3c36b;
  background: #fff8e8;
  color: #8a5a00;
}

.report-note-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.page-title {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.page-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid > *,
.leadership-dashboard-body > * {
  min-width: 0;
}

.grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

.card {
  padding: 14px;
}

.collapsible-panel {
  padding: 0;
}

.collapsible-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.collapsible-summary::-webkit-details-marker {
  display: none;
}

.collapsible-summary::after {
  content: "";
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e1edfc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4 6.5L9 11.5L14 6.5' stroke='%231f5fbf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.collapsible-panel:not([open]) .collapsible-summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M6.5 4L11.5 9L6.5 14' stroke='%233568a9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.collapsible-panel > :not(summary) {
  margin: 0 18px 18px;
}

.project-card {
  background: #f3f6fa;
  border-color: #c8d3df;
}

.project-card[open] {
  background: #f7f9fc;
}

.project-card > .project-summary {
  background: #eef3f8;
  border-radius: 8px;
}

.project-card[open] > .project-summary {
  border-bottom: 1px solid #d8e1ea;
  border-radius: 8px 8px 0 0;
}

.admin-project-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.admin-project-list-heading .section-title {
  margin-bottom: 2px;
}

.admin-project-search {
  width: min(380px, 100%);
  margin: 0;
  color: #4c6685;
  font-size: 12px;
  font-weight: 800;
}

.admin-project-search input {
  min-height: 44px;
  margin-top: 5px;
  padding-left: 42px;
  border-color: #bcd1ec;
  border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Ccircle cx='8' cy='8' r='4.5' stroke='%233568a9' stroke-width='2'/%3E%3Cpath d='M11.5 11.5L15 15' stroke='%233568a9' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 14px center;
}

.admin-project-search-summary {
  min-height: 18px;
  margin: 10px 0 8px;
}

.admin-project-list {
  display: grid;
  gap: 10px;
}

button.admin-project-list-card {
  width: 100%;
  min-width: 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 42px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid #c6d6e8;
  border-radius: 12px;
  background: #eef3f8;
  color: #172033;
  text-align: left;
  box-shadow: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

button.admin-project-list-card[hidden] {
  display: none;
}

button.admin-project-list-card:hover,
button.admin-project-list-card:focus-visible {
  transform: translateY(-1px);
  border-color: #82aae0;
  background: #f7faff;
  box-shadow: 0 8px 18px rgba(31, 95, 191, 0.1);
}

.admin-project-list-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-project-list-copy strong,
.admin-project-list-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-project-list-copy strong {
  font-size: 15px;
  font-weight: 900;
}

.admin-project-list-copy small {
  color: #71849c;
  font-size: 11px;
}

.admin-project-list-meta {
  padding: 5px 9px;
  border-radius: 999px;
  background: #e4edf8;
  color: #315d91;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-project-list-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e1edfc;
  color: #2567b8;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.admin-project-search-empty {
  margin: 16px 0 4px;
  padding: 22px;
  border: 1px dashed #cbd8e8;
  border-radius: 12px;
  background: #f8fafc;
  text-align: center;
}

.project-details-modal-dialog {
  width: min(1320px, calc(100vw - 48px));
}

.project-details-modal-body {
  min-height: 0;
  padding: 20px;
  overflow: auto;
}

.project-details-content {
  padding: 18px;
  border: 1px solid #d7e2ef;
  border-radius: 14px;
  background: #fff;
}

@media (max-width: 900px) {
  .client-page .sidebar {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    overflow: visible;
  }

  .client-page .sidebar-logo {
    width: 104px;
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    padding: 6px;
  }

  .client-page .sidebar .brand,
  .client-page .sidebar .nav-link {
    display: none;
  }

  .client-page .sidebar #logoutBtn {
    width: auto;
    min-width: 104px;
    min-height: 44px;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin: 0;
    padding: 9px 14px;
  }

  .client-page .main {
    width: 100%;
    padding: 12px;
    overflow-x: hidden;
  }

  .client-page .client-topbar {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 12px;
  }

  .client-page .client-topbar > * {
    width: auto;
    min-width: 0;
  }

  .client-page .client-topbar > div {
    flex: 1 1 auto;
  }

  .client-page .client-topbar .page-title {
    font-size: 20px;
  }

  .client-page .client-topbar .page-subtitle {
    display: none;
  }

  .client-page .client-topbar #userInfo {
    width: auto;
    max-width: 48%;
    min-height: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .client-page .client-project-workspace {
    display: none;
  }

  .client-page .client-workspace-frame {
    overflow: visible;
    border-radius: 14px;
  }

  .client-page .client-workspace-body {
    padding: 10px;
    border-top: 0;
    border-radius: 14px;
  }

  button.client-mobile-project-switcher {
    position: sticky;
    z-index: 30;
    top: max(8px, env(safe-area-inset-top));
    width: 100%;
    min-width: 0;
    min-height: 74px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #8fb4e4;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff, #eef6ff);
    color: #17243a;
    text-align: left;
    box-shadow: 0 9px 24px rgba(24, 75, 136, 0.16);
  }

  .client-mobile-project-switcher-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #286ed0, #1853a9);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
  }

  .client-mobile-project-switcher-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .client-mobile-project-switcher-copy small,
  .client-mobile-project-switcher-copy strong,
  .client-mobile-project-switcher-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .client-mobile-project-switcher-copy small {
    color: #657a93;
    font-size: 10px;
    font-weight: 800;
  }

  .client-mobile-project-switcher-copy strong {
    color: #173f73;
    font-size: 15px;
  }

  .client-mobile-project-switcher-copy span {
    color: #71849c;
    font-size: 10px;
    font-weight: 700;
  }

  .client-mobile-project-switcher-action {
    min-width: 50px;
    padding: 7px 9px;
    border-radius: 10px;
    background: #e1edfc;
    color: #1f5fbf;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
  }

  .client-mobile-project-modal:not([hidden]) {
    display: flex;
  }
}

@media (max-width: 760px) {
  .admin-project-list-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .admin-project-search {
    width: 100%;
  }

  button.admin-project-list-card {
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 8px 12px;
    padding: 12px;
  }

  .admin-project-list-meta {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .admin-project-list-arrow {
    width: 38px;
    height: 38px;
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .project-details-modal-body {
    padding: 12px;
  }

  .project-details-content {
    padding: 12px;
  }
}

.section-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 12px;
}

.collapsible-summary .section-title {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.row.between {
  justify-content: space-between;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 750;
  color: #334155;
  margin: 0 0 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 10px 11px;
  font: inherit;
  color: var(--text);
  background: white;
}

select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 42px;
  border-color: #c9d9ee;
  border-radius: 12px;
  padding-right: 52px;
  background-color: #fff;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M6.5 4L11.5 9L6.5 14' stroke='%233568a9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(#edf4fe, #edf4fe);
  background-repeat: no-repeat;
  background-position: right 13px center, right center;
  background-size: 18px 18px, 42px 100%;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

select:open {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4 6.5L9 11.5L14 6.5' stroke='%231f5fbf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(#e1edfc, #e1edfc);
}

select:hover:not(:disabled) {
  border-color: #9fbee5;
}

select:focus {
  border-color: #75a4dc;
  box-shadow: 0 0 0 3px rgba(53, 107, 169, 0.12);
  outline: 0;
}

select:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

button,
.button {
  border: 0;
  border-radius: 7px;
  background: var(--primary);
  color: white;
  padding: 10px 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

button:hover,
.button:hover {
  background: var(--primary-dark);
}

button.secondary,
.button.secondary {
  background: #e2e8f0;
  color: #1e293b;
}

button.secondary:hover,
.button.secondary:hover {
  background: #cbd5e1;
}

button.danger {
  background: var(--red);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.table th {
  color: #475569;
  font-size: 12px;
  background: var(--panel-soft);
}

.table input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

#responsesTable {
  min-width: 0;
  max-width: 100%;
}

#responsesTable > .small {
  margin: 0 0 12px;
}

.project-report-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 440px) auto;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
}

.project-report-search {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.project-report-search input {
  min-width: 0;
  padding-left: 42px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Ccircle cx='8' cy='8' r='4.5' stroke='%233568a9' stroke-width='2'/%3E%3Cpath d='M11.5 11.5L15 15' stroke='%233568a9' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 14px center;
}

.project-report-count {
  justify-self: end;
  padding-bottom: 11px;
  white-space: nowrap;
}

.project-report-empty {
  margin: 18px 8px;
  text-align: center;
}

@media (max-width: 760px) {
  .project-report-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .project-report-count {
    justify-self: start;
    padding-bottom: 0;
  }
}

.response-table-scroll {
  max-height: 340px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #b7c6d8 #edf2f8;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.response-table-scroll .table {
  margin: 0;
}

.response-table-scroll .table th {
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 1px 0 var(--line);
}

.response-table-scroll .table tbody tr {
  transition: background-color 0.16s ease;
}

.response-table-scroll .table tbody tr:hover {
  background: #f5f9ff;
}

.response-table-scroll::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.response-table-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #edf2f8;
}

.response-table-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b7c6d8;
}

.response-table-scroll::-webkit-scrollbar-thumb:hover {
  background: #91a7c0;
}

.report-import-controls {
  margin-top: 12px;
}

.report-import-actions {
  margin: 12px 0;
}

.report-import-list {
  max-height: 430px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.report-import-list .table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 800;
  background: #e2e8f0;
  color: #334155;
}

.pill.blue {
  background: #dbeafe;
  color: #1e40af;
}

.pill.green {
  background: #dcfce7;
  color: #166534;
}

.pill.amber {
  background: #fef3c7;
  color: #92400e;
}

.notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}

#sectionInfo {
  font-size: 16px;
  line-height: 1.7;
}

#sectionInfo strong {
  font-size: 19px;
  margin-right: 8px;
}

.section-intro {
  padding: 22px;
  background: #fff7f7;
  border: 1px solid #f0b8ba;
  border-left: 6px solid var(--brand-red);
  border-radius: 8px;
  color: #4a1f22;
  font-size: 17px;
  line-height: 1.75;
}

.section-intro strong {
  display: block;
  font-size: 23px;
  margin-bottom: 10px;
}

.leadership-section-intro-details {
  display: grid;
  gap: 10px;
}

.leadership-section-intro-details p {
  margin: 0;
}

.leadership-section-intro-details p b {
  color: #681f24;
}

.leadership-scale-guide {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.leadership-scale-guide span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 6px;
  border: 1px solid #efc4c6;
  border-radius: 8px;
  background: #fff;
  color: #6b2a2f;
  font-size: 13px;
  text-align: center;
}

.leadership-scale-guide b {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
}

.survey-global-instructions {
  margin: 0 0 16px;
  padding: 16px 18px;
  border: 1px solid #f0b8ba;
  border-left: 6px solid var(--brand-red);
  border-radius: 8px;
  background: #fff7f7;
  color: #4a1f22;
  font-size: 14px;
  line-height: 1.7;
}

.survey-global-instructions strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.survey-global-instructions p {
  margin: 0 0 8px;
}

.survey-global-instructions ol {
  margin: 0;
  padding-left: 22px;
}

.survey-global-instructions li + li {
  margin-top: 5px;
}

.section-break {
  margin: 18px 0 8px;
  padding: 12px 14px;
  border-left: 5px solid var(--brand-red);
  border-radius: 8px;
  background: #fff7f7;
  color: #4a1f22;
}

.section-break strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.section-break span {
  display: block;
  font-size: 13px;
  color: #6b2a2f;
}

.error {
  color: var(--red);
  font-weight: 750;
}

.success {
  color: var(--green);
  font-weight: 750;
}

.login-wrap,
.survey-wrap {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 20px;
}

.login-box {
  width: min(430px, 100%);
}

.survey-box {
  width: min(980px, 100%);
}

.answer-progress-card {
  position: sticky;
  top: 12px;
  z-index: 20;
  width: 184px;
  margin: 12px 0 12px auto;
  padding: 11px 13px;
  border: 1px solid #cbd9ec;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(8px);
}

.answer-progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.answer-progress-heading strong {
  font-size: 15px;
}

.answer-progress-text {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.answer-progress-subject {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.leadership-subject-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 8px;
  padding: 14px 16px;
  border: 1px solid #bfd3f2;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--primary-dark);
}

.leadership-subject-banner strong {
  font-size: 16px;
}

.leadership-subject-banner span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.answer-progress-bar {
  height: 6px;
  margin-top: 7px;
}

@media (min-width: 1400px) {
  .answer-progress-card {
    position: fixed;
    top: 20px;
    right: max(20px, calc((100vw - 980px) / 2 - 204px));
    margin: 0;
  }
}

.question {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}

@media (min-width: 1400px) {
  .question {
    scroll-margin-top: 18px;
  }
}

.question.missing {
  border: 2px solid #dc2626;
  border-radius: 8px;
  padding: 14px;
  background: #fff1f2;
  margin: 10px 0;
}

.question.missing .question-title::after {
  content: "（未作答）";
  color: #dc2626;
  margin-left: 8px;
}

.question:last-child {
  border-bottom: 0;
}

.question-title {
  font-weight: 800;
  margin-bottom: 10px;
}

.options {
  display: grid;
  gap: 8px;
}

.option {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid #dbe3ec;
  border-radius: 7px;
  background: #fbfdff;
  cursor: pointer;
}

.option input {
  width: auto;
  margin-top: 3px;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: #dbe3ec;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  background: var(--primary);
}

.report-page {
  background: white;
  width: 800px;
  min-height: 1131px;
  margin: 0 auto;
  padding: 30px 34px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.leadership-report {
  width: 900px;
  padding: 24px 30px;
}

.leadership-report .report-brand {
  padding-bottom: 9px;
  margin-bottom: 12px;
}

.leadership-report .report-brand img {
  width: 155px;
}

.leadership-report .report-title {
  font-size: 25px;
}

.leadership-report .report-subtitle {
  margin-bottom: 12px;
}

.leadership-report .grid {
  gap: 12px;
}

.leadership-report .card {
  padding: 10px 12px;
}

.leadership-report .section-title {
  margin-bottom: 8px;
}

.leadership-report .report-section {
  margin-top: 12px;
}

.leadership-report p {
  margin: 6px 0;
}

.leadership-report .report-note {
  font-size: 11px;
  line-height: 1.35;
}

.leadership-summary-grid {
  display: block;
}

.leadership-report .report-info-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.pdf-export-report.report-page {
  width: 800px !important;
  max-width: none !important;
  min-height: auto !important;
}

.pdf-export-report.leadership-report {
  width: 900px !important;
}

.pdf-export-report,
.pdf-export-report * {
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
}

.pdf-export-report .grid.two,
.pdf-export-report .grid.three,
.pdf-export-report .form-grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

.pdf-export-report .grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.report-watermark {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-content: start;
  row-gap: 34px;
  column-gap: 16px;
  padding: 18px 4px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.report-watermark span {
  color: rgba(183, 49, 53, 0.085);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  transform: rotate(-28deg);
  white-space: nowrap;
}

.report-page > :not(.report-watermark) {
  position: relative;
  z-index: 1;
}

.report-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 2px solid #f1d5d6;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.report-brand img {
  width: 170px;
  height: auto;
}

.anti-code {
  text-align: right;
  color: var(--brand-red);
  font-weight: 900;
  font-size: 13px;
}

.report-title {
  text-align: center;
  font-size: 27px;
  margin: 0 0 4px;
}

.report-subtitle {
  text-align: center;
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 750;
}

.report-section {
  margin-top: 18px;
}

.report-note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.expert-helper {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 4px solid var(--primary);
  border-radius: 7px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
}

.expert-helper strong {
  color: #1e293b;
}

.bar-list {
  display: grid;
  gap: 8px;
}

.bar-row {
  display: grid;
  grid-template-columns: 84px 1fr 44px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--bar-color, var(--primary));
}

.career-top-list {
  display: grid;
  gap: 8px;
}

.career-top-item {
  border-left: 4px solid var(--bar-color, var(--primary));
  background: #f8fafc;
  border-radius: 7px;
  padding: 8px 10px;
}

.career-top-item p {
  margin: 5px 0 0;
}

.dcsi-definition {
  margin: 10px 0 0;
  line-height: 1.65;
}

.dcsi-definition div:first-child {
  font-weight: 800;
  color: #334155;
}

.aggregate-report-panel {
  padding: 0;
  position: relative;
}

.aggregate-report-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.aggregate-report-summary::-webkit-details-marker {
  display: none;
}

.aggregate-report-summary::after {
  content: "";
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e1edfc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4 6.5L9 11.5L14 6.5' stroke='%231f5fbf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

@media (min-width: 1181px) {
  .expert-page .aggregate-report-panel:has(> .aggregate-report-tools:not(:empty)) > .aggregate-report-summary::after {
    margin-top: 9px;
  }
}

.aggregate-report-panel:not([open]) .aggregate-report-summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M6.5 4L11.5 9L6.5 14' stroke='%233568a9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.aggregate-report-summary .section-title {
  margin-bottom: 4px;
}

.aggregate-report-summary p {
  margin: 0;
}

.aggregate-report-tools {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 78px;
  width: min(620px, calc(100% - 520px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.expert-search-control {
  position: relative;
  min-width: 0;
}

.expert-search-control label {
  display: block;
  margin: 0 0 4px 2px;
  color: #58708f;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.expert-search-field {
  min-width: 0;
  min-height: 40px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid #cfdaea;
  border-radius: 11px;
  background: #f8fbff;
  box-shadow: 0 3px 10px rgba(37, 74, 120, 0.05);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.expert-search-field:hover {
  border-color: #a9bfdb;
  background: #fff;
}

.expert-search-field:focus-within {
  border-color: #4f83ca;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11), 0 7px 18px rgba(37, 74, 120, 0.09);
}

.expert-search-field input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}

.expert-search-icon {
  color: #4978b6;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

button.expert-search-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #edf4fe;
  color: #356ba9;
}

button.expert-search-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-65%, -50%) rotate(-45deg);
  transition: transform 180ms ease;
}

button.expert-search-toggle[aria-expanded="true"] {
  border-color: #c9dcf6;
  background: #e1edfc;
  color: #1f5fbf;
}

button.expert-search-toggle[aria-expanded="true"]::before {
  transform: translate(-50%, -65%) rotate(45deg);
}

button.expert-search-toggle:hover {
  border-color: #c1d7f2;
  background: #dceafb;
  color: #194f91;
}

.expert-project-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  max-height: 270px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #cbd9eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(32, 61, 98, 0.18);
  scrollbar-width: thin;
}

button.expert-project-option {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  background: transparent;
  color: #20334b;
  text-align: left;
}

button.expert-project-option:hover,
button.expert-project-option.active {
  background: #edf5ff;
  color: #174f98;
}

.expert-project-option span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.expert-project-option strong,
.expert-project-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expert-project-option small {
  color: #71849c;
  font-size: 11px;
  font-weight: 600;
}

.expert-project-option i {
  padding: 2px 7px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d5ca8;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.expert-project-empty {
  margin: 0;
  padding: 14px;
  color: #71849c;
  font-size: 12px;
  text-align: center;
}

.aggregate-report-body {
  padding: 0 18px 18px;
}

.aggregate-wide-card {
  grid-column: 1 / -1;
}

.completion-card {
  padding: 0;
}

.completion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.completion-summary::-webkit-details-marker {
  display: none;
}

.completion-summary::after {
  content: "";
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e1edfc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4 6.5L9 11.5L14 6.5' stroke='%231f5fbf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.completion-card:not([open]) .completion-summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M6.5 4L11.5 9L6.5 14' stroke='%233568a9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.completion-card > :not(summary) {
  margin: 0 14px 14px;
}

.career-completion-overview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #cfe0f8;
  border-radius: 14px;
  background: linear-gradient(135deg, #f3f8ff 0%, #eefbf5 100%);
}

.career-completion-metric {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 16px;
  border-right: 1px solid #cfe0e8;
}

.career-completion-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #168a50, #27ae6a);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(22, 138, 80, 0.2);
}

.career-completion-metric div,
.career-completion-copy {
  display: grid;
  gap: 2px;
}

.career-completion-metric strong {
  color: #113665;
  font-size: 25px;
  line-height: 1;
}

.career-completion-metric span:last-child,
.career-completion-copy span {
  color: #667b94;
  font-size: 12px;
  font-weight: 700;
}

.career-completion-copy strong {
  color: #1a365d;
  font-size: 15px;
}

.career-completion-rate {
  padding: 7px 11px;
  border-radius: 999px;
  background: #dcfce7;
  color: #157347;
  font-size: 12px;
  font-weight: 900;
}

button.career-completion-export {
  width: auto;
  min-height: 36px;
  padding: 8px 12px;
  border-color: #b8d5c7;
  background: #dcfce7;
  color: #157347;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

button.career-completion-export:hover:not(:disabled) {
  border-color: #86bea1;
  background: #c8f6dc;
}

.career-completion-grid {
  max-height: 273px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  grid-auto-rows: 61px;
  gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding: 2px 3px 2px 0;
}

.career-completion-grid::-webkit-scrollbar {
  width: 7px;
}

.career-completion-grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #eef3f8;
}

.career-completion-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b7c7da;
}

.career-completion-grid::-webkit-scrollbar-thumb:hover {
  background: #8fa8c4;
}

.career-completion-person {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 24px 34px minmax(0, 1fr) auto;
  align-items: center;
  justify-content: stretch;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid #dce6f2;
  border-radius: 11px;
  background: #fff;
  color: inherit;
  font-family: inherit;
  text-align: left;
  box-shadow: 0 3px 10px rgba(28, 63, 106, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.career-completion-person:hover {
  transform: translateY(-2px);
  border-color: #9bbde8;
  background: #f7faff;
  box-shadow: 0 8px 18px rgba(28, 84, 153, 0.11);
}

.career-completion-person:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.2);
  outline-offset: 1px;
  border-color: #5d91d4;
}

.career-completion-index {
  color: #8a9bb0;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.career-completion-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e8f1ff;
  color: #1f63bb;
  font-size: 14px;
  font-weight: 900;
}

.career-completion-identity {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.career-completion-identity strong,
.career-completion-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.career-completion-identity strong {
  color: #1e2f45;
  font-size: 13px;
}

.career-completion-identity small {
  color: #71849c;
  font-size: 10px;
  font-weight: 700;
}

.career-completion-done {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #15804b;
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.career-completion-done i {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #dcfce7;
  font-size: 12px;
  font-style: normal;
}

.career-completion-done b {
  color: #6b8cab;
  font-size: 17px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.career-completion-person:hover .career-completion-done b {
  transform: translateX(2px);
}

.career-completion-empty {
  padding: 24px;
  border: 1px dashed #cbd8e8;
  border-radius: 12px;
  color: #74869b;
  text-align: center;
}

@media (max-width: 1180px) {
  .aggregate-report-tools {
    position: static;
    width: auto;
    margin: 0 18px 16px;
  }
}

@media (max-width: 760px) {
  .aggregate-report-tools {
    grid-template-columns: minmax(0, 1fr);
    margin: 0 12px 14px;
  }

  .career-completion-overview {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px;
  }

  .career-completion-metric {
    padding-right: 0;
    border-right: 0;
  }

  .career-completion-copy {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .career-completion-grid {
    max-height: 273px;
    grid-template-columns: 1fr;
  }
}

.aggregate-report-panel:not([open]) .aggregate-report-body,
.aggregate-report-panel:not([open]) .aggregate-report-tools {
  display: none;
}

.aggregate-list {
  display: grid;
  gap: 8px;
}

.aggregate-scroll-list {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.energy-ranking-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(61, 126, 213, 0.1), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.energy-ranking-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.energy-ranking-head .section-title {
  margin-bottom: 3px;
}

.energy-ranking-head p {
  margin-top: 0;
}

.energy-formula-chip {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid #cfe0f5;
  border-radius: 999px;
  background: rgba(237, 245, 255, 0.92);
  color: #37618f;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.energy-ranking-scroll {
  max-height: 360px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding: 2px 4px 2px 0;
}

.energy-ranking-scroll::-webkit-scrollbar {
  width: 7px;
}

.energy-ranking-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #edf2f8;
}

.energy-ranking-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b7c6d8;
}

.energy-rank-list {
  display: grid;
  gap: 8px;
}

.energy-rank-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 3px 10px rgba(34, 69, 112, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.energy-rank-row:hover {
  transform: translateY(-1px);
  border-color: #a9c3e2;
  box-shadow: 0 8px 18px rgba(34, 82, 138, 0.1);
}

.energy-rank-row.top-1 {
  border-color: #f1d38a;
  background: linear-gradient(90deg, #fffaf0 0%, #ffffff 42%);
}

.energy-rank-row.top-2 {
  border-color: #cbd5e1;
  background: linear-gradient(90deg, #f8fafc 0%, #ffffff 42%);
}

.energy-rank-row.top-3 {
  border-color: #e7b99a;
  background: linear-gradient(90deg, #fff7f2 0%, #ffffff 42%);
}

.energy-rank-number {
  color: #8091a6;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.energy-rank-row.top-1 .energy-rank-number {
  color: #b7791f;
}

.energy-rank-row.top-2 .energy-rank-number {
  color: #64748b;
}

.energy-rank-row.top-3 .energy-rank-number {
  color: #b75c2f;
}

.energy-rank-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: color-mix(in srgb, var(--energy-color) 12%, white);
  color: var(--energy-color);
  font-size: 15px;
  font-weight: 900;
}

.energy-rank-content {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.energy-rank-primary,
.energy-rank-secondary {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.energy-rank-primary > strong {
  min-width: 0;
  overflow: hidden;
  color: #182a43;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.energy-rank-score {
  flex: 0 0 auto;
  color: #123d73;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.energy-rank-score small {
  margin-left: 2px;
  color: #6d8199;
  font-size: 10px;
}

.energy-rank-secondary > small {
  min-width: 0;
  overflow: hidden;
  color: #8494a8;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.energy-style-chip {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--energy-color) 10%, white);
  color: var(--energy-color);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.energy-rank-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef5;
}

.energy-rank-track i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--energy-color) 68%, white), var(--energy-color));
}

@media (max-width: 760px) {
  .energy-ranking-head {
    align-items: stretch;
    flex-direction: column;
  }

  .energy-formula-chip {
    align-self: flex-start;
  }

  .energy-rank-row {
    grid-template-columns: 26px 34px minmax(0, 1fr);
    gap: 8px;
    padding: 9px 8px;
  }

  .energy-rank-avatar {
    width: 34px;
    height: 34px;
  }

  .energy-rank-secondary > small {
    display: none;
  }
}

.aggregate-detail {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
  overflow: hidden;
}

.aggregate-detail summary {
  display: grid;
  grid-template-columns: minmax(110px, 1.1fr) minmax(110px, 1fr) 54px 34px;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.aggregate-detail summary::-webkit-details-marker {
  display: none;
}

.aggregate-detail summary::after {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #edf4fe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M6.5 4L11.5 9L6.5 14' stroke='%233568a9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.aggregate-detail[open] summary::after {
  background-color: #e1edfc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4 6.5L9 11.5L14 6.5' stroke='%231f5fbf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.aggregate-track {
  height: 11px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.aggregate-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color, var(--primary));
}

.aggregate-value {
  text-align: right;
  color: #1e293b;
  white-space: nowrap;
}

.aggregate-detail > p,
.aggregate-detail-body {
  padding: 0 10px 10px 28px;
}

.aggregate-four-ranking-scroll {
  max-height: 320px;
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #b7c6d8 #edf2f8;
}

.aggregate-four-ranking-scroll::-webkit-scrollbar {
  width: 7px;
}

.aggregate-four-ranking-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #edf2f8;
}

.aggregate-four-ranking-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b7c6d8;
}

.aggregate-four-ranking-scroll::-webkit-scrollbar-thumb:hover {
  background: #91a7c0;
}

.aggregate-static-row {
  display: grid;
  grid-template-columns: minmax(110px, 1.1fr) minmax(110px, 1fr) 54px;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
  font-size: 13px;
  font-weight: 800;
}

.completion-table-wrap {
  max-height: 430px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.completion-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.status-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 18px;
  font-weight: 900;
}

.status-mark.ok {
  color: #166534;
  background: #dcfce7;
}

.status-mark.no {
  color: #b91c1c;
  background: #fee2e2;
}

.aggregate-rank-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.aggregate-rank-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-top: 1px solid #e2e8f0;
  padding-top: 7px;
}

.aggregate-rank-list li > span {
  min-width: 0;
  flex: 1 1 auto;
}

.aggregate-rank-list li > span > strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aggregate-rank-list li > b {
  flex: 0 0 auto;
  color: #0f2748;
  font-size: clamp(13px, 1.15vw, 17px);
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
  text-align: right;
  white-space: nowrap;
}

.aggregate-rank-list small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.aggregate-person-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.aggregate-person-bars {
  display: grid;
  gap: 9px;
}

.aggregate-person-bar {
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
  font-size: 12px;
}

.lpc-mini-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(to right, #3b82f6, #60a5fa, #cbd5e1, #f87171, #ef4444);
  margin-top: 6px;
}

.lpc-mini-track span {
  position: absolute;
  top: -4px;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 999px;
  border: 2px solid #1e293b;
  background: white;
}

.lpc-gauge {
  padding: 2px 8px 20px;
  margin: 10px 0 14px;
}

.lpc-gauge-track {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(to right, #3b82f6, #60a5fa, #cbd5e1, #f87171, #ef4444);
}

.lpc-marker {
  position: absolute;
  top: -5px;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  border: 2px solid #1e293b;
  border-radius: 999px;
  background: white;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.22);
}

.lpc-labels {
  position: relative;
  height: 18px;
  margin-top: 5px;
  color: #64748b;
  font-size: 10px;
  font-weight: 750;
}

.lpc-label {
  position: absolute;
  top: 0;
  white-space: nowrap;
}

.lpc-label-left {
  left: 0;
}

.lpc-label-right {
  right: 0;
}

.lpc-label-point {
  width: 0;
  display: flex;
  justify-content: center;
  text-align: center;
}

.lpc-label-mid {
  color: #334155;
  font-weight: 900;
}

.quad-wrap {
  display: flex;
  justify-content: center;
  padding: 26px 44px;
}

.quad-box {
  width: 220px;
  height: 220px;
  position: relative;
  border: 2px solid #dbe3ec;
  background: #f8fafc;
  border-radius: 8px;
}

.quad-box::before,
.quad-box::after {
  content: "";
  position: absolute;
  background: #cbd5e1;
}

.quad-box::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
}

.quad-box::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
}

.quad-label {
  position: absolute;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  z-index: 1;
}

.quad-axis-label {
  position: absolute;
  z-index: 2;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.quad-axis-top {
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
}

.quad-axis-bottom {
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
}

.quad-axis-left {
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
}

.quad-axis-right {
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
}

.axis-note {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  font-size: 12px;
  color: #475569;
  font-weight: 750;
}

.quad-star {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  color: #dc2626;
  z-index: 2;
}

.four-d-card {
  border: 1px solid #dbe3ec;
  border-left: 6px solid var(--four-d-color, var(--primary));
  padding: 12px;
  border-radius: 8px;
  background: #fbfdff;
}

.four-d-result-card {
  border: 1px solid #dbe3ec;
  border-left: 6px solid var(--four-d-color, var(--primary));
  padding: 10px 12px;
  border-radius: 8px;
  background: #fbfdff;
}

.four-d-keyword-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.four-d-keyword-pill {
  border: 1px solid var(--four-d-color, var(--primary));
  background: #ffffff;
  color: var(--four-d-color, var(--primary));
}

.four-d-result-swatch {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
}

.four-d-color-result {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.four-d-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  background: var(--four-d-color, var(--primary));
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15), 0 8px 16px rgba(15, 23, 42, 0.12);
}

.four-d-band {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--four-d-color, var(--primary)), rgba(255, 255, 255, 0));
}

.leadership-report .four-d-card {
  padding: 10px 12px;
}

.leadership-report .four-d-color-result {
  grid-template-columns: 24px 1fr;
  margin-bottom: 6px;
}

.leadership-report .four-d-dot {
  width: 24px;
  height: 24px;
}

.leadership-report .four-d-band {
  height: 12px;
}

.leadership-report .quad-wrap {
  padding: 20px 38px;
}

.leadership-report .quad-box {
  width: 190px;
  height: 190px;
}

.leadership-report .lpc-gauge {
  margin: 8px 0 12px;
  padding-bottom: 18px;
}

@media (max-width: 900px) {
  .leadership-dashboard-body,
  .leadership-overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .leadership-action-timeline {
    grid-template-columns: minmax(0, 1fr);
  }

  .leadership-completion-row {
    grid-template-columns: minmax(170px, 1fr) 28px auto auto;
  }

  .leadership-report-buttons {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    overflow-y: visible;
  }

  .report-modal-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .report-modal-report {
    overflow: visible;
  }

  .report-modal-note {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .grid.two,
  .grid.three,
  .form-grid.two,
  .form-grid.three {
    grid-template-columns: minmax(0, 1fr);
  }

  .aggregate-report-panel,
  .leadership-assessment-dashboard,
  .aggregate-report-body,
  .leadership-dashboard-body,
  .aggregate-report-body > *,
  .leadership-dashboard-body > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .report-page {
    width: 100%;
    min-height: auto;
  }
}

@media (max-width: 640px) {
  body {
    background: white;
  }

  .leadership-report .leadership-score-hero,
  .leadership-report .leadership-report-intro,
  .leadership-behavior-bar-row {
    padding: 18px;
  }

  .leadership-score-hero .leadership-overall-score {
    font-size: 60px;
  }

  .leadership-score-line {
    grid-template-columns: 72px 100px 1fr;
    gap: 9px;
  }

  .leadership-score-level {
    justify-self: end;
  }

  .leadership-score-track {
    grid-column: 1 / -1;
  }

  .leadership-score-explanation {
    grid-column: 1 / -1;
  }

  .leadership-gap-item {
    grid-template-columns: 1fr;
  }

  .leadership-gap-heading {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .leadership-gap-status {
    justify-self: end;
  }

  .leadership-low-item {
    grid-template-columns: 96px 1fr;
    gap: 12px;
  }

  .leadership-low-score strong {
    font-size: 16px;
  }

  .main {
    width: 100%;
    padding: 16px 12px;
    overflow-x: hidden;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar > * {
    width: 100%;
    min-width: 0;
  }

  .aggregate-report-summary {
    padding: 14px;
  }

  .aggregate-report-body,
  .leadership-dashboard-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 0 12px 12px;
  }

  .completion-card > :not(summary) {
    margin-right: 10px;
    margin-left: 10px;
  }

  .aggregate-detail summary {
    grid-template-columns: minmax(0, 1fr) minmax(64px, 0.8fr) 36px 34px;
    gap: 6px;
    padding: 9px 8px;
  }

  .aggregate-static-row {
    grid-template-columns: minmax(0, 1fr) minmax(64px, 0.8fr) 36px;
    gap: 6px;
    padding: 9px 8px;
  }

  .aggregate-label,
  .aggregate-track,
  .aggregate-value {
    min-width: 0;
  }

  .aggregate-label {
    overflow-wrap: anywhere;
  }

  .aggregate-detail > p,
  .aggregate-detail-body {
    padding-left: 18px;
  }

  .aggregate-four-ranking-scroll {
    max-height: 260px;
  }

  .aggregate-rank-list li {
    gap: 8px;
  }

  .aggregate-rank-list li > b {
    font-size: 12px;
  }

  .completion-table-wrap,
  .response-table-scroll {
    width: auto;
    max-width: none;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .response-table-scroll {
    max-height: 300px;
  }

  .completion-table {
    min-width: 0;
    table-layout: fixed;
  }

  .completion-table th,
  .completion-table td {
    padding-right: 5px;
    padding-left: 5px;
    overflow-wrap: anywhere;
  }

  .completion-table th:first-child,
  .completion-table td:first-child {
    width: 11%;
  }

  .completion-table th:nth-child(2),
  .completion-table td:nth-child(2) {
    width: 25%;
  }

  #responsesTable .table {
    min-width: 560px;
  }

  .leadership-completion-row {
    grid-template-columns: 1fr auto;
  }

  .leadership-completion-row > .small,
  .leadership-completion-row > .pill {
    grid-column: 1 / -1;
  }

  .leadership-report-buttons {
    grid-column: 1 / -1;
    width: 100%;
  }

  .leadership-report-buttons button {
    flex: 1 1 140px;
    width: auto;
  }

  .leadership-mean-card > .row,
  .leadership-assessment-heading,
  .leadership-behavior-bar-row > .row,
  .leadership-gap-heading,
  .leadership-dimension-result > .row {
    align-items: flex-start;
    flex-direction: column;
  }

  .leadership-action-focus {
    align-items: flex-start;
    flex-direction: column;
  }

  .segmented-control {
    width: 100%;
  }

  .segmented-control button {
    flex: 1;
  }

  .compact-modal-body {
    padding: 16px;
  }

  .leadership-invite-link-row {
    grid-template-columns: 1fr 1fr;
  }

  .leadership-invite-link-row input {
    grid-column: 1 / -1;
  }

  .leadership-scale-guide {
    grid-template-columns: 1fr;
  }

  .leadership-scale-guide span {
    justify-content: flex-start;
  }

  .report-modal {
    padding: 0;
  }

  .report-modal-dialog {
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .report-modal-header {
    align-items: flex-start;
    padding: 12px 14px;
  }

  .report-modal-header-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .report-modal-body {
    display: block;
  }

  .report-modal-report,
  .report-modal-note {
    padding: 12px;
  }

  .survey-wrap {
    min-height: 100svh;
    padding: 0;
    display: block;
  }

  .survey-box {
    width: 100%;
  }

  .survey-box > .panel {
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 18px 16px 22px;
  }

  .brand-logo {
    width: 170px;
    margin-bottom: 14px;
  }

  .survey-logo {
    width: 128px;
  }

  .survey-header {
    align-items: flex-start;
    gap: 12px;
  }

  .survey-header > div {
    min-width: 0;
    width: 100%;
  }

  #pageInfo {
    align-self: flex-start;
  }

  .answer-progress-card {
    top: 8px;
    width: 158px;
    margin: 8px 0 10px auto;
    padding: 8px 10px;
    border-radius: 9px;
  }

  .answer-progress-heading {
    font-size: 12px;
  }

  .answer-progress-heading strong {
    font-size: 14px;
  }

  .answer-progress-text {
    font-size: 11px;
  }

  .leadership-subject-banner {
    display: block;
    padding: 11px 12px;
  }

  .leadership-subject-banner strong,
  .leadership-subject-banner span {
    display: block;
  }

  .leadership-subject-banner strong {
    font-size: 15px;
  }

  .leadership-subject-banner span {
    margin-top: 3px;
  }

  .page-title {
    font-size: 22px;
    line-height: 1.25;
  }

  .page-subtitle {
    font-size: 13px;
    line-height: 1.5;
  }

  .survey-progress {
    height: 10px;
    margin: 14px 0 !important;
  }

  input,
  select,
  textarea {
    min-height: 46px;
    font-size: 16px;
    padding: 11px 12px;
  }

  select {
    padding-right: 54px;
    background-position: right 14px center, right center;
    background-size: 18px 18px, 46px 100%;
  }

  button,
  .button {
    min-height: 46px;
    width: 100%;
    padding: 11px 14px;
  }

  #gateForm button {
    margin-top: 2px;
  }

  .meta-page {
    margin-top: 14px;
  }

  .notice {
    padding: 11px 12px;
    font-size: 14px;
  }

  #sectionInfo {
    font-size: 15px;
    line-height: 1.65;
  }

  #sectionInfo strong {
    display: block;
    font-size: 18px;
    margin: 0 0 4px;
  }

  .section-intro {
    padding: 16px;
    font-size: 16px;
    line-height: 1.65;
  }

  .section-intro strong {
    font-size: 21px;
  }

  .survey-global-instructions {
    padding: 14px;
    font-size: 13px;
    line-height: 1.65;
  }

  .section-break {
    margin: 14px 0 6px;
    padding: 11px 12px;
  }

  .section-break strong {
    font-size: 16px;
  }

  .question {
    padding: 16px 0;
  }

  .question.missing {
    padding: 13px;
    margin: 12px 0;
  }

  .question.missing .question-title::after {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }

  .question-title {
    font-size: 16px;
    line-height: 1.58;
  }

  .options {
    gap: 10px;
  }

  .option {
    grid-template-columns: 24px minmax(0, 1fr);
    min-height: 50px;
    padding: 12px;
    font-size: 15px;
    line-height: 1.55;
  }

  .option input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
  }

  .survey-actions {
    align-items: stretch;
    gap: 10px;
  }

  .survey-action-group {
    width: 100%;
    display: grid;
    gap: 10px;
  }

  .survey-message {
    display: block;
    width: 100%;
    min-height: 18px;
    line-height: 1.45;
  }
}

@media (max-width: 420px) {
  .leadership-dimension-heading {
    grid-template-columns: 34px 1fr;
  }

  .leadership-weight-badge {
    grid-column: 2;
    justify-self: start;
  }

  .survey-box > .panel {
    padding: 16px 14px 20px;
  }

  .brand-logo {
    width: 155px;
  }

  .survey-logo {
    width: 116px;
  }

  .page-title {
    font-size: 21px;
  }

  .section-intro strong {
    font-size: 20px;
  }
}

@media print {
  body {
    background: white;
  }

  .no-print,
  .sidebar,
  .topbar,
  .report-actions {
    display: none !important;
  }

  .app-shell {
    display: block;
  }

  .main {
    padding: 0;
  }

  .report-page {
    width: 210mm;
    min-height: 297mm;
    border: 0;
    box-shadow: none;
    margin: 0;
  }
}

/* 产品经理管理中心：账号与项目双功能区 */
.admin-zone-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 22px;
  perspective: 1000px;
}

.admin-zone-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 132px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 22px;
  color: var(--text);
  text-align: left;
  border: 1px solid #d3dfed;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 8px 24px rgba(15, 42, 78, 0.08);
  transform: translateY(0) scale(1);
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.admin-zone-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(96, 165, 250, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(239, 246, 255, 0.82), rgba(255, 255, 255, 0.35));
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.admin-zone-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 22px;
  right: 22px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, #60a5fa, transparent);
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.admin-zone-card:hover {
  color: var(--text);
  border-color: #7da9e8;
  background: linear-gradient(145deg, #ffffff 0%, #f3f8ff 100%);
  box-shadow:
    0 22px 46px rgba(23, 75, 151, 0.18),
    0 5px 14px rgba(15, 42, 78, 0.08);
  transform: translateY(-5px) scale(1.008);
}

.admin-zone-card:hover::before,
.admin-zone-card:hover::after {
  opacity: 1;
}

.admin-zone-card:hover::after {
  transform: scaleX(1);
}

.admin-zone-card.active {
  color: var(--text);
  border-color: #2563c7;
  background: linear-gradient(135deg, #fafdff 0%, #eaf3ff 100%);
  box-shadow:
    0 18px 40px rgba(31, 95, 191, 0.2),
    inset 0 0 0 1px rgba(37, 99, 199, 0.12);
  transform: translateY(-2px);
}

.admin-zone-card.active::before,
.admin-zone-card.active::after {
  opacity: 1;
}

.admin-zone-card.active::after {
  height: 4px;
  background: linear-gradient(90deg, #2563c7, #60a5fa 54%, #2563c7);
  transform: scaleX(1);
}

.admin-zone-card.active:hover {
  border-color: #1554b3;
  box-shadow:
    0 26px 54px rgba(24, 82, 170, 0.26),
    0 8px 20px rgba(15, 42, 78, 0.1),
    inset 0 0 0 1px rgba(37, 99, 199, 0.18);
  transform: translateY(-6px) scale(1.01);
}

.admin-zone-card:focus-visible {
  outline: 4px solid rgba(37, 99, 235, 0.2);
  outline-offset: 3px;
}

.admin-zone-index {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--primary);
  background: linear-gradient(145deg, #edf5ff, #dfebfb);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 199, 0.04);
  font-weight: 900;
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.admin-zone-card:hover .admin-zone-index {
  color: #174fae;
  background: #dbeafe;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
  transform: scale(1.08) rotate(-2deg);
}

.admin-zone-card.active .admin-zone-index {
  color: white;
  background: linear-gradient(145deg, #2f73d9, #1854b5);
  box-shadow: 0 10px 22px rgba(37, 99, 199, 0.28);
}

.admin-zone-card.active:hover .admin-zone-index {
  color: white;
  background: linear-gradient(145deg, #347be6, #124ca9);
}

.admin-zone-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.admin-zone-copy strong {
  font-size: 21px;
  transition: color 0.22s ease, transform 0.22s ease;
}

.admin-zone-card:hover .admin-zone-copy strong,
.admin-zone-card.active .admin-zone-copy strong {
  color: #123f87;
}

.admin-zone-copy small {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.55;
  transition: color 0.22s ease;
}

.admin-zone-card.active .admin-zone-copy small {
  color: #526b8f;
}

.admin-zone-stat {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 199, 0.04);
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.admin-zone-card:hover .admin-zone-stat {
  background: #dbeafe;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.12);
  transform: translateX(-2px);
}

.admin-zone-card.active .admin-zone-stat {
  color: #ffffff;
  background: linear-gradient(135deg, #2563c7, #397fdc);
  box-shadow: 0 7px 16px rgba(37, 99, 199, 0.22);
}

.admin-zone-card.active .admin-zone-stat::before {
  content: "当前 · ";
  opacity: 0.82;
}

.admin-zone-section[hidden] {
  display: none;
}

.admin-zone-section:not([hidden]) {
  animation: admin-zone-reveal 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes admin-zone-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-zone-card,
  .admin-zone-card::before,
  .admin-zone-card::after,
  .admin-zone-index,
  .admin-zone-stat,
  .admin-zone-section:not([hidden]) {
    animation: none;
    transition: none;
  }
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.account-management-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}

.account-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-color: #cfdaea;
  background: linear-gradient(155deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 10px 28px rgba(39, 71, 110, 0.07);
}

.account-panel-heading {
  align-items: flex-start;
  min-height: 66px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e4ebf3;
}

.account-panel-heading .section-title,
.account-panel-heading p {
  margin-top: 0;
}

.account-role-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.account-role-badge.client {
  color: #8a4b08;
  background: #fff4d8;
}

.account-role-badge.expert {
  color: #1e4f9c;
  background: var(--blue-soft);
}

.account-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.account-table-wrap .table {
  min-width: 680px;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.account-actions button,
.account-actions .button {
  padding: 7px 10px;
  font-size: 13px;
}

#clientsContainer,
#expertsContainer {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.account-list {
  min-width: 0;
  max-height: clamp(350px, 48vh, 500px);
  flex: 1 1 auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 1px 5px 1px 1px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #a8bad0 #edf2f7;
}

.account-list::-webkit-scrollbar {
  width: 7px;
}

.account-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #edf2f7;
}

.account-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #a8bad0;
}

.account-list-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(140px, 0.82fr) minmax(0, 1.18fr);
  grid-template-areas:
    "identity access"
    "summary actions";
  align-items: center;
  gap: 7px 12px;
  padding: 11px 12px;
  border: 1px solid #d7e2ee;
  border-radius: 13px;
  background: #f9fbfe;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.account-list-item:hover {
  border-color: #a9c2e2;
  background: #ffffff;
  box-shadow: 0 7px 18px rgba(45, 82, 126, 0.08);
}

.account-list-identity {
  min-width: 0;
  display: grid;
  grid-area: identity;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.account-list-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 900;
}

.account-list-avatar.client {
  color: #91520e;
  background: linear-gradient(145deg, #fff5d9, #ffe8af);
}

.account-list-avatar.expert {
  color: #1e5cae;
  background: linear-gradient(145deg, #eaf3ff, #d9e9ff);
}

.account-list-person {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.account-list-person strong,
.account-list-person small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-list-person strong {
  color: #17253a;
  font-size: 14px;
}

.account-list-person small {
  color: #708197;
  font-size: 11px;
}

.account-list-summary {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  grid-area: summary;
  padding-left: 47px;
}

.account-list-summary .client-dashboard-access-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 0;
}

.account-list-summary .client-dashboard-access-summary > span,
.account-access-summary {
  min-height: 21px;
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.account-access-summary {
  color: #28558f;
  background: #e8f1ff;
}

.account-report-access-summary {
  min-width: 0;
  max-width: 100%;
  min-height: 21px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  padding: 3px 7px;
  border-radius: 999px;
  color: #6b4a16;
  background: #fff3d6;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-report-access-summary.is-empty {
  color: #8a3b3b;
  background: #fdeaea;
}

.account-list-access {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-area: access;
  align-content: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid #e1e8f1;
  border-radius: 10px;
  background: #ffffff;
}

.account-list-label {
  color: #71839a;
  font-size: 10px;
  font-weight: 900;
}

.account-list .account-projects {
  min-width: 0;
  max-height: 48px;
  overflow-x: hidden;
  overflow-y: auto;
}

.account-list .account-project-chip {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
}

.account-list-item > .account-actions {
  min-width: 0;
  display: grid;
  grid-area: actions;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: end;
  gap: 6px;
}

.account-list-item > .account-actions button {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.account-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.account-project-chip {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  color: #475569;
  background: #eef2f7;
  font-size: 12px;
  white-space: nowrap;
}

.project-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.project-option-grid .option {
  margin: 0;
}

.client-account-modal-dialog,
.expert-account-modal-dialog {
  width: min(940px, calc(100vw - 32px));
}

.account-report-permissions {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid #d6e1ef;
  border-radius: 16px;
  background: #f8fbff;
}

.account-report-permissions legend {
  padding: 0 8px;
  color: #0f2f5f;
  font-size: 16px;
  font-weight: 800;
}

.account-report-permissions > p {
  margin: 0 0 10px;
}

.account-report-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.account-report-type-option {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d7e2f0;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.account-report-type-option:hover,
.account-report-type-option:has(input:checked) {
  border-color: #4d8ce8;
  background: #edf5ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.account-report-type-option input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
}

.account-report-type-option span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.account-report-type-option strong {
  color: #14263f;
  font-size: 13px;
}

.account-report-type-option small {
  color: #71839a;
  font-size: 11px;
  line-height: 1.45;
}

.client-dashboard-permissions {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid #cbdcf4;
  border-radius: 16px;
  background: linear-gradient(145deg, #f8fbff 0%, #f3f7fd 100%);
}

.client-dashboard-permissions legend {
  padding: 0 8px;
  color: #0f2f5f;
  font-size: 16px;
  font-weight: 800;
}

.client-dashboard-permissions-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -2px 0 12px;
}

.client-dashboard-permissions-heading p {
  margin: 0;
}

.client-dashboard-permission-actions {
  flex: 0 0 auto;
  gap: 6px;
}

.client-dashboard-permission-actions button {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 12px;
}

.client-dashboard-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.client-dashboard-card-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d7e2f0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.client-dashboard-card-option:hover {
  transform: translateY(-1px);
  border-color: #8fb5ef;
  box-shadow: 0 8px 18px rgba(30, 93, 185, 0.1);
}

.client-dashboard-card-option:has(input:checked) {
  border-color: #4d8ce8;
  background: #edf5ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.client-dashboard-card-option input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: #2467c8;
}

.client-dashboard-card-option span,
.client-detail-permission > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.client-dashboard-card-option strong,
.client-detail-permission strong {
  color: #102a50;
  font-size: 13px;
  line-height: 1.35;
}

.client-dashboard-card-option small,
.client-detail-permission small {
  color: #6a7d98;
  font-size: 11px;
  line-height: 1.4;
}

.client-detail-permission {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid #d7e2f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.client-detail-permission > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.client-detail-permission-switch {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 160ms ease;
}

.client-detail-permission-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.25);
  transition: transform 160ms ease;
}

.client-detail-permission:has(input:checked) {
  border-color: #7bb59a;
  background: #f2fbf6;
}

.client-detail-permission:has(input:checked) .client-detail-permission-switch {
  background: #138a5b;
}

.client-detail-permission:has(input:checked) .client-detail-permission-switch::after {
  transform: translateX(18px);
}

.client-detail-permission:has(input:focus-visible) {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.client-dashboard-access-summary {
  display: grid;
  justify-items: start;
  gap: 5px;
  margin-top: 7px;
}

.client-dashboard-access-summary > span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  color: #28558f;
  background: #e8f1ff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.client-dashboard-access-summary .details-on {
  color: #087348;
  background: #dcf8e9;
}

.client-dashboard-access-summary .details-off {
  color: #64748b;
  background: #eef2f7;
}

.project-access-summary {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
}

@media (max-width: 1100px) {
  .account-management-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .account-panel-heading {
    min-height: 0;
  }

  .account-list {
    max-height: none;
    padding: 0;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .account-list-item {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "identity"
      "summary"
      "access"
      "actions";
    gap: 9px;
    padding: 12px;
  }

  .account-list-summary {
    padding-left: 47px;
  }

  .account-list-access {
    min-height: 0;
  }

  .account-list .account-projects {
    max-height: none;
  }

  .account-list-item > .account-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-zone-switcher,
  .project-option-grid {
    grid-template-columns: 1fr;
  }

  .client-dashboard-card-grid {
    grid-template-columns: 1fr;
  }

  .account-report-type-grid {
    grid-template-columns: 1fr;
  }

  .client-dashboard-permissions-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-zone-card {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 112px;
    padding: 18px;
  }

  .admin-zone-index {
    width: 42px;
    height: 42px;
  }

  .admin-zone-stat {
    grid-column: 2;
    justify-self: start;
  }
}

.account-menu-trigger {
  width: auto;
  min-height: 32px;
  gap: 7px;
  padding: 5px 10px 5px 12px;
  border: 1px solid #bfdbfe;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.08);
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.account-menu-trigger::after {
  content: "✎";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1;
}

.account-menu-trigger:hover {
  border-color: #7fb0ff;
  background: #dbeafe;
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.16);
  transform: translateY(-1px);
}

.account-menu-trigger:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.account-editor-dialog {
  width: min(680px, calc(100vw - 32px));
}

.account-editor-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #dbe7f6;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7faff 0%, #eef5ff 100%);
}

.account-editor-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(145deg, #2563eb, #174fae);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.2);
  font-weight: 900;
}

.account-editor-identity strong {
  display: block;
  margin-bottom: 3px;
  color: #14213d;
}

.account-editor-identity p,
.account-password-heading h3,
.account-password-heading p,
.account-editor-footer p {
  margin: 0;
}

.account-editor-form {
  margin-top: 16px;
}

.account-editor-form input[readonly] {
  color: #64748b;
  background: #f1f5f9;
  cursor: not-allowed;
}

.account-password-section {
  padding: 16px;
  border: 1px solid #dbe7f6;
  border-radius: 12px;
  background: #fbfdff;
}

.account-password-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.account-password-heading h3 {
  color: #1e293b;
  font-size: 15px;
}

.account-security-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #166534;
  background: #dcfce7;
  font-size: 12px;
  font-weight: 800;
}

.account-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.account-editor-footer > p {
  flex: 1 1 auto;
}

.account-editor-footer .row {
  flex: 0 0 auto;
}

.danger-text {
  color: var(--red);
  font-weight: 750;
}

.success-text {
  color: var(--green);
  font-weight: 750;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 640px) {
  .account-menu-trigger {
    width: auto;
    min-height: 34px;
  }

  .account-editor-identity {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .account-editor-identity .pill {
    grid-column: 2;
    justify-self: start;
  }

  .account-editor-basic-fields,
  .account-editor-password-fields {
    grid-template-columns: 1fr;
  }

  .account-editor-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .account-editor-footer .row,
  .account-editor-footer button {
    width: 100%;
  }
}

/* Client dashboard and report center */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.client-main {
  background: radial-gradient(circle at 93% 4%, rgba(37, 99, 235, 0.08), transparent 24rem), #f5f7fb;
}

.client-workspace-frame {
  overflow: hidden;
  border: 1px solid #cfdceb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(27, 64, 108, 0.1);
}

.client-project-workspace {
  padding: 18px 16px 0;
  overflow: hidden;
  background: linear-gradient(145deg, #f8fbff 0%, #eef4fb 100%);
}

.client-project-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.client-project-heading .section-title {
  margin: 5px 0 3px;
}

.client-project-heading p {
  margin: 0;
}

.client-toolbar-label {
  color: #2563c7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-project-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.client-project-summary > span {
  min-width: 104px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #f1f6ff;
  color: #49627f;
}

.client-project-summary > .client-project-current {
  min-width: 150px;
  display: grid;
  align-items: center;
  gap: 1px;
  background: linear-gradient(135deg, #eaf3ff, #f5f9ff);
}

.client-project-summary .client-project-current strong {
  max-width: 220px;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-project-summary strong {
  color: #175bb9;
  font-size: 19px;
}

.client-project-summary small {
  font-size: 12px;
}

.client-project-tabs {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding-top: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  border-top: 1px solid #e4edf8;
  scrollbar-color: #b9cbe0 transparent;
  scrollbar-width: thin;
}

.client-project-tab {
  position: relative;
  min-width: 190px;
  max-width: none;
  min-height: 64px;
  flex: 1 1 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  padding: 10px 12px 11px;
  overflow: hidden;
  border: 1px solid #cedbe9;
  border-bottom-color: #c3d2e2;
  border-radius: 13px 13px 0 0;
  background: linear-gradient(180deg, #eef3f9, #e6edf6);
  color: #20334c;
  text-align: left;
  box-shadow: 0 -2px 10px rgba(30, 68, 113, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.client-project-tab:hover {
  transform: translateY(-2px);
  border-color: #78a9e8;
  background: linear-gradient(180deg, #f7faff, #edf4fb);
  box-shadow: 0 -6px 18px rgba(31, 95, 191, 0.11);
}

.client-project-tab.active {
  z-index: 2;
  margin-bottom: -1px;
  transform: none;
  border-color: #8fb4e4;
  border-bottom-color: #fff;
  background: #fff;
  color: #123f7d;
  box-shadow: 0 -7px 20px rgba(31, 95, 191, 0.13);
}

.client-project-tab.active::after {
  position: absolute;
  top: 0;
  right: 12px;
  left: 12px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #2468c8, #5a9df0);
  content: "";
}

.client-project-tab-index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #edf3fb;
  color: #54708f;
  font-size: 12px;
  font-weight: 900;
}

.client-project-tab.active .client-project-tab-index {
  background: linear-gradient(135deg, #286ed0, #1853a9);
  color: #fff;
  box-shadow: 0 7px 15px rgba(31, 95, 191, 0.24);
}

.client-project-tab-copy {
  min-width: 0;
}

.client-project-tab-copy strong,
.client-project-tab-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-project-tab-copy strong {
  font-size: 15px;
}

.client-project-tab-copy small {
  margin-top: 4px;
  color: #71839a;
  font-size: 11px;
  font-weight: 700;
}

.client-project-tab-state {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f0f4f9;
  color: #70839a;
  font-size: 10px;
  font-weight: 900;
}

.client-project-tab.active .client-project-tab-state {
  background: #dceaff;
  color: #175bb9;
}

.client-project-tabs[aria-busy="true"] {
  opacity: 0.72;
  pointer-events: none;
}

.client-project-tabs-empty {
  width: 100%;
  padding: 18px;
  border: 1px dashed #c9d8e9;
  border-radius: 12px;
  color: #6f8198;
  text-align: center;
}

.client-mobile-project-switcher,
.client-mobile-project-modal {
  display: none;
}

.client-mobile-project-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  align-items: flex-end;
  justify-content: center;
}

button.client-mobile-project-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: none;
  cursor: default;
}

.client-mobile-project-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  max-height: 82vh;
  max-height: 82dvh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px 16px max(18px, env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 -18px 50px rgba(15, 42, 76, 0.24);
  animation: client-mobile-sheet-in 0.2s ease-out;
}

.client-mobile-project-sheet::before {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #c7d4e4;
  content: "";
  transform: translateX(-50%);
}

.client-mobile-project-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 5px;
}

.client-mobile-project-sheet-header h2 {
  margin: 3px 0 0;
  color: #17243a;
  font-size: 20px;
}

button.client-mobile-project-close {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 13px;
  font-size: 25px;
  line-height: 1;
}

.client-mobile-project-search {
  display: grid;
  gap: 6px;
  color: #58708f;
  font-size: 12px;
  font-weight: 800;
}

.client-mobile-project-search input {
  min-height: 48px;
  padding-left: 42px;
  border-color: #bcd1ec;
  border-radius: 13px;
  background: #f8fbff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Ccircle cx='8' cy='8' r='4.5' stroke='%233568a9' stroke-width='2'/%3E%3Cpath d='M11.5 11.5L15 15' stroke='%233568a9' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 14px center;
}

.client-mobile-project-list {
  min-height: 120px;
  display: grid;
  align-content: start;
  gap: 9px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 1px 3px 2px 0;
}

button.client-mobile-project-option {
  width: 100%;
  min-width: 0;
  min-height: 66px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid #d5e1ef;
  border-radius: 14px;
  background: #f8fbff;
  color: #1c2d43;
  text-align: left;
  box-shadow: none;
}

button.client-mobile-project-option.active {
  border-color: #76a6df;
  background: linear-gradient(135deg, #eef6ff, #f5fbff);
  box-shadow: inset 0 0 0 1px rgba(36, 104, 200, 0.08);
}

.client-mobile-project-option-index {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #e8f1ff;
  color: #2468c8;
  font-size: 12px;
  font-weight: 900;
}

.client-mobile-project-option.active .client-mobile-project-option-index {
  background: #2468c8;
  color: #fff;
}

.client-mobile-project-option-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.client-mobile-project-option-copy strong,
.client-mobile-project-option-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-mobile-project-option-copy strong {
  font-size: 15px;
}

.client-mobile-project-option-copy small {
  color: #71849c;
  font-size: 11px;
}

.client-mobile-project-option-state {
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf3fa;
  color: #637c98;
  font-size: 11px;
  font-weight: 900;
}

.client-mobile-project-option.active .client-mobile-project-option-state {
  background: #dceaff;
  color: #175bb9;
}

.client-mobile-project-empty {
  padding: 28px 16px;
  border: 1px dashed #c8d7e8;
  border-radius: 14px;
  color: #70839a;
  text-align: center;
}

@keyframes client-mobile-sheet-in {
  from {
    opacity: 0.7;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.client-workspace-body {
  position: relative;
  min-height: 280px;
  padding: 16px;
  border-top: 1px solid #8fb4e4;
  background: #fff;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.client-workspace-body.is-switching {
  opacity: 0.58;
  transform: translateY(3px);
}

.client-view-switcher {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 6px;
  margin: 0 0 16px;
  padding: 5px;
  border: 1px solid #d5e1ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #f0f5fa, #eaf1f8);
}

.client-view-card {
  position: relative;
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: 34px auto auto;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #17243a;
  text-align: left;
  box-shadow: none;
  outline: none;
  transition: color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.client-view-card:hover {
  border-color: #c8d9ed;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 4px 12px rgba(31, 95, 191, 0.07);
}

.client-view-card.active {
  border-color: #b5cee9;
  background: linear-gradient(135deg, #ffffff, #f7faff);
  color: #123f7d;
  box-shadow: 0 5px 14px rgba(31, 95, 191, 0.11), inset 0 0 0 1px rgba(39, 107, 202, 0.06);
}

.client-view-card.active::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #2468c8, #62a1ef);
  content: "";
}

.client-view-card:focus-visible {
  border-color: #4f8fdf;
  box-shadow: 0 0 0 3px rgba(79, 143, 223, 0.2);
}

.client-view-index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #e8f1ff;
  color: #2468c8;
  font-size: 11px;
  font-weight: 900;
}

.client-view-card.active .client-view-index {
  background: linear-gradient(135deg, #2468c8, #174f9f);
  color: #fff;
  box-shadow: 0 5px 12px rgba(36, 104, 200, 0.22);
}

.client-view-card strong,
.client-view-card small {
  display: block;
}

.client-view-card strong {
  margin-bottom: 3px;
  font-size: 15px;
}

.client-view-card small {
  color: #667991;
  font-size: 11px;
  font-weight: 600;
}

.client-view-count {
  padding: 6px 11px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #175bb9;
  font-size: 12px;
  font-weight: 900;
}

.client-view-panel[hidden] {
  display: none;
}

.client-view-panel:not([hidden]) {
  animation: client-view-fade 0.2s ease;
}

.client-dashboard-view .completion-card {
  position: relative;
}

.client-dashboard-view .completion-summary {
  min-height: 82px;
}

.client-completion-report-controls {
  position: absolute;
  z-index: 4;
  top: 9px;
  right: 60px;
  width: min(850px, calc(100% - 260px));
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(160px, 0.72fr) auto;
  align-items: end;
  gap: 10px;
  margin: 0 !important;
}

.client-completion-report-controls label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.client-completion-report-controls label > span {
  color: #5f718a;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.client-completion-report-controls input,
.client-completion-report-controls select,
.client-completion-report-controls button {
  min-height: 44px;
}

.client-completion-report-controls button {
  width: auto;
  padding-right: 16px;
  padding-left: 16px;
  white-space: nowrap;
}

.client-completion-report-grid .career-completion-done {
  min-width: 88px;
  justify-content: flex-end;
}

@keyframes client-view-fade {
  from {
    opacity: 0.55;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.client-report-toolbar {
  display: grid;
  grid-template-columns: minmax(210px, 0.75fr) minmax(500px, 1.35fr);
  align-items: end;
  gap: 22px;
  padding: 20px;
}

.client-report-heading .section-title {
  margin: 5px 0 4px;
}

.client-report-heading p {
  margin: 0;
}

.client-report-filters {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(150px, 0.72fr) auto;
  align-items: end;
  gap: 10px;
}

.client-report-filters label {
  display: grid;
  gap: 6px;
}

.client-report-filters label > span {
  color: #5f718a;
  font-size: 12px;
  font-weight: 800;
}

.client-download-progress {
  margin-top: 12px;
  padding: 13px 16px;
}

.client-download-progress .progress {
  height: 7px;
  margin: 9px 0 6px;
}

.client-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.client-report-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid #d9e3ef;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 42, 76, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.client-report-card:hover {
  transform: translateY(-3px);
  border-color: #9abde9;
  box-shadow: 0 15px 34px rgba(26, 82, 151, 0.13);
}

.client-report-card-top,
.client-report-person,
.client-report-actions {
  display: flex;
  align-items: center;
}

.client-report-card-top {
  justify-content: space-between;
  gap: 12px;
}

.client-report-card-top time {
  color: #7b8ba0;
  font-size: 12px;
}

.client-report-type {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #1c5dac;
  font-size: 11px;
  font-weight: 900;
}

.client-report-type.type-career {
  background: #f0ebff;
  color: #6941c6;
}

.client-report-type.type-leadership-comprehensive {
  background: #e8f8ef;
  color: #148447;
}

.client-report-type.type-leadership-self {
  background: #fff3df;
  color: #a95808;
}

.client-report-person {
  gap: 11px;
  margin-top: 17px;
}

.client-report-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #2468c8, #4b8fe7);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.client-report-person h3,
.client-report-person p,
.client-report-card h4,
.client-report-note {
  margin: 0;
}

.client-report-person h3 {
  font-size: 17px;
}

.client-report-person p {
  margin-top: 3px;
  color: #74849a;
  font-size: 12px;
}

.client-report-card h4 {
  margin-top: 16px;
  color: #1c2a3d;
  font-size: 15px;
  line-height: 1.45;
}

.client-report-note {
  flex: 1 1 auto;
  margin-top: 7px;
  color: #6f8095;
  font-size: 12px;
}

.client-report-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #edf1f6;
}

.client-report-modal .report-modal-dialog {
  width: min(1180px, 100%);
}

.client-report-modal-body {
  display: block;
  overflow: hidden;
}

.client-report-modal-body .report-modal-report {
  height: min(76vh, 900px);
}

.client-empty-state {
  grid-column: 1 / -1;
  min-height: 160px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #65778f;
  text-align: center;
}

.client-empty-state p {
  margin: 0;
}

.client-empty-state.error strong {
  color: #b42318;
}

.client-loading-dot {
  width: 18px;
  height: 18px;
  border: 3px solid #d6e6fa;
  border-top-color: #2468c8;
  border-radius: 50%;
  animation: client-loading-spin 0.8s linear infinite;
}

@keyframes client-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1000px) {
  .client-dashboard-view .completion-summary {
    min-height: 0;
  }

  .client-completion-report-controls {
    position: static;
    width: auto;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.75fr);
    margin: 0 14px 14px !important;
  }

  .client-completion-report-controls button {
    grid-column: 1 / -1;
  }

  .client-report-toolbar {
    grid-template-columns: 1fr;
  }

  .client-report-filters {
    grid-template-columns: 1fr 1fr;
  }

  .client-report-filters button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .client-project-heading,
  .client-project-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .client-project-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .client-project-summary > .client-project-current {
    grid-column: 1 / -1;
  }

  .client-view-switcher {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .client-report-filters {
    grid-template-columns: 1fr;
  }

  .client-completion-report-controls {
    grid-template-columns: 1fr;
  }

  .client-completion-report-controls button {
    grid-column: auto;
  }

  .client-view-card {
    min-width: 0;
    min-height: 58px;
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 8px 12px;
  }

  .client-view-index {
    width: 34px;
    height: 34px;
  }

  .client-view-count {
    display: none;
  }

  .client-report-filters button {
    grid-column: auto;
  }

  .client-report-grid {
    grid-template-columns: 1fr;
  }
}

/* Product manager function hub */
.admin-page .admin-tool-launcher-panel {
  margin-top: 12px;
  padding: 16px 18px 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 95% 0%, rgba(59, 130, 246, 0.1), transparent 19rem),
    #ffffff;
}

.admin-tool-launcher-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.admin-tool-launcher-heading .section-title,
.admin-tool-launcher-heading p {
  margin-top: 0;
}

.admin-tool-launcher-heading .section-title {
  margin-bottom: 3px;
  font-size: 17px;
}

.admin-tool-launcher-heading .small {
  margin-bottom: 0;
}

.admin-tool-hint {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid #cbdcf1;
  border-radius: 999px;
  color: #42658f;
  background: #f4f8fd;
  font-size: 11px;
  font-weight: 800;
}

.admin-tool-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

button.admin-tool-card {
  --tool-accent: #2563c7;
  --tool-soft: #eaf2ff;
  min-width: 0;
  min-height: 132px;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 6px;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--tool-accent) 24%, #d8e2ee);
  border-radius: 14px;
  color: #17243a;
  background: linear-gradient(145deg, #ffffff, var(--tool-soft));
  text-align: left;
  box-shadow: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

button.admin-tool-card.reports {
  --tool-accent: #7c3aed;
  --tool-soft: #f4efff;
}

button.admin-tool-card.transfer {
  --tool-accent: #0891b2;
  --tool-soft: #eafaff;
}

button.admin-tool-card.recycle {
  --tool-accent: #d97706;
  --tool-soft: #fff7e8;
}

button.admin-tool-card.methods {
  --tool-accent: #138a5b;
  --tool-soft: #ebfaf3;
}

button.admin-tool-card:hover,
button.admin-tool-card:focus-visible,
button.admin-tool-card.active {
  transform: translateY(-2px);
  border-color: var(--tool-accent);
  background: linear-gradient(145deg, #ffffff, var(--tool-soft));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--tool-accent) 15%, transparent);
}

.admin-tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.admin-tool-icon,
.admin-tool-modal-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #ffffff;
  background: var(--tool-accent, #2563c7);
  box-shadow: 0 5px 13px color-mix(in srgb, var(--tool-accent, #2563c7) 24%, transparent);
  font-size: 14px;
  font-weight: 900;
}

.admin-tool-open {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--tool-accent);
  background: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 900;
}

.admin-tool-open::after {
  content: "  ›";
  font-size: 14px;
  line-height: 0;
}

button.admin-tool-card > strong {
  overflow: hidden;
  color: #16243a;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button.admin-tool-card > small {
  display: -webkit-box;
  overflow: hidden;
  color: #667b96;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-tool-modal {
  --tool-accent: #2563c7;
}

.admin-tool-dialog {
  width: min(1240px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  border: 1px solid #cad8e8;
  border-radius: 18px;
  background: #f6f8fb;
}

.admin-tool-modal-header {
  min-height: 70px;
  padding: 12px 16px;
  background:
    linear-gradient(90deg, rgba(37, 99, 199, 0.08), transparent 45%),
    #ffffff;
}

.admin-tool-modal-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.admin-tool-modal-heading > div {
  min-width: 0;
}

.admin-tool-modal-heading .section-title,
.admin-tool-modal-heading p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-tool-modal-heading .section-title {
  margin-bottom: 2px;
  font-size: 17px;
}

.admin-tool-window-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
}

button.admin-tool-window-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border-color: #d5e0ec;
  border-radius: 11px;
  color: #315f98;
  background: #eef4fb;
  font-size: 21px;
  line-height: 1;
}

button.admin-tool-window-button:hover {
  color: #154f9c;
  background: #dfebf9;
}

.admin-tool-modal-body {
  min-height: 0;
  padding: 18px;
  overflow: auto;
}

.admin-tool-content {
  display: grid;
  gap: 14px;
}

.admin-tool-intro {
  padding: 13px 15px;
  border: 1px solid #d6e3f1;
  border-radius: 13px;
  background: linear-gradient(135deg, #ffffff, #f0f6fd);
}

.admin-tool-intro strong {
  display: block;
  margin-bottom: 3px;
  color: #17365f;
  font-size: 15px;
}

.admin-tool-intro p {
  margin: 0;
  color: #687d97;
  font-size: 12px;
}

.admin-tool-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-tool-action-grid > * {
  width: 100%;
  min-height: 46px;
  justify-content: center;
  text-align: center;
}

.admin-tool-recycle-grid {
  align-items: start;
}

.admin-tool-recycle-grid > .card {
  min-width: 0;
  border-color: #d6e1ed;
  border-radius: 14px;
  box-shadow: none;
}

.admin-tool-modal-body .report-manager-list,
.admin-tool-modal-body .report-import-list {
  max-height: min(52vh, 560px);
  overflow: auto;
  scrollbar-gutter: stable;
}

@media (max-width: 1180px) {
  .admin-tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-tool-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-page .admin-zone-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-page .admin-tool-launcher-panel {
    padding: 13px;
  }

  .admin-tool-launcher-heading {
    align-items: flex-start;
  }

  .admin-tool-launcher-heading .small,
  .admin-tool-hint {
    display: none;
  }

  .admin-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  button.admin-tool-card {
    min-height: 112px;
    padding: 11px;
    border-radius: 12px;
  }

  .admin-tool-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 12px;
  }

  button.admin-tool-card > strong {
    font-size: 12px;
  }

  button.admin-tool-card > small {
    font-size: 10px;
  }

  .admin-tool-dialog {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .admin-tool-modal-header {
    min-height: 62px;
    padding: 10px 12px;
  }

  .admin-tool-modal-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .admin-tool-modal-heading .section-title {
    font-size: 15px;
  }

  .admin-tool-modal-heading p {
    display: none;
  }

  button.admin-tool-window-button {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .admin-tool-modal-body {
    padding: 10px;
  }

  .admin-tool-action-grid,
  .admin-tool-recycle-grid,
  .admin-tool-modal-body #methodsContainer {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-tool-modal-body .report-manager-list,
  .admin-tool-modal-body .report-import-list {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 380px) {
  .admin-tool-open {
    display: none;
  }
}

/* Expert workspace uses the same compact mobile shell as product management */
.expert-sidebar-nav {
  display: grid;
  gap: 7px;
}

.expert-page .expert-sidebar #logoutBtn {
  width: 100%;
  margin-top: auto;
}

@media (max-width: 900px) {
  .expert-page .expert-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .expert-page .expert-sidebar {
    position: sticky;
    z-index: 100;
    top: 0;
    height: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 12px;
    padding: 9px 12px;
    overflow: visible;
    background: linear-gradient(180deg, #111a2b 0%, #0e1727 100%);
    box-shadow: 0 7px 22px rgba(11, 26, 46, 0.18);
  }

  .expert-page .expert-sidebar .sidebar-logo {
    width: 96px;
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    padding: 6px;
  }

  .expert-page .expert-sidebar .brand {
    display: none;
  }

  .expert-page .expert-sidebar #logoutBtn {
    width: auto;
    min-width: 92px;
    min-height: 40px;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin: 0;
    padding: 8px 12px;
  }

  .expert-page .expert-sidebar-nav {
    width: 100%;
    display: grid;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .expert-page .expert-sidebar .nav-link {
    padding: 8px 9px;
    overflow: hidden;
    border-radius: 10px;
    font-size: 12px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .expert-page .expert-main {
    width: 100%;
    padding: 12px;
    overflow-x: hidden;
  }

  .expert-page .expert-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }

  .expert-page .expert-topbar .page-subtitle {
    display: none;
  }

  .expert-page .expert-topbar > div,
  .expert-page .expert-topbar > .row {
    min-width: 0;
  }

  .expert-page .expert-topbar > div:first-child {
    width: auto;
    grid-column: 1;
    grid-row: 1;
  }

  .expert-page .expert-topbar > .row {
    width: auto;
    display: contents;
  }

  .expert-page .expert-topbar #userInfo {
    width: auto;
    max-width: 48vw;
    min-height: 38px;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .expert-page .expert-topbar #downloadAllBtn {
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* Keep every shared modal header stable on narrow screens */
@media (max-width: 640px) {
  .report-modal .report-modal-dialog {
    min-width: 0;
  }

  .report-modal .report-modal-header {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
  }

  .report-modal .report-modal-header > :first-child {
    min-width: 0;
    overflow: hidden;
  }

  .report-modal .report-modal-header .section-title,
  .report-modal .report-modal-header p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .report-modal .report-modal-header > .report-modal-close,
  .report-modal .report-modal-header-actions .report-modal-close {
    width: auto;
    min-width: 68px;
    min-height: 40px;
    justify-self: end;
    padding: 8px 12px;
  }

  .report-modal .report-modal-header-actions {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .report-modal .report-modal-header-actions > button:not(.report-modal-close) {
    width: 100%;
    min-width: 0;
  }

  .account-editor-modal .account-editor-dialog {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .account-editor-modal .report-modal-header {
    min-height: 66px;
  }

  .account-editor-modal .compact-modal-body {
    min-height: 0;
    flex: 1 1 auto;
    padding: 12px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .account-editor-modal .account-editor-identity {
    width: 100%;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .account-editor-modal .account-editor-avatar {
    width: 38px;
    height: 38px;
  }

  .account-editor-modal .account-editor-identity .pill {
    grid-column: 2;
    justify-self: start;
  }

  .account-editor-modal .account-password-section {
    padding: 12px;
  }

  .account-editor-modal .account-password-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .account-editor-modal .account-editor-basic-fields,
  .account-editor-modal .account-editor-password-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-editor-modal input {
    width: 100%;
    min-width: 0;
  }
}

/* Client dashboard: Apple-inspired, content-first responsive workspace */
.client-page {
  --client-bg: #f5f5f7;
  --client-text: #1d1d1f;
  --client-muted: #6e6e73;
  --client-line: rgba(0, 0, 0, 0.075);
  --client-blue: #0071e3;
  --client-blue-dark: #0064cc;
  --client-blue-soft: #eaf4ff;
  --client-shadow: 0 1px 2px rgba(0, 0, 0, 0.025), 0 12px 34px rgba(0, 0, 0, 0.055);
  min-width: 0;
  color: var(--client-text);
  background: radial-gradient(circle at 88% 2%, rgba(0, 113, 227, 0.08), transparent 26rem), var(--client-bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
}

.client-page .client-shell {
  grid-template-columns: 232px minmax(0, 1fr);
}

.client-page .client-sidebar {
  z-index: 80;
  gap: 0;
  padding: 24px 18px 20px;
  border-right: 1px solid var(--client-line);
  background: rgba(250, 250, 252, 0.86);
  color: var(--client-text);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
}

.client-brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 0 4px 22px;
}

.client-brand-logo-wrap {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--client-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
}

.client-page .client-sidebar .sidebar-logo {
  width: 44px;
  margin: 0;
  padding: 4px;
  border-radius: 0;
  background: transparent;
}

.client-brand-copy,
.client-primary-nav .nav-link > span:last-child,
.client-sidebar-support > span:last-child {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.client-brand-copy strong {
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.client-brand-copy small,
.client-primary-nav .nav-link small,
.client-sidebar-support small {
  color: var(--client-muted);
  font-size: 10px;
  font-weight: 520;
}

.client-brand-copy strong,
.client-brand-copy small,
.client-primary-nav .nav-link strong,
.client-primary-nav .nav-link small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-primary-nav {
  display: grid;
  gap: 8px;
}

.client-page .client-primary-nav .nav-link {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--client-text);
  transition: 160ms ease;
}

.client-page .client-primary-nav .nav-link:hover {
  transform: translateY(-1px);
  border-color: var(--client-line);
  background: rgba(255, 255, 255, 0.76);
}

.client-page .client-primary-nav .nav-link.active {
  border-color: rgba(0, 113, 227, 0.08);
  background: rgba(0, 113, 227, 0.09);
  color: #0058b0;
}

.client-primary-nav .nav-link strong {
  font-size: 13px;
  font-weight: 650;
}

.client-nav-icon {
  width: 38px;
  height: 38px;
  display: grid;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  place-content: center;
  gap: 3px;
  border-radius: 11px;
  background: rgba(0, 113, 227, 0.1);
}

.client-nav-icon i {
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.client-sidebar-support {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 12px 9px;
  border-top: 1px solid var(--client-line);
  color: var(--client-muted);
}

.client-sidebar-support strong {
  color: #3a3a3c;
  font-size: 10px;
  font-weight: 560;
}

.client-sidebar-support-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.12);
}

.client-page .client-sidebar button.client-logout {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border: 1px solid var(--client-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #3a3a3c;
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
}

.client-page .client-sidebar button.client-logout:hover {
  background: #fff;
  color: #d70015;
}

.client-page .client-main {
  min-width: 0;
  padding: 30px clamp(22px, 3vw, 46px) 64px;
  overflow-x: hidden;
  background: transparent;
}

.client-page .client-main > * {
  width: min(1480px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.client-page .client-topbar {
  align-items: flex-end;
  margin-bottom: 24px;
}

.client-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--client-blue);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.client-page .client-topbar .page-title {
  color: var(--client-text);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.client-page .client-topbar .page-subtitle {
  max-width: 680px;
  margin-top: 8px;
  color: var(--client-muted);
  font-size: 14px;
}

.client-topbar-actions,
.client-sync-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.client-sync-status {
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--client-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--client-muted);
  font-size: 11px;
  font-weight: 560;
}

.client-sync-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30d158;
}

.client-page button.client-account-button {
  max-width: 260px;
  min-height: 40px;
  justify-content: flex-start;
  padding: 8px 14px 8px 9px;
  overflow: hidden;
  border: 1px solid var(--client-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--client-text);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.045);
}

.client-page button.client-account-button::before {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #1788f5, #0064cc);
  color: #fff;
  content: "客";
  font-size: 10px;
}

.client-page button.client-account-button:hover {
  background: #fff;
  color: var(--client-text);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.08);
}

.client-page .client-workspace-frame {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.client-page .client-project-workspace {
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--client-line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--client-shadow);
  -webkit-backdrop-filter: saturate(150%) blur(22px);
  backdrop-filter: saturate(150%) blur(22px);
}

.client-page .client-project-heading {
  align-items: center;
  margin-bottom: 18px;
}

.client-page .client-project-heading .section-title {
  margin: 3px 0 2px;
  color: var(--client-text);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.client-page .client-toolbar-label {
  color: var(--client-blue);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.client-page .client-project-heading p {
  color: var(--client-muted);
  font-size: 11px;
  font-weight: 500;
}

.client-page .client-project-summary {
  gap: 8px;
}

.client-page .client-project-summary > span {
  min-width: 0;
  min-height: 48px;
  gap: 5px;
  padding: 8px 12px;
  border: 1px solid var(--client-line);
  border-radius: 15px;
  background: #f7f7f9;
  color: var(--client-muted);
}

.client-page .client-project-summary > .client-project-current {
  min-width: 190px;
  background: #fff;
}

.client-page .client-project-summary .client-project-current strong {
  max-width: 250px;
  color: var(--client-text);
  font-size: 12px;
  font-weight: 620;
}

.client-page .client-project-summary strong {
  color: var(--client-text);
  font-size: 17px;
  font-weight: 650;
}

.client-page .client-project-summary small {
  color: var(--client-muted);
  font-size: 9px;
  font-weight: 520;
}

.client-page .client-summary-stat {
  display: grid;
  grid-template-columns: 20px auto;
  grid-template-rows: auto auto;
  column-gap: 6px;
}

.client-page .client-summary-stat i {
  width: 20px;
  height: 20px;
  grid-row: 1 / 3;
  align-self: center;
  border-radius: 7px;
  background: var(--client-blue-soft);
}

.client-page .client-project-tabs {
  align-items: stretch;
  gap: 10px;
  padding: 0 0 2px;
  border-top: 0;
  scrollbar-width: none;
}

.client-page .client-project-tabs::-webkit-scrollbar {
  display: none;
}

.client-page .client-project-tab {
  min-width: 240px;
  min-height: 70px;
  flex: 0 1 320px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--client-line);
  border-radius: 18px;
  background: #f5f5f7;
  color: var(--client-text);
  box-shadow: none;
  transition: 180ms ease;
}

.client-page .client-project-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 113, 227, 0.22);
  background: #fff;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.07);
}

.client-page .client-project-tab:active {
  transform: scale(0.985);
}

.client-page .client-project-tab.active {
  margin: 0;
  border-color: rgba(0, 113, 227, 0.16);
  background: var(--client-blue-soft);
  color: #004f9e;
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.035);
}

.client-page .client-project-tab.active::after {
  display: none;
}

.client-page .client-project-tab-index {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #e5e5ea;
  color: #636366;
  font-size: 11px;
  font-weight: 650;
}

.client-page .client-project-tab.active .client-project-tab-index {
  background: var(--client-blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 113, 227, 0.24);
}

.client-page .client-project-tab-copy strong {
  color: inherit;
  font-size: 13px;
  font-weight: 620;
}

.client-page .client-project-tab-copy small {
  color: var(--client-muted);
  font-size: 10px;
  font-weight: 520;
}

.client-page .client-project-tab-state {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.09);
  color: var(--client-muted);
  font-size: 9px;
  font-weight: 600;
}

.client-page .client-project-tab.active .client-project-tab-state {
  background: rgba(0, 113, 227, 0.11);
  color: #0064cc;
}

.client-page .client-workspace-body {
  min-height: 280px;
  padding: 18px 0 0;
  border: 0;
  background: transparent;
}

.client-page .aggregate-report-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.client-page .aggregate-report-summary {
  align-items: center;
  margin-bottom: 16px;
  padding: 24px 26px;
  border: 1px solid var(--client-line);
  border-radius: 24px;
  background: radial-gradient(circle at 88% 20%, rgba(0, 113, 227, 0.11), transparent 18rem), #fff;
  box-shadow: var(--client-shadow);
}

.client-page .aggregate-report-summary .section-title {
  margin-bottom: 4px;
  color: var(--client-text);
  font-size: 22px;
  font-weight: 660;
  letter-spacing: -0.025em;
}

.client-page .aggregate-report-summary p {
  color: var(--client-muted);
  font-size: 11px;
  font-weight: 500;
}

.client-page .aggregate-report-summary::after,
.client-page .completion-summary::after {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(118, 118, 128, 0.09);
  background-size: 15px 15px;
}

.client-page .aggregate-report-body {
  gap: 16px;
  padding: 0;
}

.client-page .aggregate-report-body > .card {
  padding: 20px;
  border: 1px solid var(--client-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--client-shadow);
}

.client-page .aggregate-report-body > .completion-card {
  padding: 0;
}

.client-page .aggregate-report-body > .card > .section-title,
.client-page .completion-summary .section-title {
  color: var(--client-text);
  font-size: 15px;
  font-weight: 650;
}

.client-page .completion-summary {
  min-height: 0;
  padding: 18px 20px;
}

.client-page .client-completion-report-controls {
  position: static;
  width: auto;
  grid-template-columns: minmax(240px, 1.3fr) minmax(170px, 0.65fr) auto;
  align-items: end;
  gap: 10px;
  margin: 0 !important;
  padding: 0 20px 16px;
  border-bottom: 1px solid var(--client-line);
}

.client-page .client-completion-report-controls label {
  margin: 0;
  gap: 6px;
}

.client-page .client-completion-report-controls label > span {
  color: var(--client-muted);
  font-size: 10px;
  font-weight: 560;
}

.client-page .client-completion-report-controls input,
.client-page .client-completion-report-controls select,
.client-page .client-completion-report-controls button {
  min-height: 44px;
  border-color: var(--client-line);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 560;
}

.client-page .client-completion-report-controls input {
  padding-left: 38px;
  background: #f5f5f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='7' cy='7' r='4.2' stroke='%238E8E93' stroke-width='1.5'/%3E%3Cpath d='M10.3 10.3L14 14' stroke='%238E8E93' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 13px center;
}

.client-page .client-completion-report-controls select {
  padding-right: 42px;
  background-color: #f5f5f7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M4 5.5L7 8.5L10 5.5' stroke='%236E6E73' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-size: 14px 14px;
}

.client-page .client-completion-report-controls input:focus,
.client-page .client-completion-report-controls select:focus {
  border-color: rgba(0, 113, 227, 0.48);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.client-page .client-completion-report-controls button {
  padding: 10px 16px;
  border: 0;
  background: var(--client-blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 113, 227, 0.18);
}

.client-page .client-completion-report-controls button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--client-blue-dark);
}

.client-page .client-filter-feedback {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  color: var(--client-muted);
  font-size: 9px;
}

.client-page .completion-card > :not(summary) {
  margin: 0;
}

.client-page #participantCompletionContent {
  padding: 16px 20px 20px;
}

.client-page .career-completion-overview {
  gap: 14px;
  padding: 13px 15px;
  border: 0;
  border-radius: 16px;
  background: #f5f5f7;
}

.client-page .career-completion-metric {
  padding-right: 14px;
  border-right-color: var(--client-line);
}

.client-page .career-completion-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #248a3d;
  font-size: 18px;
  font-weight: 650;
  box-shadow: 0 6px 14px rgba(36, 138, 61, 0.16);
}

.client-page .career-completion-metric strong {
  color: var(--client-text);
  font-size: 23px;
  font-weight: 670;
}

.client-page .career-completion-metric span:last-child,
.client-page .career-completion-copy span {
  color: var(--client-muted);
  font-size: 10px;
  font-weight: 520;
}

.client-page .career-completion-copy strong {
  color: var(--client-text);
  font-size: 13px;
  font-weight: 620;
}

.client-page button.career-completion-export {
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(0, 113, 227, 0.09);
  color: #0064cc;
  font-size: 10px;
  font-weight: 600;
}

.client-page button.career-completion-export:hover:not(:disabled) {
  background: rgba(0, 113, 227, 0.15);
}

.client-page .career-completion-grid {
  max-height: 286px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 64px;
  gap: 9px;
  margin-top: 12px;
}

.client-page .career-completion-person {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 9px 11px;
  border-color: var(--client-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.client-page .career-completion-person:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 113, 227, 0.22);
  background: #fff;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.075);
}

.client-page .career-completion-person:active {
  transform: scale(0.985);
}

.client-page .career-completion-index {
  display: none;
}

.client-page .career-completion-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--client-blue-soft);
  color: #0064cc;
  font-size: 13px;
  font-weight: 650;
}

.client-page .career-completion-identity strong {
  color: var(--client-text);
  font-size: 12px;
  font-weight: 620;
}

.client-page .career-completion-identity small,
.client-page .career-completion-done {
  color: var(--client-muted);
  font-size: 9px;
  font-weight: 520;
}

.client-page .career-completion-done {
  min-width: 78px;
}

.client-page .career-completion-done b {
  color: var(--client-blue);
}

.client-page .aggregate-list {
  gap: 9px;
}

.client-page .aggregate-detail > summary {
  border-color: var(--client-line);
  border-radius: 12px;
  background: #f7f7f9;
}

.client-page .aggregate-track,
.client-page .progress {
  background: #e5e5ea;
}

.client-page .pill {
  border-radius: 999px;
  font-weight: 600;
}

.client-page .client-download-progress {
  border: 1px solid var(--client-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--client-shadow);
}

.client-page .client-report-modal .report-modal-backdrop,
.client-page button.client-mobile-project-backdrop {
  background: rgba(0, 0, 0, 0.34);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.client-page .client-report-modal .report-modal-dialog {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 26px;
  background: #f5f5f7;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.client-page .client-report-modal .report-modal-header {
  border-bottom-color: var(--client-line);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.client-page .client-mobile-project-sheet {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(248, 248, 250, 0.97);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  backdrop-filter: saturate(180%) blur(28px);
}

.client-page button.client-mobile-project-option {
  border-color: var(--client-line);
  background: rgba(255, 255, 255, 0.78);
}

.client-page button.client-mobile-project-option.active {
  border-color: rgba(0, 113, 227, 0.18);
  background: var(--client-blue-soft);
}

.client-page button:focus-visible,
.client-page input:focus-visible,
.client-page select:focus-visible,
.client-page a:focus-visible,
.client-page summary:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.22);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  .client-page .client-project-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .client-page .client-project-summary {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .client-page .client-shell {
    display: block;
  }

  .client-page .client-sidebar {
    position: sticky;
    z-index: 200;
    top: 0;
    width: 100%;
    height: 64px;
    min-height: 64px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: max(8px, env(safe-area-inset-top)) 12px 8px;
    border-right: 0;
    border-bottom: 1px solid var(--client-line);
    overflow: visible;
  }

  .client-brand-lockup {
    gap: 7px;
    padding: 0;
  }

  .client-brand-logo-wrap {
    width: 82px;
    height: 42px;
    border-radius: 11px;
  }

  .client-page .client-sidebar .sidebar-logo {
    width: 78px;
  }

  .client-brand-copy,
  .client-primary-nav,
  .client-sidebar-support {
    display: none;
  }

  .client-page .client-sidebar button.client-logout {
    width: 58px !important;
    min-width: 58px !important;
    min-height: 40px;
    margin: 0;
    padding: 8px 11px;
    font-size: 11px;
  }

  .client-page .client-sidebar button.client-logout span {
    display: none;
  }

  .client-page .client-sidebar button.client-logout .client-logout-text {
    display: inline;
    font-size: 0;
  }

  .client-page .client-sidebar button.client-logout .client-logout-text::after {
    content: "退出";
    font-size: 11px;
  }

  .client-page .client-main {
    width: 100%;
    padding: 12px 12px max(34px, env(safe-area-inset-bottom));
  }

  .client-page .client-topbar {
    width: 0;
    height: 0;
    min-height: 0;
    margin: 0;
  }

  .client-page .client-title-block,
  .client-page .client-sync-status {
    display: none;
  }

  .client-page .client-topbar-actions {
    position: fixed;
    z-index: 210;
    top: max(11px, env(safe-area-inset-top));
    right: 76px;
    max-width: calc(100vw - 178px);
  }

  .client-page button.client-account-button {
    width: auto;
    max-width: min(164px, calc(100vw - 178px));
    min-height: 38px;
    padding: 6px 10px 6px 7px;
    font-size: 10px;
  }

  .client-page button.client-account-button::before {
    width: 24px;
    height: 24px;
    font-size: 9px;
  }

  .client-page .client-project-workspace {
    display: none;
  }

  .client-page .client-workspace-body {
    padding: 0;
  }

  .client-page button.client-mobile-project-switcher {
    position: static;
    z-index: 40;
    min-height: 68px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    margin: 0 0 10px;
    padding: 9px 11px;
    border: 1px solid var(--client-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--client-text);
    box-shadow: 0 9px 28px rgba(0, 0, 0, 0.09);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    backdrop-filter: saturate(180%) blur(22px);
  }

  .client-page .client-mobile-project-switcher-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--client-blue);
    font-size: 11px;
  }

  .client-page .client-mobile-project-switcher-copy small,
  .client-page .client-mobile-project-switcher-copy span {
    color: var(--client-muted);
    font-size: 8px;
    font-weight: 520;
  }

  .client-page .client-mobile-project-switcher-copy strong {
    color: var(--client-text);
    font-size: 13px;
    font-weight: 630;
  }

  .client-page .client-mobile-project-switcher-action {
    min-width: 44px;
    padding: 6px 8px;
    border-radius: 999px;
    background: var(--client-blue-soft);
    color: #0064cc;
    font-size: 10px;
  }

  .client-page .client-mobile-project-modal:not([hidden]) {
    display: flex;
  }

  .client-page .aggregate-report-summary {
    margin-bottom: 10px;
    padding: 18px;
    border-radius: 20px;
  }

  .client-page .aggregate-report-summary .section-title {
    font-size: 19px;
  }

  .client-page .aggregate-report-summary p {
    max-width: 240px;
    font-size: 9px;
  }

  .client-page .aggregate-report-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .client-page .aggregate-report-body > .card {
    padding: 16px;
    border-radius: 20px;
  }

  .client-page .aggregate-report-body > .completion-card {
    padding: 0;
  }

  .client-page .completion-summary {
    padding: 15px 16px;
  }

  .client-page .client-completion-report-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 0 14px 14px;
  }

  .client-page .client-completion-report-controls .client-report-search-control,
  .client-page .client-filter-feedback {
    grid-column: 1 / -1;
  }

  .client-page .client-completion-report-controls button {
    min-width: 108px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .client-page #participantCompletionContent {
    padding: 14px;
  }

  .client-page .career-completion-overview {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 11px;
  }

  .client-page .career-completion-metric {
    padding-right: 0;
    border-right: 0;
  }

  .client-page .career-completion-copy {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .client-page .career-completion-grid {
    max-height: 322px;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 62px;
    gap: 8px;
  }

  .client-page .client-report-modal {
    padding: 0;
  }

  .client-page .client-report-modal .report-modal-dialog {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .client-page .client-mobile-project-sheet {
    border-radius: 26px 26px 0 0;
  }
}

@media (max-width: 420px) {
  .client-page .client-topbar-actions {
    right: 72px;
    max-width: calc(100vw - 174px);
  }

  .client-page button.client-account-button {
    max-width: calc(100vw - 174px);
  }

  .client-page .client-completion-report-controls {
    grid-template-columns: minmax(0, 1fr) 104px;
  }

  .client-page .career-completion-done {
    min-width: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .client-page *,
  .client-page *::before,
  .client-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Client dashboard theme v2: stronger hierarchy with persistent light and dark modes */
.client-page {
  --client-surface: #ffffff;
  --client-surface-raised: #ffffff;
  --client-surface-muted: #eef3f8;
  --client-surface-soft: #f6f8fb;
  --client-sidebar-surface: rgba(247, 249, 252, 0.94);
  --client-input-surface: #f0f3f7;
  --client-green-soft: #e9f6ed;
  --client-shadow: 0 2px 5px rgba(30, 48, 73, 0.055), 0 16px 42px rgba(30, 48, 73, 0.09);
  background:
    radial-gradient(circle at 88% 1%, rgba(0, 113, 227, 0.14), transparent 28rem),
    linear-gradient(180deg, #f7f9fc 0%, #edf2f8 48%, #e9eff6 100%);
  transition: background-color 220ms ease, color 220ms ease;
}

.client-page .client-sidebar {
  border-right-color: rgba(35, 54, 82, 0.12);
  background: var(--client-sidebar-surface);
  box-shadow: 8px 0 32px rgba(26, 45, 72, 0.045);
}

.client-page .client-project-workspace,
.client-page .aggregate-report-summary,
.client-page .aggregate-report-body > .card {
  border-color: rgba(35, 54, 82, 0.12);
  background-color: var(--client-surface-raised);
}

.client-page .client-project-workspace {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 5px rgba(30, 48, 73, 0.045), 0 18px 46px rgba(30, 48, 73, 0.1);
}

.client-page .aggregate-report-summary {
  background: radial-gradient(circle at 88% 20%, rgba(0, 113, 227, 0.15), transparent 19rem), var(--client-surface-raised);
}

.client-page .client-project-summary > span,
.client-page .client-project-tab,
.client-page .career-completion-overview,
.client-page .aggregate-detail > summary {
  background-color: var(--client-surface-muted);
}

.client-page .client-project-summary > .client-project-current,
.client-page .career-completion-person {
  background-color: var(--client-surface);
}

.client-page .client-completion-report-controls input,
.client-page .client-completion-report-controls select {
  background-color: var(--client-input-surface);
}

.client-page .muted,
.client-page .small.muted {
  color: var(--client-muted);
}

.client-page button.client-theme-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px 6px 7px;
  border: 1px solid var(--client-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--client-text);
  font-size: 11px;
  font-weight: 620;
  box-shadow: 0 3px 14px rgba(30, 48, 73, 0.055);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.client-page button.client-theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 113, 227, 0.22);
  background: #fff;
  box-shadow: 0 8px 20px rgba(30, 48, 73, 0.1);
}

.client-theme-toggle-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f2ff;
  color: #0064cc;
  font-size: 14px;
  line-height: 1;
}

.client-theme-toggle-label {
  white-space: nowrap;
}

html[data-client-theme="dark"] {
  color-scheme: dark;
}

html[data-client-theme="dark"] .client-page {
  --client-bg: #0a0c10;
  --client-text: #f5f5f7;
  --client-muted: #a7a7ad;
  --client-line: rgba(255, 255, 255, 0.12);
  --client-blue: #0a84ff;
  --client-blue-dark: #409cff;
  --client-blue-soft: rgba(10, 132, 255, 0.16);
  --client-surface: #151920;
  --client-surface-raised: #171b23;
  --client-surface-muted: #1c212a;
  --client-surface-soft: #11151b;
  --client-sidebar-surface: rgba(17, 20, 26, 0.96);
  --client-input-surface: #202630;
  --client-green-soft: rgba(48, 209, 88, 0.14);
  --client-shadow: 0 2px 4px rgba(0, 0, 0, 0.25), 0 18px 48px rgba(0, 0, 0, 0.32);
  color: var(--client-text);
  background:
    radial-gradient(circle at 88% 0%, rgba(10, 132, 255, 0.19), transparent 30rem),
    linear-gradient(180deg, #10141a 0%, #0b0e13 52%, #080a0e 100%);
}

html[data-client-theme="dark"] .client-page .client-sidebar {
  border-right-color: var(--client-line);
  background: var(--client-sidebar-surface);
  box-shadow: 8px 0 36px rgba(0, 0, 0, 0.22);
}

html[data-client-theme="dark"] .client-brand-logo-wrap {
  border-color: rgba(255, 255, 255, 0.18);
  background: #fff;
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.28);
}

html[data-client-theme="dark"] .client-brand-copy small,
html[data-client-theme="dark"] .client-primary-nav .nav-link small,
html[data-client-theme="dark"] .client-sidebar-support small,
html[data-client-theme="dark"] .client-page .client-project-tab-copy small,
html[data-client-theme="dark"] .client-page .client-project-summary small,
html[data-client-theme="dark"] .client-page .client-project-heading p,
html[data-client-theme="dark"] .client-page .aggregate-report-summary p,
html[data-client-theme="dark"] .client-page .career-completion-metric span:last-child,
html[data-client-theme="dark"] .client-page .career-completion-copy span,
html[data-client-theme="dark"] .client-page .career-completion-identity small,
html[data-client-theme="dark"] .client-page .career-completion-done,
html[data-client-theme="dark"] .client-page .client-filter-feedback {
  color: var(--client-muted);
}

html[data-client-theme="dark"] .client-sidebar-support strong,
html[data-client-theme="dark"] .client-page .client-project-summary strong,
html[data-client-theme="dark"] .client-page .client-project-summary .client-project-current strong,
html[data-client-theme="dark"] .client-page .career-completion-copy strong,
html[data-client-theme="dark"] .client-page .career-completion-identity strong,
html[data-client-theme="dark"] .client-page .aggregate-value,
html[data-client-theme="dark"] .client-page .aggregate-rank-list li > b {
  color: var(--client-text);
}

html[data-client-theme="dark"] .client-page .client-primary-nav .nav-link:hover {
  border-color: var(--client-line);
  background: rgba(255, 255, 255, 0.075);
}

html[data-client-theme="dark"] .client-page .client-primary-nav .nav-link.active {
  border-color: rgba(10, 132, 255, 0.22);
  background: rgba(10, 132, 255, 0.16);
  color: #66b3ff;
}

html[data-client-theme="dark"] .client-page .client-sidebar button.client-logout,
html[data-client-theme="dark"] .client-page .client-sync-status,
html[data-client-theme="dark"] .client-page button.client-account-button,
html[data-client-theme="dark"] .client-page button.client-theme-toggle {
  border-color: var(--client-line);
  background: rgba(255, 255, 255, 0.075);
  color: var(--client-text);
  box-shadow: none;
}

html[data-client-theme="dark"] .client-page .client-sidebar button.client-logout:hover,
html[data-client-theme="dark"] .client-page button.client-account-button:hover,
html[data-client-theme="dark"] .client-page button.client-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.13);
}

html[data-client-theme="dark"] .client-theme-toggle-icon {
  background: rgba(255, 204, 0, 0.16);
  color: #ffd60a;
}

html[data-client-theme="dark"] .client-page .client-project-workspace {
  border-color: var(--client-line);
  background: rgba(21, 25, 32, 0.94);
  box-shadow: var(--client-shadow);
}

html[data-client-theme="dark"] .client-page .client-project-summary > span,
html[data-client-theme="dark"] .client-page .client-project-tab,
html[data-client-theme="dark"] .client-page .career-completion-overview,
html[data-client-theme="dark"] .client-page .aggregate-detail,
html[data-client-theme="dark"] .client-page .aggregate-detail > summary,
html[data-client-theme="dark"] .client-page .aggregate-static-row {
  border-color: var(--client-line);
  background: var(--client-surface-muted);
  color: var(--client-text);
}

html[data-client-theme="dark"] .client-page .client-project-summary > .client-project-current,
html[data-client-theme="dark"] .client-page .career-completion-person {
  background: var(--client-surface-raised);
}

html[data-client-theme="dark"] .client-page .client-project-tab:hover,
html[data-client-theme="dark"] .client-page .career-completion-person:hover {
  border-color: rgba(10, 132, 255, 0.42);
  background: #202630;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

html[data-client-theme="dark"] .client-page .client-project-tab.active {
  border-color: rgba(10, 132, 255, 0.36);
  background: rgba(10, 132, 255, 0.18);
  color: #8bc5ff;
}

html[data-client-theme="dark"] .client-page .client-project-tab-index {
  background: #303640;
  color: #d1d1d6;
}

html[data-client-theme="dark"] .client-page .client-project-tab.active .client-project-tab-state,
html[data-client-theme="dark"] .client-page .client-mobile-project-switcher-action,
html[data-client-theme="dark"] .client-page button.career-completion-export {
  background: rgba(10, 132, 255, 0.17);
  color: #78baff;
}

html[data-client-theme="dark"] .client-page .aggregate-report-summary {
  border-color: var(--client-line);
  background: radial-gradient(circle at 88% 20%, rgba(10, 132, 255, 0.22), transparent 19rem), var(--client-surface-raised);
  box-shadow: var(--client-shadow);
}

html[data-client-theme="dark"] .client-page .aggregate-report-body > .card,
html[data-client-theme="dark"] .client-page .energy-ranking-card {
  border-color: var(--client-line);
  background: var(--client-surface-raised);
  color: var(--client-text);
  box-shadow: var(--client-shadow);
}

html[data-client-theme="dark"] .client-page .aggregate-report-body > .card > .section-title,
html[data-client-theme="dark"] .client-page .energy-ranking-head .section-title,
html[data-client-theme="dark"] .client-page .completion-summary .section-title {
  color: var(--client-text);
}

html[data-client-theme="dark"] .client-page .client-completion-report-controls {
  border-bottom-color: var(--client-line);
}

html[data-client-theme="dark"] .client-page .client-completion-report-controls input,
html[data-client-theme="dark"] .client-page .client-completion-report-controls select,
html[data-client-theme="dark"] .client-page .account-editor-modal input {
  border-color: var(--client-line);
  background-color: var(--client-input-surface);
  color: var(--client-text);
}

html[data-client-theme="dark"] .client-page .client-completion-report-controls input::placeholder,
html[data-client-theme="dark"] .client-page .account-editor-modal input::placeholder {
  color: #85858c;
}

html[data-client-theme="dark"] .client-page .account-editor-identity,
html[data-client-theme="dark"] .client-page .account-password-section {
  border-color: var(--client-line);
  background: var(--client-surface-muted);
}

html[data-client-theme="dark"] .client-page .account-editor-identity strong,
html[data-client-theme="dark"] .client-page .account-password-heading h3 {
  color: var(--client-text);
}

html[data-client-theme="dark"] .client-page .account-editor-modal label,
html[data-client-theme="dark"] .client-page .account-editor-identity p,
html[data-client-theme="dark"] .client-page .account-editor-footer p {
  color: var(--client-muted);
}

html[data-client-theme="dark"] .client-page .account-editor-form input[readonly] {
  background: #181d25;
  color: var(--client-muted);
}

html[data-client-theme="dark"] .client-page .account-editor-footer {
  border-top-color: var(--client-line);
}

html[data-client-theme="dark"] .client-page .account-editor-footer button.secondary,
html[data-client-theme="dark"] .client-page .account-editor-modal .report-modal-close {
  border-color: var(--client-line);
  background: rgba(255, 255, 255, 0.09);
  color: var(--client-text);
}

html[data-client-theme="dark"] .client-page .career-completion-person {
  border-color: var(--client-line);
}

html[data-client-theme="dark"] .client-page .aggregate-track,
html[data-client-theme="dark"] .client-page .progress,
html[data-client-theme="dark"] .client-page .energy-rank-track {
  background: #303640;
}

html[data-client-theme="dark"] .client-page .aggregate-rank-list li,
html[data-client-theme="dark"] .client-page .aggregate-person-bar {
  border-top-color: var(--client-line);
}

html[data-client-theme="dark"] .client-page .energy-formula-chip {
  border-color: rgba(10, 132, 255, 0.28);
  background: rgba(10, 132, 255, 0.14);
  color: #8bc5ff;
}

html[data-client-theme="dark"] .client-page .energy-rank-row,
html[data-client-theme="dark"] .client-page .energy-rank-row.top-1,
html[data-client-theme="dark"] .client-page .energy-rank-row.top-2,
html[data-client-theme="dark"] .client-page .energy-rank-row.top-3 {
  border-color: var(--client-line);
  background: var(--client-surface-muted);
  box-shadow: none;
}

html[data-client-theme="dark"] .client-page .energy-rank-primary > strong,
html[data-client-theme="dark"] .client-page .energy-rank-score {
  color: var(--client-text);
}

html[data-client-theme="dark"] .client-page .energy-rank-score small,
html[data-client-theme="dark"] .client-page .energy-rank-secondary > small {
  color: var(--client-muted);
}

html[data-client-theme="dark"] .client-page .client-download-progress {
  border-color: var(--client-line);
  background: rgba(23, 27, 35, 0.94);
}

html[data-client-theme="dark"] .client-page .client-report-modal .report-modal-dialog,
html[data-client-theme="dark"] .client-page .account-editor-modal .report-modal-dialog {
  border-color: var(--client-line);
  background: #10141a;
}

html[data-client-theme="dark"] .client-page .client-report-modal .report-modal-header,
html[data-client-theme="dark"] .client-page .account-editor-modal .report-modal-header {
  border-bottom-color: var(--client-line);
  background: rgba(21, 25, 32, 0.94);
}

html[data-client-theme="dark"] .client-page .client-report-modal-body {
  background: #0d1015;
}

html[data-client-theme="dark"] .client-page .client-report-modal-body .report-modal-report {
  background: #fff;
  color: #1d1d1f;
}

html[data-client-theme="dark"] .client-page .client-mobile-project-sheet {
  border-color: var(--client-line);
  background: rgba(19, 23, 30, 0.97);
}

html[data-client-theme="dark"] .client-page .client-mobile-project-sheet::before {
  background: #7c8490;
}

html[data-client-theme="dark"] .client-page .client-mobile-project-sheet-header h2,
html[data-client-theme="dark"] .client-page .client-mobile-project-option-copy strong {
  color: var(--client-text);
}

html[data-client-theme="dark"] .client-page .client-mobile-project-search,
html[data-client-theme="dark"] .client-page .client-mobile-project-option-copy small {
  color: var(--client-muted);
}

html[data-client-theme="dark"] .client-page .client-mobile-project-search input {
  border-color: var(--client-line);
  background-color: var(--client-input-surface);
  color: var(--client-text);
}

html[data-client-theme="dark"] .client-page button.client-mobile-project-close {
  border-color: var(--client-line);
  background: rgba(255, 255, 255, 0.1);
  color: var(--client-text);
}

html[data-client-theme="dark"] .client-page button.client-mobile-project-option {
  border-color: var(--client-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--client-text);
}

html[data-client-theme="dark"] .client-page button.client-mobile-project-option.active {
  border-color: rgba(10, 132, 255, 0.34);
  background: rgba(10, 132, 255, 0.16);
}

html[data-client-theme="dark"] .client-page .client-mobile-project-option-state,
html[data-client-theme="dark"] .client-page .client-mobile-project-option.active .client-mobile-project-option-state {
  background: rgba(10, 132, 255, 0.17);
  color: #8bc5ff;
}

@media (max-width: 900px) {
  .client-page .client-topbar-actions {
    gap: 7px;
  }

  .client-page button.client-theme-toggle {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 5px;
  }

  .client-page .client-theme-toggle-icon {
    width: 26px;
    height: 26px;
  }

  .client-page .client-theme-toggle-label {
    display: none;
  }

  .client-page button.client-account-button {
    max-width: min(164px, calc(100vw - 232px));
  }

  .client-page button.client-mobile-project-switcher {
    border-color: rgba(35, 54, 82, 0.14);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(30, 48, 73, 0.13);
  }

  html[data-client-theme="dark"] .client-page .client-sidebar {
    border-bottom-color: var(--client-line);
    background: rgba(17, 20, 26, 0.97);
  }

  html[data-client-theme="dark"] .client-page button.client-mobile-project-switcher {
    border-color: var(--client-line);
    background: rgba(23, 27, 35, 0.96);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
  }
}

@media (max-width: 420px) {
  .client-page button.client-account-button {
    max-width: calc(100vw - 232px);
  }
}
