@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --neon: #ccff00;
  --accent: #00ff88;
  --dark: #0a0a0a;
  --gray: #1a1a1a;
  --surface: #111111;
  --surface-strong: #151515;
  --surface-soft: #1f1f1f;
  --ink: #ffffff;
  --muted: #999999;
  --muted-strong: #cfcfcf;
  --line: #2a2a2a;
  --line-strong: #333333;
  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, 0.14);
  --success: #00ff88;
  --success-soft: rgba(0, 255, 136, 0.14);
  --neon-soft: rgba(204, 255, 0, 0.14);
  --accent-soft: rgba(0, 255, 136, 0.12);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  --glow: 0 0 34px rgba(204, 255, 0, 0.28);
  --radius: 20px;
  color-scheme: dark;
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-theme="light"] {
  --dark: #f4f5f0;
  --gray: #e8eadf;
  --surface: #ffffff;
  --surface-strong: #f7f8f2;
  --surface-soft: #eef1e7;
  --ink: #10130d;
  --muted: #66705d;
  --muted-strong: #343b2e;
  --line: #dfe4d6;
  --line-strong: #ccd5bd;
  --danger-soft: rgba(210, 45, 45, 0.11);
  --success-soft: rgba(0, 142, 76, 0.12);
  --neon-soft: rgba(204, 255, 0, 0.24);
  --accent-soft: rgba(0, 255, 136, 0.16);
  --shadow: 0 20px 60px rgba(40, 46, 32, 0.13);
  --glow: 0 0 0 3px rgba(204, 255, 0, 0.25);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 85% -10%, rgba(204, 255, 0, 0.18), transparent 34vw),
    radial-gradient(circle at 5% 20%, rgba(0, 255, 136, 0.1), transparent 32vw),
    var(--dark);
  color: var(--ink);
  overflow-x: hidden;
}

body[data-theme="light"] {
  background:
    radial-gradient(circle at 85% -10%, rgba(204, 255, 0, 0.35), transparent 34vw),
    radial-gradient(circle at 5% 20%, rgba(0, 255, 136, 0.16), transparent 32vw),
    var(--dark);
}

body[data-theme="light"]::before {
  background:
    linear-gradient(rgba(10, 10, 10, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.035) 1px, transparent 1px);
}

body[data-theme="light"] .login-panel,
body[data-theme="light"] .login-aside,
body[data-theme="light"] .manager-panel,
body[data-theme="light"] .question-card,
body[data-theme="light"] .summary-card {
  background: var(--surface);
}

body[data-theme="light"] .control-grid,
body[data-theme="light"] .kanban-column,
body[data-theme="light"] .detail-drawer {
  background: var(--surface);
}

body[data-theme="light"] .score-total {
  background: linear-gradient(135deg, rgba(204, 255, 0, 0.28), rgba(0, 255, 136, 0.13)), var(--surface);
  color: #10130d;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--neon);
  color: var(--dark);
  border-radius: 999px;
  font-weight: 800;
}

.skip-link:focus {
  top: 12px;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100dvh;
  position: relative;
}

.login-layout {
  width: min(720px, calc(100% - 32px));
  min-height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  justify-items: center;
  padding: 32px 0;
}

.login-panel,
.login-aside,
.manager-panel,
.question-card,
.summary-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.login-panel::before,
.manager-panel::before,
.question-card::before,
.summary-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--accent));
  opacity: 0.95;
}

.login-panel {
  width: min(100%, 680px);
  padding: clamp(28px, 5vw, 60px);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 58px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--ink);
  border-color: rgba(204, 255, 0, 0.3);
  background: rgba(204, 255, 0, 0.08);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.login-panel h1,
.topbar h1,
.question-card h2,
.summary-card h2 {
  font-family: "Unbounded", "Manrope", sans-serif;
}

.login-aside {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: rgba(17, 17, 17, 0.82);
  backdrop-filter: blur(12px);
}

