button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(36, 99, 233, 0.2);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

.eyebrow {
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.brand-lockup,
.sidebar-brand {
  align-items: center;
  display: flex;
  gap: 11px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(145deg, #2463eb, #59c5f5);
  border-radius: 11px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.23);
  color: #fff;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  height: 33px;
  justify-content: center;
  letter-spacing: -0.08em;
  width: 33px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease,
    border-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button-primary {
  background: var(--color-primary);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
  color: #fff;
}

.button-primary:hover {
  background: var(--color-primary-strong);
  box-shadow: 0 11px 24px rgba(37, 99, 235, 0.27);
}

.button-dark {
  background: #172033;
  color: #fff;
}

.button-dark:hover {
  background: #0d1423;
}

.button-outline {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}

.button-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.button-small {
  border-radius: 10px;
  font-size: 13px;
  min-height: 36px;
  padding: 0 12px;
}

.button-wide {
  width: 100%;
}

.app-page {
  min-height: 100vh;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  background: rgba(255, 255, 255, 0.9);
  border-right: 1px solid var(--color-border);
  box-shadow: 8px 0 32px rgba(33, 62, 107, 0.035);
  display: flex;
  backdrop-filter: blur(18px);
  flex-direction: column;
  padding: 30px 18px 20px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  z-index: 5;
}

.sidebar-brand {
  padding: 0 12px 35px;
}

.sidebar-label {
  color: #9aa3b2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 0 12px 10px;
}

.team-select-wrap {
  align-items: center;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: 13px;
  display: flex;
  gap: 8px;
  margin: 0 2px 26px;
  padding: 8px 10px;
  position: relative;
}

.team-avatar {
  align-items: center;
  background: var(--color-primary-soft);
  border-radius: 9px;
  color: var(--color-primary);
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.team-select-wrap select {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--color-text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  min-width: 0;
  outline: 0;
  padding-right: 18px;
  width: 100%;
}

.select-chevron,
.user-chevron {
  color: #9aa3b2;
  pointer-events: none;
}

.main-nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 11px;
  color: #7c8798;
  display: flex;
  font-size: 15px;
  font-weight: 650;
  gap: 11px;
  min-height: 46px;
  padding: 0 12px;
  text-align: left;
  transition: 160ms ease;
  width: 100%;
}

.nav-item:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.nav-item.is-active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  box-shadow: inset 0 0 0 1px rgba(36, 99, 233, 0.05);
  position: relative;
}

.nav-item.is-active::before {
  background: var(--color-primary);
  border-radius: 0 6px 6px 0;
  content: "";
  height: 20px;
  left: 0;
  position: absolute;
  width: 3px;
}

.nav-icon {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  width: 20px;
}

.nav-badge {
  background: #e9edf4;
  border-radius: 99px;
  color: #7d8796;
  font-size: 11px;
  margin-left: auto;
  min-width: 21px;
  padding: 3px 6px;
  text-align: center;
}

.sidebar-bottom {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.privacy-note {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #e5efff;
  border-radius: 12px;
  display: flex;
  gap: 9px;
  padding: 11px;
}

.privacy-icon {
  align-items: center;
  background: var(--color-primary-soft);
  border-radius: 8px;
  color: var(--color-primary);
  display: flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.privacy-note strong,
.privacy-note small {
  display: block;
}

.privacy-note strong {
  font-size: 13px;
}

.privacy-note small {
  color: var(--color-muted);
  font-size: 11px;
  margin-top: 3px;
}

.nav-item-muted {
  color: #9aa3b2;
}

.main-content {
  margin-left: 248px;
  max-width: 1640px;
  padding: 34px clamp(28px, 4vw, 72px) 72px;
  width: calc(100% - 248px);
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 29px;
}

.topbar-kicker {
  color: #9aa3b2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 7px;
}

.topbar h1 {
  font-family: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", Inter,
    "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
  font-size: 28px;
  letter-spacing: -0.04em;
  margin: 0;
}

.topbar-actions,
.user-menu {
  align-items: center;
  display: flex;
}

.topbar-actions {
  gap: 21px;
}

.icon-button {
  background: transparent;
  border: 0;
  color: #7f8999;
  border-radius: 10px;
  font-size: 21px;
  height: 36px;
  width: 36px;
  position: relative;
}

.icon-button:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.notification-dot {
  background: var(--color-primary);
  border: 2px solid var(--color-bg);
  border-radius: 50%;
  height: 7px;
  position: absolute;
  right: 1px;
  top: 0;
  width: 7px;
}

.user-menu {
  gap: 9px;
}

.user-avatar,
.player-avatar {
  align-items: center;
  background: linear-gradient(145deg, #172033, #50739a);
  border-radius: 12px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.user-menu strong,
.user-menu small {
  display: block;
}

.user-menu strong {
  font-size: 14px;
}

.user-menu small {
  color: var(--color-muted);
  font-size: 12px;
  margin-top: 2px;
}

.hero-panel {
  background:
    radial-gradient(circle at 92% 20%, rgba(43, 134, 255, 0.25), transparent 22rem),
    linear-gradient(110deg, #eaf3ff, #f6fbff 60%, #eef7ff);
  border: 1px solid #dcecff;
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(44, 101, 177, 0.08);
  display: flex;
  min-height: 268px;
  overflow: hidden;
  position: relative;
}

.hero-copy {
  padding: 39px 42px;
  position: relative;
  z-index: 2;
}

.hero-copy h2 {
  font-family: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", Inter,
    "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
  font-size: clamp(30px, 3.15vw, 42px);
  letter-spacing: -0.055em;
  line-height: 1.1;
  margin: 13px 0 14px;
}

.hero-copy h2 span {
  color: var(--color-primary);
}

.hero-copy p {
  color: #65758b;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 25px;
}

.hero-visual {
  flex: 1;
  min-width: 330px;
  overflow: hidden;
  position: relative;
}

.visual-grid {
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.09) 1px, transparent 1px);
  background-size: 32px 32px;
  inset: 20px -30px -40px 5%;
  mask-image: linear-gradient(90deg, transparent 0%, black 28%, black 100%);
  opacity: 0.75;
  position: absolute;
  transform: perspective(280px) rotateY(-18deg) rotateX(16deg);
}

.visual-line {
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 50%;
  height: 300px;
  position: absolute;
  right: 6%;
  top: 20px;
  transform: rotate(-18deg);
  width: 430px;
}

.line-two {
  border-color: rgba(6, 182, 212, 0.34);
  height: 180px;
  right: 14%;
  top: 70px;
  width: 280px;
}

.visual-node {
  align-items: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.12);
  color: var(--color-primary);
  display: flex;
  font-size: 11px;
  font-weight: 800;
  height: 48px;
  justify-content: center;
  position: absolute;
  width: 48px;
}

.node-one {
  right: 42%;
  top: 53px;
}

.node-two {
  background: var(--color-primary);
  color: #fff;
  right: 17%;
  top: 122px;
}

.node-three {
  color: var(--color-cyan);
  right: 38%;
  top: 175px;
}

.visual-caption {
  bottom: 25px;
  color: rgba(37, 99, 235, 0.36);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
  line-height: 1.5;
  position: absolute;
  right: 12%;
}

.metric-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  margin: 18px 0;
}

.metric-card,
.surface-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.metric-card,
.surface-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.metric-card:hover,
.surface-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card-hover);
}

.metric-card {
  border-radius: 16px;
  min-height: 140px;
  padding: 19px 20px;
}

