:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --line: #e2e8f0;
  --surface: #ffffff;
  --background: #f8fafc;
  --accent: #1e3a8a;
  --accent-dark: #172554;
  --orange: #f97316;
  --orange-light: #ffedd5;
  --green: #16a34a;
  --green-light: #dcfce7;
  --amber: #f59e0b;
  --amber-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--background);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(219, 234, 254, 0.74), rgba(248, 250, 252, 0) 42%),
    var(--background);
}

.document-shell {
  place-items: start center;
}

.panel {
  width: min(760px, 100%);
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.panel.compact {
  width: min(440px, 100%);
}

.document-panel {
  width: min(860px, 100%);
}

.document-section {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.document-section a {
  color: var(--accent);
  font-weight: 800;
}

.logo {
  display: block;
  width: min(260px, 70vw);
  height: auto;
  margin-bottom: 18px;
}

.hero-logo {
  width: min(300px, 72vw);
}

.auth-logo {
  width: min(240px, 68vw);
  margin-bottom: 18px;
}

.tagline {
  width: fit-content;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--orange-light);
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

h1 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: 0;
}

h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.lede {
  margin-bottom: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: #ffffff;
  background: var(--accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button:hover,
button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button.secondary {
  color: var(--accent-dark);
  background: #ffffff;
  border-color: #cbd5e1;
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

label.inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
}

select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

input[type="checkbox"] {
  min-height: 0;
  width: 16px;
  height: 16px;
}

.status {
  min-height: 22px;
  font-size: 14px;
}

.status[data-error="true"] {
  color: var(--danger);
}

.auth-switch {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
}

.auth-switch a {
  color: var(--accent);
  font-weight: 800;
}

.app-shell header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 900;
}

.brand-link img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.app-shell nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-weight: 600;
}

.link-button {
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--accent-dark);
  background: transparent;
  font-weight: 700;
}

.workspace {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 32px 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 16px;
  margin-top: 20px;
}

.span-2 {
  grid-row: span 2;
}

article {
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.page-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.page-title-row p {
  max-width: 720px;
}

.mentor-dashboard-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.mentor-sidebar,
.mentor-main,
.job-list,
.practice-list,
.attempt-list {
  display: grid;
  align-content: start;
  gap: 16px;
}

.dashboard-card {
  min-height: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.helper-text {
  margin-bottom: 14px;
  font-size: 14px;
}

.mentee-nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mentee-nav-item {
  display: grid;
  justify-items: start;
  width: 100%;
  min-height: 0;
  padding: 12px;
  border-color: var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
}

.mentee-nav-item[data-selected="true"] {
  border-color: var(--accent);
  background: #dbeafe;
}

.mentee-nav-item span,
.mentee-nav-item small {
  color: var(--muted);
}

.overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.overview-hero h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 10px;
}

.metric-strip div {
  display: grid;
  gap: 2px;
  min-width: 92px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.metric-strip strong {
  font-size: 20px;
}

.metric-strip span,
.section-heading span,
.job-row span,
.practice-card small {
  color: var(--muted);
  font-size: 13px;
}

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

.job-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
}

.job-row:hover,
.job-row[data-selected="true"] {
  border-color: var(--accent);
  background: #dbeafe;
}

.job-row div:first-child {
  display: grid;
  gap: 4px;
}

.job-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.job-stats span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--green-light);
  color: #166534;
  font-size: 13px;
  font-weight: 700;
}

.muted-pill {
  background: #f1f4f8;
  color: var(--muted);
}

.practice-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.attempt-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.attempt-card div:first-child {
  display: grid;
  gap: 4px;
}

.attempt-card small {
  color: var(--muted);
}

.practice-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.practice-card-header div:first-child {
  display: grid;
  gap: 6px;
}

.level-badge {
  width: fit-content;
  color: var(--orange);
  font-weight: 800;
}

.score-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.practice-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.practice-columns > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
}

.practice-columns h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.practice-columns p,
.practice-columns li {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.practice-columns ul {
  margin: 8px 0;
  padding-left: 18px;
}

.audio-review {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.audio-review audio {
  width: 100%;
}

.empty-state {
  display: grid;
  align-content: center;
  min-height: 260px;
}

.list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.list-row {
  min-height: 0;
  padding: 14px;
  border-radius: 6px;
  box-shadow: none;
}

.list-row div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.question-groups {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.question-level h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

@media (max-width: 920px) {
  .mentor-dashboard-grid,
  .overview-hero,
  .practice-card-header,
  .practice-columns {
    grid-template-columns: 1fr;
  }

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

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

  .job-stats,
  .score-pills {
    justify-content: flex-start;
  }
}

.question-level .list-row p {
  margin-top: 8px;
  font-size: 14px;
}

.empty {
  padding: 16px 0;
}

@media (max-width: 760px) {
  h1 {
    font-size: 28px;
  }

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

  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}