.metric {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: var(--surface-strong);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.metric:hover {
  border-color: rgba(204, 255, 0, 0.55);
  box-shadow: var(--glow);
  transform: translateY(-3px);
}

.metric span {
  display: block;
  color: var(--neon);
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.metric p {
  margin: 8px 0 0;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin: 0 0 14px;
  padding: 6px 12px;
  border: 1px solid rgba(204, 255, 0, 0.32);
  border-radius: 999px;
  background: var(--neon-soft);
  color: var(--neon);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

.lead {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.login-form {
  display: grid;
  max-width: 440px;
  gap: 10px;
  margin-top: 34px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 10px 13px;
  background: #0f0f0f;
  color: var(--ink);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

body[data-theme="light"] input,
body[data-theme="light"] select,
body[data-theme="light"] textarea {
  background: var(--surface);
}

body[data-theme="light"] select {
  color-scheme: light;
}

select {
  color-scheme: dark;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #666666;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(204, 255, 0, 0.42);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 3px solid rgba(204, 255, 0, 0.28);
  outline-offset: 2px;
}

.form-error {
  min-height: 22px;
  margin: 0;
  color: var(--danger);
  font-size: 14px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-inline-actions,
.form-actions-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--neon);
  font-weight: 800;
  text-align: left;
}

.text-button:hover {
  color: var(--accent);
  transform: none;
}

.status-card {
  padding: 14px 16px;
  border: 1px solid rgba(204, 255, 0, 0.24);
  border-radius: 16px;
  background: var(--neon-soft);
  color: var(--muted-strong);
  line-height: 1.55;
}

.button {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--neon);
  color: #0a0a0a;
  box-shadow: 0 0 0 rgba(204, 255, 0, 0);
}

.button.primary:hover {
  box-shadow: 0 0 38px rgba(204, 255, 0, 0.45);
}

.button.secondary {
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent);
  border-color: rgba(0, 255, 136, 0.36);
}

.button.secondary:hover {
  border-color: var(--accent);
  box-shadow: 0 0 28px rgba(0, 255, 136, 0.22);
}

.button.ghost {
  background: transparent;
  color: var(--muted-strong);
  border-color: var(--line-strong);
}

.button.ghost:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.button.danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(255, 107, 107, 0.36);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
  box-shadow: none;
}

.workspace {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 42px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 0 18px;
}

.topbar h1 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 0.96;
  text-wrap: balance;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mentor-label {
  color: var(--muted);
  font-weight: 800;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(216px, 236px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.workspace-content {
  min-width: 0;
  display: grid;
  gap: 18px;
  align-content: start;
}

.sidebar {
  position: sticky;
  top: 18px;
  min-height: calc(100dvh - 56px);
  max-height: calc(100dvh - 56px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 13, 13, 0.94);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

body[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.sidebar-brand {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 12px;
  border-bottom: 1px solid var(--line);
}

.sidebar-brand > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border: 1px solid rgba(204, 255, 0, 0.36);
  border-radius: 9px;
  overflow: hidden;
  background: rgba(204, 255, 0, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.sidebar-brand strong {
  color: var(--neon);
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.sidebar-brand > div span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.nav-badge,
.panel-counter {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(204, 255, 0, 0.18);
  color: var(--neon);
  font-size: 11px;
  font-weight: 900;
}

body[data-theme="light"] .sidebar-brand strong,
body[data-theme="light"] .tab.active {
  color: #10130d;
}

body[data-theme="light"] .tab.active {
  background: rgba(204, 255, 0, 0.42);
}

.sidebar-footer {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.sidebar-version {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-strong);
}

.sidebar-profile span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0 16px;
}

.side-menu {
  display: grid;
  grid-auto-rows: min-content;
  align-content: start;
  align-items: start;
  min-height: 0;
  margin: 0;
  padding: 0 2px 0 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  overflow-y: auto;
  overflow-x: hidden;
}

.side-menu::-webkit-scrollbar {
  width: 6px;
}

.side-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(204, 255, 0, 0.2);
}

.menu-group-title {
  padding: 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.menu-group {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.menu-group-title {
  margin-top: 2px;
}

.tab {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 7px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.side-menu .tab {
  width: 100%;
  min-width: 0;
  gap: 10px;
  justify-content: flex-start;
  text-align: left;
}

.side-menu .sub-tab {
  min-height: 40px;
  padding-left: 20px;
  font-size: 14px;
  font-weight: 760;
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 20px;
  color: var(--muted-strong);
  line-height: 1;
}

.nav-icon svg,
.icon-tab svg,
.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke-width: 2;
}

.nav-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab .nav-badge {
  margin-left: auto;
}

.ghost-tab {
  width: 100%;
  justify-content: flex-start;
  background: transparent;
}

.sidebar-utility-row {
  display: grid;
  grid-template-columns: 40px 40px;
  gap: 8px;
}

.icon-tab {
  width: 40px;
  min-width: 40px;
  padding: 0;
  justify-content: center;
}

.theme-toggle {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: var(--muted-strong);
  font-weight: 900;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.theme-toggle:hover {
  border-color: rgba(0, 255, 136, 0.5);
  background: var(--surface-soft);
  color: var(--accent);
}

.tab:hover {
  border-color: transparent;
  color: var(--muted-strong);
  background: var(--surface-soft);
}

.tab.active {
  background: linear-gradient(90deg, rgba(204, 255, 0, 0.16), rgba(204, 255, 0, 0.04));
  color: var(--ink);
  border-color: rgba(204, 255, 0, 0.2);
  box-shadow: inset 2px 0 0 var(--neon);
}

.tab.active .nav-icon {
  color: var(--neon);
}

.view-section {
  display: grid;
  gap: 18px;
  align-content: start;
  animation: fadeIn 180ms ease;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 17, 17, 0.82);
}

.session-start {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.pool-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.pool-summary::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--accent));
  opacity: 0.9;
}

.pool-summary p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(204, 255, 0, 0.28);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--neon-soft);
  color: var(--neon);
  font-size: 13px;
  font-weight: 800;
}

.badge.blue,
.badge.green {
  border-color: rgba(0, 255, 136, 0.3);
  background: var(--accent-soft);
  color: var(--accent);
}

.question-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.question-preview {
  min-height: 164px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.question-preview::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--accent));
  opacity: 0;
  transition: opacity 220ms ease;
}

.question-preview:hover {
  border-color: rgba(204, 255, 0, 0.58);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}

.question-preview:hover::before {
  opacity: 1;
}

.question-preview h3 {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 17px;
  line-height: 1.35;
}

.question-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.session-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.session-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 800;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #262626;
}

.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--neon), var(--accent));
  box-shadow: 0 0 18px rgba(204, 255, 0, 0.4);
  transition: width 180ms ease;
}

.question-card {
  padding: clamp(18px, 4vw, 34px);
}

