.workspace-page {
  min-width: 0;
  background: #f8fafc;
  color: #020617;
}

.workspace-page :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.25);
  outline-offset: 2px;
}

.data-bank-shell,
.data-bank-shell__body,
.exam-workspace,
.exam-workspace__body {
  min-width: 0;
}

.data-bank-shell__body,
.exam-workspace__body {
  display: flex;
  min-height: calc(100dvh - var(--main-header-height));
  flex-direction: column;
}

.workspace-sidebar {
  z-index: 4;
  flex: 0 0 auto;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.5rem 0.75rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(12px);
}

.workspace-mobile-nav > summary {
  display: flex;
  min-height: 2.5rem;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
  padding: 0.5rem 0.75rem;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 900;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.workspace-mobile-nav > summary::-webkit-details-marker {
  display: none;
}

.workspace-mobile-nav > summary:hover {
  border-color: #ddd6fe;
  background: #fff;
}

.workspace-mobile-nav__summary-copy {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
}

.workspace-mobile-nav__chevron {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  transition: transform 160ms ease;
}

.workspace-mobile-nav[open] .workspace-mobile-nav__chevron {
  transform: rotate(180deg);
}

.workspace-mobile-nav__panel {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.25rem;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.workspace-desktop-nav,
.workspace-sidebar__heading,
.ai-sidebar-points-card {
  display: none;
}

.data-bank-mobile-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.data-bank-mobile-nav::-webkit-scrollbar {
  display: none;
}

.data-bank-mobile-nav .workspace-nav-item {
  flex: 0 0 auto;
}

.workspace-sidebar__menu-icon,
.workspace-nav-item__icon {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.5rem;
  background: #f1f5f9;
  color: #64748b;
}

.workspace-sidebar__menu-icon {
  background: #fff;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.08);
}

.workspace-sidebar__menu-icon svg,
.workspace-nav-item__icon svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.workspace-nav-item {
  display: inline-flex;
  min-width: 0;
  min-height: 2.5rem;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  padding: 0.5rem 0.75rem;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 900;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.workspace-nav-item:hover {
  border-color: #ede9fe;
  background: #f5f3ff;
  color: #6d28d9;
}

.workspace-nav-item.is-active {
  border-color: #e9d5ff;
  background: #f3e8ff;
  color: #6d28d9;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.08);
}

.workspace-nav-item.is-active .workspace-nav-item__icon {
  background: #ede9fe;
  color: #6d28d9;
}

.workspace-nav-item__icon--letters {
  font-size: 0.75rem;
  font-weight: 950;
}

.data-bank-shell__main,
.exam-workspace__main {
  min-width: 0;
  flex: 1 1 auto;
}

.data-bank-shell__main {
  padding: 1rem 0.75rem;
}

.exam-workspace__main {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.exam-workspace__content {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1rem 0.75rem;
}

.workspace-subheader {
  flex: 0 0 auto;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.75rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.workspace-subheader__copy {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 0.75rem;
}

.workspace-subheader__icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.5rem;
  background: #eef2ff;
  color: #0f172a;
  font-size: 1.125rem;
  font-weight: 950;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), inset 0 0 0 1px #e0e7ff;
}

.workspace-subheader p,
.workspace-subheader h1,
.workspace-subheader span {
  margin: 0;
}

.workspace-subheader p {
  margin-bottom: 0.125rem;
  color: #4f46e5;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.workspace-subheader h1 {
  color: #020617;
  font-size: 1.25rem;
  font-weight: 950;
  line-height: 1.25;
}

.workspace-subheader span:not(.workspace-subheader__icon) {
  display: block;
  margin-top: 0.125rem;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.4;
}

.workspace-login-state,
.question-set-public-state {
  width: 100%;
  max-width: 28rem;
  margin: auto;
  border: 1px solid #e2e8f0;
  border-radius: 0.55rem;
  background: #fff;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 20px 42px rgba(148, 163, 184, 0.28);
}

.workspace-login-state {
  min-height: min(31rem, 62vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.workspace-login-state__icon,
.workspace-login-state__emoji,
.question-set-public-state__icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  place-items: center;
  border-radius: 0.55rem;
  background: #eef2ff;
  color: #4f46e5;
  box-shadow: inset 0 0 0 1px #e0e7ff;
}

.workspace-login-state__icon svg,
.question-set-public-state__icon svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.workspace-login-state__emoji {
  font-size: 1.875rem;
}

.workspace-login-state__eyebrow {
  margin: -0.5rem 0 0.35rem !important;
  color: #4f46e5 !important;
  font-size: 0.7rem !important;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.workspace-login-state h1,
.workspace-login-state h2,
.question-set-public-state h2 {
  margin: 0;
  color: #020617;
  font-size: 1.25rem;
  font-weight: 950;
  line-height: 1.35;
}

.workspace-login-state > p:not(.workspace-login-state__eyebrow),
.question-set-public-state > p {
  max-width: 25rem;
  margin: 0.5rem auto 0;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.65;
}

.workspace-related-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.workspace-related-links a,
.question-set-public-state__local-link {
  border-radius: 999px;
  background: #eef2ff;
  padding: 0.4rem 0.75rem;
  color: #4338ca;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.workspace-related-links a:last-child {
  background: #f1f5f9;
  color: #334155;
}

.workspace-related-links a:hover,
.question-set-public-state__local-link:hover {
  background: #e0e7ff;
  color: #3730a3;
}

.workspace-primary-action {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  border-radius: 0.55rem;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  padding: 0.65rem 1.25rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 12px 25px rgba(79, 70, 229, 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.workspace-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(79, 70, 229, 0.27);
}

.workspace-primary-action__google {
  width: 1.25rem;
  height: 1.25rem;
}

.workspace-login-state--exam {
  min-height: 62vh;
}

.question-set-public-state {
  padding-block: 3rem;
  border-style: dashed;
  border-color: #c7d2fe;
  background: linear-gradient(145deg, #f9fafb, #eef2ff);
  box-shadow: none;
}

.question-set-public-state__icon {
  width: 3.5rem;
  height: 3.5rem;
}

.question-set-public-state__local-link {
  display: table;
  margin: 0.75rem auto 0;
  background: transparent;
}

.ai-generator-shell {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.step-tabs {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid #dbe3f0;
  border-radius: 1rem 1rem 0 0;
  background: #fff;
  box-shadow: 0 14px 35px rgba(30, 41, 59, 0.06);
}

.step-tabs__tablist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #dbe3f0;
}

.step-tabs__tab {
  display: flex;
  min-width: 0;
  min-height: 4.25rem;
  align-items: center;
  gap: clamp(0.62rem, 0.85vw, 0.9rem);
  border-bottom: 2px solid transparent;
  background: #fbfdff;
  padding: 0.66rem clamp(0.9rem, 2vw, 1.75rem);
  color: #475569;
}

.step-tabs__tab + .step-tabs__tab {
  border-left: 1px solid #dbe3f0;
}

.step-tabs__tab.is-active {
  border-bottom-color: #5b21b6;
  background: #fff;
  color: #5b21b6;
}

.step-tabs__tab.is-disabled {
  opacity: 0.72;
}

.step-tabs__icon {
  display: grid;
  width: 2.18rem;
  height: 2.18rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.55rem;
  background: #f1f5f9;
  color: #64748b;
}

.step-tabs__tab.is-active .step-tabs__icon {
  background: linear-gradient(135deg, #4f46e5, #6d28d9);
  color: #fff;
  box-shadow: 0 10px 20px rgba(91, 33, 182, 0.22);
}

.step-tabs__icon svg,
.ai-history-chip svg,
.ai-button svg,
.ai-sidebar-points-card svg {
  width: 1.08rem;
  height: 1.08rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.step-tabs__copy {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.step-tabs__copy strong {
  font-size: clamp(0.88rem, 0.95vw, 1rem);
  font-weight: 950;
  line-height: 1.15;
}

.step-tabs__copy small {
  display: -webkit-box;
  overflow: hidden;
  color: #334155;
  font-size: clamp(0.72rem, 0.78vw, 0.84rem);
  font-weight: 550;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.step-tabs__stats {
  display: flex;
  min-height: 2.62rem;
  flex-wrap: wrap;
  align-items: center;
  background: #fff;
  padding: 0.42rem clamp(0.9rem, 2vw, 1.75rem);
}

.step-tabs__stat {
  display: inline-flex;
  min-height: 1.8rem;
  align-items: center;
  gap: 0.42rem;
  padding: 0.22rem 1.05rem 0.22rem 0;
  color: #1f2a44;
  font-size: 0.8rem;
  font-weight: 850;
}

.step-tabs__stat + .step-tabs__stat {
  border-left: 1px solid #dbe3f0;
  padding-left: 1.05rem;
}

.step-tabs__stat--violet > span {
  color: #6d28d9;
}

.step-tabs__stat--emerald > span {
  color: #059669;
}

.step-tabs__stat strong {
  color: #172033;
  font-size: 0.78rem;
  font-weight: 950;
}

.ai-config-screen {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  border: 1px solid #dbe3f0;
  border-top: 0;
  background: #f4f7fb;
}

.ai-config-screen__body {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 0.85rem;
  padding: 0.85rem;
}

.ai-panel-card {
  min-width: 0;
  border: 1px solid #dbe3f0;
  border-radius: 0.75rem;
  background: #fff;
  padding: clamp(0.85rem, 1.3vw, 1.25rem);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

.ai-card-heading,
.ai-source-header {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ai-section-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.65rem;
}

.ai-section-title h2 {
  margin: 0;
  color: #172033;
  font-size: 1rem;
  font-weight: 950;
}

.ai-section-index {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
  box-shadow: 0 7px 15px rgba(79, 70, 229, 0.22);
}

.ai-history-chip,
.ai-source-tabs {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #d8dff0;
  border-radius: 0.6rem;
  background: #fff;
  padding: 0.4rem 0.65rem;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 850;
  text-decoration: none;
}

.ai-history-chip:hover {
  border-color: #c4b5fd;
  color: #6d28d9;
}

.ai-config-grid {
  display: grid;
  gap: 0.8rem;
}

.ai-field {
  display: grid;
  min-width: 0;
  gap: 0.42rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.ai-field > span,
.ai-field > legend {
  color: #334155;
  font-size: 0.78rem;
  font-weight: 900;
}

.ai-field select,
.ai-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cfd8e7;
  border-radius: 0.55rem;
  background: #fff;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 650;
  outline: 0;
}

.ai-field select {
  min-height: 2.55rem;
  padding: 0.45rem 0.7rem;
}

.ai-field textarea {
  min-height: 12.3rem;
  resize: vertical;
  padding: 0.75rem;
  line-height: 1.55;
}

.ai-field select:focus,
.ai-field textarea:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.11);
}

.ai-segmented,
.ai-answer-count-grid {
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #d5deeb;
  border-radius: 0.55rem;
  background: #f8fafc;
  padding: 0.18rem;
}

.ai-answer-count-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ai-segmented span,
.ai-answer-count-grid span {
  display: grid;
  min-height: 2.15rem;
  place-items: center;
  border-radius: 0.42rem;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 850;
}

.ai-segmented .is-active,
.ai-answer-count-grid .is-active {
  background: #fff;
  color: #5b21b6;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), inset 0 0 0 1px #ddd6fe;
}

.ai-bloom-field {
  margin-top: 1rem;
}

.ai-bloom-box {
  display: grid;
  gap: 0.4rem;
  border: 1px solid #dbe3f0;
  border-radius: 0.6rem;
  background: #f8fafc;
  padding: 0.7rem;
}

.ai-bloom-box label {
  display: flex;
  min-height: 2rem;
  align-items: center;
  gap: 0.48rem;
  border-radius: 0.45rem;
  padding: 0.3rem 0.45rem;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 750;
}

.ai-bloom-box input {
  width: 1rem;
  height: 1rem;
  accent-color: #6d28d9;
}

.ai-source-tabs {
  gap: 0.15rem;
  padding: 0.15rem;
  background: #f1f5f9;
}

.ai-source-tabs span {
  border-radius: 0.42rem;
  padding: 0.35rem 0.65rem;
}

.ai-source-tabs .is-active {
  background: #fff;
  color: #5b21b6;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.08);
}

.ai-source-meter {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-top: 0.55rem;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
}

.ai-config-footer {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid #dbe3f0;
  background: rgba(255, 255, 255, 0.97);
  padding: 0.7rem 0.85rem;
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.05);
}

.ai-quota-note,
.ai-config-footer__actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.ai-quota-note__icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, #ede9fe, #dbeafe);
  color: #6d28d9;
  font-size: 1.1rem;
}

.ai-quota-note__copy {
  display: grid;
  gap: 0.08rem;
}

.ai-quota-note__copy strong {
  color: #334155;
  font-size: 0.75rem;
  font-weight: 950;
}

.ai-quota-note__copy span {
  color: #64748b;
  font-size: 0.68rem;
}

.ai-quota-note > a {
  color: #5b21b6;
  font-size: 0.72rem;
  font-weight: 900;
}

.ai-config-footer__actions {
  justify-content: flex-end;
}

.ai-button {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.ai-button:hover {
  transform: translateY(-1px);
}

.ai-button--secondary {
  border-color: #d8dfeb;
  background: #fff;
  color: #475569;
}

.ai-button--primary {
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  color: #fff;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

@media (min-width: 640px) {
  .workspace-subheader {
    padding-inline: 1rem;
  }

  .data-bank-shell__main,
  .exam-workspace__content {
    padding-inline: 1rem;
  }

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

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

  .ai-config-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .ai-config-screen__body {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}

@media (min-width: 1024px) {
  .data-bank-shell__body,
  .exam-workspace__body {
    flex-direction: row;
  }

  .workspace-sidebar {
    width: 13rem;
    border-right: 1px solid #e2e8f0;
    border-bottom: 0;
    padding: 1rem 0.75rem;
    box-shadow: none;
  }

  .workspace-sidebar--data-bank {
    align-self: stretch;
  }

  .workspace-sidebar--exam {
    position: sticky;
    top: 0;
    display: flex;
    height: calc(100dvh - var(--main-header-height));
    max-height: calc(100dvh - var(--main-header-height));
    flex-direction: column;
    align-self: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .workspace-mobile-nav {
    display: none;
  }

  .data-bank-mobile-nav {
    display: none;
  }

  .workspace-desktop-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .workspace-sidebar__heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #ede9fe;
    border-radius: 0.75rem;
    background: rgba(245, 243, 255, 0.85);
    padding: 0.5rem;
    color: #5b21b6;
    font-size: 0.8rem;
    font-weight: 950;
  }

  .data-bank-shell__main,
  .exam-workspace__content {
    padding: 1rem 1.25rem;
  }

  .workspace-subheader {
    padding: 0.75rem 1.25rem;
  }

  .workspace-page--exam {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .exam-workspace,
  .exam-workspace__body {
    height: calc(100dvh - var(--main-header-height));
    min-height: 0;
    overflow: hidden;
  }

  .exam-workspace__main,
  .exam-workspace__content {
    min-height: 0;
    overflow: hidden;
  }

  .exam-workspace__content {
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .ai-sidebar-points-card {
    display: block;
    min-width: 0;
    margin-top: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    padding: 0.75rem;
  }

  .ai-sidebar-points-card__heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.45rem;
  }

  .ai-sidebar-points-card__icon {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #ede9fe, #dbeafe);
    color: #6d28d9;
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.12);
  }

  .ai-sidebar-points-card__heading strong {
    color: #334155;
    font-size: 0.78rem;
    font-weight: 950;
    line-height: 1.25;
  }

  .ai-sidebar-points-card__balance {
    margin: 0.65rem 0 0.05rem;
    color: #4f46e5;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.25;
  }

  .ai-sidebar-points-card small {
    display: block;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.4;
  }

  .ai-sidebar-points-card__link {
    display: inline-flex;
    width: 100%;
    min-height: 2rem;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.7rem;
    border: 1px solid #a78bfa;
    border-radius: 0.55rem;
    background: #fff;
    padding: 0.45rem 0.55rem;
    color: #4f46e5;
    font-size: 0.7rem;
    font-weight: 900;
    text-decoration: none;
  }
}

@media (min-width: 1280px) {
  .workspace-sidebar--exam {
    width: 13rem;
  }

  .ai-config-screen__body {
    gap: 1rem;
    padding: 1rem;
  }
}

@media (max-width: 639px) {
  .workspace-login-state,
  .question-set-public-state {
    padding: 1.5rem 1rem;
  }

  .step-tabs {
    border-radius: 0.8rem 0.8rem 0 0;
  }

  .step-tabs__tab {
    min-height: 4.4rem;
    align-items: flex-start;
    gap: 0.48rem;
    padding: 0.58rem 0.55rem;
  }

  .step-tabs__icon {
    width: 1.65rem;
    height: 1.65rem;
  }

  .step-tabs__copy strong {
    font-size: 0.76rem;
  }

  .step-tabs__copy small {
    font-size: 0.62rem;
  }

  .step-tabs__stat {
    flex-basis: 100%;
    padding-right: 0;
  }

  .step-tabs__stat + .step-tabs__stat {
    border-top: 1px solid #dbe3f0;
    border-left: 0;
    padding-left: 0;
  }

  .ai-source-tabs {
    width: 100%;
  }

  .ai-source-tabs span {
    flex: 1 1 50%;
    text-align: center;
  }

  .ai-config-footer__actions,
  .ai-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-page *,
  .workspace-page *::before,
  .workspace-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
