/* Nebula Mission is intentionally scoped to the authorized mentee shell. */

.role-mentee {
  --bg: #050916;
  --panel: rgba(9, 20, 42, 0.9);
  --panel-2: rgba(14, 28, 55, 0.92);
  --ink: #f4f7ff;
  --muted: #9aa9c8;
  --line: rgba(145, 172, 222, 0.22);
  --brand: #7658ef;
  --brand-dark: #9479ff;
  --accent: #35b8ed;
  --ok: #43d6a2;
  --warn: #f1ad55;
  --bad: #ff7481;
  --space: #050916;
  --space-soft: #0b1731;
  --cyan: #37c9eb;
  --violet-soft: rgba(122, 91, 241, 0.16);
  --shadow: 0 18px 48px rgba(0, 4, 18, 0.34);
  min-height: 100vh;
  color: var(--ink);
  background: #050916;
}

.role-mentee .content {
  position: relative;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(4, 9, 24, 0.92), rgba(6, 15, 34, 0.79) 48%, rgba(8, 10, 31, 0.92)),
    radial-gradient(circle at 72% 4%, rgba(67, 126, 255, 0.2), transparent 28rem),
    url("./assets/visuals/gradespace-galaxy.webp") center / cover fixed;
}

.role-mentee .content::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0 0 0 248px;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 18%, rgba(62, 201, 238, 0.09), transparent 22rem),
    radial-gradient(circle at 90% 75%, rgba(142, 81, 255, 0.12), transparent 30rem);
}

.role-mentee .content > * {
  position: relative;
  z-index: 1;
}

.role-mentee .sidebar {
  width: 248px;
  padding: 24px 18px 18px;
  gap: 20px;
  background:
    linear-gradient(180deg, rgba(4, 12, 29, 0.94), rgba(4, 13, 30, 0.98)),
    url("./assets/visuals/gradespace-galaxy.webp") 18% center / auto 100% fixed;
  border-right-color: rgba(105, 167, 237, 0.22);
  box-shadow: 18px 0 60px rgba(0, 4, 18, 0.28);
}

.role-mentee .brand-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0 4px;
}

.role-mentee .brand {
  font-size: 21px;
  letter-spacing: -0.02em;
}

.role-mentee .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 36%, #b8efff 0 8%, transparent 9%),
    conic-gradient(from 35deg, #52d2f0, #6555f0, #b95ddf, #52d2f0);
  box-shadow: 0 0 0 1px rgba(160, 221, 255, 0.3), 0 0 24px rgba(101, 88, 240, 0.42);
}

.role-mentee .help-icon-button {
  border-color: rgba(129, 169, 233, 0.26);
  background: rgba(12, 27, 54, 0.78);
}

.mentee-account-chip {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  color: #f4f7ff;
  text-align: left;
  border: 1px solid rgba(133, 167, 222, 0.2);
  border-radius: 14px;
  background: rgba(12, 27, 54, 0.7);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.mentee-account-chip:hover {
  border-color: rgba(83, 201, 239, 0.5);
  background: rgba(18, 38, 74, 0.86);
  transform: translateY(-1px);
}

.mentee-account-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 1px solid rgba(139, 184, 238, 0.25);
  border-radius: 50%;
  background: rgba(8, 22, 46, 0.82);
  box-shadow: 0 0 18px rgba(104, 91, 244, 0.28);
}

.mentee-account-avatar .loyalty-level-visual {
  width: 32px;
  height: 32px;
  overflow: visible;
  transform: scale(var(--loyalty-icon-scale));
  transform-origin: center;
  filter: brightness(1.08) saturate(1.15) drop-shadow(0 0 var(--loyalty-icon-glow) var(--loyalty-icon-glow-color));
}

.mentee-account-chip > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mentee-account-chip strong,
.mentee-account-chip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mentee-account-chip strong {
  font-size: 13px;
}

.mentee-account-chip small {
  color: #8fa3c8;
  font-size: 10px;
}

.mentee-account-chip i {
  color: #7f95bd;
  font-style: normal;
  font-size: 22px;
}

.role-mentee .nav,
.role-mentee .nav-full,
.role-mentee .nav-compact,
.role-mentee .nav-primary,
.role-mentee .nav-more-list {
  gap: 7px;
}

.role-mentee .nav button,
.role-mentee .nav-more summary {
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  color: #aebbd4;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 650;
}

.role-mentee .nav button.active,
.role-mentee .nav button:hover,
.role-mentee .nav-more summary.active,
.role-mentee .nav-more summary:hover {
  color: #ffffff;
  border-color: rgba(104, 168, 239, 0.26);
  background: linear-gradient(90deg, rgba(48, 137, 207, 0.2), rgba(112, 77, 227, 0.19));
}

.role-mentee .nav button.active::before {
  inset: 9px auto 9px 0;
  width: 3px;
  background: #47c8ee;
  box-shadow: 0 0 14px rgba(71, 200, 238, 0.9);
}

.mentee-nav-symbol {
  width: 24px;
  flex: 0 0 24px;
  display: inline-grid;
  place-items: center;
  color: #8aa3cd;
  font-size: 18px;
  font-weight: 800;
}

.role-mentee .nav button.active .mentee-nav-symbol,
.role-mentee .nav button:hover .mentee-nav-symbol,
.role-mentee .nav-more summary.active .mentee-nav-symbol {
  color: #54cdf0;
  text-shadow: 0 0 12px rgba(84, 205, 240, 0.55);
}

.mentee-nav-label-compact,
.mentee-mobile-utilities {
  display: none;
}

.role-mentee .sidebar-bottom {
  border-top: 1px solid rgba(141, 169, 218, 0.16);
  padding-top: 13px;
}

.role-mentee .sidebar-bottom .btn {
  color: #b9c5dd;
  border: 1px solid rgba(139, 167, 219, 0.18);
  background: rgba(12, 28, 55, 0.72);
  box-shadow: none;
}

.role-mentee .sidebar .legal-links .link-button {
  color: #7789aa;
}

.role-mentee .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;
}

.role-mentee .topbar {
  min-height: 68px;
  border-bottom-color: rgba(139, 170, 222, 0.18);
}

.role-mentee .topbar h1 {
  color: #f7f9ff;
  font-size: clamp(27px, 2.5vw, 38px);
  letter-spacing: -0.035em;
}

.role-mentee .topbar p {
  color: #91a3c3;
}

.role-mentee .card {
  border: 1px solid rgba(139, 171, 223, 0.22);
  border-radius: 16px;
  color: #eef4ff;
  background:
    linear-gradient(145deg, rgba(13, 29, 57, 0.94), rgba(7, 19, 40, 0.91)),
    rgba(8, 19, 40, 0.92);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.025);
}

.role-mentee .card h2,
.role-mentee .card h3 {
  color: #f7f9ff;
}