.question-card header {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.question-card h2 {
  max-width: 1000px;
  font-size: clamp(24px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-block {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
}

.info-block h3 {
  margin-bottom: 9px;
  color: var(--neon);
  font-size: 15px;
}

.info-block p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.65;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.score-button {
  min-height: 72px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 11px;
  background: var(--surface-strong);
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.score-button:hover {
  border-color: rgba(204, 255, 0, 0.58);
  transform: translateY(-2px);
}

.score-button strong {
  display: block;
  margin-bottom: 3px;
  color: var(--neon);
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 22px;
}

.score-button span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.score-button.active {
  border-color: var(--neon);
  background: var(--neon-soft);
  box-shadow: var(--glow);
}

.note-field {
  margin-top: 18px;
}

.card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.summary-card {
  padding: clamp(20px, 4vw, 36px);
}

.summary-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.score-total {
  display: grid;
  place-items: center;
  min-height: 190px;
  border: 1px solid rgba(204, 255, 0, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(204, 255, 0, 0.18), rgba(0, 255, 136, 0.08)), #101010;
  color: var(--ink);
  text-align: center;
  box-shadow: var(--glow);
}

.score-total strong {
  display: block;
  color: var(--neon);
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 48px;
}

.score-total span {
  color: var(--muted-strong);
}

.summary-list {
  display: grid;
  gap: 10px;
}

.summary-row,
.history-item,
.manager-item {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
}

.summary-row p,
.history-item p,
.manager-item p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.manager-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
}

.manager-panel {
  padding: 20px;
}

.manager-panel h2 {
  font-family: "Unbounded", "Manrope", sans-serif;
  letter-spacing: -0.02em;
}

.file-drop {
  margin-top: 14px;
  border: 1px dashed rgba(204, 255, 0, 0.42);
  border-radius: 18px;
  padding: 18px;
  background: var(--neon-soft);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.file-drop:hover {
  border-color: var(--neon);
  box-shadow: var(--glow);
}

.file-drop input {
  width: 1px;
  height: 1px;
  opacity: 0;
  position: absolute;
}

.file-drop span {
  display: block;
  color: var(--neon);
  font-weight: 800;
}

.import-result {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.import-result.error {
  color: var(--danger);
}

.import-result.success {
  color: var(--success);
}

.manager-list,
.history-list {
  display: grid;
  gap: 10px;
}

.manager-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.manager-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.empty-state {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}

.home-grid,
.sessions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 14px;
}

#mentee-roadmap-content.home-grid {
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  align-items: start;
}

#mentee-roadmap-content > .home-panel {
  min-width: 0;
}

.home-panel,
.sessions-panel,
.material-card,
.settings-card,
.review-card,
.session-card,
.dashboard-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.home-panel,
.sessions-panel,
.settings-card {
  padding: 20px;
}

.wide-home-panel {
  grid-column: 1 / -1;
}

.panel-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-title-row h2,
.settings-card h2 {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.dashboard-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.9fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
}

.dashboard-row strong {
  display: block;
  color: var(--ink);
}

.dashboard-row p {
  margin: 5px 0 0;
  color: var(--muted);
}

.dashboard-row span {
  max-width: 100%;
  justify-self: end;
  text-align: right;
  line-height: 1.24;
  overflow-wrap: anywhere;
  color: var(--neon);
  font-family: "Unbounded", "Manrope", sans-serif;
  font-weight: 700;
}

.review-list,
.session-list,
.materials-grid {
  display: grid;
  gap: 12px;
}

.activity-list {
  display: grid;
  gap: 12px;
}

.activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.activity-row.is-overdue {
  border-color: rgba(255, 107, 107, 0.42);
}

.activity-main {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.activity-radio {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(208, 255, 0, 0.34);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.activity-radio::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 999px;
  background: rgba(208, 255, 0, 0.18);
  transform: scale(0.2);
  transition: transform 180ms ease, background 180ms ease;
}

.activity-radio:hover,
.activity-radio:focus-visible {
  border-color: rgba(208, 255, 0, 0.78);
  background: rgba(208, 255, 0, 0.08);
  transform: translateY(-1px);
}

.activity-radio:hover::after,
.activity-radio:focus-visible::after {
  transform: scale(0.76);
  background: var(--neon);
}

.activity-radio.is-linked {
  display: inline-block;
  cursor: default;
}

.activity-radio.is-linked::after {
  transform: scale(0.76);
  background: rgba(208, 255, 0, 0.78);
}

.activity-copy strong {
  display: block;
  color: var(--ink);
}

.activity-copy p {
  margin: 5px 0 0;
  color: var(--muted);
}

.activity-side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.activity-meta {
  max-width: 180px;
  text-align: right;
  line-height: 1.24;
  overflow-wrap: anywhere;
  color: var(--neon);
  font-family: "Unbounded", "Manrope", sans-serif;
  font-weight: 700;
}

.activity-meta.is-overdue,
.deadline-status.is-overdue {
  color: var(--danger);
}

.activity-hint {
  max-width: 180px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.activity-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}

.activity-input {
  min-height: 48px;
}

.review-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.review-card:hover,
.session-card:hover,
.material-card:hover {
  border-color: rgba(204, 255, 0, 0.45);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.review-card.danger {
  border-color: rgba(255, 107, 107, 0.52);
}

.review-card h3,
.material-card h3 {
  margin-top: 12px;
  font-family: "Unbounded", "Manrope", sans-serif;
  letter-spacing: -0.02em;
}

.review-card p,
.review-card span,
.session-card p,
.session-card span,
.material-card p,
.settings-card p {
  color: var(--muted);
  line-height: 1.5;
}

.review-card p,
.session-card p,
.material-card p,
.settings-card p {
  margin: 8px 0 0;
}

.sessions-panel.wide {
  grid-column: 1 / -1;
}

.session-card {
  min-height: 96px;
  padding: 15px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.session-card.debt {
  border-color: rgba(0, 255, 136, 0.28);
}

.compact-session-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.materials-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.material-card {
  min-height: 190px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.material-card-highlight {
  justify-content: center;
  background: linear-gradient(135deg, rgba(204, 255, 0, 0.08), rgba(0, 255, 136, 0.06)), var(--surface);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.compact-resource-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.resource-card {
  position: relative;
}

.resource-card.is-disabled {
  border-style: dashed;
  opacity: 0.92;
}

.resource-card.is-disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}

.resource-card-compact {
  min-height: 168px;
}

.resource-card-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.resource-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--neon);
}

.resource-icon svg {
  width: 20px;
  height: 20px;
}

.resource-destination {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.resource-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.knowledge-base-card {
  max-width: 760px;
}

.resource-actions .button,
.resource-actions a.button {
  min-width: 0;
}

.knowledge-base-card .is-disabled-placeholder,
.knowledge-base-card a.is-disabled-placeholder {
  pointer-events: none;
  opacity: 0.58;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.inline-pool-manager {
  margin-top: 16px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 1280px) {
  .workspace {
    width: min(1260px, calc(100% - 24px));
  }

  .workspace-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 14px;
  }

  .topbar h1 {
    max-width: 11ch;
    font-size: clamp(28px, 3.6vw, 40px);
  }

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

  .home-grid,
  .sessions-layout {
    grid-template-columns: 1fr;
  }

  .activity-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1380px) {
  #mentee-roadmap-content.home-grid {
    grid-template-columns: 1fr;
  }

  #mentee-roadmap-content .roadmap-cta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.kpi-card {
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--accent));
}

.kpi-card span {
  display: block;
  color: var(--neon);
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.05;
}

.kpi-card strong {
  display: block;
  margin-top: 10px;
}

.kpi-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.subview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.subview-tab,
.track-pill,
.catalog-row,
.roadmap-card,
.answer-option {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
}

.subview-tab {
  padding: 10px 14px;
  font-weight: 700;
}

.subview-tab.is-active {
  border-color: rgba(204, 255, 0, 0.45);
  box-shadow: var(--glow);
}

.subview-tab.is-disabled {
  opacity: 0.6;
}

.track-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.track-pill {
  min-width: 180px;
  display: grid;
  gap: 4px;
  padding: 14px;
  text-align: left;
}

.track-pill strong {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 14px;
}

.track-pill span {
  color: var(--muted);
  font-size: 12px;
}

.track-pill.is-active {
  border-color: rgba(204, 255, 0, 0.5);
  box-shadow: var(--glow);
}

.track-pill.is-disabled {
  border-style: dashed;
  opacity: 0.72;
}

.roadmap-shell {
  display: grid;
  gap: 18px;
}

.roadmap-hero,
.roadmap-overview-grid,
.roadmap-visual-layout,
.assessment-grid,
.roadmap-stage,
.roadmap-ref-row,
.roadmap-role-switch {
  display: grid;
  gap: 12px;
}

.roadmap-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: stretch;
}

.roadmap-hero-note,
.roadmap-assessment-panel,
.roadmap-legend-panel,
.roadmap-focus-panel,
.roadmap-stage-node,
.assessment-card,
.roadmap-topic-card,
.roadmap-legend-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.roadmap-hero-note,
.roadmap-assessment-panel,
.roadmap-legend-panel,
.roadmap-focus-panel {
  padding: 18px;
}

.roadmap-hero-note {
  display: grid;
  align-content: start;
  gap: 8px;
  background: linear-gradient(135deg, rgba(204, 255, 0, 0.08), rgba(0, 255, 136, 0.07)), var(--surface);
}

.roadmap-hero-note strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.4;
}

