/* APP SHELL */

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;

  z-index: 30;

  width: var(--sidebar);

  display: flex;
  flex-direction: column;

  padding: 22px 16px 17px;

  background: #fbfbfa;

  border-right:
    1px solid var(--border);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;

  padding:
    0 8px 24px;
}

.sidebar-brand > div:last-child {
  min-width: 0;
}

.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}

.sidebar-brand strong {
  font-size: 16px;
}

.sidebar-brand span {
  margin-top: 2px;

  color: var(--text-faint);

  font-size: 11px;
}

.sidebar-nav {
  display: grid;
  gap: 3px;
}

.nav-item {
  width: 100%;

  display: flex;
  align-items: center;
  gap: 11px;

  min-height: 42px;

  padding: 0 11px;

  border: 0;
  border-radius: 10px;

  background: transparent;

  color: #68686d;

  font-size: 13px;
  font-weight: 600;

  cursor: pointer;

  text-align: left;
}

.nav-item:hover {
  color: var(--text);

  background:
    #f1f1ef;
}

.nav-item.active {
  color: var(--text);

  background:
    #ebebe8;
}

.nav-icon {
  width: 21px;

  text-align: center;

  color: #85858a;

  font-size: 18px;
}

.sidebar-section-label {
  margin:
    28px 11px
    10px;

  color: #aaa;

  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.sidebar-module {
  display: flex;
  gap: 10px;
  align-items: center;

  padding: 9px 10px;

  border-radius: 10px;
}

.sidebar-module.active {
  background: #f2f2ef;
}

.sidebar-module.disabled {
  opacity: .45;
}

.module-icon {
  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  border-radius: 8px;

  background: white;

  border:
    1px solid var(--border);

  font-size: 12px;
  font-weight: 750;
}

.sidebar-module strong,
.sidebar-module small {
  display: block;
}

.sidebar-module strong {
  font-size: 12px;
}

.sidebar-module small {
  margin-top: 2px;

  font-size: 10px;

  color:
    var(--text-faint);
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-user {
  display: grid;

  grid-template-columns:
    35px 1fr 30px;

  align-items: center;
  gap: 9px;

  padding:
    12px 6px 2px;

  border-top:
    1px solid var(--border);
}

.avatar {
  width: 35px;
  height: 35px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background:
    #e9e9e6;

  color: #55555a;

  font-size: 12px;
  font-weight: 750;
}

.avatar.small {
  width: 32px;
  height: 32px;
}

.sidebar-user-copy {
  min-width: 0;
}

.sidebar-user-copy strong,
.sidebar-user-copy span {
  display: block;

  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sidebar-user-copy strong {
  font-size: 12px;
}

.sidebar-user-copy span {
  margin-top: 3px;

  color: var(--text-faint);
  font-size: 10px;
}

.main-area {
  margin-left:
    var(--sidebar);

  min-height: 100vh;
}

.mobile-header {
  display: none;
}

.page {
  width: min(
    1220px,
    calc(100% - 64px)
  );

  margin: 0 auto;

  padding:
    50px 0 90px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 25px;

  margin-bottom: 31px;
}

.page-header h1 {
  margin: 8px 0 7px;

  font-size:
    clamp(
      36px,
      4vw,
      48px
    );

  line-height: 1;

  letter-spacing: -.045em;
}

.page-header p {
  margin: 0;

  color: var(--text-soft);

  font-size: 14px;
}

.panel {
  padding: 22px;

  background:
    var(--surface);

  border:
    1px solid var(--border);

  border-radius:
    var(--radius-lg);

  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 15px;

  margin-bottom: 18px;
}

.panel-header h3 {
  margin: 5px 0 0;

  font-size: 19px;
  letter-spacing: -.02em;
}


/* DASHBOARD */

.hero-dashboard-card {
  position: relative;

  min-height: 245px;

  display: grid;

  grid-template-columns:
    1fr 330px;

  overflow: hidden;

  margin-bottom: 18px;

  padding:
    35px 38px;

  border-radius:
    var(--radius-xl);

  color: white;

  background:
    linear-gradient(
      120deg,
      #101012,
      #1c1c20
    );
}

.hero-dashboard-copy {
  position: relative;
  z-index: 3;

  max-width: 580px;
}

.hero-kicker {
  display: inline-block;

  margin-bottom: 13px;

  color:
    rgba(255,255,255,.42);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.hero-dashboard-copy h2 {
  max-width: 540px;

  margin: 0 0 10px;

  font-size:
    clamp(
      29px,
      3vw,
      40px
    );

  line-height: 1.08;

  letter-spacing: -.04em;
}

.hero-dashboard-copy p {
  max-width: 490px;

  margin: 0 0 25px;

  color:
    rgba(255,255,255,.55);

  line-height: 1.55;
  font-size: 14px;
}

.hero-visual {
  position: relative;
}

.hero-ring {
  position: absolute;

  border-radius: 50%;

  border:
    1px solid
    rgba(255,255,255,.095);
}

.ring-one {
  width: 270px;
  height: 270px;

  right: -25px;
  top: -48px;
}

.ring-two {
  width: 190px;
  height: 190px;

  right: 15px;
  top: -8px;
}

.ring-three {
  width: 110px;
  height: 110px;

  right: 55px;
  top: 32px;
}

.hero-score {
  position: absolute;

  right: 79px;
  top: 61px;

  width: 63px;
  height: 63px;

  display: grid;
  place-items: center;

  text-align: center;

  z-index: 2;
}

.hero-score span,
.hero-score strong {
  display: block;
}

.hero-score span {
  color:
    rgba(255,255,255,.4);

  font-size: 9px;
  text-transform: uppercase;
}

.hero-score strong {
  font-size: 24px;
  line-height: 1;
}

.metric-grid {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 12px;

  margin-bottom: 18px;
}

.metric-card {
  padding: 20px 21px;

  border:
    1px solid var(--border);

  border-radius:
    var(--radius-lg);

  background: white;

  box-shadow:
    0 1px 3px
    rgba(0,0,0,.02);
}

.metric-label {
  margin-bottom: 15px;

  color:
    var(--text-soft);

  font-size: 12px;
}

.metric-value {
  display: block;

  margin-bottom: 6px;

  font-size: 31px;

  line-height: 1;

  letter-spacing: -.035em;
}

.metric-caption {
  color:
    var(--text-faint);

  font-size: 10px;
}

.dashboard-grid {
  display: grid;

  grid-template-columns:
    1.25fr .75fr;

  gap: 18px;
}

.priority-list {
  display: grid;
  gap: 8px;
}

.priority-item {
  display: grid;

  grid-template-columns:
    40px 1fr auto;

  gap: 12px;

  align-items: center;

  padding: 12px;

  border-radius: 12px;

  cursor: pointer;

  transition:
    background .15s;
}

.priority-item:hover {
  background:
    var(--surface-soft);
}

.priority-rank {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  border-radius: 10px;

  background:
    #f0f0ee;

  font-size: 12px;
  font-weight: 750;
}

.priority-copy strong {
  display: block;

  font-size: 13px;
}

.priority-copy span {
  display: block;

  margin-top: 4px;

  color:
    var(--text-faint);

  font-size: 11px;
}

.priority-time {
  color:
    var(--text-soft);

  font-size: 11px;
  font-weight: 650;
}

.progress-summary {
  display: grid;
  gap: 18px;
}

.progress-circle-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.progress-circle {
  --value: 0%;

  width: 90px;
  height: 90px;

  flex: 0 0 90px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background:
    conic-gradient(
      #171719 var(--value),
      #ededeb 0
    );

  position: relative;
}

.progress-circle::after {
  content: "";

  position: absolute;

  width: 72px;
  height: 72px;

  border-radius: 50%;

  background: white;
}

.progress-circle strong {
  position: relative;
  z-index: 2;

  font-size: 18px;
}

.progress-copy strong,
.progress-copy span {
  display: block;
}

.progress-copy strong {
  font-size: 13px;
}

.progress-copy span {
  margin-top: 5px;

  color:
    var(--text-soft);

  font-size: 11px;
  line-height: 1.4;
}

.progress-mini-row {
  display: flex;
  justify-content: space-between;

  padding-top: 14px;

  border-top:
    1px solid var(--border);
}

.progress-mini-row span {
  color:
    var(--text-soft);

  font-size: 11px;
}

.progress-mini-row strong {
  font-size: 12px;
}


/* STUDY HOME */

.study-summary {
  display: flex;
  align-items: center;

  min-height: 106px;

  margin-bottom: 26px;

  padding:
    20px 25px;

  background:
    #18181b;

  border-radius:
    var(--radius-lg);

  color: white;
}

.study-summary-main {
  min-width: 210px;
}

.study-summary-main span,
.study-summary-main strong {
  display: block;
}

.study-summary-main span {
  color:
    rgba(255,255,255,.45);

  font-size: 11px;
}

.study-summary-main strong {
  margin-top: 6px;

  font-size: 31px;
}

.study-summary-divider {
  width: 1px;
  height: 48px;

  margin:
    0 35px;

  background:
    rgba(255,255,255,.12);
}

.study-summary-stat {
  min-width: 125px;
}

.study-summary-stat strong,
.study-summary-stat span {
  display: block;
}

.study-summary-stat strong {
  font-size: 20px;
}

.study-summary-stat span {
  margin-top: 4px;

  color:
    rgba(255,255,255,.42);

  font-size: 10px;
}

.subjects-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 15px;
}

.subject-card {
  position: relative;

  min-height: 225px;

  display: flex;
  flex-direction: column;

  padding: 21px;

  background:
    var(--surface);

  border:
    1px solid var(--border);

  border-radius:
    var(--radius-lg);

  cursor: pointer;

  transition:
    transform .18s,
    box-shadow .18s,
    border-color .18s;
}

.subject-card:hover {
  transform:
    translateY(-3px);

  border-color:
    #d6d6d2;

  box-shadow:
    0 14px 35px
    rgba(0,0,0,.055);
}

.subject-card-top {
  display: flex;
  justify-content:
    space-between;

  gap: 10px;
}

.subject-icon {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  background:
    #f0f0ee;

  color: #4e4e52;

  font-weight: 760;
}

.subject-exam-badge {
  height: fit-content;

  padding: 5px 8px;

  border-radius: 20px;

  background:
    var(--orange-bg);

  color:
    var(--orange);

  font-size: 9px;
  font-weight: 700;
}

.subject-card h3 {
  margin:
    21px 0 5px;

  font-size: 18px;
  letter-spacing: -.02em;
}

.subject-card-description {
  color:
    var(--text-faint);

  font-size: 11px;
}

.subject-card-bottom {
  margin-top: auto;

  display: grid;
  gap: 9px;
}

.subject-card-progress {
  height: 5px;

  overflow: hidden;

  background:
    #eeeeec;

  border-radius: 10px;
}

.subject-card-progress > div {
  height: 100%;

  background:
    #1e1e21;

  border-radius: 10px;
}

.subject-card-stats {
  display: flex;
  justify-content:
    space-between;

  color:
    var(--text-faint);

  font-size: 10px;
}

.empty-panel {
  min-height: 320px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;

  padding: 40px;

  background: white;

  border:
    1px dashed
    var(--border-strong);

  border-radius:
    var(--radius-lg);
}

.empty-icon {
  width: 49px;
  height: 49px;

  display: grid;
  place-items: center;

  margin-bottom: 15px;

  border-radius: 14px;

  background:
    #f0f0ee;

  color:
    var(--text-soft);

  font-size: 21px;
}

.empty-panel h3 {
  margin: 0 0 6px;
}

.empty-panel p {
  max-width: 420px;

  margin:
    0 0 20px;

  color:
    var(--text-soft);

  font-size: 13px;
  line-height: 1.55;
}


/* SUBJECT */

.back-button {
  margin-bottom: 25px;

  padding: 0;

  border: 0;

  background:
    transparent;

  color:
    var(--text-soft);

  font-size: 12px;
  font-weight: 620;

  cursor: pointer;
}

.subject-header {
  display: flex;

  justify-content:
    space-between;

  gap: 25px;

  margin-bottom: 28px;
}

.subject-header-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.subject-big-icon {
  width: 58px;
  height: 58px;

  display: grid;
  place-items: center;

  flex: 0 0 58px;

  border-radius: 16px;

  background:
    #e9e9e6;

  font-size: 22px;
  font-weight: 800;
}

.subject-header h1 {
  margin: 6px 0 5px;

  font-size:
    clamp(
      31px,
      4vw,
      43px
    );

  line-height: 1;

  letter-spacing: -.045em;
}

.subject-meta-line {
  color:
    var(--text-faint);

  font-size: 11px;
}

.subject-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  align-items: flex-start;
}

.subject-metrics {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 11px;

  margin-bottom: 25px;
}

.mini-metric {
  padding: 17px 18px;

  background: white;

  border:
    1px solid var(--border);

  border-radius:
    var(--radius);
}

.mini-metric span {
  display: block;

  margin-bottom: 9px;

  color:
    var(--text-faint);

  font-size: 10px;
}

.mini-metric strong {
  display: block;

  font-size: 22px;
  letter-spacing: -.02em;
}

.mini-metric .smaller-value {
  font-size: 15px;
  line-height: 1.4;
}

.subject-tabs {
  display: flex;
  gap: 5px;

  margin-bottom: 22px;

  padding: 5px;

  width: fit-content;

  background:
    #eaeae7;

  border-radius: 12px;
}

.subject-tab {
  min-height: 37px;

  padding: 0 15px;

  border: 0;
  border-radius: 9px;

  background:
    transparent;

  color:
    var(--text-soft);

  font-size: 12px;
  font-weight: 650;

  cursor: pointer;
}

.subject-tab.active {
  color: var(--text);

  background: white;

  box-shadow:
    0 1px 4px
    rgba(0,0,0,.06);
}

.subject-content-grid {
  display: grid;

  grid-template-columns:
    1.1fr .9fr;

  gap: 16px;
}

.learning-plan {
  display: grid;
  gap: 9px;
}

.learning-plan-item {
  display: grid;

  grid-template-columns:
    31px 1fr;

  gap: 11px;

  align-items: start;

  padding: 11px 0;

  border-bottom:
    1px solid #efefed;
}

.learning-plan-item:last-child {
  border-bottom: 0;
}

.learning-plan-number {
  width: 29px;
  height: 29px;

  display: grid;
  place-items: center;

  border-radius: 9px;

  background:
    #f0f0ee;

  font-size: 10px;
  font-weight: 750;
}

.learning-plan-item strong {
  display: block;

  font-size: 12px;
}

.learning-plan-item span {
  display: block;

  margin-top: 4px;

  color:
    var(--text-faint);

  font-size: 10px;
  line-height: 1.45;
}

.weak-concepts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.concept-pill {
  padding:
    8px 10px;

  border:
    1px solid var(--border);

  border-radius: 10px;

  background:
    var(--surface-soft);

  font-size: 11px;
  font-weight: 620;
}

.recent-panel {
  margin-top: 16px;
}


/* DOCUMENTS */

.upload-panel {
  display: grid;

  grid-template-columns:
    46px 1fr auto;

  gap: 15px;

  align-items: center;

  margin-bottom: 16px;

  padding: 20px;

  border:
    1px dashed
    var(--border-strong);

  border-radius:
    var(--radius-lg);

  background:
    rgba(255,255,255,.5);
}

.upload-icon {
  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  background: white;

  border:
    1px solid var(--border);

  font-size: 18px;
}

.upload-panel h3 {
  margin: 0 0 4px;

  font-size: 14px;
}

.upload-panel p {
  margin: 0;

  color:
    var(--text-faint);

  font-size: 10px;
}

.upload-progress {
  margin-bottom: 16px;

  padding: 12px 14px;

  border-radius: 10px;

  background:
    var(--blue-bg);

  color:
    var(--blue);

  font-size: 11px;
}

.document-table {
  display: grid;
}

.document-row {
  display: grid;

  grid-template-columns:
    38px 1fr auto;

  gap: 12px;

  align-items: center;

  padding:
    13px 3px;

  border-bottom:
    1px solid #efefed;
}

.document-row:last-child {
  border-bottom: 0;
}

.document-file-icon {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border-radius: 9px;

  background:
    #f0f0ee;

  color:
    #666;

  font-size: 9px;
  font-weight: 800;
}

.document-info strong {
  display: block;

  max-width: 620px;

  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;

  font-size: 12px;
}

.document-info span {
  display: block;

  margin-top: 4px;

  color:
    var(--text-faint);

  font-size: 9px;
}

.document-actions {
  display: flex;
  gap: 5px;
}

.small-action {
  padding: 6px 8px;

  border:
    1px solid var(--border);

  border-radius: 8px;

  background: white;

  font-size: 10px;
  font-weight: 620;

  cursor: pointer;
}

.small-action.danger {
  color: var(--red);
}


/* FLASHCARDS */

.flashcard-tab-header {
  display: flex;
  justify-content:
    space-between;

  gap: 20px;

  align-items: flex-start;

  margin-bottom: 20px;
}

.flashcard-tab-header h2 {
  margin: 0 0 6px;

  font-size: 24px;
  letter-spacing: -.03em;
}

.flashcard-tab-header p {
  max-width: 600px;

  margin: 0;

  color:
    var(--text-soft);

  font-size: 12px;
  line-height: 1.5;
}

.custom-flashcards-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 13px;
}

.custom-flashcard {
  min-height: 185px;

  display: flex;
  flex-direction: column;

  padding: 19px;

  border:
    1px solid var(--border);

  border-radius:
    var(--radius-lg);

  background: white;
}

.custom-flashcard-front {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.custom-flashcard-divider {
  width: 28px;
  height: 2px;

  margin:
    15px 0 12px;

  background:
    #d8d8d4;
}

.custom-flashcard-back {
  color:
    var(--text-soft);

  font-size: 11px;
  line-height: 1.55;
}

.custom-flashcard-actions {
  display: flex;
  gap: 6px;

  margin-top: auto;

  padding-top: 18px;
}


/* ANALYSIS */

.analysis-toolbar {
  display: flex;

  justify-content:
    space-between;

  gap: 20px;

  align-items: flex-start;

  margin-bottom: 18px;
}

.analysis-toolbar h2 {
  margin: 6px 0 0;

  font-size: 26px;
  letter-spacing: -.035em;
}

.analysis-tabs {
  display: flex;
  gap: 4px;

  margin-bottom: 18px;

  padding-bottom: 11px;

  border-bottom:
    1px solid var(--border);
}

.analysis-tab {
  padding:
    8px 11px;

  border: 0;
  border-radius: 8px;

  background:
    transparent;

  color:
    var(--text-soft);

  font-size: 11px;
  font-weight: 650;

  cursor: pointer;
}

.analysis-tab.active {
  background:
    var(--accent-soft);

  color: var(--text);
}

.analysis-body {
  min-height: 300px;

  padding: 25px;

  background: white;

  border:
    1px solid var(--border);

  border-radius:
    var(--radius-lg);
}

.analysis-summary {
  max-width: 820px;

  white-space: pre-wrap;

  line-height: 1.75;

  color: #343438;

  font-size: 14px;
}

.concept-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 10px;
}

.concept-card {
  padding: 15px;

  border:
    1px solid var(--border);

  border-radius: 12px;

  background:
    #fafaf8;
}

.concept-card strong {
  display: block;

  margin-bottom: 5px;

  font-size: 12px;
}

.concept-card p {
  margin: 0;

  color:
    var(--text-soft);

  font-size: 11px;
  line-height: 1.5;
}

.analysis-card-stack {
  display: grid;
  gap: 9px;
}

.analysis-list-card {
  padding: 15px;

  border:
    1px solid var(--border);

  border-radius: 12px;
}

.analysis-list-card strong {
  display: block;

  margin-bottom: 6px;

  font-size: 12px;
}

.analysis-list-card p {
  margin: 0;

  color:
    var(--text-soft);

  font-size: 11px;
  line-height: 1.55;
}


/* LEARNING SESSION */

.learning-session {
  position: fixed;
  inset: 0;

  z-index: 100;

  display: flex;
  flex-direction: column;

  background:
    #f8f8f6;
}

.session-header {
  height: 68px;

  display: grid;

  grid-template-columns:
    1fr auto 1fr;

  align-items: center;

  padding: 0 28px;

  background: white;

  border-bottom:
    1px solid var(--border);
}

.session-brand {
  display: flex;
  align-items: center;
  gap: 9px;

  font-size: 12px;
  font-weight: 700;
}

.session-progress-label {
  color:
    var(--text-soft);

  font-size: 11px;
}

.session-close {
  justify-self: end;

  width: 35px;
  height: 35px;

  border: 0;

  background:
    #f3f3f1;

  border-radius: 10px;

  font-size: 20px;

  cursor: pointer;
}

.session-progress-track {
  height: 3px;

  background:
    #e8e8e5;
}

.session-progress-bar {
  height: 100%;

  width: 0%;

  background:
    #1a1a1d;

  transition:
    width .3s ease;
}

.session-stage {
  flex: 1;

  display: grid;
  place-items: center;

  padding: 35px 20px;
}

.session-content {
  width: min(700px, 100%);
}

.session-type {
  margin-bottom: 11px;

  text-align: center;

  color:
    var(--text-faint);

  font-size: 10px;
  font-weight: 750;
  letter-spacing: .1em;
}

.session-card {
  min-height: 360px;

  display: grid;
  place-items: center;

  padding:
    40px 45px;

  background: white;

  border:
    1px solid var(--border);

  border-radius:
    24px;

  box-shadow:
    0 20px 60px
    rgba(0,0,0,.05);

  text-align: center;

  cursor: pointer;
}

.session-card-text {
  max-width: 560px;

  font-size:
    clamp(
      20px,
      3vw,
      27px
    );

  line-height: 1.45;

  letter-spacing: -.02em;
}

.session-reveal-hint {
  margin-top: 14px;

  text-align: center;

  color:
    var(--text-faint);

  font-size: 10px;
}

.session-rating {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 8px;

  margin-top: 14px;
}

.rating-button {
  min-height: 48px;

  border: 0;

  border-radius: 11px;

  font-size: 11px;
  font-weight: 650;

  cursor: pointer;
}

.rating-again {
  background:
    var(--red-bg);

  color:
    var(--red);
}

.rating-hard {
  background:
    var(--orange-bg);

  color:
    var(--orange);
}

.rating-good {
  background:
    var(--green-bg);

  color:
    var(--green);
}

.rating-easy {
  background:
    var(--blue-bg);

  color:
    var(--blue);
}

.session-question {
  padding:
    32px;

  background: white;

  border:
    1px solid var(--border);

  border-radius:
    22px;

  box-shadow:
    0 20px 60px
    rgba(0,0,0,.045);
}

.session-question h2 {
  margin:
    0 0 23px;

  font-size:
    clamp(
      21px,
      3vw,
      28px
    );

  line-height: 1.4;

  letter-spacing: -.025em;
}

.session-question textarea {
  width: 100%;
  min-height: 140px;

  margin-bottom: 13px;

  padding: 14px;

  border:
    1px solid var(--border-strong);

  border-radius: 12px;

  resize: vertical;

  outline: none;

  font: inherit;
  line-height: 1.5;
}

.session-question textarea:focus {
  border-color: #999;
}

.session-feedback {
  margin-top: 16px;

  padding: 17px;

  border-radius: 12px;

  background:
    var(--surface-soft);
}

.session-feedback-score {
  margin-bottom: 7px;

  font-size: 27px;
  font-weight: 780;
}

.session-feedback p {
  margin: 5px 0;

  color:
    var(--text-soft);

  font-size: 12px;
  line-height: 1.55;
}

.session-finished {
  text-align: center;

  padding: 25px;
}

.finished-check {
  width: 58px;
  height: 58px;

  display: grid;
  place-items: center;

  margin:
    0 auto 18px;

  border-radius: 50%;

  background:
    var(--green-bg);

  color:
    var(--green);

  font-size: 25px;
}

.session-finished h2 {
  margin: 0 0 7px;

  font-size: 32px;
  letter-spacing: -.04em;
}

.session-finished p {
  max-width: 450px;

  margin:
    0 auto 22px;

  color:
    var(--text-soft);

  font-size: 13px;
  line-height: 1.5;
}


/* MODALS */

.modal-backdrop {
  position: fixed;
  inset: 0;

  z-index: 200;

  background:
    rgba(15,15,17,.45);

  backdrop-filter:
    blur(3px);
}

.modal {
  position: fixed;

  z-index: 210;

  top: 50%;
  left: 50%;

  width:
    min(
      500px,
      calc(100% - 30px)
    );

  transform:
    translate(-50%, -50%);

  padding: 24px;

  background: white;

  border-radius:
    20px;

  box-shadow:
    0 30px 90px
    rgba(0,0,0,.2);
}

.modal-small {
  width:
    min(
      410px,
      calc(100% - 30px)
    );

  text-align: center;
}

.modal-header {
  display: flex;

  justify-content:
    space-between;

  gap: 15px;

  margin-bottom: 22px;
}

.modal-header h2 {
  margin: 6px 0 0;

  font-size: 23px;
  letter-spacing: -.03em;
}

.modal-close {
  width: 33px;
  height: 33px;

  border: 0;
  border-radius: 9px;

  background:
    #f3f3f1;

  font-size: 18px;

  cursor: pointer;
}

.modal-actions {
  display: flex;

  justify-content:
    flex-end;

  gap: 8px;

  margin-top: 23px;
}

.confirm-icon {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  margin:
    0 auto 14px;

  border-radius: 50%;

  background:
    var(--red-bg);

  color:
    var(--red);

  font-weight: 800;
}

.modal-small h2 {
  margin:
    0 0 7px;
}

.modal-small p {
  margin:
    0 auto;

  max-width: 320px;

  color:
    var(--text-soft);

  font-size: 12px;
  line-height: 1.55;
}

.modal-small .modal-actions {
  justify-content: center;
}


/* TOAST */

.toast-container {
  position: fixed;

  z-index: 500;

  right: 20px;
  bottom: 20px;

  display: grid;
  gap: 8px;

  width:
    min(
      360px,
      calc(100% - 40px)
    );
}

.toast {
  padding:
    13px 15px;

  border-radius: 12px;

  color: white;

  background:
    #1d1d20;

  box-shadow:
    0 12px 35px
    rgba(0,0,0,.15);

  font-size: 12px;

  animation:
    toastIn .2s ease;
}

.toast.error {
  background:
    #9f3131;
}

.toast.success {
  background:
    #236942;
}

@keyframes toastIn {
  from {
    transform:
      translateY(7px);

    opacity: 0;
  }

  to {
    transform:
      translateY(0);

    opacity: 1;
  }
}


/* LOADING */

.loading-row {
  display: flex;
  align-items: center;
  gap: 10px;

  color:
    var(--text-soft);

  font-size: 11px;
}

.spinner {
  width: 16px;
  height: 16px;

  border:
    2px solid
    #dfdfdc;

  border-top-color:
    #262629;

  border-radius: 50%;

  animation:
    spin .7s linear infinite;
}

@keyframes spin {
  to {
    transform:
      rotate(360deg);
  }
}

.badge {
  padding:
    5px 8px;

  border-radius: 20px;

  background:
    var(--accent-soft);

  color:
    var(--text-soft);

  font-size: 9px;
  font-weight: 650;
}