.role-mentee .muted {
  color: #96a6c4;
}

.role-mentee .empty {
  color: #9bacca;
  border-color: rgba(133, 166, 220, 0.3);
  border-radius: 14px;
  background: rgba(8, 20, 42, 0.76);
}

.role-mentee .btn {
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #5f57df, #8254e9 58%, #477de6);
  box-shadow: 0 8px 22px rgba(63, 63, 196, 0.25), inset 0 1px rgba(255, 255, 255, 0.18);
}

.role-mentee .btn:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #7166f0, #9565f4 58%, #528df0);
  box-shadow: 0 10px 28px rgba(78, 70, 215, 0.35), 0 0 0 1px rgba(143, 207, 255, 0.16);
}

.role-mentee .btn.secondary,
.role-mentee .btn.ghost {
  color: #ced8ed;
  border: 1px solid rgba(139, 172, 224, 0.3);
  background: rgba(16, 32, 61, 0.8);
  box-shadow: none;
}

.role-mentee .btn.secondary:hover,
.role-mentee .btn.ghost:hover {
  color: #ffffff;
  border-color: rgba(96, 195, 240, 0.5);
  background: rgba(24, 46, 83, 0.92);
}

.role-mentee .btn.warn {
  color: #ffadb6;
  border: 1px solid rgba(255, 102, 119, 0.36);
  background: rgba(104, 27, 48, 0.43);
  box-shadow: none;
}

.role-mentee .btn.warn:hover {
  background: rgba(138, 37, 60, 0.58);
}

.role-mentee .btn:focus-visible,
.role-mentee button:focus-visible,
.role-mentee input:focus-visible,
.role-mentee textarea:focus-visible,
.role-mentee select:focus-visible,
.role-mentee summary:focus-visible {
  outline: 2px solid #77d8f3;
  outline-offset: 2px;
}

.role-mentee .link-button {
  color: #87b9ff;
}

.role-mentee .tag {
  color: #77efc1;
  border: 1px solid rgba(67, 214, 162, 0.24);
  background: rgba(33, 121, 93, 0.22);
}

.role-mentee .tag.success {
  color: #77efc1;
  border-color: rgba(67, 214, 162, 0.32);
  background: rgba(33, 121, 93, 0.24);
}

.role-mentee .tag.warn {
  color: #ffc879;
  border-color: rgba(242, 170, 72, 0.28);
  background: rgba(135, 82, 19, 0.25);
}

.role-mentee .tag.bad {
  color: #ff9ea8;
  border-color: rgba(255, 111, 126, 0.28);
  background: rgba(134, 38, 58, 0.25);
}

.role-mentee .tag.gray {
  color: #aebbd2;
  border-color: rgba(139, 166, 208, 0.22);
  background: rgba(94, 112, 151, 0.2);
}

.role-mentee .tag.dialogue-source-tag {
  color: #c4a8ff;
  border-color: rgba(177, 127, 255, 0.28);
  background: rgba(103, 61, 177, 0.24);
}

.role-mentee .progress,
.role-mentee .dialogue-progress {
  height: 8px;
  background: rgba(127, 151, 193, 0.2);
}

.role-mentee .progress span,
.role-mentee .dialogue-progress span {
  background: linear-gradient(90deg, #635ced, #8b64f4 52%, #3bc9df);
  box-shadow: 0 0 12px rgba(102, 98, 238, 0.38);
}

.role-mentee .field input,
.role-mentee .field textarea,
.role-mentee .field select,
.role-mentee .nebula-review-toolbar input,
.role-mentee input[type="search"],
.role-mentee select {
  color: #ecf3ff;
  border-color: rgba(133, 164, 216, 0.28);
  border-radius: 10px;
  background: rgba(5, 16, 35, 0.72);
}

.role-mentee input::placeholder,
.role-mentee textarea::placeholder {
  color: #6f809f;
}

.role-mentee .field input:focus,
.role-mentee .field textarea:focus,
.role-mentee .field select:focus,
.role-mentee input[type="search"]:focus,
.role-mentee select:focus {
  border-color: #7369ed;
  box-shadow: 0 0 0 3px rgba(112, 93, 232, 0.19);
  outline: none;
}

.role-mentee option {
  color: #eaf1ff;
  background: #0c1931;
}

.nebula-card-heading,
.nebula-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.nebula-card-heading h2,
.nebula-section-heading h3 {
  margin: 2px 0 0;
}

.nebula-card-heading > strong,
.nebula-card-heading > span,
.nebula-section-heading > span {
  color: #94a6c6;
  font-size: 12px;
  font-weight: 700;
}

.nebula-eyebrow,
.nebula-context-label {
  display: block;
  color: #69d2ee;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nebula-empty {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.nebula-overflow {
  position: relative;
  margin-left: auto;
}

.nebula-overflow > summary {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #9fb0cd;
  border: 1px solid rgba(139, 171, 221, 0.25);
  border-radius: 10px;
  background: rgba(7, 18, 38, 0.76);
  cursor: pointer;
  list-style: none;
}

.nebula-overflow > summary::-webkit-details-marker {
  display: none;
}

.nebula-overflow[open] > .btn {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  right: 0;
  width: max-content;
  max-width: 260px;
}

.nebula-skillset-switcher {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(7, 19, 40, 0.86);
  backdrop-filter: blur(14px);
}

.nebula-skillset-switcher .button-row {
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}

.nebula-skillset-switcher .btn {
  flex: 0 0 auto;
  min-height: 42px;
  display: grid;
  justify-items: start;
  gap: 1px;
  padding: 7px 12px;
}

.nebula-skillset-switcher .btn small {
  color: currentColor;
  opacity: 0.58;
  font-size: 9px;
  font-weight: 700;
}

.nebula-slot-count {
  color: #8799ba;
  font-size: 11px;
  white-space: nowrap;
}

/* Progress */

.nebula-progress-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 16px;
  align-items: start;
}

.nebula-progress-main {
  display: grid;
  gap: 16px;
}

.nebula-next-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 10%, rgba(70, 198, 238, 0.15), transparent 12rem),
    linear-gradient(120deg, rgba(50, 46, 132, 0.85), rgba(15, 32, 66, 0.94) 58%, rgba(8, 22, 47, 0.94));
}

.nebula-next-action h2 {
  margin: 4px 0 6px;
}

.nebula-next-action p {
  max-width: 760px;
  margin: 0;
  color: #a6b6d2;
}

.nebula-next-action .btn {
  flex: 0 0 auto;
}

.nebula-trajectory-card {
  display: grid;
  gap: 22px;
}

.nebula-grade-summary {
  min-width: 170px;
  display: grid;
  gap: 2px;
  padding-left: 16px;
  border-left: 1px solid rgba(137, 168, 218, 0.22);
}