.roadmap-hero-note span {
  color: var(--muted);
  line-height: 1.55;
}

.roadmap-role-switch {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.roadmap-role-pill {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.roadmap-role-pill:hover,
.roadmap-topic-card:hover {
  transform: translateY(-2px);
  border-color: rgba(204, 255, 0, 0.4);
}

.roadmap-role-pill strong,
.roadmap-stage-node strong,
.assessment-card strong,
.roadmap-topic-card strong,
.roadmap-focus-panel h2 {
  font-family: "Unbounded", "Manrope", sans-serif;
  letter-spacing: -0.02em;
}

.roadmap-role-pill span,
.roadmap-stage-node p,
.assessment-card p,
.assessment-card span,
.roadmap-topic-card p,
.roadmap-legend-item p,
.roadmap-focus-panel .panel-copy,
.roadmap-ref-panel strong {
  color: var(--muted);
  line-height: 1.55;
}

.roadmap-role-pill.is-active {
  border-color: rgba(204, 255, 0, 0.52);
  box-shadow: var(--glow);
  background: linear-gradient(135deg, rgba(204, 255, 0, 0.12), rgba(0, 255, 136, 0.08)), var(--surface);
}

.roadmap-role-pill.is-adjacent {
  border-style: dashed;
}

.roadmap-overview-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

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

.assessment-card {
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  background: var(--surface-strong);
}

.assessment-card strong {
  font-size: 34px;
  color: var(--ink);
}

.roadmap-legend-list {
  display: grid;
  gap: 10px;
}

.roadmap-legend-group {
  display: grid;
  gap: 10px;
}

.roadmap-legend-group + .roadmap-legend-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.roadmap-legend-group-title {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
}

.roadmap-legend-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  background: var(--surface-strong);
}

.roadmap-status-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  margin-top: 3px;
  background: var(--line-strong);
}