.metric-card-top,
.section-heading,
.card-title-row,
.progress-label {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.metric-card-top {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.metric-icon {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 15px;
  height: 31px;
  justify-content: center;
  width: 31px;
}

.metric-icon.blue {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.metric-icon.cyan {
  background: #e8fbff;
  color: var(--color-cyan);
}

.metric-icon.orange {
  background: #fff4e6;
  color: var(--color-warning);
}

.metric-card > strong {
  display: block;
  font-size: 32px;
  letter-spacing: -0.05em;
  margin: 14px 0 5px;
}

.metric-meta {
  color: #9aa3b2;
  font-size: 12px;
}

.metric-card-accent {
  background: #f4fbff;
  border-color: #d9f2fb;
}

.metric-live {
  align-items: center;
  color: var(--color-success);
  display: inline-flex;
  font-size: 11px;
  gap: 5px;
  letter-spacing: 0.08em;
}

.metric-live i {
  background: var(--color-success);
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.content-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, 0.8fr);
}

.surface-card {
  border-radius: var(--radius-card);
  padding: 23px;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading.compact {
  margin-bottom: 17px;
}

.section-heading h3,
.card-title-row h3 {
  font-size: 18px;
  letter-spacing: -0.03em;
  margin: 6px 0 0;
}

.task-list {
  display: grid;
  gap: 8px;
}

.empty-task,
.knowledge-placeholder {
  align-items: center;
  background: #f8faff;
  border: 1px dashed #dbe6f6;
  border-radius: 13px;
  color: var(--color-muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 205px;
  padding: 22px;
  text-align: center;
}

.empty-task .empty-illustration {
  height: 48px;
  margin-bottom: 11px;
  width: 48px;
}

.empty-task strong,
.knowledge-placeholder h3 {
  color: var(--color-text);
  font-size: 15px;
}

.empty-task p,
.knowledge-placeholder p {
  font-size: 13px;
  margin: 7px 0 14px;
}

.knowledge-placeholder {
  align-items: flex-start;
  flex-direction: row;
  gap: 15px;
  justify-content: flex-start;
  text-align: left;
}

.knowledge-placeholder .empty-illustration {
  flex: 0 0 auto;
  height: 52px;
  margin: 0;
  width: 52px;
}

.knowledge-placeholder h3 {
  margin: 5px 0 0;
}

.knowledge-placeholder p {
  margin-bottom: 0;
}

.task-row {
  align-items: center;
  border: 1px solid #edf0f5;
  border-radius: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: 38px minmax(0, 1fr) 95px 82px 70px;
  padding: 12px 13px;
  transition: 160ms ease;
}

.task-row:hover {
  border-color: #c9dcff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.07);
  transform: translateY(-1px);
}

.task-symbol {
  align-items: center;
  background: var(--color-primary-soft);
  border-radius: 10px;
  color: var(--color-primary);
  display: flex;
  font-size: 16px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.task-main strong,
.task-main small,
.task-player,
.task-attempts {
  display: block;
}

.task-main strong {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-main small,
.task-player,
.task-attempts {
  color: var(--color-muted);
  font-size: 12px;
  margin-top: 3px;
}

.status-chip,
.ai-badge {
  border-radius: 99px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.03em;
  padding: 5px 8px;
  white-space: nowrap;
}

.status-chip {
  background: #fff5e8;
  color: var(--color-warning);
}

.status-chip.scored {
  background: #eaf9ef;
  color: var(--color-success);
}

.status-chip.analyzing {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.task-open {
  background: transparent;
  border: 0;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
  padding: 5px;
}

.roster-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.roster-card {
  align-items: center;
  border: 1px solid #edf0f5;
  border-radius: 14px;
  display: flex;
  gap: 10px;
  min-height: 66px;
  padding: 11px;
}

.roster-card strong,
.roster-card small {
  display: block;
}

.roster-card strong {
  font-size: 14px;
}

.roster-card small {
  color: var(--color-muted);
  font-size: 12px;
  margin-top: 3px;
}

.roster-position {
  background: var(--color-primary-soft);
  border-radius: 99px;
  color: var(--color-primary);
  font-size: 11px;
  margin-left: auto;
  padding: 5px 7px;
}

.insight-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.11), transparent 14rem),
    #fff;
}

.sparkle {
  color: var(--color-primary);
  font-size: 20px;
}

.insight-content {
  align-items: flex-start;
  background: linear-gradient(145deg, #f4f8ff, #fbfdff);
  border: 1px solid #e7eefb;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  min-height: 204px;
  padding: 20px;
}

.empty-illustration {
  align-items: center;
  background: var(--color-primary-soft);
  border-radius: 50%;
  color: var(--color-primary);
  display: flex;
  font-size: 34px;
  height: 62px;
  justify-content: center;
  margin-bottom: 15px;
  width: 62px;
}

.insight-content strong {
  font-size: 15px;
}

.insight-content p {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 8px 0 0;
}

.detail-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
}

.back-button {
  background: transparent;
  border: 0;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
  padding: 0;
}

.detail-title-row {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 23px;
}

.detail-title-row h2 {
  font-family: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", Inter,
    "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
  font-size: 32px;
  letter-spacing: -0.05em;
  margin: 8px 0;
}

.detail-title-row p {
  color: var(--color-muted);
  font-size: 14px;
  margin: 0;
}

.detail-player {
  align-items: center;
  display: flex;
  gap: 9px;
}

.detail-player small,
.detail-player strong {
  display: block;
}

.detail-player small {
  color: var(--color-muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.detail-player strong {
  font-size: 14px;
  margin-top: 3px;
}

.detail-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
}

.video-card,
.result-card {
  min-height: 405px;
}

.card-title-row {
  margin-bottom: 17px;
}

.card-title-row h3 {
  margin: 0;
}

.muted {
  color: var(--color-muted);
  font-size: 12px;
}

.video-stage {
  align-items: center;
  background:
    linear-gradient(rgba(21, 34, 56, 0.2), rgba(21, 34, 56, 0.2)),
    #101a2b;
  border-radius: 15px;
  display: flex;
  height: 280px;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.video-stage video {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.video-empty {
  align-items: center;
  color: #dce9ff;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.video-empty strong {
  font-size: 15px;
}

.video-empty small {
  color: #8293ac;
  font-size: 12px;
}

.play-orbit {
  align-items: center;
  border: 1px solid rgba(149, 192, 255, 0.35);
  border-radius: 50%;
  color: #8fc6ff;
  display: flex;
  font-size: 17px;
  height: 62px;
  justify-content: center;
  margin-bottom: 6px;
  width: 62px;
}

.upload-row {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.upload-button {
  cursor: pointer;
}

.upload-row .muted {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-progress {
  margin-top: 16px;
}

.progress-label {
  color: var(--color-muted);
  font-size: 12px;
  margin-bottom: 7px;
}

.progress-label span:last-child {
  color: var(--color-primary);
  font-weight: 800;
}

.progress-track {
  background: #eaf0f8;
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}

.progress-track span {
  background: linear-gradient(90deg, var(--color-primary), var(--color-cyan));
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 240ms ease;
  width: 0;
}

.ai-badge {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.result-empty {
  align-items: center;
  background: linear-gradient(145deg, #fbfdff, #f6f9fe);
  border: 1px dashed #dfe8f5;
  border-radius: 14px;
  color: var(--color-muted);
  display: flex;
  flex-direction: column;
  font-size: 13px;
  gap: 9px;
  justify-content: center;
  min-height: 236px;
  padding: 24px;
  position: relative;
  text-align: center;
}

.result-empty::before {
  align-items: center;
  background: var(--color-primary-soft);
  border: 1px solid #d9e7ff;
  border-radius: 12px;
  color: var(--color-primary);
  content: "";
  background: var(--color-primary-soft) url("../vendor/tabler-icons/sparkles.svg") center / 17px 17px no-repeat;
  display: inline-flex;
  font-size: 15px;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.result-card .result-empty {
  min-height: 286px;
}

.evidence-list .result-empty {
  grid-column: 1 / -1;
  min-height: 208px;
}

.comparison-list .result-empty {
  flex-direction: row;
  gap: 8px;
  min-height: 84px;
}

.comparison-list .result-empty::before {
  border-radius: 9px;
  font-size: 12px;
  height: 28px;
  width: 28px;
}

.score-display {
  align-items: baseline;
  border-bottom: 1px solid #edf0f5;
  display: flex;
  gap: 4px;
  padding-bottom: 15px;
  position: relative;
}

.score-display strong {
  color: var(--color-primary);
  font-size: 58px;
  letter-spacing: -0.08em;
  line-height: 1;
}

.score-display > span {
  color: #a0a9b7;
  font-size: 15px;
}

.score-display small {
  bottom: 16px;
  color: var(--color-muted);
  font-size: 12px;
  position: absolute;
  right: 0;
}

.score-source-grid {
  border-bottom: 1px solid #edf0f5;
  padding-bottom: 13px;
}

.score-source-grid .score-display {
  border-bottom: 0;
  padding-bottom: 7px;
}

.score-source-detail {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.score-source-detail span {
  align-items: center;
  background: #f5f8fc;
  border: 1px solid #e4ebf4;
  border-radius: 10px;
  color: var(--color-muted);
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  padding: 8px 10px;
}

.score-source-detail strong {
  color: var(--color-text);
  font-size: 14px;
}

.assessment-demo-notice {
  background: #fff7e8;
  border: 1px solid #f3d9a3;
  border-radius: 9px;
  color: #80560c;
  font-size: 13px;
  margin-bottom: 10px;
  padding: 8px 10px;
}

.dimension-list {
  display: grid;
  gap: 14px;
  margin-top: 19px;
}

.dimension-row {
  display: grid;
  gap: 9px;
  grid-template-columns: 90px 1fr 36px;
}

.dimension-row span,
.dimension-row strong {
  font-size: 12px;
}

.dimension-row span {
  color: var(--color-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dimension-bar {
  align-self: center;
  background: #edf1f6;
  border-radius: 99px;
  height: 7px;
  overflow: hidden;
}

.dimension-bar i {
  background: linear-gradient(90deg, var(--color-primary), var(--color-cyan));
  border-radius: inherit;
  display: block;
  height: 100%;
}

.dimension-row strong {
  text-align: right;
}

.evidence-card {
  margin-top: 18px;
}

.evidence-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.evidence-item {
  background: #f8faff;
  border: 1px solid #e5edf9;
  border-radius: 13px;
  cursor: pointer;
  padding: 13px;
  transition: 160ms ease;
}

.evidence-item:hover {
  border-color: #b6d0ff;
  transform: translateY(-1px);
}

.evidence-item-top {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.evidence-item strong {
  font-size: 13px;
}

.evidence-time {
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
}

.evidence-item p {
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0 0;
}

.progress-card {
  margin-top: 18px;
}

.progress-actions {
  display: flex;
  gap: 7px;
}

.comparison-summary {
  align-items: center;
  background: #f7faff;
  border: 1px solid #e6eefb;
  border-radius: 11px;
  color: var(--color-muted);
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  padding: 11px 13px;
}

.comparison-score {
  color: var(--color-text);
  font-size: 14px;
}

.comparison-score.positive,
.comparison-row strong.positive {
  color: var(--color-success);
}

.comparison-score.negative,
.comparison-row strong.negative {
  color: var(--color-danger);
}

.comparison-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.comparison-list .result-empty {
  min-height: 76px;
}

.comparison-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 110px minmax(120px, 1fr) 70px 34px;
}

.comparison-row > span,
.comparison-row > small,
.comparison-row > strong {
  font-size: 12px;
}

.comparison-row > span {
  color: var(--color-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-row > small {
  color: #8d98a8;
  text-align: right;
}

.comparison-row > strong {
  text-align: right;
}

.comparison-row strong.neutral {
  color: var(--color-muted);
}

.comparison-track {
  background: #edf1f7;
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
  position: relative;
}

.comparison-track i {
  border-radius: inherit;
  display: block;
  height: 4px;
  left: 0;
  position: absolute;
}

.comparison-before {
  background: #b8c7dd;
  top: 0;
}

.comparison-after {
  background: linear-gradient(90deg, var(--color-primary), var(--color-cyan));
  bottom: 0;
}

.review-panel {
  border-top: 1px solid #edf0f5;
  margin-top: 16px;
  padding-top: 16px;
}

.review-panel-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 11px;
}

.review-panel-heading strong,
.review-panel-heading small {
  display: block;
}

.review-panel-heading strong {
  font-size: 14px;
}

.review-panel-heading small {
  color: var(--color-muted);
  font-size: 12px;
  margin-top: 4px;
}

.review-form {
  align-items: end;
  display: grid;
  gap: 9px;
  grid-template-columns: 130px minmax(180px, 1fr) auto;
}

.review-form label {
  color: var(--color-muted);
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 5px;
}

.review-form input,
.review-form textarea {
  background: #fbfcfe;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  color: var(--color-text);
  outline: 0;
  font-size: 14px;
  padding: 9px 11px;
  resize: vertical;
  width: 100%;
}

.review-form input:focus,
.review-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.report-status {
  color: var(--color-success);
  font-size: 12px;
  margin-top: 11px;
  min-height: 14px;
}

.agent-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(6, 182, 212, 0.08), transparent 18rem),
    #fff;
  margin-top: 18px;
}

.chat-messages {
  background: #f8faff;
  border: 1px solid #e7eef8;
  border-radius: 15px;
  display: grid;
  gap: 10px;
  max-height: 260px;
  min-height: 110px;
  overflow: auto;
  padding: 15px;
}

.chat-empty {
  align-self: center;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.65;
  padding: 16px;
  text-align: center;
}

.chat-message {
  align-items: flex-start;
  display: flex;
  gap: 8px;
  max-width: 86%;
}

.chat-message.user {
  justify-self: end;
  flex-direction: row-reverse;
}

.chat-avatar {
  align-items: center;
  background: var(--color-primary-soft);
  border-radius: 8px;
  color: var(--color-primary);
  display: flex;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 800;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.chat-message.user .chat-avatar {
  background: #172033;
  color: #fff;
}

.chat-bubble {
  background: #fff;
  border: 1px solid #e5ebf4;
  border-radius: 4px 11px 11px;
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.6;
  padding: 8px 10px;
}

.chat-message.user .chat-bubble {
  background: var(--color-primary);
  border-color: var(--color-primary);
  border-radius: 11px 4px 11px 11px;
  color: #fff;
}

.chat-citation {
  color: var(--color-primary);
  display: block;
  font-size: 11px;
  margin-top: 5px;
}

.chat-message.user .chat-citation {
  color: #dbeafe;
}

.chat-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.chat-form input {
  background: #fbfcfe;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text);
  min-width: 0;
  outline: 0;
  font-size: 14px;
  padding: 11px 13px;
  width: 100%;
}

.chat-form input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.modal {
  background: transparent;
  border: 0;
  max-width: min(480px, calc(100vw - 28px));
  padding: 0;
  width: 100%;
}

.modal::backdrop {
  background: rgba(15, 24, 39, 0.35);
  backdrop-filter: blur(3px);
}

.modal-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 21px;
  box-shadow: 0 30px 80px rgba(15, 24, 39, 0.22);
  display: grid;
  gap: 14px;
  padding: 26px;
}

.modal-heading {
  align-items: start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.modal-heading h2 {
  font-family: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", Inter,
    "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
  font-size: 24px;
  letter-spacing: -0.045em;
  margin: 6px 0 0;
}

.modal-close {
  background: #f2f5f9;
  border: 0;
  border-radius: 50%;
  color: var(--color-muted);
  font-size: 20px;
  height: 30px;
  line-height: 1;
  width: 30px;
}

.modal-card label,
.auth-form label {
  color: #596579;
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
}

.modal-card input,
.modal-card select,
.modal-card textarea {
  background: #fbfcfe;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text);
  outline: 0;
  font-size: 15px;
  padding: 12px 13px;
  resize: vertical;
  width: 100%;
}

.modal-card input:focus,
.modal-card select:focus,
.modal-card textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 5px;
}

.toast {
  background: #172033;
  border-radius: 10px;
  bottom: 24px;
  box-shadow: 0 15px 34px rgba(15, 24, 39, 0.18);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  position: fixed;
  right: 24px;
  transform: translateY(10px);
  transition: 180ms ease;
  z-index: 20;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .sidebar {
    bottom: auto;
    flex-direction: row;
    height: 64px;
    padding: 12px 14px;
    right: 0;
    width: auto;
  }

  .sidebar-brand {
    padding: 0;
  }

  .sidebar-label,
  .team-select-wrap,
  .main-nav,
  .privacy-note,
  .sidebar-bottom {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding: 88px 16px 34px;
    width: 100%;
  }

  .topbar h1 {
    font-size: 24px;
  }

  .topbar {
    align-items: start;
    gap: 15px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .user-menu > div,
  .user-chevron {
    display: none;
  }

  .hero-panel {
    min-height: 320px;
  }

  .hero-copy {
    padding: 28px 24px;
  }

  .hero-copy h2 {
    font-size: 31px;
  }

  .hero-copy p {
    max-width: 245px;
  }

  .hero-visual {
    bottom: 0;
    min-width: 0;
    opacity: 0.55;
    position: absolute;
    right: -90px;
    top: 100px;
    width: 70%;
  }

  .task-row {
    gap: 10px;
    grid-template-columns: 38px minmax(0, 1fr) 60px;
  }

  .task-player,
  .task-attempts {
    display: none;
  }

  .detail-title-row {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }

  .surface-card {
    padding: 18px;
  }

  .detail-title-row h2 {
    font-size: 27px;
  }

  .video-card,
  .result-card {
    min-height: 0;
  }

  .video-stage {
    height: 220px;
  }

  .progress-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .comparison-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .comparison-row {
    gap: 7px;
    grid-template-columns: 82px minmax(65px, 1fr) 62px 27px;
  }

  .review-form {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .review-form .button {
    width: 100%;
  }
}

/* Ambient motion: slow, quiet feedback for the training workspace. */
.brand-mark {
  animation: brandBreath 6s ease-in-out infinite;
}

.hero-panel {
  isolation: isolate;
}

.hero-panel::before {
  background: radial-gradient(circle, rgba(76, 164, 255, 0.24), transparent 66%);
  content: "";
  filter: blur(24px);
  inset: -30% 24% auto -8%;
  opacity: 0.62;
  pointer-events: none;
  position: absolute;
  height: 180px;
  z-index: 0;
  animation: heroGlow 11s ease-in-out infinite;
}

.hero-panel::after {
  background: linear-gradient(
    110deg,
    transparent 24%,
    rgba(255, 255, 255, 0.5) 48%,
    transparent 70%
  );
  content: "";
  filter: blur(10px);
  inset: -12% auto auto -42%;
  height: 130%;
  pointer-events: none;
  position: absolute;
  transform: rotate(8deg);
  width: 48%;
  z-index: 1;
  animation: heroSheen 12s ease-in-out infinite;
}

.hero-copy,
.hero-visual {
  z-index: 2;
}

.visual-line {
  animation: orbitFloat 10s ease-in-out infinite;
}

.line-two {
  animation-delay: -3.5s;
}

.visual-node {
  animation: nodeFloat 6.5s ease-in-out infinite;
}

.node-two {
  animation-delay: -2.2s;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.18), 0 0 22px rgba(37, 99, 235, 0.13);
}

.node-three {
  animation-delay: -4.1s;
}

.metric-card-accent,
.insight-card {
  overflow: hidden;
  position: relative;
}

.metric-card-accent::after {
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  content: "";
  height: 180%;
  left: -70%;
  pointer-events: none;
  position: absolute;
  top: -40%;
  transform: rotate(18deg);
  width: 34%;
  animation: metricShine 9s ease-in-out infinite;
}

.metric-live i {
  animation: livePulse 2.2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.22);
}

.insight-card::before {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.13), transparent 66%);
  content: "";
  filter: blur(18px);
  height: 210px;
  pointer-events: none;
  position: absolute;
  right: -86px;
  top: -86px;
  width: 210px;
  animation: insightGlow 10s ease-in-out infinite;
}

.insight-card > * {
  position: relative;
  z-index: 1;
}

.button-primary {
  overflow: hidden;
  position: relative;
}

.button-primary > * {
  position: relative;
  z-index: 1;
}

.button-primary::after {
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  content: "";
  inset: -35% auto -35% -80%;
  pointer-events: none;
  position: absolute;
  transform: rotate(15deg);
  width: 34%;
}

.button-primary:hover::after {
  animation: buttonShine 1.15s ease-out;
}

.progress-track span,
.dimension-bar i,
.comparison-after {
  animation: dataReveal 900ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
  transform-origin: left center;
}

@keyframes brandBreath {
  0%,
  100% {
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.23);
  }
  50% {
    box-shadow: 0 9px 23px rgba(37, 99, 235, 0.33), 0 0 18px rgba(6, 182, 212, 0.12);
  }
}

@keyframes heroGlow {
  0%,
  100% {
    opacity: 0.48;
    transform: translate3d(-2%, 0, 0) scale(0.96);
  }
  50% {
    opacity: 0.82;
    transform: translate3d(7%, 8px, 0) scale(1.08);
  }
}

@keyframes heroSheen {
  0%,
  54% {
    transform: translate3d(-5%, 0, 0) rotate(8deg);
  }
  72%,
  100% {
    transform: translate3d(330%, 0, 0) rotate(8deg);
  }
}

@keyframes orbitFloat {
  0%,
  100% {
    transform: rotate(-18deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotate(-15deg) translate3d(-8px, 6px, 0);
  }
}

@keyframes nodeFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -7px, 0);
  }
}

@keyframes metricShine {
  0%,
  60% {
    transform: translate3d(-120%, 0, 0) rotate(18deg);
  }
  82%,
  100% {
    transform: translate3d(410%, 0, 0) rotate(18deg);
  }
}

@keyframes livePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.22);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.04);
  }
}

@keyframes insightGlow {
  0%,
  100% {
    opacity: 0.45;
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.9;
    transform: translate3d(-24px, 22px, 0);
  }
}

@keyframes buttonShine {
  from {
    transform: translate3d(-30%, 0, 0) rotate(15deg);
  }
  to {
    transform: translate3d(430%, 0, 0) rotate(15deg);
  }
}

@keyframes dataReveal {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Role-specific workspaces ------------------------------------------------ */
.nav-group {
  display: grid;
  gap: 6px;
}

.nav-group + .nav-group {
  margin-top: 22px;
}

.nav-group-label {
  color: #a6afbd;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.15em;
  padding: 0 12px 5px;
}

.platform-switcher {
  align-items: center;
  background: linear-gradient(135deg, #eff6ff, #f6fbff);
  border: 1px solid #d8e8ff;
  border-radius: 15px;
  display: flex;
  gap: 11px;
  margin: 0 2px 26px;
  padding: 11px 12px;
}

.platform-switcher strong,
.platform-switcher small {
  display: block;
}

.platform-switcher strong {
  color: #263a59;
  font-size: 13px;
}

.platform-switcher small {
  color: #6f8db8;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
  margin-top: 3px;
}

.platform-icon,
.privacy-icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: 28px;
  justify-content: center;
  position: relative;
  width: 28px;
}

.platform-icon {
  background: #2463eb;
  border-radius: 9px;
  box-shadow: 0 6px 15px rgba(36, 99, 235, 0.22);
}

.platform-icon::before {
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  content: "";
  height: 12px;
  width: 12px;
}

.platform-icon::after {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 -5px 0 -2px #fff, 0 5px 0 -2px #fff;
  content: "";
  height: 3px;
  position: absolute;
  width: 3px;
}

.nav-icon {
  display: inline-block;
  flex: 0 0 20px;
  font-size: 0;
  height: 20px;
  position: relative;
  width: 20px;
}

.nav-icon--overview {
  border: 1.5px solid currentColor;
  border-radius: 6px;
}

.nav-icon--overview::after {
  background: linear-gradient(90deg, currentColor 0 28%, transparent 28% 36%, currentColor 36% 64%, transparent 64% 72%, currentColor 72%);
  content: "";
  height: 4px;
  left: 3px;
  opacity: 0.82;
  position: absolute;
  right: 3px;
  top: 7px;
}

.nav-icon--tasks::before {
  border: 1.5px solid currentColor;
  border-radius: 4px;
  content: "";
  height: 13px;
  left: 2px;
  position: absolute;
  top: 2px;
  width: 13px;
}

.nav-icon--tasks::after {
  background: currentColor;
  box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
  content: "";
  height: 1.5px;
  left: 6px;
  position: absolute;
  top: 5px;
  width: 5px;
}

.nav-icon--players::before {
  border: 1.5px solid currentColor;
  border-radius: 50%;
  content: "";
  height: 6px;
  left: 6px;
  position: absolute;
  top: 2px;
  width: 6px;
}

.nav-icon--players::after {
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  bottom: 2px;
  content: "";
  height: 8px;
  left: 3px;
  position: absolute;
  width: 12px;
}

.nav-icon--knowledge {
  border: 1.5px solid currentColor;
  border-radius: 3px;
  transform: skewY(-6deg);
}

.nav-icon--knowledge::after {
  border-left: 1.5px solid currentColor;
  content: "";
  inset: 2px 8px 2px auto;
  opacity: 0.75;
  position: absolute;
}

.nav-icon--progress::before {
  background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 5px, currentColor 5px 8px, transparent 8px 10px, currentColor 10px 13px);
  bottom: 3px;
  content: "";
  height: 13px;
  left: 3px;
  position: absolute;
  width: 14px;
}

.nav-icon--progress::after {
  border-left: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  content: "";
  height: 7px;
  left: 8px;
  position: absolute;
  top: 2px;
  transform: rotate(45deg);
  width: 7px;
}

.nav-icon--teams {
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.nav-icon--teams::after {
  border: 1.5px solid currentColor;
  border-radius: 4px;
  content: "";
  height: 9px;
  left: 7px;
  position: absolute;
  top: 7px;
  width: 9px;
}

.nav-icon--users::before {
  border: 1.5px solid currentColor;
  border-radius: 50%;
  content: "";
  height: 5px;
  left: 3px;
  position: absolute;
  top: 3px;
  width: 5px;
}

.nav-icon--users::after {
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  bottom: 2px;
  box-shadow: 7px -7px 0 -1px var(--color-surface), 7px -7px 0 0 currentColor;
  content: "";
  height: 8px;
  left: 1px;
  position: absolute;
  width: 9px;
}

.nav-icon--catalog::before,
.nav-icon--catalog::after {
  border: 1.5px solid currentColor;
  border-radius: 3px;
  content: "";
  height: 9px;
  position: absolute;
  width: 13px;
}

.nav-icon--catalog::before {
  left: 1px;
  top: 3px;
}

.nav-icon--catalog::after {
  left: 5px;
  top: 7px;
}

.nav-icon--logout::before {
  border: 1.5px solid currentColor;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  content: "";
  height: 13px;
  left: 2px;
  position: absolute;
  top: 3px;
  width: 9px;
}

.nav-icon--logout::after {
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  content: "";
  height: 7px;
  left: 9px;
  position: absolute;
  top: 6px;
  transform: rotate(45deg);
  width: 7px;
}

.privacy-icon::before {
  border: 1.5px solid currentColor;
  border-radius: 7px 7px 10px 10px;
  clip-path: polygon(50% 0, 100% 18%, 86% 72%, 50% 100%, 14% 72%, 0 18%);
  content: "";
  height: 18px;
  width: 16px;
}

.topbar-icon--bell {
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 3px 3px;
  display: inline-block;
  height: 13px;
  position: relative;
  width: 13px;
}

.topbar-icon--bell::after {
  background: currentColor;
  border-radius: 50%;
  bottom: -4px;
  content: "";
  height: 3px;
  left: 4px;
  position: absolute;
  width: 3px;
}

.player-hero,
.admin-hero {
  border: 1px solid #d9e8ff;
  border-radius: 24px;
  display: flex;
  min-height: 256px;
  overflow: hidden;
  position: relative;
}

.player-hero {
  background: radial-gradient(circle at 85% 12%, rgba(95, 213, 255, 0.32), transparent 17rem), linear-gradient(110deg, #f0f7ff, #f6fbff 58%, #effbff);
}

.admin-hero {
  background: radial-gradient(circle at 86% 20%, rgba(36, 99, 235, 0.2), transparent 19rem), linear-gradient(110deg, #eef4ff, #f9fbff 58%, #effbff);
}

.player-hero-copy,
.admin-hero-copy {
  max-width: 690px;
  padding: 38px 42px;
  position: relative;
  z-index: 2;
}

.player-hero h2,
.admin-hero h2 {
  font-family: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", Inter, "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
  font-size: clamp(29px, 3.1vw, 42px);
  letter-spacing: -0.055em;
  line-height: 1.1;
  margin: 13px 0 14px;
}

.player-hero h2 {
  color: #1d365b;
}

.admin-hero h2 {
  color: #1a3154;
  max-width: 570px;
}

.player-hero p,
.admin-hero p {
  color: #65758b;
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
  max-width: 600px;
}

.player-hero-meta,
.admin-hero-meta {
  align-items: center;
  color: #6e86a6;
  display: flex;
  font-size: 12px;
  gap: 13px;
  margin-top: 24px;
}

.player-hero-visual,
.admin-hero-visual {
  flex: 1;
  min-width: 310px;
  overflow: hidden;
  position: relative;
}

.player-orbit {
  border: 1px solid rgba(36, 99, 235, 0.22);
  border-radius: 50%;
  height: 280px;
  position: absolute;
  right: 9%;
  top: 0;
  transform: rotate(-24deg) skewX(-12deg);
  width: 430px;
}

.player-orbit--two {
  border-color: rgba(6, 182, 212, 0.3);
  height: 170px;
  right: 21%;
  top: 62px;
  width: 280px;
}

.player-orbit-core {
  align-items: center;
  background: linear-gradient(145deg, #2463eb, #50bfe9);
  border: 8px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  box-shadow: 0 16px 36px rgba(36, 99, 235, 0.28);
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 94px;
  justify-content: center;
  position: absolute;
  right: 27%;
  top: 74px;
  width: 94px;
}

.player-orbit-core span {
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.05em;
}

.player-orbit-core small {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-top: 2px;
}

.player-hero-point {
  background: #fff;
  border: 4px solid #78d5f1;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.24);
  height: 15px;
  position: absolute;
  width: 15px;
}

.player-hero-point--one {
  right: 18%;
  top: 43px;
}

.player-hero-point--two {
  bottom: 41px;
  right: 37%;
}

.player-metric-grid,
.admin-metric-grid {
  margin-top: 18px;
}

.player-metric-card,
.admin-metric-card {
  min-height: 136px;
}

.player-content-grid,
.admin-content-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.85fr);
}

.player-task-board,
.player-focus-card,
.player-timeline-card,
.admin-activity-card,
.admin-health-card,
.admin-team-snapshot,
.admin-table-card,
.admin-catalog-card {
  margin-top: 18px;
}

.player-task-list {
  display: grid;
  gap: 9px;
}

.player-task-item {
  align-items: center;
  background: #fbfdff;
  border: 1px solid #edf2f8;
  border-radius: 13px;
  display: grid;
  gap: 12px;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  min-height: 68px;
  padding: 10px 12px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.player-task-item:hover {
  border-color: #cfe0ff;
  box-shadow: 0 10px 22px rgba(44, 101, 177, 0.08);
  transform: translateY(-1px);
}

.player-task-index {
  align-items: center;
  background: #edf4ff;
  border-radius: 9px;
  color: var(--color-primary);
  display: inline-flex;
  font-size: 11px;
  font-weight: 850;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.player-task-copy,
.table-person,
.admin-activity-row,
.admin-health-row,
.admin-team-snapshot-row {
  min-width: 0;
}

.player-task-copy strong,
.player-task-copy small,
.table-person strong,
.table-person small,
.admin-activity-row strong,
.admin-activity-row small,
.admin-health-row strong,
.admin-health-row small,
.admin-team-snapshot-row strong,
.admin-team-snapshot-row small {
  display: block;
}

.player-task-copy strong {
  color: #273650;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-task-copy small,
.table-person small,
.admin-activity-row small,
.admin-health-row small,
.admin-team-snapshot-row small {
  color: #9aa3b2;
  font-size: 11px;
  margin-top: 4px;
}

.task-open,
.table-action {
  background: transparent;
  border: 0;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.task-open:hover,
.table-action:hover {
  color: var(--color-primary-strong);
}

.player-focus-content {
  min-height: 213px;
  padding: 7px 4px 1px;
}

.focus-score {
  align-items: baseline;
  color: var(--color-primary);
  display: flex;
  gap: 3px;
}

.focus-score strong {
  font-size: 54px;
  letter-spacing: -0.08em;
  line-height: 1;
}

.focus-score span {
  color: #9aa3b2;
  font-size: 12px;
  font-weight: 750;
}

.focus-label {
  color: #9aa3b2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-top: 10px;
}

.player-focus-content h4 {
  color: #243553;
  font-size: 18px;
  margin: 7px 0 6px;
}

.player-focus-content p {
  color: #7d8ba0;
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

.focus-track,
.progress-signal-track {
  background: #edf2f8;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.focus-track {
  margin-top: 19px;
}

.focus-track i,
.progress-signal-track i {
  background: linear-gradient(90deg, #2463eb, #55c9ec);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.focus-signal,
.health-dot {
  background: #31c48d;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(49, 196, 141, 0.1);
  height: 8px;
  width: 8px;
}

.player-progress-preview {
  display: grid;
  gap: 7px;
}

.progress-signal-row {
  align-items: center;
  display: grid;
  gap: 11px;
  grid-template-columns: 46px 140px minmax(80px, 1fr) 30px;
  min-height: 31px;
}

.progress-signal-date,
.progress-signal-row b {
  color: #95a1b2;
  font-size: 11px;
}

.progress-signal-row strong {
  color: #4a5b76;
  font-size: 12px;
}

.progress-signal-row b {
  text-align: right;
}

.player-empty-state,
.focus-empty,
.admin-empty-row,
.admin-table-empty {
  align-items: center;
  color: #8795a9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
  text-align: center;
}

.player-empty-state strong,
.focus-empty strong {
  color: #53647d;
  font-size: 14px;
  margin-top: 10px;
}

.player-empty-state p,
.focus-empty p {
  font-size: 12px;
  line-height: 1.6;
  margin: 7px 0 0;
}

.player-empty-state--inline {
  align-items: flex-start;
  flex-direction: row;
  gap: 10px;
  justify-content: flex-start;
  min-height: 42px;
  text-align: left;
}

.player-empty-state--inline p {
  margin: 0;
}

.player-subpage-panel {
  min-height: 430px;
}

.player-subpage-heading {
  align-items: flex-start;
}

.player-subpage-heading h3 {
  font-size: 27px;
  margin-top: 8px;
}

.section-description {
  color: #8996a8;
  font-size: 13px;
  line-height: 1.65;
  margin: 8px 0 0;
  max-width: 600px;
}

.catalog-status,
.section-count,
.template-code {
  align-items: center;
  background: #eef5ff;
  border: 1px solid #dceaff;
  border-radius: 999px;
  color: var(--color-primary);
  display: inline-flex;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  min-height: 26px;
  padding: 0 10px;
  white-space: nowrap;
}

.player-subpage-content {
  margin-top: 28px;
}

.player-subpage-toolbar {
  align-items: center;
  color: #4a5b76;
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.player-task-list--expanded .player-task-item {
  min-height: 76px;
}

.progress-archive-grid,
.knowledge-card-grid,
.catalog-list-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.progress-archive-card,
.knowledge-card-grid article,
.catalog-template-card {
  background: #fbfdff;
  border: 1px solid #e7eef8;
  border-radius: 16px;
  padding: 18px;
}

.progress-archive-card {
  display: grid;
  gap: 12px;
}

.progress-archive-card h4,
.knowledge-card-grid h4,
.catalog-template-card h4 {
  color: #2d3e5c;
  font-size: 16px;
  margin: 6px 0 0;
}

.progress-archive-card > strong {
  color: var(--color-primary);
  font-size: 38px;
  letter-spacing: -0.08em;
}

.progress-archive-card small,
.catalog-template-card p {
  color: #98a3b2;
  font-size: 11px;
  line-height: 1.6;
  margin: 0;
}

.knowledge-card-grid article {
  min-height: 190px;
}

.knowledge-card-index {
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.knowledge-card-grid p {
  color: #7e8da2;
  font-size: 13px;
  line-height: 1.7;
  margin: 12px 0 22px;
}

.knowledge-card-link {
  align-items: center;
  color: var(--color-primary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 4px;
}

.knowledge-card-link .ui-icon {
  height: 13px;
  width: 13px;
}

.visual-node .ui-icon {
  height: 16px;
  width: 16px;
}

.admin-radar {
  border: 1px solid rgba(36, 99, 235, 0.22);
  border-radius: 50%;
  height: 250px;
  position: absolute;
  right: 16%;
  top: 4px;
  width: 250px;
}

.admin-radar::before,
.admin-radar::after {
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 50%;
  content: "";
  inset: 22%;
  position: absolute;
}

.admin-radar::after {
  inset: 43%;
}

.admin-radar i {
  background: rgba(36, 99, 235, 0.16);
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  top: 50%;
}

.admin-radar i:nth-child(2) {
  transform: rotate(60deg);
}

.admin-radar i:nth-child(3) {
  transform: rotate(-60deg);
}

.admin-radar span {
  background: var(--color-primary);
  border: 4px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 0 0 11px rgba(36, 99, 235, 0.09), 0 12px 28px rgba(36, 99, 235, 0.2);
  height: 17px;
  left: calc(50% - 8px);
  position: absolute;
  top: calc(50% - 8px);
  width: 17px;
}

.admin-radar-label {
  color: rgba(36, 99, 235, 0.42);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.2em;
  line-height: 1.5;
  position: absolute;
  right: 8%;
  top: 49%;
}

.admin-radar-label strong {
  color: rgba(6, 182, 212, 0.68);
  font-size: 16px;
}

.admin-scan-line {
  background: linear-gradient(90deg, transparent, rgba(36, 99, 235, 0.42), transparent);
  height: 1px;
  position: absolute;
  right: 8%;
  top: 50%;
  transform: rotate(-27deg);
  width: 280px;
}

.admin-activity-list,
.admin-health-list,
.admin-team-snapshot-list {
  display: grid;
  gap: 8px;
}

.admin-activity-row,
.admin-health-row,
.admin-team-snapshot-row {
  align-items: center;
  display: grid;
  gap: 11px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 55px;
}

.admin-user-avatar {
  align-items: center;
  background: linear-gradient(145deg, #e9f1ff, #d9f6ff);
  border: 1px solid #d5e7ff;
  border-radius: 11px;
  color: var(--color-primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 850;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.admin-activity-row strong,
.admin-health-row strong,
.admin-team-snapshot-row strong {
  color: #41536e;
  font-size: 13px;
}

.admin-activity-time {
  color: #a0aabb;
  font-size: 11px;
}

.admin-health-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.admin-health-row b {
  color: #35ae84;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.health-row-icon {
  background: #eef6ff;
  border-radius: 9px;
  height: 32px;
  position: relative;
  width: 32px;
}

.health-row-icon::before {
  border: 1.5px solid currentColor;
  border-radius: 50%;
  content: "";
  height: 12px;
  left: 9px;
  position: absolute;
  top: 9px;
  width: 12px;
}

.health-row-icon--identity { color: #2463eb; }
.health-row-icon--training { color: #06b6d4; }
.health-row-icon--analysis { color: #f49a3c; }
.health-row-icon--knowledge { color: #865cf6; }

.admin-team-snapshot-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 64px;
}

.team-avatar--large {
  height: 38px;
  width: 38px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.admin-table th {
  color: #a0aaba;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  padding: 0 12px 12px;
  text-align: left;
  white-space: nowrap;
}

.admin-table td {
  border-top: 1px solid #edf1f6;
  color: #68778e;
  font-size: 12px;
  padding: 14px 12px;
  vertical-align: middle;
  white-space: nowrap;
}

.table-person {
  align-items: center;
  display: flex;
  gap: 10px;
  white-space: normal;
}

.table-person strong {
  color: #3d506d;
  font-size: 13px;
}

.role-chip {
  background: #f2f5f9;
  border: 1px solid #e4eaf2;
  border-radius: 999px;
  color: #748197;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 9px;
}

.role-chip--admin {
  background: #eef4ff;
  border-color: #d9e7ff;
  color: var(--color-primary);
}

.admin-catalog-list {
  display: grid;
  gap: 20px;
}

.catalog-stat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.catalog-stat-grid > div {
  background: linear-gradient(135deg, #f8fbff, #eff7ff);
  border: 1px solid #e1edff;
  border-radius: 14px;
  display: grid;
  gap: 4px;
  padding: 15px;
}

.catalog-stat-grid span {
  color: #7789a3;
  font-size: 12px;
}

.catalog-stat-grid strong {
  color: var(--color-primary);
  font-size: 30px;
  letter-spacing: -0.07em;
  line-height: 1;
  margin-top: 7px;
}

.catalog-stat-grid small {
  color: #9cabc0;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.catalog-template-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.template-code {
  background: #fff4e6;
  border-color: #ffe2bd;
  color: #d9852d;
  min-height: 23px;
}

.catalog-template-card p {
  margin: 9px 0 20px;
}

.catalog-template-card footer {
  border-top: 1px solid #edf1f6;
  color: #8b98aa;
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  padding-top: 12px;
}

@media (max-width: 1100px) {
  .player-content-grid,
  .admin-content-grid {
    grid-template-columns: 1fr;
  }

  .player-hero-visual,
  .admin-hero-visual {
    min-width: 260px;
  }

  .progress-archive-grid,
  .knowledge-card-grid,
  .catalog-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .player-hero,
  .admin-hero {
    min-height: 0;
  }

  .player-hero-copy,
  .admin-hero-copy {
    padding: 28px 23px;
  }

  .player-hero-visual,
  .admin-hero-visual {
    display: none;
  }

  .player-task-item {
    align-items: start;
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .player-task-item .status-chip {
    grid-column: 2;
    justify-self: start;
  }

  .player-task-item .task-open {
    grid-column: 3;
    grid-row: 1 / span 2;
    margin-top: 7px;
  }

  .progress-signal-row {
    grid-template-columns: 42px minmax(0, 1fr) 28px;
  }

  .progress-signal-row .progress-signal-track {
    grid-column: 2 / span 2;
    grid-row: 2;
  }

  .progress-signal-row b {
    grid-column: 3;
    grid-row: 1;
  }

  .progress-archive-grid,
  .knowledge-card-grid,
  .catalog-list-grid,
  .catalog-stat-grid {
    grid-template-columns: 1fr;
  }

  .player-subpage-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .admin-table {
    min-width: 0;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table tr {
    border: 1px solid #edf1f6;
    border-radius: 14px;
    margin-bottom: 10px;
    padding: 8px 12px;
  }

  .admin-table td {
    align-items: center;
    border-top: 0;
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    white-space: normal;
  }

  .admin-table td::before {
    color: #9ca8b8;
    content: attr(data-label);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-right: 10px;
  }

  .admin-table td:first-child::before {
    content: "用户 / 队伍";
  }

  .admin-table td:nth-child(2)::before { content: "身份 / 项目"; }
  .admin-table td:nth-child(3)::before { content: "成员 / 队伍"; }
  .admin-table td:nth-child(4)::before { content: "任务 / 访问"; }
  .admin-table td:nth-child(5)::before { content: "状态"; }
  .admin-table td:nth-child(6)::before { content: "操作"; }
}

/* Small icon system: geometric, quiet, and consistent with the light UI. */
.metric-icon {
  font-size: 0;
  position: relative;
}

.metric-icon::before,
.metric-icon::after {
  content: "";
  position: absolute;
}

.metric-icon--tasks::before {
  border: 1.6px solid currentColor;
  border-radius: 4px;
  height: 14px;
  left: 8px;
  top: 8px;
  width: 12px;
}

.metric-icon--tasks::after {
  background: currentColor;
  box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
  height: 1.5px;
  left: 12px;
  top: 11px;
  width: 5px;
}

.metric-icon--score::before {
  border: 1.7px solid currentColor;
  border-radius: 50%;
  height: 14px;
  left: 8px;
  top: 8px;
  width: 14px;
}

.metric-icon--score::after {
  border-left: 1.6px solid currentColor;
  border-top: 1.6px solid currentColor;
  height: 6px;
  left: 13px;
  top: 10px;
  transform: rotate(45deg);
  width: 6px;
}

.metric-icon--review::before {
  border: 1.7px solid currentColor;
  border-radius: 50%;
  height: 15px;
  left: 8px;
  top: 8px;
  width: 15px;
}

.metric-icon--review::after {
  background: currentColor;
  height: 6px;
  left: 15px;
  top: 11px;
  width: 1.6px;
}

.metric-icon--progress::before {
  border-left: 1.7px solid currentColor;
  border-top: 1.7px solid currentColor;
  height: 9px;
  left: 8px;
  top: 9px;
  transform: rotate(45deg);
  width: 9px;
}

.metric-icon--progress::after {
  background: currentColor;
  height: 1.7px;
  left: 9px;
  top: 17px;
  transform: rotate(-45deg);
  width: 13px;
}

.metric-icon--users::before {
  border: 1.6px solid currentColor;
  border-radius: 50%;
  height: 6px;
  left: 9px;
  top: 7px;
  width: 6px;
}

.metric-icon--users::after {
  border: 1.6px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  height: 8px;
  left: 6px;
  top: 16px;
  width: 12px;
}

.metric-icon--teams::before {
  border: 1.6px solid currentColor;
  border-radius: 4px;
  height: 13px;
  left: 7px;
  top: 8px;
  width: 15px;
}

.metric-icon--teams::after {
  border-left: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
  height: 7px;
  left: 12px;
  top: 11px;
  width: 4px;
}

.metric-icon--catalog::before,
.metric-icon--catalog::after {
  border: 1.6px solid currentColor;
  border-radius: 3px;
  height: 9px;
  width: 14px;
}

.metric-icon--catalog::before {
  left: 7px;
  top: 8px;
}

.metric-icon--catalog::after {
  left: 11px;
  top: 12px;
}

.task-symbol--task {
  background: #eef4ff;
  border: 1.5px solid #75a4f3;
  border-radius: 9px;
  display: inline-block;
  height: 34px;
  position: relative;
  width: 34px;
}

.task-symbol--task::before {
  border: 1.4px solid currentColor;
  border-radius: 3px;
  color: var(--color-primary);
  content: "";
  height: 13px;
  left: 9px;
  position: absolute;
  top: 9px;
  width: 11px;
}

.task-symbol--task::after {
  background: var(--color-primary);
  box-shadow: 0 4px 0 var(--color-primary);
  content: "";
  height: 1.4px;
  left: 12px;
  position: absolute;
  top: 13px;
  width: 5px;
}

.sparkle {
  background: radial-gradient(circle, var(--color-primary) 0 2px, transparent 3px);
  border: 1px solid #dbe8ff;
  border-radius: 50%;
  display: inline-block;
  height: 28px;
  position: relative;
  width: 28px;
}

.sparkle::before,
.sparkle::after {
  background: var(--color-primary);
  border-radius: 99px;
  content: "";
  left: 13px;
  position: absolute;
  top: 7px;
  width: 1px;
}

.sparkle::before { height: 14px; }
.sparkle::after { height: 14px; transform: rotate(90deg); }

/* Phase A: use the local Tabler icon system as the single source of truth. */
.nav-icon {
  align-items: center;
  display: inline-flex;
  font-size: 18px;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.nav-icon::before,
.nav-icon::after,
.metric-icon::before,
.metric-icon::after,
.privacy-icon::before,
.platform-icon::before,
.platform-icon::after,
.topbar-icon--bell::after,
.sparkle::before,
.sparkle::after {
  content: none !important;
}

.platform-icon .ui-icon {
  color: #fff;
  height: 17px;
  width: 17px;
}

.privacy-icon {
  font-size: 16px;
}

.privacy-icon .ui-icon {
  color: var(--color-primary);
  height: 18px;
  width: 18px;
}

.metric-icon {
  align-items: center;
  display: inline-flex;
  font-size: 16px;
  height: 30px;
  justify-content: center;
  position: relative;
  width: 30px;
}

.metric-icon .ui-icon {
  height: 17px;
  width: 17px;
}

.topbar-icon--bell {
  align-items: center;
  border: 0;
  display: inline-flex;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.topbar-icon--bell .ui-icon {
  height: 18px;
  width: 18px;
}

.sparkle {
  align-items: center;
  background: #f2f6ff;
  display: inline-flex;
  justify-content: center;
}

.sparkle .ui-icon {
  color: var(--color-primary);
  height: 16px;
  width: 16px;
}

.task-symbol--task {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.task-symbol--task::before,
.task-symbol--task::after {
  content: none !important;
}

.task-symbol--task .ui-icon {
  color: var(--color-primary);
  height: 17px;
  width: 17px;
}

.empty-illustration .ui-icon {
  height: 26px;
  width: 26px;
}

/* Adjustable desktop sidebar ------------------------------------------------ */
.app-shell {
  --sidebar-expanded-width: 268px;
  --sidebar-current-width: clamp(216px, var(--sidebar-expanded-width), 360px);
}

.app-shell .sidebar {
  width: var(--sidebar-current-width);
}

.app-shell .main-content {
  margin-left: var(--sidebar-current-width);
  width: calc(100% - var(--sidebar-current-width));
}

.app-shell.sidebar-ui-ready .sidebar,
.app-shell.sidebar-ui-ready .main-content {
  transition: margin-left 220ms cubic-bezier(0.2, 0.75, 0.25, 1),
    width 220ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.app-shell.sidebar-is-resizing,
.app-shell.sidebar-is-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

.app-shell.sidebar-is-resizing .sidebar,
.app-shell.sidebar-is-resizing .main-content {
  transition: none;
}

.app-shell .sidebar-collapse-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #d8e5f5;
  border-radius: 10px;
  box-shadow: 0 7px 20px rgba(37, 75, 127, 0.13);
  color: #6f819b;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: -15px;
  top: 29px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease,
    box-shadow 160ms ease, transform 220ms cubic-bezier(0.2, 0.75, 0.25, 1);
  width: 30px;
  z-index: 4;
}

.app-shell .sidebar-collapse-toggle:hover {
  background: #f4f8ff;
  border-color: #a9c7f4;
  box-shadow: 0 9px 24px rgba(37, 89, 167, 0.18);
  color: var(--color-primary);
}

.app-shell .sidebar-collapse-toggle .ui-icon {
  height: 15px;
  transition: transform 220ms cubic-bezier(0.2, 0.75, 0.25, 1);
  width: 15px;
}

.app-shell .sidebar-resizer {
  bottom: 0;
  cursor: col-resize;
  outline: 0;
  position: absolute;
  right: -5px;
  top: 74px;
  touch-action: none;
  width: 10px;
  z-index: 3;
}

.app-shell .sidebar-resizer::before {
  background: transparent;
  border-radius: 99px;
  content: "";
  inset: 18px 4px;
  position: absolute;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.app-shell .sidebar-resizer:hover::before,
.app-shell .sidebar-resizer:focus-visible::before,
.app-shell.sidebar-is-resizing .sidebar-resizer::before {
  background: rgba(36, 99, 233, 0.55);
  box-shadow: 0 0 12px rgba(36, 99, 233, 0.24);
}

.app-shell .sidebar-resizer:focus-visible {
  outline: 3px solid rgba(36, 99, 233, 0.2);
  outline-offset: -2px;
}

@media (min-width: 761px) {
  .app-shell.sidebar-is-collapsed {
    --sidebar-current-width: 76px;
  }

  .app-shell.sidebar-is-collapsed .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .app-shell.sidebar-is-collapsed .sidebar-collapse-toggle .ui-icon {
    transform: rotate(180deg);
  }

  .app-shell.sidebar-is-collapsed .sidebar-resizer {
    opacity: 0;
    pointer-events: none;
  }

  .app-shell.sidebar-is-collapsed .sidebar-brand {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  .app-shell.sidebar-is-collapsed .sidebar-brand > span:not(.brand-mark),
  .app-shell.sidebar-is-collapsed .sidebar-label,
  .app-shell.sidebar-is-collapsed .nav-group-label,
  .app-shell.sidebar-is-collapsed .team-select-wrap select,
  .app-shell.sidebar-is-collapsed .select-chevron,
  .app-shell.sidebar-is-collapsed .platform-switcher > div,
  .app-shell.sidebar-is-collapsed .privacy-note > div,
  .app-shell.sidebar-is-collapsed .nav-item > span:not(.nav-icon) {
    display: none;
  }

  .app-shell.sidebar-is-collapsed .team-select-wrap,
  .app-shell.sidebar-is-collapsed .platform-switcher,
  .app-shell.sidebar-is-collapsed .privacy-note {
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
    padding-left: 8px;
    padding-right: 8px;
  }

  .app-shell.sidebar-is-collapsed .main-nav,
  .app-shell.sidebar-is-collapsed .nav-group,
  .app-shell.sidebar-is-collapsed .sidebar-bottom {
    width: 100%;
  }

  .app-shell.sidebar-is-collapsed .nav-item {
    gap: 0;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    position: relative;
  }

  .app-shell.sidebar-is-collapsed .nav-item:hover {
    transform: none;
  }

  .app-shell.sidebar-is-collapsed .nav-icon {
    flex-basis: 24px;
    width: 24px;
  }

  .app-shell.sidebar-is-collapsed .nav-item[data-sidebar-label]::after {
    background: #162238;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    box-shadow: 0 9px 24px rgba(15, 30, 54, 0.2);
    color: #fff;
    content: attr(data-sidebar-label);
    font-size: 12px;
    font-weight: 700;
    left: calc(100% + 13px);
    opacity: 0;
    padding: 7px 10px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-4px, -50%);
    transition: opacity 140ms ease, transform 140ms ease;
    white-space: nowrap;
    z-index: 8;
  }

  .app-shell.sidebar-is-collapsed .nav-item[data-sidebar-label]:hover::after,
  .app-shell.sidebar-is-collapsed .nav-item[data-sidebar-label]:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

@media (max-width: 760px) {
  .app-shell {
    --sidebar-current-width: 0px;
  }

  .app-shell .sidebar {
    width: auto;
  }

  .app-shell .main-content {
    margin-left: 0;
    width: 100%;
  }

  .app-shell .sidebar-collapse-toggle,
  .app-shell .sidebar-resizer {
    display: none;
  }
}