.nebula-grade-summary span,
.nebula-grade-summary small {
  color: #93a5c5;
  font-size: 11px;
}

.nebula-grade-summary strong {
  color: #ffffff;
  font-size: 23px;
}

.nebula-grade-orbit {
  position: relative;
  display: flex;
  align-items: start;
  gap: 0;
  margin: 0;
  padding: 18px 2px 4px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
}

.nebula-grade-orbit::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 30px;
  width: max(720px, calc(100% - 60px));
  height: 1px;
  background: linear-gradient(90deg, #48bdeb, #7459ec 52%, rgba(126, 149, 190, 0.25));
}

.nebula-grade-orbit li {
  position: relative;
  z-index: 1;
  min-width: 92px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #657493;
  font-size: 10px;
  text-align: center;
}

.nebula-grade-orbit li > span {
  width: 25px;
  height: 25px;
  border: 5px solid #111d36;
  border-radius: 50%;
  background: #44516d;
  box-shadow: 0 0 0 1px rgba(138, 164, 210, 0.24);
}

.nebula-grade-orbit li.completed,
.nebula-grade-orbit li.current {
  color: #d7e7ff;
}

.nebula-grade-orbit li.completed > span {
  background: #42b9ed;
  box-shadow: 0 0 14px rgba(66, 185, 237, 0.42);
}

.nebula-grade-orbit li.current {
  color: #ffffff;
  font-size: 12px;
}

.nebula-grade-orbit li.current > span {
  width: 34px;
  height: 34px;
  margin-top: -5px;
  border-color: #17295a;
  background: radial-gradient(circle at 35% 30%, #c9f5ff, #4199ee 25%, #5e50d6 67%, #261b6c);
  box-shadow: 0 0 0 2px #5bc9f0, 0 0 25px rgba(88, 188, 242, 0.62);
}

.nebula-grade-orbit li.next {
  color: #bd9bff;
}

.nebula-grade-orbit li.next > span {
  background: radial-gradient(circle at 35% 30%, #e7d8ff, #9368f4 35%, #39266f);
  box-shadow: 0 0 15px rgba(149, 98, 244, 0.42);
}

.nebula-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.nebula-evidence-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(135, 167, 219, 0.2);
  border-radius: 13px;
  background: rgba(12, 28, 56, 0.62);
}

.nebula-evidence-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #9ec4ff;
  border: 1px solid rgba(103, 169, 246, 0.35);
  border-radius: 50%;
  background: rgba(39, 99, 173, 0.18);
  font-size: 16px;
  font-weight: 800;
}

.nebula-evidence-card[data-evidence-kind="experience"] .nebula-evidence-icon {
  color: #c8a9ff;
  border-color: rgba(175, 124, 250, 0.36);
  background: rgba(101, 56, 162, 0.2);
}

.nebula-evidence-card[data-evidence-kind="skill"] .nebula-evidence-icon {
  color: #7ae8da;
  border-color: rgba(68, 214, 197, 0.34);
  background: rgba(27, 129, 119, 0.2);
}

.nebula-evidence-card > div:not(.progress) {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
}

.nebula-evidence-card strong {
  font-size: 20px;
}

.nebula-evidence-card small {
  grid-column: 1 / -1;
  color: #8193b4;
  font-size: 10px;
}

.nebula-evidence-card .progress {
  grid-column: 1 / -1;
}

.nebula-domain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.nebula-domain-grid > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 10px;
  align-items: center;
}

.nebula-domain-grid span {
  color: #b7c4db;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.nebula-domain-grid strong {
  color: #e7efff;
  font-size: 11px;
}

.nebula-domain-grid .progress {
  grid-column: 1 / -1;
}

.nebula-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(133, 164, 216, 0.17);
}

.nebula-card-actions .nebula-overflow {
  margin-left: auto;
}

.nebula-mini-history {
  display: grid;
  gap: 8px;
}

.nebula-mini-history > span {
  color: #8fa2c3;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.nebula-activity-card {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 20px;
}

.nebula-activity-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nebula-activity-list li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(132, 162, 212, 0.14);
}

.nebula-activity-list li:last-child {
  border-bottom: 0;
}

.nebula-activity-list i {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: #7391be;
  box-shadow: 0 0 0 4px rgba(115, 145, 190, 0.1);
}

.nebula-activity-list li[data-status="success"] i {
  background: #45d7a2;
  box-shadow: 0 0 0 4px rgba(69, 215, 162, 0.1), 0 0 12px rgba(69, 215, 162, 0.35);
}

.nebula-activity-list li[data-status="attention"] i {
  background: #f3ad55;
}

.nebula-activity-list li > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.nebula-activity-list strong,
.nebula-activity-list span {
  overflow-wrap: anywhere;
}

.nebula-activity-list strong {
  color: #eaf1ff;
  font-size: 12px;
}

.nebula-activity-list span,
.nebula-activity-list time {
  color: #8294b5;
  font-size: 10px;
}

.nebula-activity-list time {
  white-space: nowrap;
}

/* Answer review */

.nebula-review-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.nebula-review-metrics article {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(137, 169, 220, 0.2);
  border-radius: 13px;
  background: rgba(9, 22, 46, 0.82);
}

.nebula-review-metrics span {
  color: #8fa2c3;
  font-size: 11px;
}

.nebula-review-metrics strong {
  color: #f3f7ff;
  font-size: 25px;
}

.nebula-review-toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 12px;
}

.nebula-filter-tabs {
  display: flex;
  flex: 1 1 auto;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.nebula-filter-tabs button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #9fb0cc;
  border: 1px solid transparent;
  border-radius: 9px;
  background: rgba(14, 30, 59, 0.6);
}

.nebula-filter-tabs button span {
  min-width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  color: #b9c7de;
  background: rgba(133, 157, 199, 0.18);
  font-size: 9px;
}

.nebula-filter-tabs button.active {
  color: #ffffff;
  border-color: rgba(121, 100, 238, 0.58);
  background: rgba(96, 70, 195, 0.38);
}

.nebula-review-toolbar > label,
.nebula-search-field {
  min-width: 190px;
  display: grid;
  gap: 5px;
  color: #8496b7;
  font-size: 10px;
  font-weight: 700;
}

.nebula-review-toolbar select,
.nebula-review-toolbar input,
.nebula-search-field input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
}

.nebula-review-search {
  flex: 0 1 240px;
}