.roadmap-status-dot.is-covered {
  background: var(--neon);
  box-shadow: 0 0 18px rgba(204, 255, 0, 0.35);
}

.roadmap-status-dot.is-practice {
  background: var(--accent);
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.25);
}

.roadmap-status-dot.is-adjacent {
  background: #58a6ff;
}

.roadmap-status-dot.is-outside {
  background: #8b949e;
}

.roadmap-visual-layout {
  grid-template-columns: 1fr;
  align-items: start;
}

.roadmap-visual {
  position: relative;
  display: grid;
  gap: 14px;
}

.roadmap-visual::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(204, 255, 0, 0.55), rgba(88, 166, 255, 0.4));
  opacity: 0.55;
  pointer-events: none;
}

.roadmap-stage {
  position: relative;
  grid-template-columns: minmax(280px, 1fr) 320px minmax(280px, 1fr);
  align-items: center;
}

.roadmap-stage-connectors {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.roadmap-connector-backbone,
.roadmap-connector-path {
  fill: none;
  stroke-linecap: round;
}

.roadmap-connector-backbone {
  stroke: rgba(204, 255, 0, 0.4);
  stroke-width: 3;
  stroke-dasharray: 4 12;
}

.roadmap-connector-path {
  stroke-width: 3;
  opacity: 0.75;
}

.roadmap-connector-path.is-left {
  stroke: rgba(204, 255, 0, 0.42);
}

.roadmap-connector-path.is-right {
  stroke: rgba(88, 166, 255, 0.46);
}

.roadmap-connector-point,
.roadmap-connector-core {
  stroke: rgba(10, 10, 10, 0.15);
  stroke-width: 2;
}

.roadmap-connector-point.is-left {
  fill: rgba(204, 255, 0, 0.9);
}

.roadmap-connector-point.is-right {
  fill: rgba(88, 166, 255, 0.9);
}

.roadmap-connector-core {
  fill: rgba(0, 255, 136, 0.95);
  filter: drop-shadow(0 0 12px rgba(0, 255, 136, 0.4));
}

.roadmap-branch-column {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.roadmap-stage-node {
  position: relative;
  z-index: 1;
  min-height: 196px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(204, 255, 0, 0.12), rgba(0, 255, 136, 0.07)), var(--surface);
  box-shadow: var(--shadow);
  pointer-events: none;
}

.roadmap-stage-node span {
  color: var(--neon);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.roadmap-topic-card {
  min-height: 148px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.roadmap-focus-panel {
  position: sticky;
  top: 18px;
  z-index: 2;
  border-color: rgba(204, 255, 0, 0.24);
  background: linear-gradient(135deg, rgba(204, 255, 0, 0.06), rgba(0, 255, 136, 0.05)), var(--surface);
}

.roadmap-focus-panel .summary-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.roadmap-topic-card.is-focused {
  box-shadow: var(--glow);
}

.roadmap-topic-card.is-covered {
  border-color: rgba(204, 255, 0, 0.36);
}

.roadmap-topic-card.is-practice {
  border-color: rgba(0, 255, 136, 0.32);
}

.roadmap-topic-card.is-adjacent {
  border-color: rgba(88, 166, 255, 0.32);
}

.roadmap-topic-card.is-outside {
  border-style: dashed;
  opacity: 0.88;
}

.roadmap-topic-status {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 800;
}

.roadmap-ref-row {
  display: flex;
  flex-wrap: wrap;
}

.roadmap-ref-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
}

.roadmap-ref-pill.is-module {
  border-color: rgba(204, 255, 0, 0.28);
}

.roadmap-ref-pill.is-practice {
  border-color: rgba(0, 255, 136, 0.28);
}

.roadmap-ref-pill.is-course {
  border-color: rgba(255, 189, 89, 0.32);
}

.roadmap-ref-pill.is-workspace {
  border-color: rgba(88, 166, 255, 0.28);
}

.roadmap-ref-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 20px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #0a0a0a;
  background: var(--line-strong);
}

.roadmap-ref-icon.is-module {
  background: var(--neon);
}

.roadmap-ref-icon.is-practice {
  background: var(--accent);
}

.roadmap-ref-icon.is-course {
  background: #ffbd59;
}

.roadmap-ref-icon.is-workspace {
  background: #58a6ff;
}

.roadmap-focus-panel,
.roadmap-ref-panel {
  display: grid;
  gap: 12px;
}

.drawer-field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

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

.roadmap-progress-block {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(204, 255, 0, 0.08), rgba(0, 255, 136, 0.05)), var(--surface-strong);
}

.roadmap-progress-head,
.roadmap-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.roadmap-progress-head strong,
.roadmap-progress-head span {
  font-family: "Unbounded", "Manrope", sans-serif;
}

.roadmap-progress-head span {
  color: var(--neon);
}

.roadmap-progress-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.roadmap-progress-meta span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.roadmap-cta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.roadmap-cta-grid .button {
  width: 100%;
  justify-content: center;
}

