/* Swift-Web AI 课堂的品牌色，供官网、课堂、导师工具和课件共同使用。 */
:root {
  --course-accent: #2947af;
  --course-accent-hover: #1e3592;
  --course-navy: #202e59;
  --course-ink: #18243f;
  --course-muted: #4e5b72;
  --course-line: #d4daea;
  --course-page: #f5f6fb;
  --course-tint: #eef1fa;
  --course-selected: #e5eaff;
  --course-surface: #fff;
  --course-focus: #ee9d33;
  --course-font: Inter, -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  accent-color: var(--course-accent);
  color-scheme: light;
}

course-navigation {
  display: block;
  margin-inline-start: auto;
  position: relative;
  z-index: 20;
  font: 550 14px/1.45 var(--course-font);
  color: var(--course-ink);
}
course-navigation nav.role-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  white-space: nowrap;
}
course-navigation a { color: inherit; text-decoration: none; }
course-navigation a:hover { color: var(--course-accent); }
.role-profile { position: relative; }
.role-profile summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  border-radius: 6px;
}
.role-profile summary::-webkit-details-marker { display: none; }
.role-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--course-selected);
  color: var(--course-accent);
  font-weight: 750;
}
.role-chevron { color: var(--course-muted); }
.role-profile[open] .role-chevron { transform: rotate(180deg); }
.role-actions {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 148px;
  padding: 6px;
  border: 1px solid var(--course-line);
  border-radius: 8px;
  background: var(--course-surface);
  box-shadow: 0 6px 22px #202e591c;
}
.role-actions form { margin: 0; }
.role-actions a, .role-actions button {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--course-ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.role-actions a:hover, .role-actions button:hover { background: var(--course-tint); }
course-navigation :focus-visible { outline: 2px solid var(--course-accent); outline-offset: 2px; }