.nebula-review-workspace {
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(270px, 35%) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.nebula-answer-list {
  min-width: 0;
  display: block;
  max-height: 680px;
  overflow-y: auto;
  border-right: 1px solid rgba(136, 167, 218, 0.2);
  scrollbar-width: thin;
}

.nebula-answer-list > button {
  width: 100%;
  min-height: 82px;
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  color: #dce6f7;
  text-align: left;
  border-bottom: 1px solid rgba(129, 159, 207, 0.14);
  background: rgba(7, 18, 39, 0.3);
}

.nebula-answer-list > button:hover,
.nebula-answer-list > button.active {
  background: linear-gradient(90deg, rgba(50, 126, 193, 0.18), rgba(100, 72, 202, 0.18));
}

.nebula-answer-list > button.active {
  box-shadow: inset 3px 0 #5ecbec;
}

.nebula-answer-list-title {
  color: #f0f5ff;
  font-size: 13px;
  font-weight: 750;
}

.nebula-answer-list small {
  color: #8294b5;
  font-size: 10px;
}

.nebula-answer-list > button > span:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.nebula-answer-list .tag {
  min-height: 20px;
  margin: 0;
  padding: 2px 6px;
  font-size: 9px;
  font-style: normal;
}

.nebula-answer-list .focus-control-indicator::after {
  z-index: 80;
  right: auto;
  left: 14px;
  max-width: min(280px, calc(100vw - 48px));
  text-align: left;
  white-space: normal;
  transition: opacity 120ms ease 120ms, transform 120ms ease 120ms;
}

.nebula-answer-list footer {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  color: #8294b4;
  border-top: 1px solid rgba(132, 163, 211, 0.18);
  background: rgba(7, 18, 39, 0.98);
  font-size: 10px;
}

.nebula-answer-list footer > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.nebula-answer-list footer .btn {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 10px;
}

.nebula-answer-detail {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0;
  padding: 20px;
}

.nebula-answer-detail > header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
}

.nebula-answer-detail > header h2 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.3;
}

.nebula-answer-detail > section {
  padding: 16px 0;
  border-top: 1px solid rgba(133, 164, 213, 0.17);
}

.nebula-answer-detail > section h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.nebula-answer-detail > section p {
  margin: 0;
  color: #bdc9dc;
  line-height: 1.65;
}

.nebula-answer-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
}

.nebula-gap-list,
.nebula-antifraud-summary ul {
  margin: 0;
  padding-left: 20px;
  color: #c3cee0;
  line-height: 1.6;
}

.nebula-gap-list li::marker {
  color: #f2ad55;
}

.nebula-antifraud-summary {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(87, 204, 202, 0.22);
  border-radius: 11px;
  background: rgba(27, 100, 104, 0.12);
}

.nebula-antifraud-summary > div {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nebula-antifraud-summary p {
  color: #8299b9 !important;
  font-size: 10px;
}

/* IDP */

.nebula-idp-target {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.8fr) minmax(230px, 0.8fr);
  gap: 22px;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 16%, rgba(130, 91, 238, 0.22), transparent 14rem),
    linear-gradient(130deg, rgba(27, 41, 88, 0.92), rgba(8, 22, 45, 0.94));
}