.roadmap-card {
  min-height: 180px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.roadmap-card:hover {
  transform: translateY(-2px);
  border-color: rgba(204, 255, 0, 0.4);
}

.roadmap-card strong,
.course-card h3,
.action-card h3,
.test-question-card h3,
.submission-card h2,
.market-placeholder-card h2 {
  font-family: "Unbounded", "Manrope", sans-serif;
  letter-spacing: -0.02em;
}

.roadmap-card p,
.roadmap-card span,
.catalog-row p,
.submission-card p,
.linked-submissions,
.panel-copy,
.result-banner p,
.callout-box {
  color: var(--muted);
  line-height: 1.5;
}

.roadmap-card.is-current,
.course-card.is-current {
  border-color: rgba(204, 255, 0, 0.5);
  box-shadow: var(--glow);
}

.roadmap-card.is-completed,
.course-card.is-completed {
  border-color: rgba(0, 255, 136, 0.35);
}

.roadmap-card.is-next,
.course-card.is-next {
  border-color: rgba(88, 166, 255, 0.35);
}

.roadmap-card.is-locked,
.course-card.is-locked {
  opacity: 0.78;
  border-style: dashed;
}

.learning-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 14px;
}

.assignment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.test-catalog-list,
.test-question-list {
  display: grid;
  gap: 10px;
}

.catalog-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  text-align: left;
}

.catalog-row.is-active {
  border-color: rgba(204, 255, 0, 0.5);
  box-shadow: var(--glow);
}

.test-question-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
}

.test-runner-shell,
.assignment-flow {
  display: grid;
  gap: 14px;
}

.test-stage-card,
.test-summary-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
}

.test-progress-track {
  width: 100%;
  height: 8px;
  overflow: hidden;
  margin: 14px 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.test-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(204, 255, 0, 0.7), rgba(0, 255, 136, 0.9));
}

.test-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.answer-option {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  text-align: left;
}

.answer-option strong {
  color: var(--neon);
  font-family: "Unbounded", "Manrope", sans-serif;
}

.answer-option.is-selected,
.answer-option:focus-visible {
  border-color: rgba(204, 255, 0, 0.45);
  box-shadow: var(--glow);
}

.answer-option.is-correct {
  border-color: rgba(0, 255, 136, 0.5);
}

.answer-option.is-wrong {
  border-color: rgba(255, 107, 107, 0.5);
}

.test-feedback {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.test-feedback strong {
  display: block;
  margin-bottom: 6px;
}

.test-feedback.is-correct {
  border-color: rgba(0, 255, 136, 0.45);
}

.test-feedback.is-wrong {
  border-color: rgba(255, 107, 107, 0.45);
}

.submission-card {
  min-width: 0;
  display: grid;
  align-content: start;
}

.submission-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.submission-form label {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 14px;
}

.submission-form input,
.submission-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--ink);
}

.linked-submissions,
.callout-box,
.result-banner,
.bullet-list {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
}

.result-banner strong {
  display: block;
  color: var(--neon);
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 26px;
}

.result-banner.is-success {
  border-color: rgba(0, 255, 136, 0.35);
}

.result-banner.is-danger {
  border-color: rgba(255, 107, 107, 0.35);
}

.submission-card.is-carryover {
  border-color: rgba(88, 166, 255, 0.3);
}

.panel-copy {
  margin: 0 0 14px;
}

.knowledge-stack {
  display: grid;
  gap: 14px;
}

.crm-control-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.review-control-grid {
  grid-template-columns: minmax(220px, 360px);
}

.crm-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.file-drop.compact {
  width: auto;
  min-height: 46px;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
}

.student-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.student-card,
.lead-card,
.finance-panel,
.action-item,
.deal-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.student-card {
  padding: 18px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.student-card:hover {
  border-color: rgba(204, 255, 0, 0.55);
  box-shadow: var(--glow);
  transform: translateY(-3px);
}

.student-card.at_risk {
  border-color: rgba(255, 107, 107, 0.5);
}

.student-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.student-main h3 {
  margin-top: 12px;
  font-family: "Unbounded", "Manrope", sans-serif;
  letter-spacing: -0.02em;
}

.student-main p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.student-card-metrics {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.student-stat {
  min-height: 66px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
}

.student-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.student-stat strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.student-stat.watch {
  border-color: rgba(204, 255, 0, 0.4);
}

.student-stat.over {
  border-color: rgba(255, 107, 107, 0.48);
  background: var(--danger-soft);
}

.student-stat.inline-edit {
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: center;
}

.student-stat.inline-edit span {
  grid-column: 1 / -1;
}

.student-stat.inline-edit input {
  min-height: 30px;
  padding: 4px 7px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
}

.mini-action {
  min-height: 28px;
  width: 42px;
  margin-top: 2px;
  border: 1px solid rgba(204, 255, 0, 0.34);
  border-radius: 8px;
  background: var(--neon-soft);
  color: var(--neon);
  font-weight: 900;
}

.mini-action:hover {
  border-color: var(--neon);
  background: rgba(204, 255, 0, 0.2);
}

.session-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0 12px;
}

.session-dots span {
  width: 9px;
  height: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-soft);
}

.session-dots span.done {
  border-color: rgba(204, 255, 0, 0.5);
  background: var(--neon);
  box-shadow: 0 0 14px rgba(204, 255, 0, 0.28);
}

.progress-line {
  height: 8px;
  margin: 16px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #262626;
}

body[data-theme="light"] .progress-line {
  background: #dfe4d6;
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--neon), var(--accent));
}

.student-meta,
.lead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.student-meta span,
.lead-meta span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
}

.badge.danger-badge {
  border-color: rgba(255, 107, 107, 0.38);
  background: var(--danger-soft);
  color: var(--danger);
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr)) minmax(230px, 0.9fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.kanban-column {
  min-width: 220px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 17, 17, 0.74);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.kanban-column.drag-over {
  border-color: rgba(204, 255, 0, 0.58);
  background: rgba(204, 255, 0, 0.08);
  box-shadow: inset 0 0 0 1px rgba(204, 255, 0, 0.18);
}

.final-column {
  background: linear-gradient(180deg, rgba(204, 255, 0, 0.045), rgba(17, 17, 17, 0.76));
}

.kanban-column header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.kanban-column h3 {
  font-size: 15px;
}

.kanban-column header span {
  color: var(--neon);
  font-weight: 800;
}

.kanban-stack {
  display: grid;
  min-height: 88px;
  align-content: start;
  gap: 10px;
}

.final-drop-stack {
  display: grid;
  gap: 10px;
}

.final-drop-zone {
  min-height: 122px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
  border: 1px dashed rgba(204, 255, 0, 0.24);
  border-radius: 14px;
  background: rgba(204, 255, 0, 0.055);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.final-drop-zone strong {
  color: var(--ink);
  font-size: 16px;
}

.final-drop-zone span {
  color: var(--muted);
  font-size: 13px;
}

.final-drop-zone.drag-over {
  border-color: rgba(204, 255, 0, 0.58);
  background: rgba(204, 255, 0, 0.1);
  box-shadow: inset 0 0 0 1px rgba(204, 255, 0, 0.18);
  transform: translateY(-1px);
}

.lost-zone {
  border-color: rgba(255, 107, 107, 0.2);
  background: rgba(255, 107, 107, 0.055);
}

.lost-zone.drag-over {
  border-color: rgba(255, 107, 107, 0.48);
  background: rgba(255, 107, 107, 0.1);
}

.lead-card {
  padding: 12px;
  cursor: grab;
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.lead-card:hover {
  border-color: rgba(204, 255, 0, 0.34);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.lead-card.dragging {
  opacity: 0.52;
  cursor: grabbing;
  transform: rotate(1deg) scale(0.99);
}

.lead-open {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.lead-open strong,
.lead-open span {
  display: block;
}

.lead-open span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.lead-card p {
  margin: 10px 0;
  color: var(--muted-strong);
  line-height: 1.45;
}

.lead-status-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  margin-top: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--neon-soft);
  color: var(--neon);
  font-size: 12px;
  font-weight: 900;
}

.lead-status-badge.completed,
.lead-status-badge.map {
  background: var(--success-soft);
  color: var(--success);
}

.lead-status-badge.draft {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
}

.lead-add-card {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px dashed rgba(204, 255, 0, 0.24);
  border-radius: 14px;
  background: rgba(204, 255, 0, 0.055);
}

.lead-add-card button {
  min-height: 34px;
  width: 100%;
  border: 1px solid rgba(204, 255, 0, 0.18);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(204, 255, 0, 0.08);
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 900;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.lead-add-card button span {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(204, 255, 0, 0.16);
  color: var(--neon);
  font-size: 16px;
  line-height: 1;
}

.lead-add-card button:hover {
  border-color: rgba(204, 255, 0, 0.42);
  background: rgba(204, 255, 0, 0.12);
  color: var(--ink);
}

.compact-empty {
  padding: 12px;
  border-radius: 14px;
}

.finance-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 14px;
}

.finance-panel {
  padding: 18px;
}

.finance-panel h2 {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.finance-panel.wide {
  grid-column: 1 / -1;
}

.finance-grid,
.action-list,
.deal-table {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.money-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
}

.money-row span {
  color: var(--muted);
}

.money-row strong {
  color: var(--neon);
}

.action-item {
  padding: 13px;
}

.action-item p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.action-item.danger {
  border-color: rgba(255, 107, 107, 0.45);
}

.action-item.warning {
  border-color: rgba(204, 255, 0, 0.45);
}

.action-item.ok {
  border-color: rgba(0, 255, 136, 0.34);
}

.deal-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(5, minmax(90px, auto));
  gap: 12px;
  align-items: center;
  padding: 13px;
}

.deal-row div {
  display: grid;
  gap: 4px;
}

.deal-row div span {
  color: var(--muted);
  font-size: 13px;
}

.deal-row > span {
  color: var(--muted-strong);
  font-weight: 700;
}

.detail-drawer {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  width: min(440px, calc(100% - 36px));
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(204, 255, 0, 0.3);
  border-radius: var(--radius);
  background: rgba(17, 17, 17, 0.96);
  box-shadow: var(--shadow), var(--glow);
  backdrop-filter: blur(16px);
}

.detail-drawer h2 {
  font-family: "Unbounded", "Manrope", sans-serif;
  letter-spacing: -0.02em;
}

.detail-drawer > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.drawer-close {
  position: sticky;
  top: 0;
  float: right;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--neon);
  font-size: 24px;
}

.drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.drawer-metric,
.drawer-section {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
}

.drawer-metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.drawer-metric strong {
  display: block;
  margin-top: 4px;
  color: var(--neon);
}

.drawer-section {
  margin-top: 10px;
}

.drawer-section h3 {
  margin-bottom: 8px;
  color: var(--neon);
  font-size: 15px;
}

.drawer-section p {
  margin: 6px 0 0;
  color: var(--muted-strong);
  line-height: 1.5;
}

.drawer-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.drawer-form {
  display: grid;
  gap: 10px;
}

.drawer-form h3 {
  margin-bottom: 0;
}

.offer-proof img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  display: block;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.trial-shell {
  display: grid;
  gap: 16px;
}

.trial-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.trial-header h2 {
  font-family: "Unbounded", "Manrope", sans-serif;
  letter-spacing: -0.02em;
}

.trial-header p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
}

.trial-progress {
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
}

.trial-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--neon), var(--accent));
  transition: width 220ms ease;
}