.nebula-idp-target > div {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.nebula-idp-target > div + div {
  padding-left: 20px;
  border-left: 1px solid rgba(137, 167, 217, 0.2);
}

.nebula-idp-target p,
.nebula-idp-target small,
.nebula-idp-target > div > span {
  margin: 0;
  color: #93a4c1;
  font-size: 11px;
}

.nebula-idp-grades {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nebula-idp-grades strong {
  color: #ffffff;
  font-size: clamp(21px, 2.1vw, 30px);
}

.nebula-idp-grades span {
  color: #a58afa;
  font-size: 24px;
}

.nebula-idp-target > div:nth-child(2) > strong {
  color: #a584ff;
  font-size: 31px;
}

.nebula-idp-picker {
  display: grid;
  grid-template-columns: minmax(240px, 31%) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.nebula-idp-picker > .card {
  display: grid;
  gap: 12px;
}

.nebula-idp-picker aside .section-list {
  max-height: 520px;
}

.role-mentee .section-button {
  color: #c6d2e6;
  border-color: rgba(131, 162, 211, 0.2);
  border-radius: 10px;
  background: rgba(7, 19, 40, 0.58);
}

.role-mentee .section-button:hover,
.role-mentee .section-button.active {
  color: #ffffff;
  border-color: rgba(102, 190, 235, 0.42);
  background: linear-gradient(90deg, rgba(49, 123, 191, 0.18), rgba(102, 74, 208, 0.17));
}

.nebula-idp-recommendations {
  max-height: 520px;
  padding-right: 4px;
}

.nebula-idp-recommendation {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(132, 162, 213, 0.18);
  border-radius: 11px;
  background: rgba(7, 19, 40, 0.48);
}

.nebula-idp-recommendation.selected {
  border-color: rgba(77, 209, 170, 0.34);
  background: rgba(20, 76, 70, 0.16);
}

.nebula-idp-recommendation > div {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 5px;
}

.nebula-idp-recommendation strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.nebula-idp-recommendation small,
.nebula-idp-recommendation p,
.nebula-idp-recommendation ul {
  color: #8fa1c0;
  font-size: 10px;
}

.nebula-idp-recommendation p,
.nebula-idp-recommendation ul {
  margin: 0;
  line-height: 1.5;
}

.nebula-idp-board-card {
  display: grid;
  gap: 14px;
}

.nebula-idp-board-card .nebula-card-heading > div:last-child {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #99a9c6;
  font-size: 11px;
}

.nebula-idp-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.nebula-idp-column {
  position: relative;
  min-width: 0;
  min-height: 220px;
  padding: 10px;
  border: 1px solid rgba(130, 161, 211, 0.18);
  border-radius: 13px;
  background: rgba(5, 17, 36, 0.5);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.nebula-idp-column.is-drag-ready {
  border-style: dashed;
  border-color: rgba(120, 151, 207, 0.42);
  background: rgba(12, 27, 53, 0.7);
}

.nebula-idp-column.is-drop-target {
  border-style: solid;
  border-color: #61d5f2;
  background: linear-gradient(145deg, rgba(27, 91, 126, 0.4), rgba(40, 34, 99, 0.48));
  box-shadow: inset 0 0 0 2px rgba(97, 213, 242, 0.16), 0 0 28px rgba(81, 190, 231, 0.2);
  transform: translateY(-2px);
}

.nebula-idp-column.is-drop-target::after {
  content: "Переместить сюда";
  position: absolute;
  z-index: 5;
  right: 12px;
  bottom: 10px;
  padding: 5px 8px;
  color: #dff9ff;
  border: 1px solid rgba(113, 224, 245, 0.45);
  border-radius: 999px;
  background: rgba(8, 37, 63, 0.92);
  box-shadow: 0 0 18px rgba(89, 205, 239, 0.22);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.nebula-idp-column:has(.nebula-idp-task:active) {
  border-color: rgba(129, 102, 238, 0.5);
}

.nebula-idp-column > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 3px 10px;
}

.nebula-idp-column > header h3 {
  margin: 0;
  font-size: 12px;
}

.nebula-idp-column > header span {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #aebbd0;
  border-radius: 999px;
  background: rgba(124, 148, 191, 0.17);
  font-size: 9px;
}

.nebula-idp-column > ul {
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nebula-idp-column li.empty {
  min-height: 130px;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-size: 10px;
}

.nebula-idp-task {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(136, 166, 215, 0.22);
  border-radius: 10px;
  background: rgba(13, 29, 55, 0.9);
  transition: opacity 140ms ease, transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.nebula-idp-task.is-dragging {
  opacity: 0.34;
  border-style: dashed;
  border-color: rgba(123, 211, 240, 0.75);
  box-shadow: inset 0 0 0 1px rgba(123, 211, 240, 0.16);
  transform: scale(0.985);
  transition: none;
}

.nebula-idp-task[data-status="in_progress"] {
  border-color: rgba(243, 173, 85, 0.35);
  background: rgba(91, 61, 25, 0.2);
}

.nebula-idp-task[data-status="mastered"] {
  border-color: rgba(69, 215, 162, 0.32);
  background: rgba(27, 94, 76, 0.2);
}

.nebula-idp-task > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: start;
}

.nebula-drag-handle {
  padding: 2px;
  color: #7586a6;
  cursor: grab;
  user-select: none;
}

.nebula-drag-handle:active,
.nebula-drag-handle.is-dragging-handle {
  color: #74daf3;
  cursor: grabbing;
}

.nebula-idp-task strong {
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.45;
}

.nebula-idp-task > small,
.nebula-idp-task > p {
  margin: 0;
  color: #8294b3;
  font-size: 9px;
  line-height: 1.4;
}

.nebula-idp-task label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  color: #899ab7;
  font-size: 9px;
}

.nebula-idp-task select {
  min-width: 0;
  width: 100%;
  min-height: 31px;
  padding: 5px 7px;
  font-size: 10px;
}

.nebula-idp-task .link-button {
  font-size: 9px;
}

/* History */

.nebula-history-card {
  display: grid;
  gap: 22px;
}

.role-mentee .grade-timeline {
  position: relative;
  min-height: 126px;
  padding: 18px 8px;
}

.role-mentee .grade-timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 40px;
  right: 40px;
  height: 1px;
  background: linear-gradient(90deg, #41c7ed, #8363ed, rgba(133, 158, 201, 0.2));
}

.role-mentee .timeline-step {
  z-index: 1;
}

.role-mentee .grade-node {
  min-width: 140px;
  border-color: rgba(135, 167, 218, 0.28);
  border-radius: 13px;
  color: #edf4ff;
  background: rgba(8, 22, 45, 0.93);
}

.role-mentee .grade-node.confirmed {
  border-color: rgba(69, 204, 226, 0.4);
  background: linear-gradient(145deg, rgba(26, 79, 115, 0.46), rgba(10, 28, 54, 0.93));
  box-shadow: 0 0 20px rgba(60, 182, 232, 0.11);
}

.role-mentee .grade-node span {
  color: #8ea1c0;
}

.role-mentee .timeline-arrow {
  color: #7b93bd;
}

.nebula-history-list article {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid rgba(135, 165, 213, 0.15);
}

.nebula-history-list article:last-child {
  border-bottom: 0;
}

.nebula-history-list article > i {
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: #51c7ed;
  box-shadow: 0 0 12px rgba(81, 199, 237, 0.46);
}

.nebula-history-list article > div {
  display: grid;
  gap: 3px;
}

.nebula-history-list article > div:last-child {
  justify-items: end;
  color: #91a2bf;
  font-size: 10px;
}

.nebula-history-list span,
.nebula-history-list time,
.nebula-history-list small {
  color: #8ea0bd;
  font-size: 10px;
}

.nebula-history-empty {
  min-height: 360px;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.nebula-history-empty > i {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  color: #a587ff;
  border: 1px solid rgba(165, 135, 255, 0.42);
  border-radius: 50%;
  background: rgba(100, 62, 181, 0.2);
  box-shadow: 0 0 30px rgba(126, 80, 220, 0.25);
  font-size: 28px;
  font-style: normal;
}

/* Profile */

.nebula-profile-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(430px, 1.2fr);
  gap: 16px;
  align-items: start;
}

.nebula-profile-form,
.nebula-profile-skillsets {
  display: grid;
  gap: 16px;
}

.nebula-connected-skillsets,
.nebula-skillset-catalog {
  display: grid;
  gap: 8px;
}

.nebula-connected-skillsets article,
.nebula-skillset-catalog article {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  gap: 11px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(135, 167, 219, 0.2);
  border-radius: 11px;
  background: rgba(8, 21, 43, 0.55);
}

.nebula-skillset-catalog article {
  grid-template-columns: 36px minmax(0, 1fr) auto;
}

.nebula-skillset-code {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #dbe9ff;
  border: 1px solid rgba(98, 185, 237, 0.3);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(42, 136, 207, 0.5), rgba(104, 70, 211, 0.5));
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.nebula-skillset-catalog .nebula-skillset-code {
  width: 36px;
  height: 36px;
}

.nebula-connected-skillsets h3,
.nebula-skillset-catalog h3 {
  margin: 0 0 3px;
  font-size: 13px;
}

.nebula-connected-skillsets p,
.nebula-skillset-catalog p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #8294b3;
  font-size: 10px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nebula-profile-skillsets .nebula-section-heading {
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid rgba(135, 165, 212, 0.15);
}

.nebula-skillset-catalog {
  max-height: 470px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}

/* Payment and loyalty */

.role-mentee .catalog-top {
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: start;
}

.role-mentee .catalog-top > .tariff-card {
  grid-column: auto;
}

.role-mentee .tariff-details {
  gap: 16px;
}

.role-mentee .tariff-details > div {
  padding: 13px;
  border: 1px solid rgba(133, 164, 214, 0.18);
  border-radius: 11px;
  background: rgba(6, 18, 39, 0.45);
}

.role-mentee .tariff-details li,
.role-mentee .loyalty-description {
  color: #a8b6cf;
}

.role-mentee .loyalty-description {
  border-top-color: rgba(134, 165, 216, 0.18);
}

.role-mentee .loyalty-orbit {
  grid-template-columns: repeat(11, minmax(82px, 1fr));
  gap: 8px;
  padding: 13px 7px 17px;
}

.role-mentee .loyalty-orbit li {
  min-height: 98px;
  color: #7f90af;
  border-color: rgba(133, 163, 211, 0.2);
  border-radius: 12px;
  background: rgba(7, 19, 40, 0.62);
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.role-mentee .loyalty-orbit li.is-reached {
  color: #addaf1;
  border-color: rgba(65, 197, 236, 0.3);
  background: rgba(29, 83, 119, 0.22);
}

.role-mentee .loyalty-orbit li.is-current {
  z-index: 2;
  color: #ffffff;
  border-color: rgba(154, 116, 255, 0.86);
  background: linear-gradient(145deg, rgba(77, 60, 169, 0.54), rgba(22, 42, 84, 0.76));
  box-shadow: 0 0 0 1px rgba(154, 116, 255, 0.22), 0 0 26px rgba(127, 86, 236, 0.32);
}

.role-mentee .loyalty-orbit li.is-current .loyalty-level-visual {
  width: 34px;
  height: 34px;
}

.role-mentee .loyalty-orbit .loyalty-level-name > small,
.role-mentee .loyalty-orbit .loyalty-level-benefit {
  color: #8293b0;
}

.role-mentee .loyalty-orbit li.is-current .loyalty-level-name > small,
.role-mentee .loyalty-orbit li.is-current .loyalty-level-benefit {
  color: #d0c0ff;
}

.role-mentee .card.loyalty-card {
  border-color: rgba(133, 104, 237, 0.42);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 5%, rgba(62, 210, 244, 0.18), transparent 10rem),
    radial-gradient(circle at 8% 92%, rgba(128, 78, 239, 0.28), transparent 15rem),
    linear-gradient(150deg, #111f43, #080f27);
}

.role-mentee .nebula-current-loyalty {
  padding: 22px;
  box-shadow: 0 22px 55px rgba(0, 4, 18, 0.38), 0 0 0 1px rgba(122, 93, 240, 0.12);
}

.role-mentee .nebula-current-loyalty .loyalty-card-head h2 {
  color: #ffffff;
  font-size: 25px;
}

.role-mentee .loyalty-card-head > .loyalty-level-visual {
  width: 64px;
  height: 64px;
}

.role-mentee .loyalty-card-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.role-mentee .loyalty-card-metrics > span {
  min-height: 83px;
  align-content: center;
  border-color: rgba(157, 173, 226, 0.18);
  border-radius: 12px;
}

.role-mentee .loyalty-card-metrics strong {
  color: #75f1bd;
  font-size: 24px;
}

.role-mentee .loyalty-card-metrics small,
.role-mentee .loyalty-card-note,
.role-mentee .loyalty-referral-link {
  color: #98a7c5;
}

.role-mentee .access-card {
  background: linear-gradient(145deg, rgba(14, 32, 63, 0.94), rgba(7, 20, 42, 0.94));
}

/* Shared assessment system */

.role-mentee .content.assessment-page {
  background:
    linear-gradient(135deg, rgba(3, 8, 21, 0.94), rgba(5, 15, 33, 0.86) 55%, rgba(8, 8, 28, 0.94)),
    url("./assets/visuals/gradespace-galaxy.webp") center / cover fixed;
}

.role-mentee .assessment-mode-row,
.role-mentee .dialogue-top-controls .assessment-mode-row {
  display: flex;
  flex: 1 1 100%;
  align-items: end;
  gap: 12px;
  margin: 0;
}

.role-mentee .assessment-mode-label {
  color: #8396b7;
  font-size: 10px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.role-mentee .segmented {
  border: 1px solid rgba(130, 160, 209, 0.2);
  background: rgba(6, 17, 36, 0.78);
}

.role-mentee .segmented button {
  color: #8fa1c0;
}

.role-mentee .segmented button.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(89, 77, 205, 0.8), rgba(115, 75, 213, 0.78));
  box-shadow: 0 3px 12px rgba(67, 51, 171, 0.3);
}

.role-mentee .assessment-sound-warning,
.nebula-assessment-integrity {
  min-height: 37px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 8px 10px;
  color: #9fb0cd;
  border: 1px solid rgba(132, 162, 211, 0.2);
  border-radius: 9px;
  background: rgba(7, 18, 38, 0.7);
  font-size: 10px;
  font-weight: 700;
}

.nebula-assessment-integrity i {
  color: #58dfaa;
  font-style: normal;
}

.role-mentee .assessment-sound-warning {
  color: #c0b0ec;
}

.role-mentee .assessment-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
}

.role-mentee .assessment-question-card,
.role-mentee .assessment-layout > aside,
.role-mentee .dialogue-shell {
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(12, 27, 52, 0.96), rgba(6, 18, 38, 0.95));
}

.role-mentee .assessment-question-card {
  gap: 14px;
}

.role-mentee .question-title {
  color: #f5f8ff;
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.28;
}

.role-mentee .question-context {
  color: #b4c0d4;
  font-size: 14px;
  line-height: 1.6;
}

.role-mentee .assessment-question-card #answerText,
.role-mentee .dialogue-compose textarea {
  color: #eaf1ff;
  border-color: rgba(138, 168, 217, 0.34);
  background: rgba(5, 15, 32, 0.72);
  line-height: 1.6;
}

.role-mentee .assessment-question-card > .button-row {
  padding-top: 10px;
  border-top: 1px solid rgba(133, 162, 211, 0.15);
}

.role-mentee .assessment-layout > aside .section-list {
  max-height: 100%;
}

.role-mentee .checking-overlay {
  border-radius: 16px;
  color: #ffffff;
  background: rgba(4, 12, 28, 0.88);
  backdrop-filter: blur(8px);
}

.role-mentee .checking-overlay span {
  color: #9eacc5;
}

.role-mentee .loader {
  border-color: rgba(121, 155, 208, 0.25);
  border-top-color: #9570ff;
  box-shadow: 0 0 18px rgba(125, 88, 238, 0.24);
}

.role-mentee .dictation-hint {
  color: #ffd18a;
  border: 1px solid rgba(242, 175, 80, 0.25);
  background: rgba(104, 66, 20, 0.25);
}

.role-mentee .dialogue-shell {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
}

.role-mentee .dialogue-head {
  grid-row: 1;
}

.role-mentee .dialogue-progress-row {
  grid-row: 2;
}

.role-mentee .dialogue-feed {
  grid-row: 3;
  min-height: 180px;
  padding: 16px;
  border-color: rgba(132, 162, 211, 0.2);
  border-radius: 13px;
  background:
    radial-gradient(circle at 76% 10%, rgba(109, 75, 212, 0.1), transparent 20rem),
    rgba(4, 14, 31, 0.58);
  scrollbar-width: thin;
}

.role-mentee .dialogue-controls {
  grid-row: 4;
  align-items: end;
  padding-top: 12px;
  border-top: 1px solid rgba(132, 161, 209, 0.16);
}

.role-mentee .dialogue-complete {
  grid-row: 3 / 5;
}

.role-mentee .dialogue-message {
  color: #dfe7f6;
  border-color: rgba(133, 163, 211, 0.22);
  border-radius: 13px 13px 13px 4px;
  background: rgba(18, 34, 64, 0.92);
}

.role-mentee .dialogue-message.user {
  border-color: rgba(75, 164, 228, 0.3);
  border-radius: 13px 13px 4px 13px;
  background: linear-gradient(135deg, rgba(28, 72, 121, 0.8), rgba(27, 48, 91, 0.88));
}

.role-mentee .dialogue-message span {
  color: #8fa2c1;
}

.role-mentee .dialogue-speech-button {
  color: #8ab7ff;
}

.role-mentee .dialogue-recovery {
  color: #ffd38d;
  border-color: rgba(239, 175, 80, 0.3);
  background: rgba(104, 67, 20, 0.26);
}

.role-mentee .dialogue-recovery span {
  color: #d0b789;
}

.role-mentee .dialogue-record-status {
  color: #ff9eaa;
}

.shell.role-mentee.dialogue-recording-active [data-dialogue-record-button].dictating,
.shell.role-mentee.dialogue-recording-active [data-dialogue-record-button].dictating:hover {
  position: relative;
  z-index: 6;
  color: #ffffff;
  border-color: rgba(255, 151, 164, 0.86);
  background: linear-gradient(135deg, #bd4058, #8c3bd4);
  box-shadow: 0 0 0 2px rgba(255, 137, 153, 0.2), 0 0 28px rgba(197, 66, 118, 0.5);
  filter: none;
  opacity: 1;
}

.role-mentee.dialogue-recording-active .dialogue-compose textarea,
.role-mentee.dialogue-recording-active .dialogue-compose textarea:focus {
  border-color: #a273ff;
  box-shadow: 0 0 0 3px rgba(139, 92, 242, 0.18), 0 0 26px rgba(139, 92, 242, 0.13);
}

.nebula-antifraud-modal {
  max-width: 470px;
  text-align: center;
}

.nebula-antifraud-modal .nebula-modal-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  color: #6de4b7;
  border: 1px solid rgba(80, 224, 173, 0.35);
  border-radius: 50%;
  background: rgba(27, 116, 86, 0.2);
  box-shadow: 0 0 25px rgba(64, 210, 158, 0.2);
  font-size: 25px;
}

.role-mentee .modal-card {
  color: #edf4ff;
  border-color: rgba(140, 170, 220, 0.3);
  background: linear-gradient(145deg, #102143, #08152e);
  box-shadow: 0 28px 80px rgba(0, 3, 16, 0.62);
}

.role-mentee .modal-card h2,
.role-mentee .modal-card h3 {
  color: #ffffff;
}

@media (min-width: 981px) {
  .shell.role-mentee {
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: 100vh;
    width: auto;
    zoom: 1;
  }

  .role-mentee .sidebar,
  .role-mentee .content.assessment-page,
  .role-mentee .content.dialogue-page {
    height: 100vh;
  }

  .role-mentee .content.assessment-page,
  .role-mentee .content.dialogue-page {
    padding-block: 14px;
  }
}

@media (max-width: 1280px) {
  .nebula-progress-layout,
  .role-mentee .catalog-top {
    grid-template-columns: 1fr;
  }

  .nebula-activity-card {
    position: static;
  }

  .nebula-idp-target {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 0.8fr);
  }

  .nebula-idp-target > div:last-child {
    grid-column: 1 / -1;
    padding: 14px 0 0;
    border-top: 1px solid rgba(137, 167, 217, 0.2);
    border-left: 0;
  }

  .nebula-idp-recommendation {
    grid-template-columns: minmax(160px, 0.8fr) minmax(190px, 1fr);
  }

  .nebula-idp-recommendation > .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .nebula-profile-layout {
    grid-template-columns: minmax(280px, 0.72fr) minmax(390px, 1.28fr);
  }
}

@media (max-width: 980px) {
  .shell.role-mentee {
    display: block;
    min-height: 100vh;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .role-mentee .content::before {
    inset: 0;
  }

  .role-mentee .content {
    min-height: calc(100vh - 76px);
    padding: 18px 18px 34px;
  }

  .role-mentee .sidebar {
    position: fixed;
    z-index: 50;
    inset: auto 0 0;
    width: 100%;
    height: calc(70px + env(safe-area-inset-bottom));
    display: block;
    padding: 5px 8px env(safe-area-inset-bottom);
    overflow: visible;
    border-top: 1px solid rgba(135, 166, 218, 0.28);
    border-right: 0;
    background: rgba(5, 14, 31, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 -12px 35px rgba(0, 3, 16, 0.36);
  }

  .role-mentee .sidebar > .brand-row,
  .role-mentee .sidebar > .mentee-account-chip,
  .role-mentee .sidebar > .sidebar-spacer,
  .role-mentee .sidebar > .sidebar-bottom,
  .role-mentee .nav-full {
    display: none;
  }

  .role-mentee .nav {
    display: block;
    height: auto;
    overflow: visible;
  }

  .role-mentee .nav-compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 2px;
  }

  .role-mentee .nav-primary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
  }

  .role-mentee .nav button,
  .role-mentee .nav-more summary {
    min-width: 0;
    min-height: 58px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 2px;
    padding: 4px 2px;
    border-radius: 9px;
    text-align: center;
  }

  .role-mentee .nav button.active::before {
    inset: auto 14px 0;
    width: auto;
    height: 2px;
  }

  .role-mentee .mentee-nav-symbol {
    width: auto;
    font-size: 18px;
  }

  .role-mentee .mentee-nav-label {
    display: none;
  }

  .role-mentee .mentee-nav-label-compact,
  .role-mentee .nav-more summary > span:last-child {
    display: inline;
    font-size: 9px;
  }

  .role-mentee .nav-more {
    position: static;
    display: block;
  }

  .role-mentee .nav-more summary::after {
    display: none;
  }

  .role-mentee .nav-more-list {
    position: absolute;
    right: 8px;
    bottom: calc(64px + env(safe-area-inset-bottom));
    width: min(310px, calc(100vw - 16px));
    max-height: min(70vh, 560px);
    display: grid;
    gap: 3px;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid rgba(138, 168, 218, 0.3);
    border-radius: 14px;
    background: rgba(7, 18, 39, 0.98);
    box-shadow: 0 18px 55px rgba(0, 3, 17, 0.6);
  }

  .role-mentee .nav-more:not([open]) .nav-more-list {
    display: none;
  }

  .role-mentee .nav-more-list > button,
  .role-mentee .mentee-mobile-utilities > button {
    min-height: 44px;
    display: flex;
    justify-items: initial;
    justify-content: flex-start;
    gap: 8px;
    padding: 9px 11px;
    text-align: left;
  }

  .role-mentee .nav-more-list .mentee-nav-label,
  .role-mentee .mentee-mobile-utilities {
    display: block;
  }

  .role-mentee .nav-more-list .mentee-nav-label-compact {
    display: none;
  }

  .role-mentee .mentee-mobile-utilities {
    padding-top: 5px;
    border-top: 1px solid rgba(133, 163, 211, 0.18);
  }

  .role-mentee .mentee-mobile-utilities > button {
    width: 100%;
    color: #94a5c2;
    background: transparent;
  }

  .nebula-evidence-grid,
  .nebula-review-metrics,
  .nebula-idp-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nebula-review-toolbar {
    flex-wrap: wrap;
  }

  .nebula-filter-tabs {
    flex-basis: 100%;
  }

  .nebula-review-toolbar > label {
    flex: 1 1 220px;
  }

  .nebula-review-workspace {
    grid-template-columns: minmax(240px, 38%) minmax(0, 1fr);
  }

  .nebula-idp-picker,
  .nebula-profile-layout,
  .role-mentee .assessment-layout {
    grid-template-columns: 1fr;
  }

  .role-mentee .assessment-layout > aside {
    max-height: 360px;
  }

  .role-mentee .content.assessment-page,
  .role-mentee .content.dialogue-page {
    height: auto;
    min-height: calc(100vh - 76px);
    overflow: visible;
  }

  .role-mentee .dialogue-shell {
    min-height: min(760px, calc(100vh - 160px));
  }
}

@media (max-width: 700px) {
  .role-mentee .content {
    gap: 12px;
    padding: 14px 12px 28px;
  }

  .role-mentee .topbar {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding-bottom: 10px;
  }

  .role-mentee .topbar h1 {
    font-size: 25px;
  }

  .role-mentee .topbar p {
    font-size: 11px;
  }

  .role-mentee .card {
    padding: 14px;
    border-radius: 14px;
  }

  .nebula-skillset-switcher,
  .role-mentee .skillset-switcher.compact {
    position: sticky;
    z-index: 16;
    top: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
    padding: 8px;
  }

  .nebula-skillset-switcher .nebula-context-label {
    display: none;
  }

  .nebula-skillset-switcher .button-row {
    order: 1;
  }

  .nebula-skillset-switcher .btn {
    min-height: 38px;
    max-width: 220px;
  }

  .nebula-slot-count {
    order: 2;
    align-self: center;
    font-size: 9px;
  }

  .nebula-next-action {
    display: grid;
    gap: 14px;
  }

  .nebula-next-action .btn {
    width: 100%;
  }

  .nebula-card-heading,
  .nebula-section-heading {
    gap: 10px;
  }

  .nebula-grade-summary {
    min-width: 125px;
  }

  .nebula-grade-summary strong {
    font-size: 19px;
  }

  .nebula-evidence-grid,
  .nebula-review-metrics,
  .nebula-domain-grid,
  .nebula-idp-target,
  .nebula-idp-board {
    grid-template-columns: 1fr;
  }

  .nebula-idp-target > div + div {
    grid-column: auto;
    padding: 13px 0 0;
    border-top: 1px solid rgba(137, 167, 217, 0.2);
    border-left: 0;
  }

  .nebula-review-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nebula-review-toolbar {
    display: grid;
  }

  .nebula-review-toolbar > label {
    min-width: 0;
    width: 100%;
  }

  .nebula-review-workspace {
    display: block;
    min-height: 0;
    overflow: visible;
  }

  .nebula-answer-list {
    max-height: 430px;
    border-right: 0;
    border-bottom: 1px solid rgba(136, 167, 218, 0.2);
  }

  .nebula-answer-detail {
    padding: 16px;
  }

  .nebula-answer-detail > header {
    display: grid;
  }

  .nebula-idp-recommendation {
    grid-template-columns: 1fr;
  }

  .nebula-idp-recommendation > .btn {
    grid-column: auto;
    width: 100%;
  }

  .nebula-idp-board-card .nebula-card-heading {
    display: grid;
  }

  .nebula-idp-board-card .nebula-card-heading > div:last-child {
    justify-content: space-between;
  }

  .nebula-connected-skillsets article,
  .nebula-skillset-catalog article {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }

  .nebula-connected-skillsets .nebula-skillset-code {
    width: 36px;
    height: 36px;
  }

  .nebula-connected-skillsets article > .btn {
    display: none;
  }

  .nebula-skillset-catalog article .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .role-mentee .loyalty-card-metrics,
  .role-mentee .card.loyalty-card .compact-form {
    grid-template-columns: 1fr;
  }

  .role-mentee .loyalty-orbit li.is-current {
    transform: none;
  }

  .role-mentee .assessment-mode-row,
  .role-mentee .dialogue-top-controls .assessment-mode-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .role-mentee .assessment-mode-control,
  .role-mentee .assessment-mode-row .assessment-mode-switcher,
  .role-mentee .assessment-mode-row .assessment-scope-switcher {
    width: 100%;
  }

  .role-mentee .assessment-question-card #answerText,
  .role-mentee .dialogue-compose textarea {
    min-height: 170px;
  }

  .role-mentee .dialogue-shell {
    min-height: 720px;
  }

  .role-mentee .dialogue-controls {
    position: sticky;
    z-index: 4;
    bottom: calc(70px + env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    padding: 10px;
    margin: 0 -10px -10px;
    border: 1px solid rgba(133, 163, 211, 0.2);
    border-radius: 12px;
    background: rgba(7, 18, 38, 0.96);
    backdrop-filter: blur(14px);
  }

  .role-mentee .dialogue-control-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-mentee .dialogue-control-actions .btn {
    min-width: 0;
    padding-inline: 8px;
    font-size: 11px;
  }

  .role-mentee .dialogue-message {
    max-width: 94%;
  }

  .nebula-history-card .nebula-card-heading {
    display: grid;
  }

  .nebula-history-list article {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .nebula-history-list article > div:last-child {
    grid-column: 2;
    justify-items: start;
  }
}

@media (max-width: 420px) {
  .role-mentee .nav-compact {
    grid-template-columns: minmax(0, 1fr) 64px;
  }

  .role-mentee .nav button,
  .role-mentee .nav-more summary {
    min-height: 56px;
  }

  .role-mentee .mentee-nav-symbol {
    font-size: 16px;
  }

  .role-mentee .mentee-nav-label-compact,
  .role-mentee .nav-more summary > span:last-child {
    font-size: 8px;
  }

  .nebula-review-metrics {
    gap: 7px;
  }

  .nebula-review-metrics article {
    padding: 11px;
  }

  .nebula-review-metrics strong {
    font-size: 21px;
  }

  .nebula-card-heading {
    display: grid;
  }

  .nebula-grade-summary {
    padding: 9px 0 0;
    border-top: 1px solid rgba(137, 168, 218, 0.22);
    border-left: 0;
  }

  .nebula-idp-board-card .nebula-card-heading > div:last-child {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .role-mentee *,
  .role-mentee *::before,
  .role-mentee *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