.trial-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}

.trial-steps,
.trial-panel,
.trial-context,
.trial-complete {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.trial-steps {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.trial-steps button {
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--muted-strong);
  text-align: left;
  font-weight: 800;
}

.trial-steps button span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(204, 255, 0, 0.12);
  color: var(--neon);
  font-size: 12px;
}

.trial-steps button.active {
  border-color: rgba(204, 255, 0, 0.48);
  background: var(--neon-soft);
  color: var(--ink);
}

.trial-steps button.done span {
  background: var(--success-soft);
  color: var(--success);
}

.trial-panel,
.trial-context,
.trial-complete {
  padding: 18px;
}

.trial-script {
  padding: 16px;
  border: 1px solid rgba(204, 255, 0, 0.28);
  border-radius: 16px;
  background: var(--neon-soft);
}

.trial-script span,
.trial-context h3 {
  color: var(--neon);
  font-weight: 900;
}

.trial-script p {
  margin: 8px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.55;
}

.trial-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.trial-form label {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-weight: 800;
}

.trial-form textarea {
  min-height: 150px;
  resize: vertical;
}

.trial-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.trial-context {
  position: sticky;
  top: 18px;
}

.trial-context p {
  margin: 10px 0;
  color: var(--muted-strong);
  line-height: 1.45;
}

.trial-mini-map {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
}

.trial-mini-map strong {
  color: var(--neon);
}

.trial-mini-map span {
  color: var(--muted);
  font-size: 13px;
}

.trial-complete {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.trial-complete h2 {
  margin-bottom: 10px;
  font-family: "Unbounded", "Manrope", sans-serif;
}

.trial-complete p {
  color: var(--muted-strong);
}

.trial-toast,
.drawer-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  padding: 12px 16px;
  border: 1px solid rgba(204, 255, 0, 0.32);
  border-radius: 999px;
  background: var(--surface);
  color: var(--neon);
  box-shadow: var(--shadow);
  font-weight: 900;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 1100px) {
  .workspace-layout {
    grid-template-columns: 1fr;
  }

  .roadmap-role-switch,
  .roadmap-overview-grid,
  .roadmap-hero,
  .roadmap-visual-layout {
    grid-template-columns: 1fr;
  }

  .roadmap-stage {
    grid-template-columns: 1fr;
  }

  .roadmap-visual::before {
    left: 18px;
    transform: none;
  }

  .roadmap-stage-connectors {
    display: none;
  }

  .roadmap-stage-node {
    text-align: left;
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-cta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roadmap-focus-panel .summary-list {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    min-height: auto;
    max-height: none;
    overflow: visible;
  }

  .side-menu {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .side-menu .tab {
    justify-content: center;
    text-align: center;
  }

  .control-grid,
  .question-list,
  .kpi-grid,
  .student-list,
  .student-card-metrics,
  .finance-layout,
  .resource-grid,
  .compact-resource-grid,
  .materials-grid,
  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-grid,
  .sessions-layout {
    grid-template-columns: 1fr;
  }

  .trial-layout {
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  }

  .trial-context {
    position: static;
    grid-column: 1 / -1;
  }

  .manager-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .login-layout,
  .workspace {
    width: min(100% - 20px, 680px);
  }

  .login-layout,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .activity-row {
    grid-template-columns: 1fr;
  }

  .activity-main {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .activity-side,
  .activity-meta,
  .activity-hint {
    justify-items: start;
    text-align: left;
  }

  .login-aside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric {
    padding: 12px;
  }

  .metric span {
    font-size: 24px;
  }

  .topbar,
  .topbar-actions,
  .card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .control-grid,
  .session-start,
  .trial-header,
  .trial-layout,
  .question-list,
  .session-toolbar,
  .card-grid,
  .score-grid,
  .pool-summary,
  .manager-item,
  .kpi-grid,
  .student-list,
  .student-main,
  .student-card-metrics,
  .finance-layout,
  .drawer-grid,
  .home-grid,
  .sessions-layout,
  .resource-grid,
  .compact-resource-grid,
  .materials-grid,
  .settings-grid,
  .compact-session-list,
  .review-card,
  .assessment-grid,
  .roadmap-role-switch,
  .answer-grid,
  .test-summary-grid,
  .assignment-grid {
    grid-template-columns: 1fr;
  }

  .trial-steps,
  .trial-context {
    position: static;
  }

  .trial-actions,
  .drawer-action-row,
  .form-actions-inline {
    align-items: stretch;
    flex-direction: column;
  }

  .roadmap-cta-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 10px;
  }

  .sidebar-profile {
    grid-template-columns: 1fr;
  }

  .session-toolbar {
    align-items: stretch;
  }

  h1 {
    font-size: clamp(30px, 12vw, 44px);
  }

  .crm-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .file-drop.compact {
    width: 100%;
  }

  .deal-row {
    grid-template-columns: 1fr;
  }

  .kanban-board {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .kanban-column {
    min-width: 0;
  }

  .detail-drawer {
    inset: auto 10px 10px;
    max-height: calc(100dvh - 20px);
    width: calc(100% - 20px);
  }

  .side-menu {
    grid-template-columns: 1fr;
  }
}
